ChangeLog 750 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318
  1. 2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed the bug that reading Metalink from pipe fails on older
  3. libxml2. It only accepts "-" as a special keyword to read stdin.
  4. * src/XML2SAXMetalinkProcessor.cc
  5. 2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Added log message when cookies are loaded. Added filename to log
  7. message when serializing session.
  8. * src/MultiUrlRequestInfo.cc
  9. 2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Treat SIGHUP and SIGTERM signal as emergency shutdown because they
  11. are usually issued by system or other process.
  12. * src/MultiUrlRequestInfo.cc
  13. 2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Use downloadresultcode::IN_PROGRESS for
  15. RequestGroup::SHUTDOWN_SIGNAL.
  16. * src/RequestGroup.cc
  17. 2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Call requestForceHalt() instead of _requestGroupMan->forceHalt().
  19. * src/DownloadEngine.cc
  20. 2010-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Mentioned RFC 5854 in README and man page.
  22. * README
  23. * doc/aria2c.1.txt
  24. 2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Bump up version number to 1.9.4
  26. * configure.ac
  27. * doc/aria2c.1.txt
  28. 2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Don't throw exception when Metalink document is empty(no file
  30. element). It is a valid Metalink document anyway.
  31. * src/MetalinkHelper.cc
  32. * src/download_helper.cc
  33. 2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Fixed double memory free when Exception raised from
  35. AbstractCommand::prepareForNextAction() called by
  36. HttpResponseCommand::handleDefaultEncoding().
  37. * src/AbstractCommand.cc
  38. * src/HttpResponseCommand.cc
  39. 2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Added _logger->info() guard
  41. * src/IteratableChunkChecksumValidator.cc
  42. 2010-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Fixed the bug that feeding Metalink XML via pipe (-M- option) does
  44. not work when aria2 is built with expat. Fixed the bug that when
  45. Metalink XML is fed via pipe and --save-session is used, entry
  46. "/dev/stdin" is saved in session file.
  47. * src/ExpatMetalinkProcessor.cc
  48. * src/ExpatMetalinkProcessor.h
  49. * src/Metalink2RequestGroup.cc
  50. 2010-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Updated doc
  52. * src/aria2c.1.txt
  53. 2010-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Added totalLength, completedLength, uploadLength, bitfield,
  55. downloadSpeed, uploadSpeed, infoHash, numSeeders, pieceLength,
  56. numPieces, connections and dir to the response of
  57. aria2.tellStopped XML-RPC method. aria2.tellWaiting now always
  58. returns numSeeders for BitTorrent download.
  59. * src/DownloadResult.h
  60. * src/RequestGroup.cc
  61. * src/RequestGroup.h
  62. * src/XmlRpcMethodImpl.cc
  63. * test/XmlRpcMethodTest.cc
  64. 2010-05-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Fixed the bug that connection pooling does not take into account
  66. proxy. This means that when connection A via proxy X is pooled,
  67. it will be wrongly reused in the download using proxy Y.
  68. * src/DownloadEngine.cc
  69. * src/DownloadEngine.h
  70. * src/FtpFinishDownloadCommand.cc
  71. * src/FtpInitiateConnectionCommand.cc
  72. * src/FtpNegotiationCommand.cc
  73. * src/HttpDownloadCommand.cc
  74. * src/HttpInitiateConnectionCommand.cc
  75. * src/HttpResponseCommand.cc
  76. * src/HttpSkipResponseCommand.cc
  77. 2010-05-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. Fixed the bug that FTP download may fail when control connection
  79. is reused. This happens because FTP server can offer different
  80. root directory for different account. If pooled connections has
  81. different root directory, then download will fail.
  82. * src/DownloadEngine.cc
  83. * src/DownloadEngine.h
  84. * src/FtpConnection.cc
  85. * src/FtpConnection.h
  86. * src/FtpFinishDownloadCommand.cc
  87. * src/FtpInitiateConnectionCommand.cc
  88. * src/FtpNegotiationCommand.cc
  89. 2010-05-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Removed DownloadResult's ctor because it has many args.
  91. * src/DownloadResult.h
  92. * src/RequestGroup.cc
  93. * test/XmlRpcMethodTest.cc
  94. 2010-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Code cleanup.
  96. * src/RequestGroupMan.cc
  97. * src/UTMetadataPostDownloadHandler.cc
  98. * src/XmlRpcMethodImpl.cc
  99. 2010-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Store both whole checksum and piece hash in metalink file.
  101. Dispatch whole checksum verification only when piece hash is not
  102. set.
  103. * src/DownloadCommand.cc
  104. * src/Metalink2RequestGroup.cc
  105. * test/Metalink2RequestGroupTest.cc
  106. 2010-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Left only IANA hash function textual name in messageDigest.cc.
  108. Assign only IANA hash function textual name to Checksum and
  109. ChunkChecksum. Fixed the value of MessageDigestContext::MD5.
  110. * src/Checksum.h
  111. * src/MetalinkParserController.cc
  112. * src/messageDigest.cc
  113. * src/messageDigest.h
  114. * test/IteratableChecksumValidatorTest.cc
  115. * test/IteratableChunkChecksumValidatorTest.cc
  116. * test/MessageDigestHelperTest.cc
  117. * test/Metalink2RequestGroupTest.cc
  118. * test/MetalinkProcessorTest.cc
  119. 2010-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Fixed typo in log message
  121. * src/AbstractCommand.cc
  122. 2010-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Release 1.9.3
  124. 2010-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Return const reference.
  126. * src/DefaultPieceStorage.h
  127. * src/DownloadContext.h
  128. * src/FeatureConfig.cc
  129. * src/FeatureConfig.h
  130. * src/OptionParser.cc
  131. * src/OptionParser.h
  132. * src/SimpleRandomizer.cc
  133. * src/SimpleRandomizer.h
  134. 2010-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  135. Bump up version number to 1.9.3.
  136. * configure.ac
  137. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  138. Return const reference.
  139. * src/LpdMessageReceiver.h
  140. * src/LpdReceiveMessageCommand.h
  141. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Removed useless pathJoin
  143. * src/MetalinkParserController.cc
  144. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Fixed the bug that name attribute of file element in Metalink file
  146. is not properly sanitized.
  147. * src/Metalink2RequestGroup.cc
  148. * src/MetalinkParserController.cc
  149. * test/Makefile.am
  150. * test/Metalink2RequestGroupTest.cc
  151. * test/metalink4-dosdirtraversal.xml
  152. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. Fixed the bug that if filename in Content-Disposition header
  154. includes ';', aria2 cuts filename after ';'.
  155. * src/util.cc
  156. * test/UtilTest.cc
  157. 2010-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Release 1.9.2
  159. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Fixed compiler warning on opensolaris.
  161. * src/StringFormat.h
  162. * src/XORCloser.h
  163. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Updated doc
  165. * test/array_funTest.cc
  166. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Fixed segmentation fault when running unit tests on opensolaris.
  168. * src/SocketCore.cc
  169. * src/bittorrent_helper.cc
  170. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  171. Updated Russian translation. Thanks to all translators.
  172. * po/ru.po
  173. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Updated po templates.
  175. * po/aria2.pot
  176. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Print warning when trying to add file descriptor >= FD_SET or < 0
  178. to fd_set for other than MinGW32 build. For MinGW32 build, print
  179. warning when trying to add file descriptor to fd_set when it
  180. already contains FD_SET file descriptors.
  181. * src/SelectEventPoll.cc
  182. * src/SocketCore.cc
  183. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Updated doc for --event-poll option.
  185. * doc/aria2c.1.txt
  186. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  187. Bump up version number to 1.9.2
  188. * configure.ac
  189. * doc/aria2c.1.txt
  190. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  191. Defined FD_SETSIZE 1024 for MinGW32.
  192. * src/a2netcompat.h
  193. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Fixed compile error on the system which lacks poll()
  195. * src/DownloadEngineFactory.cc
  196. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. In SocketCore::isReadable()/isWritable(), use poll() if it is
  198. available otherwise use select(). Removed epoll/port from there
  199. because poll() does the good enough job for single socket event
  200. notification.
  201. * src/SocketCore.cc
  202. * src/SocketCore.h
  203. * src/main.cc
  204. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Added kqueue support. We use poll() for
  206. SocketCore::isReadable()/isWritable() when kqueue is used.
  207. * configure.ac
  208. * src/DownloadEngineFactory.cc
  209. * src/KqueueEventPoll.cc
  210. * src/KqueueEventPoll.h
  211. * src/Makefile.am
  212. * src/Makefile.in
  213. * src/OptionHandlerFactory.cc
  214. * src/main.cc
  215. * src/prefs.cc
  216. * src/prefs.h
  217. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  218. Added missing timespec.h to SRCS
  219. * src/Makefile.am
  220. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Fixed the bug that aria2.unpause fails with -s1.
  222. * src/FileEntry.cc
  223. * src/XmlRpcMethodImpl.cc
  224. 2010-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  225. Added missing #ifdef HAVE_PORT_ASSOCIATE
  226. * src/DownloadEngineFactory.cc
  227. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Added opensolaris port_associate() support.
  229. * src/DownloadEngineFactory.cc
  230. * src/Makefile.am
  231. * src/OptionHandlerFactory.cc
  232. * src/PortEventPoll.cc
  233. * src/PortEventPoll.h
  234. * src/SocketCore.cc
  235. * src/SocketCore.h
  236. * src/configure.ac
  237. * src/main.cc
  238. * src/prefs.cc
  239. * src/prefs.h
  240. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Fixed the bug that _e is passed where e should be passed.
  242. * src/HttpListenCommand.cc
  243. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. Increased _epEvents size if necessary.
  245. * src/EpollEventPoll.cc
  246. * src/EpollEventPoll.h
  247. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  248. Removed EventRType template parameter
  249. * src/EpollEventPoll.cc
  250. * src/EpollEventPoll.h
  251. * src/Event.h
  252. * src/PollEventPoll.cc
  253. * src/PollEventPoll.h
  254. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Use Event in EpollEventPoll
  256. * src/EpollEventPoll.cc
  257. * src/EpollEventPoll.h
  258. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Externalized Event, CommandEvent, ADNSEvent, SocketEntry and
  260. AsyncNameResolverEntry class.
  261. * src/Event.h
  262. * src/Makefile.am
  263. * src/PollEventPoll.cc
  264. * src/PollEventPoll.h
  265. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Supported poll() for socket event notification. --event-poll can
  267. take value "poll". Fixed the bug that timeout for
  268. SocketCore::isReadable()/isWritable() is ignored when epoll is
  269. used.
  270. * src/OptionHandlerFactory.cc
  271. * src/a2io.h
  272. * src/prefs.h
  273. * src/SocketCore.h
  274. * src/Makefile.am
  275. * src/main.cc
  276. * src/PollEventPoll.h
  277. * src/SocketCore.cc
  278. * src/DownloadEngineFactory.cc
  279. * src/PollEventPoll.cc
  280. * src/prefs.cc
  281. * configure.ac
  282. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Reverted previous change to DownloadCommand.cc with additional
  284. commentary.
  285. * src/DownloadCommand.cc
  286. 2010-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Fixed compile error with openssl 1.1.0 and mingw32.
  288. * src/AsyncNameResolver.cc
  289. * src/LogFactory.cc
  290. * src/Logger.cc
  291. * src/Logger.h
  292. * src/SocketCore.cc
  293. * src/SocketCore.h
  294. * src/a2netcompat.h
  295. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  296. Release 1.9.1
  297. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Bump up version number to 1.9.0
  299. * doc/aria2c.1.txt
  300. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Updated Ukrainian, Russian, Simplified Chinese, German and Greek
  302. translation. Thanks to all translators.
  303. * po/de.po
  304. * po/el.po
  305. * po/ru.po
  306. * po/uk.po
  307. * po/zh_CN.po
  308. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Added AC_SEARCH_LIBS for inet_aton on opensolaris. opensolaris
  310. needs -lnsl for inet_aton.
  311. * configure.ac
  312. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. Updated po templates.
  314. * po/aria2.pot
  315. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  316. Added aria2.pause, aria2.forcePause, aria2.pauseAll,
  317. aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC
  318. method to aria2rpc
  319. * doc/xmlrpc/aria2rpc
  320. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. Use elapsed time between two mach_absolute_time() calls.
  322. Fixed compile error in Mac OS X.
  323. * src/clock_gettime_osx.cc
  324. * src/timespec.h
  325. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Implemented clock_gettime() using mach_absolute_time in Mac OS X.
  327. * configure.ac
  328. * src/Makefile.am
  329. * src/a2time.h
  330. * src/clock_gettime_osx.cc
  331. * src/clock_gettime_osx.h
  332. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  333. Implemented clock_gettime() using timeGetTime in mingw.
  334. * configure.ac
  335. * src/Makefile.am
  336. * src/a2time.h
  337. * src/clock_gettime_mingw.cc
  338. * src/clock_gettime_mingw.h
  339. * src/timespec.h
  340. * test/Makefile.am
  341. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  342. Ensure that std::ofstream is destroyed before renaming.
  343. * src/SessionSerializer.cc
  344. * src/util.cc
  345. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  346. Fixed the bug that user specified path is escaped using
  347. util::escapePath() where it should not.
  348. * src/DownloadContext.cc
  349. * src/DownloadContext.h
  350. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  351. Hold reference to PieceStorage when paused in order to provide
  352. progress information via XML-RPC.
  353. * src/RequestGroup.cc
  354. * src/RequestGroup.h
  355. * src/RequestGroupMan.cc
  356. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Defined struct timespec if it is not available.
  358. * src/a2time.h
  359. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  360. Added missing serialize_session.meta4 to EXTRA_DIST
  361. * test/Makefile.am
  362. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  363. Fixed compile error without BitTorrent support.
  364. * src/Metalink2RequestGroup.cc
  365. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  366. Fixed compile error on Mac OS X
  367. * src/TimerA2.h
  368. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  369. Added warning for the system which lacks clock_gettime with
  370. CLOCK_MONOTONIC.
  371. * src/MultiUrlRequestInfo.cc
  372. * src/TimerA2.cc
  373. * src/TimerA2.h
  374. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Removed redundant method call for DownloadEngine.
  376. * src/DownloadCommand.cc
  377. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  378. Fixed the bug that hash check hangs when aria2.pause is issued
  379. while aria2 is checking piece hashes. Fixed the bug that the
  380. download is paused after file allocation completion even if
  381. aria2.pause is issued during file allocation.
  382. * src/CheckIntegrityCommand.cc
  383. * src/FileAllocationCommand.cc
  384. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  385. Added nsl to search-libs for getaddrinfo on opensolaris
  386. * configure.ac
  387. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Fixed compile error on opensolaris
  389. * configure.ac
  390. * src/Logger.h
  391. * src/GZipEncoder.h
  392. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  393. Added aria2.pauseAll, aria2.forcePauseAll and aria2.unpauseAll
  394. XML-RPC method.
  395. * doc/aria2c.1.txt
  396. * src/XmlRpcMethodFactory.cc
  397. * src/XmlRpcMethodImpl.cc
  398. * src/XmlRpcMethodImpl.h
  399. * test/XmlRpcMethodTest.cc
  400. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Added aria2.forcePause XML-RPC command.
  402. * src/XmlRpcMethodFactory.cc
  403. * src/XmlRpcMethodImpl.cc
  404. * src/XmlRpcMethodImpl.h
  405. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Use global::wallclock
  407. * src/DHTBucket.cc
  408. * src/DHTMessageTrackerEntry.cc
  409. * src/DHTMessageTrackerEntry.h
  410. * src/DefaultBtInteractive.cc
  411. * src/Peer.cc
  412. * src/PeerAbstractCommand.cc
  413. * src/PeerStat.h
  414. * src/RequestSlot.h
  415. * src/TimeBasedCommand.cc
  416. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  417. Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and
  418. usable to prevent from aria2 from being affected by system time
  419. change.
  420. 2010-04-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Added aria2.pause and aria2.unpause XML-RPC method. aria2.pause
  422. pauses the download denoted by gid. gid is of type string. The
  423. status of paused download becomes "paused" and the download is
  424. placed on the first position of waiting queue. As long as the
  425. status is "paused", the download is not started. To change status
  426. to "waiting", use aria2.unpause method. This method returns GID of
  427. paused download. aria2.unpause changes the status of the download
  428. denoted by gid from "paused" to "waiting". This makes the download
  429. eligible to restart. gid is of type string. This method returns
  430. GID of unpaused download.
  431. * doc/aria2c.1.txt
  432. * src/DownloadContext.cc
  433. * src/FileEntry.cc
  434. * src/OptionHandlerFactory.cc
  435. * src/RequestGroup.cc
  436. * src/RequestGroup.h
  437. * src/RequestGroupMan.cc
  438. * src/XmlRpcMethodFactory.cc
  439. * src/XmlRpcMethodImpl.cc
  440. * src/XmlRpcMethodImpl.h
  441. * src/prefs.cc
  442. * src/prefs.h
  443. * src/usage_text.h
  444. 2010-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Added --save-session=FILE option. This option saves
  446. error/unfinished downloads to FILE on exit. You can pass this
  447. output file to aria2c with -i option on restart. Please note that
  448. downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC
  449. method are not saved.
  450. * src/BtPostDownloadHandler.cc
  451. * src/DownloadResult.h
  452. * src/Makefile.am
  453. * src/MetadataInfo.cc
  454. * src/MetadataInfo.h
  455. * src/Metalink2RequestGroup.cc
  456. * src/MetalinkPostDownloadHandler.cc
  457. * src/MultiUrlRequestInfo.cc
  458. * src/OptionHandlerFactory.cc
  459. * src/RequestGroup.cc
  460. * src/RequestGroup.h
  461. * src/SessionSerializer.cc
  462. * src/SessionSerializer.h
  463. * src/UTMetadataPostDownloadHandler.cc
  464. * src/download_helper.cc
  465. * src/download_helper.h
  466. * src/prefs.cc
  467. * src/prefs.h
  468. * src/usage_text.h
  469. * test/Makefile.am
  470. * test/SessionSerializerTest.cc
  471. * test/XmlRpcMethodTest.cc
  472. * test/serialize_session.meta4
  473. 2010-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Fixed the bug that FTP data connection is not established via
  475. proxy when --ftp-proxy is defined and --ftp-pasv=true and
  476. --proxy-method=tunnel.
  477. * src/AbstractCommand.cc
  478. * src/AbstractCommand.h
  479. * src/FtpNegotiationCommand.cc
  480. * src/FtpNegotiationCommand.h
  481. * src/InitiateConnectionCommand.cc
  482. 2010-04-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Updated po templates.
  484. * po/aria2.pot
  485. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Bump up version number to 1.9.1
  487. * configure.ac
  488. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Added shutdown and forceShutdown to aria2rpc
  490. * doc/xmlrpc/aria2rpc
  491. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Changed error message.
  493. * src/XmlRpcMethod.cc
  494. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Added bt-tracker-timeout, bt-tracker-connect-timeout,
  496. always-resume, max-resume-failure-tries and http-accept-gzip to -i
  497. list options.
  498. * doc/aria2c.1.txt
  499. * doc/xmlrpc/aria2rpc
  500. * src/download_helper.cc
  501. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  502. Fixed the bug that web-seed URI is not percent-encoded.
  503. * src/a2functional.h
  504. * src/bittorrent_helper.cc
  505. * test/BittorrentHelperTest.cc
  506. * test/url-list-multiFile.torrent
  507. * test/url-list-singleFileEndsWithSlash.torrent
  508. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
  510. These methods, as their name implies, shutdown aria2. These
  511. methods are useful for Windows because it lacks signal mechanism.
  512. * doc/aria2c.1.txt
  513. * src/TimedHaltCommand.cc
  514. * src/XmlRpcMethodFactory.cc
  515. * src/XmlRpcMethodImpl.cc
  516. * src/XmlRpcMethodImpl.h
  517. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Added forceHalt argument to TimedHaltCommand.
  519. Added requestForceHalt() to DownloadEngine.
  520. * src/DownloadEngine.cc
  521. * src/DownloadEngine.h
  522. * src/TimedHaltCommand.cc
  523. * src/TimedHaltCommand.h
  524. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. Possible fix for chunked encoding with Content-Length.
  526. * src/HttpResponseCommand.cc
  527. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  528. Don't send "Accept: default, gzip" by default. This is because
  529. some server responds with "Content-Encoding: gzip" for files which
  530. itself is gzipped file and aria2 inflates them. This is a problem
  531. if user don't want to inflate the file. Apparently this is server
  532. configuration error, but I cannot do anything about this. So turn
  533. this off. Added --http-accept-gzip option. If true is given to
  534. this option, aria2 sends 'Accept: deflate, gzip' request header
  535. and inflates response if remote server responds with
  536. 'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
  537. indicates we removed extension tgz hack in order not to inflate
  538. files with tgz extensions.
  539. * doc/aria2c.1.txt
  540. * src/HttpRequest.cc
  541. * src/HttpRequest.h
  542. * src/HttpRequestCommand.cc
  543. * src/HttpResponseCommand.cc
  544. * src/OptionHandlerFactory.cc
  545. * src/prefs.cc
  546. * src/prefs.h
  547. * src/usage_text.h
  548. * test/HttpRequestTest.cc
  549. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Made aria2 not send
  551. "application/metalink4+xml,application/metalink+xml" in Accept
  552. header for web-seeding URIs and tracker request.
  553. * src/Metalink2RequestGroup.cc
  554. * src/TrackerWatcherCommand.cc
  555. * src/download_helper.cc
  556. * src/util.cc
  557. * src/util.h
  558. 2010-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Added download_helper.{cc,h} to SRCS
  560. * src/Makefile.am
  561. * test/Makefile.am
  562. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  563. Added --dht-message-timeout option.
  564. * doc/aria2c.1.txt
  565. * src/DHTConstants.h
  566. * src/DHTMessageDispatcherImpl.cc
  567. * src/DHTMessageDispatcherImpl.h
  568. * src/DHTMessageTracker.cc
  569. * src/DHTMessageTracker.h
  570. * src/DHTReplaceNodeTask.h
  571. * src/DHTSetup.cc
  572. * src/DHTTaskFactoryImpl.cc
  573. * src/DHTTaskFactoryImpl.h
  574. * src/OptionHandlerFactory.cc
  575. * src/prefs.cc
  576. * src/prefs.h
  577. * src/usage_text.h
  578. * test/DHTMessageTrackerTest.cc
  579. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Added --bt-tracker-connect-timeout and --bt-tracker-timeout
  581. option.
  582. * doc/aria2c.1.txt
  583. * src/OptionHandlerFactory.cc
  584. * src/TrackerWatcherCommand.cc
  585. * src/prefs.cc
  586. * src/prefs.h
  587. * src/usage_text.h
  588. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Documented that specifying --seed-time=0 disables seeding after
  590. download completed.
  591. * doc/aria2c.1.txt
  592. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Code cleanup
  594. * src/BtSetup.cc
  595. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  596. Drop connection if same Peer ID has been already seen.
  597. * src/DefaultBtInteractive.cc
  598. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Fixed the bug that waiting download unintentionally starts when
  600. URIs are added to it using aria2.changeUri XML-RPC method. This
  601. also fixes the bug that causes segmentation fault when adding URIs
  602. to waiting download, which is a regression introduced by the
  603. previous change made to src/XmlRpcMethodImpl.cc
  604. * src/XmlRpcMethodImpl.cc
  605. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. Fixed compile error with g++-4.4 on FreeBSD.
  607. * src/util.h
  608. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  609. Fixed the bug that added URI using aria2.changeUri XML-RPC method
  610. is not used immediately if there is no URIs remaining before
  611. calling aria2.changeUri and the number of connection is less than
  612. the value in -s(or -C for Metalink downloads).
  613. * src/XmlRpcMethodImpl.cc
  614. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  615. Documented --always-resume and --max-resume-failure-tries option
  616. and exit status 8 in man page. Fixed typo.
  617. * doc/aria2c.1.txt
  618. * src/OptionHandlerFactory.cc
  619. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Added --always-resume and --max-resume-failure-tries option. If
  621. --always-resume=false is given, when all given URIs does not
  622. support resume or aria2 encounters N URIs which does not support
  623. resume
  624. (N is the value specified using --max-resume-failure-tries
  625. option), aria2 download file from scratch. The default behavior
  626. is --always-resume=true, which means if all URIs do not support
  627. resume, download fails. I think this is OK because user normally
  628. don't like to see that partially downloaded file is
  629. overwritten(this is particularly true if file size is big). This
  630. option is useful when aria2 is used as download backend and
  631. graceful falling back to overwritten behavior is preferable.
  632. Added exit status value 8, which means download failed because
  633. server did not support resume.
  634. * src/AbstractCommand.cc
  635. * src/DefaultPieceStorage.cc
  636. * src/DownloadCommand.cc
  637. * src/DownloadResultCode.h
  638. * src/FileEntry.h
  639. * src/FtpNegotiationCommand.cc
  640. * src/HttpResponse.cc
  641. * src/HttpResponseCommand.cc
  642. * src/OptionHandlerFactory.cc
  643. * src/RequestGroup.cc
  644. * src/RequestGroup.h
  645. * src/SegmentMan.cc
  646. * src/SegmentMan.h
  647. * src/prefs.cc
  648. * src/prefs.h
  649. * src/usage_text.h
  650. * test/DefaultPieceStorageTest.cc
  651. * test/SegmentManTest.cc
  652. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Added --remove-control-file option to -i list options.
  654. * doc/aria2c.1.txt
  655. * doc/xmlrpc/aria2rpc
  656. * src/download_helper.cc
  657. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Added --remove-control-file option. This option removes control
  659. file(*.aria2 file) before download. Using with
  660. --allow-overwrite=true, download always starts from scratch. This
  661. will be useful for users behind proxy server which disables
  662. resume. For such proxy user, -C1 is also recommended for Metalink
  663. downloads to avoid establishing unnecessary connections.
  664. * doc/aria2c.1.txt
  665. * src/OptionHandlerFactory.cc
  666. * src/RequestGroup.cc
  667. * src/prefs.cc
  668. * src/prefs.h
  669. * src/usage_text.h
  670. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  671. Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
  672. size of array at compile time.
  673. * src/array_fun.h
  674. * test/BitfieldManTest.cc
  675. * test/BtPortMessageTest.cc
  676. * test/DHTRoutingTableDeserializerTest.cc
  677. * test/DHTRoutingTableSerializerTest.cc
  678. * test/DownloadHelperTest.cc
  679. * test/LongestSequencePieceSelectorTest.cc
  680. * test/MultiDiskAdaptorTest.cc
  681. * test/OptionParserTest.cc
  682. * test/PriorityPieceSelectorTest.cc
  683. * test/array_funTest.cc
  684. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  685. Added vbegin() and vend() for fixed sized array.
  686. * src/DownloadHandlerConstants.cc
  687. * src/FeatureConfig.cc
  688. * src/OptionHandlerFactory.cc
  689. * src/ServerStat.cc
  690. * src/TimeA2.cc
  691. * src/XmlRpcMethod.cc
  692. * src/array_fun.h
  693. * src/download_helper.cc
  694. * src/messageDigest.cc
  695. * src/util.cc
  696. * test/BittorrentHelperTest.cc
  697. * test/DHTRoutingTableDeserializerTest.cc
  698. * test/DHTRoutingTableSerializerTest.cc
  699. * test/DefaultBtAnnounceTest.cc
  700. * test/DefaultBtProgressInfoFileTest.cc
  701. * test/DownloadContextTest.cc
  702. * test/DownloadHelperTest.cc
  703. * test/FeatureConfigTest.cc
  704. * test/FeedbackURISelectorTest.cc
  705. * test/HttpRequestTest.cc
  706. * test/InOrderURISelectorTest.cc
  707. * test/MSEHandshakeTest.cc
  708. * test/MultiDiskAdaptorTest.cc
  709. * test/MultiFileAllocationIteratorTest.cc
  710. * test/PriorityPieceSelectorTest.cc
  711. * test/RequestGroupManTest.cc
  712. * test/UtilTest.cc
  713. * test/XmlRpcMethodTest.cc
  714. * test/a2algoTest.cc
  715. * test/array_funTest.cc
  716. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Simplified code using lastByteMask
  718. * src/BitfieldMan.cc
  719. * src/PieceStatMan.cc
  720. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  721. Rewritten lastByteMask
  722. * src/bitfield.h
  723. 2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Redefined the maximum length of buffer used for HTTP header.
  725. * src/HttpHeaderProcessor.cc
  726. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Code cleanup
  728. * src/SleepCommand.cc
  729. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Do exact match if IP address is specified in --no-proxy.
  731. * src/AbstractCommand.cc
  732. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  733. Fixed the bug that socket is added to EventPoll object twice. This
  734. is because derived class FtpFinishDownloadCommand adds socket to
  735. EventPoll object while base class AbstractCommand does that
  736. already.
  737. * src/FtpFinishDownloadCommand.cc
  738. * src/FtpFinishDownloadCommand.h
  739. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Defined gid_t as int64_t.
  741. * src/BtDependency.cc
  742. * src/BtStopDownloadCommand.cc
  743. * src/FtpNegotiationCommand.cc
  744. * src/HttpResponseCommand.cc
  745. * src/RequestGroup.cc
  746. * src/RequestGroup.h
  747. * src/RequestGroupMan.cc
  748. * src/TrackerWatcherCommand.cc
  749. * src/XmlRpcMethodImpl.cc
  750. * src/message.h
  751. * test/XmlRpcMethodTest.cc
  752. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  754. translatable texts because it is used in log and debugging
  755. purpose.
  756. * src/AbstractCommand.cc
  757. * src/ActivePeerConnectionCommand.cc
  758. * src/BtPieceMessage.cc
  759. * src/CUIDCounter.h
  760. * src/CheckIntegrityCommand.cc
  761. * src/CheckIntegrityDispatcherCommand.cc
  762. * src/Command.h
  763. * src/CreateRequestCommand.cc
  764. * src/DHTEntryPointNameResolveCommand.cc
  765. * src/DefaultBtInteractive.cc
  766. * src/DefaultBtMessageDispatcher.cc
  767. * src/DownloadCommand.cc
  768. * src/FileAllocationCommand.cc
  769. * src/FileAllocationDispatcherCommand.cc
  770. * src/FtpConnection.cc
  771. * src/FtpInitiateConnectionCommand.cc
  772. * src/FtpNegotiationCommand.cc
  773. * src/HttpConnection.cc
  774. * src/HttpInitiateConnectionCommand.cc
  775. * src/HttpListenCommand.cc
  776. * src/HttpResponse.cc
  777. * src/HttpServerBodyCommand.cc
  778. * src/HttpServerCommand.cc
  779. * src/HttpServerResponseCommand.cc
  780. * src/InitiateConnectionCommand.cc
  781. * src/InitiatorMSEHandshakeCommand.cc
  782. * src/MSEHandshake.cc
  783. * src/PeerAbstractCommand.cc
  784. * src/PeerConnection.cc
  785. * src/PeerInitiateConnectionCommand.cc
  786. * src/PeerInteractionCommand.cc
  787. * src/PeerListenCommand.cc
  788. * src/PeerReceiveHandshakeCommand.cc
  789. * src/SegmentMan.cc
  790. * src/SimpleBtMessage.cc
  791. * src/TrackerWatcherCommand.cc
  792. * src/message.h
  793. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  794. Use gid_t type for gid.
  795. * src/BtRegistry.cc
  796. * src/BtRegistry.h
  797. * src/DownloadResult.h
  798. * src/RequestGroup.cc
  799. * src/RequestGroup.h
  800. * src/RequestGroupMan.cc
  801. * src/RequestGroupMan.h
  802. * src/XmlRpcMethodImpl.cc
  803. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Use cuid_t type for cuid.
  805. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Added v key in DHT message. aria2's DHT version is independent of
  807. the package version and we defined it as 1 at the moment. It is
  808. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  809. scheme is "A2"+2bytes DHT version number in network byte order.
  810. * src/DHTAbstractMessage.cc
  811. * src/DHTConstants.h
  812. * src/DHTMessage.cc
  813. * src/DHTMessage.h
  814. * src/DHTMessageFactoryImpl.cc
  815. * src/DHTQueryMessage.cc
  816. * src/DHTResponseMessage.cc
  817. * src/util.h
  818. * test/DHTAnnouncePeerMessageTest.cc
  819. * test/DHTAnnouncePeerReplyMessageTest.cc
  820. * test/DHTFindNodeMessageTest.cc
  821. * test/DHTFindNodeReplyMessageTest.cc
  822. * test/DHTGetPeersMessageTest.cc
  823. * test/DHTGetPeersReplyMessageTest.cc
  824. * test/DHTPingMessageTest.cc
  825. * test/DHTPingReplyMessageTest.cc
  826. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  827. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  828. method response is integer, while manual says it is string. When
  829. peer's port is not listening port, set '0' to port in
  830. aria2.getPeers response.
  831. * src/XmlRpcMethodImpl.cc
  832. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Lines starting "#" in -i list are treated as comments.
  834. Example:
  835. # this is comment
  836. http://example.org/file
  837. http://example.org/file2
  838. dir=/tmp
  839. # another comment
  840. out=myfile
  841. * doc/aria2c.1.txt
  842. * src/UriListParser.cc
  843. * test/filelist1.txt
  844. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Accept IPv4 network address with CIDR block in --no-proxy option
  846. and no_proxy environment variable. Current implementation does
  847. not resolve hostname in URI to compare network address. So it is
  848. only effecive if URI has numeric IP addresses.
  849. * doc/aria2c.1.txt
  850. * src/AbstractCommand.cc
  851. * src/OptionHandlerFactory.cc
  852. * src/bitfield.h
  853. * src/usage_text.h
  854. * src/util.cc
  855. * src/util.h
  856. * test/UtilTest.cc
  857. * test/bitfieldTest.cc
  858. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Reduced interval for metadatagetmode to quickly gather metadata.
  860. * src/BtSetup.cc
  861. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  862. Release 1.9.0
  863. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Updated po templates.
  865. * po/aria2.pot
  866. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. Updated doc.
  868. * doc/aria2c.1.txt
  869. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  870. Documented about Metalink4 and LPD in README
  871. * RADME
  872. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  873. Few adjustment for timeouts in DHT. DHT message timeout is changed
  874. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  875. it adds another 5 seconds in each retry.
  876. * src/DHTConstants.h
  877. * src/DHTGetPeersCommand.cc
  878. * src/DHTGetPeersCommand.h
  879. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Changed log level from error to info for DHT message send error.
  881. * src/DHTMessageDispatcherImpl.cc
  882. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Inspect all xt in magnet to find urn:btih.
  884. * src/bittorrent_helper.cc
  885. * test/BittorrentHelperTest.cc
  886. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. Use global option for DHTSetup.
  888. * src/DHTSetup.cc
  889. * src/DHTSetup.h
  890. * src/RequestGroup.cc
  891. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Added bt-enable-lpt, reuse-uri
  893. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  894. options.
  895. * doc/aria2c.1.txt
  896. * doc/xmlrpc/aria2rpc
  897. * src/download_helper.cc
  898. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  900. * src/BtSetup.cc
  901. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Resurrected --http-proxy-user and --http-proxy-passwd option.
  903. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  904. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  905. * doc/aria2c.1.txt
  906. * src/OptionHandlerFactory.cc
  907. * src/OptionHandlerImpl.h
  908. * src/prefs.cc
  909. * src/prefs.h
  910. * src/usage_text.h
  911. * test/OptionHandlerTest.cc
  912. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  913. Updated Russian and Simplified Chinese translation. Thanks to all
  914. translators.
  915. * po/ru.po
  916. * po/zh_CN.po
  917. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  918. Updated po templates.
  919. * po/aria2.pot
  920. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  921. For LPD sockets, bind IN_ADDRANY because binding multicast address
  922. fails under Windows.
  923. * src/LpdMessageReceiver.cc
  924. * test/LpdMessageDispatcherTest.cc
  925. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Fixed the bug that error message is not propagated to Exception.
  927. * src/SocketCore.cc
  928. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Documented --bt-lpd-interface option in man page.
  930. * doc/aria2c.1.txt
  931. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. Bump up version number to 1.9.0
  933. * configure.ac
  934. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  935. Fixed the bug that FillRequestGroupCommand is not invoked when
  936. RequestGroupMan::createInitialCommand() creates no Command object.
  937. * src/FillRequestGroupCommand.cc
  938. * src/RequestGroupMan.cc
  939. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Added debug logs.
  941. * src/FileEntry.cc
  942. * src/SegmentMan.cc
  943. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Fixed unit test error with mingw32 build.
  945. * test/LpdMessageReceiverTest.cc
  946. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  947. Updated automake-1.11.1
  948. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. Fixed compile error and unit test error without openssl and
  950. gnutls.
  951. * src/MetalinkParserController.cc
  952. * test/MetalinkProcessorTest.cc
  953. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Fixed unitest fails if openssl doesn't support sha-256.
  955. * src/MetalinkParserStateV4Impl.cc
  956. * test/MetalinkProcessorTest.cc
  957. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Wait until message arrives(again)
  959. * test/LpdMessageReceiverTest.cc
  960. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  961. Added missing wallclock.h to SRCS.
  962. * src/Makefile.am
  963. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Fixed compile error with --disable-bittorrent
  965. * test/Metalink2RequestGroupTest.cc
  966. * test/MetalinkParserControllerTest.cc
  967. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Added --reuse-uri option. This option has existed quite long, but
  969. been hidden.
  970. * doc/aria2c.1.txt
  971. * src/OptionHandlerFactory.cc
  972. * src/usage_text.h
  973. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  974. Ignore filename parameter if it contains directory traversal
  975. directives.
  976. * src/util.cc
  977. * test/UtilTest.cc
  978. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  979. urldecode -> percentDecode
  980. * src/FtpConnection.cc
  981. * src/FtpNegotiationCommand.cc
  982. * src/HttpResponse.cc
  983. * src/Request.cc
  984. * src/magnet.cc
  985. * src/util.cc
  986. * src/util.h
  987. * test/UtilTest.cc
  988. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  989. urlencode -> percentEncode,
  990. torrentUrlencode -> torrentPercentEncode
  991. * src/BtHandshakeMessage.cc
  992. * src/BtHandshakeMessageValidator.h
  993. * src/DHTMessageFactoryImpl.cc
  994. * src/DefaultBtAnnounce.cc
  995. * src/HandshakeExtensionMessage.cc
  996. * src/HttpRequest.cc
  997. * src/XmlRpcMethodImpl.cc
  998. * src/bittorrent_helper.cc
  999. * src/util.cc
  1000. * src/util.h
  1001. * test/DHTAnnouncePeerMessageTest.cc
  1002. * test/DHTGetPeersMessageTest.cc
  1003. * test/DHTGetPeersReplyMessageTest.cc
  1004. * test/UTPexExtensionMessageTest.cc
  1005. * test/UtilTest.cc
  1006. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Fixed the bug that filename is percent encoded where it must be
  1008. percent decoded in sendMdtm().
  1009. * src/FtpConnection.cc
  1010. * test/FtpConnectionTest.cc
  1011. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1012. url -> uri in Request class.
  1013. * src/AbstractCommand.cc
  1014. * src/AdaptiveURISelector.cc
  1015. * src/DefaultBtAnnounce.cc
  1016. * src/FeedbackURISelector.cc
  1017. * src/FileEntry.cc
  1018. * src/FileEntry.h
  1019. * src/HttpRequest.h
  1020. * src/HttpResponse.cc
  1021. * src/InitiateConnectionCommandFactory.cc
  1022. * src/Metalink2RequestGroup.cc
  1023. * src/OptionHandlerImpl.h
  1024. * src/ProtocolDetector.cc
  1025. * src/Request.cc
  1026. * src/Request.h
  1027. * src/XmlRpcMethodImpl.cc
  1028. * test/AuthConfigFactoryTest.cc
  1029. * test/FtpConnectionTest.cc
  1030. * test/HttpRequestTest.cc
  1031. * test/HttpResponseTest.cc
  1032. * test/RequestTest.cc
  1033. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Added getServers XML-RPC method.
  1035. * doc/aria2c.1.txt
  1036. * src/FileEntry.h
  1037. * src/XmlRpcMethodFactory.cc
  1038. * src/XmlRpcMethodImpl.cc
  1039. * src/XmlRpcMethodImpl.h
  1040. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Pool request when download finished.
  1042. * src/DownloadCommand.cc
  1043. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  1045. 1-based.
  1046. * doc/aria2c.1.txt
  1047. * src/XmlRpcMethodImpl.cc
  1048. * test/XmlRpcMethodTest.cc
  1049. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Call RequestGroupMan::requestQueueCheck() when
  1051. max-concurrent-downloads option is changed or new downloads are
  1052. added/inserted into reserved list.
  1053. * src/RequestGroupMan.cc
  1054. * src/XmlRpcMethodImpl.cc
  1055. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Added aria2.forceRemove XML-RPC method.
  1057. * doc/aria2c.1.txt
  1058. * src/XmlRpcMethodFactory.cc
  1059. * src/XmlRpcMethodImpl.cc
  1060. * src/XmlRpcMethodImpl.h
  1061. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Added debug log.
  1063. * src/AbstractCommand.cc
  1064. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Create CreateRequestCommand to the number of -s/-C when URIs are
  1066. added by XML-RPC.
  1067. * src/RequestGroup.cc
  1068. * src/RequestGroup.h
  1069. * src/XmlRpcMethodImpl.cc
  1070. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Added 'status' key to the response of getUri XML-RPC method.
  1072. * doc/aria2c.1.txt
  1073. * src/XmlRpcMethodImpl.cc
  1074. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. Replaced Time::reset() call with assigning of global::wallclock.
  1076. * src/BtLeecherStateChoke.cc
  1077. * src/BtSeederStateChoke.cc
  1078. * src/PeerSessionResource.cc
  1079. * src/RequestSlot.cc
  1080. * src/ServerStat.cc
  1081. * src/SpeedCalc.cc
  1082. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1083. Added changeUri XML-RPC method. This method removes/adds URIs
  1084. dynamically.
  1085. * doc/aria2c.1.txt
  1086. * src/AbstractCommand.cc
  1087. * src/DownloadContext.cc
  1088. * src/DownloadContext.h
  1089. * src/FileEntry.cc
  1090. * src/FileEntry.h
  1091. * src/Request.cc
  1092. * src/Request.h
  1093. * src/RequestGroup.cc
  1094. * src/RequestGroupMan.cc
  1095. * src/XmlRpcMethodFactory.cc
  1096. * src/XmlRpcMethodImpl.cc
  1097. * src/XmlRpcMethodImpl.h
  1098. * test/FileEntryTest.cc
  1099. * test/XmlRpcMethodTest.cc
  1100. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1101. Rewritten copy ctor of RequestSlot to use initialization list.
  1102. * src/RequestSlot.h
  1103. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1104. Added Time global::wallclock to cache "current time" to reduce the
  1105. call gettimeofday(). Global variables are now in namespace global.
  1106. * src/AbstractCommand.cc
  1107. * src/ActivePeerConnectionCommand.cc
  1108. * src/AdaptiveURISelector.cc
  1109. * src/BtLeecherStateChoke.cc
  1110. * src/BtLeecherStateChoke.h
  1111. * src/BtSeederStateChoke.cc
  1112. * src/BtSeederStateChoke.h
  1113. * src/BtStopDownloadCommand.cc
  1114. * src/ConsoleStatCalc.cc
  1115. * src/DHTBucket.cc
  1116. * src/DHTGetPeersCommand.cc
  1117. * src/DHTMessageTrackerEntry.cc
  1118. * src/DHTNode.cc
  1119. * src/DHTPeerAnnounceEntry.cc
  1120. * src/DHTPeerAnnounceStorage.cc
  1121. * src/DHTSetup.cc
  1122. * src/DefaultBtAnnounce.cc
  1123. * src/DefaultBtInteractive.cc
  1124. * src/DefaultBtMessageDispatcher.cc
  1125. * src/DefaultPeerStorage.cc
  1126. * src/DefaultPieceStorage.cc
  1127. * src/DownloadCommand.cc
  1128. * src/DownloadEngine.cc
  1129. * src/FileEntry.cc
  1130. * src/HttpServerBodyCommand.cc
  1131. * src/HttpServerCommand.cc
  1132. * src/HttpServerResponseCommand.cc
  1133. * src/LpdMessageDispatcher.cc
  1134. * src/MultiUrlRequestInfo.cc
  1135. * src/Peer.cc
  1136. * src/Peer.h
  1137. * src/PeerAbstractCommand.cc
  1138. * src/PeerStat.h
  1139. * src/RequestSlot.cc
  1140. * src/RequestSlot.h
  1141. * src/SegmentMan.cc
  1142. * src/ServerStatMan.cc
  1143. * src/SleepCommand.cc
  1144. * src/SpeedCalc.cc
  1145. * src/SpeedCalc.h
  1146. * src/TimeA2.cc
  1147. * src/TimeA2.h
  1148. * src/TimeBasedCommand.cc
  1149. * src/TimeSeedCriteria.h
  1150. * src/UTMetadataRequestTracker.h
  1151. * src/UTPexExtensionMessage.cc
  1152. * src/wallclock.h
  1153. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Fixed the bug that util::itos(INT64_MIN) fails.
  1155. * src/util.cc
  1156. * src/util.h
  1157. * test/UtilTest.cc
  1158. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Fixed memory leak in SocketBuffer when _bufq is not empty when
  1160. SocketBuffer is deleted. Added BufEntry constructor and deleted
  1161. static factory functions.
  1162. * src/SocketBuffer.cc
  1163. * src/SocketBuffer.h
  1164. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  1166. queue maintenance is requested by RequestGroup to avoid to call
  1167. the function unnecessarily.
  1168. * src/FillRequestGroupCommand.cc
  1169. * src/RequestGroup.cc
  1170. * src/RequestGroup.h
  1171. * src/RequestGroupMan.cc
  1172. * src/RequestGroupMan.h
  1173. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1174. Don't use hash for Peer::id. Simple concatenation of ip address
  1175. and port is enough.
  1176. * src/Peer.cc
  1177. * test/PeerTest.cc
  1178. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1179. Enclosed log of DHTMessage::toString() with Logger::info().
  1180. * src/DHTMessageDispatcherImpl.cc
  1181. * src/DHTMessageReceiver.cc
  1182. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Rewritten util::toHex().
  1184. * src/util.cc
  1185. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Removed SocketBuffer::feedAndSend(). Renamed
  1187. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  1188. * src/FtpConnection.cc
  1189. * src/HttpConnection.cc
  1190. * src/HttpServer.cc
  1191. * src/MSEHandshake.cc
  1192. * src/PeerConnection.cc
  1193. * src/SocketBuffer.cc
  1194. * src/SocketBuffer.h
  1195. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. Removed unused PeerConnection::sendMessage(). Updated doc.
  1197. * src/PeerConnection.cc
  1198. * src/PeerConnection.h
  1199. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Reduced copying/std::string instantiation in sending/receiving
  1201. BitTorrent messages.
  1202. * src/BtBitfieldMessage.cc
  1203. * src/BtBitfieldMessage.h
  1204. * src/BtExtendedMessage.cc
  1205. * src/BtExtendedMessage.h
  1206. * src/BtHandshakeMessage.cc
  1207. * src/BtHandshakeMessage.h
  1208. * src/BtKeepAliveMessage.cc
  1209. * src/BtKeepAliveMessage.h
  1210. * src/BtPieceMessage.cc
  1211. * src/BtPieceMessage.h
  1212. * src/BtPortMessage.cc
  1213. * src/BtPortMessage.h
  1214. * src/BtUnchokeMessage.h
  1215. * src/DefaultBtMessageReceiver.cc
  1216. * src/IndexBtMessage.cc
  1217. * src/IndexBtMessage.h
  1218. * src/PeerConnection.cc
  1219. * src/PeerConnection.h
  1220. * src/RangeBtMessage.cc
  1221. * src/RangeBtMessage.h
  1222. * src/SimpleBtMessage.cc
  1223. * src/SimpleBtMessage.h
  1224. * src/SocketBuffer.cc
  1225. * src/SocketBuffer.h
  1226. * src/ZeroBtMessage.cc
  1227. * src/ZeroBtMessage.h
  1228. * test/BtAllowedFastMessageTest.cc
  1229. * test/BtBitfieldMessageTest.cc
  1230. * test/BtCancelMessageTest.cc
  1231. * test/BtChokeMessageTest.cc
  1232. * test/BtExtendedMessageTest.cc
  1233. * test/BtHandshakeMessageTest.cc
  1234. * test/BtHaveAllMessageTest.cc
  1235. * test/BtHaveMessageTest.cc
  1236. * test/BtHaveNoneMessageTest.cc
  1237. * test/BtInterestedMessageTest.cc
  1238. * test/BtKeepAliveMessageTest.cc
  1239. * test/BtNotInterestedMessageTest.cc
  1240. * test/BtPieceMessageTest.cc
  1241. * test/BtPortMessageTest.cc
  1242. * test/BtRejectMessageTest.cc
  1243. * test/BtRequestMessageTest.cc
  1244. * test/BtSuggestPieceMessageTest.cc
  1245. * test/BtUnchokeMessageTest.cc
  1246. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Rewritten SocketBuffer. Old implementation uses single std::string
  1248. to store data and erase sent data, which is costly. New
  1249. implementation uses deque to hold each data to avoid to mutate
  1250. string.
  1251. * src/SocketBuffer.cc
  1252. * src/SocketBuffer.h
  1253. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1254. Removed unused FileEntry::extracted
  1255. * src/FileEntry.cc
  1256. * src/FileEntry.h
  1257. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Wait until data arrives.
  1259. * test/LpdMessageReceiverTest.cc
  1260. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1261. In Metalink4, if size element contains invalid size, discard whole
  1262. document. Added strict hash value check for metalink3/4.
  1263. * src/MetalinkParserController.cc
  1264. * src/MetalinkParserStateMachine.cc
  1265. * src/MetalinkParserStateMachine.h
  1266. * src/MetalinkParserStateV3Impl.cc
  1267. * src/MetalinkParserStateV4Impl.cc
  1268. * src/util.cc
  1269. * src/util.h
  1270. * test/MetalinkParserControllerTest.cc
  1271. * test/MetalinkProcessorTest.cc
  1272. * test/metalink4.xml
  1273. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Added strict attribute validation for metalink4. When
  1275. specification violation is found, discard the whole document.
  1276. * src/ExpatMetalinkProcessor.cc
  1277. * src/MetalinkParserStateMachine.cc
  1278. * src/MetalinkParserStateMachine.h
  1279. * src/MetalinkParserStateV4Impl.cc
  1280. * src/XML2SAXMetalinkProcessor.cc
  1281. * test/Makefile.am
  1282. * test/MetalinkProcessorTest.cc
  1283. * test/metalink4-attrs.xml: Removed
  1284. * test/metalink4-dirtraversal.xml: Removed
  1285. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1286. Added test for Metaurl transaction.
  1287. * src/MetalinkParserController.cc
  1288. * test/MetalinkParserControllerTest.cc
  1289. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Avoid costly BtMessage::toString() if info level log is not
  1291. required.
  1292. * src/DefaultBtInteractive.cc
  1293. * src/Logger.h
  1294. * src/SimpleBtMessage.cc
  1295. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. Reserved vector elements based on profiler results.
  1297. * src/DefaultBtInteractive.cc
  1298. * src/DefaultBtProgressInfoFile.cc
  1299. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Avoid to calculate end() iterator in each loop. std::deque is
  1301. particularly slow. Make sure that recalculate end iterator if
  1302. element is erased during loop.
  1303. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. Use vector instead of deque for containers which is used for
  1305. mostly read-only purpose.
  1306. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Fixed typo
  1308. * test/Makefile.am
  1309. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1310. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  1311. * test/Makefile.am
  1312. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Small optimization: In updateTransferStatFor(), don't search peer
  1314. ID twice.
  1315. * src/DefaultPeerStorage.cc
  1316. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Use vector instead of deque for MetalinkEntry and MetalinkResource
  1318. objects.
  1319. * src/Metalink2RequestGroup.cc
  1320. * src/Metalink2RequestGroup.h
  1321. * src/MetalinkEntry.cc
  1322. * src/MetalinkEntry.h
  1323. * src/MetalinkHelper.cc
  1324. * src/MetalinkHelper.h
  1325. * src/Metalinker.cc
  1326. * src/Metalinker.h
  1327. * src/main.cc
  1328. * test/MetalinkEntryTest.cc
  1329. * test/MetalinkHelperTest.cc
  1330. * test/MetalinkProcessorTest.cc
  1331. * test/MetalinkerTest.cc
  1332. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. Fixed the bug that grouped FileEntry objects are not used but
  1334. instead all FileEntry objects are used for each metaurl group.
  1335. * src/Metalink2RequestGroup.cc
  1336. * test/Metalink2RequestGroupTest.cc
  1337. * test/metalink4-groupbymetaurl.xml
  1338. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Use vector instead of deque for ChunkChecksum.
  1340. * src/ChunkChecksum.h
  1341. * src/MetalinkParserController.cc
  1342. * src/MetalinkParserController.h
  1343. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  1345. algorithm in Metalink properly
  1346. * src/MetalinkParserController.cc
  1347. * src/MetalinkParserController.h
  1348. * src/messageDigest.cc
  1349. * src/messageDigest.h
  1350. * test/MetalinkProcessorTest.cc
  1351. * test/metalink4.xml
  1352. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. Replaced null or control characters in file path with '_'. For
  1354. MinGW32 build, additional characters which is not allowed in
  1355. Windows kernel are also replaced. util::detectDirTraversal() now
  1356. returns true if given string contains null or control characters.
  1357. * src/DownloadContext.cc
  1358. * src/DownloadContext.h
  1359. * src/Metalink2RequestGroup.cc
  1360. * src/MetalinkParserController.cc
  1361. * src/bittorrent_helper.cc
  1362. * src/util.cc
  1363. * src/util.h
  1364. * test/UtilTest.cc
  1365. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Discard metalink:file if its name attribute is empty string.
  1367. Removed FileEntry instantiation in
  1368. MetalinkParserController::setFileLengthOfEntry()
  1369. * src/MetalinkParserController.cc
  1370. * src/MetalinkParserStateV3Impl.cc
  1371. * src/MetalinkParserStateV4Impl.cc
  1372. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Discard torrent file if path data in it contains directory
  1374. traversal directives. Discard metalink:file element in Metalink3
  1375. format if its name attribute contains directory traversal
  1376. directives. Ignore name attribute of metalink:signature element
  1377. in Metalink3 format if it contains directory traversal directives.
  1378. * src/MetalinkParserStateV3Impl.cc
  1379. * src/bittorrent_helper.cc
  1380. * src/message.h
  1381. * test/BittorrentHelperTest.cc
  1382. * test/Makefile.am
  1383. * test/MetalinkProcessorTest.cc
  1384. * test/metalink3-dirtraversal.xml
  1385. * test/test.xml
  1386. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Removed useless comment
  1388. * src/MetalinkParserStateV4Impl.cc
  1389. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Supported name attribute of metalink::metaurl element and
  1391. multi-file torrent with Metalink4. Files with same metaurl are
  1392. grouped and downloaded in one RequestGroup.
  1393. * src/BtDependency.cc
  1394. * src/FileEntry.h
  1395. * src/Metalink2RequestGroup.cc
  1396. * src/Metalink2RequestGroup.h
  1397. * src/MetalinkEntry.cc
  1398. * src/MetalinkEntry.h
  1399. * src/MetalinkHelper.cc
  1400. * src/MetalinkHelper.h
  1401. * src/MetalinkMetaurl.cc
  1402. * src/MetalinkMetaurl.h
  1403. * src/MetalinkParserController.cc
  1404. * src/RequestGroup.cc
  1405. * src/RequestGroup.h
  1406. * src/bittorrent_helper.cc
  1407. * test/BittorrentHelperTest.cc
  1408. * test/BtDependencyTest.cc
  1409. * test/MetalinkHelperTest.cc
  1410. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  1412. * src/MetalinkMetaurl.h
  1413. * src/MetalinkParserController.cc
  1414. * src/MetalinkParserController.h
  1415. * src/MetalinkParserStateMachine.cc
  1416. * src/MetalinkParserStateMachine.h
  1417. * src/MetalinkParserStateV4Impl.cc
  1418. * test/MetalinkProcessorTest.cc
  1419. * test/metalink4-dirtraversal.xml
  1420. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  1422. element.
  1423. * src/Makefile.am
  1424. * src/Metalink2RequestGroup.cc
  1425. * src/MetalinkEntry.cc
  1426. * src/MetalinkEntry.h
  1427. * src/MetalinkMetaurl.cc
  1428. * src/MetalinkMetaurl.h
  1429. * src/MetalinkParserController.cc
  1430. * src/MetalinkParserController.h
  1431. * src/MetalinkParserStateMachine.cc
  1432. * src/MetalinkParserStateMachine.h
  1433. * src/MetalinkParserStateV4Impl.cc
  1434. * src/MetalinkParserStateV4Impl.h
  1435. * test/MetalinkProcessorTest.cc
  1436. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Added Metalink4 support. Currently, name attribute of
  1438. metalink::metaurl is ignored and multi-file torrent cannot be used
  1439. with Metalink4.
  1440. * doc/aria2c.1.txt
  1441. * src/DownloadHandlerConstants.cc
  1442. * src/ExpatMetalinkProcessor.cc
  1443. * src/Makefile.am
  1444. * src/Metalink2RequestGroup.cc
  1445. * src/MetalinkEntry.cc
  1446. * src/MetalinkEntry.h
  1447. * src/MetalinkParserController.cc
  1448. * src/MetalinkParserController.h
  1449. * src/MetalinkParserState.h
  1450. * src/MetalinkParserStateImpl.cc
  1451. * src/MetalinkParserStateImpl.h
  1452. * src/MetalinkParserStateMachine.cc
  1453. * src/MetalinkParserStateMachine.h
  1454. * src/MetalinkParserStateV3Impl.cc
  1455. * src/MetalinkParserStateV3Impl.h
  1456. * src/MetalinkParserStateV4Impl.cc
  1457. * src/MetalinkParserStateV4Impl.h
  1458. * src/MetalinkResource.cc
  1459. * src/MetalinkResource.h
  1460. * src/Metalinker.cc
  1461. * src/RequestGroup.cc
  1462. * src/RequestGroup.h
  1463. * src/XML2SAXMetalinkProcessor.cc
  1464. * src/messageDigest.cc
  1465. * src/util.cc
  1466. * src/util.h
  1467. * test/Makefile.am
  1468. * test/MetalinkEntryTest.cc
  1469. * test/MetalinkParserControllerTest.cc
  1470. * test/MetalinkProcessorTest.cc
  1471. * test/MetalinkerTest.cc
  1472. * test/UtilTest.cc
  1473. * test/metalink4-attrs.xml
  1474. * test/metalink4-dirtraversal.xml
  1475. * test/metalink4.xml
  1476. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Added aiFlags argument to getInterfaceAddress(). Use
  1478. AI_NUMERICHOST to find interface specified using
  1479. --bt-lpd-interface option to avoid time-consuming address lookup.
  1480. * src/BtSetup.cc
  1481. * src/SocketCore.cc
  1482. * src/SocketCore.h
  1483. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  1485. is bad in LpdMessageReceiver.
  1486. * src/LpdMessage.h
  1487. * src/LpdMessageReceiver.cc
  1488. * src/LpdMessageReceiver.h
  1489. * src/LpdReceiveMessageCommand.cc
  1490. * test/LpdMessageReceiverTest.cc
  1491. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Added --bt-lpd-interface option to specify the interface to use
  1493. for Local Peer Discovery. LpdMessageDispatcher object now has its
  1494. own socket. LpdMessageReceiver's socket is binded to multicast
  1495. address to only receive multicast packets.
  1496. * src/BtSetup.cc
  1497. * src/LpdMessageDispatcher.cc
  1498. * src/LpdMessageDispatcher.h
  1499. * src/LpdMessageReceiver.cc
  1500. * src/LpdMessageReceiver.h
  1501. * src/LpdReceiveMessageCommand.cc
  1502. * src/LpdReceiveMessageCommand.h
  1503. * src/OptionHandlerFactory.cc
  1504. * src/SocketCore.cc
  1505. * src/SocketCore.h
  1506. * src/prefs.cc
  1507. * src/prefs.h
  1508. * src/usage_text.h
  1509. * test/LpdMessageDispatcherTest.cc
  1510. * test/LpdMessageReceiverTest.cc
  1511. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1512. Put the portion of code to get interface addresses in
  1513. SocketCore::bindAddress() into newly added getInterfaceAddress().
  1514. * src/SocketCore.cc
  1515. * src/SocketCore.h
  1516. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Rewritten util::parseInt() and parseUInt()
  1518. * src/util.cc
  1519. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Fixed compile error with mingw32 cross compiler. Defined
  1521. a2_sockopt_t as void* for the target systems other than mingw32.
  1522. * src/SocketCore.cc
  1523. * src/a2netcompat.h
  1524. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1525. Removed 'always true' condition
  1526. * src/util.cc
  1527. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1528. Documented --bt-enable-lpd option in man page.
  1529. * doc/aria2c.1.txt
  1530. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1531. Added Local Peer Discovery. It is disabled by default. Use
  1532. --bt-enable-lpd to enable the function.
  1533. * src/BtConstants.h
  1534. * src/BtSetup.cc
  1535. * src/LpdDispatchMessageCommand.cc
  1536. * src/LpdDispatchMessageCommand.h
  1537. * src/LpdMessage.h
  1538. * src/LpdMessageDispatcher.cc
  1539. * src/LpdMessageDispatcher.h
  1540. * src/LpdMessageReceiver.cc
  1541. * src/LpdMessageReceiver.h
  1542. * src/LpdReceiveMessageCommand.cc
  1543. * src/LpdReceiveMessageCommand.h
  1544. * src/Makefile.am
  1545. * src/OptionHandlerFactory.cc
  1546. * src/Peer.cc
  1547. * src/Peer.h
  1548. * src/PeerInteractionCommand.cc
  1549. * src/SocketCore.cc
  1550. * src/SocketCore.h
  1551. * src/prefs.cc
  1552. * src/prefs.h
  1553. * src/usage_text.h
  1554. * src/util.cc
  1555. * src/util.h
  1556. * test/LpdMessageDispatcherTest.cc
  1557. * test/LpdMessageReceiverTest.cc
  1558. * test/Makefile.am
  1559. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. User-defined custom request headers specified by --header option
  1561. now override builtin headers if they have same name.
  1562. * src/HttpRequest.cc
  1563. * src/HttpRequest.h
  1564. * test/HttpRequestTest.cc
  1565. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1566. Rewirtten util::isNumber()
  1567. * src/util.cc
  1568. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  1570. because without it localized error messages are not printed
  1571. correctly.
  1572. * src/Platform.cc
  1573. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. Added unit tests for util::getContentDispositionFilename() from
  1575. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  1576. tests are passed.
  1577. * src/util.cc
  1578. * test/UtilTest.cc
  1579. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  1581. util.cc
  1582. * src/Platform.cc
  1583. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Support RFC2231 "Parameter Value Character Set and Language
  1585. Information" in Content-Disposition header.
  1586. * src/HttpResponse.cc
  1587. * src/util.cc
  1588. * src/util.h
  1589. * test/UtilTest.cc
  1590. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Print CXXFLAGS
  1592. * configure.ac
  1593. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Small optimization for A2_WOULDBLOCK(e)
  1595. * src/SocketCore.cc
  1596. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1597. Removed test file
  1598. * test/CookieStorageTest.cc
  1599. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. Check both EAGAIN and EWOULDBLOCK
  1601. * src/SocketCore.cc
  1602. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Removed ret == 0 checking for SSL_read(), SSL_write() and
  1604. SSL_peek() because the checks are done in the caller. In
  1605. SocketBuffer::send(), throw exception if nothing could be written
  1606. and socket error was not EWOULDBLOCK
  1607. * src/SocketBuffer.cc
  1608. * src/SocketCore.cc
  1609. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Fixed error code handling so that it can handle Winsock2 error
  1611. code.
  1612. * src/SocketCore.cc
  1613. * src/SocketCore.h
  1614. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1615. Bump up version number to 1.9.0a
  1616. * configure.ac
  1617. * doc/aria2c.1.txt
  1618. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Fixed the bug that aria2 doesn't handle return value if error
  1620. occurred before download begins.
  1621. * src/MultiUrlRequestInfo.cc
  1622. * src/main.cc
  1623. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Removed SegmentManFactory class.
  1625. * src/AbstractSegmentManFactory.h
  1626. * src/DefaultSegmentManFactory.cc
  1627. * src/DefaultSegmentManFactory.h
  1628. * src/Makefile.am
  1629. * src/RequestGroup.cc
  1630. * src/RequestGroup.h
  1631. * src/SegmentManFactory.h
  1632. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1633. Destroyed digest context after getting calculated hash.
  1634. * src/Piece.cc
  1635. * src/Piece.h
  1636. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Removed BitfieldManFactory class.
  1638. * src/BitfieldManFactory.cc
  1639. * src/BitfieldManFactory.h
  1640. * src/DefaultPieceStorage.cc
  1641. * src/Makefile.am
  1642. * src/PeerSessionResource.cc
  1643. * src/Piece.cc
  1644. * src/main.cc
  1645. * test/DefaultPieceStorageTest.cc
  1646. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Removed unused methods from BitfieldMan class. Moved
  1648. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  1649. class.
  1650. * src/BitfieldMan.cc
  1651. * src/BitfieldMan.h
  1652. * src/BitfieldManFactory.cc
  1653. * src/BitfieldManFactory.h
  1654. * src/bitfield.h
  1655. * src/main.cc
  1656. * test/BitfieldManTest.cc
  1657. * test/DefaultPieceStorageTest.cc
  1658. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Moved getFirstNMissingIndex to bitfield.h and made it return the
  1660. number of appended indexes.
  1661. * src/BitfieldMan.cc
  1662. * src/BitfieldMan.h
  1663. * src/Piece.cc
  1664. * src/Piece.h
  1665. * src/bitfield.h
  1666. * test/BitfieldManTest.cc
  1667. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1668. Added more tests.
  1669. * test/BitfieldManTest.cc
  1670. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1671. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  1672. unused block indexes at once instead of calling
  1673. getFirstMissingUnusedIndex() multiple times. Made use of it in
  1674. Piece class and DefaultBtRequestFactory class via Piece class.
  1675. * src/BitfieldMan.cc
  1676. * src/BitfieldMan.h
  1677. * src/DefaultBtRequestFactory.cc
  1678. * src/Piece.cc
  1679. * src/Piece.h
  1680. * test/BitfieldManTest.cc
  1681. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. Use std::make_pair(...)
  1683. * src/DHTMessageTracker.cc
  1684. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1685. Use std::make_pair(...)
  1686. * src/bittorrent_helper.cc
  1687. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. urlencode(removeFragment(...)) in parseUrl(...)
  1689. * src/Request.cc
  1690. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1691. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  1692. * src/AbstractCommand.cc
  1693. * src/AdaptiveURISelector.cc
  1694. * src/BtPieceMessage.cc
  1695. * src/BtPortMessage.cc
  1696. * src/CreateRequestCommand.cc
  1697. * src/DHTAbstractNodeLookupTask.cc
  1698. * src/DHTBucket.cc
  1699. * src/DHTGetPeersCommand.cc
  1700. * src/DHTMessageDispatcherImpl.cc
  1701. * src/DHTMessageFactoryImpl.cc
  1702. * src/DHTMessageTracker.cc
  1703. * src/DHTPeerAnnounceStorage.cc
  1704. * src/DHTRoutingTable.cc
  1705. * src/DHTSetup.cc
  1706. * src/DefaultBtAnnounce.cc
  1707. * src/DefaultBtInteractive.cc
  1708. * src/DefaultBtMessageDispatcher.cc
  1709. * src/DefaultBtMessageReceiver.cc
  1710. * src/DefaultBtProgressInfoFile.cc
  1711. * src/DefaultBtRequestFactory.cc
  1712. * src/DefaultPeerStorage.cc
  1713. * src/DefaultPieceStorage.cc
  1714. * src/DownloadCommand.cc
  1715. * src/DownloadEngine.cc
  1716. * src/EpollEventPoll.cc
  1717. * src/FileAllocationCommand.cc
  1718. * src/FileEntry.cc
  1719. * src/FtpNegotiationCommand.cc
  1720. * src/HandshakeExtensionMessage.cc
  1721. * src/HttpListenCommand.cc
  1722. * src/HttpServer.cc
  1723. * src/HttpSkipResponseCommand.cc
  1724. * src/IteratableChunkChecksumValidator.cc
  1725. * src/Logger.h
  1726. * src/MSEHandshake.cc
  1727. * src/MetalinkPostDownloadHandler.cc
  1728. * src/MultiDiskAdaptor.cc
  1729. * src/PeerAbstractCommand.cc
  1730. * src/PeerConnection.cc
  1731. * src/PeerListenCommand.cc
  1732. * src/PeerReceiveHandshakeCommand.cc
  1733. * src/RequestGroup.cc
  1734. * src/RequestGroupMan.cc
  1735. * src/SegmentMan.cc
  1736. * src/SelectEventPoll.cc
  1737. * src/ServerStat.cc
  1738. * src/SimpleBtMessage.cc
  1739. * src/SocketCore.cc
  1740. * src/TrackerWatcherCommand.cc
  1741. * src/UTMetadataDataExtensionMessage.cc
  1742. * src/UTMetadataRequestFactory.cc
  1743. * src/UTMetadataRequestTracker.cc
  1744. * src/XmlRpcMethod.cc
  1745. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1746. Changed log level from debug to info
  1747. * src/BtDependency.cc
  1748. * src/BtPostDownloadHandler.cc
  1749. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Removed unused PeerSessionResource::_latency.
  1751. * src/BtConstants.h
  1752. * src/BtPieceMessage.cc
  1753. * src/Peer.cc
  1754. * src/Peer.h
  1755. * src/PeerSessionResource.cc
  1756. * src/PeerSessionResource.h
  1757. * test/PeerSessionResourceTest.cc
  1758. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Fixed the bug that --file-allocation=falloc doesn't work with
  1760. single file download.
  1761. * src/AbstractSingleDiskAdaptor.cc
  1762. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1763. Release 1.8.2
  1764. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Added Portuguese translation. Updated Ukrainian and Spanish
  1766. translation. Thanks to all translators.
  1767. * po/LINGUAS
  1768. * po/es.po
  1769. * po/pt.po
  1770. * po/uk.po
  1771. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Remove fragment from redirected URI.
  1773. * src/Request.cc
  1774. * test/RequestTest.cc
  1775. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1776. Updated po templates.
  1777. * po/aria2.pot
  1778. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1779. Drop legacy ifdef for ares support and code cleanup.
  1780. * src/AsyncNameResolver.cc
  1781. * src/AsyncNameResolver.h
  1782. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1783. Call ares_library_init and ares_library_cleanup if they are
  1784. available. Some code cleanups.
  1785. * src/Platform.cc
  1786. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1787. Call ares_process_fd() each time after epoll to handle timeout.
  1788. * src/EpollEventPoll.cc
  1789. * src/EpollEventPoll.h
  1790. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1791. Suppressed type-cast compiler warning
  1792. * src/CookieStorage.cc
  1793. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1794. Fixed compile error on Mac OS X.
  1795. * src/CookieStorage.h
  1796. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Removed cookietest.txt from Makefile.am
  1798. * test/Makefile.am
  1799. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Updated version number in man page.
  1801. * doc/aria2c.1.txt
  1802. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Rewritten help message for --allow-overwrite option.
  1804. * doc/aria2c.1.txt
  1805. * src/usage_text.h
  1806. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Added bittorrent key to the response of tellStatus XML-RPC method.
  1808. The associated value of the key is a struct and contains data
  1809. retrieved from .torrent file, such as name, announce-list,
  1810. comment, etc.
  1811. * doc/aria2c.1.txt
  1812. * src/XmlRpcMethodImpl.cc
  1813. * src/XmlRpcMethodImpl.h
  1814. * test/XmlRpcMethodTest.cc
  1815. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1816. Removed parse(std::istream&) and parse(const std::string&) from
  1817. CookieParser.
  1818. * src/CookieParser.cc
  1819. * src/CookieParser.h
  1820. * test/CookieParserTest.cc
  1821. * test/cookietest.txt: Removed
  1822. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Fixed the bug that cookie for domain a.b.c is not sent to the host
  1824. a.b.c if no other cookies are stored. Fixed the bug that
  1825. Cookie::markOriginServerOnly() is not called when cookies are
  1826. loaded from file/sqlite3 database.
  1827. * src/Cookie.h
  1828. * src/CookieStorage.cc
  1829. * src/NsCookieParser.cc
  1830. * src/Sqlite3MozCookieParser.cc
  1831. * test/CookieStorageTest.cc
  1832. * test/NsCookieParserTest.cc
  1833. * test/Sqlite3MozCookieParserTest.cc
  1834. * test/cookies.sqlite
  1835. * test/nscookietest.txt
  1836. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1837. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  1838. both _pieceStorage and _segmentMan are initialized or they are
  1839. not.
  1840. * src/RequestGroup.cc
  1841. * src/RequestGroup.h
  1842. * test/BtDependencyTest.cc
  1843. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1844. Bump up version number to 1.8.2
  1845. * configure.ac
  1846. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1847. Replaced "." with A2STR::DOT_C
  1848. * src/AbstractCommand.cc
  1849. * src/Cookie.cc
  1850. * src/DownloadContext.cc
  1851. * src/FtpConnection.cc
  1852. * src/RequestGroup.cc
  1853. * src/util.cc
  1854. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1855. Replaced isNumberAndDotsNotation() with isNumericHost().
  1856. isNumericHost() can handle IPv6 address.
  1857. * src/Cookie.cc
  1858. * src/CookieStorage.cc
  1859. * src/util.cc
  1860. * src/util.h
  1861. * test/CookieTest.cc
  1862. * test/UtilTest.cc
  1863. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Included A2STR.h
  1865. * src/CookieStorage.cc
  1866. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1867. Rewritten Cookie storage.
  1868. * src/Cookie.cc
  1869. * src/Cookie.h
  1870. * src/CookieParser.cc
  1871. * src/CookieStorage.cc
  1872. * src/CookieStorage.h
  1873. * src/a2functional.h
  1874. * test/CookieParserTest.cc
  1875. * test/CookieStorageTest.cc
  1876. * test/CookieTest.cc
  1877. * test/HttpResponseTest.cc
  1878. * test/TestUtil.h
  1879. * test/a2functionalTest.cc
  1880. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1881. Handle redirected URI which is not properly percent encoded.
  1882. * src/Request.cc
  1883. * test/RequestTest.cc
  1884. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1885. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1886. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1887. in a row without single '200 OK' response.
  1888. * src/RequestGroup.cc.
  1889. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1890. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1891. readout by 80 characters in mingw32 build. Catch exception in
  1892. DHTMessageReceiver::receiveMessage().
  1893. * src/AbstractDiskWriter.cc
  1894. * src/ConsoleStatCalc.cc
  1895. * src/DHTMessageReceiver.cc
  1896. * src/File.cc
  1897. * src/RequestGroupMan.cc
  1898. * src/a2io.h
  1899. * test/FileTest.cc
  1900. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Fixed compile error with intel compiler
  1902. * src/XmlRpcMethodImpl.cc
  1903. * src/XmlRpcMethodImpl.h
  1904. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1905. Release 1.8.1
  1906. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Updated Swedish, Russian and Italian translations. Thanks to all
  1908. translators.
  1909. * po/it.po
  1910. * po/ru.po
  1911. * po/sv.po
  1912. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1913. Fixed broken OptionParser::findByName().
  1914. * src/OptionParser.cc
  1915. * test/OptionParserTest.cc
  1916. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1917. Fixed test error without BitTorrent support.
  1918. * test/XmlRpcMethodTest.cc
  1919. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1920. Fixed compile error without GNUTLS/OpenSSL.
  1921. * src/util.cc
  1922. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. Changed compression level to Z_DEFAULT_COMPRESSION.
  1924. * src/GZipEncoder.cc
  1925. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1926. Added missing command line options: --http-no-cache,
  1927. --bt-save-metadata and --bt-metadata-only.
  1928. * doc/xmlrpc/aria2rpc
  1929. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1931. client accepts gzip content encoding.
  1932. * src/A2STR.cc
  1933. * src/A2STR.h
  1934. * src/GZipEncoder.cc
  1935. * src/GZipEncoder.h
  1936. * src/HttpHeader.cc
  1937. * src/HttpHeader.h
  1938. * src/HttpServer.cc
  1939. * src/HttpServer.h
  1940. * src/HttpServerBodyCommand.cc
  1941. * src/HttpServerCommand.cc
  1942. * src/Makefile.am
  1943. * src/XmlRpcResponse.cc
  1944. * src/XmlRpcResponse.h
  1945. * test/GZipEncoderTest.cc
  1946. * test/Makefile.am
  1947. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Added XML-RPC client sample code in Python.
  1949. * doc/aria2c.1.txt
  1950. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1951. Updated po templates.
  1952. * po/aria2.pot
  1953. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1954. Bump up version number to 1.8.1
  1955. * configure.ac
  1956. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. Added version number to man page. Updated copyright year in man
  1958. page.
  1959. * doc/aria2c.1.txt
  1960. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Rewritten toTagString
  1962. * src/NameMatchOptionHandler.cc
  1963. * test/OptionHandlerTest.cc
  1964. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1965. Added dir and files key to the response struct of aria2.tellStatus
  1966. XML-RPC method. The value associated with files key is the list
  1967. of files. Its element is the same struct used in aria2.getFiles
  1968. XML-RPC method. Added uris key to the response struct of
  1969. aria2.getFiles XML-RPC method. The value associated with uris key
  1970. is the list of URIs. Its element is the same struct used in
  1971. aria2.getUris XML-RPC method.
  1972. * doc/aria2c.1.txt
  1973. * src/XmlRpcMethodImpl.cc
  1974. * test/XmlRpcMethodTest.cc
  1975. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1977. struct containing Session ID, which is generated each time when
  1978. aria2 is invoked.
  1979. * doc/aria2c.1.txt
  1980. * doc/xmlrpc/aria2rpc
  1981. * src/DownloadEngine.cc
  1982. * src/DownloadEngine.h
  1983. * src/XmlRpcMethodFactory.cc
  1984. * src/XmlRpcMethodImpl.cc
  1985. * src/XmlRpcMethodImpl.h
  1986. * test/XmlRpcMethodTest.cc
  1987. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1988. Moved generateRandomKey() from bittorrent_helper to util.
  1989. * src/DHTBucket.cc
  1990. * src/DHTNode.cc
  1991. * src/bittorrent_helper.cc
  1992. * src/bittorrent_helper.h
  1993. * src/util.cc
  1994. * src/util.h
  1995. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1996. Updated doc about GID.
  1997. * doc/aria2c.1.txt
  1998. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  2000. accepts a negative integer. 'offset' == -1 points last download
  2001. in the waiting queue and 'offset' == -2 points the download before
  2002. the last download, and so on. The downloads in the response are in
  2003. reversed order.
  2004. * doc/aria2c.1.txt
  2005. * src/XmlRpcMethodImpl.cc
  2006. * src/XmlRpcMethodImpl.h
  2007. * test/XmlRpcMethodTest.cc
  2008. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2009. Added --human-readable option. This option, when true is given,
  2010. prints sizes and speed in human readable format(e.g., 1.2Ki,
  2011. 3.4Mi) in the console readout. The default value is true and it
  2012. looks exactly the same as aria2-1.8.0. So the 'new feature'
  2013. appears when false is given. In this case, sizes and speed are
  2014. printed without in bytes. No Ki, Mi units conversion is used.
  2015. This may be useful for a program to parse the output of aria2.
  2016. * doc/aria2c.1.txt
  2017. * src/ConsoleStatCalc.cc
  2018. * src/ConsoleStatCalc.h
  2019. * src/OptionHandlerFactory.cc
  2020. * src/main.cc
  2021. * src/prefs.cc
  2022. * src/prefs.h
  2023. * src/usage_text.h
  2024. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2025. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  2026. option accepts empty string "". When "" is given, it erases
  2027. previously defined proxy.
  2028. * doc/aria2c.1.txt
  2029. * src/OptionHandlerImpl.h
  2030. * src/usage_text.h
  2031. * test/OptionHandlerTest.cc
  2032. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Code cleanup for proxy URI handling.
  2034. * src/AbstractCommand.cc
  2035. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2036. Added --bt-metadata-only option. If true is given to this option,
  2037. aria2 downloads metadata only. The file(s) described in metadata
  2038. will not be downloaded. This option has effect only when
  2039. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  2040. * doc/aria2c.1.txt
  2041. * src/OptionHandlerFactory.cc
  2042. * src/UTMetadataPostDownloadHandler.cc
  2043. * src/download_helper.cc
  2044. * src/prefs.cc
  2045. * src/prefs.h
  2046. * src/usage_text.h
  2047. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. Fixed memory leak. Commands stored in std::deque<Command*> are not
  2049. deleted when exception is thrown. Make sure that when passing
  2050. std::deque<Command*> to function to store Commands, handle
  2051. exception and delete these Commands.
  2052. * src/AbstractCommand.cc
  2053. * src/CheckIntegrityCommand.cc
  2054. * src/FileAllocationCommand.cc
  2055. * src/RequestGroup.cc
  2056. * src/TrackerWatcherCommand.cc
  2057. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2058. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  2059. * src/A2STR.cc
  2060. * src/A2STR.h
  2061. * src/FtpNegotiationCommand.cc
  2062. * src/HttpResponseCommand.cc
  2063. * src/util.cc
  2064. * src/util.h
  2065. * test/UtilTest.cc
  2066. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. Treat --dir="" as --dir="."
  2068. * src/FtpNegotiationCommand.cc
  2069. * src/HttpResponseCommand.cc
  2070. * src/Metalink2RequestGroup.cc
  2071. * src/UTMetadataPostDownloadHandler.cc
  2072. * src/bittorrent_helper.cc
  2073. * src/download_helper.cc
  2074. * src/util.cc
  2075. * src/util.h
  2076. * test/UtilTest.cc
  2077. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Code clean up.
  2079. * src/main.cc
  2080. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Reset GID to 1 when they reach maximum value. Rewritten
  2082. CUIDCounter::newID()
  2083. * src/CUIDCounter.h
  2084. * src/RequestGroup.cc
  2085. * src/RequestGroup.h
  2086. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. Documented --http-no-cache option in man page.
  2088. * doc/aria2c.1.txt
  2089. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2090. Added --http-no-cache option. When true is given, aria2 sends
  2091. Cache-Control: no-cache and Pragma: no-cache header to avoid
  2092. cached content. If false is given , these headers are not sent
  2093. and you can add Cache-Control header with a directive you like
  2094. using --header option.
  2095. * src/HttpRequest.cc
  2096. * src/HttpRequest.h
  2097. * src/HttpRequestCommand.cc
  2098. * src/OptionHandlerFactory.cc
  2099. * src/download_helper.cc
  2100. * src/prefs.cc
  2101. * src/prefs.h
  2102. * src/usage_text.h
  2103. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Removed Logger from OptionParser. When OptionParser is used to
  2105. parse options at bootstrap, LogFactory is not configured yet
  2106. properly. When LogFactory is used in OptionParser, it initializes
  2107. itself to return a logger which has no ability to write log to the
  2108. disk.
  2109. * src/OptionParser.cc
  2110. * src/OptionParser.h
  2111. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. Added following sentance to the help message of --out option:
  2113. --out option is ignored when -Z is used.
  2114. * doc/aria2c.1.txt
  2115. * src/usage_text.h
  2116. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Added --bt-save-metadata option to -i list options.
  2118. * doc/aria2c.1.txt
  2119. * src/download_helper.cc
  2120. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2121. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  2122. additional libraries.
  2123. * src/MultiUrlRequestInfo.cc
  2124. * src/NameResolver.cc
  2125. * src/SelectEventPoll.cc
  2126. * src/SelectEventPoll.h
  2127. * src/SocketCore.cc
  2128. * src/SocketCore.h
  2129. * src/a2netcompat.h
  2130. * src/daemon.cc
  2131. * src/main.cc
  2132. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Fixed typo.
  2134. * src/DHTMessageReceiver.cc
  2135. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. Fixed the bug that causes segmentation fault if unknown option is
  2137. put in aria2.conf file. BUG#2928303
  2138. * src/OptionParser.cc
  2139. * src/OptionParser.h
  2140. * src/option_processing.cc
  2141. * test/OptionParserTest.cc
  2142. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Ignore port message with port=0.
  2144. * src/BtPortMessage.cc
  2145. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Run autoupdate
  2147. * configure.ac
  2148. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Updated autoconf/automake auxiliary files.
  2150. * INSTALL
  2151. * config.guess
  2152. * config.sub
  2153. * depcomp
  2154. * install-sh
  2155. * m4/intldir.m4
  2156. * missing
  2157. * mkinstalldirs
  2158. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Removed unused function.
  2160. * src/SharedHandle.h
  2161. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2162. Find pooled socket using all cached addresses.
  2163. * src/DNSCache.h
  2164. * src/DownloadEngine.cc
  2165. * src/DownloadEngine.h
  2166. * src/InitiateConnectionCommand.cc
  2167. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2168. Updated copyright year.
  2169. * src/version_usage.cc
  2170. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Pool connection if _contentEncodingDecoder is used and server
  2172. supports persistent connection.
  2173. * src/HttpDownloadCommand.cc
  2174. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Updated doc.
  2176. * src/DownloadCommand.cc
  2177. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Untabify. Fixed one line in copyright which is longer than 80
  2179. columns.
  2180. * src
  2181. * test
  2182. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2183. Release 1.8.0
  2184. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Updated po templates.
  2186. * po/aria2.pot
  2187. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2188. Documented --bt-save-metadata option in man page.
  2189. * doc/aria2c.1.txt
  2190. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2191. Fixed usage of --bt-save-metadata option.
  2192. * src/usage_text.h
  2193. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Updated po templates.
  2195. * po/aria2.pot
  2196. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  2198. causes name resolution error when none of network interface has
  2199. IPv4 address.
  2200. * src/main.cc
  2201. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2202. Bump up version number to 1.8.0.
  2203. * configure.ac
  2204. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2205. Use info hash as a filename when saving BitTorrent metadata.
  2206. * src/UTMetadataPostDownloadHandler.cc
  2207. * test/UTMetadataPostDownloadHandlerTest.cc
  2208. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. Documented system.multicall XML-RPC method in man page.
  2210. * doc/aria2c.1.txt
  2211. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Added signal handler for SIGHUP to save .aria2 file when terminal
  2213. is closed. The handler is the same one for SIGINT and SIGTERM.
  2214. * src/MultiUrlRequestInfo.cc
  2215. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2216. Defined method name in XmlRpcMethod subclasses.
  2217. * src/XmlRpcMethodFactory.cc
  2218. * src/XmlRpcMethodImpl.cc
  2219. * src/XmlRpcMethodImpl.h
  2220. * test/XmlRpcMethodTest.cc
  2221. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2222. Added system.multicall XML-RPC method.
  2223. * src/XmlRpcMethod.cc
  2224. * src/XmlRpcMethod.h
  2225. * src/XmlRpcMethodFactory.cc
  2226. * src/XmlRpcMethodImpl.cc
  2227. * src/XmlRpcMethodImpl.h
  2228. * test/XmlRpcMethodTest.cc
  2229. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Check structure depth when decoding.
  2231. * src/bencode.cc
  2232. * src/bencode.h
  2233. * test/BencodeTest.cc
  2234. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Documented tellStopped XML-RPC method in man page.
  2236. * doc/aria2c.1.txt
  2237. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2238. Added tellStopped XML-RPC method to aria2rpc.
  2239. * doc/xmlrpc/aria2rpc
  2240. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Added tellStopped XML-RPC method. This method returns stopped
  2242. download in the specified range. It takes same parameters with
  2243. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  2244. * src/XmlRpcMethodFactory.cc
  2245. * src/XmlRpcMethodImpl.cc
  2246. * src/XmlRpcMethodImpl.h
  2247. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  2249. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  2250. when conducting unit tests because they fail if networking
  2251. interface is not configured with IPv4 address.
  2252. * src/NameResolver.cc
  2253. * src/SocketCore.cc
  2254. * src/SocketCore.h
  2255. * src/a2netcompat.h
  2256. * test/AllTest.cc
  2257. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Fixed unit test error
  2259. * test/UTMetadataPostDownloadHandlerTest.cc
  2260. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2261. Defined static string constants for efficiency.
  2262. * src/XmlRpcMethodImpl.cc
  2263. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. Added --bt-save-metadata option. When true is given, it saves
  2265. metadata as .torrent file. This option has effect only when
  2266. BitTorrent Magnet URI is used. The filename is name in metadata
  2267. with suffix .torrent. The directory to be saved is the same
  2268. directory where download file is saved. If the same file already
  2269. exists, metdata is not saved.
  2270. * src/OptionHandlerFactory.cc
  2271. * src/UTMetadataPostDownloadHandler.cc
  2272. * src/UTMetadataPostDownloadHandler.h
  2273. * src/message.h
  2274. * src/prefs.cc
  2275. * src/prefs.h
  2276. * src/usage_text.h
  2277. * test/UTMetadataDataExtensionMessageTest.cc
  2278. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Added util::saveAs() function. Use it in Signature::save().
  2280. * src/Signature.cc
  2281. * src/util.cc
  2282. * src/util.h
  2283. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Upcase info hash in Magnet URI.
  2285. * doc/aria2c.1.txt
  2286. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2287. Refactored RequestGroupMan::changeReservedGroupPosition()
  2288. * src/RequestGroupMan.cc
  2289. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2290. Updated the description for aria2.addTorrent XML-RPC method.
  2291. * doc/aria2c.1.txt
  2292. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Added changePosition to aria2rpc.
  2294. * doc/xmlrpc/aria2rpc
  2295. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Documented changePosition XML-RPC method in man page.
  2297. * doc/aria2c.1.txt
  2298. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2299. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  2300. pos and how. This method changes the position of download denoted
  2301. by gid. If how is POS_SET, it moves the download to a position
  2302. relative to the beginning of the queue. If how is POS_CUR, it
  2303. moves the download to a position relative to the current
  2304. position. If how is POS_END, it moves the download to a position
  2305. relative to the end of the queue. If the destination position is
  2306. less than 0 or beyond the end of the queue, it moves the download
  2307. to the beginning or the end of the queue respectively. Returns
  2308. the destination position.
  2309. * src/RequestGroupMan.cc
  2310. * src/RequestGroupMan.h
  2311. * src/XmlRpcMethodFactory.cc
  2312. * src/XmlRpcMethodImpl.cc
  2313. * src/XmlRpcMethodImpl.h
  2314. * test/RequestGroupManTest.cc
  2315. * test/XmlRpcMethodTest.cc
  2316. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Added getOption and getGlobalOption to aria2rpc.
  2318. * doc/xmlrpc/aria2rpc
  2319. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Documented getOption and getGlobalOption XML-RPC method in man
  2321. page
  2322. * doc/aria2c.1.txt
  2323. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2324. Added getOption and getGlobalOption XML-RPC method. getOption
  2325. takes GID as a parameter and returns its options as struct.
  2326. getGlobalOption takes no parameter and returns global
  2327. options. Because global option is used as a template for the
  2328. option of newly added downloads, it includes options returned by
  2329. getOption.
  2330. * src/Option.h
  2331. * src/XmlRpcMethodFactory.cc
  2332. * src/XmlRpcMethodImpl.cc
  2333. * src/XmlRpcMethodImpl.h
  2334. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. Sort _optionHandlers in OptionParser by name in ascending order.
  2336. Use vector instead of deque for efficiency.
  2337. * src/OptionHandler.h
  2338. * src/OptionHandlerFactory.h
  2339. * src/OptionParser.cc
  2340. * src/OptionParser.h
  2341. * src/version_usage.cc
  2342. * test/OptionParserTest.cc
  2343. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2344. Code cleanup
  2345. * src/XmlRpcMethod.cc
  2346. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2347. Documented about followedBy and belongsTo in man page.
  2348. * doc/aria2c.1.txt
  2349. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Added following 2 keys, followedBy and belongsTo, to the response
  2351. of tellStatus.
  2352. followedBy: List of GIDs which are generated by the consequence of
  2353. this download. For example, when aria2 downloaded Metalink file,
  2354. it generates downloads described in it(see *--follow-metalink*
  2355. option). This value is useful to track these auto generated
  2356. downloads. If there is no such downloads, this key will not be
  2357. included in the response.
  2358. belongsTo: GID of a parent download. Some downloads are a part of
  2359. another download. For example, if a file in Metalink has
  2360. BitTorrent resource, the download of .torrent is a part of that
  2361. file. If this download has no parent, this key will not be
  2362. included in the response.
  2363. * src/BtPostDownloadHandler.cc
  2364. * src/DownloadResult.h
  2365. * src/Metalink2RequestGroup.cc
  2366. * src/MetalinkPostDownloadHandler.cc
  2367. * src/RequestGroup.cc
  2368. * src/RequestGroup.h
  2369. * src/UTMetadataPostDownloadHandler.cc
  2370. * src/XmlRpcMethodImpl.cc
  2371. * src/XmlRpcMethodImpl.h
  2372. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2373. Assigned BObject in BDE() to avoid segmentation fault when calling
  2374. methods of BDE::none().
  2375. * src/BDE.cc
  2376. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2377. Show info hash in Magnet URI in upper case letters in -S output.
  2378. * src/bittorrent_helper.cc
  2379. * test/BittorrentHelperTest.cc
  2380. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Removed old useless comment
  2382. * src/MultiUrlRequestInfo.cc
  2383. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  2385. not properly used in configure script and failed to detect gnutls.
  2386. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  2387. and the initialization of pkg-config is done in first occurrence
  2388. of PKG_CHECK_MODULES which is not executed because it is inside of
  2389. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  2390. * configure.ac
  2391. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2392. Release 1.7.2
  2393. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2394. Fixed the bug that RequestGroupMan::downloadFinished() returns
  2395. true even if all downloads haven't finished, especially when
  2396. PostDownloadHandler is involved. Changed the condition so that it
  2397. only returns true if both _requestGroups and _reservedGroups are
  2398. empty.
  2399. * src/RequestGroupMan.cc
  2400. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2401. Log listening port for BitTorrent/DHT in notice level.
  2402. * src/DHTConnectionImpl.cc
  2403. * src/PeerListenCommand.cc
  2404. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Updated po templates.
  2406. * po/aria2.pot
  2407. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Bump up version number to 1.7.2
  2409. * configure.ac
  2410. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2411. Changed default value of --enable-dht from 'false' to 'true'.
  2412. * doc/aria2c.1.txt
  2413. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2414. Enabled DHT by default because of Magnet URI support. To disable
  2415. DHT, use --enable-dht=false
  2416. * src/OptionHandlerFactory.cc
  2417. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2418. Print Magnet URI in -S output.
  2419. * src/AnnounceList.cc
  2420. * src/bittorrent_helper.cc
  2421. * src/bittorrent_helper.h
  2422. * test/BittorrentHelperTest.cc
  2423. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Added --bt-prioritize-piece option to aria2rpc.
  2425. * doc/xmlrpc/aria2rpc
  2426. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2427. Refer Magnet URI in --help. Made some cosmetic changes.
  2428. * src/version_usage.cc
  2429. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2430. Updated -T and -M option.
  2431. * doc/aria2c.1.txt
  2432. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. Fixed typo
  2434. * doc/aria2c.1.txt
  2435. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2436. Fixed the bug that line separator is missing in horizontal bar.
  2437. * doc/xmlrpc/aria2mon
  2438. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Updated usage text for --metalink-file option.
  2440. * src/usage_text.h
  2441. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2442. If '-' is given as an argument to --metalink-file option, aria2
  2443. reads Metalink file from stdin.
  2444. * src/OptionHandlerFactory.cc
  2445. * src/OptionHandlerImpl.h
  2446. * src/a2io.h
  2447. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Fixed the bug that aria2 listens wrong port if --interface option
  2449. is used.
  2450. * src/SocketCore.cc
  2451. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Fixed the bug that query parameter in magnet URI is not decoded.
  2453. * src/magnet.cc
  2454. * test/MagnetTest.cc
  2455. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2456. Specified defaultSize as an argument for easy testing.
  2457. * src/util.cc
  2458. * src/util.h
  2459. * test/UtilTest.cc
  2460. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2461. Release 1.7.1
  2462. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Bump up version number to 1.7.1
  2464. * configure.ac
  2465. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2466. Fixed the bug --bt-prioritize-piece=tail is not working.
  2467. * src/util.cc
  2468. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. Release 1.7.0
  2470. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2471. Updated po templates.
  2472. * po/aria2.pot
  2473. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2474. Updated help message for --bt-prioritize-piece. Some cosmetic
  2475. changes.
  2476. * doc/aria2c.1.txt
  2477. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2478. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  2479. * src/usage_text.h
  2480. * src/util.cc
  2481. * test/UtilTest.cc
  2482. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2483. Updated Russian, Ukrainian, German and French translations.
  2484. Thanks to all translators involved.
  2485. * po/de.po
  2486. * po/fr.po
  2487. * po/ru.po
  2488. * po/uk.po
  2489. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2490. Mentioned about pkg-config
  2491. * README
  2492. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2493. Fixed typo. Referred --index-out option in BitTorrent notes.
  2494. * README
  2495. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2496. Store all addresses found by getifaddrs() and getaddrinfo(). In
  2497. bind, try all addresses until success
  2498. * src/SocketCore.cc
  2499. * src/SocketCore.h
  2500. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. Updated po templates.
  2502. * po/aria2.pot
  2503. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2504. Bump up version number to 1.7.0
  2505. * configure.ac
  2506. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2507. Fixed compile error if ENABLE_BITTORRENT is undefined.
  2508. * src/DefaultPieceStorage.cc
  2509. * src/DefaultPieceStorage.h
  2510. * src/PieceStorage.h
  2511. * src/UnknownLengthPieceStorage.cc
  2512. * src/UnknownLengthPieceStorage.h
  2513. * test/MockPieceStorage.h
  2514. * test/ProtocolDetectorTest.cc
  2515. * test/XmlRpcMethodTest.cc
  2516. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2517. Documented in man page that if getifaddrs() is missing,
  2518. --interface option doesn't accept interface name.
  2519. * doc/aria2c.1.txt
  2520. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2521. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  2522. * src/DefaultBtAnnounce.cc
  2523. * src/DefaultBtAnnounce.h
  2524. * test/DefaultBtAnnounceTest.cc
  2525. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Fixed the bug that connection is always dropped if handshake
  2527. message in extension protocol don't have metadata_size.
  2528. src/HandshakeExtensionMessage.cc
  2529. * src/HandshakeExtensionMessage.cc
  2530. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2531. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  2532. text saying DHT is recommended when Magnet URI is provided.
  2533. * doc/aria2c.1.txt
  2534. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2535. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  2536. URI is supplied. Notify user that they should consider enabling
  2537. DHT if they use Magnet URI.
  2538. * src/RequestGroup.cc
  2539. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2540. Added --disable-ipv6 option to disable IPv6.
  2541. * doc/aria2c.1.txt
  2542. * src/InitiateConnectionCommand.cc
  2543. * src/NameResolver.cc
  2544. * src/NameResolver.h
  2545. * src/OptionHandlerFactory.cc
  2546. * src/main.cc
  2547. * src/prefs.cc
  2548. * src/prefs.h
  2549. * src/usage_text.h
  2550. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Updated usage text for --bt-prioritize-piece option.
  2552. * doc/aria2c.1.txt
  2553. * src/usage_text.h
  2554. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. In configure script, if --with-PACKAGE and --enable-FEATURE are
  2556. given and PACKAGE is missing in the system or FEATURE cannot be
  2557. enabled, print error message and stop the script.
  2558. * configure.ac
  2559. * m4/aria2_arg.m4
  2560. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Halt metadata download immediately when metadata download is done.
  2562. Don't wait unresponsive tracker.
  2563. * src/ByteArrayDiskWriter.h
  2564. * src/DefaultBtInteractive.cc
  2565. * src/DefaultExtensionMessageFactory.cc
  2566. * src/DefaultExtensionMessageFactory.h
  2567. * src/PeerInteractionCommand.cc
  2568. * src/UTMetadataDataExtensionMessage.cc
  2569. * src/UTMetadataDataExtensionMessage.h
  2570. * src/UTMetadataRequestExtensionMessage.cc
  2571. * test/UTMetadataDataExtensionMessageTest.cc
  2572. * test/UTMetadataRequestExtensionMessageTest.cc
  2573. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2574. Documented --interface option in man page.
  2575. * doc/aria2c.1.txt
  2576. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Try resolved address in the order received from the resolver.
  2578. * src/DNSCache.h
  2579. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2580. Added debug logs.
  2581. * src/SocketCore.cc
  2582. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2583. Fixed type of tail to uint64_t
  2584. * src/util.cc
  2585. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. Added --interface option. This feature binds sockets to given
  2587. interface. You can specify interface name, IP address and
  2588. hostname.
  2589. * configure.ac
  2590. * src/OptionHandlerFactory.cc
  2591. * src/SocketCore.cc
  2592. * src/SocketCore.h
  2593. * src/main.cc
  2594. * src/message.h
  2595. * src/prefs.cc
  2596. * src/prefs.h
  2597. * src/usage_text.h
  2598. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Updated man page for bt-prioritize-piece option in -i list.
  2600. * doc/aria2c.1.txt
  2601. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2602. Added bt-prioritize-piece option to -i list.
  2603. * src/download_helper.cc
  2604. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2605. Removed --http-auth-scheme option from man page.
  2606. * doc/aria2c.1.txt
  2607. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2608. Removed --http-auth-scheme option since it doesn't do nothing.
  2609. * src/OptionHandlerFactory.cc
  2610. * src/prefs.cc
  2611. * src/prefs.h
  2612. * src/usage_text.h
  2613. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2614. Adjusted the number of peer info which get_peers reply message can
  2615. carry.
  2616. * src/DHTGetPeersReplyMessage.cc
  2617. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Added extension_message_test_helper.h to aria2c_SOURCES.
  2619. * test/Makefile.am
  2620. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Documented --bt-prioritize-piece option in man page.
  2622. * doc/aria2c.1.txt
  2623. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2624. Added option --bt-prioritize-piece. This option instruct aria2 to
  2625. try to download first and last pieces of each file first. The
  2626. argument can contain 2 keywords:head and tail. To include both
  2627. keywords, they must be separated by comma. These keywords can take
  2628. one parameter, SIZE. For example , if head=SIZE is specified,
  2629. pieces in the range of first SIZE bytes of each file get higher
  2630. priority. tail=SIZE means the range of last SIZE bytes of each
  2631. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  2632. * src/DefaultPieceStorage.h
  2633. * src/Makefile.am
  2634. * src/OptionHandlerFactory.cc
  2635. * src/OptionHandlerImpl.h
  2636. * src/PriorityPieceSelector.cc
  2637. * src/PriorityPieceSelector.h
  2638. * src/RequestGroup.cc
  2639. * src/prefs.cc
  2640. * src/prefs.h
  2641. * src/usage_text.h
  2642. * src/util.cc
  2643. * src/util.h
  2644. * test/Makefile.am
  2645. * test/MockPieceSelector.h
  2646. * test/PriorityPieceSelectorTest.cc
  2647. * test/UtilTest.cc
  2648. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2649. Fixed typo
  2650. * src/HttpRequest.h
  2651. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2652. In Magnet URI with tr parameter, put each announce URI in separate
  2653. tier.
  2654. * src/bittorrent_helper.cc
  2655. * test/BittorrentHelperTest.cc
  2656. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2657. Renamed ExtensionMessage::getBencodedData() as
  2658. ExtensionMessage::getPayload()
  2659. * src/BtExtendedMessage.cc
  2660. * src/ExtensionMessage.h
  2661. * src/HandshakeExtensionMessage.cc
  2662. * src/HandshakeExtensionMessage.h
  2663. * src/UTMetadataDataExtensionMessage.cc
  2664. * src/UTMetadataDataExtensionMessage.h
  2665. * src/UTMetadataRejectExtensionMessage.cc
  2666. * src/UTMetadataRejectExtensionMessage.h
  2667. * src/UTMetadataRequestExtensionMessage.cc
  2668. * src/UTMetadataRequestExtensionMessage.h
  2669. * src/UTPexExtensionMessage.cc
  2670. * src/UTPexExtensionMessage.h
  2671. * test/HandshakeExtensionMessageTest.cc
  2672. * test/MockExtensionMessage.h
  2673. * test/UTMetadataDataExtensionMessageTest.cc
  2674. * test/UTMetadataRejectExtensionMessageTest.cc
  2675. * test/UTMetadataRequestExtensionMessageTest.cc
  2676. * test/UTPexExtensionMessageTest.cc
  2677. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2678. Updated man page for BitTorrent Magnet URI.
  2679. * doc/aria2c.1.txt
  2680. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2681. Call DownloadContext::setOwnerRequestGroup() in
  2682. RequestGroup::setDownloadContext().
  2683. * src/BtDependency.cc
  2684. * src/RequestGroup.cc
  2685. * src/RequestGroup.h
  2686. * src/download_helper.cc
  2687. * test/DefaultBtMessageDispatcherTest.cc
  2688. * test/DefaultExtensionMessageFactoryTest.cc
  2689. * test/HandshakeExtensionMessageTest.cc
  2690. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2691. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  2692. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  2693. from metadata, use new metadata2Torrent() function.
  2694. * src/BtDependency.cc
  2695. * src/UTMetadataPostDownloadHandler.cc
  2696. * src/bittorrent_helper.cc
  2697. * src/bittorrent_helper.h
  2698. * test/BittorrentHelperTest.cc
  2699. * test/BtDependencyTest.cc
  2700. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2701. Use createRequestGroupForUri to create the download for torrent
  2702. file.
  2703. * src/Metalink2RequestGroup.cc
  2704. * test/Metalink2RequestGroupTest.cc
  2705. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2706. Fixed typo
  2707. * src/DownloadContext.h
  2708. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2709. Use createRequestGroupForBitTorrent()
  2710. * src/BtPostDownloadHandler.cc
  2711. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2712. Added remove().
  2713. * src/Option.cc
  2714. * src/Option.h
  2715. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. Removed options which is only valid for URIs specified in
  2717. command-line. If they are left, because op is used as a template
  2718. for new RequestGroup(such as created in XML-RPC command,
  2719. BtPostDownloadHandler etc), they causes unintentional effect.
  2720. * src/main.cc
  2721. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2722. Refer to option value of PREF_OUT only in download_helper.
  2723. * src/FtpNegotiationCommand.cc
  2724. * src/HttpResponseCommand.cc
  2725. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  2727. * src/download_helper.cc
  2728. * src/download_helper.h
  2729. * src/XmlRpcMethodImpl.cc
  2730. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. Updated man page for changeOption XML-RPC method.
  2732. * doc/aria2c.1.txt
  2733. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2734. Added --bt-max-peers option to changeOption XML-RPC method.
  2735. * src/XmlRpcMethod.cc
  2736. * src/XmlRpcMethodImpl.cc
  2737. * test/XmlRpcMethodTest.cc
  2738. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2739. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  2740. * test/XmlRpcMethodTest.cc
  2741. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2742. Removed redundant DownloadContext::hasAttribute(...) calls.
  2743. * src/ConsoleStatCalc.cc
  2744. * src/RequestGroup.cc
  2745. * src/XmlRpcMethodImpl.cc
  2746. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Changed the number of tracker request attempt from 5 to 2.
  2748. * src/TrackerWatcherCommand.cc
  2749. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. Use host and protocol in original URI, because URI selector
  2751. selects URI based on original URI, not redirected one.
  2752. * src/Request.cc
  2753. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. Fixed the bug which causes segmentation fault with tellWaiting
  2755. XML-RPC method when BitTorrent download is waiting. The key of
  2756. BtRegistry is changed from info hash to GID, because it is
  2757. registered per RequestGroup, not info hash.
  2758. * src/BtRegistry.cc
  2759. * src/BtRegistry.h
  2760. * src/BtSetup.cc
  2761. * src/ConsoleStatCalc.cc
  2762. * src/InitiatorMSEHandshakeCommand.cc
  2763. * src/PeerInitiateConnectionCommand.cc
  2764. * src/PeerInteractionCommand.cc
  2765. * src/PeerInteractionCommand.h
  2766. * src/PeerReceiveHandshakeCommand.cc
  2767. * src/RequestGroup.cc
  2768. * src/XmlRpcMethodImpl.cc
  2769. * test/BtRegistryTest.cc
  2770. * test/XmlRpcMethodTest.cc
  2771. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2772. Updated man page for changeOption XML-RPC method.
  2773. * doc/aria2c.1.txt
  2774. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  2776. method.
  2777. * src/XmlRpcMethod.cc
  2778. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Documented about BitTorrent Magnet URI in man page.
  2780. * doc/aria2c.1.txt
  2781. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2782. Fixed the bug that trackers in BitTorrent Magnet URI are not
  2783. inherited to generated RequestGroup.
  2784. * src/UTMetadataPostDownloadHandler.cc
  2785. * test/UTMetadataPostDownloadHandlerTest.cc
  2786. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2787. Prepended "[METADATA]" before dn.
  2788. * src/bittorrent_helper.cc
  2789. * test/BittorrentHelperTest.cc
  2790. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Rewritten Magnet URI parser.
  2792. * src/Makefile.am
  2793. * src/ProtocolDetector.cc
  2794. * src/bittorrent_helper.cc
  2795. * src/bittorrent_helper.h
  2796. * src/download_helper.cc
  2797. * src/magnet.cc
  2798. * src/magnet.h
  2799. * test/BittorrentHelperTest.cc
  2800. * test/MagnetTest.cc
  2801. * test/Makefile.am
  2802. * test/ProtocolDetectorTest.cc
  2803. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. Use hton64
  2805. * src/base32.cc
  2806. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2807. Added Base32 encoded BitTorrent Magnet Link support.
  2808. * src/Makefile.am
  2809. * src/base32.cc
  2810. * src/base32.h
  2811. * src/bittorrent_helper.cc
  2812. * test/Base32Test.cc
  2813. * test/BittorrentHelperTest.cc
  2814. * test/Makefile.am
  2815. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Added BitTorrent Magnet Link support. Base32 encoded link is not
  2817. supported yet. Fixed typo in method name in RequestGroup. In
  2818. metadataGetMode, don't show "Your share ratio was ..." message.
  2819. * src/DefaultBtInteractive.cc
  2820. * src/DefaultBtInteractive.h
  2821. * src/DownloadHandlerFactory.cc
  2822. * src/DownloadHandlerFactory.h
  2823. * src/HandshakeExtensionMessage.cc
  2824. * src/Makefile.am
  2825. * src/Metalink2RequestGroup.cc
  2826. * src/PeerInteractionCommand.cc
  2827. * src/RequestGroup.cc
  2828. * src/RequestGroup.h
  2829. * src/UTMetadataPostDownloadHandler.cc
  2830. * src/UTMetadataPostDownloadHandler.h
  2831. * src/download_helper.cc
  2832. * test/HandshakeExtensionMessageTest.cc
  2833. * test/Makefile.am
  2834. * test/UTMetadataPostDownloadHandlerTest.cc
  2835. * test/UTMetadataRejectExtensionMessageTest.cc
  2836. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. In metadataGetMode, don't show SEEDING.
  2838. * src/ConsoleStatCalc.cc
  2839. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Fixed ut_metadata data handling. Implemented
  2841. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  2842. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2843. metadata_size is received.
  2844. * src/DefaultExtensionMessageFactory.cc
  2845. * src/DefaultExtensionMessageFactory.h
  2846. * src/HandshakeExtensionMessage.cc
  2847. * src/HandshakeExtensionMessage.h
  2848. * src/UTMetadataDataExtensionMessage.cc
  2849. * src/UTMetadataDataExtensionMessage.h
  2850. * src/UTMetadataRequestExtensionMessage.cc
  2851. * src/UTMetadataRequestFactory.cc
  2852. * src/UTMetadataRequestFactory.h
  2853. * src/UTMetadataRequestTracker.cc
  2854. * src/UTMetadataRequestTracker.h
  2855. * test/DefaultExtensionMessageFactoryTest.cc
  2856. * test/HandshakeExtensionMessageTest.cc
  2857. * test/MockBtMessage.h
  2858. * test/UTMetadataDataExtensionMessageTest.cc
  2859. * test/UTMetadataRequestExtensionMessageTest.cc
  2860. * test/UTMetadataRequestFactoryTest.cc
  2861. * test/UTMetadataRequestTrackerTest.cc
  2862. * test/extension_message_test_helper.h
  2863. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Drop connection if ut_metadata reject message is received.
  2865. * src/UTMetadataRejectExtensionMessage.cc
  2866. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2868. get high enough in that mode.
  2869. * src/ActivePeerConnectionCommand.cc
  2870. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2871. Added BitTorrent magnet link support to ProtocolDetector.
  2872. * src/ProtocolDetector.cc
  2873. * src/ProtocolDetector.h
  2874. * test/ProtocolDetectorTest.cc
  2875. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Don't inject validator into BtMessage in metadataGetMode because
  2877. most of the checks depends on the total length of download but it
  2878. is unknown. Delegate metadataGetMode to BtMessage.
  2879. * src/DefaultBtMessageFactory.cc
  2880. * src/DefaultBtMessageFactory.h
  2881. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2882. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2883. * src/DefaultPieceStorage.h
  2884. * src/PieceStorage.h
  2885. * src/UnknownLengthPieceStorage.h
  2886. * test/MockPieceStorage.h
  2887. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2888. Added markTotalLengthIsKnown().
  2889. * src/DownloadContext.h
  2890. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2891. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2892. missing. If metadata is missing, always use DHT when it is ready.
  2893. * src/BtSetup.cc
  2894. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2895. Added parseMagnetLink(). Hex encoded info hash is supported.
  2896. Base32 encoded info hash is not supported yet.
  2897. * src/bittorrent_helper.cc
  2898. * src/bittorrent_helper.h
  2899. * test/BittorrentHelperTest.cc
  2900. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2901. Added FromHex()
  2902. * src/util.cc
  2903. * src/util.h
  2904. * test/UtilTest.cc
  2905. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2906. Added _metadataGetMode member variable. It toggles the action when
  2907. messages are received: usually they almost do nothing if
  2908. _metadataGetMode is true.
  2909. * src/AbstractBtMessage.cc
  2910. * src/AbstractBtMessage.h
  2911. * src/BtAllowedFastMessage.cc
  2912. * src/BtBitfieldMessage.cc
  2913. * src/BtCancelMessage.cc
  2914. * src/BtChokeMessage.cc
  2915. * src/BtHaveAllMessage.cc
  2916. * src/BtHaveMessage.cc
  2917. * src/BtInterestedMessage.cc
  2918. * src/BtNotInterestedMessage.cc
  2919. * src/BtPieceMessage.cc
  2920. * src/BtRejectMessage.cc
  2921. * src/BtRequestMessage.cc
  2922. * src/BtUnchokeMessage.cc
  2923. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2924. Added bencode::decode overload functions. They have extra argument
  2925. 'end', passed by reference. 'end' points to the beyond the last
  2926. position of data used in decoding process.
  2927. * src/bencode.cc
  2928. * src/bencode.h
  2929. * test/BencodeTest.cc
  2930. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2931. Initial support of Extension for Peers to Send Metadata
  2932. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2933. metadata from swarm.
  2934. * src/BtConstants.h
  2935. * src/DefaultBtInteractive.cc
  2936. * src/DefaultExtensionMessageFactory.cc
  2937. * src/DefaultExtensionMessageFactory.h
  2938. * src/ExtensionMessage.h
  2939. * src/ExtensionMessageRegistry.h
  2940. * src/HandshakeExtensionMessage.cc
  2941. * src/HandshakeExtensionMessage.h
  2942. * src/Makefile.am
  2943. * src/PeerConnection.h
  2944. * src/PeerInteractionCommand.cc
  2945. * src/UTMetadataDataExtensionMessage.cc
  2946. * src/UTMetadataDataExtensionMessage.h
  2947. * src/UTMetadataExtensionMessage.cc
  2948. * src/UTMetadataExtensionMessage.h
  2949. * src/UTMetadataRejectExtensionMessage.cc
  2950. * src/UTMetadataRejectExtensionMessage.h
  2951. * src/UTMetadataRequestExtensionMessage.cc
  2952. * src/UTMetadataRequestExtensionMessage.h
  2953. * src/bittorrent_helper.cc
  2954. * src/bittorrent_helper.h
  2955. * test/BittorrentHelperTest.cc
  2956. * test/DefaultExtensionMessageFactoryTest.cc
  2957. * test/HandshakeExtensionMessageTest.cc
  2958. * test/Makefile.am
  2959. * test/UTMetadataDataExtensionMessageTest.cc
  2960. * test/UTMetadataRejectExtensionMessageTest.cc
  2961. * test/UTMetadataRequestExtensionMessageTest.cc
  2962. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2963. Cancel segment in prepareForRetry() because there is a chance that
  2964. the command has segments.
  2965. * src/CreateRequestCommand.cc
  2966. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Fixed the bug that slow server is not knocked down in favor of
  2968. faster one.
  2969. * src/AbstractCommand.cc
  2970. * src/DefaultPieceStorage.cc
  2971. * src/DefaultPieceStorage.h
  2972. * src/PieceStorage.h
  2973. * src/UnknownLengthPieceStorage.cc
  2974. * src/UnknownLengthPieceStorage.h
  2975. * test/MockPieceStorage.h
  2976. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2977. Fixed the bug that Request object is not added to
  2978. _inFlightRequests in findFasterRequest().
  2979. * src/FileEntry.cc
  2980. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2981. Changed the strategry of how to increase the number of outstanding
  2982. requests. Now the number is doubled if there are no outstanding
  2983. requests after receiving messages.
  2984. * src/BtConstants.h
  2985. * src/DefaultBtInteractive.cc
  2986. * src/DefaultBtInteractive.h
  2987. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2988. Check socket for reading if there are outstanding requests.
  2989. * src/PeerInteractionCommand.cc
  2990. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2991. Moved frequently called methods to header file so they get
  2992. inlined.
  2993. * src/RequestSlot.cc
  2994. * src/RequestSlot.h
  2995. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. Copied in_addr instead of just casting from char* which might
  2997. violate strict aliasing rules.
  2998. * src/AsyncNameResolver.cc
  2999. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3000. Use dynamic_pointer_cast
  3001. * test/BtPieceMessageTest.cc
  3002. * test/BtRequestMessageTest.cc
  3003. * test/DefaultBtRequestFactoryTest.cc
  3004. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3005. Added testSetUrl20()
  3006. * test/RequestTest.cc
  3007. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3008. Code cleanup
  3009. * src/bittorrent_helper.cc
  3010. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3011. Use C++ style cast
  3012. * src/AsyncNameResolver.cc
  3013. * src/Base64.h
  3014. * src/BtBitfieldMessage.cc
  3015. * src/BtHandshakeMessage.cc
  3016. * src/DefaultBtMessageFactory.cc
  3017. * src/DefaultBtProgressInfoFile.cc
  3018. * src/EpollEventPoll.cc
  3019. * src/ExpatMetalinkProcessor.cc
  3020. * src/IteratableChecksumValidator.cc
  3021. * src/IteratableChunkChecksumValidator.cc
  3022. * src/MessageDigestHelper.cc
  3023. * src/Platform.cc
  3024. * src/RequestGroupMan.cc
  3025. * src/SingleFileAllocationIterator.cc
  3026. * src/Sqlite3MozCookieParser.cc
  3027. * src/XML2SAXMetalinkProcessor.cc
  3028. * src/Xml2XmlRpcRequestProcessor.cc
  3029. * src/util.cc
  3030. * src/util.h
  3031. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Fixed integer potential alignment problem.
  3033. * src/bitfield.h
  3034. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. Applied a patch from tizianomueller to fix sigbus errors on Linux
  3036. sparc. I modified the patch to eliminate a cast to uint32_t* and
  3037. include file ordering.
  3038. * src/PeerListProcessor.h
  3039. * src/bittorrent_helper.cc
  3040. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3041. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  3042. * src/Request.cc
  3043. * src/util.cc
  3044. * src/util.h
  3045. * test/RequestTest.cc
  3046. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3047. Rewritten util::uitos()
  3048. * src/util.h
  3049. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3050. Code cleanup
  3051. * src/Request.cc
  3052. * src/Request.h
  3053. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3054. Rewritten Request::parseUrl()
  3055. * src/Request.cc
  3056. * test/RequestTest.cc
  3057. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3058. Removed unused macro SAFE_CHARS
  3059. * src/Request.cc
  3060. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3061. Updated doc
  3062. * src/DHTRoutingTableDeserializer.cc
  3063. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3064. Release 1.6.3
  3065. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Removed unused function.
  3067. * test/DHTPeerAnnounceStorageTest.cc
  3068. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Only decrement cols if cols > 0
  3070. * src/ConsoleStatCalc.cc
  3071. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3072. Updated Polish, Catalan, French, Italian, Russian and Japanese
  3073. translations. Thanks to all translators.
  3074. * po/ca.po
  3075. * po/fr.po
  3076. * po/it.po
  3077. * po/ja.po
  3078. * po/pl.po
  3079. * po/ru.po
  3080. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. Updated translation template
  3082. * po
  3083. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Fixed compile error without ssl library.
  3085. * src/util.cc
  3086. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3087. Logged received nodes in get_peers reply message.
  3088. * src/DHTAbstractNodeLookupTask.cc
  3089. * src/DHTAbstractNodeLookupTask.h
  3090. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3091. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  3092. error occurred in DHTMessageDispatcherImpl::sendMessage().
  3093. * src/DHTMessageDispatcherImpl.cc
  3094. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3095. Don't reuse URI if Request pool is not empty.
  3096. * src/CreateRequestCommand.cc
  3097. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3098. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  3099. receive get_peers request for torrent which the client is now
  3100. downloading.
  3101. * src/BtSetup.cc
  3102. * src/DHTPeerAnnounceEntry.cc
  3103. * src/DHTPeerAnnounceEntry.h
  3104. * src/DHTPeerAnnounceStorage.cc
  3105. * src/DHTPeerAnnounceStorage.h
  3106. * src/RequestGroup.cc
  3107. * test/DHTPeerAnnounceEntryTest.cc
  3108. * test/DHTPeerAnnounceStorageTest.cc
  3109. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3110. Fixed the bug that in Windows environment new blank line is
  3111. inserted when console readout is updated.
  3112. * src/ConsoleStatCalc.cc
  3113. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3114. Throw exception if binding listening port is failed. Removed
  3115. RequestGroupMan::getInitialCommand(). Use
  3116. fillRequestGroupFromReserver() instead. Delete commands for
  3117. RequestGroup which has errors when it is being added.
  3118. * src/BtSetup.cc
  3119. * src/DownloadEngine.cc
  3120. * src/DownloadEngine.h
  3121. * src/DownloadEngineFactory.cc
  3122. * src/MultiUrlRequestInfo.cc
  3123. * src/RequestGroupMan.cc
  3124. * src/RequestGroupMan.h
  3125. * test/RequestGroupManTest.cc
  3126. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3127. Fixed the bug that when downloading more than one torrent,
  3128. listening port is not reported properly to tracker for 2nd or
  3129. later torrents.
  3130. * src/BtSetup.cc
  3131. * src/PeerListenCommand.cc
  3132. * src/PeerListenCommand.h
  3133. * src/RequestGroup.cc
  3134. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3135. Bump up version number to 1.6.3
  3136. * configure.ac
  3137. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3138. Removed Util.cc from POTFILES.in
  3139. * po/POTFILES.in
  3140. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Updated man page for previous change.
  3142. * doc/aria2c.1.txt
  3143. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3144. If user name is embedded but password is missing in URI, first
  3145. resolve password using .netrc. If password is found in .netrc,
  3146. then use it as password. If not, use the password specified in
  3147. --ftp-passwd.
  3148. * src/AuthConfigFactory.cc
  3149. * src/Request.cc
  3150. * src/Request.h
  3151. * test/AuthConfigFactoryTest.cc
  3152. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. Fixed typo
  3154. * doc/aria2c.1.txt
  3155. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3156. Fixed typo
  3157. * src/usage_text.h
  3158. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3159. Added missing bitfield.cc
  3160. * src/bitfield.cc
  3161. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3162. Renamed Util.{cc,h} as util.{cc,h}
  3163. * src/Util.cc
  3164. * src/Util.h
  3165. * src/util.cc
  3166. * src/util.h
  3167. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3168. Moved static functions in Util class to namespace util.
  3169. * src
  3170. * test
  3171. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3172. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  3173. Moved generateRandomKey to bittorrent_helper.cc.
  3174. * src/DHTBucket.cc
  3175. * src/DHTGetPeersMessage.cc
  3176. * src/DHTGetPeersReplyMessage.cc
  3177. * src/DHTMessage.cc
  3178. * src/DHTNode.cc
  3179. * src/DHTTokenTracker.cc
  3180. * src/DHTUtil.cc: Removed.
  3181. * src/DHTUtil.h: Removed.
  3182. * src/Makefile.am
  3183. * src/Util.cc
  3184. * src/Util.h
  3185. * src/bitfield.h
  3186. * src/bittorrent_helper.cc
  3187. * src/bittorrent_helper.h
  3188. * test/ARC4Test.cc
  3189. * test/BNodeTest.cc
  3190. * test/DHTAnnouncePeerMessageTest.cc
  3191. * test/DHTAnnouncePeerReplyMessageTest.cc
  3192. * test/DHTFindNodeMessageTest.cc
  3193. * test/DHTFindNodeReplyMessageTest.cc
  3194. * test/DHTGetPeersMessageTest.cc
  3195. * test/DHTGetPeersReplyMessageTest.cc
  3196. * test/DHTPingMessageTest.cc
  3197. * test/DHTPingReplyMessageTest.cc
  3198. * test/DHTTokenTrackerTest.cc
  3199. * test/DHTUtilTest.cc: Removed.
  3200. * test/Makefile.am
  3201. * test/UtilTest.cc
  3202. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3203. Removed the call to trim() because trim() is called for each
  3204. element in split().
  3205. * src/CookieParser.cc
  3206. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. Replaced Util::slice() with split()
  3208. * src/AbstractCommand.cc
  3209. * src/CookieParser.cc
  3210. * src/File.cc
  3211. * src/HttpHeaderProcessor.cc
  3212. * src/HttpRequest.cc
  3213. * src/Metalink2RequestGroup.cc
  3214. * src/MetalinkParserController.cc
  3215. * src/Netrc.cc
  3216. * src/NsCookieParser.cc
  3217. * src/ParameterizedStringParser.cc
  3218. * src/ServerStatMan.cc
  3219. * src/UriListParser.cc
  3220. * src/Util.cc
  3221. * src/Util.h
  3222. * src/bittorrent_helper.cc
  3223. * test/UtilTest.cc
  3224. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3225. Use request->getDir() instead of "/" for embedded user/pass in
  3226. URI.
  3227. * src/AuthConfigFactory.cc
  3228. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Fixed wrong insertion point for BasicCred.
  3230. * src/AuthConfigFactory.cc
  3231. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Allowed non-regular file in LocalFilePathOptionHandler
  3233. * src/OptionHandlerImpl.h
  3234. * src/message.h
  3235. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3236. Fixed the bug that Netrc::parse() cannot recognize comment line.
  3237. * src/Netrc.cc
  3238. * src/Util.h
  3239. * test/NetrcTest.cc
  3240. * test/sample.netrc
  3241. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3242. Fixed typo
  3243. * src/BtDependency.cc
  3244. * src/BtRejectMessage.cc
  3245. * src/FtpConnection.cc
  3246. * src/HttpHeaderProcessor.h
  3247. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3248. Fixed lintian report in man page
  3249. * doc/aria2c.1.txt
  3250. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Release 1.6.2
  3252. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3253. Updated Ukrainian translation. Thanks to all translators.
  3254. * po/uk.po
  3255. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3256. Updated translation template
  3257. * po
  3258. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Bump up version number to 1.6.2
  3260. * configure.ac
  3261. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3262. Updated licence message in -v output.
  3263. * src/version_usage.cc
  3264. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3265. Replaced aria2 with aria2c in help message.
  3266. * src/version_usage.cc
  3267. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3268. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  3269. * src/version_usage.cc
  3270. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3271. Quoted localedir
  3272. * src/Makefile.am
  3273. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3274. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  3275. utime. Check header for utime.h.
  3276. * configure.ac
  3277. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3278. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  3279. * configure.ac
  3280. * src/daemon.cc
  3281. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3282. Don't set localedir manually. Leave it to autoconf.
  3283. * configure.ac
  3284. * src/Makefile.am
  3285. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. Added --install to ACLOCAL_AMFLAGS.
  3287. Removed m4 from SUBDIRS.
  3288. Updated automake 1.11 and autoconf 2.64.
  3289. Replaced some obsolute macros with new one.
  3290. * Makefile.am
  3291. * configure.ac
  3292. * m4/aria2_arg.m4
  3293. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3294. Removed Makefile.am in m4 directory.
  3295. * configure.ac
  3296. * m4/ChangeLog
  3297. * m4/Makefile.am
  3298. * m4/Makefile.in
  3299. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3300. Removed unused m4 macros.
  3301. * m4/intldir.m4
  3302. * m4/inttypes.m4
  3303. * m4/isc-posix.m4
  3304. * m4/libgnutls-extra.m4
  3305. * m4/ulonglong.m4
  3306. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3307. Fixed the bug that causes segmentation fault if
  3308. req->getCurrentUrl() contains printf formatting characters such as
  3309. %d. The statement that causes this bug is useless and removed.
  3310. * src/AbstractCommand.cc
  3311. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3312. * Release 1.6.1
  3313. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3314. Updated Simplified Chinese translation. Thanks to translators.
  3315. * po/zh_CN.po
  3316. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3317. Updated translation template
  3318. * po
  3319. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3320. Bump up version number to 1.6.1
  3321. * configure.ac
  3322. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3323. Changed interval from 120 to 60 for dropping inactive peer.
  3324. * src/DefaultBtInteractive.cc
  3325. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3326. Updated man page for --user-agent and --peer-id-prefix option.
  3327. * doc/aria2c.1.txt
  3328. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3329. Code clean up
  3330. * src/BtPostDownloadHandler.cc
  3331. * src/ContentTypeRequestGroupCriteria.cc
  3332. * src/ContentTypeRequestGroupCriteria.h
  3333. * src/DownloadHandlerConstants.cc
  3334. * src/DownloadHandlerConstants.h
  3335. * src/DownloadHandlerFactory.cc
  3336. * src/MetalinkPostDownloadHandler.cc
  3337. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3338. Don't save control file when aria2 exists while checking piece
  3339. hash(behavior of -V option). If control file doesn't exist when
  3340. aria2 launched, the completed length in saved control file will be
  3341. 0 byte and this confuses user. disableSaveControlFile() is called
  3342. in RequestGroup::processCheckIntegrityEntry().
  3343. enableSaveControlFile() will be called after hash checking is
  3344. done. See CheckIntegrityCommand.
  3345. * src/CheckIntegrityCommand.cc
  3346. * src/RequestGroup.cc
  3347. * src/RequestGroup.h
  3348. * src/RequestGroupMan.cc
  3349. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3350. Included version number in Peer ID and client version. Peer ID
  3351. now starts with "aria2/VERSION-", where VERSION is
  3352. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  3353. * src/DefaultBtInteractive.cc
  3354. * src/OptionHandlerFactory.cc
  3355. * src/bittorrent_helper.cc
  3356. * src/bittorrent_helper.h
  3357. * src/main.cc
  3358. * src/usage_text.h
  3359. * test/BittorrentHelperTest.cc
  3360. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3361. Fixed memory leak.
  3362. * src/DownloadCommand.cc
  3363. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3364. Removed server, port, user and passwd key from options before
  3365. XMLRPC::Client.call since they are not options of aria2.
  3366. * doc/xmlrpc/aria2mon
  3367. * doc/xmlrpc/aria2rpc
  3368. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3369. Included version number in user-agent string.
  3370. * src/OptionHandlerFactory.cc
  3371. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3372. Fixed the bug that the option values changed by XML-RPC
  3373. method(changeOption and changeGlobalOption) are overwritten to the
  3374. previous value by the next these request which doesn't contain
  3375. that option value. Supporse max-download-limit is initially 0. You
  3376. changed this value to 100K by changeOption. Then you issue
  3377. changeOption request to change max-upload-limit to 50K. This
  3378. second request doesn't contain xml-download-limit, so it is back
  3379. to initial value, 0. Another improvement is that exception is
  3380. thrown when changeOption and changeGlobalOption request contains
  3381. option name which doesn't allowed in each request.
  3382. * src/DownloadEngine.h
  3383. * src/XmlRpcMethod.cc
  3384. * src/XmlRpcMethod.h
  3385. * src/XmlRpcMethodImpl.cc
  3386. * src/download_helper.cc
  3387. * src/download_helper.h
  3388. * test/XmlRpcMethodTest.cc
  3389. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3390. Added missing MetalinkParserStateImpl.{cc,h}
  3391. * src/MetalinkParserStateImpl.cc
  3392. * src/MetalinkParserStateImpl.h
  3393. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. Put all MetalinkParserState subclasses into
  3395. MetalinkParserStateImpl.cc. Use stack to track element structure.
  3396. * src/FileMetalinkParserState.cc: Removed
  3397. * src/FileMetalinkParserState.h: Removed
  3398. * src/FilesMetalinkParserState.cc: Removed
  3399. * src/FilesMetalinkParserState.h: Removed
  3400. * src/FinMetalinkParserState.cc: Removed
  3401. * src/FinMetalinkParserState.h: Removed
  3402. * src/HashMetalinkParserState.cc: Removed
  3403. * src/HashMetalinkParserState.h: Removed
  3404. * src/InitialMetalinkParserState.cc: Removed
  3405. * src/InitialMetalinkParserState.h: Removed
  3406. * src/LanguageMetalinkParserState.cc: Removed
  3407. * src/LanguageMetalinkParserState.h: Removed
  3408. * src/Makefile.am
  3409. * src/MetalinkMetalinkParserState.cc: Removed
  3410. * src/MetalinkMetalinkParserState.h: Removed
  3411. * src/MetalinkParserState.h
  3412. * src/MetalinkParserStateMachine.cc
  3413. * src/MetalinkParserStateMachine.h
  3414. * src/OSMetalinkParserState.cc: Removed
  3415. * src/OSMetalinkParserState.h: Removed
  3416. * src/PieceHashMetalinkParserState.cc: Removed
  3417. * src/PieceHashMetalinkParserState.h: Removed
  3418. * src/PiecesMetalinkParserState.cc: Removed
  3419. * src/PiecesMetalinkParserState.h: Removed
  3420. * src/ResourcesMetalinkParserState.cc: Removed
  3421. * src/ResourcesMetalinkParserState.h: Removed
  3422. * src/SignatureMetalinkParserState.cc: Removed
  3423. * src/SignatureMetalinkParserState.h: Removed
  3424. * src/SizeMetalinkParserState.cc: Removed
  3425. * src/SizeMetalinkParserState.h: Removed
  3426. * src/SkipTagMetalinkParserState.cc: Removed
  3427. * src/SkipTagMetalinkParserState.h: Removed
  3428. * src/URLMetalinkParserState.cc: Removed
  3429. * src/URLMetalinkParserState.h: Removed
  3430. * src/VerificationMetalinkParserState.cc: Removed
  3431. * src/VerificationMetalinkParserState.h: Removed
  3432. * src/VersionMetalinkParserState.cc: Removed
  3433. * src/VersionMetalinkParserState.h: Removed
  3434. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3435. Move all functions in PeerMessageUtil to bittorrent_helper.
  3436. * src/BtBitfieldMessage.cc
  3437. * src/BtBitfieldMessageValidator.h
  3438. * src/BtExtendedMessage.cc
  3439. * src/BtHandshakeMessage.cc
  3440. * src/BtHandshakeMessageValidator.h
  3441. * src/BtPieceMessage.cc
  3442. * src/BtPieceMessageValidator.h
  3443. * src/BtPortMessage.cc
  3444. * src/DHTFindNodeReplyMessage.cc
  3445. * src/DHTGetPeersReplyMessage.cc
  3446. * src/DHTMessageFactoryImpl.cc
  3447. * src/DHTRoutingTableDeserializer.cc
  3448. * src/DHTRoutingTableSerializer.cc
  3449. * src/DHTTokenTracker.cc
  3450. * src/DefaultBtMessageFactory.cc
  3451. * src/IndexBtMessage.cc
  3452. * src/IndexBtMessage.h
  3453. * src/IndexBtMessageValidator.h
  3454. * src/Makefile.am
  3455. * src/PeerMessageUtil.cc: Removed.
  3456. * src/PeerMessageUtil.h: Removed.
  3457. * src/RangeBtMessage.cc
  3458. * src/RangeBtMessage.h
  3459. * src/RangeBtMessageValidator.h
  3460. * src/UTPexExtensionMessage.cc
  3461. * src/ZeroBtMessage.cc
  3462. * src/ZeroBtMessage.h
  3463. * src/bittorrent_helper.cc
  3464. * src/bittorrent_helper.h
  3465. * test/BittorrentHelperTest.cc
  3466. * test/BtAllowedFastMessageTest.cc
  3467. * test/BtBitfieldMessageTest.cc
  3468. * test/BtCancelMessageTest.cc
  3469. * test/BtChokeMessageTest.cc
  3470. * test/BtExtendedMessageTest.cc
  3471. * test/BtHandshakeMessageTest.cc
  3472. * test/BtHaveAllMessageTest.cc
  3473. * test/BtHaveMessageTest.cc
  3474. * test/BtHaveNoneMessageTest.cc
  3475. * test/BtInterestedMessageTest.cc
  3476. * test/BtNotInterestedMessageTest.cc
  3477. * test/BtPieceMessageTest.cc
  3478. * test/BtPortMessageTest.cc
  3479. * test/BtRejectMessageTest.cc
  3480. * test/BtRequestMessageTest.cc
  3481. * test/BtSuggestPieceMessageTest.cc
  3482. * test/BtUnchokeMessageTest.cc
  3483. * test/DHTFindNodeReplyMessageTest.cc
  3484. * test/DHTGetPeersReplyMessageTest.cc
  3485. * test/DHTMessageFactoryImplTest.cc
  3486. * test/DHTRoutingTableDeserializerTest.cc
  3487. * test/DHTRoutingTableSerializerTest.cc
  3488. * test/DefaultBtMessageFactoryTest.cc
  3489. * test/DefaultExtensionMessageFactoryTest.cc
  3490. * test/Makefile.am
  3491. * test/PeerListProcessorTest.cc
  3492. * test/PeerMessageUtilTest.cc: Removed.
  3493. * test/UTPexExtensionMessageTest.cc
  3494. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3495. Limit the size of values list when sending get_peers reply.
  3496. * src/DHTGetPeersReplyMessage.cc
  3497. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3498. Updated banner
  3499. * doc/xmlrpc/aria2rpc
  3500. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3501. Added missing help message for remove command.
  3502. * doc/xmlrpc/aria2rpc
  3503. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3504. Generated configure and config.h.in
  3505. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  3506. Add check for fork(), which is missing on MinGW
  3507. * src/daemon.cc
  3508. * configure.ac
  3509. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  3511. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  3512. Util::httpGMT().
  3513. * src/Util.cc
  3514. * src/Util.h
  3515. * test/UtilTest.cc
  3516. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3517. * Release 1.6.0
  3518. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3519. Fixed a path to xmlrpc/README.txt
  3520. * doc/Makefile.am
  3521. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. Added XML-RPC in -v Configuration output.
  3523. * src/FeatureConfig.cc
  3524. * src/FeatureConfig.h
  3525. * test/FeatureConfigTest.cc
  3526. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3527. Updated Bulgarian, Russian, Slovak and Japanese
  3528. translations. Thanks to all translators.
  3529. * po/bg.po
  3530. * po/ja.po
  3531. * po/ru.po
  3532. * po/sk.po
  3533. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3534. Removed --retry-wait option from aria2rpc
  3535. * doc/xmlrpc/aria2rpc
  3536. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3537. Removed --retry-wait option from man page.
  3538. * doc/aria2c.1.txt
  3539. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3540. Removed --retry-wait option since the current architecture doesn't
  3541. allow sleep for particular URI.
  3542. * src/AbstractCommand.cc
  3543. * src/OptionHandlerFactory.cc
  3544. * src/download_helper.cc
  3545. * src/prefs.cc
  3546. * src/prefs.h
  3547. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3548. Removed Retry-After header support. Since the current architecture
  3549. doesn't allow sleep for particular URI.
  3550. * src/HttpSkipResponseCommand.cc
  3551. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Updated the help message for --daemon option.
  3553. * doc/aria2c.1.txt
  3554. * src/usage_text.h
  3555. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3556. Added our own daemon() function for systems which desn't have
  3557. daemon(3).
  3558. * configure.ac
  3559. * src/Makefile.am
  3560. * src/daemon.cc
  3561. * src/daemon.h
  3562. * src/option_processing.cc
  3563. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3564. Simplified File::getCurrentDir()
  3565. * src/File.cc
  3566. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3567. Use exit() instead of _exit
  3568. * src/RequestGroupMan.cc
  3569. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3570. Replaced "CATEGORY" with "TAGS".
  3571. * src/usage_text.h
  3572. * doc/aria2c.1.txt
  3573. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3574. Updated the help message for --help option.
  3575. * src/usage_text.h
  3576. * doc/aria2c.1.txt
  3577. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3578. Updated man page for added help tags.
  3579. * doc/aria2c.1.txt
  3580. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Added help category #file. Added #file tag to the options related
  3582. to downloaded file.
  3583. * src/OptionHandlerFactory.cc
  3584. * src/help_tags.h
  3585. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3586. Added help categories: #cookie and #hook. Added #https tag to
  3587. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  3588. * src/OptionHandlerFactory.cc
  3589. * src/help_tags.h
  3590. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Made MSG_NOT_FILE translatable.
  3592. * src/message.h
  3593. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3594. Updated man page for --help option.
  3595. * doc/aria2c.1.txt
  3596. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3597. Updated doc.
  3598. * src/XmlRpcMethod.h
  3599. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3600. Help category now starts with "#" to distinguish a category from
  3601. keyword search. For example, "http" categroy is now "#http". You
  3602. can type "--help=#http" to get explanation of options related to
  3603. http. If '#' is omitted, then the argument is treated as a keyword
  3604. and aria2 searches options whose name includes the keyword and
  3605. print matched ones. For example, "--help=http" will show options
  3606. whose name includes "http".
  3607. * src/OptionHandlerFactory.cc
  3608. * src/help_tags.h
  3609. * src/usage_text.h
  3610. * src/version_usage.cc
  3611. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3612. Documented missing experimental tag and newly added xml-rpc tag in
  3613. man page.
  3614. * doc/aria2c.1.txt
  3615. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3616. Added xml-rpc help tag. Tagged xml-rpc related options with
  3617. xml-rpc tag.
  3618. * src/OptionHandlerFactory.cc
  3619. * src/help_tags.h
  3620. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3621. Updated message when a path is not a file. Updated common message
  3622. for wrong option.
  3623. * src/OptionHandlerException.cc
  3624. * src/message.h
  3625. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3626. Use File::isFile() instead of File::exists(). Updated message when
  3627. a path is not a file.
  3628. * src/OptionHandlerImpl.cc
  3629. * src/message.h
  3630. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3631. Fixed the bug that server performence profile is not updated when
  3632. aria2c was terminated by emergency shutdown.
  3633. * src/TrackerWatcherCommand.cc
  3634. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3635. Use LocalFilePathOptionHandler for -T and -M option.
  3636. Updated message of MSG_FILE_NOT_EXIST.
  3637. * src/OptionHandlerFactory.cc
  3638. * src/message.h
  3639. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3640. Added LocalFilePathOptionHandler which check whether the specified
  3641. file path does exist or not.
  3642. * src/OptionHandlerImpl.cc
  3643. * src/message.h
  3644. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3645. Updated wiki page URI.
  3646. * README
  3647. * doc/aria2c.1.txt
  3648. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3649. Added README.txt for xmlrpc directory.
  3650. * doc/Makefile.am
  3651. * doc/xmlrpc/README.txt
  3652. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3653. Bump up version number to 1.6.0.
  3654. * configure.ac
  3655. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3656. Added XML-RPC client scripts written in ruby.
  3657. * doc/Makefile.am
  3658. * doc/xmlrpc/aria2mon
  3659. * doc/xmlrpc/aria2rpc
  3660. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. Added support for IPv6 literal address in URI. Now aria2 can
  3662. handle URI such as http://[::1]/
  3663. * src/HttpRequest.cc
  3664. * src/HttpRequest.h
  3665. * src/Request.cc
  3666. * src/Request.h
  3667. * test/HttpRequestTest.cc
  3668. * test/OptionHandlerTest.cc
  3669. * test/RequestTest.cc
  3670. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Fixed the bug that HTTP request header for XML-RPC request is not
  3672. parsed properly.
  3673. * src/HttpHeader.cc
  3674. * src/HttpHeaderProcessor.cc
  3675. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3676. Fixed the bug that XML-RPC authorization might be done before HTTP
  3677. request header is fully received.
  3678. * src/HttpServerCommand.cc
  3679. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3680. Documented --xml-rpc-listen-all option in man page.
  3681. * doc/aria2c.1.txt
  3682. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3683. Added --xml-rpc-listen-all option. If true is given to this
  3684. option, aria2 listens incoming XML-RPC requests on all network
  3685. interfaces. If false is given, listens only on local loopback
  3686. interface. The default value is false.
  3687. * src/HttpListenCommand.cc
  3688. * src/OptionHandlerFactory.cc
  3689. * src/SocketCore.cc
  3690. * src/SocketCore.h
  3691. * src/prefs.cc
  3692. * src/prefs.h
  3693. * src/usage_text.h
  3694. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3695. * Release 1.5.2
  3696. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3697. Updated Ukrainian and Russian translations. Thanks to all
  3698. translators.
  3699. * po/ru.po
  3700. * po/uk.po
  3701. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3702. Bump up version number to 1.5.2
  3703. * configure.ac
  3704. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3705. Get comment, comment.utf-8, created by and creation date from
  3706. .torrent file and print them in -S output.
  3707. * src/bittorrent_helper.cc
  3708. * src/bittorrent_helper.h
  3709. * test/BittorrentHelperTest.cc
  3710. * test/test.torrent
  3711. * test/utf8.torrent
  3712. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Show exact file size along in -S option output.
  3714. * src/Util.h
  3715. * src/bittorrent_helper.cc
  3716. * test/UtilTest.cc
  3717. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3718. Avoided unnecessary memory allocation in
  3719. BitfieldMan::getCompletedLength().
  3720. * src/BitfieldMan.cc
  3721. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3722. Fixed the bug that download fails if
  3723. SocketCore::establishConnection() throws exception and aria2
  3724. doesn't try another address.
  3725. * src/AbstractCommand.cc
  3726. * src/InitiateConnectionCommand.cc
  3727. * src/message.h
  3728. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3729. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  3730. detected properly.
  3731. * m4/sqlite3.m4
  3732. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3733. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  3734. because it causes compile error if PARAMS macro is defined.
  3735. * src/XmlRpcElements.cc
  3736. * src/XmlRpcElements.h
  3737. * src/XmlRpcRequestParserStateImpl.cc
  3738. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3739. * Release 1.5.1
  3740. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3741. Bump up version number to 1.5.1
  3742. * configure.ac
  3743. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Fixed compile error without BitTorrent support
  3745. * src/DefaultBtProgressInfoFile.cc
  3746. * src/DownloadEngine.cc
  3747. * src/DownloadEngine.h
  3748. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3749. Added missing '=' in Download Results
  3750. * src/RequestGroupMan.cc
  3751. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3752. Fixed compiler warning
  3753. * src/DefaultBtProgressInfoFile.cc
  3754. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3755. Fixed compiler warning on 32bit systems.
  3756. * src/DownloadCommand.cc
  3757. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3758. Call flush from ServerStatMan::save()
  3759. * src/ServerStatMan.cc
  3760. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3761. Check stream status after file is opened.
  3762. * src/CookieStorage.cc
  3763. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3764. Rewritten Signature::save()
  3765. * src/Signature.cc
  3766. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3767. Rewritten RequestGroupMan::saveServerStat()
  3768. * src/RequestGroupMan.cc
  3769. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3770. Rewritten stream error handling
  3771. * src/DHTAutoSaveCommand.cc
  3772. * src/DHTRoutingTableDeserializer.cc
  3773. * src/DHTRoutingTableSerializer.cc
  3774. * src/DHTSetup.cc
  3775. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3776. Check stream status after file is opened.
  3777. * src/DefaultBtProgressInfoFile.cc
  3778. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3779. Rewritten stream error handling
  3780. * src/DefaultBtProgressInfoFile.cc
  3781. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3782. Make sure that stream is closed before renaming file. Unit test
  3783. fails on mingw32 in the previous implementation.
  3784. * src/CookieStorage.cc
  3785. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Fixed the unit test error without sqlite3
  3787. * test/CookieStorageTest.cc
  3788. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3789. Fixed the undefined reference error
  3790. * test/HttpResponseTest.cc
  3791. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3792. * Release 1.5.0
  3793. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3794. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  3795. Ukrainian translations. Thanks to all translators.
  3796. * po/ru.po
  3797. * po/it.po
  3798. * po/da.po
  3799. * po/bg.po
  3800. * po/ja.po
  3801. * po/uk.po
  3802. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3803. Added missing src/Logger.cc
  3804. * src/Logger.cc
  3805. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. Rewritten Logger to avoiding constly virtual call.
  3807. * src/LogFactory.cc
  3808. * src/LogFactory.h
  3809. * src/Logger.h
  3810. * src/Makefile.am
  3811. * src/Makefile.in
  3812. * src/NullLogger.h: Removed.
  3813. * src/SimpleLogger.cc
  3814. * src/SimpleLogger.h
  3815. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3816. Updated doc
  3817. * src/main.cc
  3818. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. Updated debug log message
  3820. * src/AbstractCommand.cc
  3821. * src/message.h
  3822. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3823. Avoid to create zombie process when commands specified in
  3824. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  3825. X and NetBSD.
  3826. * src/main.cc
  3827. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3828. Fixed typo
  3829. * src/usage_text.h
  3830. * doc/aria2c.1.txt
  3831. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. Documented 'errorCode' of tellStatus in man page.
  3833. * doc/aria2c.1.txt
  3834. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3835. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  3836. This key is only available for stopped/completed downloads and its
  3837. value is the error code defined in EXIT STATUS in man page.
  3838. * src/XmlRpcMethodImpl.cc
  3839. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3840. Fixed the bug that session download length is not updated when
  3841. PeerStat is not fastest one.
  3842. * src/SegmentMan.cc
  3843. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3844. Updated doc.
  3845. * doc/aria2c.1.txt
  3846. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3847. Updated doc.
  3848. * src/AbstractCommand.cc
  3849. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3850. Handle the case when DownloadContext has no FileEntry.
  3851. * src/XmlRpcMethodImpl.cc
  3852. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3853. Handle the situation where struct option.name is char *.
  3854. * configure.ac
  3855. * src/OptionParser.cc
  3856. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3857. Code cleanup
  3858. * src/AbstractCommand.cc
  3859. * src/DownloadCommand.cc
  3860. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3861. Use option of each download to create AuthConfig instead of global
  3862. option.
  3863. * src/AuthConfigFactory.cc
  3864. * src/AuthConfigFactory.h
  3865. * src/FtpNegotiationCommand.cc
  3866. * src/HttpRequest.cc
  3867. * src/HttpRequest.h
  3868. * src/HttpRequestCommand.cc
  3869. * src/HttpSkipResponseCommand.cc
  3870. * src/MultiUrlRequestInfo.cc
  3871. * test/AuthConfigFactoryTest.cc
  3872. * test/FtpConnectionTest.cc
  3873. * test/HttpRequestTest.cc
  3874. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Don't call prepareForRetry(1) if all segments are ignored in
  3876. SegmentMan.
  3877. * src/AbstractCommand.cc
  3878. * src/BitfieldMan.cc
  3879. * src/BitfieldMan.h
  3880. * src/SegmentMan.cc
  3881. * src/SegmentMan.h
  3882. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3883. Removed FileEntry::getAssociatedUris()
  3884. * src/FileEntry.h
  3885. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3886. Updated doc: TODO1.5 -> TODO
  3887. * src/FileEntry.cc
  3888. * src/HttpResponseCommand.cc
  3889. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3890. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3891. involved.
  3892. * src/RequestGroup.cc
  3893. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. Eliminated duplicated filterBitfield initialization code.
  3895. * src/BitfieldMan.cc
  3896. * src/BitfieldMan.h
  3897. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3898. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3899. relatively naive approach, though). For DownloadFailureException,
  3900. we handle the case when req is null properly.
  3901. * src/AbstractCommand.cc
  3902. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Added function returning suffix of control file to
  3904. DefaultBtProgressInfoFile.
  3905. * src/DefaultBtProgressInfoFile.cc
  3906. * src/DefaultBtProgressInfoFile.h
  3907. * src/RequestGroup.cc
  3908. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3909. Documented getVersion in man page.
  3910. * doc/aria2c.1.txt
  3911. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3912. Documented type of offset and num for tellWaiting xml-rpc method.
  3913. * doc/aria2c.1.txt
  3914. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Implemented getVersion xml-rpc method. This method returns struct
  3916. which has 2 key-value pairs: "version" key is associated to the
  3917. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3918. associated to the list of enabled features, such as "Async DNS",
  3919. "BitTorrent".
  3920. * src/FeatureConfig.h
  3921. * src/XmlRpcMethodFactory.cc
  3922. * src/XmlRpcMethodImpl.cc
  3923. * src/XmlRpcMethodImpl.h
  3924. * test/XmlRpcMethodTest.cc
  3925. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3926. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3927. for compatibility issue.
  3928. * src/SocketCore.cc
  3929. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3930. Fixed compile error with openSSL
  3931. * src/bittorrent_helper.cc
  3932. * src/messageDigest.h
  3933. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3934. Removed bad code: setting certificate type priority to key
  3935. exchange priority.
  3936. * src/SocketCore.cc
  3937. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Disconnect seeder if client is also in seed state.
  3939. * src/BtBitfieldMessage.cc
  3940. * src/BtHaveAllMessage.cc
  3941. * src/BtHaveMessage.cc
  3942. * src/message.h
  3943. * test/BtBitfieldMessageTest.cc
  3944. * test/BtHaveAllMessageTest.cc
  3945. * test/BtHaveMessageTest.cc
  3946. * test/MockPieceStorage.h
  3947. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3948. Keep CreateRequestCommand in queue when no segment is available so
  3949. that they can pick up pieces which slow BitTorrent peers are
  3950. downloading.
  3951. * src/AbstractCommand.cc
  3952. * src/CreateRequestCommand.cc
  3953. * src/CreateRequestCommand.h
  3954. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3955. --bt-stop-timeout now only checks download speed.
  3956. * src/BtStopDownloadCommand.cc
  3957. * src/BtStopDownloadCommand.h
  3958. * src/BtSetup.cc
  3959. * src/usage_text.h
  3960. * doc/aria2c.1.txt
  3961. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3962. Fixed compile error regarding BUFSIZE.
  3963. * src/DownloadCommand.cc
  3964. * src/DownloadCommand.h
  3965. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3966. Documented tellWaiting xml-rpc method in man page.
  3967. * doc/aria2c.1.txt
  3968. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3969. Bump up version number to 1.5.0
  3970. * configure.ac
  3971. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3972. Removed resolved TODO1.5
  3973. * src/AbstractCommand.cc
  3974. * src/DownloadCommand.cc
  3975. * src/RequestGroup.cc
  3976. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. Release pooled and in-flight Request objectsand URIResult objects
  3978. in FileEntry after download completed.
  3979. * src/DownloadContext.cc
  3980. * src/DownloadContext.h
  3981. * src/FileEntry.cc
  3982. * src/FileEntry.h
  3983. * src/RequestGroup.cc
  3984. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3985. Set manual and source attribute in aria2c.1.txt
  3986. * doc/aria2c.1.txt
  3987. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3988. Documented that the default value of --use-head is 'false' in man
  3989. page.
  3990. * doc/aria2c.1.txt
  3991. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3992. Added bt-stop-timeout option to -i list.
  3993. * doc/aria2c.1.txt
  3994. * src/download_helper.cc
  3995. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Fixed typo
  3997. * doc/aria2c.1.txt
  3998. * src/usage_text.h
  3999. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4000. Removed peer-id-prefix option from -i list.
  4001. * doc/aria2c.1.txt
  4002. * src/download_helper.cc
  4003. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4004. Fixed typo
  4005. * doc/aria2c.1.txt
  4006. * src/usage_text.h
  4007. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4008. Documented --bt-stop-timeout option in man page.
  4009. * doc/aria2c.1.txt
  4010. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4011. Updated README regarding multi-file torrent web-seeding.
  4012. * doc/README.txt
  4013. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4014. Updated man page regarding multi-file torrent web-seeding.
  4015. * doc/aria2c.1.txt
  4016. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4017. Updated doc
  4018. * src/version_usage.cc
  4019. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4020. Winsock select() doesn't work if no socket is in FD_SET. To
  4021. overcome this problem, a dummy socket is added to FD_SET and it is
  4022. given to select().
  4023. * src/SelectEventPoll.cc
  4024. * src/SelectEventPoll.h
  4025. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4026. Disabled --use-head option by default because --use-head=true
  4027. causes problems on some web sites.
  4028. * src/OptionHandlerFactory.cc
  4029. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4030. Print URL List in -S option for torrent.
  4031. * src/bittorrent_helper.cc
  4032. * src/bittorrent_helper.h
  4033. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4034. Allocate buffer in ctor of DownloadCommand.
  4035. * src/DownloadCommand.cc
  4036. * src/DownloadCommand.h
  4037. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4038. Removed DiskAdaptor::onDownloadComplete()
  4039. * src/DirectDiskAdaptor.cc
  4040. * src/DirectDiskAdaptor.h
  4041. * src/DiskAdaptor.h
  4042. * src/MultiDiskAdaptor.cc
  4043. * src/MultiDiskAdaptor.h
  4044. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4045. Committed missing BtStopDownloadCommand.{cc,h}
  4046. * src/BtStopDownloadCommand.cc
  4047. * src/BtStopDownloadCommand.h
  4048. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4049. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  4050. download if the download speed is 0 and the number of seeder is 0
  4051. in consecutive SEC seconds. By default, this function is disabled.
  4052. * src/BtSetup.cc
  4053. * src/Makefile.am
  4054. * src/OptionHandlerFactory.cc
  4055. * src/prefs.cc
  4056. * src/prefs.h
  4057. * src/usage_text.h
  4058. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4059. Removed the call to DiskAdaptor::onDownloadComplete() from
  4060. BtCheckIntegrityEntry and DefaultPieceStorage.
  4061. * src/BtCheckIntegrityEntry.cc
  4062. * src/DefaultPieceStorage.cc
  4063. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4064. Commented out throw statements when number of piece is 0 to
  4065. download 0 length torrent.
  4066. * src/bittorrent_helper.cc
  4067. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4068. Call RequestGroup::createNextCommandWithAdj() from
  4069. BtFileAllocationEntry if at least one FileEntry has URI. The
  4070. static function hasAssociatedUri in RequestGroup.cc is renamed as
  4071. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  4072. * src/BtFileAllocationEntry.cc
  4073. * src/FileEntry.h
  4074. * src/RequestGroup.cc
  4075. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4076. Generate peer ID after SimpleRandomizer is initialized.
  4077. * src/main.cc
  4078. * src/option_processing.cc
  4079. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4080. Removed unused method argument.
  4081. * src/CreateRequestCommand.cc
  4082. * src/RequestGroup.cc
  4083. * src/RequestGroup.h
  4084. * src/RequestGroupMan.cc
  4085. * src/TrackerWatcherCommand.cc
  4086. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4087. Made URI reusing function work.
  4088. * src/CreateRequestCommand.cc
  4089. * src/FileEntry.cc
  4090. * src/FileEntry.h
  4091. * test/FileEntryTest.cc
  4092. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4093. Add formerly fastest PeerStat's sessionDownloadLength to new
  4094. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  4095. bytes in a session.
  4096. * src/PeerStat.cc
  4097. * src/SegmentMan.cc
  4098. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4099. If pipelining is enabled, we can always pool socket.
  4100. * src/HttpDownloadCommand.cc
  4101. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4102. In a single file download, file size becomes known just after
  4103. downloading, set total length to FileEntry object when download
  4104. completed.
  4105. * src/DownloadCommand.cc
  4106. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4107. Use std::vector::reserve() for fileEntries and pieceHashes in
  4108. bittorrent_helper
  4109. * src/bittorrent_helper.cc
  4110. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4111. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  4112. Removed hidden option PREF_RESET_URI.
  4113. * src/AbstractCommand.cc
  4114. * src/OptionHandlerFactory.cc
  4115. * src/prefs.cc
  4116. * src/prefs.h
  4117. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4118. Removed unused variable/function.
  4119. * src/PeerStat.h
  4120. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4121. Show first URL in Download Results if file path is not available.
  4122. * src/FileEntry.h
  4123. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4124. Throw exception if file path doesn't exist in FTP URL.
  4125. * src/InitiateConnectionCommandFactory.cc
  4126. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4127. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  4128. * src/BitfieldMan.cc
  4129. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4130. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  4131. of PeerStat in SegmentMan. peerStats is used for calculating
  4132. download speed. Therefore all active PeerStats should be in
  4133. there. Another one is _fastestPeerStats and it only contains
  4134. fastest PeerStat for each hostname/protocol pair. They are used
  4135. for updating ServerStat.
  4136. * src/DownloadCommand.cc
  4137. * src/Request.h
  4138. * src/RequestGroupMan.cc
  4139. * src/SegmentMan.cc
  4140. * src/SegmentMan.h
  4141. * test/SegmentManTest.cc
  4142. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4143. Try all available addresses returned by DNS until it gets
  4144. connected in HTTP(S)/FTP download
  4145. * src/AbstractCommand.cc
  4146. * src/AbstractCommand.h
  4147. * src/AbstractProxyRequestCommand.cc
  4148. * src/AbstractProxyRequestCommand.h
  4149. * src/DNSCache.h
  4150. * src/DownloadEngine.cc
  4151. * src/DownloadEngine.h
  4152. * src/FtpInitiateConnectionCommand.cc
  4153. * src/FtpInitiateConnectionCommand.h
  4154. * src/FtpNegotiationCommand.cc
  4155. * src/FtpNegotiationCommand.h
  4156. * src/HttpInitiateConnectionCommand.cc
  4157. * src/HttpInitiateConnectionCommand.h
  4158. * src/HttpRequestCommand.cc
  4159. * src/HttpRequestCommand.h
  4160. * src/InitiateConnectionCommand.cc
  4161. * src/InitiateConnectionCommand.h
  4162. * test/DNSCacheTest.cc
  4163. * test/Makefile.am
  4164. * test/SimpleDNSCacheTest.cc
  4165. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4166. Updated doc
  4167. * src/download_helper.cc
  4168. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4169. Refactored fieldMan ctor.
  4170. * src/BitfieldMan.cc
  4171. * src/BitfieldMan.h
  4172. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4173. Don't print "No files to download." message if -S is given.
  4174. * src/main.cc
  4175. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4176. Set referer and method to newly created Request object.
  4177. * src/CreateRequestCommand.cc
  4178. * src/FileEntry.cc
  4179. * src/FileEntry.h
  4180. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4181. Removed ctor of AbstractCommand which doesn't take FileEntry.
  4182. * src/AbstractCommand.cc
  4183. * src/AbstractCommand.h
  4184. * src/CreateRequestCommand.cc
  4185. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4186. Get proxy download working
  4187. * src/AbstractProxyRequestCommand.cc
  4188. * src/AbstractProxyRequestCommand.h
  4189. * src/AbstractProxyResponseCommand.cc
  4190. * src/AbstractProxyResponseCommand.h
  4191. * src/FtpInitiateConnectionCommand.cc
  4192. * src/FtpTunnelRequestCommand.cc
  4193. * src/FtpTunnelRequestCommand.h
  4194. * src/FtpTunnelResponseCommand.cc
  4195. * src/FtpTunnelResponseCommand.h
  4196. * src/HttpInitiateConnectionCommand.cc
  4197. * src/HttpProxyRequestCommand.cc
  4198. * src/HttpProxyRequestCommand.h
  4199. * src/HttpProxyResponseCommand.cc
  4200. * src/HttpProxyResponseCommand.h
  4201. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4202. Use SegmentMan::getSegment(cuid) for single file download.
  4203. * src/AbstractCommand.cc
  4204. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4205. Fixed bufSize calculation
  4206. * src/DownloadCommand.cc
  4207. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4208. Don't append "/" if base URI ends with "/".
  4209. * src/bittorrent_helper.cc
  4210. * test/url-list-multiFile.torrent
  4211. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4212. HTTP pipelining is now working. Fixed Segmention fault in
  4213. BitfieldMan's copy ctor.
  4214. * src/AbstractCommand.cc
  4215. * src/BitfieldMan.cc
  4216. * src/BitfieldMan.h
  4217. * src/DownloadCommand.cc
  4218. * src/HttpDownloadCommand.cc
  4219. * src/HttpRequest.cc
  4220. * src/SegmentMan.cc
  4221. * src/SegmentMan.h
  4222. * test/BitfieldManTest.cc
  4223. * test/SegmentManTest.cc
  4224. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4225. Removed ServerHost. Same functionality is implemented using
  4226. FileEntry's in-flight Request objects.
  4227. * src/AbstractCommand.cc
  4228. * src/BtDependency.cc
  4229. * src/CreateRequestCommand.cc
  4230. * src/FileEntry.cc
  4231. * src/FileEntry.h
  4232. * src/FtpNegotiationCommand.cc
  4233. * src/HttpResponseCommand.cc
  4234. * src/Makefile.am
  4235. * src/Metalink2RequestGroup.cc
  4236. * src/RequestGroup.cc
  4237. * src/RequestGroup.h
  4238. * src/ServerHost.cc: Removed
  4239. * src/ServerHost.h: Removed
  4240. * test/BtDependencyTest.cc
  4241. * test/FileEntryTest.cc
  4242. * test/RequestGroupTest.cc
  4243. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Rewritten PeerStat handling. In the previous implementation,
  4245. faster command tries to find slower command. In this new
  4246. implementation, slower command tries to find faster command.
  4247. PeerStat is now created in each HTTP/FTP request to get download
  4248. rate correctly. If the download range is small, the download rate
  4249. tends to small and this will occur at the later stage of download.
  4250. * src/AbstractCommand.cc
  4251. * src/DownloadCommand.cc
  4252. * src/FileEntry.cc
  4253. * src/FileEntry.h
  4254. * src/Request.cc
  4255. * src/Request.h
  4256. * src/RequestGroup.h
  4257. * src/RequestGroupMan.cc
  4258. * src/SegmentMan.cc
  4259. * src/SegmentMan.h
  4260. * test/SegmentManTest.cc
  4261. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4262. Removed _uris from RequestGroup. All functions that refer to _uris
  4263. were moved to FileEntry. Exit status code are now defined in
  4264. DownloadResultCode.h.
  4265. * src/AbstractCommand.cc
  4266. * src/AdaptiveURISelector.cc
  4267. * src/AdaptiveURISelector.h
  4268. * src/AutoSaveCommand.cc
  4269. * src/BtPostDownloadHandler.cc
  4270. * src/CheckIntegrityDispatcherCommand.cc
  4271. * src/CookieStorage.cc
  4272. * src/DHTAutoSaveCommand.cc
  4273. * src/DHTBucketRefreshCommand.cc
  4274. * src/DHTEntryPointNameResolveCommand.cc
  4275. * src/DHTInteractionCommand.cc
  4276. * src/DHTPeerAnnounceCommand.cc
  4277. * src/DHTTokenUpdateCommand.cc
  4278. * src/DlAbortEx.h
  4279. * src/DlRetryEx.h
  4280. * src/DownloadCommand.cc
  4281. * src/DownloadContext.h
  4282. * src/DownloadFailureException.h
  4283. * src/DownloadResult.h
  4284. * src/DownloadResultCode.h
  4285. * src/FeedbackURISelector.cc
  4286. * src/FeedbackURISelector.h
  4287. * src/FileEntry.cc
  4288. * src/FileEntry.h
  4289. * src/FtpNegotiationCommand.cc
  4290. * src/HttpListenCommand.cc
  4291. * src/HttpResponseCommand.cc
  4292. * src/HttpServerResponseCommand.cc
  4293. * src/HttpSkipResponseCommand.cc
  4294. * src/InOrderURISelector.cc
  4295. * src/InOrderURISelector.h
  4296. * src/Makefile.am
  4297. * src/Makefile.in
  4298. * src/Metalink2RequestGroup.cc
  4299. * src/MultiUrlRequestInfo.cc
  4300. * src/MultiUrlRequestInfo.h
  4301. * src/OptionHandlerFactory.cc
  4302. * src/PeerListenCommand.cc
  4303. * src/RecoverableException.h
  4304. * src/RequestGroup.cc
  4305. * src/RequestGroup.h
  4306. * src/RequestGroupMan.cc
  4307. * src/RequestGroupMan.h
  4308. * src/TimedHaltCommand.cc
  4309. * src/TrackerWatcherCommand.cc
  4310. * src/URIResult.cc
  4311. * src/URIResult.h
  4312. * src/URISelector.h
  4313. * src/XmlRpcMethodImpl.cc
  4314. * src/bittorrent_helper.cc
  4315. * src/bittorrent_helper.h
  4316. * src/download_helper.cc
  4317. * src/main.cc
  4318. * src/option_processing.cc
  4319. * test/BtDependencyTest.cc
  4320. * test/BtPostDownloadHandlerTest.cc
  4321. * test/CookieStorageTest.cc
  4322. * test/DefaultBtMessageDispatcherTest.cc
  4323. * test/DownloadHandlerFactoryTest.cc
  4324. * test/DownloadHelperTest.cc
  4325. * test/FeedbackURISelectorTest.cc
  4326. * test/FileEntryTest.cc
  4327. * test/InOrderURISelectorTest.cc
  4328. * test/Metalink2RequestGroupTest.cc
  4329. * test/MetalinkPostDownloadHandlerTest.cc
  4330. * test/RequestGroupManTest.cc
  4331. * test/RequestGroupTest.cc
  4332. * test/XmlRpcMethodTest.cc
  4333. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4334. Removed MockBtContext.h
  4335. * test/Makefile.am
  4336. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Removed _currentRequest from StreamCheckIntegrityEntry and
  4338. StreamFileAllocationEntry.
  4339. * src/AbstractCommand.cc
  4340. * src/HttpResponseCommand.cc
  4341. * src/RequestGroup.cc
  4342. * src/StreamCheckIntegrityEntry.cc
  4343. * src/StreamCheckIntegrityEntry.h
  4344. * src/StreamFileAllocationEntry.cc
  4345. * src/StreamFileAllocationEntry.h
  4346. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4347. Rewritten DownloadContext and removed SingleFileDownloadContext
  4348. and BtContext and its derived classes. BitTorrent specific
  4349. attributes are now set by DownloadContext::setAttribute() with key
  4350. bittorrent::BITTORRENT.
  4351. * src/AbstractBtMessage.cc
  4352. * src/AbstractBtMessage.h
  4353. * src/AbstractCommand.cc
  4354. * src/AbstractCommand.h
  4355. * src/AbstractProxyRequestCommand.cc
  4356. * src/AbstractProxyResponseCommand.cc
  4357. * src/ActivePeerConnectionCommand.cc
  4358. * src/ActivePeerConnectionCommand.h
  4359. * src/AnnounceList.cc
  4360. * src/BtCheckIntegrityEntry.cc
  4361. * src/BtConstants.h
  4362. * src/BtContext.h: Removed
  4363. * src/BtDependency.cc
  4364. * src/BtExtendedMessage.cc
  4365. * src/BtPieceMessage.cc
  4366. * src/BtPieceMessage.h
  4367. * src/BtPostDownloadHandler.cc
  4368. * src/BtRegistry.cc
  4369. * src/BtRegistry.h
  4370. * src/BtSetup.cc
  4371. * src/CheckIntegrityCommand.cc
  4372. * src/CheckIntegrityEntry.cc
  4373. * src/ChecksumCheckIntegrityEntry.cc
  4374. * src/ConsoleStatCalc.cc
  4375. * src/ContentTypeRequestGroupCriteria.cc
  4376. * src/DHTGetPeersCommand.cc
  4377. * src/DHTGetPeersCommand.h
  4378. * src/DHTPeerLookupTask.cc
  4379. * src/DHTPeerLookupTask.h
  4380. * src/DHTTaskFactory.h
  4381. * src/DHTTaskFactoryImpl.cc
  4382. * src/DHTTaskFactoryImpl.h
  4383. * src/DefaultBtAnnounce.cc
  4384. * src/DefaultBtAnnounce.h
  4385. * src/DefaultBtContext.cc: Removed
  4386. * src/DefaultBtContext.h: Removed
  4387. * src/DefaultBtInteractive.cc
  4388. * src/DefaultBtInteractive.h
  4389. * src/DefaultBtMessageDispatcher.cc
  4390. * src/DefaultBtMessageDispatcher.h
  4391. * src/DefaultBtMessageFactory.cc
  4392. * src/DefaultBtMessageFactory.h
  4393. * src/DefaultBtMessageReceiver.cc
  4394. * src/DefaultBtMessageReceiver.h
  4395. * src/DefaultBtProgressInfoFile.cc
  4396. * src/DefaultBtRequestFactory.cc
  4397. * src/DefaultBtRequestFactory.h
  4398. * src/DefaultExtensionMessageFactory.cc
  4399. * src/DefaultExtensionMessageFactory.h
  4400. * src/DefaultPeerStorage.cc
  4401. * src/DefaultPeerStorage.h
  4402. * src/DefaultPieceStorage.cc
  4403. * src/DefaultSegmentManFactory.cc
  4404. * src/DiskAdaptor.cc
  4405. * src/DiskAdaptor.h
  4406. * src/DownloadContext.cc
  4407. * src/DownloadContext.h
  4408. * src/DownloadEngine.cc
  4409. * src/DownloadEngineFactory.cc
  4410. * src/DownloadHandler.cc
  4411. * src/DownloadResult.h
  4412. * src/FileAllocationCommand.cc
  4413. * src/FileAllocationDispatcherCommand.cc
  4414. * src/FileAllocationEntry.cc
  4415. * src/FileEntry.h
  4416. * src/FillRequestGroupCommand.cc
  4417. * src/FtpDownloadCommand.cc
  4418. * src/FtpFinishDownloadCommand.cc
  4419. * src/FtpInitiateConnectionCommand.cc
  4420. * src/FtpNegotiationCommand.cc
  4421. * src/FtpTunnelRequestCommand.cc
  4422. * src/FtpTunnelResponseCommand.cc
  4423. * src/HandshakeExtensionMessage.cc
  4424. * src/HandshakeExtensionMessage.h
  4425. * src/HaveEraseCommand.cc
  4426. * src/HttpDownloadCommand.cc
  4427. * src/HttpInitiateConnectionCommand.cc
  4428. * src/HttpProxyRequestCommand.cc
  4429. * src/HttpProxyResponseCommand.cc
  4430. * src/HttpRequest.cc
  4431. * src/HttpRequest.h
  4432. * src/HttpRequestCommand.cc
  4433. * src/HttpResponseCommand.cc
  4434. * src/HttpServerBodyCommand.cc
  4435. * src/HttpServerCommand.cc
  4436. * src/HttpSkipResponseCommand.cc
  4437. * src/InitiateConnectionCommandFactory.cc
  4438. * src/InitiatorMSEHandshakeCommand.cc
  4439. * src/InitiatorMSEHandshakeCommand.h
  4440. * src/IteratableChecksumValidator.cc
  4441. * src/IteratableChecksumValidator.h
  4442. * src/IteratableChunkChecksumValidator.cc
  4443. * src/MSEHandshake.cc
  4444. * src/MSEHandshake.h
  4445. * src/Makefile.am
  4446. * src/Makefile.in
  4447. * src/Metalink2RequestGroup.cc
  4448. * src/MetalinkPostDownloadHandler.cc
  4449. * src/MultiDiskAdaptor.cc
  4450. * src/MultiDiskAdaptor.h
  4451. * src/MultiFileAllocationIterator.cc
  4452. * src/MultiUrlRequestInfo.cc
  4453. * src/PeerChokeCommand.cc
  4454. * src/PeerChokeCommand.h
  4455. * src/PeerInitiateConnectionCommand.cc
  4456. * src/PeerInitiateConnectionCommand.h
  4457. * src/PeerInteractionCommand.cc
  4458. * src/PeerInteractionCommand.h
  4459. * src/PeerReceiveHandshakeCommand.cc
  4460. * src/PieceHashCheckIntegrityEntry.cc
  4461. * src/RealtimeCommand.cc
  4462. * src/ReceiverMSEHandshakeCommand.cc
  4463. * src/RequestGroup.cc
  4464. * src/RequestGroup.h
  4465. * src/RequestGroupEntry.cc
  4466. * src/RequestGroupMan.cc
  4467. * src/SeedCheckCommand.cc
  4468. * src/SeedCheckCommand.h
  4469. * src/SegmentMan.cc
  4470. * src/ShareRatioSeedCriteria.h
  4471. * src/SingleFileDownloadContext.cc: Removed
  4472. * src/SingleFileDownloadContext.h: Removed
  4473. * src/SleepCommand.cc
  4474. * src/StreamCheckIntegrityEntry.cc
  4475. * src/TrackerWatcherCommand.cc
  4476. * src/TrackerWatcherCommand.h
  4477. * src/UnknownLengthPieceStorage.cc
  4478. * src/Util.cc
  4479. * src/Util.h
  4480. * src/XmlRpcMethodImpl.cc
  4481. * src/bittorrent_helper.cc
  4482. * src/bittorrent_helper.h
  4483. * src/download_helper.cc
  4484. * src/main.cc
  4485. * src/option_processing.cc
  4486. * test/BitfieldManTest.cc
  4487. * test/BittorrentHelperTest.cc
  4488. * test/BtCancelMessageTest.cc
  4489. * test/BtChokeMessageTest.cc
  4490. * test/BtDependencyTest.cc
  4491. * test/BtPieceMessageTest.cc
  4492. * test/BtPostDownloadHandlerTest.cc
  4493. * test/BtRegistryTest.cc
  4494. * test/BtRejectMessageTest.cc
  4495. * test/BtRequestMessageTest.cc
  4496. * test/DHTPeerAnnounceStorageTest.cc
  4497. * test/DefaultBtAnnounceTest.cc
  4498. * test/DefaultBtContextTest.cc: Removed
  4499. * test/DefaultBtMessageDispatcherTest.cc
  4500. * test/DefaultBtMessageFactoryTest.cc
  4501. * test/DefaultBtProgressInfoFileTest.cc
  4502. * test/DefaultBtRequestFactoryTest.cc
  4503. * test/DefaultExtensionMessageFactoryTest.cc
  4504. * test/DefaultPeerStorageTest.cc
  4505. * test/DefaultPieceStorageTest.cc
  4506. * test/DirectDiskAdaptorTest.cc
  4507. * test/DownloadContextTest.cc
  4508. * test/DownloadHandlerFactoryTest.cc
  4509. * test/DownloadHelperTest.cc
  4510. * test/HandshakeExtensionMessageTest.cc
  4511. * test/HttpRequestTest.cc
  4512. * test/HttpResponseTest.cc
  4513. * test/IteratableChecksumValidatorTest.cc
  4514. * test/IteratableChunkChecksumValidatorTest.cc
  4515. * test/MSEHandshakeTest.cc
  4516. * test/Makefile.am
  4517. * test/Makefile.in
  4518. * test/Metalink2RequestGroupTest.cc
  4519. * test/MetalinkPostDownloadHandlerTest.cc
  4520. * test/MockBtContext.h: Removed
  4521. * test/MockDHTTaskFactory.h
  4522. * test/MockDownloadContext.h: Removed
  4523. * test/MockPieceStorage.h
  4524. * test/MultiDiskAdaptorTest.cc
  4525. * test/MultiFileAllocationIteratorTest.cc
  4526. * test/RequestGroupManTest.cc
  4527. * test/RequestGroupTest.cc
  4528. * test/SegmentManTest.cc
  4529. * test/ShareRatioSeedCriteriaTest.cc
  4530. * test/SingleFileDownloadContextTest.cc: Removed
  4531. * test/UtilTest.cc
  4532. * test/XmlRpcMethodTest.cc
  4533. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4534. Added experimental support of WEB-Seeding for multi-file torrent.
  4535. Due to fundamental changes in file handling in HTTP/FTP code, many
  4536. functions are not working: PeerStat, ServerHost, proxy..etc
  4537. * src/AbstractCommand.cc
  4538. * src/AbstractCommand.h
  4539. * src/BitfieldMan.cc
  4540. * src/BitfieldMan.h
  4541. * src/CreateRequestCommand.cc
  4542. * src/CreateRequestCommand.h
  4543. * src/DefaultPieceStorage.cc
  4544. * src/DefaultPieceStorage.h
  4545. * src/DownloadCommand.cc
  4546. * src/DownloadCommand.h
  4547. * src/DownloadContext.cc
  4548. * src/DownloadContext.h
  4549. * src/FileEntry.cc
  4550. * src/FileEntry.h
  4551. * src/FtpDownloadCommand.cc
  4552. * src/FtpDownloadCommand.h
  4553. * src/FtpFinishDownloadCommand.cc
  4554. * src/FtpFinishDownloadCommand.h
  4555. * src/FtpInitiateConnectionCommand.cc
  4556. * src/FtpInitiateConnectionCommand.h
  4557. * src/FtpNegotiationCommand.cc
  4558. * src/FtpNegotiationCommand.h
  4559. * src/FtpTunnelResponseCommand.cc
  4560. * src/HttpDownloadCommand.cc
  4561. * src/HttpDownloadCommand.h
  4562. * src/HttpInitiateConnectionCommand.cc
  4563. * src/HttpInitiateConnectionCommand.h
  4564. * src/HttpProxyResponseCommand.cc
  4565. * src/HttpRequest.cc
  4566. * src/HttpRequest.h
  4567. * src/HttpRequestCommand.cc
  4568. * src/HttpRequestCommand.h
  4569. * src/HttpResponseCommand.cc
  4570. * src/HttpResponseCommand.h
  4571. * src/HttpSkipResponseCommand.cc
  4572. * src/HttpSkipResponseCommand.h
  4573. * src/InitiateConnectionCommand.cc
  4574. * src/InitiateConnectionCommand.h
  4575. * src/InitiateConnectionCommandFactory.cc
  4576. * src/InitiateConnectionCommandFactory.h
  4577. * src/Makefile.am
  4578. * src/PieceStorage.h
  4579. * src/RequestGroup.cc
  4580. * src/RequestGroup.h
  4581. * src/RequestGroupMan.cc
  4582. * src/SegmentMan.cc
  4583. * src/SegmentMan.h
  4584. * src/SingleFileDownloadContext.h
  4585. * src/StreamFileAllocationEntry.cc
  4586. * src/TrackerWatcherCommand.cc
  4587. * src/UnknownLengthPieceStorage.cc
  4588. * src/UnknownLengthPieceStorage.h
  4589. * src/array_fun.h
  4590. * src/bitfield.h
  4591. * src/download_helper.cc
  4592. * test/DownloadContextTest.cc
  4593. * test/Makefile.am
  4594. * test/MockDownloadContext.h
  4595. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4596. Added tellWaiting XML-RPC method.
  4597. * src/SingleFileDownloadContext.cc
  4598. * src/XmlRpcMethodFactory.cc
  4599. * src/XmlRpcMethodImpl.cc
  4600. * src/XmlRpcMethodImpl.h
  4601. * test/XmlRpcMethodTest.cc
  4602. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4603. Updated CookieStorageTest
  4604. * test/CookieStorageTest.cc
  4605. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4606. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  4607. handle excepion inside these functions.
  4608. * src/LibgnutlsTLSContext.cc
  4609. * src/LibgnutlsTLSContext.h
  4610. * src/LibsslTLSContext.cc
  4611. * src/LibsslTLSContext.h
  4612. * src/MultiUrlRequestInfo.cc
  4613. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4614. Added comment
  4615. * src/RequestGroup.cc
  4616. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4617. In CookieStorage::load() and saveNsFormat(), handle exception
  4618. inside the functions. When saving Cookies, first write temporary
  4619. file and after successful writes, then renames it to final
  4620. destination.
  4621. * src/CookieStorage.cc
  4622. * src/CookieStorage.h
  4623. * src/MultiUrlRequestInfo.cc
  4624. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4625. The default value of --dir option is the absolute path to the
  4626. current directory. If getcwd() is failed, then it is ".", which is
  4627. the same value with old implementation. This change is necessary
  4628. because after daemon() call, the current working directory is
  4629. changed to /.
  4630. * src/File.cc
  4631. * src/File.h
  4632. * src/OptionHandlerFactory.cc
  4633. * src/option_processing.cc
  4634. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4635. Call daemon() with arguments(0,0), which means daemon() changes
  4636. current working directory to / and redirects stdin, stdout and
  4637. stderr to /dev/null.
  4638. * src/option_processing.cc
  4639. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4640. Small performance optimizations.
  4641. * src/RequestGroupMan.cc
  4642. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4643. Added _xmlRpc member variable to RequestGroupMan to reduce the
  4644. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  4645. * src/RequestGroupMan.cc
  4646. * src/RequestGroupMan.h
  4647. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4648. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  4649. setNoWiat(true) if newly created command calls
  4650. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  4651. * src/HttpListenCommand.cc
  4652. * src/HttpServerBodyCommand.cc
  4653. * src/HttpServerCommand.cc
  4654. * src/HttpServerResponseCommand.cc
  4655. * src/InitiateConnectionCommand.cc
  4656. * src/RequestGroup.cc
  4657. * src/StreamFileAllocationEntry.cc
  4658. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4659. Removed include vector
  4660. * src/BtRegistry.h
  4661. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4662. Rewritten BtRegistry
  4663. * src/BtRegistry.cc
  4664. * src/BtRegistry.h
  4665. * src/BtSetup.cc
  4666. * src/ConsoleStatCalc.cc
  4667. * src/PeerInteractionCommand.cc
  4668. * src/PeerReceiveHandshakeCommand.cc
  4669. * src/ReceiverMSEHandshakeCommand.cc
  4670. * src/RequestGroup.cc
  4671. * src/XmlRpcMethodImpl.cc
  4672. * test/BtRegistryTest.cc
  4673. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4674. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  4675. * src/DefaultBtProgressInfoFile.cc
  4676. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4677. Throw an exception if position is less than 0.
  4678. * src/XmlRpcMethodImpl.cc
  4679. * test/XmlRpcMethodTest.cc
  4680. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4681. Use writeFilePath() in ConsoleStatCalc.cc
  4682. * src/ConsoleStatCalc.cc
  4683. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4684. Receive the return value as const reference from
  4685. DownloadContext::getFileEntries().
  4686. * src/DefaultPieceStorage.cc
  4687. * src/RequestGroupMan.cc
  4688. * src/XmlRpcMethodImpl.cc
  4689. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4690. DownloadContext now has _fileEntries so that
  4691. DownloadContext::getFileEntries() can returns its const reference.
  4692. * src/DefaultBtContext.cc
  4693. * src/DefaultBtContext.h
  4694. * src/DownloadContext.cc
  4695. * src/DownloadContext.h
  4696. * src/SingleFileDownloadContext.cc
  4697. * src/SingleFileDownloadContext.h
  4698. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4699. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  4700. writeFilePath() function template from RequestGroupMan.cc to
  4701. FileEntry.h
  4702. * src/FileEntry.h
  4703. * src/RequestGroupMan.cc
  4704. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4705. Documented 'position' parameter is starting from 0 in man page.
  4706. * doc/aria2c.1.txt
  4707. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4708. Updated doc.
  4709. * src/MSEHandshake.cc
  4710. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4711. Removed _acceptFeatures and its accessor functions from
  4712. RequestGroup since they are not used practically.
  4713. * src/HttpRequestCommand.cc
  4714. * src/RequestGroup.cc
  4715. * src/RequestGroup.h
  4716. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4717. Removed member _maxTries from RequestGroup class to avoid
  4718. duplicate option value. Those classes who refer this variable
  4719. should use option value of PREF_MAX_TRIES directly.
  4720. * src/AbstractCommand.cc
  4721. * src/RequestGroup.cc
  4722. * src/RequestGroup.h
  4723. * src/TrackerWatcherCommand.cc
  4724. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4725. * Release 1.4.1
  4726. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4727. Fixed compiler warnings on netbsd
  4728. * src/DHTConnectionImpl.cc
  4729. * src/PeerListenCommand.cc
  4730. * src/PeerSessionResource.cc
  4731. * src/SegmentMan.cc
  4732. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4733. Updated Ukrainian translation. Thanks to all translators.
  4734. * po/uk.po
  4735. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4736. Bump up version number to 1.4.1.
  4737. * configure.ac
  4738. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4739. Added unit tests for strjoin, strconcat and strappend.
  4740. * test/a2functionalTest.cc
  4741. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4742. Rewritten strconcat and strappend using operator+ instead of
  4743. append().
  4744. * src/a2functional.h
  4745. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4746. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  4747. is enabled.
  4748. * src/Makefile.am
  4749. * test/Makefile.am
  4750. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4751. Added countSeeder() function which counts seeder in the given
  4752. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  4753. * src/ConsoleStatCalc.cc
  4754. * src/Peer.h
  4755. * src/XmlRpcMethodImpl.cc
  4756. * test/PeerTest.cc
  4757. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4758. Documented missing seeder in getPeers xml-rpc method.
  4759. Documented uploadLength and numSeeders.
  4760. * doc/aria2c.1.txt
  4761. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4762. Added uploadLength and numSeeders to the response of tellStatus
  4763. xml-rpc method. Assert that PeerStorage instance is not null
  4764. instead of checking if statement. It should be non-null in this
  4765. context.
  4766. * src/XmlRpcMethodImpl.cc
  4767. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4768. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  4769. * src/XmlRpcResponse.cc
  4770. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4771. Avoid intermediate object during string concatenation.
  4772. * src/HttpRequest.cc
  4773. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4774. Added strjoin function template. Use it in pathJoin()
  4775. * src/Util.h
  4776. * src/a2functional.h
  4777. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4778. Avoid intermediate object during string concatenation. Replaced
  4779. post-increment unary operator with pre-increment one in for loop.
  4780. * src/AdaptiveURISelector.cc
  4781. * src/AnnounceList.cc
  4782. * src/AuthConfig.h
  4783. * src/BtBitfieldMessage.cc
  4784. * src/BtExtendedMessage.cc
  4785. * src/BtHandshakeMessage.cc
  4786. * src/BtPieceMessage.cc
  4787. * src/BtPortMessage.cc
  4788. * src/Cookie.cc
  4789. * src/DHTAnnouncePeerMessage.cc
  4790. * src/DHTAutoSaveCommand.cc
  4791. * src/DHTGetPeersReplyMessage.cc
  4792. * src/DHTNode.cc
  4793. * src/DHTQueryMessage.cc
  4794. * src/DHTResponseMessage.cc
  4795. * src/DHTUnknownMessage.cc
  4796. * src/DefaultBtAnnounce.cc
  4797. * src/DefaultBtContext.cc
  4798. * src/DefaultBtInteractive.cc
  4799. * src/DefaultBtProgressInfoFile.cc
  4800. * src/DefaultPeerStorage.cc
  4801. * src/DownloadEngine.cc
  4802. * src/FeatureConfig.cc
  4803. * src/File.cc
  4804. * src/FtpConnection.cc
  4805. * src/FtpNegotiationCommand.cc
  4806. * src/HandshakeExtensionMessage.cc
  4807. * src/HttpConnection.cc
  4808. * src/HttpRequest.cc
  4809. * src/HttpResponseCommand.cc
  4810. * src/HttpServer.cc
  4811. * src/IndexBtMessage.cc
  4812. * src/Metalink2RequestGroup.cc
  4813. * src/OptionHandlerImpl.h
  4814. * src/PStringBuildVisitor.cc
  4815. * src/Peer.cc
  4816. * src/PeerListenCommand.cc
  4817. * src/Piece.cc
  4818. * src/RangeBtMessage.cc
  4819. * src/Request.cc
  4820. * src/Request.h
  4821. * src/RequestGroup.cc
  4822. * src/RequestGroupMan.cc
  4823. * src/ServerStat.cc
  4824. * src/ServerStatMan.cc
  4825. * src/UTPexExtensionMessage.cc
  4826. * src/Util.cc
  4827. * src/a2functional.h
  4828. * src/download_helper.cc
  4829. * src/messageDigest.cc
  4830. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4831. Unchoke a peer randomly at first and second choke round in seed
  4832. state.
  4833. * src/BtSeederStateChoke.cc
  4834. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  4835. Added (sock_t) to quiet compiler warnings in MinGW
  4836. * src/SocketCore.cc
  4837. * src/SocketCore.h
  4838. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4839. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  4840. * src/EpollEventPoll.h
  4841. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  4842. Added fork() emulation using CreateProcess() in MinGW
  4843. * src/RequestGroupMan.cc
  4844. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4845. * Release 1.4.0
  4846. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4847. Added utf8.torrent to EXTRA_DIST
  4848. * test/Makefile.am
  4849. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4850. Fixed docs of aria2.addMetalink xml-rpc method.
  4851. * doc/aria2c.1.txt
  4852. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4853. Added Slovak translation. Updated Ukrainian and Brazilian
  4854. Portuguese translation. Thanks to all translators.
  4855. * po/sk.po
  4856. * po/uk.po
  4857. * po/pt_BR.po
  4858. * po/LINGUAS
  4859. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4860. Added test case for XmlRpcProcessor to fail to parse malformed
  4861. document.
  4862. * test/XmlRpcRequestProcessorTest.cc
  4863. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4864. Removed *.gmo files in po because they are generated on 'make
  4865. dist'
  4866. * po/*.gmo
  4867. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4868. Documented max-concurrent-downloads of changeGlobalOption method
  4869. in man page.
  4870. * doc/aria2c.1.txt
  4871. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4872. Added max-concurrent-downloads option to changeGlobalOption
  4873. xml-rpc method. Rewritten loop conditional in
  4874. RequestGroupMan::fillRequestGroupFromReserver().
  4875. * src/RequestGroupMan.cc
  4876. * src/RequestGroupMan.h
  4877. * src/XmlRpcMethod.cc
  4878. * src/XmlRpcMethodImpl.cc
  4879. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4880. Documented position parameter in man page.
  4881. * doc/aria2c.1.txt
  4882. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4883. Added 'position' parameter to addUri, addTorrent and addMetalink
  4884. xml-rpc method.
  4885. * src/RequestGroupMan.cc
  4886. * src/RequestGroupMan.h
  4887. * src/XmlRpcMethodImpl.cc
  4888. * test/XmlRpcMethodTest.cc
  4889. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4890. Removed Peer.cc from compile source list when --disable-bittorrent
  4891. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4892. takes Peer.
  4893. * src/DefaultPieceStorage.cc
  4894. * src/DefaultPieceStorage.h
  4895. * src/Makefile.am
  4896. * src/PieceStorage.h
  4897. * src/UnknownLengthPieceStorage.cc
  4898. * src/UnknownLengthPieceStorage.h
  4899. * test/MockPieceStorage.h
  4900. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4901. Implemented getter methods in header files to give them more
  4902. chance of optimization.
  4903. Return const reference for SharadHandle if possible.
  4904. * src/AbstractAuthResolver.cc
  4905. * src/AbstractAuthResolver.h
  4906. * src/AbstractBtMessage.cc
  4907. * src/AbstractBtMessage.h
  4908. * src/AbstractSingleDiskAdaptor.cc
  4909. * src/AbstractSingleDiskAdaptor.h
  4910. * src/AsyncNameResolver.cc
  4911. * src/AsyncNameResolver.h
  4912. * src/BNode.cc
  4913. * src/BNode.h
  4914. * src/BitfieldMan.cc
  4915. * src/BitfieldMan.h
  4916. * src/BtAbortOutstandingRequestEvent.h
  4917. * src/BtExtendedMessage.cc
  4918. * src/BtExtendedMessage.h
  4919. * src/BtSeederStateChoke.cc
  4920. * src/BtSeederStateChoke.h
  4921. * src/Cookie.cc
  4922. * src/Cookie.h
  4923. * src/DHTBucket.cc
  4924. * src/DHTBucket.h
  4925. * src/DHTConnectionImpl.cc
  4926. * src/DHTConnectionImpl.h
  4927. * src/DHTFindNodeReplyMessage.cc
  4928. * src/DHTFindNodeReplyMessage.h
  4929. * src/DHTGetPeersReplyMessage.cc
  4930. * src/DHTGetPeersReplyMessage.h
  4931. * src/DHTInteractionCommand.cc
  4932. * src/DHTMessage.cc
  4933. * src/DHTMessage.h
  4934. * src/DHTMessageDispatcherImpl.cc
  4935. * src/DHTMessageEntry.cc
  4936. * src/DHTMessageReceiver.cc
  4937. * src/DHTMessageReceiver.h
  4938. * src/DHTMessageTrackerEntry.cc
  4939. * src/DHTMessageTrackerEntry.h
  4940. * src/DHTPeerAnnounceEntry.cc
  4941. * src/DHTPeerAnnounceEntry.h
  4942. * src/DHTPeerLookupTask.cc
  4943. * src/DHTPeerLookupTask.h
  4944. * src/DHTRoutingTableDeserializer.cc
  4945. * src/DHTRoutingTableDeserializer.h
  4946. * src/DefaultBtAnnounce.cc
  4947. * src/DefaultBtAnnounce.h
  4948. * src/DefaultBtMessageDispatcher.cc
  4949. * src/DefaultBtMessageDispatcher.h
  4950. * src/DefaultBtRequestFactory.cc
  4951. * src/DefaultBtRequestFactory.h
  4952. * src/DiskAdaptor.cc
  4953. * src/DiskAdaptor.h
  4954. * src/DownloadContext.cc
  4955. * src/DownloadContext.h
  4956. * src/DownloadEngine.cc
  4957. * src/DownloadEngine.h
  4958. * src/EpollEventPoll.cc
  4959. * src/EpollEventPoll.h
  4960. * src/FtpConnection.cc
  4961. * src/FtpConnection.h
  4962. * src/HttpConnection.cc
  4963. * src/HttpConnection.h
  4964. * src/HttpHeader.cc
  4965. * src/HttpHeader.h
  4966. * src/HttpRequest.cc
  4967. * src/HttpRequest.h
  4968. * src/HttpResponse.cc
  4969. * src/HttpResponse.h
  4970. * src/LibsslTLSContext.cc
  4971. * src/LibsslTLSContext.h
  4972. * src/MSEHandshake.cc
  4973. * src/MSEHandshake.h
  4974. * src/MetalinkEntry.cc
  4975. * src/MetalinkEntry.h
  4976. * src/MetalinkParserController.cc
  4977. * src/MetalinkParserController.h
  4978. * src/MetalinkParserStateMachine.cc
  4979. * src/MetalinkParserStateMachine.h
  4980. * src/MultiDiskAdaptor.cc
  4981. * src/MultiDiskAdaptor.h
  4982. * src/NetrcAuthResolver.cc
  4983. * src/NetrcAuthResolver.h
  4984. * src/Peer.cc
  4985. * src/Peer.h
  4986. * src/PeerSessionResource.cc
  4987. * src/PeerSessionResource.h
  4988. * src/Piece.cc
  4989. * src/Piece.h
  4990. * src/PieceStatMan.cc
  4991. * src/PieceStatMan.h
  4992. * src/Request.cc
  4993. * src/Request.h
  4994. * src/RequestGroup.cc
  4995. * src/RequestGroup.h
  4996. * src/RequestGroupMan.cc
  4997. * src/RequestGroupMan.h
  4998. * src/RequestSlot.cc
  4999. * src/RequestSlot.h
  5000. * src/SegmentMan.cc
  5001. * src/SegmentMan.h
  5002. * src/SelectEventPoll.cc
  5003. * src/SelectEventPoll.h
  5004. * src/ServerStat.cc
  5005. * src/ServerStat.h
  5006. * src/Signature.cc
  5007. * src/Signature.h
  5008. * src/URIResult.cc
  5009. * src/URIResult.h
  5010. * src/UTPexExtensionMessage.cc
  5011. * src/UTPexExtensionMessage.h
  5012. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5013. Fixed compile error without BitTorrent and Metalink support.
  5014. * src/XmlRpcMethod.cc
  5015. * src/XmlRpcMethodFactory.cc
  5016. * src/XmlRpcMethodImpl.cc
  5017. * src/XmlRpcMethodImpl.h
  5018. * test/XmlRpcMethodTest.cc
  5019. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5020. Rewritten the help message for --allow-overwrite option.
  5021. * doc/aria2c.1.txt
  5022. * src/usage_text.h
  5023. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5024. Fixed typo
  5025. * doc/aria2c.1.txt
  5026. * src/usage_text.h
  5027. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5028. Updated README for 1.4.0 release. Use new table syntax of
  5029. asciidoc.
  5030. * README
  5031. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. Documented --xml-rpc-max-request-size option in man page.
  5033. * doc/aria2c.1.txt
  5034. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5035. Moved C_* constants from BtContext to DefaultBtContext.
  5036. * src/BtContext.cc: Removed.
  5037. * src/BtContext.h
  5038. * src/DefaultBtContext.cc
  5039. * src/DefaultBtContext.h
  5040. * src/Makefile.am
  5041. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5042. Use name.utf-8 and path.utf-8 key in higher priority than name and
  5043. path key respectively when persing .torrent file.
  5044. * src/BtContext.cc
  5045. * src/BtContext.h
  5046. * src/DefaultBtContext.cc
  5047. * test/DefaultBtContextTest.cc
  5048. * test/utf8.torrent
  5049. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5050. Added --xml-rpc-max-request-size option to limit the size of
  5051. XML-RPC request.
  5052. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5053. Documented XML-RPC API in man page.
  5054. * doc/aria2c.1.txt
  5055. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  5057. will break strict-aliasing rules
  5058. * src/PeerConnection.cc
  5059. * test/DHTRoutingTableSerializerTest.cc
  5060. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5061. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  5062. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  5063. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  5064. PKG_CHECK_MODULES macro uses latter name.
  5065. * m4/sqlite3.m4
  5066. * src/Makefile.am
  5067. * test/Makefile.am
  5068. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5069. Fixed typo
  5070. * configure.ac
  5071. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5072. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  5073. presence of libgnutls using pkg-config first. If it fails, fall
  5074. back to old macro libgnutls.m4.
  5075. * configure.ac
  5076. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5077. Use s itself instead of !s.bad()
  5078. * src/CookieStorage.cc
  5079. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5080. Documented --on-download-* option and --save-cookies option in man
  5081. page.
  5082. * doc/aria2c.1.txt
  5083. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5084. Set possible values for --load-cookie option to "/path/to/file".
  5085. * src/OptionHandlerFactory.cc
  5086. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5087. Added --save-cookies option.
  5088. * src/Cookie.cc
  5089. * src/Cookie.h
  5090. * src/CookieStorage.cc
  5091. * src/CookieStorage.h
  5092. * src/MultiUrlRequestInfo.cc
  5093. * src/OptionHandlerFactory.cc
  5094. * src/prefs.cc
  5095. * src/prefs.h
  5096. * src/usage_text.h
  5097. * test/CookieStorageTest.cc
  5098. * test/CookieTest.cc
  5099. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5100. Removed tellAll XML-RPC command because its reponse tends to be
  5101. big if stopped/waiting downloads pile up.
  5102. * src/XmlRpcMethodFactory.cc
  5103. * src/XmlRpcMethodImpl.cc
  5104. * src/XmlRpcMethodImpl.h
  5105. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5106. Added the ability to execute command when download starts and
  5107. stops. You can also specify command for particular cases such as
  5108. complete/error download. Added --on-download-start,
  5109. --on-download-stop, --on-download-complete and --on-download-error
  5110. option.
  5111. * src/OptionHandlerFactory.cc
  5112. * src/RequestGroupMan.cc
  5113. * src/prefs.cc
  5114. * src/prefs.h
  5115. * src/usage_text.h
  5116. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5117. Fixed test error
  5118. * test/BencodeTest.cc
  5119. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5120. Added unit tests.
  5121. * test/XmlRpcMethodTest.cc
  5122. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5123. Made exception message more verbose.
  5124. * src/bencode.cc
  5125. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5126. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  5127. space in console readout. Also they are now shown in MiB/s if
  5128. speed > 1024KiB/s.
  5129. * src/ConsoleStatCalc.cc
  5130. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5131. Added SEED to console output, which represents the number of
  5132. seeders currently the client is connecting to.
  5133. * src/ConsoleStatCalc.cc
  5134. * src/ConsoleStatCalc.h
  5135. * src/DownloadEngine.cc
  5136. * src/NullStatCalc.h
  5137. * src/StatCalc.h
  5138. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5139. Added source filename(__FILE__) and line number(__LINE__) to
  5140. exception message.
  5141. * src/AbstractCommand.cc
  5142. * src/AbstractDiskWriter.cc
  5143. * src/AbstractProxyResponseCommand.cc
  5144. * src/BDE.h
  5145. * src/BtAllowedFastMessage.cc
  5146. * src/BtHandshakeMessageValidator.h
  5147. * src/BtHaveAllMessage.cc
  5148. * src/BtHaveNoneMessage.cc
  5149. * src/BtPieceMessage.cc
  5150. * src/BtRejectMessage.cc
  5151. * src/ChunkedDecoder.cc
  5152. * src/CookieStorage.cc
  5153. * src/DHTAnnouncePeerMessage.cc
  5154. * src/DHTEntryPointNameResolveCommand.cc
  5155. * src/DHTMessageFactoryImpl.cc
  5156. * src/DHTMessageTracker.cc
  5157. * src/DHTRoutingTableDeserializer.cc
  5158. * src/DHTRoutingTableSerializer.cc
  5159. * src/DHTSetup.cc
  5160. * src/DHTTokenTracker.cc
  5161. * src/DefaultBtAnnounce.cc
  5162. * src/DefaultBtContext.cc
  5163. * src/DefaultBtInteractive.cc
  5164. * src/DefaultBtMessageFactory.cc
  5165. * src/DefaultBtProgressInfoFile.cc
  5166. * src/DefaultExtensionMessageFactory.cc
  5167. * src/DlAbortEx.h
  5168. * src/DlRetryEx.h
  5169. * src/DownloadCommand.cc
  5170. * src/DownloadEngineFactory.cc
  5171. * src/DownloadFailureException.h
  5172. * src/Exception.cc
  5173. * src/Exception.h
  5174. * src/ExpatMetalinkProcessor.cc
  5175. * src/ExpatXmlRpcRequestProcessor.cc
  5176. * src/FallocFileAllocationIterator.cc
  5177. * src/FatalException.h
  5178. * src/FtpConnection.cc
  5179. * src/FtpFinishDownloadCommand.cc
  5180. * src/FtpInitiateConnectionCommand.cc
  5181. * src/FtpNegotiationCommand.cc
  5182. * src/GZipDecoder.cc
  5183. * src/HandshakeExtensionMessage.cc
  5184. * src/HttpConnection.cc
  5185. * src/HttpHeaderProcessor.cc
  5186. * src/HttpInitiateConnectionCommand.cc
  5187. * src/HttpResponse.cc
  5188. * src/HttpResponseCommand.cc
  5189. * src/HttpServer.cc
  5190. * src/HttpSkipResponseCommand.cc
  5191. * src/InitiateConnectionCommandFactory.cc
  5192. * src/IteratableChunkChecksumValidator.cc
  5193. * src/LibgcryptARC4Context.h
  5194. * src/LibgcryptARC4Decryptor.h
  5195. * src/LibgcryptARC4Encryptor.h
  5196. * src/LibgcryptDHKeyExchange.h
  5197. * src/LibgnutlsTLSContext.cc
  5198. * src/LibsslARC4Context.h
  5199. * src/LibsslARC4Decryptor.h
  5200. * src/LibsslARC4Encryptor.h
  5201. * src/LibsslDHKeyExchange.h
  5202. * src/LibsslTLSContext.cc
  5203. * src/MSEHandshake.cc
  5204. * src/MessageDigestHelper.cc
  5205. * src/MetalinkHelper.cc
  5206. * src/MultiDiskAdaptor.cc
  5207. * src/NameMatchOptionHandler.h
  5208. * src/NameResolver.cc
  5209. * src/Netrc.cc
  5210. * src/NsCookieParser.cc
  5211. * src/OptionHandlerException.cc
  5212. * src/OptionHandlerException.h
  5213. * src/OptionHandlerImpl.h
  5214. * src/OptionParser.cc
  5215. * src/ParameterizedStringParser.cc
  5216. * src/PeerAbstractCommand.cc
  5217. * src/PeerConnection.cc
  5218. * src/PeerMessageUtil.cc
  5219. * src/PeerReceiveHandshakeCommand.cc
  5220. * src/Platform.cc
  5221. * src/ReceiverMSEHandshakeCommand.cc
  5222. * src/RecoverableException.h
  5223. * src/RequestGroup.cc
  5224. * src/SimpleLogger.cc
  5225. * src/SocketCore.cc
  5226. * src/Sqlite3MozCookieParser.cc
  5227. * src/UTPexExtensionMessage.cc
  5228. * src/Util.cc
  5229. * src/XML2SAXMetalinkProcessor.cc
  5230. * src/Xml2XmlRpcRequestProcessor.cc
  5231. * src/XmlRpcMethodImpl.cc
  5232. * src/bencode.cc
  5233. * src/download_helper.cc
  5234. * src/messageDigest.h
  5235. * test/ExceptionTest.cc
  5236. * test/TestUtil.cc
  5237. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5238. Bump up version number to 1.4.0
  5239. * configure.ac
  5240. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5241. Added 2files.metalink to EXTRA_DIST
  5242. * test/Makefile.am
  5243. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5244. Added missing 2files.metalink
  5245. * test/2files.metalink
  5246. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5247. Show "[MEMORY]" prefix before filename in download summary if it
  5248. is downloaded into memory.
  5249. * src/DownloadResult.h
  5250. * src/RequestGroup.cc
  5251. * src/RequestGroupMan.cc
  5252. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5253. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  5254. * src/ExpatXmlRpcRequestProcessor.cc
  5255. * src/Xml2XmlRpcRequestProcessor.cc
  5256. * src/message.h
  5257. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5258. Defined const BDEs to avoid duplicate instantiation.
  5259. Defined MSG_GID_NOT_PROVIDED.
  5260. * src/XmlRpcMethodImpl.cc
  5261. * src/message.h
  5262. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5263. Code cleanup
  5264. * src/Xml2XmlRpcRequestProcessor.cc
  5265. * src/Xml2XmlRpcRequestProcessor.h
  5266. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5267. Defined ENABLE_XML_RPC
  5268. * configure.ac
  5269. * configure
  5270. * config.h.in
  5271. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5272. Added ExpatXmlRpcRequestProcessor
  5273. * src/ExpatXmlRpcRequestProcessor.cc
  5274. * src/ExpatXmlRpcRequestProcessor.h
  5275. * src/Makefile.am
  5276. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5277. Added tests for addTorrent and addMetalink command.
  5278. * test/TestUtil.cc
  5279. * test/TestUtil.h
  5280. * test/XmlRpcMethodTest.cc
  5281. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5282. Corrected the description of --file-allocation option.
  5283. * doc/aria2c.1.txt
  5284. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5285. Added tellAll command.
  5286. * src/XmlRpcMethodFactory.cc
  5287. * src/XmlRpcMethodImpl.cc
  5288. * src/XmlRpcMethodImpl.h
  5289. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5290. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  5291. * src/XmlRpcMethodImpl.cc
  5292. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5293. Added changeGlobalOption command. Currently,
  5294. max-overall-download-limit and max-overall-upload-limit option are
  5295. available.
  5296. * src/RequestGroupMan.h
  5297. * src/XmlRpcMethod.cc
  5298. * src/XmlRpcMethod.h
  5299. * src/XmlRpcMethodFactory.cc
  5300. * src/XmlRpcMethodImpl.cc
  5301. * src/XmlRpcMethodImpl.h
  5302. * test/XmlRpcMethodTest.cc
  5303. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5304. Added changeOption command. Currently, max-download-limit,
  5305. max-upload-limit option are available in this command.
  5306. * src/RequestGroup.h
  5307. * src/XmlRpcMethod.cc
  5308. * src/XmlRpcMethod.h
  5309. * src/XmlRpcMethodFactory.cc
  5310. * src/XmlRpcMethodImpl.cc
  5311. * src/XmlRpcMethodImpl.h
  5312. * test/XmlRpcMethodTest.cc
  5313. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5314. Added purgeDownloadResult command.
  5315. * src/RequestGroupMan.cc
  5316. * src/RequestGroupMan.h
  5317. * src/XmlRpcMethodFactory.cc
  5318. * src/XmlRpcMethodImpl.cc
  5319. * src/XmlRpcMethodImpl.h
  5320. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5321. Refactored.
  5322. * src/XmlRpcMethod.cc
  5323. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5324. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  5325. XmlRpcResponse.
  5326. * src/HttpServerBodyCommand.cc
  5327. * src/Makefile.am
  5328. * src/XmlRpcMethod.cc
  5329. * src/XmlRpcMethod.h
  5330. * src/XmlRpcMethodImpl.cc
  5331. * src/XmlRpcResponse.cc
  5332. * src/XmlRpcResponse.h
  5333. * test/XmlRpcMethodTest.cc
  5334. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5335. In XML-RPC option struct, header and index-out option can take
  5336. array as value.
  5337. * src/XmlRpcMethod.cc
  5338. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5339. Removed unused option member from PeerConnection.
  5340. * src/InitiatorMSEHandshakeCommand.cc
  5341. * src/PeerConnection.cc
  5342. * src/PeerConnection.h
  5343. * src/PeerInteractionCommand.cc
  5344. * src/PeerReceiveHandshakeCommand.cc
  5345. * src/ReceiverMSEHandshakeCommand.cc
  5346. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5347. Added "seeder" key to getPeers response.
  5348. * src/XmlRpcMethodImpl.cc
  5349. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5350. Added addMetalink XML-RPC command.
  5351. * src/XmlRpcMethodFactory.cc
  5352. * src/XmlRpcMethodImpl.cc
  5353. * src/XmlRpcMethodImpl.h
  5354. * src/download_helper.cc
  5355. * src/download_helper.h
  5356. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5357. Fixed the bug that POU peers are never choked in seeding.
  5358. * src/BtSeederStateChoke.cc
  5359. * src/BtSeederStateChoke.h
  5360. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5361. Added web-seeding URI handling in addTorrent command.
  5362. * src/XmlRpcMethodImpl.cc
  5363. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5364. Added "length" key to getFiles response.
  5365. * src/XmlRpcMethodImpl.cc
  5366. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5367. Moved --no-netrc option from ftp option section to http/ftp option
  5368. section.
  5369. * doc/aria2c.1.txt
  5370. * src/OptionHandlerFactory.cc
  5371. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5372. Removed garbage "\" character before '
  5373. * doc/aria2c.1.txt
  5374. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5375. Removed garbage "\" character before http.
  5376. * doc/aria2c.1.txt
  5377. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5378. Documented additional options that can be specified in -i list.
  5379. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  5380. and --xml-rpc-passwd. Removed --enable-http-server and
  5381. --http-server-listen-port.
  5382. * doc/aria2c.1.txt
  5383. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5384. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  5385. * src/DefaultPeerStorage.cc
  5386. * src/DefaultPeerStorage.h
  5387. * src/PeerStorage.h
  5388. * src/XmlRpcMethodImpl.cc
  5389. * test/MockPeerStorage.h
  5390. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5391. Put a call to Socket::isReadable() in try block.
  5392. * src/HttpServerBodyCommand.cc
  5393. * src/HttpServerCommand.cc
  5394. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5395. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  5396. exception , so it is now in try block.
  5397. * src/HttpServerResponseCommand.cc
  5398. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5399. Added "amChoking" and "peerChoking" key in getPeers response.
  5400. * src/XmlRpcMethodImpl.cc
  5401. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5402. Added test case for zero-length filter.
  5403. * test/BitfieldManTest.cc
  5404. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5405. getFiles command now returns file data for finished/stopped
  5406. downloads.
  5407. * src/XmlRpcMethodImpl.cc
  5408. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5409. DownloadResult now has the list of FileEntry. The download
  5410. summary displays the path of first selected file and the number of
  5411. remaining files for multi-file torrent.
  5412. * src/DownloadResult.h
  5413. * src/RequestGroup.cc
  5414. * src/RequestGroupMan.cc
  5415. * test/RequestGroupTest.cc
  5416. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5417. Fixed segmentation fault error when no file is selected in
  5418. multi-file torrent.
  5419. * src/BitfieldMan.cc
  5420. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5421. Escaped <,>,& character in XML-RPC response.
  5422. * src/XmlRpcMethod.cc
  5423. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5424. Throw DlAbortEx instead of FatalException during parsing options
  5425. because we don't want for aria2 to quit when bad option is passed
  5426. via XML-RPC.
  5427. * src/OptionHandlerException.cc
  5428. * src/OptionHandlerException.h
  5429. * src/OptionHandlerImpl.h
  5430. * src/OptionParser.cc
  5431. * src/OptionParser.h
  5432. * src/PStringSegment.cc
  5433. * src/ParameterizedStringParser.cc
  5434. * src/download_helper.cc
  5435. * test/ParameterizedStringParserTest.cc
  5436. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5437. Selecting files are now done in
  5438. DefaultBtContext::setFileFileter().
  5439. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  5440. functions are removed because they are no longer used. Creating
  5441. filter in BitfieldMan is done in new funtion
  5442. PieceStorage::setupFileFilter()
  5443. * src/BtContext.cc
  5444. * src/BtContext.h
  5445. * src/DefaultBtContext.cc
  5446. * src/DefaultBtContext.h
  5447. * src/DefaultPieceStorage.cc
  5448. * src/DefaultPieceStorage.h
  5449. * src/DiskAdaptor.cc
  5450. * src/DiskAdaptor.h
  5451. * src/PieceStorage.h
  5452. * src/RequestGroup.cc
  5453. * src/UnknownLengthPieceStorage.h
  5454. * src/XmlRpcMethodImpl.cc
  5455. * test/DefaultBtContextTest.cc
  5456. * test/MockBtContext.h
  5457. * test/MockPieceStorage.h
  5458. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5459. Fixed compile error on Mac OS X
  5460. * src/HttpServer.cc
  5461. * src/XmlRpcMethod.h
  5462. * src/XmlRpcMethodImpl.cc
  5463. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5464. Use std::binary_search instead of std::find
  5465. * src/DefaultPieceStorage.cc
  5466. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5467. Removed unnecessary BDE() call; leave them to implicit conversion.
  5468. * src/XmlRpcMethodImpl.cc
  5469. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5470. Return connections and gid in string
  5471. * src/XmlRpcMethodImpl.cc
  5472. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5473. Renamed addURI as addUri
  5474. * src/XmlRpcMethodFactory.cc
  5475. * src/XmlRpcMethodImpl.cc
  5476. * src/XmlRpcMethodImpl.h
  5477. * test/XmlRpcMethodTest.cc
  5478. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5479. Renamed addTorrentFile as addTorrent
  5480. * src/XmlRpcMethodFactory.cc
  5481. * src/XmlRpcMethodImpl.cc
  5482. * src/XmlRpcMethodImpl.h
  5483. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5484. The information for files, URIs, peers are removed from the
  5485. reponse of TellaActive, TellStatus command because they tend to be
  5486. large. Instead they can be retrieved by the dedicated commands:
  5487. getFiles, getUris and getPeers respectively.
  5488. * src/XmlRpcMethodFactory.cc
  5489. * src/XmlRpcMethodImpl.cc
  5490. * src/XmlRpcMethodImpl.h
  5491. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5492. Removed --max-overall-upload-limit and
  5493. --max-overall-download-limit option from listRequestOptions.
  5494. * src/download_helper.cc
  5495. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5496. Log incoming host in HttpListenCommand.
  5497. * src/HttpListenCommand.cc
  5498. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5499. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  5500. --xml-rpc-passwd option.
  5501. * src/HttpServer.cc
  5502. * src/HttpServer.h
  5503. * src/HttpServerCommand.cc
  5504. * src/OptionHandlerFactory.cc
  5505. * src/prefs.cc
  5506. * src/prefs.h
  5507. * src/usage_text.h
  5508. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5509. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  5510. processing 0 length request.
  5511. * src/HttpServerBodyCommand.cc
  5512. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5513. Removed --enable-http-server and --http-server-listen-port
  5514. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  5515. instead. The original feature for --enable-http-server that
  5516. reports download progress in HTML was officially removed. Persist
  5517. XML-RPC connection if client supports keep-alive.
  5518. * src/DownloadEngineFactory.cc
  5519. * src/HttpServerCommand.cc
  5520. * src/HttpServerResponseCommand.cc
  5521. * src/Makefile.am
  5522. * src/Makefile.in
  5523. * src/OptionHandlerFactory.cc
  5524. * src/RequestGroupMan.cc
  5525. * src/main.cc
  5526. * src/option_processing.cc
  5527. * src/prefs.cc
  5528. * src/prefs.h
  5529. * src/usage_text.h
  5530. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5531. Added "uris" key to the response of tellStatus command. Added
  5532. "connections" key to the response of tellStatus and tellActive
  5533. command.
  5534. * src/XmlRpcMethodImpl.cc
  5535. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5536. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  5537. Added TellStatusXmlRpcMethod. Remove command can now remove
  5538. waiting RequestGroup.
  5539. * src/RequestGroupMan.cc
  5540. * src/RequestGroupMan.h
  5541. * src/XmlRpcMethodFactory.cc
  5542. * src/XmlRpcMethodImpl.cc
  5543. * src/XmlRpcMethodImpl.h
  5544. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5545. Initialized _peerId
  5546. * src/Peer.cc
  5547. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5548. Return fault structure for error. FailXmlRpcMethod is renamed as
  5549. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  5550. in non-torrent download. Return single param value.
  5551. * src/XmlRpcMethod.cc
  5552. * src/XmlRpcMethodFactory.cc
  5553. * src/XmlRpcMethodImpl.cc
  5554. * src/XmlRpcMethodImpl.h
  5555. * test/XmlRpcMethodTest.cc
  5556. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5557. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  5558. command.
  5559. * src/RequestGroup.cc
  5560. * src/RequestGroup.h
  5561. * src/RequestGroupMan.cc
  5562. * src/XmlRpcMethodImpl.cc
  5563. * test/RequestGroupTest.cc
  5564. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5565. Added more options that can be specified in -i list and xml-rpc
  5566. add* command.
  5567. * src/download_helper.h
  5568. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5569. The available options in -i list should be listed in
  5570. listRequestOptions().
  5571. * src/download_helper.cc
  5572. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5573. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  5574. command.
  5575. * src/XmlRpcMethodImpl.cc
  5576. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5577. Now RequestGroup has its own copy of Option object. This will help
  5578. to give custom option for each RequestGroup.
  5579. addTorrentFile command now takes options.
  5580. * src/AbstractCommand.cc
  5581. * src/AbstractCommand.h
  5582. * src/AbstractProxyRequestCommand.cc
  5583. * src/ActivePeerConnectionCommand.cc
  5584. * src/ActivePeerConnectionCommand.h
  5585. * src/AdaptiveURISelector.cc
  5586. * src/BtCheckIntegrityEntry.cc
  5587. * src/BtDependency.cc
  5588. * src/BtDependency.h
  5589. * src/BtFileAllocationEntry.cc
  5590. * src/BtPostDownloadHandler.cc
  5591. * src/CheckIntegrityEntry.cc
  5592. * src/DownloadCommand.cc
  5593. * src/FtpDownloadCommand.cc
  5594. * src/FtpFinishDownloadCommand.cc
  5595. * src/FtpInitiateConnectionCommand.cc
  5596. * src/FtpNegotiationCommand.cc
  5597. * src/HttpInitiateConnectionCommand.cc
  5598. * src/HttpRequestCommand.cc
  5599. * src/HttpResponseCommand.cc
  5600. * src/HttpSkipResponseCommand.cc
  5601. * src/InitiateConnectionCommand.cc
  5602. * src/InitiateConnectionCommandFactory.cc
  5603. * src/InitiatorMSEHandshakeCommand.cc
  5604. * src/InitiatorMSEHandshakeCommand.h
  5605. * src/Metalink2RequestGroup.cc
  5606. * src/Metalink2RequestGroup.h
  5607. * src/MetalinkPostDownloadHandler.cc
  5608. * src/MultiUrlRequestInfo.cc
  5609. * src/MultiUrlRequestInfo.h
  5610. * src/PeerAbstractCommand.cc
  5611. * src/PeerInteractionCommand.cc
  5612. * src/PeerInteractionCommand.h
  5613. * src/PeerReceiveHandshakeCommand.cc
  5614. * src/PeerReceiveHandshakeCommand.h
  5615. * src/RequestGroup.cc
  5616. * src/RequestGroup.h
  5617. * src/TrackerWatcherCommand.cc
  5618. * src/TrackerWatcherCommand.h
  5619. * src/XmlRpcMethod.cc
  5620. * src/XmlRpcMethod.h
  5621. * src/XmlRpcMethodImpl.cc
  5622. * src/download_helper.cc
  5623. * src/download_helper.h
  5624. * src/main.cc
  5625. * test/BtDependencyTest.cc
  5626. * test/BtPostDownloadHandlerTest.cc
  5627. * test/DefaultBtMessageDispatcherTest.cc
  5628. * test/DownloadHandlerFactoryTest.cc
  5629. * test/DownloadHelperTest.cc
  5630. * test/Metalink2RequestGroupTest.cc
  5631. * test/MetalinkPostDownloadHandlerTest.cc
  5632. * test/RequestGroupManTest.cc
  5633. * test/RequestGroupTest.cc
  5634. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5635. Added tellActiveStatus xml-rpc command which reports download
  5636. status of active downloads.
  5637. * src/XmlRpcMethodFactory.cc
  5638. * src/XmlRpcMethodImpl.cc
  5639. * src/XmlRpcMethodImpl.h
  5640. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5641. Added addTorrentFile xml-rpc command which receives uploaded
  5642. torrent file and add download for it.
  5643. * src/RequestGroupMan.cc
  5644. * src/XmlRpcMethodFactory.cc
  5645. * src/XmlRpcMethodImpl.cc
  5646. * src/XmlRpcMethodImpl.h
  5647. * src/download_helper.cc
  5648. * src/download_helper.h
  5649. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5650. Added remove xml-rpc command which removes specified download.
  5651. There is a known issue: the removed unfinished downloads are
  5652. reported ERR when aria2 exits. They should be reported as INPR.
  5653. * src/RequestGroupMan.cc
  5654. * src/RequestGroupMan.h
  5655. * src/XmlRpcMethodFactory.cc
  5656. * src/XmlRpcMethodImpl.cc
  5657. * src/XmlRpcMethodImpl.h
  5658. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5659. If --enable-http-server is enabled, don't stop aria2 when all
  5660. download finished and don't quit when no files to download at
  5661. start up.
  5662. * src/RequestGroupMan.cc
  5663. * src/main.cc
  5664. * src/option_processing.cc
  5665. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. Added missing AM_CONDITIONAL
  5667. * configure.ac
  5668. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5669. Added xml-rpc functionality. Currently only addURI commad is
  5670. supported. To enable xml-rpc, run aria2 with
  5671. --enable-http-server. This option name is temporal and will be
  5672. changed. The feature that reports download progress in html format
  5673. is temporarily disabled.
  5674. * src/HttpServer.cc
  5675. * src/HttpServer.h
  5676. * src/HttpServerBodyCommand.cc
  5677. * src/HttpServerBodyCommand.h
  5678. * src/HttpServerCommand.cc
  5679. * src/HttpServerResponseCommand.cc
  5680. * src/Makefile.am
  5681. * src/OptionParser.cc
  5682. * src/OptionParser.h
  5683. * src/RequestGroupMan.cc
  5684. * src/RequestGroupMan.h
  5685. * src/XmlRpcMethod.cc
  5686. * src/XmlRpcMethod.h
  5687. * src/XmlRpcMethodFactory.cc
  5688. * src/XmlRpcMethodFactory.h
  5689. * src/XmlRpcMethodImpl.cc
  5690. * src/XmlRpcMethodImpl.h
  5691. * src/download_helper.cc
  5692. * src/download_helper.h
  5693. * test/Makefile.am
  5694. * test/XmlRpcMethodTest.cc
  5695. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5696. Added xml-rpc request parser. The supported value types are:
  5697. i4/int, string, double, struct, array, base64. Currently only
  5698. libxml2 version is provided.
  5699. * src/Xml2XmlRpcRequestProcessor.cc
  5700. * src/Xml2XmlRpcRequestProcessor.h
  5701. * src/XmlRpcElements.cc
  5702. * src/XmlRpcElements.h
  5703. * src/XmlRpcRequest.h
  5704. * src/XmlRpcRequestParserController.cc
  5705. * src/XmlRpcRequestParserController.h
  5706. * src/XmlRpcRequestParserState.h
  5707. * src/XmlRpcRequestParserStateImpl.cc
  5708. * src/XmlRpcRequestParserStateImpl.h
  5709. * src/XmlRpcRequestParserStateMachine.cc
  5710. * src/XmlRpcRequestParserStateMachine.h
  5711. * src/XmlRpcRequestProcessor.h
  5712. * test/XmlRpcRequestParserControllerTest.cc
  5713. * test/XmlRpcRequestProcessorTest.cc
  5714. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5715. * Release 1.3.3
  5716. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5717. Fixed compile error since r1202.
  5718. * src/ExpatMetalinkProcessor.cc
  5719. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5720. Updated Ukrainian, Russian and Simplified Chinese
  5721. translations. Thanks to all translators.
  5722. * po/ru.po
  5723. * po/uk.po
  5724. * po/zh_CN.po
  5725. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5726. Pass reference of Option object instead of pointer.
  5727. * src/download_helper.cc
  5728. * src/download_helper.h
  5729. * src/main.cc
  5730. * test/DownloadHelperTest.cc
  5731. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5732. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  5733. from option directly. Instead, get them from RequestGroup.
  5734. * src/ActivePeerConnectionCommand.cc
  5735. * src/ActivePeerConnectionCommand.h
  5736. * src/PeerReceiveHandshakeCommand.cc
  5737. * src/RequestGroup.h
  5738. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5739. Removed unused uploadLimitCheck and uploadLimit from
  5740. PeerAbstractCommand. Removed unused maxDownloadLimit from
  5741. PeerInteractionCommand.
  5742. * src/PeerAbstractCommand.cc
  5743. * src/PeerAbstractCommand.h
  5744. * src/PeerInteractionCommand.cc
  5745. * src/PeerInteractionCommand.h
  5746. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5747. Fixed broken file renaming feature since r1202.
  5748. * src/FtpNegotiationCommand.cc
  5749. * src/FtpNegotiationCommand.h
  5750. * src/HttpResponseCommand.cc
  5751. * src/RequestGroup.cc
  5752. * src/RequestGroup.h
  5753. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5754. Removed unused debug log
  5755. * src/SocketCore.cc
  5756. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5757. Generated configure and Makefile.in using autoconf 2.63 and
  5758. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  5759. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  5760. * configure.ac
  5761. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5762. Moved piece statistics stuff to new PieceStatMan class.
  5763. Refactored PieceSelector interface.
  5764. * src/DefaultPieceStorage.cc
  5765. * src/DefaultPieceStorage.h
  5766. * src/LongestSequencePieceSelector.cc
  5767. * src/LongestSequencePieceSelector.h
  5768. * src/Makefile.am
  5769. * src/PieceSelector.h
  5770. * src/PieceStatMan.cc
  5771. * src/PieceStatMan.h
  5772. * src/RarestPieceSelector.cc
  5773. * src/RarestPieceSelector.h
  5774. * src/RequestGroup.cc
  5775. * test/DefaultPieceStorageTest.cc
  5776. * test/InOrderPieceSelector.h
  5777. * test/Makefile.am
  5778. * test/PieceStatManTest.cc
  5779. * test/RarestPieceSelectorTest.cc
  5780. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5781. Added static member _protocolFamily to SocketCore. By default,
  5782. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  5783. address. Sometime SocketCore::bind() and
  5784. SocketCore::establishConnection() use difference protocl family
  5785. and latter cannot connect to former. To avoid this situation, we
  5786. limit protocol family to AF_INET for unit tests.
  5787. * src/SocketCore.cc
  5788. * src/SocketCore.h
  5789. * test/AllTest.cc
  5790. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5791. Avoid std::bad_alloc for negative bencode string length.
  5792. * src/bencode.cc
  5793. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5794. Supported segmented downloading with chunked transfer encoding and
  5795. content-length.
  5796. * src/DownloadCommand.cc
  5797. * src/HttpResponseCommand.cc
  5798. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5799. Bump up version number to 1.3.3
  5800. * configure.ac
  5801. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5802. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  5803. from 4096 to 65536 (for insanely large ftp login banners)
  5804. * src/FtpConnection.h
  5805. * test/FtpConnectionTest.cc
  5806. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5807. In DefaultBtContext::getActualBasePath(), return first
  5808. FileEntry::getPath() for single file torrent.
  5809. * src/DefaultBtContext.cc
  5810. * test/DefaultBtContextTest.cc
  5811. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5812. Removed directIOAllowed() from BinaryStream, DiskWriter,
  5813. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  5814. Removed _directIOAllowed member from DiskWriter.
  5815. * src/AbstractDiskWriter.cc
  5816. * src/AbstractDiskWriter.h
  5817. * src/AbstractSingleDiskAdaptor.cc
  5818. * src/AbstractSingleDiskAdaptor.h
  5819. * src/BinaryStream.h
  5820. * src/ByteArrayDiskWriter.h
  5821. * src/DefaultPieceStorage.cc
  5822. * src/DiskWriter.h
  5823. * src/MultiDiskAdaptor.cc
  5824. * src/MultiDiskAdaptor.h
  5825. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5826. Now the constructor of AbstractDiskWriter takes filename as an
  5827. argument and filename argument is removed from openFile(),
  5828. initAndOpenFile(), openExistingFile() interface. storeDir member
  5829. and its accessor functions are removed from DiskAdaptor because it
  5830. is not used anymore. size() member function of DefaultDiskWriter,
  5831. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  5832. opening file.
  5833. * src/AbstractDiskWriter.cc
  5834. * src/AbstractDiskWriter.h
  5835. * src/AbstractSingleDiskAdaptor.cc
  5836. * src/AbstractSingleDiskAdaptor.h
  5837. * src/ByteArrayDiskWriter.cc
  5838. * src/ByteArrayDiskWriter.h
  5839. * src/ByteArrayDiskWriterFactory.cc
  5840. * src/ByteArrayDiskWriterFactory.h
  5841. * src/DefaultDiskWriter.cc
  5842. * src/DefaultDiskWriter.h
  5843. * src/DefaultDiskWriterFactory.cc
  5844. * src/DefaultDiskWriterFactory.h
  5845. * src/DefaultPieceStorage.cc
  5846. * src/DirectDiskAdaptor.cc
  5847. * src/DirectDiskAdaptor.h
  5848. * src/DiskAdaptor.h
  5849. * src/DiskWriter.h
  5850. * src/DiskWriterFactory.h
  5851. * src/MessageDigestHelper.cc
  5852. * src/MultiDiskAdaptor.cc
  5853. * src/RequestGroup.cc
  5854. * src/UnknownLengthPieceStorage.cc
  5855. * src/Util.cc
  5856. * test/DefaultDiskWriterTest.cc
  5857. * test/DirectDiskAdaptorTest.cc
  5858. * test/FallocFileAllocationIteratorTest.cc
  5859. * test/MessageDigestHelperTest.cc
  5860. * test/MetalinkProcessorTest.cc
  5861. * test/MultiDiskAdaptorTest.cc
  5862. * test/MultiFileAllocationIteratorTest.cc
  5863. * test/SingleFileAllocationIteratorTest.cc
  5864. * test/UtilTest.cc
  5865. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5866. Fixed the bug that aria2 aborts when --select-file is used. This
  5867. bug was introduced in r1199.
  5868. * src/MultiDiskAdaptor.cc
  5869. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5870. Code cleanup
  5871. * test/MockPieceStorage.cc
  5872. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5873. Fixed the bug that read-only file with wrong file size will cause
  5874. error because it cannot be truncated to the correct size. Now if
  5875. file size is different than the expected one, re-open file in
  5876. writable mode.
  5877. * src/AbstractSingleDiskAdaptor.cc
  5878. * src/AbstractSingleDiskAdaptor.h
  5879. * src/BtCheckIntegrityEntry.cc
  5880. * src/DiskAdaptor.h
  5881. * src/MultiDiskAdaptor.h
  5882. * src/RequestGroup.cc
  5883. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5884. Fixed the bug that with --check-integrity option aria2 reports
  5885. downloaded file size is 0 even if some parts of file is correctly
  5886. downloaded. This bug is reproducible for the download that a file
  5887. includes last piece is missing. This bug doesn't reveal for
  5888. single-torrent with file allocation on.
  5889. * src/IteratableChecksumValidator.cc
  5890. * test/IteratableChecksumValidatorTest.cc
  5891. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5892. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5893. * src/RequestGroupMan.cc
  5894. * src/AdaptiveURISelector.cc
  5895. * src/AdaptiveURISelector.h
  5896. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5897. * Release 1.3.2
  5898. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5899. Updated README
  5900. * README
  5901. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5902. Updated Ukrainian translations. Thanks to Alexander10.
  5903. * po/uk.po
  5904. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5905. Code cleanup
  5906. * src/MetalinkParserStateMachine.cc
  5907. * src/MetalinkParserStateMachine.h
  5908. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5909. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5910. and expat simultaneously, MetalinkProcessor is now not base class
  5911. and it is directly implemented in XML2SAXMetalinkProcessor and
  5912. ExpatMetalinkProcessor.
  5913. * src/ExpatMetalinkProcessor.cc
  5914. * src/ExpatMetalinkProcessor.h
  5915. * src/Makefile.am
  5916. * src/MetalinkHelper.cc
  5917. * src/MetalinkProcessor.h
  5918. * src/MetalinkProcessorFactory.cc: Removed.
  5919. * src/MetalinkProcessorFactory.h: Removed
  5920. * src/XML2SAXMetalinkProcessor.cc
  5921. * src/XML2SAXMetalinkProcessor.h
  5922. * test/MetalinkProcessorTest.cc
  5923. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5924. Bump up version number to 1.3.2
  5925. * configure.ac
  5926. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5927. Added missing file.
  5928. * test/Makefile.am
  5929. * test/url-list-singleFileEndsWithSlash.torrent
  5930. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5931. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5932. request.
  5933. * src/AnnounceList.cc
  5934. * src/AnnounceList.h
  5935. * src/BDE.cc: Added
  5936. * src/BDE.h: Added
  5937. * src/DHTAbstractMessage.cc
  5938. * src/DHTAbstractMessage.h
  5939. * src/DHTAnnouncePeerMessage.cc
  5940. * src/DHTAnnouncePeerMessage.h
  5941. * src/DHTAnnouncePeerReplyMessage.cc
  5942. * src/DHTAnnouncePeerReplyMessage.h
  5943. * src/DHTFindNodeMessage.cc
  5944. * src/DHTFindNodeMessage.h
  5945. * src/DHTFindNodeReplyMessage.cc
  5946. * src/DHTFindNodeReplyMessage.h
  5947. * src/DHTGetPeersMessage.cc
  5948. * src/DHTGetPeersMessage.h
  5949. * src/DHTGetPeersReplyMessage.cc
  5950. * src/DHTGetPeersReplyMessage.h
  5951. * src/DHTMessageFactory.h
  5952. * src/DHTMessageFactoryImpl.cc
  5953. * src/DHTMessageFactoryImpl.h
  5954. * src/DHTMessageReceiver.cc
  5955. * src/DHTMessageTracker.cc
  5956. * src/DHTMessageTracker.h
  5957. * src/DHTPingMessage.cc
  5958. * src/DHTPingMessage.h
  5959. * src/DHTPingReplyMessage.cc
  5960. * src/DHTPingReplyMessage.h
  5961. * src/DHTQueryMessage.cc
  5962. * src/DHTQueryMessage.h
  5963. * src/DHTResponseMessage.cc
  5964. * src/DHTResponseMessage.h
  5965. * src/DefaultBtAnnounce.cc
  5966. * src/DefaultBtContext.cc
  5967. * src/DefaultBtContext.h
  5968. * src/HandshakeExtensionMessage.cc
  5969. * src/Makefile.am
  5970. * src/PeerListProcessor.h
  5971. * src/UTPexExtensionMessage.cc
  5972. * src/bencode.cc
  5973. * src/bencode.h
  5974. * test/AnnounceListTest.cc
  5975. * test/BDETest.cc: Added
  5976. * test/BencodeTest.cc
  5977. * test/DHTAnnouncePeerMessageTest.cc
  5978. * test/DHTAnnouncePeerReplyMessageTest.cc
  5979. * test/DHTFindNodeMessageTest.cc
  5980. * test/DHTFindNodeReplyMessageTest.cc
  5981. * test/DHTGetPeersMessageTest.cc
  5982. * test/DHTGetPeersReplyMessageTest.cc
  5983. * test/DHTMessageFactoryImplTest.cc
  5984. * test/DHTMessageTrackerTest.cc
  5985. * test/DHTPingMessageTest.cc
  5986. * test/DHTPingReplyMessageTest.cc
  5987. * test/Makefile.am
  5988. * test/MockDHTMessageFactory.h
  5989. * test/PeerListProcessorTest.cc
  5990. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5991. Use url-list (web-seeding) only for single-file torrent. This is
  5992. basically the same behavior with Metalink file with torrent and
  5993. URIs.
  5994. * src/RequestGroup.cc
  5995. * src/DefaultBtContext.cc
  5996. * test/DefaultBtContextTest.cc
  5997. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5998. Rewritten expr
  5999. * src/array_fun.h
  6000. * test/array_funTest.cc
  6001. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6002. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  6003. * src/DefaultBtMessageDispatcher.cc
  6004. * src/a2algo.h
  6005. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6006. Removed ExtendedMessagingAware. Instead of using inheritance,
  6007. added ExtensionMessageRegistry and it is passed to
  6008. DefaultExtensionMessageFactory.
  6009. * src/DefaultBtInteractive.cc
  6010. * src/DefaultBtInteractive.h
  6011. * src/DefaultExtensionMessageFactory.cc
  6012. * src/DefaultExtensionMessageFactory.h
  6013. * src/ExtendedMessagingAware.h: Removed.
  6014. * src/ExtensionMessageFactory.h
  6015. * src/ExtensionMessageRegistry.h: Added.
  6016. * src/Makefile.am
  6017. * src/PeerInteractionCommand.cc
  6018. * test/DefaultExtensionMessageFactoryTest.cc
  6019. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6020. Fixed typo in log messages
  6021. * src/MSEHandshake.cc
  6022. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6023. Fixed the bug that prevents torrent download from finishing. The
  6024. bug doesn't reveal for all torrents. The torrents affected this
  6025. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  6026. of pieces.
  6027. * src/bitfield.h
  6028. * test/bitfieldTest.cc
  6029. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6030. Code cleanup
  6031. * src/PeerListProcessor.h
  6032. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6033. Removed RequestGroupAware
  6034. * src/AbstractCommand.cc
  6035. * src/AbstractCommand.h
  6036. * src/ActivePeerConnectionCommand.cc
  6037. * src/ActivePeerConnectionCommand.h
  6038. * src/DHTGetPeersCommand.cc
  6039. * src/DHTGetPeersCommand.h
  6040. * src/InitiatorMSEHandshakeCommand.cc
  6041. * src/InitiatorMSEHandshakeCommand.h
  6042. * src/Makefile.am
  6043. * src/PeerInitiateConnectionCommand.cc
  6044. * src/PeerInitiateConnectionCommand.h
  6045. * src/PeerInteractionCommand.cc
  6046. * src/PeerInteractionCommand.h
  6047. * src/RealtimeCommand.cc
  6048. * src/RealtimeCommand.h
  6049. * src/RequestGroupAware.cc: Removed
  6050. * src/RequestGroupAware.h: Removed
  6051. * src/SeedCheckCommand.cc
  6052. * src/SeedCheckCommand.h
  6053. * src/SleepCommand.cc
  6054. * src/TrackerWatcherCommand.cc
  6055. * src/TrackerWatcherCommand.h
  6056. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6057. Rewritten PeerListProcessor
  6058. * src/PeerListProcessor.h
  6059. * src/CompactPeerListProcessor.h: Removed
  6060. * src/CompactPeerListProcessor.cc: Removed
  6061. * src/DelegatingPeerListProcessor.cc: Removed.
  6062. * src/DefaultBtAnnounce.cc
  6063. * src/Makefile.am
  6064. * src/UTPexExtensionMessage.cc
  6065. * src/DefaultPeerListProcessor.h: Removed.
  6066. * src/DefaultPeerListProcessor.cc: Removed.
  6067. * src/DelegatingPeerListProcessor.h: Removed.
  6068. * test/Makefile.am
  6069. * test/PeerListProcessorTest.cc
  6070. * test/DefaultPeerListProcessorTest.cc: Removed.
  6071. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6072. Rewritten RequestGroupMan::calculateStat()
  6073. * src/RequestGroupMan.cc
  6074. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6075. Removed unnecessary virtual destructor for Request class.
  6076. * src/Request.cc
  6077. * src/Request.h
  6078. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6079. Avoid dynamic_pointer_cast.
  6080. * src/DHTGetPeersCommand.cc
  6081. * src/DHTGetPeersCommand.h
  6082. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6083. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  6084. BtEvent.
  6085. * src/AbstractBtEventListener.h: Removed.
  6086. * src/AbstractBtMessage.cc
  6087. * src/AbstractBtMessage.h
  6088. * src/BtAbortOutstandingRequestEvent.h
  6089. * src/BtCancelSendingPieceEvent.h
  6090. * src/BtChokedEvent.h: Removed.
  6091. * src/BtChokingEvent.h
  6092. * src/BtEvent.h: Removed
  6093. * src/BtEventListener.h: Removed.
  6094. * src/BtMessage.h
  6095. * src/BtPieceMessage.cc
  6096. * src/BtPieceMessage.h
  6097. * src/BtRequestMessage.cc
  6098. * src/BtRequestMessage.h
  6099. * src/DefaultBtMessageDispatcher.cc
  6100. * src/Makefile.am
  6101. * src/a2functional.h
  6102. * test/BtPieceMessageTest.cc
  6103. * test/BtRequestMessageTest.cc
  6104. * test/DefaultBtMessageDispatcherTest.cc
  6105. * test/MockBtMessage.h
  6106. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6107. Code cleanup
  6108. * src/RequestGroupMan.cc
  6109. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6110. Code cleanup
  6111. * src/DownloadCommand.cc
  6112. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6113. Fixed segmentation fault when GZipDecoder::decode() returns 0
  6114. byte.
  6115. * src/DownloadCommand.cc
  6116. * src/bitfield.h
  6117. * test/bitfieldTest.cc
  6118. Fixed the bug that causes infinite loop if broken web server
  6119. returns chunked response without last "0" chunk-size marker and
  6120. closes connection.
  6121. * src/DownloadCommand.cc
  6122. Instantiate properly configured HttpDownloadCommand for
  6123. non-resumable downlaods.
  6124. * src/HttpResponseCommand.cc
  6125. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6126. Rewritten array operation functions.
  6127. * src/BitfieldMan.cc
  6128. * src/array_fun.h
  6129. * test/array_funTest.cc
  6130. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6131. Removed unused variable 'query'
  6132. * src/Request.cc
  6133. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6134. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  6135. accidentally set to false in r1162.
  6136. * configure.ac
  6137. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6138. Code cleanup
  6139. * src/BNode.cc
  6140. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6141. Increase prefixLength for the bucket which doesn't own local node
  6142. ID when splitting bucket.
  6143. * src/DHTBucket.cc
  6144. * test/DHTBucketTest.cc
  6145. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6146. * Release 1.3.1
  6147. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6148. Bump up version number to 1.3.1
  6149. * configure.ac
  6150. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6151. Removed unused variable checkPoint. Also removed include directive
  6152. for TimeA2.h.
  6153. * src/SeedCheckCommand.h
  6154. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6155. Fixed the bug that upload limit exceeds the value specified in
  6156. --seed-ratio option depending on the timing of the execution of
  6157. SeedCheckCommand.
  6158. * src/SeedCheckCommand.cc
  6159. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6160. Fixed the bug that removed peer's session upload/download length
  6161. are counted twice in _cachedTransferStat before it is
  6162. re-calculated. This affected the calculation of shara ratio,
  6163. resulting aria2 wrongly determines that specified share ratio is
  6164. reached. Also fixed the typo in calculateStatFor function name.
  6165. * src/BtSetup.cc
  6166. * src/DefaultPeerStorage.cc
  6167. * src/ShareRatioSeedCriteria.h
  6168. * test/ShareRatioSeedCriteriaTest.cc
  6169. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6170. * Release 1.3.0
  6171. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6172. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  6173. Nynorsk translations. Thanks to all translators.
  6174. * po/es.po
  6175. * po/ja.po
  6176. * po/nn.po
  6177. * po/ru.po
  6178. * po/uk.po
  6179. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6180. Rewritten isInRange()
  6181. * src/DHTBucket.cc
  6182. * test/DHTBucketTest.cc
  6183. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6184. Fixed typo
  6185. * doc/aria2c.1.txt
  6186. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6187. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  6188. malloc/realloc is not used.
  6189. * src/configure.ac
  6190. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6191. BitfieldMan::getMissingIndexes family functions now takes unsigned
  6192. char* bitfield instead of stl container for efficiency.
  6193. PieceSelector::select now takes this
  6194. bitfield. RarestPieceSelector::select now also performs
  6195. efficiently for this change. bitfield namespace is introduced and
  6196. it has several helper functions to handle basic bitfield
  6197. operations such as test, count set bits, etc.
  6198. * src/BitfieldMan.cc
  6199. * src/BitfieldMan.h
  6200. * src/DefaultBtRequestFactory.cc
  6201. * src/DefaultPieceStorage.cc
  6202. * src/DefaultPieceStorage.h
  6203. * src/LongestSequencePieceSelector.cc
  6204. * src/LongestSequencePieceSelector.h
  6205. * src/Makefile.am
  6206. * src/Piece.cc
  6207. * src/Piece.h
  6208. * src/PieceSelector.h
  6209. * src/RarestPieceSelector.cc
  6210. * src/RarestPieceSelector.h
  6211. * src/Util.cc
  6212. * src/Util.h
  6213. * src/bitfield.h
  6214. * test/BitfieldManTest.cc
  6215. * test/LongestSequencePieceSelectorTest.cc
  6216. * test/Makefile.am
  6217. * test/RarestPieceSelectorTest.cc
  6218. * test/UtilTest.cc
  6219. * test/bitfieldTest.cc
  6220. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6221. Made accepted socket non-block.
  6222. * src/FtpNegotiationCommand.cc
  6223. * src/HttpListenCommand.cc
  6224. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6225. Guarded #ifdef HAVE_POSIX_FALLOCATE
  6226. * src/AbstractSingleDiskAdaptor.cc
  6227. * src/DefaultPieceStorage.cc
  6228. * src/DiskAdaptor.h
  6229. * src/DiskAdaptor.h
  6230. * src/MultiFileAllocationIterator.cc
  6231. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6232. Run
  6233. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  6234. in every 1 sec. The timeout of RequestSlot is 60s by default and
  6235. it doesn't need to be called every time when
  6236. DefaultBtInteractive::doInteractionProcessing() is called.
  6237. * src/DefaultBtInteractive.cc
  6238. * src/DefaultBtInteractive.h
  6239. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6240. Documented 'falloc' in man page.
  6241. * doc/aria2c.1.txt
  6242. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6243. Updated doc
  6244. * src/usage_text.h
  6245. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6246. Added 'falloc' parameter for --file-allocation option. 'falloc'
  6247. allocation mode uses posix_fallocate() system call to allocate
  6248. file on disk. If you are using newer file systems such as ext4
  6249. (with extents support), btrfs or xfs, 'falloc' is your best
  6250. choice. It allocates large(few GiB) files almost instantly. Don't
  6251. use 'falloc' with legacy file systems such as ext3 because it
  6252. takes almost same time as 'prealloc' and it blocks aria2 entirely
  6253. until allocation finishes. 'falloc' may not be available if your
  6254. system doesn't have posix_fallocate() system call.
  6255. * configure.ac
  6256. * src/AbstractDiskWriter.cc
  6257. * src/AbstractDiskWriter.h
  6258. * src/AbstractSingleDiskAdaptor.cc
  6259. * src/BinaryStream.h
  6260. * src/BtCheckIntegrityEntry.cc
  6261. * src/ByteArrayDiskWriter.h
  6262. * src/CheckIntegrityEntry.cc
  6263. * src/CheckIntegrityEntry.h
  6264. * src/DefaultPieceStorage.cc
  6265. * src/DiskAdaptor.cc
  6266. * src/DiskAdaptor.h
  6267. * src/DiskWriter.h
  6268. * src/FallocFileAllocationIterator.cc
  6269. * src/FallocFileAllocationIterator.h
  6270. * src/FileAllocationEntry.cc
  6271. * src/FileAllocationEntry.h
  6272. * src/Makefile.am
  6273. * src/MultiFileAllocationIterator.cc
  6274. * src/MultiFileAllocationIterator.h
  6275. * src/OptionHandlerFactory.cc
  6276. * src/RequestGroup.cc
  6277. * src/StreamCheckIntegrityEntry.cc
  6278. * src/prefs.cc
  6279. * src/prefs.h
  6280. * src/usage_text.h
  6281. * test/FallocFileAllocationIteratorTest.cc
  6282. * test/Makefile.am
  6283. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6284. Removed duplicate enableDirectIO() call.
  6285. * src/MultiFileAllocationIterator.cc
  6286. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6287. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  6288. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  6289. cost of std::rotate().
  6290. * src/RarestPieceSelector.cc
  6291. * src/RarestPieceSelector.h
  6292. * test/RarestPieceSelectorTest.cc
  6293. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6294. Updated usage doc for --bt-tracker-interval option.
  6295. * src/usage_text.h
  6296. * doc/aria2c.1.txt
  6297. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6298. Documented --bt-tracker-interval option in man page.
  6299. * doc/aria2c.1.txt
  6300. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6301. Added an option to specify the interval between tracker requests.
  6302. If non-zero value is specified, aria2 uses it and ignores the
  6303. interval value in the response of tracker. If zero is specified,
  6304. aria2 determines the inteval value based on the tarcker response
  6305. and download progress.
  6306. * src/DefaultBtAnnounce.cc
  6307. * src/DefaultBtAnnounce.h
  6308. * src/OptionHandlerFactory.cc
  6309. * src/RequestGroup.cc
  6310. * src/prefs.cc
  6311. * src/prefs.h
  6312. * src/usage_text.h
  6313. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6314. Added operator+=, operator-=, operator-
  6315. * src/TransferStat.cc
  6316. * src/TransferStat.h
  6317. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6318. Refactored RarestPieceSelector to reduce CPU load, especially for
  6319. addPieceStats.
  6320. * src/RarestPieceSelector.cc
  6321. * src/RarestPieceSelector.h
  6322. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6323. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  6324. getAllMissingBlockIndexes to reduce a call to
  6325. array_function_base::operator[].
  6326. * src/BitfieldMan.cc
  6327. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6328. Cached TransferStat/download speed to avoid to sum them up in each
  6329. call.
  6330. * src/DefaultPeerStorage.cc
  6331. * src/DefaultPeerStorage.h
  6332. * src/SegmentMan.cc
  6333. * src/SegmentMan.h
  6334. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6335. Typedefed cuid_t as int32_t in Command.h
  6336. * src/CUIDCounter.h
  6337. * src/Command.cc
  6338. * src/Command.h
  6339. * src/DownloadEngine.cc
  6340. * src/DownloadEngine.h
  6341. * src/PeerStat.h
  6342. * src/SegmentMan.cc
  6343. * src/SegmentMan.h
  6344. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6345. Reduced the number of calls to PeerStorage::calculateStat() and
  6346. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  6347. transfer rate.
  6348. * src/DefaultBtInteractive.cc
  6349. * src/DefaultBtMessageDispatcher.cc
  6350. * src/DefaultPeerStorage.cc
  6351. * src/DefaultPeerStorage.h
  6352. * src/DownloadCommand.cc
  6353. * src/DownloadEngine.cc
  6354. * src/PeerStorage.h
  6355. * src/SegmentMan.cc
  6356. * src/SegmentMan.h
  6357. * test/MockPeerStorage.h
  6358. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6359. Prepended _dir+"/" after joining path elements in torrent file.
  6360. * src/DefaultBtContext.cc
  6361. * test/DefaultBtContextTest.cc
  6362. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6363. Added missing IndexBtMessageValidator.h
  6364. * src/Makefile.am
  6365. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6366. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  6367. Chinese translations. Thank you for contributing our project.
  6368. * po/id.po
  6369. * po/it.po
  6370. * po/ru.po
  6371. * po/uk.po
  6372. * po/zh_CN.po
  6373. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6374. Updated README
  6375. * README
  6376. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6377. Bump up version number to 1.3.0
  6378. * configure.ac
  6379. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6380. Updated doc
  6381. * src/DefaultBtContext.h
  6382. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6383. Slice/joinPath for name of single torrent.
  6384. * src/DefaultBtContext.cc
  6385. * test/DefaultBtContextTest.cc
  6386. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6387. Updated man page: Documented --dry-run and --index-out
  6388. options. Changed the default value of --uri-selector and
  6389. --http-auth-challenge options. Removed --direct-file-mapping
  6390. option. Added example for --index-out
  6391. * doc/aria2c.1.txt
  6392. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6393. Updated TEXT_DRY_RUN
  6394. * src/usage_text.h
  6395. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6396. Changed the default value of --uri-selector option from 'inorder'
  6397. to 'feedback'
  6398. * src/OptionHandlerFactory.cc
  6399. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6400. Included current URI in exception message.
  6401. * src/AbstractCommand.cc
  6402. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6403. Renamed ServerStatURISelector as FeedbackURISelector.
  6404. * src/FeedbackURISelector.cc
  6405. * src/FeedbackURISelector.h
  6406. * src/Makefile.am
  6407. * src/RequestGroupMan.cc
  6408. * src/ServerStatURISelector.cc
  6409. * src/ServerStatURISelector.h
  6410. * test/FeedbackURISelectorTest.cc
  6411. * test/Makefile.am
  6412. * test/ServerStatURISelectorTest.cc
  6413. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6414. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  6415. all URIs are tested and their timeout is not reached.
  6416. * src/AdaptiveURISelector.cc
  6417. * src/AdaptiveURISelector.h
  6418. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6419. Changed the default value of --http-auth-challenge option to false.
  6420. * src/OptionHandlerFactory.cc
  6421. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6422. Reuse URIs when all unused URIs run out.
  6423. * src/OptionHandlerFactory.cc
  6424. * src/RequestGroup.cc
  6425. * src/prefs.cc
  6426. * src/prefs.h
  6427. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6428. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  6429. and BtRejectMessage are derived from RangeBtMessage class.
  6430. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  6431. derived from IndexBtMessage class. BtChokeMessage,
  6432. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  6433. BtNotInterestedMessage and BtUnchokeMessage are derived from
  6434. ZeroBtMessage class.
  6435. * src/AbstractBtMessage.cc
  6436. * src/AbstractBtMessage.h
  6437. * src/BtAllowedFastMessage.cc
  6438. * src/BtAllowedFastMessage.h
  6439. * src/BtAllowedFastMessageValidator.h: Removed
  6440. * src/BtBitfieldMessage.cc
  6441. * src/BtBitfieldMessage.h
  6442. * src/BtCancelMessage.cc
  6443. * src/BtCancelMessage.h
  6444. * src/BtCancelMessageValidator.h: Removed
  6445. * src/BtChokeMessage.cc
  6446. * src/BtChokeMessage.h
  6447. * src/BtExtendedMessage.cc
  6448. * src/BtExtendedMessage.h
  6449. * src/BtHandshakeMessage.cc
  6450. * src/BtHandshakeMessage.h
  6451. * src/BtHaveAllMessage.cc
  6452. * src/BtHaveAllMessage.h
  6453. * src/BtHaveMessage.cc
  6454. * src/BtHaveMessage.h
  6455. * src/BtHaveMessageValidator.h: Removed
  6456. * src/BtHaveNoneMessage.cc
  6457. * src/BtHaveNoneMessage.h
  6458. * src/BtInterestedMessage.cc
  6459. * src/BtInterestedMessage.h
  6460. * src/BtKeepAliveMessage.cc
  6461. * src/BtKeepAliveMessage.h
  6462. * src/BtNotInterestedMessage.cc
  6463. * src/BtNotInterestedMessage.h
  6464. * src/BtPieceMessage.cc
  6465. * src/BtPieceMessage.h
  6466. * src/BtPortMessage.cc
  6467. * src/BtPortMessage.h
  6468. * src/BtRejectMessage.cc
  6469. * src/BtRejectMessage.h
  6470. * src/BtRejectMessageValidator.h: Removed
  6471. * src/BtRequestMessage.cc
  6472. * src/BtRequestMessage.h
  6473. * src/BtRequestMessageValidator.h: Removed
  6474. * src/BtSuggestPieceMessage.cc
  6475. * src/BtSuggestPieceMessage.h
  6476. * src/BtSuggestPieceMessageValidator.h: Removed
  6477. * src/BtUnchokeMessage.cc
  6478. * src/BtUnchokeMessage.h
  6479. * src/DefaultBtMessageFactory.cc
  6480. * src/IndexBtMessage.cc
  6481. * src/IndexBtMessage.h
  6482. * src/IndexBtMessageValidator.h
  6483. * src/Makefile.am
  6484. * src/PeerMessageUtil.cc
  6485. * src/PeerMessageUtil.h
  6486. * src/RangeBtMessage.cc
  6487. * src/RangeBtMessage.h
  6488. * src/RangeBtMessageValidator.h
  6489. * src/SimpleBtMessage.cc
  6490. * src/SimpleBtMessage.h
  6491. * src/ZeroBtMessage.cc
  6492. * src/ZeroBtMessage.h
  6493. * test/BtRequestMessageTest.cc
  6494. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6495. Reverted usage_text.h to r1093 to avoid to lose translated
  6496. messages.
  6497. * src/usage_text.h
  6498. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6499. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  6500. declared as non-const previously is now const and defined in class
  6501. definition.
  6502. * src/AbstractBtMessage.cc
  6503. * src/AbstractBtMessage.h
  6504. * src/BtAllowedFastMessage.cc
  6505. * src/BtAllowedFastMessage.h
  6506. * src/BtBitfieldMessage.h
  6507. * src/BtCancelMessage.cc
  6508. * src/BtCancelMessage.h
  6509. * src/BtChokeMessage.cc
  6510. * src/BtChokeMessage.h
  6511. * src/BtExtendedMessage.cc
  6512. * src/BtExtendedMessage.h
  6513. * src/BtHandshakeMessage.cc
  6514. * src/BtHandshakeMessage.h
  6515. * src/BtHaveAllMessage.cc
  6516. * src/BtHaveAllMessage.h
  6517. * src/BtHaveMessage.cc
  6518. * src/BtHaveMessage.h
  6519. * src/BtHaveNoneMessage.cc
  6520. * src/BtHaveNoneMessage.h
  6521. * src/BtInterestedMessage.cc
  6522. * src/BtInterestedMessage.h
  6523. * src/BtKeepAliveMessage.cc
  6524. * src/BtKeepAliveMessage.h
  6525. * src/BtMessage.h
  6526. * src/BtNotInterestedMessage.cc
  6527. * src/BtNotInterestedMessage.h
  6528. * src/BtPieceMessage.h
  6529. * src/BtPortMessage.cc
  6530. * src/BtPortMessage.h
  6531. * src/BtRejectMessage.cc
  6532. * src/BtRejectMessage.h
  6533. * src/BtRequestMessage.cc
  6534. * src/BtRequestMessage.h
  6535. * src/BtSuggestPieceMessage.cc
  6536. * src/BtSuggestPieceMessage.h
  6537. * src/BtUnchokeMessage.cc
  6538. * src/BtUnchokeMessage.h
  6539. * src/SimpleBtMessage.cc
  6540. * src/SimpleBtMessage.h
  6541. * test/MockBtMessage.h
  6542. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6543. Use FileEntry::exists()
  6544. * src/MultiDiskAdaptor.cc
  6545. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6546. Added exists()
  6547. * src/FileEntry.cc
  6548. * src/FileEntry.h
  6549. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6550. Added missing prefix dir.
  6551. * src/download_helper.cc
  6552. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6553. Removed --direct-file-mapping option and CopyDiskAdaptor.
  6554. * src/CopyDiskAdaptor.cc: Removed
  6555. * src/CopyDiskAdaptor.h: Removed
  6556. * src/DefaultPieceStorage.cc
  6557. * src/Makefile.am
  6558. * src/OptionHandlerFactory.cc
  6559. * src/prefs.cc
  6560. * src/prefs.h
  6561. * src/usage_text.h
  6562. * test/CopyDiskAdaptorTest.cc: Removed
  6563. * test/Makefile.am
  6564. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6565. Rewritten isSameFileBeingDownloaded()
  6566. * src/RequestGroupMan.cc
  6567. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6568. Removed getName() from DownloadContext. getName() is declared in
  6569. BtContext.
  6570. * src/BtContext.h
  6571. * src/DownloadContext.h
  6572. * src/SingleFileDownloadContext.cc
  6573. * src/SingleFileDownloadContext.h
  6574. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  6575. in AbstractSingleDiskAdaptor.
  6576. * src/AbstractSingleDiskAdaptor.h
  6577. * src/DiskAdaptor.h
  6578. * src/MultiDiskAdaptor.h
  6579. * src/RequestGroup.cc
  6580. Removed setTopDir() and getTopDir() and getTopDirPath() from
  6581. MultiDiskAdaptor.
  6582. * src/DefaultPieceStorage.cc
  6583. * src/MultiDiskAdaptor.cc
  6584. * src/MultiDiskAdaptor.h
  6585. * test/MultiDiskAdaptorTest.cc
  6586. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6587. FileEntry::getPath() contains store(top level) directory to
  6588. simplify path handling operation. In the previous implementation,
  6589. store directory is concatenated to FileEntry::getPath() in
  6590. DownloadContext.
  6591. * src/BtDependency.cc
  6592. * src/BtPostDownloadHandler.cc
  6593. * src/CopyDiskAdaptor.cc
  6594. * src/DefaultBtContext.cc
  6595. * src/DirectDiskAdaptor.cc
  6596. * src/FileEntry.cc
  6597. * src/FileEntry.h
  6598. * src/FtpNegotiationCommand.cc
  6599. * src/HttpResponse.cc
  6600. * src/HttpResponseCommand.cc
  6601. * src/Metalink2RequestGroup.cc
  6602. * src/MultiDiskAdaptor.cc
  6603. * src/MultiDiskAdaptor.h
  6604. * src/MultiFileAllocationIterator.cc
  6605. * src/RequestGroup.cc
  6606. * src/SingleFileDownloadContext.cc
  6607. * src/SingleFileDownloadContext.h
  6608. * src/download_helper.cc
  6609. * test/BtDependencyTest.cc
  6610. * test/CopyDiskAdaptorTest.cc
  6611. * test/DefaultBtContextTest.cc
  6612. * test/DefaultBtProgressInfoFileTest.cc
  6613. * test/DirectDiskAdaptorTest.cc
  6614. * test/DownloadHelperTest.cc
  6615. * test/FileEntryTest.cc
  6616. * test/MultiDiskAdaptorTest.cc
  6617. * test/MultiFileAllocationIteratorTest.cc
  6618. * test/RequestGroupTest.cc
  6619. * test/SingleFileDownloadContextTest.cc
  6620. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6621. Fixed compiler warning
  6622. * src/download_helper.cc
  6623. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6624. Throw exception if same infohash torrent is now downloading.
  6625. * src/RequestGroup.cc
  6626. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6627. Added --dry-run option. In this mode, aria2 just checks whether
  6628. the remote file is available and doesn't download data. This
  6629. option has effect on HTTP/FTP downloads and BitTorrent downloads
  6630. are canceled in this mode.
  6631. * src/FtpNegotiationCommand.cc
  6632. * src/HttpResponseCommand.cc
  6633. * src/HttpResponseCommand.h
  6634. * src/OptionHandlerFactory.cc
  6635. * src/RequestGroup.cc
  6636. * src/RequestGroupMan.cc
  6637. * src/prefs.cc
  6638. * src/prefs.h
  6639. * src/usage_text.h
  6640. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6641. Fixed compiler waring
  6642. * test/UriListParserTest.cc
  6643. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6644. Parse options in -i list using OptionParser.
  6645. * src/UriListParser.cc
  6646. * src/UriListParser.h
  6647. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6648. Don't reset URI in retry to avoid additional round trips because
  6649. of redirects.
  6650. * src/AbstractCommand.cc
  6651. * src/OptionHandlerFactory.cc
  6652. * src/prefs.cc
  6653. * src/prefs.h
  6654. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6655. Declared hide() in OptionHandler.
  6656. * src/NameMatchOptionHandler.h
  6657. * src/OptionHandler.h
  6658. * src/OptionHandlerImpl.h
  6659. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6660. Updated doc
  6661. * src/Peer.h
  6662. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6663. Added log message in setStatusInternal()
  6664. * src/ServerStat.cc
  6665. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6666. Call ServerStat::setError() in AbstractCommand::onAbort() to
  6667. effectively exclude failed server.
  6668. * src/AbstractCommand.cc
  6669. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6670. Added --index-out option to specify each file path for torrent.
  6671. Here index shown in --show-files option is used to specify which
  6672. file path should be altered. For example, to change the file path
  6673. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  6674. option multiple times: --index-out=1=aria2.tar.bz2
  6675. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  6676. available. This option can be specified in -i list.
  6677. * src/DefaultBtContext.cc
  6678. * src/DefaultBtContext.h
  6679. * src/MultiDiskAdaptor.cc
  6680. * src/MultiDiskAdaptor.h
  6681. * src/MultiFileAllocationIterator.cc
  6682. * src/OptionHandlerFactory.cc
  6683. * src/OptionHandlerImpl.h
  6684. * src/Util.cc
  6685. * src/Util.h
  6686. * src/download_helper.cc
  6687. * src/prefs.cc
  6688. * src/prefs.h
  6689. * src/usage_text.h
  6690. * test/DefaultBtContextTest.cc
  6691. * test/MultiDiskAdaptorTest.cc
  6692. * test/MultiFileAllocationIteratorTest.cc
  6693. * test/UtilTest.cc
  6694. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6695. Use Util::pathJoin()
  6696. * src/MetalinkParserController.cc
  6697. * test/test.xml
  6698. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6699. Use Util::pathJoin()
  6700. * src/DefaultBtContext.cc
  6701. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6702. Added Util::pathJoin()
  6703. * src/Util.h
  6704. * test/UtilTest.cc
  6705. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6706. Applied basename function to remove directory element in
  6707. content-disposition value.
  6708. Return empty string if content-disposition value is ".." or ".".
  6709. * src/Util.cc
  6710. * test/UtilTest.cc
  6711. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6712. Added --max-overall-download-limit in man page.
  6713. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  6714. * doc/aria2c.1.txt
  6715. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6716. Added --max-overall-download-limit option. Now --max-upload-limit
  6717. option is not ignored when --max-overall-upload-limit option has
  6718. non-zero value. aria2 checks download(upload) speed in the order:
  6719. first checks overall speed limit and if it is not exceeded, then
  6720. checks speed limit per download. Thus you can specify both
  6721. value. For example, set --max-overall-download-limit=1M and
  6722. --max-download-limit=500K to prevent from one download from eating
  6723. all overall speed limit.
  6724. * src/DefaultBtInteractive.cc
  6725. * src/DefaultBtInteractive.h
  6726. * src/DefaultBtMessageDispatcher.cc
  6727. * src/DefaultBtMessageDispatcher.h
  6728. * src/DownloadCommand.cc
  6729. * src/DownloadCommand.h
  6730. * src/FtpNegotiationCommand.cc
  6731. * src/HttpResponseCommand.cc
  6732. * src/OptionHandlerFactory.cc
  6733. * src/PeerInteractionCommand.cc
  6734. * src/RequestGroup.cc
  6735. * src/RequestGroup.h
  6736. * src/RequestGroupMan.cc
  6737. * src/RequestGroupMan.h
  6738. * src/prefs.cc
  6739. * src/prefs.h
  6740. * src/usage_text.h
  6741. * test/DefaultBtMessageDispatcherTest.cc
  6742. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6743. Documented select-file option in Input File section.
  6744. Documented --http-auth-challenge option.
  6745. * doc/aria2c.1.txt
  6746. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6747. Now select-file can be specified in the uri list(-i list).
  6748. * src/BtContext.cc
  6749. * src/BtContext.h
  6750. * src/RequestGroup.cc
  6751. * src/Sequence.h
  6752. * src/download_helper.cc
  6753. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6754. Made the upper value of --max-concurrent-downloads options unlimited.
  6755. * src/OptionHandlerFactory.cc
  6756. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6757. Fixed the bug that disk writer is not created even if it shares
  6758. same piece with the preceding file if the length of previous file
  6759. is 0.
  6760. * src/MultiDiskAdaptor.cc
  6761. * test/MultiDiskAdaptorTest.cc
  6762. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6763. In BitTorrent, Open files in read-only mode for hash check. After
  6764. that, re-open file in read/write mode only when the download is
  6765. not finished.
  6766. * src/AbstractDiskWriter.cc
  6767. * src/AbstractDiskWriter.h
  6768. * src/AbstractSingleDiskAdaptor.cc
  6769. * src/AbstractSingleDiskAdaptor.h
  6770. * src/BtCheckIntegrityEntry.cc
  6771. * src/DiskAdaptor.h
  6772. * src/DiskWriter.h
  6773. * src/MultiDiskAdaptor.cc
  6774. * src/MultiDiskAdaptor.h
  6775. * src/RequestGroup.cc
  6776. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6777. Added --http-auth-challenge option. If it is set to true(by
  6778. default), aria2 sends HTTP authorization header only when it is
  6779. requested by the server. If false is set, then authorization
  6780. header is always sent to the server. This is useful for servers
  6781. that don't respond 401 code when authentication is required.
  6782. There is an exception: if username and password are embedded in
  6783. URI, authorization header is always sent to the server regardless
  6784. of this option.
  6785. * src/AuthConfigFactory.cc
  6786. * src/HttpSkipResponseCommand.cc
  6787. * src/OptionHandlerFactory.cc
  6788. * src/prefs.cc
  6789. * src/prefs.h
  6790. * src/usage_text.h
  6791. * test/AuthConfigFactoryTest.cc
  6792. * test/HttpRequestTest.cc
  6793. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6794. * Release 1.2.0
  6795. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6796. Updated Spanish, Ukrainian, Russian and Japanese translations.
  6797. Thanks to all translators.
  6798. * po/es.po
  6799. * po/ja.po
  6800. * po/ru.po
  6801. * po/uk.po
  6802. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6803. Call deleteSocketForReadCheck() before socket is closed.
  6804. * src/HttpListenCommand.cc
  6805. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6806. Defined virtual destructor for BObject.
  6807. * src/bencode.h
  6808. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6809. Rewritten BDE to make it efficient.
  6810. * src/bencode.cc
  6811. * src/bencode.h
  6812. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6813. Removed function throw list.
  6814. * src/bencode.cc
  6815. * src/bencode.h
  6816. * test/BencodeTest.cc
  6817. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6818. Enclosed all URLs in double quotes in command-line examples.
  6819. * doc/aria2c.1.txt
  6820. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6821. Updated reference/see also section.
  6822. * README
  6823. * doc/aria2c.1.txt
  6824. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6825. Reorganized man page based on man man-pages.
  6826. * doc/aria2c.1.txt
  6827. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6828. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  6829. because same documents are available in man page. Added
  6830. References section.
  6831. * README
  6832. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6833. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  6834. PERFORMANCE PROFILE section.
  6835. * doc/aria2c.1.txt
  6836. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6837. Rewritten the section for configuration file.
  6838. * README
  6839. * doc/aria2c.1.txt
  6840. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6841. Fixed the segmentation fault during execution of choking algorithm
  6842. in leecher state because of broken compare operator
  6843. implementation.
  6844. * src/BtLeecherStateChoke.cc
  6845. * src/BtLeecherStateChoke.h
  6846. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6847. Open file in binary mode.
  6848. * src/CookieStorage.cc
  6849. * src/DHTSetup.cc
  6850. * src/DHTUtil.cc
  6851. * src/Netrc.cc
  6852. * src/NsCookieParser.cc
  6853. * src/ProtocolDetector.cc
  6854. * src/RequestGroupMan.cc
  6855. * src/Signature.cc
  6856. * src/bencode.cc
  6857. * src/download_helper.cc
  6858. * src/option_processing.cc
  6859. * test/CookieParserTest.cc
  6860. * test/DefaultBtProgressInfoFileTest.cc
  6861. * test/FileTest.cc
  6862. * test/GZipDecoderTest.cc
  6863. * test/RequestGroupManTest.cc
  6864. * test/SignatureTest.cc
  6865. * test/SingleFileAllocationIteratorTest.cc
  6866. * test/UriListParserTest.cc
  6867. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6868. Removed operator[] because it is ambiguous with built-in []
  6869. operator.
  6870. * src/array_fun.h
  6871. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6872. Fixed compile error
  6873. * src/OptionParser.cc
  6874. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6875. Added missing call to arrayWrapperConst
  6876. * test/array_funTest.cc
  6877. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6878. Use array_wrapper instead of array_ptr.
  6879. * src/DHTRoutingTableDeserializer.cc
  6880. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6881. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6882. * src/array_fun.h
  6883. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6884. Added array_wrapper template.
  6885. * src/array_fun.h
  6886. * test/array_funTest.cc
  6887. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6888. Use operator T* of array_ptr.
  6889. * src/OptionParser.cc
  6890. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6891. Use localhost instead of 127.0.0.1
  6892. * test/FtpConnectionTest.cc
  6893. * test/MSEHandshakeTest.cc
  6894. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6895. Added operator T*
  6896. * src/array_fun.h
  6897. * test/array_funTest.cc
  6898. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6899. Use dynamically allocated char array to detect memory access
  6900. violation.
  6901. * src/DHTRoutingTableDeserializer.cc
  6902. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6903. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6904. defined.
  6905. * src/PeerMessageUtil.cc
  6906. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6907. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6908. * configure.ac
  6909. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6910. Added a check to see struct sockaddr_in has sin_len member.
  6911. * configure.ac
  6912. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6913. Fixed buffer overrun.
  6914. * src/DHTRoutingTableDeserializer.cc
  6915. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6916. Added LL for long long int constant.
  6917. * test/FtpConnectionTest.cc
  6918. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6919. Casted to unsigned int to suppress compiler warning on netbsd.
  6920. * src/BtRuntime.h
  6921. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6922. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6923. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6924. type time_t.
  6925. * src/SimpleLogger.cc
  6926. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6927. Added test for FtpConnection::receiveSizeResponse().
  6928. * test/FtpConnectionTest.cc
  6929. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6930. Fix epoll error on the old kernel 2.6.8 or ealier.
  6931. * src/EpollEventPoll.cc
  6932. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6933. Use Util::parseLLInt instead of sscanf for portability. The
  6934. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6935. * src/FtpConnection.cc
  6936. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6937. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6938. block. It should not filter anything.
  6939. * src/BitfieldMan.cc
  6940. * src/ConsoleStatCalc.cc
  6941. * test/BitfieldManTest.cc
  6942. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6943. Fixed the bug that the boolean options that don't take arguments
  6944. don't work.
  6945. * src/OptionHandlerImpl.h
  6946. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6947. Fixed broken selected file BitTorrent download.
  6948. * src/MultiDiskAdaptor.cc
  6949. * test/MultiDiskAdaptorTest.cc
  6950. * test/MultiFileAllocationIteratorTest.cc
  6951. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6952. Fixed #define guard for EpollEventPoll
  6953. * src/EpollEventPoll.h
  6954. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6955. Wait 2 seconds. 1 second is sometimes not enough.
  6956. * test/TimeSeedCriteriaTest.cc
  6957. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6958. Use localhost instead of 127.0.0.1.
  6959. * test/DHTConnectionImplTest.cc
  6960. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6961. Suppressed compiler warning.
  6962. * src/AdaptiveURISelector.cc
  6963. * src/DefaultPieceStorage.cc
  6964. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6965. Defined virtual destructor.
  6966. * src/MetalinkParserState.h
  6967. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6968. Give NULL for second argument of getaddrinfo instead of "0".
  6969. * src/NameResolver.cc
  6970. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6971. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6972. included strptime doesn't parse data for this format.
  6973. * src/FtpConnection.cc
  6974. * test/FtpConnectionTest.cc
  6975. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6976. Removed tests giving -1 for unsigned argument.
  6977. * test/SingleFileDownloadContextTest.cc
  6978. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6979. Don't use sha256 in tests because it might not be supported by the
  6980. SSL library.
  6981. * test/MetalinkProcessorTest.cc
  6982. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6983. Removed tests giving -1 for unsigned argument.
  6984. * test/AlphaNumberDecoratorTest
  6985. * test/BitfieldManTest.cc
  6986. * test/DefaultBtContextTest.cc
  6987. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6988. Fixed compile error without libcares when epoll is available.
  6989. * src/EpollEventPoll.cc
  6990. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6991. Included fstream instead of iostream.
  6992. * test/SignatureTest.cc
  6993. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6994. Removed #include <algorithm>
  6995. * test/RequestGroupTest.cc
  6996. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6997. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6998. using RequestGroup::extractURIResult().
  6999. * src/AdaptiveURISelector.cc
  7000. * src/RequestGroup.cc
  7001. * src/RequestGroup.h
  7002. * test/RequestGroupTest.cc
  7003. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7004. Added tests for array_ptr.
  7005. * test/array_funTest.cc
  7006. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7007. Don't send ip parameter to a tracker if ip parameter is empty
  7008. string.
  7009. * src/DefaultBtAnnounce.cc
  7010. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7011. Adjusted line feed.
  7012. * src/version_usage.cc
  7013. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7014. Print tags, possible values when OptionHandlerException is caught.
  7015. * src/option_processing.cc
  7016. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7017. Changed the message for FatalException.
  7018. * src/OptionParser.cc
  7019. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7020. Documented --bt-external-ip option in man page. Updated man pages
  7021. for --proxy-method option.
  7022. * doc/aria2c.1.txt
  7023. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7024. Use GET method for FTP via HTTP proxy.
  7025. * src/FtpInitiateConnectionCommand.cc
  7026. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7027. Changed the default value of --proxy-method option from 'tunnel'
  7028. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  7029. option.
  7030. * src/AbstractCommand.cc
  7031. * src/AbstractCommand.h
  7032. * src/FtpInitiateConnectionCommand.cc
  7033. * src/HttpDownloadCommand.cc
  7034. * src/HttpInitiateConnectionCommand.cc
  7035. * src/HttpInitiateConnectionCommand.h
  7036. * src/OptionHandlerFactory.cc
  7037. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7038. Initialized _logger
  7039. * src/SelectEventPoll.cc
  7040. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7041. Defined a copy constructor for the same type.
  7042. * src/SharedHandle.h
  7043. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7044. Added OptionParser::parseArg() which internally uses getopt_long
  7045. to parse command-line options. All command-line options are now
  7046. configured by OptionHandler. No manual editing of struct option*
  7047. is required any more.
  7048. * src/NameMatchOptionHandler.h
  7049. * src/OptionHandler.h
  7050. * src/OptionHandlerFactory.cc
  7051. * src/OptionHandlerImpl.h
  7052. * src/OptionParser.cc
  7053. * src/OptionParser.h
  7054. * src/array_fun.h
  7055. * src/main.cc
  7056. * src/option_processing.cc
  7057. * test/OptionHandlerTest.cc
  7058. * test/OptionParserTest.cc
  7059. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7060. Fixed configure error with --disable-epoll
  7061. * configure.ac
  7062. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7063. Fixed compile error when HAVE_EPOLL is not defined.
  7064. Fixed linker error on bigendian systems.
  7065. * src/SocketCore.cc
  7066. * src/SocketCore.h
  7067. * test/DefaultBtProgressInfoFileTest.cc
  7068. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7069. Added --bt-external-ip option. You can specify the external IP
  7070. address to report to a BitTorrent tracker. Although this function
  7071. is named 'external', it can accept any kind of IP addresses.
  7072. * src/DefaultBtAnnounce.cc
  7073. * src/OptionHandlerFactory.cc
  7074. * src/option_processing.cc
  7075. * src/prefs.cc
  7076. * src/prefs.h
  7077. * src/usage_text.h
  7078. * test/DefaultBtAnnounceTest.cc
  7079. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7080. Extracted the algorithm to find the longest incremental sequence
  7081. as max_sequence template.
  7082. * src/LongestSequencePieceSelector.cc
  7083. * src/a2algo.h
  7084. * test/Makefile.am
  7085. * test/a2algoTest.cc
  7086. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7087. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  7088. * src/usage_text.h
  7089. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7090. Updated doc for --uri-selector, --http-server-listen-port and
  7091. --enable-http-server option. Documented --event-poll option.
  7092. * doc/aria2c.1.txt
  7093. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7094. Updated doc for --enable-http-server.
  7095. * src/usage_text.h
  7096. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7097. Documented --http-server-listen-port and --enable-http-server in
  7098. man page.
  7099. * doc/aria2c.1.txt
  7100. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7101. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  7102. translations. Thanks to all translators.
  7103. * po/es.po
  7104. * po/id.po
  7105. * po/it.po
  7106. * po/ru.po
  7107. * po/uk.po
  7108. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7109. Bump up version number to 1.2.0
  7110. * configure.ac
  7111. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7112. BtContext::getAnnounceTiers() now returns const reference.
  7113. * src/BtContext.h
  7114. * src/DefaultBtContext.cc
  7115. * src/DefaultBtContext.h
  7116. * test/MockBtContext.h
  7117. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7118. Change the number of retries for tracker request based on the
  7119. number of available tracker in a torrent file.
  7120. * src/TrackerWatcherCommand.cc
  7121. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7122. Added _maxTries property to RequestGroup and assign the option
  7123. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  7124. RequestGroup::getMaxTries() instead of
  7125. Option::getAsInt(PREF_MAX_TRIES).
  7126. * src/AbstractCommand.cc
  7127. * src/RequestGroup.cc
  7128. * src/RequestGroup.h
  7129. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7130. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  7131. Mandriva. I modified the patch: make RequestGroup have the
  7132. timeout value and AdaptiveURISelector directly modifies that
  7133. value.
  7134. * src/AbstractCommand.cc
  7135. * src/AdaptiveURISelector.cc
  7136. * src/AdaptiveURISelector.h
  7137. * src/FtpNegotiationCommand.cc
  7138. * src/RequestGroup.cc
  7139. * src/RequestGroup.h
  7140. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7141. Fixed compiler warning
  7142. * test/IteratableChecksumValidatorTest.cc
  7143. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7144. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  7145. integrated downloads. This PieceSelector subclass finds the
  7146. longest continuous sequence in the available missing pieces and
  7147. selects the last index of such sequence. This makes HTTP/FTP
  7148. connections less interrupted by the pieces obtained by BitTorrent
  7149. peers.
  7150. * src/DefaultPieceStorage.cc
  7151. * src/DefaultPieceStorage.h
  7152. * src/LongestSequencePieceSelector.cc
  7153. * src/LongestSequencePieceSelector.h
  7154. * src/Makefile.am
  7155. * src/PieceSelector.h
  7156. * src/RarestPieceSelector.h
  7157. * src/RequestGroup.cc
  7158. * test/BtDependencyTest.cc
  7159. * test/DefaultPieceStorageTest.cc
  7160. * test/IteratableChecksumValidatorTest.cc
  7161. * test/LongestSequencePieceSelectorTest.cc
  7162. * test/Makefile.am
  7163. * test/SegmentManTest.cc
  7164. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7165. Fixed the bug that the average speed is wrong in
  7166. http/ftp/BitTorrent integrated download. Only the download bytes
  7167. in BitTorrent were considered.
  7168. * src/RequestGroup.cc
  7169. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7170. Choose port for BitTorrent/DHT randomly from the specified range.
  7171. * src/DHTConnectionImpl.cc
  7172. * src/PeerListenCommand.cc
  7173. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7174. Send HTTP Authorization header only if it is requested by the
  7175. server(response 401). There are some exceptions. The authorization
  7176. header for proxy is always sent if it is available without request
  7177. by the server. If username/password is specified in the URI, it
  7178. is immediately sent to the server without request by the server.
  7179. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  7180. SharedHandle<AuthConfig>().
  7181. NetrcAuthResolver::resolveAuthConfig() returns
  7182. SharedHandle<AuthConfig>() if no AuthConfig is available.
  7183. * src/AbstractAuthResolver.cc
  7184. * src/AbstractProxyRequestCommand.cc
  7185. * src/AuthConfigFactory.cc
  7186. * src/AuthConfigFactory.h
  7187. * src/HttpConnection.cc
  7188. * src/HttpRequest.cc
  7189. * src/HttpRequest.h
  7190. * src/HttpResponse.cc
  7191. * src/HttpResponseCommand.cc
  7192. * src/HttpSkipResponseCommand.cc
  7193. * test/AuthConfigFactoryTest.cc
  7194. * test/HttpRequestTest.cc
  7195. * test/HttpResponseTest.cc
  7196. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7197. Remove leading "--" from help keyword and a substring after "="
  7198. from help keyword, so that one can query options by '-h--max-' or
  7199. '-hmax-peers=10'.
  7200. * src/option_processing.cc
  7201. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7202. Rewritten PStringVisitor and its implementation.
  7203. * src/PStringBuildVisitor.cc
  7204. * src/PStringBuildVisitor.h
  7205. * src/PStringDatum.h
  7206. * src/PStringNumLoop.h
  7207. * src/PStringSegment.cc
  7208. * src/PStringSegment.h
  7209. * src/PStringSelect.h
  7210. * src/PStringVisitor.h
  7211. * src/download_helper.cc
  7212. * test/PStringBuildVisitorTest.cc
  7213. * test/ParameterizedStringParserTest.cc
  7214. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7215. Persist connection between the built-in HTTP server and a client
  7216. if a client supports keep-alive. Fixed the bug that aria2 exits
  7217. when the HTTP server receives EOF from a client.
  7218. * src/HttpServer.cc
  7219. * src/HttpServer.h
  7220. * src/HttpServerCommand.cc
  7221. * src/HttpServerCommand.h
  7222. * src/HttpServerResponseCommand.cc
  7223. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7224. Added experimental built-in HTTP server. Currently, when a client
  7225. accesses to the server, it responds with the current download
  7226. progress. By default, it is disabled. To enable the server, give
  7227. --enable-http-server option. To change the default port number
  7228. for the server to listen to, use --http-server-listen-port option.
  7229. The response HTML is very simple and refreshes it self each 1
  7230. second. Because of this refresh, you see flicker in normal web
  7231. browser such as Firefox. I recommend to use console-based browser
  7232. such as elinks, w3m. To connect to the server, run 'elinks
  7233. http://localhost:6800/' while running aria2. Please replace port
  7234. number '6800'(which is default) with your preference.
  7235. * src/DownloadEngineFactory.cc
  7236. * src/HttpHeader.cc
  7237. * src/HttpHeader.h
  7238. * src/HttpHeaderProcessor.cc
  7239. * src/HttpHeaderProcessor.h
  7240. * src/HttpListenCommand.cc
  7241. * src/HttpListenCommand.h
  7242. * src/HttpServer.cc
  7243. * src/HttpServer.h
  7244. * src/HttpServerCommand.cc
  7245. * src/HttpServerCommand.h
  7246. * src/HttpServerResponseCommand.cc
  7247. * src/HttpServerResponseCommand.h
  7248. * src/Makefile.am
  7249. * src/OptionHandlerFactory.cc
  7250. * src/Util.cc
  7251. * src/Util.h
  7252. * src/help_tags.h
  7253. * src/option_processing.cc
  7254. * src/prefs.cc
  7255. * src/prefs.h
  7256. * src/usage_text.h
  7257. * test/HttpHeaderProcessorTest.cc
  7258. * test/UtilTest.cc
  7259. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7260. Removed.
  7261. * src/CheckIntegrityMan.cc
  7262. * src/FileAllocationMan.cc
  7263. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7264. Made (piece) hash check sequential for each RequestGroup because
  7265. simultaneous hash check is slower than sequential execution.
  7266. * src/CheckIntegrityCommand.cc
  7267. * src/CheckIntegrityDispatcherCommand.cc
  7268. * src/CheckIntegrityDispatcherCommand.h
  7269. * src/CheckIntegrityMan.h
  7270. * src/ConsoleStatCalc.cc
  7271. * src/DownloadCommand.cc
  7272. * src/DownloadEngine.cc
  7273. * src/DownloadEngine.h
  7274. * src/DownloadEngineFactory.cc
  7275. * src/Makefile.am
  7276. * src/Makefile.in
  7277. * src/RequestGroup.cc
  7278. * src/StatCalc.h
  7279. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7280. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  7281. SequentialDispatcherCommand.
  7282. * src/FileAllocationDispatcherCommand.cc
  7283. * src/SequentialDispatcherCommand.h
  7284. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7285. Rewritten FileAllocationDispatcherCommand using brand new
  7286. SequentialDispatcherCommand.
  7287. * src/DownloadEngineFactory.cc
  7288. * src/FileAllocationCommand.cc
  7289. * src/FileAllocationDispatcherCommand.cc
  7290. * src/FileAllocationDispatcherCommand.h
  7291. * src/Makefile.am
  7292. * src/SequentialDispatcherCommand.h
  7293. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7294. Replaced FileAllocationMan with
  7295. SequentialPicker<FileAllocationEntry>.
  7296. * src/BtCheckIntegrityEntry.cc
  7297. * src/ConsoleStatCalc.cc
  7298. * src/DownloadEngine.cc
  7299. * src/DownloadEngine.h
  7300. * src/DownloadEngineFactory.cc
  7301. * src/FileAllocationCommand.cc
  7302. * src/FileAllocationDispatcherCommand.cc
  7303. * src/FileAllocationMan.h
  7304. * src/Makefile.am
  7305. * src/SequentialPicker.h
  7306. * src/StatCalc.h
  7307. * src/StreamCheckIntegrityEntry.cc
  7308. * test/Makefile.am
  7309. * test/SequentialPickerTest.cc
  7310. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7311. Added doc for adaptive URI selector.
  7312. * doc/aria2c.1.txt
  7313. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7314. Added doc for adaptive URI selector.
  7315. * src/usage_text.h
  7316. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7317. Added doc for --bt-max-peers option.
  7318. * doc/aria2c.1.txt
  7319. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7320. Added doc for --bt-hash-check-seed option.
  7321. * doc/aria2c.1.txt
  7322. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7323. Documented exit codes.
  7324. * doc/aria2c.1.txt
  7325. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7326. Added --bt-max-peers option to specify the maximum number of peers
  7327. per torrent. 0 means unlimited number of peers.
  7328. * src/ActivePeerConnectionCommand.cc
  7329. * src/BtRuntime.h
  7330. * src/DefaultPeerStorage.cc
  7331. * src/DefaultPeerStorage.h
  7332. * src/OptionHandlerFactory.cc
  7333. * src/RequestGroup.cc
  7334. * src/option_processing.cc
  7335. * src/prefs.cc
  7336. * src/prefs.h
  7337. * src/usage_text.h
  7338. * test/DefaultPeerStorageTest.cc
  7339. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7340. Added --bt-hash-check-seed option. If true is given to this
  7341. option, after hash check using --check-integrity option and file
  7342. is complete, continue to seed file. If you want to check file and
  7343. download it only when it is damaged or incomplete, set this option
  7344. to false. This option has effect only on BitTorrent download.
  7345. The default value is true(This is the same behavior with the
  7346. previous release).
  7347. * src/BtCheckIntegrityEntry.cc
  7348. * src/OptionHandlerFactory.cc
  7349. * src/option_processing.cc
  7350. * src/prefs.cc
  7351. * src/prefs.h
  7352. * src/usage_text.h
  7353. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7354. Updated copyright year.
  7355. * src/version_usage.cc
  7356. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7357. Rewritten the usage text for --bt-request-peer-speed-limit option.
  7358. * doc/aria2c.1.txt
  7359. * src/usage_text.h
  7360. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7361. Made the max value of split option unlimited.
  7362. * doc/aria2c.1.txt
  7363. * src/OptionHandlerFactory.cc
  7364. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7365. Fixed compile warning/error.
  7366. * src/DownloadResult.h
  7367. * src/HttpDownloadCommand.cc
  7368. * src/ServerStat.cc
  7369. * test/RequestGroupTest.cc
  7370. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7371. Added --event-poll option to select the method for polling events.
  7372. The available methods are "select" and "epoll". "epoll" is
  7373. available on Linux only. The earlier release has the compile
  7374. option to choose from these methods.
  7375. * configure.ac
  7376. * src/RequestGroupMan.cc
  7377. * src/OptionHandlerFactory.cc
  7378. * src/EpollEventPoll.h
  7379. * src/StreamFileAllocationEntry.cc
  7380. * src/a2io.h
  7381. * src/SelectEventPoll.h
  7382. * src/option_processing.cc
  7383. * src/prefs.h
  7384. * src/EpollEventPoll.cc
  7385. * src/EventPoll.h
  7386. * src/SocketCore.h
  7387. * src/Makefile.am
  7388. * src/main.cc
  7389. * src/DownloadEngine.h
  7390. * src/SelectEventPoll.cc
  7391. * src/DownloadEngine.cc
  7392. * src/SocketCore.cc
  7393. * src/DownloadEngineFactory.cc
  7394. * src/Makefile.in
  7395. * src/prefs.cc
  7396. * src/usage_text.h
  7397. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7398. Included RecoverableException.h from main.cc
  7399. * src/main.cc
  7400. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7401. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  7402. now returns last error encountered in the HTTP/FTP downloads as a
  7403. exit status value. If all downloads finished successfully, aria2
  7404. returns 0. The error code is defined in src/DownloadResult.h.
  7405. The error occurred in the download currently in progress is not
  7406. reported as a last error. If no error has encountered but there
  7407. are in progress or waiting downloads, aria2 returns 7.
  7408. * src/AbstractCommand.cc
  7409. * src/DlAbortEx.h
  7410. * src/DlRetryEx.h
  7411. * src/DownloadCommand.cc
  7412. * src/DownloadFailureException.h
  7413. * src/DownloadResult.h
  7414. * src/FtpNegotiationCommand.cc
  7415. * src/HttpSkipResponseCommand.cc
  7416. * src/Makefile.am
  7417. * src/MultiUrlRequestInfo.cc
  7418. * src/MultiUrlRequestInfo.h
  7419. * src/RecoverableException.h
  7420. * src/RequestGroup.cc
  7421. * src/RequestGroup.h
  7422. * src/RequestGroupMan.cc
  7423. * src/RequestGroupMan.h
  7424. * src/URIResult.cc
  7425. * src/URIResult.h
  7426. * src/main.cc
  7427. * src/option_processing.cc
  7428. * test/RequestGroupTest.cc
  7429. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7430. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  7431. patch adds AdaptiveURISelector, which selects one of the bests
  7432. mirrors for first and reserved connections. For supplementary
  7433. ones, it returns mirrors which has not been tested yet, and if
  7434. each of them already tested, returns mirrors which has to be
  7435. tested again. Otherwise, it doesn't return anymore mirrors.
  7436. * src/AdaptiveURISelector.cc
  7437. * src/AdaptiveURISelector.h
  7438. * src/FtpNegotiationCommand.cc
  7439. * src/HttpResponseCommand.cc
  7440. * src/Makefile.am
  7441. * src/Makefile.in
  7442. * src/OptionHandlerFactory.cc
  7443. * src/RequestGroup.cc
  7444. * src/RequestGroup.h
  7445. * src/RequestGroupMan.cc
  7446. * src/ServerStat.cc
  7447. * src/ServerStat.h
  7448. * src/ServerStatMan.cc
  7449. * src/SpeedCalc.cc
  7450. * src/URISelector.h
  7451. * src/prefs.cc
  7452. * src/prefs.h
  7453. * test/RequestGroupManTest.cc
  7454. * test/ServerStatManTest.cc
  7455. * test/ServerStatTest.cc
  7456. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7457. Fixed unit test error.
  7458. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  7459. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7460. * Release 1.1.2
  7461. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7462. Updated Russian translation. Thanks to the translators.
  7463. * po/ru.po
  7464. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7465. Added the description of --use-head option to man page.
  7466. * doc/aria2c.1.txt
  7467. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7468. Bump up version number to 1.1.2
  7469. * configure.ac
  7470. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7471. Added --use-head option to toggle whether HEAD method should be
  7472. used in the first HTTP request. By default aria2 uses HEAD method
  7473. as the first request. When the server doesn't recognize HEAD, then
  7474. give aria2 --use-head=false to force aria2 to use GET method
  7475. instead.
  7476. * src/OptionHandlerFactory.cc
  7477. * src/RequestGroupMan.cc
  7478. * src/option_processing.cc
  7479. * src/prefs.cc
  7480. * src/prefs.h
  7481. * src/usage_text.h
  7482. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7483. Fixed the bug that BitTorrent download doesn't finish when REJECT
  7484. message is received before CHOKE message. The old implementation
  7485. doen't clear the use-bit of the piece when recieved REJECT
  7486. message.
  7487. * src/DefaultBtMessageDispatcher.cc
  7488. * test/DefaultBtMessageDispatcherTest.cc
  7489. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7490. * Release 1.1.1
  7491. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7492. Bump up version number to 1.1.1.
  7493. * configure.ac
  7494. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7495. Fixed the bug that --summary-interval=0 doesn't work. The summary
  7496. is printed repeatedly.
  7497. * src/ConsoleStatCalc.cc
  7498. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7499. * Release 1.1.0
  7500. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7501. Added ifdef clause for conditional compilation.
  7502. * src/main.cc
  7503. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7504. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  7505. translations. Thanks to all translators.
  7506. * po/ja.po
  7507. * po/ru.po
  7508. * po/uk.po
  7509. * po/zh_CN.po
  7510. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7511. Added the preceding ">>> " before the message "Printing the
  7512. contents of file..." to make the output more readable.
  7513. * src/main.cc
  7514. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7515. Added try-catch block in the loop in showFiles() to continue the
  7516. operation even if the exception occurred in one file.
  7517. * src/main.cc (showFiles)
  7518. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7519. Made messages in showFiles() translatable.
  7520. * po/aria2.pot
  7521. * src/main.cc
  7522. * src/message.h
  7523. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7524. Print the contents of Torrent/Metalink files are printed without
  7525. -T/-M options.
  7526. * src/main.cc
  7527. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7528. Escaped '--' with '\--'
  7529. * README
  7530. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7531. Updated "How to build" section in README. Mentioned about
  7532. --with-ca-bundle compile option.
  7533. * README
  7534. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7535. Bump up version number to 1.1.0.
  7536. * configure.ac
  7537. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7538. Added a note for --dht-listen-port option.
  7539. * doc/aria2c.1.txt
  7540. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7541. Update doc for --realtime-chunk-checksum option.
  7542. * doc/aria2c.1.txt
  7543. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7544. Update doc for --realtime-chunk-checksum option.
  7545. * src/usage_text.h
  7546. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7547. Updated French, Japanese, Russian and Ukrainian translations.
  7548. Thanks to all translators.
  7549. * po/fr.po
  7550. * po/ja.po
  7551. * po/ru.po
  7552. * po/uk.po
  7553. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7554. Renamed aria2c.pot to aria2.pot
  7555. * po/aria2.pot
  7556. * po/aria2c.pot: Removed.
  7557. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7558. Removed MetaEntry.h
  7559. * src/Makefile.am
  7560. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7561. Rename file by appending digits if a local file exists and its
  7562. file size is larger than that of remote file with --continue
  7563. option. The old implementation just throws exception in such case.
  7564. * src/RequestGroup.cc
  7565. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7566. Fixed the bug that download progress summary is not printed in the
  7567. interval specified by the option.
  7568. * src/ConsoleStatCalc.cc
  7569. * src/ConsoleStatCalc.h
  7570. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7571. Fixed compiler warning
  7572. * src/Cookie.cc
  7573. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7574. Fixed the cookie implementation based on RFC2965.
  7575. Now if a value in domain field is not started with dot, then
  7576. prepend dot. That means a cookie with domain=sf.net is sent to
  7577. wiki.sf.net.
  7578. * src/Cookie.cc
  7579. * test/CookieParserTest.cc
  7580. * test/CookieStorageTest.cc
  7581. * test/CookieTest.cc
  7582. * test/NsCookieParserTest.cc
  7583. * test/Sqlite3MozCookieParserTest.cc
  7584. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7585. Fixed the bug that causes corrupted downloads if HTTP pipelining
  7586. is enabled and the server doesn't support keep-alive.
  7587. * src/AbstractCommand.cc
  7588. * src/DownloadCommand.cc
  7589. * src/HttpDownloadCommand.cc
  7590. * src/HttpDownloadCommand.h
  7591. * src/HttpResponseCommand.cc
  7592. * src/Request.cc
  7593. * src/Request.h
  7594. * test/RequestTest.cc
  7595. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7596. Removed Dictionary/List/Data and its related classes.
  7597. * src/BencodeVisitor.cc: Removed.
  7598. * src/BencodeVisitor.h: Removed.
  7599. * src/Data.cc: Removed.
  7600. * src/Data.h: Removed.
  7601. * src/Dictionary.cc: Removed.
  7602. * src/Dictionary.h: Removed.
  7603. * src/List.cc: Removed.
  7604. * src/List.h: Removed.
  7605. * src/Makefile.am
  7606. * src/MetaEntry.h: Removed.
  7607. * src/MetaEntryVisitor.h: Removed.
  7608. * src/MetaFileUtil.cc: Removed.
  7609. * src/MetaFileUtil.h: Removed.
  7610. * test/BencodeVisitorTest.cc: Removed.
  7611. * test/DataTest.cc: Removed.
  7612. * test/DictionaryTest.cc: Removed.
  7613. * test/ListTest.cc: Removed.
  7614. * test/Makefile.am
  7615. * test/MetaFileUtilTest.cc: Removed.
  7616. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7617. Removed include of MetaEntry.h
  7618. * test/DHTMessageTrackerEntryTest.cc
  7619. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7620. Use BDE instead of Dictionary/List/Data.
  7621. * src/AnnounceList.cc
  7622. * src/AnnounceList.h
  7623. * test/AnnounceListTest.cc
  7624. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7625. Use BDE instead of Dictionary/List/Data.
  7626. * src/DHTAbstractMessage.cc
  7627. * src/DHTAbstractMessage.h
  7628. * src/DHTAnnouncePeerMessage.cc
  7629. * src/DHTAnnouncePeerMessage.h
  7630. * src/DHTAnnouncePeerReplyMessage.cc
  7631. * src/DHTAnnouncePeerReplyMessage.h
  7632. * src/DHTFindNodeMessage.cc
  7633. * src/DHTFindNodeMessage.h
  7634. * src/DHTFindNodeReplyMessage.cc
  7635. * src/DHTFindNodeReplyMessage.h
  7636. * src/DHTGetPeersMessage.cc
  7637. * src/DHTGetPeersMessage.h
  7638. * src/DHTGetPeersReplyMessage.cc
  7639. * src/DHTGetPeersReplyMessage.h
  7640. * src/DHTMessageFactory.h
  7641. * src/DHTMessageFactoryImpl.cc
  7642. * src/DHTMessageFactoryImpl.h
  7643. * src/DHTMessageReceiver.cc
  7644. * src/DHTMessageTracker.cc
  7645. * src/DHTMessageTracker.h
  7646. * src/DHTPingMessage.cc
  7647. * src/DHTPingMessage.h
  7648. * src/DHTPingReplyMessage.cc
  7649. * src/DHTPingReplyMessage.h
  7650. * src/DHTQueryMessage.cc
  7651. * src/DHTQueryMessage.h
  7652. * src/DHTResponseMessage.cc
  7653. * src/DHTResponseMessage.h
  7654. * test/DHTAnnouncePeerMessageTest.cc
  7655. * test/DHTAnnouncePeerReplyMessageTest.cc
  7656. * test/DHTFindNodeMessageTest.cc
  7657. * test/DHTFindNodeReplyMessageTest.cc
  7658. * test/DHTGetPeersMessageTest.cc
  7659. * test/DHTGetPeersReplyMessageTest.cc
  7660. * test/DHTMessageFactoryImplTest.cc
  7661. * test/DHTMessageTrackerTest.cc
  7662. * test/DHTPingMessageTest.cc
  7663. * test/DHTPingReplyMessageTest.cc
  7664. * test/MockDHTMessageFactory.h
  7665. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7666. Added tests the case where length < 0 is specified.
  7667. * test/BencodeTest.cc
  7668. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7669. Fixed memory leak in decoderawstring()
  7670. * src/bencode.cc
  7671. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7672. Added missing #ifdef guard. Added uc() function for String and
  7673. removeKey() for Dict.
  7674. * src/bencode.cc
  7675. * src/bencode.h
  7676. * test/BencodeTest.cc
  7677. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7678. Use BDE instead of Dictionary/List/Data.
  7679. * src/HandshakeExtensionMessage.cc
  7680. * src/HandshakeExtensionMessage.h
  7681. * test/HandshakeExtensionMessageTest.cc
  7682. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7683. Added --max-overall-upload-limit option. This option limits the
  7684. overall upload speed. Stated in help message that the existing
  7685. --max-upload-limit option limits the upload speed per each
  7686. torrent. Man page is also updated.
  7687. * doc/aria2c.1.txt
  7688. * src/DefaultBtMessageDispatcher.cc
  7689. * src/DefaultBtMessageDispatcher.h
  7690. * src/OptionHandlerFactory.cc
  7691. * src/PeerInteractionCommand.cc
  7692. * src/option_processing.cc
  7693. * src/prefs.cc
  7694. * src/prefs.h
  7695. * src/usage_text.h
  7696. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7697. Use BDE instead of Dictionary/List/Data classes.
  7698. * src/CompactPeerListProcessor.cc
  7699. * src/CompactPeerListProcessor.h
  7700. * src/DefaultBtAnnounce.cc
  7701. * src/DefaultBtContext.cc
  7702. * src/DefaultBtContext.h
  7703. * src/DefaultPeerListProcessor.cc
  7704. * src/DefaultPeerListProcessor.h
  7705. * src/DelegatingPeerListProcessor.cc
  7706. * src/DelegatingPeerListProcessor.h
  7707. * src/PeerListProcessor.h
  7708. * src/UTPexExtensionMessage.cc
  7709. * src/Util.h
  7710. * src/message.h
  7711. * test/DefaultBtContextTest.cc
  7712. * test/DefaultPeerListProcessorTest.cc
  7713. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7714. Added bencode helper functions and BDE class.
  7715. They will replace MetaFileUtil and Dictionary/List/Data classes.
  7716. * src/Makefile.am
  7717. * src/bencode.cc
  7718. * src/bencode.h
  7719. * test/BencodeTest.cc
  7720. * test/Makefile.am
  7721. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7722. Fixed the bug that bad URI is sent to the tracker when the announe
  7723. URI in torrent file includes query.
  7724. * src/DefaultBtAnnounce.cc
  7725. * test/DefaultBtAnnounceTest.cc
  7726. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7727. Added Option::blank().
  7728. Use !Option::blank(name) instead of Option::defined(name) for
  7729. the options that take filename.
  7730. * src/MultiUrlRequestInfo.cc
  7731. * src/Option.cc
  7732. * src/Option.h
  7733. * src/main.cc
  7734. * src/option_processing.cc
  7735. * test/OptionTest.cc
  7736. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7737. Documented the default value of --check-certificate option in man
  7738. page.
  7739. * doc/aria2c.1.txt
  7740. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7741. Enabled --check-certificate by default. Added compile
  7742. time(configure) option --with-ca-bundle to specify CA bundle.
  7743. Warn if --check-certificate=true and --ca-certificate is not
  7744. specified or loading CA certificate is failed.
  7745. * configure.ac
  7746. * src/MultiUrlRequestInfo.cc
  7747. * src/OptionHandlerFactory.cc
  7748. * src/message.h
  7749. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7750. Mentioned https tag in help option.
  7751. * doc/aria2c.1.txt
  7752. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7753. Added `https' tag to help option category. Added https tag to
  7754. --ca-certificate, --certificate, --check-certificate and
  7755. --private-key option.
  7756. * src/OptionHandlerFactory.cc
  7757. * src/help_tags.h
  7758. * src/option_processing.cc
  7759. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7760. Changed the package name from `aria2c' to `aria2' in order to fix
  7761. the packaging issue in Debian and Fedora. The name of the
  7762. executable is not changed.
  7763. * configure.ac
  7764. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7765. Fixed typos
  7766. * src/usage_text.h
  7767. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7768. Fixed typos and updated doc.
  7769. * README
  7770. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7771. Fixed typos
  7772. * doc/aria2c.1.txt
  7773. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7774. Fixed typos
  7775. * src/usage_text.h
  7776. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7777. Print a message when no files to download.
  7778. * src/download_helper.cc
  7779. * src/main.cc
  7780. * src/message.h
  7781. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7782. RFC3986 complied Percent-Encoding(urlencode).
  7783. Use uppercase hexadecimal digits for encoded text instead of lowercase
  7784. ones.
  7785. * src/Request.cc
  7786. * src/Util.cc
  7787. * src/Util.h
  7788. * test/BtHandshakeMessageTest.cc
  7789. * test/DefaultBtAnnounceTest.cc
  7790. * test/DefaultBtContextTest.cc
  7791. * test/RequestTest.cc
  7792. * test/UtilTest.cc
  7793. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7794. Fixed the bug that prevents aria2 from downloading 0-length files
  7795. via HTTP/FTP.
  7796. * src/DefaultBtContext.cc
  7797. * src/DefaultBtContext.h
  7798. * src/DownloadContext.h
  7799. * src/FtpNegotiationCommand.cc
  7800. * src/HttpResponseCommand.cc
  7801. * src/HttpResponseCommand.h
  7802. * src/RequestGroup.cc
  7803. * src/SingleFileDownloadContext.cc
  7804. * src/SingleFileDownloadContext.h
  7805. * test/BtPostDownloadHandlerTest.cc
  7806. * test/MetalinkPostDownloadHandlerTest.cc
  7807. * test/MockBtContext.h
  7808. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7809. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  7810. * src/option_processing.cc
  7811. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7812. Applied aria2-1.0.1-mingw.patch.
  7813. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  7814. mingw.
  7815. Collected 4th and 5th argument types for getsockopt and setsockopt.
  7816. * src/SocketCore.cc
  7817. * src/a2netcompat.h
  7818. * test/SocketCoreTest.cc
  7819. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7820. * Release 1.0.1
  7821. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7822. Updated Ukrainian and Norwegian Nynorsk translations.
  7823. Thanks to all translators.
  7824. * po/nn.po
  7825. * po/uk.po
  7826. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7827. Don't show download result when -S option is used.
  7828. * src/main.cc
  7829. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7830. Bump up version number to 1.0.1
  7831. * configure.ac
  7832. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7833. Closed files after the test cases in MultiDiskWriterTest::
  7834. testResetDiskWriterEntries(). This will fix the unit test error
  7835. in mingw32 build.
  7836. * test/MultiDiskWriterTest.cc
  7837. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7838. Use HEAD method to get file size from HTTP server for segmented
  7839. downloading.
  7840. The request to the BitTorrent Tracker always uses GET method because
  7841. the response of the tracker is small and it doesn't need segmented
  7842. download.
  7843. * src/FtpNegotiationCommand.cc
  7844. * src/HttpRequest.cc
  7845. * src/HttpResponseCommand.cc
  7846. * src/HttpSkipResponseCommand.cc
  7847. * src/RequestGroup.cc
  7848. * src/RequestGroup.h
  7849. * src/TrackerWatcherCommand.cc
  7850. * test/HttpRequestTest.cc
  7851. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7852. Fixed the bug that causes floating exception when -T option is used and
  7853. no URIs are given.
  7854. * src/download_helper.cc
  7855. * test/DownloadHelperTest.cc
  7856. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7857. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7858. errors in MinGW:
  7859. Closed file after saving server stats (RequestGroupMan.cc)
  7860. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7861. Ignored case & handled 2-digit years (strptime.c)
  7862. Added missing suseconds_t definition (a2time.h)
  7863. Fixed socket CLOSE() define (SocketCore.cc)
  7864. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7865. Changed utime() test values from x000 to x00000 as MinGW failed on
  7866. values less than timezone offset from Unix epoch
  7867. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7868. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7869. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7870. handle negative dates (CookieParserTest.cc)
  7871. * src/a2time.h
  7872. * src/FtpConnection.cc
  7873. * src/RequestGroupMan.cc
  7874. * src/SocketCore.cc
  7875. * src/strptime.c
  7876. * test/CookieParserTest.cc
  7877. * test/CopyDiskAdaptorTest.cc
  7878. * test/FileTest.cc
  7879. * test/FtpConnectionTest.cc
  7880. * test/MultiDiskAdaptorTest.cc
  7881. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7882. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7883. * doc/aria2c.1.txt
  7884. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7885. * Release 1.0.0
  7886. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7887. Added '~' to reserved characters.
  7888. * src/Util.cc
  7889. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7890. Do not urlencode Request::url in setUrl() because we want unmodified
  7891. URL using Request::getUrl()
  7892. * src/Request.cc
  7893. * src/Request.h
  7894. * test/RequestTest.cc
  7895. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7896. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7897. Thanks to all translators.
  7898. * po/bg.po
  7899. * po/fr.po
  7900. * po/ja.po
  7901. * po/ru.po
  7902. * po/uk.po
  7903. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7904. Bump up version number to 1.0.0
  7905. * configure.ac
  7906. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7907. Added nosqlite3 build to build_test.sh.
  7908. Renamed noxml as expat.
  7909. * build_test.sh
  7910. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7911. Updated INPUT FILE section.
  7912. * doc/aria2c.1.txt
  7913. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7914. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7915. on big endian systems because test .aria2 files are made for little
  7916. endian systems.
  7917. * test/DefaultBtProgressInfoFileTest.cc
  7918. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7919. Dropped ares support.
  7920. * README
  7921. * configure.ac
  7922. * m4/libares.m4: Removed.
  7923. * src/AsyncNameResolver.cc
  7924. * src/Makefile.am
  7925. * test/Makefile.am
  7926. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7927. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7928. Removed const qualifier from DiskWriter::size().
  7929. * src/AbstractDiskWriter.cc
  7930. * src/AbstractDiskWriter.h
  7931. * src/ByteArrayDiskWriter.cc
  7932. * src/ByteArrayDiskWriter.h
  7933. * src/DiskWriter.h
  7934. * test/ByteArrayDiskWriterTest.cc
  7935. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7936. Fixed the bug that causes segmentation fault/bus error during executing
  7937. choking algorithm while seeding. This is caused by improper
  7938. implementation of compare function which returns inconsistent results
  7939. depending on the timing of last unchoke.
  7940. * src/BtSeederStateChoke.cc
  7941. * src/BtSeederStateChoke.h
  7942. * src/DefaultPeerStorage.cc
  7943. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7944. Removed TODO
  7945. * TODO
  7946. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7947. Added a section that explains how to pass argument to options that
  7948. takes optional arguments with its short form.
  7949. * doc/aria2c.1.txt
  7950. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7951. Added -u for the short form of --max-upload-limit option.
  7952. * doc/aria2c.1.txt
  7953. * src/option_processing.cc
  7954. * src/usage_text.h
  7955. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7956. Added -V for the short form of --check-integrity option.
  7957. Now the argument of --check-integrity option is optional:
  7958. if it is omitted, it is evaluated as true.
  7959. * doc/aria2c.1.txt
  7960. * src/option_processing.cc
  7961. * src/usage_text.h
  7962. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7963. Made the default value of --ftp-pasv option set to true and it can take
  7964. true/false values.
  7965. * src/OptionHandlerFactory.cc
  7966. * src/option_processing.cc
  7967. * src/usage_text.h
  7968. * doc/aria2c.1.txt
  7969. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7970. Given custom random number generator to std::random_shuffle.
  7971. * src/AnnounceList.cc
  7972. * src/BtLeecherStateChoke.cc
  7973. * src/BtSeederStateChoke.cc
  7974. * src/DefaultBtRequestFactory.cc
  7975. * src/MetalinkEntry.cc
  7976. * src/RarestPieceSelector.cc
  7977. * src/SimpleRandomizer.cc
  7978. * src/SimpleRandomizer.h
  7979. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7980. Now the default value of --enable-direct-io is true.
  7981. * src/OptionHandlerFactory.cc
  7982. * doc/aria2c.1.txt
  7983. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7984. Erase peer before executing onReturningPeer and onErasingPeer
  7985. because choking algorithm called from onReturningPeer doesn't
  7986. like erasing peer in the active peer list.
  7987. * src/DefaultPeerStorage.cc
  7988. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7989. Instead of creating special filename in createDownloadResult() if
  7990. inMemoryDownload() is true, now it is done in getFilePath().
  7991. * src/RequestGroup.cc
  7992. * test/RequestGroupTest.cc
  7993. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7994. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7995. processed in memory. This is the fix for previous comment out.
  7996. * src/MemoryBufferPreDownloadHandler.cc
  7997. * src/RequestGroup.cc
  7998. * src/RequestGroup.h
  7999. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8000. Commented out the code which sets virtual directory path "[MEMORY]"
  8001. propagate directory to store to following RequestGroup.
  8002. * src/MemoryBufferPreDownloadHandler.cc
  8003. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8004. Bump up version number to 1.0.0b
  8005. * configure.ac
  8006. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8007. Added input_uris.txt to EXTRA_DIST
  8008. * test/Makefile.am
  8009. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8010. Removed PeerObject.h from Makefile.am
  8011. * src/Makefile.am
  8012. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8013. Avoid slow seeding
  8014. * src/PeerInteractionCommand.cc
  8015. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8016. Updated usage for -i option.
  8017. * src/usage_text.h (TEXT_INPUT_FILE)
  8018. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8019. Added INPUT FILE section to man page.
  8020. Escaped fake URLs.
  8021. * doc/aria2c.1.txt
  8022. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8023. Fixed wrong note position for -o option.
  8024. * doc/aria2c.1.txt
  8025. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8026. Fixed compile error without SSL/XML library.
  8027. * src/DefaultBtProgressInfoFile.cc
  8028. * src/DefaultBtProgressInfoFile.h
  8029. * src/FileMetalinkParserState.cc
  8030. * src/RequestGroup.h
  8031. * src/SocketCore.cc
  8032. * src/SocketCore.h
  8033. * src/VerificationMetalinkParserState.cc
  8034. * src/download_helper.h
  8035. * src/main.cc
  8036. * test/DefaultBtProgressInfoFileTest.cc
  8037. * test/DownloadHelperTest.cc
  8038. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8039. Rewritten URI handling functions. They are now provided as a testable
  8040. functions.
  8041. * src/Makefile.am
  8042. * src/RequestGroup.cc
  8043. * src/RequestGroup.h
  8044. * src/download_helper.cc
  8045. * src/download_helper.h
  8046. * src/main.cc
  8047. * test/DownloadHelperTest.cc
  8048. * test/Makefile.am
  8049. * test/input_uris.txt
  8050. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8051. Quickly terminate commands when ctrl-c is pressed.
  8052. * src/DownloadEngine.cc
  8053. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8054. Quickly terminate idle commands when download finished.
  8055. * src/AbstractCommand.cc
  8056. * src/DownloadCommand.cc
  8057. * src/DownloadEngine.cc
  8058. * src/DownloadEngine.h
  8059. * src/SleepCommand.cc
  8060. * src/SleepCommand.h
  8061. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8062. Added the ability to specify output filename and directory in input
  8063. file.
  8064. Additional parameters are added in the following line of URIs
  8065. with proceeding white space(s), 1 parameter in 1 line.
  8066. The parameter names are the same with the command-line option name
  8067. without proceeding "--". Not all the options are available here:
  8068. at the moment, 'dir' and 'out' options are avialable.
  8069. Please note that out option has no effect against Metalink or BitTorrent
  8070. downloads.
  8071. Example input file:
  8072. http://host/foo-1.1.tar.bz2
  8073. out=foo.tar.bz2
  8074. dir=/tmp/downloads
  8075. http://host/thundermonkey-2.0.tar.bz2
  8076. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  8077. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  8078. thundermonkey-2.0.tar.bz2 is saved as
  8079. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  8080. * src/BtPostDownloadHandler.cc
  8081. * src/Metalink2RequestGroup.cc
  8082. * src/Metalink2RequestGroup.h
  8083. * src/MetalinkPostDownloadHandler.cc
  8084. * src/UriListParser.cc
  8085. * src/UriListParser.h
  8086. * src/main.cc
  8087. * test/Metalink2RequestGroupTest.cc
  8088. * test/UriListParserTest.cc
  8089. * test/filelist1.txt
  8090. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8091. Fixed error when SSL library is not found.
  8092. * configure.ac
  8093. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8094. Cross referenced among -s, -C and -j options.
  8095. Updated usage of -C and -s options.
  8096. * src/usage_text.h
  8097. * doc/aria2c.1.txt
  8098. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8099. Fixed bad cast in 32bit platforms.
  8100. * test/DefaultPieceStorageTest.cc
  8101. (DefaultPieceStorageTest::testGetCompletedLength)
  8102. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8103. Fixed unit test fails on 32bit platforms.
  8104. * test/CookieParserTest.cc
  8105. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8106. Show an average download speed in Download results.
  8107. * src/BtFileAllocationEntry.cc
  8108. * src/DefaultPieceStorage.cc
  8109. * src/DownloadContext.cc
  8110. * src/DownloadContext.h
  8111. * src/DownloadResult.h
  8112. * src/RequestGroup.cc
  8113. * src/RequestGroupMan.cc
  8114. * src/StreamFileAllocationEntry.cc
  8115. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8116. Fixed the bug that metalink file is not processed if Content-Type
  8117. field has a paramter.
  8118. * src/HttpResponse.cc
  8119. * src/HttpResponse.h
  8120. * test/HttpResponseTest.cc
  8121. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8122. Removed unused code.
  8123. * src/DefaultBtAnnounce.cc
  8124. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8125. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  8126. the value larger than DefaultPieceStorage::getTotalLength() when
  8127. in flight pieces are involved.
  8128. * src/DefaultPieceStorage.cc
  8129. * test/DefaultPieceStorageTest.cc
  8130. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8131. Bump up version number to 1.0.0a.
  8132. * configure.ac
  8133. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8134. Updated configure.ac
  8135. * configure.ac
  8136. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8137. Added usege for proxy.
  8138. * doc/aria2c.1.txt
  8139. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8140. Added usage for --ca-certificate, --certificate, --private-key and
  8141. --check-certificate options.
  8142. * doc/aria2c.1.txt
  8143. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8144. Updated man page
  8145. * doc/aria2c.1.txt
  8146. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8147. Added --no-proxy option. It receives comman separated hostname or
  8148. domains to which proxy should not be used.
  8149. aria2 honors the environment variable no_proxy to override no-proxy
  8150. value in configuration file. The user can override the environment
  8151. variable no_proxy with --no-proxy command-line option.
  8152. * src/AbstractCommand.cc
  8153. * src/OptionHandlerFactory.cc
  8154. * src/option_processing.cc
  8155. * src/prefs.cc
  8156. * src/prefs.h
  8157. * src/usage_text.h
  8158. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8159. Added the ability to verify peer in SSL/TLS using given CA certificates.
  8160. The CA certificates are specified in --ca-certificate option.
  8161. By default, the verification is disabled. Use --check-certificate
  8162. option to enable it.
  8163. * src/HttpRequestCommand.cc
  8164. * src/LibgnutlsTLSContext.cc
  8165. * src/LibgnutlsTLSContext.h
  8166. * src/LibsslTLSContext.cc
  8167. * src/LibsslTLSContext.h
  8168. * src/MultiUrlRequestInfo.cc
  8169. * src/OptionHandlerFactory.cc
  8170. * src/SocketCore.cc
  8171. * src/SocketCore.h
  8172. * src/a2functional.h
  8173. * src/message.h
  8174. * src/option_processing.cc
  8175. * src/prefs.cc
  8176. * src/prefs.h
  8177. * src/usage_text.h
  8178. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8179. Added client certificate authentication for SSL/TLS.
  8180. Currently a private key must be decrypted for use with aria2.
  8181. If a user accidentally gives encrypted file to aria2 then following
  8182. thing happens:
  8183. If encrypted private key is given to aria2, it behaves differently
  8184. depending on the ssl library it uses. If aria2 built with openssl then
  8185. openssl prompts the user for password. If aria2 build with gnutls then
  8186. aria2 exists with error at start up.
  8187. * src/DownloadEngineFactory.cc
  8188. * src/MultiUrlRequestInfo.cc
  8189. * src/OptionHandlerFactory.cc
  8190. * src/option_processing.cc
  8191. * src/prefs.cc
  8192. * src/prefs.h
  8193. * src/usage_text.h
  8194. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8195. Introduced TLSContext that holds TLS related data that can be shared
  8196. with multiple SSL connections.
  8197. * src/DownloadEngineFactory.cc
  8198. * src/LibgnutlsTLSContext.cc
  8199. * src/LibgnutlsTLSContext.h
  8200. * src/LibsslTLSContext.cc
  8201. * src/LibsslTLSContext.h
  8202. * src/Makefile.am
  8203. * src/SocketCore.cc
  8204. * src/SocketCore.h
  8205. * src/TLSContext.h
  8206. * src/message.h
  8207. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8208. Fixed the bug that the DiskWriter of the first FileEntry whose
  8209. `needsFileAllocation' property is false is not created
  8210. even if it shares a piece with next FileEntry which `requested' property
  8211. is true.
  8212. Fixed the bug that zero-length file is not created if pre file
  8213. allocation is not done.
  8214. * src/MultiDiskAdaptor.cc
  8215. * src/MultiDiskAdaptor.h
  8216. * test/MultiDiskAdaptorTest.cc
  8217. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Added the ability to pool proxy connection.
  8219. The conneciton in FTP with proxy-method=GET is not pooled.
  8220. Proxy-Connection header will not be sent when sending CONNECT method.
  8221. * src/DownloadEngine.cc
  8222. * src/DownloadEngine.h
  8223. * src/FtpFinishDownloadCommand.cc
  8224. * src/FtpInitiateConnectionCommand.cc
  8225. * src/FtpNegotiationCommand.cc
  8226. * src/HttpDownloadCommand.cc
  8227. * src/HttpInitiateConnectionCommand.cc
  8228. * src/HttpRequest.cc
  8229. * src/HttpRequest.h
  8230. * src/HttpResponse.cc
  8231. * src/HttpSkipResponseCommand.cc
  8232. * test/HttpRequestTest.cc
  8233. * test/HttpResponseTest.cc
  8234. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. Handle date before epoch.
  8236. To create *bad* Time object, call Time::null().
  8237. * src/CookieParser.cc
  8238. * src/FtpConnection.cc
  8239. * src/FtpConnection.h
  8240. * src/FtpNegotiationCommand.cc
  8241. * src/RequestGroup.cc
  8242. * src/TimeA2.cc
  8243. * src/TimeA2.h
  8244. * test/CookieParserTest.cc
  8245. * test/FtpConnectionTest.cc
  8246. * test/TimeTest.cc
  8247. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Added support for following envrionment variables: http_proxy,
  8249. https_proxy, ftp_proxy and all_proxy.
  8250. Each variable is equivalent to the aria2 option whose name is the
  8251. variable name with '_' replaced with '-'.
  8252. They overrides options specified in aria2.conf file.
  8253. The envrionment variables can be overrode using command-line option.
  8254. * src/option_processing.cc
  8255. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Renamed --http-proxy-method as --proxy-method.
  8257. * src/AbstractCommand.cc
  8258. * src/FtpInitiateConnectionCommand.cc
  8259. * src/HttpInitiateConnectionCommand.cc
  8260. * src/OptionHandlerFactory.cc
  8261. * src/option_processing.cc
  8262. * src/prefs.cc
  8263. * src/prefs.h
  8264. * src/usage_text.h
  8265. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Deprecated --http-proxy-user and --http-proxy-passwd options.
  8267. Added --https-proxy, --ftp-proxy and --all-proxy options.
  8268. Above 3 options and --http-proxy option can handle proxy in URL format
  8269. like: http://user:passwd@host:port.
  8270. If a proxy requires user/password, they must be specified in a URL.
  8271. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  8272. instead.
  8273. * src/AbstractCommand.cc
  8274. * src/AbstractCommand.h
  8275. * src/AbstractProxyRequestCommand.cc
  8276. * src/AbstractProxyRequestCommand.h
  8277. * src/AuthConfigFactory.cc
  8278. * src/AuthConfigFactory.h
  8279. * src/FtpFinishDownloadCommand.cc
  8280. * src/FtpInitiateConnectionCommand.cc
  8281. * src/FtpInitiateConnectionCommand.h
  8282. * src/FtpNegotiationCommand.cc
  8283. * src/FtpTunnelRequestCommand.cc
  8284. * src/FtpTunnelRequestCommand.h
  8285. * src/HttpDownloadCommand.cc
  8286. * src/HttpInitiateConnectionCommand.cc
  8287. * src/HttpInitiateConnectionCommand.h
  8288. * src/HttpProxyRequestCommand.cc
  8289. * src/HttpProxyRequestCommand.h
  8290. * src/HttpRequest.cc
  8291. * src/HttpRequest.h
  8292. * src/HttpRequestCommand.cc
  8293. * src/HttpRequestCommand.h
  8294. * src/HttpSkipResponseCommand.cc
  8295. * src/InitiateConnectionCommand.cc
  8296. * src/InitiateConnectionCommand.h
  8297. * src/OptionHandlerFactory.cc
  8298. * src/OptionHandlerImpl.h
  8299. * src/Request.cc
  8300. * src/option_processing.cc
  8301. * src/prefs.cc
  8302. * src/prefs.h
  8303. * src/usage_text.h
  8304. * test/AuthConfigFactoryTest.cc
  8305. * test/HttpRequestTest.cc
  8306. * test/OptionHandlerTest.cc
  8307. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8308. Execute choking algorithm when unchoked and interested peer is
  8309. disconected.
  8310. * src/DefaultPeerStorage.cc
  8311. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. Added testcase for BtNotInterestedMessage from unchoked peer.
  8313. * test/BtNotInterestedMessageTest.cc
  8314. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Execute choking algorithm when BtInterestedMessage arrives from
  8316. unchoked peer.
  8317. * src/BtInterestedMessage.cc
  8318. * src/BtInterestedMessage.h
  8319. * src/DefaultBtMessageFactory.cc
  8320. * test/BtInterestedMessageTest.cc
  8321. * test/MockPeerStorage.h
  8322. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8323. AuthConfigFactory is now part of DownloadEngine.
  8324. * src/AbstractProxyRequestCommand.cc
  8325. * src/AuthConfigFactory.h
  8326. * src/DownloadEngine.cc
  8327. * src/DownloadEngine.h
  8328. * src/FtpConnection.cc
  8329. * src/FtpConnection.h
  8330. * src/FtpNegotiationCommand.cc
  8331. * src/HttpConnection.cc
  8332. * src/HttpRequest.cc
  8333. * src/HttpRequest.h
  8334. * src/HttpRequestCommand.cc
  8335. * src/HttpResponse.cc
  8336. * src/HttpResponseCommand.cc
  8337. * src/HttpSkipResponseCommand.cc
  8338. * src/MultiUrlRequestInfo.cc
  8339. * src/main.cc
  8340. * test/FtpConnectionTest.cc
  8341. * test/HttpRequestTest.cc
  8342. * test/HttpResponseTest.cc
  8343. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Corrected catched exception type.
  8345. * src/ServerStatMan.cc
  8346. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8347. DNSCache is now part of DownloadEngine.
  8348. * src/DNSCache.h
  8349. * src/DownloadEngine.cc
  8350. * src/DownloadEngine.h
  8351. * src/InitiateConnectionCommand.cc
  8352. * src/MultiUrlRequestInfo.cc
  8353. * test/Makefile.am
  8354. * test/Makefile.in
  8355. * test/SimpleDNSCacheTest.cc
  8356. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  8358. DownloadEngine.
  8359. * src/ActivePeerConnectionCommand.cc
  8360. * src/BtSetup.cc
  8361. * src/CUIDCounter.h
  8362. * src/DHTSetup.cc
  8363. * src/DownloadCommand.cc
  8364. * src/DownloadEngine.cc
  8365. * src/DownloadEngine.h
  8366. * src/DownloadEngineFactory.cc
  8367. * src/FileAllocationDispatcherCommand.cc
  8368. * src/InitiatorMSEHandshakeCommand.cc
  8369. * src/PeerInitiateConnectionCommand.cc
  8370. * src/PeerInteractionCommand.cc
  8371. * src/PeerListenCommand.cc
  8372. * src/RequestGroup.cc
  8373. * src/StreamFileAllocationEntry.cc
  8374. * src/TrackerWatcherCommand.cc
  8375. * src/main.cc
  8376. * test/RequestGroupManTest.cc
  8377. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. Implemented commented code in BtSeederStateChoke
  8379. * src/BtSeederStateChoke.cc
  8380. * src/Peer.cc
  8381. * src/Peer.h
  8382. * src/PeerInteractionCommand.cc
  8383. * src/PeerSessionResource.cc
  8384. * src/PeerSessionResource.h
  8385. * test/MockBtMessageDispatcher.h
  8386. * test/PeerSessionResourceTest.cc
  8387. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  8389. its object.
  8390. * src/AbstractBtMessage.cc
  8391. * src/ActivePeerConnectionCommand.cc
  8392. * src/ActivePeerConnectionCommand.h
  8393. * src/BtContextAwareCommand.cc
  8394. * src/BtContextAwareCommand.h
  8395. * src/BtExtendedMessage.cc
  8396. * src/BtExtendedMessage.h
  8397. * src/BtInterestedMessage.cc
  8398. * src/BtInterestedMessage.h
  8399. * src/BtNotInterestedMessage.cc
  8400. * src/BtNotInterestedMessage.h
  8401. * src/BtRegistry.cc
  8402. * src/BtRegistry.h
  8403. * src/BtSeederStateChoke.cc
  8404. * src/BtSetup.cc
  8405. * src/DHTGetPeersCommand.cc
  8406. * src/DHTGetPeersCommand.h
  8407. * src/DHTPeerAnnounceEntry.cc
  8408. * src/DHTPeerAnnounceEntry.h
  8409. * src/DHTPeerAnnounceStorage.cc
  8410. * src/DHTPeerAnnounceStorage.h
  8411. * src/DHTPeerLookupTask.cc
  8412. * src/DHTPeerLookupTask.h
  8413. * src/DHTSetup.cc
  8414. * src/DHTSetup.h
  8415. * src/DHTTaskFactory.h
  8416. * src/DHTTaskFactoryImpl.cc
  8417. * src/DHTTaskFactoryImpl.h
  8418. * src/DefaultBtAnnounce.cc
  8419. * src/DefaultBtInteractive.cc
  8420. * src/DefaultBtInteractive.h
  8421. * src/DefaultBtMessageDispatcher.cc
  8422. * src/DefaultBtMessageDispatcher.h
  8423. * src/DefaultBtMessageFactory.cc
  8424. * src/DefaultBtMessageFactory.h
  8425. * src/DefaultBtMessageReceiver.cc
  8426. * src/DefaultBtProgressInfoFile.cc
  8427. * src/DefaultBtProgressInfoFile.h
  8428. * src/DefaultBtRequestFactory.cc
  8429. * src/DefaultBtRequestFactory.h
  8430. * src/DefaultExtensionMessageFactory.cc
  8431. * src/DefaultExtensionMessageFactory.h
  8432. * src/DefaultPeerStorage.cc
  8433. * src/DefaultPeerStorage.h
  8434. * src/DownloadEngine.cc
  8435. * src/DownloadEngine.h
  8436. * src/InitiatorMSEHandshakeCommand.cc
  8437. * src/InitiatorMSEHandshakeCommand.h
  8438. * src/MSEHandshake.cc
  8439. * src/MSEHandshake.h
  8440. * src/Makefile.am
  8441. * src/Makefile.in
  8442. * src/PeerChokeCommand.cc
  8443. * src/PeerChokeCommand.h
  8444. * src/PeerInitiateConnectionCommand.cc
  8445. * src/PeerInitiateConnectionCommand.h
  8446. * src/PeerInteractionCommand.cc
  8447. * src/PeerInteractionCommand.h
  8448. * src/PeerObject.h
  8449. * src/PeerReceiveHandshakeCommand.cc
  8450. * src/PeerReceiveHandshakeCommand.h
  8451. * src/ReceiverMSEHandshakeCommand.cc
  8452. * src/RequestGroup.cc
  8453. * src/RequestGroup.h
  8454. * src/RequestGroupMan.cc
  8455. * src/RequestGroupMan.h
  8456. * src/SeedCheckCommand.cc
  8457. * src/SeedCheckCommand.h
  8458. * src/ShareRatioSeedCriteria.h
  8459. * src/SimpleBtMessage.cc
  8460. * src/TrackerWatcherCommand.cc
  8461. * src/TrackerWatcherCommand.h
  8462. * src/UTPexExtensionMessage.cc
  8463. * src/UTPexExtensionMessage.h
  8464. * test/BtCancelMessageTest.cc
  8465. * test/BtChokeMessageTest.cc
  8466. * test/BtExtendedMessageTest.cc
  8467. * test/BtInterestedMessageTest.cc
  8468. * test/BtNotInterestedMessageTest.cc
  8469. * test/BtPieceMessageTest.cc
  8470. * test/BtPortMessageTest.cc
  8471. * test/BtRegistryTest.cc
  8472. * test/BtRejectMessageTest.cc
  8473. * test/BtRequestMessageTest.cc
  8474. * test/DHTPeerAnnounceEntryTest.cc
  8475. * test/DHTPeerAnnounceStorageTest.cc
  8476. * test/DefaultBtMessageDispatcherTest.cc
  8477. * test/DefaultBtMessageFactoryTest.cc
  8478. * test/DefaultBtProgressInfoFileTest.cc
  8479. * test/DefaultBtRequestFactoryTest.cc
  8480. * test/DefaultExtensionMessageFactoryTest.cc
  8481. * test/MSEHandshakeTest.cc
  8482. * test/MockDHTTaskFactory.h
  8483. * test/ShareRatioSeedCriteriaTest.cc
  8484. * test/UTPexExtensionMessageTest.cc
  8485. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8486. Fixed compiler warning.
  8487. * test/UtilTest.cc
  8488. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8489. Treat Cookie object as session cookie if expiry = 0 is given.
  8490. With this change, you can specify session scoped cookies in an external
  8491. file setting expiry value to 0.
  8492. * src/Cookie.cc
  8493. * src/Cookie.h
  8494. * test/CookieParserTest.cc
  8495. * test/CookieStorageTest.cc
  8496. * test/CookieTest.cc
  8497. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Changed signature of DHTMessageFactory::createResponseMessage().
  8499. Removed unused validateIDMatch.
  8500. * src/DHTMessageFactory.h
  8501. * src/DHTMessageFactoryImpl.cc
  8502. * src/DHTMessageFactoryImpl.h
  8503. * src/DHTMessageTracker.cc
  8504. * test/DHTMessageFactoryImplTest.cc
  8505. * test/MockDHTMessageFactory.h
  8506. Dropped DHT message coming from same ID of localhost.
  8507. * src/DHTMessageReceiver.cc
  8508. Rejected adding node whose ID is the same as localhost's.
  8509. * src/DHTRoutingTable.cc
  8510. * test/BtPortMessageTest.cc
  8511. * test/DHTRoutingTableTest.cc
  8512. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. Pool connection when redirection occurs with Content-Length = 0.
  8514. * src/HttpSkipResponseCommand.cc
  8515. * src/HttpSkipResponseCommand.h
  8516. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8517. Fixed the bug that causes time out when redirection occurs with
  8518. content-length 0.
  8519. * src/HttpResponseCommand.cc
  8520. * src/HttpSkipResponseCommand.cc
  8521. * src/HttpSkipResponseCommand.h
  8522. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. Now each status legends is shown only when it appears in Download
  8524. Result. If Download Result has no item, then status legend will not
  8525. be printed.
  8526. * src/RequestGroupMan.cc
  8527. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8528. Removed duplicate creation of OptionHandlers.
  8529. * src/option_processing.cc
  8530. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8531. Fixed the bug that causes segmentation fault when accessing files which
  8532. don't exist or are not included in --select-file option while
  8533. validating chunk checksum.
  8534. * src/MultiDiskAdaptor.cc
  8535. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8536. Fixed compiler warning.
  8537. * test/UtilTest.cc
  8538. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8539. Included cstdlib. This fixed the compile error with g++-4.3.2.
  8540. * src/IteratableChecksumValidator.cc
  8541. * src/IteratableChunkChecksumValidator.cc
  8542. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8543. * Release 0.16.2
  8544. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8545. Added Serbian translation. Updated Ukrainian translation.
  8546. Thanks to all translators.
  8547. * po/sr.po
  8548. * po/uk.po
  8549. * po/LINGUAS
  8550. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8551. Bump up version number to 0.16.2
  8552. * configure.ac
  8553. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Added length equality test to operator== to drop a piece message
  8555. whose length does not match to the requested one.
  8556. * src/RequestSlot.cc
  8557. * test/DefaultBtMessageDispatcherTest.cc
  8558. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8559. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  8560. recieved.
  8561. In this fix, if a request larger than 16KiB length is received, aria2
  8562. disconnects the peer.
  8563. * src/BtConstants.h
  8564. * src/PeerMessageUtil.cc
  8565. * src/PeerMessageUtil.h
  8566. * test/BtRequestMessageTest.cc
  8567. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. * Release 0.16.1
  8569. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8570. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  8571. * doc/aria2c.1.txt
  8572. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  8574. Updated French, Simplified Chinese and Japanese translations.
  8575. Thanks to all translators.
  8576. en@quot and en@boldquot are also added.
  8577. * po/LINGUAS
  8578. * po/fr.po
  8579. * po/ja.po
  8580. * po/uk.po
  8581. * po/vi.po
  8582. * po/zh_CN.po
  8583. * po/zh_TW.po
  8584. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8585. Bump up version number to 0.16.1.
  8586. * configure.ac
  8587. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8588. Updated README.
  8589. * README
  8590. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  8592. not to replace '--' with em dash character.
  8593. * doc/aria2c.1.txt
  8594. * doc/makeman
  8595. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8596. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  8597. every SEC seconds.
  8598. * src/DownloadEngineFactory.cc
  8599. * src/OptionHandlerFactory.cc
  8600. * src/option_processing.cc
  8601. * src/usage_text.h
  8602. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8603. Fixed compile warning on linux-amd64
  8604. * src/FtpConnection.cc
  8605. * src/IteratableChunkChecksumValidator.cc
  8606. * src/MultiDiskAdaptor.cc
  8607. Fixed the bug that unit test fails on linux-amd64
  8608. * test/UtilTest.cc
  8609. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Added --dht-file-path option to change the path to dht.dat, which is a
  8611. serialized DHT routing table.
  8612. * src/OptionHandlerFactory.cc
  8613. * src/option_processing.cc
  8614. * src/usage_text.h
  8615. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. Fixed possible underflow.
  8617. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  8618. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8619. Fixed the bug that last character in URI is not encoded.
  8620. * src/Request.cc
  8621. * test/RequestTest.cc
  8622. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8623. Fixed the bug that referer header field contains fragment.
  8624. Now Request class removes fragment part of URI and encodes it
  8625. in Request::setUri() and setReferer().
  8626. * src/Request.h
  8627. * src/Request.cc
  8628. * test/RequestTest.cc
  8629. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. Added missing m4 macros.
  8631. * m4/cppunit.m4
  8632. * m4/libgcrypt.m4
  8633. * m4/libgnutls-extra.m4
  8634. * m4/libgnutls.m4
  8635. * m4/libxml2.m4
  8636. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8637. Fixed compile error with gcc-4.4(snapshot)
  8638. * src/File.cc
  8639. * src/FtpConnection.cc
  8640. * src/OptionHandlerImpl.h
  8641. * src/Util.cc
  8642. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8643. Removed assert()
  8644. * src/SocketBuffer.cc (SocketBuffer::send)
  8645. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8646. Changed the type of _numNewConnection to unsigned int.
  8647. * src/ActivePeerConnectionCommand.cc
  8648. * src/ActivePeerConnectionCommand.h
  8649. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. * Release 0.16.0
  8651. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8652. Updated doc
  8653. * README
  8654. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  8656. translations. Thanks to all translators.
  8657. * po/bg.po
  8658. * po/de.po
  8659. * po/fr.po
  8660. * po/ja.po
  8661. * po/zh_CN.po
  8662. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Bump up version number to 0.16.0.
  8664. * configure.ac
  8665. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Casted entry->maxConnections to int32_t for std::min<T> with T =
  8667. int32_t.
  8668. Changed the type of count to int32_t.
  8669. * src/Metalink2RequestGroup.cc
  8670. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8671. Added test for Time::elapsed(time_t).
  8672. * test/TimeTest.cc
  8673. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  8675. Util::difftv() should be used instead.
  8676. * src/TimeA2.cc
  8677. * src/TimeA2.h
  8678. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8679. Made socket for dht connections non-blocking
  8680. * src/DHTAbstractMessage.cc
  8681. * src/DHTAbstractMessage.h
  8682. * src/DHTConnection.h
  8683. * src/DHTConnectionImpl.cc
  8684. * src/DHTConnectionImpl.h
  8685. * src/DHTMessage.h
  8686. * src/DHTMessageDispatcherImpl.cc
  8687. * src/DHTMessageDispatcherImpl.h
  8688. * src/DHTUnknownMessage.cc
  8689. * src/DHTUnknownMessage.h
  8690. * src/SocketCore.cc
  8691. * src/SocketCore.h
  8692. * test/MockDHTMessage.h
  8693. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8694. Changed the type of offset to int.
  8695. * src/ParameterizedStringParser.cc
  8696. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Made getAsInt() return int32_t
  8698. * src/Option.h
  8699. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8700. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  8701. build.
  8702. * configure.ac
  8703. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8704. Use sqlite3_open if sqlite3_open_v2 is not available.
  8705. * src/Sqlite3MozCookieParser.cc
  8706. * src/Sqlite3MozCookieParser.h
  8707. * m4/sqlite3.m4
  8708. * test/Sqlite3MozCookieParserTest.cc
  8709. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8710. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  8711. * src/BtPieceMessage.cc
  8712. * src/DHTPeerAnnounceStorage.cc
  8713. * src/DefaultPieceStorage.cc
  8714. * src/DownloadCommand.cc
  8715. * src/DownloadEngine.cc
  8716. * src/FtpConnection.cc
  8717. * src/PeerConnection.cc
  8718. * src/PeerMessageUtil.cc
  8719. * src/RequestGroup.cc
  8720. * src/RequestGroupMan.cc
  8721. * src/SimpleBtMessage.cc
  8722. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8723. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  8724. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  8725. * src/AbstractDiskWriter.cc
  8726. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. Don't set Request::supportsPersistentConnection() in HttpConnection
  8728. since this code is also used in AbstractProxyResponseCommand.
  8729. Moved those code to HttpResponse.
  8730. * src/HttpResponse.cc
  8731. * src/HttpResponse.h
  8732. * src/HttpConnection.cc
  8733. * src/HttpConnection.h
  8734. * src/HttpResponseCommand.cc
  8735. * test/HttpResponseTest.cc
  8736. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8737. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  8738. The configuration is minimum: no torrent, no metalink, so there may be
  8739. other compile error on their code.
  8740. * src/a2netcompat.h
  8741. * src/File.cc
  8742. * src/File.h
  8743. * src/SocketCore.cc
  8744. * src/SocketCore.h
  8745. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8746. Made a socket of incoming peer non-blocking.
  8747. * src/PeerListenCommand.cc
  8748. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  8750. whole message data is not sent in one send() call.
  8751. * src/BtPieceMessage.cc
  8752. * src/BtPieceMessage.h
  8753. * src/PeerConnection.cc
  8754. * src/PeerConnection.h
  8755. * src/SimpleBtMessage.cc
  8756. * src/SimpleBtMessage.h
  8757. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8758. Fixed the bug that aria2 downloads faster than max-download-limit when
  8759. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  8760. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  8761. , instead of sum of them.
  8762. * src/ActivePeerConnectionCommand.cc
  8763. * src/DefaultBtInteractive.cc
  8764. * src/DownloadCommand.cc
  8765. * src/PeerInteractionCommand.cc
  8766. * src/PeerReceiveHandshakeCommand.cc
  8767. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8768. Fixed the bug that HTTPS download fails.
  8769. * src/AbstractCommand.cc
  8770. * src/AbstractCommand.h
  8771. * src/DownloadCommand.cc
  8772. * src/FtpConnection.cc
  8773. * src/HttpConnection.cc
  8774. * src/HttpRequestCommand.cc
  8775. * src/HttpResponseCommand.cc
  8776. * src/HttpSkipResponseCommand.cc
  8777. * src/MSEHandshake.cc
  8778. * src/PeerConnection.cc
  8779. * src/SocketCore.cc
  8780. * src/SocketCore.h
  8781. Fixed the bug that aria2 doesn't download whole content body and cannot
  8782. reuse connection if chunked transfer encoding and gzip content encoding
  8783. are set.
  8784. * src/DownloadCommand.cc
  8785. * src/HttpSkipResponseCommand.cc
  8786. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Updated man page.
  8788. * doc/aria2c.1.txt
  8789. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8790. When error occurred while aria2 was parsing an .aria2.conf file, print
  8791. the usage of the option that caused error.
  8792. * src/option_processing.cc
  8793. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8794. Fixed compile error on OptionHandlerException
  8795. * src/Makefile.am
  8796. * src/OptionHandlerException.cc
  8797. * src/OptionHandlerException.h
  8798. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8799. Moved message of the error to OptionHandlerException.h
  8800. * src/NameMatchOptionHandler.h
  8801. * src/OptionHandlerException.h
  8802. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. When error occurs while aria2 is parsing an command-line option, print
  8804. the usage of the option.
  8805. * src/Makefile.am
  8806. * src/NameMatchOptionHandler.h
  8807. * src/OptionHandlerException.h
  8808. * src/option_processing.cc
  8809. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. Reverted previous change.
  8811. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  8812. username is not in URI.
  8813. * src/HttpRequest.cc
  8814. * src/Request.cc
  8815. * test/HttpRequestTest.cc
  8816. * test/RequestTest.cc
  8817. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8818. Now colon is required for username and password in FTP URL, like:
  8819. ftp://username:password@host.
  8820. If colon is not there, aria2 don't parse it as a username. For example,
  8821. aria2 don't retrieve username from ftp://username@host.
  8822. This fix was made in order to login FTP server via non-transparent ftp
  8823. proxy.
  8824. * src/Request.cc
  8825. * test/RequestTest.cc
  8826. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Use netrc for HTTP.
  8828. Now FTP user/password is sent in Authorization header when
  8829. --ftp-via-http-proxy=get is given.
  8830. * src/AuthConfigFactory.cc
  8831. * src/HttpRequest.cc
  8832. * src/HttpRequest.h
  8833. * src/NetrcAuthResolver.cc
  8834. * src/NetrcAuthResolver.h
  8835. * src/OptionHandlerFactory.cc
  8836. * src/option_processing.cc
  8837. * src/prefs.cc
  8838. * src/prefs.h
  8839. * test/AuthConfigFactoryTest.cc
  8840. * test/HttpRequestTest.cc
  8841. * test/NetrcAuthResolverTest.cc
  8842. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. Issue PWD command first and get working directory and use it as a prefix
  8844. for CWD command.
  8845. * src/DownloadEngine.cc
  8846. * src/DownloadEngine.h
  8847. * src/FtpConnection.cc
  8848. * src/FtpConnection.h
  8849. * src/FtpFinishDownloadCommand.cc
  8850. * src/FtpInitiateConnectionCommand.cc
  8851. * src/FtpNegotiationCommand.cc
  8852. * src/FtpNegotiationCommand.h
  8853. * test/FtpConnectionTest.cc
  8854. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8855. Removed default user/pass for FTP user/pass, since it should not have
  8856. precedence over netrc configuration by default.
  8857. * src/OptionHandlerFactory.cc
  8858. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8859. Added debug log for socket event.
  8860. * src/AbstractCommand.cc
  8861. * src/PeerAbstractCommand.cc
  8862. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. Log microseconds.
  8864. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8865. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. Replaced HelpItem.cc with OptionHandler.cc.
  8867. * po/POTFILES.in
  8868. Updated po files with 'make update-po'
  8869. * po/aria2c.pot
  8870. * po/*.po
  8871. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8872. Removed possible values from the text.
  8873. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8874. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. Removed unused preferences:
  8876. PREF_NO_PREALLOCATION
  8877. PREF_STDOUT_LOG
  8878. PREF_TRACKER_MAX_TRIES
  8879. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8880. PREF_MIN_SEGMENT_SIZE
  8881. * src/option_processing.cc
  8882. * src/prefs.cc
  8883. * src/prefs.h
  8884. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8885. Integrated HelpItem into OptionParser to ease the workload for adding
  8886. new options. Removed default value from usage text.
  8887. * src/HelpItem.cc: Removed.
  8888. * src/HelpItem.h: Removed.
  8889. * src/HelpItemFactory.cc: Removed.
  8890. * src/HelpItemFactory.h: Removed.
  8891. * src/Makefile.am
  8892. * src/Makefile.in
  8893. * src/NameMatchOptionHandler.h
  8894. * src/OptionHandler.cc
  8895. * src/OptionHandler.h
  8896. * src/OptionHandlerFactory.cc
  8897. * src/OptionHandlerImpl.h
  8898. * src/OptionParser.cc
  8899. * src/OptionParser.h
  8900. * src/TagContainer.cc: Removed.
  8901. * src/TagContainer.h: Removed.
  8902. * src/TaggedItem.cc: Removed.
  8903. * src/TaggedItem.h: Removed.
  8904. * src/main.cc
  8905. * src/option_processing.cc
  8906. * src/usage_text.h
  8907. * src/version_usage.cc
  8908. * test/HelpItemTest.cc: Removed.
  8909. * test/Makefile.am
  8910. * test/Makefile.in
  8911. * test/OptionHandlerTest.cc
  8912. * test/OptionParserTest.cc
  8913. * test/TagContainerTest.cc: Removed.
  8914. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8915. Moved `TransferStat stat = ...' to inside the `if' clause.
  8916. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8917. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8918. Fixed the bug that a block in a piece is requested when same block is
  8919. already requested to the same peer in end game mode.
  8920. * src/BtRequestFactory.h
  8921. * src/DefaultBtInteractive.cc
  8922. * src/DefaultBtRequestFactory.cc
  8923. * src/DefaultBtRequestFactory.h
  8924. * src/DefaultPieceStorage.cc
  8925. * src/DefaultPieceStorage.h
  8926. * src/PieceStorage.h
  8927. * src/UnknownLengthPieceStorage.cc
  8928. * src/UnknownLengthPieceStorage.h
  8929. * test/DefaultBtRequestFactoryTest.cc
  8930. * test/DefaultPieceStorageTest.cc
  8931. * test/MockBtRequestFactory.h
  8932. * test/MockPieceStorage.h
  8933. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8934. Removed _uploadLength and _downloadLength from PeerSessionResource
  8935. and use PeerStat::_sessionUploadLength and
  8936. PeerStat::_sessionDownloadLength.
  8937. * src/PeerSessionResource.cc
  8938. * src/PeerSessionResource.h
  8939. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8940. Fixed the bug that prefixLength of split bucket which doesn't include
  8941. local node ID is incremented.
  8942. * src/DHTBucket.cc
  8943. * src/DHTBucket.h
  8944. * test/DHTBucketTest.cc
  8945. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Added cookies.sqlite to EXTRA_DIST
  8947. * test/Makefile.am
  8948. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Added Turkish translation. Updated French, German, Russian and
  8950. Simplified Chinese translations. Thanks to all translators.
  8951. * po/LINGUAS
  8952. * po/de.po
  8953. * po/fr.po
  8954. * po/ru.po
  8955. * po/tr.po
  8956. * po/zh_CN.po
  8957. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. Added deliminating text to the beginning of the log so that one can find
  8959. where the log starts easily.
  8960. * src/main.cc
  8961. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8962. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8963. to fix compile error when async DNS is not enabled by configuration.
  8964. * src/AbstractCommand.cc
  8965. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8966. If establishing conneciton to a server is failed, then mark error on
  8967. its ServerStat.
  8968. Added the cause of error to log when error event occurred.
  8969. Moved message string to message.h for translation.
  8970. * src/AbstractCommand.cc
  8971. * src/AbstractCommand.h
  8972. * src/FtpNegotiationCommand.cc
  8973. * src/HttpRequestCommand.cc
  8974. * src/PeerAbstractCommand.cc
  8975. * src/message.h
  8976. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. Added the function to get error message from socket.
  8978. * src/SocketCore.cc
  8979. * src/SocketCore.h
  8980. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8981. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8982. * src/RequestGroupMan.cc
  8983. * src/RequestGroupMan.h
  8984. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8985. If error event is received in epoll, then abort download immediately.
  8986. * src/AbstractCommand.cc
  8987. * src/Command.cc
  8988. * src/Command.h
  8989. * src/DownloadEngine.cc
  8990. * src/PeerAbstractCommand.cc
  8991. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Added usage message for --uri-selector, --server-stat-of,
  8993. --server-stat-in, --server-stat-timeout options.
  8994. * src/HelpItemFactory.cc
  8995. * src/usage_text.h
  8996. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. Added upper limit of FTP response buffer. The current implementation
  8998. uses 4096bytes as a limit.
  8999. * src/FtpConnection.cc
  9000. * src/FtpConnection.h
  9001. * test/FtpConnectionTest.cc
  9002. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Use non-blocking socket for TCP communication to avoid possible
  9004. blocking due to buffer full.
  9005. * src/AbstractProxyRequestCommand.cc
  9006. * src/FtpConnection.cc
  9007. * src/FtpConnection.h
  9008. * src/FtpNegotiationCommand.cc
  9009. * src/FtpNegotiationCommand.h
  9010. * src/HttpConnection.cc
  9011. * src/HttpConnection.h
  9012. * src/HttpRequestCommand.cc
  9013. * src/InitiatorMSEHandshakeCommand.cc
  9014. * src/InitiatorMSEHandshakeCommand.h
  9015. * src/MSEHandshake.cc
  9016. * src/MSEHandshake.h
  9017. * src/Makefile.am
  9018. * src/PeerConnection.cc
  9019. * src/PeerConnection.h
  9020. * src/PeerInteractionCommand.cc
  9021. * src/PeerListenCommand.cc
  9022. * src/ReceiverMSEHandshakeCommand.cc
  9023. * src/ReceiverMSEHandshakeCommand.h
  9024. * src/SocketBuffer.cc
  9025. * src/SocketBuffer.h
  9026. * src/SocketCore.cc
  9027. * src/SocketCore.h
  9028. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9029. Call setStatusRealtime() in constructor.
  9030. * src/RealtimeCommand.cc
  9031. * src/RealtimeCommand.h
  9032. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9033. Call Download::setNoWait(true) to execute newly created command without
  9034. a pause.
  9035. * src/AbstractCommand.cc
  9036. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9037. Added --max-file-not-found=NUM option. If aria2 receives `file not
  9038. found' error from HTTP/FTP server NUM times without getting single
  9039. bytes of data, then force the download to fail.
  9040. Basically aria2 tris all URIs available. So if long list of URIs are
  9041. specified in Metalink, then aria2 will take a long time to fail
  9042. eventually if all URIs are outdated. This option eases this situation
  9043. to limit the number of servers to try.
  9044. * src/FtpNegotiationCommand.cc
  9045. * src/HelpItemFactory.cc
  9046. * src/HttpResponseCommand.cc
  9047. * src/OptionHandlerFactory.cc
  9048. * src/PeerStat.h
  9049. * src/RequestGroup.cc
  9050. * src/RequestGroup.h
  9051. * src/SegmentMan.cc
  9052. * src/SegmentMan.h
  9053. * src/option_processing.cc
  9054. * src/prefs.cc
  9055. * src/prefs.h
  9056. * src/usage_text.h
  9057. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9058. Fixed the bug that bulkReceiveResponse() reads all received data as a
  9059. response even if more than one response is in it.
  9060. * src/FtpConnection.cc
  9061. * src/FtpConnection.h
  9062. * test/FtpConnectionTest.cc
  9063. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9064. Merged from stable-0.15
  9065. * m4/libcares.m4
  9066. Use pkg-config
  9067. * m4/sqlite3.m4
  9068. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9069. Removed unnecessary if statement.
  9070. * src/DefaultPieceStorage.cc (initPieceStorage)
  9071. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9072. Added --connect-timeout option to specify connect timeout in seconds.
  9073. This option is in effect for HTTP/FTP/proxy server. The timeout for
  9074. connecting to BitTorrent peer is not controlled by this option.
  9075. * src/AbstractProxyRequestCommand.cc
  9076. * src/FtpNegotiationCommand.cc
  9077. * src/HelpItemFactory.cc
  9078. * src/HttpRequestCommand.cc
  9079. * src/OptionHandlerFactory.cc
  9080. * src/option_processing.cc
  9081. * src/prefs.cc
  9082. * src/prefs.h
  9083. * src/usage_text.h
  9084. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9085. Added help message for -R option.
  9086. * src/HelpItemFactory.cc
  9087. * src/usage_text.h
  9088. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9089. Added the message that the time is in local time zone.
  9090. * src/RequestGroup.cc
  9091. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Implemented the ability to get timestamp from remote FTP server using
  9093. MDTM command described in RFC3659.
  9094. * src/FtpConnection.cc
  9095. * src/FtpConnection.h
  9096. * src/FtpNegotiationCommand.cc
  9097. * src/FtpNegotiationCommand.h
  9098. * test/FtpConnectionTest.cc
  9099. * test/Makefile.am
  9100. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9101. Implemented the ability to get timestamp from remote HTTP server and
  9102. apply it to local file. To enable this feature, --remote-time option
  9103. is added. No usage text has been written yet.
  9104. If several servers returns difference timestamp, then aria2 uses latest
  9105. one.
  9106. * src/CopyDiskAdaptor.cc
  9107. * src/CopyDiskAdaptor.h
  9108. * src/DirectDiskAdaptor.cc
  9109. * src/DirectDiskAdaptor.h
  9110. * src/DiskAdaptor.h
  9111. * src/File.cc
  9112. * src/File.h
  9113. * src/HttpHeader.cc
  9114. * src/HttpHeader.h
  9115. * src/HttpResponse.cc
  9116. * src/HttpResponse.h
  9117. * src/HttpResponseCommand.cc
  9118. * src/HttpResponseCommand.h
  9119. * src/MultiDiskAdaptor.cc
  9120. * src/MultiDiskAdaptor.h
  9121. * src/OptionHandlerFactory.cc
  9122. * src/RequestGroup.cc
  9123. * src/RequestGroup.h
  9124. * src/RequestGroupMan.cc
  9125. * src/option_processing.cc
  9126. * src/prefs.cc
  9127. * src/prefs.h
  9128. * test/CopyDiskAdaptorTest.cc
  9129. * test/FileTest.cc
  9130. * test/Makefile.am
  9131. * test/Makefile.in
  9132. * test/MultiDiskAdaptorTest.cc
  9133. * test/TestUtil.cc
  9134. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9135. Fixed the bug that DiskWriterEntry is not created when its
  9136. FileEntry.isRequested() is false and it doesn't share a piece with
  9137. other FileEntries that are requested. This bug causes segmentation fault
  9138. in the end.
  9139. * src/MultiDiskAdaptor.cc
  9140. * src/MultiDiskAdaptor.h
  9141. * src/MultiFileAllocationIterator.cc
  9142. * test/MultiDiskAdaptorTest.cc
  9143. * test/MultiFileAllocationIteratorTest.cc
  9144. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9145. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  9146. called if the number of file entries are greater than max open files.
  9147. * src/AbstractSingleDiskAdaptor.cc
  9148. * src/AbstractSingleDiskAdaptor.h
  9149. * src/DiskAdaptor.h
  9150. * src/MultiDiskAdaptor.cc
  9151. * src/MultiDiskAdaptor.h
  9152. * test/MultiDiskAdaptorTest.cc
  9153. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. Added a constuctor that receives struct timeval.
  9155. Added operator<.
  9156. * src/TimeA2.cc
  9157. * src/TimeA2.h
  9158. * test/TimeTest.cc
  9159. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9160. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  9161. * src/CookieParser.cc
  9162. * test/CookieParserTest.cc
  9163. * test/HttpResponseTest.cc
  9164. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Implmented the functions to parse date.
  9166. * src/TimeA2.cc
  9167. * src/TimeA2.h
  9168. * test/TimeTest.cc
  9169. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9170. Added "Firefox3 Cookie" feature to FeatureConfig
  9171. * src/FeatureConfig.cc
  9172. * src/FeatureConfig.h
  9173. * test/FeatureConfigTest.cc
  9174. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9175. Bump up version number to 0.16.0b
  9176. * configure.ac
  9177. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9178. Use pkg-config if is is available.
  9179. * m4/openssl.m4
  9180. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9181. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  9182. * src/BtAnnounce.h
  9183. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9184. If an error occurred with a URI, remove identical URI from remaining
  9185. URI list because it is likely that same error occurred in the end and it
  9186. is waste of time.
  9187. * src/AbstractCommand.cc
  9188. * src/RequestGroup.cc
  9189. * src/RequestGroup.h
  9190. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9191. Removed wrong comment.
  9192. * src/DefaultPeerStorage.cc
  9193. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9194. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  9195. Added return value of getpid() to argument of srand() to achieve more
  9196. randomized value.
  9197. * src/SimpleRandomizer.cc
  9198. * src/SimpleRandomizer.h
  9199. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9200. Contact tracker frequently when the number of connections are 0 and
  9201. download is not finished yet.
  9202. * src/ActivePeerConnectionCommand.cc
  9203. * src/BtAnnounce.h
  9204. * src/DefaultBtAnnounce.cc
  9205. * src/DefaultBtAnnounce.h
  9206. * test/MockBtAnnounce.h
  9207. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9208. Moved threshold values to UTPexExtensionMessage.
  9209. * src/DefaultBtInteractive.cc
  9210. * src/Peer.cc
  9211. * src/Peer.h
  9212. * src/UTPexExtensionMessage.cc
  9213. * src/UTPexExtensionMessage.h
  9214. * test/UTPexExtensionMessageTest.cc
  9215. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9216. Added _incoming member to Peer class and made it true if the peer
  9217. initiated connection. Don't add those peer to UTPex message.
  9218. If extended handshake is received, assign _incoming to false.
  9219. * src/DefaultBtInteractive.cc
  9220. * src/HandshakeExtensionMessage.cc
  9221. * src/Peer.cc
  9222. * src/Peer.h
  9223. * src/PeerListenCommand.cc
  9224. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9225. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  9226. Encoding Decoder. Removed size threshold for turning off on the fly
  9227. inflation because resulting file may or may not be inflated depending
  9228. on the file size and I think it is not expected by users.
  9229. This change fixes segmentation fault when Metalink file contains gzipped
  9230. file and its filesize is provided.
  9231. * src/HttpResponseCommand.cc
  9232. * src/HttpResponseCommand.h
  9233. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9234. Made Cookie immutable.
  9235. * src/Cookie.cc
  9236. * src/Cookie.h
  9237. * src/CookieParser.cc
  9238. * src/CookieParser.h
  9239. * src/CookieStorage.cc
  9240. * test/CookieParserTest.cc
  9241. * test/CookieStorageTest.cc
  9242. * test/NsCookieParserTest.cc
  9243. * test/Sqlite3MozCookieParserTest.cc
  9244. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9245. Removed CookieBox, CookieBoxFactory.
  9246. * src/CookieBox.cc
  9247. * src/CookieBox.h
  9248. * src/CookieBoxFactory.cc
  9249. * src/CookieBoxFactory.h
  9250. * src/Makefile.am
  9251. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9252. Use CookieStorage class instead of CookieBox class.
  9253. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  9254. * src/AbstractProxyRequestCommand.cc
  9255. * src/CookieStorage.cc
  9256. * src/DownloadEngine.cc
  9257. * src/DownloadEngine.h
  9258. * src/HttpConnection.cc
  9259. * src/HttpConnection.h
  9260. * src/HttpRequest.cc
  9261. * src/HttpRequest.h
  9262. * src/HttpRequestCommand.cc
  9263. * src/HttpResponse.cc
  9264. * src/HttpResponseCommand.cc
  9265. * src/HttpSkipResponseCommand.cc
  9266. * src/Makefile.am
  9267. * src/MultiUrlRequestInfo.cc
  9268. * src/Request.cc
  9269. * src/Request.h
  9270. * src/main.cc
  9271. * test/AllTest.cc
  9272. * test/CookieStorageTest.cc
  9273. * test/CookieTest.cc
  9274. * test/HttpRequestTest.cc
  9275. * test/HttpResponseTest.cc
  9276. * test/Makefile.am
  9277. * test/NsCookieParserTest.cc
  9278. * test/Sqlite3MozCookieParserTest.cc
  9279. * test/nscookietest.txt
  9280. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9281. Updated
  9282. * test/Cookies.sqlite
  9283. * test/nscookietest.txt
  9284. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9285. Added tests for CookieStorage::load()
  9286. * test/CookieStorageTest.cc
  9287. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9288. Added CookieStorage class which is based on RFC2109 and manages cookies
  9289. more strictly than CookieBox and CookieBoxFactory class.
  9290. * src/CookieStorage.cc
  9291. * src/CookieStorage.h
  9292. * src/Cookie.cc
  9293. * src/Cookie.h
  9294. * test/CookieStorageTest.cc
  9295. * test/CookieTest.cc
  9296. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9297. Fixed the bug that commands are created more than the number of pieces.
  9298. * src/RequestGroup.cc
  9299. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9300. Fixed infinite loop bug in FTP when SIZE command failed.
  9301. * src/FtpNegotiationCommand.cc
  9302. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9303. Removed DirectDiskAdaptorTest.h
  9304. * test/Makefile.am
  9305. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9306. Fixed chunk checksum validation cannot detect trailing garbage data.
  9307. BUG#2074141
  9308. * src/AbstractSingleDiskAdaptor.cc
  9309. * src/AbstractSingleDiskAdaptor.h
  9310. * src/CheckIntegrityEntry.cc
  9311. * src/CheckIntegrityEntry.h
  9312. * src/DiskAdaptor.h
  9313. * src/MultiDiskAdaptor.cc
  9314. * src/MultiDiskAdaptor.h
  9315. * src/RequestGroup.cc
  9316. * test/DirectDiskAdaptorTest.cc
  9317. * test/MultiDiskAdaptorTest.cc
  9318. * test/TestUtil.cc
  9319. * test/TestUtil.h
  9320. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9321. Bump up version number of dht.dat file to 3. In version 3 format, time
  9322. is stored in 64bit, network byte order.
  9323. New build can load old format(version 2) but it saves the file in new
  9324. format. It means once you used new build, your dht.dat becomes
  9325. incompatible with older build.
  9326. * src/DHTRoutingTableDeserializer.cc
  9327. * src/DHTRoutingTableSerializer.cc
  9328. * test/DHTRoutingTableSerializerTest.cc
  9329. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9330. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  9331. * test/Makefile.am
  9332. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9333. Bump up version number of .aria2 control file to 0001.
  9334. New aria2 can still load version 0000 file but it saves the file in
  9335. version 0001 format. It means that new aria2 can resume download
  9336. started by old aria2 but the opposite is not true.
  9337. * src/DefaultBtProgressInfoFile.cc
  9338. * src/DefaultBtProgressInfoFile.h
  9339. * test/DefaultBtProgressInfoFileTest.cc
  9340. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. Added ntoh64 and hton64 as inline functions.
  9342. * src/Util.cc
  9343. * test/UtilTest.cc
  9344. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9345. Added sqlite3 depenency and Firefox3 cookie support.
  9346. * README
  9347. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9348. State that firefox3 cookie is supported explicitly in the usage.
  9349. * src/usage_text.h
  9350. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9351. Externalized message.
  9352. * src/RequestGroupMan.cc
  9353. * src/message.h
  9354. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9355. Save temporary file first and rename to the destination on success.
  9356. Added test cases.
  9357. * src/RequestGroupMan.cc
  9358. * test/RequestGroupManTest.cc
  9359. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9360. Fixed the bug that the number of connected peer is exceeding the limit
  9361. (55 by default) in seeding mode.
  9362. Multiplied 0.8 to _maxUploadSpeedLimit.
  9363. * src/ActivePeerConnectionCommand.cc
  9364. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Clear table item.
  9366. * src/Dictionary.cc
  9367. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9368. Fixed error handling of lseek.
  9369. * src/AbstractDiskWriter.cc
  9370. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9371. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  9372. style cookie file.
  9373. * src/usage_text.h
  9374. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9375. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  9376. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  9377. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  9378. * src/Util.cc
  9379. * src/Util.h
  9380. * src/CookieParser.cc
  9381. * test/UtilTest.cc
  9382. * test/CookieParserTest.cc
  9383. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9384. Separate the implementation to load old mozilla format of cookie to
  9385. NsCookieParser class.
  9386. * src/CookieBoxFactory.cc
  9387. * src/CookieBoxFactory.h
  9388. * src/NsCookieParser.cc
  9389. * src/NsCookieParser.h
  9390. * test/NsCookieParserTest.cc
  9391. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9392. Made parse() const
  9393. * src/Sqlite3MozCookieParser.cc
  9394. * src/Sqlite3MozCookieParser.h
  9395. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Added firefox3 cookie support based on the patch submitted by
  9397. tizianomueller.
  9398. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  9399. this functionality.
  9400. * configure.ac
  9401. * m4/sqlite3.m4
  9402. * src/CookieBoxFactory.cc
  9403. * src/CookieBoxFactory.h
  9404. * src/Makefile.am
  9405. * src/Makefile.in
  9406. * src/Sqlite3MozCookieParser.cc
  9407. * src/Sqlite3MozCookieParser.h
  9408. * src/main.cc
  9409. * test/CookieBoxFactoryTest.cc
  9410. * test/Makefile.am
  9411. * test/Makefile.in
  9412. * test/Sqlite3MozCookieParserTest.cc
  9413. * test/badcookies.sqlite
  9414. * test/cookies.sqlite
  9415. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9416. Added Danish and Greek translations.
  9417. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  9418. Great thanks to all translators.
  9419. * po/LINGUAS
  9420. * po/el.po
  9421. * po/da.po
  9422. * po/es.po
  9423. * po/ca.po
  9424. * po/nn.po
  9425. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Fixed man page: --follow-bittorrent should be --follow-torrent
  9427. * doc/aria2c.1.txt
  9428. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9429. Fixed: numCommand is less than the value specified in -C option.
  9430. * src/RequestGroup.cc
  9431. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9432. Fixed occasional assertion failure in PieceSegment.
  9433. Calling PieceStorage::getMissingPiece(size_t) was missing after
  9434. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  9435. creation of duplicate segments and one of the segment was finished then
  9436. assertion failure was caused.
  9437. * src/SegmentMan.cc
  9438. * test/SegmentManTest.cc
  9439. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9440. Added options to load/save the server's performance/status to a file
  9441. and the timeout to drop their data.
  9442. --server-stat-of=FILE specifies the file to which performance data
  9443. is saved.
  9444. --server-stat-if=FILE specifies the file to read previously saved
  9445. by --server-stat-of option. Might be used with --uri-selector=feedback.
  9446. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  9447. TIMEOUT is specified in seconds and the default value is 24hours.
  9448. * src/MultiUrlRequestInfo.cc
  9449. * src/OptionHandlerFactory.cc
  9450. * src/RequestGroupMan.cc
  9451. * src/RequestGroupMan.h
  9452. * src/ServerStatMan.cc
  9453. * src/ServerStatMan.h
  9454. * src/option_processing.cc
  9455. * src/prefs.cc
  9456. * src/prefs.h
  9457. * test/ServerStatManTest.cc
  9458. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9459. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  9460. * src/ServerStatMan.cc
  9461. * src/ServerStatMan.h
  9462. * test/ServerStatManTest.cc
  9463. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9464. Implemented ServerStatMan::load(...) function and its test case.
  9465. * src/ServerStat.cc
  9466. * src/ServerStat.h
  9467. * src/ServerStatMan.cc
  9468. * test/ServerStatManTest.cc
  9469. * test/ServerStatTest.cc
  9470. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. Use time_t instead of int32_t. Use int64_t where milli second is
  9472. expected.
  9473. * src/TimeA2.cc
  9474. * src/TimeA2.h
  9475. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9476. Implemented ServerStatMan::save(...) function and its test case.
  9477. * src/ServerStat.cc
  9478. * src/ServerStat.h
  9479. * src/ServerStatMan.cc
  9480. * src/ServerStatMan.h
  9481. * test/ServerStatManTest.cc
  9482. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9483. Now aria2 uses name attribute in Metalink as local filename in
  9484. BitTorrent downloads. BUG#2033999
  9485. * src/BtContext.h
  9486. * src/BtDependency.cc
  9487. * src/DefaultBtContext.cc
  9488. * src/DefaultBtContext.h
  9489. * src/SingleFileDownloadContext.cc
  9490. * src/SingleFileDownloadContext.h
  9491. * test/BtDependencyTest.cc
  9492. * test/DefaultBtContextTest.cc
  9493. * test/MockBtContext.h
  9494. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9495. Added AC_C_BIGENDIAN
  9496. * src/configure.ac
  9497. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9498. Limited numCommand less than or equal to the number of piece.
  9499. * src/RequestGroup.cc
  9500. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  9502. directive.
  9503. * test/DefaultPieceStorageTest.cc
  9504. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. Fixed memory leak in test code
  9506. * test/AnnounceListTest.cc
  9507. * test/DefaultPeerListProcessorTest.cc
  9508. * test/DefaultPeerStorageTest.cc
  9509. * test/MetaFileUtilTest.cc
  9510. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9511. Fixed wrong argument passing to BitfieldMan::isBitSet()
  9512. * src/DefaultPieceStorage.cc
  9513. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9514. Initialized _directIOAllowed
  9515. * src/MultiDiskAdaptor.cc
  9516. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9517. Fixed memory leak
  9518. * src/GZipDecoder.cc
  9519. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. Fixed memory leak
  9521. * src/MetalinkParserStateMachine.cc
  9522. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9523. Fixed memory leak
  9524. * src/Dictionary.cc
  9525. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9526. Fixed memory leak
  9527. * src/IteratableChunkChecksumValidator.h
  9528. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9529. Fixed unmatched malloc/free.
  9530. * src/IteratableChunkChecksumValidator.cc
  9531. * src/IteratableChecksumValidator.cc
  9532. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. Removed max chunk size check. This change fixes BUG#2040169
  9534. * src/ChunkedDecoder.cc
  9535. * src/ChunkedDecoder.h
  9536. * test/ChunkedDecoderTest.cc
  9537. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. Implemented download speed based URI selection algorithm.
  9539. Introduced new option --uri-selector.
  9540. If --uri-selector=feedback is given, aria2 uses download speed observed
  9541. in the previous downloads and chooses fastest server in the URI list.
  9542. Currently at most 10 URIs are considered to introduce randomeness for
  9543. finding better servers. The speed is average download speed in the
  9544. downloads.
  9545. On the other hand, if --uri-selector=inorder is given, which is default,
  9546. URI is tried in order in URI list.
  9547. The usage text for the new option has not been written yet.
  9548. * src/AbstractCommand.cc
  9549. * src/DownloadCommand.cc
  9550. * src/DownloadEngine.cc
  9551. * src/DownloadEngineFactory.cc
  9552. * src/InOrderURISelector.cc
  9553. * src/InOrderURISelector.h
  9554. * src/OptionHandlerFactory.cc
  9555. * src/PeerStat.h
  9556. * src/RequestGroup.cc
  9557. * src/RequestGroup.h
  9558. * src/RequestGroupMan.cc
  9559. * src/RequestGroupMan.h
  9560. * src/SegmentMan.cc
  9561. * src/SegmentMan.h
  9562. * src/ServerStat.cc
  9563. * src/ServerStat.h
  9564. * src/ServerStatMan.cc
  9565. * src/ServerStatMan.h
  9566. * src/ServerStatURISelector.cc
  9567. * src/ServerStatURISelector.h
  9568. * src/URISelector.h
  9569. * src/option_processing.cc
  9570. * src/prefs.cc
  9571. * src/prefs.h
  9572. * test/InOrderURISelectorTest.cc
  9573. * test/RequestGroupManTest.cc
  9574. * test/ServerStatManTest.cc
  9575. * test/ServerStatURISelectorTest.cc
  9576. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9577. * Release 0.15.1+2
  9578. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9579. Bump up version number to 0.15.1+2
  9580. * configure.ac
  9581. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9582. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  9583. * m4/aria2_arg.m4
  9584. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9585. * Release 0.15.1+1
  9586. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9587. Bump up version number to 0.15.1+1
  9588. * configure.ac
  9589. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9590. Fixed the bug that causes segmentaion fault when resuming download
  9591. using metalink without size tag. Reproducible only using HTTP URI.
  9592. * src/HttpResponseCommand.cc
  9593. * src/FtpNegotiationCommand.cc
  9594. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9595. * Release 0.15.1
  9596. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9597. Updated Bulgarian and French translations, thanks to all translators.
  9598. * po/bg.po
  9599. * po/fr.po
  9600. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9601. Bump up version number to 0.15.1
  9602. * configure.ac
  9603. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9604. Avoid repeated call of gettimeofday() when calculating speed.
  9605. * src/SpeedCalc.cc
  9606. * src/SpeedCalc.h
  9607. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Removed writable check when socket's send buffer is full in BitTorrent
  9609. downloads to lower CPU usage.
  9610. * src/PeerInteractionCommand.cc
  9611. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9612. Fixed broken gzip inflation.
  9613. Turn off segmented downloading if gzip content is smaller than or equal
  9614. to 1MiB and inflate the data on the fly, because HTTP response header
  9615. doesn't contain the length of inflated file we can't determin where
  9616. the chunk of data should be written.
  9617. On the other hand, if gzip content is larger than 1MB, then turn off
  9618. on the fly inflation, because some servers returns "content-type: gzip"
  9619. for *.tgz, *.gz files.
  9620. * src/DownloadCommand.cc
  9621. * src/HttpResponseCommand.cc
  9622. * src/HttpResponseCommand.h
  9623. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9624. Applied tizianomueller's patch to fix compile error.
  9625. * test/BitfieldManTest.cc
  9626. * test/BtRequestMessageTest.cc
  9627. * test/DefaultBtContextTest.cc
  9628. * test/DefaultDiskWriterTest.cc
  9629. * test/DefaultPieceStorageTest.cc
  9630. * test/HttpHeaderProcessorTest.cc
  9631. * test/HttpResponseTest.cc
  9632. * test/Metalink2RequestGroupTest.cc
  9633. * test/MetalinkParserControllerTest.cc
  9634. * test/MetalinkProcessorTest.cc
  9635. * test/PeerSessionResourceTest.cc
  9636. * test/UtilTest.cc
  9637. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. * Release 0.15.0
  9639. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9640. Reordered src files in POTFILES.in so that usage text appears first.
  9641. * po/POTFILES.in
  9642. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9643. Bump up version number to 0.15.0
  9644. * configure.ac
  9645. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9646. Added Bulgarian translation.
  9647. Updated Catalan, Spanish, French and Japanese translations.
  9648. Thanks to all translators.
  9649. * po/LINGUAS
  9650. * po/bg.po
  9651. * po/ca.po
  9652. * po/es.po
  9653. * po/fr.po
  9654. * po/ja.po
  9655. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9656. Updated feature list. Added libz for dependency section.
  9657. Added a description about unit testing using CppUnit.
  9658. * README
  9659. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9660. Added a test for libz. Quoted where it is necessary.
  9661. * build_test.sh
  9662. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Added GZip to `Enabled Features' list.
  9664. * src/FeatureConfig.cc
  9665. * src/FeatureConfig.h
  9666. * test/FeatureConfigTest.cc
  9667. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9668. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  9669. the transfer has not yet started.
  9670. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  9671. * src/SegmentMan.cc
  9672. * src/SegmentMan.h
  9673. * test/SegmentManTest.cc
  9674. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9675. Cache last calculated average download/upload speed.
  9676. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  9677. cached value.
  9678. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  9679. * src/PeerStat.h
  9680. * src/SpeedCalc.cc
  9681. * src/SpeedCalc.h
  9682. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9683. Call parseUrl directly.
  9684. * src/Request.cc (resetUrl)
  9685. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. Supported absolute/relative path in Location header field.
  9687. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  9688. * src/HttpHeader.cc
  9689. * src/HttpHeader.h
  9690. * src/HttpResponse.cc
  9691. * src/HttpSkipResponseCommand.cc
  9692. * src/Request.cc
  9693. * test/HttpHeaderTest.cc
  9694. * test/HttpResponseTest.cc
  9695. * test/RequestTest.cc
  9696. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9697. Changed help text for --load-cookie option.
  9698. * doc/aria2c.1.txt
  9699. * src/usage_text.h
  9700. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9701. Regenerated test/Makefile.in to remove stale ChangeLog.
  9702. * test/Makefile.in
  9703. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9704. Updated po files.
  9705. * po/aria2c.pot
  9706. * po/*.po
  9707. * po/*.gmo
  9708. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9709. Bump up version number to 0.15.0b
  9710. * configure.ac
  9711. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9712. Externalize messages.
  9713. * src/RequestGroupMan.cc
  9714. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  9715. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9716. Use File::exists() instead of File::isFile() to allow non-regular file
  9717. such as block special files.
  9718. * src/AbstractDiskWriter.cc
  9719. * src/MultiDiskWriter.cc
  9720. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  9722. * src/gai_strerror.h
  9723. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9724. Fixed compile error. Thanks gknauf for the patch.
  9725. * src/asctime_r.c
  9726. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9727. Included asctime_r.h from a2time.h.
  9728. * src/a2time.h
  9729. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9730. Added a message "aria2 doesn't verify signature" to log message when
  9731. signature file is saved.
  9732. * src/RequestGroupMan.cc
  9733. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9734. Added the ability to save signature when download is completed if
  9735. signature is available. The filename of signature file is the path to
  9736. download file followed by ".sig". If it already exists, then signature
  9737. will not be saved.
  9738. * src/RequestGroupMan.cc
  9739. * src/Signature.cc
  9740. * test/SignatureTest.cc
  9741. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9742. Updated the descriptions for --bt-seed-unverified.
  9743. * doc/aria2c.1
  9744. * doc/aria2c.1.html
  9745. * doc/aria2c.1.txt
  9746. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9747. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  9748. that this is not going to verify files using piece hashes.
  9749. * src/HelpItemFactory.cc
  9750. * src/OptionHandlerFactory.cc
  9751. * src/RequestGroup.cc
  9752. * src/option_processing.cc
  9753. * src/prefs.cc
  9754. * src/prefs.h
  9755. * src/usage_text.h
  9756. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. Added the ability to retrieve signature from Metalink file.
  9758. A retrieved signature is stored in Signature class and it is held by
  9759. DownloadContext class. Note that aria2 doesn't verify signature.
  9760. * src/DownloadContext.cc
  9761. * src/DownloadContext.h
  9762. * src/Makefile.am
  9763. * src/Makefile.in
  9764. * src/Metalink2RequestGroup.cc
  9765. * src/MetalinkEntry.cc
  9766. * src/MetalinkEntry.h
  9767. * src/MetalinkParserController.cc
  9768. * src/MetalinkParserController.h
  9769. * src/MetalinkParserStateMachine.cc
  9770. * src/MetalinkParserStateMachine.h
  9771. * src/Signature.cc
  9772. * src/Signature.h
  9773. * src/SignatureMetalinkParserState.cc
  9774. * src/SignatureMetalinkParserState.h
  9775. * src/VerificationMetalinkParserState.cc
  9776. * src/VerificationMetalinkParserState.h
  9777. * test/Metalink2RequestGroupTest.cc
  9778. * test/MetalinkParserControllerTest.cc
  9779. * test/MetalinkProcessorTest.cc
  9780. * test/test.xml
  9781. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9782. Close DiskAdaptor after renaming file.
  9783. * src/RequestGroup.cc
  9784. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9785. Corrected indentation
  9786. * src/DefaultBtProgressInfoFile.cc
  9787. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9788. Moved the calls of std::ios::exceptions() inside of try-catch block
  9789. because if an error occurred in constructor of std::fstream, then
  9790. exception is thrown immediately when std::ios::exceptions() is called
  9791. which results unhandled exception and aria2c aborts.
  9792. * src/DefaultBtProgressInfoFile.cc
  9793. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9794. Added the test for the previous change in DefaultBtContext.cc
  9795. * test/DefaultBtContextTest.cc
  9796. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Fixed the bug that causes infinite loop when the number of pieces are
  9798. fewer than allowed fast set size which is 10 by default.
  9799. * src/DefaultBtContext.cc
  9800. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9801. Updated the descriptions for -j, -s. Added --bt-seed.
  9802. * doc/aria2c.1
  9803. * doc/aria2c.1.html
  9804. * doc/aria2c.1.txt
  9805. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9806. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  9807. aria2 seeds previously downloaded files without validating piece hashs.
  9808. * src/HelpItemFactory.cc
  9809. * src/OptionHandlerFactory.cc
  9810. * src/RequestGroup.cc
  9811. * src/option_processing.cc
  9812. * src/prefs.cc
  9813. * src/prefs.h
  9814. * src/usage_text.h
  9815. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9816. Updated DESCRIPTION of man page.
  9817. * doc/aria2c.1
  9818. * doc/aria2c.1.html
  9819. * doc/aria2c.1.txt
  9820. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9821. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  9822. Don't define `struct addrinfo' when __sun is defined.
  9823. * src/getaddrinfo.h
  9824. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9825. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  9826. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  9827. second argument is of type `struct _stati64'. Otherwise it is defined as
  9828. `struct stat'.
  9829. * src/AbstractDiskWriter.cc
  9830. * src/File.cc
  9831. * src/File.h
  9832. * src/a2io.h
  9833. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9834. Fixed the compile error in hurd-i386
  9835. See the original bug report:
  9836. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  9837. * src/a2io.h
  9838. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9839. Code cleanup.
  9840. * src/PeerAbstractCommand.cc
  9841. * src/PeerAbstractCommand.h
  9842. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9843. Removed TransferEncoding.
  9844. * src/DownloadCommand.cc
  9845. * src/DownloadCommand.h
  9846. * src/HttpResponseCommand.cc
  9847. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9848. Updated po files.
  9849. * po/aria2c.pot
  9850. * po/*.po
  9851. * po/*.gmo
  9852. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9853. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9854. * src/A2STR.cc
  9855. * src/A2STR.h
  9856. * src/ChunkedDecoder.cc
  9857. * src/ChunkedDecoder.h
  9858. * src/ChunkedEncoding.cc: Removed
  9859. * src/ChunkedEncoding.h: Removed
  9860. * src/DownloadCommand.cc
  9861. * src/DownloadCommand.h
  9862. * src/HttpDownloadCommand.cc
  9863. * src/HttpResponse.cc
  9864. * src/HttpResponse.h
  9865. * src/HttpResponseCommand.cc
  9866. * src/HttpSkipResponseCommand.cc
  9867. * src/HttpSkipResponseCommand.h
  9868. * src/Makefile.am
  9869. * src/TransferEncoding.h: Removed
  9870. * test/ChunkedDecoderTest.cc
  9871. * test/ChunkedEncodingTest.cc: Removed
  9872. * test/HttpResponseTest.cc
  9873. * test/Makefile.am
  9874. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. Use append instead of insert.
  9876. * src/GZipDecoder.cc
  9877. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9878. Updated doc
  9879. * src/Decoder.h
  9880. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9881. Updated usage text for -s option.
  9882. * src/usage_text.h
  9883. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9884. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9885. * src/Request.cc
  9886. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9887. Cleaned up configure.ac.
  9888. * configure.ac
  9889. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9890. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9891. AC_ARG_ENABLE.
  9892. * configure.ac
  9893. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9894. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9895. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9896. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9897. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9898. fly and writes decoded data to a local disk.
  9899. * README
  9900. * README.html
  9901. * configure.ac
  9902. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9903. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9904. * m4/libz.m4
  9905. * src/Decoder.h
  9906. * src/DownloadCommand.cc
  9907. * src/DownloadCommand.h
  9908. * src/Exception.h
  9909. * src/GZipDecoder.cc
  9910. * src/GZipDecoder.h
  9911. * src/HttpHeader.cc
  9912. * src/HttpHeader.h
  9913. * src/HttpRequest.cc
  9914. * src/HttpRequest.h
  9915. * src/HttpResponse.cc
  9916. * src/HttpResponse.h
  9917. * src/HttpResponseCommand.cc
  9918. * src/Makefile.am
  9919. * test/GZipDecoderTest.cc
  9920. * test/HttpRequestTest.cc
  9921. * test/HttpResponseTest.cc
  9922. * test/Makefile.am
  9923. * test/Makefile.in
  9924. * test/gzip_decode_test.gz
  9925. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9926. Clarified usage of -j option.
  9927. * src/usage_text.h
  9928. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9929. Disabled getting size from the response of RETR.
  9930. If SIZE command failed, then disable resuming and segmented downloading.
  9931. * src/FtpConnection.cc
  9932. * src/FtpConnection.h
  9933. * src/FtpNegotiationCommand.cc
  9934. * src/FtpNegotiationCommand.h
  9935. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9936. Use digits to find first byte of file size, which makes the intention
  9937. of the code clearer.
  9938. * src/FtpConnection.cc
  9939. Don't call validateTotalLength() when size is 0.
  9940. * src/FtpNegotiationCommand.cc
  9941. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9942. Updated po files.
  9943. * po/aria2c.pot
  9944. * po/*.gmo
  9945. * po/*.po
  9946. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9947. Clarified usage text for --split option.
  9948. * src/usage_text.h
  9949. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9950. Bump up version number to 0.15.0dev. "dev" means "development"
  9951. version, which means I started the development of the next release!
  9952. * src/configure.ac
  9953. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. If FTP server returns negative response with REST raw command and
  9955. requested range is not 0, throw exception. If requested range is 0,
  9956. continue download a file from 0 byte.
  9957. * src/FtpNegotiationCommand.cc
  9958. * src/FtpNegotiationCommand.h
  9959. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9960. Supported FTP server which don't recognize SIZE raw command.
  9961. If SIZE raw command is failed, aria2 will try to get file size
  9962. from the response of RETR raw command. If both attempts are failed,
  9963. then resuming and segmented downloading are disabled.
  9964. * src/FtpConnection.cc
  9965. * src/FtpConnection.h
  9966. * src/FtpNegotiationCommand.cc
  9967. * src/FtpNegotiationCommand.h
  9968. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9969. * Release 0.14.0+1
  9970. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9971. Bump up version number to 0.14.0+1
  9972. * src/configure.ac
  9973. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9974. Fixed the code that refers static member variable from non-static
  9975. context.
  9976. * src/DefaultPeerStorage.cc
  9977. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9978. * Release 0.14.0
  9979. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9980. Added build test script
  9981. * build_test.sh
  9982. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9983. Updated ja.po
  9984. * src/ja.po
  9985. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9986. Bump up version number to 0.14.0
  9987. * src/configure.ac
  9988. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9989. Updated ja.po and fr.po. Great thanks for french translators and
  9990. Sebastien WILLEMIJNS.
  9991. * po/fr.po
  9992. * po/ja.po
  9993. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9994. Added configure option to enable/disable epoll support.
  9995. * configure.ac
  9996. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9997. Updated man page.
  9998. * doc/aria2c.1.txt
  9999. * doc/aria2c.1
  10000. * doc/aria2c.1.html
  10001. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10002. Added missing default value '5' to the usage of --split option.
  10003. * src/HelpItemFactory.cc
  10004. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10005. Filled up pieces based on the number of missing blocks, rather than
  10006. simplay the number of piece * block length.
  10007. * src/BtRequestFactory.h
  10008. * src/DefaultBtInteractive.cc
  10009. * src/DefaultBtInteractive.h
  10010. * src/DefaultBtRequestFactory.cc
  10011. * src/DefaultBtRequestFactory.h
  10012. * src/Piece.cc
  10013. * src/Piece.h
  10014. * test/BitfieldManTest.cc
  10015. * test/DefaultBtRequestFactoryTest.cc
  10016. * test/MockBtRequestFactory.h
  10017. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10018. Made _epEvents a member variable.
  10019. * src/DownloadEngine.cc
  10020. * src/DownloadEngine.h
  10021. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10022. Cancel download if http redirect is bounded more than 20 times.
  10023. * src/AbstractCommand.cc
  10024. * src/HttpSkipResponseCommand.cc
  10025. * src/Request.cc
  10026. * src/Request.h
  10027. * test/RequestTest.cc
  10028. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10029. Fixed unhandled exception(removed keyword `new').
  10030. * src/SocketCore.cc (initEPOLL)
  10031. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10032. Removed visit(const MetaEntry*)
  10033. * src/MetaEntryVisitor.h:
  10034. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  10035. and made them virtual.
  10036. * src/BencodeVisitor.h
  10037. * src/BencodeVisitor.cc
  10038. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10039. Updated po files.
  10040. * po/aria2c.pot
  10041. * po/*.po
  10042. * po/*.gmo
  10043. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10044. Moved the call setWriteCheckSocket inside the previous clause to reduce
  10045. the number of socket to watch out.
  10046. * src/PeerInteractionCommand.cc
  10047. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10048. When there is not enough space in disk when writing a chunk of data,
  10049. aria2 now prints the message to the console to warn user and aborts
  10050. its download. Not all downloads are canceled because some downloads
  10051. may use another disk or partition. BUG#1640332
  10052. * src/AbstractDiskWriter.cc
  10053. * src/PeerAbstractCommand.cc
  10054. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  10055. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  10056. setHaltRequested(true) to cancel download.
  10057. * src/PeerInteractionCommand.h
  10058. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10059. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  10060. socket from int to sock_t as sockets are unsigned in Windows.
  10061. For AsyncNameResolver, DownloadEngine, I did additional modification
  10062. for the portion of the code changed according to epoll support.
  10063. I defined sock_t in a2netcompat.h to use sock_t without including
  10064. SocketCore.h.
  10065. * src/AsyncNameResolver.cc
  10066. * src/AsyncNameResolver.h
  10067. * src/DownloadEngine.cc
  10068. * src/DownloadEngine.h
  10069. * src/SocketCore.cc
  10070. * src/SocketCore.h
  10071. * src/a2netcompat.h
  10072. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  10074. changes in the patch were applied.
  10075. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  10076. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  10077. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  10078. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  10080. a2io.h and common.h were modified.
  10081. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  10082. MinGW.
  10083. * src/common.h: Changed off_t to 64 bit in MinGW.
  10084. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10085. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  10086. only a2netcompat.h is modified.
  10087. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  10088. directives.
  10089. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10090. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  10091. only gai_strerror.h is modified.
  10092. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  10093. winsock errors in MinGW.
  10094. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10095. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  10096. follow sources are applied.
  10097. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  10098. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  10099. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  10100. I included locale.h from Platform.cc.
  10101. * src/main.cc: Moved common setup/teardown code to Platform class.
  10102. * test/AllTest.cc: Use Platform class.
  10103. Set locale to C in AllTest.cc to prevent the messages to be localized.
  10104. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10105. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  10106. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  10107. * test/HttpRequestTest.cc: Casted to off_t where it should.
  10108. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10109. Applied Ross's aria2-0.13.2+1-mingw.patch and
  10110. aria2-0.13.2+1-mingw-2.patch.
  10111. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  10112. systems which don't have termious.h. I moved the directive inside of
  10113. if(isTTY) { ... clause so that line is wiped out without termious.h.
  10114. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  10115. anyway.
  10116. * src/asctime_r.h
  10117. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  10118. I added 2nd argument to the prototype declaration.
  10119. * src/StringFormat.cc: Get rid of vasprintf.
  10120. * src/getaddrinfo.h: Fixed constants.
  10121. * configure.ac: Added the check for asctime_r function.
  10122. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  10123. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10124. Added writable test for Socket when the sending message is in progress.
  10125. Usually the sending message is piece message. Without wriable check,
  10126. upload latency is dropped to more than 1sec.
  10127. * src/PeerInteractionCommand.cc
  10128. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10129. Create only requested files and files which shares a piece with
  10130. requested file in multi-torrent downloads. Directory structures are
  10131. also created in the same rule.
  10132. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  10133. DiskWriterEntry as in the previous implementation.
  10134. * src/MultiDiskWriter.cc
  10135. * src/MultiFileAllocationIterator.cc
  10136. * src/MultiFileAllocationIterator.h
  10137. * test/MultiFileAllocationIteratorTest.cc
  10138. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. Commented out -lprofiler
  10140. * src/Makefile.am
  10141. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10142. Bump up version number to 0.14.0b.
  10143. * src/configure.ac
  10144. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10145. Actively establish connection to peers in seeding, when peer cache
  10146. is not full and max upload speed limit is not reached.
  10147. * src/ActivePeerConnectionCommand.cc
  10148. * src/ActivePeerConnectionCommand.h
  10149. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10150. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  10151. to make room more fleshy, recently found peers.
  10152. Peer::_badConditionStartTime is not used anymore. Consider to remove
  10153. it.
  10154. * src/DefaultPeerStorage.cc
  10155. * test/DefaultPeerStorageTest.cc
  10156. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10157. Returns cached data only when the previous receiveHandshake() is called
  10158. with peek = true.
  10159. * src/PeerConnection.cc (receiveHandshake)
  10160. * src/PeerConnection.h (receiveHandshake)
  10161. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10162. Changed default value of -s option from 1 to 5.
  10163. Also max value of -s option is changed from 5 to 16.
  10164. * src/HelpItemFactory.cc
  10165. * src/OptionHandlerFactory.cc
  10166. * src/option_processing.cc
  10167. * src/usage_text.h
  10168. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10169. Changed -s options behavior. Now it means the number of connections
  10170. made simultaneously in each http/ftp download.
  10171. If 1 URL is specified, the behavior is the same with old implementation.
  10172. If -s N is given and more than N URLs are specified, first N URLs are
  10173. used and remaining URLs are used for backup. If less than N URLs are
  10174. specified, some of URLs are used more than once so that totally N
  10175. connections are made simultaneously.
  10176. * src/main.cc
  10177. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10178. Included missing iosfwd or ostream header.
  10179. * src/RequestGroupMan.cc
  10180. * src/TaggedItem.cc
  10181. * src/TaggedItem.h
  10182. * src/Util.cc
  10183. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10184. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  10185. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  10186. * src/HttpConnection.cc: Included missing sstream.
  10187. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10188. Added --bt-max-open-files option.
  10189. * src/DefaultPieceStorage.cc
  10190. * src/HelpItemFactory.cc
  10191. * src/MultiDiskAdaptor.cc
  10192. * src/MultiDiskAdaptor.h
  10193. * src/OptionHandlerFactory.cc
  10194. * src/option_processing.cc
  10195. * src/prefs.cc
  10196. * src/prefs.h
  10197. * src/usage_text.h
  10198. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10199. Fixed the bug that aria2 aborts when a path to a directory is given
  10200. in command-line.
  10201. * src/ProtocolDetector.cc
  10202. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10203. Limited the number files opened in each BitTorrent download. The default
  10204. value is 100. The option to change this value will be added.
  10205. * src/MultiDiskAdaptor.cc
  10206. * src/MultiDiskAdaptor.h
  10207. * src/MultiFileAllocationIterator.cc
  10208. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10209. Fixed the bug that HTTP downloads don't start with old libraries.
  10210. * src/HttpHeaderProcessor.cc
  10211. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10212. Use empty() instead of size() > 0.
  10213. * src/HttpConnection.cc
  10214. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10215. Drop connection if the incoming peer ID is the same with localhost's
  10216. one. The previous implementation drops connection when incoming peer's
  10217. IP address is the same with localhost's one.
  10218. * src/PeerListenCommand.cc
  10219. * src/DefaultBtInteractive.cc
  10220. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10221. Returns cached data without checking whether socket is readable
  10222. if the cache is available.
  10223. * src/PeerConnection.cc (receiveHandshake)
  10224. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10225. Included stdint.h
  10226. * src/common.h
  10227. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10228. Removed duplicate HAVE_GETTIMEOFDAY
  10229. * src/Makefile.am
  10230. * src/Makefile.in
  10231. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10232. Use interval as a minInterval when minInterval is not supplied.
  10233. * src/DefaultBtAnnounce.cc
  10234. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10235. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  10236. attempt is failed, then 2nd attempt get kicked out more quickly.
  10237. And it is now static const member of DefaultBtAnnounce.
  10238. * src/DefaultBtAnnounce.h
  10239. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10240. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  10241. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  10242. * src/ActivePeerConnectionCommand.cc
  10243. * src/BtConstants.h
  10244. * src/BtRuntime.h
  10245. * src/DHTGetPeersCommand.cc
  10246. * src/DefaultBtAnnounce.cc
  10247. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  10248. BtRuntime::MAX_PEERS.
  10249. * src/DefaultPeerStorage.h
  10250. * src/InitiatorMSEHandshakeCommand.cc
  10251. * src/PeerInitiateConnectionCommand.cc
  10252. * src/PeerInteractionCommand.cc
  10253. * src/PeerReceiveHandshakeCommand.cc
  10254. * src/TrackerWatcherCommand.cc
  10255. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10256. Always Connect to _numNewConnection
  10257. * src/ActivePeerConnectionCommand.cc
  10258. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. Made `begin' unsigned int.
  10260. * src/GrowSegment.h
  10261. * src/Piece.cc
  10262. * src/Piece.h
  10263. * src/PiecedSegment.cc
  10264. * src/PiecedSegment.h
  10265. * src/Segment.h
  10266. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10267. Calculate piece hash when data is arrived if the data is arrived in
  10268. order. This removes additional read operation for hash calculation.
  10269. If the data is arrived in out of order, the hash is calucated when the
  10270. piece is completed. This is the same behavior as the old implementation.
  10271. * src/BtPieceMessage.cc
  10272. * src/DefaultBtProgressInfoFile.cc
  10273. * src/DefaultPieceStorage.cc
  10274. * src/DownloadCommand.cc
  10275. * src/DownloadCommand.h
  10276. * src/DownloadEngine.cc
  10277. * src/GrowSegment.cc
  10278. * src/GrowSegment.h
  10279. * src/Piece.cc
  10280. * src/Piece.h
  10281. * src/PiecedSegment.cc
  10282. * src/PiecedSegment.h
  10283. * src/Segment.h
  10284. * test/PieceTest.cc
  10285. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Try to keep the ordering of outgoing piece message.
  10287. * src/DefaultBtMessageDispatcher.cc
  10288. (DefaultBtMessageDispatcher::sendMessages)
  10289. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10290. Fixed busy loop when error/hup epoll events occur.
  10291. * src/AbstractCommand.cc
  10292. * src/PeerAbstractCommand.cc
  10293. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10294. Added --bt-request-peer-speed-limit option, which was a constant
  10295. SLOW_SPEED_THRESHOLD.
  10296. * src/ActivePeerConnectionCommand.cc
  10297. * src/ActivePeerConnectionCommand.h
  10298. * src/BtConstants.h
  10299. * src/HelpItemFactory.cc
  10300. * src/OptionHandlerFactory.cc
  10301. * src/PeerReceiveHandshakeCommand.cc
  10302. * src/option_processing.cc
  10303. * src/prefs.cc
  10304. * src/prefs.h
  10305. * src/usage_text.h
  10306. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10307. Removed repeated call of getTopDirPath(). Instead, call it once and
  10308. cache the result.
  10309. * src/MultiDiskAdaptor.cc
  10310. * src/MultiDiskAdaptor.h
  10311. (mkdir, openFile, initAndOpenFile, openExistingFile)
  10312. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10313. Fixed compile error on debian etch.
  10314. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  10315. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  10316. it is undefined.
  10317. * src/Util.cc (ULLONG_MAX)
  10318. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. Added epoll support. Use epoll if it is available. If not, use select.
  10320. When async dns is enabled in compile time, epoll support is enabled
  10321. only when aria2 is built with c-ares. This condition statement is
  10322. defined in a2io.h.
  10323. Currently aria2 supports both c-ares and ares, but ares is maintained
  10324. for quite a while and debian already has c-ares package, ares support
  10325. will be dropped in the future version.
  10326. * configure.ac
  10327. * src/AbstractCommand.cc
  10328. * src/AsyncNameResolver.cc
  10329. * src/AsyncNameResolver.h
  10330. * src/Command.cc
  10331. * src/Command.h
  10332. * src/DownloadEngine.cc
  10333. * src/DownloadEngine.h
  10334. * src/PeerAbstractCommand.cc
  10335. * src/SocketCore.cc
  10336. * src/SocketCore.h
  10337. * src/a2io.h
  10338. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10339. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  10340. directive.
  10341. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10342. Do not do write operation to /dev/null file.
  10343. * src/LogFactory.cc
  10344. * src/SimpleLogger.cc
  10345. Replaced vasprintf with vsnprintf
  10346. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  10347. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10348. * src/BtRequestMessage.cc
  10349. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  10350. for segmentation fault caused by previous commit.
  10351. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10352. Reduced the usage of gettimeofday().
  10353. * src/DefaultBtMessageDispatcher.cc
  10354. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  10355. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10356. * src/RequestSlot.cc
  10357. * src/RequestSlot.h
  10358. (RequestSlot::isTimeout)
  10359. Made RequestSlot have a reference to Piece object to avoid find
  10360. Piece repeatedly.
  10361. * src/DefaultBtMessageDispatcher.cc
  10362. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10363. * src/RequestSlot.cc
  10364. * src/RequestSlot.h
  10365. (RequestSlot::getPiece)
  10366. * test/DefaultBtMessageDispatcherTest.cc
  10367. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10368. * src/TimeA2.cc
  10369. * src/TimeA2.h
  10370. (Time::difference): New function.
  10371. (Time::elapsed): Done optimization.
  10372. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10373. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  10374. directive.
  10375. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10376. * src/option_processing.cc: Added missing `defined' keyword to #if
  10377. directive.
  10378. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10379. Bump up version number to 0.13.2+1
  10380. * src/configure.ac
  10381. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10382. Refactored broken outstanding piece handling.
  10383. * src/DefaultPieceStorage.cc
  10384. * src/DefaultPieceStorage.h
  10385. * src/Piece.cc
  10386. * src/Piece.h
  10387. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10388. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  10389. name collision of static variable and predefined macro.
  10390. * src/BtContext.cc
  10391. * src/BtContext.h
  10392. * src/CookieBoxFactory.cc
  10393. * src/CookieBoxFactory.h
  10394. * src/CookieParser.cc
  10395. * src/CookieParser.h
  10396. * src/DefaultBtContext.cc
  10397. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10398. * src/RequestGroup.cc
  10399. (RequestGroup::createInitialCommand): Use empty() instead of size().
  10400. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10401. * Release 0.13.2
  10402. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10403. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  10404. * po/fr.po
  10405. * po/ja.po
  10406. * po/aria2c.pot
  10407. * po/*.po
  10408. * po/*.gmo
  10409. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10410. Bump up version number to 0.13.2
  10411. * src/configure.ac
  10412. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10413. Refactord.
  10414. * src/RequestGroupMan.cc
  10415. (removeStoppedGroup)
  10416. (fillRequestGroupFromReserver)
  10417. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10418. Fixed compile error on Ubuntu.
  10419. * src/BtPieceMessage.cc
  10420. * src/MessageDigestHelper.cc
  10421. * src/Util.cc
  10422. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10423. Fixed compile error when configured with --disable-bittorrent
  10424. * test/DownloadHandlerFactoryTest.cc
  10425. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10426. Done make update-po
  10427. * po/aria2c.pot
  10428. * po/*.po
  10429. * po/*.gmo
  10430. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10431. Bump up version number to 0.13.2rc.
  10432. * src/configure.ac
  10433. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10434. Made option name bold. Updated SYNOPSIS to make it more readable.
  10435. * doc/aria2c.1.txt
  10436. * doc/aria2c.1
  10437. * doc/aria2c.1.html
  10438. * src/version_usage.cc
  10439. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10440. Refactored. Use std::string instead of size and char*.
  10441. * Data.cc
  10442. * Data.h
  10443. * test/Data.cc
  10444. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10445. Added trimSelf(). Rewritten trim() to use trimSelf().
  10446. * Util.cc
  10447. * Util.h
  10448. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10449. * src/ChunkChecksum.h (getChecksum): Return const reference.
  10450. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10451. Fixed compile error when configured with --disable-metalink.
  10452. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  10453. * test/FeatureConfigTest.cc
  10454. * test/DownloadHandlerFactoryTest.cc
  10455. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10456. Fixed compile error when configured with --without-gnutls
  10457. --without-openssl
  10458. * src/main.cc
  10459. * test/DefaultBtProgressInfoFileTest.cc
  10460. * test/SegmentManTest.cc
  10461. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10462. Fixed compile error with OpenSSL.
  10463. * src/IteratableChunkChecksumValidator.cc
  10464. * src/LibsslDHKeyExchange.h
  10465. * src/MessageDigestHelper.cc
  10466. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10467. Revert the default value of --max-concurrent-downloads to 5.
  10468. Revert the default value of --metalink-servers to 5.
  10469. Man pages was also updated.
  10470. * src/option_processing.cc
  10471. * doc/aria2c.1.txt
  10472. * doc/aria2c.1.html
  10473. * doc/aria2c.1
  10474. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. Returns const reference:
  10476. DownloadContext::getPieceHash, DownloadContext::getName,
  10477. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  10478. BtContext::getInfoHashAsString,
  10479. * src/BtContext.h
  10480. * src/DefaultBtContext.cc
  10481. * src/DefaultBtContext.h
  10482. * src/DownloadContext.h
  10483. * src/SingleFileDownloadContext.h
  10484. * test/MockBtContext.h
  10485. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10486. * src/RequestGroup.h (getDir): Removed.
  10487. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10488. Returns const reference. The internal urlencode function was optimized
  10489. a little bit.
  10490. * src/Request.cc
  10491. * src/Request.h
  10492. * src/HttpRequest.cc
  10493. * src/HttpRequest.h
  10494. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10495. Defined option name and possible values as std::string to reduce
  10496. temporary string object creation in runtime.
  10497. * src/HelpItemFactory.cc
  10498. * src/LogFactory.cc
  10499. * src/Option.cc
  10500. * src/OptionHandlerFactory.cc
  10501. * src/option_processing.cc
  10502. * src/prefs.cc
  10503. * src/prefs.h
  10504. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10505. Return const reference.
  10506. * src/DownloadHandlerConstants.cc
  10507. * src/DownloadHandlerConstants.h
  10508. (getMetalinkExtensions)
  10509. (getMetalinkContentTypes)
  10510. (getBtExtensions)
  10511. (getBtContentTypes)
  10512. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10513. * src/HttpHeader.cc (get): Rewritten.
  10514. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10515. Make HttpHeader::getFirst(...) return const reference.
  10516. * src/HttpHeader.cc
  10517. * src/HttpHeader.h
  10518. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10519. Use Option::getAsBool(...) instead of Option::get(...) and compare
  10520. it with V_TRUE.
  10521. * src/DefaultPieceStorage.cc
  10522. * src/DownloadCommand.cc
  10523. * src/FtpNegotiationCommand.cc
  10524. * src/HttpRequest.cc
  10525. * src/InitiateConnectionCommand.cc
  10526. * src/RequestGroup.cc
  10527. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10528. Made Option::get(...) return const reference of std::string.
  10529. * src/Option.cc
  10530. * src/Option.h
  10531. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10532. Replaced std:copy with insert.
  10533. * src/DefaultBtMessageDispatcher.cc
  10534. * src/DefaultPieceStorage.cc
  10535. * src/DownloadEngineFactory.cc
  10536. * src/RequestGroup.cc
  10537. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. Included SocketCore.h to fix compiler warning.
  10539. * src/InitiateConnectionCommand.cc
  10540. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Put piece selection strategy algorithm to RarestPieceSelector class,
  10542. Added a switch to choose whether randomized selection so that unit
  10543. tests emit same results in, possibly, win32.
  10544. * src/DefaultPieceStorage.cc
  10545. * src/DefaultPieceStorage.h
  10546. * src/RarestPieceSelector.cc
  10547. * src/RarestPieceSelector.h
  10548. * test/DefaultPieceStorageTest.cc
  10549. * test/RarestPieceSelectorTest.cc
  10550. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10551. Don't pool connection if HTTP proxy is enabled.
  10552. * src/FtpFinishDownloadCommand.cc
  10553. * src/FtpNegotiationCommand.cc
  10554. * src/HttpSkipResponseCommand.cc
  10555. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10556. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  10557. * src/AbstractCommand.cc
  10558. * src/AbstractCommand.h
  10559. * src/ActivePeerConnectionCommand.cc
  10560. * src/FtpInitiateConnectionCommand.cc
  10561. * src/HttpInitiateConnectionCommand.cc
  10562. * src/InitiateConnectionCommandFactory.cc
  10563. * src/PeerAbstractCommand.cc
  10564. * src/PeerAbstractCommand.h
  10565. * src/PeerInitiateConnectionCommand.cc
  10566. * src/TrackerWatcherCommand.cc
  10567. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. Sort RequestSlot in ascending order and manipulate them using
  10569. lower_bound.
  10570. * src/DefaultBtMessageDispatcher.cc
  10571. * src/DefaultBtMessageDispatcher.h
  10572. (getMessageQueue): Added const qualifier.
  10573. (getRequestSlots): Added const qualifier.
  10574. (sendMessages): Use empty() instead of size().
  10575. (doCancelSendingPieceAction): Use HandleEvent object.
  10576. (doAbortOutstandingRequestAction): Rewritten.
  10577. (doChokedAction): Rewritten.
  10578. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  10579. (isOutstandingRequest): Rewritten.
  10580. (getOutstandingRequest): Rewritten.
  10581. (removeOutstandingRequest): Rewritten.
  10582. (addOutstandingRequest): Rewritten.
  10583. * src/RequestSlot.cc
  10584. * src/RequestSlot.h
  10585. (operator=): Rewritten.
  10586. (operator!=): New function.
  10587. (operator<): New function.
  10588. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. * src/DefaultBtRequestFactory.cc
  10590. (doChokedAction): Rewritten.
  10591. (removeCompletedPiece): Rewritten.
  10592. (removeTargetPiece): Rewritten.
  10593. (createRequestMessages): Added the debug log.
  10594. (createRequestMessagesOnEndGame: Added the debug log.
  10595. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10596. Added the debug log message.
  10597. * src/BtPieceMessage.cc (doReceivedAction)
  10598. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10599. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  10600. used lower_bound to process them rather than linear search.
  10601. * src/DHTPeerAnnounceStorage.cc
  10602. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10603. Call subtractPieceStats from ~PeerInteractionCommand only when the
  10604. peer has at least one completed piece.
  10605. * src/Peer.cc
  10606. * src/Peer.h
  10607. * src/PeerInteractionCommand.cc
  10608. * src/PeerSessionResource.cc
  10609. * src/PeerSessionResource.h
  10610. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10611. Removed unnecessary sorting
  10612. * src/DefaultPieceStorage (DefaultPieceStorage)
  10613. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10614. Rewritten the portion of the code that mangaes allowed fast indexes.
  10615. * src/PeerSessionResource.cc
  10616. * src/PeerSessionResource.h
  10617. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10618. Removed the invalid string including '\r' from ru.po and
  10619. did make update-po.
  10620. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10621. Added --log-level and --summary-interval to man page.
  10622. * doc/aria2c.1.txt
  10623. * doc/aria2c.1.html
  10624. * doc/aria2c.1
  10625. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10626. Added --log-level option to specify log level. Log messages under
  10627. the specified level are not output. Default value is `debug'.
  10628. * src/HelpItemFactory.cc
  10629. * src/LogFactory.cc
  10630. * src/LogFactory.h
  10631. * src/Logger.h
  10632. * src/OptionHandlerFactory.cc
  10633. * src/SimpleLogger.cc
  10634. * src/SimpleLogger.h
  10635. * src/main.cc
  10636. * src/option_processing.cc
  10637. * src/prefs.h
  10638. * src/usage_text.h
  10639. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10640. Print download progress summary of all parallel downloads in specified
  10641. interval, default 60 secs. While aria2 could download several files
  10642. in parallel (see -j option), it displayed just first download progress,
  10643. and the other downloads are hidden from the users. This new feature
  10644. prints all downloads currently in-progress to the console so that you
  10645. can check the status of all downloads. The interval can be adjusted
  10646. by --summary-interval option.
  10647. The progress readout is now cut so that all fits in the one line of
  10648. console.
  10649. * src/ConsoleStatCalc.cc
  10650. * src/ConsoleStatCalc.h
  10651. * src/HelpItemFactory.cc
  10652. * src/OptionHandlerFactory.cc
  10653. * src/RequestGroupMan.cc
  10654. * src/RequestGroupMan.h
  10655. * src/main.cc
  10656. * src/option_processing.cc
  10657. * src/prefs.h
  10658. * src/usage_text.h
  10659. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10660. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  10661. * src/DownloadEngine.cc (DownloadEngine)
  10662. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10663. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  10664. defined.
  10665. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  10666. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10667. Use erase+lower_bound+insert instead of sort.
  10668. * src/DefaultPieceStorage.cc (addPieceStats)
  10669. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10670. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  10671. * src/A2STR.cc
  10672. * src/A2STR.h
  10673. * src/OptionParser.cc (parse)
  10674. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10675. Defined fake filename `[tracker.announce]' as static const std::string.
  10676. * src/TrackerWatcherCommand.cc (createRequestGroup)
  10677. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10678. Defined default filename `index.html' as static const std::string
  10679. * src/SingleFileDownloadContext.cc
  10680. * src/SingleFileDownloadContext.h
  10681. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10682. Defined "[MEMORY]" as static const std::string.
  10683. * src/MemoryBufferPreDownloadHandler.cc (execute)
  10684. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10685. Defined control file's version number as static const std::string.
  10686. * src/DefaultBtProgressInfoFile.cc
  10687. * src/DefaultBtProgressInfoFile.h
  10688. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10689. Use Request::METHOD_GET
  10690. * src/RequestGroup.cc (createNextCommandWithAdj)
  10691. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10692. Defined "OK", "ERR", "INPR" as static const std::string
  10693. * src/RequestGroupMan.cc (showDownloadResults)
  10694. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10695. Defined default client used in extended handshake as static const
  10696. std::string
  10697. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  10698. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10699. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  10700. * src/HttpConnection.cc (eraseConfidentialInfo)
  10701. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10702. Defined default ftp user and password as static const std::string
  10703. * src/AuthConfigFactory.cc
  10704. * src/AuthConfigFactory.h
  10705. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10706. Defined strings used in netrc as static const std::string
  10707. * src/Netrc.cc
  10708. * src/Netrc.h
  10709. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10710. Defined HTTP status as static const std::string
  10711. * src/AbstractProxyResponseCommand.cc
  10712. * src/HttpHeader.cc
  10713. * src/HttpHeader.h
  10714. * src/HttpResponse.cc
  10715. * src/HttpResponseCommand.cc
  10716. * src/HttpSkipResponseCommand.cc
  10717. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. Defined "\r\n", "A", "I" as static const std::string
  10719. * src/A2STR.cc
  10720. * src/A2STR.h
  10721. * src/FtpConnection.cc
  10722. * src/FtpConnection.h
  10723. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10724. Added COLON_C(".") and used it in Request::parseUrl()
  10725. * src/A2STR.cc
  10726. * src/A2STR.h
  10727. * src/Request.cc (parseUrl)
  10728. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10729. Changed the type of padName from `const std::string&' to `const char*'.
  10730. * src/MSEHandshake.cc (verifyPadLength)
  10731. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10732. Defined "sha1" as static const std::string.
  10733. * src/MetalinkParserController.cc
  10734. * src/MetalinkParserController.h
  10735. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10736. Defined message digest algorithm name as static const std::string
  10737. * src/DHTTokenTracker.cc
  10738. * src/DHTUtil.cc
  10739. * src/DefaultBtContext.cc
  10740. * src/MSEHandshake.cc
  10741. * src/MessageDigestHelper.cc
  10742. * src/Peer.cc
  10743. * src/messageDigest.cc
  10744. * src/messageDigest.h
  10745. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10746. Made string literals used in SAX parser static const std::string.
  10747. * src/FileMetalinkParserState.cc
  10748. * src/FileMetalinkParserState.h
  10749. * src/FilesMetalinkParserState.cc
  10750. * src/FilesMetalinkParserState.h
  10751. * src/InitialMetalinkParserState.cc
  10752. * src/InitialMetalinkParserState.h
  10753. * src/MetalinkMetalinkParserState.cc
  10754. * src/MetalinkMetalinkParserState.h
  10755. * src/PiecesMetalinkParserState.cc
  10756. * src/PiecesMetalinkParserState.h
  10757. * src/ResourcesMetalinkParserState.cc
  10758. * src/ResourcesMetalinkParserState.h
  10759. * src/VerificationMetalinkParserState.cc
  10760. * src/VerificationMetalinkParserState.h
  10761. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10762. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  10763. * src/A2STR.cc
  10764. * src/A2STR.h
  10765. * src/File.cc
  10766. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10767. Defined static const std::string IP("ip"), PORT("port") and use them
  10768. instead of string literals.
  10769. * src/DefaultPeerListProcessor.cc
  10770. * src/DefaultPeerListProcessor.h
  10771. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10772. Made string literals for torrent file processing static const
  10773. std::string.
  10774. * src/BtContext.cc
  10775. * src/BtContext.h
  10776. * src/DefaultBtContext.cc
  10777. * src/DefaultBtContext.h
  10778. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10779. Made string literal for tracker response static const std::string
  10780. * src/BtAnnounce.cc
  10781. * src/BtAnnounce.h
  10782. * src/DefaultBtAnnounce.cc
  10783. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10784. Use DHTMessage::T instead of "t".
  10785. * src/DHTMessageTracker.cc (messageArrived)
  10786. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10787. Made keyName static const. Made trimmed charset static const
  10788. std::string.
  10789. * src/Util.cc (getContentDispositionFilename)
  10790. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10791. Made USER_AGENT const. Made "/" static const std::string.
  10792. * src/A2STR.cc
  10793. * src/A2STR.h
  10794. * src/HttpRequest.cc
  10795. * src/HttpRequest.h
  10796. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10797. Made string listeral to static const std::string:
  10798. "Content-Range", "Content-Length"
  10799. * src/HttpHeader.cc
  10800. * src/HttpHeader.h
  10801. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10802. Made string listeral to static const std::string.
  10803. * src/HttpConnection.cc
  10804. * src/HttpHeader.cc
  10805. * src/HttpHeader.h
  10806. * src/HttpResponse.cc
  10807. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10808. Made string listeral to static const std::string.
  10809. * src/A2STR.cc
  10810. * src/A2STR.h
  10811. * src/SimpleLogger.cc
  10812. * src/SimpleLogger.h
  10813. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10814. Made string literal to static const std::string.
  10815. Rewritten CookieParser::setField.
  10816. * src/A2STR.cc
  10817. * src/A2STR.h
  10818. * src/CookieBoxFactory.cc
  10819. * src/CookieBoxFactory.h
  10820. * src/CookieParser.cc
  10821. * src/CookieParser.h
  10822. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10823. Made string literal to static const std::string
  10824. * src/DHTAbstractMessage.cc
  10825. * src/DHTAnnouncePeerMessage.cc
  10826. * src/DHTAnnouncePeerMessage.h
  10827. * src/DHTAnnouncePeerReplyMessage.cc
  10828. * src/DHTAnnouncePeerReplyMessage.h
  10829. * src/DHTFindNodeMessage.cc
  10830. * src/DHTFindNodeMessage.h
  10831. * src/DHTFindNodeReplyMessage.cc
  10832. * src/DHTFindNodeReplyMessage.h
  10833. * src/DHTGetPeersMessage.cc
  10834. * src/DHTGetPeersMessage.h
  10835. * src/DHTGetPeersReplyMessage.cc
  10836. * src/DHTGetPeersReplyMessage.h
  10837. * src/DHTMessage.cc
  10838. * src/DHTMessage.h
  10839. * src/DHTMessageFactoryImpl.cc
  10840. * src/DHTMessageReceiver.cc
  10841. * src/DHTPingMessage.cc
  10842. * src/DHTPingMessage.h
  10843. * src/DHTPingReplyMessage.cc
  10844. * src/DHTPingReplyMessage.h
  10845. * src/DHTQueryMessage.cc
  10846. * src/DHTQueryMessage.h
  10847. * src/DHTResponseMessage.cc
  10848. * src/DHTResponseMessage.h
  10849. * src/DHTUnknownMessage.cc
  10850. * src/DHTUnknownMessage.h
  10851. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10852. Made string literal to static const std::string
  10853. * src/BtChokeMessage.cc (toString)
  10854. * src/BtHaveAllMessage.cc (toString)
  10855. * src/BtHaveNoneMessage.cc (toString)
  10856. * src/BtInterestedMessage.cc (toString)
  10857. * src/BtNotInterestedMessage.cc (toString)
  10858. * src/BtUnchokeMessage.cc (toString)
  10859. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10860. Replaced "" with static const variable A2STR::NIL.
  10861. Replaced string comparison against "" with std::string::empty().
  10862. Added PROTO_* to Request class and use them as a protocol string
  10863. constant.
  10864. Made "started", "stopped", "completed" static const variable in
  10865. AnnounceList class.
  10866. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10867. Updated translations. Great thanks to translators.
  10868. * po/ca.po
  10869. * po/de.po
  10870. * po/fr.po
  10871. * po/it.po
  10872. * po/ja.po
  10873. * po/ru.po
  10874. * po/zh_CN.po
  10875. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10876. Updated man page; categorized options and fixed typo.
  10877. * doc/aria2c.1.txt
  10878. * doc/aria2c.1.html
  10879. * doc/aria2c.1
  10880. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10881. Removed const ref
  10882. * src/MetalinkEntry.cc (AddProtocolPreference)
  10883. * src/RequestGroup.cc (FindServerHostByHostname)
  10884. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10885. Rewritten Accept-Features handling.
  10886. * src/HttpRequestCommand.cc (createHttpRequest)
  10887. * src/a2functional.h
  10888. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10889. Changed method signature:
  10890. DHTAbstractNodeLookupTask::toEntries
  10891. * src/DHTAbstractNodeLookupTask.cc
  10892. * src/DHTAbstractNodeLookupTask.h
  10893. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. Changed method signature:
  10895. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10896. * src/BtContext.h
  10897. * src/DefaultBtContext.cc
  10898. * src/DefaultBtContext.h
  10899. * src/DefaultBtInteractive.cc
  10900. * test/DefaultBtContextTest.cc
  10901. * test/MockBtContext.h
  10902. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10903. Changed method signature:
  10904. MultiFileAllocationIterator::makeDiskWriterEntries
  10905. * src/MultiFileAllocationIterator.cc
  10906. * src/MultiFileAllocationIterator.h
  10907. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10908. Changed method sinature:
  10909. MetalinkEntry::toFileEntry,
  10910. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10911. Metalinker::queryEntry
  10912. * src/Metalink2RequestGroup.cc
  10913. * src/MetalinkEntry.cc
  10914. * src/MetalinkEntry.h
  10915. * src/MetalinkHelper.cc
  10916. * src/MetalinkHelper.h
  10917. * src/Metalinker.cc
  10918. * src/Metalinker.h
  10919. * src/main.cc
  10920. * test/MetalinkHelperTest.cc
  10921. * test/MetalinkerTest.cc
  10922. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10923. Changed method sinature:
  10924. RequestGroup::getURIs
  10925. * src/RequestGroup.cc
  10926. * src/RequestGroup.h
  10927. * test/Metalink2RequestGroupTest.cc
  10928. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10929. Changed method signature:
  10930. PeerListProcessor::extractPeer
  10931. * src/CompactPeerListProcessor.cc
  10932. * src/CompactPeerListProcessor.h
  10933. * src/DefaultBtAnnounce.cc
  10934. * src/DefaultPeerListProcessor.cc
  10935. * src/DefaultPeerListProcessor.h
  10936. * src/DelegatingPeerListProcessor.cc
  10937. * src/DelegatingPeerListProcessor.h
  10938. * src/PeerListProcessor.h
  10939. * src/UTPexExtensionMessage.cc
  10940. * test/DefaultPeerListProcessorTest.cc
  10941. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10942. Changed method signature:
  10943. BtRequestFactory::createRequestMessages,
  10944. BtRequestFactory::createRequestMessagesOnEndGame
  10945. * src/BtRequestFactory.h
  10946. * src/DefaultBtInteractive.cc
  10947. * src/DefaultBtRequestFactory.cc
  10948. * src/DefaultBtRequestFactory.h
  10949. * test/DefaultBtRequestFactoryTest.cc
  10950. * test/MockBtRequestFactory.h
  10951. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10952. Changed method signature:
  10953. PieceStorage::getInFlightPieces
  10954. * src/DefaultBtProgressInfoFile.cc
  10955. * src/DefaultPieceStorage.cc
  10956. * src/DefaultPieceStorage.h
  10957. * src/PieceStorage.h
  10958. * src/UnknownLengthPieceStorage.cc
  10959. * src/UnknownLengthPieceStorage.h
  10960. * test/DefaultBtProgressInfoFileTest.cc
  10961. * test/MockPieceStorage.h
  10962. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10963. Changed method signature:
  10964. PostDownloadHandler::getNextRequestGroups
  10965. Metalink2RequestGroup::generate
  10966. RequestGroup::postDownloadProcessing
  10967. * src/BtPostDownloadHandler.cc
  10968. * src/BtPostDownloadHandler.h
  10969. * src/Metalink2RequestGroup.cc
  10970. * src/Metalink2RequestGroup.h
  10971. * src/MetalinkPostDownloadHandler.cc
  10972. * src/MetalinkPostDownloadHandler.h
  10973. * src/PostDownloadHandler.h
  10974. * src/RequestGroup.cc
  10975. * src/RequestGroup.h
  10976. * src/RequestGroupMan.cc
  10977. * src/main.cc
  10978. * test/BtPostDownloadHandlerTest.cc
  10979. * test/Metalink2RequestGroupTest.cc
  10980. * test/MetalinkPostDownloadHandlerTest.cc
  10981. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10982. Rewritten AccRequestGroup
  10983. * src/main.cc
  10984. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10985. Rewritten.
  10986. * src/TaggedItem.cc (toTagString)
  10987. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10988. Rewritten Accept-Features handling.
  10989. * src/HttpRequestCommand.cc (createHttpRequest)
  10990. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10991. Rewritten accept types handling.
  10992. * HttpRequest.cc (createRequest)
  10993. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10994. Rewritten
  10995. * src/FeatureConfig.cc (featureSummary)
  10996. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10997. Changed method signature:
  10998. PeerStorage::getActivePeers
  10999. * src/DHTPeerAnnounceEntry.cc
  11000. * src/DefaultPeerStorage.cc
  11001. * src/DefaultPeerStorage.h
  11002. * src/PeerStorage.h
  11003. * test/DefaultPeerStorageTest.cc
  11004. * test/MockPeerStorage.h
  11005. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11006. Changed method signature:
  11007. DHTPeerAnnounceStorage::getPeers,
  11008. DHTPeerAnnounceEntry::getPeers
  11009. * src/DHTGetPeersMessage.cc
  11010. * src/DHTPeerAnnounceEntry.cc
  11011. * src/DHTPeerAnnounceEntry.h
  11012. * src/DHTPeerAnnounceStorage.cc
  11013. * src/DHTPeerAnnounceStorage.h
  11014. * test/DHTAnnouncePeerMessageTest.cc
  11015. * test/DHTPeerAnnounceEntryTest.cc
  11016. * test/DHTPeerAnnounceStorageTest.cc
  11017. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11018. Changed method signature:
  11019. NameResolver::resolve
  11020. * src/DHTEntryPointNameResolveCommand.cc
  11021. * src/InitiateConnectionCommand.cc
  11022. * src/NameResolver.cc
  11023. * src/NameResolver.h
  11024. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11025. Changed method signature:
  11026. PieceStorage::getAdvertisedPieceIndexes
  11027. * src/DefaultBtInteractive.cc
  11028. * src/DefaultPieceStorage.cc
  11029. * src/DefaultPieceStorage.h
  11030. * src/PieceStorage.h
  11031. * src/UnknownLengthPieceStorage.h
  11032. * test/MockPieceStorage.h
  11033. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11034. Changed method signature:
  11035. SegmentMan::getInFlightSegment
  11036. * src/AbstractCommand.cc
  11037. * src/SegmentMan.cc
  11038. * src/SegmentMan.h
  11039. * test/SegmentManTest.cc
  11040. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11041. Changed method signature:
  11042. DHTAbstractNodeLookupTask::getNodesFromMessage
  11043. * src/DHTAbstractNodeLookupTask.cc
  11044. * src/DHTAbstractNodeLookupTask.h
  11045. * src/DHTNodeLookupTask.cc
  11046. * src/DHTNodeLookupTask.h
  11047. * src/DHTPeerLookupTask.cc
  11048. * src/DHTPeerLookupTask.h
  11049. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11050. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  11051. * src/AbstractCommand.cc
  11052. * src/BtCheckIntegrityEntry.cc
  11053. * src/BtCheckIntegrityEntry.h
  11054. * src/BtFileAllocationEntry.cc
  11055. * src/BtFileAllocationEntry.h
  11056. * src/BtSetup.cc
  11057. * src/BtSetup.h
  11058. * src/CheckIntegrityCommand.cc
  11059. * src/CheckIntegrityEntry.h
  11060. * src/ChecksumCheckIntegrityEntry.cc
  11061. * src/ChecksumCheckIntegrityEntry.h
  11062. * src/DHTSetup.cc
  11063. * src/DHTSetup.h
  11064. * src/DownloadEngine.cc
  11065. * src/FileAllocationCommand.cc
  11066. * src/FileAllocationEntry.h
  11067. * src/RequestGroup.cc
  11068. * src/RequestGroup.h
  11069. * src/RequestGroupMan.cc
  11070. * src/RequestGroupMan.h
  11071. * src/StreamCheckIntegrityEntry.cc
  11072. * src/StreamCheckIntegrityEntry.h
  11073. * src/StreamFileAllocationEntry.cc
  11074. * src/StreamFileAllocationEntry.h
  11075. * src/TrackerWatcherCommand.cc
  11076. * src/a2functional.h
  11077. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11078. Changed method signature:
  11079. BNode::findClosestKNodes, BNode:: enumerateBucket,
  11080. DHTBucket::getGoodNodes,
  11081. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  11082. * src/BNode.cc
  11083. * src/BNode.h
  11084. * src/DHTAbstractNodeLookupTask.cc
  11085. * src/DHTAutoSaveCommand.cc
  11086. * src/DHTBucket.cc
  11087. * src/DHTBucket.h
  11088. * src/DHTBucketRefreshTask.cc
  11089. * src/DHTFindNodeMessage.cc
  11090. * src/DHTGetPeersMessage.cc
  11091. * src/DHTRoutingTable.cc
  11092. * src/DHTRoutingTable.h
  11093. * test/BNodeTest.cc
  11094. * test/DHTBucketTest.cc
  11095. * test/DHTRoutingTableTest.cc
  11096. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11097. In piece selection functions, Pass std::deque<...> by reference rather
  11098. than returning it.
  11099. * src/BitfieldMan.cc
  11100. * src/BitfieldMan.h
  11101. * src/DefaultBtRequestFactory.cc
  11102. * src/DefaultPieceStorage.cc
  11103. * src/Piece.cc
  11104. * src/Piece.h
  11105. * test/BitfieldManTest.cc
  11106. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11107. Implemented rarest piece first piece selection strategy.
  11108. * src/AbstractBtMessage.cc
  11109. * src/AbstractBtMessage.h
  11110. * src/BitfieldMan.cc
  11111. * src/BitfieldMan.h
  11112. * src/BtBitfieldMessage.cc
  11113. * src/BtHaveAllMessage.cc
  11114. * src/BtHaveMessage.cc
  11115. * src/DefaultPieceStorage.cc
  11116. * src/DefaultPieceStorage.h
  11117. * src/PeerInteractionCommand.cc
  11118. * src/PieceStorage.h
  11119. * src/UnknownLengthPieceStorage.h
  11120. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11121. Rewritten readData and writeData.
  11122. * src/MultiDiskAdaptor.cc
  11123. * src/MultiDiskAdaptor.h
  11124. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11125. Move \n out of the message "Usage: ...".
  11126. * src/version_usage.cc
  11127. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11128. Bump up version number to 0.13.2b.
  11129. * configure.ac
  11130. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11131. Added const qualifier to argument Exception& e.
  11132. * src/Logger.h
  11133. * src/SimpleLogger.cc
  11134. * src/SimpleLogger.h
  11135. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11136. Pool connection when CWD, SIZE command fails.
  11137. * src/FtpNegotiationCommand.cc
  11138. * src/FtpNegotiationCommand.h
  11139. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11140. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  11141. * src/HttpResponseCommand.cc
  11142. * src/HttpSkipResponseCommand.cc
  11143. * src/HttpSkipResponseCommand.h
  11144. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11145. Pool connection when a server returns 4xx, 5xx responses.
  11146. * src/HttpNullDownloadCommand.cc
  11147. * src/HttpNullDownloadCommand.h
  11148. * src/HttpResponse.cc
  11149. * src/HttpResponse.h
  11150. * src/HttpResponseCommand.cc
  11151. * src/HttpResponseCommand.h
  11152. * test/HttpResponseTest.cc
  11153. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11154. Print usage when no URL is specifed or bad command-line option is
  11155. specified.
  11156. * src/HelpItemFactory.cc
  11157. * src/help_tags.h
  11158. * src/option_processing.cc
  11159. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11160. Removed duplicate log message.
  11161. * src/AbstractCommand.cc (asyncResolveHostname)
  11162. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11163. Updated man page: --async-dns and --ftp-reuse-connection were added.
  11164. Changed -j option's default value from 5 to 1.
  11165. Added new examples using protocol auto detection feature.
  11166. Removed -T, -M usage where it can be omitted.
  11167. * doc/aria2c.1.txt
  11168. * doc/aria2c.1.html
  11169. * doc/aria2c.1.txt
  11170. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11171. Updated command-line usage text, so that it tells users that they
  11172. can specify any number of torrent files and metalink files in
  11173. command-line.
  11174. * src/version_usage.cc
  11175. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11176. Changed the default value of -j option to 1.
  11177. * src/HelpItemFactory.cc
  11178. * src/option_processing.cc
  11179. * src/usage_text.h
  11180. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11181. Added the ability to reuse connection in FTP and it is enabled by
  11182. default. It can be disabled by --ftp-reuse-connection=false option.
  11183. * src/Command.cc
  11184. * src/DownloadCommand.cc
  11185. * src/FtpDownloadCommand.cc
  11186. * src/FtpDownloadCommand.h
  11187. * src/FtpFinishDownloadCommand.cc
  11188. * src/FtpFinishDownloadCommand.h
  11189. * src/FtpInitiateConnectionCommand.cc
  11190. * src/FtpNegotiationCommand.cc
  11191. * src/FtpNegotiationCommand.h
  11192. * src/HelpItemFactory.cc
  11193. * src/Makefile.am
  11194. * src/Makefile.in
  11195. * src/OptionHandlerFactory.cc
  11196. * src/option_processing.cc
  11197. * src/prefs.h
  11198. * src/usage_text.h
  11199. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11200. Call Command::transitStatus() before calling Command::execute(),
  11201. so that the status change made in execute() is not cleared.
  11202. * src/DownloadEngine.cc
  11203. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11204. Removed forward declaration of SocketCore class.
  11205. * src/HttpDownloadCommand.h
  11206. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11207. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  11208. in InitiateConnectionCommandFactory. They should be set only when
  11209. the protocol is HTTP or HTTPS.
  11210. * src/InitiateConnectionCommandFactory.cc
  11211. * src/RequestGroup.cc
  11212. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11213. Fixed infinite loop in checksum checking.
  11214. * src/IteratableChecksumValidator.cc
  11215. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11216. Set _supportsPersistentConnection to true by default.
  11217. * src/Request.cc
  11218. * src/RequestGroup.cc
  11219. * test/HttpRequestTest.cc
  11220. * test/RequestTest.cc
  11221. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11222. Added timeout to socket pool. The default timeout is 15 seconds,
  11223. which is the same value Apache uses.
  11224. * src/DownloadEngine.cc
  11225. * src/DownloadEngine.h
  11226. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11227. Fixed misuse of multimap::find()
  11228. * src/HttpHeader.cc
  11229. * test/HttpHeaderTest.cc
  11230. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11231. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  11232. option.
  11233. The asynchronous DNS is not capable of IPv6 yet.
  11234. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  11235. least for HTTP download.
  11236. * src/AbstractCommand.cc
  11237. * src/AbstractCommand.h
  11238. * src/AsyncNameResolver.cc
  11239. * src/AsyncNameResolver.h
  11240. * src/DHTEntryPointNameResolveCommand.cc
  11241. * src/DHTEntryPointNameResolveCommand.h
  11242. * src/DownloadEngine.cc
  11243. * src/DownloadEngine.h
  11244. * src/FtpInitiateConnectionCommand.cc
  11245. * src/FtpInitiateConnectionCommand.h
  11246. * src/HelpItemFactory.cc
  11247. * src/HttpInitiateConnectionCommand.cc
  11248. * src/HttpInitiateConnectionCommand.h
  11249. * src/InitiateConnectionCommand.cc
  11250. * src/InitiateConnectionCommand.h
  11251. * src/Makefile.am
  11252. * src/Makefile.in
  11253. * src/NameResolver.cc
  11254. * src/NameResolver.h
  11255. * src/OptionHandlerFactory.cc
  11256. * src/SocketCore.cc
  11257. * src/SocketCore.h
  11258. * src/Util.cc
  11259. * src/Util.h
  11260. * src/option_processing.cc
  11261. * src/prefs.h
  11262. * src/usage_text.h
  11263. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11264. Updated man page: --quiet, --header were added.
  11265. --metalink-servers and --enable-http-keep-alive option were updated.
  11266. * doc/aria2c.1
  11267. * doc/aria2c.1.html
  11268. * doc/aria2c.1.txt
  11269. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11270. Enable HTTP keep-alive by default.
  11271. * src/HelpItemFactory.cc
  11272. * src/option_processing.cc
  11273. * src/usage_text.h
  11274. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11275. Disable http keep-alive if the remote server is not HTTP/1.1.
  11276. * src/HttpConnection.cc
  11277. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11278. Receive content body of 302 response so that the connection can be
  11279. reused later when http keep-alive is enabled.
  11280. * src/HttpNullDownloadCommand.cc
  11281. * src/HttpNullDownloadCommand.h
  11282. * src/HttpResponseCommand.cc
  11283. * src/HttpResponseCommand.h
  11284. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11285. const SharedHandle<Request> -> const SharedHandle<Request>&
  11286. * src/FtpDowndloadCommand.cc
  11287. * src/FtpDowndloadCommand.h
  11288. * src/HttpDownloadCommand.cc
  11289. * src/HttpDownloadCommand.h
  11290. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11291. Fixed the bug that the control file(.aria2 file) is not renamed
  11292. according to tryAutoFileRenaming().
  11293. tryAutoFileRenaming() was rewritten so that if both renamed file and
  11294. its control file exist, use them and continue download.
  11295. The old implementation didn't take into account of control file's
  11296. existence, so basically you couldn't continue download of renamed file.
  11297. * src/BtProgressInfoFile.h
  11298. * src/DefaultBtProgressInfoFile.cc
  11299. * src/DefaultBtProgressInfoFile.h
  11300. * src/NullProgressInfoFile.h
  11301. * src/RequestGroup.cc
  11302. * test/DefaultBtProgressInfoFileTest.cc
  11303. * test/MockBtProgressInfoFile.h
  11304. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11305. Change the default value of --metalink-servers option from `5' to `1'.
  11306. * src/HelpItemFactory.cc
  11307. * src/option_processing.cc
  11308. * src/usage_text.h
  11309. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11310. Reimplemented transparent metalink using Accept request header.
  11311. * src/HttpRequest.cc
  11312. * src/HttpRequest.h
  11313. * src/HttpRequestCommand.cc
  11314. * src/Metalink2RequestGroup.cc
  11315. * src/RequestGroup.cc
  11316. * src/RequestGroup.h
  11317. * test/HttpRequestTest.cc
  11318. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11319. Bump up version number to 0.13.2a
  11320. * configure.ac
  11321. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11322. Updated configure.ac using the result of autoscan.
  11323. * configure.ac
  11324. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11325. Fixed compilation error without gcrypt/openssl.
  11326. * src/DownloadCommand.cc
  11327. * src/DownloadCommand.h
  11328. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11329. Reorganized version information so that it can be displayed in a
  11330. standard terminal screen without scrolling.
  11331. Removed http, ftp from Configuration section, because they are always
  11332. enabled.
  11333. * src/FeatureConfig.cc
  11334. * src/FeatureConfig.h
  11335. * src/main.cc
  11336. * src/messageDigest.cc
  11337. * src/messageDigest.h
  11338. * src/version_usage.cc
  11339. * test/FeatureConfigTest.cc
  11340. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11341. Masked user ID in log.
  11342. * src/FtpConnection.cc (sendUser)
  11343. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. Removed query part from filename in HTTP download. The query part means
  11345. the substring after "?" in URL. Firefox seems do the same thing.
  11346. A query part is sometimes very long and not suitable to filename,
  11347. so I think it is better to remove it from filename.
  11348. * src/HttpRequest.cc
  11349. * src/HttpRequest.h
  11350. * src/Request.cc
  11351. * src/Request.h
  11352. * test/HttpRequestTest.cc
  11353. * test/RequestTest.cc
  11354. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11355. Rewritten Exception class. Throw exception object, not its pointer and
  11356. catch by reference, so that remove problematic delete operator for
  11357. catched exception.
  11358. * src/Exception.cc
  11359. * src/Exception.h
  11360. * test/ExceptionTest.cc
  11361. * src/*: All files throwing/catching exception.
  11362. * test/*: All files throwing/catching exception.
  11363. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11364. Now auto protocol detection is enabled without -Z option.
  11365. But there is a important difference between with/without -Z optoin.
  11366. For example, if you type:
  11367. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  11368. then, aria2 interprets there are 3 request groups:
  11369. (1) http://host/file, http://mirror/file <-- multi-source download
  11370. (2) file1.torrent
  11371. (3) file2.metalink
  11372. On the other hand, if you invoke above command with -Z option, it is
  11373. interpreted as 4 request groups:
  11374. (1) http://host/file
  11375. (2) file1.torrent
  11376. (3) file2.metalink
  11377. (4) http://mirror/file
  11378. I think usually user don't mix multi-source URLs and torrent files, so
  11379. there is no big problem here.
  11380. * src/main.cc
  11381. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11382. Fixed the bug that causes segmentaion fault when reading XML containing
  11383. unescapsed character like '&'.
  11384. Also a modification was made which avoids adding unnecessary
  11385. characters stack and appending unused string.
  11386. * src/ExpatMetalinkProcessor.cc
  11387. * src/FileMetalinkParserState.h
  11388. * src/FilesMetalinkParserState.h
  11389. * src/FinMetalinkParserState.h
  11390. * src/HashMetalinkParserState.h
  11391. * src/InitialMetalinkParserState.h
  11392. * src/LanguageMetalinkParserState.h
  11393. * src/MetalinkMetalinkParserState.h
  11394. * src/MetalinkParserState.h
  11395. * src/MetalinkParserStateMachine.cc
  11396. * src/MetalinkParserStateMachine.h
  11397. * src/OSMetalinkParserState.h
  11398. * src/PieceHashMetalinkParserState.h
  11399. * src/PiecesMetalinkParserState.h
  11400. * src/ResourcesMetalinkParserState.h
  11401. * src/SizeMetalinkParserState.h
  11402. * src/SkipTagMetalinkParserState.h
  11403. * src/URLMetalinkParserState.h
  11404. * src/VerificationMetalinkParserState.h
  11405. * src/VersionMetalinkParserState.h
  11406. * src/XML2SAXMetalinkProcessor.cc
  11407. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11408. Added StringFormat class, which internally calls vasprintf.
  11409. operator<< is defined for this class, so it can be used with iostream
  11410. classes nicely. SimpleLogger and following functions are rewritten
  11411. using StringFormat class.
  11412. Besides, now Logger class's methods are non-const, many classes
  11413. that has a const Logger* as a member variable are modified to remove
  11414. const qualifier from the variable declaration.
  11415. * src/HelpItemFactory.cc
  11416. * src/Request.cc
  11417. * src/SimpleLogger.cc
  11418. * src/StringFormat.cc
  11419. * src/StringFormat.h
  11420. * src/Util.cc
  11421. * src/option_processing.cc
  11422. * src/version_usage.cc
  11423. * test/StringFormatTest.cc
  11424. * src/*.h: The classes that has const Logger* as a member variable.
  11425. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11426. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  11427. failed. Also fixed memory link when exception is thrown there.
  11428. * src/main.cc (AccRequestGroup)
  11429. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11430. Added build-in "Accept-Features" support. For now only "metalink" is
  11431. used in this header field.
  11432. This "metalink" value is removed from the list when connecting URLs
  11433. fed by metalink file to avoid loop in "transparent" metlaink.
  11434. * src/HttpRequest.cc
  11435. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  11436. header is also held in this variable. Also renamed setUserHeaders as
  11437. addHeader and it was rewritten to add header not just to clear the old
  11438. value.
  11439. * src/HttpRequestCommand.cc
  11440. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  11441. from "Accept-Features" list.
  11442. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  11443. default.
  11444. * src/RequestGroup.h
  11445. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  11446. * src/a2functional.h: Included <string> because Concat class depends on
  11447. it.
  11448. * test/HttpRequestTest.cc
  11449. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11450. Added comment
  11451. * src/RequestGroup.cc (createNextCommand)
  11452. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11453. Capitalized METHOD_GET and METHOD_HEAD
  11454. * src/Request.cc
  11455. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11456. Added getDownloadResults() method
  11457. * src/RequestGroupMan.cc
  11458. * src/RequestGroupMan.h
  11459. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11460. Fixed the bug that aria2 exits when commands is empty() but
  11461. _routineCommands are not.
  11462. * src/DownloadEngine.cc
  11463. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11464. Use the default value pulled from Option object in HelpItemFactory.
  11465. except options whose defualt value is embedded in a usage text.
  11466. * src/HelpItemFactory.cc
  11467. * src/HelpItemFactory.h
  11468. * src/option_processing.cc
  11469. * src/version_usage.cc
  11470. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11471. Added --quiet option to make aria2 quiet (no console output).
  11472. --quiet option is tagged with ADVANCED.
  11473. * src/HelpItemFactory.cc
  11474. * src/LogFactory.cc
  11475. * src/LogFactory.h
  11476. * src/MultiUrlRequestInfo.cc
  11477. * src/MultiUrlRequestInfo.h
  11478. * src/NullStatCalc.h: New class. This class prints nothing.
  11479. * src/OptionHandlerFactory.cc
  11480. * src/main.cc
  11481. * src/option_processing.cc
  11482. * src/prefs.h
  11483. * src/usage_text.h
  11484. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11485. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  11486. * src/HelpItemFactory.cc (createHelpItems):
  11487. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11488. Fixed compilation error in ExpatMetalinkProcessor.cc
  11489. * src/ExpatMetalinkProcessor.cc
  11490. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11491. Reuse socket if the origin server supports HTTP keep-alive and
  11492. --enable-http-keep-alive or --enable-http-pipelining is given.
  11493. The current implementation doesn't reuse the connections established
  11494. against proxy server.
  11495. * src/AbstractCommand.cc
  11496. * src/DownloadEngine.cc
  11497. * src/DownloadEngine.h
  11498. * src/HttpDownloadCommand.cc
  11499. * src/HttpInitiateConnectionCommand.cc
  11500. * src/HttpResponseCommand.cc
  11501. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11502. Rewritten HTTP keep-alive and pipelining routine.
  11503. * src/AbstractCommand.cc
  11504. * src/HttpConnection.cc
  11505. * src/HttpDownloadCommand.cc
  11506. * src/HttpRequest.cc
  11507. * src/HttpRequestCommand.cc
  11508. * src/HttpResponseCommand.cc
  11509. * src/Request.cc
  11510. * src/Request.h
  11511. * src/RequestGroup.cc
  11512. * test/HttpRequestTest.cc
  11513. * test/HttpResponseTest.cc
  11514. * test/RequestTest.cc
  11515. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11516. Added missing setUserHeaders call
  11517. * src/HttpRequestCommand.cc
  11518. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11519. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  11520. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  11521. waste of time because it is more likey false.
  11522. * src/FileAllocationDispatcherCommand.cc (execute)
  11523. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11524. Now HTTP status and version are a member variable of HttpHeader.
  11525. HTTP status is processed as a string, not integer.
  11526. * src/AbstractProxyResponseCommand.cc
  11527. * src/HttpConnection.cc
  11528. * src/HttpHeader.cc
  11529. * src/HttpHeader.h
  11530. * src/HttpHeaderProcessor.cc
  11531. * src/HttpHeaderProcessor.h
  11532. * src/HttpResponse.cc
  11533. * src/HttpResponse.h
  11534. * test/HttpHeaderProcessorTest.cc
  11535. * test/HttpResponseTest.cc
  11536. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11537. Added --header option. You can specify any number of additional HTTP headers
  11538. like:
  11539. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  11540. Unlike other commad-line option, you can use --header option multiple times.
  11541. * src/HelpItemFactory.cc
  11542. * src/HttpRequest.{cc, h}
  11543. * src/HttpRequestCommand.cc
  11544. * src/OptionHandlerFactory.cc
  11545. * src/OptionHandlerImpl.h
  11546. * src/option_processing.cc
  11547. * src/prefs.h
  11548. * src/usage_text.h
  11549. * test/HttpRequestTest.cc (testUserHeaders)
  11550. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11551. Eliminates the time lag between sequential downloads and commands in
  11552. the same RequestGroup.
  11553. In old implementation, aria2 occasionally waits 1 seconds before
  11554. executing next command or RequestGroup.
  11555. This is really a waste of time, and new implementation eliminates
  11556. this unnecessary time lag.
  11557. * src/AbstractCommand.cc
  11558. * src/AutoSaveCommand.cc
  11559. * src/CheckIntegrityCommand.cc
  11560. * src/Command.{cc, h}
  11561. * src/DownloadEngine.{cc, h}
  11562. * src/DownloadEngineFactory.cc
  11563. * src/FileAllocationCommand.cc
  11564. * src/FileAllocationDispatcherCommand.cc
  11565. * src/FillRequestGroupCommand.cc
  11566. * src/FtpInitiateConnectionCommand.cc
  11567. * src/HaveEraseCommand.cc
  11568. * src/HttpInitiateConnectionCommand.cc
  11569. * src/HttpResponseCommand.cc
  11570. * src/RealtimeCommand.cc
  11571. * src/RequestGroup.cc
  11572. * src/RequestGroupMan.cc
  11573. * src/StreamFileAllocationEntry.cc
  11574. * src/TimeBasedCommand.{cc, h}
  11575. * src/TimedHaltCommand.cc
  11576. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11577. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  11578. keyword explicit and SharedHandle's default constructor initializes
  11579. its internal obj to null, old implementation initializes it using
  11580. obj's default constructor.
  11581. To assign null, write SharedHandle<T> x(...); x.reset();
  11582. TODO: test/SharedHandleTest.cc needs more tests.
  11583. * src/SharedHandle.h
  11584. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11585. Fixed type in man page.
  11586. * doc/aria2c.1.txt
  11587. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11588. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  11589. * src/SimpleLogger.{cc, h}
  11590. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11591. Implemented auto protocol detection.
  11592. Now you can do:
  11593. aria2c -Z http://host/file file1.torrent file2.metalink
  11594. (Note: -Z option is required for auto protcol detection.)
  11595. Then aria2c downloads 3 files simultaneously:
  11596. 1. http://host/file
  11597. 2. file1.torrent <-- read local torrent file
  11598. 3. file2.metalink <-- read local Metalink file.
  11599. Same thing goes with -i option. Assume your uris.txt contans:
  11600. http://host/file
  11601. file1.torrent
  11602. file2.metalink
  11603. Then you can do: aria2c -i uris.txt
  11604. (Note: -Z option is not needed if -i option is given.)
  11605. * src/main.cc
  11606. * src/ProtocolDetector.{cc, h}
  11607. * test/ProtocolDetectorTest.cc
  11608. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11609. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  11610. installed
  11611. * src/ARC4Encryptor.h
  11612. * src/ARC4Decryptor.h
  11613. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11614. Renamed argument from 'errno' to 'err', since errno is confused with
  11615. errno defined in errno.h.
  11616. * src/LibgcryptARC4Decryptor.h
  11617. * src/LibgcryptARC4Context.h
  11618. * src/LibgcryptDHKeyExchange.h
  11619. * src/LibgcryptARC4Encryptor.h
  11620. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11621. Rewritten choking algorithm.
  11622. * src/PeerChokeCommand.{cc, h}
  11623. * src/BtInterestedMessage.cc
  11624. * src/PeerSessionResource.{cc, h}
  11625. * src/DefaultPeerStorage.{cc, h}
  11626. * src/BtNotInterestedMessage.cc
  11627. * src/DefaultBtMessageDispatcher.{cc, h}
  11628. * src/BtMessageDispatcher.h
  11629. * src/Peer.{cc, h}
  11630. * src/BtLeecherStateChoke.{cc, h}
  11631. * src/BtSetup.cc
  11632. * src/BtSeederStateChoke.{cc, h}
  11633. * src/PeerStorage.h
  11634. * test/MockPeerStorage.h
  11635. * test/MockBtMessageDispatcher.h
  11636. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11637. Fixed compilation error on x84-64 platform.
  11638. * src/AuthConfig.cc: Included ostream.
  11639. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11640. Rewritten getBasename() and getDirname(), without standard library
  11641. basename(), dirname().
  11642. * src/File.cc
  11643. * test/FileTest.cc
  11644. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11645. Added Simplified Chinese translation. Also updated the following
  11646. translations: Polish, Dutch, German. Great thanks to all translators.
  11647. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11648. Suppress content-range error when 'Content-Range' response header
  11649. doesn't contains bytes-unit specifier 'bytes'
  11650. * src/HttpHeader.cc (getRange)
  11651. * test/HttpHeaderTest.cc
  11652. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11653. Fixed compilation error with g++-4.3
  11654. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11655. Added missing include files for MinGW
  11656. * test/HttpHeaderProcessorTest.cc
  11657. * test/DHTRoutingTableSerializerTest.cc
  11658. * test/DHTRoutingTableDeserializerTest.cc
  11659. * test/UriListParserTest.cc
  11660. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11661. Now download line is printed nicely with no garbage at the end of
  11662. line. I use ioctl to get the columns of terminal.
  11663. If stdout is redirected to another device, instead of carriage return,
  11664. end of line '\n' character is used. This is feature request#1909659
  11665. * src/ConsoleStatCalc.cc (calculateStat)
  11666. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11667. Included a2time.h
  11668. * src/DHTMessageDispatcher.h
  11669. * src/DHTMessageEntry.h
  11670. * src/DHTReplaceNodeTask.h
  11671. * src/DHTMessageTracker.h
  11672. * src/Util.h
  11673. * src/CookieBox.h
  11674. * src/SocketCore.h
  11675. * src/DefaultBtMessageDispatcher.h
  11676. * src/SocketCore.cc
  11677. * src/Util.cc
  11678. * src/DHTPingTask.h
  11679. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11680. Fixed high memory footprint when DHT is enabled.
  11681. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  11682. queued than it is processed and the queue is getting longer. As a
  11683. consequence, momory usage is increased.
  11684. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  11685. replacement cache in DHTBucket which is described in Kademlia paper.
  11686. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  11687. DHTReplaceNodeTask.
  11688. * src/DHTBucket.{h, cc}
  11689. (cacheNode): New function.
  11690. (getCachedNodes): New function.
  11691. (dropNode): Push back cached node to _nodes.
  11692. * test/DHTBucketTest.cc
  11693. (testCacheNode): New test
  11694. (testDropNode): New test
  11695. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11696. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  11697. the unused 4KB memory when ssl is not used.
  11698. * src/SocketCore.cc
  11699. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11700. Added summary log for peer announce storage.
  11701. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  11702. Removed cast
  11703. * src/DefaultPeerStorage.cc (addPeer)
  11704. Log exception message
  11705. * src/DHTMessageTracker.cc (handleTimeout)
  11706. Fixed casting
  11707. * test/HttpRequestTest.cc
  11708. * test/MetalinkProcessorTest.cc
  11709. * test/PieceTest.cc
  11710. * test/MetalinkEntryTest.cc
  11711. * test/SequenceTest.cc
  11712. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11713. * src/ParameterizedStringParser.cc (createLoop):
  11714. Removed unused variable sstep.
  11715. * src/AlphaNumberDecorator.h (decode): Rewritten.
  11716. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11717. * src/Util.{h, cc}
  11718. (parseUInt): New function.
  11719. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  11720. The actual range is uint32_t.
  11721. * test/UtilTest.cc
  11722. * src/ParameterizedStringParser.cc:
  11723. Use Util::parseUInt() for loop variables.
  11724. * test/ParameterizedStringParserTest.cc
  11725. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  11726. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11727. Rewritten the functions for binding port.
  11728. * src/DHTConnectionImpl.{h, cc}
  11729. * src/PeerListenCommand.{h, cc}
  11730. * src/DHTSetup.cc
  11731. * src/BtSetup.cc
  11732. * test/DHTConnectionImplTest.cc
  11733. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11734. type cleanup for allmost all remaining files.
  11735. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11736. Type clarification
  11737. * src/PeerSessionResource.{h, cc}
  11738. * src/DefaultPieceStorage.{h, cc}
  11739. * src/Peer.{h, cc}
  11740. * test/PeerSessionResourceTest.cc
  11741. Use div function
  11742. * src/BtPieceMessage.cc (erasePieceOnDisk)
  11743. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11744. Type clarification
  11745. * src/DefaultPeerStorage.{h, cc}
  11746. * test/DefaultPeerStorageTest.cc
  11747. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11748. Type clarification: size_t for length or size, uint64_t for file
  11749. length, off_t for file offset.
  11750. * src/DefaultBtProgressInfoFile.cc
  11751. * src/DefaultBtContext.{h, cc}
  11752. * src/DefaultBtInteractive.cc
  11753. * src/DownloadCommand.{h, cc}
  11754. * src/IteratableChunkChecksumValidator.{h, cc}
  11755. * src/SegmentMan.{h, cc}
  11756. * src/SingleFileDownloadContext.{h, cc}
  11757. * src/IteratableChecksumValidator.{h, cc}
  11758. * src/BtContext.h
  11759. * src/IteratableValidator.h
  11760. * src/DownloadContext.h
  11761. * test/SingleFileDownloadContextTest.cc
  11762. * test/DefaultBtContextTest.cc
  11763. * test/MockBtContext.h
  11764. * test/Metalink2RequestGroupTest.cc
  11765. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11766. Type clarification: size_t for length or size, uint64_t for file
  11767. length, off_t for file offset.
  11768. * src/PiecedSegment.cc
  11769. * src/GrowSegment.h
  11770. * src/DefaultBtRequestFactory.h
  11771. * src/DefaultBtProgressInfoFile.cc
  11772. * src/UnknownLengthPieceStorage.h
  11773. * src/DefaultPieceStorage.cc
  11774. * src/UnknownLengthPieceStorage.cc
  11775. * src/DefaultBtInteractive.cc
  11776. * src/GrowSegment.cc
  11777. * src/BitfieldMan.h
  11778. * src/DownloadCommand.cc
  11779. * src/BtRequestFactory.h
  11780. * src/PiecedSegment.h
  11781. * src/DefaultPieceStorage.h
  11782. * src/Piece.cc
  11783. * src/DefaultBtRequestFactory.cc
  11784. * src/PieceStorage.h
  11785. * src/Segment.h
  11786. * src/Piece.h
  11787. * src/BitfieldMan.cc
  11788. * src/Util.cc
  11789. * test/DefaultBtProgressInfoFileTest.cc
  11790. * test/DefaultPieceStorageTest.cc
  11791. * test/MockPieceStorage.h
  11792. * test/BtRequestMessageTest.cc
  11793. * test/DefaultBtMessageDispatcherTest.cc
  11794. * test/BitfieldManTest.cc
  11795. * test/GrowSegmentTest.cc
  11796. * test/PieceTest.cc
  11797. * test/SegmentTest.cc
  11798. * test/SegmentManTest.cc
  11799. * test/DefaultBtRequestFactoryTest.cc
  11800. * test/MockBtRequestFactory.h
  11801. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11802. Fixed compilation error with --disable-nls
  11803. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  11804. in gettext.h causes the problem.
  11805. * src/common.h
  11806. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11807. Removed subPiece related functions.
  11808. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  11809. * src/DefaultPieceStorage.{h, cc}
  11810. * test/PieceTest.cc
  11811. * test/DefaultPieceStorageTest.cc
  11812. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11813. Use unsigned char for data store.
  11814. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11815. Bump up version number to 0.13.0+1
  11816. * configure.ac
  11817. * Release 0.13.0+1
  11818. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11819. Changed inactive connection timeout to 120.
  11820. To accept more mulually interested peers, disconnect peer when there
  11821. is no interest between us after certain time passed.
  11822. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  11823. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11824. Fixed the bug that aria2 only uses first dns server in resolv.conf
  11825. when compiled with async DNS support.
  11826. * src/DownloadEngine.cc
  11827. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  11828. value '10' will be a little bit short when some DNS servers are
  11829. offline and several DNS servers are tried. It should be configured
  11830. by command-line option.
  11831. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11832. Merged Ross's mingw patch.
  11833. * src/DHTRoutingTableDeserializer.cc
  11834. * src/DHTRoutingTableSerializer.cc
  11835. * src/Platform.{h, cc}
  11836. * src/timegm.h
  11837. * src/gettimeofday.h
  11838. * src/getaddrinfo.h
  11839. * src/SocketCore.h
  11840. * src/common.h
  11841. * src/inet_aton.h
  11842. * src/DownloadEngine.h
  11843. * src/gai_strerror.h
  11844. * src/a2netcompat.h
  11845. * configure.ac
  11846. * configure
  11847. * aclocal.m4
  11848. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11849. Included missing iostream.
  11850. * test/AllTest.cc
  11851. * test/BtDependencyTest.cc
  11852. * test/BtExtendedMessageTest.cc
  11853. * test/DHTConnectionImplTest.cc
  11854. * test/DHTMessageFactoryImplTest.cc
  11855. * test/DHTMessageTrackerEntryTest.cc
  11856. * test/DHTNodeTest.cc
  11857. * test/DHTRoutingTableSerializerTest.cc
  11858. * test/DefaultBtAnnounceTest.cc
  11859. * test/DefaultBtContextTest.cc
  11860. * test/DefaultBtMessageFactoryTest.cc
  11861. * test/DefaultExtensionMessageFactoryTest.cc
  11862. * test/HandshakeExtensionMessageTest.cc
  11863. * test/HttpResponseTest.cc
  11864. * test/MetalinkProcessorTest.cc
  11865. * test/MultiFileAllocationIteratorTest.cc
  11866. * test/SocketCoreTest.cc
  11867. * test/UTPexExtensionMessageTest.cc
  11868. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11869. Reorganized includes.
  11870. * src/NameResolver.cc
  11871. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11872. Fixed compilation error without ares/c-ares
  11873. * src/NameResolver.h:
  11874. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11875. Added a test for large file.
  11876. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11877. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11878. Fixed the bug that file size is ignored if size > INT32_MAX
  11879. * src/SizeMetalinkParserState.cc (endElement):
  11880. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11881. Bump up version number to 0.13.0
  11882. * configure.ac
  11883. * Release 0.13.0
  11884. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11885. Updated Makfefile.am to make 'make dist' work.
  11886. Now packaged filename is aria2c-VERSION.tar.bz2.
  11887. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11888. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11889. Large file support is now configured by configure script.
  11890. * configure.ac
  11891. Removed unsused source files
  11892. * src/
  11893. * test/
  11894. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11895. Peer.h and BtContext.h respectively.
  11896. * src/Peer.h
  11897. * src/BtContext.h
  11898. Updated translations.
  11899. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11900. translations. Great thanks to all translators!;)
  11901. * po/*.{po, gmo}
  11902. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11903. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11904. statically declared sha1 MessageDigestContext.
  11905. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11906. initialization of short-lived MessageDigestContext.
  11907. * src/MessageDigestHelper.{h, cc}
  11908. * src/main.cc
  11909. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11910. the initialization of MessageDigestContext every time in validating
  11911. chunk checksum.
  11912. * src/DownloadCommand.{h, cc}
  11913. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11914. Add a file descriptor which connected to fast peer(latency<1500) to
  11915. select(). This change reduced CPU load.
  11916. * src/PeerInteractionCommand.cc
  11917. * src/DefaultBtInteractive.{h, cc}
  11918. * src/BtInteractive.h
  11919. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11920. Fixed the previous insufficient fix for possible busy loop.
  11921. * src/MSEHandshake.cc (identifyHandshakeType)
  11922. Removed unused functions.
  11923. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11924. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11925. Fixed possible busy loop if first 20 bytes are not received for a few
  11926. minutes.
  11927. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11928. * src/ReceiverMSEHandshakeCommand.cc
  11929. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11930. Fixed compilation error
  11931. * src/ExpatMetalinkProcessor.cc
  11932. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11933. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11934. * src/DHTBucket.cc
  11935. Removed unnecessary cast.
  11936. * src/HandshakeExtensionMessage.cc
  11937. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11938. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11939. is missing.
  11940. * src/OptionHandlerFactory.cc
  11941. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11942. Fixed the bug that HAVE message is not sent for a piece they are
  11943. downloaded fom http/ftp server before any BitTorrent handshake is done
  11944. with peers.
  11945. * src/DefaultBtInteractive.cc
  11946. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11947. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11948. * src/Makefile.am
  11949. * src/Makefile.in
  11950. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11951. Updated README. Added html version of README and man page.
  11952. * README
  11953. * README.html
  11954. * readme2html: Shell script to generate README.html from README using
  11955. asciidoc.
  11956. * doc/aria2c.1.html
  11957. * doc/makeman: Added the line to generate aria2c.1.html
  11958. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11959. Fixed offset calculation.
  11960. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11961. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11962. Rewritten itos and uitos using template. llitos and ullitos are
  11963. replaced with itos and uitos respectively.
  11964. * src/Util.{h, cc}
  11965. * test/UtilTest.cc
  11966. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11967. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11968. of the number of bytes required for storing public key and shared
  11969. secret.
  11970. * src/LibgcryptDHKeyExchange.h
  11971. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11972. * src/MSEHandshake.cc
  11973. * test/DHKeyExchangeTest.cc
  11974. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11975. Removed since they are not used.
  11976. * src/Xml2MetalinkProcessor.{h, cc}
  11977. * src/Socket.cc
  11978. * src/SegmentSplitter.{h, cc}
  11979. * test/Xml2MetalinkProcessorTest.cc
  11980. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11981. Fixed the bug that prevents aria2 from stopping other than by pressing
  11982. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11983. option. aria2 doesn't stop even after --seed-time is satisfied and
  11984. continues to output blank lines in the console.
  11985. * src/ReceiverMSEHandshakeCommand.cc
  11986. * src/PeerReceiveHandshakeCommand.cc
  11987. * src/PeerListenCommand.cc
  11988. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11989. Bump up version number to 0.13.0rc
  11990. * configure.ac
  11991. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11992. Updated man page and some usage text.
  11993. * doc/aria2c.1.txt
  11994. * src/usage_text.h
  11995. * po/*.{po, gmo}
  11996. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11997. Updated translations. Added Finnish and Hebrew translations.
  11998. Great thanks to all translators!
  11999. * po/*.{po, gmo}
  12000. * po/LINGUAS
  12001. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12002. Log more detailed information about each message.
  12003. * src/DHTQueryMessage.{h, cc}
  12004. * src/DHTGetPeersMessage.{h, cc}
  12005. * src/DHTFindNodeReplyMessage.{h, cc}
  12006. * src/DHTGetPeersReplyMessage.{h, cc}
  12007. * src/DHTAnnouncePeerMessage.{h, cc}
  12008. * src/DHTResponseMessage.{h, cc}
  12009. * src/DHTFindNodeMessage.{h, cc}
  12010. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12011. Use constants defined in prefs.h
  12012. * src/option_processing.cc
  12013. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12014. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  12015. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12016. Make room for future enchancements for IPv6 addresses.
  12017. Bump up version number of dht.dat file format to 2.
  12018. Not compatible with previous version.
  12019. * src/DHTRoutingTableSerializer.cc
  12020. * src/DHTRoutingTableDeserializer.cc
  12021. * test/DHTRoutingTableSerializerTest.cc
  12022. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12023. Added handling for the return values from
  12024. PeerMessageUtil::createcompact().
  12025. * src/DefaultBtContext.cc (computeFastSet):
  12026. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12027. Fixed abort when peer's ip address is IPv4-mapped address.
  12028. * src/DefaultBtContext.cc (computeFastSet)
  12029. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  12030. cannot handle IPv4-mapped addresses.
  12031. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  12032. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12033. Proper return value handling for OpenSSL functions.
  12034. * src/LibsslDHKeyExchange.h
  12035. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12036. Random bytes generation using libgcrypt and OpenSSL.
  12037. * src/DHTUtil.{h, cc}
  12038. * test/DHTUtilTest.cc
  12039. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12040. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  12041. received.
  12042. * src/DHTMessageReceiver.cc (receiveMessage)
  12043. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12044. Fixed the bug that a return code is always 0. BUG#1897704
  12045. If error occurred during the download or there exist unfinished
  12046. downloads, aria2 returns with code 1.
  12047. * src/RequestGroupMan.{h, cc}
  12048. * src/MultiUrlRequestInfo.{h, cc}
  12049. * src/main.cc
  12050. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12051. IPv6 support for SocketCore class.
  12052. TODO: In SocketCore::establishConnection(), this is insufficient to
  12053. determin the failure of connect() here because the socket is
  12054. non-blocking state. The next addresses should be tried after select().
  12055. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  12056. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  12057. instead which address family independent.
  12058. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  12059. information in a compact peer format which is for IPv4 only.
  12060. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  12061. this is a spec of BitTorrent protocol.
  12062. * src/SocketCore.{h, cc}
  12063. * src/PeerMessageUtil.cc
  12064. * test/SocketCoreTest.cc
  12065. * test/PeerMessageUtilTest.cc
  12066. * test/DHTConnectionImplTest.cc
  12067. Handle IPv4-mapped addresses.
  12068. * src/DHTNode.cc: Now identity is determined by node id.
  12069. * src/DHTMessageTrackerEntry.cc
  12070. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  12071. should handle it.
  12072. * src/DHTRoutingTableDeserializer.cc
  12073. * src/DHTMessageFactoryImpl.cc
  12074. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12075. Change the unit of --stop option from a minute to a second.
  12076. * src/usage_text.h
  12077. * src/DownloadEngineFactory.cc
  12078. * src/OptionHandlerFactory.cc
  12079. * src/message.h
  12080. * src/TimedHaltCommand.cc
  12081. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12082. Make listening socket non-block mode.
  12083. * src/FtpConnection.cc
  12084. * src/FtpNegotiationCommand.{h, cc}
  12085. * src/PeerListenCommand.cc
  12086. Fixed the bug that cause slow ftp negotiation.
  12087. * src/FtpNegotiationCommand.{h, cc}
  12088. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12089. Added basic tag to --enable-dht, --dht-listen-port option.
  12090. * src/HelpItemFactory.cc (createHelpItems)
  12091. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12092. Updated text.
  12093. * src/usage_text.h
  12094. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12095. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  12096. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12097. Determin _threadtholdSpeed in each constructor for
  12098. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  12099. * src/ActivePeerConnectionCommand.{h, cc}
  12100. * src/PeerReceiveHandshakeCommand.{h, cc}
  12101. * src/BtSetup.cc
  12102. * src/BtConstants.h
  12103. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12104. Added --bt-min-crypto-level and --bt-require-crypto options.
  12105. * src/OptionHandlerFactory.cc
  12106. * src/MSEHandshake.cc
  12107. * src/HelpItemFactory.cc
  12108. * src/option_processing.cc
  12109. * src/ReceiverMSEHandshakeCommand.cc
  12110. * src/prefs.h
  12111. * src/DefaultBtAnnounce.cc
  12112. * src/InitiatorMSEHandshakeCommand.cc
  12113. * src/usage_text.h
  12114. * test/MSEHandshakeTest.cc
  12115. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12116. Bump version number to 0.13.0b
  12117. * configure.ac
  12118. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12119. Updated doc.
  12120. * src/MessageDigestHelper.h:
  12121. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12122. Use raw message digest as a token instead of its hexadecimal
  12123. representation.
  12124. * src/DHTTokenTracker.cc (generateToken)
  12125. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12126. Added Message Stream Encryption(MSE) support.
  12127. Currently, aria2 accepts incoming connections with Obfuscation Header
  12128. and legacy BitTorrent Header and establishes connections with
  12129. Obfuscation Header first and if failed then retry with legacy
  12130. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  12131. choose ARC4. The new option to change the default behavior is planned.
  12132. For tracker extension, "supportcrypto=1" is added statically.
  12133. * src/PeerInitiateConnectionCommand.{h, cc}
  12134. * src/PeerConnection.{h, cc}
  12135. * src/HandleRegistry.h
  12136. * src/SocketCore.h
  12137. * src/PeerReceiveHandshakeCommand.{h, cc}
  12138. * src/BtRegistry.{h, cc}
  12139. * src/PeerListenCommand.cc
  12140. * src/InitiatorMSEHandshakeCommand.{h, cc}
  12141. * src/ReceiverMSEHandshakeCommand.{h, cc}
  12142. * src/MSEHandshake.{h, cc}
  12143. * src/ARC4Encryptor.h
  12144. * src/ARC4Decryptor.h
  12145. * src/LibgcryptARC4Encryptor.h
  12146. * src/LibgcryptARC4Decryptor.h
  12147. * src/LibgcryptARC4Context.h
  12148. * src/LibsslARC4Encryptor.h
  12149. * src/LibsslARC4Decryptor.h
  12150. * src/LibsslARC4Context.h
  12151. * src/DHKeyExchange.h
  12152. * src/LibgcryptDHKeyExchange.h
  12153. * src/LibsslDHKeyExchange.h
  12154. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  12155. * test/DefaultBtAnnounceTest.cc
  12156. * test/ARC4Test.cc
  12157. * test/DHKeyExchangeTest.cc
  12158. Removed prepareForRetry() because it is not used.
  12159. * src/PeerAbstractCommand.{h, cc}
  12160. * src/PeerInteractionCommand.{h, cc}
  12161. * src/PeerInitiateConnectionCommand.{h, cc}
  12162. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12163. Added the ability to load nodes from torrent file. These nodes are
  12164. added to the routing table when downloading that torrent.
  12165. * src/BtContext.h
  12166. * src/DefaultBtContext.{h, cc}
  12167. * src/DHTSetup.cc
  12168. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  12169. hostname and port pair, and resolves all of them.
  12170. * src/NameResolver.{h, cc}: Added reset().
  12171. * src/RequestGroup.cc
  12172. * test/DefaultBtContextTest.cc
  12173. * test/MockBtContext.h
  12174. Removed assert() from DefaultBtContext and throw exception instead.
  12175. * src/DefaultBtContext.cc
  12176. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12177. Fixed segmentation fault bug when exiting if dht is disabled.
  12178. * src/RequestGroup.cc
  12179. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12180. Fixed typo in log message and define the message in message.h
  12181. * src/TimedHaltCommand.cc
  12182. * src/message.h
  12183. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12184. Included RecoverableException.h to fix compilation error.
  12185. * test/DHTMessageFactoryImplTest.cc
  12186. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12187. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  12188. * test/DHTPingMessageTest.cc
  12189. * test/DHTGetPeersMessageTest.cc
  12190. * test/DHTFindNodeMessageTest.cc
  12191. * test/DHTAnnouncePeerMessageTest.cc
  12192. * test/MockDHTMessage.h
  12193. * test/MockDHTMessageFactory.h
  12194. * test/MockDHTMessageDispatcher.h: New class.
  12195. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12196. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  12197. virtual.
  12198. * src/DHTMessageDispatcher.h
  12199. * src/DHTMessageDispatcherImpl.{h, cc}
  12200. * src/DHTSetup.cc
  12201. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12202. Adding handling of DHT error message. Just log error message and
  12203. throw exception.
  12204. * src/DHTMessageFactoryImpl.cc
  12205. * test/DHTMessageFactoryImplTest.cc
  12206. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12207. Added handling of dynamic cast failure.
  12208. * src/DHTNodeLookupTask.cc
  12209. * src/DHTPeerLookupTask.cc
  12210. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12211. Added the ability to stop aria2 itself when given time has passed
  12212. from start. Use --stop option to specify time in minutes.
  12213. When 0 is given, this feature is disabled.
  12214. * src/OptionHandlerFactory.cc
  12215. * src/TimeBasedCommand.h: Make _interval protected scope.
  12216. * src/HelpItemFactory.cc
  12217. * src/option_processing.cc
  12218. * src/prefs.h
  12219. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  12220. before calling RequestGroupMan::fillRequestGroupFromReserver().
  12221. Without this modification, the result list shows "ERR" when aria2 is
  12222. stopped by --stop option. It should be "INPR".
  12223. * src/DownloadEngine.{h, cc}
  12224. * src/DownloadEngineFactory.cc
  12225. * src/usage_text.h
  12226. * src/TimedHaltCommand.{h, cc}: New class.
  12227. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12228. Bootstrap through node added by port message.
  12229. Currently bootstrap is executed if the number of buckets in routing
  12230. table is 1.
  12231. * src/BtPortMessage.{h, cc}
  12232. * src/DefaultBtMessageFactory.{h, cc}
  12233. * src/PeerInteractionCommand.cc
  12234. * test/BtPortMessageTest.cc
  12235. * test/MockDHTTask.h
  12236. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12237. Extract the Peer class's member variables, which are only needed after
  12238. PeerInteractionCommand, into PeerSessionResource class.
  12239. This class is instantiated in PeerInteractionCommand class's ctor and
  12240. released in its dtor.
  12241. This will make Peer class lightweight and uses less memory for peers
  12242. which are not connected and wait in the queue.
  12243. * src/PeerChokeCommand.cc
  12244. * src/PeerSessionResource.{h, cc}
  12245. * src/PeerInteractionCommand.cc
  12246. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  12247. * src/DefaultBtInteractive.cc
  12248. * src/BtPieceMessage.cc
  12249. * src/BtInterestedMessage.cc
  12250. * src/BtUnchokeMessage.cc
  12251. * src/DefaultPeerStorage.{h, cc}
  12252. * src/PeerInitiateConnectionCommand.cc
  12253. * src/ActivePeerConnectionCommand.cc
  12254. * src/BtNotInterestedMessage.cc
  12255. * src/DefaultBtMessageDispatcher.cc
  12256. * src/BtChokeMessage.cc
  12257. * src/BtRequestMessage.cc
  12258. * src/Peer.{h, cc}
  12259. * src/BtRegistry.h
  12260. * src/TrackerWatcherCommand.cc
  12261. * src/PeerReceiveHandshakeCommand.cc
  12262. * test/BtExtendedMessageTest.cc
  12263. * test/BtAllowedFastMessageTest.cc
  12264. * test/BtCancelMessageTest.cc
  12265. * test/DefaultPieceStorageTest.cc
  12266. * test/BtBitfieldMessageTest.cc
  12267. * test/BtHaveMessageTest.cc
  12268. * test/BtNotInterestedMessageTest.cc
  12269. * test/BtRequestMessageTest.cc
  12270. * test/PeerSessionResourceTest.cc
  12271. * test/DefaultBtMessageDispatcherTest.cc
  12272. * test/PeerTest.cc
  12273. * test/BtInterestedMessageTest.cc
  12274. * test/BtRejectMessageTest.cc
  12275. * test/BtChokeMessageTest.cc
  12276. * test/DefaultPeerStorageTest.cc
  12277. * test/BtHaveNoneMessageTest.cc
  12278. * test/BtHaveAllMessageTest.cc
  12279. * test/DefaultExtensionMessageFactoryTest.cc
  12280. * test/BtUnchokeMessageTest.cc
  12281. * test/DefaultBtMessageFactoryTest.cc
  12282. * test/HandshakeExtensionMessageTest.cc
  12283. * test/UTPexExtensionMessageTest.cc
  12284. * test/DefaultBtRequestFactoryTest.cc
  12285. * test/BtPieceMessageTest.cc
  12286. Removed typedef PeerStats.
  12287. * src/PeerStat.h
  12288. * src/SegmentMan.cc
  12289. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12290. Added std namespace to copy, remove_copy, back_inserter,
  12291. front_inserter.
  12292. * src/RequestGroupMan.cc
  12293. * src/DefaultPieceStorage.cc
  12294. * src/StreamFileAllocationEntry.cc
  12295. * src/BtFileAllocationEntry.cc
  12296. * src/RequestGroup.cc
  12297. * src/MetalinkEntry.cc
  12298. * src/DelegatingPeerListProcessor.cc
  12299. * src/DefaultBtRequestFactory.cc
  12300. * src/DefaultBtMessageDispatcher.cc
  12301. * src/version_usage.cc: Included <algorithm>
  12302. * src/main.cc
  12303. * src/MetalinkParserController.cc
  12304. * src/DefaultBtContext.cc
  12305. * src/DownloadEngineFactory.cc
  12306. * src/a2algo.h
  12307. Removed.
  12308. * test/StreamUriListParserTest.cc
  12309. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12310. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  12311. ActivePeerConnectionCommand when it is given and
  12312. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  12313. * src/ActivePeerConnectionCommand.{h, cc}
  12314. * src/BtSetup.cc
  12315. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12316. Only add socket to DownloadEngine's select routine when peer or
  12317. localhost is unchoked and interested. This lowers CPU usage a
  12318. little bit.
  12319. * src/PeerInteractionCommand.cc
  12320. * src/PeerAbstractCommand.{h, cc}
  12321. * src/BtInteractive.h
  12322. * src/DefaultBtInteractive.{h, cc}
  12323. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12324. Revert previous change because get_peers message is needed for
  12325. announce_peer anyway.
  12326. * src/DHTGetPeersCommand.cc
  12327. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12328. Request peers thought DHT only when download hasn't finished.
  12329. * src/DHTGetPeersCommand.cc
  12330. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12331. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  12332. * src/DHTBucketRefreshTask.{h, cc}
  12333. * src/DHTSetup.cc
  12334. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12335. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  12336. standard classes.
  12337. Included string.h where mem* function are used.
  12338. Added namespace aria2.
  12339. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12340. Create directory before saving DHT routing table.
  12341. Now ios::failure is now handled properly.
  12342. * src/DHTAutoSaveCommand.cc
  12343. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12344. Removed unnecessary cerr.
  12345. * src/DownloadEngine.cc
  12346. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12347. Catch exception inside DHTMessageReceiver::receiveMessage().
  12348. Log unknown message.
  12349. * src/DHTMessageReceiver.{h, cc}
  12350. * src/DHTMessageFactory.h
  12351. * src/DHTMessageFactoryImpl.{h, cc}
  12352. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  12353. * src/DHTInteractionCommand.cc
  12354. * src/DHTUnknownMessage.{h, cc}
  12355. * test/DHTUnknownMessageTest.cc
  12356. * test/MockDHTMessageFactory.h
  12357. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12358. Commented out ip address comparison because a host can have multiple
  12359. ip addresses and it is hard to predict the hostname is resolved into
  12360. which one.
  12361. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  12362. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12363. * po/Makefile.in: Removed since this is generated by configure.
  12364. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12365. Fixed compiler warning about redefinition of SIZE_MAX.
  12366. Use common.h instead of config.h directly here.
  12367. * src/Platform.{h, cc}
  12368. The check of ENABLE_NLS is made in gettext.h, so it is not required
  12369. here.
  12370. * common.h
  12371. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  12372. Updated gettext related files.
  12373. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  12374. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  12375. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12376. Added DHT functionality, compatible with mainline.
  12377. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  12378. You may need to specify entry point to DHT network using
  12379. --dht-entry-point. DHT uses UDP port to listen incoming message.
  12380. Use --dht-listen-port to specify port number. Make sure that your
  12381. firewall configuration can pass through UDP traffic to the port.
  12382. The routing table is saved in $HOME/.aria2/dht.dat.
  12383. * src/DHT*
  12384. * src/BNode.{h, cc}
  12385. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  12386. particular torrent.
  12387. * src/Data.cc: Rewritten ctor.
  12388. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  12389. --dht-entry-point.
  12390. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  12391. * src/RequestGroup.cc: Initialize DHT functionality. When download
  12392. ends, remove BtContext from DHTPeerAnnounceStorage.
  12393. * src/BtPortMessage.{h, cc}: Rewritten.
  12394. * src/message.h
  12395. * src/OptionHandlerImpl.cc
  12396. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  12397. --dht-entry-point.
  12398. * src/Dictionary.{h, cc} (remove): New function.
  12399. * src/prefs.h
  12400. * src/DefaultBtMessageFactory.h
  12401. * src/BtHandshakeMessage.cc
  12402. * src/ActivePeerConnectionCommand.cc
  12403. * src/SocketCore.{h, cc}: Added datagram socket support.
  12404. * src/DefaultBtMessageFactory.cc
  12405. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  12406. Create DHT commands.
  12407. * src/BtMessageFactory.h
  12408. * src/PeerMessageUtil.{h, cc}
  12409. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12410. Fixed the bug that log file is not written when configuration file doesn't exist.
  12411. This is caused by using Logger class before LogFactory is not configured.
  12412. BUG #1875079
  12413. * src/option_processing.cc
  12414. Warning message "configuration doesn't exist" is only printed when --conf is
  12415. given.
  12416. * src/option_processing.cc
  12417. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12418. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  12419. ShaVisitor is now deprecated and slated to be removed.
  12420. * src/DefaultBtContext.cc
  12421. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12422. Externalize message to message.h
  12423. * src/Platform.cc
  12424. * src/message.h
  12425. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12426. Set default domain and default path to cookie.
  12427. * src/HttpResponse.cc
  12428. * src/CookieBox.{h, cc}
  12429. * src/CookieParser.{h, cc}
  12430. * test/CookieParserTest.cc
  12431. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12432. Added --no-conf and --conf-path command-line option.
  12433. --no-conf option disables loading aria2.conf file.
  12434. --conf-path option changes the configuration file path. The default
  12435. file path is $HOME/.aria2/aria2.conf
  12436. Added a warning message when the configuration file is not found.
  12437. * src/HelpItemFactory.cc
  12438. * src/option_processing.cc
  12439. * src/prefs.h
  12440. * src/usage_text.h
  12441. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12442. Added the message to inform users that other help categories are
  12443. available in -h option.
  12444. * src/version_usage.cc
  12445. * src/TagContainer.{h, cc}
  12446. * test/TagContainerTest.cc
  12447. * src/TaggedItem.{h, cc}
  12448. * test/TaggedItemTest.cc
  12449. * src/HelpItem.h
  12450. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12451. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  12452. from PiecedSegment's ctor.
  12453. Previously Piece::getAllMissingBlockIndexes() is called from
  12454. PiecedSegment() but it is rather expensive since only first element is
  12455. used.
  12456. * src/PiecedSegment.cc
  12457. * src/Piece.{h, cc}
  12458. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12459. Rewritten get*Missing*Index functions. Now no need to allocate memory
  12460. each time these functions are called.
  12461. * src/BitfieldMan.{h, cc}
  12462. * test/BitfieldManTest.cc
  12463. * src/array_fun.h
  12464. * test/array_funTest.cc
  12465. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  12466. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  12467. filtered. Removed unnecessary cast to int32_t.
  12468. * src/BitfieldMan.{h, cc}
  12469. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12470. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  12471. payload length(4bytes) are received. This happens because lenbufLength
  12472. is not updated in this particular case and successive call of
  12473. receiveMessage() overwrites payload length with bytes recieved which
  12474. are payload body.
  12475. * src/PeerConnection.{h, cc}
  12476. * src/message.h
  12477. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12478. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  12479. peer if there are peers that have same ipaddr and port.
  12480. I've experiened segmentation fault and "pure virtual function was
  12481. called" error.
  12482. * src/Peer.h
  12483. * test/PeerTest.cc
  12484. * src/DefaultPeerStorage.cc
  12485. * test/DefaultPeerStorageTest.cc
  12486. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12487. Removed a call to isPowerOf() because it is no longer necessary here
  12488. and a request block is not always power of 2.
  12489. BUG#1866924
  12490. * src/PeerMessageUtil.cc (checkLength)
  12491. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12492. Fixed the bug that always first found Segment is removed from
  12493. usedSegmentEntries. Removed unused functions.
  12494. * src/SegmentMan.{h, cc}
  12495. * test/SegmentManTest.cc
  12496. Fixed the bug that ServerHost is not removed.
  12497. * src/RequestGroup.cc
  12498. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12499. Fixed the bug that SegmentMan::completeSegment() is not called
  12500. even if Segment is complete when --lowest-speed-limit is enabled.
  12501. BUG#1864525
  12502. * src/DownloadCommand.{h, cc}
  12503. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12504. Fixed: hash algorithm 'sha1' is always used.
  12505. * src/DownloadCommand.cc (validatePieceHash)
  12506. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12507. Added --enable-peer-exchange command-line option.
  12508. * src/OptionHandlerFactory.cc
  12509. * src/HelpItemFactory.cc
  12510. * src/option_processing.cc
  12511. * src/usage_text.h
  12512. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12513. Move extension from BtRuntime to ExtensionMessageFactory, because
  12514. extension can be specified per peer, not per torrent.
  12515. * src/DefaultBtInteractive.cc
  12516. * src/BtRuntime.h
  12517. * src/ExtendedMessagingAware.h
  12518. * src/ExtensionMessageFactory.h
  12519. * src/DefaultExtensionMessageFactory.cc
  12520. * test/DefaultExtensionMessageFactoryTest.cc
  12521. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12522. Added categorized option help. Specify category using --help option.
  12523. Also added the ability to search options in forward match.
  12524. * src/HelpItem.{h, cc}
  12525. * test/HelpItemTest.cc
  12526. * src/HelpItemFactory.{h, cc}
  12527. * src/TagContainer.{h, cc}
  12528. * test/TagContainerTest.cc
  12529. * src/option_processing.cc
  12530. * src/prefs.h
  12531. * src/TaggedItem.{h, cc}
  12532. * test/TaggedItemTest.cc
  12533. * src/version_usage.cc
  12534. * src/help_tags.h
  12535. * src/usage_text.h
  12536. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12537. Fixed segmentation fault when bad torrent metainfo is parsed.
  12538. Added dynamic_cast properly to detect the misconfiguration of metainfo
  12539. and then throw exception or skip it.
  12540. * src/DefaultBtContext.{h, cc}
  12541. * test/DefaultBtContextTest.cc
  12542. * src/AnnounceList.cc
  12543. * src/CompactPeerListProcessor.cc
  12544. * src/message.h
  12545. * src/DefaultBtAnnounce.{h, cc}
  12546. * test/DefaultBtAnnounceTest.cc
  12547. * src/BencodeVisitor.cc
  12548. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12549. Added missing "B"(=Byte). So now the message looks like this:
  12550. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  12551. * src/message.h (MSG_SHARE_RATIO_REPORT)
  12552. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12553. Show the seed ratio after torrent downloads.
  12554. For example, after torrent download completed and --seed-time and
  12555. --seed-ratio conditions are fulfilled, following message is printed
  12556. right after "Download complete: .....":
  12557. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  12558. * src/RequestGroupMan.cc
  12559. * src/RequestGroup.{h, cc}
  12560. * src/message.h
  12561. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12562. Remove a defunct control file. A defunct control file means that while
  12563. it exists, but the corresponding download file is missing.
  12564. After its removal, a download restarts from the beginning.
  12565. * src/RequestGroup.cc
  12566. * src/message.h
  12567. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12568. Allocate bitfield in Peer when it is really used. More specifically,
  12569. bitfield in Peer is allocated after the connection is established and
  12570. deallocated when the connection is dropped.
  12571. Since 2 parameters(piece length and total length) was removed from the
  12572. constructor of Peer class, many test classes were modified accordingly.
  12573. See svn log for more detailed information.
  12574. * src/PeerInteractionCommand.cc
  12575. * src/CompactPeerListProcessor.cc
  12576. * src/Peer.cc
  12577. * src/DefaultPeerListProcessor.cc
  12578. * src/PeerListenCommand.cc
  12579. * src/PeerReceiveHandshakeCommand.cc
  12580. Fixed memory leak
  12581. * src/Piece.cc
  12582. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12583. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  12584. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  12585. command-line options.
  12586. * src/option_processing.cc
  12587. * src/ActivePeerConnectionCommand.cc
  12588. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12589. Send have message to peer if it already has the piece.
  12590. * src/BtHaveMessage.{h, cc}
  12591. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12592. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  12593. port.
  12594. * src/DefaultPeerStorage.{h, cc}
  12595. * test/DefaultPeerStorageTest.cc
  12596. * src/HandshakeExtensionMessage.cc
  12597. * test/HandshakeExtensionMessageTest.cc
  12598. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  12599. * src/PeerStorage.h
  12600. * test/MockPeerStorage.h
  12601. * src/PeerListenCommand.cc
  12602. * src/PeerReceiveHandshakeCommand.cc
  12603. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12604. Added --metalink-enable-unique-protocol option.
  12605. * src/Metalink2RequestGroup.cc
  12606. * src/option_processing.cc
  12607. * src/prefs.h
  12608. * src/version_usage.cc
  12609. * doc/aria2c.1.txt
  12610. * doc/aria2c.1
  12611. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12612. Allow a peer in incomingPeer to be added peers.
  12613. * src/DefaultPeerStorage.cc
  12614. * test/DefaultPeerStorageTest.cc
  12615. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12616. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  12617. I could reproduce this bug in following procedure:
  12618. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  12619. 2. Restart aria2.
  12620. 3. You see the download stopped around 99%.
  12621. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12622. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  12623. If timeout is reached, then _nextCommand is unused and it may contains
  12624. segments and they won't be canceled. Actually, timeout is not needed
  12625. here because if the server dropped connection, then retry is made.
  12626. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12627. Added uTorrent compatible Peer Exchange.
  12628. * src/BencodeVisitor.{h, cc}
  12629. * test/BencodeVisitorTest.cc
  12630. * src/BtConstants.h
  12631. * src/BtContext.h: Added 'private' flag.
  12632. * src/BtExtendedMessage.{h, cc}
  12633. * test/BtExtendedMessageTest.cc
  12634. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  12635. reserved field.
  12636. * test/BtHandshakeMessageTest.cc
  12637. * src/BtMessageFactory.h
  12638. * src/BtRegistry.h
  12639. * src/BtRuntime.h: This class holds default extension message IDs for
  12640. aria2. By default, aria2 uses ID 8 for ut_pex.
  12641. * src/DefaultBtContext.cc
  12642. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  12643. When it is true, aria2 enables ut_pex. This value is set by
  12644. PeerInteractionCommand.
  12645. * src/DefaultBtMessageFactory.{h, cc}
  12646. * test/DefaultBtMessageFactoryTest.cc
  12647. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  12648. handling to DefaultBtInteractive class.
  12649. * src/DefaultExtensionMessageFactory.{h, cc}
  12650. * test/DefaultExtensionMessageFactoryTest.cc
  12651. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  12652. the container(peers and incomingPeers. The equality is determined by
  12653. Peer::id).
  12654. * test/DefaultPeerStorageTest.cc
  12655. * src/ExtensionMessage.h
  12656. * test/MockExtensionMessage.h
  12657. * src/ExtensionMessageFactory.h
  12658. * test/MockExtensionMessageFactory.h
  12659. * src/HandshakeExtensionMessage.{h, cc}
  12660. * test/HandshakeExtensionMessageTest.cc
  12661. * src/MetaEntry.h
  12662. * src/Peer.{h, cc}
  12663. * src/PeerInteractionCommand.cc
  12664. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  12665. addIncomingPeer.
  12666. * src/PeerMessageUtil.{h, cc}
  12667. * src/PeerObject.h
  12668. * src/UTPexExtensionMessage.{h, cc}
  12669. * test/UTPexExtensionMessageTest.cc
  12670. * src/message.h
  12671. * src/prefs.h
  12672. Fixed the bug that returns incomplete data when it contains null
  12673. character. A convenient constructor was also added.
  12674. * src/Data.{h, cc}
  12675. Rewritten.
  12676. * src/CompactPeerListProcessor.cc
  12677. Fixed typos.
  12678. * src/message.h
  12679. * src/MetaFileUtil.cc
  12680. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12681. Added "Status Legend" label to the explanation text of 'stat' in
  12682. download result and moved it to the last. BUG#1848214
  12683. * src/RequestGroupMan.cc
  12684. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12685. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  12686. * src/Makefie.am
  12687. * test/Makefile.am
  12688. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12689. Fixed the bug that prevents aria2 from loading cookie file when expire
  12690. value is greater than 2^31-1. BUG#1851066
  12691. * src/CookieBoxFactory.cc
  12692. * test/CookieBoxFactoryTest.cc
  12693. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12694. Fixed possible memory leak when an exception is thrown.
  12695. * src/XML2SAXMetalinkProcessor.cc
  12696. Added Expat support. If both libxml2 and Expat are installed, then
  12697. libxml2 is used by default.
  12698. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  12699. ExpatMetalinkProcessor according to the configuration.
  12700. * src/ExpatMetalinkProcessor.{h, cc}
  12701. * src/main.cc: Removed libxml2 specific header and init/free function.
  12702. * src/MetalinkProcessorFactory.{h, cc}
  12703. * src/MetalinkHelper.cc
  12704. * src/Metalinker.h: Removed unnecessary libxml2 header.
  12705. * src/MetalinkProcessor.h
  12706. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  12707. MetalinkProcessorTest is used instead.
  12708. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  12709. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  12710. MetalinkProcessorFactory::newInstance().
  12711. * m4/libexpat.m4
  12712. * configure.ac: Added configuration options for libexpat.
  12713. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12714. Disabled -s option in metalink download.
  12715. * src/Metalink2RequestGroup.cc
  12716. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12717. If several protocols are available for a mirror in metalink file,
  12718. aria2 now use one of them. --metalink-preferred-protocol option was
  12719. added to specify the preference of protocol.
  12720. * src/AbstractCommand.cc
  12721. * src/OptionHandlerFactory.cc
  12722. * src/ServerHost.{h, cc}
  12723. * src/Metalink2RequestGroup.cc
  12724. * src/RequestGroup.{h, cc}
  12725. * test/RequestGroupTest.cc
  12726. * src/option_processing.cc
  12727. * src/prefs.h
  12728. * src/HttpResponseCommand.cc
  12729. * src/MetalinkResource.{h, cc}
  12730. * src/FtpNegotiationCommand.cc
  12731. * src/MetalinkEntry.{h, cc}
  12732. * src/MetalinkEntryTest.cc
  12733. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12734. Code cleanup and added debug log.
  12735. * src/PeerConnection.cc
  12736. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12737. Compiler error fix: applied the patch by Tiziano Mueller
  12738. * src/RequestGroup.cc
  12739. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12740. Fixed the bug: only first announce URL is tried in AnnounceTier,
  12741. in stopped and completed event.
  12742. * src/AnnounceList.{h, cc}
  12743. * test/AnnounceListTest.cc
  12744. * src/DefaultBtAnnounce.cc
  12745. * test/DefaultBtAnnounceTest.cc
  12746. Sorted URLs.
  12747. * test/Metalink2RequestGroupTest.cc
  12748. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12749. Removed unnecessary string copy. Updated doc and corrected indentation.
  12750. * src/Base64.cc
  12751. Fixed compilation warnings
  12752. * test/DataTest.cc
  12753. * test/HttpRequestTest.cc
  12754. * test/MetaFileUtilTest.cc
  12755. * test/RequestTest.cc
  12756. * Release 0.12.0
  12757. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12758. Updated translations
  12759. * po/{de,fr,ja,nl,ru}.po
  12760. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  12761. translations. Many thanks to translators.
  12762. * po/{ca,es,it,pt_BR,sv}.po
  12763. * po/LINGUAS
  12764. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12765. Added a notice about URL
  12766. * src/version_usage.cc
  12767. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  12768. Fixed the bug#1845750; CTRL+C does not stop torrent.
  12769. aria2 repeatedly sends stopped request when tracker returns error code.
  12770. * src/AnnounceList.cc
  12771. * test/AnnounceListTest.cc
  12772. * src/AnnounceTier.h
  12773. Added a message when ctrl-c is hit.
  12774. Now second ctrl-c is also handled in signal handler.
  12775. * src/RequestGroupMan.{h, cc}
  12776. * src/RequestGroup.{h, cc}
  12777. * src/MultiUrlRequestInfo.cc
  12778. * src/DownloadEngine.cc
  12779. * src/TrackerWatcherCommand.cc
  12780. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12781. Code cleanup
  12782. * src/Base64.cc (encode)
  12783. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12784. Changed Direct/IO enable/disable procesure in file allocation routine.
  12785. * src/SingleFileAllocationIterator.cc
  12786. (SingleFileAllocationIterator):
  12787. Disable directIO if offset is not multiple of 512.
  12788. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  12789. * src/MultiFileAllocationIterator.cc (allocateChunk):
  12790. Enable created SingleFileAllocationIterator's directIO.
  12791. * src/FileAllocationEntry.cc
  12792. (FileAllocationEntry): Enable directIO here.
  12793. (~FileAllocationEntry): Disable directIO here.
  12794. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12795. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  12796. * src/Peer.{h, cc}
  12797. * src/DefaultPieceStorage.cc
  12798. * test/DefaultPieceStorageTest.cc
  12799. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12800. Rewritten direct I/O support routine
  12801. * src/SingleFileAllocationIterator.cc
  12802. * src/MultiDiskAdaptor.{h, cc}
  12803. * src/ByteArrayDiskWriter.h
  12804. * src/AbstractSingleDiskAdaptor.h
  12805. * src/AbstractDiskWriter.cc
  12806. * src/DefaultPieceStorage.cc
  12807. * src/DiskWriter.h
  12808. * src/BinaryStream.h
  12809. * src/IteratableChunkChecksumValidator.cc
  12810. * src/IteratableChecksumValidator.cc
  12811. * src/CheckIntegrityEntry.cc
  12812. * src/FileAllocationEntry.cc
  12813. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12814. Fixed typo
  12815. * src/version_usage.cc
  12816. Updated doc
  12817. * doc/aria2c.1.txt
  12818. * doc/aria2c.1
  12819. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12820. Fixed compile error without message digest support.
  12821. * src/FileMetalinkParserState.cc
  12822. * src/MetalinkParserController.{h, cc}
  12823. * test/XML2SAXMetalinkProcessorTest.cc
  12824. * test/MetalinkParserControllerTest.cc
  12825. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12826. Enable direct I/O support in checksum checking.
  12827. * src/IteratableChunkChecksumValidator.{h, cc}
  12828. * test/IteratableChunkChecksumValidatorTest.cc
  12829. * src/CheckIntegrityEntry.cc
  12830. * src/PieceHashCheckIntegrityEntry.cc
  12831. * src/IteratableChecksumValidator.{h, cc}
  12832. * src/BtCheckIntegrityEntry.cc: Added doc.
  12833. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12834. Added --allow-piece-length-change option.
  12835. * src/DefaultBtProgressInfoFile.cc
  12836. * test/DefaultBtProgressInfoFileTest.cc
  12837. * src/OptionHandlerFactory.cc
  12838. * src/option_processing.cc
  12839. * src/prefs.h
  12840. * src/version_usage.cc
  12841. * doc/aria2c.1.txt
  12842. * doc/aria2c.1
  12843. Fixed: duplicated result entry appears when exception is thrown in
  12844. RequestGroup::createInitiateConnectionCommand().
  12845. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12846. Add RequestGroup to _requestGroup after RequetGroup::
  12847. createInitiateConnectionCommand() succeeds.
  12848. Externalized message
  12849. * src/XML2SAXMetalinkProcessor.cc
  12850. * src/message.h
  12851. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12852. Forced download abort when received negative response from http/ftp
  12853. server.
  12854. * src/HttpResponseCommand.cc
  12855. * src/FtpNegotiationCommand.cc
  12856. * src/HttpResponse.cc
  12857. * src/FtpConnection.cc
  12858. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12859. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12860. the predecessor, Xml2MetalinkParser class.
  12861. I tested them against 94KB metalink file with 1234 chunk checksums.
  12862. The new one parsed it in 22msec, while it took 6000msec with old one.
  12863. * src/XML2SAXMetalinkProcessor.{h, cc}
  12864. * test/XML2SAXMetalinkProcessorTest.cc
  12865. * src/MetalinkParserController.{h, cc}
  12866. * test/MetalinkParserControllerTest.cc
  12867. * src/MetalinkParserState.h: Also added 16 subclasses.
  12868. * src/main.cc
  12869. * src/Metalink2RequestGroup.cc
  12870. * src/MetalinkHelper.cc
  12871. * src/MetalinkEntry.cc
  12872. * src/ChunkChecksum.h
  12873. Rewritten Base64 class for better performance.
  12874. * src/Base64.{h, cc}
  12875. * test/Base64Test.cc
  12876. * src/HttpRequest.cc
  12877. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12878. Fixed the bug#1841757: aria2 will connect to server to only get
  12879. file size.
  12880. * src/StreamFileAllocationEntry.cc
  12881. * src/option_processing.cc
  12882. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12883. downloads.
  12884. * src/FtpNegotiationCommand.cc
  12885. Suppressed wrong message when finding PreDownloadHandler
  12886. * src/RequestGroup.cc
  12887. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12888. Updated usage
  12889. * src/version_usage.cc
  12890. Updated man page
  12891. * doc/aria2c.1.txt
  12892. * doc/aria2c.1
  12893. Updated po files
  12894. * po/aria2c.pot
  12895. * po/*.po
  12896. * po/*.gmo
  12897. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12898. Eliminated g++-4.2 warning
  12899. * src/DownloadHandlerConstants.{h, cc}
  12900. * src/Util.cc
  12901. * test/MetaFileUtilTest.cc
  12902. * test/PStringBuildVisitorTest.cc
  12903. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12904. * src/RequestGroup.cc
  12905. * src/BtCheckIntegrityEntry.cc
  12906. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12907. Fixed a2io.h
  12908. * src/a2io.h
  12909. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12910. Added direct I/O support. The current implementation uses O_DIRECT,
  12911. which is not posix standard and is tested on linux 2.6.21.
  12912. Currently only file allocation uses direct I/O.
  12913. * src/SingleFileAllocationIterator.{h, cc}
  12914. * test/SingleFileAllocationIteratorTest.cc
  12915. * src/MultiFileAllocationIterator.{h, cc}
  12916. * test/MultiFileAllocationIteratorTest.cc
  12917. * src/BinaryStream.h
  12918. * src/DiskWriter.h
  12919. * src/AbstractDiskWriter.{h, cc}
  12920. * src/ByteArrayDiskWriter.h
  12921. * src/DiskAdaptor.h
  12922. * src/AbstractSingleDiskAdaptor.{h, cc}
  12923. * src/MultiDiskAdaptor.{h, cc}
  12924. * src/FileAllocationEntry.cc
  12925. * src/Util.{h, cc}
  12926. * src/OptionHandlerFactory.cc
  12927. * src/prefs.h
  12928. * src/version_usage.cc
  12929. * src/option_processing.cc
  12930. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12931. handleException.
  12932. * src/MultiFileAllocationIterator.cc
  12933. Added EINTR handling
  12934. * src/SocketCore.cc
  12935. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12936. Updated usage
  12937. * src/version_usage.cc
  12938. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12939. Applied Ross's patch for MinGW port.
  12940. * src/DownloadEngine.h
  12941. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12942. Set Content-Type to SingleFileDownloadContext when http response is
  12943. received.
  12944. * src/HttpResponseCommand.cc
  12945. * src/HttpResponse.{h, cc}
  12946. * test/HttpResponseTest.cc
  12947. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12948. Rewritten to add content-type support.
  12949. * src/DownloadHandler.{h, cc}
  12950. * src/BtPostDownloadHandler.{h, cc}
  12951. * test/BtPostDownloadHandlerTest.cc
  12952. * src/MetalinkPostDownloadHandler.{h, cc}
  12953. * test/MetalinkPostDownloadHandlerTest.cc
  12954. * src/PostDownloadHandler.{h, cc}
  12955. * src/DownloadHandlerConstants.{h, cc}
  12956. * src/RequestGroup.cc
  12957. * src/HttpResponseCommand.cc
  12958. * src/FtpNegotiationCommand.cc
  12959. * src/SingleFileDownloadContext.{h, cc}
  12960. * src/RequestGroup.h
  12961. * src/RequestGroupCriteria.h
  12962. * src/ContentTypeRequestGroupCriteria.h
  12963. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12964. If it is give, metalink/torrent file is not written to the disk, but
  12965. just is kept in memory. Parsing is occurred on memory.
  12966. * src/MetalinkHelper.{h, cc}
  12967. * src/MetalinkProcessor.h
  12968. * src/Xml2MetalinkProcessor.{h, cc}
  12969. * test/Xml2MetalinkProcessorTest.cc
  12970. * src/DownloadHandlerFactory.{h, cc}
  12971. * test/DownloadHandlerFactoryTest.cc
  12972. * src/PreDownloadHandler.{h, cc}
  12973. * src/OptionHandlerFactory.cc
  12974. * src/DefaultBtContext.{h, cc}
  12975. * test/DefaultBtContextTest.cc
  12976. * src/version_usage.cc
  12977. * src/Metalink2RequestGroup.{h, cc}
  12978. * src/RequestGroup.{h, cc}
  12979. * src/a2functional.h
  12980. * test/a2functionalTest.cc
  12981. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12982. * src/OptionHandlerImpl.h
  12983. * src/prefs.h
  12984. * src/Util.{h, cc}
  12985. * test/UtilTest.cc
  12986. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12987. memory usage.
  12988. * src/RequestGroupMan.{h, cc}
  12989. * src/DownloadEngine.cc
  12990. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12991. WeakHandle to SharedHandle because WeakHandle could be null.
  12992. * src/RequestGroup.{h, cc}
  12993. * src/DownloadEngineFactory.cc
  12994. * src/DownloadResult.h
  12995. Set totalLength after download finished
  12996. * src/UnknownLengthPieceStorage.{h, cc}
  12997. Keep torrent file specified in metalink in memory.
  12998. * src/Metalink2RequestGroup.cc
  12999. * src/BtDependency.cc
  13000. * src/TrueRequestGroupCriteria.h
  13001. Fixed the bug: seekg is used where seekp should be used.
  13002. * src/ByteArrayDiskWriter.cc
  13003. * test/ByteArraydiskWriterTest.cc
  13004. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13005. Fixed syntax error
  13006. * test/SequenceTest.cc
  13007. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13008. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  13009. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  13010. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  13011. * src/RequestGroup.cc (downloadFinishedByFileLength)
  13012. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13013. Added the check to see whether ares_host_callback accepts timeouts
  13014. with c-ares; only c-ares 1.5.0 or newer accepts it.
  13015. * src/NameResolver.{h, cc}
  13016. * m4/libcares.m4
  13017. * configure.ac: Set C++ for language choice.
  13018. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13019. Fixed: compilation fails without c-ares/ares
  13020. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  13021. Generate http/ftp commands only when download is incomplete.
  13022. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  13023. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13024. Corrected typo. Examples are removed since they are available in man
  13025. page.
  13026. * src/version_usage.cc
  13027. Updated man page.
  13028. * doc/aria2c.1
  13029. * doc/aria2c.1.txt
  13030. * doc/makeman: Commented out sed command.
  13031. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13032. Throw DlAbortEx when a remote file is not found.
  13033. * src/HttpResponse.cc
  13034. * src/FtpNegotiationCommand.cc
  13035. * src/message.h
  13036. Overwrite an existing file if --allow-overwrite=true is given.
  13037. * src/RequestGroup.cc
  13038. Removed unused functions
  13039. * src/AbstractCommand.h
  13040. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13041. Removed 'extern' from 'extern typedef ...' in src/*.h
  13042. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13043. Updated usage
  13044. * src/version_usage.cc
  13045. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13046. Trim announce URL
  13047. * src/DefaultBtContext.cc
  13048. * test/ShaVisitorTest.cc
  13049. Trim argument s. Give trimed s to exception constructor.
  13050. * src/Util.cc (parseInt)(parseLLInt)
  13051. * test/UtilTest.cc
  13052. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13053. Set precision back to 1.
  13054. * src/ConsoleStatCalc.cc (calculateStat)
  13055. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13056. Replaced strtol with Util::parseInt
  13057. * src/ChunkedEncoding.cc
  13058. * src/HttpConnection.cc
  13059. * src/CookieBoxFactory.cc
  13060. * src/ParameterizedStringParser.cc
  13061. * src/Util.cc
  13062. * test/UtilTest.cc
  13063. * test/OptionHandlerTest.cc
  13064. * src/Request.cc
  13065. Throw exception when empty string is given. The message for exception
  13066. changed.
  13067. * src/Util.cc (parseInt)(parseLLInt)
  13068. * src/message.h
  13069. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13070. Set precision to 2 because share ratio is rounded into 1.0 if precision
  13071. set to 1.
  13072. * src/ConsoleStatCalc.cc (calculateStat)
  13073. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13074. Preallocate non-requested file which is adjacent forward to requested
  13075. file('requested' files means the files given in --select-file option)
  13076. if they share a same piece.
  13077. This fixes long pause in the file system which doesn't support sparse
  13078. files like FAT32 while downloading.
  13079. * src/MultiFileAllocationIterator.{h, cc}
  13080. * test/MultiFileAllocationIteratorTest.cc
  13081. * src/FileEntry.{h, cc}
  13082. Removed unused _option.
  13083. * src/MultiDiskAdaptor.h
  13084. * test/MultiDiskAdaptorTest.cc
  13085. * src/DefaultPieceStorage.cc
  13086. Set the default value of --seed-ratio to 1.0.
  13087. If 0.0 is given, then seeding continues regardless of share ratio.
  13088. * src/version_usage.cc
  13089. * src/option_processing.cc
  13090. * src/BtSetup.cc
  13091. * doc/aria2c.1.txt
  13092. * doc/aria2c.1
  13093. Fixed: Selective download is not working in BitTorrent
  13094. * src/RequestGroup.cc
  13095. Introduced Sequence class. Use this instead of Util::unfoldRange()
  13096. * src/PieceStorage.h
  13097. * test/MockPieceStorage.h
  13098. * src/UnknownLengthPieceStorage.h
  13099. * src/DefaultPieceStorage.{h, cc}
  13100. * src/Metalink2RequestGroup.cc
  13101. * src/RequestGroup.cc
  13102. * src/Sequence.h
  13103. * test/SequenceTest.cc
  13104. * src/IntSequence.h
  13105. * src/message.h
  13106. * src/Util.{h, cc}
  13107. * test/UtilTest.cc
  13108. Added new function 'parse' to catch exception thrown by subclass's
  13109. parseArg
  13110. * src/OptionHandler.h
  13111. * src/OptionParser.cc
  13112. * src/NameMatchOptionHandler.h
  13113. * src/OptionHandlerImpl.h
  13114. * test/OptionHandlerTest.cc
  13115. Added IntegerRangeOptionHandler. Used for --listen-port and
  13116. --select-file. Now --listen-port accepts range of port.
  13117. * src/OptionHandlerFactory.cc
  13118. * src/version_usage.cc
  13119. * src/OptionHandlerImpl.h
  13120. * src/option_processing.cc
  13121. * src/BtSetup.cc
  13122. * src/PeerListenCommand.{h, cc}
  13123. * doc/aria2c.1.txt
  13124. * doc/aria2c.1
  13125. Implemented operator< for Exception class to provide easy way to print
  13126. exception stack trace.
  13127. * src/Exception.{h, cc}
  13128. * src/main.cc
  13129. * src/option_processing.cc
  13130. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13131. * src/version_usage.cc
  13132. (showVersion): Reworked.
  13133. (showUsage): Added examples.
  13134. Removed Hint for total length and file name.
  13135. * src/Metalink2RequestGroup.cc
  13136. * src/RequestGroup.{h, cc}
  13137. * src/HttpResponseCommand.cc
  13138. * src/FtpNegotiationCommand.cc
  13139. Now --follow-torrent and --follow-metalink option work properly.
  13140. * src/RequestGroup.cc
  13141. Updated man page
  13142. * doc/aria2c.1.txt
  13143. * doc/aria2c.1
  13144. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13145. Removed.
  13146. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  13147. Use Segment::operator==()
  13148. * src/HttpConnection.cc
  13149. * src/Segment.h
  13150. Updated usage
  13151. * src/version_usage.cc
  13152. Added EINTR treatment.
  13153. * src/SocketCore.cc
  13154. * src/AbstractDiskWriter.cc
  13155. Rewritten.
  13156. * src/Util.cc (rangedFileCopy)
  13157. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13158. Fixed typo.
  13159. * src/version_usage.cc
  13160. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13161. Implemented. Now -c option works fine.
  13162. * src/DefaultPieceStorage.cc (markPiecesDone)
  13163. * test/DefaultPieceStorageTest.cc
  13164. Removed.
  13165. * src/SegmentMan.{h, cc}
  13166. (markAllPiecesDone)
  13167. (markPieceDone)
  13168. Synchronized po files with
  13169. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  13170. * src/fr.po
  13171. * src/ru.po
  13172. * src/de.po
  13173. * src/ja.po
  13174. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13175. Added ifdef and some modifications to compile without BitTorrent,
  13176. Metalink, MessageDigest
  13177. support.
  13178. * src/PieceHashCheckIntegrityEntry.cc
  13179. * src/MetalinkEntry.h
  13180. * src/version_usage.cc
  13181. * src/main.cc
  13182. * src/DownloadEngine.{h, cc}
  13183. * src/Metalink2RequestGroup.cc
  13184. * src/Peer.cc
  13185. * src/RequestGroup.cc
  13186. * src/MetalinkHelper.cc
  13187. * test/DefaultPieceStorageTest.cc
  13188. * test/MetalinkPostDownloadHandlerTest.cc
  13189. * test/Metalink2RequestGroupTest.cc
  13190. Hide TOTAL SPD when all downloads complete.
  13191. * src/ConsoleStatCalc.cc
  13192. Log target system information.
  13193. * src/main.cc
  13194. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13195. Now --metalink-location accepts a comma-deliminated list of locations.
  13196. * src/MetalinkEntry.{h, cc}
  13197. * test/MetalinkEntryTest.cc
  13198. * src/version_usage.cc
  13199. * src/Metalink2RequestGroup.cc
  13200. * src/Xml2MetalinkProcessor.cc
  13201. * test/Xml2MetalinkProcessorTest.cc
  13202. * doc/aria2c.1.txt
  13203. * doc/aria2c.1
  13204. * src/Util.cc (toUpper)(toLower): Rewritten.
  13205. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13206. Added the ability to detect duplicate download entry which is about to
  13207. download the same file other RequestGroup is downloading.
  13208. * src/RequestGroup.cc
  13209. * src/HttpResponseCommand.cc
  13210. * src/FtpNegotiationCommand.cc
  13211. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13212. Recalculates download progress when loading a control file,
  13213. if the piece length of DownloadContext is different from the one saved
  13214. in the control file. Currently in-flight pieces are ignored.
  13215. * src/DefaultBtProgressInfoFile.cc
  13216. * test/DefaultBtProgressInfoFileTest.cc
  13217. * src/Util.{h, cc}
  13218. * test/UtilTest.cc
  13219. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13220. Do not rotate tiers in announce-list.
  13221. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  13222. AnnounceList::allTiersFailed() used instead to detect whether all
  13223. tiers are tried and failed.
  13224. * test/DefaultBtAnnounceTest.cc
  13225. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  13226. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  13227. * test/AnnounceListTest.cc
  13228. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  13229. clause. Catch RecoverableException instead of DlRetryEx instead.
  13230. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13231. Implemented checksum validation feature(1 checksum for each file)
  13232. The validation takes place after the download.
  13233. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  13234. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  13235. * src/CheckIntegrityCommand.cc: Changed log message.
  13236. * src/Metalink2RequestGroup.cc: Set checksum to
  13237. SingleFileDownloadContext.
  13238. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  13239. PieceHashCheckIntegrity class.
  13240. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  13241. PieceHashCheckIntegrity class.
  13242. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  13243. * src/IteratableValidator.h: New class.
  13244. * src/message.h
  13245. * src/CheckIntegrityEntry.{h, cc}
  13246. * src/IteratableChunkChecksumValidator.{h, cc}
  13247. * src/SingleFileDownloadContext.h
  13248. * src/DownloadCommand.cc
  13249. --allow-overwrite=true is no longer needed to check file integrity
  13250. before download in BitTorrent download.
  13251. * src/RequestGroup.cc (getInitialCommand)
  13252. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  13253. throws exception.
  13254. * src/RequestGroupMan.cc (getInitialCommands)
  13255. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13256. urlencode the given url inside Request::parseUrl(...)
  13257. * src/Request.{h, cc}
  13258. * src/Util.{h, cc}
  13259. * test/RequestTest.cc
  13260. Removed #!metalink3! notation support because it is deleted from
  13261. the metalink specification.
  13262. * src/Request.{h, cc}
  13263. * test/RequestTest.cc
  13264. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13265. Don't connect server before checking file integrity at startup, if
  13266. filesize and output file path are known.
  13267. * src/AbstractCommand.cc
  13268. * src/StreamFileAllocationEntry.cc
  13269. * src/Metalink2RequestGroup.cc
  13270. * src/RequestGroup.{h, cc}
  13271. * src/HttpResponseCommand.cc
  13272. * src/FtpNegotiationCommand.cc
  13273. Added DownloadFailureException. If it is thrown, RequestGroup should
  13274. halt.
  13275. * src/AbstractCommand.cc
  13276. * src/DownloadFailureException.h
  13277. * src/RequestGroup.cc
  13278. Catch RecoverableException, instead of DlAbortEx.
  13279. * src/RequestGroupMan.cc
  13280. * src/FillRequestGroupCommand.cc
  13281. * src/MetaFileUtil.cc
  13282. * src/IteratableChunkChecksumValidator.cc
  13283. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  13284. getGID())
  13285. * src/CheckIntegrityCommand.cc
  13286. * src/message.h
  13287. Print gid instead of idx.
  13288. * src/RequestGroupMan.cc
  13289. Removed exception throwers declaration.
  13290. * src/DirectDiskAdaptor.{h, cc}
  13291. * src/SocketCore.{h, cc}
  13292. * src/MultiDiskAdaptor.{h, cc}
  13293. * src/HttpConnection.{h, cc}
  13294. * src/HttpResponse.{h, cc}
  13295. * src/DiskAdaptor.{h, cc}
  13296. * src/CopyDiskAdaptor.{h, cc}
  13297. * src/MultiDiskAdaptor.{h, cc}
  13298. * src/HttpHeaderProcessor.{h, cc}
  13299. * src/AbstractSingleDiskAdaptor.{h, cc}
  13300. * src/Util.{h, cc}
  13301. * test/UtilTest.cc
  13302. * src/DefaultDiskWriter.{h, cc}
  13303. * src/FtpConnection.{h, cc}
  13304. * src/AbstractDiskWriter.{h, cc}
  13305. Removed duplicate code.
  13306. * src/StreamCheckIntegrityEntry.cc
  13307. Removed unnecessary include.
  13308. * src/DiskWriter.h
  13309. Included Exception.h
  13310. * src/option_processing.cc
  13311. Included 2 files and added doc
  13312. * src/TrackerWatcherCommand.cc
  13313. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  13314. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13315. Changed CheckIntegrityEntry interface so that it can define
  13316. the action when all the chunk checksums are valid.
  13317. * src/CheckIntegrityEntry.h
  13318. * src/StreamCheckIntegrityEntry.{h, cc}
  13319. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  13320. are valid, then aira2 goes to seeding mode. Sometimes it is better
  13321. to exit rather than doing seeding. So, it would be good to toggle this
  13322. behavior.
  13323. * src/CheckIntegrityCommand.cc
  13324. * src/AbstractCommand.cc
  13325. * src/RequestGroup.cc
  13326. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13327. Reflect the download length of in-flight pieces.
  13328. It makes the download length readout more precise.
  13329. * src/DefaultPieceStorage.{h, cc}
  13330. * test/DefaultPieceStorageTest.cc
  13331. * src/a2functional.h
  13332. * test/a2functionalTest.cc
  13333. Lower CPU load when --max-download-limit is used.
  13334. There is up and down in speed indicator when enabling
  13335. http-pipelining but a download goes well. I think the problem is that
  13336. because http-pipelining is enabled, DownloadCommand is created for
  13337. each segment and in its constructor, PeerStat::downloadStart() is
  13338. called. In PeerStat::downloadStart(), speed calculation object is
  13339. reseted, which makes download speed zero.
  13340. * src/DownloadCommand.cc
  13341. Rewritten using accumulate.
  13342. * src/RequestGroupMan.cc (calculateStat)
  13343. Code clearnup.
  13344. * src/FtpNegotiationCommand.cc
  13345. * src/HttpResponseCommand.cc
  13346. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13347. Fixed: Can not resume: aria2 reports download already finished.
  13348. * src/AbstractCommand.{h, cc}
  13349. * src/HttpResponseCommand.cc
  13350. * src/FtpNegotiateCommand.cc
  13351. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13352. Now a file is stored in the directory specified in .metalnk file
  13353. (file[@name]).
  13354. * src/Metalink2RequestGroup.cc
  13355. Create the directory structure when opening the file if it doesn't
  13356. exist.
  13357. * src/AbstractDiskWriter.cc
  13358. * src/Util.{h, cc}
  13359. * src/File.h
  13360. * test/UtilTest.cc
  13361. Removed file name comparison
  13362. * src/Metalink2RequestGroup.cc
  13363. * src/HttpResponseCommand.cc
  13364. Rewritten using Util::mkdirs()
  13365. * src/FileEntry.cc (setupDir)
  13366. * test/FileEntryTest.cc
  13367. Updated doc
  13368. * src/SingleFileDownloadContext.h
  13369. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13370. Now SleepCommand dispatches nextCommand when halt is requested.
  13371. It avoids a possible long wait after hitting CTRL-C.
  13372. * src/SleepCommand.{h, cc}
  13373. * src/RequestGroupAware.{h, cc}
  13374. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13375. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  13376. to open listen port, then remove the port number from the tracker
  13377. request.
  13378. * src/DefaultBtAnnounce.cc
  13379. * test/DefaultBtAnnounceTest.cc
  13380. * test/MockPieceStorage.h
  13381. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  13382. them more testable.
  13383. * src/DefaultBtAnnounce.{h, cc}
  13384. * src/DefaultBtContext.{h, cc}
  13385. * src/Util.{h, cc}
  13386. * test/DefaultBtAnnounceTest.cc
  13387. * test/DefaultBtContextTest.cc
  13388. * test/UtilTest.cc
  13389. Added 'B' to upload bytes readout.
  13390. * src/ConsoleStatCalc.cc
  13391. Now the listen port for BitTorrent download is opened when it is
  13392. needed.
  13393. * src/DownloadEngineFactory.cc
  13394. * src/BtSetup.{h, cc}
  13395. * src/PeerListenCommand.{h, cc}
  13396. Now an exception thrown while parsing tracker response is now logged.
  13397. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  13398. called, which means no retry is made in this case, assuming a tracker
  13399. has a problem.
  13400. * src/TrackerWatcherCommand.cc
  13401. Fixed: downloading a file whose length is unkown fails.
  13402. * src/DownloadCommand.cc
  13403. Simplified prepareForNextSegment()
  13404. * src/DownloadCommand.cc
  13405. Updated
  13406. * po/POTFILES.in
  13407. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13408. Re-implemented a file listing for Metalink, which was dropped while
  13409. http/ftp/torrent integration was being implemented.
  13410. * src/MetalinkHelper.{h, cc}: New class.
  13411. * test/MetalinkHelperTest.cc
  13412. * src/main.cc
  13413. * src/Metalink2RequestGroup.cc
  13414. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13415. Added the ability to display the detailed torrent file information.
  13416. Now -S option gives not only a file listing, but also total download
  13417. length, info hash, announce URI, piece length, the number of pieces,
  13418. and mode(single or multi-torrent).
  13419. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  13420. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  13421. KiB)
  13422. * test/UtilTest.cc
  13423. * src/main.cc
  13424. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13425. Added ftp://USER:PASSWD@Servername automatic parsing.
  13426. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  13427. _password. Recognize username and password in URI.
  13428. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  13429. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  13430. * src/RequestFactory.{h, cc}: Removed.
  13431. * src/AuthConfigFactory.{h, cc}: New class.
  13432. * src/FtpConnection.cc: Use AuthConfigFactory.
  13433. * src/HttpRequest.cc: Use AuthConfigFactory.
  13434. * test/HttpRequestTest.cc: Updated.
  13435. * test/RequestTest.cc: Updated.
  13436. * test/AuthConfigFactoryTest.cc: New class.
  13437. * test/RequestFactoryTest.cc: Removed.
  13438. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13439. Use RequestGroup::allDownloadFinished() to decide whether the control
  13440. file should be removed or saved.
  13441. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  13442. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  13443. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13444. Use File::renameTo()
  13445. * src/DefaultBtProgressInfoFile.cc
  13446. Added --no-file-allocation-limit command-line option.
  13447. * src/version_usage.cc
  13448. * src/option_processing.cc
  13449. * src/OptionHandlerFactory.cc
  13450. * src/RequestGroup.{h, cc}
  13451. * src/BtCheckIntegrityEntry.cc
  13452. * src/StreamCheckIntegrityEntry.cc
  13453. * src/prefs.h
  13454. * doc/aria2c.1.txt
  13455. * doc/aria2c.1
  13456. Now prealloc is the default value for --file-allocation option.
  13457. * src/version_usage.cc
  13458. * src/option_processing.cc
  13459. * doc/aria2c.1.txt
  13460. * doc/aria2c.1
  13461. Don't URL-encode user-agent.
  13462. * src/HttpRequest.cc
  13463. Updated translations
  13464. * po/LINGUAS: Added nl for Dutch translation.
  13465. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  13466. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  13467. * po/POTFILES.in: Updated.
  13468. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13469. Added the ability to recognize url-list in a torrent file.
  13470. The retrieved URLs are attached to the corresponding FileEntry.
  13471. * src/DefaultBtContext.{h, cc}
  13472. * src/FileEntry.{h, cc}
  13473. * test/DefaultBtContextTest.cc
  13474. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13475. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  13476. after the download finishes.
  13477. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13478. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  13479. the data smaller than block length.
  13480. A block length can be specified by constructor's argument.
  13481. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  13482. Get a missing piece in the range of given FileEntry. This function is
  13483. not used in the program yet.
  13484. * src/Util.h: Added some macros.
  13485. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13486. Added HTTP/1.1 keep alive and pipelining support.
  13487. See --enable-http-keep-alive and --enable-http-pipelining option.
  13488. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  13489. Segment.
  13490. * src/HttpDownloadCommand.{h, cc}
  13491. * src/OptionHandlerFactory.cc
  13492. * src/HttpConnection.{h, cc}
  13493. * src/version_usage.cc
  13494. * src/HttpInitiateConnectionCommand.cc
  13495. * src/FtpInitiateConnectionCommand.cc
  13496. * src/Segment.h
  13497. * src/HttpRequestCommand.{h, cc}
  13498. * src/option_processing.cc
  13499. * src/prefs.h
  13500. * src/HttpResponseCommand.cc
  13501. * src/SegmentMan.{h, cc}
  13502. * src/FtpNegotiateCommand.cc
  13503. * src/HttpProxyResponseCommand.cc
  13504. * src/Request.cc
  13505. * src/HttpRequest.cc
  13506. * src/DownloadCommand.cc
  13507. * test/HttpRequestTest.cc
  13508. * test/RequestTest.cc
  13509. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13510. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  13511. finished.
  13512. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13513. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  13514. catching it inside the method.
  13515. When no file entry is found in a metalink without querying user
  13516. preferences, throw the exception with the error message that suggests
  13517. metalink file is probably broken.
  13518. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  13519. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13520. Fixed the bug that prevents remote Metalink/Torrent file from begin
  13521. processed.
  13522. * src/RequestGroupMan.cc (removeStoppedGroup)
  13523. Added debug message.
  13524. * src/BtPostDownloadHandler.cc
  13525. * src/MetalinkPostDownloadHandler.cc
  13526. * src/PostDownloadHandler.{h, cc}
  13527. * src/RequestGroup.cc
  13528. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13529. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  13530. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13531. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  13532. stops and there are any unfinished or in-progress downloads.
  13533. Added the legend of "stat".
  13534. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13535. Throw exception when chunck checksum verification fails.
  13536. * src/DownloadCommand.cc (validatePieceHash): New function.
  13537. * src/PiecedSegment.{h, cc} (clear): New function.
  13538. * src/GrowSegment.{h, cc} (clear): New function.
  13539. * src/Segment.h (clear): New function.
  13540. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  13541. * test/SegmentTest.cc
  13542. * test/GrowSegmentTest.cc
  13543. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13544. Do not send referer when redirected.
  13545. * src/Request.cc (redirectUrl)
  13546. * test/RequestTest.cc
  13547. * test/HttpRequestTest.cc
  13548. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13549. Implemented BitTorrent/http/ftp integrated download.
  13550. I've rewritten lots of files and now some headers have forward
  13551. class declarations to reduce compile time.
  13552. The implementation is extremely alpha stage, I recommend to use this
  13553. for testing purpose only.
  13554. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13555. Fixed the compilation error on 64bit platform.
  13556. * test/HttpHeaderProcessorTest.cc
  13557. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13558. Merged Ross's patch that fixes compilation problem in MinGW
  13559. * test/DefaultBtProgressInfoFileTest.cc
  13560. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13561. Updated fr.po by sebone
  13562. * po/fr.po
  13563. Updated man page.
  13564. * doc/aria2c.1.txt
  13565. * Release 0.11.3
  13566. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13567. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  13568. failure in Metalink.
  13569. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13570. Automatically save *.aria2 control file of http/ftp download in every
  13571. 60 seconds.
  13572. * src/AutoSaveCommand.{h, cc}: New class.
  13573. * src/TimeBasedCommand.{h, cc}: New class.
  13574. * src/DownloadEngineFactory.cc (newConsoleEngine)
  13575. Disable parameterized URI support by default. Added -P option to
  13576. enable the feature.
  13577. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  13578. * src/OptionHandlerFactory.cc
  13579. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  13580. Updated Japanese translation.
  13581. * po/ja.po
  13582. Updated man page.
  13583. * doc/aria2c.1.txt
  13584. * Release 0.11.3-rc
  13585. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13586. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  13587. it is successful, then renamed to *.aria2.
  13588. This prevents *.aria2 file from being truncated or corrupted when
  13589. file system becomes out of space.
  13590. * src/DefaultBtProgressInfoFile.cc (save)
  13591. * src/SegmentMan.cc (save)
  13592. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  13593. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13594. Reduced the fragmentation of bitfield in http/ftp download.
  13595. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  13596. * test/BitfieldManTest.cc
  13597. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13598. Added the ability to disable segmented download in .metalink.
  13599. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  13600. 'url' tag.
  13601. * src/MetalinkEntry.{h, cc}
  13602. * src/RequestResource.{h, cc}
  13603. * src/MetalinkRequestInfo.cc
  13604. * src/Xml2MetalinkProcessor.cc
  13605. * test/Xml2MetalinkProcessorTest.cc
  13606. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13607. Added parameterized URI support.
  13608. * src/main.cc: -Z option added.
  13609. * src/OptionHandlerFactory.cc
  13610. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  13611. * src/PStringDatum.h: New class.
  13612. * src/PStringSegment.{h,cc}: New class.
  13613. * src/PStringNumLoop.h: New class.
  13614. * src/PStringSelect.h: New class.
  13615. * src/NumberDecorator.h: New class.
  13616. * src/FixedWidthNumberDecorator.h: New class.
  13617. * src/AlphaNumberDecorator.h: New class.
  13618. * src/PStringVisitor.h: New class.
  13619. * src/PStringBuildVisitor.{h,cc}: New class.
  13620. * src/ParameterizedStringParser.{h,cc}: New class.
  13621. * src/Util.{h,cc}
  13622. (isNumber): New function.
  13623. (isLowercase): New function.
  13624. (isUppercase): New function.
  13625. (alphaToNum): New function.
  13626. * test/ParameterizedStringParserTest.cc: New class.
  13627. * test/AlphaNumberDecoratorTest.cc: New class.
  13628. * test/PStringBuildVisitorTest.cc: New class.
  13629. * test/UtilTest.cc
  13630. (testIsNumber): New function.
  13631. (testIsLowercase): New function.
  13632. (testIsUppercase): New function.
  13633. (testAlphaToNum): New function.
  13634. Added '\n' after the error message
  13635. * src/RequestInfo.h (printDownloadAbortMessage)
  13636. Added auto file renaming feature in http(s)/ftp download.
  13637. * src/main.cc: Added --auto-file-renaming command-line option.
  13638. * src/OptionHandlerFactory.cc
  13639. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  13640. * src/RequestGroup.{h, cc}
  13641. (shouldCancelDownloadForSafety): Rewritten
  13642. (tryAutoFileRenaming): New function.
  13643. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  13644. * src/HttpResponseCommand.cc
  13645. (executeInternal): Removed the call to RequestGroupMan::
  13646. isSameFileBeingDownloaded()
  13647. * src/FtpNegotiateCommand.cc
  13648. (recvSize): Removed the call to RequestGroupMan::
  13649. isSameFileBeingDownloaded()
  13650. * test/RequestGroupTest.cc: New class.
  13651. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13652. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  13653. IO.
  13654. * src/DefaultBtProgressInfoFile.cc
  13655. * src/MetaFileUtil.cc
  13656. * src/SimpleLogger.cc
  13657. * src/SegmentMan.cc
  13658. * src/Util.cc
  13659. * src/Platform.cc
  13660. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13661. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  13662. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13663. Avoid sparse files if possible, because VFAT32 doesn't support it.
  13664. * src/DefaultDiskWriter.cc (initAndOpenFile)
  13665. Fixed the bug that prevents file allocation is not done when
  13666. dowloading multi-torrent file.
  13667. * src/AbstractDiskWriter.cc (openFile)
  13668. Increase the maximum number of -j option from 15 to 45.
  13669. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13670. Added fr.po, thanks to Charles Landemaine.
  13671. * po/fr.po
  13672. * po/LINGUAS
  13673. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13674. gcc 3.4.4 support:
  13675. * src/DefaultBtContext.cc: int32_t -> int
  13676. * src/main.cc: int -> int32_t, int32_t -> int
  13677. * src/messageDigest.h: uint32_t -> unsigned int
  13678. * src/NameResolver.h: int32_t -> int
  13679. * src/PeerConnection.cc: int -> int32_t
  13680. * src/SpeedCalc.cc: int32_t -> int
  13681. * src/TrackerUpdateCommand.h: int -> int32_t
  13682. * src/Util.cc: int32_t -> int
  13683. * src/Util.h: int32_t -> int
  13684. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  13685. * test/AnnounceListTest.cc: int -> int32_t
  13686. * test/ChunkedEncodingTest.cc: int -> int32_t
  13687. * test/DataTest.cc: int -> int32_t
  13688. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  13689. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  13690. * test/DefaultPieceStorageTest.cc: int -> int32_t
  13691. * test/FeatureConfigTest.cc: int -> int32_t
  13692. * test/MetalinkEntryTest.cc: int -> int32_t
  13693. * test/MockBtRequestFactory.h: int -> int32_t
  13694. * test/MockPieceStorage.h: int -> int32_t
  13695. * test/OptionTest.cc: int -> int32_t
  13696. * test/RequestTest.cc: int -> int32_t
  13697. * test/SegmentManTest.cc: int -> int32_t
  13698. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  13699. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13700. Move sleep functions to Util class:
  13701. * src/Util.cc
  13702. (sleep): New function.
  13703. (usleep): New function.
  13704. * src/DownloadCommand.cc: sleep -> Util::sleep
  13705. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  13706. MinGW build enhancements. The following files are added:
  13707. * src/timegm.{c,h}
  13708. Changes to support the above new files:
  13709. * configure.ac
  13710. * src/Makefile.am
  13711. * src/a2time.h
  13712. * src/Util.cc:
  13713. * src/strptime.c: Added support for %Z option.
  13714. Fixed MinGW non-blocking bug.
  13715. * src/SocketCore.cc
  13716. * src/HttpRequestCommand.cc
  13717. Miscellenous build fixes/enhancements.
  13718. * configure.ac: Added summary report.
  13719. * src/Platform.h: Tweaked #include's.
  13720. * src/a2netcompat.h: Tweaked #include's.
  13721. * src/strptime.h: Tweaked #include's.
  13722. * src/gai_strerror.c: Tweaked #include's.
  13723. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  13724. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  13725. * src/gettimeofday.h: Added HAVE_CONFIG_H
  13726. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13727. Increased the initial connection size in BitTorrent download to 40.
  13728. * src/BtRuntime.h
  13729. Added the usage message of --peer-id-prefix option.
  13730. * src/main.cc
  13731. * Release 0.11.2
  13732. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13733. MessageDigestHelper is introduced in order to simplify the use
  13734. of message digest. Removed repeated code.
  13735. The message digest algorithm is now specified by string, like "sha1",
  13736. "md5".
  13737. * src/messageDigest.{h, cc}
  13738. * src/MessageDigestHelper.{h, cc}: New class.
  13739. * src/DefaultPieceStorage.cc
  13740. * src/DefaultBtContext.{h, cc}
  13741. (computeFastSet): New function.
  13742. (setInfoHash): Added for unit testing.
  13743. (setNumPieces): Added for unit testing.
  13744. * src/DefaultBtInteractive.cc
  13745. * src/BtPieceMessage.cc
  13746. * src/Peer.cc
  13747. * src/Checksum.h
  13748. * src/message.h
  13749. * src/IteratableChecksumValidator.h
  13750. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  13751. inside it.
  13752. * src/SegmentMan.{h, cc}
  13753. (checkIntegrity): Removed.
  13754. * src/IteratableChunkChecksumValidator.{h, cc}
  13755. * src/Util.h
  13756. (sha1Sum): Removed.
  13757. (simpleMessageDigest): Removed.
  13758. (fileChecksum): Removed.
  13759. (computeFastSet): Removed.
  13760. * src/ShaVisitor.cc
  13761. * src/ChunkChecksum.h
  13762. * src/DownloadCommand.cc
  13763. Removed messageDigest virtual functions.
  13764. * src/MultiDiskAdaptor.{h, cc}
  13765. * src/DiskAdaptor.h
  13766. * src/ByteArrayDiskWriter.h
  13767. * src/DiskWriter.h
  13768. * src/DiskAdaptorWriter.h
  13769. * src/AbstractSingleDiskAdaptor.{h, cc}
  13770. * src/AbstractDiskWriter.{h, cc}
  13771. Fixed comilation error when message digest is disabled.
  13772. * src/MetalinkEntry.{h, cc}
  13773. * src/MetalinkRequestInfo.cc
  13774. Removed srandom and random.
  13775. * src/SimpleRandomizer.h
  13776. Added size() virtual function to DiskAdaptor
  13777. * src/MultiDiskAdaptor.h
  13778. Fixed the bug that causes that files are not opened correctly in
  13779. multi-file torrent.
  13780. * src/TorrentRequestInfo.cc
  13781. * src/MultiDiskAdaptor.cc
  13782. Added SHA256 support
  13783. * src/messageDigest.cc
  13784. * src/Xml2MetalinkProcessor.cc
  13785. Show supported message digest algorithms
  13786. * src/main.cc
  13787. Updated contact info.
  13788. * src/main.cc
  13789. Applied Ross's patch
  13790. * src/a2netcompat.h
  13791. * src/main.cc
  13792. Fixed the bug that prevents a remote metalink from not being processed
  13793. even if '-o foo.metalink' is specified.
  13794. * src/MetalinkRequestInfo.cc
  13795. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13796. Merged Dan's patch:
  13797. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  13798. Use va_copy to avoid core dump on amd64:
  13799. * src/SimpleLogger.cc
  13800. Updated contact info.
  13801. * src/main.cc
  13802. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  13803. digest is not available.
  13804. * src/MetalinkEntry.h
  13805. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13806. Make a2netcompat.h include a2io.h to fix compilation error:
  13807. * src/a2netcompat.h
  13808. * src/SocketCore.cc: Removed include of a2io.h
  13809. * src/Util.cc: Removed include of a2io.h
  13810. Gather time related functions to a2time.h:
  13811. * src/a2time.h: New file.
  13812. * src/DefaultPeerStorage.cc
  13813. * src/SimpleLogger.cc
  13814. * src/Util.{h, cc}
  13815. * src/SimpleRandomizer.h
  13816. * src/TimeA2.{h,cc}
  13817. * src/DownloadCommand.cc
  13818. * src/main.cc
  13819. Removed #ifdef __MINGW32__ since gai_strerror is included in
  13820. a2netcompat.h:
  13821. * src/NameResolver.cc
  13822. Fixed compilation error without openssl:
  13823. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  13824. Added default block to suppress compiler warnings:
  13825. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  13826. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  13827. MinGW build enhancements. The following files are added:
  13828. * src/gai_strerror.{c,h}
  13829. * src/gettimeofday.{c,h}
  13830. Changes to support the above new files:
  13831. * configure.ac
  13832. * src/Makefile.am
  13833. * src/a2netcompat.h
  13834. * src/TimeA2.cc
  13835. * src/DefaultPeerStorage.cc
  13836. * src/NameResolver.cc: removed mingw_strerror() function.
  13837. * src/SocketCore.cc: removed mingw_strerror() function.
  13838. Miscellaneous MinGW build fixes.
  13839. * src/a2io.h: Use _lseeki64() instead of lseek()
  13840. * src/common.h
  13841. * src/DefaultFileAllocator.cc
  13842. * src/GlowFileAllocator.cc
  13843. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13844. * src/NameResolver.cc
  13845. (callback): Changed int32_t to int.
  13846. (resolve): Changed int32_t to int.
  13847. * src/Platform.cc
  13848. * src/Platform.h
  13849. * test/MultiDiskWriterTest.cc
  13850. * test/PeerMessageUtilTest.cc
  13851. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13852. Other enhancements and fixes.
  13853. * src/HttpRequestCommand.cc
  13854. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13855. * src/SocketCore.cc:
  13856. (error): New function to abstract errno/WSAGetLastError().
  13857. (errorMsg): New function to abstract errno/WSAGetLastError().
  13858. (initiateSecureConnection): Added more detailed error reporting.
  13859. * src/SocketCore.h: Added private variable blocking, to allow
  13860. proper handling of OpenSSL psuedo-errors.
  13861. * src/message.h
  13862. (EX_SSL_INIT_FAILURE)
  13863. (EX_SSL_IO_ERROR)
  13864. (EX_SSL_PROTOCOL_ERROR)
  13865. (EX_SSL_UNKNOWN_ERROR)
  13866. (EX_SSL_CONNECT_ERROR)
  13867. (EX_SOCKET_BLOCKING)
  13868. (EX_SOCKET_NONBLOCKING)
  13869. (EX_SOCKET_UNKNOWN_ERROR)
  13870. * src/Util.cc
  13871. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13872. reserved name.
  13873. (httpGMT): Fixed typo.
  13874. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13875. Merged Ross's win32 patch(manually)
  13876. In the course of merging, following files are added.
  13877. * src/strptime.{h,c}
  13878. * src/libgen.{h,c}
  13879. * src/inet_aton.{h,c}
  13880. * src/Platform.{h,cc}
  13881. * src/localtime_r.{h,c}
  13882. * src/getaddrinfo.{h,c}
  13883. I've gethered network related things, and put them to following file:
  13884. * src/a2netcompat.h
  13885. Also io related things are put to following file:
  13886. * src/a2io.h
  13887. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13888. * src/message.h
  13889. (MSG_ALLOCATION_COMPLETED)
  13890. (EX_TOO_LARGE_FILE)
  13891. (EX_SIZE_MISMATCH)
  13892. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13893. (EX_INVALID_CHUNK_CHECKSUM)
  13894. (EX_INVALID_RANGE_HEADER)
  13895. * src/FileAllocationCommand.cc
  13896. * src/HttpResponse.cc
  13897. * src/RequestGroup.cc
  13898. * src/MultiDiskAdaptor.cc
  13899. * src/OptionHandlerImpl.h
  13900. * src/HttpResponseCommand.cc
  13901. * src/FtpNegotiateCommand.cc
  13902. * src/IteratableChecksumValidator.cc
  13903. * src/SegmentMan.cc
  13904. * src/ChunkChecksumValidator.cc
  13905. Added Randomizer::getRandomNumber(long int)
  13906. * src/Randomizer.h (getRandomNumber)
  13907. * src/SimpleRandomizer.h (getRandomNumber)
  13908. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13909. * src/Util.cc (randomAlpha): Use this new function.
  13910. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13911. Converted int's to in32_t. long long int's are also converted to
  13912. int64_t
  13913. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13914. Fixed the bug that prevents cookies from being sent to the server
  13915. if the domain of cookie is FQDN and starts with ".".
  13916. * src/Cookie.cc (match)
  13917. To add the ability to change peer id.
  13918. * src/DefaultBtContext.h
  13919. (_peerIdPrefix): New variable
  13920. (setPeerIdPrefix): New function.
  13921. * src/torrentRequestInfo.cc
  13922. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13923. DefaultBtContext.
  13924. * src/main.cc (main): Added peer-id-prefix command-line option.
  13925. The usage message is not added yet.
  13926. * src/DefaultBtContext.cc
  13927. (generatePeerId): Use _peerIdPrefix.
  13928. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13929. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13930. Fixed the bug that prevents filename in content-disposition from
  13931. being retrieved when filename is not quoted.
  13932. * src/Util.cc (getContentDispositionFilename)
  13933. Fixed the bug that causes infinate loop and memory leak when file open
  13934. operation failed.
  13935. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13936. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13937. Fixed the bug that causes segfault when all URIs specified are
  13938. unsupported.
  13939. * src/RequestGroupMan.cc (getInitialCommands)
  13940. Check if RequestGroup::createNextCommand() returns empty list of
  13941. commands.
  13942. * src/RequestGroup.cc (createNextCommand)
  13943. Change log level from info to error so that users can notice that
  13944. an error occurred.
  13945. Fixed the bug that causes segfault when a zero-sized file is
  13946. downloaded.
  13947. * src/BitfieldMan.cc (isAllBitSet)
  13948. Return true if bitfieldLength is 0.
  13949. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13950. * src/main.cc
  13951. (showUsage): Added 3 usage examples for metalink download.
  13952. Replace MetalinkChunkChecksum with ChunkChecksum.
  13953. * src/MetalinkChunkChecksum.h: Removed.
  13954. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13955. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13956. * src/Xml2MetalinkProcessor.cc
  13957. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13958. * src/MetalinkRequestInfo.cc (execute)
  13959. * Release 0.11.1
  13960. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13961. Reads URIs from stdin when "-i -" is specified.
  13962. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13963. * src/UriListParser.h, src/UriListParser.cc: New class.
  13964. * src/StreamUriListParser.h: New class.
  13965. * src/FileUriListParser.h: New class.
  13966. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13967. instead of UriFileListParser.
  13968. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13969. Made console readout more readable.
  13970. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13971. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13972. Fix the bug that causes -s option not to work.
  13973. * src/main.cc (main)
  13974. * src/a2algo.h: New file.
  13975. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13976. Create directory structure specified in metalink file.
  13977. * src/RequestGroup.h, src/RequestGroup.cc
  13978. (initAndOpenFile): Create a directory to store files if it does not
  13979. exist.
  13980. (getDir): New function.
  13981. Added ETA and download speed for an individual file to readout.
  13982. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13983. * src/RequestGroup.h
  13984. (calculateDownloadSpeed): New function.
  13985. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13986. Made -S option work with metalink file and provided selective download
  13987. to metalink.
  13988. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13989. (filename): Removed.
  13990. (file): New variable.
  13991. (size): Removed.
  13992. (operator=): Updated.
  13993. (getPath): New function.
  13994. (getLength): New function.
  13995. (toFileEntry): New function.
  13996. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13997. (execute): Use toStream.
  13998. (showFileEntry): Removed.
  13999. * src/MetalinkRequestInfo.h
  14000. (targetFiles): New variable.
  14001. (setTargetFiles): New variable.
  14002. * src/MetalinkRequestInfo.cc
  14003. (execute): Added the ability to print file information included in
  14004. a metalink file.
  14005. Added selective download mode to metalink.
  14006. * src/main.cc
  14007. (showUsage): Updated to denote that -S and --select-file options are
  14008. applicable to metalink.
  14009. * src/FileEntry.h
  14010. (operator=): New function.
  14011. (getBasename): New function.
  14012. (getDirname): New function.
  14013. * src/Util.h, src/Util.cc
  14014. (toStream): New function.
  14015. * src/Xml2MetalinkProcessor.cc: Updated.
  14016. Made aria2 work with metalink with directory structure.
  14017. * src/File.h, src/File.cc
  14018. (getBasename): New function.
  14019. (getDirname): New function.
  14020. * src/RequestGroup.h, src/RequestGroup.cc
  14021. (_topDir): New variable.
  14022. (setTopDir): New function.
  14023. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  14024. Rewrote HTTP header parsing with stringstream.
  14025. * src/HttpConnection.h, src/HttpConnection.cc
  14026. (HttpRequestEntry): New class.
  14027. (headerBuf): Removed.
  14028. (headerBufLength): Removed.
  14029. (outstandingHttpRequests): Now its element type is
  14030. HttpRequestEntryHandle.
  14031. (findEndOfHeader): Removed.
  14032. (receiveResponse): Rewritten.
  14033. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  14034. Updated doc for -j option to notice that it should be used with -i
  14035. option.
  14036. * src/main.cc (showUsage)
  14037. Removed unused classes.
  14038. * src/RequestInfo.h
  14039. (FileInfo): Removed.
  14040. (checksum): Removed.
  14041. (fileInfo): Removed.
  14042. (setChecksum): Removed.
  14043. (getChecksum): Removed.
  14044. (getFileInfo): Removed.
  14045. Use ISO units.
  14046. * src/ConsoleDownloadEngine.cc
  14047. * src/TorrentConsoleDownloadEngine.cc
  14048. * src/Util.cc (abbrevSize)
  14049. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14050. Added the default listening ports to the help message.
  14051. * src/main.cc (showUsage)
  14052. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14053. Reduce the number of calls to gettimeofday to lower CPU load.
  14054. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  14055. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  14056. * src/Peer.h (calculateUploadSpeed): New function.
  14057. (calculateDownloadSpeed): New function.
  14058. * src/DefaultPeerStorage.cc
  14059. (CalculateStat): Added _now variable.
  14060. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  14061. and Peer::calculateUploadSpeed(const struct timeval&)
  14062. Drop connection if no request or piece message is exchanged in
  14063. a certain interval.
  14064. * src/DefaultBtInteractive.h
  14065. (btRuntime): New variable.
  14066. (inactiveCheckPoint): New variable.
  14067. (checkActiveInteraction): New function.
  14068. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  14069. request or piece message is received.
  14070. (checkActiveInteraction): New function.
  14071. (doInteractionProcessing): Call checkActiveInteraction.
  14072. Fixed the bug that causes remote Metalink and Torrent files are not
  14073. processed.
  14074. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  14075. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14076. Changed format of log file.
  14077. * src/SimpleLogger.cc
  14078. * Release 0.11.0
  14079. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14080. * src/AbstractCommand.cc
  14081. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  14082. MSG_MAX_TRY from error to info.
  14083. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  14084. * src/message.h
  14085. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  14086. (MSG_DOWNLOAD_ABORTED): Added %s.
  14087. (MSG_RESTARTING_DOWNLOAD): Added %s.
  14088. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  14089. * src/PeerAbstractCommand.cc
  14090. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  14091. * src/Request.h
  14092. (cookieBox): Made ShardHandle.
  14093. * src/RequestGroup.h, src/RequestGroup.cc
  14094. (createNextCommandWithAdj): New function.
  14095. * src/FileAllocationCommand.cc
  14096. (executeInternal): Use createNextCommandWithAdj().
  14097. * src/CheckIntegrityCommand.cc
  14098. (executeInternal): Use createNextCommandWithAdj().
  14099. Added --load-cookies command-option.
  14100. * src/OptionHandlerFactory.cc
  14101. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  14102. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  14103. Now aria2 can handle cookie's expiration date.
  14104. * src/Cookie.h (expires): Changed its type to time_t.
  14105. * src/main.cc: Added --load-cookies command-line option.
  14106. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  14107. * src/Util.h, src/Util.cc (httpGMT): New function.
  14108. * src/Request.cc (Request): Initialize cookieBox using
  14109. CookieBoxFactory.
  14110. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  14111. * src/CookieParser.h, src/CookieParser.cc: New class.
  14112. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  14113. * src/HttpResponseCommand.cc
  14114. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  14115. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  14116. download.
  14117. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14118. Added -j command-line option.
  14119. * src/OptionHandlerFactory.cc (createOptionHandlers)
  14120. * src/main.cc
  14121. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  14122. Rewritten using stringstream.
  14123. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  14124. Rewritten using stringstream.
  14125. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14126. Make download size shown in MB, KB.
  14127. * src/ConsoleDownloadEngine.h (sendStatistics)
  14128. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  14129. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14130. Accept incoming connections if download rate is low.
  14131. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  14132. (_lowestSpeedLimit): New variable.
  14133. (setLowestSpeedLimit): New function.
  14134. (execute): Accept incoming connections if download rate is low.
  14135. MAX_PEERS is ignored in this case.
  14136. Disable PREF_OUT in multiple concurrent download:
  14137. * src/RequestGroup.h, src/RequestGroup.cc
  14138. (setUserDefinedFilename): New function.
  14139. * src/DownloadEngineFactory.cc
  14140. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  14141. concurrent download.
  14142. * src/DefaultSegmentManFactory.cc
  14143. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  14144. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14145. RequestGroup::getNextCommand() was renamed to createNextCommand().
  14146. Added its overloaded method.
  14147. * src/RequestGroup.h
  14148. (_numConcurrentCommand): New variable.
  14149. (setNumConcurrentCommand): New function.
  14150. * src/RequestGroup.cc
  14151. Abort download if same file is being downloaded concurrently.
  14152. * src/RequestGroup.h, src/RequestGroupMan.cc
  14153. (isSameFileBeingDownloaded): New function.
  14154. * src/HttpResponseCommand.cc (executeInternal)
  14155. * src/FtpNegotiateCommand.cc (recvSize)
  14156. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  14157. * main.cc: Added help message for -i option.
  14158. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14159. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  14160. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  14161. * src/MetalinkEntry.h
  14162. (checksum): Changed to ChecksumHandle
  14163. * src/MetalinkRequestInfo.cc
  14164. (checksum): Changed to ChecksumHandle
  14165. * src/File.cc
  14166. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  14167. * src/common.h
  14168. (DIR_OPEN_MODE): New definition
  14169. * src/RequestGroup.cc
  14170. (prepareForNextAction): Added an argument.
  14171. * src/message.h
  14172. (MSG_GOOD_CHECKSUM): New definition
  14173. (MSG_BAD_CHECKSUM): New definition
  14174. * src/HttpResponseCommand.cc
  14175. (handleDefaultEncoding): Continue download sequence in new
  14176. non-segmented download.
  14177. * src/FileAllocationEntry.h
  14178. (_nextDownloadCommand): New variable.
  14179. * src/DownloadCommand.cc
  14180. (prepareForNextSegment): Create ChecksumCommand if checksum is
  14181. available.
  14182. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  14183. * src/IteratableChecksumValidator.h,
  14184. src/IteratableChecksumValidator.cc: New class.
  14185. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  14186. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14187. Change file mode to 666:
  14188. * src/common.h (OPEN_MODE): New definition.
  14189. * src/File.cc
  14190. * src/Util.cc
  14191. * src/Directry.cc
  14192. * src/AbstractDiskWriter.cc
  14193. Change the level of log message "download aborted" to debug:
  14194. * src/PeerAbstractCommand.cc (execute)
  14195. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  14196. * src/TrackerWatcherCommand.cc
  14197. (createCommand): Sleep some seconds after request failed.
  14198. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  14199. then abort tracker request.
  14200. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14201. * Added the simultaneous download feature.
  14202. * src/main.cc: Print "Exception caught: " when exception is caught.
  14203. Use CUIDCounter instead of BtRuntime::getNewCuid():
  14204. * src/ActivePeerConnectionCommand.cc
  14205. * src/PeerInteractionCommand.cc
  14206. * src/BtRuntime.h
  14207. (cuidCounter): Removed.
  14208. (getNewCuid): Removed.
  14209. * src/DownloadEngineFactory.cc
  14210. * src/PeerListenCommand.cc
  14211. * src/TrackerUpdateCommand.cc
  14212. * src/PeerInitiateConnectionCommand.cc
  14213. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14214. * src/PeerAbstractCommand.cc
  14215. (onAbort): Call PeerStorage::returnPeer()
  14216. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  14217. (incomingPeers): New variable.
  14218. (addIncomingPeer): New function.
  14219. (returnPeer): New function.
  14220. (onErasingPeer): New function.
  14221. (addPeer): push_back -> push_front
  14222. (getActivePeers): Rewritten.
  14223. (calculateStat): Rewritten.
  14224. * src/PeerStorage.h
  14225. (TransferStat::copy): New function.
  14226. (TransferStat::TransferStat): New function.
  14227. (TransferStat::operator=): New function.
  14228. (addIncomingPeer): New function.
  14229. (returnPeer): New function.
  14230. * src/PeerListenCommand.cc
  14231. (execute): Use PeerStorage::addIncomingPeer() instead of
  14232. Peer::addPeer().
  14233. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14234. Connect to a peer actively when download speed is lower than specified
  14235. speed in torrent download:
  14236. * src/ActivePeerConnectionCommand.h: New class.
  14237. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14238. * src/HttpRequest.cc (createRequest): url-encode user-agent
  14239. * src/main.cc: Fixed the bug that prevents download if .netrc
  14240. doesn't exist.
  14241. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14242. To cache resolved hostname:
  14243. * src/AbstractCommand.h, src/AbstractCommand.cc
  14244. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  14245. Added dns cache.
  14246. * src/FtpInitiateConnectionCommand.cc
  14247. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  14248. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  14249. NameResolver working without ares.
  14250. * src/TorrentRequestInfo.cc
  14251. (execute): Don't cache dns in torrent download.
  14252. * src/HttpInitiateConnectionCommand.cc
  14253. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  14254. * src/DNSCache.h: New class.
  14255. * src/UrlRequestInfo.cc
  14256. (execute): Use dns cache.
  14257. In http request, suppress port number in http request header if port
  14258. is 80 or 443:
  14259. * src/HttpRequest.cc (getHostText): Suppress port number in http
  14260. request header if port is 80 or 443.
  14261. (createProxyRequest): Allways send port number.
  14262. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14263. To add the command-line option which disables netrc support:
  14264. * src/OptionHandlerFactory.cc
  14265. (createOptionHandlers): Added PREF_NO_NETRC.
  14266. * src/main.cc: Added -n option.
  14267. * src/prefs.h (PREF_NO_NETRC): New definition.
  14268. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  14269. V_TRUE.
  14270. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  14271. is V_FALSE. This may get configurable in the future release.
  14272. To clear peer's error status by time basis:
  14273. * src/PeerAbstractCommand.cc
  14274. (onAbort): Call Peer::startBadCondition().
  14275. * src/Peer.h, src/Peer.cc
  14276. (error): Removed.
  14277. (_badConditionStartTime): New variable.
  14278. (_badConditionInterval): New variable. Initialized to 10 seconds.
  14279. (startBadCondition): New function.
  14280. (isGood): New function.
  14281. * src/DefaultPeerStorage.cc
  14282. (addPeer): Use Peer::isGood().
  14283. (FindFinePeer): Use Peer::isGood().
  14284. Always include port number in http request header:
  14285. * src/HttpRequest.cc (getHostText): Always include port number in
  14286. http request header.
  14287. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14288. To the ability to read options from a config file:
  14289. * src/main.cc: Command-line parameter validation is delegated to
  14290. OptionHandler class.
  14291. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  14292. * src/Option.h, src/Option.cc (clear): New function.
  14293. * src/OptionParser.h, src/OptionParser.cc: New class.
  14294. * src/OptionHandler.h: New class.
  14295. * src/NameMatchOptionHandler.h: New class.
  14296. * src/OptionHandlerImpl.h: New classes.
  14297. * src/prefs.h: '_' -> '-'
  14298. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  14299. (FTP_PASV): New definition.
  14300. * src/Util.h, src/Util.cc (getRealSize): New function.
  14301. To disable netrc support if .netrc file does not have correct
  14302. permissions:
  14303. * src/File.h, src/File.cc (mode): New function.
  14304. To prevent confidential information to be logged:
  14305. * src/HttpConnection.h, src/HttpConnection.cc
  14306. (eraseConfidentialInfo): New function.
  14307. (sendRequest): Call eraseConfidentialInfo().
  14308. (sendProxyRequest): Call eraseConfidentialInfo().
  14309. * src/main.cc: Validate permissions of .netrc file.
  14310. To add --user-agent command-line option:
  14311. * src/main.cc: Added new command line option: --user-agent
  14312. * src/prefs.h (PREF_USER_AGENT): New definition.
  14313. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  14314. parameter to HttpRequest object.
  14315. * src/AbstractProxyRequestCommand.cc
  14316. (executeInternal): Set user-agent option parameter to HttpRequest
  14317. object.
  14318. Marged the patches from Dan Fandrich.
  14319. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14320. Use filename and size from Metalink file instead of sending HEAD
  14321. request:
  14322. * src/UrlRequestInfo.h
  14323. (_filename): New variable.
  14324. (_totalLength): New variable.
  14325. (setTotalLength): New variable.
  14326. (setFilename): New variable.
  14327. * src/MetalinkRequestInfo.cc
  14328. (execute): Set filename and size to UrlRequestInfo
  14329. * src/UrlRequestInfo.cc
  14330. (execute): Use filename and size from Metalink instead of seding
  14331. HEAD request to servers.
  14332. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14333. To add the ability to resume downloading a partially downloaded file
  14334. which is downloaded from the beginning:
  14335. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  14336. takes this role.
  14337. * src/main.cc: Added -c option.
  14338. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  14339. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  14340. * src/prefs.h (PREF_CONTINUE): New definition.
  14341. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  14342. * src/DefaultDiskWriter.cc
  14343. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  14344. * src/AbstractDiskWriter.h
  14345. (glowFileAllocator): New variable.
  14346. * src/AbstractDiskWriter.cc
  14347. (openExistingFile): Now preallocate file space from the end of the
  14348. existing file if totalLength argument is specified and grater than 0.
  14349. * src/UrlRequestInfo.cc: If -c option is specified and the file
  14350. to download exists in local, continue the download of the file.
  14351. --allow-overwrite=true is assumed in this context.
  14352. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  14353. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  14354. Throw exception if --check-integrity=true is specified but chunk
  14355. checksums are not provided:
  14356. * src/UrlRequestInfo.cc
  14357. Do not print URLs to stdout:
  14358. * src/UrlRequestInfo.cc
  14359. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14360. * src/Request.h: Use AuthResolver to get authentication information.
  14361. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  14362. set to RequestFactory object.
  14363. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  14364. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  14365. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  14366. create Request object.
  14367. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  14368. To integrate Netrc into exsiting classes:
  14369. * src/Request.h
  14370. (_userDefinedAuthConfig): New variable.
  14371. (findNetrcAuthenticator): New function.
  14372. (segment): Removed.
  14373. (setUserDefinedAuthConfig): New function.
  14374. (resolveHttpAuthConfigItem): New function.
  14375. (resolveFtpAuthConfigItem): New function.
  14376. (resolveHttpProxyAuthConfigItem): New function.
  14377. * src/HttpRequest.h
  14378. (authConfig): Removed.
  14379. (proxyAuthConfig): Removed.
  14380. (setAuthConfig): Removed.
  14381. (setProxyAuthConfig): Removed.
  14382. * src/UrlRequest.h
  14383. (getHeadResult): Added a parameter: authConfigHandle
  14384. * src/common.h
  14385. (SingletonHolder.h): New include.
  14386. * src/main.cc
  14387. (Netrc.h): New include.
  14388. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  14389. Added initial value of PREF_NETRC_PATH.
  14390. Added the initialization of netrc.
  14391. * src/AuthConfig.h: New class.
  14392. * src/prefs.h
  14393. (PREF_NETRC_PATH): New definition.
  14394. * src/HttpAuthConfig.h: Removed.
  14395. * src/Netrc.cc
  14396. (getRequiredNextToken): New function.
  14397. (skipMacdef): New function.
  14398. (parse): Rewritten.
  14399. * src/Netrc.h
  14400. (getRequiredNextToken): New function.
  14401. (skipMacdef): New function.
  14402. * src/Util.h, src/Util.cc
  14403. (getHomeDir): New function.
  14404. * src/TrackerWatcherComand.cc
  14405. (createRequestCommand): Use AuthConfig.
  14406. * src/FtpConnection.cc
  14407. (sendUser): Use Request::resolveFtpAuthConfigItem().
  14408. (sendPass): Use Request::resolveFtpAuthConfigItem().
  14409. * src/Request.cc
  14410. (findNetrcAuthenticator): New function.
  14411. (resolveHttpAuthConfigItem): New function.
  14412. (resolveFtpAuthConfigItem): New function.
  14413. (resolveHttpProxyAuthConfigItem): New function.
  14414. * src/UrlRequestInfo.cc: Use AuthConfig.
  14415. * src/HttpRequest.cc
  14416. (createRequest): Use authConfig.
  14417. (getProxyAuthString): Use authConfig.
  14418. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  14419. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  14420. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14421. To reduce overhead to find commands whose socket is either
  14422. readable or writable in the download engine loop:
  14423. * src/Command.h, src/Command.cc
  14424. (STATUS): New enum.
  14425. (status): New variable.
  14426. (statusMatch): New function.
  14427. (setStatusActive): New function.
  14428. (setStatusInactive): New function.
  14429. * src/DownloadEngine.h, src/DownloadEngine.cc
  14430. (executeCommand): New function.
  14431. (run): Simplified.
  14432. (waitData): Call Command::setStatusActive() when command's socket is
  14433. readable or writable.
  14434. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14435. To handle Segment as SegmentHandle:
  14436. * src/AbstractCommand.cc (execute): Rewritten.
  14437. * src/SegmentMan.h: Segment -> SegmentHandle
  14438. Introducded HttpResponse class, HttpRequest class to improve code
  14439. extensiveness and make it clear:
  14440. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  14441. HttpResponse class.
  14442. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  14443. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  14444. * src/HttpConnection.cc: Contruction of http request were moved to
  14445. HttpRequest class.
  14446. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  14447. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  14448. * src/HttpAuthConfig.h: New class.
  14449. * src/Range.h: New class.
  14450. To make FtpTunnel{Request, Response}Command and
  14451. HttpProxy{Request, Response}Command derived from
  14452. AbstractProxy{Request, Response}Command:
  14453. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  14454. Derived from AbstractProxyRequestCommand class.
  14455. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  14456. Derived from AbstractProxyResponseCommand class.
  14457. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  14458. Derived from AbstractProxyRequestCommand class.
  14459. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  14460. Derived from AbstractProxyResponseCommand class.
  14461. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  14462. : New class.
  14463. * src/AbstractProxyResponseCommand.h,
  14464. src/AbstractProxyResponseCommand.cc: New class.
  14465. To add netrc support:
  14466. * src/Netrc.h, src/Netrc.cc: New class.
  14467. * src/Util.h, src/Util.cc (split): New function.
  14468. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  14469. "Content-Range" header instead of "Range" header.
  14470. * src/HttpHeader.h
  14471. (getStatus): Removed.
  14472. (setStatus): Removed.
  14473. * src/Segment.h
  14474. (getPositionToWrite): New function.
  14475. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14476. * src/HttpHeader.h
  14477. (Range.h): New include.
  14478. (status): New variable.
  14479. (HttpHeader): Initialized status with 0.
  14480. (getStatus): New function.
  14481. (setStatus): New function.
  14482. (getRange): New function.
  14483. (HttpHeaderHandle): New function.
  14484. * src/HttpHeader.cc
  14485. (getRange): New function.
  14486. * src/Request.h
  14487. (RequestWeakHandle): New definition.
  14488. * src/HttpConnection.h
  14489. (HttpConnectionHandle): New type definition.
  14490. * src/HttpConnection.cc
  14491. (receiveResponse): Set HTTP status to headers.
  14492. * src/main.cc
  14493. (showUsage): Fixed typo.
  14494. * src/Segment.h
  14495. (SegmentHandle): New type definition.
  14496. * src/BitfieldMan.h
  14497. (getMissingUnusedLength): New function.
  14498. * src/BitfieldMan.cc
  14499. (getMissingUnusedLength): New function.
  14500. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14501. To fix static initialization order problem:
  14502. * src/BitfieldManFactory.h
  14503. (defaultRandomizer): Removed.
  14504. (factory): New variable.
  14505. (getNewFactory): Removed.
  14506. (getFactoryInstance): New function.
  14507. (setDefaultRandomizer): Rewritten.
  14508. (getDefaultRandomizer): Rewritten.
  14509. * src/BitfieldManFactory.cc
  14510. (defaultRandomizer): Removed.
  14511. (factory): Initialized to 0.
  14512. (BitfieldManFactory): Initialized randomizer to 0.
  14513. * src/DefaultPieceStorage.cc
  14514. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  14515. * src/Peer.cc
  14516. (Peer): getNewFactory() -> getFactoryInstance()
  14517. * src/SegmentMan.cc
  14518. (initBitfield): getNewFactory() -> getFactoryInstance()
  14519. * src/Piece.cc
  14520. (Piece): getNewFactory() -> getFactoryInstance()
  14521. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14522. To fix the bug that causes crash on Max OS X:
  14523. * src/SimpleRandomizer.h
  14524. (getInstance): Create new instance if the static variable is null.
  14525. * src/SimpleRandomizer.cc
  14526. (randomizer): Initialized to 0.
  14527. * src/BitfieldManFactory.h
  14528. (getNewFactory): Removed the call to setRandomizer().
  14529. To fix the miscalculation of the range of checksum:
  14530. * src/BitfieldMan.h
  14531. (isBitSetOffsetRange): New function.
  14532. * src/BitfieldMan.cc
  14533. (isBitSetOffsetRange): New function.
  14534. * src/SegmentMan.cc
  14535. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  14536. Use bitfield->getBlockLength() instead of segment.segmentLength.
  14537. * Release 0.10.1
  14538. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14539. To lower CPU usage in BitTorrent download when --max-upload-limit
  14540. command-line option specified:
  14541. * src/DefaultBtMessageDispatcher.cc
  14542. (sendMessages): Calculate uploading speed only when current message
  14543. is uploading data and is not sent yet.
  14544. * src/DefaultPeerStorage.h
  14545. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  14546. * src/HttpResponseCommand.cc
  14547. (handleDefaultEncoding): Added the cast to int32_t to itos.
  14548. This fixes compile error in Soralis 10.
  14549. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14550. To fix segfault in Metalink download:
  14551. * src/UrlRequestInfo.h
  14552. (filename): Removed.
  14553. (totalLength): Removed.
  14554. (setTotalLength): Removed.
  14555. (setFilename): Removed.
  14556. * src/MetalinkRequestInfo.cc
  14557. (execute): Do not set filename and totalLength to reqInfo.
  14558. Set chunk checksum to reqInfo if it is not null.
  14559. * src/HttpResponseCommand.cc
  14560. (executeInternal): Fixed filename in log.
  14561. (handleDefaultEncoding): Removed the call to initBitfield() and
  14562. markAllPiecesDone().
  14563. (handleOtherEncoding): Added HEAD method handling.
  14564. * src/FtpNegotiateCommand.cc
  14565. (executeInternal): Added SEQ_HEAD_OK handling.
  14566. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  14567. return false.
  14568. * src/FtpNegotiateCommand.h
  14569. (SEQ_HEAD_OK): New definition.
  14570. * src/SegmentMan.cc
  14571. (initBitfield): Delete bitfield.
  14572. (isChunkChecksumValidationReady): Fixed the condition.
  14573. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  14574. works fine.
  14575. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14576. * src/Xml2MetalinkProcessor.h
  14577. (xpathExists): New function.
  14578. * src/Xml2MetalinkProcessor.cc
  14579. (xpathExists): New function.
  14580. Not to send HEAD request if filename and size are available in Metalink
  14581. file:
  14582. * src/UrlRequestInfo.h
  14583. (filename): New variable.
  14584. (totalLength): New variable.
  14585. (setTotalLength): New function.
  14586. (setFilename): New function.
  14587. * src/MetalinkRequestInfo.cc
  14588. (execute): Set filename and size to UrlRequestInfo.
  14589. * src/MetalinkEntry.cc
  14590. (MetalinkEntry): Initialize size with 0.
  14591. * src/UrlRequestInfo.cc
  14592. (execute): Set filename and size to SegmentMan.
  14593. Not to download rest of the files after selected files are downloaded
  14594. in BitTorrent:
  14595. * src/PieceStorage.h
  14596. (allDownloadFinished): New function.
  14597. * src/DefaultBtAnnounce.cc
  14598. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  14599. downloadFinished.
  14600. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  14601. * src/DefaultPieceStorage.cc
  14602. (completePiece): Use allDownloadFinished instead of downloadFinished.
  14603. Commented out the call to finishSelectiveDownloadingMode().
  14604. (downloadFinished): Call isFilteredAllBitSet() instead of
  14605. isAllBitSet().
  14606. (allDownloadFinished): New function.
  14607. * src/DefaultBtInteractive.cc
  14608. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  14609. downloadFinished().
  14610. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  14611. * src/TorrentDownloadEngine.cc
  14612. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  14613. * src/BitfieldMan.h
  14614. (isFilteredAllBitSet): New function.
  14615. * src/ShareRatioSeedCriteria.h
  14616. (PieceStorage.h): New include.
  14617. (pieceStorage): New variable.
  14618. (evaluate):
  14619. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  14620. * src/BitfieldMan.cc
  14621. (isFilteredAllBitSet): New function.
  14622. (isAllBitSet): Filter is not took into account.
  14623. Rename --force-truncate as --allow-overwrite:
  14624. * src/TorrentRequestInfo.cc
  14625. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  14626. * src/main.cc
  14627. (showUsage): --force-truncate -> --allow-overwrite
  14628. * src/message.h
  14629. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  14630. * src/prefs.h
  14631. (PREF_FORCE_TRUNCATE): Removed.
  14632. (PREF_ALLOW_OVERWRITE): New definition.
  14633. * src/SegmentMan.cc
  14634. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  14635. * src/MetalinkRequestInfo.cc
  14636. (execute): Queueing message are now logged in info level.
  14637. * src/common.h
  14638. (LONG_LONG_MAX): Removed.
  14639. (LONG_LONG_MIN): Removed.
  14640. * src/HttpResponseCommand.cc
  14641. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  14642. * src/FtpNegotiateCommand.cc
  14643. (recvSize): LONG_LONG_MAX -> INT64_MAX
  14644. * src/main.cc
  14645. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  14646. command-line option.
  14647. (main): Added --check-integriy and --realtime-chunk-checksum
  14648. command-line option.
  14649. --force-truncate -> --allow-overwrite
  14650. Set initial value of --check-integrity option to false.
  14651. Don't show usage when error occurs while persing command-line options.
  14652. Removed deprecated --upload-limit option.
  14653. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14654. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  14655. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  14656. * src/BtAllowedFastMessage.cc:
  14657. * src/BtBitfieldMessage.cc
  14658. * src/BtCancelMessage.cc
  14659. * src/BtChokeMessage.cc
  14660. * src/BtHaveAllMessage.cc
  14661. * src/BtHaveMessage.cc
  14662. * src/BtHaveNoneMessage.cc
  14663. * src/BtInterestedMessage.cc
  14664. * src/BtNotInterestedMessage.cc
  14665. * src/BtPieceMessage.cc
  14666. * src/BtPortMessage.cc
  14667. * src/BtRejectMessage.cc
  14668. * src/BtRequestMessage.cc
  14669. * src/BtSuggestPieceMessage.cc
  14670. * src/BtUnchokeMessage.cc
  14671. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  14672. files are affected.
  14673. * src/ChunkChecksumValidator.cc
  14674. * src/SegmentMan.cc
  14675. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14676. To add chunk checksum validation:
  14677. * src/MetalinkEntry.h
  14678. (MetalinkChunkChecksum.h): New include.
  14679. (chunkChecksum): New variable.
  14680. * src/Request.h
  14681. (method): New variable.
  14682. (setMethod): New function.
  14683. (getMethod): New function.
  14684. (METHOD_GET): New static constant.
  14685. (METHOD_HEAD): New static constant.
  14686. * src/Xml2MetalinkProcessor.h
  14687. (getPieceHash): New function.
  14688. * src/PieceStorage.h
  14689. (markAllPiecesDone): New function.
  14690. (checkIntegrity): New function.
  14691. * src/FileAllocator.h
  14692. (NullFileAllocationMonitor.h): New include.
  14693. (FileAllocator): Initialize fileAllocationMonitor with new
  14694. NullFileAllocationMonitor().
  14695. * src/MultiDiskAdaptor.h
  14696. (messageDigest.h): Remove include.
  14697. (ctx): Removed.
  14698. (hashUpdate): Added ctx.
  14699. (MultiDiskAdaptor): Removed ctx.
  14700. (sha1Sum): Renamed as messageDigest.
  14701. (messageDigest): New function.
  14702. * src/UrlRequestInfo.h
  14703. (HeadResult): New class.
  14704. (digestAlgo): New variable.
  14705. (chunkChecksumLength): New variable.
  14706. (chunkChecksums): New variable.
  14707. (getHeadResult): New function.
  14708. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  14709. (setDigestAlgo): New function.
  14710. (setChunkChecksumLength): New function.
  14711. (setChunkChecksums): New function.
  14712. * src/DefaultPieceStorage.cc
  14713. (DiskAdaptorWriter.h): New include.
  14714. (ChunkChecksumValidator.h): New include.
  14715. (markAllPiecesDone): New function.
  14716. (checkIntegrity): New function.
  14717. * src/DefaultBtContext.h
  14718. (getPieceHashes): New function.
  14719. * src/TorrentRequestInfo.cc
  14720. (execute): Try to validate chunk checksum if file already exists and
  14721. .aria2 file doesn't there and user allows aria2 to overwrite it.
  14722. * src/messageDigest.h
  14723. (~MessageDigestContext): Added digestFree().
  14724. * src/MetalinkRequestInfo.cc
  14725. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  14726. * src/DiskAdaptor.h
  14727. (messageDigest.h): New include.
  14728. (sha1Sum): Renamed as messageDigest.
  14729. (messageDigest): New function.
  14730. * src/DownloadCommand.h
  14731. (PeerStat.h): New include.
  14732. (maxDownloadSpeedLimit): New variable.
  14733. (startupIdleTime): New variable.
  14734. (lowestDownloadSpeedLimit): New variable.
  14735. (peerStat): New variable.
  14736. (setMaxDownloadSpeedLimit): New function.
  14737. (setStartupIdleTime): New function.
  14738. (setLowestDownloadSPeedLimit): New function.
  14739. * src/BtContext.h
  14740. (getPieceHashes): New function.
  14741. * src/main.cc
  14742. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  14743. option to true for testing purpose.
  14744. * src/BtPieceMessage.cc
  14745. (checkPieceHash): Use messageDigest
  14746. * src/DownloadEngine.cc
  14747. (SetDescriptor): Removed.
  14748. (AccumulateActiveCommand): Removed.
  14749. (waitData): Rewritten.
  14750. (updateFdSet): Rewritten.
  14751. * src/MultiDiskAdaptor.cc
  14752. (hashUpdate): Added ctx.
  14753. (sha1Sum): Renamed as messageDigest.
  14754. (messageDigest): New function.
  14755. * src/BitfieldMan.h
  14756. (isBitRangeSet): New function.
  14757. (unsetBitRange): New function.
  14758. * src/ByteArrayDiskWriter.h
  14759. (sha1Sum): Renamed as messageDigest.
  14760. (messageDigest): New function.
  14761. * src/ConsoleDownloadEngine.cc
  14762. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  14763. * src/DiskWriter.h
  14764. (messageDigest.h): New include.
  14765. (sha1Sum): Renamed as messageDigest.
  14766. (messageDigest): New function.
  14767. * src/ChunkChecksumValidator.h: New class.
  14768. * src/DiskAdaptorWriter.h: New class.
  14769. * src/prefs.h
  14770. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  14771. (PREF_CHECK_INTEGRITY): New definition.
  14772. * src/HttpResponseCommand.cc
  14773. (handleDefaultEncoding): Added method "HEAD" handling.
  14774. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14775. (handleOtherEncoding):
  14776. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  14777. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  14778. startupIdleTime, lowestDownloadSpeedLimit to command.
  14779. * src/SegmentMan.h
  14780. (getSegmentEntryByIndex): New function.
  14781. (getSegmentEntryByCuid): New function.
  14782. (getSegmentEntryIteratorByCuid): New function.
  14783. (diskWriter): DiskWriter -> DiskWriterHandle
  14784. (pieceHashes): New variable.
  14785. (chunkHashLength): New variable.
  14786. (digestAlgo): New variable.
  14787. (FindPeerStat): Removed.
  14788. (getPeerStat): Rewritten.
  14789. (markAllPiecesDone): New function.
  14790. (checkIntegrity): New function.
  14791. (tryChunkChecksumValidation): New function.
  14792. (isChunkChecksumValidationReady): New function.
  14793. * src/BitfieldMan.cc
  14794. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  14795. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  14796. blocks to 0.
  14797. (isBitRangeSet): New function.
  14798. (unsetBitRange): New function.
  14799. * src/FtpNegotiateCommand.cc
  14800. (executeInternal): Set maxDownloadSpeedLimit,
  14801. startupIdleTime, lowestDownloadSpeedLimit to command.
  14802. (recvSize): Added method "HEAD" handling.
  14803. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14804. * src/AbstractSingleDiskAdaptor.cc
  14805. (sha1Sum): Renamed as messageDigest.
  14806. (messageDigest): New function.
  14807. * src/AbstractSingleDiskAdaptor.h
  14808. (sha1Sum): Renamed as messageDigest.
  14809. (messageDigest): New function.
  14810. * src/Util.h
  14811. (indexRange): New function.
  14812. * src/MetalinkEntry.cc
  14813. (MetalinkEntry): Initialized chunkChecksum to 0.
  14814. * src/ShaVisitor.cc
  14815. (~ShaVisitor): Removed the call to ctx.digestFree().
  14816. * src/SegmentMan.cc
  14817. (ChunkChecksumValidator.h): New include.
  14818. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  14819. to DIGEST_ALGO_SHA1.
  14820. (~SegmentMan): Removed diskWriter.
  14821. (FindSegmentEntryByIndex): Removed.
  14822. (FindSegmentEntryByCuid): Removed.
  14823. (checkoutSegment): Rewritten.
  14824. (findSlowerSegmentEntry): Rewritten.
  14825. (getSegment): Rewritten.
  14826. (updateSegment): Rewritten.
  14827. (completeSegment): Rewritten.
  14828. (markAllPiecesDone): New function.
  14829. (checkIntegrity): New function.
  14830. (isChunkChecksumValidationReady): New function.
  14831. (tryChunkChecksumValidation): New function.
  14832. * src/Xml2MetalinkProcessor.cc
  14833. (getEntry): Get size and set it to entry.
  14834. Get chunk checksum and set it to entry.
  14835. (getPieceHash): New function.
  14836. * src/Util.cc
  14837. (sha1Sum): Removed ctx.digestFree()
  14838. (fileChecksum): Removed ctx.digestFree()
  14839. (indexRange): New function.
  14840. * src/Request.cc
  14841. (METHOD_GET): New variable.
  14842. (METHOD_HEAD): New variable.
  14843. (Request): Added method.
  14844. * src/UrlRequestInfo.cc
  14845. (FatalException.h): New include.
  14846. (message.h): New include.
  14847. (operator<<): Added operator<< for class HeadResult.
  14848. (getHeadResult): New function.
  14849. (execute): Get filename and size in separate download engine.
  14850. * src/ChunkChecksumValidator.cc: New class.
  14851. * src/DownloadCommand.cc:
  14852. (DownloadCommand): Added peerStat.
  14853. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14854. the value from Option.
  14855. The buffer size is now 16KB.
  14856. Use peerStat member instead of getting it from SegmentMan.
  14857. Use startupIdleTime member instead of gettingit from Option.
  14858. Added chunk checksum validation.
  14859. * src/AbstractDiskWriter.cc
  14860. (AbstractDiskWriter): Removed ctx.
  14861. (~AbstractDiskWriter): Removed ctx.digestFree()
  14862. (writeDataInternal): Returns the return value of write.
  14863. (readDataInternal): Returns the return value of read.
  14864. (sha1Sum): Renamed as messageDigest
  14865. (messageDigest): New function.
  14866. * src/AbstractDiwkWriter.h
  14867. (messageDigest.h): Removed include.
  14868. (ctx): Removed.
  14869. (sha1Sum): Renamed as messageDigest
  14870. (messageDigest): New function.
  14871. * src/DefaultPieceStorage.h
  14872. (markAllPiecesDone): New function.
  14873. (checkIntegrity): New function.
  14874. * src/NullFileAllocationMonitor.h: New class.
  14875. * src/MetalinkChunkChecksum.h: New class.
  14876. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14877. To decrease CPU usage in bittorrent download, calculation results in
  14878. BitfieldMan were cached and realtime fetching PeerObject was removed
  14879. with WeakHandle introduced. Option values are set to the objects
  14880. by setter before download begins.
  14881. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14882. * src/DefaultBtRequestFactory.h
  14883. (dispatcher): BtMessageDispatcherHandle ->
  14884. BtMessageDispatcherWeakHandle.
  14885. (messageFactory): New variable.
  14886. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14887. BtMessageDispatcherWeakHandle.
  14888. (setBtMessageFactory): New function.
  14889. * src/DefaultBtMessageDispatcher.cc:
  14890. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14891. from Option.
  14892. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14893. feating the value from Option.
  14894. Use messageFactory member.
  14895. * src/PeerInteractionCommand.cc
  14896. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14897. Add reverse dependencies to factory object.
  14898. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14899. dispatcher.
  14900. Set messageFactory to receiver.
  14901. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14902. btInteractive.
  14903. Set receiver to peerObject.
  14904. Set maxDownloadSpeedLimit to this.
  14905. (executeInternal): Use maxDownloadSpeedLimit member.
  14906. * src/BtChokeMessage.cc
  14907. (doReceivedAction): Use dispatcher, requestFactory member.
  14908. (onSendComplete): Use dispatcher member.
  14909. * src/PeerInteractionCommand.h
  14910. (maxDownloadSpeedLimit): New variable.
  14911. * src/DefaultBtMessageReceiver.h
  14912. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14913. (dispatcher):
  14914. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14915. (messageFactory): New variable.
  14916. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14917. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14918. (setDispatcher):
  14919. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14920. (setBtMessageFactory): New function.
  14921. * src/DefaultBtInteractive.cc
  14922. (initiateHandshake): Use messageFactory member.
  14923. (addBitfieldMessageToQueue): Use messageFactory member.
  14924. (addAllowedFastMessageToQueue): Use messageFactory member.
  14925. (decideChoking): Use messageFactory member.
  14926. (checkHave): Use messageFactory member.
  14927. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14928. (receiveMessages): Use maxDownloadSpeedLimit member.
  14929. (decideInterest): Use messageFactory member.
  14930. * src/BtRequestMessage.cc
  14931. (doReceivedAction): Use messageFactory, dispatcher member.
  14932. (onQueued): Use dispatcher member.
  14933. * src/BtPieceMessage.cc
  14934. (doReceivedAction): Use dispatcher member.
  14935. (send): Use peerConnection member.
  14936. (onWrongPiece): Use requestFactory member.
  14937. (handleChokingEvent): Use messageFactory, dispatcher member.
  14938. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14939. * src/BtMessageDispatcher.h
  14940. (BtMessageDispatcherWeakHandle): New type definition.
  14941. * src/SimpleBtMessage.cc
  14942. (send): Use peerConnection member.
  14943. * src/BtRejectMessage.cc
  14944. (doReceivedAction): Use dispatcher member.
  14945. * src/DefaultBtMessageDispatcher.h
  14946. (Option.h): Removed include.
  14947. (messageFactory): New variable.
  14948. (option): Removed.
  14949. (maxUploadSpeedLimit): New variable.
  14950. (requestTimeout): New variable.
  14951. (DefaultBtMessageDispatcher): Removed option.
  14952. Added maxUploadSpeedLimit, requestTimeout.
  14953. (setOption): Removed.
  14954. (getOption): Removed.
  14955. (setMaxUploadSpeedLimit): New function.
  14956. (setRequestTimeout): New function.
  14957. (setBtMessageFactory): New function.
  14958. * src/DefaultBtInteractive.h
  14959. (btMessageReceiver):
  14960. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14961. (dispatcher):
  14962. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14963. (btRequestFactory):
  14964. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14965. (peerConnection):
  14966. PeerConnectionHandle -> PeerConnectionWeakHandle
  14967. (messageFactory): New variable.
  14968. (option): Removed.
  14969. (keepAliveInterval): New variable.
  14970. (maxDownloadSpeedLimit): New variable.
  14971. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14972. (setBtMessageReceiver):
  14973. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14974. (setDispatcher):
  14975. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14976. (setBtRequestFactory):
  14977. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14978. (setPeerConnection):
  14979. PeerConnectionHandle -> PeerConnectionWeakHandle
  14980. (setOption): Removed.
  14981. (setKeepAliveInterval): New function.
  14982. (setMaxDownloadSpeedLimit): New function.
  14983. (setBtMessageFactory): New function.
  14984. * src/BitfieldMan.h
  14985. (cachedNumMissingBlock): New variable.
  14986. (cachedNumFilteredBlock): New variable.
  14987. (cachedCompletedLength): New variable.
  14988. (cachedFilteredComletedLength): New variable.
  14989. (cachedFilteredTotalLength): New variable.
  14990. (countMissingBlockNow): New function.
  14991. (countFilteredBlockNow): New function.
  14992. (getFilteredTotalLengthNow): New function.
  14993. (getCompletedLengthNow): New function.
  14994. (getFilteredCompletedLengthNow): New function.
  14995. (updateCache): New function.
  14996. * src/AbstractBtMessage.h
  14997. (BtMessageDispatcher.h): New include.
  14998. (PeerConnection.h): New include.
  14999. (BtRequestFactory.h): New include
  15000. (BtMessageFactory.h): New include.
  15001. (dispatcher): New variable.
  15002. (messageFactory): New variable.
  15003. (peerConnection: New variable.
  15004. (setBtMessageDispatcher): New function.
  15005. (setPeerConnection): New function.
  15006. (setBtMessageFactory): New function.
  15007. (setBtRequestFactory): New function.
  15008. * src/DefaultBtMessageFactory.cc
  15009. (setCommonProperty): Set dispatcher, requestFactory, this,
  15010. peerConnection to msg.
  15011. * src/BtRegistry.h
  15012. (BT_MESSAGE_RECEIVER): New macro.
  15013. * src/PeerConnection.h
  15014. (PeerConnectionWeakHandle): New type definition.
  15015. * src/BtMessageFactory.h
  15016. (BtMessageFactoryWeakHandle): New type definition.
  15017. * src/BitfieldMan.cc
  15018. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  15019. cachedCompletedLength, cachedFilteredComletedLength,
  15020. cachedFilteredTotalLength.
  15021. Call updateCache().
  15022. (countMissingBlock): Return cachedNumMissingBlock.
  15023. (countMissingBlockNow): New function.
  15024. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  15025. (countFilteredBlockNow): New function.
  15026. (setBit): Call updateCache().
  15027. (unsetBit): Call updateCache().
  15028. (setBitfield): Call updateCache().
  15029. (clearAllBit): Call updateCache().
  15030. (setAllBit): Use setBitInternal instead of setBit.
  15031. Call updateCache().
  15032. (addFilter): Call updateCache().
  15033. (enableFilter): Call updateCache().
  15034. (disableFilter): Call updateCache().
  15035. (clearFilter): Call updateCache().
  15036. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  15037. (getFilteredTotalLengthNow): New function.
  15038. (getCompletedLength): Return cachedCompletedLength.
  15039. (getCompletedLengthNow): New function.
  15040. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  15041. (getFilteredCompletedLengthNow): New function.
  15042. (updateCache): New function.
  15043. * src/BtMessageReceiver.h
  15044. (BtMessageReceiverWeakHandle): New type definition.
  15045. * src/DefaultBtMessageReceiver.cc
  15046. (receiveHandshake): Use messageFactory member.
  15047. (sendHandshake): Use messageFactory member.
  15048. (receiveMessage): Use messageFactory member.
  15049. * src/DefaultBtMessageFactory.h
  15050. (dispatcher): New variable.
  15051. (requestFactory): New variable.
  15052. (peerConnection): New variablle.
  15053. (setBtMessageDispatcher): New function.
  15054. (setBtRequestFactory): New function.
  15055. (setPeerConnection): New function.
  15056. * src/SharedHandle.h
  15057. (RefCount): New class.
  15058. (WeakHandle): New class.
  15059. * src/PeerObject.h
  15060. (BtMessageReceiver.h): New include.
  15061. (PeerObject): Added btMessageReceiver.
  15062. (btMessageReceiver): New variable.
  15063. * src/Util.cc
  15064. (countBit): Simplified.
  15065. * src/BtCancelMessage.cc
  15066. (doReceivedAction): Use dispatcher member.
  15067. * src/BtRequestFactory.h
  15068. (BtRequestFactoryWeakHandle): New type definition.
  15069. * src/PeerStorage.h
  15070. (downloadSpeed): int -> uint32_t
  15071. (uploadSpeed): int -> uint32_t
  15072. (sessionDownloadLength): long long int -> uint64_t
  15073. (sessionUploadLength): long long int -> uint64_t
  15074. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15075. To add RecoverableException, FatalException:
  15076. * src/AbstractCommand.cc
  15077. (onAbort): Exception -> RecoverableException
  15078. * src/PeerAbstractCommand.h
  15079. (RecoverableException.h): New include.
  15080. (onAbort): Exception -> RecoverableException.
  15081. * src/PeerInteractionCommand.cc
  15082. (onAbort): Exception -> RecoverableException.
  15083. * src/PeerAbstractCommand.cc
  15084. (execute): Exception -> RecoverableException.
  15085. (onAbort): Exception -> RecoverableException.
  15086. * src/TorrentRequestInfo.cc
  15087. (execute): Exception -> RecoverableException.
  15088. * src/MetalinkRequestInfo.cc
  15089. (execute): Exception -> RecoverableException.
  15090. * src/MetaFileUtil.cc: RecoverableException.
  15091. * src/AbstractCommand.h
  15092. (onAbort): Exception -> RecoverableException.
  15093. * src/DlRetryEx.h: Exception -> RecoverableException.
  15094. * src/DlAbortEx.h: Exception -> RecoverableException.
  15095. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  15096. * src/Util.cc: Exception -> RecoverableException.
  15097. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  15098. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  15099. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  15100. To make ID static const int
  15101. * src/BtInterestedMessage.h
  15102. (ID_t): Removed.
  15103. (ID): New variable.
  15104. (getId): Made non-const.
  15105. * src/BtPieceMessage.h
  15106. (ID_t): Removed.
  15107. (ID): New variable.
  15108. (getId): Made non-const.
  15109. * src/BtChokeMessage.h
  15110. (ID_t): Removed.
  15111. (ID): New variable.
  15112. (getId): Made non-const.
  15113. * src/BtHaveAllMessage.h
  15114. (ID_t): Removed.
  15115. (ID): New variable.
  15116. (getId): Made non-const.
  15117. * src/BtKeepAliveMessage.h
  15118. (ID_t): Removed.
  15119. (ID): New variable.
  15120. (getId): Made non-const.
  15121. * src/BtHandshakeMessage.h
  15122. (ID): New variable.
  15123. (getId): Made non-const.
  15124. * src/BtSuggestPieceMessage.h
  15125. (ID_t): Removed.
  15126. (ID): New variable.
  15127. (getId): Made non-const.
  15128. * src/BtPortMessage.h
  15129. (ID_t): Removed.
  15130. (ID): New variable.
  15131. (getId): Made non-const.
  15132. * src/AbstractBtMessage.h
  15133. (id): Removed.
  15134. (AbstractBtMessage): Removed id.
  15135. (getId): Removed.
  15136. * src/BtHaveMessage.h
  15137. (ID_t): Removed.
  15138. (ID): New variable.
  15139. (getId): Made non-const.
  15140. * src/BtAllowedFastMessage.h
  15141. (ID_t): Removed.
  15142. (ID): New variable.
  15143. (getId): Made non-const.
  15144. * src/BtCancelMessage.h
  15145. (ID_t): Removed.
  15146. (ID): New variable.
  15147. (getId): Made non-const.
  15148. * src/BtNotInterestedMessage.h
  15149. (ID_t): Removed.
  15150. (ID): New variable.
  15151. (getId): Made non-const.
  15152. * src/BtChokeMessage.h
  15153. (ID_t): Removed.
  15154. (ID): New variable.
  15155. (getId): Made non-const.
  15156. * src/BtRejectMessage.h
  15157. (ID_t): Removed.
  15158. (ID): New variable.
  15159. (getId): Made non-const.
  15160. * src/BtBitfieldMessage.h
  15161. (ID_t): Removed.
  15162. (ID): New variable.
  15163. (getId): Made non-const.
  15164. * src/BtUnchokeMessage.h
  15165. (ID_t): Removed.
  15166. (ID): New variable.
  15167. (getId): Made non-const.
  15168. * src/BtRequestMessage.h
  15169. (ID_t): Removed.
  15170. (ID): New variable.
  15171. (getId): Made non-const.
  15172. * src/BtHaveMessage.h
  15173. (ID_t): Removed.
  15174. (ID): New variable.
  15175. (getId): Made non-const.
  15176. To add --force-truncate command-line option and a check whether
  15177. the file already exists:
  15178. * src/DirectDiskAdaptor.h
  15179. (getFilePath): Made virtual public.
  15180. * src/MultiDiskAdaptor.h
  15181. (File.h): New include.
  15182. (DiskWriterEntry::fileEntry): Made private.
  15183. (DiskWriterEntry::fileExists): New function.
  15184. (DiskWriterEntry::getFileEntry): New function.
  15185. (fileExists): New function.
  15186. (getFilePath): New function.
  15187. * src/TorrentRequestInfo.cc
  15188. (FatalException.h): New include.
  15189. (message.h): New include.
  15190. (RecoverableException.h): New include.
  15191. (execute): Added a check whether file is already exists or not.
  15192. * src/DiskAdaptor.h
  15193. (fileExists): New function.
  15194. (getFilePath): New function.
  15195. * src/main.cc
  15196. (showUsage): Added an explanation of --force-truncate command-line
  15197. option.
  15198. (main): Added --force-truncate command-line option.
  15199. * src/Exception.h
  15200. (setMsg): buf[256] -> buf[1024]
  15201. * src/CopyDiskWriter.h
  15202. (getFilePath): Made public virtual.
  15203. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  15204. (fileExists): New function.
  15205. * src/DownloadEngineFactory.cc
  15206. (newTorrentConsoleEngine): Don't open file here.
  15207. * src/message.h
  15208. (EX_FILE_ALREADY_EXISTS): New definition.
  15209. * src/prefs.h
  15210. (PREF_FOECE_TRUNCATE): New definition.
  15211. * src/HttpResponseCommand.cc
  15212. (handleDefaultEncoding): Added a check whether the file already exists.
  15213. * src/SegmentMan.h
  15214. (fileExists): New function.
  15215. (shouldCancelDownloadForSafety): New function.
  15216. * src/FtpNegotiateCommand.cc
  15217. (recvSize): Added a check whether the file already exists.
  15218. * src/AbstractSingleDiskAdaptor.cc
  15219. (File.h): New include.
  15220. (fileExists): New function.
  15221. * src/AbstractSingleDiskAdaptor.h
  15222. (getFilePath): Removed.
  15223. (fileExists): New function.
  15224. * src/SegmentMan.cc
  15225. (fileExists): New function.
  15226. (shouldCancelDownloadForSafety): New function.
  15227. To fix regression bug in torrent downloading:
  15228. * src/DefaultBtRequestFactory.cc
  15229. (doChokedAction): New function.
  15230. * src/DefaultBtRequestFactory.h
  15231. (doChokedAction): New function.
  15232. * src/DefaultBtMessageDispatcher.cc
  15233. (doChokedAction): Do not delete request if its target is in allowed
  15234. fast set.
  15235. * src/DefaultBtInteractive.cc
  15236. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  15237. (sendKeepAlive): Send keep alive message even if the outgoing message
  15238. queue is not empty.
  15239. (decideInterest): Simplified the code.
  15240. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  15241. it is already called when BtChokeMessage is received from a peer.
  15242. * src/BtRequestFactory.h
  15243. (doChokedAction): New function.
  15244. To clean up code:
  15245. * src/PeerInteractionCommand.h
  15246. (executeInternal): Added virtual keyword explicitly.
  15247. (prepareForRetry): Added virtual keyword explicitly.
  15248. (prepareForNextPeer): Added virtual keyword explicitly.
  15249. (onAbort): Added virtual keyword explicitly.
  15250. * src/RequestSlot.cc
  15251. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  15252. * src/BtPieceMessage.cc
  15253. (doReceivedAction): Added a debug log of piece's bitfield.
  15254. * src/Piece.h
  15255. (getBitfieldLength): New function.
  15256. * src/ByteArrayDiskWriter.cc
  15257. (clear): Added buf = 0 to avoid double free corruption.
  15258. * src/FileAllocator.cc
  15259. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  15260. Added cp.reset().
  15261. * src/BitfieldMan.h
  15262. (operator=): Rewritten.
  15263. * src/BitfieldMan.cc
  15264. (BitfieldMan): Initialized bitfield, useBitfield.
  15265. * src/PeerConnection.cc
  15266. (receiveMessage): Added a call to socket->readable() after getting
  15267. message length to avoid possible EOF.
  15268. * src/Util.cc
  15269. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  15270. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15271. To add an ability to pre-allocate file space:
  15272. * src/DirectDiskAdaptor.h: Rewritten.
  15273. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  15274. * src/MultiDiskAdaptor.h: Rewritten.
  15275. * src/DefaultPieceStorage.cc
  15276. (MultiDiskWriter.h): Removed include.
  15277. (PreAllocationDiskWriter.h): Removed include.
  15278. (FileAllocationMonitor.h): New include.
  15279. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  15280. (initStorage): Rewritten.
  15281. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15282. * src/FileAllocator.h: New class.
  15283. * src/FileAllocator.cc: New class.
  15284. * src/FileAllocationMonitor.h: New class.
  15285. * src/FileAllocationMonitor.cc: New class.
  15286. * src/ConsoleFileAllocationMonitor.h: New class.
  15287. * src/ConsoleFileAllocationMonitor.cc: New class.
  15288. * src/AbstractSingleDiskAdaptor.h: New class.
  15289. * src/AbstractSingleDiskAdaptor.cc: New class.
  15290. * src/DiskAdaptor.h
  15291. (Directory.h): Removed include.
  15292. (DiskWriter.h): Removed include.
  15293. (FileEntry.h): Removed include.
  15294. (diskWriter): Removed.
  15295. (DiskAdaptor): Removed diskWriter.
  15296. (openFile): Made pure virtual.
  15297. (closeFile): Made pure virtual.
  15298. (openExistingFile): Made pure virtual.
  15299. (initAndOpenFile): Made pure virtual.
  15300. (writeData): Made pure virtual.
  15301. (readData): Made pure virtual.
  15302. (sha1Sum): Made pure virtual.
  15303. (getStoreDir): Returns const reference of storeDir.
  15304. (DiskAdaptorHandle): New type definition.
  15305. * src/main.cc
  15306. (ConsoleFileAllocationMonitor.h): New include.
  15307. (showUsage): Added default value description of -s option.
  15308. Added the description of --file-allocation option.
  15309. (main): Set default value of --file-allocation option to 'none'.
  15310. Added --file-allocation command-line option.
  15311. Setup FileAllocationMonitorFactory.
  15312. * src/FtpInitiateConnectionCommand.cc
  15313. (executeInternal): Removed diskWriter related processing, which was
  15314. moved to FtpNegotiationCommand.cc.
  15315. * src/DirectDiskAdaptor.cc
  15316. (getFilePath): Made non-const.
  15317. * src/CopyDiskAdaptor.h
  15318. (DiskAdaptor.h): Removed include.
  15319. (DiskWriter.h): Removed include.
  15320. (AbstractSingleDiskAdaptor.h): New include.
  15321. (getFilePath): Made non-const. Added virtual keyword.
  15322. (CopyDiskAdaptor): Removed diskWriter.
  15323. (getTempFile): Returns const reference.
  15324. (CopyDiskAdaptorHandle): New type definition.
  15325. * src/ByteArrayDiskWriter.cc
  15326. (clear): Simplified.
  15327. (initAndOpenFile): Rewritten.
  15328. (openFile): Call initAndOpenFile()
  15329. * src/MultiDiskAdaptor.cc: Rewritten.
  15330. * src/DownloadEngineFactory.cc
  15331. (FileAllocator.h): New include.
  15332. (FileAllocationMonitor.h): New include.
  15333. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  15334. create DefaultDiskWriter with file allocator.
  15335. * src/DiskWriter.h
  15336. (initAndOpenFile): Added totalLength argument.
  15337. (openFile): Added totalLength argument.
  15338. * src/prefs.h
  15339. (PREF_FILE_ALLOCATION): New definition.
  15340. (V_PREALLOC): New definition.
  15341. (V_NONE): New definition.
  15342. * src/HttpResponseCommand.cc
  15343. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  15344. size.
  15345. * src/FtpNegotiateCommand.cc
  15346. (Util.h): New include.
  15347. (recvSize): Open file here.
  15348. * src/Util.h
  15349. (ullitos): New function.
  15350. * src/CopyDiskWriter.h
  15351. (getFilePath): Made non-const.
  15352. * src/DefaultDiskWriter.h
  15353. (Option.h): New include.
  15354. (totalLength): Removed.
  15355. (DefaultDiskWriter): Removed totalLength.
  15356. (initAndOpenFile): Added totalLength argument.
  15357. (DefaultDiskWriterHandle): New type definition.
  15358. (createNewDiskWriter): New function.
  15359. * src/Util.cc
  15360. (ullitos): New function.
  15361. * src/DefaultDiskWriter.cc
  15362. (message.h): New include.
  15363. (FileAllocator.h): New include.
  15364. (prefs.h): New include.
  15365. (Util.h): New include.
  15366. (DefaultDiskWriter): Removed totalLength.
  15367. (initAndOpenFile): Added file allocation.
  15368. (createNewDiskWriter): New function. Just for temporary solution.
  15369. It will be rewritten later.
  15370. * src/DiskAdaptor.cc
  15371. (DiskAdaptor): Removed diskWriter.
  15372. * src/AbstractDiskWriter.cc
  15373. (LogFactory.h): New include.
  15374. (AbstractDiskWriter): Added fileAllocator, logger.
  15375. (openFile): Added totalLength argument.
  15376. * src/AbstractDiskWriter.h
  15377. (FileAllocator.h): New include.
  15378. (Logger.h): New include.
  15379. (fileAllocator): New variable.
  15380. (logger): New variable.
  15381. (openFile): Added totalLength argument. Added virtual keyword
  15382. explicitly.
  15383. (openExistingFile): Added totalLength argument. Added virtual keyword
  15384. explicitly.
  15385. (closeFile): Added virtual keyword explicitly.
  15386. (sha1Sum): Added virtual keyword explicitly.
  15387. (writeData): Added virtual keyword explicitly.
  15388. (readData): Added virtual keyword explicitly.
  15389. (setFileAllocator): New function.
  15390. * src/DefaultPieceStorage.h
  15391. (FileAllocator.h): New include.
  15392. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15393. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15394. * src/FileProgressMonitor.h: New class.
  15395. To compile aria2 on PC-BSD:
  15396. * src/DefaultBtContext.cc
  15397. (libgen.h): New include.
  15398. To fix memory leak:
  15399. * src/Exception.h
  15400. (~Exception): Delete cause. Fixed memory leak.
  15401. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15402. Rewritten a portion of bittorrent implementation:
  15403. * src/BtMessageValidator.h: New class.
  15404. * src/BtBitfieldMessageValidator.h: New class.
  15405. * src/BtHandshakeMessageValidator.h: New class.
  15406. * src/BtRequestMessageValidator.h: New class.
  15407. * src/BtSuggestPieceMessageValidator.h: New class.
  15408. * src/BtAllowedFastMessageValidator.h: New class.
  15409. * src/BtRejectMessageValidator.h: New class.
  15410. * src/BtCancelMessageValidator.h: New class.
  15411. * src/BtPieceMessageValidator.h: New class.
  15412. * src/BtHaveMessageValidator.h: New class.
  15413. * src/BtEventListener.h: New class.
  15414. * src/AbstractBtEventListener.h: New class.
  15415. * src/BtEvent.h: New class.
  15416. * src/BtChokingEvent.h: New class.
  15417. * src/BtChokedEvent.h: New class.
  15418. * src/BtCancelSendingPieceEvent.h: New class.
  15419. * src/BtAbortOutstandingRequestEvent.h: New class.
  15420. * src/Randomizer.h: New class.
  15421. * src/SimpleRandomizer.h: New class.
  15422. * src/BtMessage.h: New class.
  15423. * src/AbstractBtMessage.h: New class.
  15424. * src/SimpleBtMessage.h: New class.
  15425. * src/BtHaveMessage.h: New class.
  15426. * src/BtInterestedMessage.h: New class.
  15427. * src/BtAllowedFastMessage.h: New class.
  15428. * src/BtUnchokeMessage.h: New class.
  15429. * src/BtCancelMessage.h: New class.
  15430. * src/BtNotInterestedMessage.h: New class.
  15431. * src/BtChokeMessage.h: New class.
  15432. * src/BtHaveNoneMessage.h: New class.
  15433. * src/BtHandshakeMessage.h: New class.
  15434. * src/BtSuggestPieceMessage.h: New class.
  15435. * src/BtHaveMessage.h: New class.
  15436. * src/BtPieceMessage.h: New class.
  15437. * src/BtHaveAllMessage.h: New class.
  15438. * src/BtKeepAliveMessage.h: New class.
  15439. * src/BtPortMessage.h: New class.
  15440. * src/BtRejectMessage.h: New class.
  15441. * src/BtBitfieldMessage.h: New class.
  15442. * src/BtRequestMessage.h: New class.
  15443. * src/DefaultBtRequestFactory.h: New class.
  15444. * src/DefaultBtMessageReceiver.h: New class.
  15445. * src/BtInteractive.h: New class.
  15446. * src/BtMessageDispatcher.h: New class.
  15447. * src/DefaultBtMessageDispatcher.h: New class.
  15448. * src/DefaultBtInteractive.h: New class.
  15449. * src/BitfieldManFactory.h: New class.
  15450. * src/HandleRegistry.h: New class.
  15451. * src/BtMessageFactory.h: New class.
  15452. * src/BtMessageReceiver.h: New class.
  15453. * src/DefaultBtMessageFactory.h: New class.
  15454. * src/PeerObject.h: New class.
  15455. * src/BtRequestFactory.h: New class.
  15456. * src/SuggestPieceMessage.h: Removed.
  15457. * src/PortMessage.h: Removed.
  15458. * src/SuggestPieceMessage.h: Removed.
  15459. * src/KeepAliveMessage.h: Removed.
  15460. * src/HandshakeMessage.h: Removed.
  15461. * src/PeerInteraction.h: Removed.
  15462. * src/UnchokeMessage.h: Removed.
  15463. * src/PieceMessage.h: Removed.
  15464. * src/RequestMessage.h: Removed.
  15465. * src/InterestedMessage.h: Removed.
  15466. * src/HaveMessage.h: Removed.
  15467. * src/CancelMessage.h: Removed.
  15468. * src/RejectMessage.h: Removed.
  15469. * src/AllowedFastMessage.h: Removed.
  15470. * src/HaveNoneMessage.h: Removed.
  15471. * src/SimplePeerMessage.h: Removed.
  15472. * src/HaveAllMessage.h: Removed.
  15473. * src/BitfieldMessage.h: Removed.
  15474. * src/PeerMessageFactory.h: Removed.
  15475. * src/NotInterestedMessage.h: Removed.
  15476. * src/ChokeMessage.h: Removed.
  15477. * src/PeerMessage.h: Removed.
  15478. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15479. To know root cause of exception:
  15480. * src/Exception.h
  15481. (cause): New variable.
  15482. (Exception): Added a parameter.
  15483. (getMsg): Return const reference to msg.
  15484. (getCause): New function.
  15485. * src/DlRetryEx.h
  15486. (DlRetryEx): Added a parameter 'cause'.
  15487. Added an overloaded constructor.
  15488. (DlAbortEx): Added a parameter 'cause'.
  15489. Added an overloaded constructor.
  15490. * src/SimpleLogger.cc
  15491. (writeLog): Log nested exception messages recursively.
  15492. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15493. * src/DefaultBtProgressInfoFile.cc
  15494. (load): Fixed memory leak when the infohash doesn't match.
  15495. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15496. * src/DefaultPeerStorage.cc
  15497. (calculateStat): Simplified the code by combining 2 loops into 1.
  15498. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15499. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  15500. for BitTorrent download:
  15501. * src/PeerAbstractCommand.cc
  15502. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  15503. * src/main.cc:
  15504. (timeoutSpecified): Removed.
  15505. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  15506. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  15507. * src/TorrentRequestInfo.cc
  15508. (timeoutSpecified): Removed.
  15509. (torrentHandler): Removed timeoutSpecified and the adjustment of
  15510. timeout value.
  15511. * src/prefs.h
  15512. (PREF_BT_TIMEOUT): New definition.
  15513. Delete unused variables:
  15514. * src/TorrentRequestInfo.cc
  15515. (requestInfo): Removed.
  15516. Move setSignalHander to Util::setGlobalSignalHandler:
  15517. * src/TorrentRequestInfo.cc:
  15518. setSignalHander -> Util::setGlobalSignalHandler
  15519. * src/main.cc
  15520. (setSignalHander): Removed.
  15521. (main): setSignalHander -> Util::setGlobalSignalHandler
  15522. * src/Util.h
  15523. (setGlobalSignalHandler): New function.
  15524. * src/Util.cc
  15525. (setGlobalSignalHandler): New function.
  15526. * src/UrlRequestInfo.cc:
  15527. setSignalHander -> Util::setGlobalSignalHandler
  15528. Reset peer status in order to exit gracefully:
  15529. * src/PeerAbstractCommand.cc
  15530. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  15531. To fix the bug that causes the number of bytes uploaded is not saved
  15532. to .aria2 file:
  15533. * src/DefaultPeerStorage.h
  15534. (removedPeerSessionDownloadLength): New variable.
  15535. (removedPeerSessionUploadLength): New variable.
  15536. * src/DefaultPeerStorage.cc
  15537. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  15538. removedPeerSessionUploadLength(0).
  15539. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  15540. through all peers, and then add removedPeerSessionDownloadLength(
  15541. removedPeerSessionUploadLength) to it.
  15542. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  15543. (to) the peer to removedPeerSessionDownloadLength
  15544. (removedPeerSessionUploadLength).
  15545. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15546. To add Metalink location option:
  15547. * src/MetalinkRequestInfo.cc
  15548. (execute): Call MetalinkEntry::setLocationPreference()
  15549. * src/main.cc
  15550. (showUsage): Added the help message for --metalink-location option.
  15551. (main): Added --metalink-location option.
  15552. * src/prefs.h
  15553. (PREF_METALINK_LOCATION): New definition.
  15554. * src/MetalinkEntry.cc
  15555. (AddLocationPreference): New function object.
  15556. (setLocationPreference): New function.
  15557. * src/Xml2MetalinkProcessor.cc
  15558. (getResource): Set location attribute to MetalinkResource
  15559. To show URLs to download
  15560. * src/UrlRequestInfo.h
  15561. (printUrls): New function.
  15562. To add multiple <file> Metalink support:
  15563. * src/MetalinkEntry.h
  15564. (MetalinkResources): Removed.
  15565. (setLocationPreference): New function.
  15566. (MetalinkEntryHandle): New type definition.
  15567. (MetalinkEntries): New type definition.
  15568. * src/Xml2MetalinkProcessor.h
  15569. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15570. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15571. (parseFile): Metalinker* -> MetalinkerHandle
  15572. * src/UrlRequestInfo.h
  15573. (execute): RequestInfo* -> RequestInfos
  15574. * src/MetalinkRequestInfo.cc
  15575. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  15576. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  15577. (execute): RequestInfo* -> RequestInfos
  15578. Added multiple <file> support. Print filename when it is queued.
  15579. * src/MetalinkRequestInfo.h
  15580. (execute): RequestInfo* -> RequestInfos
  15581. (getDownloadEngine): Removed.
  15582. * src/RequestInfo.h
  15583. (RequestInfoHandle): New type definition.
  15584. (RequestInfos): New type definition.
  15585. (execute): RequestInfo* -> RequestInfos
  15586. (getDownloadEngine): Removed.
  15587. * src/MetalinkResource.h
  15588. (MetalinkResourceHandle): New type definition.
  15589. (MetalinkResources): New type definition.
  15590. * src/MetalinkEntry.cc
  15591. (~MetalinkEntry): Removed the deletion of the elements of resources,
  15592. because the element is now of type MetalinkResourceHandle.
  15593. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  15594. (Supported): MetalinkResource* -> MetalinkResourceHandle
  15595. (dropUnsupportedResource): Removed the deletion of the elements of
  15596. resources because the element is now of type MetalinkResourceHandle.
  15597. * src/Xml2MetalinkProcessor.cc
  15598. (parseFile): Metalinker* -> MetalinkerHandle
  15599. MetalinkEntry* -> MetalinkEntryHandle
  15600. Removed try-catch block.
  15601. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15602. MetalinkResource* -> MetalinkResourceHandle
  15603. Removed try-catch block.
  15604. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15605. Free result by using xmlXPathFreeObject()
  15606. * src/Metalinker.cc
  15607. (~Metalinker): Removed the deletion of entries.
  15608. MetalinkEntry* -> MetalinkEntryHandle
  15609. (queryEntry): Add multiple <file> Metalink support.
  15610. * src/Metalinker.h
  15611. (MetalinkEntries): Removed.
  15612. (queryEntry): MetalinkEntry* -> MetalinkEntries
  15613. * src/MetalinkProcessor.h
  15614. (parseFile): Metalinker* -> MetalinkerHandle
  15615. Bug fixes:
  15616. * src/PeerChokeCommand.cc
  15617. (execute): cat01->cat02
  15618. * src/DefaultPieceStorage.cc
  15619. (DefaultPieceStorage): Added diskAdaptor(0)
  15620. * src/TrackerWatcherComand.cc:
  15621. (execute): Use btAnnounce->noMoreAnnounce()
  15622. to determin whether the function returns true or not.
  15623. * src/TrackerUpdateCommand.cc:
  15624. (execute): Use btAnnounce->noMoreAnnounce()
  15625. to determin whether the function returns true or not.
  15626. * src/FtpConnection.cc
  15627. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  15628. This is the fix of the busy loop bug.
  15629. * src/DownloadCommand.cc
  15630. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  15631. cached PeerStat.
  15632. The value of "name" entry in torrent file is now set by
  15633. *DiskAdaptor::setTopDir(...) methods.
  15634. * src/MultiDiskAdaptor.h
  15635. (topDir): New variable.
  15636. (setTopDir): New function.
  15637. (getTopDir): New function.
  15638. * src/MultiDiskAdaptor.cc
  15639. (getFilePath): Concat storDir, "/" and topDir.
  15640. (mkdir): Use getFilePath() to get the directory path for output.
  15641. * src/DefaultPieceStorage.cc
  15642. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  15643. CopyDiskAdaptor.
  15644. * src/CopyDiskAdaptor.h
  15645. (topDir): New variable.
  15646. (setTopDir): New function.
  15647. (getTopDir): New function.
  15648. * src/CopyDiskAdaptor.cc
  15649. (fixFilename): Updated.
  15650. Misc
  15651. * src/UrlRequestInfo.h
  15652. (e): Removed.
  15653. (UrlRequestInfo): Removed e.
  15654. (getDownloadEngine): Removed.
  15655. * src/UrlRequestInfo.cc
  15656. (handler): Rewritten.
  15657. (printUrls): New function.
  15658. (execute): Call printUrls().
  15659. * src/HandshakeMessage.cc
  15660. (check): peerinteraction->getBtContext() -> btContext
  15661. * src/PeerInteraction.h
  15662. (getBtContext): Removed.
  15663. * src/TorrentRequestInfo.h
  15664. (execute): RequestInfo* -> RequestInfos
  15665. (getDownloadEngine): Removed.
  15666. * src/TorrentRequestInfo.cc
  15667. (haltRequested): Removed.
  15668. (btHaltRequested): New variable.
  15669. (torrentHandler): haltRequested -> btHaltRequested
  15670. (execute): RequestInfo* -> RequestInfos
  15671. * src/TorrentConsoleDownloadEngine.cc
  15672. (afterEachIteration): haltRequested -> btHaltRequested.
  15673. * src/ConsoleDownloadEngine.h
  15674. (initStatistics): Added virtual.
  15675. (calculateStatistics): Added virtual.
  15676. (onEndOfRun): Added virtual.
  15677. (afterEachIteration): Added virtual.
  15678. * src/ConsoleDownloadEngine.cc
  15679. (haltRequested): New variable.
  15680. (afterEachIteration): New function.
  15681. * src/main.cc
  15682. (requestInfo): Removed.
  15683. * src/SegmentMan.cc
  15684. (findSlowerSegmentEntry): Refactored.
  15685. * Release 0.9.0
  15686. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15687. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  15688. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  15689. * src/TorrentMan.h: Removed.
  15690. * src/TorrentMan.cc: Removed.
  15691. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  15692. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  15693. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  15694. * src/PeerAbstractCommand.cc: Use btRuntime.
  15695. * src/BtContextAwareCommand.h: New class.
  15696. * src/FileEntry.h: Added accessor methods for following variables.
  15697. (path): Made private.
  15698. (length): Made private.
  15699. (offset): Made private.
  15700. (extracted): Made private.
  15701. (requested): Made private.
  15702. (FileEntries): New definition.
  15703. (FileEntryHandle): New definition.
  15704. * src/FileEntry.cc: New file.
  15705. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  15706. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  15707. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  15708. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  15709. * src/PieceStorage.h: New file.
  15710. * src/PeerInteractionCommand.h: Use btContext.
  15711. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  15712. btRuntime.
  15713. * src/DefaultBtProgressInfoFile.h: New file.
  15714. * src/DefaultBtProgressInfoFile.cc: New file.
  15715. * src/File.cc
  15716. (Util.h): New include.
  15717. (mkdirs): New function.
  15718. * src/MultiDiskAdaptor.h
  15719. (mkdir): New function.
  15720. * src/PeerListProcessor.h
  15721. (Peers): Removed.
  15722. * src/PeerInteraction.h
  15723. (torrentMan): Removed.
  15724. (btContext): New variable.
  15725. (peerStorage): New variable.
  15726. (pieceStorage): New variable.
  15727. (btAnnounce): New variable.
  15728. (getTorrentMan): Removed.
  15729. (getBtContext): New function.
  15730. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  15731. btAnnounce.
  15732. * src/HandshakeMessage.h
  15733. (TorrentMan.h): Removed.
  15734. * src/HandshakeMessage.cc: Use btContext.
  15735. * src/DefaultBtAnnounce.cc: New file.
  15736. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  15737. * src/DefaultPieceStorage.cc: New file.
  15738. * src/DefaultBtContext.h: New file.
  15739. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  15740. Use the accessor methods of FileEntry.
  15741. * src/CookieBox.cc: Updated to use Util::slice().
  15742. * src/PieceMessage.cc: Use btContext, pieceStorage.
  15743. * src/common.h (SharedHandle.h): New include.
  15744. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  15745. pieceStorage.
  15746. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  15747. * src/DiskAdaptor.h
  15748. (topDir): Removed.
  15749. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  15750. (setTopDir): Removed.
  15751. (getTopDir): Removed.
  15752. * src/BtContext.h: New file.
  15753. * src/DefaultPeerStorage.h: New file.
  15754. * src/PieceMessage.h (TorrentMan.h): Removed.
  15755. * src/RequestMessage.h (TorrentMan.h): Removed.
  15756. * src/TorrentDownloadEngine.h
  15757. (uploadLength): New variable.
  15758. (btContext): New variable.
  15759. (btRuntime): New variable.
  15760. (pieceStorage): New variable.
  15761. (peerStorage): New variable.
  15762. (btAnnounce): New variable.
  15763. (btProgressInfoFile): New variable.
  15764. (torrentMan): Removed.
  15765. (setBtContext): New function.
  15766. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  15767. peerStorage, btAnnounce, btProgressInfoFile.
  15768. * src/Piece.h
  15769. (toString): New function.
  15770. (Pieces): New type definition.
  15771. * src/Peer.h
  15772. (active): New variable.
  15773. (Peer): Added active.
  15774. (activate): Set active to true.
  15775. (deactivate): Set active to false.
  15776. (isActive): New function.
  15777. (Peers): New type definition.
  15778. * src/DirectDiskAdaptor.cc
  15779. (getFilePath): Use the accessor methods of FileEntry.
  15780. * src/TorrentConsoleDownloadEngine.h
  15781. (afterEachIteration): New function.
  15782. * src/TorrentConsoleDownloadEngine.cc
  15783. (haltRequested): New variable.
  15784. (sendStatistics): Use pieceStorage, btRuntime.
  15785. (afterEachIteration): New function.
  15786. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  15787. * src/Directry.h
  15788. (Directory): New function.
  15789. (DirectoryHandle): New type definition.
  15790. * src/BtProgressInfoFile.h: New file.
  15791. * src/RequestMessage.cc: Use pieceStorage.
  15792. * src/BtRuntime.h: New file.
  15793. * src/DefaultBtContext.cc: New file.
  15794. * src/BitfieldMan.h
  15795. (getCompletedLength): New function(private).
  15796. (getCompletedLength): New function.
  15797. (getFilteredCompletedLength): New function.
  15798. * src/BitfieldMan.h
  15799. (getCompletedLength): New function(private).
  15800. (getCompletedLength): New function.
  15801. (getFilteredCompletedLength): New function.
  15802. * src/MultiDiskAdaptor.cc
  15803. (mkdir): New function.
  15804. (openFile): Call mkdir().
  15805. (initAndOpenFile): Call mkdir().
  15806. * src/CancelMessage.h
  15807. (TorrentMan.h): Removed.
  15808. * src/RejectMessage.h
  15809. (TorrentMan.h): Removed.
  15810. * src/DownloadEngineFactory.cc
  15811. (DefaultPieceStorage.h): New include.
  15812. (DefaultPeerStorage.h): New include.
  15813. (DefaultBtAnnounce.h): New include.
  15814. (DefaultBtProgressInfoFile.h): New include.
  15815. (newTorrentConsoleEngine): Rewritten.
  15816. * src/ShareRatioSeedCriteria.h
  15817. (torrentMan): Removed.
  15818. (btContext): New variable.
  15819. (peerStorage): New variable.
  15820. (btRuntime): New variable.
  15821. (evaluate): Use btContext, btRuntime, peerStorage.
  15822. * src/AnnounceTier.h: New file.
  15823. * src/BtAnnounce.h: New file.
  15824. * src/BtRegistry.h: New file.
  15825. * src/PeerInitiateConnectionCommand.h: Added btContext.
  15826. * src/PeerConnection.h (TorrentMan.h): Removed.
  15827. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  15828. * src/Util.h
  15829. (slice): Added an argument.
  15830. * src/Util.cc
  15831. (slice): Added an argument to control whether trim is made or not.
  15832. * src/PeerStorage.h: New file.
  15833. * src/BtRegistry.cc: New file.
  15834. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  15835. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  15836. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  15837. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  15838. * src/TorrentRequestInfo.h
  15839. (e): Removed.
  15840. (showFileEntry): Added an argument.
  15841. (getDownloadEngine): Return 0.
  15842. * src/DefaultBtAnnounce.h: New file.
  15843. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15844. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15845. * src/PeerMessageFactory.h
  15846. (btContext): New variable.
  15847. (pieceStorage): New variable.
  15848. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15849. btAnnounce.
  15850. * src/DiskAdaptor.cc
  15851. (DiskAdaptor): Removed topDir.
  15852. (~DiskAdaptor): Removed topDir.
  15853. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15854. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15855. * src/File.h (mkdirs): New function.
  15856. * src/DefaultPeerStorage): New file.
  15857. * src/DownloadEngineFactory.h
  15858. (newTorrentConsoleEngine): Use btContext.
  15859. * src/BtContextAwareCommand.cc: New file.
  15860. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15861. * src/PeerMessage.h
  15862. (btContext): New variable.
  15863. (peerStorage): New variable.
  15864. (pieceStorage): New variable.
  15865. (setBtContext): New function.
  15866. * src/Directry.cc
  15867. (Directory): New function.
  15868. (createDir): Do nothing if name.size() == 0.
  15869. * src/AnnounceList.h
  15870. (AnnounceTier): Removed.
  15871. (AnnounceTiers): Removed.
  15872. * src/DefaultPieceStorage.h: New file.
  15873. * src/Piece.cc (toString): New function.
  15874. To fix typo:
  15875. * src/main.cc (showVersion): Fixed typo.
  15876. To fix compile warning:
  15877. * src/DelegatingPeerListProcessor.cc
  15878. (canHandle): Added "return false".
  15879. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15880. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15881. make the process of announce request testable.
  15882. * src/TrackerWatcherCommand.h
  15883. (TimeA2.h): Removed.
  15884. (interval): Removed.
  15885. (checkPoint): Removed.
  15886. (createRequestCommand): Added an argument 'url'.
  15887. (TrackerWatherCommand): Removed interval.
  15888. (createCommand): New function.
  15889. * src/DownloadEngineFactory.cc
  15890. (newTorrentConsoleEngine): Updated according to the changes in
  15891. TrackerWatherCommand.
  15892. * src/TorrentMan.cc
  15893. (DelegatingPeerListProcessor.h): New includes.
  15894. (TorrentMan): Added the initialization of announceInterval.
  15895. (isStoppedAnnounceReady): New function.
  15896. (isCompletedAnnounceReady): New function.
  15897. (isDefaultAnnounceReady): New function.
  15898. (isAnnounceReady): New function.
  15899. (getAnnounceUrl): New function.
  15900. (announceStart): New function.
  15901. (announceFailure): New function.
  15902. (announceSuccess): New function.
  15903. (isAllAnnounceFailed): New function.
  15904. (resetAnnounce): New function.
  15905. (processAnnounceResponse): New function.
  15906. (needMorePeerConnection): New function.
  15907. (noMoreAnnounce): New function.
  15908. * src/TrackerUpdateCommand.h
  15909. (getTrackerResponse): int->size_t
  15910. * src/TorrentMan.h
  15911. (isStoppedAnnounceReady): New function.
  15912. (isCompletedAnnounceReady): New function.
  15913. (isDefaultAnnounceReady): New function.
  15914. (announceInterval): New variable.
  15915. (isAnnounceReady): New function.
  15916. (getAnnounceUrl): New function.
  15917. (announceStart): New function.
  15918. (announceFailure): New function.
  15919. (announceSuccess): New function.
  15920. (isAllAnnounceFailed): New function.
  15921. (resetAnnounce): New function.
  15922. (processAnnounceResponse): New function.
  15923. (needMorePeerConnection): New function.
  15924. (noMoreAnnounce): New function.
  15925. * src/TrackerWatcherCommand.cc
  15926. (TrackerWatherCommand): Removed interval and checkPoint.
  15927. (execute): Rewritten.
  15928. (createCommand): New function.
  15929. (createRequestCommand): Rewritten.
  15930. * src/TrackerUpdateCommand.cc
  15931. (MetaFileUtil.h): Removed.
  15932. (DelegatingPeerListProcessor.h): Removed.
  15933. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15934. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15935. Request -> RequestHandle:
  15936. * src/HttpResponseCommand.h: Request->RequestHandle
  15937. * src/AbstractCommand.cc: Request->RequestHandle
  15938. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15939. * src/HttpRequestCommand.cc: Request->RequestHandle
  15940. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15941. * src/AbstractCommand.h: Request->RequestHandle
  15942. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15943. * src/HttpResponseCommand.cc: Request->RequestHandle
  15944. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15945. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15946. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15947. * src/HttpConnection.h: Request->RequestHandle
  15948. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15949. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15950. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15951. * src/DownloadCommand.h: Request->RequestHandle
  15952. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15953. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15954. * src/HttpRequestCommand.h: Request->RequestHandle
  15955. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15956. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15957. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15958. * src/HttpDownloadCommand.h: Request->RequestHandle
  15959. * src/FtpConnection.cc: Request->RequestHandle
  15960. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15961. * src/UrlRequestInfo.cc: Request->RequestHandle
  15962. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15963. * src/HttpConnection.h: Request->RequestHandle
  15964. * src/DownloadCommand.cc: Request->RequestHandle
  15965. * src/FtpConnection.h: Request->RequestHandle
  15966. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15967. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15968. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15969. * src/Request.h
  15970. (SharedHandle.h): New include.
  15971. (RequestHandle): New type definition.
  15972. (Requests): Redefined.
  15973. To add MULTITRACKER support:
  15974. * src/TrackerWatcherCommand.h
  15975. (createRequestCommand): New function.
  15976. * src/DownloadEngineFactory.cc
  15977. (newTorrentConsoleEngine): Removed req.
  15978. * src/prefs.h
  15979. (PREF_TRACKER_MAX_TRIES): New definition.
  15980. * src/TorrentMan.cc
  15981. (TorrentMan): Removed req. Added trackerNumTry.
  15982. (~TorrentMan): Removed req.
  15983. (setupInternal1): Added announceList.
  15984. * src/TorrentRequestInfo.cc
  15985. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15986. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15987. * src/main.cc
  15988. (main): Added PREF_TRACKER_MAX_TRIES.
  15989. * src/TorrentMan.h
  15990. (Request.h): Removed.
  15991. (AnnounceList.h): New include.
  15992. (trackerNumTry): New variable.
  15993. (req): Removed.
  15994. (announceList): New variable.
  15995. * src/TrackerWatcherCommand.cc
  15996. (execute): Rewritten.
  15997. (createRequestCommand): New function.
  15998. * src/TrackerUpdateCommand.cc
  15999. (execute): Updated with the use of AnnounceList.
  16000. * src/AnnounceList.cc: New class.
  16001. * src/AnnounceList.h: New class.
  16002. To fix typo:
  16003. * src/prefs.h
  16004. (PREF_MAX_TRIES): max_try->max_tries
  16005. To not to decode "+" as space in URL decode:
  16006. * src/Util.cc
  16007. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  16008. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16009. To add timeout to async name resolution:
  16010. * src/AbstractCommand.h
  16011. (nameResolveFinished): New function. This is not elegant way. It needs
  16012. to be more refined.
  16013. (nameResolverCheck): New variable.
  16014. * src/AbstractCommand.cc
  16015. (AbstractCommand): Added nameResolverCheck.
  16016. (execute): Added the check whether the name resolution has finished.
  16017. (setNameResolverCheck): Set nameResolverCheck to true.
  16018. (disableNameResolverCheck): Set nameResolverCheck to false.
  16019. (nameResolverFinished): New function.
  16020. * src/FtpInitiateConnectionCommand.h
  16021. (nameResolverFinished): New function.
  16022. * src/FtpInitiateConnectionCommand.cc
  16023. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  16024. * src/HttpInitiateConnectionCommand.h
  16025. (nameResolverFinished): New function.
  16026. * src/HttpInitiateConnectionCommand.cc
  16027. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  16028. * src/prefs.h
  16029. (PREF_DNS_TIMEOUT): New definition.
  16030. * src/main.cc
  16031. (main): Added PREF_DNS_TIMEOUT.
  16032. To add the support for a non-compact response from a tracker:
  16033. * src/PeerListProcessor.h: New class.
  16034. * src/DefaultPeerListProcessor.h: New class.
  16035. * src/DefaultPeerListProcessor.cc: New class.
  16036. * src/CompactPeerListProcessor.h: New class.
  16037. * src/CompactPeerListProcessor.cc: New class.
  16038. * src/DelegatingPeerListProcessor.h: New class.
  16039. * src/DelegatingPeerListProcessor.cc: New class.
  16040. * src/TorrentMan.cc
  16041. (addPeer): New function(overload).
  16042. (addPeer): Delete unused peers only when new peer is added.
  16043. * src/TorrentMan.h
  16044. (PeerListProcessor.h): Included.
  16045. (Peers): Removed.
  16046. (addPeer): New function(overload).
  16047. * src/TrackerUpdateCommand.cc
  16048. (netinet/in.h): Removed.
  16049. (DelegatingPeerListProcessor.h): Included.
  16050. (execute): Updated to use DelegatingPeerListProcessor.
  16051. To fix the memory leak in TorrentMan::peers:
  16052. * src/PeerAbstractCommand.cc
  16053. (onAbort): Added peer->resetStatus().
  16054. * src/Peer.h
  16055. (resetStatus): Made public.
  16056. To improve the precision of the speed calculation:
  16057. * src/SpeedCalc.h
  16058. (nextInterval): New variable.
  16059. * src/SpeedCalc.cc
  16060. (reset): Added nextInterval.
  16061. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  16062. (changeSw): Set nextInterval to 15 seconds relative to the current
  16063. instant time.
  16064. * src/main.cc
  16065. (showVersion): Updated.
  16066. (showUsage): Updated.
  16067. * Release 0.8.1
  16068. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16069. * src/main.cc
  16070. (showUsage): Commented out --min-segment-size option.
  16071. (main): Commented out --min-segment-size option.
  16072. * Release 0.8.0
  16073. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16074. * src/*.{h,cc}:
  16075. Added an exception to the license which allows linking with OpenSSL.
  16076. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16077. * src/AbstractCommand.cc
  16078. (execute): Check whether the download has finished before checking
  16079. socket status.
  16080. Return true if peerStat->getStatus() == REQUEST_IDLE.
  16081. Do not exit even if no segment is available.
  16082. * src/prefs.h
  16083. (PREF_STARTUP_IDLE_TIME): New definition.
  16084. * src/PeerInteractionCommand.cc
  16085. (executeInternal): Removed max speed limit. Because it performs bad.
  16086. (receiveMessages): Added max speed limit. This was better than above,
  16087. but still a little bit to be desired. Sometimes the download speed
  16088. became much faster than I specified.
  16089. * src/SpeedCalc.h
  16090. (start): New variable.
  16091. (accumulatedLength): New variable.
  16092. (getAvgSpeed): New function.
  16093. * src/SpeedCalc.cc
  16094. (reset): Added start, accumulatedLength.
  16095. (update): Added calculation of an average speed.
  16096. (getAvgSpeed): New function.
  16097. * src/DownloadCommand.h
  16098. (sw): Removed.
  16099. * src/main.cc
  16100. (main): Added PREF_STARTUP_IDLE_TIME.
  16101. * src/PeerStat.h
  16102. (STATUS): Added REQUEST_IDLE.
  16103. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  16104. (getAvgDownloadSpeed): New function
  16105. (requestIdle): New function.
  16106. * src/SegmentMan.h
  16107. (SegmentEntryHandle): New type definition.
  16108. (SegmentEntries): Now holds SegmentEntryHandle.
  16109. (findSlowerSegmentEntry): New funtion.
  16110. * src/SegmentMan.cc
  16111. (save): Updated according to the changes in SegmentEntries.
  16112. (read): Updated according to the changes in SegmentEntries.
  16113. (FindSegmentEntryByIndex): Updated according to the changes in
  16114. SegmentEntries.
  16115. (FindSegmentEntryByCuid): Updated according to the changes in
  16116. SegmentEntries.
  16117. (checkoutSegment): Updated according to the changes in SegmentEntries.
  16118. (onNullBitfield): Updated according to the changes in SegmentEntries.
  16119. Renamed uitr as itr.
  16120. (findSlowerSegmentEntry): New function.
  16121. (getSegment): Updated according to the changes in SegmentEntries.
  16122. Added the feature that cancels the segment with slow server and fast
  16123. one takes it over.
  16124. (cancelSegment): Updated according to the changes in SegmentEntries.
  16125. (getDownloadLength): Updated according to the changes in
  16126. SegmentEntries.
  16127. (init): Assigned 0 to bitfield after deleting it.
  16128. * src/DownloadCommand.cc
  16129. (STARTUP_IDLE_TIME): Removed.
  16130. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  16131. * src/PeerChokeCommand.cc
  16132. (optUnchokingPeer): Updated according to the changes in Peer.
  16133. (ResetDelta): Removed.
  16134. (UploadFaster): Updated according to the changes in Peer.
  16135. (DownloadFaster): Updated according to the changes in Peer.
  16136. (execute): I clarify the meaning of "upload" and "download" here.
  16137. "upload" means the transfer from localhost to remote host.
  16138. "download" means the transfer from remote host to localhost.
  16139. Based on this rule, I swapped orderByUploadRate and
  16140. orderByDownloadRate.
  16141. * src/PeerInteractionCommand.cc
  16142. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  16143. (executeInternal): Removed the argument of
  16144. peerInteraction->sendMessages().
  16145. (receiveMessages): Rewritten download speed limit.
  16146. (sendKeepAlive): Removed peerInteraction->sendMessages().
  16147. * src/HttpResponseCommand.cc
  16148. (handleDefaultEncoding): If file size is unknown in torrent request,
  16149. do not call segmentMan->initBitfield() here.
  16150. Disabled persistent connection feature in torrent request.
  16151. * src/UrlRequestInfo.h
  16152. (UrlRequestInfo): Removed const qualifier from option.
  16153. * src/TorrentMan.h
  16154. (TransferStat): New class.
  16155. (deltaDownloadLength): Removed.
  16156. (deltaUploadLength): Removed.
  16157. (addDeltaDownloadLength): Removed.
  16158. (getDeltaDownloadLength): Removed.
  16159. (resetDeltaDownloadLength): Removed.
  16160. (addDeltaUploadLength): Removed.
  16161. (getDeltaUploadLength): Removed.
  16162. (resetDeltaUploadLength): Removed.
  16163. (addActivePeer): Added peer->activate().
  16164. (deleteActivePeer): Added peer->deactivate().
  16165. (calculateStat): New function.
  16166. * src/TorrentMan.cc
  16167. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  16168. (calculateStat): New function.
  16169. * src/PeerInteraction.h
  16170. (uploadLimit): Removed.
  16171. (option): New variable.
  16172. (setUploadLimit): Removed.
  16173. (getUploadSpeed): Removed.
  16174. (sendMessages): Removed the argument "currentUploadSpeed".
  16175. * src/PeerInteraction.cc
  16176. (prefs.h): Included.
  16177. (PeerInteraction): Removed uploadLimit. Added option.
  16178. (sendMessages): Rewritten upload speed limit.
  16179. (sendHandshake): Removed the argument from sendMessages().
  16180. (sendBitfield): Removed the argument from sendMessages().
  16181. * src/PeerAbstractCommand.cc
  16182. (execute): Commented out the portion of upload limit.
  16183. (onAbort): Removed peer->resetStatus().
  16184. * src/TorrentRequestInfo.cc
  16185. (timeoutSpecified): Declared extern.
  16186. (execute): Set timeout to 180 if timeout is not specified by.
  16187. command-line.
  16188. * src/PieceMessage.cc
  16189. (receivedAction): Added peer->updateDownloadLength().
  16190. Removed peer->addPeerUpload().
  16191. Removed torrentMan->addDeltaDownloadLength().
  16192. (send): Added peer->updateUploadLength().
  16193. Removed peer->addPeerDownload().
  16194. Removed torrentMan->addDeltaUploadLength().
  16195. * src/main.cc
  16196. (timeoutSpecified): New variable.
  16197. (main): Set timeoutSpecified to false.
  16198. If the command-line option "--upload-limit" is specified, then
  16199. timeoutSpecified is set to true. This option will remain in the next
  16200. release, but be deprecated in the future release.
  16201. * src/TorrentRequestInfo.h
  16202. (TorrentRequestInfo): Removed const qualifier from op.
  16203. * src/PeerStat.h
  16204. (uploadSpeed): New variable.
  16205. (PeerStat): Added default value to cuid.
  16206. (calculateUploadSpeed): New function.
  16207. (updateUploadLength): New function.
  16208. (getMaxUploadSpeed): New function.
  16209. (getAvgUploadSpeed): New function.
  16210. (reset): Added uploadSpeed. Set status to IDLE.
  16211. * src/TorrentDownloadEngine.h
  16212. (cp): Declared as Time.
  16213. (sessionDownloadLengthArray): Removed.
  16214. (sessionUploadLengthArray): Removed.
  16215. (currentCp): Removed.
  16216. (lastCalcStat): New variable
  16217. (lastElapsed): Removed.
  16218. (sessionDownloadLength): Removed.
  16219. (calculateStat): New function.
  16220. * src/TorrentDownloadEngine.cc
  16221. (initStatistics): Removed lastElapsed, cp[],
  16222. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  16223. currentCp, sessionDownloadLength.
  16224. Added cp.reset() and lastCalcStat.reset().
  16225. (calculateSpeed): Changed the name of the argument.
  16226. (calculateStatistics): Rewritten.
  16227. (calculateStat): New function.
  16228. * src/Peer.h
  16229. (PeerStat.h): Included.
  16230. (peerUpload): Removed.
  16231. (peerDownload): Removed.
  16232. (peerStat): New variable.
  16233. (sessionUploadLength): New variable.
  16234. (sessionDownloadLength): New variable.
  16235. (deltaUpload): Removed.
  16236. (deltaDownload): Removed.
  16237. (resetStatus): Made private.
  16238. (Peer): Added sessionUploadLength, sessionDownloadLength.
  16239. Removed peerUpload, peerDownload.
  16240. (updateUploadLength): New function.
  16241. (addDeltaUpload): Removed.
  16242. (updateDownloadLength): New function.
  16243. (resetDeltaUpload): Removed.
  16244. (getDeltaUpload): Removed.
  16245. (addDeltaDownload): Removed.
  16246. (calculateUploadSpeed): New function.
  16247. (resetDeltaDownload): Removed.
  16248. (getDeltaDownload): Removed.
  16249. (calculateDownloadSpeed): New function.
  16250. (getSessionUploadLength): New function.
  16251. (getSessionDownloadLength): New function.
  16252. (activate): New function.
  16253. (deactivate): New function.
  16254. (addPeerUpload): Removed.
  16255. (setPeerUpload): Removed.
  16256. (getPeerUpload): Removed.
  16257. (addPeerDownload): Removed.
  16258. (setPeerDownload): Removed.
  16259. (getPeerDownload): Removed.
  16260. * src/Peer.cc
  16261. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  16262. * src/MetalinkRequestInfo.h
  16263. (MetalinkRequestInfo): Removed const qualifier from op.
  16264. * src/RequestInfo.h
  16265. (op): Removed const qualifier.
  16266. (RequestInfo): Removed const qualifier from op.
  16267. * src/prefs.h
  16268. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  16269. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  16270. * src/PeerInteractionCommand.cc
  16271. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  16272. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  16273. * src/PeerInteraction.cc
  16274. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  16275. * src/main.cc
  16276. (showUsage): Updated the description of "--lowest-speed-limit" option.
  16277. Added the description of "--max-download-limit" option.
  16278. Removed the description of "--upload-limit" option.
  16279. Added the description of "--max-upload-limit" option.
  16280. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  16281. Added "--max-download-limit" option and "--max-upload-limit" option.
  16282. Added the warning message if "--upload-limit" option is used.
  16283. * src/DownloadCommand.cc
  16284. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  16285. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16286. To rewrite segment download mechanism for HTTP/FTP download.
  16287. Use BitfieldMan to manage segment download.
  16288. * src/HttpResponseCommand.h
  16289. (executeInternal): Pass the reference of segment.
  16290. * src/AbstractCommand.cc
  16291. (prepareForRetry): Call segmentMan->cancelSegment here.
  16292. (onAbort): Call segmentMan->cancelSegment here.
  16293. * src/HttpDownloadCommand.cc
  16294. (prepareForNextSegment): New function.
  16295. * src/DownloadEngineFactory.cc
  16296. (newConsoleEngine): Removed splitter.
  16297. (newTorrentConsoleEngine): Removed splitter.
  16298. * src/Request.h
  16299. (segment): Renamed from seg.
  16300. * src/FtpInitiateConnectionCommand.h
  16301. (executeInternal): Pass the reference of segment.
  16302. * src/AbstractCommand.h
  16303. (executeInternal): Pass the reference of segment.
  16304. * src/pref.h
  16305. (PREF_SEGMENT_SIZE): New definition.
  16306. * src/HttpProxyRequestCommand.h
  16307. (executeInternal): Pass the reference of segment.
  16308. * src/HttpResponseCommand.cc
  16309. (checkResponse): Allowed status 206 when a request range starts 0.
  16310. (handleDefaultEncoding): Rewritten the code related to Segment.
  16311. (handleOtherEncoding): Rewritten the code related to Segment.
  16312. * src/SegmentMan.h
  16313. (SegmentEntry): New class.
  16314. (SegmentEntries): New type definition.
  16315. (bitfield): New variable.
  16316. (usedSegmentEntries): New variable.
  16317. (onNullBitfield): New function.
  16318. (checkoutSegment): New function.
  16319. (segments): Removed.
  16320. (splitter): Removed.
  16321. (unregisterId): Removed.
  16322. (getSegment): New function(overload)
  16323. (getDownloadedSize): Removed.
  16324. (cancelSegment): New function.
  16325. (completeSegment): New function.
  16326. (initBitfield): New function.
  16327. (hasSegment): New function.
  16328. (getDownloadLength): New function.
  16329. * src/BitfieldMan.h
  16330. (getStartIndex): New function.
  16331. (getEndIndex): New function.
  16332. (getMissingUnusedIndex): New function(overload).
  16333. (getSparseMissingUnusedIndex): New function.
  16334. * src/BitfieldMan.cc
  16335. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  16336. (getMissingUnusedIndex): New function(overload).
  16337. (Range): New class.
  16338. (getStartIndex): New function.
  16339. (getEndIndex): New function.
  16340. (getSparseMissingUnusedIndex): New function.
  16341. (isBitSetInternal): Return false if the given index is less than 0.
  16342. * src/HttpInitiateConnectionCommand.h
  16343. (executeInternal): Pass the reference of segment.
  16344. * src/FtpNegotiateCommand.h
  16345. (executeInternal): Pass the reference of segment.
  16346. * src/FtpNegotiateCommand.cc
  16347. (recvSize): Initialize bitfield here.
  16348. * src/FtpTunnelResponseCommand.h
  16349. (executeInternal): Pass the reference of segment.
  16350. * src/HttpConnection.cc
  16351. (createRequest): Rewritten range header processing.
  16352. * src/DownloadCommand.h
  16353. (executeInternal): Pass the reference of segment.
  16354. (prepareForRetry): Removed.
  16355. (prepareForNextSegment): Added an argument segment. Made it a virtual
  16356. function.
  16357. * src/main.cc
  16358. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  16359. * src/SegmentMan.cc
  16360. (SegmentMan): Added bitfield. Removed splitter.
  16361. (~SegmentMan): Added bitfield. Removed splitter.
  16362. (unregisterId): Removed.
  16363. (getSegment): Rewritten.
  16364. (updateSegment): Rewritten.
  16365. (save): Rewritten.
  16366. (read): Rewritten.
  16367. (finished): Rewritten.
  16368. (getDownloadedSize): Removed.
  16369. (initBitfield): New function.
  16370. (FindSegmentEntryByIndex): New function object.
  16371. (FindSegmentEntryByCuid): New function object.
  16372. (checkoutSegment): New function.
  16373. (onNullBitfield): New function.
  16374. (getSegment): New function(overload).
  16375. (CancelSegment): New function object.
  16376. (cancelSegment): New function.
  16377. (completeSegment): New function.
  16378. (hasSegment): New function.
  16379. (getDownloadLength): New function.
  16380. * src/FtpInitiateConnectionCommand.cc
  16381. (executeInternal): Load .aria2 file after hostname resolution finishes.
  16382. * src/Segment.h: Rewritten.
  16383. * src/Segment.cc (operator<<): New function.
  16384. * src/HttpDownloadCommand.h
  16385. (prepareForNextSegment): New function.
  16386. * src/Request.cc
  16387. (resetUrl): Made segment null.
  16388. * src/DownloadEngine.cc
  16389. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  16390. * src/HttpProxyRequestCommand.h
  16391. (executeInternal): Pass the reference of segment.
  16392. * src/DownloadCommand.cc
  16393. (executeInternal): Rewritten the code related to Segment.
  16394. (prepareForRetry): Removed.
  16395. (prepareForNextSegment): Rewritten.
  16396. * src/FtpTunnelResponseCommand.h
  16397. (executeInternal): Pass the reference of segment.
  16398. To add HTTP 1.1 persistent connection support(experimental)
  16399. * src/HttpRequestCommand.cc
  16400. (executeInternal): Disable keep alive if it is disabled by
  16401. configuration.
  16402. * src/Request.h
  16403. (keepAlive): New variable.
  16404. (isKeepAlive): New function.
  16405. (setKeepAlive): New function.
  16406. * src/pref.h
  16407. (PREF_HTTP_KEEP_ALIVE): New definition.
  16408. * src/HttpResponseCommand.cc
  16409. (executeInternal): Check the remote server supports keep alive.
  16410. * src/HttpConnection.cc
  16411. (createRequest): Send "Connection: close" only if keep alive is
  16412. disabled.
  16413. * src/main.cc
  16414. (main):
  16415. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  16416. To add max download speed limit:
  16417. * src/pref.h
  16418. (PREF_MAX_SPEED_LIMIT): New definition.
  16419. * src/PeerInteractionCommand.cc
  16420. (executeInternal): Added max download speed limit. Not tested yet.
  16421. * src/SegmentMan.h
  16422. (PeerStats): New type definition.
  16423. (peerStats): New variable.
  16424. (registerPeerStat): New function.
  16425. (FindPeerStat): New function object.
  16426. (getPeerStat): New function.
  16427. (calculateDownloadSpeed): New function.
  16428. * src/SpeedCalc.h: New class.
  16429. * src/SpeedCalc.cc: New class.
  16430. * src/main.cc
  16431. (main):
  16432. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  16433. download speed is not restricted).
  16434. * src/PeerStat.h: New class.
  16435. * src/SegmentMan.cc
  16436. (registerPeerStat): New function.
  16437. (calculateDownloadSpeed): New function.
  16438. * src/DownloadCommand.cc
  16439. (STARTUP_IDLE_TIME): New definition.
  16440. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  16441. downloadStart.
  16442. (~DownloadCommand): Call peerStat->downloadStop.
  16443. (executeInternal): Added download speed limitter. Rewritten lowest
  16444. speed limitter.
  16445. * src/HttpConnection.cc
  16446. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  16447. * src/AbstractCommand.cc
  16448. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  16449. Added hostname to the error message.
  16450. * src/ConsoleDownloadEngine.cc
  16451. (calculateStatistics): Initialize psize with dlSize.
  16452. * src/PieceMessage.cc
  16453. (receivedAction): Do not call peerInteraction->abortPiece here.
  16454. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  16455. * src/BitfieldMan.h
  16456. (clearAllUseBit): New function.
  16457. (setAllUseBit): New function.
  16458. * src/BitfieldMan.cc
  16459. (clearAllBit): Do not clear useBitfield here.
  16460. (clearAllUseBit): New function.
  16461. (setAllUseBit): New function.
  16462. * src/Piece.cc
  16463. (clearAllBlock): Call bitfield->clearAllUseBit().
  16464. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16465. To make filename URL-decoded:
  16466. * src/HttpResponseCommand.h: Updated doc.
  16467. * src/HttpResponseCommand.cc
  16468. (determinFilename): Made filename URL-decoded.
  16469. * src/FtpInitiateConnectionCommand.cc
  16470. (executeInternal): Made filename URL-decoded.
  16471. * src/Util.h (urldecode): New function.
  16472. * src/Util.cc (urldecode): New function.
  16473. To fix a bug that caused assertion failure in ares_strerror:
  16474. * src/NameResolver.cc (callback): Fixed the bug.
  16475. * Release 0.7.3
  16476. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16477. To add --seed-time and --seed-ratio command-line option:
  16478. * src/Option.h (getAsDouble): New function.
  16479. * src/Option.cc (getAsDouble): New function.
  16480. * src/SeedCheckCommand.h: New class.
  16481. * src/SeedCheckCommand.cc: New class.
  16482. * src/DownloadEngineFactory.cc
  16483. (SeedCheckCommand.h): Included.
  16484. (UnionSeedCriteria.h): Included.
  16485. (TimeSeedCriteria.h): Included.
  16486. (ShareRatioSeedCriteria.h): Included.
  16487. (newTorrentConsoleEngine): Added the processing of seed option.
  16488. * src/SeedCriteria.h: New class.
  16489. * src/ShareRatioSeedCriteria.h: New class.
  16490. * src/TimeSeedCriteria.h: New class.
  16491. * src/UnionSeedCriteria.h: New class.
  16492. * src/prefs.h
  16493. (PREF_SEED_TIME): New definition.
  16494. (PREF_SEED_RATIO): New definition.
  16495. * src/main.cc
  16496. (showUsage): Added --seed-time and --seed-ratio option.
  16497. (main): Added --seed-time and --seed-ratio option.
  16498. Made default log file name "/dev/null".
  16499. * src/SharedHandle.h
  16500. (SharedHandle): Copy constructor. Made it assignable from the
  16501. SharedHandle of the subclasses.
  16502. (operator=): Made it assignable from the SharedHandle of the
  16503. subclasses.
  16504. (getRefCount): New function.
  16505. To add notice log level and the switch to write log to stdout. This
  16506. switch is configurable per log level.
  16507. * src/Logger.h
  16508. (notice): New function.
  16509. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  16510. constant.
  16511. * src/LogFactory.cc
  16512. (getInstance): The use of NullLogger was removed. A log message with
  16513. notice log level was made written to stdout along with log file.
  16514. * src/NullLogger.h
  16515. (notice): New function.
  16516. * src/SimpleLogger.h
  16517. (writeHeader): Added the 'file' argument.
  16518. (writeLog): Added the 'file' argument.
  16519. (writeFile): New function.
  16520. (stdoutField): New variable.
  16521. (SimpleLogger): Removed the default constructor.
  16522. (SimpleLogger): Made the default value of logfile 0.
  16523. (debug): Added 'virtual' keyword.
  16524. (info): Added 'virtual' keyword.
  16525. (warn): Added 'virtual' keyword.
  16526. (error): Added 'virtual' keyword.
  16527. (notice): New function.
  16528. (setStdout): New function.
  16529. * src/SimpleLogger.cc
  16530. (WRITE_LOG): Replaced writeLog with writeFile.
  16531. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  16532. (SimpleLogger): Removed the default constructor.
  16533. (setStdout): New function.
  16534. (writeLog): Added the handling of NOTICE log level.
  16535. (writeFile): New function.
  16536. (notice): New function.
  16537. * src/TorrentMan.h: Updated doc.
  16538. * src/BitfieldMan.h: Updated doc.
  16539. * src/TrackerWatcherCommand.cc
  16540. (execute): Return true if error occurred in the request to the tracker
  16541. and halt is requested.
  16542. * src/TrackerUpdateCommand.cc
  16543. (execute): Return true if error occurred in the request to the tracker
  16544. and halt is requested.
  16545. To call onDownloadComplete from TorrentMan::completePiece(), not from
  16546. DownloadEngine:
  16547. * src/TorrentConsoleDownloadEngine.h
  16548. (onSelectiveDownloadingCompletes): Removed.
  16549. * src/TorrentConsoleDownloadEngine.cc
  16550. (onSelectiveDownloadingCompletes): Removed.
  16551. * src/TorrentDownloadEngine.h
  16552. (onEndOfRun): Added 'virtual' keyword.
  16553. (afterEachIteration): Removed.
  16554. (onSelectiveDownloadingCompletes): Removed.
  16555. * src/TorrentDownloadEngine.cc
  16556. (onEndOfRun): Removed filenameFixed.
  16557. (afterEachIteration): Removed.
  16558. * src/TorrentMan.cc
  16559. (completePiece): Call onDownloadComplete here.
  16560. (onDownloadComplete): Added 2 log messages.
  16561. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16562. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  16563. * src/NameResolver.h: Added the prototype declaration of callback().
  16564. To support c-ares library:
  16565. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16566. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16567. * src/FtpInitiateConnectionCommand.h:
  16568. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16569. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16570. * src/HttpInitiateConnectionCommand.h:
  16571. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16572. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  16573. Added thes upport of c-ares's ares_strerror(the idea came from patch
  16574. #1542285 by tizianomueller)
  16575. * src/HttpInitiateConnectionCommand.cc:
  16576. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16577. * src/FtpInitiateConnectionCommand.cc:
  16578. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16579. * src/DownloadEngine.h:
  16580. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16581. * src/DownloadEngine.cc:
  16582. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16583. To fix the bug that causes compilation failure with metalink-support
  16584. disabled(bug#1543587):
  16585. * src/main.cc: Fixed with the patch by tizianomueller.
  16586. * Release 0.7.2
  16587. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16588. * src/main.cc
  16589. (main): Added a message to inform users that aria2 is starting to
  16590. verify checksum.
  16591. * src/RequestInfo.cc
  16592. (printDownloadAbortMessage): Added a message to inform users that
  16593. transfer can be resumed.
  16594. * src/FeatureConfig.cc
  16595. (FEATURE_ASYNC_DNS): New definition.
  16596. (FeatureConfig): Added aysnc DNS entry.
  16597. To replace CommandUuid with Command* in SocketEntry and
  16598. NameResolverEntry:
  16599. * src/DownloadEngine.h
  16600. (CommandUuids): Removed.
  16601. (SocketEntry::commandUuid): Removed.
  16602. (SocketEntry::command): New variable.
  16603. (SocketEntry::SocketEntry): Updated.
  16604. (SocketEntry::operator==): Updated.
  16605. (NameResolverEntry::commandUuid): Removed.
  16606. (NameResolverEntry::command): New variable.
  16607. (NameResolverEntry::NameResolverEntry): Updated.
  16608. (NameResolverEntry::operator==): Updated.
  16609. (waitData): Changed the argument type.
  16610. (addSocketForReadCheck): Changed the argument type.
  16611. (deleteSocketForReadCheck): Changed the argument type.
  16612. (addSocketForWriteCheck): Changed the argument type.
  16613. (deleteSocketForWriteCheck): Changed the argument type.
  16614. (addNameResolverCheck): Changed the argument type.
  16615. (deleteNameResolverCheck): Changed the argument type.
  16616. * src/DownloadEngine.cc
  16617. (FindCommand): Removed.
  16618. (run): Removed activeUuid. Added activeCommands instead.
  16619. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  16620. (AccumulateActiveCommand): New function object.
  16621. (waitData): Use AccumulateActiveCommand.
  16622. (addSocketForReadCheck): Use Command instead of CommandUuid.
  16623. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  16624. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  16625. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  16626. (addNameResolverCheck): Use Command instead of CommandUuid.
  16627. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  16628. * src/AbstractCommand.cc
  16629. (disableReadCheckSocket): Updated according to the changes in
  16630. DownloadEngine.
  16631. (setReadCheckSocket): Updated according to the changes in
  16632. DownloadEngine.
  16633. (disableWriteCheckSocket): Updated according to the changes in
  16634. DownloadEngine.
  16635. (setWriteCheckSocket): Updated according to the changes in
  16636. DownloadEngine.
  16637. (setNameResolverCheck): Updated according to the changes in
  16638. DownloadEngine.
  16639. (disableNameResolverCheck): Updated according to the changes in
  16640. DownloadEngine.
  16641. * src/AbstractCommand.cc
  16642. (disableReadCheckSocket): Updated according to the changes in
  16643. DownloadEngine.
  16644. (setReadCheckSocket): Updated according to the changes in
  16645. DownloadEngine.
  16646. (disableWriteCheckSocket): Updated according to the changes in
  16647. DownloadEngine.
  16648. (setWriteCheckSocket): Updated according to the changes in
  16649. DownloadEngine.
  16650. * release 0.7.1
  16651. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16652. To handle the case where some BitTorrent tracker requires all letters
  16653. except for [A-Za-z0-9] is URL encoded.
  16654. * src/Util.h
  16655. (torrentUrlencode): New function.
  16656. * src/Util.cc
  16657. (ctype.h): Included.
  16658. (torrentUrlencode): New function.
  16659. * src/TrackerWatcherCommand.cc
  16660. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  16661. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16662. To add asynchronous DNS support(libares):
  16663. * src/AbstractCommand.h
  16664. (setNameResolverCheck): New function.
  16665. (disableNameResolverCheck): New function
  16666. (resolveHostname): New function.
  16667. * src/AbstractCommand.cc
  16668. (setNameResolverCheck): New function.
  16669. (disableNameResolverCheck): New function
  16670. (resolveHostname): New function.
  16671. * src/FtpInitiateConnectionCommand.h
  16672. (nameResolver): New function.
  16673. * src/FtpInitiateConnectionCommand.cc
  16674. (Util.h): Included.
  16675. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  16676. disableWriteCheckSocket.
  16677. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  16678. (executeInternal): Added async DNS support.
  16679. * src/HttpInitiateConnectionCommand.h
  16680. (nameResolver): New function.
  16681. * src/HttpInitiateConnectionCommand.cc
  16682. (DlRetryEx.h): Included.
  16683. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  16684. disableWriteCheckSocket.
  16685. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  16686. (executeInternal): Added async DNS support.
  16687. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  16688. by extern "C" declaration.
  16689. * src/NameResolver.cc: New class.
  16690. * src/Util.h:
  16691. (isNumberAndDotsNotation): New function
  16692. * src/Util.cc
  16693. (isNumberAndDotsNotation): New function.
  16694. * src/DownloadEngine.h
  16695. (NameResolver.h): Included.
  16696. (NameResolverEntry): New class.
  16697. (NameResolverEntries): New type definition.
  16698. (addNameResolverCheck): New function.
  16699. (deleteNameResolverCheck): New function.
  16700. * src/DownloadEngine.cc
  16701. (run): Initialize cp with 0.
  16702. (SetDescriptor::operator()): Added for NameResolverEntry.
  16703. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  16704. (waitData): Check nameResolver entries.
  16705. (updateFdSet): Update fds in nameResolver entries.
  16706. (addNameResolverCheck): New function.
  16707. (deleteNameResolverCheck): new function.
  16708. * src/PeerInteractionCommand.cc
  16709. (executeInternal): Fixed wrong socket handling.
  16710. * src/main.cc
  16711. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  16712. * src/Util.cc
  16713. (fileChecksum): Removed the call to ctx.digestReset().
  16714. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16715. * po/ru.po: Azamat sent me Russian translation.
  16716. * src/FtpNegotiateCommand.cc
  16717. (recvGreeting): Call disableWriteCheckSocket just after
  16718. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  16719. (recvRetr): Recognized status code 125 as a acceptable response code.
  16720. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  16721. case-insesitive filesystem(BUG#1531057).
  16722. * src/Time.h: Renamed as TimeA2.h.
  16723. * src/Time.cc: Renamed as TimeA2.cc.
  16724. * src/TimeA2.h: New class.
  16725. * src/TimeA2.cc: New class.
  16726. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  16727. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  16728. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  16729. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  16730. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  16731. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16732. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  16733. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  16734. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  16735. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16736. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  16737. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  16738. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  16739. * release 0.7.0
  16740. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16741. * src/PeerChokeCommand.h
  16742. (PeerChokeCommand): Rearranged the arguments.
  16743. * src/PeerChokeCommand.cc
  16744. (PeerChokeCommand): Rearranged the arguments.
  16745. * src/MetalinkEntry.h
  16746. (Checksum.h): Included.
  16747. (md5): Removed.
  16748. (sha1): Removed.
  16749. (checksum): New variable.
  16750. (operator=): Updated.
  16751. (check): Removed.
  16752. * src/prefs.h
  16753. (PREF_LOWEST_SPEED_LIMIT): New definition.
  16754. (PREF_FOLLOW_TORRENT): New definition.
  16755. (PREF_SELECT_FILE): New definition.
  16756. (PREF_FOLLOW_METALINK): New definition.
  16757. * src/MetalinkResource.h
  16758. (TYPE_HTTPS): Added to enum TYPE.
  16759. * src/TorrentMan.cc
  16760. (~TorrentMan): Rewritten.
  16761. * src/MultiDiskWriter.cc
  16762. (MultiDiskAdaptor): Updated according to the changes in
  16763. MessageDigestContext.
  16764. (~MultiDiskAdaptor): Updated according to the changes in
  16765. MessageDigestContext.
  16766. (hashUpdate): Updated according to the changes in MessageDigestContext.
  16767. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16768. * src/Util.h
  16769. (fileChecksum): Updated according to the changes in
  16770. MessageDigestContext.
  16771. * src/Util.cc
  16772. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16773. (fileChecksum): Updated according to the changes in
  16774. MessageDigestContext.
  16775. * src/messageDigest.h: Rewritten.
  16776. * src/MetalinkEntry.cc
  16777. (check): Removed.
  16778. (Supported): Updated.
  16779. (dropUnsupportedResource): Fixed a memory leak.
  16780. * src/ShaVisitor.cc
  16781. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  16782. (~ShaVisitor): Updated according to the changes in
  16783. MessageDigestContext.
  16784. (visit): Updated according to the changes in MessageDigestContext.
  16785. * src/main.cc
  16786. (main): Rewritten the portion of download loop. --lowest-speed-limit
  16787. command-line option added.
  16788. * src/DownloadEngine.h
  16789. (SocketEntry): New class.
  16790. (SocketEntries): New definition.
  16791. (PairFind): Removed.
  16792. (SockCmdMap): Removed.
  16793. * src/DownloadEngine.cc
  16794. (DownloadEngine): Rewritten.
  16795. (~DownloadEngine): Rewritten.
  16796. (run): Renamed activeCommandUuids as activeUuids.
  16797. (SetDescriptor): Rewritten.
  16798. (AccumulateActiveCommandUuid): Removed.
  16799. (AccumulateActiveUuid): New function object.
  16800. (waitData): Rewritten.
  16801. (updateFdSet): Rewritten.
  16802. (addSocket): Rewritten.
  16803. (deleteSocket): Rewritten.
  16804. (addSocketForReadCheck): Rewritten.
  16805. (deleteSocketForReadCheck): Rewritten.
  16806. (addSocketForWriteCheck): Rewritten.
  16807. (deleteSocketForWriteCheck): Rewritten.
  16808. * src/Xml2MetalinkProcessor.cc
  16809. (getEntry): Rewritten the portion of MetalinkEntry creation.
  16810. * src/DownloadCommand.cc
  16811. (executeInternal): Added the check routine for lowest speed limit.
  16812. * src/AbstractDiskWriter.cc
  16813. (AbstractDiskWriter): Updated according to the changes in
  16814. MessageDigestContext.
  16815. (~AbstractDiskWriter): Updated according to the changes in
  16816. MessageDigestContext.
  16817. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16818. * src/RequestInfo.h: New class.
  16819. * src/UrlRequestInfo.h: New class.
  16820. * src/UrlRequestInfo.cc: New class.
  16821. * src/TorrentRequestInfo.h: New class.
  16822. * src/TorrentRequestInfo.cc: New class.
  16823. * src/MetalinkRequestInfo.h: New class.
  16824. * src/MetalinkRequestInfo.cc: New class.
  16825. * src/Checksum.h: New class.
  16826. * src/DownloadEngineFactory.h: New class.
  16827. * src/DownloadEngineFactory.cc: New class.
  16828. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16829. * src/Option.h
  16830. (getAsBool): New function.
  16831. * src/Option.cc
  16832. (prefs.h): Included.
  16833. (defined): 0-length value is now recognized as undefined.
  16834. (getAsInt): Rewritten.
  16835. (getAsLLInt): Rewritten.
  16836. (getAsBool): New function.
  16837. * src/FeatureConfig.h: Rewritten.
  16838. * src/FeatureConfig.cc: Rewritten.
  16839. * src/prefs.h
  16840. (PREF_STDOUT_LOG): New definition.
  16841. (PREF_LOG): New definition.
  16842. (PREF_DIR): New definition.
  16843. (PREF_OUT): New definition.
  16844. (PREF_SPLIT): New definition.
  16845. (PREF_DAEMON): New definition.
  16846. (PREF_REFERER): New definition.
  16847. (PREF_TORRENT_FILE): New definition.
  16848. (PREF_LISTEN_PORT): New definition.
  16849. (PREF_METALINK_FILE): New definition.
  16850. (PREF_METALINK_VERSION): New definition.
  16851. (PREF_METALINK_LANGUAGE): New definition.
  16852. (PREF_METALINK_OS): New definition.
  16853. (PREF_METALINK_SERVERS): New definition.
  16854. * src/main.cc
  16855. (main): Following command-line parameters are now put into Option
  16856. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16857. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16858. metalinkLanguage, metalinkOs, metalinkServers
  16859. To fix the bug that aria2 can not handle http response header properly.
  16860. * src/HttpHeader.cc
  16861. (put): Made name lowercased.
  16862. (defined): Made name lowercased.
  16863. (getFirst): Made name lowercased.
  16864. (get): Made name lowercased.
  16865. (getFirstAsInt): Rewritten.
  16866. (getFirstAsLLInt): Rewritten.
  16867. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16868. * src/TorrentMan.h:
  16869. (advertisePiece): Updated doc.
  16870. (getAdvertisedPieceIndexes): Updated doc.
  16871. (removeAdvertisedPiece); New function.
  16872. * src/TorrentMan.cc
  16873. (FindElapsedHave): New function object.
  16874. (removeAdvertisedPiece): New function.
  16875. * src/HaveEraseCommand.h: New class.
  16876. * src/HaveEraseCommand.cc: New class.
  16877. * src/FeatureConfig.h: New class.
  16878. * src/FeatureConfig.cc: New class.
  16879. * src/Request.h
  16880. (defaultPorts): Removed.
  16881. * src/Request.cc
  16882. (FeatureConfig.h): Included.
  16883. (Request): Removed the statements related to defaultPorts.
  16884. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16885. A default port number is now retrieved from FeatureConfig.
  16886. * src/main.cc
  16887. (HaveEraseCommand.h): Included.
  16888. (showVersion): Added the output of feature list.
  16889. (main): Added HaveEraseCommand to command queue in BitTorrent
  16890. downloading.
  16891. * src/PeerInteractionCommand.h
  16892. (chokeCheckPoint): Commented out.
  16893. (periodicExecPoint): New variable.
  16894. * src/PeerInteractionCommand.cc
  16895. (executeInternal): Following methods are now called in at least every
  16896. 0.5 seconds to reduce CPU usage:
  16897. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16898. checkHave(), sendKeepAlive().
  16899. (checkLongTimePeerChoking): Commented out.
  16900. * src/BitfieldMan.h
  16901. (getNthBitIndex): Changed the method signature.
  16902. (getMissingIndexRandomly): Changed the method signature.
  16903. * src/BitfieldMan.cc
  16904. (getNthBitIndex): Rewritten
  16905. (getMissingIndexRandomly): Rewritten.
  16906. (hasMissingPiece): Rewritten.
  16907. (getMissingIndex): Refactored.
  16908. (getMissingUnusedIndex); Refactored.
  16909. (getMissingIndex): Refactored.
  16910. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16911. * src/PeerMessage.h
  16912. (Piece.h): Included.
  16913. (SharedHandle.h): Included.
  16914. (invalidate): New variable.
  16915. (uploading): New variable.
  16916. (isInvalidate): New function.
  16917. (isUploading): New function.
  16918. (onPush): New function.
  16919. (onChoked): New function.
  16920. (onCanceled): New function.
  16921. (onAbortPiece): New function.
  16922. (PeerMessageHandle): New type definition.
  16923. * src/PeerMessage.cc
  16924. (PeerMessage): Added the initialization for invalidate and uploading.
  16925. * src/CancelMessage.h
  16926. (CancelMessage): Rewritten.
  16927. * src/RejectMessage.h
  16928. (RejectMessage): Rewritten.
  16929. * src/Metalinker.h
  16930. (operator=): Defined.
  16931. * src/MetaEntry.h
  16932. (operator=): Defined.
  16933. * src/MetalinkResource.h
  16934. (operator=): Defined.
  16935. * src/AllowedFastMessage.h
  16936. (AllowedFastMessage): Rewritten.
  16937. * src/HandshakeMessage.h
  16938. (HandshakeMessage): New function(overload).
  16939. * src/HandshakeMessage.cc
  16940. (HandshakeMessage): Rewritten.
  16941. (init): New function.
  16942. * src/HaveMessage.h
  16943. (HaveMessage): Rewritten.
  16944. * src/Time.h
  16945. (operator=): Defined the function body here.
  16946. * src/Time.cc
  16947. (operator=): Removed.
  16948. * src/SocketCore.h
  16949. (operator==): Defined here.
  16950. (operator!=): Defined here.
  16951. (operator<): Defined here.
  16952. * src/SocketCore.cc
  16953. (operator==): Removed.
  16954. (operator<): Removed.
  16955. * src/BitfieldMan.h
  16956. (operator=): Defined the function body here.
  16957. * src/BitfieldMan.cc
  16958. (operator=): Removed.
  16959. * src/TorrentMan.h
  16960. (deleteErrorPeer): Removed.
  16961. (deleteUnusedPeer); New function.
  16962. * src/TorrentMan.cc
  16963. (addPeer): Call deleteUnusedPeer.
  16964. (deleteErrorPeer): Removed.
  16965. (deleteUnusedPeer): New function.
  16966. * src/PeerAbstractCommand.h
  16967. (setNoCheck): New function.
  16968. (noCheck): New variable.
  16969. * src/PeerAbstractCommand.cc
  16970. (PeerAbstractCommand): Added the initialization of noCheck.
  16971. (execute): Added a check for noCheck.
  16972. (setNoCheck): New function.
  16973. * src/Util.h
  16974. (stdio.h): Included.
  16975. * src/Util.cc
  16976. (unistd.h): Included.
  16977. * src/DefaultDiskWriter.cc
  16978. (unistd.h): Included.
  16979. * src/Peer.h
  16980. (operator==): Defined the function body here.
  16981. (operator!=): Defined the function body here.
  16982. * src/Peer.cc
  16983. (operator==): Removed.
  16984. (operator!=): Removed.
  16985. * src/Piece.h
  16986. (Piece): Defined the function body here(copy constructor).
  16987. (operator=): Defined the function body here.
  16988. (operator==): Defined the function body here.
  16989. * src/Piece.cc
  16990. (Piece): Removed(copy constructor).
  16991. (operator=): Removed.
  16992. (operator==): Removed.
  16993. * src/PeerMessageUtil.h
  16994. (ChokeMessage.h): Removed.
  16995. (UnchokeMessage.h): Removed.
  16996. (InterestedMessage.h): Removed.
  16997. (NotInterestedMessage.h): Removed.
  16998. (HaveMessage.h): Removed.
  16999. (BitfieldMessage.h): Removed.
  17000. (RequestMessage.h): Removed.
  17001. (CancelMessage.h): Removed.
  17002. (PieceMessage.h): Removed.
  17003. (HandshakeMessage.h): Removed.
  17004. (KeepAliveMessage.h): Removed.
  17005. (PortMessage.h): Removed.
  17006. (HaveAllMessage.h): Removed.
  17007. (HaveNoneMessage.h): Removed.
  17008. (PeerConnection.h): Removed.
  17009. (HandshakeMessage.h): Included.
  17010. * src/BitfieldMessage.h
  17011. (init): New function.
  17012. (BitfieldMessage): Rewritten.
  17013. (BitfieldMessage): New function(overload).
  17014. * src/RequestSlot.h
  17015. (operator=): Defined the function body here.
  17016. (operator==): Defined the function body here.
  17017. * src/RequestSlot.cc
  17018. (operator=): Removed.
  17019. (operator==): Removed.
  17020. To remove the dependency on the PeerMessage subclass from
  17021. PeerInteraction:
  17022. * src/PeerMessageFactory.h: New class.
  17023. * src/PeerMessageFactory.cc: New class.
  17024. * src/SimplePeerMessage.cc
  17025. (send): If invalidate is true then do nothing.
  17026. * src/PeerInteractionCommand.cc
  17027. (HandshakeMessage.h): Included.
  17028. (KeepAliveMessage.h): Included.
  17029. (ChokeMessage.h): Included.
  17030. (UnchokeMessage.h): Included.
  17031. (HaveMessage.h): Included.
  17032. (executeInternal): Call setNoCheck().
  17033. Removed setWriteCheckSocket(socket).
  17034. * src/PeerInteraction.h
  17035. (ChokeMessage.h): Removed.
  17036. (UnchokeMessage.h): Removed.
  17037. (InterestedMessage.h): Removed.
  17038. (NotInterestedMessage.h): Removed.
  17039. (HaveMessage.h): Removed.
  17040. (BitfieldMessage.h): Removed.
  17041. (RequestMessage.h): Removed.
  17042. (CancelMessage.h): Removed.
  17043. (PieceMessage.h): Removed.
  17044. (HandshakeMessage.h): Removed.
  17045. (KeepAliveMessage.h): Removed.
  17046. (PortMessage.h): Removed.
  17047. (HaveAllMessage.h): Removed.
  17048. (HaveNoneMessage.h): Removed.
  17049. (RejectMessage.h): Removed.
  17050. (AllowedFastMessage.h): Removed.
  17051. (SuggestPieceMessage.h): Removed.
  17052. (PeerMessageFactory.h): Included.
  17053. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  17054. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  17055. (PeerMessageFactory): New variable.
  17056. (createPeerMessage): Removed.
  17057. (createHandshakeMessage): Removed.
  17058. (setPeerMessageCommonProperty): Removed.
  17059. (addRequestSlot): New function.
  17060. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  17061. (getPeerMessageFactory): New function.
  17062. (createRequestMessage): Removed.
  17063. (createCancelMessage): Removed.
  17064. (createPieceMessage): Removed.
  17065. (createHaveMessage): Removed.
  17066. (createChokeMessage): Removed.
  17067. (createUnchokeMessage): Removed.
  17068. (createInterestedMessage): Removed.
  17069. (createNotInterestedMessage): Removed.
  17070. (createBitfieldMessage): Removed.
  17071. (createKeepAliveMessage): Removed.
  17072. (createHaveAllMessage): Removed.
  17073. (createHaveNoneMessage): Removed.
  17074. (createRejectMessage): Removed.
  17075. (createAllowedFastMessage): Removed.
  17076. * src/PeerInteraction.cc
  17077. (PeerInteraction): Allocate PeerMessageFactory here.
  17078. (~PeerInteraction): Deallocate PeerMessageFactory here.
  17079. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  17080. PieceMessage::ID.
  17081. (addMessage): Simplified by using PeerMessage::onPush().
  17082. (addRequestSlot): New function.
  17083. (rejectAllPieceMessageInQueue): Simplified by using
  17084. PeerMessage::onChoked().
  17085. (rejectPieceMessageInQueue): Simplified by using
  17086. PeerMessage::onCanceled().
  17087. (abortPiece): Simplified by using PeerMessage::abortPiece().
  17088. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  17089. (createHandshakeMessage): Removed.
  17090. (createPeerMessage): Removed.
  17091. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  17092. (setPeerMessageCommonProperty): Removed.
  17093. (createRequestMessage): Removed.
  17094. (createCancelMessage): Removed.
  17095. (createPieceMessage): Removed.
  17096. (createHaveMessage): Removed.
  17097. (createChokeMessage): Removed.
  17098. (createUnchokeMessage): Removed.
  17099. (createInterestedMessage): Removed.
  17100. (createNotInterestedMessage): Removed.
  17101. (createBitfieldMessage): Removed.
  17102. (createKeepAliveMessage): Removed.
  17103. (createHaveAllMessage): Removed.
  17104. (createHaveNoneMessage): Removed.
  17105. (createRejectMessage): Removed.
  17106. (createAllowedFastMessage): Removed.
  17107. * src/PieceMessage.h
  17108. (createRejectMessage): New function.
  17109. (PieceMessage): Rewritten.
  17110. (onChoked): New function.
  17111. (onCanceled): New function.
  17112. * src/PieceMessage.cc
  17113. (send): If invalidate is true then do nothing, just return.
  17114. (createRejectMessage): New function.
  17115. (onChoked): New function.
  17116. (onCanceled): New function.
  17117. * src/RequestMessage.h
  17118. (RequestMessage): Rewritten.
  17119. (onPush): New function.
  17120. (onAbortPiece): New function.
  17121. * src/RequestMessage.cc
  17122. (onPush): New function.
  17123. (onAbortPiece): New function.
  17124. Update fd_set when a socket is added or deleted in order to improve
  17125. performance:
  17126. * src/DownloadEngine.h
  17127. (rfdset): New variable.
  17128. (wfdset): New variable.
  17129. (updateFdSet): New function.
  17130. * src/DownloadEngine.cc
  17131. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  17132. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  17133. (waitData): Copy rfdset and wfdset.
  17134. (updateFdSet): New function.
  17135. (addSocket): Call updateFdSet.
  17136. (deleteSocket): Call updateFdSet.
  17137. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17138. To add the support for Metalink3.0 backward compatible links:
  17139. * src/Request.h
  17140. (SAFE_CHARS): Added '#'.
  17141. (METALINK_MARK): New definition.
  17142. * src/Request.cc
  17143. (parseUrl): Added the support for Metalink3.0 backward compatible
  17144. links.
  17145. etc
  17146. * src/PeerInteraction.cc
  17147. (MsgPushBack): Removed.
  17148. (sendMessages): Use STL copy and back_inserter.
  17149. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  17150. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  17151. * src/TorrentMan.h
  17152. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  17153. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17154. * src/SharedHandle.h: New class.
  17155. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  17156. * src/HttpResponseCommand.h
  17157. (HttpResponseCommand): Wrapped Socket.
  17158. * src/SocketCore.h
  17159. (operator==): New function.
  17160. (operator!=): New function.
  17161. (operator<): New function.
  17162. (getSockfd): New function.
  17163. (isOpen): New function.
  17164. (writeData): New function.
  17165. * src/SocketCore.cc
  17166. (operator==): New function.
  17167. (operator!=): New function.
  17168. (operator<): New function.
  17169. * src/AbstractCommand.h
  17170. (socket): Changed its type to SocketHandle.
  17171. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17172. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17173. (disableReadCheckSocket): New function.
  17174. (disableWriteCheckSocket): New function.
  17175. (readCheckTarget): Changed its type to SocketHandle.
  17176. (writeCheckTarget): Changed its type to SocketHandle.
  17177. (AbstractCommand): Replaced Socket with SocketHandle.
  17178. * src/AbstractCommand.cc
  17179. (AbstractCommand): Replaced Socket with SocketHandle.
  17180. (~AbstractCommand): Removed the deallocation for Socket object.
  17181. (disableReadCheckSocket): New function.
  17182. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17183. (disableWriteCheckSocket): New function.
  17184. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17185. * src/HttpDownloadCommand.cc
  17186. (DownloadCommand): Replaced Socket with SocketHandle.
  17187. * src/PeerAbstractCommand.h
  17188. (socket): Changed its type to SocketHandle.
  17189. (peer): Changed its type to PeerHandle.
  17190. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17191. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17192. (disableReadCheckSocket): New function.
  17193. (disableWriteCheckSocket): New function.
  17194. (readCheckTarget): Changed its type to SocketHandle.
  17195. (writeCheckTarget): Changed its type to SocketHandle.
  17196. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17197. Replaced Peer with PeerHandle.
  17198. * src/HttpRequestCommand.cc
  17199. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17200. Use disableReadCheckSocket.
  17201. * src/PeerInitiateConnectionCommand.h
  17202. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17203. * src/PeerChokeCommand.cc
  17204. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  17205. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  17206. (execute): Use PeerHandle.
  17207. * src/PeerConnection.h
  17208. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  17209. (socket): Changed its type to SocketHandle.
  17210. (PeerConnection): Replaced Socket with SocketHandle.
  17211. * src/PeerConnection.cc
  17212. (PeerConnection): Replaced Socket with SocketHandle.
  17213. * src/PeerInteractionCommand.h
  17214. (PeerInteractionCommand): Replaced socket with SocketHandle.
  17215. Replaced Peer with PeerHandle.
  17216. * src/PeerInteractionCommand.cc
  17217. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  17218. Replaced Peer with PeerHandle.
  17219. (executeInternal): Use disableWriteCheckSocket.
  17220. Use HandshakeMessageHandle.
  17221. (receiveMessages): Use PeerMessageHandle.
  17222. (prepareForNextPeer): Use PeerHandle.
  17223. * src/HttpProxyRequestCommand.h
  17224. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17225. * src/HttpResponseCommand.cc
  17226. (HttpResponseCommand): Replaced Socket with SocketHandle.
  17227. * src/TorrentMan.cc
  17228. (nullPeer): Added external reference.
  17229. (~TorrentMan): Removed the deallocation of the elements of peers.
  17230. (addPeer): Rewritten.
  17231. (isPeerAvailable): Use nullPeer.
  17232. (deleteOldpeers): Replaced with deleteErrorPeer.
  17233. (deleteErrorPeer): New function.
  17234. (getPeer): Use PeerHandle and nullPeer.
  17235. (hasMissingPiece): Replaced Peer with PeerHandle.
  17236. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17237. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17238. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17239. (getMissingPiece): Replaced Peer with PeerHandle.
  17240. * src/FtpNegotiateCommand.cc
  17241. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  17242. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  17243. (recvGreeting): Use disableWriteCheckSocket.
  17244. (recvPasv): Removed the allocation of Socket.
  17245. Use disableReadCheckSocket.
  17246. (sendRestPasv): Use disableWriteCheckSocket.
  17247. (recvRetr): Changed assertion.
  17248. * src/PeerInteraction.h
  17249. (SharedHandle.h): Included SharedHandle.h.
  17250. (PeerMessageHandle): New type definition.
  17251. (HandshakeMessageHandle): New type definition.
  17252. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  17253. (peer): Changed its type to PeerHandle.
  17254. (createHandshakeMessage): Replaced HandshakeMessage with
  17255. HandshakeMessageHandle.
  17256. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  17257. (PeerInteraction): Replaced Peer with PeerHandle.
  17258. Replaced Socket with SocketHandle.
  17259. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17260. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17261. (receiveHandshake): Replaced HandshakeMessage with
  17262. HandshakeMessageHandle.
  17263. * src/PeerInteraction.cc
  17264. (PeerInteraction): Replaced Peer with PeerHandle.
  17265. Replaced Socket with SocketHandle.
  17266. (~PeerInteraction): Removed the deallocation of the elements of
  17267. messageQueue.
  17268. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  17269. (isSendingMessageInProgress): Replaced PeerMessage with
  17270. PeerMessageHandle.
  17271. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  17272. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17273. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  17274. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  17275. (abortPiece): Use PeerMessageHandle.
  17276. (receiveHandshake): Replaced HandshakeMessage with
  17277. HandshakeMessageHandle. Removed try-catch block.
  17278. (createHandshakeMessage): Replaced HandshakeMessage with
  17279. HandshakeMessageHandle.
  17280. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17281. Removed try-catch block.
  17282. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  17283. * src/HttpProxyResponseCommand.cc
  17284. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17285. * src/FtpTunnelResponseCommand.h
  17286. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17287. * src/HttpConnection.cc
  17288. (HttpConnection): Replaced Socket with SocketHandle.
  17289. * src/PeerAbstractCommand.cc
  17290. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17291. (~PeerAbstractCommand): Removed the deallocation of socket.
  17292. Use disableReadCheckSocket, disableWriteCheckSocket.
  17293. (disableReadCheckSocket): New function.
  17294. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17295. (disableWriteCheckSocket): New function.
  17296. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17297. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  17298. * src/FtpTunnelRequestCommand.cc
  17299. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17300. (~FtpTunnelRequestCommand): Corrected indentation.
  17301. * src/DownloadCommand.h
  17302. (DownloadCommand): Replaced Socket with SocketHandle.
  17303. * src/PeerListenCommand.cc
  17304. (PeerListenCommand): Removed the initialization of socket.
  17305. (~PeerListenCommand): Removed the deallocation of socket.
  17306. (bindPort): Use SocketHandle.
  17307. (execute): Use SocketHandle and PeerHandle.
  17308. * src/FtpDowndloadCommand.cc
  17309. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17310. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  17311. * src/main.cc
  17312. (main): Corrected indentation.
  17313. * src/HttpInitiateConnectionCommand.cc
  17314. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  17315. (executeInternal): Removed the allocation of socket.
  17316. * src/HttpRequestCommand.h
  17317. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17318. * src/FtpNegotiationCommand.h
  17319. (dataSocket): Changed its type to SocketHandle.
  17320. (serverSocket): Changed its type to SocketHandle.
  17321. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  17322. * src/TorrentMan.h
  17323. (MAX_PEER_UPDATE): Removed.
  17324. (MAX_PEERS): New definition.
  17325. (Peers): The element is now of type PeerHandle.
  17326. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  17327. (getPeer): Replaced Peer with PeerHandle.
  17328. (deleteOldErrorPeers): Removed.
  17329. (deleteErrorPeer): New function.
  17330. (hasMissingPiece): Replaced Peer with PeerHandle.
  17331. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17332. (getMissingPiece): Replaced Peer with PeerHandle.
  17333. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17334. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17335. (addActivePeer): Replaced Peer with PeerHandle.
  17336. (deleteActivePeer): Replaced Peer with PeerHandle.
  17337. Added a check for the return value of find.
  17338. * src/FtpTunnelResponseCommand.cc
  17339. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17340. * src/FtpInitiateConnectionCommand.cc
  17341. (executeInternal): Removed the allocation of socket.
  17342. * src/DownloadEngine.h
  17343. (Sockets): An element is now of type SocketHandle.
  17344. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  17345. (CommandUuids): New type definition.
  17346. (rsockets): Changed its type to SockCmdMap.
  17347. (wsockets): Changed its type to SockCmdMap.
  17348. (addSocket): Rewritten.
  17349. (deleteSocket): Rewritten.
  17350. (addSocketForReadCheck): Rewritten.
  17351. (deleteSocketForReadCheck): Rewritten.
  17352. (addSocketForWriteCheck): Rewritten.
  17353. (deleteSocketForWriteCheck): Rewritten.
  17354. (PairFind): New template class.
  17355. * src/HttpDownloadCommand.h
  17356. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  17357. * src/FtpConnection.cc
  17358. (FtpConnection): Replaced Socket with SocketHandle.
  17359. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  17360. block.
  17361. * src/InitiateConnectionCommandFactory.cc
  17362. (DlAbortEx.h): Included DlAbortEx.h.
  17363. (createInitiateConnectionCommand): Throw exception if the protocol of
  17364. requested URI is not supported.
  17365. * src/Peer.cc
  17366. (nullPeer): Changed its type to PeerHandle.
  17367. (operator==): New function.
  17368. (operator!=): New function.
  17369. * src/Peer.h
  17370. (SharedHandle.h): Included SharedHandle.h.
  17371. (operator==): New function.
  17372. (operator!=): New function.
  17373. (Peer): Added the default constructor.
  17374. Use resetStatus() to initialize member variables.
  17375. (nullPeer): Removed.
  17376. * src/TrackerUpdateCommand.cc
  17377. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  17378. with MIN_PEERS.
  17379. * src/PeerListenCommand.h
  17380. (socket): Changed its type to SocketHandle.
  17381. * src/Command.h
  17382. (CommandUuid): New type definition.
  17383. (uuid): New variable.
  17384. (uuidGen): New variable.
  17385. (Command): Added the initialization of uuid.
  17386. (getUuid): New function.
  17387. * src/Socket.h
  17388. (Socket): Removed.
  17389. (SocketHandle): New type definition.
  17390. * src/DownloadEngine.h
  17391. (FindCommand): New function object.
  17392. (run): The portion of socket check was rewritten.
  17393. (SetDescriptor): New function object.
  17394. (AccumulateActiveCommandUuid): New function object.
  17395. (waitData): Rewritten.
  17396. (addSocket): Rewritten.
  17397. (deleteSocket): Rewritten.
  17398. (addSocketForReadCheck): Rewritten.
  17399. (addSocketForWriteCheck): Rewritten.
  17400. (deleteSocketForReadCheck): Rewritten.
  17401. (deleteSocketForWriteCheck): Rewritten.
  17402. * src/HttpProxyResponseCommand.h
  17403. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  17404. * src/HttpConnection.h
  17405. (socket): Changed its type to SocketHandle.
  17406. (HttpConnection): Replaced Socket with SocketHandle.
  17407. * src/PeerInitiateConnectionCommand.cc
  17408. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17409. (executeInternal): Removed the allocation of socket.
  17410. (prepareForNextPeer): Use PeerHandle.
  17411. * src/PeerMessage.h
  17412. (peer): Changed its type to PeerHandle.
  17413. (getPeer): Replaced Peer with PeerHandle.
  17414. (setPeer): Replaced Peer with PeerHandle.
  17415. * src/DownloadCommand.cc
  17416. (DownloadCommand): Replaced Socket with SocketHandle.
  17417. * src/FtpConnection.h
  17418. (socket): Changed its type to SocketHandle.
  17419. (FtpConnection): Replaced Socket with SocketHandle.
  17420. (sendPort); Replaced Socket with SocketHandle.
  17421. * src/FtpDowndloadCommand.h
  17422. (ctrlSocket): Changed its type to SocketHandle.
  17423. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17424. * src/HttpProxyRequestCommand.cc
  17425. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17426. * src/FtpTunnelRequestCommand.h
  17427. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17428. etc
  17429. * src/PeerChokeCommand.h
  17430. (setAllPeerChoked): Removed.
  17431. (setAllPeerResetDelta): Removed.
  17432. * src/PeerChokeCommand.cc
  17433. (setAllPeerChoked): Removed.
  17434. (ChokePeer): New function object.
  17435. (setAllPeerResetDelta): Removed.
  17436. (ResetDelta): New function object.
  17437. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  17438. (execute): Show download speed when the local node is a seeder.
  17439. setAllPeerChoked and setAllPeerResetDelta were rewritten
  17440. using STL.
  17441. * src/TrackerWatcherCommand.h
  17442. (MIN_PEERS): Removed.
  17443. * src/TorrentMan.cc
  17444. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  17445. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17446. To fix the bug that .aria2 file is not saved if downloading is stopped
  17447. by the errors:it results that aria2 can not resume downloading:
  17448. * src/main.cc
  17449. (normalDownload): Added the call to save().
  17450. (main): Added the deletion of the elements in 'reserved'.
  17451. To fix log:
  17452. * src/PeerInteraction.cc
  17453. (receiveHandshake): Fixed log.
  17454. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17455. To improve download performance in BitTorrent:
  17456. * src/TorrentMan.cc
  17457. (getPeer): Check the number of connections. Return nullPeer if
  17458. it is greater than MAX_PEER_UPDATE.
  17459. This code was originally here, but was removed in 0.5.1.
  17460. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17461. To improve the conditional compilation:
  17462. * src/MultiDiskWriter.h:
  17463. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17464. * src/MultiDiskWriter.cc:
  17465. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17466. * src/Util.h:
  17467. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17468. Added ENABLE_BITTORRENT around computeFastSet().
  17469. * src/Util.cc:
  17470. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17471. Added ENABLE_BITTORRENT around computeFastSet().
  17472. * src/messageDigest.h:
  17473. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  17474. * src/ShaVisitor.h:
  17475. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17476. * src/ShaVisitor.cc:
  17477. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17478. * src/main.cc:
  17479. Added ENABLE_BITTORRENT around includes and blocks related to
  17480. BitTorrent.
  17481. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  17482. digest support is not available.
  17483. * src/AbstractDiskWriter.h:
  17484. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17485. * src/AbstractDiskWriter.cc:
  17486. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17487. * src/MetalinkEntry.cc
  17488. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  17489. support is not available.
  17490. To add command-line options for Metalink:
  17491. * src/main.cc:
  17492. Added metalink-version, metalink-language, metalink-os,
  17493. follow-metalink.
  17494. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  17495. * src/main.cc: Use these definition.
  17496. * Release 0.6.0
  17497. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17498. To add Metalink support(http/ftp only):
  17499. * src/AbstractCommand.h
  17500. (tryReserved): New function.
  17501. * src/AbstractCommand.cc
  17502. (execute): Call tryReserved().
  17503. (tryReserved): New function.
  17504. * src/Request.h
  17505. (Requests): New type definition.
  17506. * src/SegmentMan.h
  17507. (reserved): New variable.
  17508. * src/Util.h
  17509. (fileChecksum): New function.
  17510. (toUpper): New function.
  17511. (toLower): New function.
  17512. * src/Util.cc
  17513. (messageDigest.h): Included.
  17514. (trim): Trim \r\n\t.
  17515. (fileChecksum): New function.
  17516. (toUpper): New function.
  17517. (toLower): New function.
  17518. * src/main.cc
  17519. (normalDownload): New function.
  17520. (main): Added 2 command-line options: metalink-file,
  17521. metalink-connection. Their usage has not been written yet.
  17522. * src/MetalinkProcessor.h: New class.
  17523. * src/Xml2MetalinkProcessor.h: New class.
  17524. * src/Xml2MetalinkProcessor.cc: New class.
  17525. * src/MetalinkEntry.h: New class.
  17526. * src/MetalinkEntry.cc: New class.
  17527. * src/MetalinkResource.h: New class.
  17528. * src/MetalinkResource.cc: New class.
  17529. To add md5 message digest checking:
  17530. * src/messageDigest.h: Rewritten.
  17531. * src/MultiDiskWriter.cc: Updated according to the changes in
  17532. messageDigest.h.
  17533. * src/ShaVisitor.cc: Updated according to the changes in
  17534. messageDigest.h.
  17535. * src/Util.cc: Updated according to the changes in messageDigest.h.
  17536. * src/AbstractDiskWriter.cc: Updated according to the changes in
  17537. messageDigest.h.
  17538. To fix a bug that causes segfault when the payload length in peer
  17539. message is less than 0:
  17540. * src/PeerConnection.cc:
  17541. (receiveMessage): Fixed the bug.
  17542. * src/PeerMessageUtil.cc
  17543. (checkLength): Throw an exception if length is less than or equals to
  17544. 0.
  17545. To add new interfaces to Base64 encoding/decoding:
  17546. * src/Base64.h
  17547. (part_encode): Changed the method signature.
  17548. (encode): New function(overload).
  17549. (decode): New function(overload).
  17550. * src/Base64.cc
  17551. (part_encode): Rewritten.
  17552. (encode): Rewritten.
  17553. (encode): New function(overload).
  17554. To prevent a peer to download same piece if there is an error in
  17555. checksum:
  17556. * src/PieceMessage.cc
  17557. (receivedAction): Call peerInteraction->abortPiece().
  17558. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17559. To fix the bug that causes same have message is sent many times to
  17560. a single peer.
  17561. * src/Time.cc
  17562. (isNewer): Use Util::difftv().
  17563. * src/Util.cc
  17564. (difftv): Added a cast to (long long int).
  17565. * src/TorrentMan.cc
  17566. (advertisePiece): Use push_front.
  17567. (getAdvertisedPieceIndexes): A performance improvement was made.
  17568. To fix the bug that sends tracker requests without a sleep interval
  17569. when the number of connections is less than 15.
  17570. * src/TrackerWatcherCommand.cc
  17571. (execute): Now the number of connections is not a factor to decide
  17572. whether or not a tracker request should be sent or not.
  17573. * src/Time.h
  17574. (setTimeInSec): New function.
  17575. * src/Time.cc
  17576. (setTimeInSec): New function.
  17577. etc.
  17578. * src/ChokeMessage.cc
  17579. (receivedAction): Removed peer->snubbing = false
  17580. * src/PeerConnection.h
  17581. (receiveHandshake): Updated doc.
  17582. * src/TorrentMan.h
  17583. (getAdvertisedPieceIndexes): Updated the method signature.
  17584. * src/TorrentMan.cc
  17585. (getAdvertisedPieceIndexes): Updated the method signature.
  17586. * src/Time.h
  17587. (getTimeInMicros): Added a cast to (long long int).
  17588. (getTimeInMillis): Added a cast to (long long int).
  17589. * Release 0.5.2
  17590. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17591. To make a listening socket non-block:
  17592. * src/SocketCore.h
  17593. (setNonBlockingMode): New function.
  17594. * src/SocketCore.cc
  17595. (setNonBlockingMode): New function.
  17596. (beginListen): Added a call to setNonBlockingMode().
  17597. (acceptConnection): Call setNonBlockingMode().
  17598. (setBlockingMode): Updated.
  17599. To handle tracker's NAT-checking:
  17600. * src/PeerConnection.cc
  17601. (receiveHandshake): 'msg' param is filled with received data and
  17602. its length is assigned to 'length' param, even if all handshake
  17603. message is not yet received.
  17604. * src/PeerInteractionCommand.cc
  17605. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  17606. a new peer connects to localhost.
  17607. A call to peerInteraction->sendHandshake() was removed because
  17608. it is called from peerInteraction->receiveHandshake(true).
  17609. * src/PeerInteraction.h
  17610. (quickReplied): New variable.
  17611. (receiveHandshake): Added an argument.
  17612. * src/PeerInteraction.cc
  17613. (PeerInteraction): Added the initialization of quickReplied.
  17614. (receiveHandshake): Send handshake message as soon as the info hash
  17615. in a handshake message from a peer is correct.
  17616. To change the random part of peer id and key parameter:
  17617. * src/TorrentMan.h
  17618. (key): New variable.
  17619. * src/TorrentMan.cc
  17620. (setupInternal1): Use Util::randomAlpha() to generate random part
  17621. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  17622. key is also generated by Util::randomAlpha() and it is now 8 character
  17623. long.
  17624. * src/Util.h
  17625. (randomAlpha): New function.
  17626. * src/Util.cc
  17627. (randomAlpha): New function.
  17628. * src/TrackerWatcherCommand.cc
  17629. (execute): In a tracker request: Use torrentMan->key as key parameter.
  17630. Added no_peer_id=1.
  17631. Set snubbing flag to false when a choke message is received from a
  17632. snubbed peer.
  17633. * src/ChokeMessage.cc
  17634. (receivedAction): Set snubbing flag to false.
  17635. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17636. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  17637. * src/SimpleLogger.h (writeHeader): New function.
  17638. * src/SimpleLogger.cc (writeHeader): New function.
  17639. (writeLog): Fixed the bug that causes segfaults if exception message
  17640. contains an unescaped "%" character.
  17641. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  17642. when a tracker request fails.
  17643. * src/Request.cc (parseUrl): Query string is now handled properly.
  17644. * Release 0.5.1
  17645. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17646. To add Time class which represents a specific instant in time and
  17647. its precision is microseconds. Time checking procedures were rewritten
  17648. using this object.
  17649. * src/Time.h: New class.
  17650. * src/Time.cc: New class.
  17651. * src/AbstractCommand.h
  17652. (updateCheckPoint): Removed.
  17653. (isTimeoutDetected): Removed.
  17654. (checkPoint): Changed the type to Time.
  17655. (timeout): New variable.
  17656. (setTimeout): New function.
  17657. * src/AbstractCommand.cc
  17658. (AbstractCommand): Removed the initialization of checkPoint.
  17659. Added the initialization of timeout.
  17660. (updateCheckPoint): Removed.
  17661. (isTimeoutDetected): Removed.
  17662. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17663. * src/PeerChokeCommand.h
  17664. (checkPoint): Changed the type to Time.
  17665. * src/PeerChokeCommand.cc
  17666. (PeerChokeCommand): Removed the initialization of checkPoint.
  17667. (execute): Rewritten using Time object.
  17668. * src/TrackerWatcherCommand.h
  17669. (checkPoint): Changed the type to Time.
  17670. * src/TrackerWatcherCommand.cc
  17671. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  17672. (execute): Rewritten.
  17673. * src/ConsoleDownloadEngine.h
  17674. (cp): Changed the type to Time.
  17675. (startup): Changed the type to Time.
  17676. * src/ConsoleDownloadEngine.cc
  17677. (initStatistics): Use cp.reset(), startup.reset().
  17678. (calculateStatistics): Rewritten using Time object.
  17679. * src/PeerAbstractCommand.h
  17680. (updateCheckPoint): Removed.
  17681. (isTimeoutDetected): Removed.
  17682. (checkPoint): Changed the type to Time.
  17683. * src/PeerAbstractCommand.cc
  17684. (PeerAbstractCommand): Removed the initialization of checkPoint.
  17685. (updateCheckPoint): Removed.
  17686. (isTimeoutDetected): Removed.
  17687. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17688. * src/PeerInteractionCommand.cc
  17689. (PeerInteractionCommand): Removed the initializations of struct
  17690. timeval variables.
  17691. * src/PeerInteractionCommand.h
  17692. (keepAliveCheckPoint): Changed the type to Time.
  17693. (chokeCheckPoint): Changed the type to Time.
  17694. (freqCheckPoint): Changed the type to Time.
  17695. (haveCheckTime): Changed the type to Time.
  17696. * src/PeerInteractionCommand.cc
  17697. (executeInternal): Rewritten using Time object.
  17698. (detectMessageFlooding): Rewritten using Time object.
  17699. (checkLongTimePeerChoking): Rewritten using Time object.
  17700. (sendKeepAlive): Rewritten using Time object.
  17701. (checkHave): Rewritten using Time object.
  17702. * src/SleepCommand.h
  17703. (checkPoint): Changed the type to Time.
  17704. * src/SleepCommand.cc
  17705. (SleepCommand): Removed the initialization of checkPoint.
  17706. (execute): Rewritten using Time object.
  17707. * src/TorrentAutoSaveCommand.h
  17708. (checkPoint): Changed the type to Time.
  17709. * src/TorrentAutoSaveCommand.cc
  17710. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  17711. (execute): Rewritten.
  17712. * src/DownloadCommand.h
  17713. (sw): Changed the type to Time.
  17714. * src/DownloadCommand.cc
  17715. (DownloadCommand): Removed the initialization of sw.
  17716. (executeInternal): Rewritten.
  17717. * src/RequestSlot.h
  17718. (dispatchedTime): Changed the type to Time.
  17719. * src/RequestSlot.cc
  17720. (RequestSlot): Removed the call to setDispatchedTime().
  17721. (setDispatchedTime): Rewirtten.
  17722. (isTimeout): Rewritten.
  17723. (getLatencyInMillis): Rewritten.
  17724. * src/TorrentDownloadEngine.h
  17725. (cp): Changed the type to Time[2].
  17726. (startup): Changed the type to Time.
  17727. * src/TorrentDownloadEngine.cc
  17728. (initStatistics): Rewritten.
  17729. (calculateStatistics): Rewritten.
  17730. * src/DownloadEngine.cc
  17731. (run): Rewritten.
  17732. To detect all attempts to connect to the tracker are failed:
  17733. * src/AbstractCommand.cc
  17734. (execute): Increment e->segmentMan->errors if a command aborted.
  17735. * src/SegmentMan.h
  17736. (errors): New variable.
  17737. * src/SegmentMan.cc
  17738. (SegmentMan): Added the initialization of errors.
  17739. (init): Added the initialization of errors.
  17740. * src/TrackerWatcherCommand.cc
  17741. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  17742. request was failed.
  17743. To handle snubbed peers:
  17744. * src/PeerChokeCommand.cc
  17745. (optUnchokingPeer): Snubbed peers don't get unchoked.
  17746. (execute): Snubbed peers don't get unchoked.
  17747. * src/PeerInteraction.h
  17748. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  17749. * src/PeerInteraction.cc
  17750. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  17751. back the requested 16k block in 60 seconds.
  17752. * src/PieceMessage.cc
  17753. (receivedAction): A peer's snubbed state is cleard if it sends
  17754. the requested 16k block in 60 seconds.
  17755. * src/Peer.h
  17756. (snubbing): New variable.
  17757. * src/Peer.cc
  17758. (resetStatus): Added snubbed = false.
  17759. To fix the bug that causes have message is not sent:
  17760. * src/PeerInteractionCommand.cc
  17761. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  17762. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  17763. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  17764. * src/TorrentMan.h
  17765. (HaveEntry): New class.
  17766. (advertisePiece): Rewritten.
  17767. (getAdvertisedPieceIndexes): Rewritten.
  17768. (Haves): Changed the type.
  17769. (getAdvertisedPieceIndexes): Added an argument.
  17770. Others:
  17771. * src/TorrentMan.h
  17772. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  17773. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  17774. * src/TorrentMan.cc
  17775. (getPeer): Don't check the number of connections here.
  17776. (setupInternal1): Changed peerId.
  17777. * src/PeerInteractionCommand.h
  17778. (KEEP_ALIVE_INTERVAL): New definition.
  17779. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  17780. * src/main.cc
  17781. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  17782. * src/DownloadEngine.h: Removed unnecessary header includes.
  17783. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17784. To fix the bug that causes segfaults if a tracker returns a zero-length
  17785. list as "peers":
  17786. * src/TrackerUpdateCommand.cc
  17787. (execute): Added a check to see wether the type of peers is Data*.
  17788. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17789. * Release 0.5.0
  17790. To fix compile issue with gcc3:
  17791. * src/CancelMessage.h
  17792. (ID): Renamed as ID_t
  17793. (ID_t): New enum.
  17794. * src/RejectMessage.h
  17795. (ID): Renamed as ID_t
  17796. (ID_t): New enum.
  17797. * src/SuggestPieceMessage.h
  17798. (ID): Renamed as ID_t
  17799. (ID_t): New enum.
  17800. * src/AllowedFastMessage.h
  17801. (ID): Renamed as ID_t
  17802. (ID_t): New enum.
  17803. * src/PortMessage.h
  17804. (ID): Renamed as ID_t
  17805. (ID_t): New enum.
  17806. * src/HaveNoneMessage.h
  17807. (ID): Renamed as ID_t
  17808. (ID_t): New enum.
  17809. * src/KeepAliveMessage.h
  17810. (ID): Renamed as ID_t
  17811. (ID_t): New enum.
  17812. * src/HaveAllMessage.h
  17813. (ID): Renamed as ID_t
  17814. (ID_t): New enum.
  17815. * src/UnchokeMessage.h
  17816. (ID): Renamed as ID_t
  17817. (ID_t): New enum.
  17818. * src/BitfieldMessage.h
  17819. (ID): Renamed as ID_t
  17820. (ID_t): New enum.
  17821. * src/PieceMessage.h
  17822. (ID): Renamed as ID_t
  17823. (ID_t): New enum.
  17824. * src/RequestMessage.h
  17825. (ID): Renamed as ID_t
  17826. (ID_t): New enum.
  17827. * src/NotInterestedMessage.h
  17828. (ID): Renamed as ID_t
  17829. (ID_t): New enum.
  17830. * src/ChokeMessage.h
  17831. (ID): Renamed as ID_t
  17832. (ID_t): New enum.
  17833. * src/InterestedMessage.h
  17834. (ID): Renamed as ID_t
  17835. (ID_t): New enum.
  17836. * src/HaveMessage.h
  17837. (ID): Renamed as ID_t
  17838. (ID_t): New enum.
  17839. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17840. * src/PeerAbstractCommand.h
  17841. (beforeSocketCheck): Removed.
  17842. * src/PeerAbstractCommand.cc
  17843. Modified in order to call executeInternal() even if socket check
  17844. and upload limit check fail.
  17845. * src/PeerInteractionCommand.h
  17846. (keepAlive): Removed.
  17847. (sendKeepAlive): New function.
  17848. (checkHave): New function.
  17849. (beforeSocketCheck): Removed.
  17850. * src/PeerInteractionCommand.cc
  17851. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17852. calls to checkHave() and sendKeepAlive().
  17853. (keepAlive): Renamed to sendKeepAlive().
  17854. (sendKeepAlive): New function.
  17855. (beforeSocketCheck): Removed.
  17856. (checkHave): New function.
  17857. * src/BitfieldMan.cc
  17858. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17859. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17860. 0.
  17861. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17862. * src/TorrentMan.h
  17863. (UsedPieces): Removed.
  17864. (Pieces): New type definition.
  17865. * src/Piece.h: Updated doc.
  17866. * src/Peer.h
  17867. (totalLength): Removed.
  17868. * src/Peer.cc
  17869. (updateLatency): Fixed the latency calculation.
  17870. * src/TorrentMan.cc
  17871. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17872. than or equal to MAX_PEER_LIST_SIZE.
  17873. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17874. then return false.
  17875. (deleteOldErrorPeers): Rewritten.
  17876. (deleteUsedPiece): Fixed the miss use of STL remove.
  17877. * src/PeerInteraction.h
  17878. (Pieces): Removed.
  17879. (deleteTimeoutRequestSlot): Removed.
  17880. (deleteCompletedRequestSlot): Removed.
  17881. (checkRequestSlot): New function.
  17882. * src/PeerInteraction.cc
  17883. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17884. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17885. (checkRequestSlot): New function.
  17886. * src/DownloadEngine.cc
  17887. (run): Clear activeSockets before calling waitData().
  17888. (waitData): Removed a call to activeSockets.clear().
  17889. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17890. To attempt to handle EINTR:
  17891. * src/SocketCore.cc
  17892. (isReadable): Added EINTR handling.
  17893. (isWritable): Added EINTR handling.
  17894. To improve the performance:
  17895. * src/AbstractCommand.cc
  17896. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17897. * src/PeerInteractionCommand.h
  17898. (receiveMessage): Renamed as receiveMessages().
  17899. (receiveMessages): New function.
  17900. * src/PeerInteractionCommand.cc
  17901. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17902. () function. detectMessageFlooding() is moved here.
  17903. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17904. (). The flooding detection for have message is comment out.
  17905. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17906. Util::difftv().
  17907. (receiveMessage): Renamed as receiveMessages().
  17908. (receiveMessages): New function.
  17909. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17910. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17911. * src/SleepCommand.cc
  17912. (execute): Use Util::difftvsec() instead of Util::difftv().
  17913. * src/BitfieldMan.h
  17914. (getNthBitIndex): New function.
  17915. (hasMissingPiece): New function.
  17916. (getAllMissingIndexes): New function.
  17917. * src/BitfieldMan.cc
  17918. (countSetBit): Rewritten.
  17919. (getNthBitIndex): New function.
  17920. (getMissingIndexRandomly): Rewritten.
  17921. (hasMissingPiece): New function.
  17922. (getAllMissingIndexes): New function.
  17923. * src/TorrentMan.cc
  17924. (hasMissingPiece): New function.
  17925. (deleteUsedPiece): Rewritten using STL.
  17926. * src/PeerInteraction.cc
  17927. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17928. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17929. (addRequests): Updated the number of pending requests.
  17930. * src/PeerAbstractCommand.cc
  17931. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17932. (execute): Returns true if TorrentMan::isHalt() is true.
  17933. Corrected the condition of upload limit checking.
  17934. * src/Util.h
  17935. (countBit): New function.
  17936. * src/Util.cc
  17937. (nbits): New variable.
  17938. (countBit): New function.
  17939. * src/DownloadEngine.h
  17940. (SockCmdMap): New type definition.
  17941. (waitData): Added an argument.
  17942. (addSocket): Added an argument.
  17943. (addSocketForReadCheck): Added an argument.
  17944. (addSocketForWriteCheck): Added an argument.
  17945. * src/DownloadEngine.cc
  17946. (run): Executes only commands whose sockets are ready to read or write.
  17947. All commands are executed in every 1 second.
  17948. (waitData): Calls select() again if it returned
  17949. EINTR.
  17950. (addSocket): Saves socket and command object pair to the map.
  17951. (deleteSocket): Deletes socket and command object pair from the map.
  17952. (addSocketForReadCheck): Added an argument.
  17953. (addSocketForWriteCheck): Added an argument.
  17954. * src/DownloadCommand.cc
  17955. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17956. To send "event=stopped" to the tracker when the application finishes:
  17957. * src/PeerChokeCommand.h
  17958. (checkPoint): New variable.
  17959. * src/PeerChokeCommand.cc
  17960. (PeerChokeCommand): Added the initialization of checkPoint.
  17961. (execute): The interval check is now done by checkPoint, not
  17962. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17963. * src/TorrentMan.h
  17964. (halt): New function.
  17965. (hasMissingPiece): New function.
  17966. (isHalt): New function.
  17967. (setHalt): New function.
  17968. * src/TorrentMan.cc
  17969. (TorrentMan): Added the initialization of halt.
  17970. * src/TorrentAutoSaveCommand.h
  17971. (checkPoint): New variable.
  17972. * src/PeerListenCommand.cc
  17973. (execute): Returns true if TorrentMan::isHalt() is true.
  17974. * src/main.cc
  17975. (setSignalHander): Added flags argument.
  17976. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17977. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17978. Removed printDownloadAbortMessage() after torrent downloading loop.
  17979. * src/TorrentAutoSaveCommand.cc
  17980. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17981. (execute): Returns true if TorrentMan::isHalt() is true.
  17982. The interval check is now done by checkPoint, not SleepCommand.
  17983. * src/TrackerWatcherCommand.cc
  17984. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17985. event=stopped.
  17986. * src/TrackerUpdateCommand.cc
  17987. (prepareForRetry): Do not use SleepCommand here.
  17988. (execute): Returns true if TorrentMan::isHalt() is true.
  17989. Others:
  17990. * src/TorrentMan.cc
  17991. (getMissingPieceIndex): Updated log message.
  17992. * src/PeerInteraction.cc
  17993. (createPeerMessag): Updated log message.
  17994. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17995. To add the ability to download several pieces in mix in a command and
  17996. increase the number of request slots according to request-cancel
  17997. latency:
  17998. * src/PeerInteractionCommand.cc
  17999. (executeInternal): The number of messages to be received at a time
  18000. is increased from 10 to 50.
  18001. * src/LogFactory
  18002. (getInstance): Added NullLogger.
  18003. * src/NullLogger.h: New class.
  18004. * src/BitfieldMan.h
  18005. (getMissingIndex): New function.
  18006. * src/BitfieldMan.cc
  18007. (getMissingIndex): New function.
  18008. * src/TorrentMan.h
  18009. (checkOutPiece): New function.
  18010. (getMissingPieceIndex): New function.
  18011. (getMissingFastPieceIndex): New function.
  18012. (getMissingFastPiece): New function.
  18013. * src/TorrentMan.cc
  18014. (updatePiece): Rewritten using STL.
  18015. (syncPiece): Rewritten using STL.
  18016. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  18017. checkOutPiece().
  18018. (getMissingPieceIndex): New function.
  18019. (getMissingFastPieceIndex): New function.
  18020. (getMissingFastPiece): New function.
  18021. (checkOutPiece): New function.
  18022. * src/PeerInteraction.h
  18023. (Pieces): New type definition.
  18024. (piece): Removed.
  18025. (pieces): New variable.
  18026. (getNewPieceAndSendInterest): Added the "piece" argument.
  18027. (abortPiece): Added the "piece" argument.
  18028. (abortAllPieces): New function.
  18029. (isInRequestSlot): New function.
  18030. (hasDownloadPiece): Added the "index" argument.
  18031. (setDownloadPiece): Removed.
  18032. (getDownloadPiece): Added the "index" argument.
  18033. (updatePiece): New function.
  18034. (createRequestMessage): Added the "index" argument.
  18035. * src/PeerInteraction.cc
  18036. (onChoked): Rewritten.
  18037. (abortPiece): Rewirtten.
  18038. (abortAllPieces): New function.
  18039. (deleteTimeoutRequestSlot): Rewritten.
  18040. Clarified code a little bit.
  18041. (deleteCompletedRequestSlot): Rewritten.
  18042. (isInRequestSlot): New function.
  18043. (syncPiece): Rewritten.
  18044. (updatePiece): New function.
  18045. (getNewPieceAndSendInterest): Rewritten.
  18046. (addRequests): Rewritten.
  18047. (getDownloadPiece): Rewritten.
  18048. (hasDownloadPiece): Rewritten.
  18049. (createRequestMessage): Added the "index" argument.
  18050. * src/common.h
  18051. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  18052. (DIV_FLOOR): New definition.
  18053. * src/PieceMessage.cc
  18054. (receivedAction): Update request-piece latency here.
  18055. * src/RequestSlot.h
  18056. (getLatencyInMillis): New function.
  18057. * src/RequestSlot.cc
  18058. (isTimeout): Rewritten using getLatencyInMillis.
  18059. (getLatencyInMillis): New function.
  18060. * src/Piece.h
  18061. (operator==): New function.
  18062. (getMissingBlockIndex): New function.
  18063. * src/Piece.cc
  18064. (operator==): New function.
  18065. (getMissingBlockIndex): New function.
  18066. * src/Peer.h
  18067. (DEFAULT_LATENCY): New definition.
  18068. (latency): New variable.
  18069. (updateLatency): New function.
  18070. (getLatency): New function.
  18071. * src/Peer.cc
  18072. (resetStatus): Reset latecy.
  18073. (updateLatency): New function.
  18074. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18075. * src/SocketCore.cc
  18076. (isReadable): Added secure to the condition.
  18077. * src/HttpConnection.cc
  18078. (receiveResponse): Fixed a bug that causes no response header
  18079. exception.
  18080. * src/Peer.h
  18081. (getFastSet): Fixed the return value type.
  18082. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18083. To remove a wait from download loop:
  18084. * src/DownloadEngine.cc
  18085. (run): Comment out shortSleep.
  18086. To rewrite the message handling:
  18087. * src/SimplePeerMessage.h: New class.
  18088. * src/SimplePeerMessage.cc: New class.
  18089. * src/CancelMessage.h: Derived from SimplePeerMessage.
  18090. (msg): New variable.
  18091. (create): New function.
  18092. (send): Removed.
  18093. (getMessage): New function.
  18094. (getMessageLength): New function.
  18095. * src/CancelMessage.cc
  18096. (create): New function.
  18097. (receivedAction): Replaced deleteRequestMessageInQueue with
  18098. rejectPieceMessageInQueue.
  18099. (send): Removed.
  18100. (getMessage): New function.
  18101. (getMessageLength): New function.
  18102. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  18103. (msg): New variable.
  18104. (msgLength): New variable.
  18105. (~BitfieldMessage): Deleted msg.
  18106. (send): Removed.
  18107. (getMessage): New function.
  18108. (getMessageLength): New function.
  18109. * src/BitfieldMessage.cc
  18110. (create): New function.
  18111. (send): Removed.
  18112. (getMessage): New function.
  18113. (getMessageLength): New function.
  18114. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  18115. (msg): New variable.
  18116. (sendPredicate): New function.
  18117. (onSendComplete): New function.
  18118. (send): Removed.
  18119. (getMessage): New function.
  18120. (getMessageLength): New function.
  18121. (create): New function.
  18122. * src/ChokeMessage.cc
  18123. (create): New function.
  18124. (send): Removed.
  18125. (sendPredicate): New function.
  18126. (getMessage): New function.
  18127. (getMessageLength): New function.
  18128. (onSendComplete): New function.
  18129. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  18130. (msg): New variable.
  18131. (send): Removed.
  18132. (getMessage): New function.
  18133. (getMessageLength): New function.
  18134. * src/KeepAliveMessage.cc
  18135. (send): Removed.
  18136. (getMessage): New function.
  18137. (getMessageLength): New function.
  18138. * src/PortMessage.h
  18139. (create): New function.
  18140. (receivedAction): Updated log message.
  18141. * src/PortMessage.cc: New file.
  18142. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  18143. (msg): New variable.
  18144. (sendPredicate): New function.
  18145. (onSendComplete): New function.
  18146. (create): New function.
  18147. (send): Removed.
  18148. (getMessage): New function.
  18149. (getMessageLength): New function.
  18150. * src/UnchokeMessage.cc
  18151. (create): New function.
  18152. (send): Removed.
  18153. (sendPredicate): New function.
  18154. (getMessage): New function.
  18155. (getMessageLength): New function.
  18156. (onSendComplete): New function.
  18157. * src/PieceMessage.h
  18158. (leftPieceDataLength): Removed.
  18159. (leftDataLength): New variable.
  18160. (headerSend): New variable.
  18161. (pendingCount): New variable.
  18162. (msgHeader): New variable.
  18163. (sendPieceData): New function.
  18164. (incrementPendingCount): New function.
  18165. (isPendingCountMax): New function.
  18166. (create): New function.
  18167. (getMessageHeader): New function.
  18168. (getMessageHeaderLength): New function.
  18169. * src/PieceMessage.cc
  18170. (create): New function.
  18171. (getMessageHeader): New function.
  18172. (getMessageHeaderLength): New function.
  18173. (send): Rewritten.
  18174. (sendPieceData): New function.
  18175. * src/HaveMessage.h: Derived from SimplePeerMessage.
  18176. (msg): New variable.
  18177. (create): New function.
  18178. (getMessage): New function.
  18179. (getMessageLength): New function.
  18180. * src/HaveMessage.cc
  18181. (create): New function.
  18182. (send): Removed.
  18183. (sendPieceData): New function.
  18184. (getMessage): New function.
  18185. (getMessageLength): New function.
  18186. * src/RequestMessage.h: Derived from SimplePeerMessage.
  18187. (msg): New variable.
  18188. (create): New function.
  18189. (send): Removed.
  18190. (getMessage): New function.
  18191. (getMessageLength): New function.
  18192. * src/RequestMessage.cc
  18193. (create): New function.
  18194. (receivedAction): Added the handling of fast extension.
  18195. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  18196. (send): Removed.
  18197. (getMessage): New function.
  18198. (getMessageLength): New function.
  18199. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  18200. (msg): New variable.
  18201. (sendPredicate): New function.
  18202. (onSendComplete): New function.
  18203. (create): New function.
  18204. (getMessage): New function.
  18205. (getMessageLength): New function.
  18206. * src/InterestedMessage.cc
  18207. (create): New function.
  18208. (send): Removed.
  18209. (sendPieceData): New function.
  18210. (getMessage): New function.
  18211. (getMessageLength): New function.
  18212. (onSendComplete): New function.
  18213. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  18214. (msg): New variable.
  18215. (sendPieceData): New function.
  18216. (onSendComplete): New function.
  18217. (create): New function.
  18218. (send): Removed.
  18219. (getMessage): New function.
  18220. (getMessageLength): New function.
  18221. * src/NotInterestedMessage.cc
  18222. (create): New function.
  18223. (send): Removed.
  18224. (sendPredicate): New function.
  18225. (getMessage): New function.
  18226. (getMessageLength): New function.
  18227. (onSendComplete): New function.
  18228. * src/AllowedFastMessage.h: New class.
  18229. * src/AllowedFastMessage.cc: New class.
  18230. * src/RejectMessage.h: New class.
  18231. * src/RejectMessage.cc: New class.
  18232. * src/SuggestPieceMessage.h: New class.
  18233. * src/SuggestPieceMessage.cc: New class.
  18234. * src/HaveAllMessage.h: New class.
  18235. * src/HaveAllMessage.cc: New class.
  18236. * src/HaveNoneMessage.h: New class.
  18237. * src/HaveNoneMessage.cc: New class.
  18238. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  18239. (msg): New variable.
  18240. (reserved): New variable.
  18241. (create): New function.
  18242. (getId): New function.
  18243. (receivedAction): New function.
  18244. (getMessage): New function.
  18245. (getMessageLength): New function.
  18246. (isFastExtensionSupported): New function.
  18247. * src/HandshakeMessage.cc
  18248. (HandshakeMessage): Moved here from HandshakeMessage.h.
  18249. (create): New function.
  18250. (getMessage): New function.
  18251. (getMessageLength): New function.
  18252. (toString): Added the output of reserved field.
  18253. (check): Added const qualifier.
  18254. (isFastExtensionSupported): New function.
  18255. * src/PeerMessageUtil.h
  18256. (createChokeMessage): Removed.
  18257. (createUnchokeMessage): Removed.
  18258. (createInterestedMessage): Removed.
  18259. (createNotInterestedMessage): Removed.
  18260. (createHaveMessage): Removed.
  18261. (createBitfieldMessage): Removed.
  18262. (createRequestMessage): Removed.
  18263. (createCancelMessage): Removed.
  18264. (createPieceMessage): Removed.
  18265. (createPortMessage): Removed.
  18266. (createChokeMessage): Removed.
  18267. (createUnchokeMessage): Removed.
  18268. (createInterestedMessage): Removed.
  18269. (createNotInterestedMessage): Removed.
  18270. (createHaveMessage): Removed.
  18271. (createBitfieldMessage): Removed.
  18272. (createRequestMessage): Removed.
  18273. (createCancelMessage): Removed.
  18274. (createPieceMessage): Removed.
  18275. (createKeepAliveMessage): Removed.
  18276. (createHandshakeMessage): Removed.
  18277. (setIntParam): New function.
  18278. (createPeerMessageString): New function.
  18279. * src/PeerMessageUtil.cc
  18280. (createChokeMessage): Removed.
  18281. (createUnchokeMessage): Removed.
  18282. (createInterestedMessage): Removed.
  18283. (createNotInterestedMessage): Removed.
  18284. (createHaveMessage): Removed.
  18285. (createBitfieldMessage): Removed.
  18286. (createRequestMessage): Removed.
  18287. (createCancelMessage): Removed.
  18288. (createPieceMessage): Removed.
  18289. (createPortMessage): Removed.
  18290. (createRequestMessage): Removed.
  18291. (createCancelMessage): Removed.
  18292. (createPieceMessage): Removed.
  18293. (createHaveMessage): Removed.
  18294. (createChokeMessage): Removed.
  18295. (createUnchokeMessage): Removed.
  18296. (createInterestedMessage): Removed.
  18297. (createNotInterestedMessage): Removed.
  18298. (createBitfieldMessage): Removed.
  18299. (createKeepAliveMessage): Removed.
  18300. (createHandshakeMessage): Removed.
  18301. (setIntParam): New function.
  18302. (createPeerMessageString): New function.
  18303. * src/PeerConnection.h
  18304. (peer): Removed.
  18305. (torrentMan): Removed.
  18306. (createNLengthMessage): Removed.
  18307. (setIntParam): Removed.
  18308. (writeOutgoingMessageLog): Removed all overloaded functions.
  18309. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18310. (sendMessage): New function.
  18311. (sendHandshake): Removed.
  18312. (sendKeepAlive): Removed.
  18313. (sendChoke): Removed.
  18314. (sendUnchoke): Removed.
  18315. (sendInterested): Removed.
  18316. (sendNotInterested): Removed.
  18317. (sendHave): Removed.
  18318. (sendBitfield): Removed.
  18319. (sendRequest): Removed.
  18320. (sendPiece): Removed.
  18321. (sendPieceHeader): Removed.
  18322. (sendPieceData): Removed.
  18323. (sendCancel): Removed.
  18324. (getPeer): Removed.
  18325. * src/PeerConnection.cc
  18326. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18327. (sendHandshake): Removed.
  18328. (sendKeepAlive): Removed.
  18329. (createNLengthMessage): Removed.
  18330. (setIntParam): Removed.
  18331. (writeOutgoingMessageLog): Removed all overloaded functions.
  18332. (sendChoke): Removed.
  18333. (sendUnchoke): Removed.
  18334. (sendInterested): Removed.
  18335. (sendNotInterested): Removed.
  18336. (sendHave): Removed.
  18337. (sendBitfield): Removed.
  18338. (sendRequest): Removed.
  18339. (sendPiece): Removed.
  18340. (sendPieceHeader): Removed.
  18341. (sendPieceData): Removed.
  18342. (sendMessage): New function.
  18343. (sendCancel): Removed.
  18344. * src/PeerInteractionCommand.cc
  18345. (PeerInteractionCommand): Call setUploadLimit.
  18346. (executeInternal): Call setUploadLimit.
  18347. Added the handling of "inProgress" state of handshake message.
  18348. Call sendBitfield() or sendAllowdFast() instead of deprecated
  18349. sendNow().
  18350. (keepAlive): Call addMessage and sendMessage instead of deprecated
  18351. sendNow().
  18352. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  18353. * src/TorrentMan.h
  18354. (PEER_ID_LENGTH): New definition.
  18355. (hasAllPieces): New function.
  18356. * src/TorrentMan.cc
  18357. (getMissingPiece): Added the handling of fast extension.
  18358. (cancelPiece): Call updatePiece().
  18359. (hasAllPieces): New function.
  18360. * src/PeerInteraction.h
  18361. (fastSet): New variable.
  18362. (getNewPieceAndSendInterest): Changed the return type to void.
  18363. (send): Renamed as sendMessages.
  18364. (deleteAllRequestSlot): Removed.
  18365. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18366. (cancelAllRequest): Removed all overloaded functions.
  18367. (deleteAllRequestSlot): Removed.
  18368. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18369. (rejectPieceMessageInQueue): New function.
  18370. (rejectAllPieceMessageInQueue): New function.
  18371. (onChoked): New function.
  18372. (isSendingMessageInProgress): New function.
  18373. (getCorrespondingRequestSlot): Changed its arguments.
  18374. (isInFastSet): New function.
  18375. (addFastSetIndex): New function.
  18376. (addRequests): New function.
  18377. (sendNow): Removed.
  18378. (trySendNow): Removed.
  18379. (sendBitfield): New function.
  18380. (sendAllowdFast): New function.
  18381. (createHaveAllMessage): New function.
  18382. (createHaveNoneMessage): New function.
  18383. (createRejectMessage): New function.
  18384. (createAllowedFastMessage): New function.
  18385. * src/PeerInteraction.cc
  18386. (send): Renamed as sendMessages.
  18387. (sendMessages): New function.
  18388. (MsgPushBack): New class.
  18389. (isSendingMessageInProgress): New function.
  18390. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18391. (rejectAllPieceMessageInQueue): New function.
  18392. Added the handling of fast extension.
  18393. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18394. (rejectPieceMessageInQueue): New function.
  18395. Added the handling of fast extension.
  18396. (deleteRequestSlot): Replaced for loop with std::find.
  18397. (onChoked): New function.
  18398. (deleteAllRequestSlot): Removed.
  18399. (abortPiece): Rewirtten.
  18400. (deleteTimeoutRequestSlot): Updated log messages.
  18401. (getCorrespondingRequestSlot): Changed its arguments.
  18402. (cancelAllRequest): Removed all overloaded functions.
  18403. (receiveHandshake): Added the check to see whether an incoming peer
  18404. supports fast extension.
  18405. (createHandshakeMessage): Use HandshakeMessage::create instead of
  18406. PeerMessageUtil.
  18407. (createPeerMessage): Use create() of each message class instead of
  18408. PeerMessageUtil.
  18409. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  18410. AllowedFastMessage were added.
  18411. (getNewPieceAndSendInterest): Changed its return value type to void.
  18412. Added the handling of fast extension.
  18413. (addRequests): New function.
  18414. (sendNow): Removed.
  18415. (sendHandshake): Rewritten.
  18416. (trySendNow): Removed.
  18417. (sendBitfield): New function.
  18418. (sendAllowdFast): New function.
  18419. (isInFastSet): New function.
  18420. (addFastSetIndex): New function.
  18421. (createRequestMessage): Use RequestMessage::create instead of
  18422. PeerMessageUtil.
  18423. (createCancelMessage): Use CancelMessage::create instead of
  18424. PeerMessageUtil.
  18425. (createPieceMessage): Use PieceMessage::create instead of
  18426. PeerMessageUtil.
  18427. (createHaveMessage): Use HaveMessage::create instead of
  18428. PeerMessageUtil.
  18429. (createChokeMessage): Use ChokeMessage::create instead of
  18430. PeerMessageUtil.
  18431. (createUnchokeMessage): Use UnchokeMessage::create instead of
  18432. PeerMessageUtil.
  18433. (createInterestedMessage): Use InterestedMessage::create instead of
  18434. PeerMessageUtil.
  18435. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  18436. of PeerMessageUtil.
  18437. (createBitfieldMessage): Use BitfieldMessage::create instead of
  18438. PeerMessageUtil.
  18439. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  18440. PeerMessageUtil.
  18441. (createHaveAllMessage): New function.
  18442. (createHaveNoneMessage): New function.
  18443. (createRejectMessage): New function.
  18444. (createAllowedFastMessage: New function.
  18445. * src/Util.h
  18446. (sha1Sum): New function.
  18447. (computeFastSet): New function.
  18448. * src/Util.cc
  18449. (sha1Sum): New function.
  18450. (computeFastSet): New function.
  18451. * src/Peer.h
  18452. (fastExtensionEnabled): New variable.
  18453. (fastSet): New variable.
  18454. (setAllBitfield): New function.
  18455. (setFastExtensionEnabled): New function.
  18456. (isFastExtensionEnabled): New function.
  18457. (addFastSetIndex): New function.
  18458. (getFastSet): New function.
  18459. (isInFastSet): New function.
  18460. (countFastSet): New function.
  18461. * src/Peer.cc
  18462. (isInFastSet): New function.
  18463. (addFastSetIndex): New function.
  18464. (setAllBitfield): New function.
  18465. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  18466. sockets.
  18467. * src/PeerAbstractCommand.cc
  18468. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  18469. and uploadLimit.
  18470. (execute): Changed the procedure of checking sockets. The upload speed
  18471. checking were added.
  18472. (setUploadLimit): New function.
  18473. (setUploadLimitCheck): New function.
  18474. * src/PeerAbstractCommand.h
  18475. (setUploadLimit): New function.
  18476. (setUploadLimitCheck): New function.
  18477. (uploadLimit): New variable.
  18478. (uploadLimitCheck): New variable.
  18479. To contact a tracker regularly:
  18480. * src/TrackerWatcherCommand.h (interval): New variable.
  18481. (checkPoint): New variable.
  18482. (TrackerWatcherCommand): Added interval argument.
  18483. * src/TrackerWatcherCommand.cc
  18484. (TrackerWatcherCommand): Initialized checkPoint.
  18485. (execute): Now a tracker is contacted in every specified period.
  18486. If peer list is not needed, send request with numwant=0.
  18487. * src/TrackerUpdateCommand.cc
  18488. (execute): Updated log messages.
  18489. * src/DownloadEngine.cc
  18490. (~DownloadEngine): Removed two asserts.
  18491. (waitData): Uncommented wfds. May be a bug fix.
  18492. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18493. * src/PeerInteractionCommand.h
  18494. (checkInactiveConnection): Removed.
  18495. * src/PeerInteractionCommand.cc
  18496. (executeInternal): Removed following function calls:
  18497. detectMessageFlooding(), checkLongTimePeerChoking and
  18498. checkInactiveConnection().
  18499. (checkInactiveConnection): Removed.
  18500. (detectMessageFlooding): Removed function call to
  18501. checkInactiveConnection().
  18502. * src/PeerMessageUtil.h
  18503. (createChokeMessage): New function. Overload.
  18504. (createUnchokeMessage): New function. Overload.
  18505. (createInterestedMessage): New function. Overload.
  18506. (createNotInterestedMessage): New function. Overload.
  18507. (createHaveMessage): New function. Overload.
  18508. (createBitfieldMessage): New function. Overload.
  18509. (createRequestMessage): New function. Overload.
  18510. (createCancelMessage): New function. Overload.
  18511. (createPieceMessage): New function. Overload.
  18512. (createKeepAliveMessage): New function. Overload.
  18513. * src/PeerMessageUtil.cc
  18514. (createChokeMessage): New function. Overload.
  18515. (createUnchokeMessage): New function. Overload.
  18516. (createInterestedMessage): New function. Overload.
  18517. (createNotInterestedMessage): New function. Overload.
  18518. (createHaveMessage): New function. Overload.
  18519. (createBitfieldMessage): New function. Overload.
  18520. (createRequestMessage): New function. Overload.
  18521. (createCancelMessage): New function. Overload.
  18522. (createPieceMessage): New function. Overload.
  18523. (createKeepAliveMessage): New function. Overload.
  18524. * src/SendMessageQueue.cc
  18525. (createRequestMessage): Use PeerMessageUtil.
  18526. (createCancelMessage): Use PeerMessageUtil.
  18527. (createPieceMessage): Use PeerMessageUtil.
  18528. (createHaveMessage): Use PeerMessageUtil.
  18529. (createChokeMessage): Use PeerMessageUtil.
  18530. (createUnchokeMessage): Use PeerMessageUtil.
  18531. (createInterestedMessage): Use PeerMessageUtil.
  18532. (createNotInterestedMessage): Use PeerMessageUtil.
  18533. (createBitfieldMessage): Use PeerMessageUtil.
  18534. (createKeepAliveMessage): Use PeerMessageUtil.
  18535. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  18536. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  18537. * src/PeerInteraction.h: New class.
  18538. * src/PeerInteraction.cc: New class.
  18539. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18540. Each peer message has its own class.
  18541. * src/PendingMessages.h: Removed.
  18542. * src/PendingMessages.cc: Removed. The sending process was moved to
  18543. each message class.
  18544. * src/RequestSlotMan.h: Removed.
  18545. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  18546. SendMessageQueue.
  18547. * src/RequestMessage.h: New class.
  18548. * src/RequestMessage.cc: New class.
  18549. * src/CancelMessage.h: New class.
  18550. * src/CancelMessage.cc: New class.
  18551. * src/BitfieldMessage.h: New class.
  18552. * src/BitfieldMessage.cc: New class.
  18553. * src/ChokeMessage.h: New class.
  18554. * src/ChokeMessage.cc: New class.
  18555. * src/KeepAliveMessage.h: New class.
  18556. * src/KeepAliveMessage.cc: New class.
  18557. * src/PortMessage.h: New class.
  18558. * src/UnchokeMessage.h: New class.
  18559. * src/UnchokeMessage.cc: New class.
  18560. * src/PieceMessage.h: New class.
  18561. * src/PieceMessage.cc: New class.
  18562. * src/HaveMessage.h: New class.
  18563. * src/HaveMessage.cc: New class.
  18564. * src/BitfieldMessage.h: New class.
  18565. * src/BitfieldMessage.cc: New class.
  18566. * src/NotInterestedMessage.h: New class.
  18567. * src/NotInterestedMessage.cc: New class.
  18568. * src/InterestedMessage.h: New class.
  18569. * src/InterestedMessage.cc: New class.
  18570. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  18571. (getSendMessageQueue): New function.
  18572. (setSendMessageQueue): New function.
  18573. * src/HandshakeMessage.cc: New class.
  18574. * src/PeerConnection.h (receiveMessage): Changed return value and
  18575. arguments.
  18576. (receiveHandshake): Changed return value and arguments.
  18577. * src/PeerConnection.cc (receiveMessage): Do not create message class
  18578. here.
  18579. (receiveHandshake): Do not create handshake class here.
  18580. * src/PeerInteractionCommand.h (peerConnection): Removed.
  18581. (piece): Removed.
  18582. (syncPiece): Removed.
  18583. (sendInterest): Removed.
  18584. (sendMessages): Removed.
  18585. (createRequestPendingMessage): Removed.
  18586. (checkPieceHash): Removed.
  18587. (erasePieceOnDisk): Removed.
  18588. (getNewPieceAndSendInterest): Removed.
  18589. (onGotNewPice): Removed.
  18590. (onGotWrongPiece): Removed.
  18591. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18592. Removed peerConnection, piece.
  18593. (~PeerInteractionCommand): Removed peerConnection.
  18594. (executeInternal): Use sendMessageQueue instead of peerConnection.
  18595. (syncPiece): Moved to SendMessageQueue.
  18596. (decideChoking): Removed PendingMessage.
  18597. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  18598. The action after receiving peer message was moved to each message
  18599. class.
  18600. (onGotNewPice): Moved to SendMessageQueue.
  18601. (onGotWrongPiece): Moved to SendMessageQueue.
  18602. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  18603. (sendInterest): Moved to SendMessageQueue.
  18604. (createRequestPendingMessage): Removed.
  18605. (sendMessages): Moved to SendMessageQueue.
  18606. (onAbort): Use SendMessageQueue::abortPiece()
  18607. (keepAlive): Use sendMessageQueue instead of peerConnection.
  18608. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  18609. (checkPieceHash): Moved to SendMessageQueue.
  18610. (erasePieceOnDisk): Moved to SendMessageQueue.
  18611. * src/PeerMessageUtil.h
  18612. (createBitfieldMessage): Removed.
  18613. (createHaveMessage): Changed return value and arguments.
  18614. (createBitfieldMessage): Changed return value and arguments.
  18615. (createRequestCancelMessage): Removed.
  18616. (createPieceMessage): Changed return value and arguments.
  18617. (getShortIntParam): New function.
  18618. (checkIndex): Changed arguments.
  18619. (checkBegin): Changed arguments.
  18620. (checkLength): Changed arguments.
  18621. (checkPieceOffset): Removed.
  18622. (checkRange): New function.
  18623. (checkBitfield): Changed arguments.
  18624. (createPeerMessage): Removed.
  18625. (checkIntegrity): Removed.
  18626. (createHandshakeMessage): Changed arguments.
  18627. (createChokeMessage): New function.
  18628. (createUnchokeMessage): New function.
  18629. (createInterestedMessage): New function.
  18630. (createNotInterestedMessage): New function.
  18631. (createRequestMessage): New function.
  18632. (createCancelMessage): New function.
  18633. (createPortMessage): New function.
  18634. * src/PeerMessageUtil.cc
  18635. (createBitfieldMessage): Removed.
  18636. (createHaveMessage): Changed return value and arguments.
  18637. (createBitfieldMessage): Changed return value and arguments.
  18638. (createRequestCancelMessage): Removed.
  18639. (createPieceMessage): Changed return value and arguments.
  18640. (getShortIntParam): New function.
  18641. (checkIndex): Changed arguments.
  18642. (checkBegin): Changed arguments.
  18643. (checkLength): Changed arguments.
  18644. (checkPieceOffset): Removed.
  18645. (checkRange): New function.
  18646. (checkBitfield): Changed arguments.
  18647. (createPeerMessage): Removed.
  18648. (checkIntegrity): Removed.
  18649. (createHandshakeMessage): Changed arguments.
  18650. (createChokeMessage): New function.
  18651. (createUnchokeMessage): New function.
  18652. (createInterestedMessage): New function.
  18653. (createNotInterestedMessage): New function.
  18654. (createRequestMessage): New function.
  18655. (createCancelMessage): New function.
  18656. (createPortMessage): New function.
  18657. * src/PeerMessage.h
  18658. (id): Removed.
  18659. (index): Removed.
  18660. (begin): Removed.
  18661. (length): Removed.
  18662. (bitfield): Removed.
  18663. (bitfieldLength): Removed.
  18664. (block): Removed.
  18665. (blockLength): Removed.
  18666. (inProgress): New variable.
  18667. (cuid): New variable.
  18668. (peer): New variable.
  18669. (sendMessageQueue): New variable.
  18670. (logger): New variable.
  18671. (setBitfield): Removed.
  18672. (getBitfield): Removed.
  18673. (setBlock): Removed.
  18674. (getBlock): Removed.
  18675. (getBitfieldLength): Removed.
  18676. (getBlockLength): Removed.
  18677. (isInProgress): New function.
  18678. (toString): Made pure virtual.
  18679. (check): New function.
  18680. (send): New function.
  18681. (receivedAction): New function.
  18682. (getId): Made pure virtual.
  18683. (setId): Removed.
  18684. (getIndex): Removed.
  18685. (setIndex): Removed.
  18686. (getBegin): Removed.
  18687. (setBegin): Removed.
  18688. (getLength): Removed.
  18689. (setLength): Removed.
  18690. (getCuid): New function.
  18691. (setCuid): New function.
  18692. (getPeer): New function.
  18693. (setPeer): New function.
  18694. (getSendMessageQueue): New function.
  18695. (setSendMessageQueue): New function.
  18696. (ID): Removed.
  18697. * src/PeerMessage.cc
  18698. (setBitfield): Removed.
  18699. (setBlock): Removed.
  18700. (toString): Removed.
  18701. * src/TorrentMan.h
  18702. (getPieceLength): New function.
  18703. (getPieceLength): New function.
  18704. * src/SendMessageQueue.h
  18705. (REQUEST_TIME_OUT): New definition.
  18706. (RequestSlots): New definition.
  18707. (MessageQueue): New definition.
  18708. (requestSlotMan): Removed.
  18709. (pendingMessages): Removed.
  18710. (requestSlots): New variable.
  18711. (messageQueue): New variable.
  18712. (torrentMan): New variable.
  18713. (peerConnection): New variable.
  18714. (peer): New variable.
  18715. (piece): New variable.
  18716. (getNewPieceAndSendInterest): New function.
  18717. (createPeerMessage): New function.
  18718. (createHandshakeMessage): New function.
  18719. (send): Made private.
  18720. (setPeerMessageCommonProperty): New function.
  18721. (deleteAllRequestSlot): New function.
  18722. (deleteRequestMessageInQueue): New function.
  18723. (cancelAllRequest): Made private.
  18724. (cancelAllRequest): Made private.
  18725. (countRequestSlot): Made private.
  18726. (addPendingMessage): Removed.
  18727. (deletePendingPieceMessage): Removed.
  18728. (deletePendingRequestMessage): Removed.
  18729. (addMessage): New function.
  18730. (deletePieceMessageInQueue): New function.
  18731. (deleteTimeoutRequestSlot): Changed argument.
  18732. (deleteCompletedRequestSlot): Changed argument.
  18733. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  18734. (getCorrespondingRequestSlot): New function.
  18735. (countPendingMessage): Removed.
  18736. (countMessageInQueue): New function.
  18737. (getTorrentMan): New function.
  18738. (getPeerConnection): New function.
  18739. (hasDownloadPiece): New function.
  18740. (getDownloadPiece): New function.
  18741. (setDownloadPiece): New function.
  18742. (syncPiece): New function.
  18743. (sendMessages): New function.
  18744. (sendNow): New function.
  18745. (trySendNow): New function.
  18746. (abortPiece): New function.
  18747. (sendHandshake): New function.
  18748. (receiveMessage): New function.
  18749. (receiveHandshake): New function.
  18750. (createRequestMessage): New function.
  18751. (createCancelMessage): New function.
  18752. (createPieceMessage): New function.
  18753. (createHaveMessage): New function.
  18754. (createChokeMessage): New function.
  18755. (createUnchokeMessage): New function.
  18756. (createInterestedMessage): New function.
  18757. (createNotInterestedMessage): New function.
  18758. (createBitfieldMessage): New function.
  18759. (createKeepAliveMessage): New function.
  18760. * src/SendMessageQueue.cc
  18761. (SendMessageQueue): Removed requestSlotMan.
  18762. Instantiated peerConnection here.
  18763. (~SendMessageQueue): Removed requestSlotMan.
  18764. Added deletion of peerConnection and the contents of messageQueue.
  18765. (send): Updated according to the change of messageQueue.
  18766. (addPendingMessage): Renamed to addMessage.
  18767. (addMessage): New function.
  18768. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  18769. (deletePieceMessageInQueue): New function.
  18770. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  18771. (deleteRequestMessageInQueue): New function.
  18772. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  18773. here.
  18774. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  18775. (...) was moved here.
  18776. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  18777. moved here.
  18778. (deleteCompletedRequestSlot):
  18779. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  18780. (getCorrespondingRequestSlot):
  18781. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  18782. And renamed to getCorrespondingRequestSlot, correcting a typo.
  18783. (countPendingMessage): Renamed to countMessageInQueue.
  18784. (countMessageInQueue): New function.
  18785. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  18786. (receiveHandshake): New function.
  18787. (createHandshakeMessage): New function.
  18788. (receiveMessage): New function.
  18789. (createPeerMessage): New function.
  18790. (syncPiece): New function.
  18791. (getNewPieceAndSendInterest): New function.
  18792. (sendMessages): New function.
  18793. (sendNow): New function.
  18794. (trySendNow): New function.
  18795. (sendHandshake): New function.
  18796. (abortPiece): New function.
  18797. (getDownloadPiece): New function.
  18798. (getPeerMessageCommonProperty): New function.
  18799. (createRequestMessage): New function.
  18800. (createCancelMessage): New function.
  18801. (createPieceMessage): New function.
  18802. (createHaveMessage): New function.
  18803. (createChokeMessage): New function.
  18804. (createUnchokeMessage): New function.
  18805. (createInterestedMessage): New function.
  18806. (createNotInterestedMessage): New function.
  18807. (createBitfieldMessage): New function.
  18808. (createKeepAliveMessage): New function.
  18809. To add simple Content-Disposition support:
  18810. * src/HttpResponseCommand.h (determinFilename): New function.
  18811. * src/HttpResponseCommand.cc (executeInternal):
  18812. Use determinFilename(headers) instead of req->getFile() when comparing
  18813. filename.
  18814. (determinFilename): New function.
  18815. (handleDefaultEncoding): Use determinFilename(headers) instead of
  18816. req->getFile().
  18817. (handleOtherEncoding): Use determinFilename(headers) instead of
  18818. req->getFile().
  18819. * src/Util.h (getContentDispositionFilename): New function.
  18820. * src/Util.cc (getContentDispositionFilename): New function.
  18821. * src/LogFactory.h (release): New function.
  18822. * src/LogFactory.cc (release): New function.
  18823. To fix a bug that causes out-of-bound exception when HTTP status
  18824. line is wrong:
  18825. * src/HttpConnection.cc (receiveResponse): Added a check for header
  18826. size.
  18827. * src/common.h (Deleter): New class.
  18828. * src/SegmentMan.cc
  18829. (~SegmentMan): Added deletion of splitter and diskWriter.
  18830. * src/DownloadEngine.h
  18831. (Commands): Use deque.
  18832. (clearQueue): New function.
  18833. * src/DownloadEngine.cc
  18834. (~DownloadEngine): Added deletion of segmentMan.
  18835. (cleanQueue): New function.
  18836. * src/TorrentDownloadEngine.h
  18837. (TorrentDownloadEngine): The implementation was moved to
  18838. TorrentDownloadEngine.cc.
  18839. (~TorrentDownloadEngine): The implementation was moved to
  18840. TorrentDownloadEngine.cc.
  18841. * src/TorrentDownloadEngine.cc
  18842. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18843. * src/main.cc
  18844. (clearRequest): Removed.
  18845. (handler): Added deletion of e.
  18846. (torrentHandler): Added deletion of te.
  18847. (main): Do not share splitter.
  18848. Use Deleter instead of clearRequest.
  18849. Deletion of classes were updated.
  18850. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18851. * src/main.cc (main): Fixed typo.
  18852. * src/message.h: Fixed typo.
  18853. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18854. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18855. To add --select-file command-line option:
  18856. * src/Util.cc
  18857. (unfoldRange): New function.
  18858. (getNum): New function.
  18859. (unfoldSubRange): New function
  18860. * src/main.cc
  18861. (showUsage): Added help message.
  18862. (main): Added --select-file command-line option. Updated the layout of
  18863. file listing.
  18864. * src/common.h
  18865. (Integers): New definition.
  18866. * src/SocketCore.cc
  18867. (writeData): Removed timeout argument.
  18868. (readData): Removed timeout argument.
  18869. (peekData): Removed timeout argument.
  18870. * src/Socket.cc
  18871. (writeData): Removed timeout argument.
  18872. (readData): Removed timeout argument.
  18873. (peekData): Removed timeout argument.
  18874. * Release 0.4.1
  18875. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18876. To deploy upload rate based choking algorithm:
  18877. * src/PeerInteractionCommand.cc
  18878. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18879. peer currently used.
  18880. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18881. download completes. Simplified.
  18882. (receiveMessage): Updated.
  18883. * src/TorrentMan.h
  18884. (activePeers): New variable.
  18885. (addActivePeer): New function.
  18886. (getActivePeers): New function.
  18887. (deleteActivePeer): New function.
  18888. * src/TorrentMan.cc
  18889. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18890. * src/PeerAbstractCommand.cc
  18891. (onAbort): Use peer->resetStatus().
  18892. * src/main.cc
  18893. (PeerChokeCommand.h): Included.
  18894. (main): Added the instance of ChokingCommand to the command queue.
  18895. * src/Peer.h
  18896. (amChoking): Renamed from amChocking
  18897. (chokingRequired): New variable.
  18898. (optUnchoking): New variable.
  18899. (deltaUpload): New variable.
  18900. (deltaDownload): New variable.
  18901. (addDeltaUpload): New function.
  18902. (resetDeltaUpload): New function.
  18903. (addDeltaDownload): New function.
  18904. (resetDeltaDownload): New function.
  18905. (addPeerUpload): Added a call to addDeltaUpload.
  18906. (addPeerDownload): Added a call to addDeltaDownload.
  18907. * src/Peer.cc
  18908. (shouldBeChoking): Renamed from shouldChoke.
  18909. (resetStatus): New function.
  18910. * src/PeerChokeCommand.h: New class.
  18911. * src/PeerChokeCommand.cc: New class.
  18912. To add lazy upload speed limiter:
  18913. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18914. statistics calculation to TorrentDownloadEngine.
  18915. * src/TorrentConsoleDownloadEngine.cc
  18916. (sendStatistics): Renamed from printStatistics.
  18917. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18918. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18919. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18920. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18921. calculation.
  18922. (sendStatistics): New function as pure virtual function.
  18923. (getUploadSpeed): New function.
  18924. * src/TorrentDownloadEngine.cc
  18925. (initStatistics): New function.
  18926. (calculateSpeed): New function.
  18927. (calculateStatistics): New function.
  18928. * src/SendMessageQueue.h
  18929. (uploadLength): New variable.
  18930. (send): Added an argument.
  18931. (setUploadLimit): New function.
  18932. (getUploadLimit): New function.
  18933. * src/SendMessageQueue.cc
  18934. (send): Added upload speed limiter.
  18935. * src/prefs.h
  18936. (PREF_UPLOAD_LIMIT): New definition.
  18937. * src/PeerInteractionCommand.cc
  18938. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18939. * src/main.cc
  18940. (main): Added --upload-limit option
  18941. For bug fixes:
  18942. * src/main.cc
  18943. (showUsage): Corrected --listen-port help
  18944. Other changes:
  18945. * src/TorrentMan.cc
  18946. (getPeer): Return nullPeer if connection is grather than
  18947. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18948. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18949. To add some useful information to the exception message:
  18950. * src/SocketCore.cc : Updated messages.
  18951. * src/SegmentMan.cc :
  18952. * src/TorrentMan.cc : Updated messages.
  18953. * src/MultiDiskWriter.cc : Updated messages.
  18954. * src/Util.cc : Updated messages.
  18955. * src/AbstractDiskWriter.cc : Updated messages.
  18956. * src/PreAllocationDiskWriter.cc : Updated messages.
  18957. * src/message.cc : Added new messages. Updated some messages.
  18958. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18959. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18960. Updated threshold from 30 to 15.
  18961. * src/AbstractDiskWriter.h (filename): New variable.
  18962. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18963. (createFile): Assigned filename.
  18964. * src/main.cc: Updated the help message for http-auth-scheme.
  18965. * Release 0.4.0
  18966. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18967. To add TrackerUpdateCommand with which replaces
  18968. CompactTrackerResponseProcessor:
  18969. * src/TrackerWatcherCommand.h (req): Removed.
  18970. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18971. if the number of peer connections are less than 30.
  18972. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18973. * src/SegmentMan.h (diskWriter): New function.
  18974. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18975. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18976. (main): Use TrackerUpdateCommand.
  18977. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18978. (req): New variable.
  18979. (setTrackerResponseProcessor): Removed.
  18980. (getTrackerResponseProcessor): Removed.
  18981. (processTrackerResponse): Removed.
  18982. * src/DownloadEngine.h (diskWriter): Removed.
  18983. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18984. to torrentMan->processTrackerResponse().
  18985. To add Util::expandBuffer:
  18986. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18987. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18988. * src/Util.h (expandBuffer): New function.
  18989. To fix the bug that causes segmentation fault when "-l ." is specified
  18990. in command-line option:
  18991. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18992. (openFile): New function.
  18993. (closeFile): New function.
  18994. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18995. (~SimpleLogger): Call closeFile();
  18996. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18997. * src/main.cc (main): Added a check to see logger is configured
  18998. properly.
  18999. To enable HTTP authentication without specifying "--http-auth-scheme"
  19000. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  19001. * src/HttpConnection.cc (createRequest): Send Authorization header
  19002. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  19003. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  19004. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  19005. * src/Peer.cc (shouldChoke): Updated algorithm.
  19006. * src/message.h (EX_AUTH_FAILED): New definition.
  19007. (EX_FILE_OPEN): New definition.
  19008. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  19009. if status == 401.
  19010. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  19011. if req->isTorrent == true.
  19012. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  19013. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  19014. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  19015. (createFile): Updated message.
  19016. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19017. To add a readout of estimated remaining time to normal HTTP/FTP
  19018. downloads:
  19019. * src/ConsoleDownloadEngine.h (startup): New variable.
  19020. (startupLength): New variable.
  19021. (isStartupLengthSet): New variable.
  19022. (avgSpeed): New variable.
  19023. (eta): New variable.
  19024. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  19025. estimated remaining time.
  19026. (initStatistics): Initialized newly added variables.
  19027. (calculateStatistics): Calculate average speed and estimated remaining
  19028. time.
  19029. To decouple TorrentDownloadEngine from HttpResponseCommand:
  19030. * src/TrackerDownloadCommand.h: Removed.
  19031. * src/TrackerDownloadCommand.cc: Removed.
  19032. * src/TrackerInitCommand.h: Removed.
  19033. * src/TrackerInitCommand.cc: Removed.
  19034. * src/TrackerUpdateCommand.h: Removed.
  19035. * src/TrackerUpdateCommand.cc: Removed.
  19036. * src/TrackerWatcherCommand.cc (execute): The construction of request
  19037. url written in TrackerInitCommand was moved here. Do not create
  19038. tracker request command if torrentMan->trackers != 0.
  19039. * src/CompactTrackerResponseProcessor.h: New class.
  19040. * src/CompactTrackerResponseProcessor.cc: New class.
  19041. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  19042. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  19043. Decoupled TorrentDownloadEngine from this.
  19044. * src/SegmentMan.h (init): New function.
  19045. * src/SegmentMan.cc (init): New function.
  19046. * src/TorrentMan.h (responseProcessor): New variable.
  19047. (trackers): New variable.
  19048. (setTrackerResponseProcessor): New function.
  19049. (getTrackerResponseProcessor): New function.
  19050. (processTrackerResponse): New function.
  19051. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  19052. (processTrackerResponse): New function.
  19053. * src/main.cc (main): Use ByteArrayDiskWriter and
  19054. CompactTrackerResponseProcessor.
  19055. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  19056. processTrackerResponse().
  19057. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  19058. readout.
  19059. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  19060. which indicates download has completed.
  19061. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  19062. (closeFile): fd >= 0, not fd > 0
  19063. * src/main.cc (main): Added short cut for show-files.
  19064. Added short cut for torrent-file.
  19065. Added new command-line option listen-port.
  19066. Updated i18n messages.
  19067. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19068. To add LogFactory which creates singleton logger:
  19069. * src/LogFactory.h: New class.
  19070. * src/LogFactory.cc: New class.
  19071. * src/Command.h (logger): New variable.
  19072. (Constructor): Use LogFactory.
  19073. * src/AbstractCommand.cc: Use Command::logger
  19074. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  19075. Use LogFactory.
  19076. * src/SegmentSplitter.h : Made logger protected.
  19077. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  19078. * src/SegmentMan.cc (Constructor): Use LogFactory.
  19079. * src/DownloadEngine.h : Made logger protected.
  19080. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  19081. * src/PeerInteractionCommand.cc : Use Command::logger.
  19082. * src/HttpResponseCommand.cc : Use Command::logger.
  19083. * src/SegmentMan.h : Made logger private.
  19084. * src/TorrentMan.h : Made logger private.
  19085. * src/TorrentMan.cc : Use LogFactory.
  19086. * src/FtpNegotiateCommand.cc : Use Command::logger.
  19087. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  19088. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  19089. Use LogFactory.
  19090. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  19091. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  19092. Use LogFactory.
  19093. * src/DownloadCommand.cc : Use Command::logger.
  19094. * src/PeerAbstractCommand.cc : Use Command::logger.
  19095. * src/PeerListenCommand.cc : Use Command::logger.
  19096. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  19097. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  19098. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  19099. * src/TrackerWatcherCommand.cc : Use Command::logger.
  19100. * src/TrackerUpdateCommand.cc : Use Command::logger.
  19101. * src/TrackerDownloadCommand.cc : Use Command::logger.
  19102. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  19103. Use LogFactory.
  19104. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  19105. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  19106. Use LogFactory.
  19107. * src/main.cc (main): Use LogFactory.
  19108. * src/DiskAdaptor.h (logger): New variable.
  19109. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  19110. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  19111. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19112. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  19113. parameter to a tracker request.
  19114. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  19115. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  19116. * src/main.cc (setSignalHander): New function.
  19117. (main): Added a handler for SIGTERM.
  19118. (handler): Updated message.
  19119. (torrentHandler): Updated message.
  19120. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19121. * src/TorrentConsoleDownloadEngine.cc
  19122. (onPartialDownloadingCompletes): Renamed as
  19123. onSelectiveDownloadingCompletes.
  19124. (onSelectiveDownloadingCompletes): Updated message.
  19125. To add DiskAdaptor which abstract DiskWriter family:
  19126. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  19127. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  19128. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  19129. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  19130. MultiDiskAdaptor.h.
  19131. (readFileEntry): Changed its arguments.
  19132. (setup): setupDiskWriter is merged into this function.
  19133. (setupDiskWriter): Removed.
  19134. (setFileFilter): New function.
  19135. (readFileEntryFromMetaInfoFile): Updated according to the changes
  19136. made in readFileEntry.
  19137. (getFilePath): Removed.
  19138. (getTempFilePath): Removed.
  19139. (getSegmentFilePath): Updated due to the removal of getFilePath.
  19140. (fixFilename): Removed.
  19141. (copySingleFile): Removed.
  19142. (splitMultiFile): Removed.
  19143. (deleteTempFile): Removed.
  19144. (setFileEntriesToDownload): Removed.
  19145. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  19146. (isSelectiveDownloadingMode): New function.
  19147. (setAllMultiFileRequestedState): Removed.
  19148. (finishPartialDownloadingMode): Renamed as
  19149. finishSelectiveDownloadingMode.
  19150. (finishSelectiveDownloadingMode): New function.
  19151. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  19152. (getSelectedTotalLength): New function.
  19153. (onDownloadComplete): Use diskAdaptor.
  19154. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  19155. (Range): Removed.
  19156. (setMultiFileEntries): Renamed as setFileEntries.
  19157. (setFileEntries): New function.
  19158. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  19159. (pieceLength): New variable.
  19160. * src/main.cc (printDownloadCompeleteMessage): New function.
  19161. (torrentHandler): Use diskAdaptor instead of diskWriter.
  19162. (main): Renamed torrent-show-files to show-files.
  19163. Rewritten file contents listing.
  19164. * src/TorrentMan.h (FileEntry): Removed.
  19165. (multiFileTopDir): Removed.
  19166. (multiFileEntries): Removed.
  19167. (diskWriter): Removed.
  19168. (diskAdaptor): New variable.
  19169. * src/DefaultDiskWriter.h (totalLength): New variable.
  19170. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  19171. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  19172. diskWriter.
  19173. * src/TorrentConsoleDownloadEngine.h
  19174. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  19175. (partialTotalLength): Renamed as selectedTotalLength.
  19176. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  19177. openExistingFile, otherwise call initAndOpenFile.
  19178. (closeFile): fd > 0, not fd != 0.
  19179. * src/DirectDiskAdaptor.h: New class.
  19180. * src/DirectDiskAdaptor.cc: New class.
  19181. * src/MultiDiskAdaptor.h: New class.
  19182. * src/MultiDiskAdaptor.cc: New class.
  19183. * src/CopyDiskAdaptor.h: New class.
  19184. * src/CopyDiskAdaptor.cc: New class.
  19185. * src/DiskAdaptor.h: New class.
  19186. * src/DiskAdaptor.cc: New class.
  19187. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  19188. (PREF_SHOW_FILES): New definition.
  19189. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19190. To add the ability to download multi torrent into respective files
  19191. directly:
  19192. * src/DiskWriter.h (openFile): New function.
  19193. (seek): Removed.
  19194. * src/MultiDiskWriter.h: New class.
  19195. * src/MultiDiskWriter.cc: New class.
  19196. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  19197. protected.
  19198. (openFile): New function.
  19199. * src/AbstractDiskWriter.cc (openFile): New function.
  19200. * src/prefs.h (V_FALSE): New definition.
  19201. (PREF_DIRECT_FILE_MAPPING): New definition.
  19202. * src/TorrentMan.h (setupDiskWriter): New function.
  19203. (setAllMultiFileRequestedState): New function.
  19204. (onDownloadComplete): New function.
  19205. * src/TorrentMan.cc : Included MultiDiskWriter.h
  19206. (setupDiskWriter): New function.
  19207. (getFilePath): Updated.
  19208. (getTempFilePath): Updated.
  19209. (getSegmentFilePath): Updated.
  19210. (fixFilename): Updated.
  19211. (deleteTempFile): Updated.
  19212. (setAllMultiFileRequestedState): New function.
  19213. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  19214. (finishPartialDownloadingMode): Reset requested flags.
  19215. (onDownloadComplete): New function.
  19216. * src/main.cc: Added --direct-file-mapping option.
  19217. Use TorrentMan::setupDiskWriter().
  19218. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  19219. onDownloadComplete().
  19220. To fix ETA bug:
  19221. * src/Util.h (difftvsec): New function.
  19222. * src/Util.cc (difftvsec): New function.
  19223. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  19224. type of "elapsed" instead of long long int.
  19225. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  19226. The updates of statistics takes place every 1 seconds.
  19227. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  19228. (calculateSpeed): Changed its argument signature.
  19229. * src/PeerMessage.cc (toString): Fixed message.
  19230. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19231. To print ETA:
  19232. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  19233. completion handling when dealing with
  19234. TorrentMan::isPartialDownloadingMode() == true.
  19235. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  19236. New function.
  19237. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  19238. (sessionDownloadLength): New variable.
  19239. (avgSpeed): New variable.
  19240. (eta): New variable.
  19241. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  19242. new variables: eta, avgSpeed, startup.
  19243. (calculateSpeed): Calculate average speed and ETA.
  19244. (printStatistics): Added ETA.
  19245. * src/Util.h (secfmt): New function.
  19246. * src/Util.cc (secfmt): New function.
  19247. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19248. To detect "keep alive" flooding:
  19249. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  19250. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  19251. variable: keepAliveCount.
  19252. (detectMessageFlooding): Added "keep alive" flooding detection.
  19253. (receiveMessage): Increase keepAliveCount when "keep alive" message
  19254. received.
  19255. To add the ability to download only specified files in multi-file
  19256. torrent:
  19257. * src/BitfieldMan.h (filterBitfield): New variable.
  19258. (filterEnabled): New variable.
  19259. (setFilterBit): New function.
  19260. (enableFilter): New function.
  19261. (disableFilter): New function.
  19262. (isFilterEnabled): New function.
  19263. (getFilteredTotalLength): New function.
  19264. (getCompletedLength): New function.
  19265. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  19266. filterBitfield, filterEnabled.
  19267. (CopyConstructor): Added filterBitfield and filterEnabled.
  19268. (operator==): Added filterBitfield and filterEnabled.
  19269. (Destructor): Added filterBitfield.
  19270. (getMissingIndex): Use filterBitfield.
  19271. (getMissingUnusedIndex): Use filterBitfield.
  19272. (getFirstMissingUnusedIndex): Use filterBitfield.
  19273. (getFirstMissingUnusedIndex): Use filterBitfield.
  19274. (getAllMissingIndexes): Use filterBitfield.
  19275. (countMissingBlock): Use filterBitfield.
  19276. (countBlock): Use filterBitfield.
  19277. (setBitInternal): Added new argument on.
  19278. (setUseBit): Use setBitInternal.
  19279. (unsetUseBit): Use setBitInternal.
  19280. (setBit): Use setBitInternal.
  19281. (unsetBit): Use setBitInternal.
  19282. (isAllBitSet): Use filterBitfield.
  19283. (setFilterBit): New function.
  19284. (addFilter): New function.
  19285. (enableFilter): New function.
  19286. (disableFilter): New function.
  19287. (clearFilter): New function.
  19288. (isFilterEnabled): New function.
  19289. (getFilteredTotalLength): New function.
  19290. (getCompletedLength): New function.
  19291. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  19292. Initalized newly added variables.
  19293. [FileEntry](offset): New variable.
  19294. [FileEntry](extracted): New variable.
  19295. [FileEntry](requested): New variable.
  19296. (readFileEntry): New function.
  19297. (option): New variable.
  19298. (splitMultiFile): Removed const qualifier.
  19299. (fixFilename): Removed const qualifier.
  19300. (readFileEntryFromMetaInfoFile): New function.
  19301. (finishPartialDownloadingMode): New function.
  19302. (isPartialDownloadingMode): New function.
  19303. (setFileEntriesToDownload): New function.
  19304. (getCompletedLength): New function.
  19305. (getPartialTotalLength): New function.
  19306. * src/TorrentMan.cc (readFileEntry): New function.
  19307. (setup): Use readFileEntry. If no-preallocation option is specified,
  19308. use DefaultDiskWriter.
  19309. (readFileEntryFromMetaInfoFile): New function.
  19310. (fixFilename): Removed const qualifier.
  19311. (splitMultiFile): Removed const qualifier.
  19312. (setFileEntriesToDownload): New function.
  19313. (isPartialDownloadingMode): New function.
  19314. (finishPartialDownloadingMode): New function.
  19315. (getCompletedLength): New function.
  19316. (getPartialTotalLength): New function.
  19317. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  19318. New variable.
  19319. (partialTotalLength): New variable.
  19320. (downloadLength): New variable.
  19321. (totalLength): New variable.
  19322. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  19323. Added log.
  19324. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  19325. partialTotalLength, downloadLength, totalLength.
  19326. (calculate): Calculate downloadLength and totalLength.
  19327. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  19328. * src/main.cc (addCommand): Changed argument signature.
  19329. (main): Added new variable: args. Added new option "torrent-show-files"
  19330. "no-preallocation". Usage is not updated yet.
  19331. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19332. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  19333. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19334. Attempt to add the ability to listing file entries in a .torrent file.
  19335. This feature is not yet complete.
  19336. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  19337. * src/TorrentMan.cc (getMultiFileEntries): New function.
  19338. (getName): New function.
  19339. * src/TorrentMan.h (getMultiFileEntries): New function.
  19340. (getName): New function.
  19341. * src/main.cc (main): Use above 2 funtion.
  19342. * Release 0.3.2
  19343. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19344. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  19345. (detectMessageFlooding): Updated threshold value.
  19346. (checkLongTimePeerChoking): Updated timeout value.
  19347. (getNewPieceAndSendInterest): Added debug log.
  19348. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  19349. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  19350. (getPeer): Updated.
  19351. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  19352. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  19353. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  19354. is localhost.
  19355. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  19356. * src/PendingMessage.cc (processMessage): Not to send piece message
  19357. if peer is not interested in the pieces localhost has.
  19358. * src/Peer.cc (shouldChoke): Updated.
  19359. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  19360. * src/Util.cc (isPowerOf): New function.
  19361. * src/Util.h (isPowerOf): New function.
  19362. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  19363. whether or not it is power of 2.
  19364. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19365. Added new class SendMessageQueue that includes PendingMessages and
  19366. RequestSlotMan.
  19367. * src/SendMessageQueue.h: New class.
  19368. * src/SendMessageQueue.cc: New class.
  19369. * src/PendingMessage.h: Added new member variable blockIndex and its
  19370. accessors.
  19371. (createRequestMessage): Updated.
  19372. * src/PendingMessage.cc (createRequestMessage): Updated.
  19373. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  19374. SendMessageQueue.
  19375. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  19376. (receiveMessage): Updated with SendMessageQueue.
  19377. (deletePendingPieceMessage): Removed.
  19378. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  19379. (sendInterest): Updated with SendMessageQueue.
  19380. (createRequestPendingMessage): Updated with SendMessageQueue.
  19381. (sendMessages): Updated with SendMessageQueue.
  19382. (onAbort): Updated with SendMessageQueue.
  19383. (keepAlive): Updated with SendMessageQueue.
  19384. (beforeSocketCheck): Updated SendMessageQueue.
  19385. * src/PeerInteractionCommand (sendMessages): Shuffle
  19386. missingBLockIndexes before using it.
  19387. Added its own timeout for peer connection.
  19388. * src/PeerAbstractCommand.h: Added member variable timeout and its
  19389. setter.
  19390. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  19391. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  19392. Added setTimeout() call.
  19393. (executeInternal): Added setTimeout() call.
  19394. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  19395. Added timeout.
  19396. (isTimeoutDetected): Updated.
  19397. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  19398. option.
  19399. Added *simple* message flooding checker.
  19400. * src/PeerInteractionCommand.cc (executeInternal):
  19401. Added detectMessageFlooding() call.
  19402. (detectMessageFlooding): New function.
  19403. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  19404. (beforeSocketCheck): Added detectMessageFlooding() call.
  19405. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  19406. chokeUnchokeCount, haveCount, detectMessageFlooding().
  19407. Removed deletePendingPieceMessage(), getRequestSlot(),
  19408. deleteRequestSlot(), deleteAllRequestSlot().
  19409. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  19410. Added checkLongTimePeerChoking() call.
  19411. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  19412. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  19413. if duplicate == false.
  19414. The parameter "uploaded" and "downloaded" in the tracker request are
  19415. the size since the client sent the "started" event to the tracker.
  19416. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  19417. uploaded size to preDownloadedSize, preUploadedSize respectively.
  19418. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  19419. getSessionDownloadedSize(), getSessionUploadedSize().
  19420. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  19421. getSessionUploadedSize() instead of getDownloadedSize(),
  19422. getUploadedSize().
  19423. * src/PendingMessage.cc (processMessage): Do not send request message
  19424. if the peer is choking the client.
  19425. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  19426. less than interval.
  19427. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19428. * configure.in: Added gnutls support. Added several CPP macros.
  19429. * m4/openssl.m4: Added.
  19430. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  19431. readData(), peekData(). Added gnutls support.
  19432. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  19433. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  19434. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  19435. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  19436. Instead, added a check for whether setup method has executed
  19437. successfully.
  19438. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  19439. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  19440. * src/Makefile.am: Updated.
  19441. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  19442. using whether OpenSSL or gcrypt, depending on the result of configure
  19443. script.
  19444. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  19445. messageDigest.h.
  19446. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  19447. * src/PeerListenCommand.cc: Added log about port binded successfully.
  19448. Fixed memory leak.
  19449. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  19450. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  19451. Removed instantiation of TrackerInitCommand. Instead,
  19452. TrackerWatcherCommand is instantiated and pushed to the command queue.
  19453. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  19454. ENABLE_SSL.
  19455. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  19456. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  19457. If a piece is already acquired by another command, delete the request
  19458. slots for the piece.
  19459. * src/TrackerUpdateCommand.cc (execute):
  19460. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  19461. Added a check whether peer list is null.
  19462. Fixed the bug that causes sending completed event to the tracker
  19463. several times.
  19464. * src/TrackerInitCommand.cc (execute):
  19465. Fixed the bug that causes sending completed event to the tracker
  19466. several times.
  19467. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  19468. by using messageDigest.h.
  19469. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19470. * PeerConnection.cc: Replaced log message "keep-alive" with
  19471. "keep alive".
  19472. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  19473. localhost long time.
  19474. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  19475. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  19476. at most 100 failure entry from the list. If with duplicate = false,
  19477. MAX_PEER_LIST is not checked.
  19478. * PeerListenCommand.cc: Fixed the argument order of log message.
  19479. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19480. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  19481. Added warn().
  19482. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  19483. Implemented warn().
  19484. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  19485. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19486. * Request.h: Added AFTER_COMPLETED event.
  19487. * TorrentDownloadEngine.cc: Prints "Download complete" message
  19488. instead of downloaded size and progress(%) after download completes.
  19489. * PeerInteractionCommand.cc: After download completes, sends unchoke
  19490. message to the peer if it is interested in what localhost has
  19491. downloaded.
  19492. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  19493. destination instead of just renaming it.
  19494. * TorrentMan.cc: Added deleteTempFile().
  19495. * PeerAbstractCommand.cc: do not stop execution after download
  19496. completes. This makes localhost a seeder.
  19497. * Util.{h,cc}: Added fileCopy().
  19498. * PeerListenCommand.cc: do not stop execution after download completes.
  19499. This makes localhost a seeder.
  19500. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  19501. Added TorrentMan::deleteTempFile() to torrentHandler.
  19502. Initialized the variable dir as ".".
  19503. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  19504. Deleted renameSingleFile().
  19505. Added copySingleFile(), deleteTempFile().
  19506. * DownloadEngine.h: Added virtual function afterEachIteration().
  19507. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  19508. in onEndOfRun() to afterEachIteration().
  19509. In onEndOfRun(), changed if condition to check whether filenameFixed is
  19510. true.
  19511. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  19512. In rangedFileCopy(), added try-catch block to properly close file
  19513. descriptors.
  19514. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  19515. Added afterEachIteration(), isFilenameFixed().
  19516. * Peer.cc: Changed choking strategy.
  19517. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  19518. * TrackerInitCommand.cc: Send completed event only once.
  19519. * DownloadEngine.cc: Added a call to afterEachIteration().
  19520. * TrackerUpdateCommand.cc: Do not stop execution after download
  19521. completes.
  19522. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  19523. connect the peers at most MAX_PEER_UPDATE when a peer list is
  19524. received from a tracker.
  19525. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  19526. Decreased the number of failure peers to delete to 0(just comment out
  19527. the line).
  19528. * Release 0.3.1
  19529. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19530. * PeerInteractionCommand.cc: added a call to
  19531. TorrentMan::unadvertisePiece in Destructor.
  19532. * PeerInteractionCommand.cc: make have message sent immediately
  19533. if the size of pending message queue is zero.
  19534. * TorrentMan.cc: set the maximum size of peer list to 250.
  19535. * TorrentMan.h: changed the container type of Peers and UsedPieces
  19536. to deque.
  19537. * Util.cc: fixed rangedFileCopy.
  19538. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  19539. to Constructor. Also, moved digest cleanup to Destructor.
  19540. * MetaFileUtil.cc: fixed memory leak
  19541. * replaced std::vector with std::deque.
  19542. * AbstractCommand.cc: casted timeout value to long long int.
  19543. * ChunkedEncoding.cc: fixed memory leak.
  19544. * PeerInteractionCommand.cc: casted timeout value to long long int.
  19545. * SleepCommand.cc: casted timeout value to long long int.
  19546. * Data.cc: fixed memory leak.
  19547. * Data.cc: fixed toLLInt().
  19548. * BitfieldMan.cc: fixed memory leak.
  19549. * TorrentMan.cc: initialized storeDir to ".".
  19550. * TorrentMan.cc: fixed memory leak.
  19551. * TorrentMan.cc: corrected file paths of splitted files.
  19552. * PeerAbstractCommand.cc: casted timeout to long long int.
  19553. * main.cc: added delete(req) and delete(te->diskWriter).
  19554. * RequestSlot.cc: casted timeout value to long long int.
  19555. * Request.cc: fixed memory leak.
  19556. * PendingMessage.cc: make HAVE messages sent only when peer does not
  19557. have the piece.
  19558. * Peer.{h,cc}: added hasPiece(int index).
  19559. * main.cc: corrected addCommand.
  19560. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19561. * BitTorrent protocol support added.
  19562. * Release 0.3.0
  19563. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19564. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  19565. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19566. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  19567. decoding did not work properly.
  19568. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19569. * DownloadEngine.h: included sys/time.h
  19570. * DownloadEngine.cc: remove sys/time.h
  19571. * Makefile.am (SUBDIRS): Add intl.
  19572. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  19573. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19574. * main.cc: correct help message for --http-auth-scheme.
  19575. * main.cc: changed e-mail address for bug reports.
  19576. * ja.po: added japanese translation.
  19577. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19578. * SimpleLogger.cc: flush log file instead of stdout.
  19579. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19580. * main.cc: Fixed command-line option: max-tries
  19581. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  19582. does not equal to seg.sp.
  19583. * DownloadCommand.cc: If EOF is got from the server and the total size
  19584. of file is not zero, then throw DlRetryEx.
  19585. * main.cc: Set the minium value of min-segment-size to 1024.
  19586. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  19587. fails because of a regression since 0.2.0 release.
  19588. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19589. * HttpConnection.cc:
  19590. * common.h: defined the user agent name as macro
  19591. * DownloadEngine.{h, cc}:
  19592. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  19593. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  19594. * main.cc: Download complete/abort message is now generated by main.
  19595. * Makefile.am (SUBDIRS): Add m4.
  19596. (ACLOCAL_AMFLAGS): New variable.
  19597. (EXTRA_DIST): New variable.
  19598. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  19599. * gettext: added gettext functionality
  19600. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19601. * AbstractCommand.cc:
  19602. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  19603. unregister its cuid from SegmentMan.
  19604. * DownloadEngine.cc: .aria2 file was written when a downloading
  19605. failed with errors.
  19606. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  19607. Added "User-Agent" header to CONNECT proxy request.
  19608. Fixed "Proxy-Authorization" header. Now proxy authorization works
  19609. properly.
  19610. * Logger.h:
  19611. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  19612. * ChunkedEncoding.cc: Added #include directive for strings.h
  19613. * Release 0.2.1
  19614. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19615. * Util.{h,cc}: added startsWith().
  19616. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  19617. Util::endsWith().
  19618. * SocketCore.cc: struct addrinfo is now zero-initialized.
  19619. * common.h: added #include directive of limit.h.
  19620. * DownloadEngine.cc: added #include directive of sys/time.h and
  19621. algorithm.
  19622. * Exception.h: added #include directive of stdio.h.
  19623. * AbstractCommand.h: added #include directive of sys/time.h.
  19624. * DownloadCommand.h: added #include directive of sys/time.h.
  19625. * *.h: added #include directive of common.h to all base classes.
  19626. subclasses' one was removed.
  19627. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  19628. does not define these macros.
  19629. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19630. * Release 0.2.0
  19631. * main.cc:
  19632. * HttpInitiateConnectionCommand.{h,cc}:
  19633. * prefs.h:
  19634. * HttpConnection.{h,cc}: added --http-proxy-method option.
  19635. We can now use GET command in http proxy.
  19636. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19637. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  19638. that splits slowest segment of SegmentMan::commands vector.
  19639. This is the default split algorithm of aria2.
  19640. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  19641. that splits first segment of SegmentMan::commands vector.
  19642. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  19643. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  19644. * Segment.h:
  19645. * SegmentMan.cc: Added speed field to Segment.h
  19646. * main.cc: -s option now affects all URLs in command-line arguemtns.
  19647. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  19648. * message.h: Change file size related %d to %lld.
  19649. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19650. * FtpInitiateConnectionCommand.{h,cc}:
  19651. * FtpNegotiationCommand.{h,cc}:
  19652. * FtpDownloadCommand.{h,cc}:
  19653. * FtpConnection.{h,cc}: Added FTP support
  19654. * SimpleLogger.cc: Log message now includes time information.
  19655. * main.cc: The value of --http-auth-scheme option is chagned from
  19656. 'BASIC' to 'basic'
  19657. * main.cc: Added --timeout command-line option.
  19658. * main.cc: Added --min-segment-size command-line option.
  19659. * main.cc: Added --max-retries command-line option.
  19660. * prefs.h: option string constants are now defined in prefs.h
  19661. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19662. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  19663. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  19664. with version 0.1.0's one.
  19665. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19666. * configure.in: Added --enable-ssl option to configure script.
  19667. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  19668. cannot permit absoluteURI as Request-URI.
  19669. * HttpConnection.cc: Added Referer support.
  19670. * main.cc: Added referer command-line option.
  19671. * main.cc: Added rety-wait command-line option.
  19672. * Exception.h: Fixed formating bug in Exception::setMsg()
  19673. * SocketCore.{h,cc}:
  19674. * Socket.{h, cc}:
  19675. * Request.cc:
  19676. * InitiateConnectionCommandFactory.cc:
  19677. * HttpRequestCommand.cc: Added HTTPS support.
  19678. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  19679. for SocketCore.
  19680. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  19681. size is wrong
  19682. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  19683. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  19684. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  19685. * Release 0.1.0