ChangeLog 744 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157
  1. 2010-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Release 1.9.3
  3. 2010-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4. Return const reference.
  5. * src/DefaultPieceStorage.h
  6. * src/DownloadContext.h
  7. * src/FeatureConfig.cc
  8. * src/FeatureConfig.h
  9. * src/OptionParser.cc
  10. * src/OptionParser.h
  11. * src/SimpleRandomizer.cc
  12. * src/SimpleRandomizer.h
  13. 2010-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Bump up version number to 1.9.3.
  15. * configure.ac
  16. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Return const reference.
  18. * src/LpdMessageReceiver.h
  19. * src/LpdReceiveMessageCommand.h
  20. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Removed useless pathJoin
  22. * src/MetalinkParserController.cc
  23. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Fixed the bug that name attribute of file element in Metalink file
  25. is not properly sanitized.
  26. * src/Metalink2RequestGroup.cc
  27. * src/MetalinkParserController.cc
  28. * test/Makefile.am
  29. * test/Metalink2RequestGroupTest.cc
  30. * test/metalink4-dosdirtraversal.xml
  31. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Fixed the bug that if filename in Content-Disposition header
  33. includes ';', aria2 cuts filename after ';'.
  34. * src/util.cc
  35. * test/UtilTest.cc
  36. 2010-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Release 1.9.2
  38. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  39. Fixed compiler warning on opensolaris.
  40. * src/StringFormat.h
  41. * src/XORCloser.h
  42. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Updated doc
  44. * test/array_funTest.cc
  45. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Fixed segmentation fault when running unit tests on opensolaris.
  47. * src/SocketCore.cc
  48. * src/bittorrent_helper.cc
  49. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Updated Russian translation. Thanks to all translators.
  51. * po/ru.po
  52. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Updated po templates.
  54. * po/aria2.pot
  55. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Print warning when trying to add file descriptor >= FD_SET or < 0
  57. to fd_set for other than MinGW32 build. For MinGW32 build, print
  58. warning when trying to add file descriptor to fd_set when it
  59. already contains FD_SET file descriptors.
  60. * src/SelectEventPoll.cc
  61. * src/SocketCore.cc
  62. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  63. Updated doc for --event-poll option.
  64. * doc/aria2c.1.txt
  65. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Bump up version number to 1.9.2
  67. * configure.ac
  68. * doc/aria2c.1.txt
  69. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Defined FD_SETSIZE 1024 for MinGW32.
  71. * src/a2netcompat.h
  72. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  73. Fixed compile error on the system which lacks poll()
  74. * src/DownloadEngineFactory.cc
  75. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. In SocketCore::isReadable()/isWritable(), use poll() if it is
  77. available otherwise use select(). Removed epoll/port from there
  78. because poll() does the good enough job for single socket event
  79. notification.
  80. * src/SocketCore.cc
  81. * src/SocketCore.h
  82. * src/main.cc
  83. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Added kqueue support. We use poll() for
  85. SocketCore::isReadable()/isWritable() when kqueue is used.
  86. * configure.ac
  87. * src/DownloadEngineFactory.cc
  88. * src/KqueueEventPoll.cc
  89. * src/KqueueEventPoll.h
  90. * src/Makefile.am
  91. * src/Makefile.in
  92. * src/OptionHandlerFactory.cc
  93. * src/main.cc
  94. * src/prefs.cc
  95. * src/prefs.h
  96. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Added missing timespec.h to SRCS
  98. * src/Makefile.am
  99. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Fixed the bug that aria2.unpause fails with -s1.
  101. * src/FileEntry.cc
  102. * src/XmlRpcMethodImpl.cc
  103. 2010-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  104. Added missing #ifdef HAVE_PORT_ASSOCIATE
  105. * src/DownloadEngineFactory.cc
  106. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Added opensolaris port_associate() support.
  108. * src/DownloadEngineFactory.cc
  109. * src/Makefile.am
  110. * src/OptionHandlerFactory.cc
  111. * src/PortEventPoll.cc
  112. * src/PortEventPoll.h
  113. * src/SocketCore.cc
  114. * src/SocketCore.h
  115. * src/configure.ac
  116. * src/main.cc
  117. * src/prefs.cc
  118. * src/prefs.h
  119. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Fixed the bug that _e is passed where e should be passed.
  121. * src/HttpListenCommand.cc
  122. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Increased _epEvents size if necessary.
  124. * src/EpollEventPoll.cc
  125. * src/EpollEventPoll.h
  126. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Removed EventRType template parameter
  128. * src/EpollEventPoll.cc
  129. * src/EpollEventPoll.h
  130. * src/Event.h
  131. * src/PollEventPoll.cc
  132. * src/PollEventPoll.h
  133. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Use Event in EpollEventPoll
  135. * src/EpollEventPoll.cc
  136. * src/EpollEventPoll.h
  137. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  138. Externalized Event, CommandEvent, ADNSEvent, SocketEntry and
  139. AsyncNameResolverEntry class.
  140. * src/Event.h
  141. * src/Makefile.am
  142. * src/PollEventPoll.cc
  143. * src/PollEventPoll.h
  144. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Supported poll() for socket event notification. --event-poll can
  146. take value "poll". Fixed the bug that timeout for
  147. SocketCore::isReadable()/isWritable() is ignored when epoll is
  148. used.
  149. * src/OptionHandlerFactory.cc
  150. * src/a2io.h
  151. * src/prefs.h
  152. * src/SocketCore.h
  153. * src/Makefile.am
  154. * src/main.cc
  155. * src/PollEventPoll.h
  156. * src/SocketCore.cc
  157. * src/DownloadEngineFactory.cc
  158. * src/PollEventPoll.cc
  159. * src/prefs.cc
  160. * configure.ac
  161. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Reverted previous change to DownloadCommand.cc with additional
  163. commentary.
  164. * src/DownloadCommand.cc
  165. 2010-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Fixed compile error with openssl 1.1.0 and mingw32.
  167. * src/AsyncNameResolver.cc
  168. * src/LogFactory.cc
  169. * src/Logger.cc
  170. * src/Logger.h
  171. * src/SocketCore.cc
  172. * src/SocketCore.h
  173. * src/a2netcompat.h
  174. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Release 1.9.1
  176. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Bump up version number to 1.9.0
  178. * doc/aria2c.1.txt
  179. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  180. Updated Ukrainian, Russian, Simplified Chinese, German and Greek
  181. translation. Thanks to all translators.
  182. * po/de.po
  183. * po/el.po
  184. * po/ru.po
  185. * po/uk.po
  186. * po/zh_CN.po
  187. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Added AC_SEARCH_LIBS for inet_aton on opensolaris. opensolaris
  189. needs -lnsl for inet_aton.
  190. * configure.ac
  191. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Updated po templates.
  193. * po/aria2.pot
  194. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Added aria2.pause, aria2.forcePause, aria2.pauseAll,
  196. aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC
  197. method to aria2rpc
  198. * doc/xmlrpc/aria2rpc
  199. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Use elapsed time between two mach_absolute_time() calls.
  201. Fixed compile error in Mac OS X.
  202. * src/clock_gettime_osx.cc
  203. * src/timespec.h
  204. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Implemented clock_gettime() using mach_absolute_time in Mac OS X.
  206. * configure.ac
  207. * src/Makefile.am
  208. * src/a2time.h
  209. * src/clock_gettime_osx.cc
  210. * src/clock_gettime_osx.h
  211. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. Implemented clock_gettime() using timeGetTime in mingw.
  213. * configure.ac
  214. * src/Makefile.am
  215. * src/a2time.h
  216. * src/clock_gettime_mingw.cc
  217. * src/clock_gettime_mingw.h
  218. * src/timespec.h
  219. * test/Makefile.am
  220. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Ensure that std::ofstream is destroyed before renaming.
  222. * src/SessionSerializer.cc
  223. * src/util.cc
  224. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  225. Fixed the bug that user specified path is escaped using
  226. util::escapePath() where it should not.
  227. * src/DownloadContext.cc
  228. * src/DownloadContext.h
  229. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. Hold reference to PieceStorage when paused in order to provide
  231. progress information via XML-RPC.
  232. * src/RequestGroup.cc
  233. * src/RequestGroup.h
  234. * src/RequestGroupMan.cc
  235. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  236. Defined struct timespec if it is not available.
  237. * src/a2time.h
  238. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Added missing serialize_session.meta4 to EXTRA_DIST
  240. * test/Makefile.am
  241. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Fixed compile error without BitTorrent support.
  243. * src/Metalink2RequestGroup.cc
  244. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Fixed compile error on Mac OS X
  246. * src/TimerA2.h
  247. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  248. Added warning for the system which lacks clock_gettime with
  249. CLOCK_MONOTONIC.
  250. * src/MultiUrlRequestInfo.cc
  251. * src/TimerA2.cc
  252. * src/TimerA2.h
  253. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Removed redundant method call for DownloadEngine.
  255. * src/DownloadCommand.cc
  256. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Fixed the bug that hash check hangs when aria2.pause is issued
  258. while aria2 is checking piece hashes. Fixed the bug that the
  259. download is paused after file allocation completion even if
  260. aria2.pause is issued during file allocation.
  261. * src/CheckIntegrityCommand.cc
  262. * src/FileAllocationCommand.cc
  263. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Added nsl to search-libs for getaddrinfo on opensolaris
  265. * configure.ac
  266. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  267. Fixed compile error on opensolaris
  268. * configure.ac
  269. * src/Logger.h
  270. * src/GZipEncoder.h
  271. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Added aria2.pauseAll, aria2.forcePauseAll and aria2.unpauseAll
  273. XML-RPC method.
  274. * doc/aria2c.1.txt
  275. * src/XmlRpcMethodFactory.cc
  276. * src/XmlRpcMethodImpl.cc
  277. * src/XmlRpcMethodImpl.h
  278. * test/XmlRpcMethodTest.cc
  279. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  280. Added aria2.forcePause XML-RPC command.
  281. * src/XmlRpcMethodFactory.cc
  282. * src/XmlRpcMethodImpl.cc
  283. * src/XmlRpcMethodImpl.h
  284. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  285. Use global::wallclock
  286. * src/DHTBucket.cc
  287. * src/DHTMessageTrackerEntry.cc
  288. * src/DHTMessageTrackerEntry.h
  289. * src/DefaultBtInteractive.cc
  290. * src/Peer.cc
  291. * src/PeerAbstractCommand.cc
  292. * src/PeerStat.h
  293. * src/RequestSlot.h
  294. * src/TimeBasedCommand.cc
  295. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  296. Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and
  297. usable to prevent from aria2 from being affected by system time
  298. change.
  299. 2010-04-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Added aria2.pause and aria2.unpause XML-RPC method. aria2.pause
  301. pauses the download denoted by gid. gid is of type string. The
  302. status of paused download becomes "paused" and the download is
  303. placed on the first position of waiting queue. As long as the
  304. status is "paused", the download is not started. To change status
  305. to "waiting", use aria2.unpause method. This method returns GID of
  306. paused download. aria2.unpause changes the status of the download
  307. denoted by gid from "paused" to "waiting". This makes the download
  308. eligible to restart. gid is of type string. This method returns
  309. GID of unpaused download.
  310. * doc/aria2c.1.txt
  311. * src/DownloadContext.cc
  312. * src/FileEntry.cc
  313. * src/OptionHandlerFactory.cc
  314. * src/RequestGroup.cc
  315. * src/RequestGroup.h
  316. * src/RequestGroupMan.cc
  317. * src/XmlRpcMethodFactory.cc
  318. * src/XmlRpcMethodImpl.cc
  319. * src/XmlRpcMethodImpl.h
  320. * src/prefs.cc
  321. * src/prefs.h
  322. * src/usage_text.h
  323. 2010-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  324. Added --save-session=FILE option. This option saves
  325. error/unfinished downloads to FILE on exit. You can pass this
  326. output file to aria2c with -i option on restart. Please note that
  327. downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC
  328. method are not saved.
  329. * src/BtPostDownloadHandler.cc
  330. * src/DownloadResult.h
  331. * src/Makefile.am
  332. * src/MetadataInfo.cc
  333. * src/MetadataInfo.h
  334. * src/Metalink2RequestGroup.cc
  335. * src/MetalinkPostDownloadHandler.cc
  336. * src/MultiUrlRequestInfo.cc
  337. * src/OptionHandlerFactory.cc
  338. * src/RequestGroup.cc
  339. * src/RequestGroup.h
  340. * src/SessionSerializer.cc
  341. * src/SessionSerializer.h
  342. * src/UTMetadataPostDownloadHandler.cc
  343. * src/download_helper.cc
  344. * src/download_helper.h
  345. * src/prefs.cc
  346. * src/prefs.h
  347. * src/usage_text.h
  348. * test/Makefile.am
  349. * test/SessionSerializerTest.cc
  350. * test/XmlRpcMethodTest.cc
  351. * test/serialize_session.meta4
  352. 2010-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Fixed the bug that FTP data connection is not established via
  354. proxy when --ftp-proxy is defined and --ftp-pasv=true and
  355. --proxy-method=tunnel.
  356. * src/AbstractCommand.cc
  357. * src/AbstractCommand.h
  358. * src/FtpNegotiationCommand.cc
  359. * src/FtpNegotiationCommand.h
  360. * src/InitiateConnectionCommand.cc
  361. 2010-04-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Updated po templates.
  363. * po/aria2.pot
  364. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Bump up version number to 1.9.1
  366. * configure.ac
  367. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Added shutdown and forceShutdown to aria2rpc
  369. * doc/xmlrpc/aria2rpc
  370. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Changed error message.
  372. * src/XmlRpcMethod.cc
  373. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Added bt-tracker-timeout, bt-tracker-connect-timeout,
  375. always-resume, max-resume-failure-tries and http-accept-gzip to -i
  376. list options.
  377. * doc/aria2c.1.txt
  378. * doc/xmlrpc/aria2rpc
  379. * src/download_helper.cc
  380. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Fixed the bug that web-seed URI is not percent-encoded.
  382. * src/a2functional.h
  383. * src/bittorrent_helper.cc
  384. * test/BittorrentHelperTest.cc
  385. * test/url-list-multiFile.torrent
  386. * test/url-list-singleFileEndsWithSlash.torrent
  387. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
  389. These methods, as their name implies, shutdown aria2. These
  390. methods are useful for Windows because it lacks signal mechanism.
  391. * doc/aria2c.1.txt
  392. * src/TimedHaltCommand.cc
  393. * src/XmlRpcMethodFactory.cc
  394. * src/XmlRpcMethodImpl.cc
  395. * src/XmlRpcMethodImpl.h
  396. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  397. Added forceHalt argument to TimedHaltCommand.
  398. Added requestForceHalt() to DownloadEngine.
  399. * src/DownloadEngine.cc
  400. * src/DownloadEngine.h
  401. * src/TimedHaltCommand.cc
  402. * src/TimedHaltCommand.h
  403. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Possible fix for chunked encoding with Content-Length.
  405. * src/HttpResponseCommand.cc
  406. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Don't send "Accept: default, gzip" by default. This is because
  408. some server responds with "Content-Encoding: gzip" for files which
  409. itself is gzipped file and aria2 inflates them. This is a problem
  410. if user don't want to inflate the file. Apparently this is server
  411. configuration error, but I cannot do anything about this. So turn
  412. this off. Added --http-accept-gzip option. If true is given to
  413. this option, aria2 sends 'Accept: deflate, gzip' request header
  414. and inflates response if remote server responds with
  415. 'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
  416. indicates we removed extension tgz hack in order not to inflate
  417. files with tgz extensions.
  418. * doc/aria2c.1.txt
  419. * src/HttpRequest.cc
  420. * src/HttpRequest.h
  421. * src/HttpRequestCommand.cc
  422. * src/HttpResponseCommand.cc
  423. * src/OptionHandlerFactory.cc
  424. * src/prefs.cc
  425. * src/prefs.h
  426. * src/usage_text.h
  427. * test/HttpRequestTest.cc
  428. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Made aria2 not send
  430. "application/metalink4+xml,application/metalink+xml" in Accept
  431. header for web-seeding URIs and tracker request.
  432. * src/Metalink2RequestGroup.cc
  433. * src/TrackerWatcherCommand.cc
  434. * src/download_helper.cc
  435. * src/util.cc
  436. * src/util.h
  437. 2010-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Added download_helper.{cc,h} to SRCS
  439. * src/Makefile.am
  440. * test/Makefile.am
  441. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  442. Added --dht-message-timeout option.
  443. * doc/aria2c.1.txt
  444. * src/DHTConstants.h
  445. * src/DHTMessageDispatcherImpl.cc
  446. * src/DHTMessageDispatcherImpl.h
  447. * src/DHTMessageTracker.cc
  448. * src/DHTMessageTracker.h
  449. * src/DHTReplaceNodeTask.h
  450. * src/DHTSetup.cc
  451. * src/DHTTaskFactoryImpl.cc
  452. * src/DHTTaskFactoryImpl.h
  453. * src/OptionHandlerFactory.cc
  454. * src/prefs.cc
  455. * src/prefs.h
  456. * src/usage_text.h
  457. * test/DHTMessageTrackerTest.cc
  458. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  459. Added --bt-tracker-connect-timeout and --bt-tracker-timeout
  460. option.
  461. * doc/aria2c.1.txt
  462. * src/OptionHandlerFactory.cc
  463. * src/TrackerWatcherCommand.cc
  464. * src/prefs.cc
  465. * src/prefs.h
  466. * src/usage_text.h
  467. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  468. Documented that specifying --seed-time=0 disables seeding after
  469. download completed.
  470. * doc/aria2c.1.txt
  471. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  472. Code cleanup
  473. * src/BtSetup.cc
  474. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Drop connection if same Peer ID has been already seen.
  476. * src/DefaultBtInteractive.cc
  477. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  478. Fixed the bug that waiting download unintentionally starts when
  479. URIs are added to it using aria2.changeUri XML-RPC method. This
  480. also fixes the bug that causes segmentation fault when adding URIs
  481. to waiting download, which is a regression introduced by the
  482. previous change made to src/XmlRpcMethodImpl.cc
  483. * src/XmlRpcMethodImpl.cc
  484. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  485. Fixed compile error with g++-4.4 on FreeBSD.
  486. * src/util.h
  487. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  488. Fixed the bug that added URI using aria2.changeUri XML-RPC method
  489. is not used immediately if there is no URIs remaining before
  490. calling aria2.changeUri and the number of connection is less than
  491. the value in -s(or -C for Metalink downloads).
  492. * src/XmlRpcMethodImpl.cc
  493. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  494. Documented --always-resume and --max-resume-failure-tries option
  495. and exit status 8 in man page. Fixed typo.
  496. * doc/aria2c.1.txt
  497. * src/OptionHandlerFactory.cc
  498. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  499. Added --always-resume and --max-resume-failure-tries option. If
  500. --always-resume=false is given, when all given URIs does not
  501. support resume or aria2 encounters N URIs which does not support
  502. resume
  503. (N is the value specified using --max-resume-failure-tries
  504. option), aria2 download file from scratch. The default behavior
  505. is --always-resume=true, which means if all URIs do not support
  506. resume, download fails. I think this is OK because user normally
  507. don't like to see that partially downloaded file is
  508. overwritten(this is particularly true if file size is big). This
  509. option is useful when aria2 is used as download backend and
  510. graceful falling back to overwritten behavior is preferable.
  511. Added exit status value 8, which means download failed because
  512. server did not support resume.
  513. * src/AbstractCommand.cc
  514. * src/DefaultPieceStorage.cc
  515. * src/DownloadCommand.cc
  516. * src/DownloadResultCode.h
  517. * src/FileEntry.h
  518. * src/FtpNegotiationCommand.cc
  519. * src/HttpResponse.cc
  520. * src/HttpResponseCommand.cc
  521. * src/OptionHandlerFactory.cc
  522. * src/RequestGroup.cc
  523. * src/RequestGroup.h
  524. * src/SegmentMan.cc
  525. * src/SegmentMan.h
  526. * src/prefs.cc
  527. * src/prefs.h
  528. * src/usage_text.h
  529. * test/DefaultPieceStorageTest.cc
  530. * test/SegmentManTest.cc
  531. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  532. Added --remove-control-file option to -i list options.
  533. * doc/aria2c.1.txt
  534. * doc/xmlrpc/aria2rpc
  535. * src/download_helper.cc
  536. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  537. Added --remove-control-file option. This option removes control
  538. file(*.aria2 file) before download. Using with
  539. --allow-overwrite=true, download always starts from scratch. This
  540. will be useful for users behind proxy server which disables
  541. resume. For such proxy user, -C1 is also recommended for Metalink
  542. downloads to avoid establishing unnecessary connections.
  543. * doc/aria2c.1.txt
  544. * src/OptionHandlerFactory.cc
  545. * src/RequestGroup.cc
  546. * src/prefs.cc
  547. * src/prefs.h
  548. * src/usage_text.h
  549. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
  551. size of array at compile time.
  552. * src/array_fun.h
  553. * test/BitfieldManTest.cc
  554. * test/BtPortMessageTest.cc
  555. * test/DHTRoutingTableDeserializerTest.cc
  556. * test/DHTRoutingTableSerializerTest.cc
  557. * test/DownloadHelperTest.cc
  558. * test/LongestSequencePieceSelectorTest.cc
  559. * test/MultiDiskAdaptorTest.cc
  560. * test/OptionParserTest.cc
  561. * test/PriorityPieceSelectorTest.cc
  562. * test/array_funTest.cc
  563. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Added vbegin() and vend() for fixed sized array.
  565. * src/DownloadHandlerConstants.cc
  566. * src/FeatureConfig.cc
  567. * src/OptionHandlerFactory.cc
  568. * src/ServerStat.cc
  569. * src/TimeA2.cc
  570. * src/XmlRpcMethod.cc
  571. * src/array_fun.h
  572. * src/download_helper.cc
  573. * src/messageDigest.cc
  574. * src/util.cc
  575. * test/BittorrentHelperTest.cc
  576. * test/DHTRoutingTableDeserializerTest.cc
  577. * test/DHTRoutingTableSerializerTest.cc
  578. * test/DefaultBtAnnounceTest.cc
  579. * test/DefaultBtProgressInfoFileTest.cc
  580. * test/DownloadContextTest.cc
  581. * test/DownloadHelperTest.cc
  582. * test/FeatureConfigTest.cc
  583. * test/FeedbackURISelectorTest.cc
  584. * test/HttpRequestTest.cc
  585. * test/InOrderURISelectorTest.cc
  586. * test/MSEHandshakeTest.cc
  587. * test/MultiDiskAdaptorTest.cc
  588. * test/MultiFileAllocationIteratorTest.cc
  589. * test/PriorityPieceSelectorTest.cc
  590. * test/RequestGroupManTest.cc
  591. * test/UtilTest.cc
  592. * test/XmlRpcMethodTest.cc
  593. * test/a2algoTest.cc
  594. * test/array_funTest.cc
  595. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  596. Simplified code using lastByteMask
  597. * src/BitfieldMan.cc
  598. * src/PieceStatMan.cc
  599. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  600. Rewritten lastByteMask
  601. * src/bitfield.h
  602. 2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  603. Redefined the maximum length of buffer used for HTTP header.
  604. * src/HttpHeaderProcessor.cc
  605. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. Code cleanup
  607. * src/SleepCommand.cc
  608. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  609. Do exact match if IP address is specified in --no-proxy.
  610. * src/AbstractCommand.cc
  611. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  612. Fixed the bug that socket is added to EventPoll object twice. This
  613. is because derived class FtpFinishDownloadCommand adds socket to
  614. EventPoll object while base class AbstractCommand does that
  615. already.
  616. * src/FtpFinishDownloadCommand.cc
  617. * src/FtpFinishDownloadCommand.h
  618. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Defined gid_t as int64_t.
  620. * src/BtDependency.cc
  621. * src/BtStopDownloadCommand.cc
  622. * src/FtpNegotiationCommand.cc
  623. * src/HttpResponseCommand.cc
  624. * src/RequestGroup.cc
  625. * src/RequestGroup.h
  626. * src/RequestGroupMan.cc
  627. * src/TrackerWatcherCommand.cc
  628. * src/XmlRpcMethodImpl.cc
  629. * src/message.h
  630. * test/XmlRpcMethodTest.cc
  631. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  633. translatable texts because it is used in log and debugging
  634. purpose.
  635. * src/AbstractCommand.cc
  636. * src/ActivePeerConnectionCommand.cc
  637. * src/BtPieceMessage.cc
  638. * src/CUIDCounter.h
  639. * src/CheckIntegrityCommand.cc
  640. * src/CheckIntegrityDispatcherCommand.cc
  641. * src/Command.h
  642. * src/CreateRequestCommand.cc
  643. * src/DHTEntryPointNameResolveCommand.cc
  644. * src/DefaultBtInteractive.cc
  645. * src/DefaultBtMessageDispatcher.cc
  646. * src/DownloadCommand.cc
  647. * src/FileAllocationCommand.cc
  648. * src/FileAllocationDispatcherCommand.cc
  649. * src/FtpConnection.cc
  650. * src/FtpInitiateConnectionCommand.cc
  651. * src/FtpNegotiationCommand.cc
  652. * src/HttpConnection.cc
  653. * src/HttpInitiateConnectionCommand.cc
  654. * src/HttpListenCommand.cc
  655. * src/HttpResponse.cc
  656. * src/HttpServerBodyCommand.cc
  657. * src/HttpServerCommand.cc
  658. * src/HttpServerResponseCommand.cc
  659. * src/InitiateConnectionCommand.cc
  660. * src/InitiatorMSEHandshakeCommand.cc
  661. * src/MSEHandshake.cc
  662. * src/PeerAbstractCommand.cc
  663. * src/PeerConnection.cc
  664. * src/PeerInitiateConnectionCommand.cc
  665. * src/PeerInteractionCommand.cc
  666. * src/PeerListenCommand.cc
  667. * src/PeerReceiveHandshakeCommand.cc
  668. * src/SegmentMan.cc
  669. * src/SimpleBtMessage.cc
  670. * src/TrackerWatcherCommand.cc
  671. * src/message.h
  672. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Use gid_t type for gid.
  674. * src/BtRegistry.cc
  675. * src/BtRegistry.h
  676. * src/DownloadResult.h
  677. * src/RequestGroup.cc
  678. * src/RequestGroup.h
  679. * src/RequestGroupMan.cc
  680. * src/RequestGroupMan.h
  681. * src/XmlRpcMethodImpl.cc
  682. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  683. Use cuid_t type for cuid.
  684. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  685. Added v key in DHT message. aria2's DHT version is independent of
  686. the package version and we defined it as 1 at the moment. It is
  687. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  688. scheme is "A2"+2bytes DHT version number in network byte order.
  689. * src/DHTAbstractMessage.cc
  690. * src/DHTConstants.h
  691. * src/DHTMessage.cc
  692. * src/DHTMessage.h
  693. * src/DHTMessageFactoryImpl.cc
  694. * src/DHTQueryMessage.cc
  695. * src/DHTResponseMessage.cc
  696. * src/util.h
  697. * test/DHTAnnouncePeerMessageTest.cc
  698. * test/DHTAnnouncePeerReplyMessageTest.cc
  699. * test/DHTFindNodeMessageTest.cc
  700. * test/DHTFindNodeReplyMessageTest.cc
  701. * test/DHTGetPeersMessageTest.cc
  702. * test/DHTGetPeersReplyMessageTest.cc
  703. * test/DHTPingMessageTest.cc
  704. * test/DHTPingReplyMessageTest.cc
  705. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  707. method response is integer, while manual says it is string. When
  708. peer's port is not listening port, set '0' to port in
  709. aria2.getPeers response.
  710. * src/XmlRpcMethodImpl.cc
  711. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. Lines starting "#" in -i list are treated as comments.
  713. Example:
  714. # this is comment
  715. http://example.org/file
  716. http://example.org/file2
  717. dir=/tmp
  718. # another comment
  719. out=myfile
  720. * doc/aria2c.1.txt
  721. * src/UriListParser.cc
  722. * test/filelist1.txt
  723. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Accept IPv4 network address with CIDR block in --no-proxy option
  725. and no_proxy environment variable. Current implementation does
  726. not resolve hostname in URI to compare network address. So it is
  727. only effecive if URI has numeric IP addresses.
  728. * doc/aria2c.1.txt
  729. * src/AbstractCommand.cc
  730. * src/OptionHandlerFactory.cc
  731. * src/bitfield.h
  732. * src/usage_text.h
  733. * src/util.cc
  734. * src/util.h
  735. * test/UtilTest.cc
  736. * test/bitfieldTest.cc
  737. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  738. Reduced interval for metadatagetmode to quickly gather metadata.
  739. * src/BtSetup.cc
  740. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Release 1.9.0
  742. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Updated po templates.
  744. * po/aria2.pot
  745. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. Updated doc.
  747. * doc/aria2c.1.txt
  748. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. Documented about Metalink4 and LPD in README
  750. * RADME
  751. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Few adjustment for timeouts in DHT. DHT message timeout is changed
  753. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  754. it adds another 5 seconds in each retry.
  755. * src/DHTConstants.h
  756. * src/DHTGetPeersCommand.cc
  757. * src/DHTGetPeersCommand.h
  758. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  759. Changed log level from error to info for DHT message send error.
  760. * src/DHTMessageDispatcherImpl.cc
  761. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  762. Inspect all xt in magnet to find urn:btih.
  763. * src/bittorrent_helper.cc
  764. * test/BittorrentHelperTest.cc
  765. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Use global option for DHTSetup.
  767. * src/DHTSetup.cc
  768. * src/DHTSetup.h
  769. * src/RequestGroup.cc
  770. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  771. Added bt-enable-lpt, reuse-uri
  772. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  773. options.
  774. * doc/aria2c.1.txt
  775. * doc/xmlrpc/aria2rpc
  776. * src/download_helper.cc
  777. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  779. * src/BtSetup.cc
  780. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Resurrected --http-proxy-user and --http-proxy-passwd option.
  782. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  783. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  784. * doc/aria2c.1.txt
  785. * src/OptionHandlerFactory.cc
  786. * src/OptionHandlerImpl.h
  787. * src/prefs.cc
  788. * src/prefs.h
  789. * src/usage_text.h
  790. * test/OptionHandlerTest.cc
  791. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Updated Russian and Simplified Chinese translation. Thanks to all
  793. translators.
  794. * po/ru.po
  795. * po/zh_CN.po
  796. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Updated po templates.
  798. * po/aria2.pot
  799. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. For LPD sockets, bind IN_ADDRANY because binding multicast address
  801. fails under Windows.
  802. * src/LpdMessageReceiver.cc
  803. * test/LpdMessageDispatcherTest.cc
  804. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Fixed the bug that error message is not propagated to Exception.
  806. * src/SocketCore.cc
  807. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Documented --bt-lpd-interface option in man page.
  809. * doc/aria2c.1.txt
  810. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Bump up version number to 1.9.0
  812. * configure.ac
  813. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Fixed the bug that FillRequestGroupCommand is not invoked when
  815. RequestGroupMan::createInitialCommand() creates no Command object.
  816. * src/FillRequestGroupCommand.cc
  817. * src/RequestGroupMan.cc
  818. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Added debug logs.
  820. * src/FileEntry.cc
  821. * src/SegmentMan.cc
  822. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Fixed unit test error with mingw32 build.
  824. * test/LpdMessageReceiverTest.cc
  825. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Updated automake-1.11.1
  827. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Fixed compile error and unit test error without openssl and
  829. gnutls.
  830. * src/MetalinkParserController.cc
  831. * test/MetalinkProcessorTest.cc
  832. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Fixed unitest fails if openssl doesn't support sha-256.
  834. * src/MetalinkParserStateV4Impl.cc
  835. * test/MetalinkProcessorTest.cc
  836. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Wait until message arrives(again)
  838. * test/LpdMessageReceiverTest.cc
  839. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  840. Added missing wallclock.h to SRCS.
  841. * src/Makefile.am
  842. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Fixed compile error with --disable-bittorrent
  844. * test/Metalink2RequestGroupTest.cc
  845. * test/MetalinkParserControllerTest.cc
  846. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Added --reuse-uri option. This option has existed quite long, but
  848. been hidden.
  849. * doc/aria2c.1.txt
  850. * src/OptionHandlerFactory.cc
  851. * src/usage_text.h
  852. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Ignore filename parameter if it contains directory traversal
  854. directives.
  855. * src/util.cc
  856. * test/UtilTest.cc
  857. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  858. urldecode -> percentDecode
  859. * src/FtpConnection.cc
  860. * src/FtpNegotiationCommand.cc
  861. * src/HttpResponse.cc
  862. * src/Request.cc
  863. * src/magnet.cc
  864. * src/util.cc
  865. * src/util.h
  866. * test/UtilTest.cc
  867. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  868. urlencode -> percentEncode,
  869. torrentUrlencode -> torrentPercentEncode
  870. * src/BtHandshakeMessage.cc
  871. * src/BtHandshakeMessageValidator.h
  872. * src/DHTMessageFactoryImpl.cc
  873. * src/DefaultBtAnnounce.cc
  874. * src/HandshakeExtensionMessage.cc
  875. * src/HttpRequest.cc
  876. * src/XmlRpcMethodImpl.cc
  877. * src/bittorrent_helper.cc
  878. * src/util.cc
  879. * src/util.h
  880. * test/DHTAnnouncePeerMessageTest.cc
  881. * test/DHTGetPeersMessageTest.cc
  882. * test/DHTGetPeersReplyMessageTest.cc
  883. * test/UTPexExtensionMessageTest.cc
  884. * test/UtilTest.cc
  885. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Fixed the bug that filename is percent encoded where it must be
  887. percent decoded in sendMdtm().
  888. * src/FtpConnection.cc
  889. * test/FtpConnectionTest.cc
  890. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. url -> uri in Request class.
  892. * src/AbstractCommand.cc
  893. * src/AdaptiveURISelector.cc
  894. * src/DefaultBtAnnounce.cc
  895. * src/FeedbackURISelector.cc
  896. * src/FileEntry.cc
  897. * src/FileEntry.h
  898. * src/HttpRequest.h
  899. * src/HttpResponse.cc
  900. * src/InitiateConnectionCommandFactory.cc
  901. * src/Metalink2RequestGroup.cc
  902. * src/OptionHandlerImpl.h
  903. * src/ProtocolDetector.cc
  904. * src/Request.cc
  905. * src/Request.h
  906. * src/XmlRpcMethodImpl.cc
  907. * test/AuthConfigFactoryTest.cc
  908. * test/FtpConnectionTest.cc
  909. * test/HttpRequestTest.cc
  910. * test/HttpResponseTest.cc
  911. * test/RequestTest.cc
  912. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  913. Added getServers XML-RPC method.
  914. * doc/aria2c.1.txt
  915. * src/FileEntry.h
  916. * src/XmlRpcMethodFactory.cc
  917. * src/XmlRpcMethodImpl.cc
  918. * src/XmlRpcMethodImpl.h
  919. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Pool request when download finished.
  921. * src/DownloadCommand.cc
  922. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  924. 1-based.
  925. * doc/aria2c.1.txt
  926. * src/XmlRpcMethodImpl.cc
  927. * test/XmlRpcMethodTest.cc
  928. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Call RequestGroupMan::requestQueueCheck() when
  930. max-concurrent-downloads option is changed or new downloads are
  931. added/inserted into reserved list.
  932. * src/RequestGroupMan.cc
  933. * src/XmlRpcMethodImpl.cc
  934. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  935. Added aria2.forceRemove XML-RPC method.
  936. * doc/aria2c.1.txt
  937. * src/XmlRpcMethodFactory.cc
  938. * src/XmlRpcMethodImpl.cc
  939. * src/XmlRpcMethodImpl.h
  940. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Added debug log.
  942. * src/AbstractCommand.cc
  943. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Create CreateRequestCommand to the number of -s/-C when URIs are
  945. added by XML-RPC.
  946. * src/RequestGroup.cc
  947. * src/RequestGroup.h
  948. * src/XmlRpcMethodImpl.cc
  949. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  950. Added 'status' key to the response of getUri XML-RPC method.
  951. * doc/aria2c.1.txt
  952. * src/XmlRpcMethodImpl.cc
  953. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Replaced Time::reset() call with assigning of global::wallclock.
  955. * src/BtLeecherStateChoke.cc
  956. * src/BtSeederStateChoke.cc
  957. * src/PeerSessionResource.cc
  958. * src/RequestSlot.cc
  959. * src/ServerStat.cc
  960. * src/SpeedCalc.cc
  961. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  962. Added changeUri XML-RPC method. This method removes/adds URIs
  963. dynamically.
  964. * doc/aria2c.1.txt
  965. * src/AbstractCommand.cc
  966. * src/DownloadContext.cc
  967. * src/DownloadContext.h
  968. * src/FileEntry.cc
  969. * src/FileEntry.h
  970. * src/Request.cc
  971. * src/Request.h
  972. * src/RequestGroup.cc
  973. * src/RequestGroupMan.cc
  974. * src/XmlRpcMethodFactory.cc
  975. * src/XmlRpcMethodImpl.cc
  976. * src/XmlRpcMethodImpl.h
  977. * test/FileEntryTest.cc
  978. * test/XmlRpcMethodTest.cc
  979. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  980. Rewritten copy ctor of RequestSlot to use initialization list.
  981. * src/RequestSlot.h
  982. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  983. Added Time global::wallclock to cache "current time" to reduce the
  984. call gettimeofday(). Global variables are now in namespace global.
  985. * src/AbstractCommand.cc
  986. * src/ActivePeerConnectionCommand.cc
  987. * src/AdaptiveURISelector.cc
  988. * src/BtLeecherStateChoke.cc
  989. * src/BtLeecherStateChoke.h
  990. * src/BtSeederStateChoke.cc
  991. * src/BtSeederStateChoke.h
  992. * src/BtStopDownloadCommand.cc
  993. * src/ConsoleStatCalc.cc
  994. * src/DHTBucket.cc
  995. * src/DHTGetPeersCommand.cc
  996. * src/DHTMessageTrackerEntry.cc
  997. * src/DHTNode.cc
  998. * src/DHTPeerAnnounceEntry.cc
  999. * src/DHTPeerAnnounceStorage.cc
  1000. * src/DHTSetup.cc
  1001. * src/DefaultBtAnnounce.cc
  1002. * src/DefaultBtInteractive.cc
  1003. * src/DefaultBtMessageDispatcher.cc
  1004. * src/DefaultPeerStorage.cc
  1005. * src/DefaultPieceStorage.cc
  1006. * src/DownloadCommand.cc
  1007. * src/DownloadEngine.cc
  1008. * src/FileEntry.cc
  1009. * src/HttpServerBodyCommand.cc
  1010. * src/HttpServerCommand.cc
  1011. * src/HttpServerResponseCommand.cc
  1012. * src/LpdMessageDispatcher.cc
  1013. * src/MultiUrlRequestInfo.cc
  1014. * src/Peer.cc
  1015. * src/Peer.h
  1016. * src/PeerAbstractCommand.cc
  1017. * src/PeerStat.h
  1018. * src/RequestSlot.cc
  1019. * src/RequestSlot.h
  1020. * src/SegmentMan.cc
  1021. * src/ServerStatMan.cc
  1022. * src/SleepCommand.cc
  1023. * src/SpeedCalc.cc
  1024. * src/SpeedCalc.h
  1025. * src/TimeA2.cc
  1026. * src/TimeA2.h
  1027. * src/TimeBasedCommand.cc
  1028. * src/TimeSeedCriteria.h
  1029. * src/UTMetadataRequestTracker.h
  1030. * src/UTPexExtensionMessage.cc
  1031. * src/wallclock.h
  1032. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Fixed the bug that util::itos(INT64_MIN) fails.
  1034. * src/util.cc
  1035. * src/util.h
  1036. * test/UtilTest.cc
  1037. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1038. Fixed memory leak in SocketBuffer when _bufq is not empty when
  1039. SocketBuffer is deleted. Added BufEntry constructor and deleted
  1040. static factory functions.
  1041. * src/SocketBuffer.cc
  1042. * src/SocketBuffer.h
  1043. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  1045. queue maintenance is requested by RequestGroup to avoid to call
  1046. the function unnecessarily.
  1047. * src/FillRequestGroupCommand.cc
  1048. * src/RequestGroup.cc
  1049. * src/RequestGroup.h
  1050. * src/RequestGroupMan.cc
  1051. * src/RequestGroupMan.h
  1052. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Don't use hash for Peer::id. Simple concatenation of ip address
  1054. and port is enough.
  1055. * src/Peer.cc
  1056. * test/PeerTest.cc
  1057. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Enclosed log of DHTMessage::toString() with Logger::info().
  1059. * src/DHTMessageDispatcherImpl.cc
  1060. * src/DHTMessageReceiver.cc
  1061. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Rewritten util::toHex().
  1063. * src/util.cc
  1064. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Removed SocketBuffer::feedAndSend(). Renamed
  1066. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  1067. * src/FtpConnection.cc
  1068. * src/HttpConnection.cc
  1069. * src/HttpServer.cc
  1070. * src/MSEHandshake.cc
  1071. * src/PeerConnection.cc
  1072. * src/SocketBuffer.cc
  1073. * src/SocketBuffer.h
  1074. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. Removed unused PeerConnection::sendMessage(). Updated doc.
  1076. * src/PeerConnection.cc
  1077. * src/PeerConnection.h
  1078. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Reduced copying/std::string instantiation in sending/receiving
  1080. BitTorrent messages.
  1081. * src/BtBitfieldMessage.cc
  1082. * src/BtBitfieldMessage.h
  1083. * src/BtExtendedMessage.cc
  1084. * src/BtExtendedMessage.h
  1085. * src/BtHandshakeMessage.cc
  1086. * src/BtHandshakeMessage.h
  1087. * src/BtKeepAliveMessage.cc
  1088. * src/BtKeepAliveMessage.h
  1089. * src/BtPieceMessage.cc
  1090. * src/BtPieceMessage.h
  1091. * src/BtPortMessage.cc
  1092. * src/BtPortMessage.h
  1093. * src/BtUnchokeMessage.h
  1094. * src/DefaultBtMessageReceiver.cc
  1095. * src/IndexBtMessage.cc
  1096. * src/IndexBtMessage.h
  1097. * src/PeerConnection.cc
  1098. * src/PeerConnection.h
  1099. * src/RangeBtMessage.cc
  1100. * src/RangeBtMessage.h
  1101. * src/SimpleBtMessage.cc
  1102. * src/SimpleBtMessage.h
  1103. * src/SocketBuffer.cc
  1104. * src/SocketBuffer.h
  1105. * src/ZeroBtMessage.cc
  1106. * src/ZeroBtMessage.h
  1107. * test/BtAllowedFastMessageTest.cc
  1108. * test/BtBitfieldMessageTest.cc
  1109. * test/BtCancelMessageTest.cc
  1110. * test/BtChokeMessageTest.cc
  1111. * test/BtExtendedMessageTest.cc
  1112. * test/BtHandshakeMessageTest.cc
  1113. * test/BtHaveAllMessageTest.cc
  1114. * test/BtHaveMessageTest.cc
  1115. * test/BtHaveNoneMessageTest.cc
  1116. * test/BtInterestedMessageTest.cc
  1117. * test/BtKeepAliveMessageTest.cc
  1118. * test/BtNotInterestedMessageTest.cc
  1119. * test/BtPieceMessageTest.cc
  1120. * test/BtPortMessageTest.cc
  1121. * test/BtRejectMessageTest.cc
  1122. * test/BtRequestMessageTest.cc
  1123. * test/BtSuggestPieceMessageTest.cc
  1124. * test/BtUnchokeMessageTest.cc
  1125. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1126. Rewritten SocketBuffer. Old implementation uses single std::string
  1127. to store data and erase sent data, which is costly. New
  1128. implementation uses deque to hold each data to avoid to mutate
  1129. string.
  1130. * src/SocketBuffer.cc
  1131. * src/SocketBuffer.h
  1132. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Removed unused FileEntry::extracted
  1134. * src/FileEntry.cc
  1135. * src/FileEntry.h
  1136. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Wait until data arrives.
  1138. * test/LpdMessageReceiverTest.cc
  1139. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. In Metalink4, if size element contains invalid size, discard whole
  1141. document. Added strict hash value check for metalink3/4.
  1142. * src/MetalinkParserController.cc
  1143. * src/MetalinkParserStateMachine.cc
  1144. * src/MetalinkParserStateMachine.h
  1145. * src/MetalinkParserStateV3Impl.cc
  1146. * src/MetalinkParserStateV4Impl.cc
  1147. * src/util.cc
  1148. * src/util.h
  1149. * test/MetalinkParserControllerTest.cc
  1150. * test/MetalinkProcessorTest.cc
  1151. * test/metalink4.xml
  1152. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1153. Added strict attribute validation for metalink4. When
  1154. specification violation is found, discard the whole document.
  1155. * src/ExpatMetalinkProcessor.cc
  1156. * src/MetalinkParserStateMachine.cc
  1157. * src/MetalinkParserStateMachine.h
  1158. * src/MetalinkParserStateV4Impl.cc
  1159. * src/XML2SAXMetalinkProcessor.cc
  1160. * test/Makefile.am
  1161. * test/MetalinkProcessorTest.cc
  1162. * test/metalink4-attrs.xml: Removed
  1163. * test/metalink4-dirtraversal.xml: Removed
  1164. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Added test for Metaurl transaction.
  1166. * src/MetalinkParserController.cc
  1167. * test/MetalinkParserControllerTest.cc
  1168. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Avoid costly BtMessage::toString() if info level log is not
  1170. required.
  1171. * src/DefaultBtInteractive.cc
  1172. * src/Logger.h
  1173. * src/SimpleBtMessage.cc
  1174. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. Reserved vector elements based on profiler results.
  1176. * src/DefaultBtInteractive.cc
  1177. * src/DefaultBtProgressInfoFile.cc
  1178. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1179. Avoid to calculate end() iterator in each loop. std::deque is
  1180. particularly slow. Make sure that recalculate end iterator if
  1181. element is erased during loop.
  1182. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Use vector instead of deque for containers which is used for
  1184. mostly read-only purpose.
  1185. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Fixed typo
  1187. * test/Makefile.am
  1188. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1189. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  1190. * test/Makefile.am
  1191. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1192. Small optimization: In updateTransferStatFor(), don't search peer
  1193. ID twice.
  1194. * src/DefaultPeerStorage.cc
  1195. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. Use vector instead of deque for MetalinkEntry and MetalinkResource
  1197. objects.
  1198. * src/Metalink2RequestGroup.cc
  1199. * src/Metalink2RequestGroup.h
  1200. * src/MetalinkEntry.cc
  1201. * src/MetalinkEntry.h
  1202. * src/MetalinkHelper.cc
  1203. * src/MetalinkHelper.h
  1204. * src/Metalinker.cc
  1205. * src/Metalinker.h
  1206. * src/main.cc
  1207. * test/MetalinkEntryTest.cc
  1208. * test/MetalinkHelperTest.cc
  1209. * test/MetalinkProcessorTest.cc
  1210. * test/MetalinkerTest.cc
  1211. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. Fixed the bug that grouped FileEntry objects are not used but
  1213. instead all FileEntry objects are used for each metaurl group.
  1214. * src/Metalink2RequestGroup.cc
  1215. * test/Metalink2RequestGroupTest.cc
  1216. * test/metalink4-groupbymetaurl.xml
  1217. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1218. Use vector instead of deque for ChunkChecksum.
  1219. * src/ChunkChecksum.h
  1220. * src/MetalinkParserController.cc
  1221. * src/MetalinkParserController.h
  1222. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1223. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  1224. algorithm in Metalink properly
  1225. * src/MetalinkParserController.cc
  1226. * src/MetalinkParserController.h
  1227. * src/messageDigest.cc
  1228. * src/messageDigest.h
  1229. * test/MetalinkProcessorTest.cc
  1230. * test/metalink4.xml
  1231. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1232. Replaced null or control characters in file path with '_'. For
  1233. MinGW32 build, additional characters which is not allowed in
  1234. Windows kernel are also replaced. util::detectDirTraversal() now
  1235. returns true if given string contains null or control characters.
  1236. * src/DownloadContext.cc
  1237. * src/DownloadContext.h
  1238. * src/Metalink2RequestGroup.cc
  1239. * src/MetalinkParserController.cc
  1240. * src/bittorrent_helper.cc
  1241. * src/util.cc
  1242. * src/util.h
  1243. * test/UtilTest.cc
  1244. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Discard metalink:file if its name attribute is empty string.
  1246. Removed FileEntry instantiation in
  1247. MetalinkParserController::setFileLengthOfEntry()
  1248. * src/MetalinkParserController.cc
  1249. * src/MetalinkParserStateV3Impl.cc
  1250. * src/MetalinkParserStateV4Impl.cc
  1251. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Discard torrent file if path data in it contains directory
  1253. traversal directives. Discard metalink:file element in Metalink3
  1254. format if its name attribute contains directory traversal
  1255. directives. Ignore name attribute of metalink:signature element
  1256. in Metalink3 format if it contains directory traversal directives.
  1257. * src/MetalinkParserStateV3Impl.cc
  1258. * src/bittorrent_helper.cc
  1259. * src/message.h
  1260. * test/BittorrentHelperTest.cc
  1261. * test/Makefile.am
  1262. * test/MetalinkProcessorTest.cc
  1263. * test/metalink3-dirtraversal.xml
  1264. * test/test.xml
  1265. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1266. Removed useless comment
  1267. * src/MetalinkParserStateV4Impl.cc
  1268. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. Supported name attribute of metalink::metaurl element and
  1270. multi-file torrent with Metalink4. Files with same metaurl are
  1271. grouped and downloaded in one RequestGroup.
  1272. * src/BtDependency.cc
  1273. * src/FileEntry.h
  1274. * src/Metalink2RequestGroup.cc
  1275. * src/Metalink2RequestGroup.h
  1276. * src/MetalinkEntry.cc
  1277. * src/MetalinkEntry.h
  1278. * src/MetalinkHelper.cc
  1279. * src/MetalinkHelper.h
  1280. * src/MetalinkMetaurl.cc
  1281. * src/MetalinkMetaurl.h
  1282. * src/MetalinkParserController.cc
  1283. * src/RequestGroup.cc
  1284. * src/RequestGroup.h
  1285. * src/bittorrent_helper.cc
  1286. * test/BittorrentHelperTest.cc
  1287. * test/BtDependencyTest.cc
  1288. * test/MetalinkHelperTest.cc
  1289. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  1291. * src/MetalinkMetaurl.h
  1292. * src/MetalinkParserController.cc
  1293. * src/MetalinkParserController.h
  1294. * src/MetalinkParserStateMachine.cc
  1295. * src/MetalinkParserStateMachine.h
  1296. * src/MetalinkParserStateV4Impl.cc
  1297. * test/MetalinkProcessorTest.cc
  1298. * test/metalink4-dirtraversal.xml
  1299. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  1301. element.
  1302. * src/Makefile.am
  1303. * src/Metalink2RequestGroup.cc
  1304. * src/MetalinkEntry.cc
  1305. * src/MetalinkEntry.h
  1306. * src/MetalinkMetaurl.cc
  1307. * src/MetalinkMetaurl.h
  1308. * src/MetalinkParserController.cc
  1309. * src/MetalinkParserController.h
  1310. * src/MetalinkParserStateMachine.cc
  1311. * src/MetalinkParserStateMachine.h
  1312. * src/MetalinkParserStateV4Impl.cc
  1313. * src/MetalinkParserStateV4Impl.h
  1314. * test/MetalinkProcessorTest.cc
  1315. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Added Metalink4 support. Currently, name attribute of
  1317. metalink::metaurl is ignored and multi-file torrent cannot be used
  1318. with Metalink4.
  1319. * doc/aria2c.1.txt
  1320. * src/DownloadHandlerConstants.cc
  1321. * src/ExpatMetalinkProcessor.cc
  1322. * src/Makefile.am
  1323. * src/Metalink2RequestGroup.cc
  1324. * src/MetalinkEntry.cc
  1325. * src/MetalinkEntry.h
  1326. * src/MetalinkParserController.cc
  1327. * src/MetalinkParserController.h
  1328. * src/MetalinkParserState.h
  1329. * src/MetalinkParserStateImpl.cc
  1330. * src/MetalinkParserStateImpl.h
  1331. * src/MetalinkParserStateMachine.cc
  1332. * src/MetalinkParserStateMachine.h
  1333. * src/MetalinkParserStateV3Impl.cc
  1334. * src/MetalinkParserStateV3Impl.h
  1335. * src/MetalinkParserStateV4Impl.cc
  1336. * src/MetalinkParserStateV4Impl.h
  1337. * src/MetalinkResource.cc
  1338. * src/MetalinkResource.h
  1339. * src/Metalinker.cc
  1340. * src/RequestGroup.cc
  1341. * src/RequestGroup.h
  1342. * src/XML2SAXMetalinkProcessor.cc
  1343. * src/messageDigest.cc
  1344. * src/util.cc
  1345. * src/util.h
  1346. * test/Makefile.am
  1347. * test/MetalinkEntryTest.cc
  1348. * test/MetalinkParserControllerTest.cc
  1349. * test/MetalinkProcessorTest.cc
  1350. * test/MetalinkerTest.cc
  1351. * test/UtilTest.cc
  1352. * test/metalink4-attrs.xml
  1353. * test/metalink4-dirtraversal.xml
  1354. * test/metalink4.xml
  1355. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1356. Added aiFlags argument to getInterfaceAddress(). Use
  1357. AI_NUMERICHOST to find interface specified using
  1358. --bt-lpd-interface option to avoid time-consuming address lookup.
  1359. * src/BtSetup.cc
  1360. * src/SocketCore.cc
  1361. * src/SocketCore.h
  1362. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  1364. is bad in LpdMessageReceiver.
  1365. * src/LpdMessage.h
  1366. * src/LpdMessageReceiver.cc
  1367. * src/LpdMessageReceiver.h
  1368. * src/LpdReceiveMessageCommand.cc
  1369. * test/LpdMessageReceiverTest.cc
  1370. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1371. Added --bt-lpd-interface option to specify the interface to use
  1372. for Local Peer Discovery. LpdMessageDispatcher object now has its
  1373. own socket. LpdMessageReceiver's socket is binded to multicast
  1374. address to only receive multicast packets.
  1375. * src/BtSetup.cc
  1376. * src/LpdMessageDispatcher.cc
  1377. * src/LpdMessageDispatcher.h
  1378. * src/LpdMessageReceiver.cc
  1379. * src/LpdMessageReceiver.h
  1380. * src/LpdReceiveMessageCommand.cc
  1381. * src/LpdReceiveMessageCommand.h
  1382. * src/OptionHandlerFactory.cc
  1383. * src/SocketCore.cc
  1384. * src/SocketCore.h
  1385. * src/prefs.cc
  1386. * src/prefs.h
  1387. * src/usage_text.h
  1388. * test/LpdMessageDispatcherTest.cc
  1389. * test/LpdMessageReceiverTest.cc
  1390. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1391. Put the portion of code to get interface addresses in
  1392. SocketCore::bindAddress() into newly added getInterfaceAddress().
  1393. * src/SocketCore.cc
  1394. * src/SocketCore.h
  1395. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Rewritten util::parseInt() and parseUInt()
  1397. * src/util.cc
  1398. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. Fixed compile error with mingw32 cross compiler. Defined
  1400. a2_sockopt_t as void* for the target systems other than mingw32.
  1401. * src/SocketCore.cc
  1402. * src/a2netcompat.h
  1403. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Removed 'always true' condition
  1405. * src/util.cc
  1406. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Documented --bt-enable-lpd option in man page.
  1408. * doc/aria2c.1.txt
  1409. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. Added Local Peer Discovery. It is disabled by default. Use
  1411. --bt-enable-lpd to enable the function.
  1412. * src/BtConstants.h
  1413. * src/BtSetup.cc
  1414. * src/LpdDispatchMessageCommand.cc
  1415. * src/LpdDispatchMessageCommand.h
  1416. * src/LpdMessage.h
  1417. * src/LpdMessageDispatcher.cc
  1418. * src/LpdMessageDispatcher.h
  1419. * src/LpdMessageReceiver.cc
  1420. * src/LpdMessageReceiver.h
  1421. * src/LpdReceiveMessageCommand.cc
  1422. * src/LpdReceiveMessageCommand.h
  1423. * src/Makefile.am
  1424. * src/OptionHandlerFactory.cc
  1425. * src/Peer.cc
  1426. * src/Peer.h
  1427. * src/PeerInteractionCommand.cc
  1428. * src/SocketCore.cc
  1429. * src/SocketCore.h
  1430. * src/prefs.cc
  1431. * src/prefs.h
  1432. * src/usage_text.h
  1433. * src/util.cc
  1434. * src/util.h
  1435. * test/LpdMessageDispatcherTest.cc
  1436. * test/LpdMessageReceiverTest.cc
  1437. * test/Makefile.am
  1438. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. User-defined custom request headers specified by --header option
  1440. now override builtin headers if they have same name.
  1441. * src/HttpRequest.cc
  1442. * src/HttpRequest.h
  1443. * test/HttpRequestTest.cc
  1444. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1445. Rewirtten util::isNumber()
  1446. * src/util.cc
  1447. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1448. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  1449. because without it localized error messages are not printed
  1450. correctly.
  1451. * src/Platform.cc
  1452. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. Added unit tests for util::getContentDispositionFilename() from
  1454. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  1455. tests are passed.
  1456. * src/util.cc
  1457. * test/UtilTest.cc
  1458. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  1460. util.cc
  1461. * src/Platform.cc
  1462. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Support RFC2231 "Parameter Value Character Set and Language
  1464. Information" in Content-Disposition header.
  1465. * src/HttpResponse.cc
  1466. * src/util.cc
  1467. * src/util.h
  1468. * test/UtilTest.cc
  1469. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Print CXXFLAGS
  1471. * configure.ac
  1472. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1473. Small optimization for A2_WOULDBLOCK(e)
  1474. * src/SocketCore.cc
  1475. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1476. Removed test file
  1477. * test/CookieStorageTest.cc
  1478. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Check both EAGAIN and EWOULDBLOCK
  1480. * src/SocketCore.cc
  1481. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Removed ret == 0 checking for SSL_read(), SSL_write() and
  1483. SSL_peek() because the checks are done in the caller. In
  1484. SocketBuffer::send(), throw exception if nothing could be written
  1485. and socket error was not EWOULDBLOCK
  1486. * src/SocketBuffer.cc
  1487. * src/SocketCore.cc
  1488. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Fixed error code handling so that it can handle Winsock2 error
  1490. code.
  1491. * src/SocketCore.cc
  1492. * src/SocketCore.h
  1493. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Bump up version number to 1.9.0a
  1495. * configure.ac
  1496. * doc/aria2c.1.txt
  1497. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1498. Fixed the bug that aria2 doesn't handle return value if error
  1499. occurred before download begins.
  1500. * src/MultiUrlRequestInfo.cc
  1501. * src/main.cc
  1502. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Removed SegmentManFactory class.
  1504. * src/AbstractSegmentManFactory.h
  1505. * src/DefaultSegmentManFactory.cc
  1506. * src/DefaultSegmentManFactory.h
  1507. * src/Makefile.am
  1508. * src/RequestGroup.cc
  1509. * src/RequestGroup.h
  1510. * src/SegmentManFactory.h
  1511. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1512. Destroyed digest context after getting calculated hash.
  1513. * src/Piece.cc
  1514. * src/Piece.h
  1515. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1516. Removed BitfieldManFactory class.
  1517. * src/BitfieldManFactory.cc
  1518. * src/BitfieldManFactory.h
  1519. * src/DefaultPieceStorage.cc
  1520. * src/Makefile.am
  1521. * src/PeerSessionResource.cc
  1522. * src/Piece.cc
  1523. * src/main.cc
  1524. * test/DefaultPieceStorageTest.cc
  1525. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Removed unused methods from BitfieldMan class. Moved
  1527. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  1528. class.
  1529. * src/BitfieldMan.cc
  1530. * src/BitfieldMan.h
  1531. * src/BitfieldManFactory.cc
  1532. * src/BitfieldManFactory.h
  1533. * src/bitfield.h
  1534. * src/main.cc
  1535. * test/BitfieldManTest.cc
  1536. * test/DefaultPieceStorageTest.cc
  1537. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1538. Moved getFirstNMissingIndex to bitfield.h and made it return the
  1539. number of appended indexes.
  1540. * src/BitfieldMan.cc
  1541. * src/BitfieldMan.h
  1542. * src/Piece.cc
  1543. * src/Piece.h
  1544. * src/bitfield.h
  1545. * test/BitfieldManTest.cc
  1546. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Added more tests.
  1548. * test/BitfieldManTest.cc
  1549. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  1551. unused block indexes at once instead of calling
  1552. getFirstMissingUnusedIndex() multiple times. Made use of it in
  1553. Piece class and DefaultBtRequestFactory class via Piece class.
  1554. * src/BitfieldMan.cc
  1555. * src/BitfieldMan.h
  1556. * src/DefaultBtRequestFactory.cc
  1557. * src/Piece.cc
  1558. * src/Piece.h
  1559. * test/BitfieldManTest.cc
  1560. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. Use std::make_pair(...)
  1562. * src/DHTMessageTracker.cc
  1563. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Use std::make_pair(...)
  1565. * src/bittorrent_helper.cc
  1566. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1567. urlencode(removeFragment(...)) in parseUrl(...)
  1568. * src/Request.cc
  1569. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1570. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  1571. * src/AbstractCommand.cc
  1572. * src/AdaptiveURISelector.cc
  1573. * src/BtPieceMessage.cc
  1574. * src/BtPortMessage.cc
  1575. * src/CreateRequestCommand.cc
  1576. * src/DHTAbstractNodeLookupTask.cc
  1577. * src/DHTBucket.cc
  1578. * src/DHTGetPeersCommand.cc
  1579. * src/DHTMessageDispatcherImpl.cc
  1580. * src/DHTMessageFactoryImpl.cc
  1581. * src/DHTMessageTracker.cc
  1582. * src/DHTPeerAnnounceStorage.cc
  1583. * src/DHTRoutingTable.cc
  1584. * src/DHTSetup.cc
  1585. * src/DefaultBtAnnounce.cc
  1586. * src/DefaultBtInteractive.cc
  1587. * src/DefaultBtMessageDispatcher.cc
  1588. * src/DefaultBtMessageReceiver.cc
  1589. * src/DefaultBtProgressInfoFile.cc
  1590. * src/DefaultBtRequestFactory.cc
  1591. * src/DefaultPeerStorage.cc
  1592. * src/DefaultPieceStorage.cc
  1593. * src/DownloadCommand.cc
  1594. * src/DownloadEngine.cc
  1595. * src/EpollEventPoll.cc
  1596. * src/FileAllocationCommand.cc
  1597. * src/FileEntry.cc
  1598. * src/FtpNegotiationCommand.cc
  1599. * src/HandshakeExtensionMessage.cc
  1600. * src/HttpListenCommand.cc
  1601. * src/HttpServer.cc
  1602. * src/HttpSkipResponseCommand.cc
  1603. * src/IteratableChunkChecksumValidator.cc
  1604. * src/Logger.h
  1605. * src/MSEHandshake.cc
  1606. * src/MetalinkPostDownloadHandler.cc
  1607. * src/MultiDiskAdaptor.cc
  1608. * src/PeerAbstractCommand.cc
  1609. * src/PeerConnection.cc
  1610. * src/PeerListenCommand.cc
  1611. * src/PeerReceiveHandshakeCommand.cc
  1612. * src/RequestGroup.cc
  1613. * src/RequestGroupMan.cc
  1614. * src/SegmentMan.cc
  1615. * src/SelectEventPoll.cc
  1616. * src/ServerStat.cc
  1617. * src/SimpleBtMessage.cc
  1618. * src/SocketCore.cc
  1619. * src/TrackerWatcherCommand.cc
  1620. * src/UTMetadataDataExtensionMessage.cc
  1621. * src/UTMetadataRequestFactory.cc
  1622. * src/UTMetadataRequestTracker.cc
  1623. * src/XmlRpcMethod.cc
  1624. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Changed log level from debug to info
  1626. * src/BtDependency.cc
  1627. * src/BtPostDownloadHandler.cc
  1628. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1629. Removed unused PeerSessionResource::_latency.
  1630. * src/BtConstants.h
  1631. * src/BtPieceMessage.cc
  1632. * src/Peer.cc
  1633. * src/Peer.h
  1634. * src/PeerSessionResource.cc
  1635. * src/PeerSessionResource.h
  1636. * test/PeerSessionResourceTest.cc
  1637. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1638. Fixed the bug that --file-allocation=falloc doesn't work with
  1639. single file download.
  1640. * src/AbstractSingleDiskAdaptor.cc
  1641. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1642. Release 1.8.2
  1643. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Added Portuguese translation. Updated Ukrainian and Spanish
  1645. translation. Thanks to all translators.
  1646. * po/LINGUAS
  1647. * po/es.po
  1648. * po/pt.po
  1649. * po/uk.po
  1650. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1651. Remove fragment from redirected URI.
  1652. * src/Request.cc
  1653. * test/RequestTest.cc
  1654. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Updated po templates.
  1656. * po/aria2.pot
  1657. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Drop legacy ifdef for ares support and code cleanup.
  1659. * src/AsyncNameResolver.cc
  1660. * src/AsyncNameResolver.h
  1661. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1662. Call ares_library_init and ares_library_cleanup if they are
  1663. available. Some code cleanups.
  1664. * src/Platform.cc
  1665. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1666. Call ares_process_fd() each time after epoll to handle timeout.
  1667. * src/EpollEventPoll.cc
  1668. * src/EpollEventPoll.h
  1669. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Suppressed type-cast compiler warning
  1671. * src/CookieStorage.cc
  1672. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Fixed compile error on Mac OS X.
  1674. * src/CookieStorage.h
  1675. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1676. Removed cookietest.txt from Makefile.am
  1677. * test/Makefile.am
  1678. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1679. Updated version number in man page.
  1680. * doc/aria2c.1.txt
  1681. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. Rewritten help message for --allow-overwrite option.
  1683. * doc/aria2c.1.txt
  1684. * src/usage_text.h
  1685. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1686. Added bittorrent key to the response of tellStatus XML-RPC method.
  1687. The associated value of the key is a struct and contains data
  1688. retrieved from .torrent file, such as name, announce-list,
  1689. comment, etc.
  1690. * doc/aria2c.1.txt
  1691. * src/XmlRpcMethodImpl.cc
  1692. * src/XmlRpcMethodImpl.h
  1693. * test/XmlRpcMethodTest.cc
  1694. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1695. Removed parse(std::istream&) and parse(const std::string&) from
  1696. CookieParser.
  1697. * src/CookieParser.cc
  1698. * src/CookieParser.h
  1699. * test/CookieParserTest.cc
  1700. * test/cookietest.txt: Removed
  1701. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Fixed the bug that cookie for domain a.b.c is not sent to the host
  1703. a.b.c if no other cookies are stored. Fixed the bug that
  1704. Cookie::markOriginServerOnly() is not called when cookies are
  1705. loaded from file/sqlite3 database.
  1706. * src/Cookie.h
  1707. * src/CookieStorage.cc
  1708. * src/NsCookieParser.cc
  1709. * src/Sqlite3MozCookieParser.cc
  1710. * test/CookieStorageTest.cc
  1711. * test/NsCookieParserTest.cc
  1712. * test/Sqlite3MozCookieParserTest.cc
  1713. * test/cookies.sqlite
  1714. * test/nscookietest.txt
  1715. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1716. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  1717. both _pieceStorage and _segmentMan are initialized or they are
  1718. not.
  1719. * src/RequestGroup.cc
  1720. * src/RequestGroup.h
  1721. * test/BtDependencyTest.cc
  1722. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1723. Bump up version number to 1.8.2
  1724. * configure.ac
  1725. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1726. Replaced "." with A2STR::DOT_C
  1727. * src/AbstractCommand.cc
  1728. * src/Cookie.cc
  1729. * src/DownloadContext.cc
  1730. * src/FtpConnection.cc
  1731. * src/RequestGroup.cc
  1732. * src/util.cc
  1733. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Replaced isNumberAndDotsNotation() with isNumericHost().
  1735. isNumericHost() can handle IPv6 address.
  1736. * src/Cookie.cc
  1737. * src/CookieStorage.cc
  1738. * src/util.cc
  1739. * src/util.h
  1740. * test/CookieTest.cc
  1741. * test/UtilTest.cc
  1742. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1743. Included A2STR.h
  1744. * src/CookieStorage.cc
  1745. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1746. Rewritten Cookie storage.
  1747. * src/Cookie.cc
  1748. * src/Cookie.h
  1749. * src/CookieParser.cc
  1750. * src/CookieStorage.cc
  1751. * src/CookieStorage.h
  1752. * src/a2functional.h
  1753. * test/CookieParserTest.cc
  1754. * test/CookieStorageTest.cc
  1755. * test/CookieTest.cc
  1756. * test/HttpResponseTest.cc
  1757. * test/TestUtil.h
  1758. * test/a2functionalTest.cc
  1759. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1760. Handle redirected URI which is not properly percent encoded.
  1761. * src/Request.cc
  1762. * test/RequestTest.cc
  1763. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1764. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1765. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1766. in a row without single '200 OK' response.
  1767. * src/RequestGroup.cc.
  1768. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1770. readout by 80 characters in mingw32 build. Catch exception in
  1771. DHTMessageReceiver::receiveMessage().
  1772. * src/AbstractDiskWriter.cc
  1773. * src/ConsoleStatCalc.cc
  1774. * src/DHTMessageReceiver.cc
  1775. * src/File.cc
  1776. * src/RequestGroupMan.cc
  1777. * src/a2io.h
  1778. * test/FileTest.cc
  1779. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1780. Fixed compile error with intel compiler
  1781. * src/XmlRpcMethodImpl.cc
  1782. * src/XmlRpcMethodImpl.h
  1783. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1784. Release 1.8.1
  1785. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Updated Swedish, Russian and Italian translations. Thanks to all
  1787. translators.
  1788. * po/it.po
  1789. * po/ru.po
  1790. * po/sv.po
  1791. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1792. Fixed broken OptionParser::findByName().
  1793. * src/OptionParser.cc
  1794. * test/OptionParserTest.cc
  1795. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Fixed test error without BitTorrent support.
  1797. * test/XmlRpcMethodTest.cc
  1798. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1799. Fixed compile error without GNUTLS/OpenSSL.
  1800. * src/util.cc
  1801. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Changed compression level to Z_DEFAULT_COMPRESSION.
  1803. * src/GZipEncoder.cc
  1804. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Added missing command line options: --http-no-cache,
  1806. --bt-save-metadata and --bt-metadata-only.
  1807. * doc/xmlrpc/aria2rpc
  1808. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1809. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1810. client accepts gzip content encoding.
  1811. * src/A2STR.cc
  1812. * src/A2STR.h
  1813. * src/GZipEncoder.cc
  1814. * src/GZipEncoder.h
  1815. * src/HttpHeader.cc
  1816. * src/HttpHeader.h
  1817. * src/HttpServer.cc
  1818. * src/HttpServer.h
  1819. * src/HttpServerBodyCommand.cc
  1820. * src/HttpServerCommand.cc
  1821. * src/Makefile.am
  1822. * src/XmlRpcResponse.cc
  1823. * src/XmlRpcResponse.h
  1824. * test/GZipEncoderTest.cc
  1825. * test/Makefile.am
  1826. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1827. Added XML-RPC client sample code in Python.
  1828. * doc/aria2c.1.txt
  1829. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1830. Updated po templates.
  1831. * po/aria2.pot
  1832. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1833. Bump up version number to 1.8.1
  1834. * configure.ac
  1835. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Added version number to man page. Updated copyright year in man
  1837. page.
  1838. * doc/aria2c.1.txt
  1839. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1840. Rewritten toTagString
  1841. * src/NameMatchOptionHandler.cc
  1842. * test/OptionHandlerTest.cc
  1843. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1844. Added dir and files key to the response struct of aria2.tellStatus
  1845. XML-RPC method. The value associated with files key is the list
  1846. of files. Its element is the same struct used in aria2.getFiles
  1847. XML-RPC method. Added uris key to the response struct of
  1848. aria2.getFiles XML-RPC method. The value associated with uris key
  1849. is the list of URIs. Its element is the same struct used in
  1850. aria2.getUris XML-RPC method.
  1851. * doc/aria2c.1.txt
  1852. * src/XmlRpcMethodImpl.cc
  1853. * test/XmlRpcMethodTest.cc
  1854. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1855. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1856. struct containing Session ID, which is generated each time when
  1857. aria2 is invoked.
  1858. * doc/aria2c.1.txt
  1859. * doc/xmlrpc/aria2rpc
  1860. * src/DownloadEngine.cc
  1861. * src/DownloadEngine.h
  1862. * src/XmlRpcMethodFactory.cc
  1863. * src/XmlRpcMethodImpl.cc
  1864. * src/XmlRpcMethodImpl.h
  1865. * test/XmlRpcMethodTest.cc
  1866. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1867. Moved generateRandomKey() from bittorrent_helper to util.
  1868. * src/DHTBucket.cc
  1869. * src/DHTNode.cc
  1870. * src/bittorrent_helper.cc
  1871. * src/bittorrent_helper.h
  1872. * src/util.cc
  1873. * src/util.h
  1874. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1875. Updated doc about GID.
  1876. * doc/aria2c.1.txt
  1877. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1878. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1879. accepts a negative integer. 'offset' == -1 points last download
  1880. in the waiting queue and 'offset' == -2 points the download before
  1881. the last download, and so on. The downloads in the response are in
  1882. reversed order.
  1883. * doc/aria2c.1.txt
  1884. * src/XmlRpcMethodImpl.cc
  1885. * src/XmlRpcMethodImpl.h
  1886. * test/XmlRpcMethodTest.cc
  1887. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Added --human-readable option. This option, when true is given,
  1889. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1890. 3.4Mi) in the console readout. The default value is true and it
  1891. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1892. appears when false is given. In this case, sizes and speed are
  1893. printed without in bytes. No Ki, Mi units conversion is used.
  1894. This may be useful for a program to parse the output of aria2.
  1895. * doc/aria2c.1.txt
  1896. * src/ConsoleStatCalc.cc
  1897. * src/ConsoleStatCalc.h
  1898. * src/OptionHandlerFactory.cc
  1899. * src/main.cc
  1900. * src/prefs.cc
  1901. * src/prefs.h
  1902. * src/usage_text.h
  1903. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1905. option accepts empty string "". When "" is given, it erases
  1906. previously defined proxy.
  1907. * doc/aria2c.1.txt
  1908. * src/OptionHandlerImpl.h
  1909. * src/usage_text.h
  1910. * test/OptionHandlerTest.cc
  1911. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Code cleanup for proxy URI handling.
  1913. * src/AbstractCommand.cc
  1914. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Added --bt-metadata-only option. If true is given to this option,
  1916. aria2 downloads metadata only. The file(s) described in metadata
  1917. will not be downloaded. This option has effect only when
  1918. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1919. * doc/aria2c.1.txt
  1920. * src/OptionHandlerFactory.cc
  1921. * src/UTMetadataPostDownloadHandler.cc
  1922. * src/download_helper.cc
  1923. * src/prefs.cc
  1924. * src/prefs.h
  1925. * src/usage_text.h
  1926. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1927. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1928. deleted when exception is thrown. Make sure that when passing
  1929. std::deque<Command*> to function to store Commands, handle
  1930. exception and delete these Commands.
  1931. * src/AbstractCommand.cc
  1932. * src/CheckIntegrityCommand.cc
  1933. * src/FileAllocationCommand.cc
  1934. * src/RequestGroup.cc
  1935. * src/TrackerWatcherCommand.cc
  1936. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1937. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1938. * src/A2STR.cc
  1939. * src/A2STR.h
  1940. * src/FtpNegotiationCommand.cc
  1941. * src/HttpResponseCommand.cc
  1942. * src/util.cc
  1943. * src/util.h
  1944. * test/UtilTest.cc
  1945. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1946. Treat --dir="" as --dir="."
  1947. * src/FtpNegotiationCommand.cc
  1948. * src/HttpResponseCommand.cc
  1949. * src/Metalink2RequestGroup.cc
  1950. * src/UTMetadataPostDownloadHandler.cc
  1951. * src/bittorrent_helper.cc
  1952. * src/download_helper.cc
  1953. * src/util.cc
  1954. * src/util.h
  1955. * test/UtilTest.cc
  1956. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. Code clean up.
  1958. * src/main.cc
  1959. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1960. Reset GID to 1 when they reach maximum value. Rewritten
  1961. CUIDCounter::newID()
  1962. * src/CUIDCounter.h
  1963. * src/RequestGroup.cc
  1964. * src/RequestGroup.h
  1965. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1966. Documented --http-no-cache option in man page.
  1967. * doc/aria2c.1.txt
  1968. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1969. Added --http-no-cache option. When true is given, aria2 sends
  1970. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1971. cached content. If false is given , these headers are not sent
  1972. and you can add Cache-Control header with a directive you like
  1973. using --header option.
  1974. * src/HttpRequest.cc
  1975. * src/HttpRequest.h
  1976. * src/HttpRequestCommand.cc
  1977. * src/OptionHandlerFactory.cc
  1978. * src/download_helper.cc
  1979. * src/prefs.cc
  1980. * src/prefs.h
  1981. * src/usage_text.h
  1982. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1983. Removed Logger from OptionParser. When OptionParser is used to
  1984. parse options at bootstrap, LogFactory is not configured yet
  1985. properly. When LogFactory is used in OptionParser, it initializes
  1986. itself to return a logger which has no ability to write log to the
  1987. disk.
  1988. * src/OptionParser.cc
  1989. * src/OptionParser.h
  1990. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1991. Added following sentance to the help message of --out option:
  1992. --out option is ignored when -Z is used.
  1993. * doc/aria2c.1.txt
  1994. * src/usage_text.h
  1995. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1996. Added --bt-save-metadata option to -i list options.
  1997. * doc/aria2c.1.txt
  1998. * src/download_helper.cc
  1999. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2000. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  2001. additional libraries.
  2002. * src/MultiUrlRequestInfo.cc
  2003. * src/NameResolver.cc
  2004. * src/SelectEventPoll.cc
  2005. * src/SelectEventPoll.h
  2006. * src/SocketCore.cc
  2007. * src/SocketCore.h
  2008. * src/a2netcompat.h
  2009. * src/daemon.cc
  2010. * src/main.cc
  2011. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2012. Fixed typo.
  2013. * src/DHTMessageReceiver.cc
  2014. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2015. Fixed the bug that causes segmentation fault if unknown option is
  2016. put in aria2.conf file. BUG#2928303
  2017. * src/OptionParser.cc
  2018. * src/OptionParser.h
  2019. * src/option_processing.cc
  2020. * test/OptionParserTest.cc
  2021. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Ignore port message with port=0.
  2023. * src/BtPortMessage.cc
  2024. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2025. Run autoupdate
  2026. * configure.ac
  2027. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2028. Updated autoconf/automake auxiliary files.
  2029. * INSTALL
  2030. * config.guess
  2031. * config.sub
  2032. * depcomp
  2033. * install-sh
  2034. * m4/intldir.m4
  2035. * missing
  2036. * mkinstalldirs
  2037. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2038. Removed unused function.
  2039. * src/SharedHandle.h
  2040. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2041. Find pooled socket using all cached addresses.
  2042. * src/DNSCache.h
  2043. * src/DownloadEngine.cc
  2044. * src/DownloadEngine.h
  2045. * src/InitiateConnectionCommand.cc
  2046. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2047. Updated copyright year.
  2048. * src/version_usage.cc
  2049. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2050. Pool connection if _contentEncodingDecoder is used and server
  2051. supports persistent connection.
  2052. * src/HttpDownloadCommand.cc
  2053. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. Updated doc.
  2055. * src/DownloadCommand.cc
  2056. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2057. Untabify. Fixed one line in copyright which is longer than 80
  2058. columns.
  2059. * src
  2060. * test
  2061. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2062. Release 1.8.0
  2063. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. Updated po templates.
  2065. * po/aria2.pot
  2066. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. Documented --bt-save-metadata option in man page.
  2068. * doc/aria2c.1.txt
  2069. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Fixed usage of --bt-save-metadata option.
  2071. * src/usage_text.h
  2072. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Updated po templates.
  2074. * po/aria2.pot
  2075. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2076. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  2077. causes name resolution error when none of network interface has
  2078. IPv4 address.
  2079. * src/main.cc
  2080. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Bump up version number to 1.8.0.
  2082. * configure.ac
  2083. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Use info hash as a filename when saving BitTorrent metadata.
  2085. * src/UTMetadataPostDownloadHandler.cc
  2086. * test/UTMetadataPostDownloadHandlerTest.cc
  2087. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Documented system.multicall XML-RPC method in man page.
  2089. * doc/aria2c.1.txt
  2090. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2091. Added signal handler for SIGHUP to save .aria2 file when terminal
  2092. is closed. The handler is the same one for SIGINT and SIGTERM.
  2093. * src/MultiUrlRequestInfo.cc
  2094. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Defined method name in XmlRpcMethod subclasses.
  2096. * src/XmlRpcMethodFactory.cc
  2097. * src/XmlRpcMethodImpl.cc
  2098. * src/XmlRpcMethodImpl.h
  2099. * test/XmlRpcMethodTest.cc
  2100. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Added system.multicall XML-RPC method.
  2102. * src/XmlRpcMethod.cc
  2103. * src/XmlRpcMethod.h
  2104. * src/XmlRpcMethodFactory.cc
  2105. * src/XmlRpcMethodImpl.cc
  2106. * src/XmlRpcMethodImpl.h
  2107. * test/XmlRpcMethodTest.cc
  2108. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. Check structure depth when decoding.
  2110. * src/bencode.cc
  2111. * src/bencode.h
  2112. * test/BencodeTest.cc
  2113. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2114. Documented tellStopped XML-RPC method in man page.
  2115. * doc/aria2c.1.txt
  2116. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Added tellStopped XML-RPC method to aria2rpc.
  2118. * doc/xmlrpc/aria2rpc
  2119. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2120. Added tellStopped XML-RPC method. This method returns stopped
  2121. download in the specified range. It takes same parameters with
  2122. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  2123. * src/XmlRpcMethodFactory.cc
  2124. * src/XmlRpcMethodImpl.cc
  2125. * src/XmlRpcMethodImpl.h
  2126. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  2128. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  2129. when conducting unit tests because they fail if networking
  2130. interface is not configured with IPv4 address.
  2131. * src/NameResolver.cc
  2132. * src/SocketCore.cc
  2133. * src/SocketCore.h
  2134. * src/a2netcompat.h
  2135. * test/AllTest.cc
  2136. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Fixed unit test error
  2138. * test/UTMetadataPostDownloadHandlerTest.cc
  2139. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2140. Defined static string constants for efficiency.
  2141. * src/XmlRpcMethodImpl.cc
  2142. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Added --bt-save-metadata option. When true is given, it saves
  2144. metadata as .torrent file. This option has effect only when
  2145. BitTorrent Magnet URI is used. The filename is name in metadata
  2146. with suffix .torrent. The directory to be saved is the same
  2147. directory where download file is saved. If the same file already
  2148. exists, metdata is not saved.
  2149. * src/OptionHandlerFactory.cc
  2150. * src/UTMetadataPostDownloadHandler.cc
  2151. * src/UTMetadataPostDownloadHandler.h
  2152. * src/message.h
  2153. * src/prefs.cc
  2154. * src/prefs.h
  2155. * src/usage_text.h
  2156. * test/UTMetadataDataExtensionMessageTest.cc
  2157. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Added util::saveAs() function. Use it in Signature::save().
  2159. * src/Signature.cc
  2160. * src/util.cc
  2161. * src/util.h
  2162. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Upcase info hash in Magnet URI.
  2164. * doc/aria2c.1.txt
  2165. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Refactored RequestGroupMan::changeReservedGroupPosition()
  2167. * src/RequestGroupMan.cc
  2168. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Updated the description for aria2.addTorrent XML-RPC method.
  2170. * doc/aria2c.1.txt
  2171. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2172. Added changePosition to aria2rpc.
  2173. * doc/xmlrpc/aria2rpc
  2174. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Documented changePosition XML-RPC method in man page.
  2176. * doc/aria2c.1.txt
  2177. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  2179. pos and how. This method changes the position of download denoted
  2180. by gid. If how is POS_SET, it moves the download to a position
  2181. relative to the beginning of the queue. If how is POS_CUR, it
  2182. moves the download to a position relative to the current
  2183. position. If how is POS_END, it moves the download to a position
  2184. relative to the end of the queue. If the destination position is
  2185. less than 0 or beyond the end of the queue, it moves the download
  2186. to the beginning or the end of the queue respectively. Returns
  2187. the destination position.
  2188. * src/RequestGroupMan.cc
  2189. * src/RequestGroupMan.h
  2190. * src/XmlRpcMethodFactory.cc
  2191. * src/XmlRpcMethodImpl.cc
  2192. * src/XmlRpcMethodImpl.h
  2193. * test/RequestGroupManTest.cc
  2194. * test/XmlRpcMethodTest.cc
  2195. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Added getOption and getGlobalOption to aria2rpc.
  2197. * doc/xmlrpc/aria2rpc
  2198. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Documented getOption and getGlobalOption XML-RPC method in man
  2200. page
  2201. * doc/aria2c.1.txt
  2202. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Added getOption and getGlobalOption XML-RPC method. getOption
  2204. takes GID as a parameter and returns its options as struct.
  2205. getGlobalOption takes no parameter and returns global
  2206. options. Because global option is used as a template for the
  2207. option of newly added downloads, it includes options returned by
  2208. getOption.
  2209. * src/Option.h
  2210. * src/XmlRpcMethodFactory.cc
  2211. * src/XmlRpcMethodImpl.cc
  2212. * src/XmlRpcMethodImpl.h
  2213. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2214. Sort _optionHandlers in OptionParser by name in ascending order.
  2215. Use vector instead of deque for efficiency.
  2216. * src/OptionHandler.h
  2217. * src/OptionHandlerFactory.h
  2218. * src/OptionParser.cc
  2219. * src/OptionParser.h
  2220. * src/version_usage.cc
  2221. * test/OptionParserTest.cc
  2222. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Code cleanup
  2224. * src/XmlRpcMethod.cc
  2225. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Documented about followedBy and belongsTo in man page.
  2227. * doc/aria2c.1.txt
  2228. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Added following 2 keys, followedBy and belongsTo, to the response
  2230. of tellStatus.
  2231. followedBy: List of GIDs which are generated by the consequence of
  2232. this download. For example, when aria2 downloaded Metalink file,
  2233. it generates downloads described in it(see *--follow-metalink*
  2234. option). This value is useful to track these auto generated
  2235. downloads. If there is no such downloads, this key will not be
  2236. included in the response.
  2237. belongsTo: GID of a parent download. Some downloads are a part of
  2238. another download. For example, if a file in Metalink has
  2239. BitTorrent resource, the download of .torrent is a part of that
  2240. file. If this download has no parent, this key will not be
  2241. included in the response.
  2242. * src/BtPostDownloadHandler.cc
  2243. * src/DownloadResult.h
  2244. * src/Metalink2RequestGroup.cc
  2245. * src/MetalinkPostDownloadHandler.cc
  2246. * src/RequestGroup.cc
  2247. * src/RequestGroup.h
  2248. * src/UTMetadataPostDownloadHandler.cc
  2249. * src/XmlRpcMethodImpl.cc
  2250. * src/XmlRpcMethodImpl.h
  2251. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Assigned BObject in BDE() to avoid segmentation fault when calling
  2253. methods of BDE::none().
  2254. * src/BDE.cc
  2255. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2256. Show info hash in Magnet URI in upper case letters in -S output.
  2257. * src/bittorrent_helper.cc
  2258. * test/BittorrentHelperTest.cc
  2259. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2260. Removed old useless comment
  2261. * src/MultiUrlRequestInfo.cc
  2262. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2263. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  2264. not properly used in configure script and failed to detect gnutls.
  2265. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  2266. and the initialization of pkg-config is done in first occurrence
  2267. of PKG_CHECK_MODULES which is not executed because it is inside of
  2268. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  2269. * configure.ac
  2270. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Release 1.7.2
  2272. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2273. Fixed the bug that RequestGroupMan::downloadFinished() returns
  2274. true even if all downloads haven't finished, especially when
  2275. PostDownloadHandler is involved. Changed the condition so that it
  2276. only returns true if both _requestGroups and _reservedGroups are
  2277. empty.
  2278. * src/RequestGroupMan.cc
  2279. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Log listening port for BitTorrent/DHT in notice level.
  2281. * src/DHTConnectionImpl.cc
  2282. * src/PeerListenCommand.cc
  2283. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Updated po templates.
  2285. * po/aria2.pot
  2286. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2287. Bump up version number to 1.7.2
  2288. * configure.ac
  2289. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2290. Changed default value of --enable-dht from 'false' to 'true'.
  2291. * doc/aria2c.1.txt
  2292. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Enabled DHT by default because of Magnet URI support. To disable
  2294. DHT, use --enable-dht=false
  2295. * src/OptionHandlerFactory.cc
  2296. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2297. Print Magnet URI in -S output.
  2298. * src/AnnounceList.cc
  2299. * src/bittorrent_helper.cc
  2300. * src/bittorrent_helper.h
  2301. * test/BittorrentHelperTest.cc
  2302. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2303. Added --bt-prioritize-piece option to aria2rpc.
  2304. * doc/xmlrpc/aria2rpc
  2305. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2306. Refer Magnet URI in --help. Made some cosmetic changes.
  2307. * src/version_usage.cc
  2308. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2309. Updated -T and -M option.
  2310. * doc/aria2c.1.txt
  2311. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2312. Fixed typo
  2313. * doc/aria2c.1.txt
  2314. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2315. Fixed the bug that line separator is missing in horizontal bar.
  2316. * doc/xmlrpc/aria2mon
  2317. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2318. Updated usage text for --metalink-file option.
  2319. * src/usage_text.h
  2320. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2321. If '-' is given as an argument to --metalink-file option, aria2
  2322. reads Metalink file from stdin.
  2323. * src/OptionHandlerFactory.cc
  2324. * src/OptionHandlerImpl.h
  2325. * src/a2io.h
  2326. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2327. Fixed the bug that aria2 listens wrong port if --interface option
  2328. is used.
  2329. * src/SocketCore.cc
  2330. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2331. Fixed the bug that query parameter in magnet URI is not decoded.
  2332. * src/magnet.cc
  2333. * test/MagnetTest.cc
  2334. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. Specified defaultSize as an argument for easy testing.
  2336. * src/util.cc
  2337. * src/util.h
  2338. * test/UtilTest.cc
  2339. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. Release 1.7.1
  2341. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Bump up version number to 1.7.1
  2343. * configure.ac
  2344. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2345. Fixed the bug --bt-prioritize-piece=tail is not working.
  2346. * src/util.cc
  2347. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2348. Release 1.7.0
  2349. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Updated po templates.
  2351. * po/aria2.pot
  2352. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2353. Updated help message for --bt-prioritize-piece. Some cosmetic
  2354. changes.
  2355. * doc/aria2c.1.txt
  2356. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  2358. * src/usage_text.h
  2359. * src/util.cc
  2360. * test/UtilTest.cc
  2361. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2362. Updated Russian, Ukrainian, German and French translations.
  2363. Thanks to all translators involved.
  2364. * po/de.po
  2365. * po/fr.po
  2366. * po/ru.po
  2367. * po/uk.po
  2368. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2369. Mentioned about pkg-config
  2370. * README
  2371. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. Fixed typo. Referred --index-out option in BitTorrent notes.
  2373. * README
  2374. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Store all addresses found by getifaddrs() and getaddrinfo(). In
  2376. bind, try all addresses until success
  2377. * src/SocketCore.cc
  2378. * src/SocketCore.h
  2379. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2380. Updated po templates.
  2381. * po/aria2.pot
  2382. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2383. Bump up version number to 1.7.0
  2384. * configure.ac
  2385. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2386. Fixed compile error if ENABLE_BITTORRENT is undefined.
  2387. * src/DefaultPieceStorage.cc
  2388. * src/DefaultPieceStorage.h
  2389. * src/PieceStorage.h
  2390. * src/UnknownLengthPieceStorage.cc
  2391. * src/UnknownLengthPieceStorage.h
  2392. * test/MockPieceStorage.h
  2393. * test/ProtocolDetectorTest.cc
  2394. * test/XmlRpcMethodTest.cc
  2395. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2396. Documented in man page that if getifaddrs() is missing,
  2397. --interface option doesn't accept interface name.
  2398. * doc/aria2c.1.txt
  2399. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2400. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  2401. * src/DefaultBtAnnounce.cc
  2402. * src/DefaultBtAnnounce.h
  2403. * test/DefaultBtAnnounceTest.cc
  2404. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Fixed the bug that connection is always dropped if handshake
  2406. message in extension protocol don't have metadata_size.
  2407. src/HandshakeExtensionMessage.cc
  2408. * src/HandshakeExtensionMessage.cc
  2409. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  2411. text saying DHT is recommended when Magnet URI is provided.
  2412. * doc/aria2c.1.txt
  2413. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2414. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  2415. URI is supplied. Notify user that they should consider enabling
  2416. DHT if they use Magnet URI.
  2417. * src/RequestGroup.cc
  2418. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Added --disable-ipv6 option to disable IPv6.
  2420. * doc/aria2c.1.txt
  2421. * src/InitiateConnectionCommand.cc
  2422. * src/NameResolver.cc
  2423. * src/NameResolver.h
  2424. * src/OptionHandlerFactory.cc
  2425. * src/main.cc
  2426. * src/prefs.cc
  2427. * src/prefs.h
  2428. * src/usage_text.h
  2429. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2430. Updated usage text for --bt-prioritize-piece option.
  2431. * doc/aria2c.1.txt
  2432. * src/usage_text.h
  2433. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2434. In configure script, if --with-PACKAGE and --enable-FEATURE are
  2435. given and PACKAGE is missing in the system or FEATURE cannot be
  2436. enabled, print error message and stop the script.
  2437. * configure.ac
  2438. * m4/aria2_arg.m4
  2439. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2440. Halt metadata download immediately when metadata download is done.
  2441. Don't wait unresponsive tracker.
  2442. * src/ByteArrayDiskWriter.h
  2443. * src/DefaultBtInteractive.cc
  2444. * src/DefaultExtensionMessageFactory.cc
  2445. * src/DefaultExtensionMessageFactory.h
  2446. * src/PeerInteractionCommand.cc
  2447. * src/UTMetadataDataExtensionMessage.cc
  2448. * src/UTMetadataDataExtensionMessage.h
  2449. * src/UTMetadataRequestExtensionMessage.cc
  2450. * test/UTMetadataDataExtensionMessageTest.cc
  2451. * test/UTMetadataRequestExtensionMessageTest.cc
  2452. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2453. Documented --interface option in man page.
  2454. * doc/aria2c.1.txt
  2455. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2456. Try resolved address in the order received from the resolver.
  2457. * src/DNSCache.h
  2458. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2459. Added debug logs.
  2460. * src/SocketCore.cc
  2461. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2462. Fixed type of tail to uint64_t
  2463. * src/util.cc
  2464. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2465. Added --interface option. This feature binds sockets to given
  2466. interface. You can specify interface name, IP address and
  2467. hostname.
  2468. * configure.ac
  2469. * src/OptionHandlerFactory.cc
  2470. * src/SocketCore.cc
  2471. * src/SocketCore.h
  2472. * src/main.cc
  2473. * src/message.h
  2474. * src/prefs.cc
  2475. * src/prefs.h
  2476. * src/usage_text.h
  2477. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2478. Updated man page for bt-prioritize-piece option in -i list.
  2479. * doc/aria2c.1.txt
  2480. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2481. Added bt-prioritize-piece option to -i list.
  2482. * src/download_helper.cc
  2483. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Removed --http-auth-scheme option from man page.
  2485. * doc/aria2c.1.txt
  2486. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2487. Removed --http-auth-scheme option since it doesn't do nothing.
  2488. * src/OptionHandlerFactory.cc
  2489. * src/prefs.cc
  2490. * src/prefs.h
  2491. * src/usage_text.h
  2492. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2493. Adjusted the number of peer info which get_peers reply message can
  2494. carry.
  2495. * src/DHTGetPeersReplyMessage.cc
  2496. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2497. Added extension_message_test_helper.h to aria2c_SOURCES.
  2498. * test/Makefile.am
  2499. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2500. Documented --bt-prioritize-piece option in man page.
  2501. * doc/aria2c.1.txt
  2502. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. Added option --bt-prioritize-piece. This option instruct aria2 to
  2504. try to download first and last pieces of each file first. The
  2505. argument can contain 2 keywords:head and tail. To include both
  2506. keywords, they must be separated by comma. These keywords can take
  2507. one parameter, SIZE. For example , if head=SIZE is specified,
  2508. pieces in the range of first SIZE bytes of each file get higher
  2509. priority. tail=SIZE means the range of last SIZE bytes of each
  2510. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  2511. * src/DefaultPieceStorage.h
  2512. * src/Makefile.am
  2513. * src/OptionHandlerFactory.cc
  2514. * src/OptionHandlerImpl.h
  2515. * src/PriorityPieceSelector.cc
  2516. * src/PriorityPieceSelector.h
  2517. * src/RequestGroup.cc
  2518. * src/prefs.cc
  2519. * src/prefs.h
  2520. * src/usage_text.h
  2521. * src/util.cc
  2522. * src/util.h
  2523. * test/Makefile.am
  2524. * test/MockPieceSelector.h
  2525. * test/PriorityPieceSelectorTest.cc
  2526. * test/UtilTest.cc
  2527. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2528. Fixed typo
  2529. * src/HttpRequest.h
  2530. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2531. In Magnet URI with tr parameter, put each announce URI in separate
  2532. tier.
  2533. * src/bittorrent_helper.cc
  2534. * test/BittorrentHelperTest.cc
  2535. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Renamed ExtensionMessage::getBencodedData() as
  2537. ExtensionMessage::getPayload()
  2538. * src/BtExtendedMessage.cc
  2539. * src/ExtensionMessage.h
  2540. * src/HandshakeExtensionMessage.cc
  2541. * src/HandshakeExtensionMessage.h
  2542. * src/UTMetadataDataExtensionMessage.cc
  2543. * src/UTMetadataDataExtensionMessage.h
  2544. * src/UTMetadataRejectExtensionMessage.cc
  2545. * src/UTMetadataRejectExtensionMessage.h
  2546. * src/UTMetadataRequestExtensionMessage.cc
  2547. * src/UTMetadataRequestExtensionMessage.h
  2548. * src/UTPexExtensionMessage.cc
  2549. * src/UTPexExtensionMessage.h
  2550. * test/HandshakeExtensionMessageTest.cc
  2551. * test/MockExtensionMessage.h
  2552. * test/UTMetadataDataExtensionMessageTest.cc
  2553. * test/UTMetadataRejectExtensionMessageTest.cc
  2554. * test/UTMetadataRequestExtensionMessageTest.cc
  2555. * test/UTPexExtensionMessageTest.cc
  2556. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Updated man page for BitTorrent Magnet URI.
  2558. * doc/aria2c.1.txt
  2559. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2560. Call DownloadContext::setOwnerRequestGroup() in
  2561. RequestGroup::setDownloadContext().
  2562. * src/BtDependency.cc
  2563. * src/RequestGroup.cc
  2564. * src/RequestGroup.h
  2565. * src/download_helper.cc
  2566. * test/DefaultBtMessageDispatcherTest.cc
  2567. * test/DefaultExtensionMessageFactoryTest.cc
  2568. * test/HandshakeExtensionMessageTest.cc
  2569. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2570. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  2571. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  2572. from metadata, use new metadata2Torrent() function.
  2573. * src/BtDependency.cc
  2574. * src/UTMetadataPostDownloadHandler.cc
  2575. * src/bittorrent_helper.cc
  2576. * src/bittorrent_helper.h
  2577. * test/BittorrentHelperTest.cc
  2578. * test/BtDependencyTest.cc
  2579. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2580. Use createRequestGroupForUri to create the download for torrent
  2581. file.
  2582. * src/Metalink2RequestGroup.cc
  2583. * test/Metalink2RequestGroupTest.cc
  2584. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2585. Fixed typo
  2586. * src/DownloadContext.h
  2587. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Use createRequestGroupForBitTorrent()
  2589. * src/BtPostDownloadHandler.cc
  2590. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Added remove().
  2592. * src/Option.cc
  2593. * src/Option.h
  2594. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Removed options which is only valid for URIs specified in
  2596. command-line. If they are left, because op is used as a template
  2597. for new RequestGroup(such as created in XML-RPC command,
  2598. BtPostDownloadHandler etc), they causes unintentional effect.
  2599. * src/main.cc
  2600. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2601. Refer to option value of PREF_OUT only in download_helper.
  2602. * src/FtpNegotiationCommand.cc
  2603. * src/HttpResponseCommand.cc
  2604. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2605. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  2606. * src/download_helper.cc
  2607. * src/download_helper.h
  2608. * src/XmlRpcMethodImpl.cc
  2609. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Updated man page for changeOption XML-RPC method.
  2611. * doc/aria2c.1.txt
  2612. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. Added --bt-max-peers option to changeOption XML-RPC method.
  2614. * src/XmlRpcMethod.cc
  2615. * src/XmlRpcMethodImpl.cc
  2616. * test/XmlRpcMethodTest.cc
  2617. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  2619. * test/XmlRpcMethodTest.cc
  2620. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Removed redundant DownloadContext::hasAttribute(...) calls.
  2622. * src/ConsoleStatCalc.cc
  2623. * src/RequestGroup.cc
  2624. * src/XmlRpcMethodImpl.cc
  2625. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2626. Changed the number of tracker request attempt from 5 to 2.
  2627. * src/TrackerWatcherCommand.cc
  2628. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Use host and protocol in original URI, because URI selector
  2630. selects URI based on original URI, not redirected one.
  2631. * src/Request.cc
  2632. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Fixed the bug which causes segmentation fault with tellWaiting
  2634. XML-RPC method when BitTorrent download is waiting. The key of
  2635. BtRegistry is changed from info hash to GID, because it is
  2636. registered per RequestGroup, not info hash.
  2637. * src/BtRegistry.cc
  2638. * src/BtRegistry.h
  2639. * src/BtSetup.cc
  2640. * src/ConsoleStatCalc.cc
  2641. * src/InitiatorMSEHandshakeCommand.cc
  2642. * src/PeerInitiateConnectionCommand.cc
  2643. * src/PeerInteractionCommand.cc
  2644. * src/PeerInteractionCommand.h
  2645. * src/PeerReceiveHandshakeCommand.cc
  2646. * src/RequestGroup.cc
  2647. * src/XmlRpcMethodImpl.cc
  2648. * test/BtRegistryTest.cc
  2649. * test/XmlRpcMethodTest.cc
  2650. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Updated man page for changeOption XML-RPC method.
  2652. * doc/aria2c.1.txt
  2653. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  2655. method.
  2656. * src/XmlRpcMethod.cc
  2657. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Documented about BitTorrent Magnet URI in man page.
  2659. * doc/aria2c.1.txt
  2660. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Fixed the bug that trackers in BitTorrent Magnet URI are not
  2662. inherited to generated RequestGroup.
  2663. * src/UTMetadataPostDownloadHandler.cc
  2664. * test/UTMetadataPostDownloadHandlerTest.cc
  2665. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2666. Prepended "[METADATA]" before dn.
  2667. * src/bittorrent_helper.cc
  2668. * test/BittorrentHelperTest.cc
  2669. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2670. Rewritten Magnet URI parser.
  2671. * src/Makefile.am
  2672. * src/ProtocolDetector.cc
  2673. * src/bittorrent_helper.cc
  2674. * src/bittorrent_helper.h
  2675. * src/download_helper.cc
  2676. * src/magnet.cc
  2677. * src/magnet.h
  2678. * test/BittorrentHelperTest.cc
  2679. * test/MagnetTest.cc
  2680. * test/Makefile.am
  2681. * test/ProtocolDetectorTest.cc
  2682. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2683. Use hton64
  2684. * src/base32.cc
  2685. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2686. Added Base32 encoded BitTorrent Magnet Link support.
  2687. * src/Makefile.am
  2688. * src/base32.cc
  2689. * src/base32.h
  2690. * src/bittorrent_helper.cc
  2691. * test/Base32Test.cc
  2692. * test/BittorrentHelperTest.cc
  2693. * test/Makefile.am
  2694. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2695. Added BitTorrent Magnet Link support. Base32 encoded link is not
  2696. supported yet. Fixed typo in method name in RequestGroup. In
  2697. metadataGetMode, don't show "Your share ratio was ..." message.
  2698. * src/DefaultBtInteractive.cc
  2699. * src/DefaultBtInteractive.h
  2700. * src/DownloadHandlerFactory.cc
  2701. * src/DownloadHandlerFactory.h
  2702. * src/HandshakeExtensionMessage.cc
  2703. * src/Makefile.am
  2704. * src/Metalink2RequestGroup.cc
  2705. * src/PeerInteractionCommand.cc
  2706. * src/RequestGroup.cc
  2707. * src/RequestGroup.h
  2708. * src/UTMetadataPostDownloadHandler.cc
  2709. * src/UTMetadataPostDownloadHandler.h
  2710. * src/download_helper.cc
  2711. * test/HandshakeExtensionMessageTest.cc
  2712. * test/Makefile.am
  2713. * test/UTMetadataPostDownloadHandlerTest.cc
  2714. * test/UTMetadataRejectExtensionMessageTest.cc
  2715. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. In metadataGetMode, don't show SEEDING.
  2717. * src/ConsoleStatCalc.cc
  2718. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2719. Fixed ut_metadata data handling. Implemented
  2720. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  2721. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2722. metadata_size is received.
  2723. * src/DefaultExtensionMessageFactory.cc
  2724. * src/DefaultExtensionMessageFactory.h
  2725. * src/HandshakeExtensionMessage.cc
  2726. * src/HandshakeExtensionMessage.h
  2727. * src/UTMetadataDataExtensionMessage.cc
  2728. * src/UTMetadataDataExtensionMessage.h
  2729. * src/UTMetadataRequestExtensionMessage.cc
  2730. * src/UTMetadataRequestFactory.cc
  2731. * src/UTMetadataRequestFactory.h
  2732. * src/UTMetadataRequestTracker.cc
  2733. * src/UTMetadataRequestTracker.h
  2734. * test/DefaultExtensionMessageFactoryTest.cc
  2735. * test/HandshakeExtensionMessageTest.cc
  2736. * test/MockBtMessage.h
  2737. * test/UTMetadataDataExtensionMessageTest.cc
  2738. * test/UTMetadataRequestExtensionMessageTest.cc
  2739. * test/UTMetadataRequestFactoryTest.cc
  2740. * test/UTMetadataRequestTrackerTest.cc
  2741. * test/extension_message_test_helper.h
  2742. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Drop connection if ut_metadata reject message is received.
  2744. * src/UTMetadataRejectExtensionMessage.cc
  2745. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2746. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2747. get high enough in that mode.
  2748. * src/ActivePeerConnectionCommand.cc
  2749. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. Added BitTorrent magnet link support to ProtocolDetector.
  2751. * src/ProtocolDetector.cc
  2752. * src/ProtocolDetector.h
  2753. * test/ProtocolDetectorTest.cc
  2754. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Don't inject validator into BtMessage in metadataGetMode because
  2756. most of the checks depends on the total length of download but it
  2757. is unknown. Delegate metadataGetMode to BtMessage.
  2758. * src/DefaultBtMessageFactory.cc
  2759. * src/DefaultBtMessageFactory.h
  2760. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2762. * src/DefaultPieceStorage.h
  2763. * src/PieceStorage.h
  2764. * src/UnknownLengthPieceStorage.h
  2765. * test/MockPieceStorage.h
  2766. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2767. Added markTotalLengthIsKnown().
  2768. * src/DownloadContext.h
  2769. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2770. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2771. missing. If metadata is missing, always use DHT when it is ready.
  2772. * src/BtSetup.cc
  2773. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2774. Added parseMagnetLink(). Hex encoded info hash is supported.
  2775. Base32 encoded info hash is not supported yet.
  2776. * src/bittorrent_helper.cc
  2777. * src/bittorrent_helper.h
  2778. * test/BittorrentHelperTest.cc
  2779. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2780. Added FromHex()
  2781. * src/util.cc
  2782. * src/util.h
  2783. * test/UtilTest.cc
  2784. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2785. Added _metadataGetMode member variable. It toggles the action when
  2786. messages are received: usually they almost do nothing if
  2787. _metadataGetMode is true.
  2788. * src/AbstractBtMessage.cc
  2789. * src/AbstractBtMessage.h
  2790. * src/BtAllowedFastMessage.cc
  2791. * src/BtBitfieldMessage.cc
  2792. * src/BtCancelMessage.cc
  2793. * src/BtChokeMessage.cc
  2794. * src/BtHaveAllMessage.cc
  2795. * src/BtHaveMessage.cc
  2796. * src/BtInterestedMessage.cc
  2797. * src/BtNotInterestedMessage.cc
  2798. * src/BtPieceMessage.cc
  2799. * src/BtRejectMessage.cc
  2800. * src/BtRequestMessage.cc
  2801. * src/BtUnchokeMessage.cc
  2802. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Added bencode::decode overload functions. They have extra argument
  2804. 'end', passed by reference. 'end' points to the beyond the last
  2805. position of data used in decoding process.
  2806. * src/bencode.cc
  2807. * src/bencode.h
  2808. * test/BencodeTest.cc
  2809. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Initial support of Extension for Peers to Send Metadata
  2811. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2812. metadata from swarm.
  2813. * src/BtConstants.h
  2814. * src/DefaultBtInteractive.cc
  2815. * src/DefaultExtensionMessageFactory.cc
  2816. * src/DefaultExtensionMessageFactory.h
  2817. * src/ExtensionMessage.h
  2818. * src/ExtensionMessageRegistry.h
  2819. * src/HandshakeExtensionMessage.cc
  2820. * src/HandshakeExtensionMessage.h
  2821. * src/Makefile.am
  2822. * src/PeerConnection.h
  2823. * src/PeerInteractionCommand.cc
  2824. * src/UTMetadataDataExtensionMessage.cc
  2825. * src/UTMetadataDataExtensionMessage.h
  2826. * src/UTMetadataExtensionMessage.cc
  2827. * src/UTMetadataExtensionMessage.h
  2828. * src/UTMetadataRejectExtensionMessage.cc
  2829. * src/UTMetadataRejectExtensionMessage.h
  2830. * src/UTMetadataRequestExtensionMessage.cc
  2831. * src/UTMetadataRequestExtensionMessage.h
  2832. * src/bittorrent_helper.cc
  2833. * src/bittorrent_helper.h
  2834. * test/BittorrentHelperTest.cc
  2835. * test/DefaultExtensionMessageFactoryTest.cc
  2836. * test/HandshakeExtensionMessageTest.cc
  2837. * test/Makefile.am
  2838. * test/UTMetadataDataExtensionMessageTest.cc
  2839. * test/UTMetadataRejectExtensionMessageTest.cc
  2840. * test/UTMetadataRequestExtensionMessageTest.cc
  2841. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2842. Cancel segment in prepareForRetry() because there is a chance that
  2843. the command has segments.
  2844. * src/CreateRequestCommand.cc
  2845. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2846. Fixed the bug that slow server is not knocked down in favor of
  2847. faster one.
  2848. * src/AbstractCommand.cc
  2849. * src/DefaultPieceStorage.cc
  2850. * src/DefaultPieceStorage.h
  2851. * src/PieceStorage.h
  2852. * src/UnknownLengthPieceStorage.cc
  2853. * src/UnknownLengthPieceStorage.h
  2854. * test/MockPieceStorage.h
  2855. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2856. Fixed the bug that Request object is not added to
  2857. _inFlightRequests in findFasterRequest().
  2858. * src/FileEntry.cc
  2859. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2860. Changed the strategry of how to increase the number of outstanding
  2861. requests. Now the number is doubled if there are no outstanding
  2862. requests after receiving messages.
  2863. * src/BtConstants.h
  2864. * src/DefaultBtInteractive.cc
  2865. * src/DefaultBtInteractive.h
  2866. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Check socket for reading if there are outstanding requests.
  2868. * src/PeerInteractionCommand.cc
  2869. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Moved frequently called methods to header file so they get
  2871. inlined.
  2872. * src/RequestSlot.cc
  2873. * src/RequestSlot.h
  2874. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2875. Copied in_addr instead of just casting from char* which might
  2876. violate strict aliasing rules.
  2877. * src/AsyncNameResolver.cc
  2878. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2879. Use dynamic_pointer_cast
  2880. * test/BtPieceMessageTest.cc
  2881. * test/BtRequestMessageTest.cc
  2882. * test/DefaultBtRequestFactoryTest.cc
  2883. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2884. Added testSetUrl20()
  2885. * test/RequestTest.cc
  2886. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2887. Code cleanup
  2888. * src/bittorrent_helper.cc
  2889. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2890. Use C++ style cast
  2891. * src/AsyncNameResolver.cc
  2892. * src/Base64.h
  2893. * src/BtBitfieldMessage.cc
  2894. * src/BtHandshakeMessage.cc
  2895. * src/DefaultBtMessageFactory.cc
  2896. * src/DefaultBtProgressInfoFile.cc
  2897. * src/EpollEventPoll.cc
  2898. * src/ExpatMetalinkProcessor.cc
  2899. * src/IteratableChecksumValidator.cc
  2900. * src/IteratableChunkChecksumValidator.cc
  2901. * src/MessageDigestHelper.cc
  2902. * src/Platform.cc
  2903. * src/RequestGroupMan.cc
  2904. * src/SingleFileAllocationIterator.cc
  2905. * src/Sqlite3MozCookieParser.cc
  2906. * src/XML2SAXMetalinkProcessor.cc
  2907. * src/Xml2XmlRpcRequestProcessor.cc
  2908. * src/util.cc
  2909. * src/util.h
  2910. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Fixed integer potential alignment problem.
  2912. * src/bitfield.h
  2913. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2914. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2915. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2916. include file ordering.
  2917. * src/PeerListProcessor.h
  2918. * src/bittorrent_helper.cc
  2919. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2920. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2921. * src/Request.cc
  2922. * src/util.cc
  2923. * src/util.h
  2924. * test/RequestTest.cc
  2925. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2926. Rewritten util::uitos()
  2927. * src/util.h
  2928. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2929. Code cleanup
  2930. * src/Request.cc
  2931. * src/Request.h
  2932. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Rewritten Request::parseUrl()
  2934. * src/Request.cc
  2935. * test/RequestTest.cc
  2936. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2937. Removed unused macro SAFE_CHARS
  2938. * src/Request.cc
  2939. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2940. Updated doc
  2941. * src/DHTRoutingTableDeserializer.cc
  2942. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2943. Release 1.6.3
  2944. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2945. Removed unused function.
  2946. * test/DHTPeerAnnounceStorageTest.cc
  2947. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2948. Only decrement cols if cols > 0
  2949. * src/ConsoleStatCalc.cc
  2950. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2951. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2952. translations. Thanks to all translators.
  2953. * po/ca.po
  2954. * po/fr.po
  2955. * po/it.po
  2956. * po/ja.po
  2957. * po/pl.po
  2958. * po/ru.po
  2959. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2960. Updated translation template
  2961. * po
  2962. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2963. Fixed compile error without ssl library.
  2964. * src/util.cc
  2965. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2966. Logged received nodes in get_peers reply message.
  2967. * src/DHTAbstractNodeLookupTask.cc
  2968. * src/DHTAbstractNodeLookupTask.h
  2969. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2970. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2971. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2972. * src/DHTMessageDispatcherImpl.cc
  2973. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Don't reuse URI if Request pool is not empty.
  2975. * src/CreateRequestCommand.cc
  2976. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2977. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2978. receive get_peers request for torrent which the client is now
  2979. downloading.
  2980. * src/BtSetup.cc
  2981. * src/DHTPeerAnnounceEntry.cc
  2982. * src/DHTPeerAnnounceEntry.h
  2983. * src/DHTPeerAnnounceStorage.cc
  2984. * src/DHTPeerAnnounceStorage.h
  2985. * src/RequestGroup.cc
  2986. * test/DHTPeerAnnounceEntryTest.cc
  2987. * test/DHTPeerAnnounceStorageTest.cc
  2988. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Fixed the bug that in Windows environment new blank line is
  2990. inserted when console readout is updated.
  2991. * src/ConsoleStatCalc.cc
  2992. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2993. Throw exception if binding listening port is failed. Removed
  2994. RequestGroupMan::getInitialCommand(). Use
  2995. fillRequestGroupFromReserver() instead. Delete commands for
  2996. RequestGroup which has errors when it is being added.
  2997. * src/BtSetup.cc
  2998. * src/DownloadEngine.cc
  2999. * src/DownloadEngine.h
  3000. * src/DownloadEngineFactory.cc
  3001. * src/MultiUrlRequestInfo.cc
  3002. * src/RequestGroupMan.cc
  3003. * src/RequestGroupMan.h
  3004. * test/RequestGroupManTest.cc
  3005. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3006. Fixed the bug that when downloading more than one torrent,
  3007. listening port is not reported properly to tracker for 2nd or
  3008. later torrents.
  3009. * src/BtSetup.cc
  3010. * src/PeerListenCommand.cc
  3011. * src/PeerListenCommand.h
  3012. * src/RequestGroup.cc
  3013. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3014. Bump up version number to 1.6.3
  3015. * configure.ac
  3016. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. Removed Util.cc from POTFILES.in
  3018. * po/POTFILES.in
  3019. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3020. Updated man page for previous change.
  3021. * doc/aria2c.1.txt
  3022. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3023. If user name is embedded but password is missing in URI, first
  3024. resolve password using .netrc. If password is found in .netrc,
  3025. then use it as password. If not, use the password specified in
  3026. --ftp-passwd.
  3027. * src/AuthConfigFactory.cc
  3028. * src/Request.cc
  3029. * src/Request.h
  3030. * test/AuthConfigFactoryTest.cc
  3031. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Fixed typo
  3033. * doc/aria2c.1.txt
  3034. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. Fixed typo
  3036. * src/usage_text.h
  3037. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3038. Added missing bitfield.cc
  3039. * src/bitfield.cc
  3040. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3041. Renamed Util.{cc,h} as util.{cc,h}
  3042. * src/Util.cc
  3043. * src/Util.h
  3044. * src/util.cc
  3045. * src/util.h
  3046. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3047. Moved static functions in Util class to namespace util.
  3048. * src
  3049. * test
  3050. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3051. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  3052. Moved generateRandomKey to bittorrent_helper.cc.
  3053. * src/DHTBucket.cc
  3054. * src/DHTGetPeersMessage.cc
  3055. * src/DHTGetPeersReplyMessage.cc
  3056. * src/DHTMessage.cc
  3057. * src/DHTNode.cc
  3058. * src/DHTTokenTracker.cc
  3059. * src/DHTUtil.cc: Removed.
  3060. * src/DHTUtil.h: Removed.
  3061. * src/Makefile.am
  3062. * src/Util.cc
  3063. * src/Util.h
  3064. * src/bitfield.h
  3065. * src/bittorrent_helper.cc
  3066. * src/bittorrent_helper.h
  3067. * test/ARC4Test.cc
  3068. * test/BNodeTest.cc
  3069. * test/DHTAnnouncePeerMessageTest.cc
  3070. * test/DHTAnnouncePeerReplyMessageTest.cc
  3071. * test/DHTFindNodeMessageTest.cc
  3072. * test/DHTFindNodeReplyMessageTest.cc
  3073. * test/DHTGetPeersMessageTest.cc
  3074. * test/DHTGetPeersReplyMessageTest.cc
  3075. * test/DHTPingMessageTest.cc
  3076. * test/DHTPingReplyMessageTest.cc
  3077. * test/DHTTokenTrackerTest.cc
  3078. * test/DHTUtilTest.cc: Removed.
  3079. * test/Makefile.am
  3080. * test/UtilTest.cc
  3081. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3082. Removed the call to trim() because trim() is called for each
  3083. element in split().
  3084. * src/CookieParser.cc
  3085. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3086. Replaced Util::slice() with split()
  3087. * src/AbstractCommand.cc
  3088. * src/CookieParser.cc
  3089. * src/File.cc
  3090. * src/HttpHeaderProcessor.cc
  3091. * src/HttpRequest.cc
  3092. * src/Metalink2RequestGroup.cc
  3093. * src/MetalinkParserController.cc
  3094. * src/Netrc.cc
  3095. * src/NsCookieParser.cc
  3096. * src/ParameterizedStringParser.cc
  3097. * src/ServerStatMan.cc
  3098. * src/UriListParser.cc
  3099. * src/Util.cc
  3100. * src/Util.h
  3101. * src/bittorrent_helper.cc
  3102. * test/UtilTest.cc
  3103. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3104. Use request->getDir() instead of "/" for embedded user/pass in
  3105. URI.
  3106. * src/AuthConfigFactory.cc
  3107. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3108. Fixed wrong insertion point for BasicCred.
  3109. * src/AuthConfigFactory.cc
  3110. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3111. Allowed non-regular file in LocalFilePathOptionHandler
  3112. * src/OptionHandlerImpl.h
  3113. * src/message.h
  3114. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3115. Fixed the bug that Netrc::parse() cannot recognize comment line.
  3116. * src/Netrc.cc
  3117. * src/Util.h
  3118. * test/NetrcTest.cc
  3119. * test/sample.netrc
  3120. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3121. Fixed typo
  3122. * src/BtDependency.cc
  3123. * src/BtRejectMessage.cc
  3124. * src/FtpConnection.cc
  3125. * src/HttpHeaderProcessor.h
  3126. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3127. Fixed lintian report in man page
  3128. * doc/aria2c.1.txt
  3129. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3130. Release 1.6.2
  3131. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3132. Updated Ukrainian translation. Thanks to all translators.
  3133. * po/uk.po
  3134. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3135. Updated translation template
  3136. * po
  3137. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3138. Bump up version number to 1.6.2
  3139. * configure.ac
  3140. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Updated licence message in -v output.
  3142. * src/version_usage.cc
  3143. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3144. Replaced aria2 with aria2c in help message.
  3145. * src/version_usage.cc
  3146. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3147. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  3148. * src/version_usage.cc
  3149. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3150. Quoted localedir
  3151. * src/Makefile.am
  3152. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  3154. utime. Check header for utime.h.
  3155. * configure.ac
  3156. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3157. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  3158. * configure.ac
  3159. * src/daemon.cc
  3160. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. Don't set localedir manually. Leave it to autoconf.
  3162. * configure.ac
  3163. * src/Makefile.am
  3164. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3165. Added --install to ACLOCAL_AMFLAGS.
  3166. Removed m4 from SUBDIRS.
  3167. Updated automake 1.11 and autoconf 2.64.
  3168. Replaced some obsolute macros with new one.
  3169. * Makefile.am
  3170. * configure.ac
  3171. * m4/aria2_arg.m4
  3172. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3173. Removed Makefile.am in m4 directory.
  3174. * configure.ac
  3175. * m4/ChangeLog
  3176. * m4/Makefile.am
  3177. * m4/Makefile.in
  3178. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3179. Removed unused m4 macros.
  3180. * m4/intldir.m4
  3181. * m4/inttypes.m4
  3182. * m4/isc-posix.m4
  3183. * m4/libgnutls-extra.m4
  3184. * m4/ulonglong.m4
  3185. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3186. Fixed the bug that causes segmentation fault if
  3187. req->getCurrentUrl() contains printf formatting characters such as
  3188. %d. The statement that causes this bug is useless and removed.
  3189. * src/AbstractCommand.cc
  3190. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3191. * Release 1.6.1
  3192. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3193. Updated Simplified Chinese translation. Thanks to translators.
  3194. * po/zh_CN.po
  3195. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3196. Updated translation template
  3197. * po
  3198. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. Bump up version number to 1.6.1
  3200. * configure.ac
  3201. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3202. Changed interval from 120 to 60 for dropping inactive peer.
  3203. * src/DefaultBtInteractive.cc
  3204. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3205. Updated man page for --user-agent and --peer-id-prefix option.
  3206. * doc/aria2c.1.txt
  3207. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3208. Code clean up
  3209. * src/BtPostDownloadHandler.cc
  3210. * src/ContentTypeRequestGroupCriteria.cc
  3211. * src/ContentTypeRequestGroupCriteria.h
  3212. * src/DownloadHandlerConstants.cc
  3213. * src/DownloadHandlerConstants.h
  3214. * src/DownloadHandlerFactory.cc
  3215. * src/MetalinkPostDownloadHandler.cc
  3216. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3217. Don't save control file when aria2 exists while checking piece
  3218. hash(behavior of -V option). If control file doesn't exist when
  3219. aria2 launched, the completed length in saved control file will be
  3220. 0 byte and this confuses user. disableSaveControlFile() is called
  3221. in RequestGroup::processCheckIntegrityEntry().
  3222. enableSaveControlFile() will be called after hash checking is
  3223. done. See CheckIntegrityCommand.
  3224. * src/CheckIntegrityCommand.cc
  3225. * src/RequestGroup.cc
  3226. * src/RequestGroup.h
  3227. * src/RequestGroupMan.cc
  3228. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Included version number in Peer ID and client version. Peer ID
  3230. now starts with "aria2/VERSION-", where VERSION is
  3231. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  3232. * src/DefaultBtInteractive.cc
  3233. * src/OptionHandlerFactory.cc
  3234. * src/bittorrent_helper.cc
  3235. * src/bittorrent_helper.h
  3236. * src/main.cc
  3237. * src/usage_text.h
  3238. * test/BittorrentHelperTest.cc
  3239. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3240. Fixed memory leak.
  3241. * src/DownloadCommand.cc
  3242. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3243. Removed server, port, user and passwd key from options before
  3244. XMLRPC::Client.call since they are not options of aria2.
  3245. * doc/xmlrpc/aria2mon
  3246. * doc/xmlrpc/aria2rpc
  3247. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3248. Included version number in user-agent string.
  3249. * src/OptionHandlerFactory.cc
  3250. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Fixed the bug that the option values changed by XML-RPC
  3252. method(changeOption and changeGlobalOption) are overwritten to the
  3253. previous value by the next these request which doesn't contain
  3254. that option value. Supporse max-download-limit is initially 0. You
  3255. changed this value to 100K by changeOption. Then you issue
  3256. changeOption request to change max-upload-limit to 50K. This
  3257. second request doesn't contain xml-download-limit, so it is back
  3258. to initial value, 0. Another improvement is that exception is
  3259. thrown when changeOption and changeGlobalOption request contains
  3260. option name which doesn't allowed in each request.
  3261. * src/DownloadEngine.h
  3262. * src/XmlRpcMethod.cc
  3263. * src/XmlRpcMethod.h
  3264. * src/XmlRpcMethodImpl.cc
  3265. * src/download_helper.cc
  3266. * src/download_helper.h
  3267. * test/XmlRpcMethodTest.cc
  3268. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Added missing MetalinkParserStateImpl.{cc,h}
  3270. * src/MetalinkParserStateImpl.cc
  3271. * src/MetalinkParserStateImpl.h
  3272. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3273. Put all MetalinkParserState subclasses into
  3274. MetalinkParserStateImpl.cc. Use stack to track element structure.
  3275. * src/FileMetalinkParserState.cc: Removed
  3276. * src/FileMetalinkParserState.h: Removed
  3277. * src/FilesMetalinkParserState.cc: Removed
  3278. * src/FilesMetalinkParserState.h: Removed
  3279. * src/FinMetalinkParserState.cc: Removed
  3280. * src/FinMetalinkParserState.h: Removed
  3281. * src/HashMetalinkParserState.cc: Removed
  3282. * src/HashMetalinkParserState.h: Removed
  3283. * src/InitialMetalinkParserState.cc: Removed
  3284. * src/InitialMetalinkParserState.h: Removed
  3285. * src/LanguageMetalinkParserState.cc: Removed
  3286. * src/LanguageMetalinkParserState.h: Removed
  3287. * src/Makefile.am
  3288. * src/MetalinkMetalinkParserState.cc: Removed
  3289. * src/MetalinkMetalinkParserState.h: Removed
  3290. * src/MetalinkParserState.h
  3291. * src/MetalinkParserStateMachine.cc
  3292. * src/MetalinkParserStateMachine.h
  3293. * src/OSMetalinkParserState.cc: Removed
  3294. * src/OSMetalinkParserState.h: Removed
  3295. * src/PieceHashMetalinkParserState.cc: Removed
  3296. * src/PieceHashMetalinkParserState.h: Removed
  3297. * src/PiecesMetalinkParserState.cc: Removed
  3298. * src/PiecesMetalinkParserState.h: Removed
  3299. * src/ResourcesMetalinkParserState.cc: Removed
  3300. * src/ResourcesMetalinkParserState.h: Removed
  3301. * src/SignatureMetalinkParserState.cc: Removed
  3302. * src/SignatureMetalinkParserState.h: Removed
  3303. * src/SizeMetalinkParserState.cc: Removed
  3304. * src/SizeMetalinkParserState.h: Removed
  3305. * src/SkipTagMetalinkParserState.cc: Removed
  3306. * src/SkipTagMetalinkParserState.h: Removed
  3307. * src/URLMetalinkParserState.cc: Removed
  3308. * src/URLMetalinkParserState.h: Removed
  3309. * src/VerificationMetalinkParserState.cc: Removed
  3310. * src/VerificationMetalinkParserState.h: Removed
  3311. * src/VersionMetalinkParserState.cc: Removed
  3312. * src/VersionMetalinkParserState.h: Removed
  3313. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3314. Move all functions in PeerMessageUtil to bittorrent_helper.
  3315. * src/BtBitfieldMessage.cc
  3316. * src/BtBitfieldMessageValidator.h
  3317. * src/BtExtendedMessage.cc
  3318. * src/BtHandshakeMessage.cc
  3319. * src/BtHandshakeMessageValidator.h
  3320. * src/BtPieceMessage.cc
  3321. * src/BtPieceMessageValidator.h
  3322. * src/BtPortMessage.cc
  3323. * src/DHTFindNodeReplyMessage.cc
  3324. * src/DHTGetPeersReplyMessage.cc
  3325. * src/DHTMessageFactoryImpl.cc
  3326. * src/DHTRoutingTableDeserializer.cc
  3327. * src/DHTRoutingTableSerializer.cc
  3328. * src/DHTTokenTracker.cc
  3329. * src/DefaultBtMessageFactory.cc
  3330. * src/IndexBtMessage.cc
  3331. * src/IndexBtMessage.h
  3332. * src/IndexBtMessageValidator.h
  3333. * src/Makefile.am
  3334. * src/PeerMessageUtil.cc: Removed.
  3335. * src/PeerMessageUtil.h: Removed.
  3336. * src/RangeBtMessage.cc
  3337. * src/RangeBtMessage.h
  3338. * src/RangeBtMessageValidator.h
  3339. * src/UTPexExtensionMessage.cc
  3340. * src/ZeroBtMessage.cc
  3341. * src/ZeroBtMessage.h
  3342. * src/bittorrent_helper.cc
  3343. * src/bittorrent_helper.h
  3344. * test/BittorrentHelperTest.cc
  3345. * test/BtAllowedFastMessageTest.cc
  3346. * test/BtBitfieldMessageTest.cc
  3347. * test/BtCancelMessageTest.cc
  3348. * test/BtChokeMessageTest.cc
  3349. * test/BtExtendedMessageTest.cc
  3350. * test/BtHandshakeMessageTest.cc
  3351. * test/BtHaveAllMessageTest.cc
  3352. * test/BtHaveMessageTest.cc
  3353. * test/BtHaveNoneMessageTest.cc
  3354. * test/BtInterestedMessageTest.cc
  3355. * test/BtNotInterestedMessageTest.cc
  3356. * test/BtPieceMessageTest.cc
  3357. * test/BtPortMessageTest.cc
  3358. * test/BtRejectMessageTest.cc
  3359. * test/BtRequestMessageTest.cc
  3360. * test/BtSuggestPieceMessageTest.cc
  3361. * test/BtUnchokeMessageTest.cc
  3362. * test/DHTFindNodeReplyMessageTest.cc
  3363. * test/DHTGetPeersReplyMessageTest.cc
  3364. * test/DHTMessageFactoryImplTest.cc
  3365. * test/DHTRoutingTableDeserializerTest.cc
  3366. * test/DHTRoutingTableSerializerTest.cc
  3367. * test/DefaultBtMessageFactoryTest.cc
  3368. * test/DefaultExtensionMessageFactoryTest.cc
  3369. * test/Makefile.am
  3370. * test/PeerListProcessorTest.cc
  3371. * test/PeerMessageUtilTest.cc: Removed.
  3372. * test/UTPexExtensionMessageTest.cc
  3373. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3374. Limit the size of values list when sending get_peers reply.
  3375. * src/DHTGetPeersReplyMessage.cc
  3376. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3377. Updated banner
  3378. * doc/xmlrpc/aria2rpc
  3379. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3380. Added missing help message for remove command.
  3381. * doc/xmlrpc/aria2rpc
  3382. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3383. Generated configure and config.h.in
  3384. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  3385. Add check for fork(), which is missing on MinGW
  3386. * src/daemon.cc
  3387. * configure.ac
  3388. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3389. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  3390. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  3391. Util::httpGMT().
  3392. * src/Util.cc
  3393. * src/Util.h
  3394. * test/UtilTest.cc
  3395. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3396. * Release 1.6.0
  3397. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3398. Fixed a path to xmlrpc/README.txt
  3399. * doc/Makefile.am
  3400. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3401. Added XML-RPC in -v Configuration output.
  3402. * src/FeatureConfig.cc
  3403. * src/FeatureConfig.h
  3404. * test/FeatureConfigTest.cc
  3405. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3406. Updated Bulgarian, Russian, Slovak and Japanese
  3407. translations. Thanks to all translators.
  3408. * po/bg.po
  3409. * po/ja.po
  3410. * po/ru.po
  3411. * po/sk.po
  3412. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3413. Removed --retry-wait option from aria2rpc
  3414. * doc/xmlrpc/aria2rpc
  3415. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3416. Removed --retry-wait option from man page.
  3417. * doc/aria2c.1.txt
  3418. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3419. Removed --retry-wait option since the current architecture doesn't
  3420. allow sleep for particular URI.
  3421. * src/AbstractCommand.cc
  3422. * src/OptionHandlerFactory.cc
  3423. * src/download_helper.cc
  3424. * src/prefs.cc
  3425. * src/prefs.h
  3426. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3427. Removed Retry-After header support. Since the current architecture
  3428. doesn't allow sleep for particular URI.
  3429. * src/HttpSkipResponseCommand.cc
  3430. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3431. Updated the help message for --daemon option.
  3432. * doc/aria2c.1.txt
  3433. * src/usage_text.h
  3434. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3435. Added our own daemon() function for systems which desn't have
  3436. daemon(3).
  3437. * configure.ac
  3438. * src/Makefile.am
  3439. * src/daemon.cc
  3440. * src/daemon.h
  3441. * src/option_processing.cc
  3442. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Simplified File::getCurrentDir()
  3444. * src/File.cc
  3445. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3446. Use exit() instead of _exit
  3447. * src/RequestGroupMan.cc
  3448. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Replaced "CATEGORY" with "TAGS".
  3450. * src/usage_text.h
  3451. * doc/aria2c.1.txt
  3452. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3453. Updated the help message for --help option.
  3454. * src/usage_text.h
  3455. * doc/aria2c.1.txt
  3456. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3457. Updated man page for added help tags.
  3458. * doc/aria2c.1.txt
  3459. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3460. Added help category #file. Added #file tag to the options related
  3461. to downloaded file.
  3462. * src/OptionHandlerFactory.cc
  3463. * src/help_tags.h
  3464. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3465. Added help categories: #cookie and #hook. Added #https tag to
  3466. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  3467. * src/OptionHandlerFactory.cc
  3468. * src/help_tags.h
  3469. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3470. Made MSG_NOT_FILE translatable.
  3471. * src/message.h
  3472. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3473. Updated man page for --help option.
  3474. * doc/aria2c.1.txt
  3475. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3476. Updated doc.
  3477. * src/XmlRpcMethod.h
  3478. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3479. Help category now starts with "#" to distinguish a category from
  3480. keyword search. For example, "http" categroy is now "#http". You
  3481. can type "--help=#http" to get explanation of options related to
  3482. http. If '#' is omitted, then the argument is treated as a keyword
  3483. and aria2 searches options whose name includes the keyword and
  3484. print matched ones. For example, "--help=http" will show options
  3485. whose name includes "http".
  3486. * src/OptionHandlerFactory.cc
  3487. * src/help_tags.h
  3488. * src/usage_text.h
  3489. * src/version_usage.cc
  3490. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3491. Documented missing experimental tag and newly added xml-rpc tag in
  3492. man page.
  3493. * doc/aria2c.1.txt
  3494. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3495. Added xml-rpc help tag. Tagged xml-rpc related options with
  3496. xml-rpc tag.
  3497. * src/OptionHandlerFactory.cc
  3498. * src/help_tags.h
  3499. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3500. Updated message when a path is not a file. Updated common message
  3501. for wrong option.
  3502. * src/OptionHandlerException.cc
  3503. * src/message.h
  3504. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3505. Use File::isFile() instead of File::exists(). Updated message when
  3506. a path is not a file.
  3507. * src/OptionHandlerImpl.cc
  3508. * src/message.h
  3509. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. Fixed the bug that server performence profile is not updated when
  3511. aria2c was terminated by emergency shutdown.
  3512. * src/TrackerWatcherCommand.cc
  3513. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3514. Use LocalFilePathOptionHandler for -T and -M option.
  3515. Updated message of MSG_FILE_NOT_EXIST.
  3516. * src/OptionHandlerFactory.cc
  3517. * src/message.h
  3518. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3519. Added LocalFilePathOptionHandler which check whether the specified
  3520. file path does exist or not.
  3521. * src/OptionHandlerImpl.cc
  3522. * src/message.h
  3523. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3524. Updated wiki page URI.
  3525. * README
  3526. * doc/aria2c.1.txt
  3527. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3528. Added README.txt for xmlrpc directory.
  3529. * doc/Makefile.am
  3530. * doc/xmlrpc/README.txt
  3531. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3532. Bump up version number to 1.6.0.
  3533. * configure.ac
  3534. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3535. Added XML-RPC client scripts written in ruby.
  3536. * doc/Makefile.am
  3537. * doc/xmlrpc/aria2mon
  3538. * doc/xmlrpc/aria2rpc
  3539. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3540. Added support for IPv6 literal address in URI. Now aria2 can
  3541. handle URI such as http://[::1]/
  3542. * src/HttpRequest.cc
  3543. * src/HttpRequest.h
  3544. * src/Request.cc
  3545. * src/Request.h
  3546. * test/HttpRequestTest.cc
  3547. * test/OptionHandlerTest.cc
  3548. * test/RequestTest.cc
  3549. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3550. Fixed the bug that HTTP request header for XML-RPC request is not
  3551. parsed properly.
  3552. * src/HttpHeader.cc
  3553. * src/HttpHeaderProcessor.cc
  3554. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3555. Fixed the bug that XML-RPC authorization might be done before HTTP
  3556. request header is fully received.
  3557. * src/HttpServerCommand.cc
  3558. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3559. Documented --xml-rpc-listen-all option in man page.
  3560. * doc/aria2c.1.txt
  3561. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3562. Added --xml-rpc-listen-all option. If true is given to this
  3563. option, aria2 listens incoming XML-RPC requests on all network
  3564. interfaces. If false is given, listens only on local loopback
  3565. interface. The default value is false.
  3566. * src/HttpListenCommand.cc
  3567. * src/OptionHandlerFactory.cc
  3568. * src/SocketCore.cc
  3569. * src/SocketCore.h
  3570. * src/prefs.cc
  3571. * src/prefs.h
  3572. * src/usage_text.h
  3573. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3574. * Release 1.5.2
  3575. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3576. Updated Ukrainian and Russian translations. Thanks to all
  3577. translators.
  3578. * po/ru.po
  3579. * po/uk.po
  3580. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Bump up version number to 1.5.2
  3582. * configure.ac
  3583. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3584. Get comment, comment.utf-8, created by and creation date from
  3585. .torrent file and print them in -S output.
  3586. * src/bittorrent_helper.cc
  3587. * src/bittorrent_helper.h
  3588. * test/BittorrentHelperTest.cc
  3589. * test/test.torrent
  3590. * test/utf8.torrent
  3591. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3592. Show exact file size along in -S option output.
  3593. * src/Util.h
  3594. * src/bittorrent_helper.cc
  3595. * test/UtilTest.cc
  3596. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3597. Avoided unnecessary memory allocation in
  3598. BitfieldMan::getCompletedLength().
  3599. * src/BitfieldMan.cc
  3600. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3601. Fixed the bug that download fails if
  3602. SocketCore::establishConnection() throws exception and aria2
  3603. doesn't try another address.
  3604. * src/AbstractCommand.cc
  3605. * src/InitiateConnectionCommand.cc
  3606. * src/message.h
  3607. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3608. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  3609. detected properly.
  3610. * m4/sqlite3.m4
  3611. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3612. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  3613. because it causes compile error if PARAMS macro is defined.
  3614. * src/XmlRpcElements.cc
  3615. * src/XmlRpcElements.h
  3616. * src/XmlRpcRequestParserStateImpl.cc
  3617. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3618. * Release 1.5.1
  3619. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3620. Bump up version number to 1.5.1
  3621. * configure.ac
  3622. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3623. Fixed compile error without BitTorrent support
  3624. * src/DefaultBtProgressInfoFile.cc
  3625. * src/DownloadEngine.cc
  3626. * src/DownloadEngine.h
  3627. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3628. Added missing '=' in Download Results
  3629. * src/RequestGroupMan.cc
  3630. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3631. Fixed compiler warning
  3632. * src/DefaultBtProgressInfoFile.cc
  3633. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3634. Fixed compiler warning on 32bit systems.
  3635. * src/DownloadCommand.cc
  3636. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3637. Call flush from ServerStatMan::save()
  3638. * src/ServerStatMan.cc
  3639. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3640. Check stream status after file is opened.
  3641. * src/CookieStorage.cc
  3642. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3643. Rewritten Signature::save()
  3644. * src/Signature.cc
  3645. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3646. Rewritten RequestGroupMan::saveServerStat()
  3647. * src/RequestGroupMan.cc
  3648. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3649. Rewritten stream error handling
  3650. * src/DHTAutoSaveCommand.cc
  3651. * src/DHTRoutingTableDeserializer.cc
  3652. * src/DHTRoutingTableSerializer.cc
  3653. * src/DHTSetup.cc
  3654. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3655. Check stream status after file is opened.
  3656. * src/DefaultBtProgressInfoFile.cc
  3657. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3658. Rewritten stream error handling
  3659. * src/DefaultBtProgressInfoFile.cc
  3660. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. Make sure that stream is closed before renaming file. Unit test
  3662. fails on mingw32 in the previous implementation.
  3663. * src/CookieStorage.cc
  3664. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3665. Fixed the unit test error without sqlite3
  3666. * test/CookieStorageTest.cc
  3667. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3668. Fixed the undefined reference error
  3669. * test/HttpResponseTest.cc
  3670. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. * Release 1.5.0
  3672. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3673. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  3674. Ukrainian translations. Thanks to all translators.
  3675. * po/ru.po
  3676. * po/it.po
  3677. * po/da.po
  3678. * po/bg.po
  3679. * po/ja.po
  3680. * po/uk.po
  3681. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3682. Added missing src/Logger.cc
  3683. * src/Logger.cc
  3684. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3685. Rewritten Logger to avoiding constly virtual call.
  3686. * src/LogFactory.cc
  3687. * src/LogFactory.h
  3688. * src/Logger.h
  3689. * src/Makefile.am
  3690. * src/Makefile.in
  3691. * src/NullLogger.h: Removed.
  3692. * src/SimpleLogger.cc
  3693. * src/SimpleLogger.h
  3694. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3695. Updated doc
  3696. * src/main.cc
  3697. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. Updated debug log message
  3699. * src/AbstractCommand.cc
  3700. * src/message.h
  3701. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3702. Avoid to create zombie process when commands specified in
  3703. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  3704. X and NetBSD.
  3705. * src/main.cc
  3706. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3707. Fixed typo
  3708. * src/usage_text.h
  3709. * doc/aria2c.1.txt
  3710. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3711. Documented 'errorCode' of tellStatus in man page.
  3712. * doc/aria2c.1.txt
  3713. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3714. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  3715. This key is only available for stopped/completed downloads and its
  3716. value is the error code defined in EXIT STATUS in man page.
  3717. * src/XmlRpcMethodImpl.cc
  3718. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3719. Fixed the bug that session download length is not updated when
  3720. PeerStat is not fastest one.
  3721. * src/SegmentMan.cc
  3722. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3723. Updated doc.
  3724. * doc/aria2c.1.txt
  3725. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3726. Updated doc.
  3727. * src/AbstractCommand.cc
  3728. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3729. Handle the case when DownloadContext has no FileEntry.
  3730. * src/XmlRpcMethodImpl.cc
  3731. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3732. Handle the situation where struct option.name is char *.
  3733. * configure.ac
  3734. * src/OptionParser.cc
  3735. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3736. Code cleanup
  3737. * src/AbstractCommand.cc
  3738. * src/DownloadCommand.cc
  3739. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Use option of each download to create AuthConfig instead of global
  3741. option.
  3742. * src/AuthConfigFactory.cc
  3743. * src/AuthConfigFactory.h
  3744. * src/FtpNegotiationCommand.cc
  3745. * src/HttpRequest.cc
  3746. * src/HttpRequest.h
  3747. * src/HttpRequestCommand.cc
  3748. * src/HttpSkipResponseCommand.cc
  3749. * src/MultiUrlRequestInfo.cc
  3750. * test/AuthConfigFactoryTest.cc
  3751. * test/FtpConnectionTest.cc
  3752. * test/HttpRequestTest.cc
  3753. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3754. Don't call prepareForRetry(1) if all segments are ignored in
  3755. SegmentMan.
  3756. * src/AbstractCommand.cc
  3757. * src/BitfieldMan.cc
  3758. * src/BitfieldMan.h
  3759. * src/SegmentMan.cc
  3760. * src/SegmentMan.h
  3761. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3762. Removed FileEntry::getAssociatedUris()
  3763. * src/FileEntry.h
  3764. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Updated doc: TODO1.5 -> TODO
  3766. * src/FileEntry.cc
  3767. * src/HttpResponseCommand.cc
  3768. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3770. involved.
  3771. * src/RequestGroup.cc
  3772. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3773. Eliminated duplicated filterBitfield initialization code.
  3774. * src/BitfieldMan.cc
  3775. * src/BitfieldMan.h
  3776. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3777. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3778. relatively naive approach, though). For DownloadFailureException,
  3779. we handle the case when req is null properly.
  3780. * src/AbstractCommand.cc
  3781. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3782. Added function returning suffix of control file to
  3783. DefaultBtProgressInfoFile.
  3784. * src/DefaultBtProgressInfoFile.cc
  3785. * src/DefaultBtProgressInfoFile.h
  3786. * src/RequestGroup.cc
  3787. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3788. Documented getVersion in man page.
  3789. * doc/aria2c.1.txt
  3790. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3791. Documented type of offset and num for tellWaiting xml-rpc method.
  3792. * doc/aria2c.1.txt
  3793. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3794. Implemented getVersion xml-rpc method. This method returns struct
  3795. which has 2 key-value pairs: "version" key is associated to the
  3796. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3797. associated to the list of enabled features, such as "Async DNS",
  3798. "BitTorrent".
  3799. * src/FeatureConfig.h
  3800. * src/XmlRpcMethodFactory.cc
  3801. * src/XmlRpcMethodImpl.cc
  3802. * src/XmlRpcMethodImpl.h
  3803. * test/XmlRpcMethodTest.cc
  3804. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3805. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3806. for compatibility issue.
  3807. * src/SocketCore.cc
  3808. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3809. Fixed compile error with openSSL
  3810. * src/bittorrent_helper.cc
  3811. * src/messageDigest.h
  3812. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. Removed bad code: setting certificate type priority to key
  3814. exchange priority.
  3815. * src/SocketCore.cc
  3816. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3817. Disconnect seeder if client is also in seed state.
  3818. * src/BtBitfieldMessage.cc
  3819. * src/BtHaveAllMessage.cc
  3820. * src/BtHaveMessage.cc
  3821. * src/message.h
  3822. * test/BtBitfieldMessageTest.cc
  3823. * test/BtHaveAllMessageTest.cc
  3824. * test/BtHaveMessageTest.cc
  3825. * test/MockPieceStorage.h
  3826. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3827. Keep CreateRequestCommand in queue when no segment is available so
  3828. that they can pick up pieces which slow BitTorrent peers are
  3829. downloading.
  3830. * src/AbstractCommand.cc
  3831. * src/CreateRequestCommand.cc
  3832. * src/CreateRequestCommand.h
  3833. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3834. --bt-stop-timeout now only checks download speed.
  3835. * src/BtStopDownloadCommand.cc
  3836. * src/BtStopDownloadCommand.h
  3837. * src/BtSetup.cc
  3838. * src/usage_text.h
  3839. * doc/aria2c.1.txt
  3840. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Fixed compile error regarding BUFSIZE.
  3842. * src/DownloadCommand.cc
  3843. * src/DownloadCommand.h
  3844. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3845. Documented tellWaiting xml-rpc method in man page.
  3846. * doc/aria2c.1.txt
  3847. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3848. Bump up version number to 1.5.0
  3849. * configure.ac
  3850. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3851. Removed resolved TODO1.5
  3852. * src/AbstractCommand.cc
  3853. * src/DownloadCommand.cc
  3854. * src/RequestGroup.cc
  3855. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3856. Release pooled and in-flight Request objectsand URIResult objects
  3857. in FileEntry after download completed.
  3858. * src/DownloadContext.cc
  3859. * src/DownloadContext.h
  3860. * src/FileEntry.cc
  3861. * src/FileEntry.h
  3862. * src/RequestGroup.cc
  3863. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3864. Set manual and source attribute in aria2c.1.txt
  3865. * doc/aria2c.1.txt
  3866. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3867. Documented that the default value of --use-head is 'false' in man
  3868. page.
  3869. * doc/aria2c.1.txt
  3870. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3871. Added bt-stop-timeout option to -i list.
  3872. * doc/aria2c.1.txt
  3873. * src/download_helper.cc
  3874. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Fixed typo
  3876. * doc/aria2c.1.txt
  3877. * src/usage_text.h
  3878. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3879. Removed peer-id-prefix option from -i list.
  3880. * doc/aria2c.1.txt
  3881. * src/download_helper.cc
  3882. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3883. Fixed typo
  3884. * doc/aria2c.1.txt
  3885. * src/usage_text.h
  3886. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3887. Documented --bt-stop-timeout option in man page.
  3888. * doc/aria2c.1.txt
  3889. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3890. Updated README regarding multi-file torrent web-seeding.
  3891. * doc/README.txt
  3892. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3893. Updated man page regarding multi-file torrent web-seeding.
  3894. * doc/aria2c.1.txt
  3895. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3896. Updated doc
  3897. * src/version_usage.cc
  3898. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3899. Winsock select() doesn't work if no socket is in FD_SET. To
  3900. overcome this problem, a dummy socket is added to FD_SET and it is
  3901. given to select().
  3902. * src/SelectEventPoll.cc
  3903. * src/SelectEventPoll.h
  3904. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3905. Disabled --use-head option by default because --use-head=true
  3906. causes problems on some web sites.
  3907. * src/OptionHandlerFactory.cc
  3908. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3909. Print URL List in -S option for torrent.
  3910. * src/bittorrent_helper.cc
  3911. * src/bittorrent_helper.h
  3912. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3913. Allocate buffer in ctor of DownloadCommand.
  3914. * src/DownloadCommand.cc
  3915. * src/DownloadCommand.h
  3916. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3917. Removed DiskAdaptor::onDownloadComplete()
  3918. * src/DirectDiskAdaptor.cc
  3919. * src/DirectDiskAdaptor.h
  3920. * src/DiskAdaptor.h
  3921. * src/MultiDiskAdaptor.cc
  3922. * src/MultiDiskAdaptor.h
  3923. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3924. Committed missing BtStopDownloadCommand.{cc,h}
  3925. * src/BtStopDownloadCommand.cc
  3926. * src/BtStopDownloadCommand.h
  3927. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3928. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3929. download if the download speed is 0 and the number of seeder is 0
  3930. in consecutive SEC seconds. By default, this function is disabled.
  3931. * src/BtSetup.cc
  3932. * src/Makefile.am
  3933. * src/OptionHandlerFactory.cc
  3934. * src/prefs.cc
  3935. * src/prefs.h
  3936. * src/usage_text.h
  3937. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Removed the call to DiskAdaptor::onDownloadComplete() from
  3939. BtCheckIntegrityEntry and DefaultPieceStorage.
  3940. * src/BtCheckIntegrityEntry.cc
  3941. * src/DefaultPieceStorage.cc
  3942. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3943. Commented out throw statements when number of piece is 0 to
  3944. download 0 length torrent.
  3945. * src/bittorrent_helper.cc
  3946. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3947. Call RequestGroup::createNextCommandWithAdj() from
  3948. BtFileAllocationEntry if at least one FileEntry has URI. The
  3949. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3950. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3951. * src/BtFileAllocationEntry.cc
  3952. * src/FileEntry.h
  3953. * src/RequestGroup.cc
  3954. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3955. Generate peer ID after SimpleRandomizer is initialized.
  3956. * src/main.cc
  3957. * src/option_processing.cc
  3958. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3959. Removed unused method argument.
  3960. * src/CreateRequestCommand.cc
  3961. * src/RequestGroup.cc
  3962. * src/RequestGroup.h
  3963. * src/RequestGroupMan.cc
  3964. * src/TrackerWatcherCommand.cc
  3965. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3966. Made URI reusing function work.
  3967. * src/CreateRequestCommand.cc
  3968. * src/FileEntry.cc
  3969. * src/FileEntry.h
  3970. * test/FileEntryTest.cc
  3971. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3972. Add formerly fastest PeerStat's sessionDownloadLength to new
  3973. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3974. bytes in a session.
  3975. * src/PeerStat.cc
  3976. * src/SegmentMan.cc
  3977. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3978. If pipelining is enabled, we can always pool socket.
  3979. * src/HttpDownloadCommand.cc
  3980. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3981. In a single file download, file size becomes known just after
  3982. downloading, set total length to FileEntry object when download
  3983. completed.
  3984. * src/DownloadCommand.cc
  3985. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3986. Use std::vector::reserve() for fileEntries and pieceHashes in
  3987. bittorrent_helper
  3988. * src/bittorrent_helper.cc
  3989. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3990. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3991. Removed hidden option PREF_RESET_URI.
  3992. * src/AbstractCommand.cc
  3993. * src/OptionHandlerFactory.cc
  3994. * src/prefs.cc
  3995. * src/prefs.h
  3996. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3997. Removed unused variable/function.
  3998. * src/PeerStat.h
  3999. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4000. Show first URL in Download Results if file path is not available.
  4001. * src/FileEntry.h
  4002. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4003. Throw exception if file path doesn't exist in FTP URL.
  4004. * src/InitiateConnectionCommandFactory.cc
  4005. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4006. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  4007. * src/BitfieldMan.cc
  4008. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4009. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  4010. of PeerStat in SegmentMan. peerStats is used for calculating
  4011. download speed. Therefore all active PeerStats should be in
  4012. there. Another one is _fastestPeerStats and it only contains
  4013. fastest PeerStat for each hostname/protocol pair. They are used
  4014. for updating ServerStat.
  4015. * src/DownloadCommand.cc
  4016. * src/Request.h
  4017. * src/RequestGroupMan.cc
  4018. * src/SegmentMan.cc
  4019. * src/SegmentMan.h
  4020. * test/SegmentManTest.cc
  4021. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4022. Try all available addresses returned by DNS until it gets
  4023. connected in HTTP(S)/FTP download
  4024. * src/AbstractCommand.cc
  4025. * src/AbstractCommand.h
  4026. * src/AbstractProxyRequestCommand.cc
  4027. * src/AbstractProxyRequestCommand.h
  4028. * src/DNSCache.h
  4029. * src/DownloadEngine.cc
  4030. * src/DownloadEngine.h
  4031. * src/FtpInitiateConnectionCommand.cc
  4032. * src/FtpInitiateConnectionCommand.h
  4033. * src/FtpNegotiationCommand.cc
  4034. * src/FtpNegotiationCommand.h
  4035. * src/HttpInitiateConnectionCommand.cc
  4036. * src/HttpInitiateConnectionCommand.h
  4037. * src/HttpRequestCommand.cc
  4038. * src/HttpRequestCommand.h
  4039. * src/InitiateConnectionCommand.cc
  4040. * src/InitiateConnectionCommand.h
  4041. * test/DNSCacheTest.cc
  4042. * test/Makefile.am
  4043. * test/SimpleDNSCacheTest.cc
  4044. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4045. Updated doc
  4046. * src/download_helper.cc
  4047. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4048. Refactored fieldMan ctor.
  4049. * src/BitfieldMan.cc
  4050. * src/BitfieldMan.h
  4051. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4052. Don't print "No files to download." message if -S is given.
  4053. * src/main.cc
  4054. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4055. Set referer and method to newly created Request object.
  4056. * src/CreateRequestCommand.cc
  4057. * src/FileEntry.cc
  4058. * src/FileEntry.h
  4059. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4060. Removed ctor of AbstractCommand which doesn't take FileEntry.
  4061. * src/AbstractCommand.cc
  4062. * src/AbstractCommand.h
  4063. * src/CreateRequestCommand.cc
  4064. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4065. Get proxy download working
  4066. * src/AbstractProxyRequestCommand.cc
  4067. * src/AbstractProxyRequestCommand.h
  4068. * src/AbstractProxyResponseCommand.cc
  4069. * src/AbstractProxyResponseCommand.h
  4070. * src/FtpInitiateConnectionCommand.cc
  4071. * src/FtpTunnelRequestCommand.cc
  4072. * src/FtpTunnelRequestCommand.h
  4073. * src/FtpTunnelResponseCommand.cc
  4074. * src/FtpTunnelResponseCommand.h
  4075. * src/HttpInitiateConnectionCommand.cc
  4076. * src/HttpProxyRequestCommand.cc
  4077. * src/HttpProxyRequestCommand.h
  4078. * src/HttpProxyResponseCommand.cc
  4079. * src/HttpProxyResponseCommand.h
  4080. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4081. Use SegmentMan::getSegment(cuid) for single file download.
  4082. * src/AbstractCommand.cc
  4083. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4084. Fixed bufSize calculation
  4085. * src/DownloadCommand.cc
  4086. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4087. Don't append "/" if base URI ends with "/".
  4088. * src/bittorrent_helper.cc
  4089. * test/url-list-multiFile.torrent
  4090. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4091. HTTP pipelining is now working. Fixed Segmention fault in
  4092. BitfieldMan's copy ctor.
  4093. * src/AbstractCommand.cc
  4094. * src/BitfieldMan.cc
  4095. * src/BitfieldMan.h
  4096. * src/DownloadCommand.cc
  4097. * src/HttpDownloadCommand.cc
  4098. * src/HttpRequest.cc
  4099. * src/SegmentMan.cc
  4100. * src/SegmentMan.h
  4101. * test/BitfieldManTest.cc
  4102. * test/SegmentManTest.cc
  4103. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4104. Removed ServerHost. Same functionality is implemented using
  4105. FileEntry's in-flight Request objects.
  4106. * src/AbstractCommand.cc
  4107. * src/BtDependency.cc
  4108. * src/CreateRequestCommand.cc
  4109. * src/FileEntry.cc
  4110. * src/FileEntry.h
  4111. * src/FtpNegotiationCommand.cc
  4112. * src/HttpResponseCommand.cc
  4113. * src/Makefile.am
  4114. * src/Metalink2RequestGroup.cc
  4115. * src/RequestGroup.cc
  4116. * src/RequestGroup.h
  4117. * src/ServerHost.cc: Removed
  4118. * src/ServerHost.h: Removed
  4119. * test/BtDependencyTest.cc
  4120. * test/FileEntryTest.cc
  4121. * test/RequestGroupTest.cc
  4122. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4123. Rewritten PeerStat handling. In the previous implementation,
  4124. faster command tries to find slower command. In this new
  4125. implementation, slower command tries to find faster command.
  4126. PeerStat is now created in each HTTP/FTP request to get download
  4127. rate correctly. If the download range is small, the download rate
  4128. tends to small and this will occur at the later stage of download.
  4129. * src/AbstractCommand.cc
  4130. * src/DownloadCommand.cc
  4131. * src/FileEntry.cc
  4132. * src/FileEntry.h
  4133. * src/Request.cc
  4134. * src/Request.h
  4135. * src/RequestGroup.h
  4136. * src/RequestGroupMan.cc
  4137. * src/SegmentMan.cc
  4138. * src/SegmentMan.h
  4139. * test/SegmentManTest.cc
  4140. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4141. Removed _uris from RequestGroup. All functions that refer to _uris
  4142. were moved to FileEntry. Exit status code are now defined in
  4143. DownloadResultCode.h.
  4144. * src/AbstractCommand.cc
  4145. * src/AdaptiveURISelector.cc
  4146. * src/AdaptiveURISelector.h
  4147. * src/AutoSaveCommand.cc
  4148. * src/BtPostDownloadHandler.cc
  4149. * src/CheckIntegrityDispatcherCommand.cc
  4150. * src/CookieStorage.cc
  4151. * src/DHTAutoSaveCommand.cc
  4152. * src/DHTBucketRefreshCommand.cc
  4153. * src/DHTEntryPointNameResolveCommand.cc
  4154. * src/DHTInteractionCommand.cc
  4155. * src/DHTPeerAnnounceCommand.cc
  4156. * src/DHTTokenUpdateCommand.cc
  4157. * src/DlAbortEx.h
  4158. * src/DlRetryEx.h
  4159. * src/DownloadCommand.cc
  4160. * src/DownloadContext.h
  4161. * src/DownloadFailureException.h
  4162. * src/DownloadResult.h
  4163. * src/DownloadResultCode.h
  4164. * src/FeedbackURISelector.cc
  4165. * src/FeedbackURISelector.h
  4166. * src/FileEntry.cc
  4167. * src/FileEntry.h
  4168. * src/FtpNegotiationCommand.cc
  4169. * src/HttpListenCommand.cc
  4170. * src/HttpResponseCommand.cc
  4171. * src/HttpServerResponseCommand.cc
  4172. * src/HttpSkipResponseCommand.cc
  4173. * src/InOrderURISelector.cc
  4174. * src/InOrderURISelector.h
  4175. * src/Makefile.am
  4176. * src/Makefile.in
  4177. * src/Metalink2RequestGroup.cc
  4178. * src/MultiUrlRequestInfo.cc
  4179. * src/MultiUrlRequestInfo.h
  4180. * src/OptionHandlerFactory.cc
  4181. * src/PeerListenCommand.cc
  4182. * src/RecoverableException.h
  4183. * src/RequestGroup.cc
  4184. * src/RequestGroup.h
  4185. * src/RequestGroupMan.cc
  4186. * src/RequestGroupMan.h
  4187. * src/TimedHaltCommand.cc
  4188. * src/TrackerWatcherCommand.cc
  4189. * src/URIResult.cc
  4190. * src/URIResult.h
  4191. * src/URISelector.h
  4192. * src/XmlRpcMethodImpl.cc
  4193. * src/bittorrent_helper.cc
  4194. * src/bittorrent_helper.h
  4195. * src/download_helper.cc
  4196. * src/main.cc
  4197. * src/option_processing.cc
  4198. * test/BtDependencyTest.cc
  4199. * test/BtPostDownloadHandlerTest.cc
  4200. * test/CookieStorageTest.cc
  4201. * test/DefaultBtMessageDispatcherTest.cc
  4202. * test/DownloadHandlerFactoryTest.cc
  4203. * test/DownloadHelperTest.cc
  4204. * test/FeedbackURISelectorTest.cc
  4205. * test/FileEntryTest.cc
  4206. * test/InOrderURISelectorTest.cc
  4207. * test/Metalink2RequestGroupTest.cc
  4208. * test/MetalinkPostDownloadHandlerTest.cc
  4209. * test/RequestGroupManTest.cc
  4210. * test/RequestGroupTest.cc
  4211. * test/XmlRpcMethodTest.cc
  4212. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4213. Removed MockBtContext.h
  4214. * test/Makefile.am
  4215. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4216. Removed _currentRequest from StreamCheckIntegrityEntry and
  4217. StreamFileAllocationEntry.
  4218. * src/AbstractCommand.cc
  4219. * src/HttpResponseCommand.cc
  4220. * src/RequestGroup.cc
  4221. * src/StreamCheckIntegrityEntry.cc
  4222. * src/StreamCheckIntegrityEntry.h
  4223. * src/StreamFileAllocationEntry.cc
  4224. * src/StreamFileAllocationEntry.h
  4225. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4226. Rewritten DownloadContext and removed SingleFileDownloadContext
  4227. and BtContext and its derived classes. BitTorrent specific
  4228. attributes are now set by DownloadContext::setAttribute() with key
  4229. bittorrent::BITTORRENT.
  4230. * src/AbstractBtMessage.cc
  4231. * src/AbstractBtMessage.h
  4232. * src/AbstractCommand.cc
  4233. * src/AbstractCommand.h
  4234. * src/AbstractProxyRequestCommand.cc
  4235. * src/AbstractProxyResponseCommand.cc
  4236. * src/ActivePeerConnectionCommand.cc
  4237. * src/ActivePeerConnectionCommand.h
  4238. * src/AnnounceList.cc
  4239. * src/BtCheckIntegrityEntry.cc
  4240. * src/BtConstants.h
  4241. * src/BtContext.h: Removed
  4242. * src/BtDependency.cc
  4243. * src/BtExtendedMessage.cc
  4244. * src/BtPieceMessage.cc
  4245. * src/BtPieceMessage.h
  4246. * src/BtPostDownloadHandler.cc
  4247. * src/BtRegistry.cc
  4248. * src/BtRegistry.h
  4249. * src/BtSetup.cc
  4250. * src/CheckIntegrityCommand.cc
  4251. * src/CheckIntegrityEntry.cc
  4252. * src/ChecksumCheckIntegrityEntry.cc
  4253. * src/ConsoleStatCalc.cc
  4254. * src/ContentTypeRequestGroupCriteria.cc
  4255. * src/DHTGetPeersCommand.cc
  4256. * src/DHTGetPeersCommand.h
  4257. * src/DHTPeerLookupTask.cc
  4258. * src/DHTPeerLookupTask.h
  4259. * src/DHTTaskFactory.h
  4260. * src/DHTTaskFactoryImpl.cc
  4261. * src/DHTTaskFactoryImpl.h
  4262. * src/DefaultBtAnnounce.cc
  4263. * src/DefaultBtAnnounce.h
  4264. * src/DefaultBtContext.cc: Removed
  4265. * src/DefaultBtContext.h: Removed
  4266. * src/DefaultBtInteractive.cc
  4267. * src/DefaultBtInteractive.h
  4268. * src/DefaultBtMessageDispatcher.cc
  4269. * src/DefaultBtMessageDispatcher.h
  4270. * src/DefaultBtMessageFactory.cc
  4271. * src/DefaultBtMessageFactory.h
  4272. * src/DefaultBtMessageReceiver.cc
  4273. * src/DefaultBtMessageReceiver.h
  4274. * src/DefaultBtProgressInfoFile.cc
  4275. * src/DefaultBtRequestFactory.cc
  4276. * src/DefaultBtRequestFactory.h
  4277. * src/DefaultExtensionMessageFactory.cc
  4278. * src/DefaultExtensionMessageFactory.h
  4279. * src/DefaultPeerStorage.cc
  4280. * src/DefaultPeerStorage.h
  4281. * src/DefaultPieceStorage.cc
  4282. * src/DefaultSegmentManFactory.cc
  4283. * src/DiskAdaptor.cc
  4284. * src/DiskAdaptor.h
  4285. * src/DownloadContext.cc
  4286. * src/DownloadContext.h
  4287. * src/DownloadEngine.cc
  4288. * src/DownloadEngineFactory.cc
  4289. * src/DownloadHandler.cc
  4290. * src/DownloadResult.h
  4291. * src/FileAllocationCommand.cc
  4292. * src/FileAllocationDispatcherCommand.cc
  4293. * src/FileAllocationEntry.cc
  4294. * src/FileEntry.h
  4295. * src/FillRequestGroupCommand.cc
  4296. * src/FtpDownloadCommand.cc
  4297. * src/FtpFinishDownloadCommand.cc
  4298. * src/FtpInitiateConnectionCommand.cc
  4299. * src/FtpNegotiationCommand.cc
  4300. * src/FtpTunnelRequestCommand.cc
  4301. * src/FtpTunnelResponseCommand.cc
  4302. * src/HandshakeExtensionMessage.cc
  4303. * src/HandshakeExtensionMessage.h
  4304. * src/HaveEraseCommand.cc
  4305. * src/HttpDownloadCommand.cc
  4306. * src/HttpInitiateConnectionCommand.cc
  4307. * src/HttpProxyRequestCommand.cc
  4308. * src/HttpProxyResponseCommand.cc
  4309. * src/HttpRequest.cc
  4310. * src/HttpRequest.h
  4311. * src/HttpRequestCommand.cc
  4312. * src/HttpResponseCommand.cc
  4313. * src/HttpServerBodyCommand.cc
  4314. * src/HttpServerCommand.cc
  4315. * src/HttpSkipResponseCommand.cc
  4316. * src/InitiateConnectionCommandFactory.cc
  4317. * src/InitiatorMSEHandshakeCommand.cc
  4318. * src/InitiatorMSEHandshakeCommand.h
  4319. * src/IteratableChecksumValidator.cc
  4320. * src/IteratableChecksumValidator.h
  4321. * src/IteratableChunkChecksumValidator.cc
  4322. * src/MSEHandshake.cc
  4323. * src/MSEHandshake.h
  4324. * src/Makefile.am
  4325. * src/Makefile.in
  4326. * src/Metalink2RequestGroup.cc
  4327. * src/MetalinkPostDownloadHandler.cc
  4328. * src/MultiDiskAdaptor.cc
  4329. * src/MultiDiskAdaptor.h
  4330. * src/MultiFileAllocationIterator.cc
  4331. * src/MultiUrlRequestInfo.cc
  4332. * src/PeerChokeCommand.cc
  4333. * src/PeerChokeCommand.h
  4334. * src/PeerInitiateConnectionCommand.cc
  4335. * src/PeerInitiateConnectionCommand.h
  4336. * src/PeerInteractionCommand.cc
  4337. * src/PeerInteractionCommand.h
  4338. * src/PeerReceiveHandshakeCommand.cc
  4339. * src/PieceHashCheckIntegrityEntry.cc
  4340. * src/RealtimeCommand.cc
  4341. * src/ReceiverMSEHandshakeCommand.cc
  4342. * src/RequestGroup.cc
  4343. * src/RequestGroup.h
  4344. * src/RequestGroupEntry.cc
  4345. * src/RequestGroupMan.cc
  4346. * src/SeedCheckCommand.cc
  4347. * src/SeedCheckCommand.h
  4348. * src/SegmentMan.cc
  4349. * src/ShareRatioSeedCriteria.h
  4350. * src/SingleFileDownloadContext.cc: Removed
  4351. * src/SingleFileDownloadContext.h: Removed
  4352. * src/SleepCommand.cc
  4353. * src/StreamCheckIntegrityEntry.cc
  4354. * src/TrackerWatcherCommand.cc
  4355. * src/TrackerWatcherCommand.h
  4356. * src/UnknownLengthPieceStorage.cc
  4357. * src/Util.cc
  4358. * src/Util.h
  4359. * src/XmlRpcMethodImpl.cc
  4360. * src/bittorrent_helper.cc
  4361. * src/bittorrent_helper.h
  4362. * src/download_helper.cc
  4363. * src/main.cc
  4364. * src/option_processing.cc
  4365. * test/BitfieldManTest.cc
  4366. * test/BittorrentHelperTest.cc
  4367. * test/BtCancelMessageTest.cc
  4368. * test/BtChokeMessageTest.cc
  4369. * test/BtDependencyTest.cc
  4370. * test/BtPieceMessageTest.cc
  4371. * test/BtPostDownloadHandlerTest.cc
  4372. * test/BtRegistryTest.cc
  4373. * test/BtRejectMessageTest.cc
  4374. * test/BtRequestMessageTest.cc
  4375. * test/DHTPeerAnnounceStorageTest.cc
  4376. * test/DefaultBtAnnounceTest.cc
  4377. * test/DefaultBtContextTest.cc: Removed
  4378. * test/DefaultBtMessageDispatcherTest.cc
  4379. * test/DefaultBtMessageFactoryTest.cc
  4380. * test/DefaultBtProgressInfoFileTest.cc
  4381. * test/DefaultBtRequestFactoryTest.cc
  4382. * test/DefaultExtensionMessageFactoryTest.cc
  4383. * test/DefaultPeerStorageTest.cc
  4384. * test/DefaultPieceStorageTest.cc
  4385. * test/DirectDiskAdaptorTest.cc
  4386. * test/DownloadContextTest.cc
  4387. * test/DownloadHandlerFactoryTest.cc
  4388. * test/DownloadHelperTest.cc
  4389. * test/HandshakeExtensionMessageTest.cc
  4390. * test/HttpRequestTest.cc
  4391. * test/HttpResponseTest.cc
  4392. * test/IteratableChecksumValidatorTest.cc
  4393. * test/IteratableChunkChecksumValidatorTest.cc
  4394. * test/MSEHandshakeTest.cc
  4395. * test/Makefile.am
  4396. * test/Makefile.in
  4397. * test/Metalink2RequestGroupTest.cc
  4398. * test/MetalinkPostDownloadHandlerTest.cc
  4399. * test/MockBtContext.h: Removed
  4400. * test/MockDHTTaskFactory.h
  4401. * test/MockDownloadContext.h: Removed
  4402. * test/MockPieceStorage.h
  4403. * test/MultiDiskAdaptorTest.cc
  4404. * test/MultiFileAllocationIteratorTest.cc
  4405. * test/RequestGroupManTest.cc
  4406. * test/RequestGroupTest.cc
  4407. * test/SegmentManTest.cc
  4408. * test/ShareRatioSeedCriteriaTest.cc
  4409. * test/SingleFileDownloadContextTest.cc: Removed
  4410. * test/UtilTest.cc
  4411. * test/XmlRpcMethodTest.cc
  4412. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4413. Added experimental support of WEB-Seeding for multi-file torrent.
  4414. Due to fundamental changes in file handling in HTTP/FTP code, many
  4415. functions are not working: PeerStat, ServerHost, proxy..etc
  4416. * src/AbstractCommand.cc
  4417. * src/AbstractCommand.h
  4418. * src/BitfieldMan.cc
  4419. * src/BitfieldMan.h
  4420. * src/CreateRequestCommand.cc
  4421. * src/CreateRequestCommand.h
  4422. * src/DefaultPieceStorage.cc
  4423. * src/DefaultPieceStorage.h
  4424. * src/DownloadCommand.cc
  4425. * src/DownloadCommand.h
  4426. * src/DownloadContext.cc
  4427. * src/DownloadContext.h
  4428. * src/FileEntry.cc
  4429. * src/FileEntry.h
  4430. * src/FtpDownloadCommand.cc
  4431. * src/FtpDownloadCommand.h
  4432. * src/FtpFinishDownloadCommand.cc
  4433. * src/FtpFinishDownloadCommand.h
  4434. * src/FtpInitiateConnectionCommand.cc
  4435. * src/FtpInitiateConnectionCommand.h
  4436. * src/FtpNegotiationCommand.cc
  4437. * src/FtpNegotiationCommand.h
  4438. * src/FtpTunnelResponseCommand.cc
  4439. * src/HttpDownloadCommand.cc
  4440. * src/HttpDownloadCommand.h
  4441. * src/HttpInitiateConnectionCommand.cc
  4442. * src/HttpInitiateConnectionCommand.h
  4443. * src/HttpProxyResponseCommand.cc
  4444. * src/HttpRequest.cc
  4445. * src/HttpRequest.h
  4446. * src/HttpRequestCommand.cc
  4447. * src/HttpRequestCommand.h
  4448. * src/HttpResponseCommand.cc
  4449. * src/HttpResponseCommand.h
  4450. * src/HttpSkipResponseCommand.cc
  4451. * src/HttpSkipResponseCommand.h
  4452. * src/InitiateConnectionCommand.cc
  4453. * src/InitiateConnectionCommand.h
  4454. * src/InitiateConnectionCommandFactory.cc
  4455. * src/InitiateConnectionCommandFactory.h
  4456. * src/Makefile.am
  4457. * src/PieceStorage.h
  4458. * src/RequestGroup.cc
  4459. * src/RequestGroup.h
  4460. * src/RequestGroupMan.cc
  4461. * src/SegmentMan.cc
  4462. * src/SegmentMan.h
  4463. * src/SingleFileDownloadContext.h
  4464. * src/StreamFileAllocationEntry.cc
  4465. * src/TrackerWatcherCommand.cc
  4466. * src/UnknownLengthPieceStorage.cc
  4467. * src/UnknownLengthPieceStorage.h
  4468. * src/array_fun.h
  4469. * src/bitfield.h
  4470. * src/download_helper.cc
  4471. * test/DownloadContextTest.cc
  4472. * test/Makefile.am
  4473. * test/MockDownloadContext.h
  4474. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4475. Added tellWaiting XML-RPC method.
  4476. * src/SingleFileDownloadContext.cc
  4477. * src/XmlRpcMethodFactory.cc
  4478. * src/XmlRpcMethodImpl.cc
  4479. * src/XmlRpcMethodImpl.h
  4480. * test/XmlRpcMethodTest.cc
  4481. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4482. Updated CookieStorageTest
  4483. * test/CookieStorageTest.cc
  4484. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4485. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  4486. handle excepion inside these functions.
  4487. * src/LibgnutlsTLSContext.cc
  4488. * src/LibgnutlsTLSContext.h
  4489. * src/LibsslTLSContext.cc
  4490. * src/LibsslTLSContext.h
  4491. * src/MultiUrlRequestInfo.cc
  4492. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4493. Added comment
  4494. * src/RequestGroup.cc
  4495. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4496. In CookieStorage::load() and saveNsFormat(), handle exception
  4497. inside the functions. When saving Cookies, first write temporary
  4498. file and after successful writes, then renames it to final
  4499. destination.
  4500. * src/CookieStorage.cc
  4501. * src/CookieStorage.h
  4502. * src/MultiUrlRequestInfo.cc
  4503. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4504. The default value of --dir option is the absolute path to the
  4505. current directory. If getcwd() is failed, then it is ".", which is
  4506. the same value with old implementation. This change is necessary
  4507. because after daemon() call, the current working directory is
  4508. changed to /.
  4509. * src/File.cc
  4510. * src/File.h
  4511. * src/OptionHandlerFactory.cc
  4512. * src/option_processing.cc
  4513. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4514. Call daemon() with arguments(0,0), which means daemon() changes
  4515. current working directory to / and redirects stdin, stdout and
  4516. stderr to /dev/null.
  4517. * src/option_processing.cc
  4518. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4519. Small performance optimizations.
  4520. * src/RequestGroupMan.cc
  4521. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4522. Added _xmlRpc member variable to RequestGroupMan to reduce the
  4523. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  4524. * src/RequestGroupMan.cc
  4525. * src/RequestGroupMan.h
  4526. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4527. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  4528. setNoWiat(true) if newly created command calls
  4529. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  4530. * src/HttpListenCommand.cc
  4531. * src/HttpServerBodyCommand.cc
  4532. * src/HttpServerCommand.cc
  4533. * src/HttpServerResponseCommand.cc
  4534. * src/InitiateConnectionCommand.cc
  4535. * src/RequestGroup.cc
  4536. * src/StreamFileAllocationEntry.cc
  4537. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4538. Removed include vector
  4539. * src/BtRegistry.h
  4540. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4541. Rewritten BtRegistry
  4542. * src/BtRegistry.cc
  4543. * src/BtRegistry.h
  4544. * src/BtSetup.cc
  4545. * src/ConsoleStatCalc.cc
  4546. * src/PeerInteractionCommand.cc
  4547. * src/PeerReceiveHandshakeCommand.cc
  4548. * src/ReceiverMSEHandshakeCommand.cc
  4549. * src/RequestGroup.cc
  4550. * src/XmlRpcMethodImpl.cc
  4551. * test/BtRegistryTest.cc
  4552. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4553. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  4554. * src/DefaultBtProgressInfoFile.cc
  4555. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4556. Throw an exception if position is less than 0.
  4557. * src/XmlRpcMethodImpl.cc
  4558. * test/XmlRpcMethodTest.cc
  4559. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4560. Use writeFilePath() in ConsoleStatCalc.cc
  4561. * src/ConsoleStatCalc.cc
  4562. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4563. Receive the return value as const reference from
  4564. DownloadContext::getFileEntries().
  4565. * src/DefaultPieceStorage.cc
  4566. * src/RequestGroupMan.cc
  4567. * src/XmlRpcMethodImpl.cc
  4568. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4569. DownloadContext now has _fileEntries so that
  4570. DownloadContext::getFileEntries() can returns its const reference.
  4571. * src/DefaultBtContext.cc
  4572. * src/DefaultBtContext.h
  4573. * src/DownloadContext.cc
  4574. * src/DownloadContext.h
  4575. * src/SingleFileDownloadContext.cc
  4576. * src/SingleFileDownloadContext.h
  4577. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4578. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  4579. writeFilePath() function template from RequestGroupMan.cc to
  4580. FileEntry.h
  4581. * src/FileEntry.h
  4582. * src/RequestGroupMan.cc
  4583. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4584. Documented 'position' parameter is starting from 0 in man page.
  4585. * doc/aria2c.1.txt
  4586. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4587. Updated doc.
  4588. * src/MSEHandshake.cc
  4589. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4590. Removed _acceptFeatures and its accessor functions from
  4591. RequestGroup since they are not used practically.
  4592. * src/HttpRequestCommand.cc
  4593. * src/RequestGroup.cc
  4594. * src/RequestGroup.h
  4595. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4596. Removed member _maxTries from RequestGroup class to avoid
  4597. duplicate option value. Those classes who refer this variable
  4598. should use option value of PREF_MAX_TRIES directly.
  4599. * src/AbstractCommand.cc
  4600. * src/RequestGroup.cc
  4601. * src/RequestGroup.h
  4602. * src/TrackerWatcherCommand.cc
  4603. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4604. * Release 1.4.1
  4605. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4606. Fixed compiler warnings on netbsd
  4607. * src/DHTConnectionImpl.cc
  4608. * src/PeerListenCommand.cc
  4609. * src/PeerSessionResource.cc
  4610. * src/SegmentMan.cc
  4611. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4612. Updated Ukrainian translation. Thanks to all translators.
  4613. * po/uk.po
  4614. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4615. Bump up version number to 1.4.1.
  4616. * configure.ac
  4617. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4618. Added unit tests for strjoin, strconcat and strappend.
  4619. * test/a2functionalTest.cc
  4620. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4621. Rewritten strconcat and strappend using operator+ instead of
  4622. append().
  4623. * src/a2functional.h
  4624. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4625. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  4626. is enabled.
  4627. * src/Makefile.am
  4628. * test/Makefile.am
  4629. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4630. Added countSeeder() function which counts seeder in the given
  4631. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  4632. * src/ConsoleStatCalc.cc
  4633. * src/Peer.h
  4634. * src/XmlRpcMethodImpl.cc
  4635. * test/PeerTest.cc
  4636. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4637. Documented missing seeder in getPeers xml-rpc method.
  4638. Documented uploadLength and numSeeders.
  4639. * doc/aria2c.1.txt
  4640. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4641. Added uploadLength and numSeeders to the response of tellStatus
  4642. xml-rpc method. Assert that PeerStorage instance is not null
  4643. instead of checking if statement. It should be non-null in this
  4644. context.
  4645. * src/XmlRpcMethodImpl.cc
  4646. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4647. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  4648. * src/XmlRpcResponse.cc
  4649. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4650. Avoid intermediate object during string concatenation.
  4651. * src/HttpRequest.cc
  4652. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4653. Added strjoin function template. Use it in pathJoin()
  4654. * src/Util.h
  4655. * src/a2functional.h
  4656. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4657. Avoid intermediate object during string concatenation. Replaced
  4658. post-increment unary operator with pre-increment one in for loop.
  4659. * src/AdaptiveURISelector.cc
  4660. * src/AnnounceList.cc
  4661. * src/AuthConfig.h
  4662. * src/BtBitfieldMessage.cc
  4663. * src/BtExtendedMessage.cc
  4664. * src/BtHandshakeMessage.cc
  4665. * src/BtPieceMessage.cc
  4666. * src/BtPortMessage.cc
  4667. * src/Cookie.cc
  4668. * src/DHTAnnouncePeerMessage.cc
  4669. * src/DHTAutoSaveCommand.cc
  4670. * src/DHTGetPeersReplyMessage.cc
  4671. * src/DHTNode.cc
  4672. * src/DHTQueryMessage.cc
  4673. * src/DHTResponseMessage.cc
  4674. * src/DHTUnknownMessage.cc
  4675. * src/DefaultBtAnnounce.cc
  4676. * src/DefaultBtContext.cc
  4677. * src/DefaultBtInteractive.cc
  4678. * src/DefaultBtProgressInfoFile.cc
  4679. * src/DefaultPeerStorage.cc
  4680. * src/DownloadEngine.cc
  4681. * src/FeatureConfig.cc
  4682. * src/File.cc
  4683. * src/FtpConnection.cc
  4684. * src/FtpNegotiationCommand.cc
  4685. * src/HandshakeExtensionMessage.cc
  4686. * src/HttpConnection.cc
  4687. * src/HttpRequest.cc
  4688. * src/HttpResponseCommand.cc
  4689. * src/HttpServer.cc
  4690. * src/IndexBtMessage.cc
  4691. * src/Metalink2RequestGroup.cc
  4692. * src/OptionHandlerImpl.h
  4693. * src/PStringBuildVisitor.cc
  4694. * src/Peer.cc
  4695. * src/PeerListenCommand.cc
  4696. * src/Piece.cc
  4697. * src/RangeBtMessage.cc
  4698. * src/Request.cc
  4699. * src/Request.h
  4700. * src/RequestGroup.cc
  4701. * src/RequestGroupMan.cc
  4702. * src/ServerStat.cc
  4703. * src/ServerStatMan.cc
  4704. * src/UTPexExtensionMessage.cc
  4705. * src/Util.cc
  4706. * src/a2functional.h
  4707. * src/download_helper.cc
  4708. * src/messageDigest.cc
  4709. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4710. Unchoke a peer randomly at first and second choke round in seed
  4711. state.
  4712. * src/BtSeederStateChoke.cc
  4713. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  4714. Added (sock_t) to quiet compiler warnings in MinGW
  4715. * src/SocketCore.cc
  4716. * src/SocketCore.h
  4717. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4718. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  4719. * src/EpollEventPoll.h
  4720. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  4721. Added fork() emulation using CreateProcess() in MinGW
  4722. * src/RequestGroupMan.cc
  4723. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4724. * Release 1.4.0
  4725. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4726. Added utf8.torrent to EXTRA_DIST
  4727. * test/Makefile.am
  4728. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4729. Fixed docs of aria2.addMetalink xml-rpc method.
  4730. * doc/aria2c.1.txt
  4731. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4732. Added Slovak translation. Updated Ukrainian and Brazilian
  4733. Portuguese translation. Thanks to all translators.
  4734. * po/sk.po
  4735. * po/uk.po
  4736. * po/pt_BR.po
  4737. * po/LINGUAS
  4738. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4739. Added test case for XmlRpcProcessor to fail to parse malformed
  4740. document.
  4741. * test/XmlRpcRequestProcessorTest.cc
  4742. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4743. Removed *.gmo files in po because they are generated on 'make
  4744. dist'
  4745. * po/*.gmo
  4746. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4747. Documented max-concurrent-downloads of changeGlobalOption method
  4748. in man page.
  4749. * doc/aria2c.1.txt
  4750. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4751. Added max-concurrent-downloads option to changeGlobalOption
  4752. xml-rpc method. Rewritten loop conditional in
  4753. RequestGroupMan::fillRequestGroupFromReserver().
  4754. * src/RequestGroupMan.cc
  4755. * src/RequestGroupMan.h
  4756. * src/XmlRpcMethod.cc
  4757. * src/XmlRpcMethodImpl.cc
  4758. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4759. Documented position parameter in man page.
  4760. * doc/aria2c.1.txt
  4761. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4762. Added 'position' parameter to addUri, addTorrent and addMetalink
  4763. xml-rpc method.
  4764. * src/RequestGroupMan.cc
  4765. * src/RequestGroupMan.h
  4766. * src/XmlRpcMethodImpl.cc
  4767. * test/XmlRpcMethodTest.cc
  4768. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4769. Removed Peer.cc from compile source list when --disable-bittorrent
  4770. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4771. takes Peer.
  4772. * src/DefaultPieceStorage.cc
  4773. * src/DefaultPieceStorage.h
  4774. * src/Makefile.am
  4775. * src/PieceStorage.h
  4776. * src/UnknownLengthPieceStorage.cc
  4777. * src/UnknownLengthPieceStorage.h
  4778. * test/MockPieceStorage.h
  4779. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4780. Implemented getter methods in header files to give them more
  4781. chance of optimization.
  4782. Return const reference for SharadHandle if possible.
  4783. * src/AbstractAuthResolver.cc
  4784. * src/AbstractAuthResolver.h
  4785. * src/AbstractBtMessage.cc
  4786. * src/AbstractBtMessage.h
  4787. * src/AbstractSingleDiskAdaptor.cc
  4788. * src/AbstractSingleDiskAdaptor.h
  4789. * src/AsyncNameResolver.cc
  4790. * src/AsyncNameResolver.h
  4791. * src/BNode.cc
  4792. * src/BNode.h
  4793. * src/BitfieldMan.cc
  4794. * src/BitfieldMan.h
  4795. * src/BtAbortOutstandingRequestEvent.h
  4796. * src/BtExtendedMessage.cc
  4797. * src/BtExtendedMessage.h
  4798. * src/BtSeederStateChoke.cc
  4799. * src/BtSeederStateChoke.h
  4800. * src/Cookie.cc
  4801. * src/Cookie.h
  4802. * src/DHTBucket.cc
  4803. * src/DHTBucket.h
  4804. * src/DHTConnectionImpl.cc
  4805. * src/DHTConnectionImpl.h
  4806. * src/DHTFindNodeReplyMessage.cc
  4807. * src/DHTFindNodeReplyMessage.h
  4808. * src/DHTGetPeersReplyMessage.cc
  4809. * src/DHTGetPeersReplyMessage.h
  4810. * src/DHTInteractionCommand.cc
  4811. * src/DHTMessage.cc
  4812. * src/DHTMessage.h
  4813. * src/DHTMessageDispatcherImpl.cc
  4814. * src/DHTMessageEntry.cc
  4815. * src/DHTMessageReceiver.cc
  4816. * src/DHTMessageReceiver.h
  4817. * src/DHTMessageTrackerEntry.cc
  4818. * src/DHTMessageTrackerEntry.h
  4819. * src/DHTPeerAnnounceEntry.cc
  4820. * src/DHTPeerAnnounceEntry.h
  4821. * src/DHTPeerLookupTask.cc
  4822. * src/DHTPeerLookupTask.h
  4823. * src/DHTRoutingTableDeserializer.cc
  4824. * src/DHTRoutingTableDeserializer.h
  4825. * src/DefaultBtAnnounce.cc
  4826. * src/DefaultBtAnnounce.h
  4827. * src/DefaultBtMessageDispatcher.cc
  4828. * src/DefaultBtMessageDispatcher.h
  4829. * src/DefaultBtRequestFactory.cc
  4830. * src/DefaultBtRequestFactory.h
  4831. * src/DiskAdaptor.cc
  4832. * src/DiskAdaptor.h
  4833. * src/DownloadContext.cc
  4834. * src/DownloadContext.h
  4835. * src/DownloadEngine.cc
  4836. * src/DownloadEngine.h
  4837. * src/EpollEventPoll.cc
  4838. * src/EpollEventPoll.h
  4839. * src/FtpConnection.cc
  4840. * src/FtpConnection.h
  4841. * src/HttpConnection.cc
  4842. * src/HttpConnection.h
  4843. * src/HttpHeader.cc
  4844. * src/HttpHeader.h
  4845. * src/HttpRequest.cc
  4846. * src/HttpRequest.h
  4847. * src/HttpResponse.cc
  4848. * src/HttpResponse.h
  4849. * src/LibsslTLSContext.cc
  4850. * src/LibsslTLSContext.h
  4851. * src/MSEHandshake.cc
  4852. * src/MSEHandshake.h
  4853. * src/MetalinkEntry.cc
  4854. * src/MetalinkEntry.h
  4855. * src/MetalinkParserController.cc
  4856. * src/MetalinkParserController.h
  4857. * src/MetalinkParserStateMachine.cc
  4858. * src/MetalinkParserStateMachine.h
  4859. * src/MultiDiskAdaptor.cc
  4860. * src/MultiDiskAdaptor.h
  4861. * src/NetrcAuthResolver.cc
  4862. * src/NetrcAuthResolver.h
  4863. * src/Peer.cc
  4864. * src/Peer.h
  4865. * src/PeerSessionResource.cc
  4866. * src/PeerSessionResource.h
  4867. * src/Piece.cc
  4868. * src/Piece.h
  4869. * src/PieceStatMan.cc
  4870. * src/PieceStatMan.h
  4871. * src/Request.cc
  4872. * src/Request.h
  4873. * src/RequestGroup.cc
  4874. * src/RequestGroup.h
  4875. * src/RequestGroupMan.cc
  4876. * src/RequestGroupMan.h
  4877. * src/RequestSlot.cc
  4878. * src/RequestSlot.h
  4879. * src/SegmentMan.cc
  4880. * src/SegmentMan.h
  4881. * src/SelectEventPoll.cc
  4882. * src/SelectEventPoll.h
  4883. * src/ServerStat.cc
  4884. * src/ServerStat.h
  4885. * src/Signature.cc
  4886. * src/Signature.h
  4887. * src/URIResult.cc
  4888. * src/URIResult.h
  4889. * src/UTPexExtensionMessage.cc
  4890. * src/UTPexExtensionMessage.h
  4891. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4892. Fixed compile error without BitTorrent and Metalink support.
  4893. * src/XmlRpcMethod.cc
  4894. * src/XmlRpcMethodFactory.cc
  4895. * src/XmlRpcMethodImpl.cc
  4896. * src/XmlRpcMethodImpl.h
  4897. * test/XmlRpcMethodTest.cc
  4898. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4899. Rewritten the help message for --allow-overwrite option.
  4900. * doc/aria2c.1.txt
  4901. * src/usage_text.h
  4902. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4903. Fixed typo
  4904. * doc/aria2c.1.txt
  4905. * src/usage_text.h
  4906. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4907. Updated README for 1.4.0 release. Use new table syntax of
  4908. asciidoc.
  4909. * README
  4910. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4911. Documented --xml-rpc-max-request-size option in man page.
  4912. * doc/aria2c.1.txt
  4913. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4914. Moved C_* constants from BtContext to DefaultBtContext.
  4915. * src/BtContext.cc: Removed.
  4916. * src/BtContext.h
  4917. * src/DefaultBtContext.cc
  4918. * src/DefaultBtContext.h
  4919. * src/Makefile.am
  4920. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4921. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4922. path key respectively when persing .torrent file.
  4923. * src/BtContext.cc
  4924. * src/BtContext.h
  4925. * src/DefaultBtContext.cc
  4926. * test/DefaultBtContextTest.cc
  4927. * test/utf8.torrent
  4928. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4929. Added --xml-rpc-max-request-size option to limit the size of
  4930. XML-RPC request.
  4931. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4932. Documented XML-RPC API in man page.
  4933. * doc/aria2c.1.txt
  4934. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4935. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4936. will break strict-aliasing rules
  4937. * src/PeerConnection.cc
  4938. * test/DHTRoutingTableSerializerTest.cc
  4939. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4940. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4941. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4942. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4943. PKG_CHECK_MODULES macro uses latter name.
  4944. * m4/sqlite3.m4
  4945. * src/Makefile.am
  4946. * test/Makefile.am
  4947. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4948. Fixed typo
  4949. * configure.ac
  4950. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4951. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4952. presence of libgnutls using pkg-config first. If it fails, fall
  4953. back to old macro libgnutls.m4.
  4954. * configure.ac
  4955. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4956. Use s itself instead of !s.bad()
  4957. * src/CookieStorage.cc
  4958. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4959. Documented --on-download-* option and --save-cookies option in man
  4960. page.
  4961. * doc/aria2c.1.txt
  4962. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4963. Set possible values for --load-cookie option to "/path/to/file".
  4964. * src/OptionHandlerFactory.cc
  4965. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4966. Added --save-cookies option.
  4967. * src/Cookie.cc
  4968. * src/Cookie.h
  4969. * src/CookieStorage.cc
  4970. * src/CookieStorage.h
  4971. * src/MultiUrlRequestInfo.cc
  4972. * src/OptionHandlerFactory.cc
  4973. * src/prefs.cc
  4974. * src/prefs.h
  4975. * src/usage_text.h
  4976. * test/CookieStorageTest.cc
  4977. * test/CookieTest.cc
  4978. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4979. Removed tellAll XML-RPC command because its reponse tends to be
  4980. big if stopped/waiting downloads pile up.
  4981. * src/XmlRpcMethodFactory.cc
  4982. * src/XmlRpcMethodImpl.cc
  4983. * src/XmlRpcMethodImpl.h
  4984. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4985. Added the ability to execute command when download starts and
  4986. stops. You can also specify command for particular cases such as
  4987. complete/error download. Added --on-download-start,
  4988. --on-download-stop, --on-download-complete and --on-download-error
  4989. option.
  4990. * src/OptionHandlerFactory.cc
  4991. * src/RequestGroupMan.cc
  4992. * src/prefs.cc
  4993. * src/prefs.h
  4994. * src/usage_text.h
  4995. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4996. Fixed test error
  4997. * test/BencodeTest.cc
  4998. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4999. Added unit tests.
  5000. * test/XmlRpcMethodTest.cc
  5001. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5002. Made exception message more verbose.
  5003. * src/bencode.cc
  5004. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5005. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  5006. space in console readout. Also they are now shown in MiB/s if
  5007. speed > 1024KiB/s.
  5008. * src/ConsoleStatCalc.cc
  5009. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5010. Added SEED to console output, which represents the number of
  5011. seeders currently the client is connecting to.
  5012. * src/ConsoleStatCalc.cc
  5013. * src/ConsoleStatCalc.h
  5014. * src/DownloadEngine.cc
  5015. * src/NullStatCalc.h
  5016. * src/StatCalc.h
  5017. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5018. Added source filename(__FILE__) and line number(__LINE__) to
  5019. exception message.
  5020. * src/AbstractCommand.cc
  5021. * src/AbstractDiskWriter.cc
  5022. * src/AbstractProxyResponseCommand.cc
  5023. * src/BDE.h
  5024. * src/BtAllowedFastMessage.cc
  5025. * src/BtHandshakeMessageValidator.h
  5026. * src/BtHaveAllMessage.cc
  5027. * src/BtHaveNoneMessage.cc
  5028. * src/BtPieceMessage.cc
  5029. * src/BtRejectMessage.cc
  5030. * src/ChunkedDecoder.cc
  5031. * src/CookieStorage.cc
  5032. * src/DHTAnnouncePeerMessage.cc
  5033. * src/DHTEntryPointNameResolveCommand.cc
  5034. * src/DHTMessageFactoryImpl.cc
  5035. * src/DHTMessageTracker.cc
  5036. * src/DHTRoutingTableDeserializer.cc
  5037. * src/DHTRoutingTableSerializer.cc
  5038. * src/DHTSetup.cc
  5039. * src/DHTTokenTracker.cc
  5040. * src/DefaultBtAnnounce.cc
  5041. * src/DefaultBtContext.cc
  5042. * src/DefaultBtInteractive.cc
  5043. * src/DefaultBtMessageFactory.cc
  5044. * src/DefaultBtProgressInfoFile.cc
  5045. * src/DefaultExtensionMessageFactory.cc
  5046. * src/DlAbortEx.h
  5047. * src/DlRetryEx.h
  5048. * src/DownloadCommand.cc
  5049. * src/DownloadEngineFactory.cc
  5050. * src/DownloadFailureException.h
  5051. * src/Exception.cc
  5052. * src/Exception.h
  5053. * src/ExpatMetalinkProcessor.cc
  5054. * src/ExpatXmlRpcRequestProcessor.cc
  5055. * src/FallocFileAllocationIterator.cc
  5056. * src/FatalException.h
  5057. * src/FtpConnection.cc
  5058. * src/FtpFinishDownloadCommand.cc
  5059. * src/FtpInitiateConnectionCommand.cc
  5060. * src/FtpNegotiationCommand.cc
  5061. * src/GZipDecoder.cc
  5062. * src/HandshakeExtensionMessage.cc
  5063. * src/HttpConnection.cc
  5064. * src/HttpHeaderProcessor.cc
  5065. * src/HttpInitiateConnectionCommand.cc
  5066. * src/HttpResponse.cc
  5067. * src/HttpResponseCommand.cc
  5068. * src/HttpServer.cc
  5069. * src/HttpSkipResponseCommand.cc
  5070. * src/InitiateConnectionCommandFactory.cc
  5071. * src/IteratableChunkChecksumValidator.cc
  5072. * src/LibgcryptARC4Context.h
  5073. * src/LibgcryptARC4Decryptor.h
  5074. * src/LibgcryptARC4Encryptor.h
  5075. * src/LibgcryptDHKeyExchange.h
  5076. * src/LibgnutlsTLSContext.cc
  5077. * src/LibsslARC4Context.h
  5078. * src/LibsslARC4Decryptor.h
  5079. * src/LibsslARC4Encryptor.h
  5080. * src/LibsslDHKeyExchange.h
  5081. * src/LibsslTLSContext.cc
  5082. * src/MSEHandshake.cc
  5083. * src/MessageDigestHelper.cc
  5084. * src/MetalinkHelper.cc
  5085. * src/MultiDiskAdaptor.cc
  5086. * src/NameMatchOptionHandler.h
  5087. * src/NameResolver.cc
  5088. * src/Netrc.cc
  5089. * src/NsCookieParser.cc
  5090. * src/OptionHandlerException.cc
  5091. * src/OptionHandlerException.h
  5092. * src/OptionHandlerImpl.h
  5093. * src/OptionParser.cc
  5094. * src/ParameterizedStringParser.cc
  5095. * src/PeerAbstractCommand.cc
  5096. * src/PeerConnection.cc
  5097. * src/PeerMessageUtil.cc
  5098. * src/PeerReceiveHandshakeCommand.cc
  5099. * src/Platform.cc
  5100. * src/ReceiverMSEHandshakeCommand.cc
  5101. * src/RecoverableException.h
  5102. * src/RequestGroup.cc
  5103. * src/SimpleLogger.cc
  5104. * src/SocketCore.cc
  5105. * src/Sqlite3MozCookieParser.cc
  5106. * src/UTPexExtensionMessage.cc
  5107. * src/Util.cc
  5108. * src/XML2SAXMetalinkProcessor.cc
  5109. * src/Xml2XmlRpcRequestProcessor.cc
  5110. * src/XmlRpcMethodImpl.cc
  5111. * src/bencode.cc
  5112. * src/download_helper.cc
  5113. * src/messageDigest.h
  5114. * test/ExceptionTest.cc
  5115. * test/TestUtil.cc
  5116. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5117. Bump up version number to 1.4.0
  5118. * configure.ac
  5119. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5120. Added 2files.metalink to EXTRA_DIST
  5121. * test/Makefile.am
  5122. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5123. Added missing 2files.metalink
  5124. * test/2files.metalink
  5125. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5126. Show "[MEMORY]" prefix before filename in download summary if it
  5127. is downloaded into memory.
  5128. * src/DownloadResult.h
  5129. * src/RequestGroup.cc
  5130. * src/RequestGroupMan.cc
  5131. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5132. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  5133. * src/ExpatXmlRpcRequestProcessor.cc
  5134. * src/Xml2XmlRpcRequestProcessor.cc
  5135. * src/message.h
  5136. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5137. Defined const BDEs to avoid duplicate instantiation.
  5138. Defined MSG_GID_NOT_PROVIDED.
  5139. * src/XmlRpcMethodImpl.cc
  5140. * src/message.h
  5141. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5142. Code cleanup
  5143. * src/Xml2XmlRpcRequestProcessor.cc
  5144. * src/Xml2XmlRpcRequestProcessor.h
  5145. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5146. Defined ENABLE_XML_RPC
  5147. * configure.ac
  5148. * configure
  5149. * config.h.in
  5150. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5151. Added ExpatXmlRpcRequestProcessor
  5152. * src/ExpatXmlRpcRequestProcessor.cc
  5153. * src/ExpatXmlRpcRequestProcessor.h
  5154. * src/Makefile.am
  5155. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5156. Added tests for addTorrent and addMetalink command.
  5157. * test/TestUtil.cc
  5158. * test/TestUtil.h
  5159. * test/XmlRpcMethodTest.cc
  5160. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5161. Corrected the description of --file-allocation option.
  5162. * doc/aria2c.1.txt
  5163. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5164. Added tellAll command.
  5165. * src/XmlRpcMethodFactory.cc
  5166. * src/XmlRpcMethodImpl.cc
  5167. * src/XmlRpcMethodImpl.h
  5168. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5169. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  5170. * src/XmlRpcMethodImpl.cc
  5171. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5172. Added changeGlobalOption command. Currently,
  5173. max-overall-download-limit and max-overall-upload-limit option are
  5174. available.
  5175. * src/RequestGroupMan.h
  5176. * src/XmlRpcMethod.cc
  5177. * src/XmlRpcMethod.h
  5178. * src/XmlRpcMethodFactory.cc
  5179. * src/XmlRpcMethodImpl.cc
  5180. * src/XmlRpcMethodImpl.h
  5181. * test/XmlRpcMethodTest.cc
  5182. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5183. Added changeOption command. Currently, max-download-limit,
  5184. max-upload-limit option are available in this command.
  5185. * src/RequestGroup.h
  5186. * src/XmlRpcMethod.cc
  5187. * src/XmlRpcMethod.h
  5188. * src/XmlRpcMethodFactory.cc
  5189. * src/XmlRpcMethodImpl.cc
  5190. * src/XmlRpcMethodImpl.h
  5191. * test/XmlRpcMethodTest.cc
  5192. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5193. Added purgeDownloadResult command.
  5194. * src/RequestGroupMan.cc
  5195. * src/RequestGroupMan.h
  5196. * src/XmlRpcMethodFactory.cc
  5197. * src/XmlRpcMethodImpl.cc
  5198. * src/XmlRpcMethodImpl.h
  5199. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5200. Refactored.
  5201. * src/XmlRpcMethod.cc
  5202. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5203. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  5204. XmlRpcResponse.
  5205. * src/HttpServerBodyCommand.cc
  5206. * src/Makefile.am
  5207. * src/XmlRpcMethod.cc
  5208. * src/XmlRpcMethod.h
  5209. * src/XmlRpcMethodImpl.cc
  5210. * src/XmlRpcResponse.cc
  5211. * src/XmlRpcResponse.h
  5212. * test/XmlRpcMethodTest.cc
  5213. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5214. In XML-RPC option struct, header and index-out option can take
  5215. array as value.
  5216. * src/XmlRpcMethod.cc
  5217. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5218. Removed unused option member from PeerConnection.
  5219. * src/InitiatorMSEHandshakeCommand.cc
  5220. * src/PeerConnection.cc
  5221. * src/PeerConnection.h
  5222. * src/PeerInteractionCommand.cc
  5223. * src/PeerReceiveHandshakeCommand.cc
  5224. * src/ReceiverMSEHandshakeCommand.cc
  5225. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5226. Added "seeder" key to getPeers response.
  5227. * src/XmlRpcMethodImpl.cc
  5228. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5229. Added addMetalink XML-RPC command.
  5230. * src/XmlRpcMethodFactory.cc
  5231. * src/XmlRpcMethodImpl.cc
  5232. * src/XmlRpcMethodImpl.h
  5233. * src/download_helper.cc
  5234. * src/download_helper.h
  5235. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5236. Fixed the bug that POU peers are never choked in seeding.
  5237. * src/BtSeederStateChoke.cc
  5238. * src/BtSeederStateChoke.h
  5239. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5240. Added web-seeding URI handling in addTorrent command.
  5241. * src/XmlRpcMethodImpl.cc
  5242. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5243. Added "length" key to getFiles response.
  5244. * src/XmlRpcMethodImpl.cc
  5245. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5246. Moved --no-netrc option from ftp option section to http/ftp option
  5247. section.
  5248. * doc/aria2c.1.txt
  5249. * src/OptionHandlerFactory.cc
  5250. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5251. Removed garbage "\" character before '
  5252. * doc/aria2c.1.txt
  5253. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5254. Removed garbage "\" character before http.
  5255. * doc/aria2c.1.txt
  5256. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5257. Documented additional options that can be specified in -i list.
  5258. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  5259. and --xml-rpc-passwd. Removed --enable-http-server and
  5260. --http-server-listen-port.
  5261. * doc/aria2c.1.txt
  5262. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5263. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  5264. * src/DefaultPeerStorage.cc
  5265. * src/DefaultPeerStorage.h
  5266. * src/PeerStorage.h
  5267. * src/XmlRpcMethodImpl.cc
  5268. * test/MockPeerStorage.h
  5269. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5270. Put a call to Socket::isReadable() in try block.
  5271. * src/HttpServerBodyCommand.cc
  5272. * src/HttpServerCommand.cc
  5273. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5274. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  5275. exception , so it is now in try block.
  5276. * src/HttpServerResponseCommand.cc
  5277. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5278. Added "amChoking" and "peerChoking" key in getPeers response.
  5279. * src/XmlRpcMethodImpl.cc
  5280. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5281. Added test case for zero-length filter.
  5282. * test/BitfieldManTest.cc
  5283. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5284. getFiles command now returns file data for finished/stopped
  5285. downloads.
  5286. * src/XmlRpcMethodImpl.cc
  5287. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5288. DownloadResult now has the list of FileEntry. The download
  5289. summary displays the path of first selected file and the number of
  5290. remaining files for multi-file torrent.
  5291. * src/DownloadResult.h
  5292. * src/RequestGroup.cc
  5293. * src/RequestGroupMan.cc
  5294. * test/RequestGroupTest.cc
  5295. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5296. Fixed segmentation fault error when no file is selected in
  5297. multi-file torrent.
  5298. * src/BitfieldMan.cc
  5299. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5300. Escaped <,>,& character in XML-RPC response.
  5301. * src/XmlRpcMethod.cc
  5302. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5303. Throw DlAbortEx instead of FatalException during parsing options
  5304. because we don't want for aria2 to quit when bad option is passed
  5305. via XML-RPC.
  5306. * src/OptionHandlerException.cc
  5307. * src/OptionHandlerException.h
  5308. * src/OptionHandlerImpl.h
  5309. * src/OptionParser.cc
  5310. * src/OptionParser.h
  5311. * src/PStringSegment.cc
  5312. * src/ParameterizedStringParser.cc
  5313. * src/download_helper.cc
  5314. * test/ParameterizedStringParserTest.cc
  5315. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5316. Selecting files are now done in
  5317. DefaultBtContext::setFileFileter().
  5318. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  5319. functions are removed because they are no longer used. Creating
  5320. filter in BitfieldMan is done in new funtion
  5321. PieceStorage::setupFileFilter()
  5322. * src/BtContext.cc
  5323. * src/BtContext.h
  5324. * src/DefaultBtContext.cc
  5325. * src/DefaultBtContext.h
  5326. * src/DefaultPieceStorage.cc
  5327. * src/DefaultPieceStorage.h
  5328. * src/DiskAdaptor.cc
  5329. * src/DiskAdaptor.h
  5330. * src/PieceStorage.h
  5331. * src/RequestGroup.cc
  5332. * src/UnknownLengthPieceStorage.h
  5333. * src/XmlRpcMethodImpl.cc
  5334. * test/DefaultBtContextTest.cc
  5335. * test/MockBtContext.h
  5336. * test/MockPieceStorage.h
  5337. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5338. Fixed compile error on Mac OS X
  5339. * src/HttpServer.cc
  5340. * src/XmlRpcMethod.h
  5341. * src/XmlRpcMethodImpl.cc
  5342. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5343. Use std::binary_search instead of std::find
  5344. * src/DefaultPieceStorage.cc
  5345. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5346. Removed unnecessary BDE() call; leave them to implicit conversion.
  5347. * src/XmlRpcMethodImpl.cc
  5348. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5349. Return connections and gid in string
  5350. * src/XmlRpcMethodImpl.cc
  5351. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5352. Renamed addURI as addUri
  5353. * src/XmlRpcMethodFactory.cc
  5354. * src/XmlRpcMethodImpl.cc
  5355. * src/XmlRpcMethodImpl.h
  5356. * test/XmlRpcMethodTest.cc
  5357. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5358. Renamed addTorrentFile as addTorrent
  5359. * src/XmlRpcMethodFactory.cc
  5360. * src/XmlRpcMethodImpl.cc
  5361. * src/XmlRpcMethodImpl.h
  5362. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5363. The information for files, URIs, peers are removed from the
  5364. reponse of TellaActive, TellStatus command because they tend to be
  5365. large. Instead they can be retrieved by the dedicated commands:
  5366. getFiles, getUris and getPeers respectively.
  5367. * src/XmlRpcMethodFactory.cc
  5368. * src/XmlRpcMethodImpl.cc
  5369. * src/XmlRpcMethodImpl.h
  5370. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5371. Removed --max-overall-upload-limit and
  5372. --max-overall-download-limit option from listRequestOptions.
  5373. * src/download_helper.cc
  5374. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5375. Log incoming host in HttpListenCommand.
  5376. * src/HttpListenCommand.cc
  5377. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5378. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  5379. --xml-rpc-passwd option.
  5380. * src/HttpServer.cc
  5381. * src/HttpServer.h
  5382. * src/HttpServerCommand.cc
  5383. * src/OptionHandlerFactory.cc
  5384. * src/prefs.cc
  5385. * src/prefs.h
  5386. * src/usage_text.h
  5387. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5388. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  5389. processing 0 length request.
  5390. * src/HttpServerBodyCommand.cc
  5391. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5392. Removed --enable-http-server and --http-server-listen-port
  5393. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  5394. instead. The original feature for --enable-http-server that
  5395. reports download progress in HTML was officially removed. Persist
  5396. XML-RPC connection if client supports keep-alive.
  5397. * src/DownloadEngineFactory.cc
  5398. * src/HttpServerCommand.cc
  5399. * src/HttpServerResponseCommand.cc
  5400. * src/Makefile.am
  5401. * src/Makefile.in
  5402. * src/OptionHandlerFactory.cc
  5403. * src/RequestGroupMan.cc
  5404. * src/main.cc
  5405. * src/option_processing.cc
  5406. * src/prefs.cc
  5407. * src/prefs.h
  5408. * src/usage_text.h
  5409. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5410. Added "uris" key to the response of tellStatus command. Added
  5411. "connections" key to the response of tellStatus and tellActive
  5412. command.
  5413. * src/XmlRpcMethodImpl.cc
  5414. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5415. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  5416. Added TellStatusXmlRpcMethod. Remove command can now remove
  5417. waiting RequestGroup.
  5418. * src/RequestGroupMan.cc
  5419. * src/RequestGroupMan.h
  5420. * src/XmlRpcMethodFactory.cc
  5421. * src/XmlRpcMethodImpl.cc
  5422. * src/XmlRpcMethodImpl.h
  5423. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5424. Initialized _peerId
  5425. * src/Peer.cc
  5426. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5427. Return fault structure for error. FailXmlRpcMethod is renamed as
  5428. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  5429. in non-torrent download. Return single param value.
  5430. * src/XmlRpcMethod.cc
  5431. * src/XmlRpcMethodFactory.cc
  5432. * src/XmlRpcMethodImpl.cc
  5433. * src/XmlRpcMethodImpl.h
  5434. * test/XmlRpcMethodTest.cc
  5435. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5436. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  5437. command.
  5438. * src/RequestGroup.cc
  5439. * src/RequestGroup.h
  5440. * src/RequestGroupMan.cc
  5441. * src/XmlRpcMethodImpl.cc
  5442. * test/RequestGroupTest.cc
  5443. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5444. Added more options that can be specified in -i list and xml-rpc
  5445. add* command.
  5446. * src/download_helper.h
  5447. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5448. The available options in -i list should be listed in
  5449. listRequestOptions().
  5450. * src/download_helper.cc
  5451. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5452. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  5453. command.
  5454. * src/XmlRpcMethodImpl.cc
  5455. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5456. Now RequestGroup has its own copy of Option object. This will help
  5457. to give custom option for each RequestGroup.
  5458. addTorrentFile command now takes options.
  5459. * src/AbstractCommand.cc
  5460. * src/AbstractCommand.h
  5461. * src/AbstractProxyRequestCommand.cc
  5462. * src/ActivePeerConnectionCommand.cc
  5463. * src/ActivePeerConnectionCommand.h
  5464. * src/AdaptiveURISelector.cc
  5465. * src/BtCheckIntegrityEntry.cc
  5466. * src/BtDependency.cc
  5467. * src/BtDependency.h
  5468. * src/BtFileAllocationEntry.cc
  5469. * src/BtPostDownloadHandler.cc
  5470. * src/CheckIntegrityEntry.cc
  5471. * src/DownloadCommand.cc
  5472. * src/FtpDownloadCommand.cc
  5473. * src/FtpFinishDownloadCommand.cc
  5474. * src/FtpInitiateConnectionCommand.cc
  5475. * src/FtpNegotiationCommand.cc
  5476. * src/HttpInitiateConnectionCommand.cc
  5477. * src/HttpRequestCommand.cc
  5478. * src/HttpResponseCommand.cc
  5479. * src/HttpSkipResponseCommand.cc
  5480. * src/InitiateConnectionCommand.cc
  5481. * src/InitiateConnectionCommandFactory.cc
  5482. * src/InitiatorMSEHandshakeCommand.cc
  5483. * src/InitiatorMSEHandshakeCommand.h
  5484. * src/Metalink2RequestGroup.cc
  5485. * src/Metalink2RequestGroup.h
  5486. * src/MetalinkPostDownloadHandler.cc
  5487. * src/MultiUrlRequestInfo.cc
  5488. * src/MultiUrlRequestInfo.h
  5489. * src/PeerAbstractCommand.cc
  5490. * src/PeerInteractionCommand.cc
  5491. * src/PeerInteractionCommand.h
  5492. * src/PeerReceiveHandshakeCommand.cc
  5493. * src/PeerReceiveHandshakeCommand.h
  5494. * src/RequestGroup.cc
  5495. * src/RequestGroup.h
  5496. * src/TrackerWatcherCommand.cc
  5497. * src/TrackerWatcherCommand.h
  5498. * src/XmlRpcMethod.cc
  5499. * src/XmlRpcMethod.h
  5500. * src/XmlRpcMethodImpl.cc
  5501. * src/download_helper.cc
  5502. * src/download_helper.h
  5503. * src/main.cc
  5504. * test/BtDependencyTest.cc
  5505. * test/BtPostDownloadHandlerTest.cc
  5506. * test/DefaultBtMessageDispatcherTest.cc
  5507. * test/DownloadHandlerFactoryTest.cc
  5508. * test/DownloadHelperTest.cc
  5509. * test/Metalink2RequestGroupTest.cc
  5510. * test/MetalinkPostDownloadHandlerTest.cc
  5511. * test/RequestGroupManTest.cc
  5512. * test/RequestGroupTest.cc
  5513. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5514. Added tellActiveStatus xml-rpc command which reports download
  5515. status of active downloads.
  5516. * src/XmlRpcMethodFactory.cc
  5517. * src/XmlRpcMethodImpl.cc
  5518. * src/XmlRpcMethodImpl.h
  5519. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5520. Added addTorrentFile xml-rpc command which receives uploaded
  5521. torrent file and add download for it.
  5522. * src/RequestGroupMan.cc
  5523. * src/XmlRpcMethodFactory.cc
  5524. * src/XmlRpcMethodImpl.cc
  5525. * src/XmlRpcMethodImpl.h
  5526. * src/download_helper.cc
  5527. * src/download_helper.h
  5528. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5529. Added remove xml-rpc command which removes specified download.
  5530. There is a known issue: the removed unfinished downloads are
  5531. reported ERR when aria2 exits. They should be reported as INPR.
  5532. * src/RequestGroupMan.cc
  5533. * src/RequestGroupMan.h
  5534. * src/XmlRpcMethodFactory.cc
  5535. * src/XmlRpcMethodImpl.cc
  5536. * src/XmlRpcMethodImpl.h
  5537. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5538. If --enable-http-server is enabled, don't stop aria2 when all
  5539. download finished and don't quit when no files to download at
  5540. start up.
  5541. * src/RequestGroupMan.cc
  5542. * src/main.cc
  5543. * src/option_processing.cc
  5544. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5545. Added missing AM_CONDITIONAL
  5546. * configure.ac
  5547. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5548. Added xml-rpc functionality. Currently only addURI commad is
  5549. supported. To enable xml-rpc, run aria2 with
  5550. --enable-http-server. This option name is temporal and will be
  5551. changed. The feature that reports download progress in html format
  5552. is temporarily disabled.
  5553. * src/HttpServer.cc
  5554. * src/HttpServer.h
  5555. * src/HttpServerBodyCommand.cc
  5556. * src/HttpServerBodyCommand.h
  5557. * src/HttpServerCommand.cc
  5558. * src/HttpServerResponseCommand.cc
  5559. * src/Makefile.am
  5560. * src/OptionParser.cc
  5561. * src/OptionParser.h
  5562. * src/RequestGroupMan.cc
  5563. * src/RequestGroupMan.h
  5564. * src/XmlRpcMethod.cc
  5565. * src/XmlRpcMethod.h
  5566. * src/XmlRpcMethodFactory.cc
  5567. * src/XmlRpcMethodFactory.h
  5568. * src/XmlRpcMethodImpl.cc
  5569. * src/XmlRpcMethodImpl.h
  5570. * src/download_helper.cc
  5571. * src/download_helper.h
  5572. * test/Makefile.am
  5573. * test/XmlRpcMethodTest.cc
  5574. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5575. Added xml-rpc request parser. The supported value types are:
  5576. i4/int, string, double, struct, array, base64. Currently only
  5577. libxml2 version is provided.
  5578. * src/Xml2XmlRpcRequestProcessor.cc
  5579. * src/Xml2XmlRpcRequestProcessor.h
  5580. * src/XmlRpcElements.cc
  5581. * src/XmlRpcElements.h
  5582. * src/XmlRpcRequest.h
  5583. * src/XmlRpcRequestParserController.cc
  5584. * src/XmlRpcRequestParserController.h
  5585. * src/XmlRpcRequestParserState.h
  5586. * src/XmlRpcRequestParserStateImpl.cc
  5587. * src/XmlRpcRequestParserStateImpl.h
  5588. * src/XmlRpcRequestParserStateMachine.cc
  5589. * src/XmlRpcRequestParserStateMachine.h
  5590. * src/XmlRpcRequestProcessor.h
  5591. * test/XmlRpcRequestParserControllerTest.cc
  5592. * test/XmlRpcRequestProcessorTest.cc
  5593. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5594. * Release 1.3.3
  5595. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5596. Fixed compile error since r1202.
  5597. * src/ExpatMetalinkProcessor.cc
  5598. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5599. Updated Ukrainian, Russian and Simplified Chinese
  5600. translations. Thanks to all translators.
  5601. * po/ru.po
  5602. * po/uk.po
  5603. * po/zh_CN.po
  5604. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5605. Pass reference of Option object instead of pointer.
  5606. * src/download_helper.cc
  5607. * src/download_helper.h
  5608. * src/main.cc
  5609. * test/DownloadHelperTest.cc
  5610. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5611. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  5612. from option directly. Instead, get them from RequestGroup.
  5613. * src/ActivePeerConnectionCommand.cc
  5614. * src/ActivePeerConnectionCommand.h
  5615. * src/PeerReceiveHandshakeCommand.cc
  5616. * src/RequestGroup.h
  5617. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5618. Removed unused uploadLimitCheck and uploadLimit from
  5619. PeerAbstractCommand. Removed unused maxDownloadLimit from
  5620. PeerInteractionCommand.
  5621. * src/PeerAbstractCommand.cc
  5622. * src/PeerAbstractCommand.h
  5623. * src/PeerInteractionCommand.cc
  5624. * src/PeerInteractionCommand.h
  5625. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5626. Fixed broken file renaming feature since r1202.
  5627. * src/FtpNegotiationCommand.cc
  5628. * src/FtpNegotiationCommand.h
  5629. * src/HttpResponseCommand.cc
  5630. * src/RequestGroup.cc
  5631. * src/RequestGroup.h
  5632. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5633. Removed unused debug log
  5634. * src/SocketCore.cc
  5635. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5636. Generated configure and Makefile.in using autoconf 2.63 and
  5637. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  5638. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  5639. * configure.ac
  5640. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5641. Moved piece statistics stuff to new PieceStatMan class.
  5642. Refactored PieceSelector interface.
  5643. * src/DefaultPieceStorage.cc
  5644. * src/DefaultPieceStorage.h
  5645. * src/LongestSequencePieceSelector.cc
  5646. * src/LongestSequencePieceSelector.h
  5647. * src/Makefile.am
  5648. * src/PieceSelector.h
  5649. * src/PieceStatMan.cc
  5650. * src/PieceStatMan.h
  5651. * src/RarestPieceSelector.cc
  5652. * src/RarestPieceSelector.h
  5653. * src/RequestGroup.cc
  5654. * test/DefaultPieceStorageTest.cc
  5655. * test/InOrderPieceSelector.h
  5656. * test/Makefile.am
  5657. * test/PieceStatManTest.cc
  5658. * test/RarestPieceSelectorTest.cc
  5659. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5660. Added static member _protocolFamily to SocketCore. By default,
  5661. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  5662. address. Sometime SocketCore::bind() and
  5663. SocketCore::establishConnection() use difference protocl family
  5664. and latter cannot connect to former. To avoid this situation, we
  5665. limit protocol family to AF_INET for unit tests.
  5666. * src/SocketCore.cc
  5667. * src/SocketCore.h
  5668. * test/AllTest.cc
  5669. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5670. Avoid std::bad_alloc for negative bencode string length.
  5671. * src/bencode.cc
  5672. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5673. Supported segmented downloading with chunked transfer encoding and
  5674. content-length.
  5675. * src/DownloadCommand.cc
  5676. * src/HttpResponseCommand.cc
  5677. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5678. Bump up version number to 1.3.3
  5679. * configure.ac
  5680. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5681. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  5682. from 4096 to 65536 (for insanely large ftp login banners)
  5683. * src/FtpConnection.h
  5684. * test/FtpConnectionTest.cc
  5685. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5686. In DefaultBtContext::getActualBasePath(), return first
  5687. FileEntry::getPath() for single file torrent.
  5688. * src/DefaultBtContext.cc
  5689. * test/DefaultBtContextTest.cc
  5690. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5691. Removed directIOAllowed() from BinaryStream, DiskWriter,
  5692. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  5693. Removed _directIOAllowed member from DiskWriter.
  5694. * src/AbstractDiskWriter.cc
  5695. * src/AbstractDiskWriter.h
  5696. * src/AbstractSingleDiskAdaptor.cc
  5697. * src/AbstractSingleDiskAdaptor.h
  5698. * src/BinaryStream.h
  5699. * src/ByteArrayDiskWriter.h
  5700. * src/DefaultPieceStorage.cc
  5701. * src/DiskWriter.h
  5702. * src/MultiDiskAdaptor.cc
  5703. * src/MultiDiskAdaptor.h
  5704. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5705. Now the constructor of AbstractDiskWriter takes filename as an
  5706. argument and filename argument is removed from openFile(),
  5707. initAndOpenFile(), openExistingFile() interface. storeDir member
  5708. and its accessor functions are removed from DiskAdaptor because it
  5709. is not used anymore. size() member function of DefaultDiskWriter,
  5710. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  5711. opening file.
  5712. * src/AbstractDiskWriter.cc
  5713. * src/AbstractDiskWriter.h
  5714. * src/AbstractSingleDiskAdaptor.cc
  5715. * src/AbstractSingleDiskAdaptor.h
  5716. * src/ByteArrayDiskWriter.cc
  5717. * src/ByteArrayDiskWriter.h
  5718. * src/ByteArrayDiskWriterFactory.cc
  5719. * src/ByteArrayDiskWriterFactory.h
  5720. * src/DefaultDiskWriter.cc
  5721. * src/DefaultDiskWriter.h
  5722. * src/DefaultDiskWriterFactory.cc
  5723. * src/DefaultDiskWriterFactory.h
  5724. * src/DefaultPieceStorage.cc
  5725. * src/DirectDiskAdaptor.cc
  5726. * src/DirectDiskAdaptor.h
  5727. * src/DiskAdaptor.h
  5728. * src/DiskWriter.h
  5729. * src/DiskWriterFactory.h
  5730. * src/MessageDigestHelper.cc
  5731. * src/MultiDiskAdaptor.cc
  5732. * src/RequestGroup.cc
  5733. * src/UnknownLengthPieceStorage.cc
  5734. * src/Util.cc
  5735. * test/DefaultDiskWriterTest.cc
  5736. * test/DirectDiskAdaptorTest.cc
  5737. * test/FallocFileAllocationIteratorTest.cc
  5738. * test/MessageDigestHelperTest.cc
  5739. * test/MetalinkProcessorTest.cc
  5740. * test/MultiDiskAdaptorTest.cc
  5741. * test/MultiFileAllocationIteratorTest.cc
  5742. * test/SingleFileAllocationIteratorTest.cc
  5743. * test/UtilTest.cc
  5744. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5745. Fixed the bug that aria2 aborts when --select-file is used. This
  5746. bug was introduced in r1199.
  5747. * src/MultiDiskAdaptor.cc
  5748. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5749. Code cleanup
  5750. * test/MockPieceStorage.cc
  5751. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5752. Fixed the bug that read-only file with wrong file size will cause
  5753. error because it cannot be truncated to the correct size. Now if
  5754. file size is different than the expected one, re-open file in
  5755. writable mode.
  5756. * src/AbstractSingleDiskAdaptor.cc
  5757. * src/AbstractSingleDiskAdaptor.h
  5758. * src/BtCheckIntegrityEntry.cc
  5759. * src/DiskAdaptor.h
  5760. * src/MultiDiskAdaptor.h
  5761. * src/RequestGroup.cc
  5762. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5763. Fixed the bug that with --check-integrity option aria2 reports
  5764. downloaded file size is 0 even if some parts of file is correctly
  5765. downloaded. This bug is reproducible for the download that a file
  5766. includes last piece is missing. This bug doesn't reveal for
  5767. single-torrent with file allocation on.
  5768. * src/IteratableChecksumValidator.cc
  5769. * test/IteratableChecksumValidatorTest.cc
  5770. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5771. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5772. * src/RequestGroupMan.cc
  5773. * src/AdaptiveURISelector.cc
  5774. * src/AdaptiveURISelector.h
  5775. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5776. * Release 1.3.2
  5777. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5778. Updated README
  5779. * README
  5780. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5781. Updated Ukrainian translations. Thanks to Alexander10.
  5782. * po/uk.po
  5783. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5784. Code cleanup
  5785. * src/MetalinkParserStateMachine.cc
  5786. * src/MetalinkParserStateMachine.h
  5787. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5788. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5789. and expat simultaneously, MetalinkProcessor is now not base class
  5790. and it is directly implemented in XML2SAXMetalinkProcessor and
  5791. ExpatMetalinkProcessor.
  5792. * src/ExpatMetalinkProcessor.cc
  5793. * src/ExpatMetalinkProcessor.h
  5794. * src/Makefile.am
  5795. * src/MetalinkHelper.cc
  5796. * src/MetalinkProcessor.h
  5797. * src/MetalinkProcessorFactory.cc: Removed.
  5798. * src/MetalinkProcessorFactory.h: Removed
  5799. * src/XML2SAXMetalinkProcessor.cc
  5800. * src/XML2SAXMetalinkProcessor.h
  5801. * test/MetalinkProcessorTest.cc
  5802. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5803. Bump up version number to 1.3.2
  5804. * configure.ac
  5805. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5806. Added missing file.
  5807. * test/Makefile.am
  5808. * test/url-list-singleFileEndsWithSlash.torrent
  5809. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5810. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5811. request.
  5812. * src/AnnounceList.cc
  5813. * src/AnnounceList.h
  5814. * src/BDE.cc: Added
  5815. * src/BDE.h: Added
  5816. * src/DHTAbstractMessage.cc
  5817. * src/DHTAbstractMessage.h
  5818. * src/DHTAnnouncePeerMessage.cc
  5819. * src/DHTAnnouncePeerMessage.h
  5820. * src/DHTAnnouncePeerReplyMessage.cc
  5821. * src/DHTAnnouncePeerReplyMessage.h
  5822. * src/DHTFindNodeMessage.cc
  5823. * src/DHTFindNodeMessage.h
  5824. * src/DHTFindNodeReplyMessage.cc
  5825. * src/DHTFindNodeReplyMessage.h
  5826. * src/DHTGetPeersMessage.cc
  5827. * src/DHTGetPeersMessage.h
  5828. * src/DHTGetPeersReplyMessage.cc
  5829. * src/DHTGetPeersReplyMessage.h
  5830. * src/DHTMessageFactory.h
  5831. * src/DHTMessageFactoryImpl.cc
  5832. * src/DHTMessageFactoryImpl.h
  5833. * src/DHTMessageReceiver.cc
  5834. * src/DHTMessageTracker.cc
  5835. * src/DHTMessageTracker.h
  5836. * src/DHTPingMessage.cc
  5837. * src/DHTPingMessage.h
  5838. * src/DHTPingReplyMessage.cc
  5839. * src/DHTPingReplyMessage.h
  5840. * src/DHTQueryMessage.cc
  5841. * src/DHTQueryMessage.h
  5842. * src/DHTResponseMessage.cc
  5843. * src/DHTResponseMessage.h
  5844. * src/DefaultBtAnnounce.cc
  5845. * src/DefaultBtContext.cc
  5846. * src/DefaultBtContext.h
  5847. * src/HandshakeExtensionMessage.cc
  5848. * src/Makefile.am
  5849. * src/PeerListProcessor.h
  5850. * src/UTPexExtensionMessage.cc
  5851. * src/bencode.cc
  5852. * src/bencode.h
  5853. * test/AnnounceListTest.cc
  5854. * test/BDETest.cc: Added
  5855. * test/BencodeTest.cc
  5856. * test/DHTAnnouncePeerMessageTest.cc
  5857. * test/DHTAnnouncePeerReplyMessageTest.cc
  5858. * test/DHTFindNodeMessageTest.cc
  5859. * test/DHTFindNodeReplyMessageTest.cc
  5860. * test/DHTGetPeersMessageTest.cc
  5861. * test/DHTGetPeersReplyMessageTest.cc
  5862. * test/DHTMessageFactoryImplTest.cc
  5863. * test/DHTMessageTrackerTest.cc
  5864. * test/DHTPingMessageTest.cc
  5865. * test/DHTPingReplyMessageTest.cc
  5866. * test/Makefile.am
  5867. * test/MockDHTMessageFactory.h
  5868. * test/PeerListProcessorTest.cc
  5869. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5870. Use url-list (web-seeding) only for single-file torrent. This is
  5871. basically the same behavior with Metalink file with torrent and
  5872. URIs.
  5873. * src/RequestGroup.cc
  5874. * src/DefaultBtContext.cc
  5875. * test/DefaultBtContextTest.cc
  5876. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5877. Rewritten expr
  5878. * src/array_fun.h
  5879. * test/array_funTest.cc
  5880. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5881. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5882. * src/DefaultBtMessageDispatcher.cc
  5883. * src/a2algo.h
  5884. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5885. Removed ExtendedMessagingAware. Instead of using inheritance,
  5886. added ExtensionMessageRegistry and it is passed to
  5887. DefaultExtensionMessageFactory.
  5888. * src/DefaultBtInteractive.cc
  5889. * src/DefaultBtInteractive.h
  5890. * src/DefaultExtensionMessageFactory.cc
  5891. * src/DefaultExtensionMessageFactory.h
  5892. * src/ExtendedMessagingAware.h: Removed.
  5893. * src/ExtensionMessageFactory.h
  5894. * src/ExtensionMessageRegistry.h: Added.
  5895. * src/Makefile.am
  5896. * src/PeerInteractionCommand.cc
  5897. * test/DefaultExtensionMessageFactoryTest.cc
  5898. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5899. Fixed typo in log messages
  5900. * src/MSEHandshake.cc
  5901. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5902. Fixed the bug that prevents torrent download from finishing. The
  5903. bug doesn't reveal for all torrents. The torrents affected this
  5904. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5905. of pieces.
  5906. * src/bitfield.h
  5907. * test/bitfieldTest.cc
  5908. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5909. Code cleanup
  5910. * src/PeerListProcessor.h
  5911. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5912. Removed RequestGroupAware
  5913. * src/AbstractCommand.cc
  5914. * src/AbstractCommand.h
  5915. * src/ActivePeerConnectionCommand.cc
  5916. * src/ActivePeerConnectionCommand.h
  5917. * src/DHTGetPeersCommand.cc
  5918. * src/DHTGetPeersCommand.h
  5919. * src/InitiatorMSEHandshakeCommand.cc
  5920. * src/InitiatorMSEHandshakeCommand.h
  5921. * src/Makefile.am
  5922. * src/PeerInitiateConnectionCommand.cc
  5923. * src/PeerInitiateConnectionCommand.h
  5924. * src/PeerInteractionCommand.cc
  5925. * src/PeerInteractionCommand.h
  5926. * src/RealtimeCommand.cc
  5927. * src/RealtimeCommand.h
  5928. * src/RequestGroupAware.cc: Removed
  5929. * src/RequestGroupAware.h: Removed
  5930. * src/SeedCheckCommand.cc
  5931. * src/SeedCheckCommand.h
  5932. * src/SleepCommand.cc
  5933. * src/TrackerWatcherCommand.cc
  5934. * src/TrackerWatcherCommand.h
  5935. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5936. Rewritten PeerListProcessor
  5937. * src/PeerListProcessor.h
  5938. * src/CompactPeerListProcessor.h: Removed
  5939. * src/CompactPeerListProcessor.cc: Removed
  5940. * src/DelegatingPeerListProcessor.cc: Removed.
  5941. * src/DefaultBtAnnounce.cc
  5942. * src/Makefile.am
  5943. * src/UTPexExtensionMessage.cc
  5944. * src/DefaultPeerListProcessor.h: Removed.
  5945. * src/DefaultPeerListProcessor.cc: Removed.
  5946. * src/DelegatingPeerListProcessor.h: Removed.
  5947. * test/Makefile.am
  5948. * test/PeerListProcessorTest.cc
  5949. * test/DefaultPeerListProcessorTest.cc: Removed.
  5950. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5951. Rewritten RequestGroupMan::calculateStat()
  5952. * src/RequestGroupMan.cc
  5953. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5954. Removed unnecessary virtual destructor for Request class.
  5955. * src/Request.cc
  5956. * src/Request.h
  5957. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5958. Avoid dynamic_pointer_cast.
  5959. * src/DHTGetPeersCommand.cc
  5960. * src/DHTGetPeersCommand.h
  5961. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5962. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5963. BtEvent.
  5964. * src/AbstractBtEventListener.h: Removed.
  5965. * src/AbstractBtMessage.cc
  5966. * src/AbstractBtMessage.h
  5967. * src/BtAbortOutstandingRequestEvent.h
  5968. * src/BtCancelSendingPieceEvent.h
  5969. * src/BtChokedEvent.h: Removed.
  5970. * src/BtChokingEvent.h
  5971. * src/BtEvent.h: Removed
  5972. * src/BtEventListener.h: Removed.
  5973. * src/BtMessage.h
  5974. * src/BtPieceMessage.cc
  5975. * src/BtPieceMessage.h
  5976. * src/BtRequestMessage.cc
  5977. * src/BtRequestMessage.h
  5978. * src/DefaultBtMessageDispatcher.cc
  5979. * src/Makefile.am
  5980. * src/a2functional.h
  5981. * test/BtPieceMessageTest.cc
  5982. * test/BtRequestMessageTest.cc
  5983. * test/DefaultBtMessageDispatcherTest.cc
  5984. * test/MockBtMessage.h
  5985. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5986. Code cleanup
  5987. * src/RequestGroupMan.cc
  5988. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5989. Code cleanup
  5990. * src/DownloadCommand.cc
  5991. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5992. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5993. byte.
  5994. * src/DownloadCommand.cc
  5995. * src/bitfield.h
  5996. * test/bitfieldTest.cc
  5997. Fixed the bug that causes infinite loop if broken web server
  5998. returns chunked response without last "0" chunk-size marker and
  5999. closes connection.
  6000. * src/DownloadCommand.cc
  6001. Instantiate properly configured HttpDownloadCommand for
  6002. non-resumable downlaods.
  6003. * src/HttpResponseCommand.cc
  6004. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6005. Rewritten array operation functions.
  6006. * src/BitfieldMan.cc
  6007. * src/array_fun.h
  6008. * test/array_funTest.cc
  6009. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6010. Removed unused variable 'query'
  6011. * src/Request.cc
  6012. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6013. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  6014. accidentally set to false in r1162.
  6015. * configure.ac
  6016. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6017. Code cleanup
  6018. * src/BNode.cc
  6019. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6020. Increase prefixLength for the bucket which doesn't own local node
  6021. ID when splitting bucket.
  6022. * src/DHTBucket.cc
  6023. * test/DHTBucketTest.cc
  6024. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6025. * Release 1.3.1
  6026. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6027. Bump up version number to 1.3.1
  6028. * configure.ac
  6029. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6030. Removed unused variable checkPoint. Also removed include directive
  6031. for TimeA2.h.
  6032. * src/SeedCheckCommand.h
  6033. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6034. Fixed the bug that upload limit exceeds the value specified in
  6035. --seed-ratio option depending on the timing of the execution of
  6036. SeedCheckCommand.
  6037. * src/SeedCheckCommand.cc
  6038. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6039. Fixed the bug that removed peer's session upload/download length
  6040. are counted twice in _cachedTransferStat before it is
  6041. re-calculated. This affected the calculation of shara ratio,
  6042. resulting aria2 wrongly determines that specified share ratio is
  6043. reached. Also fixed the typo in calculateStatFor function name.
  6044. * src/BtSetup.cc
  6045. * src/DefaultPeerStorage.cc
  6046. * src/ShareRatioSeedCriteria.h
  6047. * test/ShareRatioSeedCriteriaTest.cc
  6048. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6049. * Release 1.3.0
  6050. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6051. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  6052. Nynorsk translations. Thanks to all translators.
  6053. * po/es.po
  6054. * po/ja.po
  6055. * po/nn.po
  6056. * po/ru.po
  6057. * po/uk.po
  6058. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6059. Rewritten isInRange()
  6060. * src/DHTBucket.cc
  6061. * test/DHTBucketTest.cc
  6062. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6063. Fixed typo
  6064. * doc/aria2c.1.txt
  6065. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6066. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  6067. malloc/realloc is not used.
  6068. * src/configure.ac
  6069. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6070. BitfieldMan::getMissingIndexes family functions now takes unsigned
  6071. char* bitfield instead of stl container for efficiency.
  6072. PieceSelector::select now takes this
  6073. bitfield. RarestPieceSelector::select now also performs
  6074. efficiently for this change. bitfield namespace is introduced and
  6075. it has several helper functions to handle basic bitfield
  6076. operations such as test, count set bits, etc.
  6077. * src/BitfieldMan.cc
  6078. * src/BitfieldMan.h
  6079. * src/DefaultBtRequestFactory.cc
  6080. * src/DefaultPieceStorage.cc
  6081. * src/DefaultPieceStorage.h
  6082. * src/LongestSequencePieceSelector.cc
  6083. * src/LongestSequencePieceSelector.h
  6084. * src/Makefile.am
  6085. * src/Piece.cc
  6086. * src/Piece.h
  6087. * src/PieceSelector.h
  6088. * src/RarestPieceSelector.cc
  6089. * src/RarestPieceSelector.h
  6090. * src/Util.cc
  6091. * src/Util.h
  6092. * src/bitfield.h
  6093. * test/BitfieldManTest.cc
  6094. * test/LongestSequencePieceSelectorTest.cc
  6095. * test/Makefile.am
  6096. * test/RarestPieceSelectorTest.cc
  6097. * test/UtilTest.cc
  6098. * test/bitfieldTest.cc
  6099. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6100. Made accepted socket non-block.
  6101. * src/FtpNegotiationCommand.cc
  6102. * src/HttpListenCommand.cc
  6103. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6104. Guarded #ifdef HAVE_POSIX_FALLOCATE
  6105. * src/AbstractSingleDiskAdaptor.cc
  6106. * src/DefaultPieceStorage.cc
  6107. * src/DiskAdaptor.h
  6108. * src/DiskAdaptor.h
  6109. * src/MultiFileAllocationIterator.cc
  6110. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6111. Run
  6112. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  6113. in every 1 sec. The timeout of RequestSlot is 60s by default and
  6114. it doesn't need to be called every time when
  6115. DefaultBtInteractive::doInteractionProcessing() is called.
  6116. * src/DefaultBtInteractive.cc
  6117. * src/DefaultBtInteractive.h
  6118. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6119. Documented 'falloc' in man page.
  6120. * doc/aria2c.1.txt
  6121. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6122. Updated doc
  6123. * src/usage_text.h
  6124. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6125. Added 'falloc' parameter for --file-allocation option. 'falloc'
  6126. allocation mode uses posix_fallocate() system call to allocate
  6127. file on disk. If you are using newer file systems such as ext4
  6128. (with extents support), btrfs or xfs, 'falloc' is your best
  6129. choice. It allocates large(few GiB) files almost instantly. Don't
  6130. use 'falloc' with legacy file systems such as ext3 because it
  6131. takes almost same time as 'prealloc' and it blocks aria2 entirely
  6132. until allocation finishes. 'falloc' may not be available if your
  6133. system doesn't have posix_fallocate() system call.
  6134. * configure.ac
  6135. * src/AbstractDiskWriter.cc
  6136. * src/AbstractDiskWriter.h
  6137. * src/AbstractSingleDiskAdaptor.cc
  6138. * src/BinaryStream.h
  6139. * src/BtCheckIntegrityEntry.cc
  6140. * src/ByteArrayDiskWriter.h
  6141. * src/CheckIntegrityEntry.cc
  6142. * src/CheckIntegrityEntry.h
  6143. * src/DefaultPieceStorage.cc
  6144. * src/DiskAdaptor.cc
  6145. * src/DiskAdaptor.h
  6146. * src/DiskWriter.h
  6147. * src/FallocFileAllocationIterator.cc
  6148. * src/FallocFileAllocationIterator.h
  6149. * src/FileAllocationEntry.cc
  6150. * src/FileAllocationEntry.h
  6151. * src/Makefile.am
  6152. * src/MultiFileAllocationIterator.cc
  6153. * src/MultiFileAllocationIterator.h
  6154. * src/OptionHandlerFactory.cc
  6155. * src/RequestGroup.cc
  6156. * src/StreamCheckIntegrityEntry.cc
  6157. * src/prefs.cc
  6158. * src/prefs.h
  6159. * src/usage_text.h
  6160. * test/FallocFileAllocationIteratorTest.cc
  6161. * test/Makefile.am
  6162. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6163. Removed duplicate enableDirectIO() call.
  6164. * src/MultiFileAllocationIterator.cc
  6165. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6166. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  6167. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  6168. cost of std::rotate().
  6169. * src/RarestPieceSelector.cc
  6170. * src/RarestPieceSelector.h
  6171. * test/RarestPieceSelectorTest.cc
  6172. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6173. Updated usage doc for --bt-tracker-interval option.
  6174. * src/usage_text.h
  6175. * doc/aria2c.1.txt
  6176. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6177. Documented --bt-tracker-interval option in man page.
  6178. * doc/aria2c.1.txt
  6179. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6180. Added an option to specify the interval between tracker requests.
  6181. If non-zero value is specified, aria2 uses it and ignores the
  6182. interval value in the response of tracker. If zero is specified,
  6183. aria2 determines the inteval value based on the tarcker response
  6184. and download progress.
  6185. * src/DefaultBtAnnounce.cc
  6186. * src/DefaultBtAnnounce.h
  6187. * src/OptionHandlerFactory.cc
  6188. * src/RequestGroup.cc
  6189. * src/prefs.cc
  6190. * src/prefs.h
  6191. * src/usage_text.h
  6192. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6193. Added operator+=, operator-=, operator-
  6194. * src/TransferStat.cc
  6195. * src/TransferStat.h
  6196. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6197. Refactored RarestPieceSelector to reduce CPU load, especially for
  6198. addPieceStats.
  6199. * src/RarestPieceSelector.cc
  6200. * src/RarestPieceSelector.h
  6201. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6202. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  6203. getAllMissingBlockIndexes to reduce a call to
  6204. array_function_base::operator[].
  6205. * src/BitfieldMan.cc
  6206. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6207. Cached TransferStat/download speed to avoid to sum them up in each
  6208. call.
  6209. * src/DefaultPeerStorage.cc
  6210. * src/DefaultPeerStorage.h
  6211. * src/SegmentMan.cc
  6212. * src/SegmentMan.h
  6213. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6214. Typedefed cuid_t as int32_t in Command.h
  6215. * src/CUIDCounter.h
  6216. * src/Command.cc
  6217. * src/Command.h
  6218. * src/DownloadEngine.cc
  6219. * src/DownloadEngine.h
  6220. * src/PeerStat.h
  6221. * src/SegmentMan.cc
  6222. * src/SegmentMan.h
  6223. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6224. Reduced the number of calls to PeerStorage::calculateStat() and
  6225. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  6226. transfer rate.
  6227. * src/DefaultBtInteractive.cc
  6228. * src/DefaultBtMessageDispatcher.cc
  6229. * src/DefaultPeerStorage.cc
  6230. * src/DefaultPeerStorage.h
  6231. * src/DownloadCommand.cc
  6232. * src/DownloadEngine.cc
  6233. * src/PeerStorage.h
  6234. * src/SegmentMan.cc
  6235. * src/SegmentMan.h
  6236. * test/MockPeerStorage.h
  6237. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6238. Prepended _dir+"/" after joining path elements in torrent file.
  6239. * src/DefaultBtContext.cc
  6240. * test/DefaultBtContextTest.cc
  6241. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6242. Added missing IndexBtMessageValidator.h
  6243. * src/Makefile.am
  6244. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6245. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  6246. Chinese translations. Thank you for contributing our project.
  6247. * po/id.po
  6248. * po/it.po
  6249. * po/ru.po
  6250. * po/uk.po
  6251. * po/zh_CN.po
  6252. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6253. Updated README
  6254. * README
  6255. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6256. Bump up version number to 1.3.0
  6257. * configure.ac
  6258. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6259. Updated doc
  6260. * src/DefaultBtContext.h
  6261. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6262. Slice/joinPath for name of single torrent.
  6263. * src/DefaultBtContext.cc
  6264. * test/DefaultBtContextTest.cc
  6265. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6266. Updated man page: Documented --dry-run and --index-out
  6267. options. Changed the default value of --uri-selector and
  6268. --http-auth-challenge options. Removed --direct-file-mapping
  6269. option. Added example for --index-out
  6270. * doc/aria2c.1.txt
  6271. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6272. Updated TEXT_DRY_RUN
  6273. * src/usage_text.h
  6274. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6275. Changed the default value of --uri-selector option from 'inorder'
  6276. to 'feedback'
  6277. * src/OptionHandlerFactory.cc
  6278. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6279. Included current URI in exception message.
  6280. * src/AbstractCommand.cc
  6281. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6282. Renamed ServerStatURISelector as FeedbackURISelector.
  6283. * src/FeedbackURISelector.cc
  6284. * src/FeedbackURISelector.h
  6285. * src/Makefile.am
  6286. * src/RequestGroupMan.cc
  6287. * src/ServerStatURISelector.cc
  6288. * src/ServerStatURISelector.h
  6289. * test/FeedbackURISelectorTest.cc
  6290. * test/Makefile.am
  6291. * test/ServerStatURISelectorTest.cc
  6292. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6293. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  6294. all URIs are tested and their timeout is not reached.
  6295. * src/AdaptiveURISelector.cc
  6296. * src/AdaptiveURISelector.h
  6297. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6298. Changed the default value of --http-auth-challenge option to false.
  6299. * src/OptionHandlerFactory.cc
  6300. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6301. Reuse URIs when all unused URIs run out.
  6302. * src/OptionHandlerFactory.cc
  6303. * src/RequestGroup.cc
  6304. * src/prefs.cc
  6305. * src/prefs.h
  6306. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6307. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  6308. and BtRejectMessage are derived from RangeBtMessage class.
  6309. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  6310. derived from IndexBtMessage class. BtChokeMessage,
  6311. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  6312. BtNotInterestedMessage and BtUnchokeMessage are derived from
  6313. ZeroBtMessage class.
  6314. * src/AbstractBtMessage.cc
  6315. * src/AbstractBtMessage.h
  6316. * src/BtAllowedFastMessage.cc
  6317. * src/BtAllowedFastMessage.h
  6318. * src/BtAllowedFastMessageValidator.h: Removed
  6319. * src/BtBitfieldMessage.cc
  6320. * src/BtBitfieldMessage.h
  6321. * src/BtCancelMessage.cc
  6322. * src/BtCancelMessage.h
  6323. * src/BtCancelMessageValidator.h: Removed
  6324. * src/BtChokeMessage.cc
  6325. * src/BtChokeMessage.h
  6326. * src/BtExtendedMessage.cc
  6327. * src/BtExtendedMessage.h
  6328. * src/BtHandshakeMessage.cc
  6329. * src/BtHandshakeMessage.h
  6330. * src/BtHaveAllMessage.cc
  6331. * src/BtHaveAllMessage.h
  6332. * src/BtHaveMessage.cc
  6333. * src/BtHaveMessage.h
  6334. * src/BtHaveMessageValidator.h: Removed
  6335. * src/BtHaveNoneMessage.cc
  6336. * src/BtHaveNoneMessage.h
  6337. * src/BtInterestedMessage.cc
  6338. * src/BtInterestedMessage.h
  6339. * src/BtKeepAliveMessage.cc
  6340. * src/BtKeepAliveMessage.h
  6341. * src/BtNotInterestedMessage.cc
  6342. * src/BtNotInterestedMessage.h
  6343. * src/BtPieceMessage.cc
  6344. * src/BtPieceMessage.h
  6345. * src/BtPortMessage.cc
  6346. * src/BtPortMessage.h
  6347. * src/BtRejectMessage.cc
  6348. * src/BtRejectMessage.h
  6349. * src/BtRejectMessageValidator.h: Removed
  6350. * src/BtRequestMessage.cc
  6351. * src/BtRequestMessage.h
  6352. * src/BtRequestMessageValidator.h: Removed
  6353. * src/BtSuggestPieceMessage.cc
  6354. * src/BtSuggestPieceMessage.h
  6355. * src/BtSuggestPieceMessageValidator.h: Removed
  6356. * src/BtUnchokeMessage.cc
  6357. * src/BtUnchokeMessage.h
  6358. * src/DefaultBtMessageFactory.cc
  6359. * src/IndexBtMessage.cc
  6360. * src/IndexBtMessage.h
  6361. * src/IndexBtMessageValidator.h
  6362. * src/Makefile.am
  6363. * src/PeerMessageUtil.cc
  6364. * src/PeerMessageUtil.h
  6365. * src/RangeBtMessage.cc
  6366. * src/RangeBtMessage.h
  6367. * src/RangeBtMessageValidator.h
  6368. * src/SimpleBtMessage.cc
  6369. * src/SimpleBtMessage.h
  6370. * src/ZeroBtMessage.cc
  6371. * src/ZeroBtMessage.h
  6372. * test/BtRequestMessageTest.cc
  6373. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6374. Reverted usage_text.h to r1093 to avoid to lose translated
  6375. messages.
  6376. * src/usage_text.h
  6377. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6378. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  6379. declared as non-const previously is now const and defined in class
  6380. definition.
  6381. * src/AbstractBtMessage.cc
  6382. * src/AbstractBtMessage.h
  6383. * src/BtAllowedFastMessage.cc
  6384. * src/BtAllowedFastMessage.h
  6385. * src/BtBitfieldMessage.h
  6386. * src/BtCancelMessage.cc
  6387. * src/BtCancelMessage.h
  6388. * src/BtChokeMessage.cc
  6389. * src/BtChokeMessage.h
  6390. * src/BtExtendedMessage.cc
  6391. * src/BtExtendedMessage.h
  6392. * src/BtHandshakeMessage.cc
  6393. * src/BtHandshakeMessage.h
  6394. * src/BtHaveAllMessage.cc
  6395. * src/BtHaveAllMessage.h
  6396. * src/BtHaveMessage.cc
  6397. * src/BtHaveMessage.h
  6398. * src/BtHaveNoneMessage.cc
  6399. * src/BtHaveNoneMessage.h
  6400. * src/BtInterestedMessage.cc
  6401. * src/BtInterestedMessage.h
  6402. * src/BtKeepAliveMessage.cc
  6403. * src/BtKeepAliveMessage.h
  6404. * src/BtMessage.h
  6405. * src/BtNotInterestedMessage.cc
  6406. * src/BtNotInterestedMessage.h
  6407. * src/BtPieceMessage.h
  6408. * src/BtPortMessage.cc
  6409. * src/BtPortMessage.h
  6410. * src/BtRejectMessage.cc
  6411. * src/BtRejectMessage.h
  6412. * src/BtRequestMessage.cc
  6413. * src/BtRequestMessage.h
  6414. * src/BtSuggestPieceMessage.cc
  6415. * src/BtSuggestPieceMessage.h
  6416. * src/BtUnchokeMessage.cc
  6417. * src/BtUnchokeMessage.h
  6418. * src/SimpleBtMessage.cc
  6419. * src/SimpleBtMessage.h
  6420. * test/MockBtMessage.h
  6421. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6422. Use FileEntry::exists()
  6423. * src/MultiDiskAdaptor.cc
  6424. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6425. Added exists()
  6426. * src/FileEntry.cc
  6427. * src/FileEntry.h
  6428. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6429. Added missing prefix dir.
  6430. * src/download_helper.cc
  6431. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6432. Removed --direct-file-mapping option and CopyDiskAdaptor.
  6433. * src/CopyDiskAdaptor.cc: Removed
  6434. * src/CopyDiskAdaptor.h: Removed
  6435. * src/DefaultPieceStorage.cc
  6436. * src/Makefile.am
  6437. * src/OptionHandlerFactory.cc
  6438. * src/prefs.cc
  6439. * src/prefs.h
  6440. * src/usage_text.h
  6441. * test/CopyDiskAdaptorTest.cc: Removed
  6442. * test/Makefile.am
  6443. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6444. Rewritten isSameFileBeingDownloaded()
  6445. * src/RequestGroupMan.cc
  6446. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6447. Removed getName() from DownloadContext. getName() is declared in
  6448. BtContext.
  6449. * src/BtContext.h
  6450. * src/DownloadContext.h
  6451. * src/SingleFileDownloadContext.cc
  6452. * src/SingleFileDownloadContext.h
  6453. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  6454. in AbstractSingleDiskAdaptor.
  6455. * src/AbstractSingleDiskAdaptor.h
  6456. * src/DiskAdaptor.h
  6457. * src/MultiDiskAdaptor.h
  6458. * src/RequestGroup.cc
  6459. Removed setTopDir() and getTopDir() and getTopDirPath() from
  6460. MultiDiskAdaptor.
  6461. * src/DefaultPieceStorage.cc
  6462. * src/MultiDiskAdaptor.cc
  6463. * src/MultiDiskAdaptor.h
  6464. * test/MultiDiskAdaptorTest.cc
  6465. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6466. FileEntry::getPath() contains store(top level) directory to
  6467. simplify path handling operation. In the previous implementation,
  6468. store directory is concatenated to FileEntry::getPath() in
  6469. DownloadContext.
  6470. * src/BtDependency.cc
  6471. * src/BtPostDownloadHandler.cc
  6472. * src/CopyDiskAdaptor.cc
  6473. * src/DefaultBtContext.cc
  6474. * src/DirectDiskAdaptor.cc
  6475. * src/FileEntry.cc
  6476. * src/FileEntry.h
  6477. * src/FtpNegotiationCommand.cc
  6478. * src/HttpResponse.cc
  6479. * src/HttpResponseCommand.cc
  6480. * src/Metalink2RequestGroup.cc
  6481. * src/MultiDiskAdaptor.cc
  6482. * src/MultiDiskAdaptor.h
  6483. * src/MultiFileAllocationIterator.cc
  6484. * src/RequestGroup.cc
  6485. * src/SingleFileDownloadContext.cc
  6486. * src/SingleFileDownloadContext.h
  6487. * src/download_helper.cc
  6488. * test/BtDependencyTest.cc
  6489. * test/CopyDiskAdaptorTest.cc
  6490. * test/DefaultBtContextTest.cc
  6491. * test/DefaultBtProgressInfoFileTest.cc
  6492. * test/DirectDiskAdaptorTest.cc
  6493. * test/DownloadHelperTest.cc
  6494. * test/FileEntryTest.cc
  6495. * test/MultiDiskAdaptorTest.cc
  6496. * test/MultiFileAllocationIteratorTest.cc
  6497. * test/RequestGroupTest.cc
  6498. * test/SingleFileDownloadContextTest.cc
  6499. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6500. Fixed compiler warning
  6501. * src/download_helper.cc
  6502. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6503. Throw exception if same infohash torrent is now downloading.
  6504. * src/RequestGroup.cc
  6505. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6506. Added --dry-run option. In this mode, aria2 just checks whether
  6507. the remote file is available and doesn't download data. This
  6508. option has effect on HTTP/FTP downloads and BitTorrent downloads
  6509. are canceled in this mode.
  6510. * src/FtpNegotiationCommand.cc
  6511. * src/HttpResponseCommand.cc
  6512. * src/HttpResponseCommand.h
  6513. * src/OptionHandlerFactory.cc
  6514. * src/RequestGroup.cc
  6515. * src/RequestGroupMan.cc
  6516. * src/prefs.cc
  6517. * src/prefs.h
  6518. * src/usage_text.h
  6519. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6520. Fixed compiler waring
  6521. * test/UriListParserTest.cc
  6522. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6523. Parse options in -i list using OptionParser.
  6524. * src/UriListParser.cc
  6525. * src/UriListParser.h
  6526. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6527. Don't reset URI in retry to avoid additional round trips because
  6528. of redirects.
  6529. * src/AbstractCommand.cc
  6530. * src/OptionHandlerFactory.cc
  6531. * src/prefs.cc
  6532. * src/prefs.h
  6533. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6534. Declared hide() in OptionHandler.
  6535. * src/NameMatchOptionHandler.h
  6536. * src/OptionHandler.h
  6537. * src/OptionHandlerImpl.h
  6538. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6539. Updated doc
  6540. * src/Peer.h
  6541. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6542. Added log message in setStatusInternal()
  6543. * src/ServerStat.cc
  6544. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6545. Call ServerStat::setError() in AbstractCommand::onAbort() to
  6546. effectively exclude failed server.
  6547. * src/AbstractCommand.cc
  6548. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6549. Added --index-out option to specify each file path for torrent.
  6550. Here index shown in --show-files option is used to specify which
  6551. file path should be altered. For example, to change the file path
  6552. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  6553. option multiple times: --index-out=1=aria2.tar.bz2
  6554. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  6555. available. This option can be specified in -i list.
  6556. * src/DefaultBtContext.cc
  6557. * src/DefaultBtContext.h
  6558. * src/MultiDiskAdaptor.cc
  6559. * src/MultiDiskAdaptor.h
  6560. * src/MultiFileAllocationIterator.cc
  6561. * src/OptionHandlerFactory.cc
  6562. * src/OptionHandlerImpl.h
  6563. * src/Util.cc
  6564. * src/Util.h
  6565. * src/download_helper.cc
  6566. * src/prefs.cc
  6567. * src/prefs.h
  6568. * src/usage_text.h
  6569. * test/DefaultBtContextTest.cc
  6570. * test/MultiDiskAdaptorTest.cc
  6571. * test/MultiFileAllocationIteratorTest.cc
  6572. * test/UtilTest.cc
  6573. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6574. Use Util::pathJoin()
  6575. * src/MetalinkParserController.cc
  6576. * test/test.xml
  6577. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6578. Use Util::pathJoin()
  6579. * src/DefaultBtContext.cc
  6580. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6581. Added Util::pathJoin()
  6582. * src/Util.h
  6583. * test/UtilTest.cc
  6584. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6585. Applied basename function to remove directory element in
  6586. content-disposition value.
  6587. Return empty string if content-disposition value is ".." or ".".
  6588. * src/Util.cc
  6589. * test/UtilTest.cc
  6590. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6591. Added --max-overall-download-limit in man page.
  6592. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  6593. * doc/aria2c.1.txt
  6594. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6595. Added --max-overall-download-limit option. Now --max-upload-limit
  6596. option is not ignored when --max-overall-upload-limit option has
  6597. non-zero value. aria2 checks download(upload) speed in the order:
  6598. first checks overall speed limit and if it is not exceeded, then
  6599. checks speed limit per download. Thus you can specify both
  6600. value. For example, set --max-overall-download-limit=1M and
  6601. --max-download-limit=500K to prevent from one download from eating
  6602. all overall speed limit.
  6603. * src/DefaultBtInteractive.cc
  6604. * src/DefaultBtInteractive.h
  6605. * src/DefaultBtMessageDispatcher.cc
  6606. * src/DefaultBtMessageDispatcher.h
  6607. * src/DownloadCommand.cc
  6608. * src/DownloadCommand.h
  6609. * src/FtpNegotiationCommand.cc
  6610. * src/HttpResponseCommand.cc
  6611. * src/OptionHandlerFactory.cc
  6612. * src/PeerInteractionCommand.cc
  6613. * src/RequestGroup.cc
  6614. * src/RequestGroup.h
  6615. * src/RequestGroupMan.cc
  6616. * src/RequestGroupMan.h
  6617. * src/prefs.cc
  6618. * src/prefs.h
  6619. * src/usage_text.h
  6620. * test/DefaultBtMessageDispatcherTest.cc
  6621. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6622. Documented select-file option in Input File section.
  6623. Documented --http-auth-challenge option.
  6624. * doc/aria2c.1.txt
  6625. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6626. Now select-file can be specified in the uri list(-i list).
  6627. * src/BtContext.cc
  6628. * src/BtContext.h
  6629. * src/RequestGroup.cc
  6630. * src/Sequence.h
  6631. * src/download_helper.cc
  6632. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6633. Made the upper value of --max-concurrent-downloads options unlimited.
  6634. * src/OptionHandlerFactory.cc
  6635. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6636. Fixed the bug that disk writer is not created even if it shares
  6637. same piece with the preceding file if the length of previous file
  6638. is 0.
  6639. * src/MultiDiskAdaptor.cc
  6640. * test/MultiDiskAdaptorTest.cc
  6641. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6642. In BitTorrent, Open files in read-only mode for hash check. After
  6643. that, re-open file in read/write mode only when the download is
  6644. not finished.
  6645. * src/AbstractDiskWriter.cc
  6646. * src/AbstractDiskWriter.h
  6647. * src/AbstractSingleDiskAdaptor.cc
  6648. * src/AbstractSingleDiskAdaptor.h
  6649. * src/BtCheckIntegrityEntry.cc
  6650. * src/DiskAdaptor.h
  6651. * src/DiskWriter.h
  6652. * src/MultiDiskAdaptor.cc
  6653. * src/MultiDiskAdaptor.h
  6654. * src/RequestGroup.cc
  6655. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6656. Added --http-auth-challenge option. If it is set to true(by
  6657. default), aria2 sends HTTP authorization header only when it is
  6658. requested by the server. If false is set, then authorization
  6659. header is always sent to the server. This is useful for servers
  6660. that don't respond 401 code when authentication is required.
  6661. There is an exception: if username and password are embedded in
  6662. URI, authorization header is always sent to the server regardless
  6663. of this option.
  6664. * src/AuthConfigFactory.cc
  6665. * src/HttpSkipResponseCommand.cc
  6666. * src/OptionHandlerFactory.cc
  6667. * src/prefs.cc
  6668. * src/prefs.h
  6669. * src/usage_text.h
  6670. * test/AuthConfigFactoryTest.cc
  6671. * test/HttpRequestTest.cc
  6672. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6673. * Release 1.2.0
  6674. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6675. Updated Spanish, Ukrainian, Russian and Japanese translations.
  6676. Thanks to all translators.
  6677. * po/es.po
  6678. * po/ja.po
  6679. * po/ru.po
  6680. * po/uk.po
  6681. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6682. Call deleteSocketForReadCheck() before socket is closed.
  6683. * src/HttpListenCommand.cc
  6684. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6685. Defined virtual destructor for BObject.
  6686. * src/bencode.h
  6687. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6688. Rewritten BDE to make it efficient.
  6689. * src/bencode.cc
  6690. * src/bencode.h
  6691. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6692. Removed function throw list.
  6693. * src/bencode.cc
  6694. * src/bencode.h
  6695. * test/BencodeTest.cc
  6696. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6697. Enclosed all URLs in double quotes in command-line examples.
  6698. * doc/aria2c.1.txt
  6699. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6700. Updated reference/see also section.
  6701. * README
  6702. * doc/aria2c.1.txt
  6703. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6704. Reorganized man page based on man man-pages.
  6705. * doc/aria2c.1.txt
  6706. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6707. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  6708. because same documents are available in man page. Added
  6709. References section.
  6710. * README
  6711. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6712. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  6713. PERFORMANCE PROFILE section.
  6714. * doc/aria2c.1.txt
  6715. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6716. Rewritten the section for configuration file.
  6717. * README
  6718. * doc/aria2c.1.txt
  6719. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6720. Fixed the segmentation fault during execution of choking algorithm
  6721. in leecher state because of broken compare operator
  6722. implementation.
  6723. * src/BtLeecherStateChoke.cc
  6724. * src/BtLeecherStateChoke.h
  6725. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6726. Open file in binary mode.
  6727. * src/CookieStorage.cc
  6728. * src/DHTSetup.cc
  6729. * src/DHTUtil.cc
  6730. * src/Netrc.cc
  6731. * src/NsCookieParser.cc
  6732. * src/ProtocolDetector.cc
  6733. * src/RequestGroupMan.cc
  6734. * src/Signature.cc
  6735. * src/bencode.cc
  6736. * src/download_helper.cc
  6737. * src/option_processing.cc
  6738. * test/CookieParserTest.cc
  6739. * test/DefaultBtProgressInfoFileTest.cc
  6740. * test/FileTest.cc
  6741. * test/GZipDecoderTest.cc
  6742. * test/RequestGroupManTest.cc
  6743. * test/SignatureTest.cc
  6744. * test/SingleFileAllocationIteratorTest.cc
  6745. * test/UriListParserTest.cc
  6746. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6747. Removed operator[] because it is ambiguous with built-in []
  6748. operator.
  6749. * src/array_fun.h
  6750. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6751. Fixed compile error
  6752. * src/OptionParser.cc
  6753. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6754. Added missing call to arrayWrapperConst
  6755. * test/array_funTest.cc
  6756. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6757. Use array_wrapper instead of array_ptr.
  6758. * src/DHTRoutingTableDeserializer.cc
  6759. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6760. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6761. * src/array_fun.h
  6762. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6763. Added array_wrapper template.
  6764. * src/array_fun.h
  6765. * test/array_funTest.cc
  6766. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6767. Use operator T* of array_ptr.
  6768. * src/OptionParser.cc
  6769. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6770. Use localhost instead of 127.0.0.1
  6771. * test/FtpConnectionTest.cc
  6772. * test/MSEHandshakeTest.cc
  6773. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6774. Added operator T*
  6775. * src/array_fun.h
  6776. * test/array_funTest.cc
  6777. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6778. Use dynamically allocated char array to detect memory access
  6779. violation.
  6780. * src/DHTRoutingTableDeserializer.cc
  6781. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6782. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6783. defined.
  6784. * src/PeerMessageUtil.cc
  6785. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6786. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6787. * configure.ac
  6788. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6789. Added a check to see struct sockaddr_in has sin_len member.
  6790. * configure.ac
  6791. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6792. Fixed buffer overrun.
  6793. * src/DHTRoutingTableDeserializer.cc
  6794. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6795. Added LL for long long int constant.
  6796. * test/FtpConnectionTest.cc
  6797. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6798. Casted to unsigned int to suppress compiler warning on netbsd.
  6799. * src/BtRuntime.h
  6800. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6801. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6802. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6803. type time_t.
  6804. * src/SimpleLogger.cc
  6805. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6806. Added test for FtpConnection::receiveSizeResponse().
  6807. * test/FtpConnectionTest.cc
  6808. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6809. Fix epoll error on the old kernel 2.6.8 or ealier.
  6810. * src/EpollEventPoll.cc
  6811. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6812. Use Util::parseLLInt instead of sscanf for portability. The
  6813. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6814. * src/FtpConnection.cc
  6815. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6816. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6817. block. It should not filter anything.
  6818. * src/BitfieldMan.cc
  6819. * src/ConsoleStatCalc.cc
  6820. * test/BitfieldManTest.cc
  6821. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6822. Fixed the bug that the boolean options that don't take arguments
  6823. don't work.
  6824. * src/OptionHandlerImpl.h
  6825. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6826. Fixed broken selected file BitTorrent download.
  6827. * src/MultiDiskAdaptor.cc
  6828. * test/MultiDiskAdaptorTest.cc
  6829. * test/MultiFileAllocationIteratorTest.cc
  6830. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6831. Fixed #define guard for EpollEventPoll
  6832. * src/EpollEventPoll.h
  6833. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6834. Wait 2 seconds. 1 second is sometimes not enough.
  6835. * test/TimeSeedCriteriaTest.cc
  6836. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6837. Use localhost instead of 127.0.0.1.
  6838. * test/DHTConnectionImplTest.cc
  6839. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6840. Suppressed compiler warning.
  6841. * src/AdaptiveURISelector.cc
  6842. * src/DefaultPieceStorage.cc
  6843. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6844. Defined virtual destructor.
  6845. * src/MetalinkParserState.h
  6846. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6847. Give NULL for second argument of getaddrinfo instead of "0".
  6848. * src/NameResolver.cc
  6849. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6850. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6851. included strptime doesn't parse data for this format.
  6852. * src/FtpConnection.cc
  6853. * test/FtpConnectionTest.cc
  6854. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6855. Removed tests giving -1 for unsigned argument.
  6856. * test/SingleFileDownloadContextTest.cc
  6857. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6858. Don't use sha256 in tests because it might not be supported by the
  6859. SSL library.
  6860. * test/MetalinkProcessorTest.cc
  6861. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6862. Removed tests giving -1 for unsigned argument.
  6863. * test/AlphaNumberDecoratorTest
  6864. * test/BitfieldManTest.cc
  6865. * test/DefaultBtContextTest.cc
  6866. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6867. Fixed compile error without libcares when epoll is available.
  6868. * src/EpollEventPoll.cc
  6869. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6870. Included fstream instead of iostream.
  6871. * test/SignatureTest.cc
  6872. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6873. Removed #include <algorithm>
  6874. * test/RequestGroupTest.cc
  6875. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6876. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6877. using RequestGroup::extractURIResult().
  6878. * src/AdaptiveURISelector.cc
  6879. * src/RequestGroup.cc
  6880. * src/RequestGroup.h
  6881. * test/RequestGroupTest.cc
  6882. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6883. Added tests for array_ptr.
  6884. * test/array_funTest.cc
  6885. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6886. Don't send ip parameter to a tracker if ip parameter is empty
  6887. string.
  6888. * src/DefaultBtAnnounce.cc
  6889. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6890. Adjusted line feed.
  6891. * src/version_usage.cc
  6892. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6893. Print tags, possible values when OptionHandlerException is caught.
  6894. * src/option_processing.cc
  6895. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6896. Changed the message for FatalException.
  6897. * src/OptionParser.cc
  6898. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6899. Documented --bt-external-ip option in man page. Updated man pages
  6900. for --proxy-method option.
  6901. * doc/aria2c.1.txt
  6902. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6903. Use GET method for FTP via HTTP proxy.
  6904. * src/FtpInitiateConnectionCommand.cc
  6905. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6906. Changed the default value of --proxy-method option from 'tunnel'
  6907. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6908. option.
  6909. * src/AbstractCommand.cc
  6910. * src/AbstractCommand.h
  6911. * src/FtpInitiateConnectionCommand.cc
  6912. * src/HttpDownloadCommand.cc
  6913. * src/HttpInitiateConnectionCommand.cc
  6914. * src/HttpInitiateConnectionCommand.h
  6915. * src/OptionHandlerFactory.cc
  6916. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6917. Initialized _logger
  6918. * src/SelectEventPoll.cc
  6919. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6920. Defined a copy constructor for the same type.
  6921. * src/SharedHandle.h
  6922. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6923. Added OptionParser::parseArg() which internally uses getopt_long
  6924. to parse command-line options. All command-line options are now
  6925. configured by OptionHandler. No manual editing of struct option*
  6926. is required any more.
  6927. * src/NameMatchOptionHandler.h
  6928. * src/OptionHandler.h
  6929. * src/OptionHandlerFactory.cc
  6930. * src/OptionHandlerImpl.h
  6931. * src/OptionParser.cc
  6932. * src/OptionParser.h
  6933. * src/array_fun.h
  6934. * src/main.cc
  6935. * src/option_processing.cc
  6936. * test/OptionHandlerTest.cc
  6937. * test/OptionParserTest.cc
  6938. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6939. Fixed configure error with --disable-epoll
  6940. * configure.ac
  6941. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6942. Fixed compile error when HAVE_EPOLL is not defined.
  6943. Fixed linker error on bigendian systems.
  6944. * src/SocketCore.cc
  6945. * src/SocketCore.h
  6946. * test/DefaultBtProgressInfoFileTest.cc
  6947. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6948. Added --bt-external-ip option. You can specify the external IP
  6949. address to report to a BitTorrent tracker. Although this function
  6950. is named 'external', it can accept any kind of IP addresses.
  6951. * src/DefaultBtAnnounce.cc
  6952. * src/OptionHandlerFactory.cc
  6953. * src/option_processing.cc
  6954. * src/prefs.cc
  6955. * src/prefs.h
  6956. * src/usage_text.h
  6957. * test/DefaultBtAnnounceTest.cc
  6958. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6959. Extracted the algorithm to find the longest incremental sequence
  6960. as max_sequence template.
  6961. * src/LongestSequencePieceSelector.cc
  6962. * src/a2algo.h
  6963. * test/Makefile.am
  6964. * test/a2algoTest.cc
  6965. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6966. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6967. * src/usage_text.h
  6968. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6969. Updated doc for --uri-selector, --http-server-listen-port and
  6970. --enable-http-server option. Documented --event-poll option.
  6971. * doc/aria2c.1.txt
  6972. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6973. Updated doc for --enable-http-server.
  6974. * src/usage_text.h
  6975. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6976. Documented --http-server-listen-port and --enable-http-server in
  6977. man page.
  6978. * doc/aria2c.1.txt
  6979. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6980. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6981. translations. Thanks to all translators.
  6982. * po/es.po
  6983. * po/id.po
  6984. * po/it.po
  6985. * po/ru.po
  6986. * po/uk.po
  6987. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6988. Bump up version number to 1.2.0
  6989. * configure.ac
  6990. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6991. BtContext::getAnnounceTiers() now returns const reference.
  6992. * src/BtContext.h
  6993. * src/DefaultBtContext.cc
  6994. * src/DefaultBtContext.h
  6995. * test/MockBtContext.h
  6996. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6997. Change the number of retries for tracker request based on the
  6998. number of available tracker in a torrent file.
  6999. * src/TrackerWatcherCommand.cc
  7000. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7001. Added _maxTries property to RequestGroup and assign the option
  7002. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  7003. RequestGroup::getMaxTries() instead of
  7004. Option::getAsInt(PREF_MAX_TRIES).
  7005. * src/AbstractCommand.cc
  7006. * src/RequestGroup.cc
  7007. * src/RequestGroup.h
  7008. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7009. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  7010. Mandriva. I modified the patch: make RequestGroup have the
  7011. timeout value and AdaptiveURISelector directly modifies that
  7012. value.
  7013. * src/AbstractCommand.cc
  7014. * src/AdaptiveURISelector.cc
  7015. * src/AdaptiveURISelector.h
  7016. * src/FtpNegotiationCommand.cc
  7017. * src/RequestGroup.cc
  7018. * src/RequestGroup.h
  7019. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7020. Fixed compiler warning
  7021. * test/IteratableChecksumValidatorTest.cc
  7022. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7023. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  7024. integrated downloads. This PieceSelector subclass finds the
  7025. longest continuous sequence in the available missing pieces and
  7026. selects the last index of such sequence. This makes HTTP/FTP
  7027. connections less interrupted by the pieces obtained by BitTorrent
  7028. peers.
  7029. * src/DefaultPieceStorage.cc
  7030. * src/DefaultPieceStorage.h
  7031. * src/LongestSequencePieceSelector.cc
  7032. * src/LongestSequencePieceSelector.h
  7033. * src/Makefile.am
  7034. * src/PieceSelector.h
  7035. * src/RarestPieceSelector.h
  7036. * src/RequestGroup.cc
  7037. * test/BtDependencyTest.cc
  7038. * test/DefaultPieceStorageTest.cc
  7039. * test/IteratableChecksumValidatorTest.cc
  7040. * test/LongestSequencePieceSelectorTest.cc
  7041. * test/Makefile.am
  7042. * test/SegmentManTest.cc
  7043. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7044. Fixed the bug that the average speed is wrong in
  7045. http/ftp/BitTorrent integrated download. Only the download bytes
  7046. in BitTorrent were considered.
  7047. * src/RequestGroup.cc
  7048. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7049. Choose port for BitTorrent/DHT randomly from the specified range.
  7050. * src/DHTConnectionImpl.cc
  7051. * src/PeerListenCommand.cc
  7052. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7053. Send HTTP Authorization header only if it is requested by the
  7054. server(response 401). There are some exceptions. The authorization
  7055. header for proxy is always sent if it is available without request
  7056. by the server. If username/password is specified in the URI, it
  7057. is immediately sent to the server without request by the server.
  7058. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  7059. SharedHandle<AuthConfig>().
  7060. NetrcAuthResolver::resolveAuthConfig() returns
  7061. SharedHandle<AuthConfig>() if no AuthConfig is available.
  7062. * src/AbstractAuthResolver.cc
  7063. * src/AbstractProxyRequestCommand.cc
  7064. * src/AuthConfigFactory.cc
  7065. * src/AuthConfigFactory.h
  7066. * src/HttpConnection.cc
  7067. * src/HttpRequest.cc
  7068. * src/HttpRequest.h
  7069. * src/HttpResponse.cc
  7070. * src/HttpResponseCommand.cc
  7071. * src/HttpSkipResponseCommand.cc
  7072. * test/AuthConfigFactoryTest.cc
  7073. * test/HttpRequestTest.cc
  7074. * test/HttpResponseTest.cc
  7075. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7076. Remove leading "--" from help keyword and a substring after "="
  7077. from help keyword, so that one can query options by '-h--max-' or
  7078. '-hmax-peers=10'.
  7079. * src/option_processing.cc
  7080. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7081. Rewritten PStringVisitor and its implementation.
  7082. * src/PStringBuildVisitor.cc
  7083. * src/PStringBuildVisitor.h
  7084. * src/PStringDatum.h
  7085. * src/PStringNumLoop.h
  7086. * src/PStringSegment.cc
  7087. * src/PStringSegment.h
  7088. * src/PStringSelect.h
  7089. * src/PStringVisitor.h
  7090. * src/download_helper.cc
  7091. * test/PStringBuildVisitorTest.cc
  7092. * test/ParameterizedStringParserTest.cc
  7093. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7094. Persist connection between the built-in HTTP server and a client
  7095. if a client supports keep-alive. Fixed the bug that aria2 exits
  7096. when the HTTP server receives EOF from a client.
  7097. * src/HttpServer.cc
  7098. * src/HttpServer.h
  7099. * src/HttpServerCommand.cc
  7100. * src/HttpServerCommand.h
  7101. * src/HttpServerResponseCommand.cc
  7102. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7103. Added experimental built-in HTTP server. Currently, when a client
  7104. accesses to the server, it responds with the current download
  7105. progress. By default, it is disabled. To enable the server, give
  7106. --enable-http-server option. To change the default port number
  7107. for the server to listen to, use --http-server-listen-port option.
  7108. The response HTML is very simple and refreshes it self each 1
  7109. second. Because of this refresh, you see flicker in normal web
  7110. browser such as Firefox. I recommend to use console-based browser
  7111. such as elinks, w3m. To connect to the server, run 'elinks
  7112. http://localhost:6800/' while running aria2. Please replace port
  7113. number '6800'(which is default) with your preference.
  7114. * src/DownloadEngineFactory.cc
  7115. * src/HttpHeader.cc
  7116. * src/HttpHeader.h
  7117. * src/HttpHeaderProcessor.cc
  7118. * src/HttpHeaderProcessor.h
  7119. * src/HttpListenCommand.cc
  7120. * src/HttpListenCommand.h
  7121. * src/HttpServer.cc
  7122. * src/HttpServer.h
  7123. * src/HttpServerCommand.cc
  7124. * src/HttpServerCommand.h
  7125. * src/HttpServerResponseCommand.cc
  7126. * src/HttpServerResponseCommand.h
  7127. * src/Makefile.am
  7128. * src/OptionHandlerFactory.cc
  7129. * src/Util.cc
  7130. * src/Util.h
  7131. * src/help_tags.h
  7132. * src/option_processing.cc
  7133. * src/prefs.cc
  7134. * src/prefs.h
  7135. * src/usage_text.h
  7136. * test/HttpHeaderProcessorTest.cc
  7137. * test/UtilTest.cc
  7138. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7139. Removed.
  7140. * src/CheckIntegrityMan.cc
  7141. * src/FileAllocationMan.cc
  7142. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7143. Made (piece) hash check sequential for each RequestGroup because
  7144. simultaneous hash check is slower than sequential execution.
  7145. * src/CheckIntegrityCommand.cc
  7146. * src/CheckIntegrityDispatcherCommand.cc
  7147. * src/CheckIntegrityDispatcherCommand.h
  7148. * src/CheckIntegrityMan.h
  7149. * src/ConsoleStatCalc.cc
  7150. * src/DownloadCommand.cc
  7151. * src/DownloadEngine.cc
  7152. * src/DownloadEngine.h
  7153. * src/DownloadEngineFactory.cc
  7154. * src/Makefile.am
  7155. * src/Makefile.in
  7156. * src/RequestGroup.cc
  7157. * src/StatCalc.h
  7158. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7159. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  7160. SequentialDispatcherCommand.
  7161. * src/FileAllocationDispatcherCommand.cc
  7162. * src/SequentialDispatcherCommand.h
  7163. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7164. Rewritten FileAllocationDispatcherCommand using brand new
  7165. SequentialDispatcherCommand.
  7166. * src/DownloadEngineFactory.cc
  7167. * src/FileAllocationCommand.cc
  7168. * src/FileAllocationDispatcherCommand.cc
  7169. * src/FileAllocationDispatcherCommand.h
  7170. * src/Makefile.am
  7171. * src/SequentialDispatcherCommand.h
  7172. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7173. Replaced FileAllocationMan with
  7174. SequentialPicker<FileAllocationEntry>.
  7175. * src/BtCheckIntegrityEntry.cc
  7176. * src/ConsoleStatCalc.cc
  7177. * src/DownloadEngine.cc
  7178. * src/DownloadEngine.h
  7179. * src/DownloadEngineFactory.cc
  7180. * src/FileAllocationCommand.cc
  7181. * src/FileAllocationDispatcherCommand.cc
  7182. * src/FileAllocationMan.h
  7183. * src/Makefile.am
  7184. * src/SequentialPicker.h
  7185. * src/StatCalc.h
  7186. * src/StreamCheckIntegrityEntry.cc
  7187. * test/Makefile.am
  7188. * test/SequentialPickerTest.cc
  7189. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7190. Added doc for adaptive URI selector.
  7191. * doc/aria2c.1.txt
  7192. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7193. Added doc for adaptive URI selector.
  7194. * src/usage_text.h
  7195. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7196. Added doc for --bt-max-peers option.
  7197. * doc/aria2c.1.txt
  7198. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7199. Added doc for --bt-hash-check-seed option.
  7200. * doc/aria2c.1.txt
  7201. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7202. Documented exit codes.
  7203. * doc/aria2c.1.txt
  7204. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7205. Added --bt-max-peers option to specify the maximum number of peers
  7206. per torrent. 0 means unlimited number of peers.
  7207. * src/ActivePeerConnectionCommand.cc
  7208. * src/BtRuntime.h
  7209. * src/DefaultPeerStorage.cc
  7210. * src/DefaultPeerStorage.h
  7211. * src/OptionHandlerFactory.cc
  7212. * src/RequestGroup.cc
  7213. * src/option_processing.cc
  7214. * src/prefs.cc
  7215. * src/prefs.h
  7216. * src/usage_text.h
  7217. * test/DefaultPeerStorageTest.cc
  7218. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7219. Added --bt-hash-check-seed option. If true is given to this
  7220. option, after hash check using --check-integrity option and file
  7221. is complete, continue to seed file. If you want to check file and
  7222. download it only when it is damaged or incomplete, set this option
  7223. to false. This option has effect only on BitTorrent download.
  7224. The default value is true(This is the same behavior with the
  7225. previous release).
  7226. * src/BtCheckIntegrityEntry.cc
  7227. * src/OptionHandlerFactory.cc
  7228. * src/option_processing.cc
  7229. * src/prefs.cc
  7230. * src/prefs.h
  7231. * src/usage_text.h
  7232. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7233. Updated copyright year.
  7234. * src/version_usage.cc
  7235. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7236. Rewritten the usage text for --bt-request-peer-speed-limit option.
  7237. * doc/aria2c.1.txt
  7238. * src/usage_text.h
  7239. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7240. Made the max value of split option unlimited.
  7241. * doc/aria2c.1.txt
  7242. * src/OptionHandlerFactory.cc
  7243. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7244. Fixed compile warning/error.
  7245. * src/DownloadResult.h
  7246. * src/HttpDownloadCommand.cc
  7247. * src/ServerStat.cc
  7248. * test/RequestGroupTest.cc
  7249. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7250. Added --event-poll option to select the method for polling events.
  7251. The available methods are "select" and "epoll". "epoll" is
  7252. available on Linux only. The earlier release has the compile
  7253. option to choose from these methods.
  7254. * configure.ac
  7255. * src/RequestGroupMan.cc
  7256. * src/OptionHandlerFactory.cc
  7257. * src/EpollEventPoll.h
  7258. * src/StreamFileAllocationEntry.cc
  7259. * src/a2io.h
  7260. * src/SelectEventPoll.h
  7261. * src/option_processing.cc
  7262. * src/prefs.h
  7263. * src/EpollEventPoll.cc
  7264. * src/EventPoll.h
  7265. * src/SocketCore.h
  7266. * src/Makefile.am
  7267. * src/main.cc
  7268. * src/DownloadEngine.h
  7269. * src/SelectEventPoll.cc
  7270. * src/DownloadEngine.cc
  7271. * src/SocketCore.cc
  7272. * src/DownloadEngineFactory.cc
  7273. * src/Makefile.in
  7274. * src/prefs.cc
  7275. * src/usage_text.h
  7276. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7277. Included RecoverableException.h from main.cc
  7278. * src/main.cc
  7279. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7280. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  7281. now returns last error encountered in the HTTP/FTP downloads as a
  7282. exit status value. If all downloads finished successfully, aria2
  7283. returns 0. The error code is defined in src/DownloadResult.h.
  7284. The error occurred in the download currently in progress is not
  7285. reported as a last error. If no error has encountered but there
  7286. are in progress or waiting downloads, aria2 returns 7.
  7287. * src/AbstractCommand.cc
  7288. * src/DlAbortEx.h
  7289. * src/DlRetryEx.h
  7290. * src/DownloadCommand.cc
  7291. * src/DownloadFailureException.h
  7292. * src/DownloadResult.h
  7293. * src/FtpNegotiationCommand.cc
  7294. * src/HttpSkipResponseCommand.cc
  7295. * src/Makefile.am
  7296. * src/MultiUrlRequestInfo.cc
  7297. * src/MultiUrlRequestInfo.h
  7298. * src/RecoverableException.h
  7299. * src/RequestGroup.cc
  7300. * src/RequestGroup.h
  7301. * src/RequestGroupMan.cc
  7302. * src/RequestGroupMan.h
  7303. * src/URIResult.cc
  7304. * src/URIResult.h
  7305. * src/main.cc
  7306. * src/option_processing.cc
  7307. * test/RequestGroupTest.cc
  7308. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7309. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  7310. patch adds AdaptiveURISelector, which selects one of the bests
  7311. mirrors for first and reserved connections. For supplementary
  7312. ones, it returns mirrors which has not been tested yet, and if
  7313. each of them already tested, returns mirrors which has to be
  7314. tested again. Otherwise, it doesn't return anymore mirrors.
  7315. * src/AdaptiveURISelector.cc
  7316. * src/AdaptiveURISelector.h
  7317. * src/FtpNegotiationCommand.cc
  7318. * src/HttpResponseCommand.cc
  7319. * src/Makefile.am
  7320. * src/Makefile.in
  7321. * src/OptionHandlerFactory.cc
  7322. * src/RequestGroup.cc
  7323. * src/RequestGroup.h
  7324. * src/RequestGroupMan.cc
  7325. * src/ServerStat.cc
  7326. * src/ServerStat.h
  7327. * src/ServerStatMan.cc
  7328. * src/SpeedCalc.cc
  7329. * src/URISelector.h
  7330. * src/prefs.cc
  7331. * src/prefs.h
  7332. * test/RequestGroupManTest.cc
  7333. * test/ServerStatManTest.cc
  7334. * test/ServerStatTest.cc
  7335. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7336. Fixed unit test error.
  7337. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  7338. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7339. * Release 1.1.2
  7340. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7341. Updated Russian translation. Thanks to the translators.
  7342. * po/ru.po
  7343. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7344. Added the description of --use-head option to man page.
  7345. * doc/aria2c.1.txt
  7346. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7347. Bump up version number to 1.1.2
  7348. * configure.ac
  7349. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7350. Added --use-head option to toggle whether HEAD method should be
  7351. used in the first HTTP request. By default aria2 uses HEAD method
  7352. as the first request. When the server doesn't recognize HEAD, then
  7353. give aria2 --use-head=false to force aria2 to use GET method
  7354. instead.
  7355. * src/OptionHandlerFactory.cc
  7356. * src/RequestGroupMan.cc
  7357. * src/option_processing.cc
  7358. * src/prefs.cc
  7359. * src/prefs.h
  7360. * src/usage_text.h
  7361. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7362. Fixed the bug that BitTorrent download doesn't finish when REJECT
  7363. message is received before CHOKE message. The old implementation
  7364. doen't clear the use-bit of the piece when recieved REJECT
  7365. message.
  7366. * src/DefaultBtMessageDispatcher.cc
  7367. * test/DefaultBtMessageDispatcherTest.cc
  7368. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7369. * Release 1.1.1
  7370. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7371. Bump up version number to 1.1.1.
  7372. * configure.ac
  7373. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7374. Fixed the bug that --summary-interval=0 doesn't work. The summary
  7375. is printed repeatedly.
  7376. * src/ConsoleStatCalc.cc
  7377. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7378. * Release 1.1.0
  7379. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7380. Added ifdef clause for conditional compilation.
  7381. * src/main.cc
  7382. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7383. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  7384. translations. Thanks to all translators.
  7385. * po/ja.po
  7386. * po/ru.po
  7387. * po/uk.po
  7388. * po/zh_CN.po
  7389. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7390. Added the preceding ">>> " before the message "Printing the
  7391. contents of file..." to make the output more readable.
  7392. * src/main.cc
  7393. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7394. Added try-catch block in the loop in showFiles() to continue the
  7395. operation even if the exception occurred in one file.
  7396. * src/main.cc (showFiles)
  7397. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7398. Made messages in showFiles() translatable.
  7399. * po/aria2.pot
  7400. * src/main.cc
  7401. * src/message.h
  7402. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7403. Print the contents of Torrent/Metalink files are printed without
  7404. -T/-M options.
  7405. * src/main.cc
  7406. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7407. Escaped '--' with '\--'
  7408. * README
  7409. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7410. Updated "How to build" section in README. Mentioned about
  7411. --with-ca-bundle compile option.
  7412. * README
  7413. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7414. Bump up version number to 1.1.0.
  7415. * configure.ac
  7416. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7417. Added a note for --dht-listen-port option.
  7418. * doc/aria2c.1.txt
  7419. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7420. Update doc for --realtime-chunk-checksum option.
  7421. * doc/aria2c.1.txt
  7422. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7423. Update doc for --realtime-chunk-checksum option.
  7424. * src/usage_text.h
  7425. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7426. Updated French, Japanese, Russian and Ukrainian translations.
  7427. Thanks to all translators.
  7428. * po/fr.po
  7429. * po/ja.po
  7430. * po/ru.po
  7431. * po/uk.po
  7432. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7433. Renamed aria2c.pot to aria2.pot
  7434. * po/aria2.pot
  7435. * po/aria2c.pot: Removed.
  7436. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7437. Removed MetaEntry.h
  7438. * src/Makefile.am
  7439. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7440. Rename file by appending digits if a local file exists and its
  7441. file size is larger than that of remote file with --continue
  7442. option. The old implementation just throws exception in such case.
  7443. * src/RequestGroup.cc
  7444. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7445. Fixed the bug that download progress summary is not printed in the
  7446. interval specified by the option.
  7447. * src/ConsoleStatCalc.cc
  7448. * src/ConsoleStatCalc.h
  7449. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7450. Fixed compiler warning
  7451. * src/Cookie.cc
  7452. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7453. Fixed the cookie implementation based on RFC2965.
  7454. Now if a value in domain field is not started with dot, then
  7455. prepend dot. That means a cookie with domain=sf.net is sent to
  7456. wiki.sf.net.
  7457. * src/Cookie.cc
  7458. * test/CookieParserTest.cc
  7459. * test/CookieStorageTest.cc
  7460. * test/CookieTest.cc
  7461. * test/NsCookieParserTest.cc
  7462. * test/Sqlite3MozCookieParserTest.cc
  7463. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7464. Fixed the bug that causes corrupted downloads if HTTP pipelining
  7465. is enabled and the server doesn't support keep-alive.
  7466. * src/AbstractCommand.cc
  7467. * src/DownloadCommand.cc
  7468. * src/HttpDownloadCommand.cc
  7469. * src/HttpDownloadCommand.h
  7470. * src/HttpResponseCommand.cc
  7471. * src/Request.cc
  7472. * src/Request.h
  7473. * test/RequestTest.cc
  7474. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7475. Removed Dictionary/List/Data and its related classes.
  7476. * src/BencodeVisitor.cc: Removed.
  7477. * src/BencodeVisitor.h: Removed.
  7478. * src/Data.cc: Removed.
  7479. * src/Data.h: Removed.
  7480. * src/Dictionary.cc: Removed.
  7481. * src/Dictionary.h: Removed.
  7482. * src/List.cc: Removed.
  7483. * src/List.h: Removed.
  7484. * src/Makefile.am
  7485. * src/MetaEntry.h: Removed.
  7486. * src/MetaEntryVisitor.h: Removed.
  7487. * src/MetaFileUtil.cc: Removed.
  7488. * src/MetaFileUtil.h: Removed.
  7489. * test/BencodeVisitorTest.cc: Removed.
  7490. * test/DataTest.cc: Removed.
  7491. * test/DictionaryTest.cc: Removed.
  7492. * test/ListTest.cc: Removed.
  7493. * test/Makefile.am
  7494. * test/MetaFileUtilTest.cc: Removed.
  7495. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7496. Removed include of MetaEntry.h
  7497. * test/DHTMessageTrackerEntryTest.cc
  7498. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7499. Use BDE instead of Dictionary/List/Data.
  7500. * src/AnnounceList.cc
  7501. * src/AnnounceList.h
  7502. * test/AnnounceListTest.cc
  7503. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7504. Use BDE instead of Dictionary/List/Data.
  7505. * src/DHTAbstractMessage.cc
  7506. * src/DHTAbstractMessage.h
  7507. * src/DHTAnnouncePeerMessage.cc
  7508. * src/DHTAnnouncePeerMessage.h
  7509. * src/DHTAnnouncePeerReplyMessage.cc
  7510. * src/DHTAnnouncePeerReplyMessage.h
  7511. * src/DHTFindNodeMessage.cc
  7512. * src/DHTFindNodeMessage.h
  7513. * src/DHTFindNodeReplyMessage.cc
  7514. * src/DHTFindNodeReplyMessage.h
  7515. * src/DHTGetPeersMessage.cc
  7516. * src/DHTGetPeersMessage.h
  7517. * src/DHTGetPeersReplyMessage.cc
  7518. * src/DHTGetPeersReplyMessage.h
  7519. * src/DHTMessageFactory.h
  7520. * src/DHTMessageFactoryImpl.cc
  7521. * src/DHTMessageFactoryImpl.h
  7522. * src/DHTMessageReceiver.cc
  7523. * src/DHTMessageTracker.cc
  7524. * src/DHTMessageTracker.h
  7525. * src/DHTPingMessage.cc
  7526. * src/DHTPingMessage.h
  7527. * src/DHTPingReplyMessage.cc
  7528. * src/DHTPingReplyMessage.h
  7529. * src/DHTQueryMessage.cc
  7530. * src/DHTQueryMessage.h
  7531. * src/DHTResponseMessage.cc
  7532. * src/DHTResponseMessage.h
  7533. * test/DHTAnnouncePeerMessageTest.cc
  7534. * test/DHTAnnouncePeerReplyMessageTest.cc
  7535. * test/DHTFindNodeMessageTest.cc
  7536. * test/DHTFindNodeReplyMessageTest.cc
  7537. * test/DHTGetPeersMessageTest.cc
  7538. * test/DHTGetPeersReplyMessageTest.cc
  7539. * test/DHTMessageFactoryImplTest.cc
  7540. * test/DHTMessageTrackerTest.cc
  7541. * test/DHTPingMessageTest.cc
  7542. * test/DHTPingReplyMessageTest.cc
  7543. * test/MockDHTMessageFactory.h
  7544. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7545. Added tests the case where length < 0 is specified.
  7546. * test/BencodeTest.cc
  7547. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7548. Fixed memory leak in decoderawstring()
  7549. * src/bencode.cc
  7550. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7551. Added missing #ifdef guard. Added uc() function for String and
  7552. removeKey() for Dict.
  7553. * src/bencode.cc
  7554. * src/bencode.h
  7555. * test/BencodeTest.cc
  7556. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7557. Use BDE instead of Dictionary/List/Data.
  7558. * src/HandshakeExtensionMessage.cc
  7559. * src/HandshakeExtensionMessage.h
  7560. * test/HandshakeExtensionMessageTest.cc
  7561. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7562. Added --max-overall-upload-limit option. This option limits the
  7563. overall upload speed. Stated in help message that the existing
  7564. --max-upload-limit option limits the upload speed per each
  7565. torrent. Man page is also updated.
  7566. * doc/aria2c.1.txt
  7567. * src/DefaultBtMessageDispatcher.cc
  7568. * src/DefaultBtMessageDispatcher.h
  7569. * src/OptionHandlerFactory.cc
  7570. * src/PeerInteractionCommand.cc
  7571. * src/option_processing.cc
  7572. * src/prefs.cc
  7573. * src/prefs.h
  7574. * src/usage_text.h
  7575. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7576. Use BDE instead of Dictionary/List/Data classes.
  7577. * src/CompactPeerListProcessor.cc
  7578. * src/CompactPeerListProcessor.h
  7579. * src/DefaultBtAnnounce.cc
  7580. * src/DefaultBtContext.cc
  7581. * src/DefaultBtContext.h
  7582. * src/DefaultPeerListProcessor.cc
  7583. * src/DefaultPeerListProcessor.h
  7584. * src/DelegatingPeerListProcessor.cc
  7585. * src/DelegatingPeerListProcessor.h
  7586. * src/PeerListProcessor.h
  7587. * src/UTPexExtensionMessage.cc
  7588. * src/Util.h
  7589. * src/message.h
  7590. * test/DefaultBtContextTest.cc
  7591. * test/DefaultPeerListProcessorTest.cc
  7592. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7593. Added bencode helper functions and BDE class.
  7594. They will replace MetaFileUtil and Dictionary/List/Data classes.
  7595. * src/Makefile.am
  7596. * src/bencode.cc
  7597. * src/bencode.h
  7598. * test/BencodeTest.cc
  7599. * test/Makefile.am
  7600. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7601. Fixed the bug that bad URI is sent to the tracker when the announe
  7602. URI in torrent file includes query.
  7603. * src/DefaultBtAnnounce.cc
  7604. * test/DefaultBtAnnounceTest.cc
  7605. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7606. Added Option::blank().
  7607. Use !Option::blank(name) instead of Option::defined(name) for
  7608. the options that take filename.
  7609. * src/MultiUrlRequestInfo.cc
  7610. * src/Option.cc
  7611. * src/Option.h
  7612. * src/main.cc
  7613. * src/option_processing.cc
  7614. * test/OptionTest.cc
  7615. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7616. Documented the default value of --check-certificate option in man
  7617. page.
  7618. * doc/aria2c.1.txt
  7619. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7620. Enabled --check-certificate by default. Added compile
  7621. time(configure) option --with-ca-bundle to specify CA bundle.
  7622. Warn if --check-certificate=true and --ca-certificate is not
  7623. specified or loading CA certificate is failed.
  7624. * configure.ac
  7625. * src/MultiUrlRequestInfo.cc
  7626. * src/OptionHandlerFactory.cc
  7627. * src/message.h
  7628. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7629. Mentioned https tag in help option.
  7630. * doc/aria2c.1.txt
  7631. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7632. Added `https' tag to help option category. Added https tag to
  7633. --ca-certificate, --certificate, --check-certificate and
  7634. --private-key option.
  7635. * src/OptionHandlerFactory.cc
  7636. * src/help_tags.h
  7637. * src/option_processing.cc
  7638. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7639. Changed the package name from `aria2c' to `aria2' in order to fix
  7640. the packaging issue in Debian and Fedora. The name of the
  7641. executable is not changed.
  7642. * configure.ac
  7643. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7644. Fixed typos
  7645. * src/usage_text.h
  7646. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7647. Fixed typos and updated doc.
  7648. * README
  7649. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7650. Fixed typos
  7651. * doc/aria2c.1.txt
  7652. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7653. Fixed typos
  7654. * src/usage_text.h
  7655. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7656. Print a message when no files to download.
  7657. * src/download_helper.cc
  7658. * src/main.cc
  7659. * src/message.h
  7660. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7661. RFC3986 complied Percent-Encoding(urlencode).
  7662. Use uppercase hexadecimal digits for encoded text instead of lowercase
  7663. ones.
  7664. * src/Request.cc
  7665. * src/Util.cc
  7666. * src/Util.h
  7667. * test/BtHandshakeMessageTest.cc
  7668. * test/DefaultBtAnnounceTest.cc
  7669. * test/DefaultBtContextTest.cc
  7670. * test/RequestTest.cc
  7671. * test/UtilTest.cc
  7672. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7673. Fixed the bug that prevents aria2 from downloading 0-length files
  7674. via HTTP/FTP.
  7675. * src/DefaultBtContext.cc
  7676. * src/DefaultBtContext.h
  7677. * src/DownloadContext.h
  7678. * src/FtpNegotiationCommand.cc
  7679. * src/HttpResponseCommand.cc
  7680. * src/HttpResponseCommand.h
  7681. * src/RequestGroup.cc
  7682. * src/SingleFileDownloadContext.cc
  7683. * src/SingleFileDownloadContext.h
  7684. * test/BtPostDownloadHandlerTest.cc
  7685. * test/MetalinkPostDownloadHandlerTest.cc
  7686. * test/MockBtContext.h
  7687. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7688. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  7689. * src/option_processing.cc
  7690. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7691. Applied aria2-1.0.1-mingw.patch.
  7692. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  7693. mingw.
  7694. Collected 4th and 5th argument types for getsockopt and setsockopt.
  7695. * src/SocketCore.cc
  7696. * src/a2netcompat.h
  7697. * test/SocketCoreTest.cc
  7698. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7699. * Release 1.0.1
  7700. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7701. Updated Ukrainian and Norwegian Nynorsk translations.
  7702. Thanks to all translators.
  7703. * po/nn.po
  7704. * po/uk.po
  7705. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7706. Don't show download result when -S option is used.
  7707. * src/main.cc
  7708. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7709. Bump up version number to 1.0.1
  7710. * configure.ac
  7711. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7712. Closed files after the test cases in MultiDiskWriterTest::
  7713. testResetDiskWriterEntries(). This will fix the unit test error
  7714. in mingw32 build.
  7715. * test/MultiDiskWriterTest.cc
  7716. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7717. Use HEAD method to get file size from HTTP server for segmented
  7718. downloading.
  7719. The request to the BitTorrent Tracker always uses GET method because
  7720. the response of the tracker is small and it doesn't need segmented
  7721. download.
  7722. * src/FtpNegotiationCommand.cc
  7723. * src/HttpRequest.cc
  7724. * src/HttpResponseCommand.cc
  7725. * src/HttpSkipResponseCommand.cc
  7726. * src/RequestGroup.cc
  7727. * src/RequestGroup.h
  7728. * src/TrackerWatcherCommand.cc
  7729. * test/HttpRequestTest.cc
  7730. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7731. Fixed the bug that causes floating exception when -T option is used and
  7732. no URIs are given.
  7733. * src/download_helper.cc
  7734. * test/DownloadHelperTest.cc
  7735. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7736. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7737. errors in MinGW:
  7738. Closed file after saving server stats (RequestGroupMan.cc)
  7739. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7740. Ignored case & handled 2-digit years (strptime.c)
  7741. Added missing suseconds_t definition (a2time.h)
  7742. Fixed socket CLOSE() define (SocketCore.cc)
  7743. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7744. Changed utime() test values from x000 to x00000 as MinGW failed on
  7745. values less than timezone offset from Unix epoch
  7746. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7747. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7748. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7749. handle negative dates (CookieParserTest.cc)
  7750. * src/a2time.h
  7751. * src/FtpConnection.cc
  7752. * src/RequestGroupMan.cc
  7753. * src/SocketCore.cc
  7754. * src/strptime.c
  7755. * test/CookieParserTest.cc
  7756. * test/CopyDiskAdaptorTest.cc
  7757. * test/FileTest.cc
  7758. * test/FtpConnectionTest.cc
  7759. * test/MultiDiskAdaptorTest.cc
  7760. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7761. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7762. * doc/aria2c.1.txt
  7763. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7764. * Release 1.0.0
  7765. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7766. Added '~' to reserved characters.
  7767. * src/Util.cc
  7768. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7769. Do not urlencode Request::url in setUrl() because we want unmodified
  7770. URL using Request::getUrl()
  7771. * src/Request.cc
  7772. * src/Request.h
  7773. * test/RequestTest.cc
  7774. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7775. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7776. Thanks to all translators.
  7777. * po/bg.po
  7778. * po/fr.po
  7779. * po/ja.po
  7780. * po/ru.po
  7781. * po/uk.po
  7782. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7783. Bump up version number to 1.0.0
  7784. * configure.ac
  7785. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7786. Added nosqlite3 build to build_test.sh.
  7787. Renamed noxml as expat.
  7788. * build_test.sh
  7789. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7790. Updated INPUT FILE section.
  7791. * doc/aria2c.1.txt
  7792. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7793. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7794. on big endian systems because test .aria2 files are made for little
  7795. endian systems.
  7796. * test/DefaultBtProgressInfoFileTest.cc
  7797. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7798. Dropped ares support.
  7799. * README
  7800. * configure.ac
  7801. * m4/libares.m4: Removed.
  7802. * src/AsyncNameResolver.cc
  7803. * src/Makefile.am
  7804. * test/Makefile.am
  7805. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7806. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7807. Removed const qualifier from DiskWriter::size().
  7808. * src/AbstractDiskWriter.cc
  7809. * src/AbstractDiskWriter.h
  7810. * src/ByteArrayDiskWriter.cc
  7811. * src/ByteArrayDiskWriter.h
  7812. * src/DiskWriter.h
  7813. * test/ByteArrayDiskWriterTest.cc
  7814. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7815. Fixed the bug that causes segmentation fault/bus error during executing
  7816. choking algorithm while seeding. This is caused by improper
  7817. implementation of compare function which returns inconsistent results
  7818. depending on the timing of last unchoke.
  7819. * src/BtSeederStateChoke.cc
  7820. * src/BtSeederStateChoke.h
  7821. * src/DefaultPeerStorage.cc
  7822. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7823. Removed TODO
  7824. * TODO
  7825. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7826. Added a section that explains how to pass argument to options that
  7827. takes optional arguments with its short form.
  7828. * doc/aria2c.1.txt
  7829. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7830. Added -u for the short form of --max-upload-limit option.
  7831. * doc/aria2c.1.txt
  7832. * src/option_processing.cc
  7833. * src/usage_text.h
  7834. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7835. Added -V for the short form of --check-integrity option.
  7836. Now the argument of --check-integrity option is optional:
  7837. if it is omitted, it is evaluated as true.
  7838. * doc/aria2c.1.txt
  7839. * src/option_processing.cc
  7840. * src/usage_text.h
  7841. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7842. Made the default value of --ftp-pasv option set to true and it can take
  7843. true/false values.
  7844. * src/OptionHandlerFactory.cc
  7845. * src/option_processing.cc
  7846. * src/usage_text.h
  7847. * doc/aria2c.1.txt
  7848. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7849. Given custom random number generator to std::random_shuffle.
  7850. * src/AnnounceList.cc
  7851. * src/BtLeecherStateChoke.cc
  7852. * src/BtSeederStateChoke.cc
  7853. * src/DefaultBtRequestFactory.cc
  7854. * src/MetalinkEntry.cc
  7855. * src/RarestPieceSelector.cc
  7856. * src/SimpleRandomizer.cc
  7857. * src/SimpleRandomizer.h
  7858. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7859. Now the default value of --enable-direct-io is true.
  7860. * src/OptionHandlerFactory.cc
  7861. * doc/aria2c.1.txt
  7862. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7863. Erase peer before executing onReturningPeer and onErasingPeer
  7864. because choking algorithm called from onReturningPeer doesn't
  7865. like erasing peer in the active peer list.
  7866. * src/DefaultPeerStorage.cc
  7867. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7868. Instead of creating special filename in createDownloadResult() if
  7869. inMemoryDownload() is true, now it is done in getFilePath().
  7870. * src/RequestGroup.cc
  7871. * test/RequestGroupTest.cc
  7872. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7873. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7874. processed in memory. This is the fix for previous comment out.
  7875. * src/MemoryBufferPreDownloadHandler.cc
  7876. * src/RequestGroup.cc
  7877. * src/RequestGroup.h
  7878. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7879. Commented out the code which sets virtual directory path "[MEMORY]"
  7880. propagate directory to store to following RequestGroup.
  7881. * src/MemoryBufferPreDownloadHandler.cc
  7882. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7883. Bump up version number to 1.0.0b
  7884. * configure.ac
  7885. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7886. Added input_uris.txt to EXTRA_DIST
  7887. * test/Makefile.am
  7888. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7889. Removed PeerObject.h from Makefile.am
  7890. * src/Makefile.am
  7891. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7892. Avoid slow seeding
  7893. * src/PeerInteractionCommand.cc
  7894. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7895. Updated usage for -i option.
  7896. * src/usage_text.h (TEXT_INPUT_FILE)
  7897. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7898. Added INPUT FILE section to man page.
  7899. Escaped fake URLs.
  7900. * doc/aria2c.1.txt
  7901. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7902. Fixed wrong note position for -o option.
  7903. * doc/aria2c.1.txt
  7904. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7905. Fixed compile error without SSL/XML library.
  7906. * src/DefaultBtProgressInfoFile.cc
  7907. * src/DefaultBtProgressInfoFile.h
  7908. * src/FileMetalinkParserState.cc
  7909. * src/RequestGroup.h
  7910. * src/SocketCore.cc
  7911. * src/SocketCore.h
  7912. * src/VerificationMetalinkParserState.cc
  7913. * src/download_helper.h
  7914. * src/main.cc
  7915. * test/DefaultBtProgressInfoFileTest.cc
  7916. * test/DownloadHelperTest.cc
  7917. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7918. Rewritten URI handling functions. They are now provided as a testable
  7919. functions.
  7920. * src/Makefile.am
  7921. * src/RequestGroup.cc
  7922. * src/RequestGroup.h
  7923. * src/download_helper.cc
  7924. * src/download_helper.h
  7925. * src/main.cc
  7926. * test/DownloadHelperTest.cc
  7927. * test/Makefile.am
  7928. * test/input_uris.txt
  7929. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7930. Quickly terminate commands when ctrl-c is pressed.
  7931. * src/DownloadEngine.cc
  7932. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7933. Quickly terminate idle commands when download finished.
  7934. * src/AbstractCommand.cc
  7935. * src/DownloadCommand.cc
  7936. * src/DownloadEngine.cc
  7937. * src/DownloadEngine.h
  7938. * src/SleepCommand.cc
  7939. * src/SleepCommand.h
  7940. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7941. Added the ability to specify output filename and directory in input
  7942. file.
  7943. Additional parameters are added in the following line of URIs
  7944. with proceeding white space(s), 1 parameter in 1 line.
  7945. The parameter names are the same with the command-line option name
  7946. without proceeding "--". Not all the options are available here:
  7947. at the moment, 'dir' and 'out' options are avialable.
  7948. Please note that out option has no effect against Metalink or BitTorrent
  7949. downloads.
  7950. Example input file:
  7951. http://host/foo-1.1.tar.bz2
  7952. out=foo.tar.bz2
  7953. dir=/tmp/downloads
  7954. http://host/thundermonkey-2.0.tar.bz2
  7955. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7956. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7957. thundermonkey-2.0.tar.bz2 is saved as
  7958. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7959. * src/BtPostDownloadHandler.cc
  7960. * src/Metalink2RequestGroup.cc
  7961. * src/Metalink2RequestGroup.h
  7962. * src/MetalinkPostDownloadHandler.cc
  7963. * src/UriListParser.cc
  7964. * src/UriListParser.h
  7965. * src/main.cc
  7966. * test/Metalink2RequestGroupTest.cc
  7967. * test/UriListParserTest.cc
  7968. * test/filelist1.txt
  7969. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7970. Fixed error when SSL library is not found.
  7971. * configure.ac
  7972. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7973. Cross referenced among -s, -C and -j options.
  7974. Updated usage of -C and -s options.
  7975. * src/usage_text.h
  7976. * doc/aria2c.1.txt
  7977. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7978. Fixed bad cast in 32bit platforms.
  7979. * test/DefaultPieceStorageTest.cc
  7980. (DefaultPieceStorageTest::testGetCompletedLength)
  7981. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7982. Fixed unit test fails on 32bit platforms.
  7983. * test/CookieParserTest.cc
  7984. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7985. Show an average download speed in Download results.
  7986. * src/BtFileAllocationEntry.cc
  7987. * src/DefaultPieceStorage.cc
  7988. * src/DownloadContext.cc
  7989. * src/DownloadContext.h
  7990. * src/DownloadResult.h
  7991. * src/RequestGroup.cc
  7992. * src/RequestGroupMan.cc
  7993. * src/StreamFileAllocationEntry.cc
  7994. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7995. Fixed the bug that metalink file is not processed if Content-Type
  7996. field has a paramter.
  7997. * src/HttpResponse.cc
  7998. * src/HttpResponse.h
  7999. * test/HttpResponseTest.cc
  8000. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8001. Removed unused code.
  8002. * src/DefaultBtAnnounce.cc
  8003. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8004. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  8005. the value larger than DefaultPieceStorage::getTotalLength() when
  8006. in flight pieces are involved.
  8007. * src/DefaultPieceStorage.cc
  8008. * test/DefaultPieceStorageTest.cc
  8009. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8010. Bump up version number to 1.0.0a.
  8011. * configure.ac
  8012. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8013. Updated configure.ac
  8014. * configure.ac
  8015. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8016. Added usege for proxy.
  8017. * doc/aria2c.1.txt
  8018. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8019. Added usage for --ca-certificate, --certificate, --private-key and
  8020. --check-certificate options.
  8021. * doc/aria2c.1.txt
  8022. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8023. Updated man page
  8024. * doc/aria2c.1.txt
  8025. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8026. Added --no-proxy option. It receives comman separated hostname or
  8027. domains to which proxy should not be used.
  8028. aria2 honors the environment variable no_proxy to override no-proxy
  8029. value in configuration file. The user can override the environment
  8030. variable no_proxy with --no-proxy command-line option.
  8031. * src/AbstractCommand.cc
  8032. * src/OptionHandlerFactory.cc
  8033. * src/option_processing.cc
  8034. * src/prefs.cc
  8035. * src/prefs.h
  8036. * src/usage_text.h
  8037. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8038. Added the ability to verify peer in SSL/TLS using given CA certificates.
  8039. The CA certificates are specified in --ca-certificate option.
  8040. By default, the verification is disabled. Use --check-certificate
  8041. option to enable it.
  8042. * src/HttpRequestCommand.cc
  8043. * src/LibgnutlsTLSContext.cc
  8044. * src/LibgnutlsTLSContext.h
  8045. * src/LibsslTLSContext.cc
  8046. * src/LibsslTLSContext.h
  8047. * src/MultiUrlRequestInfo.cc
  8048. * src/OptionHandlerFactory.cc
  8049. * src/SocketCore.cc
  8050. * src/SocketCore.h
  8051. * src/a2functional.h
  8052. * src/message.h
  8053. * src/option_processing.cc
  8054. * src/prefs.cc
  8055. * src/prefs.h
  8056. * src/usage_text.h
  8057. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8058. Added client certificate authentication for SSL/TLS.
  8059. Currently a private key must be decrypted for use with aria2.
  8060. If a user accidentally gives encrypted file to aria2 then following
  8061. thing happens:
  8062. If encrypted private key is given to aria2, it behaves differently
  8063. depending on the ssl library it uses. If aria2 built with openssl then
  8064. openssl prompts the user for password. If aria2 build with gnutls then
  8065. aria2 exists with error at start up.
  8066. * src/DownloadEngineFactory.cc
  8067. * src/MultiUrlRequestInfo.cc
  8068. * src/OptionHandlerFactory.cc
  8069. * src/option_processing.cc
  8070. * src/prefs.cc
  8071. * src/prefs.h
  8072. * src/usage_text.h
  8073. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8074. Introduced TLSContext that holds TLS related data that can be shared
  8075. with multiple SSL connections.
  8076. * src/DownloadEngineFactory.cc
  8077. * src/LibgnutlsTLSContext.cc
  8078. * src/LibgnutlsTLSContext.h
  8079. * src/LibsslTLSContext.cc
  8080. * src/LibsslTLSContext.h
  8081. * src/Makefile.am
  8082. * src/SocketCore.cc
  8083. * src/SocketCore.h
  8084. * src/TLSContext.h
  8085. * src/message.h
  8086. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8087. Fixed the bug that the DiskWriter of the first FileEntry whose
  8088. `needsFileAllocation' property is false is not created
  8089. even if it shares a piece with next FileEntry which `requested' property
  8090. is true.
  8091. Fixed the bug that zero-length file is not created if pre file
  8092. allocation is not done.
  8093. * src/MultiDiskAdaptor.cc
  8094. * src/MultiDiskAdaptor.h
  8095. * test/MultiDiskAdaptorTest.cc
  8096. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8097. Added the ability to pool proxy connection.
  8098. The conneciton in FTP with proxy-method=GET is not pooled.
  8099. Proxy-Connection header will not be sent when sending CONNECT method.
  8100. * src/DownloadEngine.cc
  8101. * src/DownloadEngine.h
  8102. * src/FtpFinishDownloadCommand.cc
  8103. * src/FtpInitiateConnectionCommand.cc
  8104. * src/FtpNegotiationCommand.cc
  8105. * src/HttpDownloadCommand.cc
  8106. * src/HttpInitiateConnectionCommand.cc
  8107. * src/HttpRequest.cc
  8108. * src/HttpRequest.h
  8109. * src/HttpResponse.cc
  8110. * src/HttpSkipResponseCommand.cc
  8111. * test/HttpRequestTest.cc
  8112. * test/HttpResponseTest.cc
  8113. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. Handle date before epoch.
  8115. To create *bad* Time object, call Time::null().
  8116. * src/CookieParser.cc
  8117. * src/FtpConnection.cc
  8118. * src/FtpConnection.h
  8119. * src/FtpNegotiationCommand.cc
  8120. * src/RequestGroup.cc
  8121. * src/TimeA2.cc
  8122. * src/TimeA2.h
  8123. * test/CookieParserTest.cc
  8124. * test/FtpConnectionTest.cc
  8125. * test/TimeTest.cc
  8126. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Added support for following envrionment variables: http_proxy,
  8128. https_proxy, ftp_proxy and all_proxy.
  8129. Each variable is equivalent to the aria2 option whose name is the
  8130. variable name with '_' replaced with '-'.
  8131. They overrides options specified in aria2.conf file.
  8132. The envrionment variables can be overrode using command-line option.
  8133. * src/option_processing.cc
  8134. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8135. Renamed --http-proxy-method as --proxy-method.
  8136. * src/AbstractCommand.cc
  8137. * src/FtpInitiateConnectionCommand.cc
  8138. * src/HttpInitiateConnectionCommand.cc
  8139. * src/OptionHandlerFactory.cc
  8140. * src/option_processing.cc
  8141. * src/prefs.cc
  8142. * src/prefs.h
  8143. * src/usage_text.h
  8144. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. Deprecated --http-proxy-user and --http-proxy-passwd options.
  8146. Added --https-proxy, --ftp-proxy and --all-proxy options.
  8147. Above 3 options and --http-proxy option can handle proxy in URL format
  8148. like: http://user:passwd@host:port.
  8149. If a proxy requires user/password, they must be specified in a URL.
  8150. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  8151. instead.
  8152. * src/AbstractCommand.cc
  8153. * src/AbstractCommand.h
  8154. * src/AbstractProxyRequestCommand.cc
  8155. * src/AbstractProxyRequestCommand.h
  8156. * src/AuthConfigFactory.cc
  8157. * src/AuthConfigFactory.h
  8158. * src/FtpFinishDownloadCommand.cc
  8159. * src/FtpInitiateConnectionCommand.cc
  8160. * src/FtpInitiateConnectionCommand.h
  8161. * src/FtpNegotiationCommand.cc
  8162. * src/FtpTunnelRequestCommand.cc
  8163. * src/FtpTunnelRequestCommand.h
  8164. * src/HttpDownloadCommand.cc
  8165. * src/HttpInitiateConnectionCommand.cc
  8166. * src/HttpInitiateConnectionCommand.h
  8167. * src/HttpProxyRequestCommand.cc
  8168. * src/HttpProxyRequestCommand.h
  8169. * src/HttpRequest.cc
  8170. * src/HttpRequest.h
  8171. * src/HttpRequestCommand.cc
  8172. * src/HttpRequestCommand.h
  8173. * src/HttpSkipResponseCommand.cc
  8174. * src/InitiateConnectionCommand.cc
  8175. * src/InitiateConnectionCommand.h
  8176. * src/OptionHandlerFactory.cc
  8177. * src/OptionHandlerImpl.h
  8178. * src/Request.cc
  8179. * src/option_processing.cc
  8180. * src/prefs.cc
  8181. * src/prefs.h
  8182. * src/usage_text.h
  8183. * test/AuthConfigFactoryTest.cc
  8184. * test/HttpRequestTest.cc
  8185. * test/OptionHandlerTest.cc
  8186. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Execute choking algorithm when unchoked and interested peer is
  8188. disconected.
  8189. * src/DefaultPeerStorage.cc
  8190. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. Added testcase for BtNotInterestedMessage from unchoked peer.
  8192. * test/BtNotInterestedMessageTest.cc
  8193. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. Execute choking algorithm when BtInterestedMessage arrives from
  8195. unchoked peer.
  8196. * src/BtInterestedMessage.cc
  8197. * src/BtInterestedMessage.h
  8198. * src/DefaultBtMessageFactory.cc
  8199. * test/BtInterestedMessageTest.cc
  8200. * test/MockPeerStorage.h
  8201. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. AuthConfigFactory is now part of DownloadEngine.
  8203. * src/AbstractProxyRequestCommand.cc
  8204. * src/AuthConfigFactory.h
  8205. * src/DownloadEngine.cc
  8206. * src/DownloadEngine.h
  8207. * src/FtpConnection.cc
  8208. * src/FtpConnection.h
  8209. * src/FtpNegotiationCommand.cc
  8210. * src/HttpConnection.cc
  8211. * src/HttpRequest.cc
  8212. * src/HttpRequest.h
  8213. * src/HttpRequestCommand.cc
  8214. * src/HttpResponse.cc
  8215. * src/HttpResponseCommand.cc
  8216. * src/HttpSkipResponseCommand.cc
  8217. * src/MultiUrlRequestInfo.cc
  8218. * src/main.cc
  8219. * test/FtpConnectionTest.cc
  8220. * test/HttpRequestTest.cc
  8221. * test/HttpResponseTest.cc
  8222. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8223. Corrected catched exception type.
  8224. * src/ServerStatMan.cc
  8225. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. DNSCache is now part of DownloadEngine.
  8227. * src/DNSCache.h
  8228. * src/DownloadEngine.cc
  8229. * src/DownloadEngine.h
  8230. * src/InitiateConnectionCommand.cc
  8231. * src/MultiUrlRequestInfo.cc
  8232. * test/Makefile.am
  8233. * test/Makefile.in
  8234. * test/SimpleDNSCacheTest.cc
  8235. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8236. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  8237. DownloadEngine.
  8238. * src/ActivePeerConnectionCommand.cc
  8239. * src/BtSetup.cc
  8240. * src/CUIDCounter.h
  8241. * src/DHTSetup.cc
  8242. * src/DownloadCommand.cc
  8243. * src/DownloadEngine.cc
  8244. * src/DownloadEngine.h
  8245. * src/DownloadEngineFactory.cc
  8246. * src/FileAllocationDispatcherCommand.cc
  8247. * src/InitiatorMSEHandshakeCommand.cc
  8248. * src/PeerInitiateConnectionCommand.cc
  8249. * src/PeerInteractionCommand.cc
  8250. * src/PeerListenCommand.cc
  8251. * src/RequestGroup.cc
  8252. * src/StreamFileAllocationEntry.cc
  8253. * src/TrackerWatcherCommand.cc
  8254. * src/main.cc
  8255. * test/RequestGroupManTest.cc
  8256. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. Implemented commented code in BtSeederStateChoke
  8258. * src/BtSeederStateChoke.cc
  8259. * src/Peer.cc
  8260. * src/Peer.h
  8261. * src/PeerInteractionCommand.cc
  8262. * src/PeerSessionResource.cc
  8263. * src/PeerSessionResource.h
  8264. * test/MockBtMessageDispatcher.h
  8265. * test/PeerSessionResourceTest.cc
  8266. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  8268. its object.
  8269. * src/AbstractBtMessage.cc
  8270. * src/ActivePeerConnectionCommand.cc
  8271. * src/ActivePeerConnectionCommand.h
  8272. * src/BtContextAwareCommand.cc
  8273. * src/BtContextAwareCommand.h
  8274. * src/BtExtendedMessage.cc
  8275. * src/BtExtendedMessage.h
  8276. * src/BtInterestedMessage.cc
  8277. * src/BtInterestedMessage.h
  8278. * src/BtNotInterestedMessage.cc
  8279. * src/BtNotInterestedMessage.h
  8280. * src/BtRegistry.cc
  8281. * src/BtRegistry.h
  8282. * src/BtSeederStateChoke.cc
  8283. * src/BtSetup.cc
  8284. * src/DHTGetPeersCommand.cc
  8285. * src/DHTGetPeersCommand.h
  8286. * src/DHTPeerAnnounceEntry.cc
  8287. * src/DHTPeerAnnounceEntry.h
  8288. * src/DHTPeerAnnounceStorage.cc
  8289. * src/DHTPeerAnnounceStorage.h
  8290. * src/DHTPeerLookupTask.cc
  8291. * src/DHTPeerLookupTask.h
  8292. * src/DHTSetup.cc
  8293. * src/DHTSetup.h
  8294. * src/DHTTaskFactory.h
  8295. * src/DHTTaskFactoryImpl.cc
  8296. * src/DHTTaskFactoryImpl.h
  8297. * src/DefaultBtAnnounce.cc
  8298. * src/DefaultBtInteractive.cc
  8299. * src/DefaultBtInteractive.h
  8300. * src/DefaultBtMessageDispatcher.cc
  8301. * src/DefaultBtMessageDispatcher.h
  8302. * src/DefaultBtMessageFactory.cc
  8303. * src/DefaultBtMessageFactory.h
  8304. * src/DefaultBtMessageReceiver.cc
  8305. * src/DefaultBtProgressInfoFile.cc
  8306. * src/DefaultBtProgressInfoFile.h
  8307. * src/DefaultBtRequestFactory.cc
  8308. * src/DefaultBtRequestFactory.h
  8309. * src/DefaultExtensionMessageFactory.cc
  8310. * src/DefaultExtensionMessageFactory.h
  8311. * src/DefaultPeerStorage.cc
  8312. * src/DefaultPeerStorage.h
  8313. * src/DownloadEngine.cc
  8314. * src/DownloadEngine.h
  8315. * src/InitiatorMSEHandshakeCommand.cc
  8316. * src/InitiatorMSEHandshakeCommand.h
  8317. * src/MSEHandshake.cc
  8318. * src/MSEHandshake.h
  8319. * src/Makefile.am
  8320. * src/Makefile.in
  8321. * src/PeerChokeCommand.cc
  8322. * src/PeerChokeCommand.h
  8323. * src/PeerInitiateConnectionCommand.cc
  8324. * src/PeerInitiateConnectionCommand.h
  8325. * src/PeerInteractionCommand.cc
  8326. * src/PeerInteractionCommand.h
  8327. * src/PeerObject.h
  8328. * src/PeerReceiveHandshakeCommand.cc
  8329. * src/PeerReceiveHandshakeCommand.h
  8330. * src/ReceiverMSEHandshakeCommand.cc
  8331. * src/RequestGroup.cc
  8332. * src/RequestGroup.h
  8333. * src/RequestGroupMan.cc
  8334. * src/RequestGroupMan.h
  8335. * src/SeedCheckCommand.cc
  8336. * src/SeedCheckCommand.h
  8337. * src/ShareRatioSeedCriteria.h
  8338. * src/SimpleBtMessage.cc
  8339. * src/TrackerWatcherCommand.cc
  8340. * src/TrackerWatcherCommand.h
  8341. * src/UTPexExtensionMessage.cc
  8342. * src/UTPexExtensionMessage.h
  8343. * test/BtCancelMessageTest.cc
  8344. * test/BtChokeMessageTest.cc
  8345. * test/BtExtendedMessageTest.cc
  8346. * test/BtInterestedMessageTest.cc
  8347. * test/BtNotInterestedMessageTest.cc
  8348. * test/BtPieceMessageTest.cc
  8349. * test/BtPortMessageTest.cc
  8350. * test/BtRegistryTest.cc
  8351. * test/BtRejectMessageTest.cc
  8352. * test/BtRequestMessageTest.cc
  8353. * test/DHTPeerAnnounceEntryTest.cc
  8354. * test/DHTPeerAnnounceStorageTest.cc
  8355. * test/DefaultBtMessageDispatcherTest.cc
  8356. * test/DefaultBtMessageFactoryTest.cc
  8357. * test/DefaultBtProgressInfoFileTest.cc
  8358. * test/DefaultBtRequestFactoryTest.cc
  8359. * test/DefaultExtensionMessageFactoryTest.cc
  8360. * test/MSEHandshakeTest.cc
  8361. * test/MockDHTTaskFactory.h
  8362. * test/ShareRatioSeedCriteriaTest.cc
  8363. * test/UTPexExtensionMessageTest.cc
  8364. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8365. Fixed compiler warning.
  8366. * test/UtilTest.cc
  8367. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Treat Cookie object as session cookie if expiry = 0 is given.
  8369. With this change, you can specify session scoped cookies in an external
  8370. file setting expiry value to 0.
  8371. * src/Cookie.cc
  8372. * src/Cookie.h
  8373. * test/CookieParserTest.cc
  8374. * test/CookieStorageTest.cc
  8375. * test/CookieTest.cc
  8376. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. Changed signature of DHTMessageFactory::createResponseMessage().
  8378. Removed unused validateIDMatch.
  8379. * src/DHTMessageFactory.h
  8380. * src/DHTMessageFactoryImpl.cc
  8381. * src/DHTMessageFactoryImpl.h
  8382. * src/DHTMessageTracker.cc
  8383. * test/DHTMessageFactoryImplTest.cc
  8384. * test/MockDHTMessageFactory.h
  8385. Dropped DHT message coming from same ID of localhost.
  8386. * src/DHTMessageReceiver.cc
  8387. Rejected adding node whose ID is the same as localhost's.
  8388. * src/DHTRoutingTable.cc
  8389. * test/BtPortMessageTest.cc
  8390. * test/DHTRoutingTableTest.cc
  8391. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8392. Pool connection when redirection occurs with Content-Length = 0.
  8393. * src/HttpSkipResponseCommand.cc
  8394. * src/HttpSkipResponseCommand.h
  8395. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Fixed the bug that causes time out when redirection occurs with
  8397. content-length 0.
  8398. * src/HttpResponseCommand.cc
  8399. * src/HttpSkipResponseCommand.cc
  8400. * src/HttpSkipResponseCommand.h
  8401. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Now each status legends is shown only when it appears in Download
  8403. Result. If Download Result has no item, then status legend will not
  8404. be printed.
  8405. * src/RequestGroupMan.cc
  8406. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8407. Removed duplicate creation of OptionHandlers.
  8408. * src/option_processing.cc
  8409. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8410. Fixed the bug that causes segmentation fault when accessing files which
  8411. don't exist or are not included in --select-file option while
  8412. validating chunk checksum.
  8413. * src/MultiDiskAdaptor.cc
  8414. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. Fixed compiler warning.
  8416. * test/UtilTest.cc
  8417. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Included cstdlib. This fixed the compile error with g++-4.3.2.
  8419. * src/IteratableChecksumValidator.cc
  8420. * src/IteratableChunkChecksumValidator.cc
  8421. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. * Release 0.16.2
  8423. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8424. Added Serbian translation. Updated Ukrainian translation.
  8425. Thanks to all translators.
  8426. * po/sr.po
  8427. * po/uk.po
  8428. * po/LINGUAS
  8429. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8430. Bump up version number to 0.16.2
  8431. * configure.ac
  8432. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. Added length equality test to operator== to drop a piece message
  8434. whose length does not match to the requested one.
  8435. * src/RequestSlot.cc
  8436. * test/DefaultBtMessageDispatcherTest.cc
  8437. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8438. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  8439. recieved.
  8440. In this fix, if a request larger than 16KiB length is received, aria2
  8441. disconnects the peer.
  8442. * src/BtConstants.h
  8443. * src/PeerMessageUtil.cc
  8444. * src/PeerMessageUtil.h
  8445. * test/BtRequestMessageTest.cc
  8446. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8447. * Release 0.16.1
  8448. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  8450. * doc/aria2c.1.txt
  8451. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  8453. Updated French, Simplified Chinese and Japanese translations.
  8454. Thanks to all translators.
  8455. en@quot and en@boldquot are also added.
  8456. * po/LINGUAS
  8457. * po/fr.po
  8458. * po/ja.po
  8459. * po/uk.po
  8460. * po/vi.po
  8461. * po/zh_CN.po
  8462. * po/zh_TW.po
  8463. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Bump up version number to 0.16.1.
  8465. * configure.ac
  8466. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8467. Updated README.
  8468. * README
  8469. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8470. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  8471. not to replace '--' with em dash character.
  8472. * doc/aria2c.1.txt
  8473. * doc/makeman
  8474. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  8476. every SEC seconds.
  8477. * src/DownloadEngineFactory.cc
  8478. * src/OptionHandlerFactory.cc
  8479. * src/option_processing.cc
  8480. * src/usage_text.h
  8481. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Fixed compile warning on linux-amd64
  8483. * src/FtpConnection.cc
  8484. * src/IteratableChunkChecksumValidator.cc
  8485. * src/MultiDiskAdaptor.cc
  8486. Fixed the bug that unit test fails on linux-amd64
  8487. * test/UtilTest.cc
  8488. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8489. Added --dht-file-path option to change the path to dht.dat, which is a
  8490. serialized DHT routing table.
  8491. * src/OptionHandlerFactory.cc
  8492. * src/option_processing.cc
  8493. * src/usage_text.h
  8494. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Fixed possible underflow.
  8496. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  8497. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Fixed the bug that last character in URI is not encoded.
  8499. * src/Request.cc
  8500. * test/RequestTest.cc
  8501. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Fixed the bug that referer header field contains fragment.
  8503. Now Request class removes fragment part of URI and encodes it
  8504. in Request::setUri() and setReferer().
  8505. * src/Request.h
  8506. * src/Request.cc
  8507. * test/RequestTest.cc
  8508. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8509. Added missing m4 macros.
  8510. * m4/cppunit.m4
  8511. * m4/libgcrypt.m4
  8512. * m4/libgnutls-extra.m4
  8513. * m4/libgnutls.m4
  8514. * m4/libxml2.m4
  8515. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8516. Fixed compile error with gcc-4.4(snapshot)
  8517. * src/File.cc
  8518. * src/FtpConnection.cc
  8519. * src/OptionHandlerImpl.h
  8520. * src/Util.cc
  8521. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8522. Removed assert()
  8523. * src/SocketBuffer.cc (SocketBuffer::send)
  8524. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8525. Changed the type of _numNewConnection to unsigned int.
  8526. * src/ActivePeerConnectionCommand.cc
  8527. * src/ActivePeerConnectionCommand.h
  8528. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8529. * Release 0.16.0
  8530. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8531. Updated doc
  8532. * README
  8533. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8534. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  8535. translations. Thanks to all translators.
  8536. * po/bg.po
  8537. * po/de.po
  8538. * po/fr.po
  8539. * po/ja.po
  8540. * po/zh_CN.po
  8541. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Bump up version number to 0.16.0.
  8543. * configure.ac
  8544. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8545. Casted entry->maxConnections to int32_t for std::min<T> with T =
  8546. int32_t.
  8547. Changed the type of count to int32_t.
  8548. * src/Metalink2RequestGroup.cc
  8549. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. Added test for Time::elapsed(time_t).
  8551. * test/TimeTest.cc
  8552. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  8554. Util::difftv() should be used instead.
  8555. * src/TimeA2.cc
  8556. * src/TimeA2.h
  8557. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. Made socket for dht connections non-blocking
  8559. * src/DHTAbstractMessage.cc
  8560. * src/DHTAbstractMessage.h
  8561. * src/DHTConnection.h
  8562. * src/DHTConnectionImpl.cc
  8563. * src/DHTConnectionImpl.h
  8564. * src/DHTMessage.h
  8565. * src/DHTMessageDispatcherImpl.cc
  8566. * src/DHTMessageDispatcherImpl.h
  8567. * src/DHTUnknownMessage.cc
  8568. * src/DHTUnknownMessage.h
  8569. * src/SocketCore.cc
  8570. * src/SocketCore.h
  8571. * test/MockDHTMessage.h
  8572. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. Changed the type of offset to int.
  8574. * src/ParameterizedStringParser.cc
  8575. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8576. Made getAsInt() return int32_t
  8577. * src/Option.h
  8578. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  8580. build.
  8581. * configure.ac
  8582. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8583. Use sqlite3_open if sqlite3_open_v2 is not available.
  8584. * src/Sqlite3MozCookieParser.cc
  8585. * src/Sqlite3MozCookieParser.h
  8586. * m4/sqlite3.m4
  8587. * test/Sqlite3MozCookieParserTest.cc
  8588. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8589. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  8590. * src/BtPieceMessage.cc
  8591. * src/DHTPeerAnnounceStorage.cc
  8592. * src/DefaultPieceStorage.cc
  8593. * src/DownloadCommand.cc
  8594. * src/DownloadEngine.cc
  8595. * src/FtpConnection.cc
  8596. * src/PeerConnection.cc
  8597. * src/PeerMessageUtil.cc
  8598. * src/RequestGroup.cc
  8599. * src/RequestGroupMan.cc
  8600. * src/SimpleBtMessage.cc
  8601. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8602. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  8603. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  8604. * src/AbstractDiskWriter.cc
  8605. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8606. Don't set Request::supportsPersistentConnection() in HttpConnection
  8607. since this code is also used in AbstractProxyResponseCommand.
  8608. Moved those code to HttpResponse.
  8609. * src/HttpResponse.cc
  8610. * src/HttpResponse.h
  8611. * src/HttpConnection.cc
  8612. * src/HttpConnection.h
  8613. * src/HttpResponseCommand.cc
  8614. * test/HttpResponseTest.cc
  8615. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  8617. The configuration is minimum: no torrent, no metalink, so there may be
  8618. other compile error on their code.
  8619. * src/a2netcompat.h
  8620. * src/File.cc
  8621. * src/File.h
  8622. * src/SocketCore.cc
  8623. * src/SocketCore.h
  8624. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8625. Made a socket of incoming peer non-blocking.
  8626. * src/PeerListenCommand.cc
  8627. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8628. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  8629. whole message data is not sent in one send() call.
  8630. * src/BtPieceMessage.cc
  8631. * src/BtPieceMessage.h
  8632. * src/PeerConnection.cc
  8633. * src/PeerConnection.h
  8634. * src/SimpleBtMessage.cc
  8635. * src/SimpleBtMessage.h
  8636. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8637. Fixed the bug that aria2 downloads faster than max-download-limit when
  8638. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  8639. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  8640. , instead of sum of them.
  8641. * src/ActivePeerConnectionCommand.cc
  8642. * src/DefaultBtInteractive.cc
  8643. * src/DownloadCommand.cc
  8644. * src/PeerInteractionCommand.cc
  8645. * src/PeerReceiveHandshakeCommand.cc
  8646. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Fixed the bug that HTTPS download fails.
  8648. * src/AbstractCommand.cc
  8649. * src/AbstractCommand.h
  8650. * src/DownloadCommand.cc
  8651. * src/FtpConnection.cc
  8652. * src/HttpConnection.cc
  8653. * src/HttpRequestCommand.cc
  8654. * src/HttpResponseCommand.cc
  8655. * src/HttpSkipResponseCommand.cc
  8656. * src/MSEHandshake.cc
  8657. * src/PeerConnection.cc
  8658. * src/SocketCore.cc
  8659. * src/SocketCore.h
  8660. Fixed the bug that aria2 doesn't download whole content body and cannot
  8661. reuse connection if chunked transfer encoding and gzip content encoding
  8662. are set.
  8663. * src/DownloadCommand.cc
  8664. * src/HttpSkipResponseCommand.cc
  8665. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Updated man page.
  8667. * doc/aria2c.1.txt
  8668. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8669. When error occurred while aria2 was parsing an .aria2.conf file, print
  8670. the usage of the option that caused error.
  8671. * src/option_processing.cc
  8672. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8673. Fixed compile error on OptionHandlerException
  8674. * src/Makefile.am
  8675. * src/OptionHandlerException.cc
  8676. * src/OptionHandlerException.h
  8677. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. Moved message of the error to OptionHandlerException.h
  8679. * src/NameMatchOptionHandler.h
  8680. * src/OptionHandlerException.h
  8681. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. When error occurs while aria2 is parsing an command-line option, print
  8683. the usage of the option.
  8684. * src/Makefile.am
  8685. * src/NameMatchOptionHandler.h
  8686. * src/OptionHandlerException.h
  8687. * src/option_processing.cc
  8688. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8689. Reverted previous change.
  8690. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  8691. username is not in URI.
  8692. * src/HttpRequest.cc
  8693. * src/Request.cc
  8694. * test/HttpRequestTest.cc
  8695. * test/RequestTest.cc
  8696. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Now colon is required for username and password in FTP URL, like:
  8698. ftp://username:password@host.
  8699. If colon is not there, aria2 don't parse it as a username. For example,
  8700. aria2 don't retrieve username from ftp://username@host.
  8701. This fix was made in order to login FTP server via non-transparent ftp
  8702. proxy.
  8703. * src/Request.cc
  8704. * test/RequestTest.cc
  8705. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8706. Use netrc for HTTP.
  8707. Now FTP user/password is sent in Authorization header when
  8708. --ftp-via-http-proxy=get is given.
  8709. * src/AuthConfigFactory.cc
  8710. * src/HttpRequest.cc
  8711. * src/HttpRequest.h
  8712. * src/NetrcAuthResolver.cc
  8713. * src/NetrcAuthResolver.h
  8714. * src/OptionHandlerFactory.cc
  8715. * src/option_processing.cc
  8716. * src/prefs.cc
  8717. * src/prefs.h
  8718. * test/AuthConfigFactoryTest.cc
  8719. * test/HttpRequestTest.cc
  8720. * test/NetrcAuthResolverTest.cc
  8721. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Issue PWD command first and get working directory and use it as a prefix
  8723. for CWD command.
  8724. * src/DownloadEngine.cc
  8725. * src/DownloadEngine.h
  8726. * src/FtpConnection.cc
  8727. * src/FtpConnection.h
  8728. * src/FtpFinishDownloadCommand.cc
  8729. * src/FtpInitiateConnectionCommand.cc
  8730. * src/FtpNegotiationCommand.cc
  8731. * src/FtpNegotiationCommand.h
  8732. * test/FtpConnectionTest.cc
  8733. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. Removed default user/pass for FTP user/pass, since it should not have
  8735. precedence over netrc configuration by default.
  8736. * src/OptionHandlerFactory.cc
  8737. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. Added debug log for socket event.
  8739. * src/AbstractCommand.cc
  8740. * src/PeerAbstractCommand.cc
  8741. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8742. Log microseconds.
  8743. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8744. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8745. Replaced HelpItem.cc with OptionHandler.cc.
  8746. * po/POTFILES.in
  8747. Updated po files with 'make update-po'
  8748. * po/aria2c.pot
  8749. * po/*.po
  8750. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8751. Removed possible values from the text.
  8752. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8753. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8754. Removed unused preferences:
  8755. PREF_NO_PREALLOCATION
  8756. PREF_STDOUT_LOG
  8757. PREF_TRACKER_MAX_TRIES
  8758. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8759. PREF_MIN_SEGMENT_SIZE
  8760. * src/option_processing.cc
  8761. * src/prefs.cc
  8762. * src/prefs.h
  8763. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8764. Integrated HelpItem into OptionParser to ease the workload for adding
  8765. new options. Removed default value from usage text.
  8766. * src/HelpItem.cc: Removed.
  8767. * src/HelpItem.h: Removed.
  8768. * src/HelpItemFactory.cc: Removed.
  8769. * src/HelpItemFactory.h: Removed.
  8770. * src/Makefile.am
  8771. * src/Makefile.in
  8772. * src/NameMatchOptionHandler.h
  8773. * src/OptionHandler.cc
  8774. * src/OptionHandler.h
  8775. * src/OptionHandlerFactory.cc
  8776. * src/OptionHandlerImpl.h
  8777. * src/OptionParser.cc
  8778. * src/OptionParser.h
  8779. * src/TagContainer.cc: Removed.
  8780. * src/TagContainer.h: Removed.
  8781. * src/TaggedItem.cc: Removed.
  8782. * src/TaggedItem.h: Removed.
  8783. * src/main.cc
  8784. * src/option_processing.cc
  8785. * src/usage_text.h
  8786. * src/version_usage.cc
  8787. * test/HelpItemTest.cc: Removed.
  8788. * test/Makefile.am
  8789. * test/Makefile.in
  8790. * test/OptionHandlerTest.cc
  8791. * test/OptionParserTest.cc
  8792. * test/TagContainerTest.cc: Removed.
  8793. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8794. Moved `TransferStat stat = ...' to inside the `if' clause.
  8795. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8796. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. Fixed the bug that a block in a piece is requested when same block is
  8798. already requested to the same peer in end game mode.
  8799. * src/BtRequestFactory.h
  8800. * src/DefaultBtInteractive.cc
  8801. * src/DefaultBtRequestFactory.cc
  8802. * src/DefaultBtRequestFactory.h
  8803. * src/DefaultPieceStorage.cc
  8804. * src/DefaultPieceStorage.h
  8805. * src/PieceStorage.h
  8806. * src/UnknownLengthPieceStorage.cc
  8807. * src/UnknownLengthPieceStorage.h
  8808. * test/DefaultBtRequestFactoryTest.cc
  8809. * test/DefaultPieceStorageTest.cc
  8810. * test/MockBtRequestFactory.h
  8811. * test/MockPieceStorage.h
  8812. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Removed _uploadLength and _downloadLength from PeerSessionResource
  8814. and use PeerStat::_sessionUploadLength and
  8815. PeerStat::_sessionDownloadLength.
  8816. * src/PeerSessionResource.cc
  8817. * src/PeerSessionResource.h
  8818. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8819. Fixed the bug that prefixLength of split bucket which doesn't include
  8820. local node ID is incremented.
  8821. * src/DHTBucket.cc
  8822. * src/DHTBucket.h
  8823. * test/DHTBucketTest.cc
  8824. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8825. Added cookies.sqlite to EXTRA_DIST
  8826. * test/Makefile.am
  8827. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8828. Added Turkish translation. Updated French, German, Russian and
  8829. Simplified Chinese translations. Thanks to all translators.
  8830. * po/LINGUAS
  8831. * po/de.po
  8832. * po/fr.po
  8833. * po/ru.po
  8834. * po/tr.po
  8835. * po/zh_CN.po
  8836. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8837. Added deliminating text to the beginning of the log so that one can find
  8838. where the log starts easily.
  8839. * src/main.cc
  8840. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8842. to fix compile error when async DNS is not enabled by configuration.
  8843. * src/AbstractCommand.cc
  8844. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. If establishing conneciton to a server is failed, then mark error on
  8846. its ServerStat.
  8847. Added the cause of error to log when error event occurred.
  8848. Moved message string to message.h for translation.
  8849. * src/AbstractCommand.cc
  8850. * src/AbstractCommand.h
  8851. * src/FtpNegotiationCommand.cc
  8852. * src/HttpRequestCommand.cc
  8853. * src/PeerAbstractCommand.cc
  8854. * src/message.h
  8855. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8856. Added the function to get error message from socket.
  8857. * src/SocketCore.cc
  8858. * src/SocketCore.h
  8859. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8860. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8861. * src/RequestGroupMan.cc
  8862. * src/RequestGroupMan.h
  8863. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. If error event is received in epoll, then abort download immediately.
  8865. * src/AbstractCommand.cc
  8866. * src/Command.cc
  8867. * src/Command.h
  8868. * src/DownloadEngine.cc
  8869. * src/PeerAbstractCommand.cc
  8870. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8871. Added usage message for --uri-selector, --server-stat-of,
  8872. --server-stat-in, --server-stat-timeout options.
  8873. * src/HelpItemFactory.cc
  8874. * src/usage_text.h
  8875. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8876. Added upper limit of FTP response buffer. The current implementation
  8877. uses 4096bytes as a limit.
  8878. * src/FtpConnection.cc
  8879. * src/FtpConnection.h
  8880. * test/FtpConnectionTest.cc
  8881. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Use non-blocking socket for TCP communication to avoid possible
  8883. blocking due to buffer full.
  8884. * src/AbstractProxyRequestCommand.cc
  8885. * src/FtpConnection.cc
  8886. * src/FtpConnection.h
  8887. * src/FtpNegotiationCommand.cc
  8888. * src/FtpNegotiationCommand.h
  8889. * src/HttpConnection.cc
  8890. * src/HttpConnection.h
  8891. * src/HttpRequestCommand.cc
  8892. * src/InitiatorMSEHandshakeCommand.cc
  8893. * src/InitiatorMSEHandshakeCommand.h
  8894. * src/MSEHandshake.cc
  8895. * src/MSEHandshake.h
  8896. * src/Makefile.am
  8897. * src/PeerConnection.cc
  8898. * src/PeerConnection.h
  8899. * src/PeerInteractionCommand.cc
  8900. * src/PeerListenCommand.cc
  8901. * src/ReceiverMSEHandshakeCommand.cc
  8902. * src/ReceiverMSEHandshakeCommand.h
  8903. * src/SocketBuffer.cc
  8904. * src/SocketBuffer.h
  8905. * src/SocketCore.cc
  8906. * src/SocketCore.h
  8907. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8908. Call setStatusRealtime() in constructor.
  8909. * src/RealtimeCommand.cc
  8910. * src/RealtimeCommand.h
  8911. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8912. Call Download::setNoWait(true) to execute newly created command without
  8913. a pause.
  8914. * src/AbstractCommand.cc
  8915. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8916. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8917. found' error from HTTP/FTP server NUM times without getting single
  8918. bytes of data, then force the download to fail.
  8919. Basically aria2 tris all URIs available. So if long list of URIs are
  8920. specified in Metalink, then aria2 will take a long time to fail
  8921. eventually if all URIs are outdated. This option eases this situation
  8922. to limit the number of servers to try.
  8923. * src/FtpNegotiationCommand.cc
  8924. * src/HelpItemFactory.cc
  8925. * src/HttpResponseCommand.cc
  8926. * src/OptionHandlerFactory.cc
  8927. * src/PeerStat.h
  8928. * src/RequestGroup.cc
  8929. * src/RequestGroup.h
  8930. * src/SegmentMan.cc
  8931. * src/SegmentMan.h
  8932. * src/option_processing.cc
  8933. * src/prefs.cc
  8934. * src/prefs.h
  8935. * src/usage_text.h
  8936. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8937. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8938. response even if more than one response is in it.
  8939. * src/FtpConnection.cc
  8940. * src/FtpConnection.h
  8941. * test/FtpConnectionTest.cc
  8942. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8943. Merged from stable-0.15
  8944. * m4/libcares.m4
  8945. Use pkg-config
  8946. * m4/sqlite3.m4
  8947. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Removed unnecessary if statement.
  8949. * src/DefaultPieceStorage.cc (initPieceStorage)
  8950. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8951. Added --connect-timeout option to specify connect timeout in seconds.
  8952. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8953. connecting to BitTorrent peer is not controlled by this option.
  8954. * src/AbstractProxyRequestCommand.cc
  8955. * src/FtpNegotiationCommand.cc
  8956. * src/HelpItemFactory.cc
  8957. * src/HttpRequestCommand.cc
  8958. * src/OptionHandlerFactory.cc
  8959. * src/option_processing.cc
  8960. * src/prefs.cc
  8961. * src/prefs.h
  8962. * src/usage_text.h
  8963. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8964. Added help message for -R option.
  8965. * src/HelpItemFactory.cc
  8966. * src/usage_text.h
  8967. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. Added the message that the time is in local time zone.
  8969. * src/RequestGroup.cc
  8970. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8971. Implemented the ability to get timestamp from remote FTP server using
  8972. MDTM command described in RFC3659.
  8973. * src/FtpConnection.cc
  8974. * src/FtpConnection.h
  8975. * src/FtpNegotiationCommand.cc
  8976. * src/FtpNegotiationCommand.h
  8977. * test/FtpConnectionTest.cc
  8978. * test/Makefile.am
  8979. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Implemented the ability to get timestamp from remote HTTP server and
  8981. apply it to local file. To enable this feature, --remote-time option
  8982. is added. No usage text has been written yet.
  8983. If several servers returns difference timestamp, then aria2 uses latest
  8984. one.
  8985. * src/CopyDiskAdaptor.cc
  8986. * src/CopyDiskAdaptor.h
  8987. * src/DirectDiskAdaptor.cc
  8988. * src/DirectDiskAdaptor.h
  8989. * src/DiskAdaptor.h
  8990. * src/File.cc
  8991. * src/File.h
  8992. * src/HttpHeader.cc
  8993. * src/HttpHeader.h
  8994. * src/HttpResponse.cc
  8995. * src/HttpResponse.h
  8996. * src/HttpResponseCommand.cc
  8997. * src/HttpResponseCommand.h
  8998. * src/MultiDiskAdaptor.cc
  8999. * src/MultiDiskAdaptor.h
  9000. * src/OptionHandlerFactory.cc
  9001. * src/RequestGroup.cc
  9002. * src/RequestGroup.h
  9003. * src/RequestGroupMan.cc
  9004. * src/option_processing.cc
  9005. * src/prefs.cc
  9006. * src/prefs.h
  9007. * test/CopyDiskAdaptorTest.cc
  9008. * test/FileTest.cc
  9009. * test/Makefile.am
  9010. * test/Makefile.in
  9011. * test/MultiDiskAdaptorTest.cc
  9012. * test/TestUtil.cc
  9013. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9014. Fixed the bug that DiskWriterEntry is not created when its
  9015. FileEntry.isRequested() is false and it doesn't share a piece with
  9016. other FileEntries that are requested. This bug causes segmentation fault
  9017. in the end.
  9018. * src/MultiDiskAdaptor.cc
  9019. * src/MultiDiskAdaptor.h
  9020. * src/MultiFileAllocationIterator.cc
  9021. * test/MultiDiskAdaptorTest.cc
  9022. * test/MultiFileAllocationIteratorTest.cc
  9023. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9024. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  9025. called if the number of file entries are greater than max open files.
  9026. * src/AbstractSingleDiskAdaptor.cc
  9027. * src/AbstractSingleDiskAdaptor.h
  9028. * src/DiskAdaptor.h
  9029. * src/MultiDiskAdaptor.cc
  9030. * src/MultiDiskAdaptor.h
  9031. * test/MultiDiskAdaptorTest.cc
  9032. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9033. Added a constuctor that receives struct timeval.
  9034. Added operator<.
  9035. * src/TimeA2.cc
  9036. * src/TimeA2.h
  9037. * test/TimeTest.cc
  9038. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9039. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  9040. * src/CookieParser.cc
  9041. * test/CookieParserTest.cc
  9042. * test/HttpResponseTest.cc
  9043. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9044. Implmented the functions to parse date.
  9045. * src/TimeA2.cc
  9046. * src/TimeA2.h
  9047. * test/TimeTest.cc
  9048. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9049. Added "Firefox3 Cookie" feature to FeatureConfig
  9050. * src/FeatureConfig.cc
  9051. * src/FeatureConfig.h
  9052. * test/FeatureConfigTest.cc
  9053. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9054. Bump up version number to 0.16.0b
  9055. * configure.ac
  9056. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9057. Use pkg-config if is is available.
  9058. * m4/openssl.m4
  9059. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9060. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  9061. * src/BtAnnounce.h
  9062. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. If an error occurred with a URI, remove identical URI from remaining
  9064. URI list because it is likely that same error occurred in the end and it
  9065. is waste of time.
  9066. * src/AbstractCommand.cc
  9067. * src/RequestGroup.cc
  9068. * src/RequestGroup.h
  9069. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9070. Removed wrong comment.
  9071. * src/DefaultPeerStorage.cc
  9072. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9073. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  9074. Added return value of getpid() to argument of srand() to achieve more
  9075. randomized value.
  9076. * src/SimpleRandomizer.cc
  9077. * src/SimpleRandomizer.h
  9078. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9079. Contact tracker frequently when the number of connections are 0 and
  9080. download is not finished yet.
  9081. * src/ActivePeerConnectionCommand.cc
  9082. * src/BtAnnounce.h
  9083. * src/DefaultBtAnnounce.cc
  9084. * src/DefaultBtAnnounce.h
  9085. * test/MockBtAnnounce.h
  9086. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9087. Moved threshold values to UTPexExtensionMessage.
  9088. * src/DefaultBtInteractive.cc
  9089. * src/Peer.cc
  9090. * src/Peer.h
  9091. * src/UTPexExtensionMessage.cc
  9092. * src/UTPexExtensionMessage.h
  9093. * test/UTPexExtensionMessageTest.cc
  9094. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9095. Added _incoming member to Peer class and made it true if the peer
  9096. initiated connection. Don't add those peer to UTPex message.
  9097. If extended handshake is received, assign _incoming to false.
  9098. * src/DefaultBtInteractive.cc
  9099. * src/HandshakeExtensionMessage.cc
  9100. * src/Peer.cc
  9101. * src/Peer.h
  9102. * src/PeerListenCommand.cc
  9103. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9104. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  9105. Encoding Decoder. Removed size threshold for turning off on the fly
  9106. inflation because resulting file may or may not be inflated depending
  9107. on the file size and I think it is not expected by users.
  9108. This change fixes segmentation fault when Metalink file contains gzipped
  9109. file and its filesize is provided.
  9110. * src/HttpResponseCommand.cc
  9111. * src/HttpResponseCommand.h
  9112. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9113. Made Cookie immutable.
  9114. * src/Cookie.cc
  9115. * src/Cookie.h
  9116. * src/CookieParser.cc
  9117. * src/CookieParser.h
  9118. * src/CookieStorage.cc
  9119. * test/CookieParserTest.cc
  9120. * test/CookieStorageTest.cc
  9121. * test/NsCookieParserTest.cc
  9122. * test/Sqlite3MozCookieParserTest.cc
  9123. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9124. Removed CookieBox, CookieBoxFactory.
  9125. * src/CookieBox.cc
  9126. * src/CookieBox.h
  9127. * src/CookieBoxFactory.cc
  9128. * src/CookieBoxFactory.h
  9129. * src/Makefile.am
  9130. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. Use CookieStorage class instead of CookieBox class.
  9132. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  9133. * src/AbstractProxyRequestCommand.cc
  9134. * src/CookieStorage.cc
  9135. * src/DownloadEngine.cc
  9136. * src/DownloadEngine.h
  9137. * src/HttpConnection.cc
  9138. * src/HttpConnection.h
  9139. * src/HttpRequest.cc
  9140. * src/HttpRequest.h
  9141. * src/HttpRequestCommand.cc
  9142. * src/HttpResponse.cc
  9143. * src/HttpResponseCommand.cc
  9144. * src/HttpSkipResponseCommand.cc
  9145. * src/Makefile.am
  9146. * src/MultiUrlRequestInfo.cc
  9147. * src/Request.cc
  9148. * src/Request.h
  9149. * src/main.cc
  9150. * test/AllTest.cc
  9151. * test/CookieStorageTest.cc
  9152. * test/CookieTest.cc
  9153. * test/HttpRequestTest.cc
  9154. * test/HttpResponseTest.cc
  9155. * test/Makefile.am
  9156. * test/NsCookieParserTest.cc
  9157. * test/Sqlite3MozCookieParserTest.cc
  9158. * test/nscookietest.txt
  9159. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9160. Updated
  9161. * test/Cookies.sqlite
  9162. * test/nscookietest.txt
  9163. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9164. Added tests for CookieStorage::load()
  9165. * test/CookieStorageTest.cc
  9166. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Added CookieStorage class which is based on RFC2109 and manages cookies
  9168. more strictly than CookieBox and CookieBoxFactory class.
  9169. * src/CookieStorage.cc
  9170. * src/CookieStorage.h
  9171. * src/Cookie.cc
  9172. * src/Cookie.h
  9173. * test/CookieStorageTest.cc
  9174. * test/CookieTest.cc
  9175. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. Fixed the bug that commands are created more than the number of pieces.
  9177. * src/RequestGroup.cc
  9178. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9179. Fixed infinite loop bug in FTP when SIZE command failed.
  9180. * src/FtpNegotiationCommand.cc
  9181. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. Removed DirectDiskAdaptorTest.h
  9183. * test/Makefile.am
  9184. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9185. Fixed chunk checksum validation cannot detect trailing garbage data.
  9186. BUG#2074141
  9187. * src/AbstractSingleDiskAdaptor.cc
  9188. * src/AbstractSingleDiskAdaptor.h
  9189. * src/CheckIntegrityEntry.cc
  9190. * src/CheckIntegrityEntry.h
  9191. * src/DiskAdaptor.h
  9192. * src/MultiDiskAdaptor.cc
  9193. * src/MultiDiskAdaptor.h
  9194. * src/RequestGroup.cc
  9195. * test/DirectDiskAdaptorTest.cc
  9196. * test/MultiDiskAdaptorTest.cc
  9197. * test/TestUtil.cc
  9198. * test/TestUtil.h
  9199. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9200. Bump up version number of dht.dat file to 3. In version 3 format, time
  9201. is stored in 64bit, network byte order.
  9202. New build can load old format(version 2) but it saves the file in new
  9203. format. It means once you used new build, your dht.dat becomes
  9204. incompatible with older build.
  9205. * src/DHTRoutingTableDeserializer.cc
  9206. * src/DHTRoutingTableSerializer.cc
  9207. * test/DHTRoutingTableSerializerTest.cc
  9208. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9209. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  9210. * test/Makefile.am
  9211. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9212. Bump up version number of .aria2 control file to 0001.
  9213. New aria2 can still load version 0000 file but it saves the file in
  9214. version 0001 format. It means that new aria2 can resume download
  9215. started by old aria2 but the opposite is not true.
  9216. * src/DefaultBtProgressInfoFile.cc
  9217. * src/DefaultBtProgressInfoFile.h
  9218. * test/DefaultBtProgressInfoFileTest.cc
  9219. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Added ntoh64 and hton64 as inline functions.
  9221. * src/Util.cc
  9222. * test/UtilTest.cc
  9223. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9224. Added sqlite3 depenency and Firefox3 cookie support.
  9225. * README
  9226. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. State that firefox3 cookie is supported explicitly in the usage.
  9228. * src/usage_text.h
  9229. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9230. Externalized message.
  9231. * src/RequestGroupMan.cc
  9232. * src/message.h
  9233. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9234. Save temporary file first and rename to the destination on success.
  9235. Added test cases.
  9236. * src/RequestGroupMan.cc
  9237. * test/RequestGroupManTest.cc
  9238. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9239. Fixed the bug that the number of connected peer is exceeding the limit
  9240. (55 by default) in seeding mode.
  9241. Multiplied 0.8 to _maxUploadSpeedLimit.
  9242. * src/ActivePeerConnectionCommand.cc
  9243. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9244. Clear table item.
  9245. * src/Dictionary.cc
  9246. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9247. Fixed error handling of lseek.
  9248. * src/AbstractDiskWriter.cc
  9249. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  9251. style cookie file.
  9252. * src/usage_text.h
  9253. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9254. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  9255. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  9256. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  9257. * src/Util.cc
  9258. * src/Util.h
  9259. * src/CookieParser.cc
  9260. * test/UtilTest.cc
  9261. * test/CookieParserTest.cc
  9262. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9263. Separate the implementation to load old mozilla format of cookie to
  9264. NsCookieParser class.
  9265. * src/CookieBoxFactory.cc
  9266. * src/CookieBoxFactory.h
  9267. * src/NsCookieParser.cc
  9268. * src/NsCookieParser.h
  9269. * test/NsCookieParserTest.cc
  9270. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9271. Made parse() const
  9272. * src/Sqlite3MozCookieParser.cc
  9273. * src/Sqlite3MozCookieParser.h
  9274. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9275. Added firefox3 cookie support based on the patch submitted by
  9276. tizianomueller.
  9277. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  9278. this functionality.
  9279. * configure.ac
  9280. * m4/sqlite3.m4
  9281. * src/CookieBoxFactory.cc
  9282. * src/CookieBoxFactory.h
  9283. * src/Makefile.am
  9284. * src/Makefile.in
  9285. * src/Sqlite3MozCookieParser.cc
  9286. * src/Sqlite3MozCookieParser.h
  9287. * src/main.cc
  9288. * test/CookieBoxFactoryTest.cc
  9289. * test/Makefile.am
  9290. * test/Makefile.in
  9291. * test/Sqlite3MozCookieParserTest.cc
  9292. * test/badcookies.sqlite
  9293. * test/cookies.sqlite
  9294. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9295. Added Danish and Greek translations.
  9296. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  9297. Great thanks to all translators.
  9298. * po/LINGUAS
  9299. * po/el.po
  9300. * po/da.po
  9301. * po/es.po
  9302. * po/ca.po
  9303. * po/nn.po
  9304. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9305. Fixed man page: --follow-bittorrent should be --follow-torrent
  9306. * doc/aria2c.1.txt
  9307. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9308. Fixed: numCommand is less than the value specified in -C option.
  9309. * src/RequestGroup.cc
  9310. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9311. Fixed occasional assertion failure in PieceSegment.
  9312. Calling PieceStorage::getMissingPiece(size_t) was missing after
  9313. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  9314. creation of duplicate segments and one of the segment was finished then
  9315. assertion failure was caused.
  9316. * src/SegmentMan.cc
  9317. * test/SegmentManTest.cc
  9318. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9319. Added options to load/save the server's performance/status to a file
  9320. and the timeout to drop their data.
  9321. --server-stat-of=FILE specifies the file to which performance data
  9322. is saved.
  9323. --server-stat-if=FILE specifies the file to read previously saved
  9324. by --server-stat-of option. Might be used with --uri-selector=feedback.
  9325. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  9326. TIMEOUT is specified in seconds and the default value is 24hours.
  9327. * src/MultiUrlRequestInfo.cc
  9328. * src/OptionHandlerFactory.cc
  9329. * src/RequestGroupMan.cc
  9330. * src/RequestGroupMan.h
  9331. * src/ServerStatMan.cc
  9332. * src/ServerStatMan.h
  9333. * src/option_processing.cc
  9334. * src/prefs.cc
  9335. * src/prefs.h
  9336. * test/ServerStatManTest.cc
  9337. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9338. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  9339. * src/ServerStatMan.cc
  9340. * src/ServerStatMan.h
  9341. * test/ServerStatManTest.cc
  9342. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Implemented ServerStatMan::load(...) function and its test case.
  9344. * src/ServerStat.cc
  9345. * src/ServerStat.h
  9346. * src/ServerStatMan.cc
  9347. * test/ServerStatManTest.cc
  9348. * test/ServerStatTest.cc
  9349. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9350. Use time_t instead of int32_t. Use int64_t where milli second is
  9351. expected.
  9352. * src/TimeA2.cc
  9353. * src/TimeA2.h
  9354. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9355. Implemented ServerStatMan::save(...) function and its test case.
  9356. * src/ServerStat.cc
  9357. * src/ServerStat.h
  9358. * src/ServerStatMan.cc
  9359. * src/ServerStatMan.h
  9360. * test/ServerStatManTest.cc
  9361. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9362. Now aria2 uses name attribute in Metalink as local filename in
  9363. BitTorrent downloads. BUG#2033999
  9364. * src/BtContext.h
  9365. * src/BtDependency.cc
  9366. * src/DefaultBtContext.cc
  9367. * src/DefaultBtContext.h
  9368. * src/SingleFileDownloadContext.cc
  9369. * src/SingleFileDownloadContext.h
  9370. * test/BtDependencyTest.cc
  9371. * test/DefaultBtContextTest.cc
  9372. * test/MockBtContext.h
  9373. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9374. Added AC_C_BIGENDIAN
  9375. * src/configure.ac
  9376. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9377. Limited numCommand less than or equal to the number of piece.
  9378. * src/RequestGroup.cc
  9379. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9380. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  9381. directive.
  9382. * test/DefaultPieceStorageTest.cc
  9383. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9384. Fixed memory leak in test code
  9385. * test/AnnounceListTest.cc
  9386. * test/DefaultPeerListProcessorTest.cc
  9387. * test/DefaultPeerStorageTest.cc
  9388. * test/MetaFileUtilTest.cc
  9389. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Fixed wrong argument passing to BitfieldMan::isBitSet()
  9391. * src/DefaultPieceStorage.cc
  9392. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9393. Initialized _directIOAllowed
  9394. * src/MultiDiskAdaptor.cc
  9395. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Fixed memory leak
  9397. * src/GZipDecoder.cc
  9398. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. Fixed memory leak
  9400. * src/MetalinkParserStateMachine.cc
  9401. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9402. Fixed memory leak
  9403. * src/Dictionary.cc
  9404. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9405. Fixed memory leak
  9406. * src/IteratableChunkChecksumValidator.h
  9407. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9408. Fixed unmatched malloc/free.
  9409. * src/IteratableChunkChecksumValidator.cc
  9410. * src/IteratableChecksumValidator.cc
  9411. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9412. Removed max chunk size check. This change fixes BUG#2040169
  9413. * src/ChunkedDecoder.cc
  9414. * src/ChunkedDecoder.h
  9415. * test/ChunkedDecoderTest.cc
  9416. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9417. Implemented download speed based URI selection algorithm.
  9418. Introduced new option --uri-selector.
  9419. If --uri-selector=feedback is given, aria2 uses download speed observed
  9420. in the previous downloads and chooses fastest server in the URI list.
  9421. Currently at most 10 URIs are considered to introduce randomeness for
  9422. finding better servers. The speed is average download speed in the
  9423. downloads.
  9424. On the other hand, if --uri-selector=inorder is given, which is default,
  9425. URI is tried in order in URI list.
  9426. The usage text for the new option has not been written yet.
  9427. * src/AbstractCommand.cc
  9428. * src/DownloadCommand.cc
  9429. * src/DownloadEngine.cc
  9430. * src/DownloadEngineFactory.cc
  9431. * src/InOrderURISelector.cc
  9432. * src/InOrderURISelector.h
  9433. * src/OptionHandlerFactory.cc
  9434. * src/PeerStat.h
  9435. * src/RequestGroup.cc
  9436. * src/RequestGroup.h
  9437. * src/RequestGroupMan.cc
  9438. * src/RequestGroupMan.h
  9439. * src/SegmentMan.cc
  9440. * src/SegmentMan.h
  9441. * src/ServerStat.cc
  9442. * src/ServerStat.h
  9443. * src/ServerStatMan.cc
  9444. * src/ServerStatMan.h
  9445. * src/ServerStatURISelector.cc
  9446. * src/ServerStatURISelector.h
  9447. * src/URISelector.h
  9448. * src/option_processing.cc
  9449. * src/prefs.cc
  9450. * src/prefs.h
  9451. * test/InOrderURISelectorTest.cc
  9452. * test/RequestGroupManTest.cc
  9453. * test/ServerStatManTest.cc
  9454. * test/ServerStatURISelectorTest.cc
  9455. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9456. * Release 0.15.1+2
  9457. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9458. Bump up version number to 0.15.1+2
  9459. * configure.ac
  9460. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  9462. * m4/aria2_arg.m4
  9463. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9464. * Release 0.15.1+1
  9465. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9466. Bump up version number to 0.15.1+1
  9467. * configure.ac
  9468. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9469. Fixed the bug that causes segmentaion fault when resuming download
  9470. using metalink without size tag. Reproducible only using HTTP URI.
  9471. * src/HttpResponseCommand.cc
  9472. * src/FtpNegotiationCommand.cc
  9473. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. * Release 0.15.1
  9475. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9476. Updated Bulgarian and French translations, thanks to all translators.
  9477. * po/bg.po
  9478. * po/fr.po
  9479. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9480. Bump up version number to 0.15.1
  9481. * configure.ac
  9482. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9483. Avoid repeated call of gettimeofday() when calculating speed.
  9484. * src/SpeedCalc.cc
  9485. * src/SpeedCalc.h
  9486. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9487. Removed writable check when socket's send buffer is full in BitTorrent
  9488. downloads to lower CPU usage.
  9489. * src/PeerInteractionCommand.cc
  9490. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9491. Fixed broken gzip inflation.
  9492. Turn off segmented downloading if gzip content is smaller than or equal
  9493. to 1MiB and inflate the data on the fly, because HTTP response header
  9494. doesn't contain the length of inflated file we can't determin where
  9495. the chunk of data should be written.
  9496. On the other hand, if gzip content is larger than 1MB, then turn off
  9497. on the fly inflation, because some servers returns "content-type: gzip"
  9498. for *.tgz, *.gz files.
  9499. * src/DownloadCommand.cc
  9500. * src/HttpResponseCommand.cc
  9501. * src/HttpResponseCommand.h
  9502. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9503. Applied tizianomueller's patch to fix compile error.
  9504. * test/BitfieldManTest.cc
  9505. * test/BtRequestMessageTest.cc
  9506. * test/DefaultBtContextTest.cc
  9507. * test/DefaultDiskWriterTest.cc
  9508. * test/DefaultPieceStorageTest.cc
  9509. * test/HttpHeaderProcessorTest.cc
  9510. * test/HttpResponseTest.cc
  9511. * test/Metalink2RequestGroupTest.cc
  9512. * test/MetalinkParserControllerTest.cc
  9513. * test/MetalinkProcessorTest.cc
  9514. * test/PeerSessionResourceTest.cc
  9515. * test/UtilTest.cc
  9516. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9517. * Release 0.15.0
  9518. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9519. Reordered src files in POTFILES.in so that usage text appears first.
  9520. * po/POTFILES.in
  9521. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9522. Bump up version number to 0.15.0
  9523. * configure.ac
  9524. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9525. Added Bulgarian translation.
  9526. Updated Catalan, Spanish, French and Japanese translations.
  9527. Thanks to all translators.
  9528. * po/LINGUAS
  9529. * po/bg.po
  9530. * po/ca.po
  9531. * po/es.po
  9532. * po/fr.po
  9533. * po/ja.po
  9534. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Updated feature list. Added libz for dependency section.
  9536. Added a description about unit testing using CppUnit.
  9537. * README
  9538. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9539. Added a test for libz. Quoted where it is necessary.
  9540. * build_test.sh
  9541. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9542. Added GZip to `Enabled Features' list.
  9543. * src/FeatureConfig.cc
  9544. * src/FeatureConfig.h
  9545. * test/FeatureConfigTest.cc
  9546. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9547. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  9548. the transfer has not yet started.
  9549. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  9550. * src/SegmentMan.cc
  9551. * src/SegmentMan.h
  9552. * test/SegmentManTest.cc
  9553. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9554. Cache last calculated average download/upload speed.
  9555. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  9556. cached value.
  9557. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  9558. * src/PeerStat.h
  9559. * src/SpeedCalc.cc
  9560. * src/SpeedCalc.h
  9561. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9562. Call parseUrl directly.
  9563. * src/Request.cc (resetUrl)
  9564. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9565. Supported absolute/relative path in Location header field.
  9566. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  9567. * src/HttpHeader.cc
  9568. * src/HttpHeader.h
  9569. * src/HttpResponse.cc
  9570. * src/HttpSkipResponseCommand.cc
  9571. * src/Request.cc
  9572. * test/HttpHeaderTest.cc
  9573. * test/HttpResponseTest.cc
  9574. * test/RequestTest.cc
  9575. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Changed help text for --load-cookie option.
  9577. * doc/aria2c.1.txt
  9578. * src/usage_text.h
  9579. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9580. Regenerated test/Makefile.in to remove stale ChangeLog.
  9581. * test/Makefile.in
  9582. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Updated po files.
  9584. * po/aria2c.pot
  9585. * po/*.po
  9586. * po/*.gmo
  9587. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. Bump up version number to 0.15.0b
  9589. * configure.ac
  9590. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9591. Externalize messages.
  9592. * src/RequestGroupMan.cc
  9593. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  9594. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9595. Use File::exists() instead of File::isFile() to allow non-regular file
  9596. such as block special files.
  9597. * src/AbstractDiskWriter.cc
  9598. * src/MultiDiskWriter.cc
  9599. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9600. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  9601. * src/gai_strerror.h
  9602. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9603. Fixed compile error. Thanks gknauf for the patch.
  9604. * src/asctime_r.c
  9605. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9606. Included asctime_r.h from a2time.h.
  9607. * src/a2time.h
  9608. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9609. Added a message "aria2 doesn't verify signature" to log message when
  9610. signature file is saved.
  9611. * src/RequestGroupMan.cc
  9612. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9613. Added the ability to save signature when download is completed if
  9614. signature is available. The filename of signature file is the path to
  9615. download file followed by ".sig". If it already exists, then signature
  9616. will not be saved.
  9617. * src/RequestGroupMan.cc
  9618. * src/Signature.cc
  9619. * test/SignatureTest.cc
  9620. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9621. Updated the descriptions for --bt-seed-unverified.
  9622. * doc/aria2c.1
  9623. * doc/aria2c.1.html
  9624. * doc/aria2c.1.txt
  9625. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9626. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  9627. that this is not going to verify files using piece hashes.
  9628. * src/HelpItemFactory.cc
  9629. * src/OptionHandlerFactory.cc
  9630. * src/RequestGroup.cc
  9631. * src/option_processing.cc
  9632. * src/prefs.cc
  9633. * src/prefs.h
  9634. * src/usage_text.h
  9635. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Added the ability to retrieve signature from Metalink file.
  9637. A retrieved signature is stored in Signature class and it is held by
  9638. DownloadContext class. Note that aria2 doesn't verify signature.
  9639. * src/DownloadContext.cc
  9640. * src/DownloadContext.h
  9641. * src/Makefile.am
  9642. * src/Makefile.in
  9643. * src/Metalink2RequestGroup.cc
  9644. * src/MetalinkEntry.cc
  9645. * src/MetalinkEntry.h
  9646. * src/MetalinkParserController.cc
  9647. * src/MetalinkParserController.h
  9648. * src/MetalinkParserStateMachine.cc
  9649. * src/MetalinkParserStateMachine.h
  9650. * src/Signature.cc
  9651. * src/Signature.h
  9652. * src/SignatureMetalinkParserState.cc
  9653. * src/SignatureMetalinkParserState.h
  9654. * src/VerificationMetalinkParserState.cc
  9655. * src/VerificationMetalinkParserState.h
  9656. * test/Metalink2RequestGroupTest.cc
  9657. * test/MetalinkParserControllerTest.cc
  9658. * test/MetalinkProcessorTest.cc
  9659. * test/test.xml
  9660. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9661. Close DiskAdaptor after renaming file.
  9662. * src/RequestGroup.cc
  9663. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9664. Corrected indentation
  9665. * src/DefaultBtProgressInfoFile.cc
  9666. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9667. Moved the calls of std::ios::exceptions() inside of try-catch block
  9668. because if an error occurred in constructor of std::fstream, then
  9669. exception is thrown immediately when std::ios::exceptions() is called
  9670. which results unhandled exception and aria2c aborts.
  9671. * src/DefaultBtProgressInfoFile.cc
  9672. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9673. Added the test for the previous change in DefaultBtContext.cc
  9674. * test/DefaultBtContextTest.cc
  9675. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9676. Fixed the bug that causes infinite loop when the number of pieces are
  9677. fewer than allowed fast set size which is 10 by default.
  9678. * src/DefaultBtContext.cc
  9679. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9680. Updated the descriptions for -j, -s. Added --bt-seed.
  9681. * doc/aria2c.1
  9682. * doc/aria2c.1.html
  9683. * doc/aria2c.1.txt
  9684. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9685. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  9686. aria2 seeds previously downloaded files without validating piece hashs.
  9687. * src/HelpItemFactory.cc
  9688. * src/OptionHandlerFactory.cc
  9689. * src/RequestGroup.cc
  9690. * src/option_processing.cc
  9691. * src/prefs.cc
  9692. * src/prefs.h
  9693. * src/usage_text.h
  9694. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9695. Updated DESCRIPTION of man page.
  9696. * doc/aria2c.1
  9697. * doc/aria2c.1.html
  9698. * doc/aria2c.1.txt
  9699. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9700. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  9701. Don't define `struct addrinfo' when __sun is defined.
  9702. * src/getaddrinfo.h
  9703. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9704. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  9705. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  9706. second argument is of type `struct _stati64'. Otherwise it is defined as
  9707. `struct stat'.
  9708. * src/AbstractDiskWriter.cc
  9709. * src/File.cc
  9710. * src/File.h
  9711. * src/a2io.h
  9712. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9713. Fixed the compile error in hurd-i386
  9714. See the original bug report:
  9715. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  9716. * src/a2io.h
  9717. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9718. Code cleanup.
  9719. * src/PeerAbstractCommand.cc
  9720. * src/PeerAbstractCommand.h
  9721. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9722. Removed TransferEncoding.
  9723. * src/DownloadCommand.cc
  9724. * src/DownloadCommand.h
  9725. * src/HttpResponseCommand.cc
  9726. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9727. Updated po files.
  9728. * po/aria2c.pot
  9729. * po/*.po
  9730. * po/*.gmo
  9731. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9732. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9733. * src/A2STR.cc
  9734. * src/A2STR.h
  9735. * src/ChunkedDecoder.cc
  9736. * src/ChunkedDecoder.h
  9737. * src/ChunkedEncoding.cc: Removed
  9738. * src/ChunkedEncoding.h: Removed
  9739. * src/DownloadCommand.cc
  9740. * src/DownloadCommand.h
  9741. * src/HttpDownloadCommand.cc
  9742. * src/HttpResponse.cc
  9743. * src/HttpResponse.h
  9744. * src/HttpResponseCommand.cc
  9745. * src/HttpSkipResponseCommand.cc
  9746. * src/HttpSkipResponseCommand.h
  9747. * src/Makefile.am
  9748. * src/TransferEncoding.h: Removed
  9749. * test/ChunkedDecoderTest.cc
  9750. * test/ChunkedEncodingTest.cc: Removed
  9751. * test/HttpResponseTest.cc
  9752. * test/Makefile.am
  9753. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9754. Use append instead of insert.
  9755. * src/GZipDecoder.cc
  9756. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. Updated doc
  9758. * src/Decoder.h
  9759. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. Updated usage text for -s option.
  9761. * src/usage_text.h
  9762. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9763. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9764. * src/Request.cc
  9765. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9766. Cleaned up configure.ac.
  9767. * configure.ac
  9768. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9770. AC_ARG_ENABLE.
  9771. * configure.ac
  9772. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9773. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9774. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9775. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9776. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9777. fly and writes decoded data to a local disk.
  9778. * README
  9779. * README.html
  9780. * configure.ac
  9781. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9782. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9783. * m4/libz.m4
  9784. * src/Decoder.h
  9785. * src/DownloadCommand.cc
  9786. * src/DownloadCommand.h
  9787. * src/Exception.h
  9788. * src/GZipDecoder.cc
  9789. * src/GZipDecoder.h
  9790. * src/HttpHeader.cc
  9791. * src/HttpHeader.h
  9792. * src/HttpRequest.cc
  9793. * src/HttpRequest.h
  9794. * src/HttpResponse.cc
  9795. * src/HttpResponse.h
  9796. * src/HttpResponseCommand.cc
  9797. * src/Makefile.am
  9798. * test/GZipDecoderTest.cc
  9799. * test/HttpRequestTest.cc
  9800. * test/HttpResponseTest.cc
  9801. * test/Makefile.am
  9802. * test/Makefile.in
  9803. * test/gzip_decode_test.gz
  9804. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Clarified usage of -j option.
  9806. * src/usage_text.h
  9807. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9808. Disabled getting size from the response of RETR.
  9809. If SIZE command failed, then disable resuming and segmented downloading.
  9810. * src/FtpConnection.cc
  9811. * src/FtpConnection.h
  9812. * src/FtpNegotiationCommand.cc
  9813. * src/FtpNegotiationCommand.h
  9814. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9815. Use digits to find first byte of file size, which makes the intention
  9816. of the code clearer.
  9817. * src/FtpConnection.cc
  9818. Don't call validateTotalLength() when size is 0.
  9819. * src/FtpNegotiationCommand.cc
  9820. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9821. Updated po files.
  9822. * po/aria2c.pot
  9823. * po/*.gmo
  9824. * po/*.po
  9825. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9826. Clarified usage text for --split option.
  9827. * src/usage_text.h
  9828. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Bump up version number to 0.15.0dev. "dev" means "development"
  9830. version, which means I started the development of the next release!
  9831. * src/configure.ac
  9832. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9833. If FTP server returns negative response with REST raw command and
  9834. requested range is not 0, throw exception. If requested range is 0,
  9835. continue download a file from 0 byte.
  9836. * src/FtpNegotiationCommand.cc
  9837. * src/FtpNegotiationCommand.h
  9838. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9839. Supported FTP server which don't recognize SIZE raw command.
  9840. If SIZE raw command is failed, aria2 will try to get file size
  9841. from the response of RETR raw command. If both attempts are failed,
  9842. then resuming and segmented downloading are disabled.
  9843. * src/FtpConnection.cc
  9844. * src/FtpConnection.h
  9845. * src/FtpNegotiationCommand.cc
  9846. * src/FtpNegotiationCommand.h
  9847. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9848. * Release 0.14.0+1
  9849. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Bump up version number to 0.14.0+1
  9851. * src/configure.ac
  9852. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9853. Fixed the code that refers static member variable from non-static
  9854. context.
  9855. * src/DefaultPeerStorage.cc
  9856. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9857. * Release 0.14.0
  9858. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. Added build test script
  9860. * build_test.sh
  9861. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9862. Updated ja.po
  9863. * src/ja.po
  9864. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9865. Bump up version number to 0.14.0
  9866. * src/configure.ac
  9867. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9868. Updated ja.po and fr.po. Great thanks for french translators and
  9869. Sebastien WILLEMIJNS.
  9870. * po/fr.po
  9871. * po/ja.po
  9872. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9873. Added configure option to enable/disable epoll support.
  9874. * configure.ac
  9875. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. Updated man page.
  9877. * doc/aria2c.1.txt
  9878. * doc/aria2c.1
  9879. * doc/aria2c.1.html
  9880. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9881. Added missing default value '5' to the usage of --split option.
  9882. * src/HelpItemFactory.cc
  9883. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9884. Filled up pieces based on the number of missing blocks, rather than
  9885. simplay the number of piece * block length.
  9886. * src/BtRequestFactory.h
  9887. * src/DefaultBtInteractive.cc
  9888. * src/DefaultBtInteractive.h
  9889. * src/DefaultBtRequestFactory.cc
  9890. * src/DefaultBtRequestFactory.h
  9891. * src/Piece.cc
  9892. * src/Piece.h
  9893. * test/BitfieldManTest.cc
  9894. * test/DefaultBtRequestFactoryTest.cc
  9895. * test/MockBtRequestFactory.h
  9896. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9897. Made _epEvents a member variable.
  9898. * src/DownloadEngine.cc
  9899. * src/DownloadEngine.h
  9900. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. Cancel download if http redirect is bounded more than 20 times.
  9902. * src/AbstractCommand.cc
  9903. * src/HttpSkipResponseCommand.cc
  9904. * src/Request.cc
  9905. * src/Request.h
  9906. * test/RequestTest.cc
  9907. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9908. Fixed unhandled exception(removed keyword `new').
  9909. * src/SocketCore.cc (initEPOLL)
  9910. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9911. Removed visit(const MetaEntry*)
  9912. * src/MetaEntryVisitor.h:
  9913. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9914. and made them virtual.
  9915. * src/BencodeVisitor.h
  9916. * src/BencodeVisitor.cc
  9917. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9918. Updated po files.
  9919. * po/aria2c.pot
  9920. * po/*.po
  9921. * po/*.gmo
  9922. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9923. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9924. the number of socket to watch out.
  9925. * src/PeerInteractionCommand.cc
  9926. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. When there is not enough space in disk when writing a chunk of data,
  9928. aria2 now prints the message to the console to warn user and aborts
  9929. its download. Not all downloads are canceled because some downloads
  9930. may use another disk or partition. BUG#1640332
  9931. * src/AbstractDiskWriter.cc
  9932. * src/PeerAbstractCommand.cc
  9933. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9934. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9935. setHaltRequested(true) to cancel download.
  9936. * src/PeerInteractionCommand.h
  9937. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9938. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9939. socket from int to sock_t as sockets are unsigned in Windows.
  9940. For AsyncNameResolver, DownloadEngine, I did additional modification
  9941. for the portion of the code changed according to epoll support.
  9942. I defined sock_t in a2netcompat.h to use sock_t without including
  9943. SocketCore.h.
  9944. * src/AsyncNameResolver.cc
  9945. * src/AsyncNameResolver.h
  9946. * src/DownloadEngine.cc
  9947. * src/DownloadEngine.h
  9948. * src/SocketCore.cc
  9949. * src/SocketCore.h
  9950. * src/a2netcompat.h
  9951. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9952. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9953. changes in the patch were applied.
  9954. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9955. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9956. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9957. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9958. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9959. a2io.h and common.h were modified.
  9960. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9961. MinGW.
  9962. * src/common.h: Changed off_t to 64 bit in MinGW.
  9963. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9964. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9965. only a2netcompat.h is modified.
  9966. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9967. directives.
  9968. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9969. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9970. only gai_strerror.h is modified.
  9971. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9972. winsock errors in MinGW.
  9973. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9974. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9975. follow sources are applied.
  9976. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9977. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9978. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9979. I included locale.h from Platform.cc.
  9980. * src/main.cc: Moved common setup/teardown code to Platform class.
  9981. * test/AllTest.cc: Use Platform class.
  9982. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9983. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9984. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9985. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9986. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9987. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9989. aria2-0.13.2+1-mingw-2.patch.
  9990. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9991. systems which don't have termious.h. I moved the directive inside of
  9992. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9993. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9994. anyway.
  9995. * src/asctime_r.h
  9996. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9997. I added 2nd argument to the prototype declaration.
  9998. * src/StringFormat.cc: Get rid of vasprintf.
  9999. * src/getaddrinfo.h: Fixed constants.
  10000. * configure.ac: Added the check for asctime_r function.
  10001. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  10002. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10003. Added writable test for Socket when the sending message is in progress.
  10004. Usually the sending message is piece message. Without wriable check,
  10005. upload latency is dropped to more than 1sec.
  10006. * src/PeerInteractionCommand.cc
  10007. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. Create only requested files and files which shares a piece with
  10009. requested file in multi-torrent downloads. Directory structures are
  10010. also created in the same rule.
  10011. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  10012. DiskWriterEntry as in the previous implementation.
  10013. * src/MultiDiskWriter.cc
  10014. * src/MultiFileAllocationIterator.cc
  10015. * src/MultiFileAllocationIterator.h
  10016. * test/MultiFileAllocationIteratorTest.cc
  10017. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10018. Commented out -lprofiler
  10019. * src/Makefile.am
  10020. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10021. Bump up version number to 0.14.0b.
  10022. * src/configure.ac
  10023. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10024. Actively establish connection to peers in seeding, when peer cache
  10025. is not full and max upload speed limit is not reached.
  10026. * src/ActivePeerConnectionCommand.cc
  10027. * src/ActivePeerConnectionCommand.h
  10028. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10029. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  10030. to make room more fleshy, recently found peers.
  10031. Peer::_badConditionStartTime is not used anymore. Consider to remove
  10032. it.
  10033. * src/DefaultPeerStorage.cc
  10034. * test/DefaultPeerStorageTest.cc
  10035. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10036. Returns cached data only when the previous receiveHandshake() is called
  10037. with peek = true.
  10038. * src/PeerConnection.cc (receiveHandshake)
  10039. * src/PeerConnection.h (receiveHandshake)
  10040. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10041. Changed default value of -s option from 1 to 5.
  10042. Also max value of -s option is changed from 5 to 16.
  10043. * src/HelpItemFactory.cc
  10044. * src/OptionHandlerFactory.cc
  10045. * src/option_processing.cc
  10046. * src/usage_text.h
  10047. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10048. Changed -s options behavior. Now it means the number of connections
  10049. made simultaneously in each http/ftp download.
  10050. If 1 URL is specified, the behavior is the same with old implementation.
  10051. If -s N is given and more than N URLs are specified, first N URLs are
  10052. used and remaining URLs are used for backup. If less than N URLs are
  10053. specified, some of URLs are used more than once so that totally N
  10054. connections are made simultaneously.
  10055. * src/main.cc
  10056. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10057. Included missing iosfwd or ostream header.
  10058. * src/RequestGroupMan.cc
  10059. * src/TaggedItem.cc
  10060. * src/TaggedItem.h
  10061. * src/Util.cc
  10062. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10063. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  10064. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  10065. * src/HttpConnection.cc: Included missing sstream.
  10066. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10067. Added --bt-max-open-files option.
  10068. * src/DefaultPieceStorage.cc
  10069. * src/HelpItemFactory.cc
  10070. * src/MultiDiskAdaptor.cc
  10071. * src/MultiDiskAdaptor.h
  10072. * src/OptionHandlerFactory.cc
  10073. * src/option_processing.cc
  10074. * src/prefs.cc
  10075. * src/prefs.h
  10076. * src/usage_text.h
  10077. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10078. Fixed the bug that aria2 aborts when a path to a directory is given
  10079. in command-line.
  10080. * src/ProtocolDetector.cc
  10081. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10082. Limited the number files opened in each BitTorrent download. The default
  10083. value is 100. The option to change this value will be added.
  10084. * src/MultiDiskAdaptor.cc
  10085. * src/MultiDiskAdaptor.h
  10086. * src/MultiFileAllocationIterator.cc
  10087. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10088. Fixed the bug that HTTP downloads don't start with old libraries.
  10089. * src/HttpHeaderProcessor.cc
  10090. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10091. Use empty() instead of size() > 0.
  10092. * src/HttpConnection.cc
  10093. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10094. Drop connection if the incoming peer ID is the same with localhost's
  10095. one. The previous implementation drops connection when incoming peer's
  10096. IP address is the same with localhost's one.
  10097. * src/PeerListenCommand.cc
  10098. * src/DefaultBtInteractive.cc
  10099. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10100. Returns cached data without checking whether socket is readable
  10101. if the cache is available.
  10102. * src/PeerConnection.cc (receiveHandshake)
  10103. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10104. Included stdint.h
  10105. * src/common.h
  10106. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10107. Removed duplicate HAVE_GETTIMEOFDAY
  10108. * src/Makefile.am
  10109. * src/Makefile.in
  10110. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10111. Use interval as a minInterval when minInterval is not supplied.
  10112. * src/DefaultBtAnnounce.cc
  10113. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  10115. attempt is failed, then 2nd attempt get kicked out more quickly.
  10116. And it is now static const member of DefaultBtAnnounce.
  10117. * src/DefaultBtAnnounce.h
  10118. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10119. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  10120. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  10121. * src/ActivePeerConnectionCommand.cc
  10122. * src/BtConstants.h
  10123. * src/BtRuntime.h
  10124. * src/DHTGetPeersCommand.cc
  10125. * src/DefaultBtAnnounce.cc
  10126. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  10127. BtRuntime::MAX_PEERS.
  10128. * src/DefaultPeerStorage.h
  10129. * src/InitiatorMSEHandshakeCommand.cc
  10130. * src/PeerInitiateConnectionCommand.cc
  10131. * src/PeerInteractionCommand.cc
  10132. * src/PeerReceiveHandshakeCommand.cc
  10133. * src/TrackerWatcherCommand.cc
  10134. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10135. Always Connect to _numNewConnection
  10136. * src/ActivePeerConnectionCommand.cc
  10137. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10138. Made `begin' unsigned int.
  10139. * src/GrowSegment.h
  10140. * src/Piece.cc
  10141. * src/Piece.h
  10142. * src/PiecedSegment.cc
  10143. * src/PiecedSegment.h
  10144. * src/Segment.h
  10145. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10146. Calculate piece hash when data is arrived if the data is arrived in
  10147. order. This removes additional read operation for hash calculation.
  10148. If the data is arrived in out of order, the hash is calucated when the
  10149. piece is completed. This is the same behavior as the old implementation.
  10150. * src/BtPieceMessage.cc
  10151. * src/DefaultBtProgressInfoFile.cc
  10152. * src/DefaultPieceStorage.cc
  10153. * src/DownloadCommand.cc
  10154. * src/DownloadCommand.h
  10155. * src/DownloadEngine.cc
  10156. * src/GrowSegment.cc
  10157. * src/GrowSegment.h
  10158. * src/Piece.cc
  10159. * src/Piece.h
  10160. * src/PiecedSegment.cc
  10161. * src/PiecedSegment.h
  10162. * src/Segment.h
  10163. * test/PieceTest.cc
  10164. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10165. Try to keep the ordering of outgoing piece message.
  10166. * src/DefaultBtMessageDispatcher.cc
  10167. (DefaultBtMessageDispatcher::sendMessages)
  10168. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10169. Fixed busy loop when error/hup epoll events occur.
  10170. * src/AbstractCommand.cc
  10171. * src/PeerAbstractCommand.cc
  10172. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10173. Added --bt-request-peer-speed-limit option, which was a constant
  10174. SLOW_SPEED_THRESHOLD.
  10175. * src/ActivePeerConnectionCommand.cc
  10176. * src/ActivePeerConnectionCommand.h
  10177. * src/BtConstants.h
  10178. * src/HelpItemFactory.cc
  10179. * src/OptionHandlerFactory.cc
  10180. * src/PeerReceiveHandshakeCommand.cc
  10181. * src/option_processing.cc
  10182. * src/prefs.cc
  10183. * src/prefs.h
  10184. * src/usage_text.h
  10185. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10186. Removed repeated call of getTopDirPath(). Instead, call it once and
  10187. cache the result.
  10188. * src/MultiDiskAdaptor.cc
  10189. * src/MultiDiskAdaptor.h
  10190. (mkdir, openFile, initAndOpenFile, openExistingFile)
  10191. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10192. Fixed compile error on debian etch.
  10193. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  10194. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  10195. it is undefined.
  10196. * src/Util.cc (ULLONG_MAX)
  10197. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10198. Added epoll support. Use epoll if it is available. If not, use select.
  10199. When async dns is enabled in compile time, epoll support is enabled
  10200. only when aria2 is built with c-ares. This condition statement is
  10201. defined in a2io.h.
  10202. Currently aria2 supports both c-ares and ares, but ares is maintained
  10203. for quite a while and debian already has c-ares package, ares support
  10204. will be dropped in the future version.
  10205. * configure.ac
  10206. * src/AbstractCommand.cc
  10207. * src/AsyncNameResolver.cc
  10208. * src/AsyncNameResolver.h
  10209. * src/Command.cc
  10210. * src/Command.h
  10211. * src/DownloadEngine.cc
  10212. * src/DownloadEngine.h
  10213. * src/PeerAbstractCommand.cc
  10214. * src/SocketCore.cc
  10215. * src/SocketCore.h
  10216. * src/a2io.h
  10217. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10218. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  10219. directive.
  10220. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10221. Do not do write operation to /dev/null file.
  10222. * src/LogFactory.cc
  10223. * src/SimpleLogger.cc
  10224. Replaced vasprintf with vsnprintf
  10225. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  10226. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10227. * src/BtRequestMessage.cc
  10228. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  10229. for segmentation fault caused by previous commit.
  10230. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10231. Reduced the usage of gettimeofday().
  10232. * src/DefaultBtMessageDispatcher.cc
  10233. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  10234. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10235. * src/RequestSlot.cc
  10236. * src/RequestSlot.h
  10237. (RequestSlot::isTimeout)
  10238. Made RequestSlot have a reference to Piece object to avoid find
  10239. Piece repeatedly.
  10240. * src/DefaultBtMessageDispatcher.cc
  10241. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10242. * src/RequestSlot.cc
  10243. * src/RequestSlot.h
  10244. (RequestSlot::getPiece)
  10245. * test/DefaultBtMessageDispatcherTest.cc
  10246. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10247. * src/TimeA2.cc
  10248. * src/TimeA2.h
  10249. (Time::difference): New function.
  10250. (Time::elapsed): Done optimization.
  10251. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10252. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  10253. directive.
  10254. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10255. * src/option_processing.cc: Added missing `defined' keyword to #if
  10256. directive.
  10257. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10258. Bump up version number to 0.13.2+1
  10259. * src/configure.ac
  10260. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10261. Refactored broken outstanding piece handling.
  10262. * src/DefaultPieceStorage.cc
  10263. * src/DefaultPieceStorage.h
  10264. * src/Piece.cc
  10265. * src/Piece.h
  10266. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10267. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  10268. name collision of static variable and predefined macro.
  10269. * src/BtContext.cc
  10270. * src/BtContext.h
  10271. * src/CookieBoxFactory.cc
  10272. * src/CookieBoxFactory.h
  10273. * src/CookieParser.cc
  10274. * src/CookieParser.h
  10275. * src/DefaultBtContext.cc
  10276. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. * src/RequestGroup.cc
  10278. (RequestGroup::createInitialCommand): Use empty() instead of size().
  10279. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. * Release 0.13.2
  10281. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10282. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  10283. * po/fr.po
  10284. * po/ja.po
  10285. * po/aria2c.pot
  10286. * po/*.po
  10287. * po/*.gmo
  10288. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10289. Bump up version number to 0.13.2
  10290. * src/configure.ac
  10291. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10292. Refactord.
  10293. * src/RequestGroupMan.cc
  10294. (removeStoppedGroup)
  10295. (fillRequestGroupFromReserver)
  10296. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10297. Fixed compile error on Ubuntu.
  10298. * src/BtPieceMessage.cc
  10299. * src/MessageDigestHelper.cc
  10300. * src/Util.cc
  10301. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10302. Fixed compile error when configured with --disable-bittorrent
  10303. * test/DownloadHandlerFactoryTest.cc
  10304. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10305. Done make update-po
  10306. * po/aria2c.pot
  10307. * po/*.po
  10308. * po/*.gmo
  10309. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10310. Bump up version number to 0.13.2rc.
  10311. * src/configure.ac
  10312. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10313. Made option name bold. Updated SYNOPSIS to make it more readable.
  10314. * doc/aria2c.1.txt
  10315. * doc/aria2c.1
  10316. * doc/aria2c.1.html
  10317. * src/version_usage.cc
  10318. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. Refactored. Use std::string instead of size and char*.
  10320. * Data.cc
  10321. * Data.h
  10322. * test/Data.cc
  10323. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. Added trimSelf(). Rewritten trim() to use trimSelf().
  10325. * Util.cc
  10326. * Util.h
  10327. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10328. * src/ChunkChecksum.h (getChecksum): Return const reference.
  10329. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10330. Fixed compile error when configured with --disable-metalink.
  10331. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  10332. * test/FeatureConfigTest.cc
  10333. * test/DownloadHandlerFactoryTest.cc
  10334. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10335. Fixed compile error when configured with --without-gnutls
  10336. --without-openssl
  10337. * src/main.cc
  10338. * test/DefaultBtProgressInfoFileTest.cc
  10339. * test/SegmentManTest.cc
  10340. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10341. Fixed compile error with OpenSSL.
  10342. * src/IteratableChunkChecksumValidator.cc
  10343. * src/LibsslDHKeyExchange.h
  10344. * src/MessageDigestHelper.cc
  10345. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10346. Revert the default value of --max-concurrent-downloads to 5.
  10347. Revert the default value of --metalink-servers to 5.
  10348. Man pages was also updated.
  10349. * src/option_processing.cc
  10350. * doc/aria2c.1.txt
  10351. * doc/aria2c.1.html
  10352. * doc/aria2c.1
  10353. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10354. Returns const reference:
  10355. DownloadContext::getPieceHash, DownloadContext::getName,
  10356. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  10357. BtContext::getInfoHashAsString,
  10358. * src/BtContext.h
  10359. * src/DefaultBtContext.cc
  10360. * src/DefaultBtContext.h
  10361. * src/DownloadContext.h
  10362. * src/SingleFileDownloadContext.h
  10363. * test/MockBtContext.h
  10364. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10365. * src/RequestGroup.h (getDir): Removed.
  10366. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10367. Returns const reference. The internal urlencode function was optimized
  10368. a little bit.
  10369. * src/Request.cc
  10370. * src/Request.h
  10371. * src/HttpRequest.cc
  10372. * src/HttpRequest.h
  10373. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10374. Defined option name and possible values as std::string to reduce
  10375. temporary string object creation in runtime.
  10376. * src/HelpItemFactory.cc
  10377. * src/LogFactory.cc
  10378. * src/Option.cc
  10379. * src/OptionHandlerFactory.cc
  10380. * src/option_processing.cc
  10381. * src/prefs.cc
  10382. * src/prefs.h
  10383. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10384. Return const reference.
  10385. * src/DownloadHandlerConstants.cc
  10386. * src/DownloadHandlerConstants.h
  10387. (getMetalinkExtensions)
  10388. (getMetalinkContentTypes)
  10389. (getBtExtensions)
  10390. (getBtContentTypes)
  10391. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10392. * src/HttpHeader.cc (get): Rewritten.
  10393. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10394. Make HttpHeader::getFirst(...) return const reference.
  10395. * src/HttpHeader.cc
  10396. * src/HttpHeader.h
  10397. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10398. Use Option::getAsBool(...) instead of Option::get(...) and compare
  10399. it with V_TRUE.
  10400. * src/DefaultPieceStorage.cc
  10401. * src/DownloadCommand.cc
  10402. * src/FtpNegotiationCommand.cc
  10403. * src/HttpRequest.cc
  10404. * src/InitiateConnectionCommand.cc
  10405. * src/RequestGroup.cc
  10406. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10407. Made Option::get(...) return const reference of std::string.
  10408. * src/Option.cc
  10409. * src/Option.h
  10410. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10411. Replaced std:copy with insert.
  10412. * src/DefaultBtMessageDispatcher.cc
  10413. * src/DefaultPieceStorage.cc
  10414. * src/DownloadEngineFactory.cc
  10415. * src/RequestGroup.cc
  10416. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10417. Included SocketCore.h to fix compiler warning.
  10418. * src/InitiateConnectionCommand.cc
  10419. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10420. Put piece selection strategy algorithm to RarestPieceSelector class,
  10421. Added a switch to choose whether randomized selection so that unit
  10422. tests emit same results in, possibly, win32.
  10423. * src/DefaultPieceStorage.cc
  10424. * src/DefaultPieceStorage.h
  10425. * src/RarestPieceSelector.cc
  10426. * src/RarestPieceSelector.h
  10427. * test/DefaultPieceStorageTest.cc
  10428. * test/RarestPieceSelectorTest.cc
  10429. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10430. Don't pool connection if HTTP proxy is enabled.
  10431. * src/FtpFinishDownloadCommand.cc
  10432. * src/FtpNegotiationCommand.cc
  10433. * src/HttpSkipResponseCommand.cc
  10434. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10435. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  10436. * src/AbstractCommand.cc
  10437. * src/AbstractCommand.h
  10438. * src/ActivePeerConnectionCommand.cc
  10439. * src/FtpInitiateConnectionCommand.cc
  10440. * src/HttpInitiateConnectionCommand.cc
  10441. * src/InitiateConnectionCommandFactory.cc
  10442. * src/PeerAbstractCommand.cc
  10443. * src/PeerAbstractCommand.h
  10444. * src/PeerInitiateConnectionCommand.cc
  10445. * src/TrackerWatcherCommand.cc
  10446. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10447. Sort RequestSlot in ascending order and manipulate them using
  10448. lower_bound.
  10449. * src/DefaultBtMessageDispatcher.cc
  10450. * src/DefaultBtMessageDispatcher.h
  10451. (getMessageQueue): Added const qualifier.
  10452. (getRequestSlots): Added const qualifier.
  10453. (sendMessages): Use empty() instead of size().
  10454. (doCancelSendingPieceAction): Use HandleEvent object.
  10455. (doAbortOutstandingRequestAction): Rewritten.
  10456. (doChokedAction): Rewritten.
  10457. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  10458. (isOutstandingRequest): Rewritten.
  10459. (getOutstandingRequest): Rewritten.
  10460. (removeOutstandingRequest): Rewritten.
  10461. (addOutstandingRequest): Rewritten.
  10462. * src/RequestSlot.cc
  10463. * src/RequestSlot.h
  10464. (operator=): Rewritten.
  10465. (operator!=): New function.
  10466. (operator<): New function.
  10467. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10468. * src/DefaultBtRequestFactory.cc
  10469. (doChokedAction): Rewritten.
  10470. (removeCompletedPiece): Rewritten.
  10471. (removeTargetPiece): Rewritten.
  10472. (createRequestMessages): Added the debug log.
  10473. (createRequestMessagesOnEndGame: Added the debug log.
  10474. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. Added the debug log message.
  10476. * src/BtPieceMessage.cc (doReceivedAction)
  10477. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10478. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  10479. used lower_bound to process them rather than linear search.
  10480. * src/DHTPeerAnnounceStorage.cc
  10481. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10482. Call subtractPieceStats from ~PeerInteractionCommand only when the
  10483. peer has at least one completed piece.
  10484. * src/Peer.cc
  10485. * src/Peer.h
  10486. * src/PeerInteractionCommand.cc
  10487. * src/PeerSessionResource.cc
  10488. * src/PeerSessionResource.h
  10489. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10490. Removed unnecessary sorting
  10491. * src/DefaultPieceStorage (DefaultPieceStorage)
  10492. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10493. Rewritten the portion of the code that mangaes allowed fast indexes.
  10494. * src/PeerSessionResource.cc
  10495. * src/PeerSessionResource.h
  10496. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10497. Removed the invalid string including '\r' from ru.po and
  10498. did make update-po.
  10499. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10500. Added --log-level and --summary-interval to man page.
  10501. * doc/aria2c.1.txt
  10502. * doc/aria2c.1.html
  10503. * doc/aria2c.1
  10504. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10505. Added --log-level option to specify log level. Log messages under
  10506. the specified level are not output. Default value is `debug'.
  10507. * src/HelpItemFactory.cc
  10508. * src/LogFactory.cc
  10509. * src/LogFactory.h
  10510. * src/Logger.h
  10511. * src/OptionHandlerFactory.cc
  10512. * src/SimpleLogger.cc
  10513. * src/SimpleLogger.h
  10514. * src/main.cc
  10515. * src/option_processing.cc
  10516. * src/prefs.h
  10517. * src/usage_text.h
  10518. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10519. Print download progress summary of all parallel downloads in specified
  10520. interval, default 60 secs. While aria2 could download several files
  10521. in parallel (see -j option), it displayed just first download progress,
  10522. and the other downloads are hidden from the users. This new feature
  10523. prints all downloads currently in-progress to the console so that you
  10524. can check the status of all downloads. The interval can be adjusted
  10525. by --summary-interval option.
  10526. The progress readout is now cut so that all fits in the one line of
  10527. console.
  10528. * src/ConsoleStatCalc.cc
  10529. * src/ConsoleStatCalc.h
  10530. * src/HelpItemFactory.cc
  10531. * src/OptionHandlerFactory.cc
  10532. * src/RequestGroupMan.cc
  10533. * src/RequestGroupMan.h
  10534. * src/main.cc
  10535. * src/option_processing.cc
  10536. * src/prefs.h
  10537. * src/usage_text.h
  10538. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10539. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  10540. * src/DownloadEngine.cc (DownloadEngine)
  10541. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10542. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  10543. defined.
  10544. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  10545. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10546. Use erase+lower_bound+insert instead of sort.
  10547. * src/DefaultPieceStorage.cc (addPieceStats)
  10548. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10549. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  10550. * src/A2STR.cc
  10551. * src/A2STR.h
  10552. * src/OptionParser.cc (parse)
  10553. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10554. Defined fake filename `[tracker.announce]' as static const std::string.
  10555. * src/TrackerWatcherCommand.cc (createRequestGroup)
  10556. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10557. Defined default filename `index.html' as static const std::string
  10558. * src/SingleFileDownloadContext.cc
  10559. * src/SingleFileDownloadContext.h
  10560. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10561. Defined "[MEMORY]" as static const std::string.
  10562. * src/MemoryBufferPreDownloadHandler.cc (execute)
  10563. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10564. Defined control file's version number as static const std::string.
  10565. * src/DefaultBtProgressInfoFile.cc
  10566. * src/DefaultBtProgressInfoFile.h
  10567. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. Use Request::METHOD_GET
  10569. * src/RequestGroup.cc (createNextCommandWithAdj)
  10570. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10571. Defined "OK", "ERR", "INPR" as static const std::string
  10572. * src/RequestGroupMan.cc (showDownloadResults)
  10573. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10574. Defined default client used in extended handshake as static const
  10575. std::string
  10576. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  10577. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10578. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  10579. * src/HttpConnection.cc (eraseConfidentialInfo)
  10580. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10581. Defined default ftp user and password as static const std::string
  10582. * src/AuthConfigFactory.cc
  10583. * src/AuthConfigFactory.h
  10584. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10585. Defined strings used in netrc as static const std::string
  10586. * src/Netrc.cc
  10587. * src/Netrc.h
  10588. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. Defined HTTP status as static const std::string
  10590. * src/AbstractProxyResponseCommand.cc
  10591. * src/HttpHeader.cc
  10592. * src/HttpHeader.h
  10593. * src/HttpResponse.cc
  10594. * src/HttpResponseCommand.cc
  10595. * src/HttpSkipResponseCommand.cc
  10596. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10597. Defined "\r\n", "A", "I" as static const std::string
  10598. * src/A2STR.cc
  10599. * src/A2STR.h
  10600. * src/FtpConnection.cc
  10601. * src/FtpConnection.h
  10602. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10603. Added COLON_C(".") and used it in Request::parseUrl()
  10604. * src/A2STR.cc
  10605. * src/A2STR.h
  10606. * src/Request.cc (parseUrl)
  10607. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10608. Changed the type of padName from `const std::string&' to `const char*'.
  10609. * src/MSEHandshake.cc (verifyPadLength)
  10610. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10611. Defined "sha1" as static const std::string.
  10612. * src/MetalinkParserController.cc
  10613. * src/MetalinkParserController.h
  10614. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10615. Defined message digest algorithm name as static const std::string
  10616. * src/DHTTokenTracker.cc
  10617. * src/DHTUtil.cc
  10618. * src/DefaultBtContext.cc
  10619. * src/MSEHandshake.cc
  10620. * src/MessageDigestHelper.cc
  10621. * src/Peer.cc
  10622. * src/messageDigest.cc
  10623. * src/messageDigest.h
  10624. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10625. Made string literals used in SAX parser static const std::string.
  10626. * src/FileMetalinkParserState.cc
  10627. * src/FileMetalinkParserState.h
  10628. * src/FilesMetalinkParserState.cc
  10629. * src/FilesMetalinkParserState.h
  10630. * src/InitialMetalinkParserState.cc
  10631. * src/InitialMetalinkParserState.h
  10632. * src/MetalinkMetalinkParserState.cc
  10633. * src/MetalinkMetalinkParserState.h
  10634. * src/PiecesMetalinkParserState.cc
  10635. * src/PiecesMetalinkParserState.h
  10636. * src/ResourcesMetalinkParserState.cc
  10637. * src/ResourcesMetalinkParserState.h
  10638. * src/VerificationMetalinkParserState.cc
  10639. * src/VerificationMetalinkParserState.h
  10640. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10641. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  10642. * src/A2STR.cc
  10643. * src/A2STR.h
  10644. * src/File.cc
  10645. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10646. Defined static const std::string IP("ip"), PORT("port") and use them
  10647. instead of string literals.
  10648. * src/DefaultPeerListProcessor.cc
  10649. * src/DefaultPeerListProcessor.h
  10650. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10651. Made string literals for torrent file processing static const
  10652. std::string.
  10653. * src/BtContext.cc
  10654. * src/BtContext.h
  10655. * src/DefaultBtContext.cc
  10656. * src/DefaultBtContext.h
  10657. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10658. Made string literal for tracker response static const std::string
  10659. * src/BtAnnounce.cc
  10660. * src/BtAnnounce.h
  10661. * src/DefaultBtAnnounce.cc
  10662. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10663. Use DHTMessage::T instead of "t".
  10664. * src/DHTMessageTracker.cc (messageArrived)
  10665. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10666. Made keyName static const. Made trimmed charset static const
  10667. std::string.
  10668. * src/Util.cc (getContentDispositionFilename)
  10669. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10670. Made USER_AGENT const. Made "/" static const std::string.
  10671. * src/A2STR.cc
  10672. * src/A2STR.h
  10673. * src/HttpRequest.cc
  10674. * src/HttpRequest.h
  10675. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10676. Made string listeral to static const std::string:
  10677. "Content-Range", "Content-Length"
  10678. * src/HttpHeader.cc
  10679. * src/HttpHeader.h
  10680. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10681. Made string listeral to static const std::string.
  10682. * src/HttpConnection.cc
  10683. * src/HttpHeader.cc
  10684. * src/HttpHeader.h
  10685. * src/HttpResponse.cc
  10686. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10687. Made string listeral to static const std::string.
  10688. * src/A2STR.cc
  10689. * src/A2STR.h
  10690. * src/SimpleLogger.cc
  10691. * src/SimpleLogger.h
  10692. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10693. Made string literal to static const std::string.
  10694. Rewritten CookieParser::setField.
  10695. * src/A2STR.cc
  10696. * src/A2STR.h
  10697. * src/CookieBoxFactory.cc
  10698. * src/CookieBoxFactory.h
  10699. * src/CookieParser.cc
  10700. * src/CookieParser.h
  10701. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10702. Made string literal to static const std::string
  10703. * src/DHTAbstractMessage.cc
  10704. * src/DHTAnnouncePeerMessage.cc
  10705. * src/DHTAnnouncePeerMessage.h
  10706. * src/DHTAnnouncePeerReplyMessage.cc
  10707. * src/DHTAnnouncePeerReplyMessage.h
  10708. * src/DHTFindNodeMessage.cc
  10709. * src/DHTFindNodeMessage.h
  10710. * src/DHTFindNodeReplyMessage.cc
  10711. * src/DHTFindNodeReplyMessage.h
  10712. * src/DHTGetPeersMessage.cc
  10713. * src/DHTGetPeersMessage.h
  10714. * src/DHTGetPeersReplyMessage.cc
  10715. * src/DHTGetPeersReplyMessage.h
  10716. * src/DHTMessage.cc
  10717. * src/DHTMessage.h
  10718. * src/DHTMessageFactoryImpl.cc
  10719. * src/DHTMessageReceiver.cc
  10720. * src/DHTPingMessage.cc
  10721. * src/DHTPingMessage.h
  10722. * src/DHTPingReplyMessage.cc
  10723. * src/DHTPingReplyMessage.h
  10724. * src/DHTQueryMessage.cc
  10725. * src/DHTQueryMessage.h
  10726. * src/DHTResponseMessage.cc
  10727. * src/DHTResponseMessage.h
  10728. * src/DHTUnknownMessage.cc
  10729. * src/DHTUnknownMessage.h
  10730. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10731. Made string literal to static const std::string
  10732. * src/BtChokeMessage.cc (toString)
  10733. * src/BtHaveAllMessage.cc (toString)
  10734. * src/BtHaveNoneMessage.cc (toString)
  10735. * src/BtInterestedMessage.cc (toString)
  10736. * src/BtNotInterestedMessage.cc (toString)
  10737. * src/BtUnchokeMessage.cc (toString)
  10738. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10739. Replaced "" with static const variable A2STR::NIL.
  10740. Replaced string comparison against "" with std::string::empty().
  10741. Added PROTO_* to Request class and use them as a protocol string
  10742. constant.
  10743. Made "started", "stopped", "completed" static const variable in
  10744. AnnounceList class.
  10745. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10746. Updated translations. Great thanks to translators.
  10747. * po/ca.po
  10748. * po/de.po
  10749. * po/fr.po
  10750. * po/it.po
  10751. * po/ja.po
  10752. * po/ru.po
  10753. * po/zh_CN.po
  10754. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10755. Updated man page; categorized options and fixed typo.
  10756. * doc/aria2c.1.txt
  10757. * doc/aria2c.1.html
  10758. * doc/aria2c.1
  10759. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10760. Removed const ref
  10761. * src/MetalinkEntry.cc (AddProtocolPreference)
  10762. * src/RequestGroup.cc (FindServerHostByHostname)
  10763. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10764. Rewritten Accept-Features handling.
  10765. * src/HttpRequestCommand.cc (createHttpRequest)
  10766. * src/a2functional.h
  10767. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10768. Changed method signature:
  10769. DHTAbstractNodeLookupTask::toEntries
  10770. * src/DHTAbstractNodeLookupTask.cc
  10771. * src/DHTAbstractNodeLookupTask.h
  10772. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10773. Changed method signature:
  10774. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10775. * src/BtContext.h
  10776. * src/DefaultBtContext.cc
  10777. * src/DefaultBtContext.h
  10778. * src/DefaultBtInteractive.cc
  10779. * test/DefaultBtContextTest.cc
  10780. * test/MockBtContext.h
  10781. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10782. Changed method signature:
  10783. MultiFileAllocationIterator::makeDiskWriterEntries
  10784. * src/MultiFileAllocationIterator.cc
  10785. * src/MultiFileAllocationIterator.h
  10786. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10787. Changed method sinature:
  10788. MetalinkEntry::toFileEntry,
  10789. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10790. Metalinker::queryEntry
  10791. * src/Metalink2RequestGroup.cc
  10792. * src/MetalinkEntry.cc
  10793. * src/MetalinkEntry.h
  10794. * src/MetalinkHelper.cc
  10795. * src/MetalinkHelper.h
  10796. * src/Metalinker.cc
  10797. * src/Metalinker.h
  10798. * src/main.cc
  10799. * test/MetalinkHelperTest.cc
  10800. * test/MetalinkerTest.cc
  10801. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10802. Changed method sinature:
  10803. RequestGroup::getURIs
  10804. * src/RequestGroup.cc
  10805. * src/RequestGroup.h
  10806. * test/Metalink2RequestGroupTest.cc
  10807. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10808. Changed method signature:
  10809. PeerListProcessor::extractPeer
  10810. * src/CompactPeerListProcessor.cc
  10811. * src/CompactPeerListProcessor.h
  10812. * src/DefaultBtAnnounce.cc
  10813. * src/DefaultPeerListProcessor.cc
  10814. * src/DefaultPeerListProcessor.h
  10815. * src/DelegatingPeerListProcessor.cc
  10816. * src/DelegatingPeerListProcessor.h
  10817. * src/PeerListProcessor.h
  10818. * src/UTPexExtensionMessage.cc
  10819. * test/DefaultPeerListProcessorTest.cc
  10820. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10821. Changed method signature:
  10822. BtRequestFactory::createRequestMessages,
  10823. BtRequestFactory::createRequestMessagesOnEndGame
  10824. * src/BtRequestFactory.h
  10825. * src/DefaultBtInteractive.cc
  10826. * src/DefaultBtRequestFactory.cc
  10827. * src/DefaultBtRequestFactory.h
  10828. * test/DefaultBtRequestFactoryTest.cc
  10829. * test/MockBtRequestFactory.h
  10830. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10831. Changed method signature:
  10832. PieceStorage::getInFlightPieces
  10833. * src/DefaultBtProgressInfoFile.cc
  10834. * src/DefaultPieceStorage.cc
  10835. * src/DefaultPieceStorage.h
  10836. * src/PieceStorage.h
  10837. * src/UnknownLengthPieceStorage.cc
  10838. * src/UnknownLengthPieceStorage.h
  10839. * test/DefaultBtProgressInfoFileTest.cc
  10840. * test/MockPieceStorage.h
  10841. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10842. Changed method signature:
  10843. PostDownloadHandler::getNextRequestGroups
  10844. Metalink2RequestGroup::generate
  10845. RequestGroup::postDownloadProcessing
  10846. * src/BtPostDownloadHandler.cc
  10847. * src/BtPostDownloadHandler.h
  10848. * src/Metalink2RequestGroup.cc
  10849. * src/Metalink2RequestGroup.h
  10850. * src/MetalinkPostDownloadHandler.cc
  10851. * src/MetalinkPostDownloadHandler.h
  10852. * src/PostDownloadHandler.h
  10853. * src/RequestGroup.cc
  10854. * src/RequestGroup.h
  10855. * src/RequestGroupMan.cc
  10856. * src/main.cc
  10857. * test/BtPostDownloadHandlerTest.cc
  10858. * test/Metalink2RequestGroupTest.cc
  10859. * test/MetalinkPostDownloadHandlerTest.cc
  10860. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10861. Rewritten AccRequestGroup
  10862. * src/main.cc
  10863. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10864. Rewritten.
  10865. * src/TaggedItem.cc (toTagString)
  10866. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10867. Rewritten Accept-Features handling.
  10868. * src/HttpRequestCommand.cc (createHttpRequest)
  10869. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10870. Rewritten accept types handling.
  10871. * HttpRequest.cc (createRequest)
  10872. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10873. Rewritten
  10874. * src/FeatureConfig.cc (featureSummary)
  10875. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10876. Changed method signature:
  10877. PeerStorage::getActivePeers
  10878. * src/DHTPeerAnnounceEntry.cc
  10879. * src/DefaultPeerStorage.cc
  10880. * src/DefaultPeerStorage.h
  10881. * src/PeerStorage.h
  10882. * test/DefaultPeerStorageTest.cc
  10883. * test/MockPeerStorage.h
  10884. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10885. Changed method signature:
  10886. DHTPeerAnnounceStorage::getPeers,
  10887. DHTPeerAnnounceEntry::getPeers
  10888. * src/DHTGetPeersMessage.cc
  10889. * src/DHTPeerAnnounceEntry.cc
  10890. * src/DHTPeerAnnounceEntry.h
  10891. * src/DHTPeerAnnounceStorage.cc
  10892. * src/DHTPeerAnnounceStorage.h
  10893. * test/DHTAnnouncePeerMessageTest.cc
  10894. * test/DHTPeerAnnounceEntryTest.cc
  10895. * test/DHTPeerAnnounceStorageTest.cc
  10896. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10897. Changed method signature:
  10898. NameResolver::resolve
  10899. * src/DHTEntryPointNameResolveCommand.cc
  10900. * src/InitiateConnectionCommand.cc
  10901. * src/NameResolver.cc
  10902. * src/NameResolver.h
  10903. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10904. Changed method signature:
  10905. PieceStorage::getAdvertisedPieceIndexes
  10906. * src/DefaultBtInteractive.cc
  10907. * src/DefaultPieceStorage.cc
  10908. * src/DefaultPieceStorage.h
  10909. * src/PieceStorage.h
  10910. * src/UnknownLengthPieceStorage.h
  10911. * test/MockPieceStorage.h
  10912. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10913. Changed method signature:
  10914. SegmentMan::getInFlightSegment
  10915. * src/AbstractCommand.cc
  10916. * src/SegmentMan.cc
  10917. * src/SegmentMan.h
  10918. * test/SegmentManTest.cc
  10919. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10920. Changed method signature:
  10921. DHTAbstractNodeLookupTask::getNodesFromMessage
  10922. * src/DHTAbstractNodeLookupTask.cc
  10923. * src/DHTAbstractNodeLookupTask.h
  10924. * src/DHTNodeLookupTask.cc
  10925. * src/DHTNodeLookupTask.h
  10926. * src/DHTPeerLookupTask.cc
  10927. * src/DHTPeerLookupTask.h
  10928. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10929. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10930. * src/AbstractCommand.cc
  10931. * src/BtCheckIntegrityEntry.cc
  10932. * src/BtCheckIntegrityEntry.h
  10933. * src/BtFileAllocationEntry.cc
  10934. * src/BtFileAllocationEntry.h
  10935. * src/BtSetup.cc
  10936. * src/BtSetup.h
  10937. * src/CheckIntegrityCommand.cc
  10938. * src/CheckIntegrityEntry.h
  10939. * src/ChecksumCheckIntegrityEntry.cc
  10940. * src/ChecksumCheckIntegrityEntry.h
  10941. * src/DHTSetup.cc
  10942. * src/DHTSetup.h
  10943. * src/DownloadEngine.cc
  10944. * src/FileAllocationCommand.cc
  10945. * src/FileAllocationEntry.h
  10946. * src/RequestGroup.cc
  10947. * src/RequestGroup.h
  10948. * src/RequestGroupMan.cc
  10949. * src/RequestGroupMan.h
  10950. * src/StreamCheckIntegrityEntry.cc
  10951. * src/StreamCheckIntegrityEntry.h
  10952. * src/StreamFileAllocationEntry.cc
  10953. * src/StreamFileAllocationEntry.h
  10954. * src/TrackerWatcherCommand.cc
  10955. * src/a2functional.h
  10956. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10957. Changed method signature:
  10958. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10959. DHTBucket::getGoodNodes,
  10960. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10961. * src/BNode.cc
  10962. * src/BNode.h
  10963. * src/DHTAbstractNodeLookupTask.cc
  10964. * src/DHTAutoSaveCommand.cc
  10965. * src/DHTBucket.cc
  10966. * src/DHTBucket.h
  10967. * src/DHTBucketRefreshTask.cc
  10968. * src/DHTFindNodeMessage.cc
  10969. * src/DHTGetPeersMessage.cc
  10970. * src/DHTRoutingTable.cc
  10971. * src/DHTRoutingTable.h
  10972. * test/BNodeTest.cc
  10973. * test/DHTBucketTest.cc
  10974. * test/DHTRoutingTableTest.cc
  10975. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10976. In piece selection functions, Pass std::deque<...> by reference rather
  10977. than returning it.
  10978. * src/BitfieldMan.cc
  10979. * src/BitfieldMan.h
  10980. * src/DefaultBtRequestFactory.cc
  10981. * src/DefaultPieceStorage.cc
  10982. * src/Piece.cc
  10983. * src/Piece.h
  10984. * test/BitfieldManTest.cc
  10985. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10986. Implemented rarest piece first piece selection strategy.
  10987. * src/AbstractBtMessage.cc
  10988. * src/AbstractBtMessage.h
  10989. * src/BitfieldMan.cc
  10990. * src/BitfieldMan.h
  10991. * src/BtBitfieldMessage.cc
  10992. * src/BtHaveAllMessage.cc
  10993. * src/BtHaveMessage.cc
  10994. * src/DefaultPieceStorage.cc
  10995. * src/DefaultPieceStorage.h
  10996. * src/PeerInteractionCommand.cc
  10997. * src/PieceStorage.h
  10998. * src/UnknownLengthPieceStorage.h
  10999. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11000. Rewritten readData and writeData.
  11001. * src/MultiDiskAdaptor.cc
  11002. * src/MultiDiskAdaptor.h
  11003. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11004. Move \n out of the message "Usage: ...".
  11005. * src/version_usage.cc
  11006. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11007. Bump up version number to 0.13.2b.
  11008. * configure.ac
  11009. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11010. Added const qualifier to argument Exception& e.
  11011. * src/Logger.h
  11012. * src/SimpleLogger.cc
  11013. * src/SimpleLogger.h
  11014. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11015. Pool connection when CWD, SIZE command fails.
  11016. * src/FtpNegotiationCommand.cc
  11017. * src/FtpNegotiationCommand.h
  11018. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11019. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  11020. * src/HttpResponseCommand.cc
  11021. * src/HttpSkipResponseCommand.cc
  11022. * src/HttpSkipResponseCommand.h
  11023. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11024. Pool connection when a server returns 4xx, 5xx responses.
  11025. * src/HttpNullDownloadCommand.cc
  11026. * src/HttpNullDownloadCommand.h
  11027. * src/HttpResponse.cc
  11028. * src/HttpResponse.h
  11029. * src/HttpResponseCommand.cc
  11030. * src/HttpResponseCommand.h
  11031. * test/HttpResponseTest.cc
  11032. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11033. Print usage when no URL is specifed or bad command-line option is
  11034. specified.
  11035. * src/HelpItemFactory.cc
  11036. * src/help_tags.h
  11037. * src/option_processing.cc
  11038. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11039. Removed duplicate log message.
  11040. * src/AbstractCommand.cc (asyncResolveHostname)
  11041. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11042. Updated man page: --async-dns and --ftp-reuse-connection were added.
  11043. Changed -j option's default value from 5 to 1.
  11044. Added new examples using protocol auto detection feature.
  11045. Removed -T, -M usage where it can be omitted.
  11046. * doc/aria2c.1.txt
  11047. * doc/aria2c.1.html
  11048. * doc/aria2c.1.txt
  11049. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11050. Updated command-line usage text, so that it tells users that they
  11051. can specify any number of torrent files and metalink files in
  11052. command-line.
  11053. * src/version_usage.cc
  11054. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11055. Changed the default value of -j option to 1.
  11056. * src/HelpItemFactory.cc
  11057. * src/option_processing.cc
  11058. * src/usage_text.h
  11059. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11060. Added the ability to reuse connection in FTP and it is enabled by
  11061. default. It can be disabled by --ftp-reuse-connection=false option.
  11062. * src/Command.cc
  11063. * src/DownloadCommand.cc
  11064. * src/FtpDownloadCommand.cc
  11065. * src/FtpDownloadCommand.h
  11066. * src/FtpFinishDownloadCommand.cc
  11067. * src/FtpFinishDownloadCommand.h
  11068. * src/FtpInitiateConnectionCommand.cc
  11069. * src/FtpNegotiationCommand.cc
  11070. * src/FtpNegotiationCommand.h
  11071. * src/HelpItemFactory.cc
  11072. * src/Makefile.am
  11073. * src/Makefile.in
  11074. * src/OptionHandlerFactory.cc
  11075. * src/option_processing.cc
  11076. * src/prefs.h
  11077. * src/usage_text.h
  11078. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11079. Call Command::transitStatus() before calling Command::execute(),
  11080. so that the status change made in execute() is not cleared.
  11081. * src/DownloadEngine.cc
  11082. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11083. Removed forward declaration of SocketCore class.
  11084. * src/HttpDownloadCommand.h
  11085. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11086. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  11087. in InitiateConnectionCommandFactory. They should be set only when
  11088. the protocol is HTTP or HTTPS.
  11089. * src/InitiateConnectionCommandFactory.cc
  11090. * src/RequestGroup.cc
  11091. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11092. Fixed infinite loop in checksum checking.
  11093. * src/IteratableChecksumValidator.cc
  11094. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11095. Set _supportsPersistentConnection to true by default.
  11096. * src/Request.cc
  11097. * src/RequestGroup.cc
  11098. * test/HttpRequestTest.cc
  11099. * test/RequestTest.cc
  11100. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11101. Added timeout to socket pool. The default timeout is 15 seconds,
  11102. which is the same value Apache uses.
  11103. * src/DownloadEngine.cc
  11104. * src/DownloadEngine.h
  11105. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11106. Fixed misuse of multimap::find()
  11107. * src/HttpHeader.cc
  11108. * test/HttpHeaderTest.cc
  11109. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11110. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  11111. option.
  11112. The asynchronous DNS is not capable of IPv6 yet.
  11113. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  11114. least for HTTP download.
  11115. * src/AbstractCommand.cc
  11116. * src/AbstractCommand.h
  11117. * src/AsyncNameResolver.cc
  11118. * src/AsyncNameResolver.h
  11119. * src/DHTEntryPointNameResolveCommand.cc
  11120. * src/DHTEntryPointNameResolveCommand.h
  11121. * src/DownloadEngine.cc
  11122. * src/DownloadEngine.h
  11123. * src/FtpInitiateConnectionCommand.cc
  11124. * src/FtpInitiateConnectionCommand.h
  11125. * src/HelpItemFactory.cc
  11126. * src/HttpInitiateConnectionCommand.cc
  11127. * src/HttpInitiateConnectionCommand.h
  11128. * src/InitiateConnectionCommand.cc
  11129. * src/InitiateConnectionCommand.h
  11130. * src/Makefile.am
  11131. * src/Makefile.in
  11132. * src/NameResolver.cc
  11133. * src/NameResolver.h
  11134. * src/OptionHandlerFactory.cc
  11135. * src/SocketCore.cc
  11136. * src/SocketCore.h
  11137. * src/Util.cc
  11138. * src/Util.h
  11139. * src/option_processing.cc
  11140. * src/prefs.h
  11141. * src/usage_text.h
  11142. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11143. Updated man page: --quiet, --header were added.
  11144. --metalink-servers and --enable-http-keep-alive option were updated.
  11145. * doc/aria2c.1
  11146. * doc/aria2c.1.html
  11147. * doc/aria2c.1.txt
  11148. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11149. Enable HTTP keep-alive by default.
  11150. * src/HelpItemFactory.cc
  11151. * src/option_processing.cc
  11152. * src/usage_text.h
  11153. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11154. Disable http keep-alive if the remote server is not HTTP/1.1.
  11155. * src/HttpConnection.cc
  11156. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11157. Receive content body of 302 response so that the connection can be
  11158. reused later when http keep-alive is enabled.
  11159. * src/HttpNullDownloadCommand.cc
  11160. * src/HttpNullDownloadCommand.h
  11161. * src/HttpResponseCommand.cc
  11162. * src/HttpResponseCommand.h
  11163. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11164. const SharedHandle<Request> -> const SharedHandle<Request>&
  11165. * src/FtpDowndloadCommand.cc
  11166. * src/FtpDowndloadCommand.h
  11167. * src/HttpDownloadCommand.cc
  11168. * src/HttpDownloadCommand.h
  11169. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11170. Fixed the bug that the control file(.aria2 file) is not renamed
  11171. according to tryAutoFileRenaming().
  11172. tryAutoFileRenaming() was rewritten so that if both renamed file and
  11173. its control file exist, use them and continue download.
  11174. The old implementation didn't take into account of control file's
  11175. existence, so basically you couldn't continue download of renamed file.
  11176. * src/BtProgressInfoFile.h
  11177. * src/DefaultBtProgressInfoFile.cc
  11178. * src/DefaultBtProgressInfoFile.h
  11179. * src/NullProgressInfoFile.h
  11180. * src/RequestGroup.cc
  11181. * test/DefaultBtProgressInfoFileTest.cc
  11182. * test/MockBtProgressInfoFile.h
  11183. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11184. Change the default value of --metalink-servers option from `5' to `1'.
  11185. * src/HelpItemFactory.cc
  11186. * src/option_processing.cc
  11187. * src/usage_text.h
  11188. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11189. Reimplemented transparent metalink using Accept request header.
  11190. * src/HttpRequest.cc
  11191. * src/HttpRequest.h
  11192. * src/HttpRequestCommand.cc
  11193. * src/Metalink2RequestGroup.cc
  11194. * src/RequestGroup.cc
  11195. * src/RequestGroup.h
  11196. * test/HttpRequestTest.cc
  11197. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11198. Bump up version number to 0.13.2a
  11199. * configure.ac
  11200. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11201. Updated configure.ac using the result of autoscan.
  11202. * configure.ac
  11203. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11204. Fixed compilation error without gcrypt/openssl.
  11205. * src/DownloadCommand.cc
  11206. * src/DownloadCommand.h
  11207. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11208. Reorganized version information so that it can be displayed in a
  11209. standard terminal screen without scrolling.
  11210. Removed http, ftp from Configuration section, because they are always
  11211. enabled.
  11212. * src/FeatureConfig.cc
  11213. * src/FeatureConfig.h
  11214. * src/main.cc
  11215. * src/messageDigest.cc
  11216. * src/messageDigest.h
  11217. * src/version_usage.cc
  11218. * test/FeatureConfigTest.cc
  11219. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11220. Masked user ID in log.
  11221. * src/FtpConnection.cc (sendUser)
  11222. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11223. Removed query part from filename in HTTP download. The query part means
  11224. the substring after "?" in URL. Firefox seems do the same thing.
  11225. A query part is sometimes very long and not suitable to filename,
  11226. so I think it is better to remove it from filename.
  11227. * src/HttpRequest.cc
  11228. * src/HttpRequest.h
  11229. * src/Request.cc
  11230. * src/Request.h
  11231. * test/HttpRequestTest.cc
  11232. * test/RequestTest.cc
  11233. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11234. Rewritten Exception class. Throw exception object, not its pointer and
  11235. catch by reference, so that remove problematic delete operator for
  11236. catched exception.
  11237. * src/Exception.cc
  11238. * src/Exception.h
  11239. * test/ExceptionTest.cc
  11240. * src/*: All files throwing/catching exception.
  11241. * test/*: All files throwing/catching exception.
  11242. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11243. Now auto protocol detection is enabled without -Z option.
  11244. But there is a important difference between with/without -Z optoin.
  11245. For example, if you type:
  11246. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  11247. then, aria2 interprets there are 3 request groups:
  11248. (1) http://host/file, http://mirror/file <-- multi-source download
  11249. (2) file1.torrent
  11250. (3) file2.metalink
  11251. On the other hand, if you invoke above command with -Z option, it is
  11252. interpreted as 4 request groups:
  11253. (1) http://host/file
  11254. (2) file1.torrent
  11255. (3) file2.metalink
  11256. (4) http://mirror/file
  11257. I think usually user don't mix multi-source URLs and torrent files, so
  11258. there is no big problem here.
  11259. * src/main.cc
  11260. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11261. Fixed the bug that causes segmentaion fault when reading XML containing
  11262. unescapsed character like '&'.
  11263. Also a modification was made which avoids adding unnecessary
  11264. characters stack and appending unused string.
  11265. * src/ExpatMetalinkProcessor.cc
  11266. * src/FileMetalinkParserState.h
  11267. * src/FilesMetalinkParserState.h
  11268. * src/FinMetalinkParserState.h
  11269. * src/HashMetalinkParserState.h
  11270. * src/InitialMetalinkParserState.h
  11271. * src/LanguageMetalinkParserState.h
  11272. * src/MetalinkMetalinkParserState.h
  11273. * src/MetalinkParserState.h
  11274. * src/MetalinkParserStateMachine.cc
  11275. * src/MetalinkParserStateMachine.h
  11276. * src/OSMetalinkParserState.h
  11277. * src/PieceHashMetalinkParserState.h
  11278. * src/PiecesMetalinkParserState.h
  11279. * src/ResourcesMetalinkParserState.h
  11280. * src/SizeMetalinkParserState.h
  11281. * src/SkipTagMetalinkParserState.h
  11282. * src/URLMetalinkParserState.h
  11283. * src/VerificationMetalinkParserState.h
  11284. * src/VersionMetalinkParserState.h
  11285. * src/XML2SAXMetalinkProcessor.cc
  11286. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11287. Added StringFormat class, which internally calls vasprintf.
  11288. operator<< is defined for this class, so it can be used with iostream
  11289. classes nicely. SimpleLogger and following functions are rewritten
  11290. using StringFormat class.
  11291. Besides, now Logger class's methods are non-const, many classes
  11292. that has a const Logger* as a member variable are modified to remove
  11293. const qualifier from the variable declaration.
  11294. * src/HelpItemFactory.cc
  11295. * src/Request.cc
  11296. * src/SimpleLogger.cc
  11297. * src/StringFormat.cc
  11298. * src/StringFormat.h
  11299. * src/Util.cc
  11300. * src/option_processing.cc
  11301. * src/version_usage.cc
  11302. * test/StringFormatTest.cc
  11303. * src/*.h: The classes that has const Logger* as a member variable.
  11304. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11305. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  11306. failed. Also fixed memory link when exception is thrown there.
  11307. * src/main.cc (AccRequestGroup)
  11308. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11309. Added build-in "Accept-Features" support. For now only "metalink" is
  11310. used in this header field.
  11311. This "metalink" value is removed from the list when connecting URLs
  11312. fed by metalink file to avoid loop in "transparent" metlaink.
  11313. * src/HttpRequest.cc
  11314. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  11315. header is also held in this variable. Also renamed setUserHeaders as
  11316. addHeader and it was rewritten to add header not just to clear the old
  11317. value.
  11318. * src/HttpRequestCommand.cc
  11319. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  11320. from "Accept-Features" list.
  11321. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  11322. default.
  11323. * src/RequestGroup.h
  11324. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  11325. * src/a2functional.h: Included <string> because Concat class depends on
  11326. it.
  11327. * test/HttpRequestTest.cc
  11328. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11329. Added comment
  11330. * src/RequestGroup.cc (createNextCommand)
  11331. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11332. Capitalized METHOD_GET and METHOD_HEAD
  11333. * src/Request.cc
  11334. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11335. Added getDownloadResults() method
  11336. * src/RequestGroupMan.cc
  11337. * src/RequestGroupMan.h
  11338. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11339. Fixed the bug that aria2 exits when commands is empty() but
  11340. _routineCommands are not.
  11341. * src/DownloadEngine.cc
  11342. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11343. Use the default value pulled from Option object in HelpItemFactory.
  11344. except options whose defualt value is embedded in a usage text.
  11345. * src/HelpItemFactory.cc
  11346. * src/HelpItemFactory.h
  11347. * src/option_processing.cc
  11348. * src/version_usage.cc
  11349. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11350. Added --quiet option to make aria2 quiet (no console output).
  11351. --quiet option is tagged with ADVANCED.
  11352. * src/HelpItemFactory.cc
  11353. * src/LogFactory.cc
  11354. * src/LogFactory.h
  11355. * src/MultiUrlRequestInfo.cc
  11356. * src/MultiUrlRequestInfo.h
  11357. * src/NullStatCalc.h: New class. This class prints nothing.
  11358. * src/OptionHandlerFactory.cc
  11359. * src/main.cc
  11360. * src/option_processing.cc
  11361. * src/prefs.h
  11362. * src/usage_text.h
  11363. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11364. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  11365. * src/HelpItemFactory.cc (createHelpItems):
  11366. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11367. Fixed compilation error in ExpatMetalinkProcessor.cc
  11368. * src/ExpatMetalinkProcessor.cc
  11369. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11370. Reuse socket if the origin server supports HTTP keep-alive and
  11371. --enable-http-keep-alive or --enable-http-pipelining is given.
  11372. The current implementation doesn't reuse the connections established
  11373. against proxy server.
  11374. * src/AbstractCommand.cc
  11375. * src/DownloadEngine.cc
  11376. * src/DownloadEngine.h
  11377. * src/HttpDownloadCommand.cc
  11378. * src/HttpInitiateConnectionCommand.cc
  11379. * src/HttpResponseCommand.cc
  11380. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11381. Rewritten HTTP keep-alive and pipelining routine.
  11382. * src/AbstractCommand.cc
  11383. * src/HttpConnection.cc
  11384. * src/HttpDownloadCommand.cc
  11385. * src/HttpRequest.cc
  11386. * src/HttpRequestCommand.cc
  11387. * src/HttpResponseCommand.cc
  11388. * src/Request.cc
  11389. * src/Request.h
  11390. * src/RequestGroup.cc
  11391. * test/HttpRequestTest.cc
  11392. * test/HttpResponseTest.cc
  11393. * test/RequestTest.cc
  11394. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11395. Added missing setUserHeaders call
  11396. * src/HttpRequestCommand.cc
  11397. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11398. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  11399. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  11400. waste of time because it is more likey false.
  11401. * src/FileAllocationDispatcherCommand.cc (execute)
  11402. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11403. Now HTTP status and version are a member variable of HttpHeader.
  11404. HTTP status is processed as a string, not integer.
  11405. * src/AbstractProxyResponseCommand.cc
  11406. * src/HttpConnection.cc
  11407. * src/HttpHeader.cc
  11408. * src/HttpHeader.h
  11409. * src/HttpHeaderProcessor.cc
  11410. * src/HttpHeaderProcessor.h
  11411. * src/HttpResponse.cc
  11412. * src/HttpResponse.h
  11413. * test/HttpHeaderProcessorTest.cc
  11414. * test/HttpResponseTest.cc
  11415. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11416. Added --header option. You can specify any number of additional HTTP headers
  11417. like:
  11418. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  11419. Unlike other commad-line option, you can use --header option multiple times.
  11420. * src/HelpItemFactory.cc
  11421. * src/HttpRequest.{cc, h}
  11422. * src/HttpRequestCommand.cc
  11423. * src/OptionHandlerFactory.cc
  11424. * src/OptionHandlerImpl.h
  11425. * src/option_processing.cc
  11426. * src/prefs.h
  11427. * src/usage_text.h
  11428. * test/HttpRequestTest.cc (testUserHeaders)
  11429. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11430. Eliminates the time lag between sequential downloads and commands in
  11431. the same RequestGroup.
  11432. In old implementation, aria2 occasionally waits 1 seconds before
  11433. executing next command or RequestGroup.
  11434. This is really a waste of time, and new implementation eliminates
  11435. this unnecessary time lag.
  11436. * src/AbstractCommand.cc
  11437. * src/AutoSaveCommand.cc
  11438. * src/CheckIntegrityCommand.cc
  11439. * src/Command.{cc, h}
  11440. * src/DownloadEngine.{cc, h}
  11441. * src/DownloadEngineFactory.cc
  11442. * src/FileAllocationCommand.cc
  11443. * src/FileAllocationDispatcherCommand.cc
  11444. * src/FillRequestGroupCommand.cc
  11445. * src/FtpInitiateConnectionCommand.cc
  11446. * src/HaveEraseCommand.cc
  11447. * src/HttpInitiateConnectionCommand.cc
  11448. * src/HttpResponseCommand.cc
  11449. * src/RealtimeCommand.cc
  11450. * src/RequestGroup.cc
  11451. * src/RequestGroupMan.cc
  11452. * src/StreamFileAllocationEntry.cc
  11453. * src/TimeBasedCommand.{cc, h}
  11454. * src/TimedHaltCommand.cc
  11455. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11456. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  11457. keyword explicit and SharedHandle's default constructor initializes
  11458. its internal obj to null, old implementation initializes it using
  11459. obj's default constructor.
  11460. To assign null, write SharedHandle<T> x(...); x.reset();
  11461. TODO: test/SharedHandleTest.cc needs more tests.
  11462. * src/SharedHandle.h
  11463. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11464. Fixed type in man page.
  11465. * doc/aria2c.1.txt
  11466. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11467. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  11468. * src/SimpleLogger.{cc, h}
  11469. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11470. Implemented auto protocol detection.
  11471. Now you can do:
  11472. aria2c -Z http://host/file file1.torrent file2.metalink
  11473. (Note: -Z option is required for auto protcol detection.)
  11474. Then aria2c downloads 3 files simultaneously:
  11475. 1. http://host/file
  11476. 2. file1.torrent <-- read local torrent file
  11477. 3. file2.metalink <-- read local Metalink file.
  11478. Same thing goes with -i option. Assume your uris.txt contans:
  11479. http://host/file
  11480. file1.torrent
  11481. file2.metalink
  11482. Then you can do: aria2c -i uris.txt
  11483. (Note: -Z option is not needed if -i option is given.)
  11484. * src/main.cc
  11485. * src/ProtocolDetector.{cc, h}
  11486. * test/ProtocolDetectorTest.cc
  11487. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11488. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  11489. installed
  11490. * src/ARC4Encryptor.h
  11491. * src/ARC4Decryptor.h
  11492. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11493. Renamed argument from 'errno' to 'err', since errno is confused with
  11494. errno defined in errno.h.
  11495. * src/LibgcryptARC4Decryptor.h
  11496. * src/LibgcryptARC4Context.h
  11497. * src/LibgcryptDHKeyExchange.h
  11498. * src/LibgcryptARC4Encryptor.h
  11499. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11500. Rewritten choking algorithm.
  11501. * src/PeerChokeCommand.{cc, h}
  11502. * src/BtInterestedMessage.cc
  11503. * src/PeerSessionResource.{cc, h}
  11504. * src/DefaultPeerStorage.{cc, h}
  11505. * src/BtNotInterestedMessage.cc
  11506. * src/DefaultBtMessageDispatcher.{cc, h}
  11507. * src/BtMessageDispatcher.h
  11508. * src/Peer.{cc, h}
  11509. * src/BtLeecherStateChoke.{cc, h}
  11510. * src/BtSetup.cc
  11511. * src/BtSeederStateChoke.{cc, h}
  11512. * src/PeerStorage.h
  11513. * test/MockPeerStorage.h
  11514. * test/MockBtMessageDispatcher.h
  11515. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11516. Fixed compilation error on x84-64 platform.
  11517. * src/AuthConfig.cc: Included ostream.
  11518. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11519. Rewritten getBasename() and getDirname(), without standard library
  11520. basename(), dirname().
  11521. * src/File.cc
  11522. * test/FileTest.cc
  11523. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11524. Added Simplified Chinese translation. Also updated the following
  11525. translations: Polish, Dutch, German. Great thanks to all translators.
  11526. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11527. Suppress content-range error when 'Content-Range' response header
  11528. doesn't contains bytes-unit specifier 'bytes'
  11529. * src/HttpHeader.cc (getRange)
  11530. * test/HttpHeaderTest.cc
  11531. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11532. Fixed compilation error with g++-4.3
  11533. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11534. Added missing include files for MinGW
  11535. * test/HttpHeaderProcessorTest.cc
  11536. * test/DHTRoutingTableSerializerTest.cc
  11537. * test/DHTRoutingTableDeserializerTest.cc
  11538. * test/UriListParserTest.cc
  11539. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11540. Now download line is printed nicely with no garbage at the end of
  11541. line. I use ioctl to get the columns of terminal.
  11542. If stdout is redirected to another device, instead of carriage return,
  11543. end of line '\n' character is used. This is feature request#1909659
  11544. * src/ConsoleStatCalc.cc (calculateStat)
  11545. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11546. Included a2time.h
  11547. * src/DHTMessageDispatcher.h
  11548. * src/DHTMessageEntry.h
  11549. * src/DHTReplaceNodeTask.h
  11550. * src/DHTMessageTracker.h
  11551. * src/Util.h
  11552. * src/CookieBox.h
  11553. * src/SocketCore.h
  11554. * src/DefaultBtMessageDispatcher.h
  11555. * src/SocketCore.cc
  11556. * src/Util.cc
  11557. * src/DHTPingTask.h
  11558. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11559. Fixed high memory footprint when DHT is enabled.
  11560. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  11561. queued than it is processed and the queue is getting longer. As a
  11562. consequence, momory usage is increased.
  11563. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  11564. replacement cache in DHTBucket which is described in Kademlia paper.
  11565. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  11566. DHTReplaceNodeTask.
  11567. * src/DHTBucket.{h, cc}
  11568. (cacheNode): New function.
  11569. (getCachedNodes): New function.
  11570. (dropNode): Push back cached node to _nodes.
  11571. * test/DHTBucketTest.cc
  11572. (testCacheNode): New test
  11573. (testDropNode): New test
  11574. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11575. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  11576. the unused 4KB memory when ssl is not used.
  11577. * src/SocketCore.cc
  11578. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11579. Added summary log for peer announce storage.
  11580. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  11581. Removed cast
  11582. * src/DefaultPeerStorage.cc (addPeer)
  11583. Log exception message
  11584. * src/DHTMessageTracker.cc (handleTimeout)
  11585. Fixed casting
  11586. * test/HttpRequestTest.cc
  11587. * test/MetalinkProcessorTest.cc
  11588. * test/PieceTest.cc
  11589. * test/MetalinkEntryTest.cc
  11590. * test/SequenceTest.cc
  11591. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11592. * src/ParameterizedStringParser.cc (createLoop):
  11593. Removed unused variable sstep.
  11594. * src/AlphaNumberDecorator.h (decode): Rewritten.
  11595. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11596. * src/Util.{h, cc}
  11597. (parseUInt): New function.
  11598. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  11599. The actual range is uint32_t.
  11600. * test/UtilTest.cc
  11601. * src/ParameterizedStringParser.cc:
  11602. Use Util::parseUInt() for loop variables.
  11603. * test/ParameterizedStringParserTest.cc
  11604. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  11605. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11606. Rewritten the functions for binding port.
  11607. * src/DHTConnectionImpl.{h, cc}
  11608. * src/PeerListenCommand.{h, cc}
  11609. * src/DHTSetup.cc
  11610. * src/BtSetup.cc
  11611. * test/DHTConnectionImplTest.cc
  11612. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11613. type cleanup for allmost all remaining files.
  11614. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11615. Type clarification
  11616. * src/PeerSessionResource.{h, cc}
  11617. * src/DefaultPieceStorage.{h, cc}
  11618. * src/Peer.{h, cc}
  11619. * test/PeerSessionResourceTest.cc
  11620. Use div function
  11621. * src/BtPieceMessage.cc (erasePieceOnDisk)
  11622. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11623. Type clarification
  11624. * src/DefaultPeerStorage.{h, cc}
  11625. * test/DefaultPeerStorageTest.cc
  11626. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11627. Type clarification: size_t for length or size, uint64_t for file
  11628. length, off_t for file offset.
  11629. * src/DefaultBtProgressInfoFile.cc
  11630. * src/DefaultBtContext.{h, cc}
  11631. * src/DefaultBtInteractive.cc
  11632. * src/DownloadCommand.{h, cc}
  11633. * src/IteratableChunkChecksumValidator.{h, cc}
  11634. * src/SegmentMan.{h, cc}
  11635. * src/SingleFileDownloadContext.{h, cc}
  11636. * src/IteratableChecksumValidator.{h, cc}
  11637. * src/BtContext.h
  11638. * src/IteratableValidator.h
  11639. * src/DownloadContext.h
  11640. * test/SingleFileDownloadContextTest.cc
  11641. * test/DefaultBtContextTest.cc
  11642. * test/MockBtContext.h
  11643. * test/Metalink2RequestGroupTest.cc
  11644. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11645. Type clarification: size_t for length or size, uint64_t for file
  11646. length, off_t for file offset.
  11647. * src/PiecedSegment.cc
  11648. * src/GrowSegment.h
  11649. * src/DefaultBtRequestFactory.h
  11650. * src/DefaultBtProgressInfoFile.cc
  11651. * src/UnknownLengthPieceStorage.h
  11652. * src/DefaultPieceStorage.cc
  11653. * src/UnknownLengthPieceStorage.cc
  11654. * src/DefaultBtInteractive.cc
  11655. * src/GrowSegment.cc
  11656. * src/BitfieldMan.h
  11657. * src/DownloadCommand.cc
  11658. * src/BtRequestFactory.h
  11659. * src/PiecedSegment.h
  11660. * src/DefaultPieceStorage.h
  11661. * src/Piece.cc
  11662. * src/DefaultBtRequestFactory.cc
  11663. * src/PieceStorage.h
  11664. * src/Segment.h
  11665. * src/Piece.h
  11666. * src/BitfieldMan.cc
  11667. * src/Util.cc
  11668. * test/DefaultBtProgressInfoFileTest.cc
  11669. * test/DefaultPieceStorageTest.cc
  11670. * test/MockPieceStorage.h
  11671. * test/BtRequestMessageTest.cc
  11672. * test/DefaultBtMessageDispatcherTest.cc
  11673. * test/BitfieldManTest.cc
  11674. * test/GrowSegmentTest.cc
  11675. * test/PieceTest.cc
  11676. * test/SegmentTest.cc
  11677. * test/SegmentManTest.cc
  11678. * test/DefaultBtRequestFactoryTest.cc
  11679. * test/MockBtRequestFactory.h
  11680. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11681. Fixed compilation error with --disable-nls
  11682. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  11683. in gettext.h causes the problem.
  11684. * src/common.h
  11685. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11686. Removed subPiece related functions.
  11687. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  11688. * src/DefaultPieceStorage.{h, cc}
  11689. * test/PieceTest.cc
  11690. * test/DefaultPieceStorageTest.cc
  11691. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11692. Use unsigned char for data store.
  11693. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11694. Bump up version number to 0.13.0+1
  11695. * configure.ac
  11696. * Release 0.13.0+1
  11697. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11698. Changed inactive connection timeout to 120.
  11699. To accept more mulually interested peers, disconnect peer when there
  11700. is no interest between us after certain time passed.
  11701. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  11702. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11703. Fixed the bug that aria2 only uses first dns server in resolv.conf
  11704. when compiled with async DNS support.
  11705. * src/DownloadEngine.cc
  11706. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  11707. value '10' will be a little bit short when some DNS servers are
  11708. offline and several DNS servers are tried. It should be configured
  11709. by command-line option.
  11710. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11711. Merged Ross's mingw patch.
  11712. * src/DHTRoutingTableDeserializer.cc
  11713. * src/DHTRoutingTableSerializer.cc
  11714. * src/Platform.{h, cc}
  11715. * src/timegm.h
  11716. * src/gettimeofday.h
  11717. * src/getaddrinfo.h
  11718. * src/SocketCore.h
  11719. * src/common.h
  11720. * src/inet_aton.h
  11721. * src/DownloadEngine.h
  11722. * src/gai_strerror.h
  11723. * src/a2netcompat.h
  11724. * configure.ac
  11725. * configure
  11726. * aclocal.m4
  11727. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11728. Included missing iostream.
  11729. * test/AllTest.cc
  11730. * test/BtDependencyTest.cc
  11731. * test/BtExtendedMessageTest.cc
  11732. * test/DHTConnectionImplTest.cc
  11733. * test/DHTMessageFactoryImplTest.cc
  11734. * test/DHTMessageTrackerEntryTest.cc
  11735. * test/DHTNodeTest.cc
  11736. * test/DHTRoutingTableSerializerTest.cc
  11737. * test/DefaultBtAnnounceTest.cc
  11738. * test/DefaultBtContextTest.cc
  11739. * test/DefaultBtMessageFactoryTest.cc
  11740. * test/DefaultExtensionMessageFactoryTest.cc
  11741. * test/HandshakeExtensionMessageTest.cc
  11742. * test/HttpResponseTest.cc
  11743. * test/MetalinkProcessorTest.cc
  11744. * test/MultiFileAllocationIteratorTest.cc
  11745. * test/SocketCoreTest.cc
  11746. * test/UTPexExtensionMessageTest.cc
  11747. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11748. Reorganized includes.
  11749. * src/NameResolver.cc
  11750. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11751. Fixed compilation error without ares/c-ares
  11752. * src/NameResolver.h:
  11753. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11754. Added a test for large file.
  11755. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11756. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11757. Fixed the bug that file size is ignored if size > INT32_MAX
  11758. * src/SizeMetalinkParserState.cc (endElement):
  11759. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11760. Bump up version number to 0.13.0
  11761. * configure.ac
  11762. * Release 0.13.0
  11763. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11764. Updated Makfefile.am to make 'make dist' work.
  11765. Now packaged filename is aria2c-VERSION.tar.bz2.
  11766. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11767. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11768. Large file support is now configured by configure script.
  11769. * configure.ac
  11770. Removed unsused source files
  11771. * src/
  11772. * test/
  11773. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11774. Peer.h and BtContext.h respectively.
  11775. * src/Peer.h
  11776. * src/BtContext.h
  11777. Updated translations.
  11778. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11779. translations. Great thanks to all translators!;)
  11780. * po/*.{po, gmo}
  11781. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11782. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11783. statically declared sha1 MessageDigestContext.
  11784. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11785. initialization of short-lived MessageDigestContext.
  11786. * src/MessageDigestHelper.{h, cc}
  11787. * src/main.cc
  11788. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11789. the initialization of MessageDigestContext every time in validating
  11790. chunk checksum.
  11791. * src/DownloadCommand.{h, cc}
  11792. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11793. Add a file descriptor which connected to fast peer(latency<1500) to
  11794. select(). This change reduced CPU load.
  11795. * src/PeerInteractionCommand.cc
  11796. * src/DefaultBtInteractive.{h, cc}
  11797. * src/BtInteractive.h
  11798. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11799. Fixed the previous insufficient fix for possible busy loop.
  11800. * src/MSEHandshake.cc (identifyHandshakeType)
  11801. Removed unused functions.
  11802. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11803. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11804. Fixed possible busy loop if first 20 bytes are not received for a few
  11805. minutes.
  11806. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11807. * src/ReceiverMSEHandshakeCommand.cc
  11808. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11809. Fixed compilation error
  11810. * src/ExpatMetalinkProcessor.cc
  11811. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11812. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11813. * src/DHTBucket.cc
  11814. Removed unnecessary cast.
  11815. * src/HandshakeExtensionMessage.cc
  11816. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11817. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11818. is missing.
  11819. * src/OptionHandlerFactory.cc
  11820. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11821. Fixed the bug that HAVE message is not sent for a piece they are
  11822. downloaded fom http/ftp server before any BitTorrent handshake is done
  11823. with peers.
  11824. * src/DefaultBtInteractive.cc
  11825. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11826. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11827. * src/Makefile.am
  11828. * src/Makefile.in
  11829. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11830. Updated README. Added html version of README and man page.
  11831. * README
  11832. * README.html
  11833. * readme2html: Shell script to generate README.html from README using
  11834. asciidoc.
  11835. * doc/aria2c.1.html
  11836. * doc/makeman: Added the line to generate aria2c.1.html
  11837. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11838. Fixed offset calculation.
  11839. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11840. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11841. Rewritten itos and uitos using template. llitos and ullitos are
  11842. replaced with itos and uitos respectively.
  11843. * src/Util.{h, cc}
  11844. * test/UtilTest.cc
  11845. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11846. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11847. of the number of bytes required for storing public key and shared
  11848. secret.
  11849. * src/LibgcryptDHKeyExchange.h
  11850. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11851. * src/MSEHandshake.cc
  11852. * test/DHKeyExchangeTest.cc
  11853. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11854. Removed since they are not used.
  11855. * src/Xml2MetalinkProcessor.{h, cc}
  11856. * src/Socket.cc
  11857. * src/SegmentSplitter.{h, cc}
  11858. * test/Xml2MetalinkProcessorTest.cc
  11859. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11860. Fixed the bug that prevents aria2 from stopping other than by pressing
  11861. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11862. option. aria2 doesn't stop even after --seed-time is satisfied and
  11863. continues to output blank lines in the console.
  11864. * src/ReceiverMSEHandshakeCommand.cc
  11865. * src/PeerReceiveHandshakeCommand.cc
  11866. * src/PeerListenCommand.cc
  11867. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11868. Bump up version number to 0.13.0rc
  11869. * configure.ac
  11870. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11871. Updated man page and some usage text.
  11872. * doc/aria2c.1.txt
  11873. * src/usage_text.h
  11874. * po/*.{po, gmo}
  11875. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11876. Updated translations. Added Finnish and Hebrew translations.
  11877. Great thanks to all translators!
  11878. * po/*.{po, gmo}
  11879. * po/LINGUAS
  11880. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11881. Log more detailed information about each message.
  11882. * src/DHTQueryMessage.{h, cc}
  11883. * src/DHTGetPeersMessage.{h, cc}
  11884. * src/DHTFindNodeReplyMessage.{h, cc}
  11885. * src/DHTGetPeersReplyMessage.{h, cc}
  11886. * src/DHTAnnouncePeerMessage.{h, cc}
  11887. * src/DHTResponseMessage.{h, cc}
  11888. * src/DHTFindNodeMessage.{h, cc}
  11889. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11890. Use constants defined in prefs.h
  11891. * src/option_processing.cc
  11892. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11893. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11894. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11895. Make room for future enchancements for IPv6 addresses.
  11896. Bump up version number of dht.dat file format to 2.
  11897. Not compatible with previous version.
  11898. * src/DHTRoutingTableSerializer.cc
  11899. * src/DHTRoutingTableDeserializer.cc
  11900. * test/DHTRoutingTableSerializerTest.cc
  11901. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11902. Added handling for the return values from
  11903. PeerMessageUtil::createcompact().
  11904. * src/DefaultBtContext.cc (computeFastSet):
  11905. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11906. Fixed abort when peer's ip address is IPv4-mapped address.
  11907. * src/DefaultBtContext.cc (computeFastSet)
  11908. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11909. cannot handle IPv4-mapped addresses.
  11910. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11911. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11912. Proper return value handling for OpenSSL functions.
  11913. * src/LibsslDHKeyExchange.h
  11914. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11915. Random bytes generation using libgcrypt and OpenSSL.
  11916. * src/DHTUtil.{h, cc}
  11917. * test/DHTUtilTest.cc
  11918. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11919. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11920. received.
  11921. * src/DHTMessageReceiver.cc (receiveMessage)
  11922. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11923. Fixed the bug that a return code is always 0. BUG#1897704
  11924. If error occurred during the download or there exist unfinished
  11925. downloads, aria2 returns with code 1.
  11926. * src/RequestGroupMan.{h, cc}
  11927. * src/MultiUrlRequestInfo.{h, cc}
  11928. * src/main.cc
  11929. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11930. IPv6 support for SocketCore class.
  11931. TODO: In SocketCore::establishConnection(), this is insufficient to
  11932. determin the failure of connect() here because the socket is
  11933. non-blocking state. The next addresses should be tried after select().
  11934. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11935. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11936. instead which address family independent.
  11937. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11938. information in a compact peer format which is for IPv4 only.
  11939. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11940. this is a spec of BitTorrent protocol.
  11941. * src/SocketCore.{h, cc}
  11942. * src/PeerMessageUtil.cc
  11943. * test/SocketCoreTest.cc
  11944. * test/PeerMessageUtilTest.cc
  11945. * test/DHTConnectionImplTest.cc
  11946. Handle IPv4-mapped addresses.
  11947. * src/DHTNode.cc: Now identity is determined by node id.
  11948. * src/DHTMessageTrackerEntry.cc
  11949. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11950. should handle it.
  11951. * src/DHTRoutingTableDeserializer.cc
  11952. * src/DHTMessageFactoryImpl.cc
  11953. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11954. Change the unit of --stop option from a minute to a second.
  11955. * src/usage_text.h
  11956. * src/DownloadEngineFactory.cc
  11957. * src/OptionHandlerFactory.cc
  11958. * src/message.h
  11959. * src/TimedHaltCommand.cc
  11960. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11961. Make listening socket non-block mode.
  11962. * src/FtpConnection.cc
  11963. * src/FtpNegotiationCommand.{h, cc}
  11964. * src/PeerListenCommand.cc
  11965. Fixed the bug that cause slow ftp negotiation.
  11966. * src/FtpNegotiationCommand.{h, cc}
  11967. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11968. Added basic tag to --enable-dht, --dht-listen-port option.
  11969. * src/HelpItemFactory.cc (createHelpItems)
  11970. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11971. Updated text.
  11972. * src/usage_text.h
  11973. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11974. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11975. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11976. Determin _threadtholdSpeed in each constructor for
  11977. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11978. * src/ActivePeerConnectionCommand.{h, cc}
  11979. * src/PeerReceiveHandshakeCommand.{h, cc}
  11980. * src/BtSetup.cc
  11981. * src/BtConstants.h
  11982. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11983. Added --bt-min-crypto-level and --bt-require-crypto options.
  11984. * src/OptionHandlerFactory.cc
  11985. * src/MSEHandshake.cc
  11986. * src/HelpItemFactory.cc
  11987. * src/option_processing.cc
  11988. * src/ReceiverMSEHandshakeCommand.cc
  11989. * src/prefs.h
  11990. * src/DefaultBtAnnounce.cc
  11991. * src/InitiatorMSEHandshakeCommand.cc
  11992. * src/usage_text.h
  11993. * test/MSEHandshakeTest.cc
  11994. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11995. Bump version number to 0.13.0b
  11996. * configure.ac
  11997. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11998. Updated doc.
  11999. * src/MessageDigestHelper.h:
  12000. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12001. Use raw message digest as a token instead of its hexadecimal
  12002. representation.
  12003. * src/DHTTokenTracker.cc (generateToken)
  12004. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12005. Added Message Stream Encryption(MSE) support.
  12006. Currently, aria2 accepts incoming connections with Obfuscation Header
  12007. and legacy BitTorrent Header and establishes connections with
  12008. Obfuscation Header first and if failed then retry with legacy
  12009. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  12010. choose ARC4. The new option to change the default behavior is planned.
  12011. For tracker extension, "supportcrypto=1" is added statically.
  12012. * src/PeerInitiateConnectionCommand.{h, cc}
  12013. * src/PeerConnection.{h, cc}
  12014. * src/HandleRegistry.h
  12015. * src/SocketCore.h
  12016. * src/PeerReceiveHandshakeCommand.{h, cc}
  12017. * src/BtRegistry.{h, cc}
  12018. * src/PeerListenCommand.cc
  12019. * src/InitiatorMSEHandshakeCommand.{h, cc}
  12020. * src/ReceiverMSEHandshakeCommand.{h, cc}
  12021. * src/MSEHandshake.{h, cc}
  12022. * src/ARC4Encryptor.h
  12023. * src/ARC4Decryptor.h
  12024. * src/LibgcryptARC4Encryptor.h
  12025. * src/LibgcryptARC4Decryptor.h
  12026. * src/LibgcryptARC4Context.h
  12027. * src/LibsslARC4Encryptor.h
  12028. * src/LibsslARC4Decryptor.h
  12029. * src/LibsslARC4Context.h
  12030. * src/DHKeyExchange.h
  12031. * src/LibgcryptDHKeyExchange.h
  12032. * src/LibsslDHKeyExchange.h
  12033. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  12034. * test/DefaultBtAnnounceTest.cc
  12035. * test/ARC4Test.cc
  12036. * test/DHKeyExchangeTest.cc
  12037. Removed prepareForRetry() because it is not used.
  12038. * src/PeerAbstractCommand.{h, cc}
  12039. * src/PeerInteractionCommand.{h, cc}
  12040. * src/PeerInitiateConnectionCommand.{h, cc}
  12041. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12042. Added the ability to load nodes from torrent file. These nodes are
  12043. added to the routing table when downloading that torrent.
  12044. * src/BtContext.h
  12045. * src/DefaultBtContext.{h, cc}
  12046. * src/DHTSetup.cc
  12047. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  12048. hostname and port pair, and resolves all of them.
  12049. * src/NameResolver.{h, cc}: Added reset().
  12050. * src/RequestGroup.cc
  12051. * test/DefaultBtContextTest.cc
  12052. * test/MockBtContext.h
  12053. Removed assert() from DefaultBtContext and throw exception instead.
  12054. * src/DefaultBtContext.cc
  12055. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12056. Fixed segmentation fault bug when exiting if dht is disabled.
  12057. * src/RequestGroup.cc
  12058. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12059. Fixed typo in log message and define the message in message.h
  12060. * src/TimedHaltCommand.cc
  12061. * src/message.h
  12062. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12063. Included RecoverableException.h to fix compilation error.
  12064. * test/DHTMessageFactoryImplTest.cc
  12065. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12066. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  12067. * test/DHTPingMessageTest.cc
  12068. * test/DHTGetPeersMessageTest.cc
  12069. * test/DHTFindNodeMessageTest.cc
  12070. * test/DHTAnnouncePeerMessageTest.cc
  12071. * test/MockDHTMessage.h
  12072. * test/MockDHTMessageFactory.h
  12073. * test/MockDHTMessageDispatcher.h: New class.
  12074. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12075. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  12076. virtual.
  12077. * src/DHTMessageDispatcher.h
  12078. * src/DHTMessageDispatcherImpl.{h, cc}
  12079. * src/DHTSetup.cc
  12080. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12081. Adding handling of DHT error message. Just log error message and
  12082. throw exception.
  12083. * src/DHTMessageFactoryImpl.cc
  12084. * test/DHTMessageFactoryImplTest.cc
  12085. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12086. Added handling of dynamic cast failure.
  12087. * src/DHTNodeLookupTask.cc
  12088. * src/DHTPeerLookupTask.cc
  12089. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12090. Added the ability to stop aria2 itself when given time has passed
  12091. from start. Use --stop option to specify time in minutes.
  12092. When 0 is given, this feature is disabled.
  12093. * src/OptionHandlerFactory.cc
  12094. * src/TimeBasedCommand.h: Make _interval protected scope.
  12095. * src/HelpItemFactory.cc
  12096. * src/option_processing.cc
  12097. * src/prefs.h
  12098. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  12099. before calling RequestGroupMan::fillRequestGroupFromReserver().
  12100. Without this modification, the result list shows "ERR" when aria2 is
  12101. stopped by --stop option. It should be "INPR".
  12102. * src/DownloadEngine.{h, cc}
  12103. * src/DownloadEngineFactory.cc
  12104. * src/usage_text.h
  12105. * src/TimedHaltCommand.{h, cc}: New class.
  12106. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12107. Bootstrap through node added by port message.
  12108. Currently bootstrap is executed if the number of buckets in routing
  12109. table is 1.
  12110. * src/BtPortMessage.{h, cc}
  12111. * src/DefaultBtMessageFactory.{h, cc}
  12112. * src/PeerInteractionCommand.cc
  12113. * test/BtPortMessageTest.cc
  12114. * test/MockDHTTask.h
  12115. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12116. Extract the Peer class's member variables, which are only needed after
  12117. PeerInteractionCommand, into PeerSessionResource class.
  12118. This class is instantiated in PeerInteractionCommand class's ctor and
  12119. released in its dtor.
  12120. This will make Peer class lightweight and uses less memory for peers
  12121. which are not connected and wait in the queue.
  12122. * src/PeerChokeCommand.cc
  12123. * src/PeerSessionResource.{h, cc}
  12124. * src/PeerInteractionCommand.cc
  12125. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  12126. * src/DefaultBtInteractive.cc
  12127. * src/BtPieceMessage.cc
  12128. * src/BtInterestedMessage.cc
  12129. * src/BtUnchokeMessage.cc
  12130. * src/DefaultPeerStorage.{h, cc}
  12131. * src/PeerInitiateConnectionCommand.cc
  12132. * src/ActivePeerConnectionCommand.cc
  12133. * src/BtNotInterestedMessage.cc
  12134. * src/DefaultBtMessageDispatcher.cc
  12135. * src/BtChokeMessage.cc
  12136. * src/BtRequestMessage.cc
  12137. * src/Peer.{h, cc}
  12138. * src/BtRegistry.h
  12139. * src/TrackerWatcherCommand.cc
  12140. * src/PeerReceiveHandshakeCommand.cc
  12141. * test/BtExtendedMessageTest.cc
  12142. * test/BtAllowedFastMessageTest.cc
  12143. * test/BtCancelMessageTest.cc
  12144. * test/DefaultPieceStorageTest.cc
  12145. * test/BtBitfieldMessageTest.cc
  12146. * test/BtHaveMessageTest.cc
  12147. * test/BtNotInterestedMessageTest.cc
  12148. * test/BtRequestMessageTest.cc
  12149. * test/PeerSessionResourceTest.cc
  12150. * test/DefaultBtMessageDispatcherTest.cc
  12151. * test/PeerTest.cc
  12152. * test/BtInterestedMessageTest.cc
  12153. * test/BtRejectMessageTest.cc
  12154. * test/BtChokeMessageTest.cc
  12155. * test/DefaultPeerStorageTest.cc
  12156. * test/BtHaveNoneMessageTest.cc
  12157. * test/BtHaveAllMessageTest.cc
  12158. * test/DefaultExtensionMessageFactoryTest.cc
  12159. * test/BtUnchokeMessageTest.cc
  12160. * test/DefaultBtMessageFactoryTest.cc
  12161. * test/HandshakeExtensionMessageTest.cc
  12162. * test/UTPexExtensionMessageTest.cc
  12163. * test/DefaultBtRequestFactoryTest.cc
  12164. * test/BtPieceMessageTest.cc
  12165. Removed typedef PeerStats.
  12166. * src/PeerStat.h
  12167. * src/SegmentMan.cc
  12168. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12169. Added std namespace to copy, remove_copy, back_inserter,
  12170. front_inserter.
  12171. * src/RequestGroupMan.cc
  12172. * src/DefaultPieceStorage.cc
  12173. * src/StreamFileAllocationEntry.cc
  12174. * src/BtFileAllocationEntry.cc
  12175. * src/RequestGroup.cc
  12176. * src/MetalinkEntry.cc
  12177. * src/DelegatingPeerListProcessor.cc
  12178. * src/DefaultBtRequestFactory.cc
  12179. * src/DefaultBtMessageDispatcher.cc
  12180. * src/version_usage.cc: Included <algorithm>
  12181. * src/main.cc
  12182. * src/MetalinkParserController.cc
  12183. * src/DefaultBtContext.cc
  12184. * src/DownloadEngineFactory.cc
  12185. * src/a2algo.h
  12186. Removed.
  12187. * test/StreamUriListParserTest.cc
  12188. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12189. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  12190. ActivePeerConnectionCommand when it is given and
  12191. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  12192. * src/ActivePeerConnectionCommand.{h, cc}
  12193. * src/BtSetup.cc
  12194. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12195. Only add socket to DownloadEngine's select routine when peer or
  12196. localhost is unchoked and interested. This lowers CPU usage a
  12197. little bit.
  12198. * src/PeerInteractionCommand.cc
  12199. * src/PeerAbstractCommand.{h, cc}
  12200. * src/BtInteractive.h
  12201. * src/DefaultBtInteractive.{h, cc}
  12202. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12203. Revert previous change because get_peers message is needed for
  12204. announce_peer anyway.
  12205. * src/DHTGetPeersCommand.cc
  12206. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12207. Request peers thought DHT only when download hasn't finished.
  12208. * src/DHTGetPeersCommand.cc
  12209. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12210. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  12211. * src/DHTBucketRefreshTask.{h, cc}
  12212. * src/DHTSetup.cc
  12213. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12214. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  12215. standard classes.
  12216. Included string.h where mem* function are used.
  12217. Added namespace aria2.
  12218. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12219. Create directory before saving DHT routing table.
  12220. Now ios::failure is now handled properly.
  12221. * src/DHTAutoSaveCommand.cc
  12222. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12223. Removed unnecessary cerr.
  12224. * src/DownloadEngine.cc
  12225. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12226. Catch exception inside DHTMessageReceiver::receiveMessage().
  12227. Log unknown message.
  12228. * src/DHTMessageReceiver.{h, cc}
  12229. * src/DHTMessageFactory.h
  12230. * src/DHTMessageFactoryImpl.{h, cc}
  12231. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  12232. * src/DHTInteractionCommand.cc
  12233. * src/DHTUnknownMessage.{h, cc}
  12234. * test/DHTUnknownMessageTest.cc
  12235. * test/MockDHTMessageFactory.h
  12236. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12237. Commented out ip address comparison because a host can have multiple
  12238. ip addresses and it is hard to predict the hostname is resolved into
  12239. which one.
  12240. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  12241. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12242. * po/Makefile.in: Removed since this is generated by configure.
  12243. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12244. Fixed compiler warning about redefinition of SIZE_MAX.
  12245. Use common.h instead of config.h directly here.
  12246. * src/Platform.{h, cc}
  12247. The check of ENABLE_NLS is made in gettext.h, so it is not required
  12248. here.
  12249. * common.h
  12250. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  12251. Updated gettext related files.
  12252. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  12253. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  12254. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12255. Added DHT functionality, compatible with mainline.
  12256. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  12257. You may need to specify entry point to DHT network using
  12258. --dht-entry-point. DHT uses UDP port to listen incoming message.
  12259. Use --dht-listen-port to specify port number. Make sure that your
  12260. firewall configuration can pass through UDP traffic to the port.
  12261. The routing table is saved in $HOME/.aria2/dht.dat.
  12262. * src/DHT*
  12263. * src/BNode.{h, cc}
  12264. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  12265. particular torrent.
  12266. * src/Data.cc: Rewritten ctor.
  12267. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  12268. --dht-entry-point.
  12269. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  12270. * src/RequestGroup.cc: Initialize DHT functionality. When download
  12271. ends, remove BtContext from DHTPeerAnnounceStorage.
  12272. * src/BtPortMessage.{h, cc}: Rewritten.
  12273. * src/message.h
  12274. * src/OptionHandlerImpl.cc
  12275. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  12276. --dht-entry-point.
  12277. * src/Dictionary.{h, cc} (remove): New function.
  12278. * src/prefs.h
  12279. * src/DefaultBtMessageFactory.h
  12280. * src/BtHandshakeMessage.cc
  12281. * src/ActivePeerConnectionCommand.cc
  12282. * src/SocketCore.{h, cc}: Added datagram socket support.
  12283. * src/DefaultBtMessageFactory.cc
  12284. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  12285. Create DHT commands.
  12286. * src/BtMessageFactory.h
  12287. * src/PeerMessageUtil.{h, cc}
  12288. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12289. Fixed the bug that log file is not written when configuration file doesn't exist.
  12290. This is caused by using Logger class before LogFactory is not configured.
  12291. BUG #1875079
  12292. * src/option_processing.cc
  12293. Warning message "configuration doesn't exist" is only printed when --conf is
  12294. given.
  12295. * src/option_processing.cc
  12296. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12297. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  12298. ShaVisitor is now deprecated and slated to be removed.
  12299. * src/DefaultBtContext.cc
  12300. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12301. Externalize message to message.h
  12302. * src/Platform.cc
  12303. * src/message.h
  12304. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12305. Set default domain and default path to cookie.
  12306. * src/HttpResponse.cc
  12307. * src/CookieBox.{h, cc}
  12308. * src/CookieParser.{h, cc}
  12309. * test/CookieParserTest.cc
  12310. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12311. Added --no-conf and --conf-path command-line option.
  12312. --no-conf option disables loading aria2.conf file.
  12313. --conf-path option changes the configuration file path. The default
  12314. file path is $HOME/.aria2/aria2.conf
  12315. Added a warning message when the configuration file is not found.
  12316. * src/HelpItemFactory.cc
  12317. * src/option_processing.cc
  12318. * src/prefs.h
  12319. * src/usage_text.h
  12320. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12321. Added the message to inform users that other help categories are
  12322. available in -h option.
  12323. * src/version_usage.cc
  12324. * src/TagContainer.{h, cc}
  12325. * test/TagContainerTest.cc
  12326. * src/TaggedItem.{h, cc}
  12327. * test/TaggedItemTest.cc
  12328. * src/HelpItem.h
  12329. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12330. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  12331. from PiecedSegment's ctor.
  12332. Previously Piece::getAllMissingBlockIndexes() is called from
  12333. PiecedSegment() but it is rather expensive since only first element is
  12334. used.
  12335. * src/PiecedSegment.cc
  12336. * src/Piece.{h, cc}
  12337. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12338. Rewritten get*Missing*Index functions. Now no need to allocate memory
  12339. each time these functions are called.
  12340. * src/BitfieldMan.{h, cc}
  12341. * test/BitfieldManTest.cc
  12342. * src/array_fun.h
  12343. * test/array_funTest.cc
  12344. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  12345. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  12346. filtered. Removed unnecessary cast to int32_t.
  12347. * src/BitfieldMan.{h, cc}
  12348. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12349. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  12350. payload length(4bytes) are received. This happens because lenbufLength
  12351. is not updated in this particular case and successive call of
  12352. receiveMessage() overwrites payload length with bytes recieved which
  12353. are payload body.
  12354. * src/PeerConnection.{h, cc}
  12355. * src/message.h
  12356. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12357. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  12358. peer if there are peers that have same ipaddr and port.
  12359. I've experiened segmentation fault and "pure virtual function was
  12360. called" error.
  12361. * src/Peer.h
  12362. * test/PeerTest.cc
  12363. * src/DefaultPeerStorage.cc
  12364. * test/DefaultPeerStorageTest.cc
  12365. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12366. Removed a call to isPowerOf() because it is no longer necessary here
  12367. and a request block is not always power of 2.
  12368. BUG#1866924
  12369. * src/PeerMessageUtil.cc (checkLength)
  12370. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12371. Fixed the bug that always first found Segment is removed from
  12372. usedSegmentEntries. Removed unused functions.
  12373. * src/SegmentMan.{h, cc}
  12374. * test/SegmentManTest.cc
  12375. Fixed the bug that ServerHost is not removed.
  12376. * src/RequestGroup.cc
  12377. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12378. Fixed the bug that SegmentMan::completeSegment() is not called
  12379. even if Segment is complete when --lowest-speed-limit is enabled.
  12380. BUG#1864525
  12381. * src/DownloadCommand.{h, cc}
  12382. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12383. Fixed: hash algorithm 'sha1' is always used.
  12384. * src/DownloadCommand.cc (validatePieceHash)
  12385. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12386. Added --enable-peer-exchange command-line option.
  12387. * src/OptionHandlerFactory.cc
  12388. * src/HelpItemFactory.cc
  12389. * src/option_processing.cc
  12390. * src/usage_text.h
  12391. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12392. Move extension from BtRuntime to ExtensionMessageFactory, because
  12393. extension can be specified per peer, not per torrent.
  12394. * src/DefaultBtInteractive.cc
  12395. * src/BtRuntime.h
  12396. * src/ExtendedMessagingAware.h
  12397. * src/ExtensionMessageFactory.h
  12398. * src/DefaultExtensionMessageFactory.cc
  12399. * test/DefaultExtensionMessageFactoryTest.cc
  12400. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12401. Added categorized option help. Specify category using --help option.
  12402. Also added the ability to search options in forward match.
  12403. * src/HelpItem.{h, cc}
  12404. * test/HelpItemTest.cc
  12405. * src/HelpItemFactory.{h, cc}
  12406. * src/TagContainer.{h, cc}
  12407. * test/TagContainerTest.cc
  12408. * src/option_processing.cc
  12409. * src/prefs.h
  12410. * src/TaggedItem.{h, cc}
  12411. * test/TaggedItemTest.cc
  12412. * src/version_usage.cc
  12413. * src/help_tags.h
  12414. * src/usage_text.h
  12415. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12416. Fixed segmentation fault when bad torrent metainfo is parsed.
  12417. Added dynamic_cast properly to detect the misconfiguration of metainfo
  12418. and then throw exception or skip it.
  12419. * src/DefaultBtContext.{h, cc}
  12420. * test/DefaultBtContextTest.cc
  12421. * src/AnnounceList.cc
  12422. * src/CompactPeerListProcessor.cc
  12423. * src/message.h
  12424. * src/DefaultBtAnnounce.{h, cc}
  12425. * test/DefaultBtAnnounceTest.cc
  12426. * src/BencodeVisitor.cc
  12427. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12428. Added missing "B"(=Byte). So now the message looks like this:
  12429. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  12430. * src/message.h (MSG_SHARE_RATIO_REPORT)
  12431. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12432. Show the seed ratio after torrent downloads.
  12433. For example, after torrent download completed and --seed-time and
  12434. --seed-ratio conditions are fulfilled, following message is printed
  12435. right after "Download complete: .....":
  12436. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  12437. * src/RequestGroupMan.cc
  12438. * src/RequestGroup.{h, cc}
  12439. * src/message.h
  12440. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12441. Remove a defunct control file. A defunct control file means that while
  12442. it exists, but the corresponding download file is missing.
  12443. After its removal, a download restarts from the beginning.
  12444. * src/RequestGroup.cc
  12445. * src/message.h
  12446. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12447. Allocate bitfield in Peer when it is really used. More specifically,
  12448. bitfield in Peer is allocated after the connection is established and
  12449. deallocated when the connection is dropped.
  12450. Since 2 parameters(piece length and total length) was removed from the
  12451. constructor of Peer class, many test classes were modified accordingly.
  12452. See svn log for more detailed information.
  12453. * src/PeerInteractionCommand.cc
  12454. * src/CompactPeerListProcessor.cc
  12455. * src/Peer.cc
  12456. * src/DefaultPeerListProcessor.cc
  12457. * src/PeerListenCommand.cc
  12458. * src/PeerReceiveHandshakeCommand.cc
  12459. Fixed memory leak
  12460. * src/Piece.cc
  12461. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12462. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  12463. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  12464. command-line options.
  12465. * src/option_processing.cc
  12466. * src/ActivePeerConnectionCommand.cc
  12467. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12468. Send have message to peer if it already has the piece.
  12469. * src/BtHaveMessage.{h, cc}
  12470. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12471. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  12472. port.
  12473. * src/DefaultPeerStorage.{h, cc}
  12474. * test/DefaultPeerStorageTest.cc
  12475. * src/HandshakeExtensionMessage.cc
  12476. * test/HandshakeExtensionMessageTest.cc
  12477. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  12478. * src/PeerStorage.h
  12479. * test/MockPeerStorage.h
  12480. * src/PeerListenCommand.cc
  12481. * src/PeerReceiveHandshakeCommand.cc
  12482. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12483. Added --metalink-enable-unique-protocol option.
  12484. * src/Metalink2RequestGroup.cc
  12485. * src/option_processing.cc
  12486. * src/prefs.h
  12487. * src/version_usage.cc
  12488. * doc/aria2c.1.txt
  12489. * doc/aria2c.1
  12490. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12491. Allow a peer in incomingPeer to be added peers.
  12492. * src/DefaultPeerStorage.cc
  12493. * test/DefaultPeerStorageTest.cc
  12494. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12495. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  12496. I could reproduce this bug in following procedure:
  12497. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  12498. 2. Restart aria2.
  12499. 3. You see the download stopped around 99%.
  12500. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12501. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  12502. If timeout is reached, then _nextCommand is unused and it may contains
  12503. segments and they won't be canceled. Actually, timeout is not needed
  12504. here because if the server dropped connection, then retry is made.
  12505. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12506. Added uTorrent compatible Peer Exchange.
  12507. * src/BencodeVisitor.{h, cc}
  12508. * test/BencodeVisitorTest.cc
  12509. * src/BtConstants.h
  12510. * src/BtContext.h: Added 'private' flag.
  12511. * src/BtExtendedMessage.{h, cc}
  12512. * test/BtExtendedMessageTest.cc
  12513. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  12514. reserved field.
  12515. * test/BtHandshakeMessageTest.cc
  12516. * src/BtMessageFactory.h
  12517. * src/BtRegistry.h
  12518. * src/BtRuntime.h: This class holds default extension message IDs for
  12519. aria2. By default, aria2 uses ID 8 for ut_pex.
  12520. * src/DefaultBtContext.cc
  12521. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  12522. When it is true, aria2 enables ut_pex. This value is set by
  12523. PeerInteractionCommand.
  12524. * src/DefaultBtMessageFactory.{h, cc}
  12525. * test/DefaultBtMessageFactoryTest.cc
  12526. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  12527. handling to DefaultBtInteractive class.
  12528. * src/DefaultExtensionMessageFactory.{h, cc}
  12529. * test/DefaultExtensionMessageFactoryTest.cc
  12530. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  12531. the container(peers and incomingPeers. The equality is determined by
  12532. Peer::id).
  12533. * test/DefaultPeerStorageTest.cc
  12534. * src/ExtensionMessage.h
  12535. * test/MockExtensionMessage.h
  12536. * src/ExtensionMessageFactory.h
  12537. * test/MockExtensionMessageFactory.h
  12538. * src/HandshakeExtensionMessage.{h, cc}
  12539. * test/HandshakeExtensionMessageTest.cc
  12540. * src/MetaEntry.h
  12541. * src/Peer.{h, cc}
  12542. * src/PeerInteractionCommand.cc
  12543. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  12544. addIncomingPeer.
  12545. * src/PeerMessageUtil.{h, cc}
  12546. * src/PeerObject.h
  12547. * src/UTPexExtensionMessage.{h, cc}
  12548. * test/UTPexExtensionMessageTest.cc
  12549. * src/message.h
  12550. * src/prefs.h
  12551. Fixed the bug that returns incomplete data when it contains null
  12552. character. A convenient constructor was also added.
  12553. * src/Data.{h, cc}
  12554. Rewritten.
  12555. * src/CompactPeerListProcessor.cc
  12556. Fixed typos.
  12557. * src/message.h
  12558. * src/MetaFileUtil.cc
  12559. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12560. Added "Status Legend" label to the explanation text of 'stat' in
  12561. download result and moved it to the last. BUG#1848214
  12562. * src/RequestGroupMan.cc
  12563. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12564. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  12565. * src/Makefie.am
  12566. * test/Makefile.am
  12567. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12568. Fixed the bug that prevents aria2 from loading cookie file when expire
  12569. value is greater than 2^31-1. BUG#1851066
  12570. * src/CookieBoxFactory.cc
  12571. * test/CookieBoxFactoryTest.cc
  12572. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12573. Fixed possible memory leak when an exception is thrown.
  12574. * src/XML2SAXMetalinkProcessor.cc
  12575. Added Expat support. If both libxml2 and Expat are installed, then
  12576. libxml2 is used by default.
  12577. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  12578. ExpatMetalinkProcessor according to the configuration.
  12579. * src/ExpatMetalinkProcessor.{h, cc}
  12580. * src/main.cc: Removed libxml2 specific header and init/free function.
  12581. * src/MetalinkProcessorFactory.{h, cc}
  12582. * src/MetalinkHelper.cc
  12583. * src/Metalinker.h: Removed unnecessary libxml2 header.
  12584. * src/MetalinkProcessor.h
  12585. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  12586. MetalinkProcessorTest is used instead.
  12587. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  12588. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  12589. MetalinkProcessorFactory::newInstance().
  12590. * m4/libexpat.m4
  12591. * configure.ac: Added configuration options for libexpat.
  12592. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12593. Disabled -s option in metalink download.
  12594. * src/Metalink2RequestGroup.cc
  12595. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12596. If several protocols are available for a mirror in metalink file,
  12597. aria2 now use one of them. --metalink-preferred-protocol option was
  12598. added to specify the preference of protocol.
  12599. * src/AbstractCommand.cc
  12600. * src/OptionHandlerFactory.cc
  12601. * src/ServerHost.{h, cc}
  12602. * src/Metalink2RequestGroup.cc
  12603. * src/RequestGroup.{h, cc}
  12604. * test/RequestGroupTest.cc
  12605. * src/option_processing.cc
  12606. * src/prefs.h
  12607. * src/HttpResponseCommand.cc
  12608. * src/MetalinkResource.{h, cc}
  12609. * src/FtpNegotiationCommand.cc
  12610. * src/MetalinkEntry.{h, cc}
  12611. * src/MetalinkEntryTest.cc
  12612. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12613. Code cleanup and added debug log.
  12614. * src/PeerConnection.cc
  12615. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12616. Compiler error fix: applied the patch by Tiziano Mueller
  12617. * src/RequestGroup.cc
  12618. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12619. Fixed the bug: only first announce URL is tried in AnnounceTier,
  12620. in stopped and completed event.
  12621. * src/AnnounceList.{h, cc}
  12622. * test/AnnounceListTest.cc
  12623. * src/DefaultBtAnnounce.cc
  12624. * test/DefaultBtAnnounceTest.cc
  12625. Sorted URLs.
  12626. * test/Metalink2RequestGroupTest.cc
  12627. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12628. Removed unnecessary string copy. Updated doc and corrected indentation.
  12629. * src/Base64.cc
  12630. Fixed compilation warnings
  12631. * test/DataTest.cc
  12632. * test/HttpRequestTest.cc
  12633. * test/MetaFileUtilTest.cc
  12634. * test/RequestTest.cc
  12635. * Release 0.12.0
  12636. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12637. Updated translations
  12638. * po/{de,fr,ja,nl,ru}.po
  12639. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  12640. translations. Many thanks to translators.
  12641. * po/{ca,es,it,pt_BR,sv}.po
  12642. * po/LINGUAS
  12643. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12644. Added a notice about URL
  12645. * src/version_usage.cc
  12646. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  12647. Fixed the bug#1845750; CTRL+C does not stop torrent.
  12648. aria2 repeatedly sends stopped request when tracker returns error code.
  12649. * src/AnnounceList.cc
  12650. * test/AnnounceListTest.cc
  12651. * src/AnnounceTier.h
  12652. Added a message when ctrl-c is hit.
  12653. Now second ctrl-c is also handled in signal handler.
  12654. * src/RequestGroupMan.{h, cc}
  12655. * src/RequestGroup.{h, cc}
  12656. * src/MultiUrlRequestInfo.cc
  12657. * src/DownloadEngine.cc
  12658. * src/TrackerWatcherCommand.cc
  12659. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12660. Code cleanup
  12661. * src/Base64.cc (encode)
  12662. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12663. Changed Direct/IO enable/disable procesure in file allocation routine.
  12664. * src/SingleFileAllocationIterator.cc
  12665. (SingleFileAllocationIterator):
  12666. Disable directIO if offset is not multiple of 512.
  12667. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  12668. * src/MultiFileAllocationIterator.cc (allocateChunk):
  12669. Enable created SingleFileAllocationIterator's directIO.
  12670. * src/FileAllocationEntry.cc
  12671. (FileAllocationEntry): Enable directIO here.
  12672. (~FileAllocationEntry): Disable directIO here.
  12673. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12674. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  12675. * src/Peer.{h, cc}
  12676. * src/DefaultPieceStorage.cc
  12677. * test/DefaultPieceStorageTest.cc
  12678. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12679. Rewritten direct I/O support routine
  12680. * src/SingleFileAllocationIterator.cc
  12681. * src/MultiDiskAdaptor.{h, cc}
  12682. * src/ByteArrayDiskWriter.h
  12683. * src/AbstractSingleDiskAdaptor.h
  12684. * src/AbstractDiskWriter.cc
  12685. * src/DefaultPieceStorage.cc
  12686. * src/DiskWriter.h
  12687. * src/BinaryStream.h
  12688. * src/IteratableChunkChecksumValidator.cc
  12689. * src/IteratableChecksumValidator.cc
  12690. * src/CheckIntegrityEntry.cc
  12691. * src/FileAllocationEntry.cc
  12692. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12693. Fixed typo
  12694. * src/version_usage.cc
  12695. Updated doc
  12696. * doc/aria2c.1.txt
  12697. * doc/aria2c.1
  12698. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12699. Fixed compile error without message digest support.
  12700. * src/FileMetalinkParserState.cc
  12701. * src/MetalinkParserController.{h, cc}
  12702. * test/XML2SAXMetalinkProcessorTest.cc
  12703. * test/MetalinkParserControllerTest.cc
  12704. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12705. Enable direct I/O support in checksum checking.
  12706. * src/IteratableChunkChecksumValidator.{h, cc}
  12707. * test/IteratableChunkChecksumValidatorTest.cc
  12708. * src/CheckIntegrityEntry.cc
  12709. * src/PieceHashCheckIntegrityEntry.cc
  12710. * src/IteratableChecksumValidator.{h, cc}
  12711. * src/BtCheckIntegrityEntry.cc: Added doc.
  12712. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12713. Added --allow-piece-length-change option.
  12714. * src/DefaultBtProgressInfoFile.cc
  12715. * test/DefaultBtProgressInfoFileTest.cc
  12716. * src/OptionHandlerFactory.cc
  12717. * src/option_processing.cc
  12718. * src/prefs.h
  12719. * src/version_usage.cc
  12720. * doc/aria2c.1.txt
  12721. * doc/aria2c.1
  12722. Fixed: duplicated result entry appears when exception is thrown in
  12723. RequestGroup::createInitiateConnectionCommand().
  12724. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12725. Add RequestGroup to _requestGroup after RequetGroup::
  12726. createInitiateConnectionCommand() succeeds.
  12727. Externalized message
  12728. * src/XML2SAXMetalinkProcessor.cc
  12729. * src/message.h
  12730. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12731. Forced download abort when received negative response from http/ftp
  12732. server.
  12733. * src/HttpResponseCommand.cc
  12734. * src/FtpNegotiationCommand.cc
  12735. * src/HttpResponse.cc
  12736. * src/FtpConnection.cc
  12737. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12738. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12739. the predecessor, Xml2MetalinkParser class.
  12740. I tested them against 94KB metalink file with 1234 chunk checksums.
  12741. The new one parsed it in 22msec, while it took 6000msec with old one.
  12742. * src/XML2SAXMetalinkProcessor.{h, cc}
  12743. * test/XML2SAXMetalinkProcessorTest.cc
  12744. * src/MetalinkParserController.{h, cc}
  12745. * test/MetalinkParserControllerTest.cc
  12746. * src/MetalinkParserState.h: Also added 16 subclasses.
  12747. * src/main.cc
  12748. * src/Metalink2RequestGroup.cc
  12749. * src/MetalinkHelper.cc
  12750. * src/MetalinkEntry.cc
  12751. * src/ChunkChecksum.h
  12752. Rewritten Base64 class for better performance.
  12753. * src/Base64.{h, cc}
  12754. * test/Base64Test.cc
  12755. * src/HttpRequest.cc
  12756. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12757. Fixed the bug#1841757: aria2 will connect to server to only get
  12758. file size.
  12759. * src/StreamFileAllocationEntry.cc
  12760. * src/option_processing.cc
  12761. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12762. downloads.
  12763. * src/FtpNegotiationCommand.cc
  12764. Suppressed wrong message when finding PreDownloadHandler
  12765. * src/RequestGroup.cc
  12766. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12767. Updated usage
  12768. * src/version_usage.cc
  12769. Updated man page
  12770. * doc/aria2c.1.txt
  12771. * doc/aria2c.1
  12772. Updated po files
  12773. * po/aria2c.pot
  12774. * po/*.po
  12775. * po/*.gmo
  12776. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12777. Eliminated g++-4.2 warning
  12778. * src/DownloadHandlerConstants.{h, cc}
  12779. * src/Util.cc
  12780. * test/MetaFileUtilTest.cc
  12781. * test/PStringBuildVisitorTest.cc
  12782. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12783. * src/RequestGroup.cc
  12784. * src/BtCheckIntegrityEntry.cc
  12785. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12786. Fixed a2io.h
  12787. * src/a2io.h
  12788. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12789. Added direct I/O support. The current implementation uses O_DIRECT,
  12790. which is not posix standard and is tested on linux 2.6.21.
  12791. Currently only file allocation uses direct I/O.
  12792. * src/SingleFileAllocationIterator.{h, cc}
  12793. * test/SingleFileAllocationIteratorTest.cc
  12794. * src/MultiFileAllocationIterator.{h, cc}
  12795. * test/MultiFileAllocationIteratorTest.cc
  12796. * src/BinaryStream.h
  12797. * src/DiskWriter.h
  12798. * src/AbstractDiskWriter.{h, cc}
  12799. * src/ByteArrayDiskWriter.h
  12800. * src/DiskAdaptor.h
  12801. * src/AbstractSingleDiskAdaptor.{h, cc}
  12802. * src/MultiDiskAdaptor.{h, cc}
  12803. * src/FileAllocationEntry.cc
  12804. * src/Util.{h, cc}
  12805. * src/OptionHandlerFactory.cc
  12806. * src/prefs.h
  12807. * src/version_usage.cc
  12808. * src/option_processing.cc
  12809. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12810. handleException.
  12811. * src/MultiFileAllocationIterator.cc
  12812. Added EINTR handling
  12813. * src/SocketCore.cc
  12814. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12815. Updated usage
  12816. * src/version_usage.cc
  12817. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12818. Applied Ross's patch for MinGW port.
  12819. * src/DownloadEngine.h
  12820. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12821. Set Content-Type to SingleFileDownloadContext when http response is
  12822. received.
  12823. * src/HttpResponseCommand.cc
  12824. * src/HttpResponse.{h, cc}
  12825. * test/HttpResponseTest.cc
  12826. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12827. Rewritten to add content-type support.
  12828. * src/DownloadHandler.{h, cc}
  12829. * src/BtPostDownloadHandler.{h, cc}
  12830. * test/BtPostDownloadHandlerTest.cc
  12831. * src/MetalinkPostDownloadHandler.{h, cc}
  12832. * test/MetalinkPostDownloadHandlerTest.cc
  12833. * src/PostDownloadHandler.{h, cc}
  12834. * src/DownloadHandlerConstants.{h, cc}
  12835. * src/RequestGroup.cc
  12836. * src/HttpResponseCommand.cc
  12837. * src/FtpNegotiationCommand.cc
  12838. * src/SingleFileDownloadContext.{h, cc}
  12839. * src/RequestGroup.h
  12840. * src/RequestGroupCriteria.h
  12841. * src/ContentTypeRequestGroupCriteria.h
  12842. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12843. If it is give, metalink/torrent file is not written to the disk, but
  12844. just is kept in memory. Parsing is occurred on memory.
  12845. * src/MetalinkHelper.{h, cc}
  12846. * src/MetalinkProcessor.h
  12847. * src/Xml2MetalinkProcessor.{h, cc}
  12848. * test/Xml2MetalinkProcessorTest.cc
  12849. * src/DownloadHandlerFactory.{h, cc}
  12850. * test/DownloadHandlerFactoryTest.cc
  12851. * src/PreDownloadHandler.{h, cc}
  12852. * src/OptionHandlerFactory.cc
  12853. * src/DefaultBtContext.{h, cc}
  12854. * test/DefaultBtContextTest.cc
  12855. * src/version_usage.cc
  12856. * src/Metalink2RequestGroup.{h, cc}
  12857. * src/RequestGroup.{h, cc}
  12858. * src/a2functional.h
  12859. * test/a2functionalTest.cc
  12860. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12861. * src/OptionHandlerImpl.h
  12862. * src/prefs.h
  12863. * src/Util.{h, cc}
  12864. * test/UtilTest.cc
  12865. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12866. memory usage.
  12867. * src/RequestGroupMan.{h, cc}
  12868. * src/DownloadEngine.cc
  12869. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12870. WeakHandle to SharedHandle because WeakHandle could be null.
  12871. * src/RequestGroup.{h, cc}
  12872. * src/DownloadEngineFactory.cc
  12873. * src/DownloadResult.h
  12874. Set totalLength after download finished
  12875. * src/UnknownLengthPieceStorage.{h, cc}
  12876. Keep torrent file specified in metalink in memory.
  12877. * src/Metalink2RequestGroup.cc
  12878. * src/BtDependency.cc
  12879. * src/TrueRequestGroupCriteria.h
  12880. Fixed the bug: seekg is used where seekp should be used.
  12881. * src/ByteArrayDiskWriter.cc
  12882. * test/ByteArraydiskWriterTest.cc
  12883. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12884. Fixed syntax error
  12885. * test/SequenceTest.cc
  12886. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12887. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12888. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12889. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12890. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12891. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12892. Added the check to see whether ares_host_callback accepts timeouts
  12893. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12894. * src/NameResolver.{h, cc}
  12895. * m4/libcares.m4
  12896. * configure.ac: Set C++ for language choice.
  12897. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12898. Fixed: compilation fails without c-ares/ares
  12899. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12900. Generate http/ftp commands only when download is incomplete.
  12901. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12902. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12903. Corrected typo. Examples are removed since they are available in man
  12904. page.
  12905. * src/version_usage.cc
  12906. Updated man page.
  12907. * doc/aria2c.1
  12908. * doc/aria2c.1.txt
  12909. * doc/makeman: Commented out sed command.
  12910. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12911. Throw DlAbortEx when a remote file is not found.
  12912. * src/HttpResponse.cc
  12913. * src/FtpNegotiationCommand.cc
  12914. * src/message.h
  12915. Overwrite an existing file if --allow-overwrite=true is given.
  12916. * src/RequestGroup.cc
  12917. Removed unused functions
  12918. * src/AbstractCommand.h
  12919. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12920. Removed 'extern' from 'extern typedef ...' in src/*.h
  12921. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12922. Updated usage
  12923. * src/version_usage.cc
  12924. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12925. Trim announce URL
  12926. * src/DefaultBtContext.cc
  12927. * test/ShaVisitorTest.cc
  12928. Trim argument s. Give trimed s to exception constructor.
  12929. * src/Util.cc (parseInt)(parseLLInt)
  12930. * test/UtilTest.cc
  12931. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12932. Set precision back to 1.
  12933. * src/ConsoleStatCalc.cc (calculateStat)
  12934. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12935. Replaced strtol with Util::parseInt
  12936. * src/ChunkedEncoding.cc
  12937. * src/HttpConnection.cc
  12938. * src/CookieBoxFactory.cc
  12939. * src/ParameterizedStringParser.cc
  12940. * src/Util.cc
  12941. * test/UtilTest.cc
  12942. * test/OptionHandlerTest.cc
  12943. * src/Request.cc
  12944. Throw exception when empty string is given. The message for exception
  12945. changed.
  12946. * src/Util.cc (parseInt)(parseLLInt)
  12947. * src/message.h
  12948. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12949. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12950. set to 1.
  12951. * src/ConsoleStatCalc.cc (calculateStat)
  12952. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12953. Preallocate non-requested file which is adjacent forward to requested
  12954. file('requested' files means the files given in --select-file option)
  12955. if they share a same piece.
  12956. This fixes long pause in the file system which doesn't support sparse
  12957. files like FAT32 while downloading.
  12958. * src/MultiFileAllocationIterator.{h, cc}
  12959. * test/MultiFileAllocationIteratorTest.cc
  12960. * src/FileEntry.{h, cc}
  12961. Removed unused _option.
  12962. * src/MultiDiskAdaptor.h
  12963. * test/MultiDiskAdaptorTest.cc
  12964. * src/DefaultPieceStorage.cc
  12965. Set the default value of --seed-ratio to 1.0.
  12966. If 0.0 is given, then seeding continues regardless of share ratio.
  12967. * src/version_usage.cc
  12968. * src/option_processing.cc
  12969. * src/BtSetup.cc
  12970. * doc/aria2c.1.txt
  12971. * doc/aria2c.1
  12972. Fixed: Selective download is not working in BitTorrent
  12973. * src/RequestGroup.cc
  12974. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12975. * src/PieceStorage.h
  12976. * test/MockPieceStorage.h
  12977. * src/UnknownLengthPieceStorage.h
  12978. * src/DefaultPieceStorage.{h, cc}
  12979. * src/Metalink2RequestGroup.cc
  12980. * src/RequestGroup.cc
  12981. * src/Sequence.h
  12982. * test/SequenceTest.cc
  12983. * src/IntSequence.h
  12984. * src/message.h
  12985. * src/Util.{h, cc}
  12986. * test/UtilTest.cc
  12987. Added new function 'parse' to catch exception thrown by subclass's
  12988. parseArg
  12989. * src/OptionHandler.h
  12990. * src/OptionParser.cc
  12991. * src/NameMatchOptionHandler.h
  12992. * src/OptionHandlerImpl.h
  12993. * test/OptionHandlerTest.cc
  12994. Added IntegerRangeOptionHandler. Used for --listen-port and
  12995. --select-file. Now --listen-port accepts range of port.
  12996. * src/OptionHandlerFactory.cc
  12997. * src/version_usage.cc
  12998. * src/OptionHandlerImpl.h
  12999. * src/option_processing.cc
  13000. * src/BtSetup.cc
  13001. * src/PeerListenCommand.{h, cc}
  13002. * doc/aria2c.1.txt
  13003. * doc/aria2c.1
  13004. Implemented operator< for Exception class to provide easy way to print
  13005. exception stack trace.
  13006. * src/Exception.{h, cc}
  13007. * src/main.cc
  13008. * src/option_processing.cc
  13009. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13010. * src/version_usage.cc
  13011. (showVersion): Reworked.
  13012. (showUsage): Added examples.
  13013. Removed Hint for total length and file name.
  13014. * src/Metalink2RequestGroup.cc
  13015. * src/RequestGroup.{h, cc}
  13016. * src/HttpResponseCommand.cc
  13017. * src/FtpNegotiationCommand.cc
  13018. Now --follow-torrent and --follow-metalink option work properly.
  13019. * src/RequestGroup.cc
  13020. Updated man page
  13021. * doc/aria2c.1.txt
  13022. * doc/aria2c.1
  13023. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13024. Removed.
  13025. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  13026. Use Segment::operator==()
  13027. * src/HttpConnection.cc
  13028. * src/Segment.h
  13029. Updated usage
  13030. * src/version_usage.cc
  13031. Added EINTR treatment.
  13032. * src/SocketCore.cc
  13033. * src/AbstractDiskWriter.cc
  13034. Rewritten.
  13035. * src/Util.cc (rangedFileCopy)
  13036. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13037. Fixed typo.
  13038. * src/version_usage.cc
  13039. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13040. Implemented. Now -c option works fine.
  13041. * src/DefaultPieceStorage.cc (markPiecesDone)
  13042. * test/DefaultPieceStorageTest.cc
  13043. Removed.
  13044. * src/SegmentMan.{h, cc}
  13045. (markAllPiecesDone)
  13046. (markPieceDone)
  13047. Synchronized po files with
  13048. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  13049. * src/fr.po
  13050. * src/ru.po
  13051. * src/de.po
  13052. * src/ja.po
  13053. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13054. Added ifdef and some modifications to compile without BitTorrent,
  13055. Metalink, MessageDigest
  13056. support.
  13057. * src/PieceHashCheckIntegrityEntry.cc
  13058. * src/MetalinkEntry.h
  13059. * src/version_usage.cc
  13060. * src/main.cc
  13061. * src/DownloadEngine.{h, cc}
  13062. * src/Metalink2RequestGroup.cc
  13063. * src/Peer.cc
  13064. * src/RequestGroup.cc
  13065. * src/MetalinkHelper.cc
  13066. * test/DefaultPieceStorageTest.cc
  13067. * test/MetalinkPostDownloadHandlerTest.cc
  13068. * test/Metalink2RequestGroupTest.cc
  13069. Hide TOTAL SPD when all downloads complete.
  13070. * src/ConsoleStatCalc.cc
  13071. Log target system information.
  13072. * src/main.cc
  13073. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13074. Now --metalink-location accepts a comma-deliminated list of locations.
  13075. * src/MetalinkEntry.{h, cc}
  13076. * test/MetalinkEntryTest.cc
  13077. * src/version_usage.cc
  13078. * src/Metalink2RequestGroup.cc
  13079. * src/Xml2MetalinkProcessor.cc
  13080. * test/Xml2MetalinkProcessorTest.cc
  13081. * doc/aria2c.1.txt
  13082. * doc/aria2c.1
  13083. * src/Util.cc (toUpper)(toLower): Rewritten.
  13084. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13085. Added the ability to detect duplicate download entry which is about to
  13086. download the same file other RequestGroup is downloading.
  13087. * src/RequestGroup.cc
  13088. * src/HttpResponseCommand.cc
  13089. * src/FtpNegotiationCommand.cc
  13090. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13091. Recalculates download progress when loading a control file,
  13092. if the piece length of DownloadContext is different from the one saved
  13093. in the control file. Currently in-flight pieces are ignored.
  13094. * src/DefaultBtProgressInfoFile.cc
  13095. * test/DefaultBtProgressInfoFileTest.cc
  13096. * src/Util.{h, cc}
  13097. * test/UtilTest.cc
  13098. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13099. Do not rotate tiers in announce-list.
  13100. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  13101. AnnounceList::allTiersFailed() used instead to detect whether all
  13102. tiers are tried and failed.
  13103. * test/DefaultBtAnnounceTest.cc
  13104. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  13105. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  13106. * test/AnnounceListTest.cc
  13107. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  13108. clause. Catch RecoverableException instead of DlRetryEx instead.
  13109. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13110. Implemented checksum validation feature(1 checksum for each file)
  13111. The validation takes place after the download.
  13112. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  13113. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  13114. * src/CheckIntegrityCommand.cc: Changed log message.
  13115. * src/Metalink2RequestGroup.cc: Set checksum to
  13116. SingleFileDownloadContext.
  13117. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  13118. PieceHashCheckIntegrity class.
  13119. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  13120. PieceHashCheckIntegrity class.
  13121. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  13122. * src/IteratableValidator.h: New class.
  13123. * src/message.h
  13124. * src/CheckIntegrityEntry.{h, cc}
  13125. * src/IteratableChunkChecksumValidator.{h, cc}
  13126. * src/SingleFileDownloadContext.h
  13127. * src/DownloadCommand.cc
  13128. --allow-overwrite=true is no longer needed to check file integrity
  13129. before download in BitTorrent download.
  13130. * src/RequestGroup.cc (getInitialCommand)
  13131. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  13132. throws exception.
  13133. * src/RequestGroupMan.cc (getInitialCommands)
  13134. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13135. urlencode the given url inside Request::parseUrl(...)
  13136. * src/Request.{h, cc}
  13137. * src/Util.{h, cc}
  13138. * test/RequestTest.cc
  13139. Removed #!metalink3! notation support because it is deleted from
  13140. the metalink specification.
  13141. * src/Request.{h, cc}
  13142. * test/RequestTest.cc
  13143. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13144. Don't connect server before checking file integrity at startup, if
  13145. filesize and output file path are known.
  13146. * src/AbstractCommand.cc
  13147. * src/StreamFileAllocationEntry.cc
  13148. * src/Metalink2RequestGroup.cc
  13149. * src/RequestGroup.{h, cc}
  13150. * src/HttpResponseCommand.cc
  13151. * src/FtpNegotiationCommand.cc
  13152. Added DownloadFailureException. If it is thrown, RequestGroup should
  13153. halt.
  13154. * src/AbstractCommand.cc
  13155. * src/DownloadFailureException.h
  13156. * src/RequestGroup.cc
  13157. Catch RecoverableException, instead of DlAbortEx.
  13158. * src/RequestGroupMan.cc
  13159. * src/FillRequestGroupCommand.cc
  13160. * src/MetaFileUtil.cc
  13161. * src/IteratableChunkChecksumValidator.cc
  13162. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  13163. getGID())
  13164. * src/CheckIntegrityCommand.cc
  13165. * src/message.h
  13166. Print gid instead of idx.
  13167. * src/RequestGroupMan.cc
  13168. Removed exception throwers declaration.
  13169. * src/DirectDiskAdaptor.{h, cc}
  13170. * src/SocketCore.{h, cc}
  13171. * src/MultiDiskAdaptor.{h, cc}
  13172. * src/HttpConnection.{h, cc}
  13173. * src/HttpResponse.{h, cc}
  13174. * src/DiskAdaptor.{h, cc}
  13175. * src/CopyDiskAdaptor.{h, cc}
  13176. * src/MultiDiskAdaptor.{h, cc}
  13177. * src/HttpHeaderProcessor.{h, cc}
  13178. * src/AbstractSingleDiskAdaptor.{h, cc}
  13179. * src/Util.{h, cc}
  13180. * test/UtilTest.cc
  13181. * src/DefaultDiskWriter.{h, cc}
  13182. * src/FtpConnection.{h, cc}
  13183. * src/AbstractDiskWriter.{h, cc}
  13184. Removed duplicate code.
  13185. * src/StreamCheckIntegrityEntry.cc
  13186. Removed unnecessary include.
  13187. * src/DiskWriter.h
  13188. Included Exception.h
  13189. * src/option_processing.cc
  13190. Included 2 files and added doc
  13191. * src/TrackerWatcherCommand.cc
  13192. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  13193. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13194. Changed CheckIntegrityEntry interface so that it can define
  13195. the action when all the chunk checksums are valid.
  13196. * src/CheckIntegrityEntry.h
  13197. * src/StreamCheckIntegrityEntry.{h, cc}
  13198. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  13199. are valid, then aira2 goes to seeding mode. Sometimes it is better
  13200. to exit rather than doing seeding. So, it would be good to toggle this
  13201. behavior.
  13202. * src/CheckIntegrityCommand.cc
  13203. * src/AbstractCommand.cc
  13204. * src/RequestGroup.cc
  13205. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13206. Reflect the download length of in-flight pieces.
  13207. It makes the download length readout more precise.
  13208. * src/DefaultPieceStorage.{h, cc}
  13209. * test/DefaultPieceStorageTest.cc
  13210. * src/a2functional.h
  13211. * test/a2functionalTest.cc
  13212. Lower CPU load when --max-download-limit is used.
  13213. There is up and down in speed indicator when enabling
  13214. http-pipelining but a download goes well. I think the problem is that
  13215. because http-pipelining is enabled, DownloadCommand is created for
  13216. each segment and in its constructor, PeerStat::downloadStart() is
  13217. called. In PeerStat::downloadStart(), speed calculation object is
  13218. reseted, which makes download speed zero.
  13219. * src/DownloadCommand.cc
  13220. Rewritten using accumulate.
  13221. * src/RequestGroupMan.cc (calculateStat)
  13222. Code clearnup.
  13223. * src/FtpNegotiationCommand.cc
  13224. * src/HttpResponseCommand.cc
  13225. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13226. Fixed: Can not resume: aria2 reports download already finished.
  13227. * src/AbstractCommand.{h, cc}
  13228. * src/HttpResponseCommand.cc
  13229. * src/FtpNegotiateCommand.cc
  13230. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13231. Now a file is stored in the directory specified in .metalnk file
  13232. (file[@name]).
  13233. * src/Metalink2RequestGroup.cc
  13234. Create the directory structure when opening the file if it doesn't
  13235. exist.
  13236. * src/AbstractDiskWriter.cc
  13237. * src/Util.{h, cc}
  13238. * src/File.h
  13239. * test/UtilTest.cc
  13240. Removed file name comparison
  13241. * src/Metalink2RequestGroup.cc
  13242. * src/HttpResponseCommand.cc
  13243. Rewritten using Util::mkdirs()
  13244. * src/FileEntry.cc (setupDir)
  13245. * test/FileEntryTest.cc
  13246. Updated doc
  13247. * src/SingleFileDownloadContext.h
  13248. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13249. Now SleepCommand dispatches nextCommand when halt is requested.
  13250. It avoids a possible long wait after hitting CTRL-C.
  13251. * src/SleepCommand.{h, cc}
  13252. * src/RequestGroupAware.{h, cc}
  13253. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13254. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  13255. to open listen port, then remove the port number from the tracker
  13256. request.
  13257. * src/DefaultBtAnnounce.cc
  13258. * test/DefaultBtAnnounceTest.cc
  13259. * test/MockPieceStorage.h
  13260. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  13261. them more testable.
  13262. * src/DefaultBtAnnounce.{h, cc}
  13263. * src/DefaultBtContext.{h, cc}
  13264. * src/Util.{h, cc}
  13265. * test/DefaultBtAnnounceTest.cc
  13266. * test/DefaultBtContextTest.cc
  13267. * test/UtilTest.cc
  13268. Added 'B' to upload bytes readout.
  13269. * src/ConsoleStatCalc.cc
  13270. Now the listen port for BitTorrent download is opened when it is
  13271. needed.
  13272. * src/DownloadEngineFactory.cc
  13273. * src/BtSetup.{h, cc}
  13274. * src/PeerListenCommand.{h, cc}
  13275. Now an exception thrown while parsing tracker response is now logged.
  13276. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  13277. called, which means no retry is made in this case, assuming a tracker
  13278. has a problem.
  13279. * src/TrackerWatcherCommand.cc
  13280. Fixed: downloading a file whose length is unkown fails.
  13281. * src/DownloadCommand.cc
  13282. Simplified prepareForNextSegment()
  13283. * src/DownloadCommand.cc
  13284. Updated
  13285. * po/POTFILES.in
  13286. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13287. Re-implemented a file listing for Metalink, which was dropped while
  13288. http/ftp/torrent integration was being implemented.
  13289. * src/MetalinkHelper.{h, cc}: New class.
  13290. * test/MetalinkHelperTest.cc
  13291. * src/main.cc
  13292. * src/Metalink2RequestGroup.cc
  13293. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13294. Added the ability to display the detailed torrent file information.
  13295. Now -S option gives not only a file listing, but also total download
  13296. length, info hash, announce URI, piece length, the number of pieces,
  13297. and mode(single or multi-torrent).
  13298. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  13299. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  13300. KiB)
  13301. * test/UtilTest.cc
  13302. * src/main.cc
  13303. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13304. Added ftp://USER:PASSWD@Servername automatic parsing.
  13305. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  13306. _password. Recognize username and password in URI.
  13307. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  13308. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  13309. * src/RequestFactory.{h, cc}: Removed.
  13310. * src/AuthConfigFactory.{h, cc}: New class.
  13311. * src/FtpConnection.cc: Use AuthConfigFactory.
  13312. * src/HttpRequest.cc: Use AuthConfigFactory.
  13313. * test/HttpRequestTest.cc: Updated.
  13314. * test/RequestTest.cc: Updated.
  13315. * test/AuthConfigFactoryTest.cc: New class.
  13316. * test/RequestFactoryTest.cc: Removed.
  13317. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13318. Use RequestGroup::allDownloadFinished() to decide whether the control
  13319. file should be removed or saved.
  13320. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  13321. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  13322. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13323. Use File::renameTo()
  13324. * src/DefaultBtProgressInfoFile.cc
  13325. Added --no-file-allocation-limit command-line option.
  13326. * src/version_usage.cc
  13327. * src/option_processing.cc
  13328. * src/OptionHandlerFactory.cc
  13329. * src/RequestGroup.{h, cc}
  13330. * src/BtCheckIntegrityEntry.cc
  13331. * src/StreamCheckIntegrityEntry.cc
  13332. * src/prefs.h
  13333. * doc/aria2c.1.txt
  13334. * doc/aria2c.1
  13335. Now prealloc is the default value for --file-allocation option.
  13336. * src/version_usage.cc
  13337. * src/option_processing.cc
  13338. * doc/aria2c.1.txt
  13339. * doc/aria2c.1
  13340. Don't URL-encode user-agent.
  13341. * src/HttpRequest.cc
  13342. Updated translations
  13343. * po/LINGUAS: Added nl for Dutch translation.
  13344. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  13345. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  13346. * po/POTFILES.in: Updated.
  13347. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13348. Added the ability to recognize url-list in a torrent file.
  13349. The retrieved URLs are attached to the corresponding FileEntry.
  13350. * src/DefaultBtContext.{h, cc}
  13351. * src/FileEntry.{h, cc}
  13352. * test/DefaultBtContextTest.cc
  13353. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13354. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  13355. after the download finishes.
  13356. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13357. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  13358. the data smaller than block length.
  13359. A block length can be specified by constructor's argument.
  13360. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  13361. Get a missing piece in the range of given FileEntry. This function is
  13362. not used in the program yet.
  13363. * src/Util.h: Added some macros.
  13364. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13365. Added HTTP/1.1 keep alive and pipelining support.
  13366. See --enable-http-keep-alive and --enable-http-pipelining option.
  13367. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  13368. Segment.
  13369. * src/HttpDownloadCommand.{h, cc}
  13370. * src/OptionHandlerFactory.cc
  13371. * src/HttpConnection.{h, cc}
  13372. * src/version_usage.cc
  13373. * src/HttpInitiateConnectionCommand.cc
  13374. * src/FtpInitiateConnectionCommand.cc
  13375. * src/Segment.h
  13376. * src/HttpRequestCommand.{h, cc}
  13377. * src/option_processing.cc
  13378. * src/prefs.h
  13379. * src/HttpResponseCommand.cc
  13380. * src/SegmentMan.{h, cc}
  13381. * src/FtpNegotiateCommand.cc
  13382. * src/HttpProxyResponseCommand.cc
  13383. * src/Request.cc
  13384. * src/HttpRequest.cc
  13385. * src/DownloadCommand.cc
  13386. * test/HttpRequestTest.cc
  13387. * test/RequestTest.cc
  13388. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13389. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  13390. finished.
  13391. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13392. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  13393. catching it inside the method.
  13394. When no file entry is found in a metalink without querying user
  13395. preferences, throw the exception with the error message that suggests
  13396. metalink file is probably broken.
  13397. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  13398. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13399. Fixed the bug that prevents remote Metalink/Torrent file from begin
  13400. processed.
  13401. * src/RequestGroupMan.cc (removeStoppedGroup)
  13402. Added debug message.
  13403. * src/BtPostDownloadHandler.cc
  13404. * src/MetalinkPostDownloadHandler.cc
  13405. * src/PostDownloadHandler.{h, cc}
  13406. * src/RequestGroup.cc
  13407. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13408. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  13409. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13410. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  13411. stops and there are any unfinished or in-progress downloads.
  13412. Added the legend of "stat".
  13413. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13414. Throw exception when chunck checksum verification fails.
  13415. * src/DownloadCommand.cc (validatePieceHash): New function.
  13416. * src/PiecedSegment.{h, cc} (clear): New function.
  13417. * src/GrowSegment.{h, cc} (clear): New function.
  13418. * src/Segment.h (clear): New function.
  13419. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  13420. * test/SegmentTest.cc
  13421. * test/GrowSegmentTest.cc
  13422. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13423. Do not send referer when redirected.
  13424. * src/Request.cc (redirectUrl)
  13425. * test/RequestTest.cc
  13426. * test/HttpRequestTest.cc
  13427. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13428. Implemented BitTorrent/http/ftp integrated download.
  13429. I've rewritten lots of files and now some headers have forward
  13430. class declarations to reduce compile time.
  13431. The implementation is extremely alpha stage, I recommend to use this
  13432. for testing purpose only.
  13433. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13434. Fixed the compilation error on 64bit platform.
  13435. * test/HttpHeaderProcessorTest.cc
  13436. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13437. Merged Ross's patch that fixes compilation problem in MinGW
  13438. * test/DefaultBtProgressInfoFileTest.cc
  13439. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13440. Updated fr.po by sebone
  13441. * po/fr.po
  13442. Updated man page.
  13443. * doc/aria2c.1.txt
  13444. * Release 0.11.3
  13445. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13446. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  13447. failure in Metalink.
  13448. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13449. Automatically save *.aria2 control file of http/ftp download in every
  13450. 60 seconds.
  13451. * src/AutoSaveCommand.{h, cc}: New class.
  13452. * src/TimeBasedCommand.{h, cc}: New class.
  13453. * src/DownloadEngineFactory.cc (newConsoleEngine)
  13454. Disable parameterized URI support by default. Added -P option to
  13455. enable the feature.
  13456. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  13457. * src/OptionHandlerFactory.cc
  13458. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  13459. Updated Japanese translation.
  13460. * po/ja.po
  13461. Updated man page.
  13462. * doc/aria2c.1.txt
  13463. * Release 0.11.3-rc
  13464. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13465. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  13466. it is successful, then renamed to *.aria2.
  13467. This prevents *.aria2 file from being truncated or corrupted when
  13468. file system becomes out of space.
  13469. * src/DefaultBtProgressInfoFile.cc (save)
  13470. * src/SegmentMan.cc (save)
  13471. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  13472. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13473. Reduced the fragmentation of bitfield in http/ftp download.
  13474. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  13475. * test/BitfieldManTest.cc
  13476. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13477. Added the ability to disable segmented download in .metalink.
  13478. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  13479. 'url' tag.
  13480. * src/MetalinkEntry.{h, cc}
  13481. * src/RequestResource.{h, cc}
  13482. * src/MetalinkRequestInfo.cc
  13483. * src/Xml2MetalinkProcessor.cc
  13484. * test/Xml2MetalinkProcessorTest.cc
  13485. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13486. Added parameterized URI support.
  13487. * src/main.cc: -Z option added.
  13488. * src/OptionHandlerFactory.cc
  13489. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  13490. * src/PStringDatum.h: New class.
  13491. * src/PStringSegment.{h,cc}: New class.
  13492. * src/PStringNumLoop.h: New class.
  13493. * src/PStringSelect.h: New class.
  13494. * src/NumberDecorator.h: New class.
  13495. * src/FixedWidthNumberDecorator.h: New class.
  13496. * src/AlphaNumberDecorator.h: New class.
  13497. * src/PStringVisitor.h: New class.
  13498. * src/PStringBuildVisitor.{h,cc}: New class.
  13499. * src/ParameterizedStringParser.{h,cc}: New class.
  13500. * src/Util.{h,cc}
  13501. (isNumber): New function.
  13502. (isLowercase): New function.
  13503. (isUppercase): New function.
  13504. (alphaToNum): New function.
  13505. * test/ParameterizedStringParserTest.cc: New class.
  13506. * test/AlphaNumberDecoratorTest.cc: New class.
  13507. * test/PStringBuildVisitorTest.cc: New class.
  13508. * test/UtilTest.cc
  13509. (testIsNumber): New function.
  13510. (testIsLowercase): New function.
  13511. (testIsUppercase): New function.
  13512. (testAlphaToNum): New function.
  13513. Added '\n' after the error message
  13514. * src/RequestInfo.h (printDownloadAbortMessage)
  13515. Added auto file renaming feature in http(s)/ftp download.
  13516. * src/main.cc: Added --auto-file-renaming command-line option.
  13517. * src/OptionHandlerFactory.cc
  13518. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  13519. * src/RequestGroup.{h, cc}
  13520. (shouldCancelDownloadForSafety): Rewritten
  13521. (tryAutoFileRenaming): New function.
  13522. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  13523. * src/HttpResponseCommand.cc
  13524. (executeInternal): Removed the call to RequestGroupMan::
  13525. isSameFileBeingDownloaded()
  13526. * src/FtpNegotiateCommand.cc
  13527. (recvSize): Removed the call to RequestGroupMan::
  13528. isSameFileBeingDownloaded()
  13529. * test/RequestGroupTest.cc: New class.
  13530. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13531. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  13532. IO.
  13533. * src/DefaultBtProgressInfoFile.cc
  13534. * src/MetaFileUtil.cc
  13535. * src/SimpleLogger.cc
  13536. * src/SegmentMan.cc
  13537. * src/Util.cc
  13538. * src/Platform.cc
  13539. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13540. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  13541. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13542. Avoid sparse files if possible, because VFAT32 doesn't support it.
  13543. * src/DefaultDiskWriter.cc (initAndOpenFile)
  13544. Fixed the bug that prevents file allocation is not done when
  13545. dowloading multi-torrent file.
  13546. * src/AbstractDiskWriter.cc (openFile)
  13547. Increase the maximum number of -j option from 15 to 45.
  13548. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13549. Added fr.po, thanks to Charles Landemaine.
  13550. * po/fr.po
  13551. * po/LINGUAS
  13552. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13553. gcc 3.4.4 support:
  13554. * src/DefaultBtContext.cc: int32_t -> int
  13555. * src/main.cc: int -> int32_t, int32_t -> int
  13556. * src/messageDigest.h: uint32_t -> unsigned int
  13557. * src/NameResolver.h: int32_t -> int
  13558. * src/PeerConnection.cc: int -> int32_t
  13559. * src/SpeedCalc.cc: int32_t -> int
  13560. * src/TrackerUpdateCommand.h: int -> int32_t
  13561. * src/Util.cc: int32_t -> int
  13562. * src/Util.h: int32_t -> int
  13563. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  13564. * test/AnnounceListTest.cc: int -> int32_t
  13565. * test/ChunkedEncodingTest.cc: int -> int32_t
  13566. * test/DataTest.cc: int -> int32_t
  13567. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  13568. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  13569. * test/DefaultPieceStorageTest.cc: int -> int32_t
  13570. * test/FeatureConfigTest.cc: int -> int32_t
  13571. * test/MetalinkEntryTest.cc: int -> int32_t
  13572. * test/MockBtRequestFactory.h: int -> int32_t
  13573. * test/MockPieceStorage.h: int -> int32_t
  13574. * test/OptionTest.cc: int -> int32_t
  13575. * test/RequestTest.cc: int -> int32_t
  13576. * test/SegmentManTest.cc: int -> int32_t
  13577. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  13578. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13579. Move sleep functions to Util class:
  13580. * src/Util.cc
  13581. (sleep): New function.
  13582. (usleep): New function.
  13583. * src/DownloadCommand.cc: sleep -> Util::sleep
  13584. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  13585. MinGW build enhancements. The following files are added:
  13586. * src/timegm.{c,h}
  13587. Changes to support the above new files:
  13588. * configure.ac
  13589. * src/Makefile.am
  13590. * src/a2time.h
  13591. * src/Util.cc:
  13592. * src/strptime.c: Added support for %Z option.
  13593. Fixed MinGW non-blocking bug.
  13594. * src/SocketCore.cc
  13595. * src/HttpRequestCommand.cc
  13596. Miscellenous build fixes/enhancements.
  13597. * configure.ac: Added summary report.
  13598. * src/Platform.h: Tweaked #include's.
  13599. * src/a2netcompat.h: Tweaked #include's.
  13600. * src/strptime.h: Tweaked #include's.
  13601. * src/gai_strerror.c: Tweaked #include's.
  13602. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  13603. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  13604. * src/gettimeofday.h: Added HAVE_CONFIG_H
  13605. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13606. Increased the initial connection size in BitTorrent download to 40.
  13607. * src/BtRuntime.h
  13608. Added the usage message of --peer-id-prefix option.
  13609. * src/main.cc
  13610. * Release 0.11.2
  13611. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13612. MessageDigestHelper is introduced in order to simplify the use
  13613. of message digest. Removed repeated code.
  13614. The message digest algorithm is now specified by string, like "sha1",
  13615. "md5".
  13616. * src/messageDigest.{h, cc}
  13617. * src/MessageDigestHelper.{h, cc}: New class.
  13618. * src/DefaultPieceStorage.cc
  13619. * src/DefaultBtContext.{h, cc}
  13620. (computeFastSet): New function.
  13621. (setInfoHash): Added for unit testing.
  13622. (setNumPieces): Added for unit testing.
  13623. * src/DefaultBtInteractive.cc
  13624. * src/BtPieceMessage.cc
  13625. * src/Peer.cc
  13626. * src/Checksum.h
  13627. * src/message.h
  13628. * src/IteratableChecksumValidator.h
  13629. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  13630. inside it.
  13631. * src/SegmentMan.{h, cc}
  13632. (checkIntegrity): Removed.
  13633. * src/IteratableChunkChecksumValidator.{h, cc}
  13634. * src/Util.h
  13635. (sha1Sum): Removed.
  13636. (simpleMessageDigest): Removed.
  13637. (fileChecksum): Removed.
  13638. (computeFastSet): Removed.
  13639. * src/ShaVisitor.cc
  13640. * src/ChunkChecksum.h
  13641. * src/DownloadCommand.cc
  13642. Removed messageDigest virtual functions.
  13643. * src/MultiDiskAdaptor.{h, cc}
  13644. * src/DiskAdaptor.h
  13645. * src/ByteArrayDiskWriter.h
  13646. * src/DiskWriter.h
  13647. * src/DiskAdaptorWriter.h
  13648. * src/AbstractSingleDiskAdaptor.{h, cc}
  13649. * src/AbstractDiskWriter.{h, cc}
  13650. Fixed comilation error when message digest is disabled.
  13651. * src/MetalinkEntry.{h, cc}
  13652. * src/MetalinkRequestInfo.cc
  13653. Removed srandom and random.
  13654. * src/SimpleRandomizer.h
  13655. Added size() virtual function to DiskAdaptor
  13656. * src/MultiDiskAdaptor.h
  13657. Fixed the bug that causes that files are not opened correctly in
  13658. multi-file torrent.
  13659. * src/TorrentRequestInfo.cc
  13660. * src/MultiDiskAdaptor.cc
  13661. Added SHA256 support
  13662. * src/messageDigest.cc
  13663. * src/Xml2MetalinkProcessor.cc
  13664. Show supported message digest algorithms
  13665. * src/main.cc
  13666. Updated contact info.
  13667. * src/main.cc
  13668. Applied Ross's patch
  13669. * src/a2netcompat.h
  13670. * src/main.cc
  13671. Fixed the bug that prevents a remote metalink from not being processed
  13672. even if '-o foo.metalink' is specified.
  13673. * src/MetalinkRequestInfo.cc
  13674. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13675. Merged Dan's patch:
  13676. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  13677. Use va_copy to avoid core dump on amd64:
  13678. * src/SimpleLogger.cc
  13679. Updated contact info.
  13680. * src/main.cc
  13681. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  13682. digest is not available.
  13683. * src/MetalinkEntry.h
  13684. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13685. Make a2netcompat.h include a2io.h to fix compilation error:
  13686. * src/a2netcompat.h
  13687. * src/SocketCore.cc: Removed include of a2io.h
  13688. * src/Util.cc: Removed include of a2io.h
  13689. Gather time related functions to a2time.h:
  13690. * src/a2time.h: New file.
  13691. * src/DefaultPeerStorage.cc
  13692. * src/SimpleLogger.cc
  13693. * src/Util.{h, cc}
  13694. * src/SimpleRandomizer.h
  13695. * src/TimeA2.{h,cc}
  13696. * src/DownloadCommand.cc
  13697. * src/main.cc
  13698. Removed #ifdef __MINGW32__ since gai_strerror is included in
  13699. a2netcompat.h:
  13700. * src/NameResolver.cc
  13701. Fixed compilation error without openssl:
  13702. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  13703. Added default block to suppress compiler warnings:
  13704. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  13705. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  13706. MinGW build enhancements. The following files are added:
  13707. * src/gai_strerror.{c,h}
  13708. * src/gettimeofday.{c,h}
  13709. Changes to support the above new files:
  13710. * configure.ac
  13711. * src/Makefile.am
  13712. * src/a2netcompat.h
  13713. * src/TimeA2.cc
  13714. * src/DefaultPeerStorage.cc
  13715. * src/NameResolver.cc: removed mingw_strerror() function.
  13716. * src/SocketCore.cc: removed mingw_strerror() function.
  13717. Miscellaneous MinGW build fixes.
  13718. * src/a2io.h: Use _lseeki64() instead of lseek()
  13719. * src/common.h
  13720. * src/DefaultFileAllocator.cc
  13721. * src/GlowFileAllocator.cc
  13722. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13723. * src/NameResolver.cc
  13724. (callback): Changed int32_t to int.
  13725. (resolve): Changed int32_t to int.
  13726. * src/Platform.cc
  13727. * src/Platform.h
  13728. * test/MultiDiskWriterTest.cc
  13729. * test/PeerMessageUtilTest.cc
  13730. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13731. Other enhancements and fixes.
  13732. * src/HttpRequestCommand.cc
  13733. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13734. * src/SocketCore.cc:
  13735. (error): New function to abstract errno/WSAGetLastError().
  13736. (errorMsg): New function to abstract errno/WSAGetLastError().
  13737. (initiateSecureConnection): Added more detailed error reporting.
  13738. * src/SocketCore.h: Added private variable blocking, to allow
  13739. proper handling of OpenSSL psuedo-errors.
  13740. * src/message.h
  13741. (EX_SSL_INIT_FAILURE)
  13742. (EX_SSL_IO_ERROR)
  13743. (EX_SSL_PROTOCOL_ERROR)
  13744. (EX_SSL_UNKNOWN_ERROR)
  13745. (EX_SSL_CONNECT_ERROR)
  13746. (EX_SOCKET_BLOCKING)
  13747. (EX_SOCKET_NONBLOCKING)
  13748. (EX_SOCKET_UNKNOWN_ERROR)
  13749. * src/Util.cc
  13750. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13751. reserved name.
  13752. (httpGMT): Fixed typo.
  13753. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13754. Merged Ross's win32 patch(manually)
  13755. In the course of merging, following files are added.
  13756. * src/strptime.{h,c}
  13757. * src/libgen.{h,c}
  13758. * src/inet_aton.{h,c}
  13759. * src/Platform.{h,cc}
  13760. * src/localtime_r.{h,c}
  13761. * src/getaddrinfo.{h,c}
  13762. I've gethered network related things, and put them to following file:
  13763. * src/a2netcompat.h
  13764. Also io related things are put to following file:
  13765. * src/a2io.h
  13766. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13767. * src/message.h
  13768. (MSG_ALLOCATION_COMPLETED)
  13769. (EX_TOO_LARGE_FILE)
  13770. (EX_SIZE_MISMATCH)
  13771. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13772. (EX_INVALID_CHUNK_CHECKSUM)
  13773. (EX_INVALID_RANGE_HEADER)
  13774. * src/FileAllocationCommand.cc
  13775. * src/HttpResponse.cc
  13776. * src/RequestGroup.cc
  13777. * src/MultiDiskAdaptor.cc
  13778. * src/OptionHandlerImpl.h
  13779. * src/HttpResponseCommand.cc
  13780. * src/FtpNegotiateCommand.cc
  13781. * src/IteratableChecksumValidator.cc
  13782. * src/SegmentMan.cc
  13783. * src/ChunkChecksumValidator.cc
  13784. Added Randomizer::getRandomNumber(long int)
  13785. * src/Randomizer.h (getRandomNumber)
  13786. * src/SimpleRandomizer.h (getRandomNumber)
  13787. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13788. * src/Util.cc (randomAlpha): Use this new function.
  13789. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13790. Converted int's to in32_t. long long int's are also converted to
  13791. int64_t
  13792. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13793. Fixed the bug that prevents cookies from being sent to the server
  13794. if the domain of cookie is FQDN and starts with ".".
  13795. * src/Cookie.cc (match)
  13796. To add the ability to change peer id.
  13797. * src/DefaultBtContext.h
  13798. (_peerIdPrefix): New variable
  13799. (setPeerIdPrefix): New function.
  13800. * src/torrentRequestInfo.cc
  13801. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13802. DefaultBtContext.
  13803. * src/main.cc (main): Added peer-id-prefix command-line option.
  13804. The usage message is not added yet.
  13805. * src/DefaultBtContext.cc
  13806. (generatePeerId): Use _peerIdPrefix.
  13807. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13808. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13809. Fixed the bug that prevents filename in content-disposition from
  13810. being retrieved when filename is not quoted.
  13811. * src/Util.cc (getContentDispositionFilename)
  13812. Fixed the bug that causes infinate loop and memory leak when file open
  13813. operation failed.
  13814. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13815. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13816. Fixed the bug that causes segfault when all URIs specified are
  13817. unsupported.
  13818. * src/RequestGroupMan.cc (getInitialCommands)
  13819. Check if RequestGroup::createNextCommand() returns empty list of
  13820. commands.
  13821. * src/RequestGroup.cc (createNextCommand)
  13822. Change log level from info to error so that users can notice that
  13823. an error occurred.
  13824. Fixed the bug that causes segfault when a zero-sized file is
  13825. downloaded.
  13826. * src/BitfieldMan.cc (isAllBitSet)
  13827. Return true if bitfieldLength is 0.
  13828. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13829. * src/main.cc
  13830. (showUsage): Added 3 usage examples for metalink download.
  13831. Replace MetalinkChunkChecksum with ChunkChecksum.
  13832. * src/MetalinkChunkChecksum.h: Removed.
  13833. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13834. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13835. * src/Xml2MetalinkProcessor.cc
  13836. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13837. * src/MetalinkRequestInfo.cc (execute)
  13838. * Release 0.11.1
  13839. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13840. Reads URIs from stdin when "-i -" is specified.
  13841. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13842. * src/UriListParser.h, src/UriListParser.cc: New class.
  13843. * src/StreamUriListParser.h: New class.
  13844. * src/FileUriListParser.h: New class.
  13845. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13846. instead of UriFileListParser.
  13847. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13848. Made console readout more readable.
  13849. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13850. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13851. Fix the bug that causes -s option not to work.
  13852. * src/main.cc (main)
  13853. * src/a2algo.h: New file.
  13854. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13855. Create directory structure specified in metalink file.
  13856. * src/RequestGroup.h, src/RequestGroup.cc
  13857. (initAndOpenFile): Create a directory to store files if it does not
  13858. exist.
  13859. (getDir): New function.
  13860. Added ETA and download speed for an individual file to readout.
  13861. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13862. * src/RequestGroup.h
  13863. (calculateDownloadSpeed): New function.
  13864. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13865. Made -S option work with metalink file and provided selective download
  13866. to metalink.
  13867. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13868. (filename): Removed.
  13869. (file): New variable.
  13870. (size): Removed.
  13871. (operator=): Updated.
  13872. (getPath): New function.
  13873. (getLength): New function.
  13874. (toFileEntry): New function.
  13875. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13876. (execute): Use toStream.
  13877. (showFileEntry): Removed.
  13878. * src/MetalinkRequestInfo.h
  13879. (targetFiles): New variable.
  13880. (setTargetFiles): New variable.
  13881. * src/MetalinkRequestInfo.cc
  13882. (execute): Added the ability to print file information included in
  13883. a metalink file.
  13884. Added selective download mode to metalink.
  13885. * src/main.cc
  13886. (showUsage): Updated to denote that -S and --select-file options are
  13887. applicable to metalink.
  13888. * src/FileEntry.h
  13889. (operator=): New function.
  13890. (getBasename): New function.
  13891. (getDirname): New function.
  13892. * src/Util.h, src/Util.cc
  13893. (toStream): New function.
  13894. * src/Xml2MetalinkProcessor.cc: Updated.
  13895. Made aria2 work with metalink with directory structure.
  13896. * src/File.h, src/File.cc
  13897. (getBasename): New function.
  13898. (getDirname): New function.
  13899. * src/RequestGroup.h, src/RequestGroup.cc
  13900. (_topDir): New variable.
  13901. (setTopDir): New function.
  13902. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13903. Rewrote HTTP header parsing with stringstream.
  13904. * src/HttpConnection.h, src/HttpConnection.cc
  13905. (HttpRequestEntry): New class.
  13906. (headerBuf): Removed.
  13907. (headerBufLength): Removed.
  13908. (outstandingHttpRequests): Now its element type is
  13909. HttpRequestEntryHandle.
  13910. (findEndOfHeader): Removed.
  13911. (receiveResponse): Rewritten.
  13912. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13913. Updated doc for -j option to notice that it should be used with -i
  13914. option.
  13915. * src/main.cc (showUsage)
  13916. Removed unused classes.
  13917. * src/RequestInfo.h
  13918. (FileInfo): Removed.
  13919. (checksum): Removed.
  13920. (fileInfo): Removed.
  13921. (setChecksum): Removed.
  13922. (getChecksum): Removed.
  13923. (getFileInfo): Removed.
  13924. Use ISO units.
  13925. * src/ConsoleDownloadEngine.cc
  13926. * src/TorrentConsoleDownloadEngine.cc
  13927. * src/Util.cc (abbrevSize)
  13928. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13929. Added the default listening ports to the help message.
  13930. * src/main.cc (showUsage)
  13931. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13932. Reduce the number of calls to gettimeofday to lower CPU load.
  13933. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13934. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13935. * src/Peer.h (calculateUploadSpeed): New function.
  13936. (calculateDownloadSpeed): New function.
  13937. * src/DefaultPeerStorage.cc
  13938. (CalculateStat): Added _now variable.
  13939. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13940. and Peer::calculateUploadSpeed(const struct timeval&)
  13941. Drop connection if no request or piece message is exchanged in
  13942. a certain interval.
  13943. * src/DefaultBtInteractive.h
  13944. (btRuntime): New variable.
  13945. (inactiveCheckPoint): New variable.
  13946. (checkActiveInteraction): New function.
  13947. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13948. request or piece message is received.
  13949. (checkActiveInteraction): New function.
  13950. (doInteractionProcessing): Call checkActiveInteraction.
  13951. Fixed the bug that causes remote Metalink and Torrent files are not
  13952. processed.
  13953. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13954. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13955. Changed format of log file.
  13956. * src/SimpleLogger.cc
  13957. * Release 0.11.0
  13958. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13959. * src/AbstractCommand.cc
  13960. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13961. MSG_MAX_TRY from error to info.
  13962. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13963. * src/message.h
  13964. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13965. (MSG_DOWNLOAD_ABORTED): Added %s.
  13966. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13967. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13968. * src/PeerAbstractCommand.cc
  13969. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13970. * src/Request.h
  13971. (cookieBox): Made ShardHandle.
  13972. * src/RequestGroup.h, src/RequestGroup.cc
  13973. (createNextCommandWithAdj): New function.
  13974. * src/FileAllocationCommand.cc
  13975. (executeInternal): Use createNextCommandWithAdj().
  13976. * src/CheckIntegrityCommand.cc
  13977. (executeInternal): Use createNextCommandWithAdj().
  13978. Added --load-cookies command-option.
  13979. * src/OptionHandlerFactory.cc
  13980. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13981. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13982. Now aria2 can handle cookie's expiration date.
  13983. * src/Cookie.h (expires): Changed its type to time_t.
  13984. * src/main.cc: Added --load-cookies command-line option.
  13985. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13986. * src/Util.h, src/Util.cc (httpGMT): New function.
  13987. * src/Request.cc (Request): Initialize cookieBox using
  13988. CookieBoxFactory.
  13989. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13990. * src/CookieParser.h, src/CookieParser.cc: New class.
  13991. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13992. * src/HttpResponseCommand.cc
  13993. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13994. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13995. download.
  13996. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13997. Added -j command-line option.
  13998. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13999. * src/main.cc
  14000. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  14001. Rewritten using stringstream.
  14002. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  14003. Rewritten using stringstream.
  14004. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14005. Make download size shown in MB, KB.
  14006. * src/ConsoleDownloadEngine.h (sendStatistics)
  14007. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  14008. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14009. Accept incoming connections if download rate is low.
  14010. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  14011. (_lowestSpeedLimit): New variable.
  14012. (setLowestSpeedLimit): New function.
  14013. (execute): Accept incoming connections if download rate is low.
  14014. MAX_PEERS is ignored in this case.
  14015. Disable PREF_OUT in multiple concurrent download:
  14016. * src/RequestGroup.h, src/RequestGroup.cc
  14017. (setUserDefinedFilename): New function.
  14018. * src/DownloadEngineFactory.cc
  14019. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  14020. concurrent download.
  14021. * src/DefaultSegmentManFactory.cc
  14022. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  14023. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14024. RequestGroup::getNextCommand() was renamed to createNextCommand().
  14025. Added its overloaded method.
  14026. * src/RequestGroup.h
  14027. (_numConcurrentCommand): New variable.
  14028. (setNumConcurrentCommand): New function.
  14029. * src/RequestGroup.cc
  14030. Abort download if same file is being downloaded concurrently.
  14031. * src/RequestGroup.h, src/RequestGroupMan.cc
  14032. (isSameFileBeingDownloaded): New function.
  14033. * src/HttpResponseCommand.cc (executeInternal)
  14034. * src/FtpNegotiateCommand.cc (recvSize)
  14035. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  14036. * main.cc: Added help message for -i option.
  14037. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14038. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  14039. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  14040. * src/MetalinkEntry.h
  14041. (checksum): Changed to ChecksumHandle
  14042. * src/MetalinkRequestInfo.cc
  14043. (checksum): Changed to ChecksumHandle
  14044. * src/File.cc
  14045. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  14046. * src/common.h
  14047. (DIR_OPEN_MODE): New definition
  14048. * src/RequestGroup.cc
  14049. (prepareForNextAction): Added an argument.
  14050. * src/message.h
  14051. (MSG_GOOD_CHECKSUM): New definition
  14052. (MSG_BAD_CHECKSUM): New definition
  14053. * src/HttpResponseCommand.cc
  14054. (handleDefaultEncoding): Continue download sequence in new
  14055. non-segmented download.
  14056. * src/FileAllocationEntry.h
  14057. (_nextDownloadCommand): New variable.
  14058. * src/DownloadCommand.cc
  14059. (prepareForNextSegment): Create ChecksumCommand if checksum is
  14060. available.
  14061. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  14062. * src/IteratableChecksumValidator.h,
  14063. src/IteratableChecksumValidator.cc: New class.
  14064. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  14065. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14066. Change file mode to 666:
  14067. * src/common.h (OPEN_MODE): New definition.
  14068. * src/File.cc
  14069. * src/Util.cc
  14070. * src/Directry.cc
  14071. * src/AbstractDiskWriter.cc
  14072. Change the level of log message "download aborted" to debug:
  14073. * src/PeerAbstractCommand.cc (execute)
  14074. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  14075. * src/TrackerWatcherCommand.cc
  14076. (createCommand): Sleep some seconds after request failed.
  14077. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  14078. then abort tracker request.
  14079. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14080. * Added the simultaneous download feature.
  14081. * src/main.cc: Print "Exception caught: " when exception is caught.
  14082. Use CUIDCounter instead of BtRuntime::getNewCuid():
  14083. * src/ActivePeerConnectionCommand.cc
  14084. * src/PeerInteractionCommand.cc
  14085. * src/BtRuntime.h
  14086. (cuidCounter): Removed.
  14087. (getNewCuid): Removed.
  14088. * src/DownloadEngineFactory.cc
  14089. * src/PeerListenCommand.cc
  14090. * src/TrackerUpdateCommand.cc
  14091. * src/PeerInitiateConnectionCommand.cc
  14092. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14093. * src/PeerAbstractCommand.cc
  14094. (onAbort): Call PeerStorage::returnPeer()
  14095. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  14096. (incomingPeers): New variable.
  14097. (addIncomingPeer): New function.
  14098. (returnPeer): New function.
  14099. (onErasingPeer): New function.
  14100. (addPeer): push_back -> push_front
  14101. (getActivePeers): Rewritten.
  14102. (calculateStat): Rewritten.
  14103. * src/PeerStorage.h
  14104. (TransferStat::copy): New function.
  14105. (TransferStat::TransferStat): New function.
  14106. (TransferStat::operator=): New function.
  14107. (addIncomingPeer): New function.
  14108. (returnPeer): New function.
  14109. * src/PeerListenCommand.cc
  14110. (execute): Use PeerStorage::addIncomingPeer() instead of
  14111. Peer::addPeer().
  14112. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14113. Connect to a peer actively when download speed is lower than specified
  14114. speed in torrent download:
  14115. * src/ActivePeerConnectionCommand.h: New class.
  14116. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14117. * src/HttpRequest.cc (createRequest): url-encode user-agent
  14118. * src/main.cc: Fixed the bug that prevents download if .netrc
  14119. doesn't exist.
  14120. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14121. To cache resolved hostname:
  14122. * src/AbstractCommand.h, src/AbstractCommand.cc
  14123. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  14124. Added dns cache.
  14125. * src/FtpInitiateConnectionCommand.cc
  14126. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  14127. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  14128. NameResolver working without ares.
  14129. * src/TorrentRequestInfo.cc
  14130. (execute): Don't cache dns in torrent download.
  14131. * src/HttpInitiateConnectionCommand.cc
  14132. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  14133. * src/DNSCache.h: New class.
  14134. * src/UrlRequestInfo.cc
  14135. (execute): Use dns cache.
  14136. In http request, suppress port number in http request header if port
  14137. is 80 or 443:
  14138. * src/HttpRequest.cc (getHostText): Suppress port number in http
  14139. request header if port is 80 or 443.
  14140. (createProxyRequest): Allways send port number.
  14141. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14142. To add the command-line option which disables netrc support:
  14143. * src/OptionHandlerFactory.cc
  14144. (createOptionHandlers): Added PREF_NO_NETRC.
  14145. * src/main.cc: Added -n option.
  14146. * src/prefs.h (PREF_NO_NETRC): New definition.
  14147. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  14148. V_TRUE.
  14149. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  14150. is V_FALSE. This may get configurable in the future release.
  14151. To clear peer's error status by time basis:
  14152. * src/PeerAbstractCommand.cc
  14153. (onAbort): Call Peer::startBadCondition().
  14154. * src/Peer.h, src/Peer.cc
  14155. (error): Removed.
  14156. (_badConditionStartTime): New variable.
  14157. (_badConditionInterval): New variable. Initialized to 10 seconds.
  14158. (startBadCondition): New function.
  14159. (isGood): New function.
  14160. * src/DefaultPeerStorage.cc
  14161. (addPeer): Use Peer::isGood().
  14162. (FindFinePeer): Use Peer::isGood().
  14163. Always include port number in http request header:
  14164. * src/HttpRequest.cc (getHostText): Always include port number in
  14165. http request header.
  14166. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14167. To the ability to read options from a config file:
  14168. * src/main.cc: Command-line parameter validation is delegated to
  14169. OptionHandler class.
  14170. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  14171. * src/Option.h, src/Option.cc (clear): New function.
  14172. * src/OptionParser.h, src/OptionParser.cc: New class.
  14173. * src/OptionHandler.h: New class.
  14174. * src/NameMatchOptionHandler.h: New class.
  14175. * src/OptionHandlerImpl.h: New classes.
  14176. * src/prefs.h: '_' -> '-'
  14177. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  14178. (FTP_PASV): New definition.
  14179. * src/Util.h, src/Util.cc (getRealSize): New function.
  14180. To disable netrc support if .netrc file does not have correct
  14181. permissions:
  14182. * src/File.h, src/File.cc (mode): New function.
  14183. To prevent confidential information to be logged:
  14184. * src/HttpConnection.h, src/HttpConnection.cc
  14185. (eraseConfidentialInfo): New function.
  14186. (sendRequest): Call eraseConfidentialInfo().
  14187. (sendProxyRequest): Call eraseConfidentialInfo().
  14188. * src/main.cc: Validate permissions of .netrc file.
  14189. To add --user-agent command-line option:
  14190. * src/main.cc: Added new command line option: --user-agent
  14191. * src/prefs.h (PREF_USER_AGENT): New definition.
  14192. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  14193. parameter to HttpRequest object.
  14194. * src/AbstractProxyRequestCommand.cc
  14195. (executeInternal): Set user-agent option parameter to HttpRequest
  14196. object.
  14197. Marged the patches from Dan Fandrich.
  14198. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14199. Use filename and size from Metalink file instead of sending HEAD
  14200. request:
  14201. * src/UrlRequestInfo.h
  14202. (_filename): New variable.
  14203. (_totalLength): New variable.
  14204. (setTotalLength): New variable.
  14205. (setFilename): New variable.
  14206. * src/MetalinkRequestInfo.cc
  14207. (execute): Set filename and size to UrlRequestInfo
  14208. * src/UrlRequestInfo.cc
  14209. (execute): Use filename and size from Metalink instead of seding
  14210. HEAD request to servers.
  14211. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14212. To add the ability to resume downloading a partially downloaded file
  14213. which is downloaded from the beginning:
  14214. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  14215. takes this role.
  14216. * src/main.cc: Added -c option.
  14217. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  14218. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  14219. * src/prefs.h (PREF_CONTINUE): New definition.
  14220. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  14221. * src/DefaultDiskWriter.cc
  14222. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  14223. * src/AbstractDiskWriter.h
  14224. (glowFileAllocator): New variable.
  14225. * src/AbstractDiskWriter.cc
  14226. (openExistingFile): Now preallocate file space from the end of the
  14227. existing file if totalLength argument is specified and grater than 0.
  14228. * src/UrlRequestInfo.cc: If -c option is specified and the file
  14229. to download exists in local, continue the download of the file.
  14230. --allow-overwrite=true is assumed in this context.
  14231. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  14232. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  14233. Throw exception if --check-integrity=true is specified but chunk
  14234. checksums are not provided:
  14235. * src/UrlRequestInfo.cc
  14236. Do not print URLs to stdout:
  14237. * src/UrlRequestInfo.cc
  14238. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14239. * src/Request.h: Use AuthResolver to get authentication information.
  14240. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  14241. set to RequestFactory object.
  14242. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  14243. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  14244. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  14245. create Request object.
  14246. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  14247. To integrate Netrc into exsiting classes:
  14248. * src/Request.h
  14249. (_userDefinedAuthConfig): New variable.
  14250. (findNetrcAuthenticator): New function.
  14251. (segment): Removed.
  14252. (setUserDefinedAuthConfig): New function.
  14253. (resolveHttpAuthConfigItem): New function.
  14254. (resolveFtpAuthConfigItem): New function.
  14255. (resolveHttpProxyAuthConfigItem): New function.
  14256. * src/HttpRequest.h
  14257. (authConfig): Removed.
  14258. (proxyAuthConfig): Removed.
  14259. (setAuthConfig): Removed.
  14260. (setProxyAuthConfig): Removed.
  14261. * src/UrlRequest.h
  14262. (getHeadResult): Added a parameter: authConfigHandle
  14263. * src/common.h
  14264. (SingletonHolder.h): New include.
  14265. * src/main.cc
  14266. (Netrc.h): New include.
  14267. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  14268. Added initial value of PREF_NETRC_PATH.
  14269. Added the initialization of netrc.
  14270. * src/AuthConfig.h: New class.
  14271. * src/prefs.h
  14272. (PREF_NETRC_PATH): New definition.
  14273. * src/HttpAuthConfig.h: Removed.
  14274. * src/Netrc.cc
  14275. (getRequiredNextToken): New function.
  14276. (skipMacdef): New function.
  14277. (parse): Rewritten.
  14278. * src/Netrc.h
  14279. (getRequiredNextToken): New function.
  14280. (skipMacdef): New function.
  14281. * src/Util.h, src/Util.cc
  14282. (getHomeDir): New function.
  14283. * src/TrackerWatcherComand.cc
  14284. (createRequestCommand): Use AuthConfig.
  14285. * src/FtpConnection.cc
  14286. (sendUser): Use Request::resolveFtpAuthConfigItem().
  14287. (sendPass): Use Request::resolveFtpAuthConfigItem().
  14288. * src/Request.cc
  14289. (findNetrcAuthenticator): New function.
  14290. (resolveHttpAuthConfigItem): New function.
  14291. (resolveFtpAuthConfigItem): New function.
  14292. (resolveHttpProxyAuthConfigItem): New function.
  14293. * src/UrlRequestInfo.cc: Use AuthConfig.
  14294. * src/HttpRequest.cc
  14295. (createRequest): Use authConfig.
  14296. (getProxyAuthString): Use authConfig.
  14297. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  14298. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  14299. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14300. To reduce overhead to find commands whose socket is either
  14301. readable or writable in the download engine loop:
  14302. * src/Command.h, src/Command.cc
  14303. (STATUS): New enum.
  14304. (status): New variable.
  14305. (statusMatch): New function.
  14306. (setStatusActive): New function.
  14307. (setStatusInactive): New function.
  14308. * src/DownloadEngine.h, src/DownloadEngine.cc
  14309. (executeCommand): New function.
  14310. (run): Simplified.
  14311. (waitData): Call Command::setStatusActive() when command's socket is
  14312. readable or writable.
  14313. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14314. To handle Segment as SegmentHandle:
  14315. * src/AbstractCommand.cc (execute): Rewritten.
  14316. * src/SegmentMan.h: Segment -> SegmentHandle
  14317. Introducded HttpResponse class, HttpRequest class to improve code
  14318. extensiveness and make it clear:
  14319. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  14320. HttpResponse class.
  14321. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  14322. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  14323. * src/HttpConnection.cc: Contruction of http request were moved to
  14324. HttpRequest class.
  14325. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  14326. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  14327. * src/HttpAuthConfig.h: New class.
  14328. * src/Range.h: New class.
  14329. To make FtpTunnel{Request, Response}Command and
  14330. HttpProxy{Request, Response}Command derived from
  14331. AbstractProxy{Request, Response}Command:
  14332. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  14333. Derived from AbstractProxyRequestCommand class.
  14334. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  14335. Derived from AbstractProxyResponseCommand class.
  14336. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  14337. Derived from AbstractProxyRequestCommand class.
  14338. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  14339. Derived from AbstractProxyResponseCommand class.
  14340. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  14341. : New class.
  14342. * src/AbstractProxyResponseCommand.h,
  14343. src/AbstractProxyResponseCommand.cc: New class.
  14344. To add netrc support:
  14345. * src/Netrc.h, src/Netrc.cc: New class.
  14346. * src/Util.h, src/Util.cc (split): New function.
  14347. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  14348. "Content-Range" header instead of "Range" header.
  14349. * src/HttpHeader.h
  14350. (getStatus): Removed.
  14351. (setStatus): Removed.
  14352. * src/Segment.h
  14353. (getPositionToWrite): New function.
  14354. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14355. * src/HttpHeader.h
  14356. (Range.h): New include.
  14357. (status): New variable.
  14358. (HttpHeader): Initialized status with 0.
  14359. (getStatus): New function.
  14360. (setStatus): New function.
  14361. (getRange): New function.
  14362. (HttpHeaderHandle): New function.
  14363. * src/HttpHeader.cc
  14364. (getRange): New function.
  14365. * src/Request.h
  14366. (RequestWeakHandle): New definition.
  14367. * src/HttpConnection.h
  14368. (HttpConnectionHandle): New type definition.
  14369. * src/HttpConnection.cc
  14370. (receiveResponse): Set HTTP status to headers.
  14371. * src/main.cc
  14372. (showUsage): Fixed typo.
  14373. * src/Segment.h
  14374. (SegmentHandle): New type definition.
  14375. * src/BitfieldMan.h
  14376. (getMissingUnusedLength): New function.
  14377. * src/BitfieldMan.cc
  14378. (getMissingUnusedLength): New function.
  14379. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14380. To fix static initialization order problem:
  14381. * src/BitfieldManFactory.h
  14382. (defaultRandomizer): Removed.
  14383. (factory): New variable.
  14384. (getNewFactory): Removed.
  14385. (getFactoryInstance): New function.
  14386. (setDefaultRandomizer): Rewritten.
  14387. (getDefaultRandomizer): Rewritten.
  14388. * src/BitfieldManFactory.cc
  14389. (defaultRandomizer): Removed.
  14390. (factory): Initialized to 0.
  14391. (BitfieldManFactory): Initialized randomizer to 0.
  14392. * src/DefaultPieceStorage.cc
  14393. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  14394. * src/Peer.cc
  14395. (Peer): getNewFactory() -> getFactoryInstance()
  14396. * src/SegmentMan.cc
  14397. (initBitfield): getNewFactory() -> getFactoryInstance()
  14398. * src/Piece.cc
  14399. (Piece): getNewFactory() -> getFactoryInstance()
  14400. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14401. To fix the bug that causes crash on Max OS X:
  14402. * src/SimpleRandomizer.h
  14403. (getInstance): Create new instance if the static variable is null.
  14404. * src/SimpleRandomizer.cc
  14405. (randomizer): Initialized to 0.
  14406. * src/BitfieldManFactory.h
  14407. (getNewFactory): Removed the call to setRandomizer().
  14408. To fix the miscalculation of the range of checksum:
  14409. * src/BitfieldMan.h
  14410. (isBitSetOffsetRange): New function.
  14411. * src/BitfieldMan.cc
  14412. (isBitSetOffsetRange): New function.
  14413. * src/SegmentMan.cc
  14414. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  14415. Use bitfield->getBlockLength() instead of segment.segmentLength.
  14416. * Release 0.10.1
  14417. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14418. To lower CPU usage in BitTorrent download when --max-upload-limit
  14419. command-line option specified:
  14420. * src/DefaultBtMessageDispatcher.cc
  14421. (sendMessages): Calculate uploading speed only when current message
  14422. is uploading data and is not sent yet.
  14423. * src/DefaultPeerStorage.h
  14424. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  14425. * src/HttpResponseCommand.cc
  14426. (handleDefaultEncoding): Added the cast to int32_t to itos.
  14427. This fixes compile error in Soralis 10.
  14428. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14429. To fix segfault in Metalink download:
  14430. * src/UrlRequestInfo.h
  14431. (filename): Removed.
  14432. (totalLength): Removed.
  14433. (setTotalLength): Removed.
  14434. (setFilename): Removed.
  14435. * src/MetalinkRequestInfo.cc
  14436. (execute): Do not set filename and totalLength to reqInfo.
  14437. Set chunk checksum to reqInfo if it is not null.
  14438. * src/HttpResponseCommand.cc
  14439. (executeInternal): Fixed filename in log.
  14440. (handleDefaultEncoding): Removed the call to initBitfield() and
  14441. markAllPiecesDone().
  14442. (handleOtherEncoding): Added HEAD method handling.
  14443. * src/FtpNegotiateCommand.cc
  14444. (executeInternal): Added SEQ_HEAD_OK handling.
  14445. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  14446. return false.
  14447. * src/FtpNegotiateCommand.h
  14448. (SEQ_HEAD_OK): New definition.
  14449. * src/SegmentMan.cc
  14450. (initBitfield): Delete bitfield.
  14451. (isChunkChecksumValidationReady): Fixed the condition.
  14452. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  14453. works fine.
  14454. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14455. * src/Xml2MetalinkProcessor.h
  14456. (xpathExists): New function.
  14457. * src/Xml2MetalinkProcessor.cc
  14458. (xpathExists): New function.
  14459. Not to send HEAD request if filename and size are available in Metalink
  14460. file:
  14461. * src/UrlRequestInfo.h
  14462. (filename): New variable.
  14463. (totalLength): New variable.
  14464. (setTotalLength): New function.
  14465. (setFilename): New function.
  14466. * src/MetalinkRequestInfo.cc
  14467. (execute): Set filename and size to UrlRequestInfo.
  14468. * src/MetalinkEntry.cc
  14469. (MetalinkEntry): Initialize size with 0.
  14470. * src/UrlRequestInfo.cc
  14471. (execute): Set filename and size to SegmentMan.
  14472. Not to download rest of the files after selected files are downloaded
  14473. in BitTorrent:
  14474. * src/PieceStorage.h
  14475. (allDownloadFinished): New function.
  14476. * src/DefaultBtAnnounce.cc
  14477. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  14478. downloadFinished.
  14479. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  14480. * src/DefaultPieceStorage.cc
  14481. (completePiece): Use allDownloadFinished instead of downloadFinished.
  14482. Commented out the call to finishSelectiveDownloadingMode().
  14483. (downloadFinished): Call isFilteredAllBitSet() instead of
  14484. isAllBitSet().
  14485. (allDownloadFinished): New function.
  14486. * src/DefaultBtInteractive.cc
  14487. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  14488. downloadFinished().
  14489. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  14490. * src/TorrentDownloadEngine.cc
  14491. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  14492. * src/BitfieldMan.h
  14493. (isFilteredAllBitSet): New function.
  14494. * src/ShareRatioSeedCriteria.h
  14495. (PieceStorage.h): New include.
  14496. (pieceStorage): New variable.
  14497. (evaluate):
  14498. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  14499. * src/BitfieldMan.cc
  14500. (isFilteredAllBitSet): New function.
  14501. (isAllBitSet): Filter is not took into account.
  14502. Rename --force-truncate as --allow-overwrite:
  14503. * src/TorrentRequestInfo.cc
  14504. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  14505. * src/main.cc
  14506. (showUsage): --force-truncate -> --allow-overwrite
  14507. * src/message.h
  14508. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  14509. * src/prefs.h
  14510. (PREF_FORCE_TRUNCATE): Removed.
  14511. (PREF_ALLOW_OVERWRITE): New definition.
  14512. * src/SegmentMan.cc
  14513. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  14514. * src/MetalinkRequestInfo.cc
  14515. (execute): Queueing message are now logged in info level.
  14516. * src/common.h
  14517. (LONG_LONG_MAX): Removed.
  14518. (LONG_LONG_MIN): Removed.
  14519. * src/HttpResponseCommand.cc
  14520. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  14521. * src/FtpNegotiateCommand.cc
  14522. (recvSize): LONG_LONG_MAX -> INT64_MAX
  14523. * src/main.cc
  14524. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  14525. command-line option.
  14526. (main): Added --check-integriy and --realtime-chunk-checksum
  14527. command-line option.
  14528. --force-truncate -> --allow-overwrite
  14529. Set initial value of --check-integrity option to false.
  14530. Don't show usage when error occurs while persing command-line options.
  14531. Removed deprecated --upload-limit option.
  14532. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14533. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  14534. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  14535. * src/BtAllowedFastMessage.cc:
  14536. * src/BtBitfieldMessage.cc
  14537. * src/BtCancelMessage.cc
  14538. * src/BtChokeMessage.cc
  14539. * src/BtHaveAllMessage.cc
  14540. * src/BtHaveMessage.cc
  14541. * src/BtHaveNoneMessage.cc
  14542. * src/BtInterestedMessage.cc
  14543. * src/BtNotInterestedMessage.cc
  14544. * src/BtPieceMessage.cc
  14545. * src/BtPortMessage.cc
  14546. * src/BtRejectMessage.cc
  14547. * src/BtRequestMessage.cc
  14548. * src/BtSuggestPieceMessage.cc
  14549. * src/BtUnchokeMessage.cc
  14550. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  14551. files are affected.
  14552. * src/ChunkChecksumValidator.cc
  14553. * src/SegmentMan.cc
  14554. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14555. To add chunk checksum validation:
  14556. * src/MetalinkEntry.h
  14557. (MetalinkChunkChecksum.h): New include.
  14558. (chunkChecksum): New variable.
  14559. * src/Request.h
  14560. (method): New variable.
  14561. (setMethod): New function.
  14562. (getMethod): New function.
  14563. (METHOD_GET): New static constant.
  14564. (METHOD_HEAD): New static constant.
  14565. * src/Xml2MetalinkProcessor.h
  14566. (getPieceHash): New function.
  14567. * src/PieceStorage.h
  14568. (markAllPiecesDone): New function.
  14569. (checkIntegrity): New function.
  14570. * src/FileAllocator.h
  14571. (NullFileAllocationMonitor.h): New include.
  14572. (FileAllocator): Initialize fileAllocationMonitor with new
  14573. NullFileAllocationMonitor().
  14574. * src/MultiDiskAdaptor.h
  14575. (messageDigest.h): Remove include.
  14576. (ctx): Removed.
  14577. (hashUpdate): Added ctx.
  14578. (MultiDiskAdaptor): Removed ctx.
  14579. (sha1Sum): Renamed as messageDigest.
  14580. (messageDigest): New function.
  14581. * src/UrlRequestInfo.h
  14582. (HeadResult): New class.
  14583. (digestAlgo): New variable.
  14584. (chunkChecksumLength): New variable.
  14585. (chunkChecksums): New variable.
  14586. (getHeadResult): New function.
  14587. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  14588. (setDigestAlgo): New function.
  14589. (setChunkChecksumLength): New function.
  14590. (setChunkChecksums): New function.
  14591. * src/DefaultPieceStorage.cc
  14592. (DiskAdaptorWriter.h): New include.
  14593. (ChunkChecksumValidator.h): New include.
  14594. (markAllPiecesDone): New function.
  14595. (checkIntegrity): New function.
  14596. * src/DefaultBtContext.h
  14597. (getPieceHashes): New function.
  14598. * src/TorrentRequestInfo.cc
  14599. (execute): Try to validate chunk checksum if file already exists and
  14600. .aria2 file doesn't there and user allows aria2 to overwrite it.
  14601. * src/messageDigest.h
  14602. (~MessageDigestContext): Added digestFree().
  14603. * src/MetalinkRequestInfo.cc
  14604. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  14605. * src/DiskAdaptor.h
  14606. (messageDigest.h): New include.
  14607. (sha1Sum): Renamed as messageDigest.
  14608. (messageDigest): New function.
  14609. * src/DownloadCommand.h
  14610. (PeerStat.h): New include.
  14611. (maxDownloadSpeedLimit): New variable.
  14612. (startupIdleTime): New variable.
  14613. (lowestDownloadSpeedLimit): New variable.
  14614. (peerStat): New variable.
  14615. (setMaxDownloadSpeedLimit): New function.
  14616. (setStartupIdleTime): New function.
  14617. (setLowestDownloadSPeedLimit): New function.
  14618. * src/BtContext.h
  14619. (getPieceHashes): New function.
  14620. * src/main.cc
  14621. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  14622. option to true for testing purpose.
  14623. * src/BtPieceMessage.cc
  14624. (checkPieceHash): Use messageDigest
  14625. * src/DownloadEngine.cc
  14626. (SetDescriptor): Removed.
  14627. (AccumulateActiveCommand): Removed.
  14628. (waitData): Rewritten.
  14629. (updateFdSet): Rewritten.
  14630. * src/MultiDiskAdaptor.cc
  14631. (hashUpdate): Added ctx.
  14632. (sha1Sum): Renamed as messageDigest.
  14633. (messageDigest): New function.
  14634. * src/BitfieldMan.h
  14635. (isBitRangeSet): New function.
  14636. (unsetBitRange): New function.
  14637. * src/ByteArrayDiskWriter.h
  14638. (sha1Sum): Renamed as messageDigest.
  14639. (messageDigest): New function.
  14640. * src/ConsoleDownloadEngine.cc
  14641. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  14642. * src/DiskWriter.h
  14643. (messageDigest.h): New include.
  14644. (sha1Sum): Renamed as messageDigest.
  14645. (messageDigest): New function.
  14646. * src/ChunkChecksumValidator.h: New class.
  14647. * src/DiskAdaptorWriter.h: New class.
  14648. * src/prefs.h
  14649. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  14650. (PREF_CHECK_INTEGRITY): New definition.
  14651. * src/HttpResponseCommand.cc
  14652. (handleDefaultEncoding): Added method "HEAD" handling.
  14653. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14654. (handleOtherEncoding):
  14655. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  14656. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  14657. startupIdleTime, lowestDownloadSpeedLimit to command.
  14658. * src/SegmentMan.h
  14659. (getSegmentEntryByIndex): New function.
  14660. (getSegmentEntryByCuid): New function.
  14661. (getSegmentEntryIteratorByCuid): New function.
  14662. (diskWriter): DiskWriter -> DiskWriterHandle
  14663. (pieceHashes): New variable.
  14664. (chunkHashLength): New variable.
  14665. (digestAlgo): New variable.
  14666. (FindPeerStat): Removed.
  14667. (getPeerStat): Rewritten.
  14668. (markAllPiecesDone): New function.
  14669. (checkIntegrity): New function.
  14670. (tryChunkChecksumValidation): New function.
  14671. (isChunkChecksumValidationReady): New function.
  14672. * src/BitfieldMan.cc
  14673. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  14674. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  14675. blocks to 0.
  14676. (isBitRangeSet): New function.
  14677. (unsetBitRange): New function.
  14678. * src/FtpNegotiateCommand.cc
  14679. (executeInternal): Set maxDownloadSpeedLimit,
  14680. startupIdleTime, lowestDownloadSpeedLimit to command.
  14681. (recvSize): Added method "HEAD" handling.
  14682. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14683. * src/AbstractSingleDiskAdaptor.cc
  14684. (sha1Sum): Renamed as messageDigest.
  14685. (messageDigest): New function.
  14686. * src/AbstractSingleDiskAdaptor.h
  14687. (sha1Sum): Renamed as messageDigest.
  14688. (messageDigest): New function.
  14689. * src/Util.h
  14690. (indexRange): New function.
  14691. * src/MetalinkEntry.cc
  14692. (MetalinkEntry): Initialized chunkChecksum to 0.
  14693. * src/ShaVisitor.cc
  14694. (~ShaVisitor): Removed the call to ctx.digestFree().
  14695. * src/SegmentMan.cc
  14696. (ChunkChecksumValidator.h): New include.
  14697. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  14698. to DIGEST_ALGO_SHA1.
  14699. (~SegmentMan): Removed diskWriter.
  14700. (FindSegmentEntryByIndex): Removed.
  14701. (FindSegmentEntryByCuid): Removed.
  14702. (checkoutSegment): Rewritten.
  14703. (findSlowerSegmentEntry): Rewritten.
  14704. (getSegment): Rewritten.
  14705. (updateSegment): Rewritten.
  14706. (completeSegment): Rewritten.
  14707. (markAllPiecesDone): New function.
  14708. (checkIntegrity): New function.
  14709. (isChunkChecksumValidationReady): New function.
  14710. (tryChunkChecksumValidation): New function.
  14711. * src/Xml2MetalinkProcessor.cc
  14712. (getEntry): Get size and set it to entry.
  14713. Get chunk checksum and set it to entry.
  14714. (getPieceHash): New function.
  14715. * src/Util.cc
  14716. (sha1Sum): Removed ctx.digestFree()
  14717. (fileChecksum): Removed ctx.digestFree()
  14718. (indexRange): New function.
  14719. * src/Request.cc
  14720. (METHOD_GET): New variable.
  14721. (METHOD_HEAD): New variable.
  14722. (Request): Added method.
  14723. * src/UrlRequestInfo.cc
  14724. (FatalException.h): New include.
  14725. (message.h): New include.
  14726. (operator<<): Added operator<< for class HeadResult.
  14727. (getHeadResult): New function.
  14728. (execute): Get filename and size in separate download engine.
  14729. * src/ChunkChecksumValidator.cc: New class.
  14730. * src/DownloadCommand.cc:
  14731. (DownloadCommand): Added peerStat.
  14732. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14733. the value from Option.
  14734. The buffer size is now 16KB.
  14735. Use peerStat member instead of getting it from SegmentMan.
  14736. Use startupIdleTime member instead of gettingit from Option.
  14737. Added chunk checksum validation.
  14738. * src/AbstractDiskWriter.cc
  14739. (AbstractDiskWriter): Removed ctx.
  14740. (~AbstractDiskWriter): Removed ctx.digestFree()
  14741. (writeDataInternal): Returns the return value of write.
  14742. (readDataInternal): Returns the return value of read.
  14743. (sha1Sum): Renamed as messageDigest
  14744. (messageDigest): New function.
  14745. * src/AbstractDiwkWriter.h
  14746. (messageDigest.h): Removed include.
  14747. (ctx): Removed.
  14748. (sha1Sum): Renamed as messageDigest
  14749. (messageDigest): New function.
  14750. * src/DefaultPieceStorage.h
  14751. (markAllPiecesDone): New function.
  14752. (checkIntegrity): New function.
  14753. * src/NullFileAllocationMonitor.h: New class.
  14754. * src/MetalinkChunkChecksum.h: New class.
  14755. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14756. To decrease CPU usage in bittorrent download, calculation results in
  14757. BitfieldMan were cached and realtime fetching PeerObject was removed
  14758. with WeakHandle introduced. Option values are set to the objects
  14759. by setter before download begins.
  14760. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14761. * src/DefaultBtRequestFactory.h
  14762. (dispatcher): BtMessageDispatcherHandle ->
  14763. BtMessageDispatcherWeakHandle.
  14764. (messageFactory): New variable.
  14765. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14766. BtMessageDispatcherWeakHandle.
  14767. (setBtMessageFactory): New function.
  14768. * src/DefaultBtMessageDispatcher.cc:
  14769. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14770. from Option.
  14771. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14772. feating the value from Option.
  14773. Use messageFactory member.
  14774. * src/PeerInteractionCommand.cc
  14775. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14776. Add reverse dependencies to factory object.
  14777. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14778. dispatcher.
  14779. Set messageFactory to receiver.
  14780. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14781. btInteractive.
  14782. Set receiver to peerObject.
  14783. Set maxDownloadSpeedLimit to this.
  14784. (executeInternal): Use maxDownloadSpeedLimit member.
  14785. * src/BtChokeMessage.cc
  14786. (doReceivedAction): Use dispatcher, requestFactory member.
  14787. (onSendComplete): Use dispatcher member.
  14788. * src/PeerInteractionCommand.h
  14789. (maxDownloadSpeedLimit): New variable.
  14790. * src/DefaultBtMessageReceiver.h
  14791. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14792. (dispatcher):
  14793. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14794. (messageFactory): New variable.
  14795. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14796. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14797. (setDispatcher):
  14798. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14799. (setBtMessageFactory): New function.
  14800. * src/DefaultBtInteractive.cc
  14801. (initiateHandshake): Use messageFactory member.
  14802. (addBitfieldMessageToQueue): Use messageFactory member.
  14803. (addAllowedFastMessageToQueue): Use messageFactory member.
  14804. (decideChoking): Use messageFactory member.
  14805. (checkHave): Use messageFactory member.
  14806. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14807. (receiveMessages): Use maxDownloadSpeedLimit member.
  14808. (decideInterest): Use messageFactory member.
  14809. * src/BtRequestMessage.cc
  14810. (doReceivedAction): Use messageFactory, dispatcher member.
  14811. (onQueued): Use dispatcher member.
  14812. * src/BtPieceMessage.cc
  14813. (doReceivedAction): Use dispatcher member.
  14814. (send): Use peerConnection member.
  14815. (onWrongPiece): Use requestFactory member.
  14816. (handleChokingEvent): Use messageFactory, dispatcher member.
  14817. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14818. * src/BtMessageDispatcher.h
  14819. (BtMessageDispatcherWeakHandle): New type definition.
  14820. * src/SimpleBtMessage.cc
  14821. (send): Use peerConnection member.
  14822. * src/BtRejectMessage.cc
  14823. (doReceivedAction): Use dispatcher member.
  14824. * src/DefaultBtMessageDispatcher.h
  14825. (Option.h): Removed include.
  14826. (messageFactory): New variable.
  14827. (option): Removed.
  14828. (maxUploadSpeedLimit): New variable.
  14829. (requestTimeout): New variable.
  14830. (DefaultBtMessageDispatcher): Removed option.
  14831. Added maxUploadSpeedLimit, requestTimeout.
  14832. (setOption): Removed.
  14833. (getOption): Removed.
  14834. (setMaxUploadSpeedLimit): New function.
  14835. (setRequestTimeout): New function.
  14836. (setBtMessageFactory): New function.
  14837. * src/DefaultBtInteractive.h
  14838. (btMessageReceiver):
  14839. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14840. (dispatcher):
  14841. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14842. (btRequestFactory):
  14843. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14844. (peerConnection):
  14845. PeerConnectionHandle -> PeerConnectionWeakHandle
  14846. (messageFactory): New variable.
  14847. (option): Removed.
  14848. (keepAliveInterval): New variable.
  14849. (maxDownloadSpeedLimit): New variable.
  14850. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14851. (setBtMessageReceiver):
  14852. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14853. (setDispatcher):
  14854. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14855. (setBtRequestFactory):
  14856. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14857. (setPeerConnection):
  14858. PeerConnectionHandle -> PeerConnectionWeakHandle
  14859. (setOption): Removed.
  14860. (setKeepAliveInterval): New function.
  14861. (setMaxDownloadSpeedLimit): New function.
  14862. (setBtMessageFactory): New function.
  14863. * src/BitfieldMan.h
  14864. (cachedNumMissingBlock): New variable.
  14865. (cachedNumFilteredBlock): New variable.
  14866. (cachedCompletedLength): New variable.
  14867. (cachedFilteredComletedLength): New variable.
  14868. (cachedFilteredTotalLength): New variable.
  14869. (countMissingBlockNow): New function.
  14870. (countFilteredBlockNow): New function.
  14871. (getFilteredTotalLengthNow): New function.
  14872. (getCompletedLengthNow): New function.
  14873. (getFilteredCompletedLengthNow): New function.
  14874. (updateCache): New function.
  14875. * src/AbstractBtMessage.h
  14876. (BtMessageDispatcher.h): New include.
  14877. (PeerConnection.h): New include.
  14878. (BtRequestFactory.h): New include
  14879. (BtMessageFactory.h): New include.
  14880. (dispatcher): New variable.
  14881. (messageFactory): New variable.
  14882. (peerConnection: New variable.
  14883. (setBtMessageDispatcher): New function.
  14884. (setPeerConnection): New function.
  14885. (setBtMessageFactory): New function.
  14886. (setBtRequestFactory): New function.
  14887. * src/DefaultBtMessageFactory.cc
  14888. (setCommonProperty): Set dispatcher, requestFactory, this,
  14889. peerConnection to msg.
  14890. * src/BtRegistry.h
  14891. (BT_MESSAGE_RECEIVER): New macro.
  14892. * src/PeerConnection.h
  14893. (PeerConnectionWeakHandle): New type definition.
  14894. * src/BtMessageFactory.h
  14895. (BtMessageFactoryWeakHandle): New type definition.
  14896. * src/BitfieldMan.cc
  14897. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14898. cachedCompletedLength, cachedFilteredComletedLength,
  14899. cachedFilteredTotalLength.
  14900. Call updateCache().
  14901. (countMissingBlock): Return cachedNumMissingBlock.
  14902. (countMissingBlockNow): New function.
  14903. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14904. (countFilteredBlockNow): New function.
  14905. (setBit): Call updateCache().
  14906. (unsetBit): Call updateCache().
  14907. (setBitfield): Call updateCache().
  14908. (clearAllBit): Call updateCache().
  14909. (setAllBit): Use setBitInternal instead of setBit.
  14910. Call updateCache().
  14911. (addFilter): Call updateCache().
  14912. (enableFilter): Call updateCache().
  14913. (disableFilter): Call updateCache().
  14914. (clearFilter): Call updateCache().
  14915. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14916. (getFilteredTotalLengthNow): New function.
  14917. (getCompletedLength): Return cachedCompletedLength.
  14918. (getCompletedLengthNow): New function.
  14919. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14920. (getFilteredCompletedLengthNow): New function.
  14921. (updateCache): New function.
  14922. * src/BtMessageReceiver.h
  14923. (BtMessageReceiverWeakHandle): New type definition.
  14924. * src/DefaultBtMessageReceiver.cc
  14925. (receiveHandshake): Use messageFactory member.
  14926. (sendHandshake): Use messageFactory member.
  14927. (receiveMessage): Use messageFactory member.
  14928. * src/DefaultBtMessageFactory.h
  14929. (dispatcher): New variable.
  14930. (requestFactory): New variable.
  14931. (peerConnection): New variablle.
  14932. (setBtMessageDispatcher): New function.
  14933. (setBtRequestFactory): New function.
  14934. (setPeerConnection): New function.
  14935. * src/SharedHandle.h
  14936. (RefCount): New class.
  14937. (WeakHandle): New class.
  14938. * src/PeerObject.h
  14939. (BtMessageReceiver.h): New include.
  14940. (PeerObject): Added btMessageReceiver.
  14941. (btMessageReceiver): New variable.
  14942. * src/Util.cc
  14943. (countBit): Simplified.
  14944. * src/BtCancelMessage.cc
  14945. (doReceivedAction): Use dispatcher member.
  14946. * src/BtRequestFactory.h
  14947. (BtRequestFactoryWeakHandle): New type definition.
  14948. * src/PeerStorage.h
  14949. (downloadSpeed): int -> uint32_t
  14950. (uploadSpeed): int -> uint32_t
  14951. (sessionDownloadLength): long long int -> uint64_t
  14952. (sessionUploadLength): long long int -> uint64_t
  14953. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14954. To add RecoverableException, FatalException:
  14955. * src/AbstractCommand.cc
  14956. (onAbort): Exception -> RecoverableException
  14957. * src/PeerAbstractCommand.h
  14958. (RecoverableException.h): New include.
  14959. (onAbort): Exception -> RecoverableException.
  14960. * src/PeerInteractionCommand.cc
  14961. (onAbort): Exception -> RecoverableException.
  14962. * src/PeerAbstractCommand.cc
  14963. (execute): Exception -> RecoverableException.
  14964. (onAbort): Exception -> RecoverableException.
  14965. * src/TorrentRequestInfo.cc
  14966. (execute): Exception -> RecoverableException.
  14967. * src/MetalinkRequestInfo.cc
  14968. (execute): Exception -> RecoverableException.
  14969. * src/MetaFileUtil.cc: RecoverableException.
  14970. * src/AbstractCommand.h
  14971. (onAbort): Exception -> RecoverableException.
  14972. * src/DlRetryEx.h: Exception -> RecoverableException.
  14973. * src/DlAbortEx.h: Exception -> RecoverableException.
  14974. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14975. * src/Util.cc: Exception -> RecoverableException.
  14976. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14977. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14978. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14979. To make ID static const int
  14980. * src/BtInterestedMessage.h
  14981. (ID_t): Removed.
  14982. (ID): New variable.
  14983. (getId): Made non-const.
  14984. * src/BtPieceMessage.h
  14985. (ID_t): Removed.
  14986. (ID): New variable.
  14987. (getId): Made non-const.
  14988. * src/BtChokeMessage.h
  14989. (ID_t): Removed.
  14990. (ID): New variable.
  14991. (getId): Made non-const.
  14992. * src/BtHaveAllMessage.h
  14993. (ID_t): Removed.
  14994. (ID): New variable.
  14995. (getId): Made non-const.
  14996. * src/BtKeepAliveMessage.h
  14997. (ID_t): Removed.
  14998. (ID): New variable.
  14999. (getId): Made non-const.
  15000. * src/BtHandshakeMessage.h
  15001. (ID): New variable.
  15002. (getId): Made non-const.
  15003. * src/BtSuggestPieceMessage.h
  15004. (ID_t): Removed.
  15005. (ID): New variable.
  15006. (getId): Made non-const.
  15007. * src/BtPortMessage.h
  15008. (ID_t): Removed.
  15009. (ID): New variable.
  15010. (getId): Made non-const.
  15011. * src/AbstractBtMessage.h
  15012. (id): Removed.
  15013. (AbstractBtMessage): Removed id.
  15014. (getId): Removed.
  15015. * src/BtHaveMessage.h
  15016. (ID_t): Removed.
  15017. (ID): New variable.
  15018. (getId): Made non-const.
  15019. * src/BtAllowedFastMessage.h
  15020. (ID_t): Removed.
  15021. (ID): New variable.
  15022. (getId): Made non-const.
  15023. * src/BtCancelMessage.h
  15024. (ID_t): Removed.
  15025. (ID): New variable.
  15026. (getId): Made non-const.
  15027. * src/BtNotInterestedMessage.h
  15028. (ID_t): Removed.
  15029. (ID): New variable.
  15030. (getId): Made non-const.
  15031. * src/BtChokeMessage.h
  15032. (ID_t): Removed.
  15033. (ID): New variable.
  15034. (getId): Made non-const.
  15035. * src/BtRejectMessage.h
  15036. (ID_t): Removed.
  15037. (ID): New variable.
  15038. (getId): Made non-const.
  15039. * src/BtBitfieldMessage.h
  15040. (ID_t): Removed.
  15041. (ID): New variable.
  15042. (getId): Made non-const.
  15043. * src/BtUnchokeMessage.h
  15044. (ID_t): Removed.
  15045. (ID): New variable.
  15046. (getId): Made non-const.
  15047. * src/BtRequestMessage.h
  15048. (ID_t): Removed.
  15049. (ID): New variable.
  15050. (getId): Made non-const.
  15051. * src/BtHaveMessage.h
  15052. (ID_t): Removed.
  15053. (ID): New variable.
  15054. (getId): Made non-const.
  15055. To add --force-truncate command-line option and a check whether
  15056. the file already exists:
  15057. * src/DirectDiskAdaptor.h
  15058. (getFilePath): Made virtual public.
  15059. * src/MultiDiskAdaptor.h
  15060. (File.h): New include.
  15061. (DiskWriterEntry::fileEntry): Made private.
  15062. (DiskWriterEntry::fileExists): New function.
  15063. (DiskWriterEntry::getFileEntry): New function.
  15064. (fileExists): New function.
  15065. (getFilePath): New function.
  15066. * src/TorrentRequestInfo.cc
  15067. (FatalException.h): New include.
  15068. (message.h): New include.
  15069. (RecoverableException.h): New include.
  15070. (execute): Added a check whether file is already exists or not.
  15071. * src/DiskAdaptor.h
  15072. (fileExists): New function.
  15073. (getFilePath): New function.
  15074. * src/main.cc
  15075. (showUsage): Added an explanation of --force-truncate command-line
  15076. option.
  15077. (main): Added --force-truncate command-line option.
  15078. * src/Exception.h
  15079. (setMsg): buf[256] -> buf[1024]
  15080. * src/CopyDiskWriter.h
  15081. (getFilePath): Made public virtual.
  15082. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  15083. (fileExists): New function.
  15084. * src/DownloadEngineFactory.cc
  15085. (newTorrentConsoleEngine): Don't open file here.
  15086. * src/message.h
  15087. (EX_FILE_ALREADY_EXISTS): New definition.
  15088. * src/prefs.h
  15089. (PREF_FOECE_TRUNCATE): New definition.
  15090. * src/HttpResponseCommand.cc
  15091. (handleDefaultEncoding): Added a check whether the file already exists.
  15092. * src/SegmentMan.h
  15093. (fileExists): New function.
  15094. (shouldCancelDownloadForSafety): New function.
  15095. * src/FtpNegotiateCommand.cc
  15096. (recvSize): Added a check whether the file already exists.
  15097. * src/AbstractSingleDiskAdaptor.cc
  15098. (File.h): New include.
  15099. (fileExists): New function.
  15100. * src/AbstractSingleDiskAdaptor.h
  15101. (getFilePath): Removed.
  15102. (fileExists): New function.
  15103. * src/SegmentMan.cc
  15104. (fileExists): New function.
  15105. (shouldCancelDownloadForSafety): New function.
  15106. To fix regression bug in torrent downloading:
  15107. * src/DefaultBtRequestFactory.cc
  15108. (doChokedAction): New function.
  15109. * src/DefaultBtRequestFactory.h
  15110. (doChokedAction): New function.
  15111. * src/DefaultBtMessageDispatcher.cc
  15112. (doChokedAction): Do not delete request if its target is in allowed
  15113. fast set.
  15114. * src/DefaultBtInteractive.cc
  15115. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  15116. (sendKeepAlive): Send keep alive message even if the outgoing message
  15117. queue is not empty.
  15118. (decideInterest): Simplified the code.
  15119. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  15120. it is already called when BtChokeMessage is received from a peer.
  15121. * src/BtRequestFactory.h
  15122. (doChokedAction): New function.
  15123. To clean up code:
  15124. * src/PeerInteractionCommand.h
  15125. (executeInternal): Added virtual keyword explicitly.
  15126. (prepareForRetry): Added virtual keyword explicitly.
  15127. (prepareForNextPeer): Added virtual keyword explicitly.
  15128. (onAbort): Added virtual keyword explicitly.
  15129. * src/RequestSlot.cc
  15130. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  15131. * src/BtPieceMessage.cc
  15132. (doReceivedAction): Added a debug log of piece's bitfield.
  15133. * src/Piece.h
  15134. (getBitfieldLength): New function.
  15135. * src/ByteArrayDiskWriter.cc
  15136. (clear): Added buf = 0 to avoid double free corruption.
  15137. * src/FileAllocator.cc
  15138. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  15139. Added cp.reset().
  15140. * src/BitfieldMan.h
  15141. (operator=): Rewritten.
  15142. * src/BitfieldMan.cc
  15143. (BitfieldMan): Initialized bitfield, useBitfield.
  15144. * src/PeerConnection.cc
  15145. (receiveMessage): Added a call to socket->readable() after getting
  15146. message length to avoid possible EOF.
  15147. * src/Util.cc
  15148. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  15149. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15150. To add an ability to pre-allocate file space:
  15151. * src/DirectDiskAdaptor.h: Rewritten.
  15152. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  15153. * src/MultiDiskAdaptor.h: Rewritten.
  15154. * src/DefaultPieceStorage.cc
  15155. (MultiDiskWriter.h): Removed include.
  15156. (PreAllocationDiskWriter.h): Removed include.
  15157. (FileAllocationMonitor.h): New include.
  15158. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  15159. (initStorage): Rewritten.
  15160. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15161. * src/FileAllocator.h: New class.
  15162. * src/FileAllocator.cc: New class.
  15163. * src/FileAllocationMonitor.h: New class.
  15164. * src/FileAllocationMonitor.cc: New class.
  15165. * src/ConsoleFileAllocationMonitor.h: New class.
  15166. * src/ConsoleFileAllocationMonitor.cc: New class.
  15167. * src/AbstractSingleDiskAdaptor.h: New class.
  15168. * src/AbstractSingleDiskAdaptor.cc: New class.
  15169. * src/DiskAdaptor.h
  15170. (Directory.h): Removed include.
  15171. (DiskWriter.h): Removed include.
  15172. (FileEntry.h): Removed include.
  15173. (diskWriter): Removed.
  15174. (DiskAdaptor): Removed diskWriter.
  15175. (openFile): Made pure virtual.
  15176. (closeFile): Made pure virtual.
  15177. (openExistingFile): Made pure virtual.
  15178. (initAndOpenFile): Made pure virtual.
  15179. (writeData): Made pure virtual.
  15180. (readData): Made pure virtual.
  15181. (sha1Sum): Made pure virtual.
  15182. (getStoreDir): Returns const reference of storeDir.
  15183. (DiskAdaptorHandle): New type definition.
  15184. * src/main.cc
  15185. (ConsoleFileAllocationMonitor.h): New include.
  15186. (showUsage): Added default value description of -s option.
  15187. Added the description of --file-allocation option.
  15188. (main): Set default value of --file-allocation option to 'none'.
  15189. Added --file-allocation command-line option.
  15190. Setup FileAllocationMonitorFactory.
  15191. * src/FtpInitiateConnectionCommand.cc
  15192. (executeInternal): Removed diskWriter related processing, which was
  15193. moved to FtpNegotiationCommand.cc.
  15194. * src/DirectDiskAdaptor.cc
  15195. (getFilePath): Made non-const.
  15196. * src/CopyDiskAdaptor.h
  15197. (DiskAdaptor.h): Removed include.
  15198. (DiskWriter.h): Removed include.
  15199. (AbstractSingleDiskAdaptor.h): New include.
  15200. (getFilePath): Made non-const. Added virtual keyword.
  15201. (CopyDiskAdaptor): Removed diskWriter.
  15202. (getTempFile): Returns const reference.
  15203. (CopyDiskAdaptorHandle): New type definition.
  15204. * src/ByteArrayDiskWriter.cc
  15205. (clear): Simplified.
  15206. (initAndOpenFile): Rewritten.
  15207. (openFile): Call initAndOpenFile()
  15208. * src/MultiDiskAdaptor.cc: Rewritten.
  15209. * src/DownloadEngineFactory.cc
  15210. (FileAllocator.h): New include.
  15211. (FileAllocationMonitor.h): New include.
  15212. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  15213. create DefaultDiskWriter with file allocator.
  15214. * src/DiskWriter.h
  15215. (initAndOpenFile): Added totalLength argument.
  15216. (openFile): Added totalLength argument.
  15217. * src/prefs.h
  15218. (PREF_FILE_ALLOCATION): New definition.
  15219. (V_PREALLOC): New definition.
  15220. (V_NONE): New definition.
  15221. * src/HttpResponseCommand.cc
  15222. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  15223. size.
  15224. * src/FtpNegotiateCommand.cc
  15225. (Util.h): New include.
  15226. (recvSize): Open file here.
  15227. * src/Util.h
  15228. (ullitos): New function.
  15229. * src/CopyDiskWriter.h
  15230. (getFilePath): Made non-const.
  15231. * src/DefaultDiskWriter.h
  15232. (Option.h): New include.
  15233. (totalLength): Removed.
  15234. (DefaultDiskWriter): Removed totalLength.
  15235. (initAndOpenFile): Added totalLength argument.
  15236. (DefaultDiskWriterHandle): New type definition.
  15237. (createNewDiskWriter): New function.
  15238. * src/Util.cc
  15239. (ullitos): New function.
  15240. * src/DefaultDiskWriter.cc
  15241. (message.h): New include.
  15242. (FileAllocator.h): New include.
  15243. (prefs.h): New include.
  15244. (Util.h): New include.
  15245. (DefaultDiskWriter): Removed totalLength.
  15246. (initAndOpenFile): Added file allocation.
  15247. (createNewDiskWriter): New function. Just for temporary solution.
  15248. It will be rewritten later.
  15249. * src/DiskAdaptor.cc
  15250. (DiskAdaptor): Removed diskWriter.
  15251. * src/AbstractDiskWriter.cc
  15252. (LogFactory.h): New include.
  15253. (AbstractDiskWriter): Added fileAllocator, logger.
  15254. (openFile): Added totalLength argument.
  15255. * src/AbstractDiskWriter.h
  15256. (FileAllocator.h): New include.
  15257. (Logger.h): New include.
  15258. (fileAllocator): New variable.
  15259. (logger): New variable.
  15260. (openFile): Added totalLength argument. Added virtual keyword
  15261. explicitly.
  15262. (openExistingFile): Added totalLength argument. Added virtual keyword
  15263. explicitly.
  15264. (closeFile): Added virtual keyword explicitly.
  15265. (sha1Sum): Added virtual keyword explicitly.
  15266. (writeData): Added virtual keyword explicitly.
  15267. (readData): Added virtual keyword explicitly.
  15268. (setFileAllocator): New function.
  15269. * src/DefaultPieceStorage.h
  15270. (FileAllocator.h): New include.
  15271. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15272. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15273. * src/FileProgressMonitor.h: New class.
  15274. To compile aria2 on PC-BSD:
  15275. * src/DefaultBtContext.cc
  15276. (libgen.h): New include.
  15277. To fix memory leak:
  15278. * src/Exception.h
  15279. (~Exception): Delete cause. Fixed memory leak.
  15280. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15281. Rewritten a portion of bittorrent implementation:
  15282. * src/BtMessageValidator.h: New class.
  15283. * src/BtBitfieldMessageValidator.h: New class.
  15284. * src/BtHandshakeMessageValidator.h: New class.
  15285. * src/BtRequestMessageValidator.h: New class.
  15286. * src/BtSuggestPieceMessageValidator.h: New class.
  15287. * src/BtAllowedFastMessageValidator.h: New class.
  15288. * src/BtRejectMessageValidator.h: New class.
  15289. * src/BtCancelMessageValidator.h: New class.
  15290. * src/BtPieceMessageValidator.h: New class.
  15291. * src/BtHaveMessageValidator.h: New class.
  15292. * src/BtEventListener.h: New class.
  15293. * src/AbstractBtEventListener.h: New class.
  15294. * src/BtEvent.h: New class.
  15295. * src/BtChokingEvent.h: New class.
  15296. * src/BtChokedEvent.h: New class.
  15297. * src/BtCancelSendingPieceEvent.h: New class.
  15298. * src/BtAbortOutstandingRequestEvent.h: New class.
  15299. * src/Randomizer.h: New class.
  15300. * src/SimpleRandomizer.h: New class.
  15301. * src/BtMessage.h: New class.
  15302. * src/AbstractBtMessage.h: New class.
  15303. * src/SimpleBtMessage.h: New class.
  15304. * src/BtHaveMessage.h: New class.
  15305. * src/BtInterestedMessage.h: New class.
  15306. * src/BtAllowedFastMessage.h: New class.
  15307. * src/BtUnchokeMessage.h: New class.
  15308. * src/BtCancelMessage.h: New class.
  15309. * src/BtNotInterestedMessage.h: New class.
  15310. * src/BtChokeMessage.h: New class.
  15311. * src/BtHaveNoneMessage.h: New class.
  15312. * src/BtHandshakeMessage.h: New class.
  15313. * src/BtSuggestPieceMessage.h: New class.
  15314. * src/BtHaveMessage.h: New class.
  15315. * src/BtPieceMessage.h: New class.
  15316. * src/BtHaveAllMessage.h: New class.
  15317. * src/BtKeepAliveMessage.h: New class.
  15318. * src/BtPortMessage.h: New class.
  15319. * src/BtRejectMessage.h: New class.
  15320. * src/BtBitfieldMessage.h: New class.
  15321. * src/BtRequestMessage.h: New class.
  15322. * src/DefaultBtRequestFactory.h: New class.
  15323. * src/DefaultBtMessageReceiver.h: New class.
  15324. * src/BtInteractive.h: New class.
  15325. * src/BtMessageDispatcher.h: New class.
  15326. * src/DefaultBtMessageDispatcher.h: New class.
  15327. * src/DefaultBtInteractive.h: New class.
  15328. * src/BitfieldManFactory.h: New class.
  15329. * src/HandleRegistry.h: New class.
  15330. * src/BtMessageFactory.h: New class.
  15331. * src/BtMessageReceiver.h: New class.
  15332. * src/DefaultBtMessageFactory.h: New class.
  15333. * src/PeerObject.h: New class.
  15334. * src/BtRequestFactory.h: New class.
  15335. * src/SuggestPieceMessage.h: Removed.
  15336. * src/PortMessage.h: Removed.
  15337. * src/SuggestPieceMessage.h: Removed.
  15338. * src/KeepAliveMessage.h: Removed.
  15339. * src/HandshakeMessage.h: Removed.
  15340. * src/PeerInteraction.h: Removed.
  15341. * src/UnchokeMessage.h: Removed.
  15342. * src/PieceMessage.h: Removed.
  15343. * src/RequestMessage.h: Removed.
  15344. * src/InterestedMessage.h: Removed.
  15345. * src/HaveMessage.h: Removed.
  15346. * src/CancelMessage.h: Removed.
  15347. * src/RejectMessage.h: Removed.
  15348. * src/AllowedFastMessage.h: Removed.
  15349. * src/HaveNoneMessage.h: Removed.
  15350. * src/SimplePeerMessage.h: Removed.
  15351. * src/HaveAllMessage.h: Removed.
  15352. * src/BitfieldMessage.h: Removed.
  15353. * src/PeerMessageFactory.h: Removed.
  15354. * src/NotInterestedMessage.h: Removed.
  15355. * src/ChokeMessage.h: Removed.
  15356. * src/PeerMessage.h: Removed.
  15357. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15358. To know root cause of exception:
  15359. * src/Exception.h
  15360. (cause): New variable.
  15361. (Exception): Added a parameter.
  15362. (getMsg): Return const reference to msg.
  15363. (getCause): New function.
  15364. * src/DlRetryEx.h
  15365. (DlRetryEx): Added a parameter 'cause'.
  15366. Added an overloaded constructor.
  15367. (DlAbortEx): Added a parameter 'cause'.
  15368. Added an overloaded constructor.
  15369. * src/SimpleLogger.cc
  15370. (writeLog): Log nested exception messages recursively.
  15371. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15372. * src/DefaultBtProgressInfoFile.cc
  15373. (load): Fixed memory leak when the infohash doesn't match.
  15374. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15375. * src/DefaultPeerStorage.cc
  15376. (calculateStat): Simplified the code by combining 2 loops into 1.
  15377. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15378. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  15379. for BitTorrent download:
  15380. * src/PeerAbstractCommand.cc
  15381. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  15382. * src/main.cc:
  15383. (timeoutSpecified): Removed.
  15384. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  15385. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  15386. * src/TorrentRequestInfo.cc
  15387. (timeoutSpecified): Removed.
  15388. (torrentHandler): Removed timeoutSpecified and the adjustment of
  15389. timeout value.
  15390. * src/prefs.h
  15391. (PREF_BT_TIMEOUT): New definition.
  15392. Delete unused variables:
  15393. * src/TorrentRequestInfo.cc
  15394. (requestInfo): Removed.
  15395. Move setSignalHander to Util::setGlobalSignalHandler:
  15396. * src/TorrentRequestInfo.cc:
  15397. setSignalHander -> Util::setGlobalSignalHandler
  15398. * src/main.cc
  15399. (setSignalHander): Removed.
  15400. (main): setSignalHander -> Util::setGlobalSignalHandler
  15401. * src/Util.h
  15402. (setGlobalSignalHandler): New function.
  15403. * src/Util.cc
  15404. (setGlobalSignalHandler): New function.
  15405. * src/UrlRequestInfo.cc:
  15406. setSignalHander -> Util::setGlobalSignalHandler
  15407. Reset peer status in order to exit gracefully:
  15408. * src/PeerAbstractCommand.cc
  15409. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  15410. To fix the bug that causes the number of bytes uploaded is not saved
  15411. to .aria2 file:
  15412. * src/DefaultPeerStorage.h
  15413. (removedPeerSessionDownloadLength): New variable.
  15414. (removedPeerSessionUploadLength): New variable.
  15415. * src/DefaultPeerStorage.cc
  15416. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  15417. removedPeerSessionUploadLength(0).
  15418. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  15419. through all peers, and then add removedPeerSessionDownloadLength(
  15420. removedPeerSessionUploadLength) to it.
  15421. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  15422. (to) the peer to removedPeerSessionDownloadLength
  15423. (removedPeerSessionUploadLength).
  15424. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15425. To add Metalink location option:
  15426. * src/MetalinkRequestInfo.cc
  15427. (execute): Call MetalinkEntry::setLocationPreference()
  15428. * src/main.cc
  15429. (showUsage): Added the help message for --metalink-location option.
  15430. (main): Added --metalink-location option.
  15431. * src/prefs.h
  15432. (PREF_METALINK_LOCATION): New definition.
  15433. * src/MetalinkEntry.cc
  15434. (AddLocationPreference): New function object.
  15435. (setLocationPreference): New function.
  15436. * src/Xml2MetalinkProcessor.cc
  15437. (getResource): Set location attribute to MetalinkResource
  15438. To show URLs to download
  15439. * src/UrlRequestInfo.h
  15440. (printUrls): New function.
  15441. To add multiple <file> Metalink support:
  15442. * src/MetalinkEntry.h
  15443. (MetalinkResources): Removed.
  15444. (setLocationPreference): New function.
  15445. (MetalinkEntryHandle): New type definition.
  15446. (MetalinkEntries): New type definition.
  15447. * src/Xml2MetalinkProcessor.h
  15448. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15449. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15450. (parseFile): Metalinker* -> MetalinkerHandle
  15451. * src/UrlRequestInfo.h
  15452. (execute): RequestInfo* -> RequestInfos
  15453. * src/MetalinkRequestInfo.cc
  15454. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  15455. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  15456. (execute): RequestInfo* -> RequestInfos
  15457. Added multiple <file> support. Print filename when it is queued.
  15458. * src/MetalinkRequestInfo.h
  15459. (execute): RequestInfo* -> RequestInfos
  15460. (getDownloadEngine): Removed.
  15461. * src/RequestInfo.h
  15462. (RequestInfoHandle): New type definition.
  15463. (RequestInfos): New type definition.
  15464. (execute): RequestInfo* -> RequestInfos
  15465. (getDownloadEngine): Removed.
  15466. * src/MetalinkResource.h
  15467. (MetalinkResourceHandle): New type definition.
  15468. (MetalinkResources): New type definition.
  15469. * src/MetalinkEntry.cc
  15470. (~MetalinkEntry): Removed the deletion of the elements of resources,
  15471. because the element is now of type MetalinkResourceHandle.
  15472. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  15473. (Supported): MetalinkResource* -> MetalinkResourceHandle
  15474. (dropUnsupportedResource): Removed the deletion of the elements of
  15475. resources because the element is now of type MetalinkResourceHandle.
  15476. * src/Xml2MetalinkProcessor.cc
  15477. (parseFile): Metalinker* -> MetalinkerHandle
  15478. MetalinkEntry* -> MetalinkEntryHandle
  15479. Removed try-catch block.
  15480. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15481. MetalinkResource* -> MetalinkResourceHandle
  15482. Removed try-catch block.
  15483. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15484. Free result by using xmlXPathFreeObject()
  15485. * src/Metalinker.cc
  15486. (~Metalinker): Removed the deletion of entries.
  15487. MetalinkEntry* -> MetalinkEntryHandle
  15488. (queryEntry): Add multiple <file> Metalink support.
  15489. * src/Metalinker.h
  15490. (MetalinkEntries): Removed.
  15491. (queryEntry): MetalinkEntry* -> MetalinkEntries
  15492. * src/MetalinkProcessor.h
  15493. (parseFile): Metalinker* -> MetalinkerHandle
  15494. Bug fixes:
  15495. * src/PeerChokeCommand.cc
  15496. (execute): cat01->cat02
  15497. * src/DefaultPieceStorage.cc
  15498. (DefaultPieceStorage): Added diskAdaptor(0)
  15499. * src/TrackerWatcherComand.cc:
  15500. (execute): Use btAnnounce->noMoreAnnounce()
  15501. to determin whether the function returns true or not.
  15502. * src/TrackerUpdateCommand.cc:
  15503. (execute): Use btAnnounce->noMoreAnnounce()
  15504. to determin whether the function returns true or not.
  15505. * src/FtpConnection.cc
  15506. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  15507. This is the fix of the busy loop bug.
  15508. * src/DownloadCommand.cc
  15509. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  15510. cached PeerStat.
  15511. The value of "name" entry in torrent file is now set by
  15512. *DiskAdaptor::setTopDir(...) methods.
  15513. * src/MultiDiskAdaptor.h
  15514. (topDir): New variable.
  15515. (setTopDir): New function.
  15516. (getTopDir): New function.
  15517. * src/MultiDiskAdaptor.cc
  15518. (getFilePath): Concat storDir, "/" and topDir.
  15519. (mkdir): Use getFilePath() to get the directory path for output.
  15520. * src/DefaultPieceStorage.cc
  15521. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  15522. CopyDiskAdaptor.
  15523. * src/CopyDiskAdaptor.h
  15524. (topDir): New variable.
  15525. (setTopDir): New function.
  15526. (getTopDir): New function.
  15527. * src/CopyDiskAdaptor.cc
  15528. (fixFilename): Updated.
  15529. Misc
  15530. * src/UrlRequestInfo.h
  15531. (e): Removed.
  15532. (UrlRequestInfo): Removed e.
  15533. (getDownloadEngine): Removed.
  15534. * src/UrlRequestInfo.cc
  15535. (handler): Rewritten.
  15536. (printUrls): New function.
  15537. (execute): Call printUrls().
  15538. * src/HandshakeMessage.cc
  15539. (check): peerinteraction->getBtContext() -> btContext
  15540. * src/PeerInteraction.h
  15541. (getBtContext): Removed.
  15542. * src/TorrentRequestInfo.h
  15543. (execute): RequestInfo* -> RequestInfos
  15544. (getDownloadEngine): Removed.
  15545. * src/TorrentRequestInfo.cc
  15546. (haltRequested): Removed.
  15547. (btHaltRequested): New variable.
  15548. (torrentHandler): haltRequested -> btHaltRequested
  15549. (execute): RequestInfo* -> RequestInfos
  15550. * src/TorrentConsoleDownloadEngine.cc
  15551. (afterEachIteration): haltRequested -> btHaltRequested.
  15552. * src/ConsoleDownloadEngine.h
  15553. (initStatistics): Added virtual.
  15554. (calculateStatistics): Added virtual.
  15555. (onEndOfRun): Added virtual.
  15556. (afterEachIteration): Added virtual.
  15557. * src/ConsoleDownloadEngine.cc
  15558. (haltRequested): New variable.
  15559. (afterEachIteration): New function.
  15560. * src/main.cc
  15561. (requestInfo): Removed.
  15562. * src/SegmentMan.cc
  15563. (findSlowerSegmentEntry): Refactored.
  15564. * Release 0.9.0
  15565. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15566. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  15567. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  15568. * src/TorrentMan.h: Removed.
  15569. * src/TorrentMan.cc: Removed.
  15570. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  15571. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  15572. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  15573. * src/PeerAbstractCommand.cc: Use btRuntime.
  15574. * src/BtContextAwareCommand.h: New class.
  15575. * src/FileEntry.h: Added accessor methods for following variables.
  15576. (path): Made private.
  15577. (length): Made private.
  15578. (offset): Made private.
  15579. (extracted): Made private.
  15580. (requested): Made private.
  15581. (FileEntries): New definition.
  15582. (FileEntryHandle): New definition.
  15583. * src/FileEntry.cc: New file.
  15584. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  15585. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  15586. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  15587. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  15588. * src/PieceStorage.h: New file.
  15589. * src/PeerInteractionCommand.h: Use btContext.
  15590. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  15591. btRuntime.
  15592. * src/DefaultBtProgressInfoFile.h: New file.
  15593. * src/DefaultBtProgressInfoFile.cc: New file.
  15594. * src/File.cc
  15595. (Util.h): New include.
  15596. (mkdirs): New function.
  15597. * src/MultiDiskAdaptor.h
  15598. (mkdir): New function.
  15599. * src/PeerListProcessor.h
  15600. (Peers): Removed.
  15601. * src/PeerInteraction.h
  15602. (torrentMan): Removed.
  15603. (btContext): New variable.
  15604. (peerStorage): New variable.
  15605. (pieceStorage): New variable.
  15606. (btAnnounce): New variable.
  15607. (getTorrentMan): Removed.
  15608. (getBtContext): New function.
  15609. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  15610. btAnnounce.
  15611. * src/HandshakeMessage.h
  15612. (TorrentMan.h): Removed.
  15613. * src/HandshakeMessage.cc: Use btContext.
  15614. * src/DefaultBtAnnounce.cc: New file.
  15615. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  15616. * src/DefaultPieceStorage.cc: New file.
  15617. * src/DefaultBtContext.h: New file.
  15618. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  15619. Use the accessor methods of FileEntry.
  15620. * src/CookieBox.cc: Updated to use Util::slice().
  15621. * src/PieceMessage.cc: Use btContext, pieceStorage.
  15622. * src/common.h (SharedHandle.h): New include.
  15623. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  15624. pieceStorage.
  15625. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  15626. * src/DiskAdaptor.h
  15627. (topDir): Removed.
  15628. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  15629. (setTopDir): Removed.
  15630. (getTopDir): Removed.
  15631. * src/BtContext.h: New file.
  15632. * src/DefaultPeerStorage.h: New file.
  15633. * src/PieceMessage.h (TorrentMan.h): Removed.
  15634. * src/RequestMessage.h (TorrentMan.h): Removed.
  15635. * src/TorrentDownloadEngine.h
  15636. (uploadLength): New variable.
  15637. (btContext): New variable.
  15638. (btRuntime): New variable.
  15639. (pieceStorage): New variable.
  15640. (peerStorage): New variable.
  15641. (btAnnounce): New variable.
  15642. (btProgressInfoFile): New variable.
  15643. (torrentMan): Removed.
  15644. (setBtContext): New function.
  15645. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  15646. peerStorage, btAnnounce, btProgressInfoFile.
  15647. * src/Piece.h
  15648. (toString): New function.
  15649. (Pieces): New type definition.
  15650. * src/Peer.h
  15651. (active): New variable.
  15652. (Peer): Added active.
  15653. (activate): Set active to true.
  15654. (deactivate): Set active to false.
  15655. (isActive): New function.
  15656. (Peers): New type definition.
  15657. * src/DirectDiskAdaptor.cc
  15658. (getFilePath): Use the accessor methods of FileEntry.
  15659. * src/TorrentConsoleDownloadEngine.h
  15660. (afterEachIteration): New function.
  15661. * src/TorrentConsoleDownloadEngine.cc
  15662. (haltRequested): New variable.
  15663. (sendStatistics): Use pieceStorage, btRuntime.
  15664. (afterEachIteration): New function.
  15665. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  15666. * src/Directry.h
  15667. (Directory): New function.
  15668. (DirectoryHandle): New type definition.
  15669. * src/BtProgressInfoFile.h: New file.
  15670. * src/RequestMessage.cc: Use pieceStorage.
  15671. * src/BtRuntime.h: New file.
  15672. * src/DefaultBtContext.cc: New file.
  15673. * src/BitfieldMan.h
  15674. (getCompletedLength): New function(private).
  15675. (getCompletedLength): New function.
  15676. (getFilteredCompletedLength): New function.
  15677. * src/BitfieldMan.h
  15678. (getCompletedLength): New function(private).
  15679. (getCompletedLength): New function.
  15680. (getFilteredCompletedLength): New function.
  15681. * src/MultiDiskAdaptor.cc
  15682. (mkdir): New function.
  15683. (openFile): Call mkdir().
  15684. (initAndOpenFile): Call mkdir().
  15685. * src/CancelMessage.h
  15686. (TorrentMan.h): Removed.
  15687. * src/RejectMessage.h
  15688. (TorrentMan.h): Removed.
  15689. * src/DownloadEngineFactory.cc
  15690. (DefaultPieceStorage.h): New include.
  15691. (DefaultPeerStorage.h): New include.
  15692. (DefaultBtAnnounce.h): New include.
  15693. (DefaultBtProgressInfoFile.h): New include.
  15694. (newTorrentConsoleEngine): Rewritten.
  15695. * src/ShareRatioSeedCriteria.h
  15696. (torrentMan): Removed.
  15697. (btContext): New variable.
  15698. (peerStorage): New variable.
  15699. (btRuntime): New variable.
  15700. (evaluate): Use btContext, btRuntime, peerStorage.
  15701. * src/AnnounceTier.h: New file.
  15702. * src/BtAnnounce.h: New file.
  15703. * src/BtRegistry.h: New file.
  15704. * src/PeerInitiateConnectionCommand.h: Added btContext.
  15705. * src/PeerConnection.h (TorrentMan.h): Removed.
  15706. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  15707. * src/Util.h
  15708. (slice): Added an argument.
  15709. * src/Util.cc
  15710. (slice): Added an argument to control whether trim is made or not.
  15711. * src/PeerStorage.h: New file.
  15712. * src/BtRegistry.cc: New file.
  15713. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  15714. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  15715. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  15716. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  15717. * src/TorrentRequestInfo.h
  15718. (e): Removed.
  15719. (showFileEntry): Added an argument.
  15720. (getDownloadEngine): Return 0.
  15721. * src/DefaultBtAnnounce.h: New file.
  15722. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15723. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15724. * src/PeerMessageFactory.h
  15725. (btContext): New variable.
  15726. (pieceStorage): New variable.
  15727. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15728. btAnnounce.
  15729. * src/DiskAdaptor.cc
  15730. (DiskAdaptor): Removed topDir.
  15731. (~DiskAdaptor): Removed topDir.
  15732. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15733. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15734. * src/File.h (mkdirs): New function.
  15735. * src/DefaultPeerStorage): New file.
  15736. * src/DownloadEngineFactory.h
  15737. (newTorrentConsoleEngine): Use btContext.
  15738. * src/BtContextAwareCommand.cc: New file.
  15739. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15740. * src/PeerMessage.h
  15741. (btContext): New variable.
  15742. (peerStorage): New variable.
  15743. (pieceStorage): New variable.
  15744. (setBtContext): New function.
  15745. * src/Directry.cc
  15746. (Directory): New function.
  15747. (createDir): Do nothing if name.size() == 0.
  15748. * src/AnnounceList.h
  15749. (AnnounceTier): Removed.
  15750. (AnnounceTiers): Removed.
  15751. * src/DefaultPieceStorage.h: New file.
  15752. * src/Piece.cc (toString): New function.
  15753. To fix typo:
  15754. * src/main.cc (showVersion): Fixed typo.
  15755. To fix compile warning:
  15756. * src/DelegatingPeerListProcessor.cc
  15757. (canHandle): Added "return false".
  15758. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15759. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15760. make the process of announce request testable.
  15761. * src/TrackerWatcherCommand.h
  15762. (TimeA2.h): Removed.
  15763. (interval): Removed.
  15764. (checkPoint): Removed.
  15765. (createRequestCommand): Added an argument 'url'.
  15766. (TrackerWatherCommand): Removed interval.
  15767. (createCommand): New function.
  15768. * src/DownloadEngineFactory.cc
  15769. (newTorrentConsoleEngine): Updated according to the changes in
  15770. TrackerWatherCommand.
  15771. * src/TorrentMan.cc
  15772. (DelegatingPeerListProcessor.h): New includes.
  15773. (TorrentMan): Added the initialization of announceInterval.
  15774. (isStoppedAnnounceReady): New function.
  15775. (isCompletedAnnounceReady): New function.
  15776. (isDefaultAnnounceReady): New function.
  15777. (isAnnounceReady): New function.
  15778. (getAnnounceUrl): New function.
  15779. (announceStart): New function.
  15780. (announceFailure): New function.
  15781. (announceSuccess): New function.
  15782. (isAllAnnounceFailed): New function.
  15783. (resetAnnounce): New function.
  15784. (processAnnounceResponse): New function.
  15785. (needMorePeerConnection): New function.
  15786. (noMoreAnnounce): New function.
  15787. * src/TrackerUpdateCommand.h
  15788. (getTrackerResponse): int->size_t
  15789. * src/TorrentMan.h
  15790. (isStoppedAnnounceReady): New function.
  15791. (isCompletedAnnounceReady): New function.
  15792. (isDefaultAnnounceReady): New function.
  15793. (announceInterval): New variable.
  15794. (isAnnounceReady): New function.
  15795. (getAnnounceUrl): New function.
  15796. (announceStart): New function.
  15797. (announceFailure): New function.
  15798. (announceSuccess): New function.
  15799. (isAllAnnounceFailed): New function.
  15800. (resetAnnounce): New function.
  15801. (processAnnounceResponse): New function.
  15802. (needMorePeerConnection): New function.
  15803. (noMoreAnnounce): New function.
  15804. * src/TrackerWatcherCommand.cc
  15805. (TrackerWatherCommand): Removed interval and checkPoint.
  15806. (execute): Rewritten.
  15807. (createCommand): New function.
  15808. (createRequestCommand): Rewritten.
  15809. * src/TrackerUpdateCommand.cc
  15810. (MetaFileUtil.h): Removed.
  15811. (DelegatingPeerListProcessor.h): Removed.
  15812. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15813. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15814. Request -> RequestHandle:
  15815. * src/HttpResponseCommand.h: Request->RequestHandle
  15816. * src/AbstractCommand.cc: Request->RequestHandle
  15817. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15818. * src/HttpRequestCommand.cc: Request->RequestHandle
  15819. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15820. * src/AbstractCommand.h: Request->RequestHandle
  15821. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15822. * src/HttpResponseCommand.cc: Request->RequestHandle
  15823. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15824. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15825. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15826. * src/HttpConnection.h: Request->RequestHandle
  15827. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15828. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15829. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15830. * src/DownloadCommand.h: Request->RequestHandle
  15831. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15832. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15833. * src/HttpRequestCommand.h: Request->RequestHandle
  15834. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15835. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15836. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15837. * src/HttpDownloadCommand.h: Request->RequestHandle
  15838. * src/FtpConnection.cc: Request->RequestHandle
  15839. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15840. * src/UrlRequestInfo.cc: Request->RequestHandle
  15841. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15842. * src/HttpConnection.h: Request->RequestHandle
  15843. * src/DownloadCommand.cc: Request->RequestHandle
  15844. * src/FtpConnection.h: Request->RequestHandle
  15845. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15846. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15847. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15848. * src/Request.h
  15849. (SharedHandle.h): New include.
  15850. (RequestHandle): New type definition.
  15851. (Requests): Redefined.
  15852. To add MULTITRACKER support:
  15853. * src/TrackerWatcherCommand.h
  15854. (createRequestCommand): New function.
  15855. * src/DownloadEngineFactory.cc
  15856. (newTorrentConsoleEngine): Removed req.
  15857. * src/prefs.h
  15858. (PREF_TRACKER_MAX_TRIES): New definition.
  15859. * src/TorrentMan.cc
  15860. (TorrentMan): Removed req. Added trackerNumTry.
  15861. (~TorrentMan): Removed req.
  15862. (setupInternal1): Added announceList.
  15863. * src/TorrentRequestInfo.cc
  15864. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15865. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15866. * src/main.cc
  15867. (main): Added PREF_TRACKER_MAX_TRIES.
  15868. * src/TorrentMan.h
  15869. (Request.h): Removed.
  15870. (AnnounceList.h): New include.
  15871. (trackerNumTry): New variable.
  15872. (req): Removed.
  15873. (announceList): New variable.
  15874. * src/TrackerWatcherCommand.cc
  15875. (execute): Rewritten.
  15876. (createRequestCommand): New function.
  15877. * src/TrackerUpdateCommand.cc
  15878. (execute): Updated with the use of AnnounceList.
  15879. * src/AnnounceList.cc: New class.
  15880. * src/AnnounceList.h: New class.
  15881. To fix typo:
  15882. * src/prefs.h
  15883. (PREF_MAX_TRIES): max_try->max_tries
  15884. To not to decode "+" as space in URL decode:
  15885. * src/Util.cc
  15886. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15887. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15888. To add timeout to async name resolution:
  15889. * src/AbstractCommand.h
  15890. (nameResolveFinished): New function. This is not elegant way. It needs
  15891. to be more refined.
  15892. (nameResolverCheck): New variable.
  15893. * src/AbstractCommand.cc
  15894. (AbstractCommand): Added nameResolverCheck.
  15895. (execute): Added the check whether the name resolution has finished.
  15896. (setNameResolverCheck): Set nameResolverCheck to true.
  15897. (disableNameResolverCheck): Set nameResolverCheck to false.
  15898. (nameResolverFinished): New function.
  15899. * src/FtpInitiateConnectionCommand.h
  15900. (nameResolverFinished): New function.
  15901. * src/FtpInitiateConnectionCommand.cc
  15902. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15903. * src/HttpInitiateConnectionCommand.h
  15904. (nameResolverFinished): New function.
  15905. * src/HttpInitiateConnectionCommand.cc
  15906. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15907. * src/prefs.h
  15908. (PREF_DNS_TIMEOUT): New definition.
  15909. * src/main.cc
  15910. (main): Added PREF_DNS_TIMEOUT.
  15911. To add the support for a non-compact response from a tracker:
  15912. * src/PeerListProcessor.h: New class.
  15913. * src/DefaultPeerListProcessor.h: New class.
  15914. * src/DefaultPeerListProcessor.cc: New class.
  15915. * src/CompactPeerListProcessor.h: New class.
  15916. * src/CompactPeerListProcessor.cc: New class.
  15917. * src/DelegatingPeerListProcessor.h: New class.
  15918. * src/DelegatingPeerListProcessor.cc: New class.
  15919. * src/TorrentMan.cc
  15920. (addPeer): New function(overload).
  15921. (addPeer): Delete unused peers only when new peer is added.
  15922. * src/TorrentMan.h
  15923. (PeerListProcessor.h): Included.
  15924. (Peers): Removed.
  15925. (addPeer): New function(overload).
  15926. * src/TrackerUpdateCommand.cc
  15927. (netinet/in.h): Removed.
  15928. (DelegatingPeerListProcessor.h): Included.
  15929. (execute): Updated to use DelegatingPeerListProcessor.
  15930. To fix the memory leak in TorrentMan::peers:
  15931. * src/PeerAbstractCommand.cc
  15932. (onAbort): Added peer->resetStatus().
  15933. * src/Peer.h
  15934. (resetStatus): Made public.
  15935. To improve the precision of the speed calculation:
  15936. * src/SpeedCalc.h
  15937. (nextInterval): New variable.
  15938. * src/SpeedCalc.cc
  15939. (reset): Added nextInterval.
  15940. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15941. (changeSw): Set nextInterval to 15 seconds relative to the current
  15942. instant time.
  15943. * src/main.cc
  15944. (showVersion): Updated.
  15945. (showUsage): Updated.
  15946. * Release 0.8.1
  15947. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15948. * src/main.cc
  15949. (showUsage): Commented out --min-segment-size option.
  15950. (main): Commented out --min-segment-size option.
  15951. * Release 0.8.0
  15952. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15953. * src/*.{h,cc}:
  15954. Added an exception to the license which allows linking with OpenSSL.
  15955. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15956. * src/AbstractCommand.cc
  15957. (execute): Check whether the download has finished before checking
  15958. socket status.
  15959. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15960. Do not exit even if no segment is available.
  15961. * src/prefs.h
  15962. (PREF_STARTUP_IDLE_TIME): New definition.
  15963. * src/PeerInteractionCommand.cc
  15964. (executeInternal): Removed max speed limit. Because it performs bad.
  15965. (receiveMessages): Added max speed limit. This was better than above,
  15966. but still a little bit to be desired. Sometimes the download speed
  15967. became much faster than I specified.
  15968. * src/SpeedCalc.h
  15969. (start): New variable.
  15970. (accumulatedLength): New variable.
  15971. (getAvgSpeed): New function.
  15972. * src/SpeedCalc.cc
  15973. (reset): Added start, accumulatedLength.
  15974. (update): Added calculation of an average speed.
  15975. (getAvgSpeed): New function.
  15976. * src/DownloadCommand.h
  15977. (sw): Removed.
  15978. * src/main.cc
  15979. (main): Added PREF_STARTUP_IDLE_TIME.
  15980. * src/PeerStat.h
  15981. (STATUS): Added REQUEST_IDLE.
  15982. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15983. (getAvgDownloadSpeed): New function
  15984. (requestIdle): New function.
  15985. * src/SegmentMan.h
  15986. (SegmentEntryHandle): New type definition.
  15987. (SegmentEntries): Now holds SegmentEntryHandle.
  15988. (findSlowerSegmentEntry): New funtion.
  15989. * src/SegmentMan.cc
  15990. (save): Updated according to the changes in SegmentEntries.
  15991. (read): Updated according to the changes in SegmentEntries.
  15992. (FindSegmentEntryByIndex): Updated according to the changes in
  15993. SegmentEntries.
  15994. (FindSegmentEntryByCuid): Updated according to the changes in
  15995. SegmentEntries.
  15996. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15997. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15998. Renamed uitr as itr.
  15999. (findSlowerSegmentEntry): New function.
  16000. (getSegment): Updated according to the changes in SegmentEntries.
  16001. Added the feature that cancels the segment with slow server and fast
  16002. one takes it over.
  16003. (cancelSegment): Updated according to the changes in SegmentEntries.
  16004. (getDownloadLength): Updated according to the changes in
  16005. SegmentEntries.
  16006. (init): Assigned 0 to bitfield after deleting it.
  16007. * src/DownloadCommand.cc
  16008. (STARTUP_IDLE_TIME): Removed.
  16009. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  16010. * src/PeerChokeCommand.cc
  16011. (optUnchokingPeer): Updated according to the changes in Peer.
  16012. (ResetDelta): Removed.
  16013. (UploadFaster): Updated according to the changes in Peer.
  16014. (DownloadFaster): Updated according to the changes in Peer.
  16015. (execute): I clarify the meaning of "upload" and "download" here.
  16016. "upload" means the transfer from localhost to remote host.
  16017. "download" means the transfer from remote host to localhost.
  16018. Based on this rule, I swapped orderByUploadRate and
  16019. orderByDownloadRate.
  16020. * src/PeerInteractionCommand.cc
  16021. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  16022. (executeInternal): Removed the argument of
  16023. peerInteraction->sendMessages().
  16024. (receiveMessages): Rewritten download speed limit.
  16025. (sendKeepAlive): Removed peerInteraction->sendMessages().
  16026. * src/HttpResponseCommand.cc
  16027. (handleDefaultEncoding): If file size is unknown in torrent request,
  16028. do not call segmentMan->initBitfield() here.
  16029. Disabled persistent connection feature in torrent request.
  16030. * src/UrlRequestInfo.h
  16031. (UrlRequestInfo): Removed const qualifier from option.
  16032. * src/TorrentMan.h
  16033. (TransferStat): New class.
  16034. (deltaDownloadLength): Removed.
  16035. (deltaUploadLength): Removed.
  16036. (addDeltaDownloadLength): Removed.
  16037. (getDeltaDownloadLength): Removed.
  16038. (resetDeltaDownloadLength): Removed.
  16039. (addDeltaUploadLength): Removed.
  16040. (getDeltaUploadLength): Removed.
  16041. (resetDeltaUploadLength): Removed.
  16042. (addActivePeer): Added peer->activate().
  16043. (deleteActivePeer): Added peer->deactivate().
  16044. (calculateStat): New function.
  16045. * src/TorrentMan.cc
  16046. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  16047. (calculateStat): New function.
  16048. * src/PeerInteraction.h
  16049. (uploadLimit): Removed.
  16050. (option): New variable.
  16051. (setUploadLimit): Removed.
  16052. (getUploadSpeed): Removed.
  16053. (sendMessages): Removed the argument "currentUploadSpeed".
  16054. * src/PeerInteraction.cc
  16055. (prefs.h): Included.
  16056. (PeerInteraction): Removed uploadLimit. Added option.
  16057. (sendMessages): Rewritten upload speed limit.
  16058. (sendHandshake): Removed the argument from sendMessages().
  16059. (sendBitfield): Removed the argument from sendMessages().
  16060. * src/PeerAbstractCommand.cc
  16061. (execute): Commented out the portion of upload limit.
  16062. (onAbort): Removed peer->resetStatus().
  16063. * src/TorrentRequestInfo.cc
  16064. (timeoutSpecified): Declared extern.
  16065. (execute): Set timeout to 180 if timeout is not specified by.
  16066. command-line.
  16067. * src/PieceMessage.cc
  16068. (receivedAction): Added peer->updateDownloadLength().
  16069. Removed peer->addPeerUpload().
  16070. Removed torrentMan->addDeltaDownloadLength().
  16071. (send): Added peer->updateUploadLength().
  16072. Removed peer->addPeerDownload().
  16073. Removed torrentMan->addDeltaUploadLength().
  16074. * src/main.cc
  16075. (timeoutSpecified): New variable.
  16076. (main): Set timeoutSpecified to false.
  16077. If the command-line option "--upload-limit" is specified, then
  16078. timeoutSpecified is set to true. This option will remain in the next
  16079. release, but be deprecated in the future release.
  16080. * src/TorrentRequestInfo.h
  16081. (TorrentRequestInfo): Removed const qualifier from op.
  16082. * src/PeerStat.h
  16083. (uploadSpeed): New variable.
  16084. (PeerStat): Added default value to cuid.
  16085. (calculateUploadSpeed): New function.
  16086. (updateUploadLength): New function.
  16087. (getMaxUploadSpeed): New function.
  16088. (getAvgUploadSpeed): New function.
  16089. (reset): Added uploadSpeed. Set status to IDLE.
  16090. * src/TorrentDownloadEngine.h
  16091. (cp): Declared as Time.
  16092. (sessionDownloadLengthArray): Removed.
  16093. (sessionUploadLengthArray): Removed.
  16094. (currentCp): Removed.
  16095. (lastCalcStat): New variable
  16096. (lastElapsed): Removed.
  16097. (sessionDownloadLength): Removed.
  16098. (calculateStat): New function.
  16099. * src/TorrentDownloadEngine.cc
  16100. (initStatistics): Removed lastElapsed, cp[],
  16101. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  16102. currentCp, sessionDownloadLength.
  16103. Added cp.reset() and lastCalcStat.reset().
  16104. (calculateSpeed): Changed the name of the argument.
  16105. (calculateStatistics): Rewritten.
  16106. (calculateStat): New function.
  16107. * src/Peer.h
  16108. (PeerStat.h): Included.
  16109. (peerUpload): Removed.
  16110. (peerDownload): Removed.
  16111. (peerStat): New variable.
  16112. (sessionUploadLength): New variable.
  16113. (sessionDownloadLength): New variable.
  16114. (deltaUpload): Removed.
  16115. (deltaDownload): Removed.
  16116. (resetStatus): Made private.
  16117. (Peer): Added sessionUploadLength, sessionDownloadLength.
  16118. Removed peerUpload, peerDownload.
  16119. (updateUploadLength): New function.
  16120. (addDeltaUpload): Removed.
  16121. (updateDownloadLength): New function.
  16122. (resetDeltaUpload): Removed.
  16123. (getDeltaUpload): Removed.
  16124. (addDeltaDownload): Removed.
  16125. (calculateUploadSpeed): New function.
  16126. (resetDeltaDownload): Removed.
  16127. (getDeltaDownload): Removed.
  16128. (calculateDownloadSpeed): New function.
  16129. (getSessionUploadLength): New function.
  16130. (getSessionDownloadLength): New function.
  16131. (activate): New function.
  16132. (deactivate): New function.
  16133. (addPeerUpload): Removed.
  16134. (setPeerUpload): Removed.
  16135. (getPeerUpload): Removed.
  16136. (addPeerDownload): Removed.
  16137. (setPeerDownload): Removed.
  16138. (getPeerDownload): Removed.
  16139. * src/Peer.cc
  16140. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  16141. * src/MetalinkRequestInfo.h
  16142. (MetalinkRequestInfo): Removed const qualifier from op.
  16143. * src/RequestInfo.h
  16144. (op): Removed const qualifier.
  16145. (RequestInfo): Removed const qualifier from op.
  16146. * src/prefs.h
  16147. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  16148. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  16149. * src/PeerInteractionCommand.cc
  16150. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  16151. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  16152. * src/PeerInteraction.cc
  16153. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  16154. * src/main.cc
  16155. (showUsage): Updated the description of "--lowest-speed-limit" option.
  16156. Added the description of "--max-download-limit" option.
  16157. Removed the description of "--upload-limit" option.
  16158. Added the description of "--max-upload-limit" option.
  16159. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  16160. Added "--max-download-limit" option and "--max-upload-limit" option.
  16161. Added the warning message if "--upload-limit" option is used.
  16162. * src/DownloadCommand.cc
  16163. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  16164. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16165. To rewrite segment download mechanism for HTTP/FTP download.
  16166. Use BitfieldMan to manage segment download.
  16167. * src/HttpResponseCommand.h
  16168. (executeInternal): Pass the reference of segment.
  16169. * src/AbstractCommand.cc
  16170. (prepareForRetry): Call segmentMan->cancelSegment here.
  16171. (onAbort): Call segmentMan->cancelSegment here.
  16172. * src/HttpDownloadCommand.cc
  16173. (prepareForNextSegment): New function.
  16174. * src/DownloadEngineFactory.cc
  16175. (newConsoleEngine): Removed splitter.
  16176. (newTorrentConsoleEngine): Removed splitter.
  16177. * src/Request.h
  16178. (segment): Renamed from seg.
  16179. * src/FtpInitiateConnectionCommand.h
  16180. (executeInternal): Pass the reference of segment.
  16181. * src/AbstractCommand.h
  16182. (executeInternal): Pass the reference of segment.
  16183. * src/pref.h
  16184. (PREF_SEGMENT_SIZE): New definition.
  16185. * src/HttpProxyRequestCommand.h
  16186. (executeInternal): Pass the reference of segment.
  16187. * src/HttpResponseCommand.cc
  16188. (checkResponse): Allowed status 206 when a request range starts 0.
  16189. (handleDefaultEncoding): Rewritten the code related to Segment.
  16190. (handleOtherEncoding): Rewritten the code related to Segment.
  16191. * src/SegmentMan.h
  16192. (SegmentEntry): New class.
  16193. (SegmentEntries): New type definition.
  16194. (bitfield): New variable.
  16195. (usedSegmentEntries): New variable.
  16196. (onNullBitfield): New function.
  16197. (checkoutSegment): New function.
  16198. (segments): Removed.
  16199. (splitter): Removed.
  16200. (unregisterId): Removed.
  16201. (getSegment): New function(overload)
  16202. (getDownloadedSize): Removed.
  16203. (cancelSegment): New function.
  16204. (completeSegment): New function.
  16205. (initBitfield): New function.
  16206. (hasSegment): New function.
  16207. (getDownloadLength): New function.
  16208. * src/BitfieldMan.h
  16209. (getStartIndex): New function.
  16210. (getEndIndex): New function.
  16211. (getMissingUnusedIndex): New function(overload).
  16212. (getSparseMissingUnusedIndex): New function.
  16213. * src/BitfieldMan.cc
  16214. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  16215. (getMissingUnusedIndex): New function(overload).
  16216. (Range): New class.
  16217. (getStartIndex): New function.
  16218. (getEndIndex): New function.
  16219. (getSparseMissingUnusedIndex): New function.
  16220. (isBitSetInternal): Return false if the given index is less than 0.
  16221. * src/HttpInitiateConnectionCommand.h
  16222. (executeInternal): Pass the reference of segment.
  16223. * src/FtpNegotiateCommand.h
  16224. (executeInternal): Pass the reference of segment.
  16225. * src/FtpNegotiateCommand.cc
  16226. (recvSize): Initialize bitfield here.
  16227. * src/FtpTunnelResponseCommand.h
  16228. (executeInternal): Pass the reference of segment.
  16229. * src/HttpConnection.cc
  16230. (createRequest): Rewritten range header processing.
  16231. * src/DownloadCommand.h
  16232. (executeInternal): Pass the reference of segment.
  16233. (prepareForRetry): Removed.
  16234. (prepareForNextSegment): Added an argument segment. Made it a virtual
  16235. function.
  16236. * src/main.cc
  16237. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  16238. * src/SegmentMan.cc
  16239. (SegmentMan): Added bitfield. Removed splitter.
  16240. (~SegmentMan): Added bitfield. Removed splitter.
  16241. (unregisterId): Removed.
  16242. (getSegment): Rewritten.
  16243. (updateSegment): Rewritten.
  16244. (save): Rewritten.
  16245. (read): Rewritten.
  16246. (finished): Rewritten.
  16247. (getDownloadedSize): Removed.
  16248. (initBitfield): New function.
  16249. (FindSegmentEntryByIndex): New function object.
  16250. (FindSegmentEntryByCuid): New function object.
  16251. (checkoutSegment): New function.
  16252. (onNullBitfield): New function.
  16253. (getSegment): New function(overload).
  16254. (CancelSegment): New function object.
  16255. (cancelSegment): New function.
  16256. (completeSegment): New function.
  16257. (hasSegment): New function.
  16258. (getDownloadLength): New function.
  16259. * src/FtpInitiateConnectionCommand.cc
  16260. (executeInternal): Load .aria2 file after hostname resolution finishes.
  16261. * src/Segment.h: Rewritten.
  16262. * src/Segment.cc (operator<<): New function.
  16263. * src/HttpDownloadCommand.h
  16264. (prepareForNextSegment): New function.
  16265. * src/Request.cc
  16266. (resetUrl): Made segment null.
  16267. * src/DownloadEngine.cc
  16268. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  16269. * src/HttpProxyRequestCommand.h
  16270. (executeInternal): Pass the reference of segment.
  16271. * src/DownloadCommand.cc
  16272. (executeInternal): Rewritten the code related to Segment.
  16273. (prepareForRetry): Removed.
  16274. (prepareForNextSegment): Rewritten.
  16275. * src/FtpTunnelResponseCommand.h
  16276. (executeInternal): Pass the reference of segment.
  16277. To add HTTP 1.1 persistent connection support(experimental)
  16278. * src/HttpRequestCommand.cc
  16279. (executeInternal): Disable keep alive if it is disabled by
  16280. configuration.
  16281. * src/Request.h
  16282. (keepAlive): New variable.
  16283. (isKeepAlive): New function.
  16284. (setKeepAlive): New function.
  16285. * src/pref.h
  16286. (PREF_HTTP_KEEP_ALIVE): New definition.
  16287. * src/HttpResponseCommand.cc
  16288. (executeInternal): Check the remote server supports keep alive.
  16289. * src/HttpConnection.cc
  16290. (createRequest): Send "Connection: close" only if keep alive is
  16291. disabled.
  16292. * src/main.cc
  16293. (main):
  16294. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  16295. To add max download speed limit:
  16296. * src/pref.h
  16297. (PREF_MAX_SPEED_LIMIT): New definition.
  16298. * src/PeerInteractionCommand.cc
  16299. (executeInternal): Added max download speed limit. Not tested yet.
  16300. * src/SegmentMan.h
  16301. (PeerStats): New type definition.
  16302. (peerStats): New variable.
  16303. (registerPeerStat): New function.
  16304. (FindPeerStat): New function object.
  16305. (getPeerStat): New function.
  16306. (calculateDownloadSpeed): New function.
  16307. * src/SpeedCalc.h: New class.
  16308. * src/SpeedCalc.cc: New class.
  16309. * src/main.cc
  16310. (main):
  16311. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  16312. download speed is not restricted).
  16313. * src/PeerStat.h: New class.
  16314. * src/SegmentMan.cc
  16315. (registerPeerStat): New function.
  16316. (calculateDownloadSpeed): New function.
  16317. * src/DownloadCommand.cc
  16318. (STARTUP_IDLE_TIME): New definition.
  16319. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  16320. downloadStart.
  16321. (~DownloadCommand): Call peerStat->downloadStop.
  16322. (executeInternal): Added download speed limitter. Rewritten lowest
  16323. speed limitter.
  16324. * src/HttpConnection.cc
  16325. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  16326. * src/AbstractCommand.cc
  16327. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  16328. Added hostname to the error message.
  16329. * src/ConsoleDownloadEngine.cc
  16330. (calculateStatistics): Initialize psize with dlSize.
  16331. * src/PieceMessage.cc
  16332. (receivedAction): Do not call peerInteraction->abortPiece here.
  16333. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  16334. * src/BitfieldMan.h
  16335. (clearAllUseBit): New function.
  16336. (setAllUseBit): New function.
  16337. * src/BitfieldMan.cc
  16338. (clearAllBit): Do not clear useBitfield here.
  16339. (clearAllUseBit): New function.
  16340. (setAllUseBit): New function.
  16341. * src/Piece.cc
  16342. (clearAllBlock): Call bitfield->clearAllUseBit().
  16343. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16344. To make filename URL-decoded:
  16345. * src/HttpResponseCommand.h: Updated doc.
  16346. * src/HttpResponseCommand.cc
  16347. (determinFilename): Made filename URL-decoded.
  16348. * src/FtpInitiateConnectionCommand.cc
  16349. (executeInternal): Made filename URL-decoded.
  16350. * src/Util.h (urldecode): New function.
  16351. * src/Util.cc (urldecode): New function.
  16352. To fix a bug that caused assertion failure in ares_strerror:
  16353. * src/NameResolver.cc (callback): Fixed the bug.
  16354. * Release 0.7.3
  16355. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16356. To add --seed-time and --seed-ratio command-line option:
  16357. * src/Option.h (getAsDouble): New function.
  16358. * src/Option.cc (getAsDouble): New function.
  16359. * src/SeedCheckCommand.h: New class.
  16360. * src/SeedCheckCommand.cc: New class.
  16361. * src/DownloadEngineFactory.cc
  16362. (SeedCheckCommand.h): Included.
  16363. (UnionSeedCriteria.h): Included.
  16364. (TimeSeedCriteria.h): Included.
  16365. (ShareRatioSeedCriteria.h): Included.
  16366. (newTorrentConsoleEngine): Added the processing of seed option.
  16367. * src/SeedCriteria.h: New class.
  16368. * src/ShareRatioSeedCriteria.h: New class.
  16369. * src/TimeSeedCriteria.h: New class.
  16370. * src/UnionSeedCriteria.h: New class.
  16371. * src/prefs.h
  16372. (PREF_SEED_TIME): New definition.
  16373. (PREF_SEED_RATIO): New definition.
  16374. * src/main.cc
  16375. (showUsage): Added --seed-time and --seed-ratio option.
  16376. (main): Added --seed-time and --seed-ratio option.
  16377. Made default log file name "/dev/null".
  16378. * src/SharedHandle.h
  16379. (SharedHandle): Copy constructor. Made it assignable from the
  16380. SharedHandle of the subclasses.
  16381. (operator=): Made it assignable from the SharedHandle of the
  16382. subclasses.
  16383. (getRefCount): New function.
  16384. To add notice log level and the switch to write log to stdout. This
  16385. switch is configurable per log level.
  16386. * src/Logger.h
  16387. (notice): New function.
  16388. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  16389. constant.
  16390. * src/LogFactory.cc
  16391. (getInstance): The use of NullLogger was removed. A log message with
  16392. notice log level was made written to stdout along with log file.
  16393. * src/NullLogger.h
  16394. (notice): New function.
  16395. * src/SimpleLogger.h
  16396. (writeHeader): Added the 'file' argument.
  16397. (writeLog): Added the 'file' argument.
  16398. (writeFile): New function.
  16399. (stdoutField): New variable.
  16400. (SimpleLogger): Removed the default constructor.
  16401. (SimpleLogger): Made the default value of logfile 0.
  16402. (debug): Added 'virtual' keyword.
  16403. (info): Added 'virtual' keyword.
  16404. (warn): Added 'virtual' keyword.
  16405. (error): Added 'virtual' keyword.
  16406. (notice): New function.
  16407. (setStdout): New function.
  16408. * src/SimpleLogger.cc
  16409. (WRITE_LOG): Replaced writeLog with writeFile.
  16410. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  16411. (SimpleLogger): Removed the default constructor.
  16412. (setStdout): New function.
  16413. (writeLog): Added the handling of NOTICE log level.
  16414. (writeFile): New function.
  16415. (notice): New function.
  16416. * src/TorrentMan.h: Updated doc.
  16417. * src/BitfieldMan.h: Updated doc.
  16418. * src/TrackerWatcherCommand.cc
  16419. (execute): Return true if error occurred in the request to the tracker
  16420. and halt is requested.
  16421. * src/TrackerUpdateCommand.cc
  16422. (execute): Return true if error occurred in the request to the tracker
  16423. and halt is requested.
  16424. To call onDownloadComplete from TorrentMan::completePiece(), not from
  16425. DownloadEngine:
  16426. * src/TorrentConsoleDownloadEngine.h
  16427. (onSelectiveDownloadingCompletes): Removed.
  16428. * src/TorrentConsoleDownloadEngine.cc
  16429. (onSelectiveDownloadingCompletes): Removed.
  16430. * src/TorrentDownloadEngine.h
  16431. (onEndOfRun): Added 'virtual' keyword.
  16432. (afterEachIteration): Removed.
  16433. (onSelectiveDownloadingCompletes): Removed.
  16434. * src/TorrentDownloadEngine.cc
  16435. (onEndOfRun): Removed filenameFixed.
  16436. (afterEachIteration): Removed.
  16437. * src/TorrentMan.cc
  16438. (completePiece): Call onDownloadComplete here.
  16439. (onDownloadComplete): Added 2 log messages.
  16440. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16441. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  16442. * src/NameResolver.h: Added the prototype declaration of callback().
  16443. To support c-ares library:
  16444. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16445. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16446. * src/FtpInitiateConnectionCommand.h:
  16447. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16448. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16449. * src/HttpInitiateConnectionCommand.h:
  16450. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16451. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  16452. Added thes upport of c-ares's ares_strerror(the idea came from patch
  16453. #1542285 by tizianomueller)
  16454. * src/HttpInitiateConnectionCommand.cc:
  16455. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16456. * src/FtpInitiateConnectionCommand.cc:
  16457. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16458. * src/DownloadEngine.h:
  16459. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16460. * src/DownloadEngine.cc:
  16461. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16462. To fix the bug that causes compilation failure with metalink-support
  16463. disabled(bug#1543587):
  16464. * src/main.cc: Fixed with the patch by tizianomueller.
  16465. * Release 0.7.2
  16466. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16467. * src/main.cc
  16468. (main): Added a message to inform users that aria2 is starting to
  16469. verify checksum.
  16470. * src/RequestInfo.cc
  16471. (printDownloadAbortMessage): Added a message to inform users that
  16472. transfer can be resumed.
  16473. * src/FeatureConfig.cc
  16474. (FEATURE_ASYNC_DNS): New definition.
  16475. (FeatureConfig): Added aysnc DNS entry.
  16476. To replace CommandUuid with Command* in SocketEntry and
  16477. NameResolverEntry:
  16478. * src/DownloadEngine.h
  16479. (CommandUuids): Removed.
  16480. (SocketEntry::commandUuid): Removed.
  16481. (SocketEntry::command): New variable.
  16482. (SocketEntry::SocketEntry): Updated.
  16483. (SocketEntry::operator==): Updated.
  16484. (NameResolverEntry::commandUuid): Removed.
  16485. (NameResolverEntry::command): New variable.
  16486. (NameResolverEntry::NameResolverEntry): Updated.
  16487. (NameResolverEntry::operator==): Updated.
  16488. (waitData): Changed the argument type.
  16489. (addSocketForReadCheck): Changed the argument type.
  16490. (deleteSocketForReadCheck): Changed the argument type.
  16491. (addSocketForWriteCheck): Changed the argument type.
  16492. (deleteSocketForWriteCheck): Changed the argument type.
  16493. (addNameResolverCheck): Changed the argument type.
  16494. (deleteNameResolverCheck): Changed the argument type.
  16495. * src/DownloadEngine.cc
  16496. (FindCommand): Removed.
  16497. (run): Removed activeUuid. Added activeCommands instead.
  16498. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  16499. (AccumulateActiveCommand): New function object.
  16500. (waitData): Use AccumulateActiveCommand.
  16501. (addSocketForReadCheck): Use Command instead of CommandUuid.
  16502. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  16503. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  16504. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  16505. (addNameResolverCheck): Use Command instead of CommandUuid.
  16506. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  16507. * src/AbstractCommand.cc
  16508. (disableReadCheckSocket): Updated according to the changes in
  16509. DownloadEngine.
  16510. (setReadCheckSocket): Updated according to the changes in
  16511. DownloadEngine.
  16512. (disableWriteCheckSocket): Updated according to the changes in
  16513. DownloadEngine.
  16514. (setWriteCheckSocket): Updated according to the changes in
  16515. DownloadEngine.
  16516. (setNameResolverCheck): Updated according to the changes in
  16517. DownloadEngine.
  16518. (disableNameResolverCheck): Updated according to the changes in
  16519. DownloadEngine.
  16520. * src/AbstractCommand.cc
  16521. (disableReadCheckSocket): Updated according to the changes in
  16522. DownloadEngine.
  16523. (setReadCheckSocket): Updated according to the changes in
  16524. DownloadEngine.
  16525. (disableWriteCheckSocket): Updated according to the changes in
  16526. DownloadEngine.
  16527. (setWriteCheckSocket): Updated according to the changes in
  16528. DownloadEngine.
  16529. * release 0.7.1
  16530. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16531. To handle the case where some BitTorrent tracker requires all letters
  16532. except for [A-Za-z0-9] is URL encoded.
  16533. * src/Util.h
  16534. (torrentUrlencode): New function.
  16535. * src/Util.cc
  16536. (ctype.h): Included.
  16537. (torrentUrlencode): New function.
  16538. * src/TrackerWatcherCommand.cc
  16539. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  16540. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16541. To add asynchronous DNS support(libares):
  16542. * src/AbstractCommand.h
  16543. (setNameResolverCheck): New function.
  16544. (disableNameResolverCheck): New function
  16545. (resolveHostname): New function.
  16546. * src/AbstractCommand.cc
  16547. (setNameResolverCheck): New function.
  16548. (disableNameResolverCheck): New function
  16549. (resolveHostname): New function.
  16550. * src/FtpInitiateConnectionCommand.h
  16551. (nameResolver): New function.
  16552. * src/FtpInitiateConnectionCommand.cc
  16553. (Util.h): Included.
  16554. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  16555. disableWriteCheckSocket.
  16556. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  16557. (executeInternal): Added async DNS support.
  16558. * src/HttpInitiateConnectionCommand.h
  16559. (nameResolver): New function.
  16560. * src/HttpInitiateConnectionCommand.cc
  16561. (DlRetryEx.h): Included.
  16562. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  16563. disableWriteCheckSocket.
  16564. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  16565. (executeInternal): Added async DNS support.
  16566. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  16567. by extern "C" declaration.
  16568. * src/NameResolver.cc: New class.
  16569. * src/Util.h:
  16570. (isNumberAndDotsNotation): New function
  16571. * src/Util.cc
  16572. (isNumberAndDotsNotation): New function.
  16573. * src/DownloadEngine.h
  16574. (NameResolver.h): Included.
  16575. (NameResolverEntry): New class.
  16576. (NameResolverEntries): New type definition.
  16577. (addNameResolverCheck): New function.
  16578. (deleteNameResolverCheck): New function.
  16579. * src/DownloadEngine.cc
  16580. (run): Initialize cp with 0.
  16581. (SetDescriptor::operator()): Added for NameResolverEntry.
  16582. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  16583. (waitData): Check nameResolver entries.
  16584. (updateFdSet): Update fds in nameResolver entries.
  16585. (addNameResolverCheck): New function.
  16586. (deleteNameResolverCheck): new function.
  16587. * src/PeerInteractionCommand.cc
  16588. (executeInternal): Fixed wrong socket handling.
  16589. * src/main.cc
  16590. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  16591. * src/Util.cc
  16592. (fileChecksum): Removed the call to ctx.digestReset().
  16593. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16594. * po/ru.po: Azamat sent me Russian translation.
  16595. * src/FtpNegotiateCommand.cc
  16596. (recvGreeting): Call disableWriteCheckSocket just after
  16597. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  16598. (recvRetr): Recognized status code 125 as a acceptable response code.
  16599. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  16600. case-insesitive filesystem(BUG#1531057).
  16601. * src/Time.h: Renamed as TimeA2.h.
  16602. * src/Time.cc: Renamed as TimeA2.cc.
  16603. * src/TimeA2.h: New class.
  16604. * src/TimeA2.cc: New class.
  16605. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  16606. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  16607. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  16608. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  16609. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  16610. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16611. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  16612. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  16613. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  16614. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16615. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  16616. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  16617. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  16618. * release 0.7.0
  16619. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16620. * src/PeerChokeCommand.h
  16621. (PeerChokeCommand): Rearranged the arguments.
  16622. * src/PeerChokeCommand.cc
  16623. (PeerChokeCommand): Rearranged the arguments.
  16624. * src/MetalinkEntry.h
  16625. (Checksum.h): Included.
  16626. (md5): Removed.
  16627. (sha1): Removed.
  16628. (checksum): New variable.
  16629. (operator=): Updated.
  16630. (check): Removed.
  16631. * src/prefs.h
  16632. (PREF_LOWEST_SPEED_LIMIT): New definition.
  16633. (PREF_FOLLOW_TORRENT): New definition.
  16634. (PREF_SELECT_FILE): New definition.
  16635. (PREF_FOLLOW_METALINK): New definition.
  16636. * src/MetalinkResource.h
  16637. (TYPE_HTTPS): Added to enum TYPE.
  16638. * src/TorrentMan.cc
  16639. (~TorrentMan): Rewritten.
  16640. * src/MultiDiskWriter.cc
  16641. (MultiDiskAdaptor): Updated according to the changes in
  16642. MessageDigestContext.
  16643. (~MultiDiskAdaptor): Updated according to the changes in
  16644. MessageDigestContext.
  16645. (hashUpdate): Updated according to the changes in MessageDigestContext.
  16646. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16647. * src/Util.h
  16648. (fileChecksum): Updated according to the changes in
  16649. MessageDigestContext.
  16650. * src/Util.cc
  16651. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16652. (fileChecksum): Updated according to the changes in
  16653. MessageDigestContext.
  16654. * src/messageDigest.h: Rewritten.
  16655. * src/MetalinkEntry.cc
  16656. (check): Removed.
  16657. (Supported): Updated.
  16658. (dropUnsupportedResource): Fixed a memory leak.
  16659. * src/ShaVisitor.cc
  16660. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  16661. (~ShaVisitor): Updated according to the changes in
  16662. MessageDigestContext.
  16663. (visit): Updated according to the changes in MessageDigestContext.
  16664. * src/main.cc
  16665. (main): Rewritten the portion of download loop. --lowest-speed-limit
  16666. command-line option added.
  16667. * src/DownloadEngine.h
  16668. (SocketEntry): New class.
  16669. (SocketEntries): New definition.
  16670. (PairFind): Removed.
  16671. (SockCmdMap): Removed.
  16672. * src/DownloadEngine.cc
  16673. (DownloadEngine): Rewritten.
  16674. (~DownloadEngine): Rewritten.
  16675. (run): Renamed activeCommandUuids as activeUuids.
  16676. (SetDescriptor): Rewritten.
  16677. (AccumulateActiveCommandUuid): Removed.
  16678. (AccumulateActiveUuid): New function object.
  16679. (waitData): Rewritten.
  16680. (updateFdSet): Rewritten.
  16681. (addSocket): Rewritten.
  16682. (deleteSocket): Rewritten.
  16683. (addSocketForReadCheck): Rewritten.
  16684. (deleteSocketForReadCheck): Rewritten.
  16685. (addSocketForWriteCheck): Rewritten.
  16686. (deleteSocketForWriteCheck): Rewritten.
  16687. * src/Xml2MetalinkProcessor.cc
  16688. (getEntry): Rewritten the portion of MetalinkEntry creation.
  16689. * src/DownloadCommand.cc
  16690. (executeInternal): Added the check routine for lowest speed limit.
  16691. * src/AbstractDiskWriter.cc
  16692. (AbstractDiskWriter): Updated according to the changes in
  16693. MessageDigestContext.
  16694. (~AbstractDiskWriter): Updated according to the changes in
  16695. MessageDigestContext.
  16696. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16697. * src/RequestInfo.h: New class.
  16698. * src/UrlRequestInfo.h: New class.
  16699. * src/UrlRequestInfo.cc: New class.
  16700. * src/TorrentRequestInfo.h: New class.
  16701. * src/TorrentRequestInfo.cc: New class.
  16702. * src/MetalinkRequestInfo.h: New class.
  16703. * src/MetalinkRequestInfo.cc: New class.
  16704. * src/Checksum.h: New class.
  16705. * src/DownloadEngineFactory.h: New class.
  16706. * src/DownloadEngineFactory.cc: New class.
  16707. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16708. * src/Option.h
  16709. (getAsBool): New function.
  16710. * src/Option.cc
  16711. (prefs.h): Included.
  16712. (defined): 0-length value is now recognized as undefined.
  16713. (getAsInt): Rewritten.
  16714. (getAsLLInt): Rewritten.
  16715. (getAsBool): New function.
  16716. * src/FeatureConfig.h: Rewritten.
  16717. * src/FeatureConfig.cc: Rewritten.
  16718. * src/prefs.h
  16719. (PREF_STDOUT_LOG): New definition.
  16720. (PREF_LOG): New definition.
  16721. (PREF_DIR): New definition.
  16722. (PREF_OUT): New definition.
  16723. (PREF_SPLIT): New definition.
  16724. (PREF_DAEMON): New definition.
  16725. (PREF_REFERER): New definition.
  16726. (PREF_TORRENT_FILE): New definition.
  16727. (PREF_LISTEN_PORT): New definition.
  16728. (PREF_METALINK_FILE): New definition.
  16729. (PREF_METALINK_VERSION): New definition.
  16730. (PREF_METALINK_LANGUAGE): New definition.
  16731. (PREF_METALINK_OS): New definition.
  16732. (PREF_METALINK_SERVERS): New definition.
  16733. * src/main.cc
  16734. (main): Following command-line parameters are now put into Option
  16735. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16736. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16737. metalinkLanguage, metalinkOs, metalinkServers
  16738. To fix the bug that aria2 can not handle http response header properly.
  16739. * src/HttpHeader.cc
  16740. (put): Made name lowercased.
  16741. (defined): Made name lowercased.
  16742. (getFirst): Made name lowercased.
  16743. (get): Made name lowercased.
  16744. (getFirstAsInt): Rewritten.
  16745. (getFirstAsLLInt): Rewritten.
  16746. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16747. * src/TorrentMan.h:
  16748. (advertisePiece): Updated doc.
  16749. (getAdvertisedPieceIndexes): Updated doc.
  16750. (removeAdvertisedPiece); New function.
  16751. * src/TorrentMan.cc
  16752. (FindElapsedHave): New function object.
  16753. (removeAdvertisedPiece): New function.
  16754. * src/HaveEraseCommand.h: New class.
  16755. * src/HaveEraseCommand.cc: New class.
  16756. * src/FeatureConfig.h: New class.
  16757. * src/FeatureConfig.cc: New class.
  16758. * src/Request.h
  16759. (defaultPorts): Removed.
  16760. * src/Request.cc
  16761. (FeatureConfig.h): Included.
  16762. (Request): Removed the statements related to defaultPorts.
  16763. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16764. A default port number is now retrieved from FeatureConfig.
  16765. * src/main.cc
  16766. (HaveEraseCommand.h): Included.
  16767. (showVersion): Added the output of feature list.
  16768. (main): Added HaveEraseCommand to command queue in BitTorrent
  16769. downloading.
  16770. * src/PeerInteractionCommand.h
  16771. (chokeCheckPoint): Commented out.
  16772. (periodicExecPoint): New variable.
  16773. * src/PeerInteractionCommand.cc
  16774. (executeInternal): Following methods are now called in at least every
  16775. 0.5 seconds to reduce CPU usage:
  16776. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16777. checkHave(), sendKeepAlive().
  16778. (checkLongTimePeerChoking): Commented out.
  16779. * src/BitfieldMan.h
  16780. (getNthBitIndex): Changed the method signature.
  16781. (getMissingIndexRandomly): Changed the method signature.
  16782. * src/BitfieldMan.cc
  16783. (getNthBitIndex): Rewritten
  16784. (getMissingIndexRandomly): Rewritten.
  16785. (hasMissingPiece): Rewritten.
  16786. (getMissingIndex): Refactored.
  16787. (getMissingUnusedIndex); Refactored.
  16788. (getMissingIndex): Refactored.
  16789. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16790. * src/PeerMessage.h
  16791. (Piece.h): Included.
  16792. (SharedHandle.h): Included.
  16793. (invalidate): New variable.
  16794. (uploading): New variable.
  16795. (isInvalidate): New function.
  16796. (isUploading): New function.
  16797. (onPush): New function.
  16798. (onChoked): New function.
  16799. (onCanceled): New function.
  16800. (onAbortPiece): New function.
  16801. (PeerMessageHandle): New type definition.
  16802. * src/PeerMessage.cc
  16803. (PeerMessage): Added the initialization for invalidate and uploading.
  16804. * src/CancelMessage.h
  16805. (CancelMessage): Rewritten.
  16806. * src/RejectMessage.h
  16807. (RejectMessage): Rewritten.
  16808. * src/Metalinker.h
  16809. (operator=): Defined.
  16810. * src/MetaEntry.h
  16811. (operator=): Defined.
  16812. * src/MetalinkResource.h
  16813. (operator=): Defined.
  16814. * src/AllowedFastMessage.h
  16815. (AllowedFastMessage): Rewritten.
  16816. * src/HandshakeMessage.h
  16817. (HandshakeMessage): New function(overload).
  16818. * src/HandshakeMessage.cc
  16819. (HandshakeMessage): Rewritten.
  16820. (init): New function.
  16821. * src/HaveMessage.h
  16822. (HaveMessage): Rewritten.
  16823. * src/Time.h
  16824. (operator=): Defined the function body here.
  16825. * src/Time.cc
  16826. (operator=): Removed.
  16827. * src/SocketCore.h
  16828. (operator==): Defined here.
  16829. (operator!=): Defined here.
  16830. (operator<): Defined here.
  16831. * src/SocketCore.cc
  16832. (operator==): Removed.
  16833. (operator<): Removed.
  16834. * src/BitfieldMan.h
  16835. (operator=): Defined the function body here.
  16836. * src/BitfieldMan.cc
  16837. (operator=): Removed.
  16838. * src/TorrentMan.h
  16839. (deleteErrorPeer): Removed.
  16840. (deleteUnusedPeer); New function.
  16841. * src/TorrentMan.cc
  16842. (addPeer): Call deleteUnusedPeer.
  16843. (deleteErrorPeer): Removed.
  16844. (deleteUnusedPeer): New function.
  16845. * src/PeerAbstractCommand.h
  16846. (setNoCheck): New function.
  16847. (noCheck): New variable.
  16848. * src/PeerAbstractCommand.cc
  16849. (PeerAbstractCommand): Added the initialization of noCheck.
  16850. (execute): Added a check for noCheck.
  16851. (setNoCheck): New function.
  16852. * src/Util.h
  16853. (stdio.h): Included.
  16854. * src/Util.cc
  16855. (unistd.h): Included.
  16856. * src/DefaultDiskWriter.cc
  16857. (unistd.h): Included.
  16858. * src/Peer.h
  16859. (operator==): Defined the function body here.
  16860. (operator!=): Defined the function body here.
  16861. * src/Peer.cc
  16862. (operator==): Removed.
  16863. (operator!=): Removed.
  16864. * src/Piece.h
  16865. (Piece): Defined the function body here(copy constructor).
  16866. (operator=): Defined the function body here.
  16867. (operator==): Defined the function body here.
  16868. * src/Piece.cc
  16869. (Piece): Removed(copy constructor).
  16870. (operator=): Removed.
  16871. (operator==): Removed.
  16872. * src/PeerMessageUtil.h
  16873. (ChokeMessage.h): Removed.
  16874. (UnchokeMessage.h): Removed.
  16875. (InterestedMessage.h): Removed.
  16876. (NotInterestedMessage.h): Removed.
  16877. (HaveMessage.h): Removed.
  16878. (BitfieldMessage.h): Removed.
  16879. (RequestMessage.h): Removed.
  16880. (CancelMessage.h): Removed.
  16881. (PieceMessage.h): Removed.
  16882. (HandshakeMessage.h): Removed.
  16883. (KeepAliveMessage.h): Removed.
  16884. (PortMessage.h): Removed.
  16885. (HaveAllMessage.h): Removed.
  16886. (HaveNoneMessage.h): Removed.
  16887. (PeerConnection.h): Removed.
  16888. (HandshakeMessage.h): Included.
  16889. * src/BitfieldMessage.h
  16890. (init): New function.
  16891. (BitfieldMessage): Rewritten.
  16892. (BitfieldMessage): New function(overload).
  16893. * src/RequestSlot.h
  16894. (operator=): Defined the function body here.
  16895. (operator==): Defined the function body here.
  16896. * src/RequestSlot.cc
  16897. (operator=): Removed.
  16898. (operator==): Removed.
  16899. To remove the dependency on the PeerMessage subclass from
  16900. PeerInteraction:
  16901. * src/PeerMessageFactory.h: New class.
  16902. * src/PeerMessageFactory.cc: New class.
  16903. * src/SimplePeerMessage.cc
  16904. (send): If invalidate is true then do nothing.
  16905. * src/PeerInteractionCommand.cc
  16906. (HandshakeMessage.h): Included.
  16907. (KeepAliveMessage.h): Included.
  16908. (ChokeMessage.h): Included.
  16909. (UnchokeMessage.h): Included.
  16910. (HaveMessage.h): Included.
  16911. (executeInternal): Call setNoCheck().
  16912. Removed setWriteCheckSocket(socket).
  16913. * src/PeerInteraction.h
  16914. (ChokeMessage.h): Removed.
  16915. (UnchokeMessage.h): Removed.
  16916. (InterestedMessage.h): Removed.
  16917. (NotInterestedMessage.h): Removed.
  16918. (HaveMessage.h): Removed.
  16919. (BitfieldMessage.h): Removed.
  16920. (RequestMessage.h): Removed.
  16921. (CancelMessage.h): Removed.
  16922. (PieceMessage.h): Removed.
  16923. (HandshakeMessage.h): Removed.
  16924. (KeepAliveMessage.h): Removed.
  16925. (PortMessage.h): Removed.
  16926. (HaveAllMessage.h): Removed.
  16927. (HaveNoneMessage.h): Removed.
  16928. (RejectMessage.h): Removed.
  16929. (AllowedFastMessage.h): Removed.
  16930. (SuggestPieceMessage.h): Removed.
  16931. (PeerMessageFactory.h): Included.
  16932. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16933. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16934. (PeerMessageFactory): New variable.
  16935. (createPeerMessage): Removed.
  16936. (createHandshakeMessage): Removed.
  16937. (setPeerMessageCommonProperty): Removed.
  16938. (addRequestSlot): New function.
  16939. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16940. (getPeerMessageFactory): New function.
  16941. (createRequestMessage): Removed.
  16942. (createCancelMessage): Removed.
  16943. (createPieceMessage): Removed.
  16944. (createHaveMessage): Removed.
  16945. (createChokeMessage): Removed.
  16946. (createUnchokeMessage): Removed.
  16947. (createInterestedMessage): Removed.
  16948. (createNotInterestedMessage): Removed.
  16949. (createBitfieldMessage): Removed.
  16950. (createKeepAliveMessage): Removed.
  16951. (createHaveAllMessage): Removed.
  16952. (createHaveNoneMessage): Removed.
  16953. (createRejectMessage): Removed.
  16954. (createAllowedFastMessage): Removed.
  16955. * src/PeerInteraction.cc
  16956. (PeerInteraction): Allocate PeerMessageFactory here.
  16957. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16958. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16959. PieceMessage::ID.
  16960. (addMessage): Simplified by using PeerMessage::onPush().
  16961. (addRequestSlot): New function.
  16962. (rejectAllPieceMessageInQueue): Simplified by using
  16963. PeerMessage::onChoked().
  16964. (rejectPieceMessageInQueue): Simplified by using
  16965. PeerMessage::onCanceled().
  16966. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16967. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16968. (createHandshakeMessage): Removed.
  16969. (createPeerMessage): Removed.
  16970. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16971. (setPeerMessageCommonProperty): Removed.
  16972. (createRequestMessage): Removed.
  16973. (createCancelMessage): Removed.
  16974. (createPieceMessage): Removed.
  16975. (createHaveMessage): Removed.
  16976. (createChokeMessage): Removed.
  16977. (createUnchokeMessage): Removed.
  16978. (createInterestedMessage): Removed.
  16979. (createNotInterestedMessage): Removed.
  16980. (createBitfieldMessage): Removed.
  16981. (createKeepAliveMessage): Removed.
  16982. (createHaveAllMessage): Removed.
  16983. (createHaveNoneMessage): Removed.
  16984. (createRejectMessage): Removed.
  16985. (createAllowedFastMessage): Removed.
  16986. * src/PieceMessage.h
  16987. (createRejectMessage): New function.
  16988. (PieceMessage): Rewritten.
  16989. (onChoked): New function.
  16990. (onCanceled): New function.
  16991. * src/PieceMessage.cc
  16992. (send): If invalidate is true then do nothing, just return.
  16993. (createRejectMessage): New function.
  16994. (onChoked): New function.
  16995. (onCanceled): New function.
  16996. * src/RequestMessage.h
  16997. (RequestMessage): Rewritten.
  16998. (onPush): New function.
  16999. (onAbortPiece): New function.
  17000. * src/RequestMessage.cc
  17001. (onPush): New function.
  17002. (onAbortPiece): New function.
  17003. Update fd_set when a socket is added or deleted in order to improve
  17004. performance:
  17005. * src/DownloadEngine.h
  17006. (rfdset): New variable.
  17007. (wfdset): New variable.
  17008. (updateFdSet): New function.
  17009. * src/DownloadEngine.cc
  17010. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  17011. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  17012. (waitData): Copy rfdset and wfdset.
  17013. (updateFdSet): New function.
  17014. (addSocket): Call updateFdSet.
  17015. (deleteSocket): Call updateFdSet.
  17016. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17017. To add the support for Metalink3.0 backward compatible links:
  17018. * src/Request.h
  17019. (SAFE_CHARS): Added '#'.
  17020. (METALINK_MARK): New definition.
  17021. * src/Request.cc
  17022. (parseUrl): Added the support for Metalink3.0 backward compatible
  17023. links.
  17024. etc
  17025. * src/PeerInteraction.cc
  17026. (MsgPushBack): Removed.
  17027. (sendMessages): Use STL copy and back_inserter.
  17028. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  17029. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  17030. * src/TorrentMan.h
  17031. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  17032. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17033. * src/SharedHandle.h: New class.
  17034. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  17035. * src/HttpResponseCommand.h
  17036. (HttpResponseCommand): Wrapped Socket.
  17037. * src/SocketCore.h
  17038. (operator==): New function.
  17039. (operator!=): New function.
  17040. (operator<): New function.
  17041. (getSockfd): New function.
  17042. (isOpen): New function.
  17043. (writeData): New function.
  17044. * src/SocketCore.cc
  17045. (operator==): New function.
  17046. (operator!=): New function.
  17047. (operator<): New function.
  17048. * src/AbstractCommand.h
  17049. (socket): Changed its type to SocketHandle.
  17050. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17051. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17052. (disableReadCheckSocket): New function.
  17053. (disableWriteCheckSocket): New function.
  17054. (readCheckTarget): Changed its type to SocketHandle.
  17055. (writeCheckTarget): Changed its type to SocketHandle.
  17056. (AbstractCommand): Replaced Socket with SocketHandle.
  17057. * src/AbstractCommand.cc
  17058. (AbstractCommand): Replaced Socket with SocketHandle.
  17059. (~AbstractCommand): Removed the deallocation for Socket object.
  17060. (disableReadCheckSocket): New function.
  17061. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17062. (disableWriteCheckSocket): New function.
  17063. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17064. * src/HttpDownloadCommand.cc
  17065. (DownloadCommand): Replaced Socket with SocketHandle.
  17066. * src/PeerAbstractCommand.h
  17067. (socket): Changed its type to SocketHandle.
  17068. (peer): Changed its type to PeerHandle.
  17069. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17070. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17071. (disableReadCheckSocket): New function.
  17072. (disableWriteCheckSocket): New function.
  17073. (readCheckTarget): Changed its type to SocketHandle.
  17074. (writeCheckTarget): Changed its type to SocketHandle.
  17075. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17076. Replaced Peer with PeerHandle.
  17077. * src/HttpRequestCommand.cc
  17078. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17079. Use disableReadCheckSocket.
  17080. * src/PeerInitiateConnectionCommand.h
  17081. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17082. * src/PeerChokeCommand.cc
  17083. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  17084. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  17085. (execute): Use PeerHandle.
  17086. * src/PeerConnection.h
  17087. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  17088. (socket): Changed its type to SocketHandle.
  17089. (PeerConnection): Replaced Socket with SocketHandle.
  17090. * src/PeerConnection.cc
  17091. (PeerConnection): Replaced Socket with SocketHandle.
  17092. * src/PeerInteractionCommand.h
  17093. (PeerInteractionCommand): Replaced socket with SocketHandle.
  17094. Replaced Peer with PeerHandle.
  17095. * src/PeerInteractionCommand.cc
  17096. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  17097. Replaced Peer with PeerHandle.
  17098. (executeInternal): Use disableWriteCheckSocket.
  17099. Use HandshakeMessageHandle.
  17100. (receiveMessages): Use PeerMessageHandle.
  17101. (prepareForNextPeer): Use PeerHandle.
  17102. * src/HttpProxyRequestCommand.h
  17103. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17104. * src/HttpResponseCommand.cc
  17105. (HttpResponseCommand): Replaced Socket with SocketHandle.
  17106. * src/TorrentMan.cc
  17107. (nullPeer): Added external reference.
  17108. (~TorrentMan): Removed the deallocation of the elements of peers.
  17109. (addPeer): Rewritten.
  17110. (isPeerAvailable): Use nullPeer.
  17111. (deleteOldpeers): Replaced with deleteErrorPeer.
  17112. (deleteErrorPeer): New function.
  17113. (getPeer): Use PeerHandle and nullPeer.
  17114. (hasMissingPiece): Replaced Peer with PeerHandle.
  17115. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17116. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17117. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17118. (getMissingPiece): Replaced Peer with PeerHandle.
  17119. * src/FtpNegotiateCommand.cc
  17120. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  17121. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  17122. (recvGreeting): Use disableWriteCheckSocket.
  17123. (recvPasv): Removed the allocation of Socket.
  17124. Use disableReadCheckSocket.
  17125. (sendRestPasv): Use disableWriteCheckSocket.
  17126. (recvRetr): Changed assertion.
  17127. * src/PeerInteraction.h
  17128. (SharedHandle.h): Included SharedHandle.h.
  17129. (PeerMessageHandle): New type definition.
  17130. (HandshakeMessageHandle): New type definition.
  17131. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  17132. (peer): Changed its type to PeerHandle.
  17133. (createHandshakeMessage): Replaced HandshakeMessage with
  17134. HandshakeMessageHandle.
  17135. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  17136. (PeerInteraction): Replaced Peer with PeerHandle.
  17137. Replaced Socket with SocketHandle.
  17138. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17139. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17140. (receiveHandshake): Replaced HandshakeMessage with
  17141. HandshakeMessageHandle.
  17142. * src/PeerInteraction.cc
  17143. (PeerInteraction): Replaced Peer with PeerHandle.
  17144. Replaced Socket with SocketHandle.
  17145. (~PeerInteraction): Removed the deallocation of the elements of
  17146. messageQueue.
  17147. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  17148. (isSendingMessageInProgress): Replaced PeerMessage with
  17149. PeerMessageHandle.
  17150. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  17151. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17152. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  17153. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  17154. (abortPiece): Use PeerMessageHandle.
  17155. (receiveHandshake): Replaced HandshakeMessage with
  17156. HandshakeMessageHandle. Removed try-catch block.
  17157. (createHandshakeMessage): Replaced HandshakeMessage with
  17158. HandshakeMessageHandle.
  17159. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17160. Removed try-catch block.
  17161. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  17162. * src/HttpProxyResponseCommand.cc
  17163. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17164. * src/FtpTunnelResponseCommand.h
  17165. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17166. * src/HttpConnection.cc
  17167. (HttpConnection): Replaced Socket with SocketHandle.
  17168. * src/PeerAbstractCommand.cc
  17169. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17170. (~PeerAbstractCommand): Removed the deallocation of socket.
  17171. Use disableReadCheckSocket, disableWriteCheckSocket.
  17172. (disableReadCheckSocket): New function.
  17173. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17174. (disableWriteCheckSocket): New function.
  17175. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17176. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  17177. * src/FtpTunnelRequestCommand.cc
  17178. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17179. (~FtpTunnelRequestCommand): Corrected indentation.
  17180. * src/DownloadCommand.h
  17181. (DownloadCommand): Replaced Socket with SocketHandle.
  17182. * src/PeerListenCommand.cc
  17183. (PeerListenCommand): Removed the initialization of socket.
  17184. (~PeerListenCommand): Removed the deallocation of socket.
  17185. (bindPort): Use SocketHandle.
  17186. (execute): Use SocketHandle and PeerHandle.
  17187. * src/FtpDowndloadCommand.cc
  17188. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17189. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  17190. * src/main.cc
  17191. (main): Corrected indentation.
  17192. * src/HttpInitiateConnectionCommand.cc
  17193. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  17194. (executeInternal): Removed the allocation of socket.
  17195. * src/HttpRequestCommand.h
  17196. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17197. * src/FtpNegotiationCommand.h
  17198. (dataSocket): Changed its type to SocketHandle.
  17199. (serverSocket): Changed its type to SocketHandle.
  17200. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  17201. * src/TorrentMan.h
  17202. (MAX_PEER_UPDATE): Removed.
  17203. (MAX_PEERS): New definition.
  17204. (Peers): The element is now of type PeerHandle.
  17205. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  17206. (getPeer): Replaced Peer with PeerHandle.
  17207. (deleteOldErrorPeers): Removed.
  17208. (deleteErrorPeer): New function.
  17209. (hasMissingPiece): Replaced Peer with PeerHandle.
  17210. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17211. (getMissingPiece): Replaced Peer with PeerHandle.
  17212. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17213. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17214. (addActivePeer): Replaced Peer with PeerHandle.
  17215. (deleteActivePeer): Replaced Peer with PeerHandle.
  17216. Added a check for the return value of find.
  17217. * src/FtpTunnelResponseCommand.cc
  17218. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17219. * src/FtpInitiateConnectionCommand.cc
  17220. (executeInternal): Removed the allocation of socket.
  17221. * src/DownloadEngine.h
  17222. (Sockets): An element is now of type SocketHandle.
  17223. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  17224. (CommandUuids): New type definition.
  17225. (rsockets): Changed its type to SockCmdMap.
  17226. (wsockets): Changed its type to SockCmdMap.
  17227. (addSocket): Rewritten.
  17228. (deleteSocket): Rewritten.
  17229. (addSocketForReadCheck): Rewritten.
  17230. (deleteSocketForReadCheck): Rewritten.
  17231. (addSocketForWriteCheck): Rewritten.
  17232. (deleteSocketForWriteCheck): Rewritten.
  17233. (PairFind): New template class.
  17234. * src/HttpDownloadCommand.h
  17235. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  17236. * src/FtpConnection.cc
  17237. (FtpConnection): Replaced Socket with SocketHandle.
  17238. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  17239. block.
  17240. * src/InitiateConnectionCommandFactory.cc
  17241. (DlAbortEx.h): Included DlAbortEx.h.
  17242. (createInitiateConnectionCommand): Throw exception if the protocol of
  17243. requested URI is not supported.
  17244. * src/Peer.cc
  17245. (nullPeer): Changed its type to PeerHandle.
  17246. (operator==): New function.
  17247. (operator!=): New function.
  17248. * src/Peer.h
  17249. (SharedHandle.h): Included SharedHandle.h.
  17250. (operator==): New function.
  17251. (operator!=): New function.
  17252. (Peer): Added the default constructor.
  17253. Use resetStatus() to initialize member variables.
  17254. (nullPeer): Removed.
  17255. * src/TrackerUpdateCommand.cc
  17256. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  17257. with MIN_PEERS.
  17258. * src/PeerListenCommand.h
  17259. (socket): Changed its type to SocketHandle.
  17260. * src/Command.h
  17261. (CommandUuid): New type definition.
  17262. (uuid): New variable.
  17263. (uuidGen): New variable.
  17264. (Command): Added the initialization of uuid.
  17265. (getUuid): New function.
  17266. * src/Socket.h
  17267. (Socket): Removed.
  17268. (SocketHandle): New type definition.
  17269. * src/DownloadEngine.h
  17270. (FindCommand): New function object.
  17271. (run): The portion of socket check was rewritten.
  17272. (SetDescriptor): New function object.
  17273. (AccumulateActiveCommandUuid): New function object.
  17274. (waitData): Rewritten.
  17275. (addSocket): Rewritten.
  17276. (deleteSocket): Rewritten.
  17277. (addSocketForReadCheck): Rewritten.
  17278. (addSocketForWriteCheck): Rewritten.
  17279. (deleteSocketForReadCheck): Rewritten.
  17280. (deleteSocketForWriteCheck): Rewritten.
  17281. * src/HttpProxyResponseCommand.h
  17282. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  17283. * src/HttpConnection.h
  17284. (socket): Changed its type to SocketHandle.
  17285. (HttpConnection): Replaced Socket with SocketHandle.
  17286. * src/PeerInitiateConnectionCommand.cc
  17287. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17288. (executeInternal): Removed the allocation of socket.
  17289. (prepareForNextPeer): Use PeerHandle.
  17290. * src/PeerMessage.h
  17291. (peer): Changed its type to PeerHandle.
  17292. (getPeer): Replaced Peer with PeerHandle.
  17293. (setPeer): Replaced Peer with PeerHandle.
  17294. * src/DownloadCommand.cc
  17295. (DownloadCommand): Replaced Socket with SocketHandle.
  17296. * src/FtpConnection.h
  17297. (socket): Changed its type to SocketHandle.
  17298. (FtpConnection): Replaced Socket with SocketHandle.
  17299. (sendPort); Replaced Socket with SocketHandle.
  17300. * src/FtpDowndloadCommand.h
  17301. (ctrlSocket): Changed its type to SocketHandle.
  17302. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17303. * src/HttpProxyRequestCommand.cc
  17304. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17305. * src/FtpTunnelRequestCommand.h
  17306. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17307. etc
  17308. * src/PeerChokeCommand.h
  17309. (setAllPeerChoked): Removed.
  17310. (setAllPeerResetDelta): Removed.
  17311. * src/PeerChokeCommand.cc
  17312. (setAllPeerChoked): Removed.
  17313. (ChokePeer): New function object.
  17314. (setAllPeerResetDelta): Removed.
  17315. (ResetDelta): New function object.
  17316. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  17317. (execute): Show download speed when the local node is a seeder.
  17318. setAllPeerChoked and setAllPeerResetDelta were rewritten
  17319. using STL.
  17320. * src/TrackerWatcherCommand.h
  17321. (MIN_PEERS): Removed.
  17322. * src/TorrentMan.cc
  17323. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  17324. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17325. To fix the bug that .aria2 file is not saved if downloading is stopped
  17326. by the errors:it results that aria2 can not resume downloading:
  17327. * src/main.cc
  17328. (normalDownload): Added the call to save().
  17329. (main): Added the deletion of the elements in 'reserved'.
  17330. To fix log:
  17331. * src/PeerInteraction.cc
  17332. (receiveHandshake): Fixed log.
  17333. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17334. To improve download performance in BitTorrent:
  17335. * src/TorrentMan.cc
  17336. (getPeer): Check the number of connections. Return nullPeer if
  17337. it is greater than MAX_PEER_UPDATE.
  17338. This code was originally here, but was removed in 0.5.1.
  17339. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17340. To improve the conditional compilation:
  17341. * src/MultiDiskWriter.h:
  17342. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17343. * src/MultiDiskWriter.cc:
  17344. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17345. * src/Util.h:
  17346. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17347. Added ENABLE_BITTORRENT around computeFastSet().
  17348. * src/Util.cc:
  17349. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17350. Added ENABLE_BITTORRENT around computeFastSet().
  17351. * src/messageDigest.h:
  17352. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  17353. * src/ShaVisitor.h:
  17354. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17355. * src/ShaVisitor.cc:
  17356. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17357. * src/main.cc:
  17358. Added ENABLE_BITTORRENT around includes and blocks related to
  17359. BitTorrent.
  17360. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  17361. digest support is not available.
  17362. * src/AbstractDiskWriter.h:
  17363. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17364. * src/AbstractDiskWriter.cc:
  17365. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17366. * src/MetalinkEntry.cc
  17367. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  17368. support is not available.
  17369. To add command-line options for Metalink:
  17370. * src/main.cc:
  17371. Added metalink-version, metalink-language, metalink-os,
  17372. follow-metalink.
  17373. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  17374. * src/main.cc: Use these definition.
  17375. * Release 0.6.0
  17376. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17377. To add Metalink support(http/ftp only):
  17378. * src/AbstractCommand.h
  17379. (tryReserved): New function.
  17380. * src/AbstractCommand.cc
  17381. (execute): Call tryReserved().
  17382. (tryReserved): New function.
  17383. * src/Request.h
  17384. (Requests): New type definition.
  17385. * src/SegmentMan.h
  17386. (reserved): New variable.
  17387. * src/Util.h
  17388. (fileChecksum): New function.
  17389. (toUpper): New function.
  17390. (toLower): New function.
  17391. * src/Util.cc
  17392. (messageDigest.h): Included.
  17393. (trim): Trim \r\n\t.
  17394. (fileChecksum): New function.
  17395. (toUpper): New function.
  17396. (toLower): New function.
  17397. * src/main.cc
  17398. (normalDownload): New function.
  17399. (main): Added 2 command-line options: metalink-file,
  17400. metalink-connection. Their usage has not been written yet.
  17401. * src/MetalinkProcessor.h: New class.
  17402. * src/Xml2MetalinkProcessor.h: New class.
  17403. * src/Xml2MetalinkProcessor.cc: New class.
  17404. * src/MetalinkEntry.h: New class.
  17405. * src/MetalinkEntry.cc: New class.
  17406. * src/MetalinkResource.h: New class.
  17407. * src/MetalinkResource.cc: New class.
  17408. To add md5 message digest checking:
  17409. * src/messageDigest.h: Rewritten.
  17410. * src/MultiDiskWriter.cc: Updated according to the changes in
  17411. messageDigest.h.
  17412. * src/ShaVisitor.cc: Updated according to the changes in
  17413. messageDigest.h.
  17414. * src/Util.cc: Updated according to the changes in messageDigest.h.
  17415. * src/AbstractDiskWriter.cc: Updated according to the changes in
  17416. messageDigest.h.
  17417. To fix a bug that causes segfault when the payload length in peer
  17418. message is less than 0:
  17419. * src/PeerConnection.cc:
  17420. (receiveMessage): Fixed the bug.
  17421. * src/PeerMessageUtil.cc
  17422. (checkLength): Throw an exception if length is less than or equals to
  17423. 0.
  17424. To add new interfaces to Base64 encoding/decoding:
  17425. * src/Base64.h
  17426. (part_encode): Changed the method signature.
  17427. (encode): New function(overload).
  17428. (decode): New function(overload).
  17429. * src/Base64.cc
  17430. (part_encode): Rewritten.
  17431. (encode): Rewritten.
  17432. (encode): New function(overload).
  17433. To prevent a peer to download same piece if there is an error in
  17434. checksum:
  17435. * src/PieceMessage.cc
  17436. (receivedAction): Call peerInteraction->abortPiece().
  17437. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17438. To fix the bug that causes same have message is sent many times to
  17439. a single peer.
  17440. * src/Time.cc
  17441. (isNewer): Use Util::difftv().
  17442. * src/Util.cc
  17443. (difftv): Added a cast to (long long int).
  17444. * src/TorrentMan.cc
  17445. (advertisePiece): Use push_front.
  17446. (getAdvertisedPieceIndexes): A performance improvement was made.
  17447. To fix the bug that sends tracker requests without a sleep interval
  17448. when the number of connections is less than 15.
  17449. * src/TrackerWatcherCommand.cc
  17450. (execute): Now the number of connections is not a factor to decide
  17451. whether or not a tracker request should be sent or not.
  17452. * src/Time.h
  17453. (setTimeInSec): New function.
  17454. * src/Time.cc
  17455. (setTimeInSec): New function.
  17456. etc.
  17457. * src/ChokeMessage.cc
  17458. (receivedAction): Removed peer->snubbing = false
  17459. * src/PeerConnection.h
  17460. (receiveHandshake): Updated doc.
  17461. * src/TorrentMan.h
  17462. (getAdvertisedPieceIndexes): Updated the method signature.
  17463. * src/TorrentMan.cc
  17464. (getAdvertisedPieceIndexes): Updated the method signature.
  17465. * src/Time.h
  17466. (getTimeInMicros): Added a cast to (long long int).
  17467. (getTimeInMillis): Added a cast to (long long int).
  17468. * Release 0.5.2
  17469. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17470. To make a listening socket non-block:
  17471. * src/SocketCore.h
  17472. (setNonBlockingMode): New function.
  17473. * src/SocketCore.cc
  17474. (setNonBlockingMode): New function.
  17475. (beginListen): Added a call to setNonBlockingMode().
  17476. (acceptConnection): Call setNonBlockingMode().
  17477. (setBlockingMode): Updated.
  17478. To handle tracker's NAT-checking:
  17479. * src/PeerConnection.cc
  17480. (receiveHandshake): 'msg' param is filled with received data and
  17481. its length is assigned to 'length' param, even if all handshake
  17482. message is not yet received.
  17483. * src/PeerInteractionCommand.cc
  17484. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  17485. a new peer connects to localhost.
  17486. A call to peerInteraction->sendHandshake() was removed because
  17487. it is called from peerInteraction->receiveHandshake(true).
  17488. * src/PeerInteraction.h
  17489. (quickReplied): New variable.
  17490. (receiveHandshake): Added an argument.
  17491. * src/PeerInteraction.cc
  17492. (PeerInteraction): Added the initialization of quickReplied.
  17493. (receiveHandshake): Send handshake message as soon as the info hash
  17494. in a handshake message from a peer is correct.
  17495. To change the random part of peer id and key parameter:
  17496. * src/TorrentMan.h
  17497. (key): New variable.
  17498. * src/TorrentMan.cc
  17499. (setupInternal1): Use Util::randomAlpha() to generate random part
  17500. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  17501. key is also generated by Util::randomAlpha() and it is now 8 character
  17502. long.
  17503. * src/Util.h
  17504. (randomAlpha): New function.
  17505. * src/Util.cc
  17506. (randomAlpha): New function.
  17507. * src/TrackerWatcherCommand.cc
  17508. (execute): In a tracker request: Use torrentMan->key as key parameter.
  17509. Added no_peer_id=1.
  17510. Set snubbing flag to false when a choke message is received from a
  17511. snubbed peer.
  17512. * src/ChokeMessage.cc
  17513. (receivedAction): Set snubbing flag to false.
  17514. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17515. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  17516. * src/SimpleLogger.h (writeHeader): New function.
  17517. * src/SimpleLogger.cc (writeHeader): New function.
  17518. (writeLog): Fixed the bug that causes segfaults if exception message
  17519. contains an unescaped "%" character.
  17520. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  17521. when a tracker request fails.
  17522. * src/Request.cc (parseUrl): Query string is now handled properly.
  17523. * Release 0.5.1
  17524. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17525. To add Time class which represents a specific instant in time and
  17526. its precision is microseconds. Time checking procedures were rewritten
  17527. using this object.
  17528. * src/Time.h: New class.
  17529. * src/Time.cc: New class.
  17530. * src/AbstractCommand.h
  17531. (updateCheckPoint): Removed.
  17532. (isTimeoutDetected): Removed.
  17533. (checkPoint): Changed the type to Time.
  17534. (timeout): New variable.
  17535. (setTimeout): New function.
  17536. * src/AbstractCommand.cc
  17537. (AbstractCommand): Removed the initialization of checkPoint.
  17538. Added the initialization of timeout.
  17539. (updateCheckPoint): Removed.
  17540. (isTimeoutDetected): Removed.
  17541. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17542. * src/PeerChokeCommand.h
  17543. (checkPoint): Changed the type to Time.
  17544. * src/PeerChokeCommand.cc
  17545. (PeerChokeCommand): Removed the initialization of checkPoint.
  17546. (execute): Rewritten using Time object.
  17547. * src/TrackerWatcherCommand.h
  17548. (checkPoint): Changed the type to Time.
  17549. * src/TrackerWatcherCommand.cc
  17550. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  17551. (execute): Rewritten.
  17552. * src/ConsoleDownloadEngine.h
  17553. (cp): Changed the type to Time.
  17554. (startup): Changed the type to Time.
  17555. * src/ConsoleDownloadEngine.cc
  17556. (initStatistics): Use cp.reset(), startup.reset().
  17557. (calculateStatistics): Rewritten using Time object.
  17558. * src/PeerAbstractCommand.h
  17559. (updateCheckPoint): Removed.
  17560. (isTimeoutDetected): Removed.
  17561. (checkPoint): Changed the type to Time.
  17562. * src/PeerAbstractCommand.cc
  17563. (PeerAbstractCommand): Removed the initialization of checkPoint.
  17564. (updateCheckPoint): Removed.
  17565. (isTimeoutDetected): Removed.
  17566. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17567. * src/PeerInteractionCommand.cc
  17568. (PeerInteractionCommand): Removed the initializations of struct
  17569. timeval variables.
  17570. * src/PeerInteractionCommand.h
  17571. (keepAliveCheckPoint): Changed the type to Time.
  17572. (chokeCheckPoint): Changed the type to Time.
  17573. (freqCheckPoint): Changed the type to Time.
  17574. (haveCheckTime): Changed the type to Time.
  17575. * src/PeerInteractionCommand.cc
  17576. (executeInternal): Rewritten using Time object.
  17577. (detectMessageFlooding): Rewritten using Time object.
  17578. (checkLongTimePeerChoking): Rewritten using Time object.
  17579. (sendKeepAlive): Rewritten using Time object.
  17580. (checkHave): Rewritten using Time object.
  17581. * src/SleepCommand.h
  17582. (checkPoint): Changed the type to Time.
  17583. * src/SleepCommand.cc
  17584. (SleepCommand): Removed the initialization of checkPoint.
  17585. (execute): Rewritten using Time object.
  17586. * src/TorrentAutoSaveCommand.h
  17587. (checkPoint): Changed the type to Time.
  17588. * src/TorrentAutoSaveCommand.cc
  17589. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  17590. (execute): Rewritten.
  17591. * src/DownloadCommand.h
  17592. (sw): Changed the type to Time.
  17593. * src/DownloadCommand.cc
  17594. (DownloadCommand): Removed the initialization of sw.
  17595. (executeInternal): Rewritten.
  17596. * src/RequestSlot.h
  17597. (dispatchedTime): Changed the type to Time.
  17598. * src/RequestSlot.cc
  17599. (RequestSlot): Removed the call to setDispatchedTime().
  17600. (setDispatchedTime): Rewirtten.
  17601. (isTimeout): Rewritten.
  17602. (getLatencyInMillis): Rewritten.
  17603. * src/TorrentDownloadEngine.h
  17604. (cp): Changed the type to Time[2].
  17605. (startup): Changed the type to Time.
  17606. * src/TorrentDownloadEngine.cc
  17607. (initStatistics): Rewritten.
  17608. (calculateStatistics): Rewritten.
  17609. * src/DownloadEngine.cc
  17610. (run): Rewritten.
  17611. To detect all attempts to connect to the tracker are failed:
  17612. * src/AbstractCommand.cc
  17613. (execute): Increment e->segmentMan->errors if a command aborted.
  17614. * src/SegmentMan.h
  17615. (errors): New variable.
  17616. * src/SegmentMan.cc
  17617. (SegmentMan): Added the initialization of errors.
  17618. (init): Added the initialization of errors.
  17619. * src/TrackerWatcherCommand.cc
  17620. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  17621. request was failed.
  17622. To handle snubbed peers:
  17623. * src/PeerChokeCommand.cc
  17624. (optUnchokingPeer): Snubbed peers don't get unchoked.
  17625. (execute): Snubbed peers don't get unchoked.
  17626. * src/PeerInteraction.h
  17627. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  17628. * src/PeerInteraction.cc
  17629. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  17630. back the requested 16k block in 60 seconds.
  17631. * src/PieceMessage.cc
  17632. (receivedAction): A peer's snubbed state is cleard if it sends
  17633. the requested 16k block in 60 seconds.
  17634. * src/Peer.h
  17635. (snubbing): New variable.
  17636. * src/Peer.cc
  17637. (resetStatus): Added snubbed = false.
  17638. To fix the bug that causes have message is not sent:
  17639. * src/PeerInteractionCommand.cc
  17640. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  17641. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  17642. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  17643. * src/TorrentMan.h
  17644. (HaveEntry): New class.
  17645. (advertisePiece): Rewritten.
  17646. (getAdvertisedPieceIndexes): Rewritten.
  17647. (Haves): Changed the type.
  17648. (getAdvertisedPieceIndexes): Added an argument.
  17649. Others:
  17650. * src/TorrentMan.h
  17651. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  17652. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  17653. * src/TorrentMan.cc
  17654. (getPeer): Don't check the number of connections here.
  17655. (setupInternal1): Changed peerId.
  17656. * src/PeerInteractionCommand.h
  17657. (KEEP_ALIVE_INTERVAL): New definition.
  17658. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  17659. * src/main.cc
  17660. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  17661. * src/DownloadEngine.h: Removed unnecessary header includes.
  17662. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17663. To fix the bug that causes segfaults if a tracker returns a zero-length
  17664. list as "peers":
  17665. * src/TrackerUpdateCommand.cc
  17666. (execute): Added a check to see wether the type of peers is Data*.
  17667. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17668. * Release 0.5.0
  17669. To fix compile issue with gcc3:
  17670. * src/CancelMessage.h
  17671. (ID): Renamed as ID_t
  17672. (ID_t): New enum.
  17673. * src/RejectMessage.h
  17674. (ID): Renamed as ID_t
  17675. (ID_t): New enum.
  17676. * src/SuggestPieceMessage.h
  17677. (ID): Renamed as ID_t
  17678. (ID_t): New enum.
  17679. * src/AllowedFastMessage.h
  17680. (ID): Renamed as ID_t
  17681. (ID_t): New enum.
  17682. * src/PortMessage.h
  17683. (ID): Renamed as ID_t
  17684. (ID_t): New enum.
  17685. * src/HaveNoneMessage.h
  17686. (ID): Renamed as ID_t
  17687. (ID_t): New enum.
  17688. * src/KeepAliveMessage.h
  17689. (ID): Renamed as ID_t
  17690. (ID_t): New enum.
  17691. * src/HaveAllMessage.h
  17692. (ID): Renamed as ID_t
  17693. (ID_t): New enum.
  17694. * src/UnchokeMessage.h
  17695. (ID): Renamed as ID_t
  17696. (ID_t): New enum.
  17697. * src/BitfieldMessage.h
  17698. (ID): Renamed as ID_t
  17699. (ID_t): New enum.
  17700. * src/PieceMessage.h
  17701. (ID): Renamed as ID_t
  17702. (ID_t): New enum.
  17703. * src/RequestMessage.h
  17704. (ID): Renamed as ID_t
  17705. (ID_t): New enum.
  17706. * src/NotInterestedMessage.h
  17707. (ID): Renamed as ID_t
  17708. (ID_t): New enum.
  17709. * src/ChokeMessage.h
  17710. (ID): Renamed as ID_t
  17711. (ID_t): New enum.
  17712. * src/InterestedMessage.h
  17713. (ID): Renamed as ID_t
  17714. (ID_t): New enum.
  17715. * src/HaveMessage.h
  17716. (ID): Renamed as ID_t
  17717. (ID_t): New enum.
  17718. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17719. * src/PeerAbstractCommand.h
  17720. (beforeSocketCheck): Removed.
  17721. * src/PeerAbstractCommand.cc
  17722. Modified in order to call executeInternal() even if socket check
  17723. and upload limit check fail.
  17724. * src/PeerInteractionCommand.h
  17725. (keepAlive): Removed.
  17726. (sendKeepAlive): New function.
  17727. (checkHave): New function.
  17728. (beforeSocketCheck): Removed.
  17729. * src/PeerInteractionCommand.cc
  17730. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17731. calls to checkHave() and sendKeepAlive().
  17732. (keepAlive): Renamed to sendKeepAlive().
  17733. (sendKeepAlive): New function.
  17734. (beforeSocketCheck): Removed.
  17735. (checkHave): New function.
  17736. * src/BitfieldMan.cc
  17737. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17738. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17739. 0.
  17740. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17741. * src/TorrentMan.h
  17742. (UsedPieces): Removed.
  17743. (Pieces): New type definition.
  17744. * src/Piece.h: Updated doc.
  17745. * src/Peer.h
  17746. (totalLength): Removed.
  17747. * src/Peer.cc
  17748. (updateLatency): Fixed the latency calculation.
  17749. * src/TorrentMan.cc
  17750. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17751. than or equal to MAX_PEER_LIST_SIZE.
  17752. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17753. then return false.
  17754. (deleteOldErrorPeers): Rewritten.
  17755. (deleteUsedPiece): Fixed the miss use of STL remove.
  17756. * src/PeerInteraction.h
  17757. (Pieces): Removed.
  17758. (deleteTimeoutRequestSlot): Removed.
  17759. (deleteCompletedRequestSlot): Removed.
  17760. (checkRequestSlot): New function.
  17761. * src/PeerInteraction.cc
  17762. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17763. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17764. (checkRequestSlot): New function.
  17765. * src/DownloadEngine.cc
  17766. (run): Clear activeSockets before calling waitData().
  17767. (waitData): Removed a call to activeSockets.clear().
  17768. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17769. To attempt to handle EINTR:
  17770. * src/SocketCore.cc
  17771. (isReadable): Added EINTR handling.
  17772. (isWritable): Added EINTR handling.
  17773. To improve the performance:
  17774. * src/AbstractCommand.cc
  17775. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17776. * src/PeerInteractionCommand.h
  17777. (receiveMessage): Renamed as receiveMessages().
  17778. (receiveMessages): New function.
  17779. * src/PeerInteractionCommand.cc
  17780. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17781. () function. detectMessageFlooding() is moved here.
  17782. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17783. (). The flooding detection for have message is comment out.
  17784. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17785. Util::difftv().
  17786. (receiveMessage): Renamed as receiveMessages().
  17787. (receiveMessages): New function.
  17788. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17789. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17790. * src/SleepCommand.cc
  17791. (execute): Use Util::difftvsec() instead of Util::difftv().
  17792. * src/BitfieldMan.h
  17793. (getNthBitIndex): New function.
  17794. (hasMissingPiece): New function.
  17795. (getAllMissingIndexes): New function.
  17796. * src/BitfieldMan.cc
  17797. (countSetBit): Rewritten.
  17798. (getNthBitIndex): New function.
  17799. (getMissingIndexRandomly): Rewritten.
  17800. (hasMissingPiece): New function.
  17801. (getAllMissingIndexes): New function.
  17802. * src/TorrentMan.cc
  17803. (hasMissingPiece): New function.
  17804. (deleteUsedPiece): Rewritten using STL.
  17805. * src/PeerInteraction.cc
  17806. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17807. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17808. (addRequests): Updated the number of pending requests.
  17809. * src/PeerAbstractCommand.cc
  17810. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17811. (execute): Returns true if TorrentMan::isHalt() is true.
  17812. Corrected the condition of upload limit checking.
  17813. * src/Util.h
  17814. (countBit): New function.
  17815. * src/Util.cc
  17816. (nbits): New variable.
  17817. (countBit): New function.
  17818. * src/DownloadEngine.h
  17819. (SockCmdMap): New type definition.
  17820. (waitData): Added an argument.
  17821. (addSocket): Added an argument.
  17822. (addSocketForReadCheck): Added an argument.
  17823. (addSocketForWriteCheck): Added an argument.
  17824. * src/DownloadEngine.cc
  17825. (run): Executes only commands whose sockets are ready to read or write.
  17826. All commands are executed in every 1 second.
  17827. (waitData): Calls select() again if it returned
  17828. EINTR.
  17829. (addSocket): Saves socket and command object pair to the map.
  17830. (deleteSocket): Deletes socket and command object pair from the map.
  17831. (addSocketForReadCheck): Added an argument.
  17832. (addSocketForWriteCheck): Added an argument.
  17833. * src/DownloadCommand.cc
  17834. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17835. To send "event=stopped" to the tracker when the application finishes:
  17836. * src/PeerChokeCommand.h
  17837. (checkPoint): New variable.
  17838. * src/PeerChokeCommand.cc
  17839. (PeerChokeCommand): Added the initialization of checkPoint.
  17840. (execute): The interval check is now done by checkPoint, not
  17841. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17842. * src/TorrentMan.h
  17843. (halt): New function.
  17844. (hasMissingPiece): New function.
  17845. (isHalt): New function.
  17846. (setHalt): New function.
  17847. * src/TorrentMan.cc
  17848. (TorrentMan): Added the initialization of halt.
  17849. * src/TorrentAutoSaveCommand.h
  17850. (checkPoint): New variable.
  17851. * src/PeerListenCommand.cc
  17852. (execute): Returns true if TorrentMan::isHalt() is true.
  17853. * src/main.cc
  17854. (setSignalHander): Added flags argument.
  17855. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17856. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17857. Removed printDownloadAbortMessage() after torrent downloading loop.
  17858. * src/TorrentAutoSaveCommand.cc
  17859. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17860. (execute): Returns true if TorrentMan::isHalt() is true.
  17861. The interval check is now done by checkPoint, not SleepCommand.
  17862. * src/TrackerWatcherCommand.cc
  17863. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17864. event=stopped.
  17865. * src/TrackerUpdateCommand.cc
  17866. (prepareForRetry): Do not use SleepCommand here.
  17867. (execute): Returns true if TorrentMan::isHalt() is true.
  17868. Others:
  17869. * src/TorrentMan.cc
  17870. (getMissingPieceIndex): Updated log message.
  17871. * src/PeerInteraction.cc
  17872. (createPeerMessag): Updated log message.
  17873. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17874. To add the ability to download several pieces in mix in a command and
  17875. increase the number of request slots according to request-cancel
  17876. latency:
  17877. * src/PeerInteractionCommand.cc
  17878. (executeInternal): The number of messages to be received at a time
  17879. is increased from 10 to 50.
  17880. * src/LogFactory
  17881. (getInstance): Added NullLogger.
  17882. * src/NullLogger.h: New class.
  17883. * src/BitfieldMan.h
  17884. (getMissingIndex): New function.
  17885. * src/BitfieldMan.cc
  17886. (getMissingIndex): New function.
  17887. * src/TorrentMan.h
  17888. (checkOutPiece): New function.
  17889. (getMissingPieceIndex): New function.
  17890. (getMissingFastPieceIndex): New function.
  17891. (getMissingFastPiece): New function.
  17892. * src/TorrentMan.cc
  17893. (updatePiece): Rewritten using STL.
  17894. (syncPiece): Rewritten using STL.
  17895. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17896. checkOutPiece().
  17897. (getMissingPieceIndex): New function.
  17898. (getMissingFastPieceIndex): New function.
  17899. (getMissingFastPiece): New function.
  17900. (checkOutPiece): New function.
  17901. * src/PeerInteraction.h
  17902. (Pieces): New type definition.
  17903. (piece): Removed.
  17904. (pieces): New variable.
  17905. (getNewPieceAndSendInterest): Added the "piece" argument.
  17906. (abortPiece): Added the "piece" argument.
  17907. (abortAllPieces): New function.
  17908. (isInRequestSlot): New function.
  17909. (hasDownloadPiece): Added the "index" argument.
  17910. (setDownloadPiece): Removed.
  17911. (getDownloadPiece): Added the "index" argument.
  17912. (updatePiece): New function.
  17913. (createRequestMessage): Added the "index" argument.
  17914. * src/PeerInteraction.cc
  17915. (onChoked): Rewritten.
  17916. (abortPiece): Rewirtten.
  17917. (abortAllPieces): New function.
  17918. (deleteTimeoutRequestSlot): Rewritten.
  17919. Clarified code a little bit.
  17920. (deleteCompletedRequestSlot): Rewritten.
  17921. (isInRequestSlot): New function.
  17922. (syncPiece): Rewritten.
  17923. (updatePiece): New function.
  17924. (getNewPieceAndSendInterest): Rewritten.
  17925. (addRequests): Rewritten.
  17926. (getDownloadPiece): Rewritten.
  17927. (hasDownloadPiece): Rewritten.
  17928. (createRequestMessage): Added the "index" argument.
  17929. * src/common.h
  17930. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17931. (DIV_FLOOR): New definition.
  17932. * src/PieceMessage.cc
  17933. (receivedAction): Update request-piece latency here.
  17934. * src/RequestSlot.h
  17935. (getLatencyInMillis): New function.
  17936. * src/RequestSlot.cc
  17937. (isTimeout): Rewritten using getLatencyInMillis.
  17938. (getLatencyInMillis): New function.
  17939. * src/Piece.h
  17940. (operator==): New function.
  17941. (getMissingBlockIndex): New function.
  17942. * src/Piece.cc
  17943. (operator==): New function.
  17944. (getMissingBlockIndex): New function.
  17945. * src/Peer.h
  17946. (DEFAULT_LATENCY): New definition.
  17947. (latency): New variable.
  17948. (updateLatency): New function.
  17949. (getLatency): New function.
  17950. * src/Peer.cc
  17951. (resetStatus): Reset latecy.
  17952. (updateLatency): New function.
  17953. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17954. * src/SocketCore.cc
  17955. (isReadable): Added secure to the condition.
  17956. * src/HttpConnection.cc
  17957. (receiveResponse): Fixed a bug that causes no response header
  17958. exception.
  17959. * src/Peer.h
  17960. (getFastSet): Fixed the return value type.
  17961. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17962. To remove a wait from download loop:
  17963. * src/DownloadEngine.cc
  17964. (run): Comment out shortSleep.
  17965. To rewrite the message handling:
  17966. * src/SimplePeerMessage.h: New class.
  17967. * src/SimplePeerMessage.cc: New class.
  17968. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17969. (msg): New variable.
  17970. (create): New function.
  17971. (send): Removed.
  17972. (getMessage): New function.
  17973. (getMessageLength): New function.
  17974. * src/CancelMessage.cc
  17975. (create): New function.
  17976. (receivedAction): Replaced deleteRequestMessageInQueue with
  17977. rejectPieceMessageInQueue.
  17978. (send): Removed.
  17979. (getMessage): New function.
  17980. (getMessageLength): New function.
  17981. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17982. (msg): New variable.
  17983. (msgLength): New variable.
  17984. (~BitfieldMessage): Deleted msg.
  17985. (send): Removed.
  17986. (getMessage): New function.
  17987. (getMessageLength): New function.
  17988. * src/BitfieldMessage.cc
  17989. (create): New function.
  17990. (send): Removed.
  17991. (getMessage): New function.
  17992. (getMessageLength): New function.
  17993. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17994. (msg): New variable.
  17995. (sendPredicate): New function.
  17996. (onSendComplete): New function.
  17997. (send): Removed.
  17998. (getMessage): New function.
  17999. (getMessageLength): New function.
  18000. (create): New function.
  18001. * src/ChokeMessage.cc
  18002. (create): New function.
  18003. (send): Removed.
  18004. (sendPredicate): New function.
  18005. (getMessage): New function.
  18006. (getMessageLength): New function.
  18007. (onSendComplete): New function.
  18008. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  18009. (msg): New variable.
  18010. (send): Removed.
  18011. (getMessage): New function.
  18012. (getMessageLength): New function.
  18013. * src/KeepAliveMessage.cc
  18014. (send): Removed.
  18015. (getMessage): New function.
  18016. (getMessageLength): New function.
  18017. * src/PortMessage.h
  18018. (create): New function.
  18019. (receivedAction): Updated log message.
  18020. * src/PortMessage.cc: New file.
  18021. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  18022. (msg): New variable.
  18023. (sendPredicate): New function.
  18024. (onSendComplete): New function.
  18025. (create): New function.
  18026. (send): Removed.
  18027. (getMessage): New function.
  18028. (getMessageLength): New function.
  18029. * src/UnchokeMessage.cc
  18030. (create): New function.
  18031. (send): Removed.
  18032. (sendPredicate): New function.
  18033. (getMessage): New function.
  18034. (getMessageLength): New function.
  18035. (onSendComplete): New function.
  18036. * src/PieceMessage.h
  18037. (leftPieceDataLength): Removed.
  18038. (leftDataLength): New variable.
  18039. (headerSend): New variable.
  18040. (pendingCount): New variable.
  18041. (msgHeader): New variable.
  18042. (sendPieceData): New function.
  18043. (incrementPendingCount): New function.
  18044. (isPendingCountMax): New function.
  18045. (create): New function.
  18046. (getMessageHeader): New function.
  18047. (getMessageHeaderLength): New function.
  18048. * src/PieceMessage.cc
  18049. (create): New function.
  18050. (getMessageHeader): New function.
  18051. (getMessageHeaderLength): New function.
  18052. (send): Rewritten.
  18053. (sendPieceData): New function.
  18054. * src/HaveMessage.h: Derived from SimplePeerMessage.
  18055. (msg): New variable.
  18056. (create): New function.
  18057. (getMessage): New function.
  18058. (getMessageLength): New function.
  18059. * src/HaveMessage.cc
  18060. (create): New function.
  18061. (send): Removed.
  18062. (sendPieceData): New function.
  18063. (getMessage): New function.
  18064. (getMessageLength): New function.
  18065. * src/RequestMessage.h: Derived from SimplePeerMessage.
  18066. (msg): New variable.
  18067. (create): New function.
  18068. (send): Removed.
  18069. (getMessage): New function.
  18070. (getMessageLength): New function.
  18071. * src/RequestMessage.cc
  18072. (create): New function.
  18073. (receivedAction): Added the handling of fast extension.
  18074. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  18075. (send): Removed.
  18076. (getMessage): New function.
  18077. (getMessageLength): New function.
  18078. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  18079. (msg): New variable.
  18080. (sendPredicate): New function.
  18081. (onSendComplete): New function.
  18082. (create): New function.
  18083. (getMessage): New function.
  18084. (getMessageLength): New function.
  18085. * src/InterestedMessage.cc
  18086. (create): New function.
  18087. (send): Removed.
  18088. (sendPieceData): New function.
  18089. (getMessage): New function.
  18090. (getMessageLength): New function.
  18091. (onSendComplete): New function.
  18092. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  18093. (msg): New variable.
  18094. (sendPieceData): New function.
  18095. (onSendComplete): New function.
  18096. (create): New function.
  18097. (send): Removed.
  18098. (getMessage): New function.
  18099. (getMessageLength): New function.
  18100. * src/NotInterestedMessage.cc
  18101. (create): New function.
  18102. (send): Removed.
  18103. (sendPredicate): New function.
  18104. (getMessage): New function.
  18105. (getMessageLength): New function.
  18106. (onSendComplete): New function.
  18107. * src/AllowedFastMessage.h: New class.
  18108. * src/AllowedFastMessage.cc: New class.
  18109. * src/RejectMessage.h: New class.
  18110. * src/RejectMessage.cc: New class.
  18111. * src/SuggestPieceMessage.h: New class.
  18112. * src/SuggestPieceMessage.cc: New class.
  18113. * src/HaveAllMessage.h: New class.
  18114. * src/HaveAllMessage.cc: New class.
  18115. * src/HaveNoneMessage.h: New class.
  18116. * src/HaveNoneMessage.cc: New class.
  18117. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  18118. (msg): New variable.
  18119. (reserved): New variable.
  18120. (create): New function.
  18121. (getId): New function.
  18122. (receivedAction): New function.
  18123. (getMessage): New function.
  18124. (getMessageLength): New function.
  18125. (isFastExtensionSupported): New function.
  18126. * src/HandshakeMessage.cc
  18127. (HandshakeMessage): Moved here from HandshakeMessage.h.
  18128. (create): New function.
  18129. (getMessage): New function.
  18130. (getMessageLength): New function.
  18131. (toString): Added the output of reserved field.
  18132. (check): Added const qualifier.
  18133. (isFastExtensionSupported): New function.
  18134. * src/PeerMessageUtil.h
  18135. (createChokeMessage): Removed.
  18136. (createUnchokeMessage): Removed.
  18137. (createInterestedMessage): Removed.
  18138. (createNotInterestedMessage): Removed.
  18139. (createHaveMessage): Removed.
  18140. (createBitfieldMessage): Removed.
  18141. (createRequestMessage): Removed.
  18142. (createCancelMessage): Removed.
  18143. (createPieceMessage): Removed.
  18144. (createPortMessage): Removed.
  18145. (createChokeMessage): Removed.
  18146. (createUnchokeMessage): Removed.
  18147. (createInterestedMessage): Removed.
  18148. (createNotInterestedMessage): Removed.
  18149. (createHaveMessage): Removed.
  18150. (createBitfieldMessage): Removed.
  18151. (createRequestMessage): Removed.
  18152. (createCancelMessage): Removed.
  18153. (createPieceMessage): Removed.
  18154. (createKeepAliveMessage): Removed.
  18155. (createHandshakeMessage): Removed.
  18156. (setIntParam): New function.
  18157. (createPeerMessageString): New function.
  18158. * src/PeerMessageUtil.cc
  18159. (createChokeMessage): Removed.
  18160. (createUnchokeMessage): Removed.
  18161. (createInterestedMessage): Removed.
  18162. (createNotInterestedMessage): Removed.
  18163. (createHaveMessage): Removed.
  18164. (createBitfieldMessage): Removed.
  18165. (createRequestMessage): Removed.
  18166. (createCancelMessage): Removed.
  18167. (createPieceMessage): Removed.
  18168. (createPortMessage): Removed.
  18169. (createRequestMessage): Removed.
  18170. (createCancelMessage): Removed.
  18171. (createPieceMessage): Removed.
  18172. (createHaveMessage): Removed.
  18173. (createChokeMessage): Removed.
  18174. (createUnchokeMessage): Removed.
  18175. (createInterestedMessage): Removed.
  18176. (createNotInterestedMessage): Removed.
  18177. (createBitfieldMessage): Removed.
  18178. (createKeepAliveMessage): Removed.
  18179. (createHandshakeMessage): Removed.
  18180. (setIntParam): New function.
  18181. (createPeerMessageString): New function.
  18182. * src/PeerConnection.h
  18183. (peer): Removed.
  18184. (torrentMan): Removed.
  18185. (createNLengthMessage): Removed.
  18186. (setIntParam): Removed.
  18187. (writeOutgoingMessageLog): Removed all overloaded functions.
  18188. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18189. (sendMessage): New function.
  18190. (sendHandshake): Removed.
  18191. (sendKeepAlive): Removed.
  18192. (sendChoke): Removed.
  18193. (sendUnchoke): Removed.
  18194. (sendInterested): Removed.
  18195. (sendNotInterested): Removed.
  18196. (sendHave): Removed.
  18197. (sendBitfield): Removed.
  18198. (sendRequest): Removed.
  18199. (sendPiece): Removed.
  18200. (sendPieceHeader): Removed.
  18201. (sendPieceData): Removed.
  18202. (sendCancel): Removed.
  18203. (getPeer): Removed.
  18204. * src/PeerConnection.cc
  18205. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18206. (sendHandshake): Removed.
  18207. (sendKeepAlive): Removed.
  18208. (createNLengthMessage): Removed.
  18209. (setIntParam): Removed.
  18210. (writeOutgoingMessageLog): Removed all overloaded functions.
  18211. (sendChoke): Removed.
  18212. (sendUnchoke): Removed.
  18213. (sendInterested): Removed.
  18214. (sendNotInterested): Removed.
  18215. (sendHave): Removed.
  18216. (sendBitfield): Removed.
  18217. (sendRequest): Removed.
  18218. (sendPiece): Removed.
  18219. (sendPieceHeader): Removed.
  18220. (sendPieceData): Removed.
  18221. (sendMessage): New function.
  18222. (sendCancel): Removed.
  18223. * src/PeerInteractionCommand.cc
  18224. (PeerInteractionCommand): Call setUploadLimit.
  18225. (executeInternal): Call setUploadLimit.
  18226. Added the handling of "inProgress" state of handshake message.
  18227. Call sendBitfield() or sendAllowdFast() instead of deprecated
  18228. sendNow().
  18229. (keepAlive): Call addMessage and sendMessage instead of deprecated
  18230. sendNow().
  18231. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  18232. * src/TorrentMan.h
  18233. (PEER_ID_LENGTH): New definition.
  18234. (hasAllPieces): New function.
  18235. * src/TorrentMan.cc
  18236. (getMissingPiece): Added the handling of fast extension.
  18237. (cancelPiece): Call updatePiece().
  18238. (hasAllPieces): New function.
  18239. * src/PeerInteraction.h
  18240. (fastSet): New variable.
  18241. (getNewPieceAndSendInterest): Changed the return type to void.
  18242. (send): Renamed as sendMessages.
  18243. (deleteAllRequestSlot): Removed.
  18244. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18245. (cancelAllRequest): Removed all overloaded functions.
  18246. (deleteAllRequestSlot): Removed.
  18247. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18248. (rejectPieceMessageInQueue): New function.
  18249. (rejectAllPieceMessageInQueue): New function.
  18250. (onChoked): New function.
  18251. (isSendingMessageInProgress): New function.
  18252. (getCorrespondingRequestSlot): Changed its arguments.
  18253. (isInFastSet): New function.
  18254. (addFastSetIndex): New function.
  18255. (addRequests): New function.
  18256. (sendNow): Removed.
  18257. (trySendNow): Removed.
  18258. (sendBitfield): New function.
  18259. (sendAllowdFast): New function.
  18260. (createHaveAllMessage): New function.
  18261. (createHaveNoneMessage): New function.
  18262. (createRejectMessage): New function.
  18263. (createAllowedFastMessage): New function.
  18264. * src/PeerInteraction.cc
  18265. (send): Renamed as sendMessages.
  18266. (sendMessages): New function.
  18267. (MsgPushBack): New class.
  18268. (isSendingMessageInProgress): New function.
  18269. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18270. (rejectAllPieceMessageInQueue): New function.
  18271. Added the handling of fast extension.
  18272. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18273. (rejectPieceMessageInQueue): New function.
  18274. Added the handling of fast extension.
  18275. (deleteRequestSlot): Replaced for loop with std::find.
  18276. (onChoked): New function.
  18277. (deleteAllRequestSlot): Removed.
  18278. (abortPiece): Rewirtten.
  18279. (deleteTimeoutRequestSlot): Updated log messages.
  18280. (getCorrespondingRequestSlot): Changed its arguments.
  18281. (cancelAllRequest): Removed all overloaded functions.
  18282. (receiveHandshake): Added the check to see whether an incoming peer
  18283. supports fast extension.
  18284. (createHandshakeMessage): Use HandshakeMessage::create instead of
  18285. PeerMessageUtil.
  18286. (createPeerMessage): Use create() of each message class instead of
  18287. PeerMessageUtil.
  18288. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  18289. AllowedFastMessage were added.
  18290. (getNewPieceAndSendInterest): Changed its return value type to void.
  18291. Added the handling of fast extension.
  18292. (addRequests): New function.
  18293. (sendNow): Removed.
  18294. (sendHandshake): Rewritten.
  18295. (trySendNow): Removed.
  18296. (sendBitfield): New function.
  18297. (sendAllowdFast): New function.
  18298. (isInFastSet): New function.
  18299. (addFastSetIndex): New function.
  18300. (createRequestMessage): Use RequestMessage::create instead of
  18301. PeerMessageUtil.
  18302. (createCancelMessage): Use CancelMessage::create instead of
  18303. PeerMessageUtil.
  18304. (createPieceMessage): Use PieceMessage::create instead of
  18305. PeerMessageUtil.
  18306. (createHaveMessage): Use HaveMessage::create instead of
  18307. PeerMessageUtil.
  18308. (createChokeMessage): Use ChokeMessage::create instead of
  18309. PeerMessageUtil.
  18310. (createUnchokeMessage): Use UnchokeMessage::create instead of
  18311. PeerMessageUtil.
  18312. (createInterestedMessage): Use InterestedMessage::create instead of
  18313. PeerMessageUtil.
  18314. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  18315. of PeerMessageUtil.
  18316. (createBitfieldMessage): Use BitfieldMessage::create instead of
  18317. PeerMessageUtil.
  18318. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  18319. PeerMessageUtil.
  18320. (createHaveAllMessage): New function.
  18321. (createHaveNoneMessage): New function.
  18322. (createRejectMessage): New function.
  18323. (createAllowedFastMessage: New function.
  18324. * src/Util.h
  18325. (sha1Sum): New function.
  18326. (computeFastSet): New function.
  18327. * src/Util.cc
  18328. (sha1Sum): New function.
  18329. (computeFastSet): New function.
  18330. * src/Peer.h
  18331. (fastExtensionEnabled): New variable.
  18332. (fastSet): New variable.
  18333. (setAllBitfield): New function.
  18334. (setFastExtensionEnabled): New function.
  18335. (isFastExtensionEnabled): New function.
  18336. (addFastSetIndex): New function.
  18337. (getFastSet): New function.
  18338. (isInFastSet): New function.
  18339. (countFastSet): New function.
  18340. * src/Peer.cc
  18341. (isInFastSet): New function.
  18342. (addFastSetIndex): New function.
  18343. (setAllBitfield): New function.
  18344. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  18345. sockets.
  18346. * src/PeerAbstractCommand.cc
  18347. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  18348. and uploadLimit.
  18349. (execute): Changed the procedure of checking sockets. The upload speed
  18350. checking were added.
  18351. (setUploadLimit): New function.
  18352. (setUploadLimitCheck): New function.
  18353. * src/PeerAbstractCommand.h
  18354. (setUploadLimit): New function.
  18355. (setUploadLimitCheck): New function.
  18356. (uploadLimit): New variable.
  18357. (uploadLimitCheck): New variable.
  18358. To contact a tracker regularly:
  18359. * src/TrackerWatcherCommand.h (interval): New variable.
  18360. (checkPoint): New variable.
  18361. (TrackerWatcherCommand): Added interval argument.
  18362. * src/TrackerWatcherCommand.cc
  18363. (TrackerWatcherCommand): Initialized checkPoint.
  18364. (execute): Now a tracker is contacted in every specified period.
  18365. If peer list is not needed, send request with numwant=0.
  18366. * src/TrackerUpdateCommand.cc
  18367. (execute): Updated log messages.
  18368. * src/DownloadEngine.cc
  18369. (~DownloadEngine): Removed two asserts.
  18370. (waitData): Uncommented wfds. May be a bug fix.
  18371. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18372. * src/PeerInteractionCommand.h
  18373. (checkInactiveConnection): Removed.
  18374. * src/PeerInteractionCommand.cc
  18375. (executeInternal): Removed following function calls:
  18376. detectMessageFlooding(), checkLongTimePeerChoking and
  18377. checkInactiveConnection().
  18378. (checkInactiveConnection): Removed.
  18379. (detectMessageFlooding): Removed function call to
  18380. checkInactiveConnection().
  18381. * src/PeerMessageUtil.h
  18382. (createChokeMessage): New function. Overload.
  18383. (createUnchokeMessage): New function. Overload.
  18384. (createInterestedMessage): New function. Overload.
  18385. (createNotInterestedMessage): New function. Overload.
  18386. (createHaveMessage): New function. Overload.
  18387. (createBitfieldMessage): New function. Overload.
  18388. (createRequestMessage): New function. Overload.
  18389. (createCancelMessage): New function. Overload.
  18390. (createPieceMessage): New function. Overload.
  18391. (createKeepAliveMessage): New function. Overload.
  18392. * src/PeerMessageUtil.cc
  18393. (createChokeMessage): New function. Overload.
  18394. (createUnchokeMessage): New function. Overload.
  18395. (createInterestedMessage): New function. Overload.
  18396. (createNotInterestedMessage): New function. Overload.
  18397. (createHaveMessage): New function. Overload.
  18398. (createBitfieldMessage): New function. Overload.
  18399. (createRequestMessage): New function. Overload.
  18400. (createCancelMessage): New function. Overload.
  18401. (createPieceMessage): New function. Overload.
  18402. (createKeepAliveMessage): New function. Overload.
  18403. * src/SendMessageQueue.cc
  18404. (createRequestMessage): Use PeerMessageUtil.
  18405. (createCancelMessage): Use PeerMessageUtil.
  18406. (createPieceMessage): Use PeerMessageUtil.
  18407. (createHaveMessage): Use PeerMessageUtil.
  18408. (createChokeMessage): Use PeerMessageUtil.
  18409. (createUnchokeMessage): Use PeerMessageUtil.
  18410. (createInterestedMessage): Use PeerMessageUtil.
  18411. (createNotInterestedMessage): Use PeerMessageUtil.
  18412. (createBitfieldMessage): Use PeerMessageUtil.
  18413. (createKeepAliveMessage): Use PeerMessageUtil.
  18414. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  18415. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  18416. * src/PeerInteraction.h: New class.
  18417. * src/PeerInteraction.cc: New class.
  18418. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18419. Each peer message has its own class.
  18420. * src/PendingMessages.h: Removed.
  18421. * src/PendingMessages.cc: Removed. The sending process was moved to
  18422. each message class.
  18423. * src/RequestSlotMan.h: Removed.
  18424. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  18425. SendMessageQueue.
  18426. * src/RequestMessage.h: New class.
  18427. * src/RequestMessage.cc: New class.
  18428. * src/CancelMessage.h: New class.
  18429. * src/CancelMessage.cc: New class.
  18430. * src/BitfieldMessage.h: New class.
  18431. * src/BitfieldMessage.cc: New class.
  18432. * src/ChokeMessage.h: New class.
  18433. * src/ChokeMessage.cc: New class.
  18434. * src/KeepAliveMessage.h: New class.
  18435. * src/KeepAliveMessage.cc: New class.
  18436. * src/PortMessage.h: New class.
  18437. * src/UnchokeMessage.h: New class.
  18438. * src/UnchokeMessage.cc: New class.
  18439. * src/PieceMessage.h: New class.
  18440. * src/PieceMessage.cc: New class.
  18441. * src/HaveMessage.h: New class.
  18442. * src/HaveMessage.cc: New class.
  18443. * src/BitfieldMessage.h: New class.
  18444. * src/BitfieldMessage.cc: New class.
  18445. * src/NotInterestedMessage.h: New class.
  18446. * src/NotInterestedMessage.cc: New class.
  18447. * src/InterestedMessage.h: New class.
  18448. * src/InterestedMessage.cc: New class.
  18449. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  18450. (getSendMessageQueue): New function.
  18451. (setSendMessageQueue): New function.
  18452. * src/HandshakeMessage.cc: New class.
  18453. * src/PeerConnection.h (receiveMessage): Changed return value and
  18454. arguments.
  18455. (receiveHandshake): Changed return value and arguments.
  18456. * src/PeerConnection.cc (receiveMessage): Do not create message class
  18457. here.
  18458. (receiveHandshake): Do not create handshake class here.
  18459. * src/PeerInteractionCommand.h (peerConnection): Removed.
  18460. (piece): Removed.
  18461. (syncPiece): Removed.
  18462. (sendInterest): Removed.
  18463. (sendMessages): Removed.
  18464. (createRequestPendingMessage): Removed.
  18465. (checkPieceHash): Removed.
  18466. (erasePieceOnDisk): Removed.
  18467. (getNewPieceAndSendInterest): Removed.
  18468. (onGotNewPice): Removed.
  18469. (onGotWrongPiece): Removed.
  18470. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18471. Removed peerConnection, piece.
  18472. (~PeerInteractionCommand): Removed peerConnection.
  18473. (executeInternal): Use sendMessageQueue instead of peerConnection.
  18474. (syncPiece): Moved to SendMessageQueue.
  18475. (decideChoking): Removed PendingMessage.
  18476. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  18477. The action after receiving peer message was moved to each message
  18478. class.
  18479. (onGotNewPice): Moved to SendMessageQueue.
  18480. (onGotWrongPiece): Moved to SendMessageQueue.
  18481. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  18482. (sendInterest): Moved to SendMessageQueue.
  18483. (createRequestPendingMessage): Removed.
  18484. (sendMessages): Moved to SendMessageQueue.
  18485. (onAbort): Use SendMessageQueue::abortPiece()
  18486. (keepAlive): Use sendMessageQueue instead of peerConnection.
  18487. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  18488. (checkPieceHash): Moved to SendMessageQueue.
  18489. (erasePieceOnDisk): Moved to SendMessageQueue.
  18490. * src/PeerMessageUtil.h
  18491. (createBitfieldMessage): Removed.
  18492. (createHaveMessage): Changed return value and arguments.
  18493. (createBitfieldMessage): Changed return value and arguments.
  18494. (createRequestCancelMessage): Removed.
  18495. (createPieceMessage): Changed return value and arguments.
  18496. (getShortIntParam): New function.
  18497. (checkIndex): Changed arguments.
  18498. (checkBegin): Changed arguments.
  18499. (checkLength): Changed arguments.
  18500. (checkPieceOffset): Removed.
  18501. (checkRange): New function.
  18502. (checkBitfield): Changed arguments.
  18503. (createPeerMessage): Removed.
  18504. (checkIntegrity): Removed.
  18505. (createHandshakeMessage): Changed arguments.
  18506. (createChokeMessage): New function.
  18507. (createUnchokeMessage): New function.
  18508. (createInterestedMessage): New function.
  18509. (createNotInterestedMessage): New function.
  18510. (createRequestMessage): New function.
  18511. (createCancelMessage): New function.
  18512. (createPortMessage): New function.
  18513. * src/PeerMessageUtil.cc
  18514. (createBitfieldMessage): Removed.
  18515. (createHaveMessage): Changed return value and arguments.
  18516. (createBitfieldMessage): Changed return value and arguments.
  18517. (createRequestCancelMessage): Removed.
  18518. (createPieceMessage): Changed return value and arguments.
  18519. (getShortIntParam): New function.
  18520. (checkIndex): Changed arguments.
  18521. (checkBegin): Changed arguments.
  18522. (checkLength): Changed arguments.
  18523. (checkPieceOffset): Removed.
  18524. (checkRange): New function.
  18525. (checkBitfield): Changed arguments.
  18526. (createPeerMessage): Removed.
  18527. (checkIntegrity): Removed.
  18528. (createHandshakeMessage): Changed arguments.
  18529. (createChokeMessage): New function.
  18530. (createUnchokeMessage): New function.
  18531. (createInterestedMessage): New function.
  18532. (createNotInterestedMessage): New function.
  18533. (createRequestMessage): New function.
  18534. (createCancelMessage): New function.
  18535. (createPortMessage): New function.
  18536. * src/PeerMessage.h
  18537. (id): Removed.
  18538. (index): Removed.
  18539. (begin): Removed.
  18540. (length): Removed.
  18541. (bitfield): Removed.
  18542. (bitfieldLength): Removed.
  18543. (block): Removed.
  18544. (blockLength): Removed.
  18545. (inProgress): New variable.
  18546. (cuid): New variable.
  18547. (peer): New variable.
  18548. (sendMessageQueue): New variable.
  18549. (logger): New variable.
  18550. (setBitfield): Removed.
  18551. (getBitfield): Removed.
  18552. (setBlock): Removed.
  18553. (getBlock): Removed.
  18554. (getBitfieldLength): Removed.
  18555. (getBlockLength): Removed.
  18556. (isInProgress): New function.
  18557. (toString): Made pure virtual.
  18558. (check): New function.
  18559. (send): New function.
  18560. (receivedAction): New function.
  18561. (getId): Made pure virtual.
  18562. (setId): Removed.
  18563. (getIndex): Removed.
  18564. (setIndex): Removed.
  18565. (getBegin): Removed.
  18566. (setBegin): Removed.
  18567. (getLength): Removed.
  18568. (setLength): Removed.
  18569. (getCuid): New function.
  18570. (setCuid): New function.
  18571. (getPeer): New function.
  18572. (setPeer): New function.
  18573. (getSendMessageQueue): New function.
  18574. (setSendMessageQueue): New function.
  18575. (ID): Removed.
  18576. * src/PeerMessage.cc
  18577. (setBitfield): Removed.
  18578. (setBlock): Removed.
  18579. (toString): Removed.
  18580. * src/TorrentMan.h
  18581. (getPieceLength): New function.
  18582. (getPieceLength): New function.
  18583. * src/SendMessageQueue.h
  18584. (REQUEST_TIME_OUT): New definition.
  18585. (RequestSlots): New definition.
  18586. (MessageQueue): New definition.
  18587. (requestSlotMan): Removed.
  18588. (pendingMessages): Removed.
  18589. (requestSlots): New variable.
  18590. (messageQueue): New variable.
  18591. (torrentMan): New variable.
  18592. (peerConnection): New variable.
  18593. (peer): New variable.
  18594. (piece): New variable.
  18595. (getNewPieceAndSendInterest): New function.
  18596. (createPeerMessage): New function.
  18597. (createHandshakeMessage): New function.
  18598. (send): Made private.
  18599. (setPeerMessageCommonProperty): New function.
  18600. (deleteAllRequestSlot): New function.
  18601. (deleteRequestMessageInQueue): New function.
  18602. (cancelAllRequest): Made private.
  18603. (cancelAllRequest): Made private.
  18604. (countRequestSlot): Made private.
  18605. (addPendingMessage): Removed.
  18606. (deletePendingPieceMessage): Removed.
  18607. (deletePendingRequestMessage): Removed.
  18608. (addMessage): New function.
  18609. (deletePieceMessageInQueue): New function.
  18610. (deleteTimeoutRequestSlot): Changed argument.
  18611. (deleteCompletedRequestSlot): Changed argument.
  18612. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  18613. (getCorrespondingRequestSlot): New function.
  18614. (countPendingMessage): Removed.
  18615. (countMessageInQueue): New function.
  18616. (getTorrentMan): New function.
  18617. (getPeerConnection): New function.
  18618. (hasDownloadPiece): New function.
  18619. (getDownloadPiece): New function.
  18620. (setDownloadPiece): New function.
  18621. (syncPiece): New function.
  18622. (sendMessages): New function.
  18623. (sendNow): New function.
  18624. (trySendNow): New function.
  18625. (abortPiece): New function.
  18626. (sendHandshake): New function.
  18627. (receiveMessage): New function.
  18628. (receiveHandshake): New function.
  18629. (createRequestMessage): New function.
  18630. (createCancelMessage): New function.
  18631. (createPieceMessage): New function.
  18632. (createHaveMessage): New function.
  18633. (createChokeMessage): New function.
  18634. (createUnchokeMessage): New function.
  18635. (createInterestedMessage): New function.
  18636. (createNotInterestedMessage): New function.
  18637. (createBitfieldMessage): New function.
  18638. (createKeepAliveMessage): New function.
  18639. * src/SendMessageQueue.cc
  18640. (SendMessageQueue): Removed requestSlotMan.
  18641. Instantiated peerConnection here.
  18642. (~SendMessageQueue): Removed requestSlotMan.
  18643. Added deletion of peerConnection and the contents of messageQueue.
  18644. (send): Updated according to the change of messageQueue.
  18645. (addPendingMessage): Renamed to addMessage.
  18646. (addMessage): New function.
  18647. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  18648. (deletePieceMessageInQueue): New function.
  18649. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  18650. (deleteRequestMessageInQueue): New function.
  18651. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  18652. here.
  18653. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  18654. (...) was moved here.
  18655. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  18656. moved here.
  18657. (deleteCompletedRequestSlot):
  18658. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  18659. (getCorrespondingRequestSlot):
  18660. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  18661. And renamed to getCorrespondingRequestSlot, correcting a typo.
  18662. (countPendingMessage): Renamed to countMessageInQueue.
  18663. (countMessageInQueue): New function.
  18664. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  18665. (receiveHandshake): New function.
  18666. (createHandshakeMessage): New function.
  18667. (receiveMessage): New function.
  18668. (createPeerMessage): New function.
  18669. (syncPiece): New function.
  18670. (getNewPieceAndSendInterest): New function.
  18671. (sendMessages): New function.
  18672. (sendNow): New function.
  18673. (trySendNow): New function.
  18674. (sendHandshake): New function.
  18675. (abortPiece): New function.
  18676. (getDownloadPiece): New function.
  18677. (getPeerMessageCommonProperty): New function.
  18678. (createRequestMessage): New function.
  18679. (createCancelMessage): New function.
  18680. (createPieceMessage): New function.
  18681. (createHaveMessage): New function.
  18682. (createChokeMessage): New function.
  18683. (createUnchokeMessage): New function.
  18684. (createInterestedMessage): New function.
  18685. (createNotInterestedMessage): New function.
  18686. (createBitfieldMessage): New function.
  18687. (createKeepAliveMessage): New function.
  18688. To add simple Content-Disposition support:
  18689. * src/HttpResponseCommand.h (determinFilename): New function.
  18690. * src/HttpResponseCommand.cc (executeInternal):
  18691. Use determinFilename(headers) instead of req->getFile() when comparing
  18692. filename.
  18693. (determinFilename): New function.
  18694. (handleDefaultEncoding): Use determinFilename(headers) instead of
  18695. req->getFile().
  18696. (handleOtherEncoding): Use determinFilename(headers) instead of
  18697. req->getFile().
  18698. * src/Util.h (getContentDispositionFilename): New function.
  18699. * src/Util.cc (getContentDispositionFilename): New function.
  18700. * src/LogFactory.h (release): New function.
  18701. * src/LogFactory.cc (release): New function.
  18702. To fix a bug that causes out-of-bound exception when HTTP status
  18703. line is wrong:
  18704. * src/HttpConnection.cc (receiveResponse): Added a check for header
  18705. size.
  18706. * src/common.h (Deleter): New class.
  18707. * src/SegmentMan.cc
  18708. (~SegmentMan): Added deletion of splitter and diskWriter.
  18709. * src/DownloadEngine.h
  18710. (Commands): Use deque.
  18711. (clearQueue): New function.
  18712. * src/DownloadEngine.cc
  18713. (~DownloadEngine): Added deletion of segmentMan.
  18714. (cleanQueue): New function.
  18715. * src/TorrentDownloadEngine.h
  18716. (TorrentDownloadEngine): The implementation was moved to
  18717. TorrentDownloadEngine.cc.
  18718. (~TorrentDownloadEngine): The implementation was moved to
  18719. TorrentDownloadEngine.cc.
  18720. * src/TorrentDownloadEngine.cc
  18721. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18722. * src/main.cc
  18723. (clearRequest): Removed.
  18724. (handler): Added deletion of e.
  18725. (torrentHandler): Added deletion of te.
  18726. (main): Do not share splitter.
  18727. Use Deleter instead of clearRequest.
  18728. Deletion of classes were updated.
  18729. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18730. * src/main.cc (main): Fixed typo.
  18731. * src/message.h: Fixed typo.
  18732. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18733. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18734. To add --select-file command-line option:
  18735. * src/Util.cc
  18736. (unfoldRange): New function.
  18737. (getNum): New function.
  18738. (unfoldSubRange): New function
  18739. * src/main.cc
  18740. (showUsage): Added help message.
  18741. (main): Added --select-file command-line option. Updated the layout of
  18742. file listing.
  18743. * src/common.h
  18744. (Integers): New definition.
  18745. * src/SocketCore.cc
  18746. (writeData): Removed timeout argument.
  18747. (readData): Removed timeout argument.
  18748. (peekData): Removed timeout argument.
  18749. * src/Socket.cc
  18750. (writeData): Removed timeout argument.
  18751. (readData): Removed timeout argument.
  18752. (peekData): Removed timeout argument.
  18753. * Release 0.4.1
  18754. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18755. To deploy upload rate based choking algorithm:
  18756. * src/PeerInteractionCommand.cc
  18757. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18758. peer currently used.
  18759. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18760. download completes. Simplified.
  18761. (receiveMessage): Updated.
  18762. * src/TorrentMan.h
  18763. (activePeers): New variable.
  18764. (addActivePeer): New function.
  18765. (getActivePeers): New function.
  18766. (deleteActivePeer): New function.
  18767. * src/TorrentMan.cc
  18768. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18769. * src/PeerAbstractCommand.cc
  18770. (onAbort): Use peer->resetStatus().
  18771. * src/main.cc
  18772. (PeerChokeCommand.h): Included.
  18773. (main): Added the instance of ChokingCommand to the command queue.
  18774. * src/Peer.h
  18775. (amChoking): Renamed from amChocking
  18776. (chokingRequired): New variable.
  18777. (optUnchoking): New variable.
  18778. (deltaUpload): New variable.
  18779. (deltaDownload): New variable.
  18780. (addDeltaUpload): New function.
  18781. (resetDeltaUpload): New function.
  18782. (addDeltaDownload): New function.
  18783. (resetDeltaDownload): New function.
  18784. (addPeerUpload): Added a call to addDeltaUpload.
  18785. (addPeerDownload): Added a call to addDeltaDownload.
  18786. * src/Peer.cc
  18787. (shouldBeChoking): Renamed from shouldChoke.
  18788. (resetStatus): New function.
  18789. * src/PeerChokeCommand.h: New class.
  18790. * src/PeerChokeCommand.cc: New class.
  18791. To add lazy upload speed limiter:
  18792. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18793. statistics calculation to TorrentDownloadEngine.
  18794. * src/TorrentConsoleDownloadEngine.cc
  18795. (sendStatistics): Renamed from printStatistics.
  18796. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18797. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18798. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18799. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18800. calculation.
  18801. (sendStatistics): New function as pure virtual function.
  18802. (getUploadSpeed): New function.
  18803. * src/TorrentDownloadEngine.cc
  18804. (initStatistics): New function.
  18805. (calculateSpeed): New function.
  18806. (calculateStatistics): New function.
  18807. * src/SendMessageQueue.h
  18808. (uploadLength): New variable.
  18809. (send): Added an argument.
  18810. (setUploadLimit): New function.
  18811. (getUploadLimit): New function.
  18812. * src/SendMessageQueue.cc
  18813. (send): Added upload speed limiter.
  18814. * src/prefs.h
  18815. (PREF_UPLOAD_LIMIT): New definition.
  18816. * src/PeerInteractionCommand.cc
  18817. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18818. * src/main.cc
  18819. (main): Added --upload-limit option
  18820. For bug fixes:
  18821. * src/main.cc
  18822. (showUsage): Corrected --listen-port help
  18823. Other changes:
  18824. * src/TorrentMan.cc
  18825. (getPeer): Return nullPeer if connection is grather than
  18826. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18827. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18828. To add some useful information to the exception message:
  18829. * src/SocketCore.cc : Updated messages.
  18830. * src/SegmentMan.cc :
  18831. * src/TorrentMan.cc : Updated messages.
  18832. * src/MultiDiskWriter.cc : Updated messages.
  18833. * src/Util.cc : Updated messages.
  18834. * src/AbstractDiskWriter.cc : Updated messages.
  18835. * src/PreAllocationDiskWriter.cc : Updated messages.
  18836. * src/message.cc : Added new messages. Updated some messages.
  18837. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18838. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18839. Updated threshold from 30 to 15.
  18840. * src/AbstractDiskWriter.h (filename): New variable.
  18841. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18842. (createFile): Assigned filename.
  18843. * src/main.cc: Updated the help message for http-auth-scheme.
  18844. * Release 0.4.0
  18845. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18846. To add TrackerUpdateCommand with which replaces
  18847. CompactTrackerResponseProcessor:
  18848. * src/TrackerWatcherCommand.h (req): Removed.
  18849. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18850. if the number of peer connections are less than 30.
  18851. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18852. * src/SegmentMan.h (diskWriter): New function.
  18853. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18854. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18855. (main): Use TrackerUpdateCommand.
  18856. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18857. (req): New variable.
  18858. (setTrackerResponseProcessor): Removed.
  18859. (getTrackerResponseProcessor): Removed.
  18860. (processTrackerResponse): Removed.
  18861. * src/DownloadEngine.h (diskWriter): Removed.
  18862. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18863. to torrentMan->processTrackerResponse().
  18864. To add Util::expandBuffer:
  18865. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18866. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18867. * src/Util.h (expandBuffer): New function.
  18868. To fix the bug that causes segmentation fault when "-l ." is specified
  18869. in command-line option:
  18870. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18871. (openFile): New function.
  18872. (closeFile): New function.
  18873. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18874. (~SimpleLogger): Call closeFile();
  18875. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18876. * src/main.cc (main): Added a check to see logger is configured
  18877. properly.
  18878. To enable HTTP authentication without specifying "--http-auth-scheme"
  18879. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18880. * src/HttpConnection.cc (createRequest): Send Authorization header
  18881. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18882. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18883. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18884. * src/Peer.cc (shouldChoke): Updated algorithm.
  18885. * src/message.h (EX_AUTH_FAILED): New definition.
  18886. (EX_FILE_OPEN): New definition.
  18887. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18888. if status == 401.
  18889. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18890. if req->isTorrent == true.
  18891. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18892. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18893. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18894. (createFile): Updated message.
  18895. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18896. To add a readout of estimated remaining time to normal HTTP/FTP
  18897. downloads:
  18898. * src/ConsoleDownloadEngine.h (startup): New variable.
  18899. (startupLength): New variable.
  18900. (isStartupLengthSet): New variable.
  18901. (avgSpeed): New variable.
  18902. (eta): New variable.
  18903. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18904. estimated remaining time.
  18905. (initStatistics): Initialized newly added variables.
  18906. (calculateStatistics): Calculate average speed and estimated remaining
  18907. time.
  18908. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18909. * src/TrackerDownloadCommand.h: Removed.
  18910. * src/TrackerDownloadCommand.cc: Removed.
  18911. * src/TrackerInitCommand.h: Removed.
  18912. * src/TrackerInitCommand.cc: Removed.
  18913. * src/TrackerUpdateCommand.h: Removed.
  18914. * src/TrackerUpdateCommand.cc: Removed.
  18915. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18916. url written in TrackerInitCommand was moved here. Do not create
  18917. tracker request command if torrentMan->trackers != 0.
  18918. * src/CompactTrackerResponseProcessor.h: New class.
  18919. * src/CompactTrackerResponseProcessor.cc: New class.
  18920. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18921. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18922. Decoupled TorrentDownloadEngine from this.
  18923. * src/SegmentMan.h (init): New function.
  18924. * src/SegmentMan.cc (init): New function.
  18925. * src/TorrentMan.h (responseProcessor): New variable.
  18926. (trackers): New variable.
  18927. (setTrackerResponseProcessor): New function.
  18928. (getTrackerResponseProcessor): New function.
  18929. (processTrackerResponse): New function.
  18930. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18931. (processTrackerResponse): New function.
  18932. * src/main.cc (main): Use ByteArrayDiskWriter and
  18933. CompactTrackerResponseProcessor.
  18934. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18935. processTrackerResponse().
  18936. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18937. readout.
  18938. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18939. which indicates download has completed.
  18940. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18941. (closeFile): fd >= 0, not fd > 0
  18942. * src/main.cc (main): Added short cut for show-files.
  18943. Added short cut for torrent-file.
  18944. Added new command-line option listen-port.
  18945. Updated i18n messages.
  18946. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18947. To add LogFactory which creates singleton logger:
  18948. * src/LogFactory.h: New class.
  18949. * src/LogFactory.cc: New class.
  18950. * src/Command.h (logger): New variable.
  18951. (Constructor): Use LogFactory.
  18952. * src/AbstractCommand.cc: Use Command::logger
  18953. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18954. Use LogFactory.
  18955. * src/SegmentSplitter.h : Made logger protected.
  18956. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18957. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18958. * src/DownloadEngine.h : Made logger protected.
  18959. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18960. * src/PeerInteractionCommand.cc : Use Command::logger.
  18961. * src/HttpResponseCommand.cc : Use Command::logger.
  18962. * src/SegmentMan.h : Made logger private.
  18963. * src/TorrentMan.h : Made logger private.
  18964. * src/TorrentMan.cc : Use LogFactory.
  18965. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18966. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18967. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18968. Use LogFactory.
  18969. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18970. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18971. Use LogFactory.
  18972. * src/DownloadCommand.cc : Use Command::logger.
  18973. * src/PeerAbstractCommand.cc : Use Command::logger.
  18974. * src/PeerListenCommand.cc : Use Command::logger.
  18975. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18976. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18977. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18978. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18979. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18980. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18981. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18982. Use LogFactory.
  18983. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18984. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18985. Use LogFactory.
  18986. * src/main.cc (main): Use LogFactory.
  18987. * src/DiskAdaptor.h (logger): New variable.
  18988. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18989. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18990. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18991. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18992. parameter to a tracker request.
  18993. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18994. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18995. * src/main.cc (setSignalHander): New function.
  18996. (main): Added a handler for SIGTERM.
  18997. (handler): Updated message.
  18998. (torrentHandler): Updated message.
  18999. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19000. * src/TorrentConsoleDownloadEngine.cc
  19001. (onPartialDownloadingCompletes): Renamed as
  19002. onSelectiveDownloadingCompletes.
  19003. (onSelectiveDownloadingCompletes): Updated message.
  19004. To add DiskAdaptor which abstract DiskWriter family:
  19005. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  19006. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  19007. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  19008. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  19009. MultiDiskAdaptor.h.
  19010. (readFileEntry): Changed its arguments.
  19011. (setup): setupDiskWriter is merged into this function.
  19012. (setupDiskWriter): Removed.
  19013. (setFileFilter): New function.
  19014. (readFileEntryFromMetaInfoFile): Updated according to the changes
  19015. made in readFileEntry.
  19016. (getFilePath): Removed.
  19017. (getTempFilePath): Removed.
  19018. (getSegmentFilePath): Updated due to the removal of getFilePath.
  19019. (fixFilename): Removed.
  19020. (copySingleFile): Removed.
  19021. (splitMultiFile): Removed.
  19022. (deleteTempFile): Removed.
  19023. (setFileEntriesToDownload): Removed.
  19024. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  19025. (isSelectiveDownloadingMode): New function.
  19026. (setAllMultiFileRequestedState): Removed.
  19027. (finishPartialDownloadingMode): Renamed as
  19028. finishSelectiveDownloadingMode.
  19029. (finishSelectiveDownloadingMode): New function.
  19030. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  19031. (getSelectedTotalLength): New function.
  19032. (onDownloadComplete): Use diskAdaptor.
  19033. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  19034. (Range): Removed.
  19035. (setMultiFileEntries): Renamed as setFileEntries.
  19036. (setFileEntries): New function.
  19037. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  19038. (pieceLength): New variable.
  19039. * src/main.cc (printDownloadCompeleteMessage): New function.
  19040. (torrentHandler): Use diskAdaptor instead of diskWriter.
  19041. (main): Renamed torrent-show-files to show-files.
  19042. Rewritten file contents listing.
  19043. * src/TorrentMan.h (FileEntry): Removed.
  19044. (multiFileTopDir): Removed.
  19045. (multiFileEntries): Removed.
  19046. (diskWriter): Removed.
  19047. (diskAdaptor): New variable.
  19048. * src/DefaultDiskWriter.h (totalLength): New variable.
  19049. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  19050. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  19051. diskWriter.
  19052. * src/TorrentConsoleDownloadEngine.h
  19053. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  19054. (partialTotalLength): Renamed as selectedTotalLength.
  19055. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  19056. openExistingFile, otherwise call initAndOpenFile.
  19057. (closeFile): fd > 0, not fd != 0.
  19058. * src/DirectDiskAdaptor.h: New class.
  19059. * src/DirectDiskAdaptor.cc: New class.
  19060. * src/MultiDiskAdaptor.h: New class.
  19061. * src/MultiDiskAdaptor.cc: New class.
  19062. * src/CopyDiskAdaptor.h: New class.
  19063. * src/CopyDiskAdaptor.cc: New class.
  19064. * src/DiskAdaptor.h: New class.
  19065. * src/DiskAdaptor.cc: New class.
  19066. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  19067. (PREF_SHOW_FILES): New definition.
  19068. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19069. To add the ability to download multi torrent into respective files
  19070. directly:
  19071. * src/DiskWriter.h (openFile): New function.
  19072. (seek): Removed.
  19073. * src/MultiDiskWriter.h: New class.
  19074. * src/MultiDiskWriter.cc: New class.
  19075. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  19076. protected.
  19077. (openFile): New function.
  19078. * src/AbstractDiskWriter.cc (openFile): New function.
  19079. * src/prefs.h (V_FALSE): New definition.
  19080. (PREF_DIRECT_FILE_MAPPING): New definition.
  19081. * src/TorrentMan.h (setupDiskWriter): New function.
  19082. (setAllMultiFileRequestedState): New function.
  19083. (onDownloadComplete): New function.
  19084. * src/TorrentMan.cc : Included MultiDiskWriter.h
  19085. (setupDiskWriter): New function.
  19086. (getFilePath): Updated.
  19087. (getTempFilePath): Updated.
  19088. (getSegmentFilePath): Updated.
  19089. (fixFilename): Updated.
  19090. (deleteTempFile): Updated.
  19091. (setAllMultiFileRequestedState): New function.
  19092. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  19093. (finishPartialDownloadingMode): Reset requested flags.
  19094. (onDownloadComplete): New function.
  19095. * src/main.cc: Added --direct-file-mapping option.
  19096. Use TorrentMan::setupDiskWriter().
  19097. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  19098. onDownloadComplete().
  19099. To fix ETA bug:
  19100. * src/Util.h (difftvsec): New function.
  19101. * src/Util.cc (difftvsec): New function.
  19102. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  19103. type of "elapsed" instead of long long int.
  19104. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  19105. The updates of statistics takes place every 1 seconds.
  19106. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  19107. (calculateSpeed): Changed its argument signature.
  19108. * src/PeerMessage.cc (toString): Fixed message.
  19109. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19110. To print ETA:
  19111. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  19112. completion handling when dealing with
  19113. TorrentMan::isPartialDownloadingMode() == true.
  19114. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  19115. New function.
  19116. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  19117. (sessionDownloadLength): New variable.
  19118. (avgSpeed): New variable.
  19119. (eta): New variable.
  19120. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  19121. new variables: eta, avgSpeed, startup.
  19122. (calculateSpeed): Calculate average speed and ETA.
  19123. (printStatistics): Added ETA.
  19124. * src/Util.h (secfmt): New function.
  19125. * src/Util.cc (secfmt): New function.
  19126. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19127. To detect "keep alive" flooding:
  19128. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  19129. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  19130. variable: keepAliveCount.
  19131. (detectMessageFlooding): Added "keep alive" flooding detection.
  19132. (receiveMessage): Increase keepAliveCount when "keep alive" message
  19133. received.
  19134. To add the ability to download only specified files in multi-file
  19135. torrent:
  19136. * src/BitfieldMan.h (filterBitfield): New variable.
  19137. (filterEnabled): New variable.
  19138. (setFilterBit): New function.
  19139. (enableFilter): New function.
  19140. (disableFilter): New function.
  19141. (isFilterEnabled): New function.
  19142. (getFilteredTotalLength): New function.
  19143. (getCompletedLength): New function.
  19144. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  19145. filterBitfield, filterEnabled.
  19146. (CopyConstructor): Added filterBitfield and filterEnabled.
  19147. (operator==): Added filterBitfield and filterEnabled.
  19148. (Destructor): Added filterBitfield.
  19149. (getMissingIndex): Use filterBitfield.
  19150. (getMissingUnusedIndex): Use filterBitfield.
  19151. (getFirstMissingUnusedIndex): Use filterBitfield.
  19152. (getFirstMissingUnusedIndex): Use filterBitfield.
  19153. (getAllMissingIndexes): Use filterBitfield.
  19154. (countMissingBlock): Use filterBitfield.
  19155. (countBlock): Use filterBitfield.
  19156. (setBitInternal): Added new argument on.
  19157. (setUseBit): Use setBitInternal.
  19158. (unsetUseBit): Use setBitInternal.
  19159. (setBit): Use setBitInternal.
  19160. (unsetBit): Use setBitInternal.
  19161. (isAllBitSet): Use filterBitfield.
  19162. (setFilterBit): New function.
  19163. (addFilter): New function.
  19164. (enableFilter): New function.
  19165. (disableFilter): New function.
  19166. (clearFilter): New function.
  19167. (isFilterEnabled): New function.
  19168. (getFilteredTotalLength): New function.
  19169. (getCompletedLength): New function.
  19170. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  19171. Initalized newly added variables.
  19172. [FileEntry](offset): New variable.
  19173. [FileEntry](extracted): New variable.
  19174. [FileEntry](requested): New variable.
  19175. (readFileEntry): New function.
  19176. (option): New variable.
  19177. (splitMultiFile): Removed const qualifier.
  19178. (fixFilename): Removed const qualifier.
  19179. (readFileEntryFromMetaInfoFile): New function.
  19180. (finishPartialDownloadingMode): New function.
  19181. (isPartialDownloadingMode): New function.
  19182. (setFileEntriesToDownload): New function.
  19183. (getCompletedLength): New function.
  19184. (getPartialTotalLength): New function.
  19185. * src/TorrentMan.cc (readFileEntry): New function.
  19186. (setup): Use readFileEntry. If no-preallocation option is specified,
  19187. use DefaultDiskWriter.
  19188. (readFileEntryFromMetaInfoFile): New function.
  19189. (fixFilename): Removed const qualifier.
  19190. (splitMultiFile): Removed const qualifier.
  19191. (setFileEntriesToDownload): New function.
  19192. (isPartialDownloadingMode): New function.
  19193. (finishPartialDownloadingMode): New function.
  19194. (getCompletedLength): New function.
  19195. (getPartialTotalLength): New function.
  19196. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  19197. New variable.
  19198. (partialTotalLength): New variable.
  19199. (downloadLength): New variable.
  19200. (totalLength): New variable.
  19201. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  19202. Added log.
  19203. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  19204. partialTotalLength, downloadLength, totalLength.
  19205. (calculate): Calculate downloadLength and totalLength.
  19206. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  19207. * src/main.cc (addCommand): Changed argument signature.
  19208. (main): Added new variable: args. Added new option "torrent-show-files"
  19209. "no-preallocation". Usage is not updated yet.
  19210. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19211. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  19212. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19213. Attempt to add the ability to listing file entries in a .torrent file.
  19214. This feature is not yet complete.
  19215. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  19216. * src/TorrentMan.cc (getMultiFileEntries): New function.
  19217. (getName): New function.
  19218. * src/TorrentMan.h (getMultiFileEntries): New function.
  19219. (getName): New function.
  19220. * src/main.cc (main): Use above 2 funtion.
  19221. * Release 0.3.2
  19222. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19223. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  19224. (detectMessageFlooding): Updated threshold value.
  19225. (checkLongTimePeerChoking): Updated timeout value.
  19226. (getNewPieceAndSendInterest): Added debug log.
  19227. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  19228. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  19229. (getPeer): Updated.
  19230. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  19231. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  19232. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  19233. is localhost.
  19234. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  19235. * src/PendingMessage.cc (processMessage): Not to send piece message
  19236. if peer is not interested in the pieces localhost has.
  19237. * src/Peer.cc (shouldChoke): Updated.
  19238. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  19239. * src/Util.cc (isPowerOf): New function.
  19240. * src/Util.h (isPowerOf): New function.
  19241. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  19242. whether or not it is power of 2.
  19243. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19244. Added new class SendMessageQueue that includes PendingMessages and
  19245. RequestSlotMan.
  19246. * src/SendMessageQueue.h: New class.
  19247. * src/SendMessageQueue.cc: New class.
  19248. * src/PendingMessage.h: Added new member variable blockIndex and its
  19249. accessors.
  19250. (createRequestMessage): Updated.
  19251. * src/PendingMessage.cc (createRequestMessage): Updated.
  19252. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  19253. SendMessageQueue.
  19254. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  19255. (receiveMessage): Updated with SendMessageQueue.
  19256. (deletePendingPieceMessage): Removed.
  19257. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  19258. (sendInterest): Updated with SendMessageQueue.
  19259. (createRequestPendingMessage): Updated with SendMessageQueue.
  19260. (sendMessages): Updated with SendMessageQueue.
  19261. (onAbort): Updated with SendMessageQueue.
  19262. (keepAlive): Updated with SendMessageQueue.
  19263. (beforeSocketCheck): Updated SendMessageQueue.
  19264. * src/PeerInteractionCommand (sendMessages): Shuffle
  19265. missingBLockIndexes before using it.
  19266. Added its own timeout for peer connection.
  19267. * src/PeerAbstractCommand.h: Added member variable timeout and its
  19268. setter.
  19269. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  19270. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  19271. Added setTimeout() call.
  19272. (executeInternal): Added setTimeout() call.
  19273. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  19274. Added timeout.
  19275. (isTimeoutDetected): Updated.
  19276. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  19277. option.
  19278. Added *simple* message flooding checker.
  19279. * src/PeerInteractionCommand.cc (executeInternal):
  19280. Added detectMessageFlooding() call.
  19281. (detectMessageFlooding): New function.
  19282. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  19283. (beforeSocketCheck): Added detectMessageFlooding() call.
  19284. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  19285. chokeUnchokeCount, haveCount, detectMessageFlooding().
  19286. Removed deletePendingPieceMessage(), getRequestSlot(),
  19287. deleteRequestSlot(), deleteAllRequestSlot().
  19288. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  19289. Added checkLongTimePeerChoking() call.
  19290. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  19291. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  19292. if duplicate == false.
  19293. The parameter "uploaded" and "downloaded" in the tracker request are
  19294. the size since the client sent the "started" event to the tracker.
  19295. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  19296. uploaded size to preDownloadedSize, preUploadedSize respectively.
  19297. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  19298. getSessionDownloadedSize(), getSessionUploadedSize().
  19299. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  19300. getSessionUploadedSize() instead of getDownloadedSize(),
  19301. getUploadedSize().
  19302. * src/PendingMessage.cc (processMessage): Do not send request message
  19303. if the peer is choking the client.
  19304. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  19305. less than interval.
  19306. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19307. * configure.in: Added gnutls support. Added several CPP macros.
  19308. * m4/openssl.m4: Added.
  19309. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  19310. readData(), peekData(). Added gnutls support.
  19311. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  19312. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  19313. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  19314. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  19315. Instead, added a check for whether setup method has executed
  19316. successfully.
  19317. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  19318. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  19319. * src/Makefile.am: Updated.
  19320. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  19321. using whether OpenSSL or gcrypt, depending on the result of configure
  19322. script.
  19323. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  19324. messageDigest.h.
  19325. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  19326. * src/PeerListenCommand.cc: Added log about port binded successfully.
  19327. Fixed memory leak.
  19328. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  19329. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  19330. Removed instantiation of TrackerInitCommand. Instead,
  19331. TrackerWatcherCommand is instantiated and pushed to the command queue.
  19332. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  19333. ENABLE_SSL.
  19334. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  19335. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  19336. If a piece is already acquired by another command, delete the request
  19337. slots for the piece.
  19338. * src/TrackerUpdateCommand.cc (execute):
  19339. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  19340. Added a check whether peer list is null.
  19341. Fixed the bug that causes sending completed event to the tracker
  19342. several times.
  19343. * src/TrackerInitCommand.cc (execute):
  19344. Fixed the bug that causes sending completed event to the tracker
  19345. several times.
  19346. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  19347. by using messageDigest.h.
  19348. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19349. * PeerConnection.cc: Replaced log message "keep-alive" with
  19350. "keep alive".
  19351. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  19352. localhost long time.
  19353. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  19354. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  19355. at most 100 failure entry from the list. If with duplicate = false,
  19356. MAX_PEER_LIST is not checked.
  19357. * PeerListenCommand.cc: Fixed the argument order of log message.
  19358. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19359. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  19360. Added warn().
  19361. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  19362. Implemented warn().
  19363. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  19364. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19365. * Request.h: Added AFTER_COMPLETED event.
  19366. * TorrentDownloadEngine.cc: Prints "Download complete" message
  19367. instead of downloaded size and progress(%) after download completes.
  19368. * PeerInteractionCommand.cc: After download completes, sends unchoke
  19369. message to the peer if it is interested in what localhost has
  19370. downloaded.
  19371. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  19372. destination instead of just renaming it.
  19373. * TorrentMan.cc: Added deleteTempFile().
  19374. * PeerAbstractCommand.cc: do not stop execution after download
  19375. completes. This makes localhost a seeder.
  19376. * Util.{h,cc}: Added fileCopy().
  19377. * PeerListenCommand.cc: do not stop execution after download completes.
  19378. This makes localhost a seeder.
  19379. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  19380. Added TorrentMan::deleteTempFile() to torrentHandler.
  19381. Initialized the variable dir as ".".
  19382. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  19383. Deleted renameSingleFile().
  19384. Added copySingleFile(), deleteTempFile().
  19385. * DownloadEngine.h: Added virtual function afterEachIteration().
  19386. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  19387. in onEndOfRun() to afterEachIteration().
  19388. In onEndOfRun(), changed if condition to check whether filenameFixed is
  19389. true.
  19390. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  19391. In rangedFileCopy(), added try-catch block to properly close file
  19392. descriptors.
  19393. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  19394. Added afterEachIteration(), isFilenameFixed().
  19395. * Peer.cc: Changed choking strategy.
  19396. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  19397. * TrackerInitCommand.cc: Send completed event only once.
  19398. * DownloadEngine.cc: Added a call to afterEachIteration().
  19399. * TrackerUpdateCommand.cc: Do not stop execution after download
  19400. completes.
  19401. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  19402. connect the peers at most MAX_PEER_UPDATE when a peer list is
  19403. received from a tracker.
  19404. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  19405. Decreased the number of failure peers to delete to 0(just comment out
  19406. the line).
  19407. * Release 0.3.1
  19408. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19409. * PeerInteractionCommand.cc: added a call to
  19410. TorrentMan::unadvertisePiece in Destructor.
  19411. * PeerInteractionCommand.cc: make have message sent immediately
  19412. if the size of pending message queue is zero.
  19413. * TorrentMan.cc: set the maximum size of peer list to 250.
  19414. * TorrentMan.h: changed the container type of Peers and UsedPieces
  19415. to deque.
  19416. * Util.cc: fixed rangedFileCopy.
  19417. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  19418. to Constructor. Also, moved digest cleanup to Destructor.
  19419. * MetaFileUtil.cc: fixed memory leak
  19420. * replaced std::vector with std::deque.
  19421. * AbstractCommand.cc: casted timeout value to long long int.
  19422. * ChunkedEncoding.cc: fixed memory leak.
  19423. * PeerInteractionCommand.cc: casted timeout value to long long int.
  19424. * SleepCommand.cc: casted timeout value to long long int.
  19425. * Data.cc: fixed memory leak.
  19426. * Data.cc: fixed toLLInt().
  19427. * BitfieldMan.cc: fixed memory leak.
  19428. * TorrentMan.cc: initialized storeDir to ".".
  19429. * TorrentMan.cc: fixed memory leak.
  19430. * TorrentMan.cc: corrected file paths of splitted files.
  19431. * PeerAbstractCommand.cc: casted timeout to long long int.
  19432. * main.cc: added delete(req) and delete(te->diskWriter).
  19433. * RequestSlot.cc: casted timeout value to long long int.
  19434. * Request.cc: fixed memory leak.
  19435. * PendingMessage.cc: make HAVE messages sent only when peer does not
  19436. have the piece.
  19437. * Peer.{h,cc}: added hasPiece(int index).
  19438. * main.cc: corrected addCommand.
  19439. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19440. * BitTorrent protocol support added.
  19441. * Release 0.3.0
  19442. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19443. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  19444. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19445. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  19446. decoding did not work properly.
  19447. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19448. * DownloadEngine.h: included sys/time.h
  19449. * DownloadEngine.cc: remove sys/time.h
  19450. * Makefile.am (SUBDIRS): Add intl.
  19451. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  19452. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19453. * main.cc: correct help message for --http-auth-scheme.
  19454. * main.cc: changed e-mail address for bug reports.
  19455. * ja.po: added japanese translation.
  19456. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19457. * SimpleLogger.cc: flush log file instead of stdout.
  19458. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19459. * main.cc: Fixed command-line option: max-tries
  19460. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  19461. does not equal to seg.sp.
  19462. * DownloadCommand.cc: If EOF is got from the server and the total size
  19463. of file is not zero, then throw DlRetryEx.
  19464. * main.cc: Set the minium value of min-segment-size to 1024.
  19465. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  19466. fails because of a regression since 0.2.0 release.
  19467. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19468. * HttpConnection.cc:
  19469. * common.h: defined the user agent name as macro
  19470. * DownloadEngine.{h, cc}:
  19471. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  19472. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  19473. * main.cc: Download complete/abort message is now generated by main.
  19474. * Makefile.am (SUBDIRS): Add m4.
  19475. (ACLOCAL_AMFLAGS): New variable.
  19476. (EXTRA_DIST): New variable.
  19477. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  19478. * gettext: added gettext functionality
  19479. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19480. * AbstractCommand.cc:
  19481. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  19482. unregister its cuid from SegmentMan.
  19483. * DownloadEngine.cc: .aria2 file was written when a downloading
  19484. failed with errors.
  19485. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  19486. Added "User-Agent" header to CONNECT proxy request.
  19487. Fixed "Proxy-Authorization" header. Now proxy authorization works
  19488. properly.
  19489. * Logger.h:
  19490. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  19491. * ChunkedEncoding.cc: Added #include directive for strings.h
  19492. * Release 0.2.1
  19493. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19494. * Util.{h,cc}: added startsWith().
  19495. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  19496. Util::endsWith().
  19497. * SocketCore.cc: struct addrinfo is now zero-initialized.
  19498. * common.h: added #include directive of limit.h.
  19499. * DownloadEngine.cc: added #include directive of sys/time.h and
  19500. algorithm.
  19501. * Exception.h: added #include directive of stdio.h.
  19502. * AbstractCommand.h: added #include directive of sys/time.h.
  19503. * DownloadCommand.h: added #include directive of sys/time.h.
  19504. * *.h: added #include directive of common.h to all base classes.
  19505. subclasses' one was removed.
  19506. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  19507. does not define these macros.
  19508. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19509. * Release 0.2.0
  19510. * main.cc:
  19511. * HttpInitiateConnectionCommand.{h,cc}:
  19512. * prefs.h:
  19513. * HttpConnection.{h,cc}: added --http-proxy-method option.
  19514. We can now use GET command in http proxy.
  19515. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19516. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  19517. that splits slowest segment of SegmentMan::commands vector.
  19518. This is the default split algorithm of aria2.
  19519. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  19520. that splits first segment of SegmentMan::commands vector.
  19521. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  19522. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  19523. * Segment.h:
  19524. * SegmentMan.cc: Added speed field to Segment.h
  19525. * main.cc: -s option now affects all URLs in command-line arguemtns.
  19526. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  19527. * message.h: Change file size related %d to %lld.
  19528. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19529. * FtpInitiateConnectionCommand.{h,cc}:
  19530. * FtpNegotiationCommand.{h,cc}:
  19531. * FtpDownloadCommand.{h,cc}:
  19532. * FtpConnection.{h,cc}: Added FTP support
  19533. * SimpleLogger.cc: Log message now includes time information.
  19534. * main.cc: The value of --http-auth-scheme option is chagned from
  19535. 'BASIC' to 'basic'
  19536. * main.cc: Added --timeout command-line option.
  19537. * main.cc: Added --min-segment-size command-line option.
  19538. * main.cc: Added --max-retries command-line option.
  19539. * prefs.h: option string constants are now defined in prefs.h
  19540. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19541. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  19542. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  19543. with version 0.1.0's one.
  19544. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19545. * configure.in: Added --enable-ssl option to configure script.
  19546. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  19547. cannot permit absoluteURI as Request-URI.
  19548. * HttpConnection.cc: Added Referer support.
  19549. * main.cc: Added referer command-line option.
  19550. * main.cc: Added rety-wait command-line option.
  19551. * Exception.h: Fixed formating bug in Exception::setMsg()
  19552. * SocketCore.{h,cc}:
  19553. * Socket.{h, cc}:
  19554. * Request.cc:
  19555. * InitiateConnectionCommandFactory.cc:
  19556. * HttpRequestCommand.cc: Added HTTPS support.
  19557. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  19558. for SocketCore.
  19559. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  19560. size is wrong
  19561. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  19562. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  19563. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  19564. * Release 0.1.0