ChangeLog 732 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719
  1. 2010-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added --save-session=FILE option. This option saves
  3. error/unfinished downloads to FILE on exit. You can pass this
  4. output file to aria2c with -i option on restart. Please note that
  5. downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC
  6. method are not saved.
  7. * src/BtPostDownloadHandler.cc
  8. * src/DownloadResult.h
  9. * src/Makefile.am
  10. * src/MetadataInfo.cc
  11. * src/MetadataInfo.h
  12. * src/Metalink2RequestGroup.cc
  13. * src/MetalinkPostDownloadHandler.cc
  14. * src/MultiUrlRequestInfo.cc
  15. * src/OptionHandlerFactory.cc
  16. * src/RequestGroup.cc
  17. * src/RequestGroup.h
  18. * src/SessionSerializer.cc
  19. * src/SessionSerializer.h
  20. * src/UTMetadataPostDownloadHandler.cc
  21. * src/download_helper.cc
  22. * src/download_helper.h
  23. * src/prefs.cc
  24. * src/prefs.h
  25. * src/usage_text.h
  26. * test/Makefile.am
  27. * test/SessionSerializerTest.cc
  28. * test/XmlRpcMethodTest.cc
  29. * test/serialize_session.meta4
  30. 2010-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Fixed the bug that FTP data connection is not established via
  32. proxy when --ftp-proxy is defined and --ftp-pasv=true and
  33. --proxy-method=tunnel.
  34. * src/AbstractCommand.cc
  35. * src/AbstractCommand.h
  36. * src/FtpNegotiationCommand.cc
  37. * src/FtpNegotiationCommand.h
  38. * src/InitiateConnectionCommand.cc
  39. 2010-04-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Updated po templates.
  41. * po/aria2.pot
  42. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Bump up version number to 1.9.1
  44. * configure.ac
  45. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Added shutdown and forceShutdown to aria2rpc
  47. * doc/xmlrpc/aria2rpc
  48. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  49. Changed error message.
  50. * src/XmlRpcMethod.cc
  51. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  52. Added bt-tracker-timeout, bt-tracker-connect-timeout,
  53. always-resume, max-resume-failure-tries and http-accept-gzip to -i
  54. list options.
  55. * doc/aria2c.1.txt
  56. * doc/xmlrpc/aria2rpc
  57. * src/download_helper.cc
  58. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Fixed the bug that web-seed URI is not percent-encoded.
  60. * src/a2functional.h
  61. * src/bittorrent_helper.cc
  62. * test/BittorrentHelperTest.cc
  63. * test/url-list-multiFile.torrent
  64. * test/url-list-singleFileEndsWithSlash.torrent
  65. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
  67. These methods, as their name implies, shutdown aria2. These
  68. methods are useful for Windows because it lacks signal mechanism.
  69. * doc/aria2c.1.txt
  70. * src/TimedHaltCommand.cc
  71. * src/XmlRpcMethodFactory.cc
  72. * src/XmlRpcMethodImpl.cc
  73. * src/XmlRpcMethodImpl.h
  74. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Added forceHalt argument to TimedHaltCommand.
  76. Added requestForceHalt() to DownloadEngine.
  77. * src/DownloadEngine.cc
  78. * src/DownloadEngine.h
  79. * src/TimedHaltCommand.cc
  80. * src/TimedHaltCommand.h
  81. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  82. Possible fix for chunked encoding with Content-Length.
  83. * src/HttpResponseCommand.cc
  84. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. Don't send "Accept: default, gzip" by default. This is because
  86. some server responds with "Content-Encoding: gzip" for files which
  87. itself is gzipped file and aria2 inflates them. This is a problem
  88. if user don't want to inflate the file. Apparently this is server
  89. configuration error, but I cannot do anything about this. So turn
  90. this off. Added --http-accept-gzip option. If true is given to
  91. this option, aria2 sends 'Accept: deflate, gzip' request header
  92. and inflates response if remote server responds with
  93. 'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
  94. indicates we removed extension tgz hack in order not to inflate
  95. files with tgz extensions.
  96. * doc/aria2c.1.txt
  97. * src/HttpRequest.cc
  98. * src/HttpRequest.h
  99. * src/HttpRequestCommand.cc
  100. * src/HttpResponseCommand.cc
  101. * src/OptionHandlerFactory.cc
  102. * src/prefs.cc
  103. * src/prefs.h
  104. * src/usage_text.h
  105. * test/HttpRequestTest.cc
  106. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Made aria2 not send
  108. "application/metalink4+xml,application/metalink+xml" in Accept
  109. header for web-seeding URIs and tracker request.
  110. * src/Metalink2RequestGroup.cc
  111. * src/TrackerWatcherCommand.cc
  112. * src/download_helper.cc
  113. * src/util.cc
  114. * src/util.h
  115. 2010-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Added download_helper.{cc,h} to SRCS
  117. * src/Makefile.am
  118. * test/Makefile.am
  119. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Added --dht-message-timeout option.
  121. * doc/aria2c.1.txt
  122. * src/DHTConstants.h
  123. * src/DHTMessageDispatcherImpl.cc
  124. * src/DHTMessageDispatcherImpl.h
  125. * src/DHTMessageTracker.cc
  126. * src/DHTMessageTracker.h
  127. * src/DHTReplaceNodeTask.h
  128. * src/DHTSetup.cc
  129. * src/DHTTaskFactoryImpl.cc
  130. * src/DHTTaskFactoryImpl.h
  131. * src/OptionHandlerFactory.cc
  132. * src/prefs.cc
  133. * src/prefs.h
  134. * src/usage_text.h
  135. * test/DHTMessageTrackerTest.cc
  136. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Added --bt-tracker-connect-timeout and --bt-tracker-timeout
  138. option.
  139. * doc/aria2c.1.txt
  140. * src/OptionHandlerFactory.cc
  141. * src/TrackerWatcherCommand.cc
  142. * src/prefs.cc
  143. * src/prefs.h
  144. * src/usage_text.h
  145. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Documented that specifying --seed-time=0 disables seeding after
  147. download completed.
  148. * doc/aria2c.1.txt
  149. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Code cleanup
  151. * src/BtSetup.cc
  152. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. Drop connection if same Peer ID has been already seen.
  154. * src/DefaultBtInteractive.cc
  155. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Fixed the bug that waiting download unintentionally starts when
  157. URIs are added to it using aria2.changeUri XML-RPC method. This
  158. also fixes the bug that causes segmentation fault when adding URIs
  159. to waiting download, which is a regression introduced by the
  160. previous change made to src/XmlRpcMethodImpl.cc
  161. * src/XmlRpcMethodImpl.cc
  162. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  163. Fixed compile error with g++-4.4 on FreeBSD.
  164. * src/util.h
  165. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Fixed the bug that added URI using aria2.changeUri XML-RPC method
  167. is not used immediately if there is no URIs remaining before
  168. calling aria2.changeUri and the number of connection is less than
  169. the value in -s(or -C for Metalink downloads).
  170. * src/XmlRpcMethodImpl.cc
  171. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Documented --always-resume and --max-resume-failure-tries option
  173. and exit status 8 in man page. Fixed typo.
  174. * doc/aria2c.1.txt
  175. * src/OptionHandlerFactory.cc
  176. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Added --always-resume and --max-resume-failure-tries option. If
  178. --always-resume=false is given, when all given URIs does not
  179. support resume or aria2 encounters N URIs which does not support
  180. resume
  181. (N is the value specified using --max-resume-failure-tries
  182. option), aria2 download file from scratch. The default behavior
  183. is --always-resume=true, which means if all URIs do not support
  184. resume, download fails. I think this is OK because user normally
  185. don't like to see that partially downloaded file is
  186. overwritten(this is particularly true if file size is big). This
  187. option is useful when aria2 is used as download backend and
  188. graceful falling back to overwritten behavior is preferable.
  189. Added exit status value 8, which means download failed because
  190. server did not support resume.
  191. * src/AbstractCommand.cc
  192. * src/DefaultPieceStorage.cc
  193. * src/DownloadCommand.cc
  194. * src/DownloadResultCode.h
  195. * src/FileEntry.h
  196. * src/FtpNegotiationCommand.cc
  197. * src/HttpResponse.cc
  198. * src/HttpResponseCommand.cc
  199. * src/OptionHandlerFactory.cc
  200. * src/RequestGroup.cc
  201. * src/RequestGroup.h
  202. * src/SegmentMan.cc
  203. * src/SegmentMan.h
  204. * src/prefs.cc
  205. * src/prefs.h
  206. * src/usage_text.h
  207. * test/DefaultPieceStorageTest.cc
  208. * test/SegmentManTest.cc
  209. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Added --remove-control-file option to -i list options.
  211. * doc/aria2c.1.txt
  212. * doc/xmlrpc/aria2rpc
  213. * src/download_helper.cc
  214. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  215. Added --remove-control-file option. This option removes control
  216. file(*.aria2 file) before download. Using with
  217. --allow-overwrite=true, download always starts from scratch. This
  218. will be useful for users behind proxy server which disables
  219. resume. For such proxy user, -C1 is also recommended for Metalink
  220. downloads to avoid establishing unnecessary connections.
  221. * doc/aria2c.1.txt
  222. * src/OptionHandlerFactory.cc
  223. * src/RequestGroup.cc
  224. * src/prefs.cc
  225. * src/prefs.h
  226. * src/usage_text.h
  227. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
  229. size of array at compile time.
  230. * src/array_fun.h
  231. * test/BitfieldManTest.cc
  232. * test/BtPortMessageTest.cc
  233. * test/DHTRoutingTableDeserializerTest.cc
  234. * test/DHTRoutingTableSerializerTest.cc
  235. * test/DownloadHelperTest.cc
  236. * test/LongestSequencePieceSelectorTest.cc
  237. * test/MultiDiskAdaptorTest.cc
  238. * test/OptionParserTest.cc
  239. * test/PriorityPieceSelectorTest.cc
  240. * test/array_funTest.cc
  241. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Added vbegin() and vend() for fixed sized array.
  243. * src/DownloadHandlerConstants.cc
  244. * src/FeatureConfig.cc
  245. * src/OptionHandlerFactory.cc
  246. * src/ServerStat.cc
  247. * src/TimeA2.cc
  248. * src/XmlRpcMethod.cc
  249. * src/array_fun.h
  250. * src/download_helper.cc
  251. * src/messageDigest.cc
  252. * src/util.cc
  253. * test/BittorrentHelperTest.cc
  254. * test/DHTRoutingTableDeserializerTest.cc
  255. * test/DHTRoutingTableSerializerTest.cc
  256. * test/DefaultBtAnnounceTest.cc
  257. * test/DefaultBtProgressInfoFileTest.cc
  258. * test/DownloadContextTest.cc
  259. * test/DownloadHelperTest.cc
  260. * test/FeatureConfigTest.cc
  261. * test/FeedbackURISelectorTest.cc
  262. * test/HttpRequestTest.cc
  263. * test/InOrderURISelectorTest.cc
  264. * test/MSEHandshakeTest.cc
  265. * test/MultiDiskAdaptorTest.cc
  266. * test/MultiFileAllocationIteratorTest.cc
  267. * test/PriorityPieceSelectorTest.cc
  268. * test/RequestGroupManTest.cc
  269. * test/UtilTest.cc
  270. * test/XmlRpcMethodTest.cc
  271. * test/a2algoTest.cc
  272. * test/array_funTest.cc
  273. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  274. Simplified code using lastByteMask
  275. * src/BitfieldMan.cc
  276. * src/PieceStatMan.cc
  277. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  278. Rewritten lastByteMask
  279. * src/bitfield.h
  280. 2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Redefined the maximum length of buffer used for HTTP header.
  282. * src/HttpHeaderProcessor.cc
  283. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. Code cleanup
  285. * src/SleepCommand.cc
  286. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Do exact match if IP address is specified in --no-proxy.
  288. * src/AbstractCommand.cc
  289. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Fixed the bug that socket is added to EventPoll object twice. This
  291. is because derived class FtpFinishDownloadCommand adds socket to
  292. EventPoll object while base class AbstractCommand does that
  293. already.
  294. * src/FtpFinishDownloadCommand.cc
  295. * src/FtpFinishDownloadCommand.h
  296. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Defined gid_t as int64_t.
  298. * src/BtDependency.cc
  299. * src/BtStopDownloadCommand.cc
  300. * src/FtpNegotiationCommand.cc
  301. * src/HttpResponseCommand.cc
  302. * src/RequestGroup.cc
  303. * src/RequestGroup.h
  304. * src/RequestGroupMan.cc
  305. * src/TrackerWatcherCommand.cc
  306. * src/XmlRpcMethodImpl.cc
  307. * src/message.h
  308. * test/XmlRpcMethodTest.cc
  309. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  311. translatable texts because it is used in log and debugging
  312. purpose.
  313. * src/AbstractCommand.cc
  314. * src/ActivePeerConnectionCommand.cc
  315. * src/BtPieceMessage.cc
  316. * src/CUIDCounter.h
  317. * src/CheckIntegrityCommand.cc
  318. * src/CheckIntegrityDispatcherCommand.cc
  319. * src/Command.h
  320. * src/CreateRequestCommand.cc
  321. * src/DHTEntryPointNameResolveCommand.cc
  322. * src/DefaultBtInteractive.cc
  323. * src/DefaultBtMessageDispatcher.cc
  324. * src/DownloadCommand.cc
  325. * src/FileAllocationCommand.cc
  326. * src/FileAllocationDispatcherCommand.cc
  327. * src/FtpConnection.cc
  328. * src/FtpInitiateConnectionCommand.cc
  329. * src/FtpNegotiationCommand.cc
  330. * src/HttpConnection.cc
  331. * src/HttpInitiateConnectionCommand.cc
  332. * src/HttpListenCommand.cc
  333. * src/HttpResponse.cc
  334. * src/HttpServerBodyCommand.cc
  335. * src/HttpServerCommand.cc
  336. * src/HttpServerResponseCommand.cc
  337. * src/InitiateConnectionCommand.cc
  338. * src/InitiatorMSEHandshakeCommand.cc
  339. * src/MSEHandshake.cc
  340. * src/PeerAbstractCommand.cc
  341. * src/PeerConnection.cc
  342. * src/PeerInitiateConnectionCommand.cc
  343. * src/PeerInteractionCommand.cc
  344. * src/PeerListenCommand.cc
  345. * src/PeerReceiveHandshakeCommand.cc
  346. * src/SegmentMan.cc
  347. * src/SimpleBtMessage.cc
  348. * src/TrackerWatcherCommand.cc
  349. * src/message.h
  350. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  351. Use gid_t type for gid.
  352. * src/BtRegistry.cc
  353. * src/BtRegistry.h
  354. * src/DownloadResult.h
  355. * src/RequestGroup.cc
  356. * src/RequestGroup.h
  357. * src/RequestGroupMan.cc
  358. * src/RequestGroupMan.h
  359. * src/XmlRpcMethodImpl.cc
  360. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  361. Use cuid_t type for cuid.
  362. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  363. Added v key in DHT message. aria2's DHT version is independent of
  364. the package version and we defined it as 1 at the moment. It is
  365. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  366. scheme is "A2"+2bytes DHT version number in network byte order.
  367. * src/DHTAbstractMessage.cc
  368. * src/DHTConstants.h
  369. * src/DHTMessage.cc
  370. * src/DHTMessage.h
  371. * src/DHTMessageFactoryImpl.cc
  372. * src/DHTQueryMessage.cc
  373. * src/DHTResponseMessage.cc
  374. * src/util.h
  375. * test/DHTAnnouncePeerMessageTest.cc
  376. * test/DHTAnnouncePeerReplyMessageTest.cc
  377. * test/DHTFindNodeMessageTest.cc
  378. * test/DHTFindNodeReplyMessageTest.cc
  379. * test/DHTGetPeersMessageTest.cc
  380. * test/DHTGetPeersReplyMessageTest.cc
  381. * test/DHTPingMessageTest.cc
  382. * test/DHTPingReplyMessageTest.cc
  383. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  384. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  385. method response is integer, while manual says it is string. When
  386. peer's port is not listening port, set '0' to port in
  387. aria2.getPeers response.
  388. * src/XmlRpcMethodImpl.cc
  389. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Lines starting "#" in -i list are treated as comments.
  391. Example:
  392. # this is comment
  393. http://example.org/file
  394. http://example.org/file2
  395. dir=/tmp
  396. # another comment
  397. out=myfile
  398. * doc/aria2c.1.txt
  399. * src/UriListParser.cc
  400. * test/filelist1.txt
  401. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Accept IPv4 network address with CIDR block in --no-proxy option
  403. and no_proxy environment variable. Current implementation does
  404. not resolve hostname in URI to compare network address. So it is
  405. only effecive if URI has numeric IP addresses.
  406. * doc/aria2c.1.txt
  407. * src/AbstractCommand.cc
  408. * src/OptionHandlerFactory.cc
  409. * src/bitfield.h
  410. * src/usage_text.h
  411. * src/util.cc
  412. * src/util.h
  413. * test/UtilTest.cc
  414. * test/bitfieldTest.cc
  415. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Reduced interval for metadatagetmode to quickly gather metadata.
  417. * src/BtSetup.cc
  418. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  419. Release 1.9.0
  420. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Updated po templates.
  422. * po/aria2.pot
  423. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Updated doc.
  425. * doc/aria2c.1.txt
  426. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  427. Documented about Metalink4 and LPD in README
  428. * RADME
  429. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. Few adjustment for timeouts in DHT. DHT message timeout is changed
  431. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  432. it adds another 5 seconds in each retry.
  433. * src/DHTConstants.h
  434. * src/DHTGetPeersCommand.cc
  435. * src/DHTGetPeersCommand.h
  436. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Changed log level from error to info for DHT message send error.
  438. * src/DHTMessageDispatcherImpl.cc
  439. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  440. Inspect all xt in magnet to find urn:btih.
  441. * src/bittorrent_helper.cc
  442. * test/BittorrentHelperTest.cc
  443. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Use global option for DHTSetup.
  445. * src/DHTSetup.cc
  446. * src/DHTSetup.h
  447. * src/RequestGroup.cc
  448. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Added bt-enable-lpt, reuse-uri
  450. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  451. options.
  452. * doc/aria2c.1.txt
  453. * doc/xmlrpc/aria2rpc
  454. * src/download_helper.cc
  455. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  457. * src/BtSetup.cc
  458. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  459. Resurrected --http-proxy-user and --http-proxy-passwd option.
  460. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  461. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  462. * doc/aria2c.1.txt
  463. * src/OptionHandlerFactory.cc
  464. * src/OptionHandlerImpl.h
  465. * src/prefs.cc
  466. * src/prefs.h
  467. * src/usage_text.h
  468. * test/OptionHandlerTest.cc
  469. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Updated Russian and Simplified Chinese translation. Thanks to all
  471. translators.
  472. * po/ru.po
  473. * po/zh_CN.po
  474. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Updated po templates.
  476. * po/aria2.pot
  477. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  478. For LPD sockets, bind IN_ADDRANY because binding multicast address
  479. fails under Windows.
  480. * src/LpdMessageReceiver.cc
  481. * test/LpdMessageDispatcherTest.cc
  482. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Fixed the bug that error message is not propagated to Exception.
  484. * src/SocketCore.cc
  485. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Documented --bt-lpd-interface option in man page.
  487. * doc/aria2c.1.txt
  488. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Bump up version number to 1.9.0
  490. * configure.ac
  491. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Fixed the bug that FillRequestGroupCommand is not invoked when
  493. RequestGroupMan::createInitialCommand() creates no Command object.
  494. * src/FillRequestGroupCommand.cc
  495. * src/RequestGroupMan.cc
  496. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  497. Added debug logs.
  498. * src/FileEntry.cc
  499. * src/SegmentMan.cc
  500. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Fixed unit test error with mingw32 build.
  502. * test/LpdMessageReceiverTest.cc
  503. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  504. Updated automake-1.11.1
  505. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Fixed compile error and unit test error without openssl and
  507. gnutls.
  508. * src/MetalinkParserController.cc
  509. * test/MetalinkProcessorTest.cc
  510. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Fixed unitest fails if openssl doesn't support sha-256.
  512. * src/MetalinkParserStateV4Impl.cc
  513. * test/MetalinkProcessorTest.cc
  514. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  515. Wait until message arrives(again)
  516. * test/LpdMessageReceiverTest.cc
  517. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Added missing wallclock.h to SRCS.
  519. * src/Makefile.am
  520. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  521. Fixed compile error with --disable-bittorrent
  522. * test/Metalink2RequestGroupTest.cc
  523. * test/MetalinkParserControllerTest.cc
  524. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. Added --reuse-uri option. This option has existed quite long, but
  526. been hidden.
  527. * doc/aria2c.1.txt
  528. * src/OptionHandlerFactory.cc
  529. * src/usage_text.h
  530. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Ignore filename parameter if it contains directory traversal
  532. directives.
  533. * src/util.cc
  534. * test/UtilTest.cc
  535. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. urldecode -> percentDecode
  537. * src/FtpConnection.cc
  538. * src/FtpNegotiationCommand.cc
  539. * src/HttpResponse.cc
  540. * src/Request.cc
  541. * src/magnet.cc
  542. * src/util.cc
  543. * src/util.h
  544. * test/UtilTest.cc
  545. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. urlencode -> percentEncode,
  547. torrentUrlencode -> torrentPercentEncode
  548. * src/BtHandshakeMessage.cc
  549. * src/BtHandshakeMessageValidator.h
  550. * src/DHTMessageFactoryImpl.cc
  551. * src/DefaultBtAnnounce.cc
  552. * src/HandshakeExtensionMessage.cc
  553. * src/HttpRequest.cc
  554. * src/XmlRpcMethodImpl.cc
  555. * src/bittorrent_helper.cc
  556. * src/util.cc
  557. * src/util.h
  558. * test/DHTAnnouncePeerMessageTest.cc
  559. * test/DHTGetPeersMessageTest.cc
  560. * test/DHTGetPeersReplyMessageTest.cc
  561. * test/UTPexExtensionMessageTest.cc
  562. * test/UtilTest.cc
  563. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Fixed the bug that filename is percent encoded where it must be
  565. percent decoded in sendMdtm().
  566. * src/FtpConnection.cc
  567. * test/FtpConnectionTest.cc
  568. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. url -> uri in Request class.
  570. * src/AbstractCommand.cc
  571. * src/AdaptiveURISelector.cc
  572. * src/DefaultBtAnnounce.cc
  573. * src/FeedbackURISelector.cc
  574. * src/FileEntry.cc
  575. * src/FileEntry.h
  576. * src/HttpRequest.h
  577. * src/HttpResponse.cc
  578. * src/InitiateConnectionCommandFactory.cc
  579. * src/Metalink2RequestGroup.cc
  580. * src/OptionHandlerImpl.h
  581. * src/ProtocolDetector.cc
  582. * src/Request.cc
  583. * src/Request.h
  584. * src/XmlRpcMethodImpl.cc
  585. * test/AuthConfigFactoryTest.cc
  586. * test/FtpConnectionTest.cc
  587. * test/HttpRequestTest.cc
  588. * test/HttpResponseTest.cc
  589. * test/RequestTest.cc
  590. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Added getServers XML-RPC method.
  592. * doc/aria2c.1.txt
  593. * src/FileEntry.h
  594. * src/XmlRpcMethodFactory.cc
  595. * src/XmlRpcMethodImpl.cc
  596. * src/XmlRpcMethodImpl.h
  597. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  598. Pool request when download finished.
  599. * src/DownloadCommand.cc
  600. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  602. 1-based.
  603. * doc/aria2c.1.txt
  604. * src/XmlRpcMethodImpl.cc
  605. * test/XmlRpcMethodTest.cc
  606. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Call RequestGroupMan::requestQueueCheck() when
  608. max-concurrent-downloads option is changed or new downloads are
  609. added/inserted into reserved list.
  610. * src/RequestGroupMan.cc
  611. * src/XmlRpcMethodImpl.cc
  612. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Added aria2.forceRemove XML-RPC method.
  614. * doc/aria2c.1.txt
  615. * src/XmlRpcMethodFactory.cc
  616. * src/XmlRpcMethodImpl.cc
  617. * src/XmlRpcMethodImpl.h
  618. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Added debug log.
  620. * src/AbstractCommand.cc
  621. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Create CreateRequestCommand to the number of -s/-C when URIs are
  623. added by XML-RPC.
  624. * src/RequestGroup.cc
  625. * src/RequestGroup.h
  626. * src/XmlRpcMethodImpl.cc
  627. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  628. Added 'status' key to the response of getUri XML-RPC method.
  629. * doc/aria2c.1.txt
  630. * src/XmlRpcMethodImpl.cc
  631. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Replaced Time::reset() call with assigning of global::wallclock.
  633. * src/BtLeecherStateChoke.cc
  634. * src/BtSeederStateChoke.cc
  635. * src/PeerSessionResource.cc
  636. * src/RequestSlot.cc
  637. * src/ServerStat.cc
  638. * src/SpeedCalc.cc
  639. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  640. Added changeUri XML-RPC method. This method removes/adds URIs
  641. dynamically.
  642. * doc/aria2c.1.txt
  643. * src/AbstractCommand.cc
  644. * src/DownloadContext.cc
  645. * src/DownloadContext.h
  646. * src/FileEntry.cc
  647. * src/FileEntry.h
  648. * src/Request.cc
  649. * src/Request.h
  650. * src/RequestGroup.cc
  651. * src/RequestGroupMan.cc
  652. * src/XmlRpcMethodFactory.cc
  653. * src/XmlRpcMethodImpl.cc
  654. * src/XmlRpcMethodImpl.h
  655. * test/FileEntryTest.cc
  656. * test/XmlRpcMethodTest.cc
  657. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Rewritten copy ctor of RequestSlot to use initialization list.
  659. * src/RequestSlot.h
  660. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Added Time global::wallclock to cache "current time" to reduce the
  662. call gettimeofday(). Global variables are now in namespace global.
  663. * src/AbstractCommand.cc
  664. * src/ActivePeerConnectionCommand.cc
  665. * src/AdaptiveURISelector.cc
  666. * src/BtLeecherStateChoke.cc
  667. * src/BtLeecherStateChoke.h
  668. * src/BtSeederStateChoke.cc
  669. * src/BtSeederStateChoke.h
  670. * src/BtStopDownloadCommand.cc
  671. * src/ConsoleStatCalc.cc
  672. * src/DHTBucket.cc
  673. * src/DHTGetPeersCommand.cc
  674. * src/DHTMessageTrackerEntry.cc
  675. * src/DHTNode.cc
  676. * src/DHTPeerAnnounceEntry.cc
  677. * src/DHTPeerAnnounceStorage.cc
  678. * src/DHTSetup.cc
  679. * src/DefaultBtAnnounce.cc
  680. * src/DefaultBtInteractive.cc
  681. * src/DefaultBtMessageDispatcher.cc
  682. * src/DefaultPeerStorage.cc
  683. * src/DefaultPieceStorage.cc
  684. * src/DownloadCommand.cc
  685. * src/DownloadEngine.cc
  686. * src/FileEntry.cc
  687. * src/HttpServerBodyCommand.cc
  688. * src/HttpServerCommand.cc
  689. * src/HttpServerResponseCommand.cc
  690. * src/LpdMessageDispatcher.cc
  691. * src/MultiUrlRequestInfo.cc
  692. * src/Peer.cc
  693. * src/Peer.h
  694. * src/PeerAbstractCommand.cc
  695. * src/PeerStat.h
  696. * src/RequestSlot.cc
  697. * src/RequestSlot.h
  698. * src/SegmentMan.cc
  699. * src/ServerStatMan.cc
  700. * src/SleepCommand.cc
  701. * src/SpeedCalc.cc
  702. * src/SpeedCalc.h
  703. * src/TimeA2.cc
  704. * src/TimeA2.h
  705. * src/TimeBasedCommand.cc
  706. * src/TimeSeedCriteria.h
  707. * src/UTMetadataRequestTracker.h
  708. * src/UTPexExtensionMessage.cc
  709. * src/wallclock.h
  710. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  711. Fixed the bug that util::itos(INT64_MIN) fails.
  712. * src/util.cc
  713. * src/util.h
  714. * test/UtilTest.cc
  715. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Fixed memory leak in SocketBuffer when _bufq is not empty when
  717. SocketBuffer is deleted. Added BufEntry constructor and deleted
  718. static factory functions.
  719. * src/SocketBuffer.cc
  720. * src/SocketBuffer.h
  721. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  723. queue maintenance is requested by RequestGroup to avoid to call
  724. the function unnecessarily.
  725. * src/FillRequestGroupCommand.cc
  726. * src/RequestGroup.cc
  727. * src/RequestGroup.h
  728. * src/RequestGroupMan.cc
  729. * src/RequestGroupMan.h
  730. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Don't use hash for Peer::id. Simple concatenation of ip address
  732. and port is enough.
  733. * src/Peer.cc
  734. * test/PeerTest.cc
  735. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  736. Enclosed log of DHTMessage::toString() with Logger::info().
  737. * src/DHTMessageDispatcherImpl.cc
  738. * src/DHTMessageReceiver.cc
  739. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Rewritten util::toHex().
  741. * src/util.cc
  742. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Removed SocketBuffer::feedAndSend(). Renamed
  744. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  745. * src/FtpConnection.cc
  746. * src/HttpConnection.cc
  747. * src/HttpServer.cc
  748. * src/MSEHandshake.cc
  749. * src/PeerConnection.cc
  750. * src/SocketBuffer.cc
  751. * src/SocketBuffer.h
  752. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. Removed unused PeerConnection::sendMessage(). Updated doc.
  754. * src/PeerConnection.cc
  755. * src/PeerConnection.h
  756. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Reduced copying/std::string instantiation in sending/receiving
  758. BitTorrent messages.
  759. * src/BtBitfieldMessage.cc
  760. * src/BtBitfieldMessage.h
  761. * src/BtExtendedMessage.cc
  762. * src/BtExtendedMessage.h
  763. * src/BtHandshakeMessage.cc
  764. * src/BtHandshakeMessage.h
  765. * src/BtKeepAliveMessage.cc
  766. * src/BtKeepAliveMessage.h
  767. * src/BtPieceMessage.cc
  768. * src/BtPieceMessage.h
  769. * src/BtPortMessage.cc
  770. * src/BtPortMessage.h
  771. * src/BtUnchokeMessage.h
  772. * src/DefaultBtMessageReceiver.cc
  773. * src/IndexBtMessage.cc
  774. * src/IndexBtMessage.h
  775. * src/PeerConnection.cc
  776. * src/PeerConnection.h
  777. * src/RangeBtMessage.cc
  778. * src/RangeBtMessage.h
  779. * src/SimpleBtMessage.cc
  780. * src/SimpleBtMessage.h
  781. * src/SocketBuffer.cc
  782. * src/SocketBuffer.h
  783. * src/ZeroBtMessage.cc
  784. * src/ZeroBtMessage.h
  785. * test/BtAllowedFastMessageTest.cc
  786. * test/BtBitfieldMessageTest.cc
  787. * test/BtCancelMessageTest.cc
  788. * test/BtChokeMessageTest.cc
  789. * test/BtExtendedMessageTest.cc
  790. * test/BtHandshakeMessageTest.cc
  791. * test/BtHaveAllMessageTest.cc
  792. * test/BtHaveMessageTest.cc
  793. * test/BtHaveNoneMessageTest.cc
  794. * test/BtInterestedMessageTest.cc
  795. * test/BtKeepAliveMessageTest.cc
  796. * test/BtNotInterestedMessageTest.cc
  797. * test/BtPieceMessageTest.cc
  798. * test/BtPortMessageTest.cc
  799. * test/BtRejectMessageTest.cc
  800. * test/BtRequestMessageTest.cc
  801. * test/BtSuggestPieceMessageTest.cc
  802. * test/BtUnchokeMessageTest.cc
  803. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Rewritten SocketBuffer. Old implementation uses single std::string
  805. to store data and erase sent data, which is costly. New
  806. implementation uses deque to hold each data to avoid to mutate
  807. string.
  808. * src/SocketBuffer.cc
  809. * src/SocketBuffer.h
  810. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Removed unused FileEntry::extracted
  812. * src/FileEntry.cc
  813. * src/FileEntry.h
  814. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Wait until data arrives.
  816. * test/LpdMessageReceiverTest.cc
  817. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. In Metalink4, if size element contains invalid size, discard whole
  819. document. Added strict hash value check for metalink3/4.
  820. * src/MetalinkParserController.cc
  821. * src/MetalinkParserStateMachine.cc
  822. * src/MetalinkParserStateMachine.h
  823. * src/MetalinkParserStateV3Impl.cc
  824. * src/MetalinkParserStateV4Impl.cc
  825. * src/util.cc
  826. * src/util.h
  827. * test/MetalinkParserControllerTest.cc
  828. * test/MetalinkProcessorTest.cc
  829. * test/metalink4.xml
  830. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Added strict attribute validation for metalink4. When
  832. specification violation is found, discard the whole document.
  833. * src/ExpatMetalinkProcessor.cc
  834. * src/MetalinkParserStateMachine.cc
  835. * src/MetalinkParserStateMachine.h
  836. * src/MetalinkParserStateV4Impl.cc
  837. * src/XML2SAXMetalinkProcessor.cc
  838. * test/Makefile.am
  839. * test/MetalinkProcessorTest.cc
  840. * test/metalink4-attrs.xml: Removed
  841. * test/metalink4-dirtraversal.xml: Removed
  842. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Added test for Metaurl transaction.
  844. * src/MetalinkParserController.cc
  845. * test/MetalinkParserControllerTest.cc
  846. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Avoid costly BtMessage::toString() if info level log is not
  848. required.
  849. * src/DefaultBtInteractive.cc
  850. * src/Logger.h
  851. * src/SimpleBtMessage.cc
  852. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Reserved vector elements based on profiler results.
  854. * src/DefaultBtInteractive.cc
  855. * src/DefaultBtProgressInfoFile.cc
  856. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. Avoid to calculate end() iterator in each loop. std::deque is
  858. particularly slow. Make sure that recalculate end iterator if
  859. element is erased during loop.
  860. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. Use vector instead of deque for containers which is used for
  862. mostly read-only purpose.
  863. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Fixed typo
  865. * test/Makefile.am
  866. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  868. * test/Makefile.am
  869. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  870. Small optimization: In updateTransferStatFor(), don't search peer
  871. ID twice.
  872. * src/DefaultPeerStorage.cc
  873. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Use vector instead of deque for MetalinkEntry and MetalinkResource
  875. objects.
  876. * src/Metalink2RequestGroup.cc
  877. * src/Metalink2RequestGroup.h
  878. * src/MetalinkEntry.cc
  879. * src/MetalinkEntry.h
  880. * src/MetalinkHelper.cc
  881. * src/MetalinkHelper.h
  882. * src/Metalinker.cc
  883. * src/Metalinker.h
  884. * src/main.cc
  885. * test/MetalinkEntryTest.cc
  886. * test/MetalinkHelperTest.cc
  887. * test/MetalinkProcessorTest.cc
  888. * test/MetalinkerTest.cc
  889. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  890. Fixed the bug that grouped FileEntry objects are not used but
  891. instead all FileEntry objects are used for each metaurl group.
  892. * src/Metalink2RequestGroup.cc
  893. * test/Metalink2RequestGroupTest.cc
  894. * test/metalink4-groupbymetaurl.xml
  895. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  896. Use vector instead of deque for ChunkChecksum.
  897. * src/ChunkChecksum.h
  898. * src/MetalinkParserController.cc
  899. * src/MetalinkParserController.h
  900. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  902. algorithm in Metalink properly
  903. * src/MetalinkParserController.cc
  904. * src/MetalinkParserController.h
  905. * src/messageDigest.cc
  906. * src/messageDigest.h
  907. * test/MetalinkProcessorTest.cc
  908. * test/metalink4.xml
  909. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Replaced null or control characters in file path with '_'. For
  911. MinGW32 build, additional characters which is not allowed in
  912. Windows kernel are also replaced. util::detectDirTraversal() now
  913. returns true if given string contains null or control characters.
  914. * src/DownloadContext.cc
  915. * src/DownloadContext.h
  916. * src/Metalink2RequestGroup.cc
  917. * src/MetalinkParserController.cc
  918. * src/bittorrent_helper.cc
  919. * src/util.cc
  920. * src/util.h
  921. * test/UtilTest.cc
  922. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Discard metalink:file if its name attribute is empty string.
  924. Removed FileEntry instantiation in
  925. MetalinkParserController::setFileLengthOfEntry()
  926. * src/MetalinkParserController.cc
  927. * src/MetalinkParserStateV3Impl.cc
  928. * src/MetalinkParserStateV4Impl.cc
  929. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  930. Discard torrent file if path data in it contains directory
  931. traversal directives. Discard metalink:file element in Metalink3
  932. format if its name attribute contains directory traversal
  933. directives. Ignore name attribute of metalink:signature element
  934. in Metalink3 format if it contains directory traversal directives.
  935. * src/MetalinkParserStateV3Impl.cc
  936. * src/bittorrent_helper.cc
  937. * src/message.h
  938. * test/BittorrentHelperTest.cc
  939. * test/Makefile.am
  940. * test/MetalinkProcessorTest.cc
  941. * test/metalink3-dirtraversal.xml
  942. * test/test.xml
  943. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Removed useless comment
  945. * src/MetalinkParserStateV4Impl.cc
  946. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  947. Supported name attribute of metalink::metaurl element and
  948. multi-file torrent with Metalink4. Files with same metaurl are
  949. grouped and downloaded in one RequestGroup.
  950. * src/BtDependency.cc
  951. * src/FileEntry.h
  952. * src/Metalink2RequestGroup.cc
  953. * src/Metalink2RequestGroup.h
  954. * src/MetalinkEntry.cc
  955. * src/MetalinkEntry.h
  956. * src/MetalinkHelper.cc
  957. * src/MetalinkHelper.h
  958. * src/MetalinkMetaurl.cc
  959. * src/MetalinkMetaurl.h
  960. * src/MetalinkParserController.cc
  961. * src/RequestGroup.cc
  962. * src/RequestGroup.h
  963. * src/bittorrent_helper.cc
  964. * test/BittorrentHelperTest.cc
  965. * test/BtDependencyTest.cc
  966. * test/MetalinkHelperTest.cc
  967. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  969. * src/MetalinkMetaurl.h
  970. * src/MetalinkParserController.cc
  971. * src/MetalinkParserController.h
  972. * src/MetalinkParserStateMachine.cc
  973. * src/MetalinkParserStateMachine.h
  974. * src/MetalinkParserStateV4Impl.cc
  975. * test/MetalinkProcessorTest.cc
  976. * test/metalink4-dirtraversal.xml
  977. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  978. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  979. element.
  980. * src/Makefile.am
  981. * src/Metalink2RequestGroup.cc
  982. * src/MetalinkEntry.cc
  983. * src/MetalinkEntry.h
  984. * src/MetalinkMetaurl.cc
  985. * src/MetalinkMetaurl.h
  986. * src/MetalinkParserController.cc
  987. * src/MetalinkParserController.h
  988. * src/MetalinkParserStateMachine.cc
  989. * src/MetalinkParserStateMachine.h
  990. * src/MetalinkParserStateV4Impl.cc
  991. * src/MetalinkParserStateV4Impl.h
  992. * test/MetalinkProcessorTest.cc
  993. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Added Metalink4 support. Currently, name attribute of
  995. metalink::metaurl is ignored and multi-file torrent cannot be used
  996. with Metalink4.
  997. * doc/aria2c.1.txt
  998. * src/DownloadHandlerConstants.cc
  999. * src/ExpatMetalinkProcessor.cc
  1000. * src/Makefile.am
  1001. * src/Metalink2RequestGroup.cc
  1002. * src/MetalinkEntry.cc
  1003. * src/MetalinkEntry.h
  1004. * src/MetalinkParserController.cc
  1005. * src/MetalinkParserController.h
  1006. * src/MetalinkParserState.h
  1007. * src/MetalinkParserStateImpl.cc
  1008. * src/MetalinkParserStateImpl.h
  1009. * src/MetalinkParserStateMachine.cc
  1010. * src/MetalinkParserStateMachine.h
  1011. * src/MetalinkParserStateV3Impl.cc
  1012. * src/MetalinkParserStateV3Impl.h
  1013. * src/MetalinkParserStateV4Impl.cc
  1014. * src/MetalinkParserStateV4Impl.h
  1015. * src/MetalinkResource.cc
  1016. * src/MetalinkResource.h
  1017. * src/Metalinker.cc
  1018. * src/RequestGroup.cc
  1019. * src/RequestGroup.h
  1020. * src/XML2SAXMetalinkProcessor.cc
  1021. * src/messageDigest.cc
  1022. * src/util.cc
  1023. * src/util.h
  1024. * test/Makefile.am
  1025. * test/MetalinkEntryTest.cc
  1026. * test/MetalinkParserControllerTest.cc
  1027. * test/MetalinkProcessorTest.cc
  1028. * test/MetalinkerTest.cc
  1029. * test/UtilTest.cc
  1030. * test/metalink4-attrs.xml
  1031. * test/metalink4-dirtraversal.xml
  1032. * test/metalink4.xml
  1033. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Added aiFlags argument to getInterfaceAddress(). Use
  1035. AI_NUMERICHOST to find interface specified using
  1036. --bt-lpd-interface option to avoid time-consuming address lookup.
  1037. * src/BtSetup.cc
  1038. * src/SocketCore.cc
  1039. * src/SocketCore.h
  1040. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  1042. is bad in LpdMessageReceiver.
  1043. * src/LpdMessage.h
  1044. * src/LpdMessageReceiver.cc
  1045. * src/LpdMessageReceiver.h
  1046. * src/LpdReceiveMessageCommand.cc
  1047. * test/LpdMessageReceiverTest.cc
  1048. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Added --bt-lpd-interface option to specify the interface to use
  1050. for Local Peer Discovery. LpdMessageDispatcher object now has its
  1051. own socket. LpdMessageReceiver's socket is binded to multicast
  1052. address to only receive multicast packets.
  1053. * src/BtSetup.cc
  1054. * src/LpdMessageDispatcher.cc
  1055. * src/LpdMessageDispatcher.h
  1056. * src/LpdMessageReceiver.cc
  1057. * src/LpdMessageReceiver.h
  1058. * src/LpdReceiveMessageCommand.cc
  1059. * src/LpdReceiveMessageCommand.h
  1060. * src/OptionHandlerFactory.cc
  1061. * src/SocketCore.cc
  1062. * src/SocketCore.h
  1063. * src/prefs.cc
  1064. * src/prefs.h
  1065. * src/usage_text.h
  1066. * test/LpdMessageDispatcherTest.cc
  1067. * test/LpdMessageReceiverTest.cc
  1068. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1069. Put the portion of code to get interface addresses in
  1070. SocketCore::bindAddress() into newly added getInterfaceAddress().
  1071. * src/SocketCore.cc
  1072. * src/SocketCore.h
  1073. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Rewritten util::parseInt() and parseUInt()
  1075. * src/util.cc
  1076. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Fixed compile error with mingw32 cross compiler. Defined
  1078. a2_sockopt_t as void* for the target systems other than mingw32.
  1079. * src/SocketCore.cc
  1080. * src/a2netcompat.h
  1081. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Removed 'always true' condition
  1083. * src/util.cc
  1084. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1085. Documented --bt-enable-lpd option in man page.
  1086. * doc/aria2c.1.txt
  1087. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1088. Added Local Peer Discovery. It is disabled by default. Use
  1089. --bt-enable-lpd to enable the function.
  1090. * src/BtConstants.h
  1091. * src/BtSetup.cc
  1092. * src/LpdDispatchMessageCommand.cc
  1093. * src/LpdDispatchMessageCommand.h
  1094. * src/LpdMessage.h
  1095. * src/LpdMessageDispatcher.cc
  1096. * src/LpdMessageDispatcher.h
  1097. * src/LpdMessageReceiver.cc
  1098. * src/LpdMessageReceiver.h
  1099. * src/LpdReceiveMessageCommand.cc
  1100. * src/LpdReceiveMessageCommand.h
  1101. * src/Makefile.am
  1102. * src/OptionHandlerFactory.cc
  1103. * src/Peer.cc
  1104. * src/Peer.h
  1105. * src/PeerInteractionCommand.cc
  1106. * src/SocketCore.cc
  1107. * src/SocketCore.h
  1108. * src/prefs.cc
  1109. * src/prefs.h
  1110. * src/usage_text.h
  1111. * src/util.cc
  1112. * src/util.h
  1113. * test/LpdMessageDispatcherTest.cc
  1114. * test/LpdMessageReceiverTest.cc
  1115. * test/Makefile.am
  1116. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. User-defined custom request headers specified by --header option
  1118. now override builtin headers if they have same name.
  1119. * src/HttpRequest.cc
  1120. * src/HttpRequest.h
  1121. * test/HttpRequestTest.cc
  1122. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. Rewirtten util::isNumber()
  1124. * src/util.cc
  1125. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1126. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  1127. because without it localized error messages are not printed
  1128. correctly.
  1129. * src/Platform.cc
  1130. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Added unit tests for util::getContentDispositionFilename() from
  1132. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  1133. tests are passed.
  1134. * src/util.cc
  1135. * test/UtilTest.cc
  1136. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  1138. util.cc
  1139. * src/Platform.cc
  1140. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Support RFC2231 "Parameter Value Character Set and Language
  1142. Information" in Content-Disposition header.
  1143. * src/HttpResponse.cc
  1144. * src/util.cc
  1145. * src/util.h
  1146. * test/UtilTest.cc
  1147. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1148. Print CXXFLAGS
  1149. * configure.ac
  1150. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1151. Small optimization for A2_WOULDBLOCK(e)
  1152. * src/SocketCore.cc
  1153. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Removed test file
  1155. * test/CookieStorageTest.cc
  1156. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1157. Check both EAGAIN and EWOULDBLOCK
  1158. * src/SocketCore.cc
  1159. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1160. Removed ret == 0 checking for SSL_read(), SSL_write() and
  1161. SSL_peek() because the checks are done in the caller. In
  1162. SocketBuffer::send(), throw exception if nothing could be written
  1163. and socket error was not EWOULDBLOCK
  1164. * src/SocketBuffer.cc
  1165. * src/SocketCore.cc
  1166. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Fixed error code handling so that it can handle Winsock2 error
  1168. code.
  1169. * src/SocketCore.cc
  1170. * src/SocketCore.h
  1171. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Bump up version number to 1.9.0a
  1173. * configure.ac
  1174. * doc/aria2c.1.txt
  1175. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Fixed the bug that aria2 doesn't handle return value if error
  1177. occurred before download begins.
  1178. * src/MultiUrlRequestInfo.cc
  1179. * src/main.cc
  1180. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. Removed SegmentManFactory class.
  1182. * src/AbstractSegmentManFactory.h
  1183. * src/DefaultSegmentManFactory.cc
  1184. * src/DefaultSegmentManFactory.h
  1185. * src/Makefile.am
  1186. * src/RequestGroup.cc
  1187. * src/RequestGroup.h
  1188. * src/SegmentManFactory.h
  1189. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Destroyed digest context after getting calculated hash.
  1191. * src/Piece.cc
  1192. * src/Piece.h
  1193. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Removed BitfieldManFactory class.
  1195. * src/BitfieldManFactory.cc
  1196. * src/BitfieldManFactory.h
  1197. * src/DefaultPieceStorage.cc
  1198. * src/Makefile.am
  1199. * src/PeerSessionResource.cc
  1200. * src/Piece.cc
  1201. * src/main.cc
  1202. * test/DefaultPieceStorageTest.cc
  1203. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Removed unused methods from BitfieldMan class. Moved
  1205. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  1206. class.
  1207. * src/BitfieldMan.cc
  1208. * src/BitfieldMan.h
  1209. * src/BitfieldManFactory.cc
  1210. * src/BitfieldManFactory.h
  1211. * src/bitfield.h
  1212. * src/main.cc
  1213. * test/BitfieldManTest.cc
  1214. * test/DefaultPieceStorageTest.cc
  1215. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Moved getFirstNMissingIndex to bitfield.h and made it return the
  1217. number of appended indexes.
  1218. * src/BitfieldMan.cc
  1219. * src/BitfieldMan.h
  1220. * src/Piece.cc
  1221. * src/Piece.h
  1222. * src/bitfield.h
  1223. * test/BitfieldManTest.cc
  1224. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Added more tests.
  1226. * test/BitfieldManTest.cc
  1227. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1228. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  1229. unused block indexes at once instead of calling
  1230. getFirstMissingUnusedIndex() multiple times. Made use of it in
  1231. Piece class and DefaultBtRequestFactory class via Piece class.
  1232. * src/BitfieldMan.cc
  1233. * src/BitfieldMan.h
  1234. * src/DefaultBtRequestFactory.cc
  1235. * src/Piece.cc
  1236. * src/Piece.h
  1237. * test/BitfieldManTest.cc
  1238. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1239. Use std::make_pair(...)
  1240. * src/DHTMessageTracker.cc
  1241. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1242. Use std::make_pair(...)
  1243. * src/bittorrent_helper.cc
  1244. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. urlencode(removeFragment(...)) in parseUrl(...)
  1246. * src/Request.cc
  1247. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  1249. * src/AbstractCommand.cc
  1250. * src/AdaptiveURISelector.cc
  1251. * src/BtPieceMessage.cc
  1252. * src/BtPortMessage.cc
  1253. * src/CreateRequestCommand.cc
  1254. * src/DHTAbstractNodeLookupTask.cc
  1255. * src/DHTBucket.cc
  1256. * src/DHTGetPeersCommand.cc
  1257. * src/DHTMessageDispatcherImpl.cc
  1258. * src/DHTMessageFactoryImpl.cc
  1259. * src/DHTMessageTracker.cc
  1260. * src/DHTPeerAnnounceStorage.cc
  1261. * src/DHTRoutingTable.cc
  1262. * src/DHTSetup.cc
  1263. * src/DefaultBtAnnounce.cc
  1264. * src/DefaultBtInteractive.cc
  1265. * src/DefaultBtMessageDispatcher.cc
  1266. * src/DefaultBtMessageReceiver.cc
  1267. * src/DefaultBtProgressInfoFile.cc
  1268. * src/DefaultBtRequestFactory.cc
  1269. * src/DefaultPeerStorage.cc
  1270. * src/DefaultPieceStorage.cc
  1271. * src/DownloadCommand.cc
  1272. * src/DownloadEngine.cc
  1273. * src/EpollEventPoll.cc
  1274. * src/FileAllocationCommand.cc
  1275. * src/FileEntry.cc
  1276. * src/FtpNegotiationCommand.cc
  1277. * src/HandshakeExtensionMessage.cc
  1278. * src/HttpListenCommand.cc
  1279. * src/HttpServer.cc
  1280. * src/HttpSkipResponseCommand.cc
  1281. * src/IteratableChunkChecksumValidator.cc
  1282. * src/Logger.h
  1283. * src/MSEHandshake.cc
  1284. * src/MetalinkPostDownloadHandler.cc
  1285. * src/MultiDiskAdaptor.cc
  1286. * src/PeerAbstractCommand.cc
  1287. * src/PeerConnection.cc
  1288. * src/PeerListenCommand.cc
  1289. * src/PeerReceiveHandshakeCommand.cc
  1290. * src/RequestGroup.cc
  1291. * src/RequestGroupMan.cc
  1292. * src/SegmentMan.cc
  1293. * src/SelectEventPoll.cc
  1294. * src/ServerStat.cc
  1295. * src/SimpleBtMessage.cc
  1296. * src/SocketCore.cc
  1297. * src/TrackerWatcherCommand.cc
  1298. * src/UTMetadataDataExtensionMessage.cc
  1299. * src/UTMetadataRequestFactory.cc
  1300. * src/UTMetadataRequestTracker.cc
  1301. * src/XmlRpcMethod.cc
  1302. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Changed log level from debug to info
  1304. * src/BtDependency.cc
  1305. * src/BtPostDownloadHandler.cc
  1306. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Removed unused PeerSessionResource::_latency.
  1308. * src/BtConstants.h
  1309. * src/BtPieceMessage.cc
  1310. * src/Peer.cc
  1311. * src/Peer.h
  1312. * src/PeerSessionResource.cc
  1313. * src/PeerSessionResource.h
  1314. * test/PeerSessionResourceTest.cc
  1315. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Fixed the bug that --file-allocation=falloc doesn't work with
  1317. single file download.
  1318. * src/AbstractSingleDiskAdaptor.cc
  1319. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1320. Release 1.8.2
  1321. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Added Portuguese translation. Updated Ukrainian and Spanish
  1323. translation. Thanks to all translators.
  1324. * po/LINGUAS
  1325. * po/es.po
  1326. * po/pt.po
  1327. * po/uk.po
  1328. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Remove fragment from redirected URI.
  1330. * src/Request.cc
  1331. * test/RequestTest.cc
  1332. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. Updated po templates.
  1334. * po/aria2.pot
  1335. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Drop legacy ifdef for ares support and code cleanup.
  1337. * src/AsyncNameResolver.cc
  1338. * src/AsyncNameResolver.h
  1339. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. Call ares_library_init and ares_library_cleanup if they are
  1341. available. Some code cleanups.
  1342. * src/Platform.cc
  1343. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Call ares_process_fd() each time after epoll to handle timeout.
  1345. * src/EpollEventPoll.cc
  1346. * src/EpollEventPoll.h
  1347. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Suppressed type-cast compiler warning
  1349. * src/CookieStorage.cc
  1350. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Fixed compile error on Mac OS X.
  1352. * src/CookieStorage.h
  1353. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Removed cookietest.txt from Makefile.am
  1355. * test/Makefile.am
  1356. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Updated version number in man page.
  1358. * doc/aria2c.1.txt
  1359. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Rewritten help message for --allow-overwrite option.
  1361. * doc/aria2c.1.txt
  1362. * src/usage_text.h
  1363. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. Added bittorrent key to the response of tellStatus XML-RPC method.
  1365. The associated value of the key is a struct and contains data
  1366. retrieved from .torrent file, such as name, announce-list,
  1367. comment, etc.
  1368. * doc/aria2c.1.txt
  1369. * src/XmlRpcMethodImpl.cc
  1370. * src/XmlRpcMethodImpl.h
  1371. * test/XmlRpcMethodTest.cc
  1372. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Removed parse(std::istream&) and parse(const std::string&) from
  1374. CookieParser.
  1375. * src/CookieParser.cc
  1376. * src/CookieParser.h
  1377. * test/CookieParserTest.cc
  1378. * test/cookietest.txt: Removed
  1379. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Fixed the bug that cookie for domain a.b.c is not sent to the host
  1381. a.b.c if no other cookies are stored. Fixed the bug that
  1382. Cookie::markOriginServerOnly() is not called when cookies are
  1383. loaded from file/sqlite3 database.
  1384. * src/Cookie.h
  1385. * src/CookieStorage.cc
  1386. * src/NsCookieParser.cc
  1387. * src/Sqlite3MozCookieParser.cc
  1388. * test/CookieStorageTest.cc
  1389. * test/NsCookieParserTest.cc
  1390. * test/Sqlite3MozCookieParserTest.cc
  1391. * test/cookies.sqlite
  1392. * test/nscookietest.txt
  1393. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  1395. both _pieceStorage and _segmentMan are initialized or they are
  1396. not.
  1397. * src/RequestGroup.cc
  1398. * src/RequestGroup.h
  1399. * test/BtDependencyTest.cc
  1400. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Bump up version number to 1.8.2
  1402. * configure.ac
  1403. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Replaced "." with A2STR::DOT_C
  1405. * src/AbstractCommand.cc
  1406. * src/Cookie.cc
  1407. * src/DownloadContext.cc
  1408. * src/FtpConnection.cc
  1409. * src/RequestGroup.cc
  1410. * src/util.cc
  1411. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1412. Replaced isNumberAndDotsNotation() with isNumericHost().
  1413. isNumericHost() can handle IPv6 address.
  1414. * src/Cookie.cc
  1415. * src/CookieStorage.cc
  1416. * src/util.cc
  1417. * src/util.h
  1418. * test/CookieTest.cc
  1419. * test/UtilTest.cc
  1420. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Included A2STR.h
  1422. * src/CookieStorage.cc
  1423. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Rewritten Cookie storage.
  1425. * src/Cookie.cc
  1426. * src/Cookie.h
  1427. * src/CookieParser.cc
  1428. * src/CookieStorage.cc
  1429. * src/CookieStorage.h
  1430. * src/a2functional.h
  1431. * test/CookieParserTest.cc
  1432. * test/CookieStorageTest.cc
  1433. * test/CookieTest.cc
  1434. * test/HttpResponseTest.cc
  1435. * test/TestUtil.h
  1436. * test/a2functionalTest.cc
  1437. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1438. Handle redirected URI which is not properly percent encoded.
  1439. * src/Request.cc
  1440. * test/RequestTest.cc
  1441. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1442. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1443. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1444. in a row without single '200 OK' response.
  1445. * src/RequestGroup.cc.
  1446. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1448. readout by 80 characters in mingw32 build. Catch exception in
  1449. DHTMessageReceiver::receiveMessage().
  1450. * src/AbstractDiskWriter.cc
  1451. * src/ConsoleStatCalc.cc
  1452. * src/DHTMessageReceiver.cc
  1453. * src/File.cc
  1454. * src/RequestGroupMan.cc
  1455. * src/a2io.h
  1456. * test/FileTest.cc
  1457. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Fixed compile error with intel compiler
  1459. * src/XmlRpcMethodImpl.cc
  1460. * src/XmlRpcMethodImpl.h
  1461. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Release 1.8.1
  1463. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Updated Swedish, Russian and Italian translations. Thanks to all
  1465. translators.
  1466. * po/it.po
  1467. * po/ru.po
  1468. * po/sv.po
  1469. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Fixed broken OptionParser::findByName().
  1471. * src/OptionParser.cc
  1472. * test/OptionParserTest.cc
  1473. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Fixed test error without BitTorrent support.
  1475. * test/XmlRpcMethodTest.cc
  1476. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Fixed compile error without GNUTLS/OpenSSL.
  1478. * src/util.cc
  1479. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1480. Changed compression level to Z_DEFAULT_COMPRESSION.
  1481. * src/GZipEncoder.cc
  1482. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1483. Added missing command line options: --http-no-cache,
  1484. --bt-save-metadata and --bt-metadata-only.
  1485. * doc/xmlrpc/aria2rpc
  1486. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1487. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1488. client accepts gzip content encoding.
  1489. * src/A2STR.cc
  1490. * src/A2STR.h
  1491. * src/GZipEncoder.cc
  1492. * src/GZipEncoder.h
  1493. * src/HttpHeader.cc
  1494. * src/HttpHeader.h
  1495. * src/HttpServer.cc
  1496. * src/HttpServer.h
  1497. * src/HttpServerBodyCommand.cc
  1498. * src/HttpServerCommand.cc
  1499. * src/Makefile.am
  1500. * src/XmlRpcResponse.cc
  1501. * src/XmlRpcResponse.h
  1502. * test/GZipEncoderTest.cc
  1503. * test/Makefile.am
  1504. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Added XML-RPC client sample code in Python.
  1506. * doc/aria2c.1.txt
  1507. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Updated po templates.
  1509. * po/aria2.pot
  1510. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Bump up version number to 1.8.1
  1512. * configure.ac
  1513. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1514. Added version number to man page. Updated copyright year in man
  1515. page.
  1516. * doc/aria2c.1.txt
  1517. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. Rewritten toTagString
  1519. * src/NameMatchOptionHandler.cc
  1520. * test/OptionHandlerTest.cc
  1521. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Added dir and files key to the response struct of aria2.tellStatus
  1523. XML-RPC method. The value associated with files key is the list
  1524. of files. Its element is the same struct used in aria2.getFiles
  1525. XML-RPC method. Added uris key to the response struct of
  1526. aria2.getFiles XML-RPC method. The value associated with uris key
  1527. is the list of URIs. Its element is the same struct used in
  1528. aria2.getUris XML-RPC method.
  1529. * doc/aria2c.1.txt
  1530. * src/XmlRpcMethodImpl.cc
  1531. * test/XmlRpcMethodTest.cc
  1532. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1534. struct containing Session ID, which is generated each time when
  1535. aria2 is invoked.
  1536. * doc/aria2c.1.txt
  1537. * doc/xmlrpc/aria2rpc
  1538. * src/DownloadEngine.cc
  1539. * src/DownloadEngine.h
  1540. * src/XmlRpcMethodFactory.cc
  1541. * src/XmlRpcMethodImpl.cc
  1542. * src/XmlRpcMethodImpl.h
  1543. * test/XmlRpcMethodTest.cc
  1544. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Moved generateRandomKey() from bittorrent_helper to util.
  1546. * src/DHTBucket.cc
  1547. * src/DHTNode.cc
  1548. * src/bittorrent_helper.cc
  1549. * src/bittorrent_helper.h
  1550. * src/util.cc
  1551. * src/util.h
  1552. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1553. Updated doc about GID.
  1554. * doc/aria2c.1.txt
  1555. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1556. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1557. accepts a negative integer. 'offset' == -1 points last download
  1558. in the waiting queue and 'offset' == -2 points the download before
  1559. the last download, and so on. The downloads in the response are in
  1560. reversed order.
  1561. * doc/aria2c.1.txt
  1562. * src/XmlRpcMethodImpl.cc
  1563. * src/XmlRpcMethodImpl.h
  1564. * test/XmlRpcMethodTest.cc
  1565. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1566. Added --human-readable option. This option, when true is given,
  1567. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1568. 3.4Mi) in the console readout. The default value is true and it
  1569. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1570. appears when false is given. In this case, sizes and speed are
  1571. printed without in bytes. No Ki, Mi units conversion is used.
  1572. This may be useful for a program to parse the output of aria2.
  1573. * doc/aria2c.1.txt
  1574. * src/ConsoleStatCalc.cc
  1575. * src/ConsoleStatCalc.h
  1576. * src/OptionHandlerFactory.cc
  1577. * src/main.cc
  1578. * src/prefs.cc
  1579. * src/prefs.h
  1580. * src/usage_text.h
  1581. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1582. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1583. option accepts empty string "". When "" is given, it erases
  1584. previously defined proxy.
  1585. * doc/aria2c.1.txt
  1586. * src/OptionHandlerImpl.h
  1587. * src/usage_text.h
  1588. * test/OptionHandlerTest.cc
  1589. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1590. Code cleanup for proxy URI handling.
  1591. * src/AbstractCommand.cc
  1592. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. Added --bt-metadata-only option. If true is given to this option,
  1594. aria2 downloads metadata only. The file(s) described in metadata
  1595. will not be downloaded. This option has effect only when
  1596. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1597. * doc/aria2c.1.txt
  1598. * src/OptionHandlerFactory.cc
  1599. * src/UTMetadataPostDownloadHandler.cc
  1600. * src/download_helper.cc
  1601. * src/prefs.cc
  1602. * src/prefs.h
  1603. * src/usage_text.h
  1604. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1606. deleted when exception is thrown. Make sure that when passing
  1607. std::deque<Command*> to function to store Commands, handle
  1608. exception and delete these Commands.
  1609. * src/AbstractCommand.cc
  1610. * src/CheckIntegrityCommand.cc
  1611. * src/FileAllocationCommand.cc
  1612. * src/RequestGroup.cc
  1613. * src/TrackerWatcherCommand.cc
  1614. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1615. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1616. * src/A2STR.cc
  1617. * src/A2STR.h
  1618. * src/FtpNegotiationCommand.cc
  1619. * src/HttpResponseCommand.cc
  1620. * src/util.cc
  1621. * src/util.h
  1622. * test/UtilTest.cc
  1623. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Treat --dir="" as --dir="."
  1625. * src/FtpNegotiationCommand.cc
  1626. * src/HttpResponseCommand.cc
  1627. * src/Metalink2RequestGroup.cc
  1628. * src/UTMetadataPostDownloadHandler.cc
  1629. * src/bittorrent_helper.cc
  1630. * src/download_helper.cc
  1631. * src/util.cc
  1632. * src/util.h
  1633. * test/UtilTest.cc
  1634. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1635. Code clean up.
  1636. * src/main.cc
  1637. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1638. Reset GID to 1 when they reach maximum value. Rewritten
  1639. CUIDCounter::newID()
  1640. * src/CUIDCounter.h
  1641. * src/RequestGroup.cc
  1642. * src/RequestGroup.h
  1643. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Documented --http-no-cache option in man page.
  1645. * doc/aria2c.1.txt
  1646. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Added --http-no-cache option. When true is given, aria2 sends
  1648. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1649. cached content. If false is given , these headers are not sent
  1650. and you can add Cache-Control header with a directive you like
  1651. using --header option.
  1652. * src/HttpRequest.cc
  1653. * src/HttpRequest.h
  1654. * src/HttpRequestCommand.cc
  1655. * src/OptionHandlerFactory.cc
  1656. * src/download_helper.cc
  1657. * src/prefs.cc
  1658. * src/prefs.h
  1659. * src/usage_text.h
  1660. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Removed Logger from OptionParser. When OptionParser is used to
  1662. parse options at bootstrap, LogFactory is not configured yet
  1663. properly. When LogFactory is used in OptionParser, it initializes
  1664. itself to return a logger which has no ability to write log to the
  1665. disk.
  1666. * src/OptionParser.cc
  1667. * src/OptionParser.h
  1668. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Added following sentance to the help message of --out option:
  1670. --out option is ignored when -Z is used.
  1671. * doc/aria2c.1.txt
  1672. * src/usage_text.h
  1673. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Added --bt-save-metadata option to -i list options.
  1675. * doc/aria2c.1.txt
  1676. * src/download_helper.cc
  1677. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1679. additional libraries.
  1680. * src/MultiUrlRequestInfo.cc
  1681. * src/NameResolver.cc
  1682. * src/SelectEventPoll.cc
  1683. * src/SelectEventPoll.h
  1684. * src/SocketCore.cc
  1685. * src/SocketCore.h
  1686. * src/a2netcompat.h
  1687. * src/daemon.cc
  1688. * src/main.cc
  1689. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Fixed typo.
  1691. * src/DHTMessageReceiver.cc
  1692. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Fixed the bug that causes segmentation fault if unknown option is
  1694. put in aria2.conf file. BUG#2928303
  1695. * src/OptionParser.cc
  1696. * src/OptionParser.h
  1697. * src/option_processing.cc
  1698. * test/OptionParserTest.cc
  1699. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1700. Ignore port message with port=0.
  1701. * src/BtPortMessage.cc
  1702. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1703. Run autoupdate
  1704. * configure.ac
  1705. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1706. Updated autoconf/automake auxiliary files.
  1707. * INSTALL
  1708. * config.guess
  1709. * config.sub
  1710. * depcomp
  1711. * install-sh
  1712. * m4/intldir.m4
  1713. * missing
  1714. * mkinstalldirs
  1715. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1716. Removed unused function.
  1717. * src/SharedHandle.h
  1718. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1719. Find pooled socket using all cached addresses.
  1720. * src/DNSCache.h
  1721. * src/DownloadEngine.cc
  1722. * src/DownloadEngine.h
  1723. * src/InitiateConnectionCommand.cc
  1724. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Updated copyright year.
  1726. * src/version_usage.cc
  1727. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Pool connection if _contentEncodingDecoder is used and server
  1729. supports persistent connection.
  1730. * src/HttpDownloadCommand.cc
  1731. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1732. Updated doc.
  1733. * src/DownloadCommand.cc
  1734. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Untabify. Fixed one line in copyright which is longer than 80
  1736. columns.
  1737. * src
  1738. * test
  1739. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1740. Release 1.8.0
  1741. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1742. Updated po templates.
  1743. * po/aria2.pot
  1744. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1745. Documented --bt-save-metadata option in man page.
  1746. * doc/aria2c.1.txt
  1747. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. Fixed usage of --bt-save-metadata option.
  1749. * src/usage_text.h
  1750. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1751. Updated po templates.
  1752. * po/aria2.pot
  1753. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1754. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1755. causes name resolution error when none of network interface has
  1756. IPv4 address.
  1757. * src/main.cc
  1758. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Bump up version number to 1.8.0.
  1760. * configure.ac
  1761. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Use info hash as a filename when saving BitTorrent metadata.
  1763. * src/UTMetadataPostDownloadHandler.cc
  1764. * test/UTMetadataPostDownloadHandlerTest.cc
  1765. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Documented system.multicall XML-RPC method in man page.
  1767. * doc/aria2c.1.txt
  1768. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Added signal handler for SIGHUP to save .aria2 file when terminal
  1770. is closed. The handler is the same one for SIGINT and SIGTERM.
  1771. * src/MultiUrlRequestInfo.cc
  1772. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1773. Defined method name in XmlRpcMethod subclasses.
  1774. * src/XmlRpcMethodFactory.cc
  1775. * src/XmlRpcMethodImpl.cc
  1776. * src/XmlRpcMethodImpl.h
  1777. * test/XmlRpcMethodTest.cc
  1778. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1779. Added system.multicall XML-RPC method.
  1780. * src/XmlRpcMethod.cc
  1781. * src/XmlRpcMethod.h
  1782. * src/XmlRpcMethodFactory.cc
  1783. * src/XmlRpcMethodImpl.cc
  1784. * src/XmlRpcMethodImpl.h
  1785. * test/XmlRpcMethodTest.cc
  1786. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1787. Check structure depth when decoding.
  1788. * src/bencode.cc
  1789. * src/bencode.h
  1790. * test/BencodeTest.cc
  1791. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1792. Documented tellStopped XML-RPC method in man page.
  1793. * doc/aria2c.1.txt
  1794. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Added tellStopped XML-RPC method to aria2rpc.
  1796. * doc/xmlrpc/aria2rpc
  1797. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1798. Added tellStopped XML-RPC method. This method returns stopped
  1799. download in the specified range. It takes same parameters with
  1800. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1801. * src/XmlRpcMethodFactory.cc
  1802. * src/XmlRpcMethodImpl.cc
  1803. * src/XmlRpcMethodImpl.h
  1804. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1806. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1807. when conducting unit tests because they fail if networking
  1808. interface is not configured with IPv4 address.
  1809. * src/NameResolver.cc
  1810. * src/SocketCore.cc
  1811. * src/SocketCore.h
  1812. * src/a2netcompat.h
  1813. * test/AllTest.cc
  1814. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1815. Fixed unit test error
  1816. * test/UTMetadataPostDownloadHandlerTest.cc
  1817. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Defined static string constants for efficiency.
  1819. * src/XmlRpcMethodImpl.cc
  1820. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1821. Added --bt-save-metadata option. When true is given, it saves
  1822. metadata as .torrent file. This option has effect only when
  1823. BitTorrent Magnet URI is used. The filename is name in metadata
  1824. with suffix .torrent. The directory to be saved is the same
  1825. directory where download file is saved. If the same file already
  1826. exists, metdata is not saved.
  1827. * src/OptionHandlerFactory.cc
  1828. * src/UTMetadataPostDownloadHandler.cc
  1829. * src/UTMetadataPostDownloadHandler.h
  1830. * src/message.h
  1831. * src/prefs.cc
  1832. * src/prefs.h
  1833. * src/usage_text.h
  1834. * test/UTMetadataDataExtensionMessageTest.cc
  1835. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Added util::saveAs() function. Use it in Signature::save().
  1837. * src/Signature.cc
  1838. * src/util.cc
  1839. * src/util.h
  1840. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Upcase info hash in Magnet URI.
  1842. * doc/aria2c.1.txt
  1843. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1844. Refactored RequestGroupMan::changeReservedGroupPosition()
  1845. * src/RequestGroupMan.cc
  1846. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1847. Updated the description for aria2.addTorrent XML-RPC method.
  1848. * doc/aria2c.1.txt
  1849. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1850. Added changePosition to aria2rpc.
  1851. * doc/xmlrpc/aria2rpc
  1852. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1853. Documented changePosition XML-RPC method in man page.
  1854. * doc/aria2c.1.txt
  1855. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1857. pos and how. This method changes the position of download denoted
  1858. by gid. If how is POS_SET, it moves the download to a position
  1859. relative to the beginning of the queue. If how is POS_CUR, it
  1860. moves the download to a position relative to the current
  1861. position. If how is POS_END, it moves the download to a position
  1862. relative to the end of the queue. If the destination position is
  1863. less than 0 or beyond the end of the queue, it moves the download
  1864. to the beginning or the end of the queue respectively. Returns
  1865. the destination position.
  1866. * src/RequestGroupMan.cc
  1867. * src/RequestGroupMan.h
  1868. * src/XmlRpcMethodFactory.cc
  1869. * src/XmlRpcMethodImpl.cc
  1870. * src/XmlRpcMethodImpl.h
  1871. * test/RequestGroupManTest.cc
  1872. * test/XmlRpcMethodTest.cc
  1873. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. Added getOption and getGlobalOption to aria2rpc.
  1875. * doc/xmlrpc/aria2rpc
  1876. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Documented getOption and getGlobalOption XML-RPC method in man
  1878. page
  1879. * doc/aria2c.1.txt
  1880. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1881. Added getOption and getGlobalOption XML-RPC method. getOption
  1882. takes GID as a parameter and returns its options as struct.
  1883. getGlobalOption takes no parameter and returns global
  1884. options. Because global option is used as a template for the
  1885. option of newly added downloads, it includes options returned by
  1886. getOption.
  1887. * src/Option.h
  1888. * src/XmlRpcMethodFactory.cc
  1889. * src/XmlRpcMethodImpl.cc
  1890. * src/XmlRpcMethodImpl.h
  1891. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1892. Sort _optionHandlers in OptionParser by name in ascending order.
  1893. Use vector instead of deque for efficiency.
  1894. * src/OptionHandler.h
  1895. * src/OptionHandlerFactory.h
  1896. * src/OptionParser.cc
  1897. * src/OptionParser.h
  1898. * src/version_usage.cc
  1899. * test/OptionParserTest.cc
  1900. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Code cleanup
  1902. * src/XmlRpcMethod.cc
  1903. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Documented about followedBy and belongsTo in man page.
  1905. * doc/aria2c.1.txt
  1906. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Added following 2 keys, followedBy and belongsTo, to the response
  1908. of tellStatus.
  1909. followedBy: List of GIDs which are generated by the consequence of
  1910. this download. For example, when aria2 downloaded Metalink file,
  1911. it generates downloads described in it(see *--follow-metalink*
  1912. option). This value is useful to track these auto generated
  1913. downloads. If there is no such downloads, this key will not be
  1914. included in the response.
  1915. belongsTo: GID of a parent download. Some downloads are a part of
  1916. another download. For example, if a file in Metalink has
  1917. BitTorrent resource, the download of .torrent is a part of that
  1918. file. If this download has no parent, this key will not be
  1919. included in the response.
  1920. * src/BtPostDownloadHandler.cc
  1921. * src/DownloadResult.h
  1922. * src/Metalink2RequestGroup.cc
  1923. * src/MetalinkPostDownloadHandler.cc
  1924. * src/RequestGroup.cc
  1925. * src/RequestGroup.h
  1926. * src/UTMetadataPostDownloadHandler.cc
  1927. * src/XmlRpcMethodImpl.cc
  1928. * src/XmlRpcMethodImpl.h
  1929. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Assigned BObject in BDE() to avoid segmentation fault when calling
  1931. methods of BDE::none().
  1932. * src/BDE.cc
  1933. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1934. Show info hash in Magnet URI in upper case letters in -S output.
  1935. * src/bittorrent_helper.cc
  1936. * test/BittorrentHelperTest.cc
  1937. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1938. Removed old useless comment
  1939. * src/MultiUrlRequestInfo.cc
  1940. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1941. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1942. not properly used in configure script and failed to detect gnutls.
  1943. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1944. and the initialization of pkg-config is done in first occurrence
  1945. of PKG_CHECK_MODULES which is not executed because it is inside of
  1946. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1947. * configure.ac
  1948. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1949. Release 1.7.2
  1950. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1951. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1952. true even if all downloads haven't finished, especially when
  1953. PostDownloadHandler is involved. Changed the condition so that it
  1954. only returns true if both _requestGroups and _reservedGroups are
  1955. empty.
  1956. * src/RequestGroupMan.cc
  1957. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1958. Log listening port for BitTorrent/DHT in notice level.
  1959. * src/DHTConnectionImpl.cc
  1960. * src/PeerListenCommand.cc
  1961. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1962. Updated po templates.
  1963. * po/aria2.pot
  1964. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1965. Bump up version number to 1.7.2
  1966. * configure.ac
  1967. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1968. Changed default value of --enable-dht from 'false' to 'true'.
  1969. * doc/aria2c.1.txt
  1970. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1971. Enabled DHT by default because of Magnet URI support. To disable
  1972. DHT, use --enable-dht=false
  1973. * src/OptionHandlerFactory.cc
  1974. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1975. Print Magnet URI in -S output.
  1976. * src/AnnounceList.cc
  1977. * src/bittorrent_helper.cc
  1978. * src/bittorrent_helper.h
  1979. * test/BittorrentHelperTest.cc
  1980. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1981. Added --bt-prioritize-piece option to aria2rpc.
  1982. * doc/xmlrpc/aria2rpc
  1983. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Refer Magnet URI in --help. Made some cosmetic changes.
  1985. * src/version_usage.cc
  1986. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1987. Updated -T and -M option.
  1988. * doc/aria2c.1.txt
  1989. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1990. Fixed typo
  1991. * doc/aria2c.1.txt
  1992. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1993. Fixed the bug that line separator is missing in horizontal bar.
  1994. * doc/xmlrpc/aria2mon
  1995. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1996. Updated usage text for --metalink-file option.
  1997. * src/usage_text.h
  1998. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. If '-' is given as an argument to --metalink-file option, aria2
  2000. reads Metalink file from stdin.
  2001. * src/OptionHandlerFactory.cc
  2002. * src/OptionHandlerImpl.h
  2003. * src/a2io.h
  2004. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2005. Fixed the bug that aria2 listens wrong port if --interface option
  2006. is used.
  2007. * src/SocketCore.cc
  2008. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2009. Fixed the bug that query parameter in magnet URI is not decoded.
  2010. * src/magnet.cc
  2011. * test/MagnetTest.cc
  2012. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2013. Specified defaultSize as an argument for easy testing.
  2014. * src/util.cc
  2015. * src/util.h
  2016. * test/UtilTest.cc
  2017. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2018. Release 1.7.1
  2019. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Bump up version number to 1.7.1
  2021. * configure.ac
  2022. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Fixed the bug --bt-prioritize-piece=tail is not working.
  2024. * src/util.cc
  2025. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Release 1.7.0
  2027. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2028. Updated po templates.
  2029. * po/aria2.pot
  2030. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2031. Updated help message for --bt-prioritize-piece. Some cosmetic
  2032. changes.
  2033. * doc/aria2c.1.txt
  2034. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  2036. * src/usage_text.h
  2037. * src/util.cc
  2038. * test/UtilTest.cc
  2039. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2040. Updated Russian, Ukrainian, German and French translations.
  2041. Thanks to all translators involved.
  2042. * po/de.po
  2043. * po/fr.po
  2044. * po/ru.po
  2045. * po/uk.po
  2046. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2047. Mentioned about pkg-config
  2048. * README
  2049. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2050. Fixed typo. Referred --index-out option in BitTorrent notes.
  2051. * README
  2052. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2053. Store all addresses found by getifaddrs() and getaddrinfo(). In
  2054. bind, try all addresses until success
  2055. * src/SocketCore.cc
  2056. * src/SocketCore.h
  2057. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2058. Updated po templates.
  2059. * po/aria2.pot
  2060. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2061. Bump up version number to 1.7.0
  2062. * configure.ac
  2063. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. Fixed compile error if ENABLE_BITTORRENT is undefined.
  2065. * src/DefaultPieceStorage.cc
  2066. * src/DefaultPieceStorage.h
  2067. * src/PieceStorage.h
  2068. * src/UnknownLengthPieceStorage.cc
  2069. * src/UnknownLengthPieceStorage.h
  2070. * test/MockPieceStorage.h
  2071. * test/ProtocolDetectorTest.cc
  2072. * test/XmlRpcMethodTest.cc
  2073. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Documented in man page that if getifaddrs() is missing,
  2075. --interface option doesn't accept interface name.
  2076. * doc/aria2c.1.txt
  2077. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  2079. * src/DefaultBtAnnounce.cc
  2080. * src/DefaultBtAnnounce.h
  2081. * test/DefaultBtAnnounceTest.cc
  2082. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2083. Fixed the bug that connection is always dropped if handshake
  2084. message in extension protocol don't have metadata_size.
  2085. src/HandshakeExtensionMessage.cc
  2086. * src/HandshakeExtensionMessage.cc
  2087. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  2089. text saying DHT is recommended when Magnet URI is provided.
  2090. * doc/aria2c.1.txt
  2091. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  2093. URI is supplied. Notify user that they should consider enabling
  2094. DHT if they use Magnet URI.
  2095. * src/RequestGroup.cc
  2096. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Added --disable-ipv6 option to disable IPv6.
  2098. * doc/aria2c.1.txt
  2099. * src/InitiateConnectionCommand.cc
  2100. * src/NameResolver.cc
  2101. * src/NameResolver.h
  2102. * src/OptionHandlerFactory.cc
  2103. * src/main.cc
  2104. * src/prefs.cc
  2105. * src/prefs.h
  2106. * src/usage_text.h
  2107. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2108. Updated usage text for --bt-prioritize-piece option.
  2109. * doc/aria2c.1.txt
  2110. * src/usage_text.h
  2111. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. In configure script, if --with-PACKAGE and --enable-FEATURE are
  2113. given and PACKAGE is missing in the system or FEATURE cannot be
  2114. enabled, print error message and stop the script.
  2115. * configure.ac
  2116. * m4/aria2_arg.m4
  2117. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2118. Halt metadata download immediately when metadata download is done.
  2119. Don't wait unresponsive tracker.
  2120. * src/ByteArrayDiskWriter.h
  2121. * src/DefaultBtInteractive.cc
  2122. * src/DefaultExtensionMessageFactory.cc
  2123. * src/DefaultExtensionMessageFactory.h
  2124. * src/PeerInteractionCommand.cc
  2125. * src/UTMetadataDataExtensionMessage.cc
  2126. * src/UTMetadataDataExtensionMessage.h
  2127. * src/UTMetadataRequestExtensionMessage.cc
  2128. * test/UTMetadataDataExtensionMessageTest.cc
  2129. * test/UTMetadataRequestExtensionMessageTest.cc
  2130. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Documented --interface option in man page.
  2132. * doc/aria2c.1.txt
  2133. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Try resolved address in the order received from the resolver.
  2135. * src/DNSCache.h
  2136. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Added debug logs.
  2138. * src/SocketCore.cc
  2139. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2140. Fixed type of tail to uint64_t
  2141. * src/util.cc
  2142. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Added --interface option. This feature binds sockets to given
  2144. interface. You can specify interface name, IP address and
  2145. hostname.
  2146. * configure.ac
  2147. * src/OptionHandlerFactory.cc
  2148. * src/SocketCore.cc
  2149. * src/SocketCore.h
  2150. * src/main.cc
  2151. * src/message.h
  2152. * src/prefs.cc
  2153. * src/prefs.h
  2154. * src/usage_text.h
  2155. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2156. Updated man page for bt-prioritize-piece option in -i list.
  2157. * doc/aria2c.1.txt
  2158. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Added bt-prioritize-piece option to -i list.
  2160. * src/download_helper.cc
  2161. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2162. Removed --http-auth-scheme option from man page.
  2163. * doc/aria2c.1.txt
  2164. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Removed --http-auth-scheme option since it doesn't do nothing.
  2166. * src/OptionHandlerFactory.cc
  2167. * src/prefs.cc
  2168. * src/prefs.h
  2169. * src/usage_text.h
  2170. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Adjusted the number of peer info which get_peers reply message can
  2172. carry.
  2173. * src/DHTGetPeersReplyMessage.cc
  2174. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Added extension_message_test_helper.h to aria2c_SOURCES.
  2176. * test/Makefile.am
  2177. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Documented --bt-prioritize-piece option in man page.
  2179. * doc/aria2c.1.txt
  2180. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Added option --bt-prioritize-piece. This option instruct aria2 to
  2182. try to download first and last pieces of each file first. The
  2183. argument can contain 2 keywords:head and tail. To include both
  2184. keywords, they must be separated by comma. These keywords can take
  2185. one parameter, SIZE. For example , if head=SIZE is specified,
  2186. pieces in the range of first SIZE bytes of each file get higher
  2187. priority. tail=SIZE means the range of last SIZE bytes of each
  2188. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  2189. * src/DefaultPieceStorage.h
  2190. * src/Makefile.am
  2191. * src/OptionHandlerFactory.cc
  2192. * src/OptionHandlerImpl.h
  2193. * src/PriorityPieceSelector.cc
  2194. * src/PriorityPieceSelector.h
  2195. * src/RequestGroup.cc
  2196. * src/prefs.cc
  2197. * src/prefs.h
  2198. * src/usage_text.h
  2199. * src/util.cc
  2200. * src/util.h
  2201. * test/Makefile.am
  2202. * test/MockPieceSelector.h
  2203. * test/PriorityPieceSelectorTest.cc
  2204. * test/UtilTest.cc
  2205. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2206. Fixed typo
  2207. * src/HttpRequest.h
  2208. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. In Magnet URI with tr parameter, put each announce URI in separate
  2210. tier.
  2211. * src/bittorrent_helper.cc
  2212. * test/BittorrentHelperTest.cc
  2213. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2214. Renamed ExtensionMessage::getBencodedData() as
  2215. ExtensionMessage::getPayload()
  2216. * src/BtExtendedMessage.cc
  2217. * src/ExtensionMessage.h
  2218. * src/HandshakeExtensionMessage.cc
  2219. * src/HandshakeExtensionMessage.h
  2220. * src/UTMetadataDataExtensionMessage.cc
  2221. * src/UTMetadataDataExtensionMessage.h
  2222. * src/UTMetadataRejectExtensionMessage.cc
  2223. * src/UTMetadataRejectExtensionMessage.h
  2224. * src/UTMetadataRequestExtensionMessage.cc
  2225. * src/UTMetadataRequestExtensionMessage.h
  2226. * src/UTPexExtensionMessage.cc
  2227. * src/UTPexExtensionMessage.h
  2228. * test/HandshakeExtensionMessageTest.cc
  2229. * test/MockExtensionMessage.h
  2230. * test/UTMetadataDataExtensionMessageTest.cc
  2231. * test/UTMetadataRejectExtensionMessageTest.cc
  2232. * test/UTMetadataRequestExtensionMessageTest.cc
  2233. * test/UTPexExtensionMessageTest.cc
  2234. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Updated man page for BitTorrent Magnet URI.
  2236. * doc/aria2c.1.txt
  2237. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2238. Call DownloadContext::setOwnerRequestGroup() in
  2239. RequestGroup::setDownloadContext().
  2240. * src/BtDependency.cc
  2241. * src/RequestGroup.cc
  2242. * src/RequestGroup.h
  2243. * src/download_helper.cc
  2244. * test/DefaultBtMessageDispatcherTest.cc
  2245. * test/DefaultExtensionMessageFactoryTest.cc
  2246. * test/HandshakeExtensionMessageTest.cc
  2247. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  2249. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  2250. from metadata, use new metadata2Torrent() function.
  2251. * src/BtDependency.cc
  2252. * src/UTMetadataPostDownloadHandler.cc
  2253. * src/bittorrent_helper.cc
  2254. * src/bittorrent_helper.h
  2255. * test/BittorrentHelperTest.cc
  2256. * test/BtDependencyTest.cc
  2257. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Use createRequestGroupForUri to create the download for torrent
  2259. file.
  2260. * src/Metalink2RequestGroup.cc
  2261. * test/Metalink2RequestGroupTest.cc
  2262. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2263. Fixed typo
  2264. * src/DownloadContext.h
  2265. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2266. Use createRequestGroupForBitTorrent()
  2267. * src/BtPostDownloadHandler.cc
  2268. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Added remove().
  2270. * src/Option.cc
  2271. * src/Option.h
  2272. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2273. Removed options which is only valid for URIs specified in
  2274. command-line. If they are left, because op is used as a template
  2275. for new RequestGroup(such as created in XML-RPC command,
  2276. BtPostDownloadHandler etc), they causes unintentional effect.
  2277. * src/main.cc
  2278. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Refer to option value of PREF_OUT only in download_helper.
  2280. * src/FtpNegotiationCommand.cc
  2281. * src/HttpResponseCommand.cc
  2282. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  2284. * src/download_helper.cc
  2285. * src/download_helper.h
  2286. * src/XmlRpcMethodImpl.cc
  2287. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Updated man page for changeOption XML-RPC method.
  2289. * doc/aria2c.1.txt
  2290. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2291. Added --bt-max-peers option to changeOption XML-RPC method.
  2292. * src/XmlRpcMethod.cc
  2293. * src/XmlRpcMethodImpl.cc
  2294. * test/XmlRpcMethodTest.cc
  2295. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  2297. * test/XmlRpcMethodTest.cc
  2298. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2299. Removed redundant DownloadContext::hasAttribute(...) calls.
  2300. * src/ConsoleStatCalc.cc
  2301. * src/RequestGroup.cc
  2302. * src/XmlRpcMethodImpl.cc
  2303. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2304. Changed the number of tracker request attempt from 5 to 2.
  2305. * src/TrackerWatcherCommand.cc
  2306. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2307. Use host and protocol in original URI, because URI selector
  2308. selects URI based on original URI, not redirected one.
  2309. * src/Request.cc
  2310. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2311. Fixed the bug which causes segmentation fault with tellWaiting
  2312. XML-RPC method when BitTorrent download is waiting. The key of
  2313. BtRegistry is changed from info hash to GID, because it is
  2314. registered per RequestGroup, not info hash.
  2315. * src/BtRegistry.cc
  2316. * src/BtRegistry.h
  2317. * src/BtSetup.cc
  2318. * src/ConsoleStatCalc.cc
  2319. * src/InitiatorMSEHandshakeCommand.cc
  2320. * src/PeerInitiateConnectionCommand.cc
  2321. * src/PeerInteractionCommand.cc
  2322. * src/PeerInteractionCommand.h
  2323. * src/PeerReceiveHandshakeCommand.cc
  2324. * src/RequestGroup.cc
  2325. * src/XmlRpcMethodImpl.cc
  2326. * test/BtRegistryTest.cc
  2327. * test/XmlRpcMethodTest.cc
  2328. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2329. Updated man page for changeOption XML-RPC method.
  2330. * doc/aria2c.1.txt
  2331. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2332. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  2333. method.
  2334. * src/XmlRpcMethod.cc
  2335. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2336. Documented about BitTorrent Magnet URI in man page.
  2337. * doc/aria2c.1.txt
  2338. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2339. Fixed the bug that trackers in BitTorrent Magnet URI are not
  2340. inherited to generated RequestGroup.
  2341. * src/UTMetadataPostDownloadHandler.cc
  2342. * test/UTMetadataPostDownloadHandlerTest.cc
  2343. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2344. Prepended "[METADATA]" before dn.
  2345. * src/bittorrent_helper.cc
  2346. * test/BittorrentHelperTest.cc
  2347. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2348. Rewritten Magnet URI parser.
  2349. * src/Makefile.am
  2350. * src/ProtocolDetector.cc
  2351. * src/bittorrent_helper.cc
  2352. * src/bittorrent_helper.h
  2353. * src/download_helper.cc
  2354. * src/magnet.cc
  2355. * src/magnet.h
  2356. * test/BittorrentHelperTest.cc
  2357. * test/MagnetTest.cc
  2358. * test/Makefile.am
  2359. * test/ProtocolDetectorTest.cc
  2360. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2361. Use hton64
  2362. * src/base32.cc
  2363. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2364. Added Base32 encoded BitTorrent Magnet Link support.
  2365. * src/Makefile.am
  2366. * src/base32.cc
  2367. * src/base32.h
  2368. * src/bittorrent_helper.cc
  2369. * test/Base32Test.cc
  2370. * test/BittorrentHelperTest.cc
  2371. * test/Makefile.am
  2372. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2373. Added BitTorrent Magnet Link support. Base32 encoded link is not
  2374. supported yet. Fixed typo in method name in RequestGroup. In
  2375. metadataGetMode, don't show "Your share ratio was ..." message.
  2376. * src/DefaultBtInteractive.cc
  2377. * src/DefaultBtInteractive.h
  2378. * src/DownloadHandlerFactory.cc
  2379. * src/DownloadHandlerFactory.h
  2380. * src/HandshakeExtensionMessage.cc
  2381. * src/Makefile.am
  2382. * src/Metalink2RequestGroup.cc
  2383. * src/PeerInteractionCommand.cc
  2384. * src/RequestGroup.cc
  2385. * src/RequestGroup.h
  2386. * src/UTMetadataPostDownloadHandler.cc
  2387. * src/UTMetadataPostDownloadHandler.h
  2388. * src/download_helper.cc
  2389. * test/HandshakeExtensionMessageTest.cc
  2390. * test/Makefile.am
  2391. * test/UTMetadataPostDownloadHandlerTest.cc
  2392. * test/UTMetadataRejectExtensionMessageTest.cc
  2393. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2394. In metadataGetMode, don't show SEEDING.
  2395. * src/ConsoleStatCalc.cc
  2396. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2397. Fixed ut_metadata data handling. Implemented
  2398. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  2399. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2400. metadata_size is received.
  2401. * src/DefaultExtensionMessageFactory.cc
  2402. * src/DefaultExtensionMessageFactory.h
  2403. * src/HandshakeExtensionMessage.cc
  2404. * src/HandshakeExtensionMessage.h
  2405. * src/UTMetadataDataExtensionMessage.cc
  2406. * src/UTMetadataDataExtensionMessage.h
  2407. * src/UTMetadataRequestExtensionMessage.cc
  2408. * src/UTMetadataRequestFactory.cc
  2409. * src/UTMetadataRequestFactory.h
  2410. * src/UTMetadataRequestTracker.cc
  2411. * src/UTMetadataRequestTracker.h
  2412. * test/DefaultExtensionMessageFactoryTest.cc
  2413. * test/HandshakeExtensionMessageTest.cc
  2414. * test/MockBtMessage.h
  2415. * test/UTMetadataDataExtensionMessageTest.cc
  2416. * test/UTMetadataRequestExtensionMessageTest.cc
  2417. * test/UTMetadataRequestFactoryTest.cc
  2418. * test/UTMetadataRequestTrackerTest.cc
  2419. * test/extension_message_test_helper.h
  2420. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2421. Drop connection if ut_metadata reject message is received.
  2422. * src/UTMetadataRejectExtensionMessage.cc
  2423. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2425. get high enough in that mode.
  2426. * src/ActivePeerConnectionCommand.cc
  2427. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2428. Added BitTorrent magnet link support to ProtocolDetector.
  2429. * src/ProtocolDetector.cc
  2430. * src/ProtocolDetector.h
  2431. * test/ProtocolDetectorTest.cc
  2432. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. Don't inject validator into BtMessage in metadataGetMode because
  2434. most of the checks depends on the total length of download but it
  2435. is unknown. Delegate metadataGetMode to BtMessage.
  2436. * src/DefaultBtMessageFactory.cc
  2437. * src/DefaultBtMessageFactory.h
  2438. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2440. * src/DefaultPieceStorage.h
  2441. * src/PieceStorage.h
  2442. * src/UnknownLengthPieceStorage.h
  2443. * test/MockPieceStorage.h
  2444. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2445. Added markTotalLengthIsKnown().
  2446. * src/DownloadContext.h
  2447. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2449. missing. If metadata is missing, always use DHT when it is ready.
  2450. * src/BtSetup.cc
  2451. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Added parseMagnetLink(). Hex encoded info hash is supported.
  2453. Base32 encoded info hash is not supported yet.
  2454. * src/bittorrent_helper.cc
  2455. * src/bittorrent_helper.h
  2456. * test/BittorrentHelperTest.cc
  2457. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2458. Added FromHex()
  2459. * src/util.cc
  2460. * src/util.h
  2461. * test/UtilTest.cc
  2462. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Added _metadataGetMode member variable. It toggles the action when
  2464. messages are received: usually they almost do nothing if
  2465. _metadataGetMode is true.
  2466. * src/AbstractBtMessage.cc
  2467. * src/AbstractBtMessage.h
  2468. * src/BtAllowedFastMessage.cc
  2469. * src/BtBitfieldMessage.cc
  2470. * src/BtCancelMessage.cc
  2471. * src/BtChokeMessage.cc
  2472. * src/BtHaveAllMessage.cc
  2473. * src/BtHaveMessage.cc
  2474. * src/BtInterestedMessage.cc
  2475. * src/BtNotInterestedMessage.cc
  2476. * src/BtPieceMessage.cc
  2477. * src/BtRejectMessage.cc
  2478. * src/BtRequestMessage.cc
  2479. * src/BtUnchokeMessage.cc
  2480. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2481. Added bencode::decode overload functions. They have extra argument
  2482. 'end', passed by reference. 'end' points to the beyond the last
  2483. position of data used in decoding process.
  2484. * src/bencode.cc
  2485. * src/bencode.h
  2486. * test/BencodeTest.cc
  2487. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2488. Initial support of Extension for Peers to Send Metadata
  2489. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2490. metadata from swarm.
  2491. * src/BtConstants.h
  2492. * src/DefaultBtInteractive.cc
  2493. * src/DefaultExtensionMessageFactory.cc
  2494. * src/DefaultExtensionMessageFactory.h
  2495. * src/ExtensionMessage.h
  2496. * src/ExtensionMessageRegistry.h
  2497. * src/HandshakeExtensionMessage.cc
  2498. * src/HandshakeExtensionMessage.h
  2499. * src/Makefile.am
  2500. * src/PeerConnection.h
  2501. * src/PeerInteractionCommand.cc
  2502. * src/UTMetadataDataExtensionMessage.cc
  2503. * src/UTMetadataDataExtensionMessage.h
  2504. * src/UTMetadataExtensionMessage.cc
  2505. * src/UTMetadataExtensionMessage.h
  2506. * src/UTMetadataRejectExtensionMessage.cc
  2507. * src/UTMetadataRejectExtensionMessage.h
  2508. * src/UTMetadataRequestExtensionMessage.cc
  2509. * src/UTMetadataRequestExtensionMessage.h
  2510. * src/bittorrent_helper.cc
  2511. * src/bittorrent_helper.h
  2512. * test/BittorrentHelperTest.cc
  2513. * test/DefaultExtensionMessageFactoryTest.cc
  2514. * test/HandshakeExtensionMessageTest.cc
  2515. * test/Makefile.am
  2516. * test/UTMetadataDataExtensionMessageTest.cc
  2517. * test/UTMetadataRejectExtensionMessageTest.cc
  2518. * test/UTMetadataRequestExtensionMessageTest.cc
  2519. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2520. Cancel segment in prepareForRetry() because there is a chance that
  2521. the command has segments.
  2522. * src/CreateRequestCommand.cc
  2523. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2524. Fixed the bug that slow server is not knocked down in favor of
  2525. faster one.
  2526. * src/AbstractCommand.cc
  2527. * src/DefaultPieceStorage.cc
  2528. * src/DefaultPieceStorage.h
  2529. * src/PieceStorage.h
  2530. * src/UnknownLengthPieceStorage.cc
  2531. * src/UnknownLengthPieceStorage.h
  2532. * test/MockPieceStorage.h
  2533. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2534. Fixed the bug that Request object is not added to
  2535. _inFlightRequests in findFasterRequest().
  2536. * src/FileEntry.cc
  2537. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2538. Changed the strategry of how to increase the number of outstanding
  2539. requests. Now the number is doubled if there are no outstanding
  2540. requests after receiving messages.
  2541. * src/BtConstants.h
  2542. * src/DefaultBtInteractive.cc
  2543. * src/DefaultBtInteractive.h
  2544. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Check socket for reading if there are outstanding requests.
  2546. * src/PeerInteractionCommand.cc
  2547. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2548. Moved frequently called methods to header file so they get
  2549. inlined.
  2550. * src/RequestSlot.cc
  2551. * src/RequestSlot.h
  2552. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2553. Copied in_addr instead of just casting from char* which might
  2554. violate strict aliasing rules.
  2555. * src/AsyncNameResolver.cc
  2556. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Use dynamic_pointer_cast
  2558. * test/BtPieceMessageTest.cc
  2559. * test/BtRequestMessageTest.cc
  2560. * test/DefaultBtRequestFactoryTest.cc
  2561. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2562. Added testSetUrl20()
  2563. * test/RequestTest.cc
  2564. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2565. Code cleanup
  2566. * src/bittorrent_helper.cc
  2567. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2568. Use C++ style cast
  2569. * src/AsyncNameResolver.cc
  2570. * src/Base64.h
  2571. * src/BtBitfieldMessage.cc
  2572. * src/BtHandshakeMessage.cc
  2573. * src/DefaultBtMessageFactory.cc
  2574. * src/DefaultBtProgressInfoFile.cc
  2575. * src/EpollEventPoll.cc
  2576. * src/ExpatMetalinkProcessor.cc
  2577. * src/IteratableChecksumValidator.cc
  2578. * src/IteratableChunkChecksumValidator.cc
  2579. * src/MessageDigestHelper.cc
  2580. * src/Platform.cc
  2581. * src/RequestGroupMan.cc
  2582. * src/SingleFileAllocationIterator.cc
  2583. * src/Sqlite3MozCookieParser.cc
  2584. * src/XML2SAXMetalinkProcessor.cc
  2585. * src/Xml2XmlRpcRequestProcessor.cc
  2586. * src/util.cc
  2587. * src/util.h
  2588. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2589. Fixed integer potential alignment problem.
  2590. * src/bitfield.h
  2591. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2592. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2593. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2594. include file ordering.
  2595. * src/PeerListProcessor.h
  2596. * src/bittorrent_helper.cc
  2597. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2599. * src/Request.cc
  2600. * src/util.cc
  2601. * src/util.h
  2602. * test/RequestTest.cc
  2603. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2604. Rewritten util::uitos()
  2605. * src/util.h
  2606. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2607. Code cleanup
  2608. * src/Request.cc
  2609. * src/Request.h
  2610. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2611. Rewritten Request::parseUrl()
  2612. * src/Request.cc
  2613. * test/RequestTest.cc
  2614. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2615. Removed unused macro SAFE_CHARS
  2616. * src/Request.cc
  2617. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Updated doc
  2619. * src/DHTRoutingTableDeserializer.cc
  2620. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Release 1.6.3
  2622. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2623. Removed unused function.
  2624. * test/DHTPeerAnnounceStorageTest.cc
  2625. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2626. Only decrement cols if cols > 0
  2627. * src/ConsoleStatCalc.cc
  2628. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2630. translations. Thanks to all translators.
  2631. * po/ca.po
  2632. * po/fr.po
  2633. * po/it.po
  2634. * po/ja.po
  2635. * po/pl.po
  2636. * po/ru.po
  2637. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2638. Updated translation template
  2639. * po
  2640. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2641. Fixed compile error without ssl library.
  2642. * src/util.cc
  2643. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2644. Logged received nodes in get_peers reply message.
  2645. * src/DHTAbstractNodeLookupTask.cc
  2646. * src/DHTAbstractNodeLookupTask.h
  2647. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2648. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2649. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2650. * src/DHTMessageDispatcherImpl.cc
  2651. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2652. Don't reuse URI if Request pool is not empty.
  2653. * src/CreateRequestCommand.cc
  2654. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2656. receive get_peers request for torrent which the client is now
  2657. downloading.
  2658. * src/BtSetup.cc
  2659. * src/DHTPeerAnnounceEntry.cc
  2660. * src/DHTPeerAnnounceEntry.h
  2661. * src/DHTPeerAnnounceStorage.cc
  2662. * src/DHTPeerAnnounceStorage.h
  2663. * src/RequestGroup.cc
  2664. * test/DHTPeerAnnounceEntryTest.cc
  2665. * test/DHTPeerAnnounceStorageTest.cc
  2666. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Fixed the bug that in Windows environment new blank line is
  2668. inserted when console readout is updated.
  2669. * src/ConsoleStatCalc.cc
  2670. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2671. Throw exception if binding listening port is failed. Removed
  2672. RequestGroupMan::getInitialCommand(). Use
  2673. fillRequestGroupFromReserver() instead. Delete commands for
  2674. RequestGroup which has errors when it is being added.
  2675. * src/BtSetup.cc
  2676. * src/DownloadEngine.cc
  2677. * src/DownloadEngine.h
  2678. * src/DownloadEngineFactory.cc
  2679. * src/MultiUrlRequestInfo.cc
  2680. * src/RequestGroupMan.cc
  2681. * src/RequestGroupMan.h
  2682. * test/RequestGroupManTest.cc
  2683. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2684. Fixed the bug that when downloading more than one torrent,
  2685. listening port is not reported properly to tracker for 2nd or
  2686. later torrents.
  2687. * src/BtSetup.cc
  2688. * src/PeerListenCommand.cc
  2689. * src/PeerListenCommand.h
  2690. * src/RequestGroup.cc
  2691. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Bump up version number to 1.6.3
  2693. * configure.ac
  2694. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2695. Removed Util.cc from POTFILES.in
  2696. * po/POTFILES.in
  2697. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2698. Updated man page for previous change.
  2699. * doc/aria2c.1.txt
  2700. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2701. If user name is embedded but password is missing in URI, first
  2702. resolve password using .netrc. If password is found in .netrc,
  2703. then use it as password. If not, use the password specified in
  2704. --ftp-passwd.
  2705. * src/AuthConfigFactory.cc
  2706. * src/Request.cc
  2707. * src/Request.h
  2708. * test/AuthConfigFactoryTest.cc
  2709. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2710. Fixed typo
  2711. * doc/aria2c.1.txt
  2712. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2713. Fixed typo
  2714. * src/usage_text.h
  2715. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. Added missing bitfield.cc
  2717. * src/bitfield.cc
  2718. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2719. Renamed Util.{cc,h} as util.{cc,h}
  2720. * src/Util.cc
  2721. * src/Util.h
  2722. * src/util.cc
  2723. * src/util.h
  2724. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2725. Moved static functions in Util class to namespace util.
  2726. * src
  2727. * test
  2728. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2729. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2730. Moved generateRandomKey to bittorrent_helper.cc.
  2731. * src/DHTBucket.cc
  2732. * src/DHTGetPeersMessage.cc
  2733. * src/DHTGetPeersReplyMessage.cc
  2734. * src/DHTMessage.cc
  2735. * src/DHTNode.cc
  2736. * src/DHTTokenTracker.cc
  2737. * src/DHTUtil.cc: Removed.
  2738. * src/DHTUtil.h: Removed.
  2739. * src/Makefile.am
  2740. * src/Util.cc
  2741. * src/Util.h
  2742. * src/bitfield.h
  2743. * src/bittorrent_helper.cc
  2744. * src/bittorrent_helper.h
  2745. * test/ARC4Test.cc
  2746. * test/BNodeTest.cc
  2747. * test/DHTAnnouncePeerMessageTest.cc
  2748. * test/DHTAnnouncePeerReplyMessageTest.cc
  2749. * test/DHTFindNodeMessageTest.cc
  2750. * test/DHTFindNodeReplyMessageTest.cc
  2751. * test/DHTGetPeersMessageTest.cc
  2752. * test/DHTGetPeersReplyMessageTest.cc
  2753. * test/DHTPingMessageTest.cc
  2754. * test/DHTPingReplyMessageTest.cc
  2755. * test/DHTTokenTrackerTest.cc
  2756. * test/DHTUtilTest.cc: Removed.
  2757. * test/Makefile.am
  2758. * test/UtilTest.cc
  2759. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2760. Removed the call to trim() because trim() is called for each
  2761. element in split().
  2762. * src/CookieParser.cc
  2763. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. Replaced Util::slice() with split()
  2765. * src/AbstractCommand.cc
  2766. * src/CookieParser.cc
  2767. * src/File.cc
  2768. * src/HttpHeaderProcessor.cc
  2769. * src/HttpRequest.cc
  2770. * src/Metalink2RequestGroup.cc
  2771. * src/MetalinkParserController.cc
  2772. * src/Netrc.cc
  2773. * src/NsCookieParser.cc
  2774. * src/ParameterizedStringParser.cc
  2775. * src/ServerStatMan.cc
  2776. * src/UriListParser.cc
  2777. * src/Util.cc
  2778. * src/Util.h
  2779. * src/bittorrent_helper.cc
  2780. * test/UtilTest.cc
  2781. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2782. Use request->getDir() instead of "/" for embedded user/pass in
  2783. URI.
  2784. * src/AuthConfigFactory.cc
  2785. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2786. Fixed wrong insertion point for BasicCred.
  2787. * src/AuthConfigFactory.cc
  2788. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2789. Allowed non-regular file in LocalFilePathOptionHandler
  2790. * src/OptionHandlerImpl.h
  2791. * src/message.h
  2792. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2793. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2794. * src/Netrc.cc
  2795. * src/Util.h
  2796. * test/NetrcTest.cc
  2797. * test/sample.netrc
  2798. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Fixed typo
  2800. * src/BtDependency.cc
  2801. * src/BtRejectMessage.cc
  2802. * src/FtpConnection.cc
  2803. * src/HttpHeaderProcessor.h
  2804. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2805. Fixed lintian report in man page
  2806. * doc/aria2c.1.txt
  2807. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2808. Release 1.6.2
  2809. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Updated Ukrainian translation. Thanks to all translators.
  2811. * po/uk.po
  2812. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Updated translation template
  2814. * po
  2815. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Bump up version number to 1.6.2
  2817. * configure.ac
  2818. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2819. Updated licence message in -v output.
  2820. * src/version_usage.cc
  2821. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Replaced aria2 with aria2c in help message.
  2823. * src/version_usage.cc
  2824. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2826. * src/version_usage.cc
  2827. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2828. Quoted localedir
  2829. * src/Makefile.am
  2830. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2831. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2832. utime. Check header for utime.h.
  2833. * configure.ac
  2834. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2835. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2836. * configure.ac
  2837. * src/daemon.cc
  2838. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Don't set localedir manually. Leave it to autoconf.
  2840. * configure.ac
  2841. * src/Makefile.am
  2842. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2843. Added --install to ACLOCAL_AMFLAGS.
  2844. Removed m4 from SUBDIRS.
  2845. Updated automake 1.11 and autoconf 2.64.
  2846. Replaced some obsolute macros with new one.
  2847. * Makefile.am
  2848. * configure.ac
  2849. * m4/aria2_arg.m4
  2850. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2851. Removed Makefile.am in m4 directory.
  2852. * configure.ac
  2853. * m4/ChangeLog
  2854. * m4/Makefile.am
  2855. * m4/Makefile.in
  2856. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. Removed unused m4 macros.
  2858. * m4/intldir.m4
  2859. * m4/inttypes.m4
  2860. * m4/isc-posix.m4
  2861. * m4/libgnutls-extra.m4
  2862. * m4/ulonglong.m4
  2863. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Fixed the bug that causes segmentation fault if
  2865. req->getCurrentUrl() contains printf formatting characters such as
  2866. %d. The statement that causes this bug is useless and removed.
  2867. * src/AbstractCommand.cc
  2868. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. * Release 1.6.1
  2870. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2871. Updated Simplified Chinese translation. Thanks to translators.
  2872. * po/zh_CN.po
  2873. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2874. Updated translation template
  2875. * po
  2876. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2877. Bump up version number to 1.6.1
  2878. * configure.ac
  2879. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2880. Changed interval from 120 to 60 for dropping inactive peer.
  2881. * src/DefaultBtInteractive.cc
  2882. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2883. Updated man page for --user-agent and --peer-id-prefix option.
  2884. * doc/aria2c.1.txt
  2885. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Code clean up
  2887. * src/BtPostDownloadHandler.cc
  2888. * src/ContentTypeRequestGroupCriteria.cc
  2889. * src/ContentTypeRequestGroupCriteria.h
  2890. * src/DownloadHandlerConstants.cc
  2891. * src/DownloadHandlerConstants.h
  2892. * src/DownloadHandlerFactory.cc
  2893. * src/MetalinkPostDownloadHandler.cc
  2894. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2895. Don't save control file when aria2 exists while checking piece
  2896. hash(behavior of -V option). If control file doesn't exist when
  2897. aria2 launched, the completed length in saved control file will be
  2898. 0 byte and this confuses user. disableSaveControlFile() is called
  2899. in RequestGroup::processCheckIntegrityEntry().
  2900. enableSaveControlFile() will be called after hash checking is
  2901. done. See CheckIntegrityCommand.
  2902. * src/CheckIntegrityCommand.cc
  2903. * src/RequestGroup.cc
  2904. * src/RequestGroup.h
  2905. * src/RequestGroupMan.cc
  2906. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2907. Included version number in Peer ID and client version. Peer ID
  2908. now starts with "aria2/VERSION-", where VERSION is
  2909. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2910. * src/DefaultBtInteractive.cc
  2911. * src/OptionHandlerFactory.cc
  2912. * src/bittorrent_helper.cc
  2913. * src/bittorrent_helper.h
  2914. * src/main.cc
  2915. * src/usage_text.h
  2916. * test/BittorrentHelperTest.cc
  2917. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Fixed memory leak.
  2919. * src/DownloadCommand.cc
  2920. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. Removed server, port, user and passwd key from options before
  2922. XMLRPC::Client.call since they are not options of aria2.
  2923. * doc/xmlrpc/aria2mon
  2924. * doc/xmlrpc/aria2rpc
  2925. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2926. Included version number in user-agent string.
  2927. * src/OptionHandlerFactory.cc
  2928. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2929. Fixed the bug that the option values changed by XML-RPC
  2930. method(changeOption and changeGlobalOption) are overwritten to the
  2931. previous value by the next these request which doesn't contain
  2932. that option value. Supporse max-download-limit is initially 0. You
  2933. changed this value to 100K by changeOption. Then you issue
  2934. changeOption request to change max-upload-limit to 50K. This
  2935. second request doesn't contain xml-download-limit, so it is back
  2936. to initial value, 0. Another improvement is that exception is
  2937. thrown when changeOption and changeGlobalOption request contains
  2938. option name which doesn't allowed in each request.
  2939. * src/DownloadEngine.h
  2940. * src/XmlRpcMethod.cc
  2941. * src/XmlRpcMethod.h
  2942. * src/XmlRpcMethodImpl.cc
  2943. * src/download_helper.cc
  2944. * src/download_helper.h
  2945. * test/XmlRpcMethodTest.cc
  2946. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2947. Added missing MetalinkParserStateImpl.{cc,h}
  2948. * src/MetalinkParserStateImpl.cc
  2949. * src/MetalinkParserStateImpl.h
  2950. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2951. Put all MetalinkParserState subclasses into
  2952. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2953. * src/FileMetalinkParserState.cc: Removed
  2954. * src/FileMetalinkParserState.h: Removed
  2955. * src/FilesMetalinkParserState.cc: Removed
  2956. * src/FilesMetalinkParserState.h: Removed
  2957. * src/FinMetalinkParserState.cc: Removed
  2958. * src/FinMetalinkParserState.h: Removed
  2959. * src/HashMetalinkParserState.cc: Removed
  2960. * src/HashMetalinkParserState.h: Removed
  2961. * src/InitialMetalinkParserState.cc: Removed
  2962. * src/InitialMetalinkParserState.h: Removed
  2963. * src/LanguageMetalinkParserState.cc: Removed
  2964. * src/LanguageMetalinkParserState.h: Removed
  2965. * src/Makefile.am
  2966. * src/MetalinkMetalinkParserState.cc: Removed
  2967. * src/MetalinkMetalinkParserState.h: Removed
  2968. * src/MetalinkParserState.h
  2969. * src/MetalinkParserStateMachine.cc
  2970. * src/MetalinkParserStateMachine.h
  2971. * src/OSMetalinkParserState.cc: Removed
  2972. * src/OSMetalinkParserState.h: Removed
  2973. * src/PieceHashMetalinkParserState.cc: Removed
  2974. * src/PieceHashMetalinkParserState.h: Removed
  2975. * src/PiecesMetalinkParserState.cc: Removed
  2976. * src/PiecesMetalinkParserState.h: Removed
  2977. * src/ResourcesMetalinkParserState.cc: Removed
  2978. * src/ResourcesMetalinkParserState.h: Removed
  2979. * src/SignatureMetalinkParserState.cc: Removed
  2980. * src/SignatureMetalinkParserState.h: Removed
  2981. * src/SizeMetalinkParserState.cc: Removed
  2982. * src/SizeMetalinkParserState.h: Removed
  2983. * src/SkipTagMetalinkParserState.cc: Removed
  2984. * src/SkipTagMetalinkParserState.h: Removed
  2985. * src/URLMetalinkParserState.cc: Removed
  2986. * src/URLMetalinkParserState.h: Removed
  2987. * src/VerificationMetalinkParserState.cc: Removed
  2988. * src/VerificationMetalinkParserState.h: Removed
  2989. * src/VersionMetalinkParserState.cc: Removed
  2990. * src/VersionMetalinkParserState.h: Removed
  2991. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Move all functions in PeerMessageUtil to bittorrent_helper.
  2993. * src/BtBitfieldMessage.cc
  2994. * src/BtBitfieldMessageValidator.h
  2995. * src/BtExtendedMessage.cc
  2996. * src/BtHandshakeMessage.cc
  2997. * src/BtHandshakeMessageValidator.h
  2998. * src/BtPieceMessage.cc
  2999. * src/BtPieceMessageValidator.h
  3000. * src/BtPortMessage.cc
  3001. * src/DHTFindNodeReplyMessage.cc
  3002. * src/DHTGetPeersReplyMessage.cc
  3003. * src/DHTMessageFactoryImpl.cc
  3004. * src/DHTRoutingTableDeserializer.cc
  3005. * src/DHTRoutingTableSerializer.cc
  3006. * src/DHTTokenTracker.cc
  3007. * src/DefaultBtMessageFactory.cc
  3008. * src/IndexBtMessage.cc
  3009. * src/IndexBtMessage.h
  3010. * src/IndexBtMessageValidator.h
  3011. * src/Makefile.am
  3012. * src/PeerMessageUtil.cc: Removed.
  3013. * src/PeerMessageUtil.h: Removed.
  3014. * src/RangeBtMessage.cc
  3015. * src/RangeBtMessage.h
  3016. * src/RangeBtMessageValidator.h
  3017. * src/UTPexExtensionMessage.cc
  3018. * src/ZeroBtMessage.cc
  3019. * src/ZeroBtMessage.h
  3020. * src/bittorrent_helper.cc
  3021. * src/bittorrent_helper.h
  3022. * test/BittorrentHelperTest.cc
  3023. * test/BtAllowedFastMessageTest.cc
  3024. * test/BtBitfieldMessageTest.cc
  3025. * test/BtCancelMessageTest.cc
  3026. * test/BtChokeMessageTest.cc
  3027. * test/BtExtendedMessageTest.cc
  3028. * test/BtHandshakeMessageTest.cc
  3029. * test/BtHaveAllMessageTest.cc
  3030. * test/BtHaveMessageTest.cc
  3031. * test/BtHaveNoneMessageTest.cc
  3032. * test/BtInterestedMessageTest.cc
  3033. * test/BtNotInterestedMessageTest.cc
  3034. * test/BtPieceMessageTest.cc
  3035. * test/BtPortMessageTest.cc
  3036. * test/BtRejectMessageTest.cc
  3037. * test/BtRequestMessageTest.cc
  3038. * test/BtSuggestPieceMessageTest.cc
  3039. * test/BtUnchokeMessageTest.cc
  3040. * test/DHTFindNodeReplyMessageTest.cc
  3041. * test/DHTGetPeersReplyMessageTest.cc
  3042. * test/DHTMessageFactoryImplTest.cc
  3043. * test/DHTRoutingTableDeserializerTest.cc
  3044. * test/DHTRoutingTableSerializerTest.cc
  3045. * test/DefaultBtMessageFactoryTest.cc
  3046. * test/DefaultExtensionMessageFactoryTest.cc
  3047. * test/Makefile.am
  3048. * test/PeerListProcessorTest.cc
  3049. * test/PeerMessageUtilTest.cc: Removed.
  3050. * test/UTPexExtensionMessageTest.cc
  3051. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3052. Limit the size of values list when sending get_peers reply.
  3053. * src/DHTGetPeersReplyMessage.cc
  3054. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3055. Updated banner
  3056. * doc/xmlrpc/aria2rpc
  3057. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3058. Added missing help message for remove command.
  3059. * doc/xmlrpc/aria2rpc
  3060. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3061. Generated configure and config.h.in
  3062. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  3063. Add check for fork(), which is missing on MinGW
  3064. * src/daemon.cc
  3065. * configure.ac
  3066. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3067. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  3068. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  3069. Util::httpGMT().
  3070. * src/Util.cc
  3071. * src/Util.h
  3072. * test/UtilTest.cc
  3073. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3074. * Release 1.6.0
  3075. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3076. Fixed a path to xmlrpc/README.txt
  3077. * doc/Makefile.am
  3078. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3079. Added XML-RPC in -v Configuration output.
  3080. * src/FeatureConfig.cc
  3081. * src/FeatureConfig.h
  3082. * test/FeatureConfigTest.cc
  3083. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Updated Bulgarian, Russian, Slovak and Japanese
  3085. translations. Thanks to all translators.
  3086. * po/bg.po
  3087. * po/ja.po
  3088. * po/ru.po
  3089. * po/sk.po
  3090. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3091. Removed --retry-wait option from aria2rpc
  3092. * doc/xmlrpc/aria2rpc
  3093. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3094. Removed --retry-wait option from man page.
  3095. * doc/aria2c.1.txt
  3096. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3097. Removed --retry-wait option since the current architecture doesn't
  3098. allow sleep for particular URI.
  3099. * src/AbstractCommand.cc
  3100. * src/OptionHandlerFactory.cc
  3101. * src/download_helper.cc
  3102. * src/prefs.cc
  3103. * src/prefs.h
  3104. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3105. Removed Retry-After header support. Since the current architecture
  3106. doesn't allow sleep for particular URI.
  3107. * src/HttpSkipResponseCommand.cc
  3108. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3109. Updated the help message for --daemon option.
  3110. * doc/aria2c.1.txt
  3111. * src/usage_text.h
  3112. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3113. Added our own daemon() function for systems which desn't have
  3114. daemon(3).
  3115. * configure.ac
  3116. * src/Makefile.am
  3117. * src/daemon.cc
  3118. * src/daemon.h
  3119. * src/option_processing.cc
  3120. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3121. Simplified File::getCurrentDir()
  3122. * src/File.cc
  3123. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3124. Use exit() instead of _exit
  3125. * src/RequestGroupMan.cc
  3126. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3127. Replaced "CATEGORY" with "TAGS".
  3128. * src/usage_text.h
  3129. * doc/aria2c.1.txt
  3130. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3131. Updated the help message for --help option.
  3132. * src/usage_text.h
  3133. * doc/aria2c.1.txt
  3134. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3135. Updated man page for added help tags.
  3136. * doc/aria2c.1.txt
  3137. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3138. Added help category #file. Added #file tag to the options related
  3139. to downloaded file.
  3140. * src/OptionHandlerFactory.cc
  3141. * src/help_tags.h
  3142. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3143. Added help categories: #cookie and #hook. Added #https tag to
  3144. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  3145. * src/OptionHandlerFactory.cc
  3146. * src/help_tags.h
  3147. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3148. Made MSG_NOT_FILE translatable.
  3149. * src/message.h
  3150. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3151. Updated man page for --help option.
  3152. * doc/aria2c.1.txt
  3153. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3154. Updated doc.
  3155. * src/XmlRpcMethod.h
  3156. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3157. Help category now starts with "#" to distinguish a category from
  3158. keyword search. For example, "http" categroy is now "#http". You
  3159. can type "--help=#http" to get explanation of options related to
  3160. http. If '#' is omitted, then the argument is treated as a keyword
  3161. and aria2 searches options whose name includes the keyword and
  3162. print matched ones. For example, "--help=http" will show options
  3163. whose name includes "http".
  3164. * src/OptionHandlerFactory.cc
  3165. * src/help_tags.h
  3166. * src/usage_text.h
  3167. * src/version_usage.cc
  3168. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3169. Documented missing experimental tag and newly added xml-rpc tag in
  3170. man page.
  3171. * doc/aria2c.1.txt
  3172. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3173. Added xml-rpc help tag. Tagged xml-rpc related options with
  3174. xml-rpc tag.
  3175. * src/OptionHandlerFactory.cc
  3176. * src/help_tags.h
  3177. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3178. Updated message when a path is not a file. Updated common message
  3179. for wrong option.
  3180. * src/OptionHandlerException.cc
  3181. * src/message.h
  3182. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3183. Use File::isFile() instead of File::exists(). Updated message when
  3184. a path is not a file.
  3185. * src/OptionHandlerImpl.cc
  3186. * src/message.h
  3187. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3188. Fixed the bug that server performence profile is not updated when
  3189. aria2c was terminated by emergency shutdown.
  3190. * src/TrackerWatcherCommand.cc
  3191. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3192. Use LocalFilePathOptionHandler for -T and -M option.
  3193. Updated message of MSG_FILE_NOT_EXIST.
  3194. * src/OptionHandlerFactory.cc
  3195. * src/message.h
  3196. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3197. Added LocalFilePathOptionHandler which check whether the specified
  3198. file path does exist or not.
  3199. * src/OptionHandlerImpl.cc
  3200. * src/message.h
  3201. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3202. Updated wiki page URI.
  3203. * README
  3204. * doc/aria2c.1.txt
  3205. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3206. Added README.txt for xmlrpc directory.
  3207. * doc/Makefile.am
  3208. * doc/xmlrpc/README.txt
  3209. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3210. Bump up version number to 1.6.0.
  3211. * configure.ac
  3212. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3213. Added XML-RPC client scripts written in ruby.
  3214. * doc/Makefile.am
  3215. * doc/xmlrpc/aria2mon
  3216. * doc/xmlrpc/aria2rpc
  3217. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3218. Added support for IPv6 literal address in URI. Now aria2 can
  3219. handle URI such as http://[::1]/
  3220. * src/HttpRequest.cc
  3221. * src/HttpRequest.h
  3222. * src/Request.cc
  3223. * src/Request.h
  3224. * test/HttpRequestTest.cc
  3225. * test/OptionHandlerTest.cc
  3226. * test/RequestTest.cc
  3227. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3228. Fixed the bug that HTTP request header for XML-RPC request is not
  3229. parsed properly.
  3230. * src/HttpHeader.cc
  3231. * src/HttpHeaderProcessor.cc
  3232. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3233. Fixed the bug that XML-RPC authorization might be done before HTTP
  3234. request header is fully received.
  3235. * src/HttpServerCommand.cc
  3236. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3237. Documented --xml-rpc-listen-all option in man page.
  3238. * doc/aria2c.1.txt
  3239. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3240. Added --xml-rpc-listen-all option. If true is given to this
  3241. option, aria2 listens incoming XML-RPC requests on all network
  3242. interfaces. If false is given, listens only on local loopback
  3243. interface. The default value is false.
  3244. * src/HttpListenCommand.cc
  3245. * src/OptionHandlerFactory.cc
  3246. * src/SocketCore.cc
  3247. * src/SocketCore.h
  3248. * src/prefs.cc
  3249. * src/prefs.h
  3250. * src/usage_text.h
  3251. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3252. * Release 1.5.2
  3253. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3254. Updated Ukrainian and Russian translations. Thanks to all
  3255. translators.
  3256. * po/ru.po
  3257. * po/uk.po
  3258. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Bump up version number to 1.5.2
  3260. * configure.ac
  3261. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3262. Get comment, comment.utf-8, created by and creation date from
  3263. .torrent file and print them in -S output.
  3264. * src/bittorrent_helper.cc
  3265. * src/bittorrent_helper.h
  3266. * test/BittorrentHelperTest.cc
  3267. * test/test.torrent
  3268. * test/utf8.torrent
  3269. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3270. Show exact file size along in -S option output.
  3271. * src/Util.h
  3272. * src/bittorrent_helper.cc
  3273. * test/UtilTest.cc
  3274. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Avoided unnecessary memory allocation in
  3276. BitfieldMan::getCompletedLength().
  3277. * src/BitfieldMan.cc
  3278. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3279. Fixed the bug that download fails if
  3280. SocketCore::establishConnection() throws exception and aria2
  3281. doesn't try another address.
  3282. * src/AbstractCommand.cc
  3283. * src/InitiateConnectionCommand.cc
  3284. * src/message.h
  3285. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  3287. detected properly.
  3288. * m4/sqlite3.m4
  3289. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3290. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  3291. because it causes compile error if PARAMS macro is defined.
  3292. * src/XmlRpcElements.cc
  3293. * src/XmlRpcElements.h
  3294. * src/XmlRpcRequestParserStateImpl.cc
  3295. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3296. * Release 1.5.1
  3297. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3298. Bump up version number to 1.5.1
  3299. * configure.ac
  3300. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3301. Fixed compile error without BitTorrent support
  3302. * src/DefaultBtProgressInfoFile.cc
  3303. * src/DownloadEngine.cc
  3304. * src/DownloadEngine.h
  3305. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3306. Added missing '=' in Download Results
  3307. * src/RequestGroupMan.cc
  3308. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3309. Fixed compiler warning
  3310. * src/DefaultBtProgressInfoFile.cc
  3311. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3312. Fixed compiler warning on 32bit systems.
  3313. * src/DownloadCommand.cc
  3314. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3315. Call flush from ServerStatMan::save()
  3316. * src/ServerStatMan.cc
  3317. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3318. Check stream status after file is opened.
  3319. * src/CookieStorage.cc
  3320. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3321. Rewritten Signature::save()
  3322. * src/Signature.cc
  3323. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3324. Rewritten RequestGroupMan::saveServerStat()
  3325. * src/RequestGroupMan.cc
  3326. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3327. Rewritten stream error handling
  3328. * src/DHTAutoSaveCommand.cc
  3329. * src/DHTRoutingTableDeserializer.cc
  3330. * src/DHTRoutingTableSerializer.cc
  3331. * src/DHTSetup.cc
  3332. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3333. Check stream status after file is opened.
  3334. * src/DefaultBtProgressInfoFile.cc
  3335. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3336. Rewritten stream error handling
  3337. * src/DefaultBtProgressInfoFile.cc
  3338. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3339. Make sure that stream is closed before renaming file. Unit test
  3340. fails on mingw32 in the previous implementation.
  3341. * src/CookieStorage.cc
  3342. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3343. Fixed the unit test error without sqlite3
  3344. * test/CookieStorageTest.cc
  3345. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3346. Fixed the undefined reference error
  3347. * test/HttpResponseTest.cc
  3348. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3349. * Release 1.5.0
  3350. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3351. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  3352. Ukrainian translations. Thanks to all translators.
  3353. * po/ru.po
  3354. * po/it.po
  3355. * po/da.po
  3356. * po/bg.po
  3357. * po/ja.po
  3358. * po/uk.po
  3359. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3360. Added missing src/Logger.cc
  3361. * src/Logger.cc
  3362. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3363. Rewritten Logger to avoiding constly virtual call.
  3364. * src/LogFactory.cc
  3365. * src/LogFactory.h
  3366. * src/Logger.h
  3367. * src/Makefile.am
  3368. * src/Makefile.in
  3369. * src/NullLogger.h: Removed.
  3370. * src/SimpleLogger.cc
  3371. * src/SimpleLogger.h
  3372. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3373. Updated doc
  3374. * src/main.cc
  3375. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3376. Updated debug log message
  3377. * src/AbstractCommand.cc
  3378. * src/message.h
  3379. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3380. Avoid to create zombie process when commands specified in
  3381. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  3382. X and NetBSD.
  3383. * src/main.cc
  3384. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3385. Fixed typo
  3386. * src/usage_text.h
  3387. * doc/aria2c.1.txt
  3388. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3389. Documented 'errorCode' of tellStatus in man page.
  3390. * doc/aria2c.1.txt
  3391. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3392. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  3393. This key is only available for stopped/completed downloads and its
  3394. value is the error code defined in EXIT STATUS in man page.
  3395. * src/XmlRpcMethodImpl.cc
  3396. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. Fixed the bug that session download length is not updated when
  3398. PeerStat is not fastest one.
  3399. * src/SegmentMan.cc
  3400. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3401. Updated doc.
  3402. * doc/aria2c.1.txt
  3403. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3404. Updated doc.
  3405. * src/AbstractCommand.cc
  3406. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3407. Handle the case when DownloadContext has no FileEntry.
  3408. * src/XmlRpcMethodImpl.cc
  3409. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3410. Handle the situation where struct option.name is char *.
  3411. * configure.ac
  3412. * src/OptionParser.cc
  3413. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3414. Code cleanup
  3415. * src/AbstractCommand.cc
  3416. * src/DownloadCommand.cc
  3417. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3418. Use option of each download to create AuthConfig instead of global
  3419. option.
  3420. * src/AuthConfigFactory.cc
  3421. * src/AuthConfigFactory.h
  3422. * src/FtpNegotiationCommand.cc
  3423. * src/HttpRequest.cc
  3424. * src/HttpRequest.h
  3425. * src/HttpRequestCommand.cc
  3426. * src/HttpSkipResponseCommand.cc
  3427. * src/MultiUrlRequestInfo.cc
  3428. * test/AuthConfigFactoryTest.cc
  3429. * test/FtpConnectionTest.cc
  3430. * test/HttpRequestTest.cc
  3431. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3432. Don't call prepareForRetry(1) if all segments are ignored in
  3433. SegmentMan.
  3434. * src/AbstractCommand.cc
  3435. * src/BitfieldMan.cc
  3436. * src/BitfieldMan.h
  3437. * src/SegmentMan.cc
  3438. * src/SegmentMan.h
  3439. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3440. Removed FileEntry::getAssociatedUris()
  3441. * src/FileEntry.h
  3442. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Updated doc: TODO1.5 -> TODO
  3444. * src/FileEntry.cc
  3445. * src/HttpResponseCommand.cc
  3446. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3447. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3448. involved.
  3449. * src/RequestGroup.cc
  3450. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3451. Eliminated duplicated filterBitfield initialization code.
  3452. * src/BitfieldMan.cc
  3453. * src/BitfieldMan.h
  3454. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3455. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3456. relatively naive approach, though). For DownloadFailureException,
  3457. we handle the case when req is null properly.
  3458. * src/AbstractCommand.cc
  3459. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3460. Added function returning suffix of control file to
  3461. DefaultBtProgressInfoFile.
  3462. * src/DefaultBtProgressInfoFile.cc
  3463. * src/DefaultBtProgressInfoFile.h
  3464. * src/RequestGroup.cc
  3465. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3466. Documented getVersion in man page.
  3467. * doc/aria2c.1.txt
  3468. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3469. Documented type of offset and num for tellWaiting xml-rpc method.
  3470. * doc/aria2c.1.txt
  3471. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3472. Implemented getVersion xml-rpc method. This method returns struct
  3473. which has 2 key-value pairs: "version" key is associated to the
  3474. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3475. associated to the list of enabled features, such as "Async DNS",
  3476. "BitTorrent".
  3477. * src/FeatureConfig.h
  3478. * src/XmlRpcMethodFactory.cc
  3479. * src/XmlRpcMethodImpl.cc
  3480. * src/XmlRpcMethodImpl.h
  3481. * test/XmlRpcMethodTest.cc
  3482. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3483. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3484. for compatibility issue.
  3485. * src/SocketCore.cc
  3486. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3487. Fixed compile error with openSSL
  3488. * src/bittorrent_helper.cc
  3489. * src/messageDigest.h
  3490. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3491. Removed bad code: setting certificate type priority to key
  3492. exchange priority.
  3493. * src/SocketCore.cc
  3494. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3495. Disconnect seeder if client is also in seed state.
  3496. * src/BtBitfieldMessage.cc
  3497. * src/BtHaveAllMessage.cc
  3498. * src/BtHaveMessage.cc
  3499. * src/message.h
  3500. * test/BtBitfieldMessageTest.cc
  3501. * test/BtHaveAllMessageTest.cc
  3502. * test/BtHaveMessageTest.cc
  3503. * test/MockPieceStorage.h
  3504. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3505. Keep CreateRequestCommand in queue when no segment is available so
  3506. that they can pick up pieces which slow BitTorrent peers are
  3507. downloading.
  3508. * src/AbstractCommand.cc
  3509. * src/CreateRequestCommand.cc
  3510. * src/CreateRequestCommand.h
  3511. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3512. --bt-stop-timeout now only checks download speed.
  3513. * src/BtStopDownloadCommand.cc
  3514. * src/BtStopDownloadCommand.h
  3515. * src/BtSetup.cc
  3516. * src/usage_text.h
  3517. * doc/aria2c.1.txt
  3518. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3519. Fixed compile error regarding BUFSIZE.
  3520. * src/DownloadCommand.cc
  3521. * src/DownloadCommand.h
  3522. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3523. Documented tellWaiting xml-rpc method in man page.
  3524. * doc/aria2c.1.txt
  3525. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3526. Bump up version number to 1.5.0
  3527. * configure.ac
  3528. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Removed resolved TODO1.5
  3530. * src/AbstractCommand.cc
  3531. * src/DownloadCommand.cc
  3532. * src/RequestGroup.cc
  3533. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3534. Release pooled and in-flight Request objectsand URIResult objects
  3535. in FileEntry after download completed.
  3536. * src/DownloadContext.cc
  3537. * src/DownloadContext.h
  3538. * src/FileEntry.cc
  3539. * src/FileEntry.h
  3540. * src/RequestGroup.cc
  3541. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3542. Set manual and source attribute in aria2c.1.txt
  3543. * doc/aria2c.1.txt
  3544. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3545. Documented that the default value of --use-head is 'false' in man
  3546. page.
  3547. * doc/aria2c.1.txt
  3548. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Added bt-stop-timeout option to -i list.
  3550. * doc/aria2c.1.txt
  3551. * src/download_helper.cc
  3552. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3553. Fixed typo
  3554. * doc/aria2c.1.txt
  3555. * src/usage_text.h
  3556. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3557. Removed peer-id-prefix option from -i list.
  3558. * doc/aria2c.1.txt
  3559. * src/download_helper.cc
  3560. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3561. Fixed typo
  3562. * doc/aria2c.1.txt
  3563. * src/usage_text.h
  3564. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3565. Documented --bt-stop-timeout option in man page.
  3566. * doc/aria2c.1.txt
  3567. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3568. Updated README regarding multi-file torrent web-seeding.
  3569. * doc/README.txt
  3570. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3571. Updated man page regarding multi-file torrent web-seeding.
  3572. * doc/aria2c.1.txt
  3573. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3574. Updated doc
  3575. * src/version_usage.cc
  3576. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3577. Winsock select() doesn't work if no socket is in FD_SET. To
  3578. overcome this problem, a dummy socket is added to FD_SET and it is
  3579. given to select().
  3580. * src/SelectEventPoll.cc
  3581. * src/SelectEventPoll.h
  3582. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3583. Disabled --use-head option by default because --use-head=true
  3584. causes problems on some web sites.
  3585. * src/OptionHandlerFactory.cc
  3586. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3587. Print URL List in -S option for torrent.
  3588. * src/bittorrent_helper.cc
  3589. * src/bittorrent_helper.h
  3590. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Allocate buffer in ctor of DownloadCommand.
  3592. * src/DownloadCommand.cc
  3593. * src/DownloadCommand.h
  3594. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3595. Removed DiskAdaptor::onDownloadComplete()
  3596. * src/DirectDiskAdaptor.cc
  3597. * src/DirectDiskAdaptor.h
  3598. * src/DiskAdaptor.h
  3599. * src/MultiDiskAdaptor.cc
  3600. * src/MultiDiskAdaptor.h
  3601. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3602. Committed missing BtStopDownloadCommand.{cc,h}
  3603. * src/BtStopDownloadCommand.cc
  3604. * src/BtStopDownloadCommand.h
  3605. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3606. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3607. download if the download speed is 0 and the number of seeder is 0
  3608. in consecutive SEC seconds. By default, this function is disabled.
  3609. * src/BtSetup.cc
  3610. * src/Makefile.am
  3611. * src/OptionHandlerFactory.cc
  3612. * src/prefs.cc
  3613. * src/prefs.h
  3614. * src/usage_text.h
  3615. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3616. Removed the call to DiskAdaptor::onDownloadComplete() from
  3617. BtCheckIntegrityEntry and DefaultPieceStorage.
  3618. * src/BtCheckIntegrityEntry.cc
  3619. * src/DefaultPieceStorage.cc
  3620. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3621. Commented out throw statements when number of piece is 0 to
  3622. download 0 length torrent.
  3623. * src/bittorrent_helper.cc
  3624. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3625. Call RequestGroup::createNextCommandWithAdj() from
  3626. BtFileAllocationEntry if at least one FileEntry has URI. The
  3627. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3628. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3629. * src/BtFileAllocationEntry.cc
  3630. * src/FileEntry.h
  3631. * src/RequestGroup.cc
  3632. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3633. Generate peer ID after SimpleRandomizer is initialized.
  3634. * src/main.cc
  3635. * src/option_processing.cc
  3636. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3637. Removed unused method argument.
  3638. * src/CreateRequestCommand.cc
  3639. * src/RequestGroup.cc
  3640. * src/RequestGroup.h
  3641. * src/RequestGroupMan.cc
  3642. * src/TrackerWatcherCommand.cc
  3643. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3644. Made URI reusing function work.
  3645. * src/CreateRequestCommand.cc
  3646. * src/FileEntry.cc
  3647. * src/FileEntry.h
  3648. * test/FileEntryTest.cc
  3649. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3650. Add formerly fastest PeerStat's sessionDownloadLength to new
  3651. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3652. bytes in a session.
  3653. * src/PeerStat.cc
  3654. * src/SegmentMan.cc
  3655. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3656. If pipelining is enabled, we can always pool socket.
  3657. * src/HttpDownloadCommand.cc
  3658. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3659. In a single file download, file size becomes known just after
  3660. downloading, set total length to FileEntry object when download
  3661. completed.
  3662. * src/DownloadCommand.cc
  3663. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Use std::vector::reserve() for fileEntries and pieceHashes in
  3665. bittorrent_helper
  3666. * src/bittorrent_helper.cc
  3667. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3668. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3669. Removed hidden option PREF_RESET_URI.
  3670. * src/AbstractCommand.cc
  3671. * src/OptionHandlerFactory.cc
  3672. * src/prefs.cc
  3673. * src/prefs.h
  3674. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3675. Removed unused variable/function.
  3676. * src/PeerStat.h
  3677. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3678. Show first URL in Download Results if file path is not available.
  3679. * src/FileEntry.h
  3680. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3681. Throw exception if file path doesn't exist in FTP URL.
  3682. * src/InitiateConnectionCommandFactory.cc
  3683. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3684. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3685. * src/BitfieldMan.cc
  3686. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3688. of PeerStat in SegmentMan. peerStats is used for calculating
  3689. download speed. Therefore all active PeerStats should be in
  3690. there. Another one is _fastestPeerStats and it only contains
  3691. fastest PeerStat for each hostname/protocol pair. They are used
  3692. for updating ServerStat.
  3693. * src/DownloadCommand.cc
  3694. * src/Request.h
  3695. * src/RequestGroupMan.cc
  3696. * src/SegmentMan.cc
  3697. * src/SegmentMan.h
  3698. * test/SegmentManTest.cc
  3699. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3700. Try all available addresses returned by DNS until it gets
  3701. connected in HTTP(S)/FTP download
  3702. * src/AbstractCommand.cc
  3703. * src/AbstractCommand.h
  3704. * src/AbstractProxyRequestCommand.cc
  3705. * src/AbstractProxyRequestCommand.h
  3706. * src/DNSCache.h
  3707. * src/DownloadEngine.cc
  3708. * src/DownloadEngine.h
  3709. * src/FtpInitiateConnectionCommand.cc
  3710. * src/FtpInitiateConnectionCommand.h
  3711. * src/FtpNegotiationCommand.cc
  3712. * src/FtpNegotiationCommand.h
  3713. * src/HttpInitiateConnectionCommand.cc
  3714. * src/HttpInitiateConnectionCommand.h
  3715. * src/HttpRequestCommand.cc
  3716. * src/HttpRequestCommand.h
  3717. * src/InitiateConnectionCommand.cc
  3718. * src/InitiateConnectionCommand.h
  3719. * test/DNSCacheTest.cc
  3720. * test/Makefile.am
  3721. * test/SimpleDNSCacheTest.cc
  3722. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3723. Updated doc
  3724. * src/download_helper.cc
  3725. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3726. Refactored fieldMan ctor.
  3727. * src/BitfieldMan.cc
  3728. * src/BitfieldMan.h
  3729. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3730. Don't print "No files to download." message if -S is given.
  3731. * src/main.cc
  3732. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3733. Set referer and method to newly created Request object.
  3734. * src/CreateRequestCommand.cc
  3735. * src/FileEntry.cc
  3736. * src/FileEntry.h
  3737. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3738. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3739. * src/AbstractCommand.cc
  3740. * src/AbstractCommand.h
  3741. * src/CreateRequestCommand.cc
  3742. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3743. Get proxy download working
  3744. * src/AbstractProxyRequestCommand.cc
  3745. * src/AbstractProxyRequestCommand.h
  3746. * src/AbstractProxyResponseCommand.cc
  3747. * src/AbstractProxyResponseCommand.h
  3748. * src/FtpInitiateConnectionCommand.cc
  3749. * src/FtpTunnelRequestCommand.cc
  3750. * src/FtpTunnelRequestCommand.h
  3751. * src/FtpTunnelResponseCommand.cc
  3752. * src/FtpTunnelResponseCommand.h
  3753. * src/HttpInitiateConnectionCommand.cc
  3754. * src/HttpProxyRequestCommand.cc
  3755. * src/HttpProxyRequestCommand.h
  3756. * src/HttpProxyResponseCommand.cc
  3757. * src/HttpProxyResponseCommand.h
  3758. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3759. Use SegmentMan::getSegment(cuid) for single file download.
  3760. * src/AbstractCommand.cc
  3761. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3762. Fixed bufSize calculation
  3763. * src/DownloadCommand.cc
  3764. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Don't append "/" if base URI ends with "/".
  3766. * src/bittorrent_helper.cc
  3767. * test/url-list-multiFile.torrent
  3768. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. HTTP pipelining is now working. Fixed Segmention fault in
  3770. BitfieldMan's copy ctor.
  3771. * src/AbstractCommand.cc
  3772. * src/BitfieldMan.cc
  3773. * src/BitfieldMan.h
  3774. * src/DownloadCommand.cc
  3775. * src/HttpDownloadCommand.cc
  3776. * src/HttpRequest.cc
  3777. * src/SegmentMan.cc
  3778. * src/SegmentMan.h
  3779. * test/BitfieldManTest.cc
  3780. * test/SegmentManTest.cc
  3781. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3782. Removed ServerHost. Same functionality is implemented using
  3783. FileEntry's in-flight Request objects.
  3784. * src/AbstractCommand.cc
  3785. * src/BtDependency.cc
  3786. * src/CreateRequestCommand.cc
  3787. * src/FileEntry.cc
  3788. * src/FileEntry.h
  3789. * src/FtpNegotiationCommand.cc
  3790. * src/HttpResponseCommand.cc
  3791. * src/Makefile.am
  3792. * src/Metalink2RequestGroup.cc
  3793. * src/RequestGroup.cc
  3794. * src/RequestGroup.h
  3795. * src/ServerHost.cc: Removed
  3796. * src/ServerHost.h: Removed
  3797. * test/BtDependencyTest.cc
  3798. * test/FileEntryTest.cc
  3799. * test/RequestGroupTest.cc
  3800. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3801. Rewritten PeerStat handling. In the previous implementation,
  3802. faster command tries to find slower command. In this new
  3803. implementation, slower command tries to find faster command.
  3804. PeerStat is now created in each HTTP/FTP request to get download
  3805. rate correctly. If the download range is small, the download rate
  3806. tends to small and this will occur at the later stage of download.
  3807. * src/AbstractCommand.cc
  3808. * src/DownloadCommand.cc
  3809. * src/FileEntry.cc
  3810. * src/FileEntry.h
  3811. * src/Request.cc
  3812. * src/Request.h
  3813. * src/RequestGroup.h
  3814. * src/RequestGroupMan.cc
  3815. * src/SegmentMan.cc
  3816. * src/SegmentMan.h
  3817. * test/SegmentManTest.cc
  3818. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. Removed _uris from RequestGroup. All functions that refer to _uris
  3820. were moved to FileEntry. Exit status code are now defined in
  3821. DownloadResultCode.h.
  3822. * src/AbstractCommand.cc
  3823. * src/AdaptiveURISelector.cc
  3824. * src/AdaptiveURISelector.h
  3825. * src/AutoSaveCommand.cc
  3826. * src/BtPostDownloadHandler.cc
  3827. * src/CheckIntegrityDispatcherCommand.cc
  3828. * src/CookieStorage.cc
  3829. * src/DHTAutoSaveCommand.cc
  3830. * src/DHTBucketRefreshCommand.cc
  3831. * src/DHTEntryPointNameResolveCommand.cc
  3832. * src/DHTInteractionCommand.cc
  3833. * src/DHTPeerAnnounceCommand.cc
  3834. * src/DHTTokenUpdateCommand.cc
  3835. * src/DlAbortEx.h
  3836. * src/DlRetryEx.h
  3837. * src/DownloadCommand.cc
  3838. * src/DownloadContext.h
  3839. * src/DownloadFailureException.h
  3840. * src/DownloadResult.h
  3841. * src/DownloadResultCode.h
  3842. * src/FeedbackURISelector.cc
  3843. * src/FeedbackURISelector.h
  3844. * src/FileEntry.cc
  3845. * src/FileEntry.h
  3846. * src/FtpNegotiationCommand.cc
  3847. * src/HttpListenCommand.cc
  3848. * src/HttpResponseCommand.cc
  3849. * src/HttpServerResponseCommand.cc
  3850. * src/HttpSkipResponseCommand.cc
  3851. * src/InOrderURISelector.cc
  3852. * src/InOrderURISelector.h
  3853. * src/Makefile.am
  3854. * src/Makefile.in
  3855. * src/Metalink2RequestGroup.cc
  3856. * src/MultiUrlRequestInfo.cc
  3857. * src/MultiUrlRequestInfo.h
  3858. * src/OptionHandlerFactory.cc
  3859. * src/PeerListenCommand.cc
  3860. * src/RecoverableException.h
  3861. * src/RequestGroup.cc
  3862. * src/RequestGroup.h
  3863. * src/RequestGroupMan.cc
  3864. * src/RequestGroupMan.h
  3865. * src/TimedHaltCommand.cc
  3866. * src/TrackerWatcherCommand.cc
  3867. * src/URIResult.cc
  3868. * src/URIResult.h
  3869. * src/URISelector.h
  3870. * src/XmlRpcMethodImpl.cc
  3871. * src/bittorrent_helper.cc
  3872. * src/bittorrent_helper.h
  3873. * src/download_helper.cc
  3874. * src/main.cc
  3875. * src/option_processing.cc
  3876. * test/BtDependencyTest.cc
  3877. * test/BtPostDownloadHandlerTest.cc
  3878. * test/CookieStorageTest.cc
  3879. * test/DefaultBtMessageDispatcherTest.cc
  3880. * test/DownloadHandlerFactoryTest.cc
  3881. * test/DownloadHelperTest.cc
  3882. * test/FeedbackURISelectorTest.cc
  3883. * test/FileEntryTest.cc
  3884. * test/InOrderURISelectorTest.cc
  3885. * test/Metalink2RequestGroupTest.cc
  3886. * test/MetalinkPostDownloadHandlerTest.cc
  3887. * test/RequestGroupManTest.cc
  3888. * test/RequestGroupTest.cc
  3889. * test/XmlRpcMethodTest.cc
  3890. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3891. Removed MockBtContext.h
  3892. * test/Makefile.am
  3893. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. Removed _currentRequest from StreamCheckIntegrityEntry and
  3895. StreamFileAllocationEntry.
  3896. * src/AbstractCommand.cc
  3897. * src/HttpResponseCommand.cc
  3898. * src/RequestGroup.cc
  3899. * src/StreamCheckIntegrityEntry.cc
  3900. * src/StreamCheckIntegrityEntry.h
  3901. * src/StreamFileAllocationEntry.cc
  3902. * src/StreamFileAllocationEntry.h
  3903. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Rewritten DownloadContext and removed SingleFileDownloadContext
  3905. and BtContext and its derived classes. BitTorrent specific
  3906. attributes are now set by DownloadContext::setAttribute() with key
  3907. bittorrent::BITTORRENT.
  3908. * src/AbstractBtMessage.cc
  3909. * src/AbstractBtMessage.h
  3910. * src/AbstractCommand.cc
  3911. * src/AbstractCommand.h
  3912. * src/AbstractProxyRequestCommand.cc
  3913. * src/AbstractProxyResponseCommand.cc
  3914. * src/ActivePeerConnectionCommand.cc
  3915. * src/ActivePeerConnectionCommand.h
  3916. * src/AnnounceList.cc
  3917. * src/BtCheckIntegrityEntry.cc
  3918. * src/BtConstants.h
  3919. * src/BtContext.h: Removed
  3920. * src/BtDependency.cc
  3921. * src/BtExtendedMessage.cc
  3922. * src/BtPieceMessage.cc
  3923. * src/BtPieceMessage.h
  3924. * src/BtPostDownloadHandler.cc
  3925. * src/BtRegistry.cc
  3926. * src/BtRegistry.h
  3927. * src/BtSetup.cc
  3928. * src/CheckIntegrityCommand.cc
  3929. * src/CheckIntegrityEntry.cc
  3930. * src/ChecksumCheckIntegrityEntry.cc
  3931. * src/ConsoleStatCalc.cc
  3932. * src/ContentTypeRequestGroupCriteria.cc
  3933. * src/DHTGetPeersCommand.cc
  3934. * src/DHTGetPeersCommand.h
  3935. * src/DHTPeerLookupTask.cc
  3936. * src/DHTPeerLookupTask.h
  3937. * src/DHTTaskFactory.h
  3938. * src/DHTTaskFactoryImpl.cc
  3939. * src/DHTTaskFactoryImpl.h
  3940. * src/DefaultBtAnnounce.cc
  3941. * src/DefaultBtAnnounce.h
  3942. * src/DefaultBtContext.cc: Removed
  3943. * src/DefaultBtContext.h: Removed
  3944. * src/DefaultBtInteractive.cc
  3945. * src/DefaultBtInteractive.h
  3946. * src/DefaultBtMessageDispatcher.cc
  3947. * src/DefaultBtMessageDispatcher.h
  3948. * src/DefaultBtMessageFactory.cc
  3949. * src/DefaultBtMessageFactory.h
  3950. * src/DefaultBtMessageReceiver.cc
  3951. * src/DefaultBtMessageReceiver.h
  3952. * src/DefaultBtProgressInfoFile.cc
  3953. * src/DefaultBtRequestFactory.cc
  3954. * src/DefaultBtRequestFactory.h
  3955. * src/DefaultExtensionMessageFactory.cc
  3956. * src/DefaultExtensionMessageFactory.h
  3957. * src/DefaultPeerStorage.cc
  3958. * src/DefaultPeerStorage.h
  3959. * src/DefaultPieceStorage.cc
  3960. * src/DefaultSegmentManFactory.cc
  3961. * src/DiskAdaptor.cc
  3962. * src/DiskAdaptor.h
  3963. * src/DownloadContext.cc
  3964. * src/DownloadContext.h
  3965. * src/DownloadEngine.cc
  3966. * src/DownloadEngineFactory.cc
  3967. * src/DownloadHandler.cc
  3968. * src/DownloadResult.h
  3969. * src/FileAllocationCommand.cc
  3970. * src/FileAllocationDispatcherCommand.cc
  3971. * src/FileAllocationEntry.cc
  3972. * src/FileEntry.h
  3973. * src/FillRequestGroupCommand.cc
  3974. * src/FtpDownloadCommand.cc
  3975. * src/FtpFinishDownloadCommand.cc
  3976. * src/FtpInitiateConnectionCommand.cc
  3977. * src/FtpNegotiationCommand.cc
  3978. * src/FtpTunnelRequestCommand.cc
  3979. * src/FtpTunnelResponseCommand.cc
  3980. * src/HandshakeExtensionMessage.cc
  3981. * src/HandshakeExtensionMessage.h
  3982. * src/HaveEraseCommand.cc
  3983. * src/HttpDownloadCommand.cc
  3984. * src/HttpInitiateConnectionCommand.cc
  3985. * src/HttpProxyRequestCommand.cc
  3986. * src/HttpProxyResponseCommand.cc
  3987. * src/HttpRequest.cc
  3988. * src/HttpRequest.h
  3989. * src/HttpRequestCommand.cc
  3990. * src/HttpResponseCommand.cc
  3991. * src/HttpServerBodyCommand.cc
  3992. * src/HttpServerCommand.cc
  3993. * src/HttpSkipResponseCommand.cc
  3994. * src/InitiateConnectionCommandFactory.cc
  3995. * src/InitiatorMSEHandshakeCommand.cc
  3996. * src/InitiatorMSEHandshakeCommand.h
  3997. * src/IteratableChecksumValidator.cc
  3998. * src/IteratableChecksumValidator.h
  3999. * src/IteratableChunkChecksumValidator.cc
  4000. * src/MSEHandshake.cc
  4001. * src/MSEHandshake.h
  4002. * src/Makefile.am
  4003. * src/Makefile.in
  4004. * src/Metalink2RequestGroup.cc
  4005. * src/MetalinkPostDownloadHandler.cc
  4006. * src/MultiDiskAdaptor.cc
  4007. * src/MultiDiskAdaptor.h
  4008. * src/MultiFileAllocationIterator.cc
  4009. * src/MultiUrlRequestInfo.cc
  4010. * src/PeerChokeCommand.cc
  4011. * src/PeerChokeCommand.h
  4012. * src/PeerInitiateConnectionCommand.cc
  4013. * src/PeerInitiateConnectionCommand.h
  4014. * src/PeerInteractionCommand.cc
  4015. * src/PeerInteractionCommand.h
  4016. * src/PeerReceiveHandshakeCommand.cc
  4017. * src/PieceHashCheckIntegrityEntry.cc
  4018. * src/RealtimeCommand.cc
  4019. * src/ReceiverMSEHandshakeCommand.cc
  4020. * src/RequestGroup.cc
  4021. * src/RequestGroup.h
  4022. * src/RequestGroupEntry.cc
  4023. * src/RequestGroupMan.cc
  4024. * src/SeedCheckCommand.cc
  4025. * src/SeedCheckCommand.h
  4026. * src/SegmentMan.cc
  4027. * src/ShareRatioSeedCriteria.h
  4028. * src/SingleFileDownloadContext.cc: Removed
  4029. * src/SingleFileDownloadContext.h: Removed
  4030. * src/SleepCommand.cc
  4031. * src/StreamCheckIntegrityEntry.cc
  4032. * src/TrackerWatcherCommand.cc
  4033. * src/TrackerWatcherCommand.h
  4034. * src/UnknownLengthPieceStorage.cc
  4035. * src/Util.cc
  4036. * src/Util.h
  4037. * src/XmlRpcMethodImpl.cc
  4038. * src/bittorrent_helper.cc
  4039. * src/bittorrent_helper.h
  4040. * src/download_helper.cc
  4041. * src/main.cc
  4042. * src/option_processing.cc
  4043. * test/BitfieldManTest.cc
  4044. * test/BittorrentHelperTest.cc
  4045. * test/BtCancelMessageTest.cc
  4046. * test/BtChokeMessageTest.cc
  4047. * test/BtDependencyTest.cc
  4048. * test/BtPieceMessageTest.cc
  4049. * test/BtPostDownloadHandlerTest.cc
  4050. * test/BtRegistryTest.cc
  4051. * test/BtRejectMessageTest.cc
  4052. * test/BtRequestMessageTest.cc
  4053. * test/DHTPeerAnnounceStorageTest.cc
  4054. * test/DefaultBtAnnounceTest.cc
  4055. * test/DefaultBtContextTest.cc: Removed
  4056. * test/DefaultBtMessageDispatcherTest.cc
  4057. * test/DefaultBtMessageFactoryTest.cc
  4058. * test/DefaultBtProgressInfoFileTest.cc
  4059. * test/DefaultBtRequestFactoryTest.cc
  4060. * test/DefaultExtensionMessageFactoryTest.cc
  4061. * test/DefaultPeerStorageTest.cc
  4062. * test/DefaultPieceStorageTest.cc
  4063. * test/DirectDiskAdaptorTest.cc
  4064. * test/DownloadContextTest.cc
  4065. * test/DownloadHandlerFactoryTest.cc
  4066. * test/DownloadHelperTest.cc
  4067. * test/HandshakeExtensionMessageTest.cc
  4068. * test/HttpRequestTest.cc
  4069. * test/HttpResponseTest.cc
  4070. * test/IteratableChecksumValidatorTest.cc
  4071. * test/IteratableChunkChecksumValidatorTest.cc
  4072. * test/MSEHandshakeTest.cc
  4073. * test/Makefile.am
  4074. * test/Makefile.in
  4075. * test/Metalink2RequestGroupTest.cc
  4076. * test/MetalinkPostDownloadHandlerTest.cc
  4077. * test/MockBtContext.h: Removed
  4078. * test/MockDHTTaskFactory.h
  4079. * test/MockDownloadContext.h: Removed
  4080. * test/MockPieceStorage.h
  4081. * test/MultiDiskAdaptorTest.cc
  4082. * test/MultiFileAllocationIteratorTest.cc
  4083. * test/RequestGroupManTest.cc
  4084. * test/RequestGroupTest.cc
  4085. * test/SegmentManTest.cc
  4086. * test/ShareRatioSeedCriteriaTest.cc
  4087. * test/SingleFileDownloadContextTest.cc: Removed
  4088. * test/UtilTest.cc
  4089. * test/XmlRpcMethodTest.cc
  4090. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4091. Added experimental support of WEB-Seeding for multi-file torrent.
  4092. Due to fundamental changes in file handling in HTTP/FTP code, many
  4093. functions are not working: PeerStat, ServerHost, proxy..etc
  4094. * src/AbstractCommand.cc
  4095. * src/AbstractCommand.h
  4096. * src/BitfieldMan.cc
  4097. * src/BitfieldMan.h
  4098. * src/CreateRequestCommand.cc
  4099. * src/CreateRequestCommand.h
  4100. * src/DefaultPieceStorage.cc
  4101. * src/DefaultPieceStorage.h
  4102. * src/DownloadCommand.cc
  4103. * src/DownloadCommand.h
  4104. * src/DownloadContext.cc
  4105. * src/DownloadContext.h
  4106. * src/FileEntry.cc
  4107. * src/FileEntry.h
  4108. * src/FtpDownloadCommand.cc
  4109. * src/FtpDownloadCommand.h
  4110. * src/FtpFinishDownloadCommand.cc
  4111. * src/FtpFinishDownloadCommand.h
  4112. * src/FtpInitiateConnectionCommand.cc
  4113. * src/FtpInitiateConnectionCommand.h
  4114. * src/FtpNegotiationCommand.cc
  4115. * src/FtpNegotiationCommand.h
  4116. * src/FtpTunnelResponseCommand.cc
  4117. * src/HttpDownloadCommand.cc
  4118. * src/HttpDownloadCommand.h
  4119. * src/HttpInitiateConnectionCommand.cc
  4120. * src/HttpInitiateConnectionCommand.h
  4121. * src/HttpProxyResponseCommand.cc
  4122. * src/HttpRequest.cc
  4123. * src/HttpRequest.h
  4124. * src/HttpRequestCommand.cc
  4125. * src/HttpRequestCommand.h
  4126. * src/HttpResponseCommand.cc
  4127. * src/HttpResponseCommand.h
  4128. * src/HttpSkipResponseCommand.cc
  4129. * src/HttpSkipResponseCommand.h
  4130. * src/InitiateConnectionCommand.cc
  4131. * src/InitiateConnectionCommand.h
  4132. * src/InitiateConnectionCommandFactory.cc
  4133. * src/InitiateConnectionCommandFactory.h
  4134. * src/Makefile.am
  4135. * src/PieceStorage.h
  4136. * src/RequestGroup.cc
  4137. * src/RequestGroup.h
  4138. * src/RequestGroupMan.cc
  4139. * src/SegmentMan.cc
  4140. * src/SegmentMan.h
  4141. * src/SingleFileDownloadContext.h
  4142. * src/StreamFileAllocationEntry.cc
  4143. * src/TrackerWatcherCommand.cc
  4144. * src/UnknownLengthPieceStorage.cc
  4145. * src/UnknownLengthPieceStorage.h
  4146. * src/array_fun.h
  4147. * src/bitfield.h
  4148. * src/download_helper.cc
  4149. * test/DownloadContextTest.cc
  4150. * test/Makefile.am
  4151. * test/MockDownloadContext.h
  4152. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4153. Added tellWaiting XML-RPC method.
  4154. * src/SingleFileDownloadContext.cc
  4155. * src/XmlRpcMethodFactory.cc
  4156. * src/XmlRpcMethodImpl.cc
  4157. * src/XmlRpcMethodImpl.h
  4158. * test/XmlRpcMethodTest.cc
  4159. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4160. Updated CookieStorageTest
  4161. * test/CookieStorageTest.cc
  4162. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4163. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  4164. handle excepion inside these functions.
  4165. * src/LibgnutlsTLSContext.cc
  4166. * src/LibgnutlsTLSContext.h
  4167. * src/LibsslTLSContext.cc
  4168. * src/LibsslTLSContext.h
  4169. * src/MultiUrlRequestInfo.cc
  4170. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4171. Added comment
  4172. * src/RequestGroup.cc
  4173. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4174. In CookieStorage::load() and saveNsFormat(), handle exception
  4175. inside the functions. When saving Cookies, first write temporary
  4176. file and after successful writes, then renames it to final
  4177. destination.
  4178. * src/CookieStorage.cc
  4179. * src/CookieStorage.h
  4180. * src/MultiUrlRequestInfo.cc
  4181. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4182. The default value of --dir option is the absolute path to the
  4183. current directory. If getcwd() is failed, then it is ".", which is
  4184. the same value with old implementation. This change is necessary
  4185. because after daemon() call, the current working directory is
  4186. changed to /.
  4187. * src/File.cc
  4188. * src/File.h
  4189. * src/OptionHandlerFactory.cc
  4190. * src/option_processing.cc
  4191. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4192. Call daemon() with arguments(0,0), which means daemon() changes
  4193. current working directory to / and redirects stdin, stdout and
  4194. stderr to /dev/null.
  4195. * src/option_processing.cc
  4196. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4197. Small performance optimizations.
  4198. * src/RequestGroupMan.cc
  4199. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4200. Added _xmlRpc member variable to RequestGroupMan to reduce the
  4201. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  4202. * src/RequestGroupMan.cc
  4203. * src/RequestGroupMan.h
  4204. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4205. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  4206. setNoWiat(true) if newly created command calls
  4207. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  4208. * src/HttpListenCommand.cc
  4209. * src/HttpServerBodyCommand.cc
  4210. * src/HttpServerCommand.cc
  4211. * src/HttpServerResponseCommand.cc
  4212. * src/InitiateConnectionCommand.cc
  4213. * src/RequestGroup.cc
  4214. * src/StreamFileAllocationEntry.cc
  4215. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4216. Removed include vector
  4217. * src/BtRegistry.h
  4218. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4219. Rewritten BtRegistry
  4220. * src/BtRegistry.cc
  4221. * src/BtRegistry.h
  4222. * src/BtSetup.cc
  4223. * src/ConsoleStatCalc.cc
  4224. * src/PeerInteractionCommand.cc
  4225. * src/PeerReceiveHandshakeCommand.cc
  4226. * src/ReceiverMSEHandshakeCommand.cc
  4227. * src/RequestGroup.cc
  4228. * src/XmlRpcMethodImpl.cc
  4229. * test/BtRegistryTest.cc
  4230. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4231. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  4232. * src/DefaultBtProgressInfoFile.cc
  4233. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4234. Throw an exception if position is less than 0.
  4235. * src/XmlRpcMethodImpl.cc
  4236. * test/XmlRpcMethodTest.cc
  4237. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4238. Use writeFilePath() in ConsoleStatCalc.cc
  4239. * src/ConsoleStatCalc.cc
  4240. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4241. Receive the return value as const reference from
  4242. DownloadContext::getFileEntries().
  4243. * src/DefaultPieceStorage.cc
  4244. * src/RequestGroupMan.cc
  4245. * src/XmlRpcMethodImpl.cc
  4246. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4247. DownloadContext now has _fileEntries so that
  4248. DownloadContext::getFileEntries() can returns its const reference.
  4249. * src/DefaultBtContext.cc
  4250. * src/DefaultBtContext.h
  4251. * src/DownloadContext.cc
  4252. * src/DownloadContext.h
  4253. * src/SingleFileDownloadContext.cc
  4254. * src/SingleFileDownloadContext.h
  4255. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4256. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  4257. writeFilePath() function template from RequestGroupMan.cc to
  4258. FileEntry.h
  4259. * src/FileEntry.h
  4260. * src/RequestGroupMan.cc
  4261. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4262. Documented 'position' parameter is starting from 0 in man page.
  4263. * doc/aria2c.1.txt
  4264. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4265. Updated doc.
  4266. * src/MSEHandshake.cc
  4267. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4268. Removed _acceptFeatures and its accessor functions from
  4269. RequestGroup since they are not used practically.
  4270. * src/HttpRequestCommand.cc
  4271. * src/RequestGroup.cc
  4272. * src/RequestGroup.h
  4273. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4274. Removed member _maxTries from RequestGroup class to avoid
  4275. duplicate option value. Those classes who refer this variable
  4276. should use option value of PREF_MAX_TRIES directly.
  4277. * src/AbstractCommand.cc
  4278. * src/RequestGroup.cc
  4279. * src/RequestGroup.h
  4280. * src/TrackerWatcherCommand.cc
  4281. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4282. * Release 1.4.1
  4283. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4284. Fixed compiler warnings on netbsd
  4285. * src/DHTConnectionImpl.cc
  4286. * src/PeerListenCommand.cc
  4287. * src/PeerSessionResource.cc
  4288. * src/SegmentMan.cc
  4289. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4290. Updated Ukrainian translation. Thanks to all translators.
  4291. * po/uk.po
  4292. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4293. Bump up version number to 1.4.1.
  4294. * configure.ac
  4295. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Added unit tests for strjoin, strconcat and strappend.
  4297. * test/a2functionalTest.cc
  4298. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4299. Rewritten strconcat and strappend using operator+ instead of
  4300. append().
  4301. * src/a2functional.h
  4302. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4303. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  4304. is enabled.
  4305. * src/Makefile.am
  4306. * test/Makefile.am
  4307. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4308. Added countSeeder() function which counts seeder in the given
  4309. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  4310. * src/ConsoleStatCalc.cc
  4311. * src/Peer.h
  4312. * src/XmlRpcMethodImpl.cc
  4313. * test/PeerTest.cc
  4314. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4315. Documented missing seeder in getPeers xml-rpc method.
  4316. Documented uploadLength and numSeeders.
  4317. * doc/aria2c.1.txt
  4318. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4319. Added uploadLength and numSeeders to the response of tellStatus
  4320. xml-rpc method. Assert that PeerStorage instance is not null
  4321. instead of checking if statement. It should be non-null in this
  4322. context.
  4323. * src/XmlRpcMethodImpl.cc
  4324. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4325. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  4326. * src/XmlRpcResponse.cc
  4327. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4328. Avoid intermediate object during string concatenation.
  4329. * src/HttpRequest.cc
  4330. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4331. Added strjoin function template. Use it in pathJoin()
  4332. * src/Util.h
  4333. * src/a2functional.h
  4334. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4335. Avoid intermediate object during string concatenation. Replaced
  4336. post-increment unary operator with pre-increment one in for loop.
  4337. * src/AdaptiveURISelector.cc
  4338. * src/AnnounceList.cc
  4339. * src/AuthConfig.h
  4340. * src/BtBitfieldMessage.cc
  4341. * src/BtExtendedMessage.cc
  4342. * src/BtHandshakeMessage.cc
  4343. * src/BtPieceMessage.cc
  4344. * src/BtPortMessage.cc
  4345. * src/Cookie.cc
  4346. * src/DHTAnnouncePeerMessage.cc
  4347. * src/DHTAutoSaveCommand.cc
  4348. * src/DHTGetPeersReplyMessage.cc
  4349. * src/DHTNode.cc
  4350. * src/DHTQueryMessage.cc
  4351. * src/DHTResponseMessage.cc
  4352. * src/DHTUnknownMessage.cc
  4353. * src/DefaultBtAnnounce.cc
  4354. * src/DefaultBtContext.cc
  4355. * src/DefaultBtInteractive.cc
  4356. * src/DefaultBtProgressInfoFile.cc
  4357. * src/DefaultPeerStorage.cc
  4358. * src/DownloadEngine.cc
  4359. * src/FeatureConfig.cc
  4360. * src/File.cc
  4361. * src/FtpConnection.cc
  4362. * src/FtpNegotiationCommand.cc
  4363. * src/HandshakeExtensionMessage.cc
  4364. * src/HttpConnection.cc
  4365. * src/HttpRequest.cc
  4366. * src/HttpResponseCommand.cc
  4367. * src/HttpServer.cc
  4368. * src/IndexBtMessage.cc
  4369. * src/Metalink2RequestGroup.cc
  4370. * src/OptionHandlerImpl.h
  4371. * src/PStringBuildVisitor.cc
  4372. * src/Peer.cc
  4373. * src/PeerListenCommand.cc
  4374. * src/Piece.cc
  4375. * src/RangeBtMessage.cc
  4376. * src/Request.cc
  4377. * src/Request.h
  4378. * src/RequestGroup.cc
  4379. * src/RequestGroupMan.cc
  4380. * src/ServerStat.cc
  4381. * src/ServerStatMan.cc
  4382. * src/UTPexExtensionMessage.cc
  4383. * src/Util.cc
  4384. * src/a2functional.h
  4385. * src/download_helper.cc
  4386. * src/messageDigest.cc
  4387. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4388. Unchoke a peer randomly at first and second choke round in seed
  4389. state.
  4390. * src/BtSeederStateChoke.cc
  4391. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  4392. Added (sock_t) to quiet compiler warnings in MinGW
  4393. * src/SocketCore.cc
  4394. * src/SocketCore.h
  4395. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4396. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  4397. * src/EpollEventPoll.h
  4398. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  4399. Added fork() emulation using CreateProcess() in MinGW
  4400. * src/RequestGroupMan.cc
  4401. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4402. * Release 1.4.0
  4403. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4404. Added utf8.torrent to EXTRA_DIST
  4405. * test/Makefile.am
  4406. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4407. Fixed docs of aria2.addMetalink xml-rpc method.
  4408. * doc/aria2c.1.txt
  4409. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4410. Added Slovak translation. Updated Ukrainian and Brazilian
  4411. Portuguese translation. Thanks to all translators.
  4412. * po/sk.po
  4413. * po/uk.po
  4414. * po/pt_BR.po
  4415. * po/LINGUAS
  4416. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4417. Added test case for XmlRpcProcessor to fail to parse malformed
  4418. document.
  4419. * test/XmlRpcRequestProcessorTest.cc
  4420. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4421. Removed *.gmo files in po because they are generated on 'make
  4422. dist'
  4423. * po/*.gmo
  4424. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4425. Documented max-concurrent-downloads of changeGlobalOption method
  4426. in man page.
  4427. * doc/aria2c.1.txt
  4428. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4429. Added max-concurrent-downloads option to changeGlobalOption
  4430. xml-rpc method. Rewritten loop conditional in
  4431. RequestGroupMan::fillRequestGroupFromReserver().
  4432. * src/RequestGroupMan.cc
  4433. * src/RequestGroupMan.h
  4434. * src/XmlRpcMethod.cc
  4435. * src/XmlRpcMethodImpl.cc
  4436. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4437. Documented position parameter in man page.
  4438. * doc/aria2c.1.txt
  4439. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4440. Added 'position' parameter to addUri, addTorrent and addMetalink
  4441. xml-rpc method.
  4442. * src/RequestGroupMan.cc
  4443. * src/RequestGroupMan.h
  4444. * src/XmlRpcMethodImpl.cc
  4445. * test/XmlRpcMethodTest.cc
  4446. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4447. Removed Peer.cc from compile source list when --disable-bittorrent
  4448. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4449. takes Peer.
  4450. * src/DefaultPieceStorage.cc
  4451. * src/DefaultPieceStorage.h
  4452. * src/Makefile.am
  4453. * src/PieceStorage.h
  4454. * src/UnknownLengthPieceStorage.cc
  4455. * src/UnknownLengthPieceStorage.h
  4456. * test/MockPieceStorage.h
  4457. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4458. Implemented getter methods in header files to give them more
  4459. chance of optimization.
  4460. Return const reference for SharadHandle if possible.
  4461. * src/AbstractAuthResolver.cc
  4462. * src/AbstractAuthResolver.h
  4463. * src/AbstractBtMessage.cc
  4464. * src/AbstractBtMessage.h
  4465. * src/AbstractSingleDiskAdaptor.cc
  4466. * src/AbstractSingleDiskAdaptor.h
  4467. * src/AsyncNameResolver.cc
  4468. * src/AsyncNameResolver.h
  4469. * src/BNode.cc
  4470. * src/BNode.h
  4471. * src/BitfieldMan.cc
  4472. * src/BitfieldMan.h
  4473. * src/BtAbortOutstandingRequestEvent.h
  4474. * src/BtExtendedMessage.cc
  4475. * src/BtExtendedMessage.h
  4476. * src/BtSeederStateChoke.cc
  4477. * src/BtSeederStateChoke.h
  4478. * src/Cookie.cc
  4479. * src/Cookie.h
  4480. * src/DHTBucket.cc
  4481. * src/DHTBucket.h
  4482. * src/DHTConnectionImpl.cc
  4483. * src/DHTConnectionImpl.h
  4484. * src/DHTFindNodeReplyMessage.cc
  4485. * src/DHTFindNodeReplyMessage.h
  4486. * src/DHTGetPeersReplyMessage.cc
  4487. * src/DHTGetPeersReplyMessage.h
  4488. * src/DHTInteractionCommand.cc
  4489. * src/DHTMessage.cc
  4490. * src/DHTMessage.h
  4491. * src/DHTMessageDispatcherImpl.cc
  4492. * src/DHTMessageEntry.cc
  4493. * src/DHTMessageReceiver.cc
  4494. * src/DHTMessageReceiver.h
  4495. * src/DHTMessageTrackerEntry.cc
  4496. * src/DHTMessageTrackerEntry.h
  4497. * src/DHTPeerAnnounceEntry.cc
  4498. * src/DHTPeerAnnounceEntry.h
  4499. * src/DHTPeerLookupTask.cc
  4500. * src/DHTPeerLookupTask.h
  4501. * src/DHTRoutingTableDeserializer.cc
  4502. * src/DHTRoutingTableDeserializer.h
  4503. * src/DefaultBtAnnounce.cc
  4504. * src/DefaultBtAnnounce.h
  4505. * src/DefaultBtMessageDispatcher.cc
  4506. * src/DefaultBtMessageDispatcher.h
  4507. * src/DefaultBtRequestFactory.cc
  4508. * src/DefaultBtRequestFactory.h
  4509. * src/DiskAdaptor.cc
  4510. * src/DiskAdaptor.h
  4511. * src/DownloadContext.cc
  4512. * src/DownloadContext.h
  4513. * src/DownloadEngine.cc
  4514. * src/DownloadEngine.h
  4515. * src/EpollEventPoll.cc
  4516. * src/EpollEventPoll.h
  4517. * src/FtpConnection.cc
  4518. * src/FtpConnection.h
  4519. * src/HttpConnection.cc
  4520. * src/HttpConnection.h
  4521. * src/HttpHeader.cc
  4522. * src/HttpHeader.h
  4523. * src/HttpRequest.cc
  4524. * src/HttpRequest.h
  4525. * src/HttpResponse.cc
  4526. * src/HttpResponse.h
  4527. * src/LibsslTLSContext.cc
  4528. * src/LibsslTLSContext.h
  4529. * src/MSEHandshake.cc
  4530. * src/MSEHandshake.h
  4531. * src/MetalinkEntry.cc
  4532. * src/MetalinkEntry.h
  4533. * src/MetalinkParserController.cc
  4534. * src/MetalinkParserController.h
  4535. * src/MetalinkParserStateMachine.cc
  4536. * src/MetalinkParserStateMachine.h
  4537. * src/MultiDiskAdaptor.cc
  4538. * src/MultiDiskAdaptor.h
  4539. * src/NetrcAuthResolver.cc
  4540. * src/NetrcAuthResolver.h
  4541. * src/Peer.cc
  4542. * src/Peer.h
  4543. * src/PeerSessionResource.cc
  4544. * src/PeerSessionResource.h
  4545. * src/Piece.cc
  4546. * src/Piece.h
  4547. * src/PieceStatMan.cc
  4548. * src/PieceStatMan.h
  4549. * src/Request.cc
  4550. * src/Request.h
  4551. * src/RequestGroup.cc
  4552. * src/RequestGroup.h
  4553. * src/RequestGroupMan.cc
  4554. * src/RequestGroupMan.h
  4555. * src/RequestSlot.cc
  4556. * src/RequestSlot.h
  4557. * src/SegmentMan.cc
  4558. * src/SegmentMan.h
  4559. * src/SelectEventPoll.cc
  4560. * src/SelectEventPoll.h
  4561. * src/ServerStat.cc
  4562. * src/ServerStat.h
  4563. * src/Signature.cc
  4564. * src/Signature.h
  4565. * src/URIResult.cc
  4566. * src/URIResult.h
  4567. * src/UTPexExtensionMessage.cc
  4568. * src/UTPexExtensionMessage.h
  4569. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4570. Fixed compile error without BitTorrent and Metalink support.
  4571. * src/XmlRpcMethod.cc
  4572. * src/XmlRpcMethodFactory.cc
  4573. * src/XmlRpcMethodImpl.cc
  4574. * src/XmlRpcMethodImpl.h
  4575. * test/XmlRpcMethodTest.cc
  4576. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4577. Rewritten the help message for --allow-overwrite option.
  4578. * doc/aria2c.1.txt
  4579. * src/usage_text.h
  4580. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4581. Fixed typo
  4582. * doc/aria2c.1.txt
  4583. * src/usage_text.h
  4584. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4585. Updated README for 1.4.0 release. Use new table syntax of
  4586. asciidoc.
  4587. * README
  4588. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4589. Documented --xml-rpc-max-request-size option in man page.
  4590. * doc/aria2c.1.txt
  4591. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4592. Moved C_* constants from BtContext to DefaultBtContext.
  4593. * src/BtContext.cc: Removed.
  4594. * src/BtContext.h
  4595. * src/DefaultBtContext.cc
  4596. * src/DefaultBtContext.h
  4597. * src/Makefile.am
  4598. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4599. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4600. path key respectively when persing .torrent file.
  4601. * src/BtContext.cc
  4602. * src/BtContext.h
  4603. * src/DefaultBtContext.cc
  4604. * test/DefaultBtContextTest.cc
  4605. * test/utf8.torrent
  4606. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4607. Added --xml-rpc-max-request-size option to limit the size of
  4608. XML-RPC request.
  4609. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4610. Documented XML-RPC API in man page.
  4611. * doc/aria2c.1.txt
  4612. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4613. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4614. will break strict-aliasing rules
  4615. * src/PeerConnection.cc
  4616. * test/DHTRoutingTableSerializerTest.cc
  4617. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4618. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4619. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4620. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4621. PKG_CHECK_MODULES macro uses latter name.
  4622. * m4/sqlite3.m4
  4623. * src/Makefile.am
  4624. * test/Makefile.am
  4625. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4626. Fixed typo
  4627. * configure.ac
  4628. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4629. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4630. presence of libgnutls using pkg-config first. If it fails, fall
  4631. back to old macro libgnutls.m4.
  4632. * configure.ac
  4633. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4634. Use s itself instead of !s.bad()
  4635. * src/CookieStorage.cc
  4636. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4637. Documented --on-download-* option and --save-cookies option in man
  4638. page.
  4639. * doc/aria2c.1.txt
  4640. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4641. Set possible values for --load-cookie option to "/path/to/file".
  4642. * src/OptionHandlerFactory.cc
  4643. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4644. Added --save-cookies option.
  4645. * src/Cookie.cc
  4646. * src/Cookie.h
  4647. * src/CookieStorage.cc
  4648. * src/CookieStorage.h
  4649. * src/MultiUrlRequestInfo.cc
  4650. * src/OptionHandlerFactory.cc
  4651. * src/prefs.cc
  4652. * src/prefs.h
  4653. * src/usage_text.h
  4654. * test/CookieStorageTest.cc
  4655. * test/CookieTest.cc
  4656. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4657. Removed tellAll XML-RPC command because its reponse tends to be
  4658. big if stopped/waiting downloads pile up.
  4659. * src/XmlRpcMethodFactory.cc
  4660. * src/XmlRpcMethodImpl.cc
  4661. * src/XmlRpcMethodImpl.h
  4662. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4663. Added the ability to execute command when download starts and
  4664. stops. You can also specify command for particular cases such as
  4665. complete/error download. Added --on-download-start,
  4666. --on-download-stop, --on-download-complete and --on-download-error
  4667. option.
  4668. * src/OptionHandlerFactory.cc
  4669. * src/RequestGroupMan.cc
  4670. * src/prefs.cc
  4671. * src/prefs.h
  4672. * src/usage_text.h
  4673. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4674. Fixed test error
  4675. * test/BencodeTest.cc
  4676. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4677. Added unit tests.
  4678. * test/XmlRpcMethodTest.cc
  4679. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4680. Made exception message more verbose.
  4681. * src/bencode.cc
  4682. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4683. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4684. space in console readout. Also they are now shown in MiB/s if
  4685. speed > 1024KiB/s.
  4686. * src/ConsoleStatCalc.cc
  4687. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4688. Added SEED to console output, which represents the number of
  4689. seeders currently the client is connecting to.
  4690. * src/ConsoleStatCalc.cc
  4691. * src/ConsoleStatCalc.h
  4692. * src/DownloadEngine.cc
  4693. * src/NullStatCalc.h
  4694. * src/StatCalc.h
  4695. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4696. Added source filename(__FILE__) and line number(__LINE__) to
  4697. exception message.
  4698. * src/AbstractCommand.cc
  4699. * src/AbstractDiskWriter.cc
  4700. * src/AbstractProxyResponseCommand.cc
  4701. * src/BDE.h
  4702. * src/BtAllowedFastMessage.cc
  4703. * src/BtHandshakeMessageValidator.h
  4704. * src/BtHaveAllMessage.cc
  4705. * src/BtHaveNoneMessage.cc
  4706. * src/BtPieceMessage.cc
  4707. * src/BtRejectMessage.cc
  4708. * src/ChunkedDecoder.cc
  4709. * src/CookieStorage.cc
  4710. * src/DHTAnnouncePeerMessage.cc
  4711. * src/DHTEntryPointNameResolveCommand.cc
  4712. * src/DHTMessageFactoryImpl.cc
  4713. * src/DHTMessageTracker.cc
  4714. * src/DHTRoutingTableDeserializer.cc
  4715. * src/DHTRoutingTableSerializer.cc
  4716. * src/DHTSetup.cc
  4717. * src/DHTTokenTracker.cc
  4718. * src/DefaultBtAnnounce.cc
  4719. * src/DefaultBtContext.cc
  4720. * src/DefaultBtInteractive.cc
  4721. * src/DefaultBtMessageFactory.cc
  4722. * src/DefaultBtProgressInfoFile.cc
  4723. * src/DefaultExtensionMessageFactory.cc
  4724. * src/DlAbortEx.h
  4725. * src/DlRetryEx.h
  4726. * src/DownloadCommand.cc
  4727. * src/DownloadEngineFactory.cc
  4728. * src/DownloadFailureException.h
  4729. * src/Exception.cc
  4730. * src/Exception.h
  4731. * src/ExpatMetalinkProcessor.cc
  4732. * src/ExpatXmlRpcRequestProcessor.cc
  4733. * src/FallocFileAllocationIterator.cc
  4734. * src/FatalException.h
  4735. * src/FtpConnection.cc
  4736. * src/FtpFinishDownloadCommand.cc
  4737. * src/FtpInitiateConnectionCommand.cc
  4738. * src/FtpNegotiationCommand.cc
  4739. * src/GZipDecoder.cc
  4740. * src/HandshakeExtensionMessage.cc
  4741. * src/HttpConnection.cc
  4742. * src/HttpHeaderProcessor.cc
  4743. * src/HttpInitiateConnectionCommand.cc
  4744. * src/HttpResponse.cc
  4745. * src/HttpResponseCommand.cc
  4746. * src/HttpServer.cc
  4747. * src/HttpSkipResponseCommand.cc
  4748. * src/InitiateConnectionCommandFactory.cc
  4749. * src/IteratableChunkChecksumValidator.cc
  4750. * src/LibgcryptARC4Context.h
  4751. * src/LibgcryptARC4Decryptor.h
  4752. * src/LibgcryptARC4Encryptor.h
  4753. * src/LibgcryptDHKeyExchange.h
  4754. * src/LibgnutlsTLSContext.cc
  4755. * src/LibsslARC4Context.h
  4756. * src/LibsslARC4Decryptor.h
  4757. * src/LibsslARC4Encryptor.h
  4758. * src/LibsslDHKeyExchange.h
  4759. * src/LibsslTLSContext.cc
  4760. * src/MSEHandshake.cc
  4761. * src/MessageDigestHelper.cc
  4762. * src/MetalinkHelper.cc
  4763. * src/MultiDiskAdaptor.cc
  4764. * src/NameMatchOptionHandler.h
  4765. * src/NameResolver.cc
  4766. * src/Netrc.cc
  4767. * src/NsCookieParser.cc
  4768. * src/OptionHandlerException.cc
  4769. * src/OptionHandlerException.h
  4770. * src/OptionHandlerImpl.h
  4771. * src/OptionParser.cc
  4772. * src/ParameterizedStringParser.cc
  4773. * src/PeerAbstractCommand.cc
  4774. * src/PeerConnection.cc
  4775. * src/PeerMessageUtil.cc
  4776. * src/PeerReceiveHandshakeCommand.cc
  4777. * src/Platform.cc
  4778. * src/ReceiverMSEHandshakeCommand.cc
  4779. * src/RecoverableException.h
  4780. * src/RequestGroup.cc
  4781. * src/SimpleLogger.cc
  4782. * src/SocketCore.cc
  4783. * src/Sqlite3MozCookieParser.cc
  4784. * src/UTPexExtensionMessage.cc
  4785. * src/Util.cc
  4786. * src/XML2SAXMetalinkProcessor.cc
  4787. * src/Xml2XmlRpcRequestProcessor.cc
  4788. * src/XmlRpcMethodImpl.cc
  4789. * src/bencode.cc
  4790. * src/download_helper.cc
  4791. * src/messageDigest.h
  4792. * test/ExceptionTest.cc
  4793. * test/TestUtil.cc
  4794. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4795. Bump up version number to 1.4.0
  4796. * configure.ac
  4797. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4798. Added 2files.metalink to EXTRA_DIST
  4799. * test/Makefile.am
  4800. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4801. Added missing 2files.metalink
  4802. * test/2files.metalink
  4803. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4804. Show "[MEMORY]" prefix before filename in download summary if it
  4805. is downloaded into memory.
  4806. * src/DownloadResult.h
  4807. * src/RequestGroup.cc
  4808. * src/RequestGroupMan.cc
  4809. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4810. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4811. * src/ExpatXmlRpcRequestProcessor.cc
  4812. * src/Xml2XmlRpcRequestProcessor.cc
  4813. * src/message.h
  4814. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4815. Defined const BDEs to avoid duplicate instantiation.
  4816. Defined MSG_GID_NOT_PROVIDED.
  4817. * src/XmlRpcMethodImpl.cc
  4818. * src/message.h
  4819. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4820. Code cleanup
  4821. * src/Xml2XmlRpcRequestProcessor.cc
  4822. * src/Xml2XmlRpcRequestProcessor.h
  4823. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4824. Defined ENABLE_XML_RPC
  4825. * configure.ac
  4826. * configure
  4827. * config.h.in
  4828. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4829. Added ExpatXmlRpcRequestProcessor
  4830. * src/ExpatXmlRpcRequestProcessor.cc
  4831. * src/ExpatXmlRpcRequestProcessor.h
  4832. * src/Makefile.am
  4833. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4834. Added tests for addTorrent and addMetalink command.
  4835. * test/TestUtil.cc
  4836. * test/TestUtil.h
  4837. * test/XmlRpcMethodTest.cc
  4838. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4839. Corrected the description of --file-allocation option.
  4840. * doc/aria2c.1.txt
  4841. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4842. Added tellAll command.
  4843. * src/XmlRpcMethodFactory.cc
  4844. * src/XmlRpcMethodImpl.cc
  4845. * src/XmlRpcMethodImpl.h
  4846. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4847. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4848. * src/XmlRpcMethodImpl.cc
  4849. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4850. Added changeGlobalOption command. Currently,
  4851. max-overall-download-limit and max-overall-upload-limit option are
  4852. available.
  4853. * src/RequestGroupMan.h
  4854. * src/XmlRpcMethod.cc
  4855. * src/XmlRpcMethod.h
  4856. * src/XmlRpcMethodFactory.cc
  4857. * src/XmlRpcMethodImpl.cc
  4858. * src/XmlRpcMethodImpl.h
  4859. * test/XmlRpcMethodTest.cc
  4860. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4861. Added changeOption command. Currently, max-download-limit,
  4862. max-upload-limit option are available in this command.
  4863. * src/RequestGroup.h
  4864. * src/XmlRpcMethod.cc
  4865. * src/XmlRpcMethod.h
  4866. * src/XmlRpcMethodFactory.cc
  4867. * src/XmlRpcMethodImpl.cc
  4868. * src/XmlRpcMethodImpl.h
  4869. * test/XmlRpcMethodTest.cc
  4870. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4871. Added purgeDownloadResult command.
  4872. * src/RequestGroupMan.cc
  4873. * src/RequestGroupMan.h
  4874. * src/XmlRpcMethodFactory.cc
  4875. * src/XmlRpcMethodImpl.cc
  4876. * src/XmlRpcMethodImpl.h
  4877. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4878. Refactored.
  4879. * src/XmlRpcMethod.cc
  4880. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4881. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4882. XmlRpcResponse.
  4883. * src/HttpServerBodyCommand.cc
  4884. * src/Makefile.am
  4885. * src/XmlRpcMethod.cc
  4886. * src/XmlRpcMethod.h
  4887. * src/XmlRpcMethodImpl.cc
  4888. * src/XmlRpcResponse.cc
  4889. * src/XmlRpcResponse.h
  4890. * test/XmlRpcMethodTest.cc
  4891. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4892. In XML-RPC option struct, header and index-out option can take
  4893. array as value.
  4894. * src/XmlRpcMethod.cc
  4895. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4896. Removed unused option member from PeerConnection.
  4897. * src/InitiatorMSEHandshakeCommand.cc
  4898. * src/PeerConnection.cc
  4899. * src/PeerConnection.h
  4900. * src/PeerInteractionCommand.cc
  4901. * src/PeerReceiveHandshakeCommand.cc
  4902. * src/ReceiverMSEHandshakeCommand.cc
  4903. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4904. Added "seeder" key to getPeers response.
  4905. * src/XmlRpcMethodImpl.cc
  4906. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4907. Added addMetalink XML-RPC command.
  4908. * src/XmlRpcMethodFactory.cc
  4909. * src/XmlRpcMethodImpl.cc
  4910. * src/XmlRpcMethodImpl.h
  4911. * src/download_helper.cc
  4912. * src/download_helper.h
  4913. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4914. Fixed the bug that POU peers are never choked in seeding.
  4915. * src/BtSeederStateChoke.cc
  4916. * src/BtSeederStateChoke.h
  4917. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4918. Added web-seeding URI handling in addTorrent command.
  4919. * src/XmlRpcMethodImpl.cc
  4920. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4921. Added "length" key to getFiles response.
  4922. * src/XmlRpcMethodImpl.cc
  4923. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4924. Moved --no-netrc option from ftp option section to http/ftp option
  4925. section.
  4926. * doc/aria2c.1.txt
  4927. * src/OptionHandlerFactory.cc
  4928. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4929. Removed garbage "\" character before '
  4930. * doc/aria2c.1.txt
  4931. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4932. Removed garbage "\" character before http.
  4933. * doc/aria2c.1.txt
  4934. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4935. Documented additional options that can be specified in -i list.
  4936. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4937. and --xml-rpc-passwd. Removed --enable-http-server and
  4938. --http-server-listen-port.
  4939. * doc/aria2c.1.txt
  4940. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4941. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4942. * src/DefaultPeerStorage.cc
  4943. * src/DefaultPeerStorage.h
  4944. * src/PeerStorage.h
  4945. * src/XmlRpcMethodImpl.cc
  4946. * test/MockPeerStorage.h
  4947. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4948. Put a call to Socket::isReadable() in try block.
  4949. * src/HttpServerBodyCommand.cc
  4950. * src/HttpServerCommand.cc
  4951. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4952. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4953. exception , so it is now in try block.
  4954. * src/HttpServerResponseCommand.cc
  4955. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4956. Added "amChoking" and "peerChoking" key in getPeers response.
  4957. * src/XmlRpcMethodImpl.cc
  4958. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4959. Added test case for zero-length filter.
  4960. * test/BitfieldManTest.cc
  4961. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4962. getFiles command now returns file data for finished/stopped
  4963. downloads.
  4964. * src/XmlRpcMethodImpl.cc
  4965. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4966. DownloadResult now has the list of FileEntry. The download
  4967. summary displays the path of first selected file and the number of
  4968. remaining files for multi-file torrent.
  4969. * src/DownloadResult.h
  4970. * src/RequestGroup.cc
  4971. * src/RequestGroupMan.cc
  4972. * test/RequestGroupTest.cc
  4973. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4974. Fixed segmentation fault error when no file is selected in
  4975. multi-file torrent.
  4976. * src/BitfieldMan.cc
  4977. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4978. Escaped <,>,& character in XML-RPC response.
  4979. * src/XmlRpcMethod.cc
  4980. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4981. Throw DlAbortEx instead of FatalException during parsing options
  4982. because we don't want for aria2 to quit when bad option is passed
  4983. via XML-RPC.
  4984. * src/OptionHandlerException.cc
  4985. * src/OptionHandlerException.h
  4986. * src/OptionHandlerImpl.h
  4987. * src/OptionParser.cc
  4988. * src/OptionParser.h
  4989. * src/PStringSegment.cc
  4990. * src/ParameterizedStringParser.cc
  4991. * src/download_helper.cc
  4992. * test/ParameterizedStringParserTest.cc
  4993. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4994. Selecting files are now done in
  4995. DefaultBtContext::setFileFileter().
  4996. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4997. functions are removed because they are no longer used. Creating
  4998. filter in BitfieldMan is done in new funtion
  4999. PieceStorage::setupFileFilter()
  5000. * src/BtContext.cc
  5001. * src/BtContext.h
  5002. * src/DefaultBtContext.cc
  5003. * src/DefaultBtContext.h
  5004. * src/DefaultPieceStorage.cc
  5005. * src/DefaultPieceStorage.h
  5006. * src/DiskAdaptor.cc
  5007. * src/DiskAdaptor.h
  5008. * src/PieceStorage.h
  5009. * src/RequestGroup.cc
  5010. * src/UnknownLengthPieceStorage.h
  5011. * src/XmlRpcMethodImpl.cc
  5012. * test/DefaultBtContextTest.cc
  5013. * test/MockBtContext.h
  5014. * test/MockPieceStorage.h
  5015. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5016. Fixed compile error on Mac OS X
  5017. * src/HttpServer.cc
  5018. * src/XmlRpcMethod.h
  5019. * src/XmlRpcMethodImpl.cc
  5020. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5021. Use std::binary_search instead of std::find
  5022. * src/DefaultPieceStorage.cc
  5023. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5024. Removed unnecessary BDE() call; leave them to implicit conversion.
  5025. * src/XmlRpcMethodImpl.cc
  5026. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5027. Return connections and gid in string
  5028. * src/XmlRpcMethodImpl.cc
  5029. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5030. Renamed addURI as addUri
  5031. * src/XmlRpcMethodFactory.cc
  5032. * src/XmlRpcMethodImpl.cc
  5033. * src/XmlRpcMethodImpl.h
  5034. * test/XmlRpcMethodTest.cc
  5035. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5036. Renamed addTorrentFile as addTorrent
  5037. * src/XmlRpcMethodFactory.cc
  5038. * src/XmlRpcMethodImpl.cc
  5039. * src/XmlRpcMethodImpl.h
  5040. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5041. The information for files, URIs, peers are removed from the
  5042. reponse of TellaActive, TellStatus command because they tend to be
  5043. large. Instead they can be retrieved by the dedicated commands:
  5044. getFiles, getUris and getPeers respectively.
  5045. * src/XmlRpcMethodFactory.cc
  5046. * src/XmlRpcMethodImpl.cc
  5047. * src/XmlRpcMethodImpl.h
  5048. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Removed --max-overall-upload-limit and
  5050. --max-overall-download-limit option from listRequestOptions.
  5051. * src/download_helper.cc
  5052. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5053. Log incoming host in HttpListenCommand.
  5054. * src/HttpListenCommand.cc
  5055. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  5057. --xml-rpc-passwd option.
  5058. * src/HttpServer.cc
  5059. * src/HttpServer.h
  5060. * src/HttpServerCommand.cc
  5061. * src/OptionHandlerFactory.cc
  5062. * src/prefs.cc
  5063. * src/prefs.h
  5064. * src/usage_text.h
  5065. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5066. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  5067. processing 0 length request.
  5068. * src/HttpServerBodyCommand.cc
  5069. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5070. Removed --enable-http-server and --http-server-listen-port
  5071. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  5072. instead. The original feature for --enable-http-server that
  5073. reports download progress in HTML was officially removed. Persist
  5074. XML-RPC connection if client supports keep-alive.
  5075. * src/DownloadEngineFactory.cc
  5076. * src/HttpServerCommand.cc
  5077. * src/HttpServerResponseCommand.cc
  5078. * src/Makefile.am
  5079. * src/Makefile.in
  5080. * src/OptionHandlerFactory.cc
  5081. * src/RequestGroupMan.cc
  5082. * src/main.cc
  5083. * src/option_processing.cc
  5084. * src/prefs.cc
  5085. * src/prefs.h
  5086. * src/usage_text.h
  5087. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5088. Added "uris" key to the response of tellStatus command. Added
  5089. "connections" key to the response of tellStatus and tellActive
  5090. command.
  5091. * src/XmlRpcMethodImpl.cc
  5092. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5093. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  5094. Added TellStatusXmlRpcMethod. Remove command can now remove
  5095. waiting RequestGroup.
  5096. * src/RequestGroupMan.cc
  5097. * src/RequestGroupMan.h
  5098. * src/XmlRpcMethodFactory.cc
  5099. * src/XmlRpcMethodImpl.cc
  5100. * src/XmlRpcMethodImpl.h
  5101. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5102. Initialized _peerId
  5103. * src/Peer.cc
  5104. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5105. Return fault structure for error. FailXmlRpcMethod is renamed as
  5106. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  5107. in non-torrent download. Return single param value.
  5108. * src/XmlRpcMethod.cc
  5109. * src/XmlRpcMethodFactory.cc
  5110. * src/XmlRpcMethodImpl.cc
  5111. * src/XmlRpcMethodImpl.h
  5112. * test/XmlRpcMethodTest.cc
  5113. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5114. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  5115. command.
  5116. * src/RequestGroup.cc
  5117. * src/RequestGroup.h
  5118. * src/RequestGroupMan.cc
  5119. * src/XmlRpcMethodImpl.cc
  5120. * test/RequestGroupTest.cc
  5121. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5122. Added more options that can be specified in -i list and xml-rpc
  5123. add* command.
  5124. * src/download_helper.h
  5125. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5126. The available options in -i list should be listed in
  5127. listRequestOptions().
  5128. * src/download_helper.cc
  5129. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5130. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  5131. command.
  5132. * src/XmlRpcMethodImpl.cc
  5133. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5134. Now RequestGroup has its own copy of Option object. This will help
  5135. to give custom option for each RequestGroup.
  5136. addTorrentFile command now takes options.
  5137. * src/AbstractCommand.cc
  5138. * src/AbstractCommand.h
  5139. * src/AbstractProxyRequestCommand.cc
  5140. * src/ActivePeerConnectionCommand.cc
  5141. * src/ActivePeerConnectionCommand.h
  5142. * src/AdaptiveURISelector.cc
  5143. * src/BtCheckIntegrityEntry.cc
  5144. * src/BtDependency.cc
  5145. * src/BtDependency.h
  5146. * src/BtFileAllocationEntry.cc
  5147. * src/BtPostDownloadHandler.cc
  5148. * src/CheckIntegrityEntry.cc
  5149. * src/DownloadCommand.cc
  5150. * src/FtpDownloadCommand.cc
  5151. * src/FtpFinishDownloadCommand.cc
  5152. * src/FtpInitiateConnectionCommand.cc
  5153. * src/FtpNegotiationCommand.cc
  5154. * src/HttpInitiateConnectionCommand.cc
  5155. * src/HttpRequestCommand.cc
  5156. * src/HttpResponseCommand.cc
  5157. * src/HttpSkipResponseCommand.cc
  5158. * src/InitiateConnectionCommand.cc
  5159. * src/InitiateConnectionCommandFactory.cc
  5160. * src/InitiatorMSEHandshakeCommand.cc
  5161. * src/InitiatorMSEHandshakeCommand.h
  5162. * src/Metalink2RequestGroup.cc
  5163. * src/Metalink2RequestGroup.h
  5164. * src/MetalinkPostDownloadHandler.cc
  5165. * src/MultiUrlRequestInfo.cc
  5166. * src/MultiUrlRequestInfo.h
  5167. * src/PeerAbstractCommand.cc
  5168. * src/PeerInteractionCommand.cc
  5169. * src/PeerInteractionCommand.h
  5170. * src/PeerReceiveHandshakeCommand.cc
  5171. * src/PeerReceiveHandshakeCommand.h
  5172. * src/RequestGroup.cc
  5173. * src/RequestGroup.h
  5174. * src/TrackerWatcherCommand.cc
  5175. * src/TrackerWatcherCommand.h
  5176. * src/XmlRpcMethod.cc
  5177. * src/XmlRpcMethod.h
  5178. * src/XmlRpcMethodImpl.cc
  5179. * src/download_helper.cc
  5180. * src/download_helper.h
  5181. * src/main.cc
  5182. * test/BtDependencyTest.cc
  5183. * test/BtPostDownloadHandlerTest.cc
  5184. * test/DefaultBtMessageDispatcherTest.cc
  5185. * test/DownloadHandlerFactoryTest.cc
  5186. * test/DownloadHelperTest.cc
  5187. * test/Metalink2RequestGroupTest.cc
  5188. * test/MetalinkPostDownloadHandlerTest.cc
  5189. * test/RequestGroupManTest.cc
  5190. * test/RequestGroupTest.cc
  5191. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5192. Added tellActiveStatus xml-rpc command which reports download
  5193. status of active downloads.
  5194. * src/XmlRpcMethodFactory.cc
  5195. * src/XmlRpcMethodImpl.cc
  5196. * src/XmlRpcMethodImpl.h
  5197. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5198. Added addTorrentFile xml-rpc command which receives uploaded
  5199. torrent file and add download for it.
  5200. * src/RequestGroupMan.cc
  5201. * src/XmlRpcMethodFactory.cc
  5202. * src/XmlRpcMethodImpl.cc
  5203. * src/XmlRpcMethodImpl.h
  5204. * src/download_helper.cc
  5205. * src/download_helper.h
  5206. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5207. Added remove xml-rpc command which removes specified download.
  5208. There is a known issue: the removed unfinished downloads are
  5209. reported ERR when aria2 exits. They should be reported as INPR.
  5210. * src/RequestGroupMan.cc
  5211. * src/RequestGroupMan.h
  5212. * src/XmlRpcMethodFactory.cc
  5213. * src/XmlRpcMethodImpl.cc
  5214. * src/XmlRpcMethodImpl.h
  5215. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5216. If --enable-http-server is enabled, don't stop aria2 when all
  5217. download finished and don't quit when no files to download at
  5218. start up.
  5219. * src/RequestGroupMan.cc
  5220. * src/main.cc
  5221. * src/option_processing.cc
  5222. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5223. Added missing AM_CONDITIONAL
  5224. * configure.ac
  5225. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5226. Added xml-rpc functionality. Currently only addURI commad is
  5227. supported. To enable xml-rpc, run aria2 with
  5228. --enable-http-server. This option name is temporal and will be
  5229. changed. The feature that reports download progress in html format
  5230. is temporarily disabled.
  5231. * src/HttpServer.cc
  5232. * src/HttpServer.h
  5233. * src/HttpServerBodyCommand.cc
  5234. * src/HttpServerBodyCommand.h
  5235. * src/HttpServerCommand.cc
  5236. * src/HttpServerResponseCommand.cc
  5237. * src/Makefile.am
  5238. * src/OptionParser.cc
  5239. * src/OptionParser.h
  5240. * src/RequestGroupMan.cc
  5241. * src/RequestGroupMan.h
  5242. * src/XmlRpcMethod.cc
  5243. * src/XmlRpcMethod.h
  5244. * src/XmlRpcMethodFactory.cc
  5245. * src/XmlRpcMethodFactory.h
  5246. * src/XmlRpcMethodImpl.cc
  5247. * src/XmlRpcMethodImpl.h
  5248. * src/download_helper.cc
  5249. * src/download_helper.h
  5250. * test/Makefile.am
  5251. * test/XmlRpcMethodTest.cc
  5252. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5253. Added xml-rpc request parser. The supported value types are:
  5254. i4/int, string, double, struct, array, base64. Currently only
  5255. libxml2 version is provided.
  5256. * src/Xml2XmlRpcRequestProcessor.cc
  5257. * src/Xml2XmlRpcRequestProcessor.h
  5258. * src/XmlRpcElements.cc
  5259. * src/XmlRpcElements.h
  5260. * src/XmlRpcRequest.h
  5261. * src/XmlRpcRequestParserController.cc
  5262. * src/XmlRpcRequestParserController.h
  5263. * src/XmlRpcRequestParserState.h
  5264. * src/XmlRpcRequestParserStateImpl.cc
  5265. * src/XmlRpcRequestParserStateImpl.h
  5266. * src/XmlRpcRequestParserStateMachine.cc
  5267. * src/XmlRpcRequestParserStateMachine.h
  5268. * src/XmlRpcRequestProcessor.h
  5269. * test/XmlRpcRequestParserControllerTest.cc
  5270. * test/XmlRpcRequestProcessorTest.cc
  5271. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5272. * Release 1.3.3
  5273. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5274. Fixed compile error since r1202.
  5275. * src/ExpatMetalinkProcessor.cc
  5276. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5277. Updated Ukrainian, Russian and Simplified Chinese
  5278. translations. Thanks to all translators.
  5279. * po/ru.po
  5280. * po/uk.po
  5281. * po/zh_CN.po
  5282. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5283. Pass reference of Option object instead of pointer.
  5284. * src/download_helper.cc
  5285. * src/download_helper.h
  5286. * src/main.cc
  5287. * test/DownloadHelperTest.cc
  5288. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5289. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  5290. from option directly. Instead, get them from RequestGroup.
  5291. * src/ActivePeerConnectionCommand.cc
  5292. * src/ActivePeerConnectionCommand.h
  5293. * src/PeerReceiveHandshakeCommand.cc
  5294. * src/RequestGroup.h
  5295. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5296. Removed unused uploadLimitCheck and uploadLimit from
  5297. PeerAbstractCommand. Removed unused maxDownloadLimit from
  5298. PeerInteractionCommand.
  5299. * src/PeerAbstractCommand.cc
  5300. * src/PeerAbstractCommand.h
  5301. * src/PeerInteractionCommand.cc
  5302. * src/PeerInteractionCommand.h
  5303. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5304. Fixed broken file renaming feature since r1202.
  5305. * src/FtpNegotiationCommand.cc
  5306. * src/FtpNegotiationCommand.h
  5307. * src/HttpResponseCommand.cc
  5308. * src/RequestGroup.cc
  5309. * src/RequestGroup.h
  5310. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5311. Removed unused debug log
  5312. * src/SocketCore.cc
  5313. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5314. Generated configure and Makefile.in using autoconf 2.63 and
  5315. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  5316. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  5317. * configure.ac
  5318. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5319. Moved piece statistics stuff to new PieceStatMan class.
  5320. Refactored PieceSelector interface.
  5321. * src/DefaultPieceStorage.cc
  5322. * src/DefaultPieceStorage.h
  5323. * src/LongestSequencePieceSelector.cc
  5324. * src/LongestSequencePieceSelector.h
  5325. * src/Makefile.am
  5326. * src/PieceSelector.h
  5327. * src/PieceStatMan.cc
  5328. * src/PieceStatMan.h
  5329. * src/RarestPieceSelector.cc
  5330. * src/RarestPieceSelector.h
  5331. * src/RequestGroup.cc
  5332. * test/DefaultPieceStorageTest.cc
  5333. * test/InOrderPieceSelector.h
  5334. * test/Makefile.am
  5335. * test/PieceStatManTest.cc
  5336. * test/RarestPieceSelectorTest.cc
  5337. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5338. Added static member _protocolFamily to SocketCore. By default,
  5339. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  5340. address. Sometime SocketCore::bind() and
  5341. SocketCore::establishConnection() use difference protocl family
  5342. and latter cannot connect to former. To avoid this situation, we
  5343. limit protocol family to AF_INET for unit tests.
  5344. * src/SocketCore.cc
  5345. * src/SocketCore.h
  5346. * test/AllTest.cc
  5347. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5348. Avoid std::bad_alloc for negative bencode string length.
  5349. * src/bencode.cc
  5350. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5351. Supported segmented downloading with chunked transfer encoding and
  5352. content-length.
  5353. * src/DownloadCommand.cc
  5354. * src/HttpResponseCommand.cc
  5355. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5356. Bump up version number to 1.3.3
  5357. * configure.ac
  5358. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5359. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  5360. from 4096 to 65536 (for insanely large ftp login banners)
  5361. * src/FtpConnection.h
  5362. * test/FtpConnectionTest.cc
  5363. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5364. In DefaultBtContext::getActualBasePath(), return first
  5365. FileEntry::getPath() for single file torrent.
  5366. * src/DefaultBtContext.cc
  5367. * test/DefaultBtContextTest.cc
  5368. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5369. Removed directIOAllowed() from BinaryStream, DiskWriter,
  5370. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  5371. Removed _directIOAllowed member from DiskWriter.
  5372. * src/AbstractDiskWriter.cc
  5373. * src/AbstractDiskWriter.h
  5374. * src/AbstractSingleDiskAdaptor.cc
  5375. * src/AbstractSingleDiskAdaptor.h
  5376. * src/BinaryStream.h
  5377. * src/ByteArrayDiskWriter.h
  5378. * src/DefaultPieceStorage.cc
  5379. * src/DiskWriter.h
  5380. * src/MultiDiskAdaptor.cc
  5381. * src/MultiDiskAdaptor.h
  5382. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5383. Now the constructor of AbstractDiskWriter takes filename as an
  5384. argument and filename argument is removed from openFile(),
  5385. initAndOpenFile(), openExistingFile() interface. storeDir member
  5386. and its accessor functions are removed from DiskAdaptor because it
  5387. is not used anymore. size() member function of DefaultDiskWriter,
  5388. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  5389. opening file.
  5390. * src/AbstractDiskWriter.cc
  5391. * src/AbstractDiskWriter.h
  5392. * src/AbstractSingleDiskAdaptor.cc
  5393. * src/AbstractSingleDiskAdaptor.h
  5394. * src/ByteArrayDiskWriter.cc
  5395. * src/ByteArrayDiskWriter.h
  5396. * src/ByteArrayDiskWriterFactory.cc
  5397. * src/ByteArrayDiskWriterFactory.h
  5398. * src/DefaultDiskWriter.cc
  5399. * src/DefaultDiskWriter.h
  5400. * src/DefaultDiskWriterFactory.cc
  5401. * src/DefaultDiskWriterFactory.h
  5402. * src/DefaultPieceStorage.cc
  5403. * src/DirectDiskAdaptor.cc
  5404. * src/DirectDiskAdaptor.h
  5405. * src/DiskAdaptor.h
  5406. * src/DiskWriter.h
  5407. * src/DiskWriterFactory.h
  5408. * src/MessageDigestHelper.cc
  5409. * src/MultiDiskAdaptor.cc
  5410. * src/RequestGroup.cc
  5411. * src/UnknownLengthPieceStorage.cc
  5412. * src/Util.cc
  5413. * test/DefaultDiskWriterTest.cc
  5414. * test/DirectDiskAdaptorTest.cc
  5415. * test/FallocFileAllocationIteratorTest.cc
  5416. * test/MessageDigestHelperTest.cc
  5417. * test/MetalinkProcessorTest.cc
  5418. * test/MultiDiskAdaptorTest.cc
  5419. * test/MultiFileAllocationIteratorTest.cc
  5420. * test/SingleFileAllocationIteratorTest.cc
  5421. * test/UtilTest.cc
  5422. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5423. Fixed the bug that aria2 aborts when --select-file is used. This
  5424. bug was introduced in r1199.
  5425. * src/MultiDiskAdaptor.cc
  5426. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5427. Code cleanup
  5428. * test/MockPieceStorage.cc
  5429. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5430. Fixed the bug that read-only file with wrong file size will cause
  5431. error because it cannot be truncated to the correct size. Now if
  5432. file size is different than the expected one, re-open file in
  5433. writable mode.
  5434. * src/AbstractSingleDiskAdaptor.cc
  5435. * src/AbstractSingleDiskAdaptor.h
  5436. * src/BtCheckIntegrityEntry.cc
  5437. * src/DiskAdaptor.h
  5438. * src/MultiDiskAdaptor.h
  5439. * src/RequestGroup.cc
  5440. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5441. Fixed the bug that with --check-integrity option aria2 reports
  5442. downloaded file size is 0 even if some parts of file is correctly
  5443. downloaded. This bug is reproducible for the download that a file
  5444. includes last piece is missing. This bug doesn't reveal for
  5445. single-torrent with file allocation on.
  5446. * src/IteratableChecksumValidator.cc
  5447. * test/IteratableChecksumValidatorTest.cc
  5448. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5449. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5450. * src/RequestGroupMan.cc
  5451. * src/AdaptiveURISelector.cc
  5452. * src/AdaptiveURISelector.h
  5453. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5454. * Release 1.3.2
  5455. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5456. Updated README
  5457. * README
  5458. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5459. Updated Ukrainian translations. Thanks to Alexander10.
  5460. * po/uk.po
  5461. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5462. Code cleanup
  5463. * src/MetalinkParserStateMachine.cc
  5464. * src/MetalinkParserStateMachine.h
  5465. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5466. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5467. and expat simultaneously, MetalinkProcessor is now not base class
  5468. and it is directly implemented in XML2SAXMetalinkProcessor and
  5469. ExpatMetalinkProcessor.
  5470. * src/ExpatMetalinkProcessor.cc
  5471. * src/ExpatMetalinkProcessor.h
  5472. * src/Makefile.am
  5473. * src/MetalinkHelper.cc
  5474. * src/MetalinkProcessor.h
  5475. * src/MetalinkProcessorFactory.cc: Removed.
  5476. * src/MetalinkProcessorFactory.h: Removed
  5477. * src/XML2SAXMetalinkProcessor.cc
  5478. * src/XML2SAXMetalinkProcessor.h
  5479. * test/MetalinkProcessorTest.cc
  5480. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5481. Bump up version number to 1.3.2
  5482. * configure.ac
  5483. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5484. Added missing file.
  5485. * test/Makefile.am
  5486. * test/url-list-singleFileEndsWithSlash.torrent
  5487. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5488. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5489. request.
  5490. * src/AnnounceList.cc
  5491. * src/AnnounceList.h
  5492. * src/BDE.cc: Added
  5493. * src/BDE.h: Added
  5494. * src/DHTAbstractMessage.cc
  5495. * src/DHTAbstractMessage.h
  5496. * src/DHTAnnouncePeerMessage.cc
  5497. * src/DHTAnnouncePeerMessage.h
  5498. * src/DHTAnnouncePeerReplyMessage.cc
  5499. * src/DHTAnnouncePeerReplyMessage.h
  5500. * src/DHTFindNodeMessage.cc
  5501. * src/DHTFindNodeMessage.h
  5502. * src/DHTFindNodeReplyMessage.cc
  5503. * src/DHTFindNodeReplyMessage.h
  5504. * src/DHTGetPeersMessage.cc
  5505. * src/DHTGetPeersMessage.h
  5506. * src/DHTGetPeersReplyMessage.cc
  5507. * src/DHTGetPeersReplyMessage.h
  5508. * src/DHTMessageFactory.h
  5509. * src/DHTMessageFactoryImpl.cc
  5510. * src/DHTMessageFactoryImpl.h
  5511. * src/DHTMessageReceiver.cc
  5512. * src/DHTMessageTracker.cc
  5513. * src/DHTMessageTracker.h
  5514. * src/DHTPingMessage.cc
  5515. * src/DHTPingMessage.h
  5516. * src/DHTPingReplyMessage.cc
  5517. * src/DHTPingReplyMessage.h
  5518. * src/DHTQueryMessage.cc
  5519. * src/DHTQueryMessage.h
  5520. * src/DHTResponseMessage.cc
  5521. * src/DHTResponseMessage.h
  5522. * src/DefaultBtAnnounce.cc
  5523. * src/DefaultBtContext.cc
  5524. * src/DefaultBtContext.h
  5525. * src/HandshakeExtensionMessage.cc
  5526. * src/Makefile.am
  5527. * src/PeerListProcessor.h
  5528. * src/UTPexExtensionMessage.cc
  5529. * src/bencode.cc
  5530. * src/bencode.h
  5531. * test/AnnounceListTest.cc
  5532. * test/BDETest.cc: Added
  5533. * test/BencodeTest.cc
  5534. * test/DHTAnnouncePeerMessageTest.cc
  5535. * test/DHTAnnouncePeerReplyMessageTest.cc
  5536. * test/DHTFindNodeMessageTest.cc
  5537. * test/DHTFindNodeReplyMessageTest.cc
  5538. * test/DHTGetPeersMessageTest.cc
  5539. * test/DHTGetPeersReplyMessageTest.cc
  5540. * test/DHTMessageFactoryImplTest.cc
  5541. * test/DHTMessageTrackerTest.cc
  5542. * test/DHTPingMessageTest.cc
  5543. * test/DHTPingReplyMessageTest.cc
  5544. * test/Makefile.am
  5545. * test/MockDHTMessageFactory.h
  5546. * test/PeerListProcessorTest.cc
  5547. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5548. Use url-list (web-seeding) only for single-file torrent. This is
  5549. basically the same behavior with Metalink file with torrent and
  5550. URIs.
  5551. * src/RequestGroup.cc
  5552. * src/DefaultBtContext.cc
  5553. * test/DefaultBtContextTest.cc
  5554. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5555. Rewritten expr
  5556. * src/array_fun.h
  5557. * test/array_funTest.cc
  5558. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5559. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5560. * src/DefaultBtMessageDispatcher.cc
  5561. * src/a2algo.h
  5562. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5563. Removed ExtendedMessagingAware. Instead of using inheritance,
  5564. added ExtensionMessageRegistry and it is passed to
  5565. DefaultExtensionMessageFactory.
  5566. * src/DefaultBtInteractive.cc
  5567. * src/DefaultBtInteractive.h
  5568. * src/DefaultExtensionMessageFactory.cc
  5569. * src/DefaultExtensionMessageFactory.h
  5570. * src/ExtendedMessagingAware.h: Removed.
  5571. * src/ExtensionMessageFactory.h
  5572. * src/ExtensionMessageRegistry.h: Added.
  5573. * src/Makefile.am
  5574. * src/PeerInteractionCommand.cc
  5575. * test/DefaultExtensionMessageFactoryTest.cc
  5576. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5577. Fixed typo in log messages
  5578. * src/MSEHandshake.cc
  5579. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5580. Fixed the bug that prevents torrent download from finishing. The
  5581. bug doesn't reveal for all torrents. The torrents affected this
  5582. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5583. of pieces.
  5584. * src/bitfield.h
  5585. * test/bitfieldTest.cc
  5586. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5587. Code cleanup
  5588. * src/PeerListProcessor.h
  5589. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5590. Removed RequestGroupAware
  5591. * src/AbstractCommand.cc
  5592. * src/AbstractCommand.h
  5593. * src/ActivePeerConnectionCommand.cc
  5594. * src/ActivePeerConnectionCommand.h
  5595. * src/DHTGetPeersCommand.cc
  5596. * src/DHTGetPeersCommand.h
  5597. * src/InitiatorMSEHandshakeCommand.cc
  5598. * src/InitiatorMSEHandshakeCommand.h
  5599. * src/Makefile.am
  5600. * src/PeerInitiateConnectionCommand.cc
  5601. * src/PeerInitiateConnectionCommand.h
  5602. * src/PeerInteractionCommand.cc
  5603. * src/PeerInteractionCommand.h
  5604. * src/RealtimeCommand.cc
  5605. * src/RealtimeCommand.h
  5606. * src/RequestGroupAware.cc: Removed
  5607. * src/RequestGroupAware.h: Removed
  5608. * src/SeedCheckCommand.cc
  5609. * src/SeedCheckCommand.h
  5610. * src/SleepCommand.cc
  5611. * src/TrackerWatcherCommand.cc
  5612. * src/TrackerWatcherCommand.h
  5613. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5614. Rewritten PeerListProcessor
  5615. * src/PeerListProcessor.h
  5616. * src/CompactPeerListProcessor.h: Removed
  5617. * src/CompactPeerListProcessor.cc: Removed
  5618. * src/DelegatingPeerListProcessor.cc: Removed.
  5619. * src/DefaultBtAnnounce.cc
  5620. * src/Makefile.am
  5621. * src/UTPexExtensionMessage.cc
  5622. * src/DefaultPeerListProcessor.h: Removed.
  5623. * src/DefaultPeerListProcessor.cc: Removed.
  5624. * src/DelegatingPeerListProcessor.h: Removed.
  5625. * test/Makefile.am
  5626. * test/PeerListProcessorTest.cc
  5627. * test/DefaultPeerListProcessorTest.cc: Removed.
  5628. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5629. Rewritten RequestGroupMan::calculateStat()
  5630. * src/RequestGroupMan.cc
  5631. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5632. Removed unnecessary virtual destructor for Request class.
  5633. * src/Request.cc
  5634. * src/Request.h
  5635. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5636. Avoid dynamic_pointer_cast.
  5637. * src/DHTGetPeersCommand.cc
  5638. * src/DHTGetPeersCommand.h
  5639. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5640. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5641. BtEvent.
  5642. * src/AbstractBtEventListener.h: Removed.
  5643. * src/AbstractBtMessage.cc
  5644. * src/AbstractBtMessage.h
  5645. * src/BtAbortOutstandingRequestEvent.h
  5646. * src/BtCancelSendingPieceEvent.h
  5647. * src/BtChokedEvent.h: Removed.
  5648. * src/BtChokingEvent.h
  5649. * src/BtEvent.h: Removed
  5650. * src/BtEventListener.h: Removed.
  5651. * src/BtMessage.h
  5652. * src/BtPieceMessage.cc
  5653. * src/BtPieceMessage.h
  5654. * src/BtRequestMessage.cc
  5655. * src/BtRequestMessage.h
  5656. * src/DefaultBtMessageDispatcher.cc
  5657. * src/Makefile.am
  5658. * src/a2functional.h
  5659. * test/BtPieceMessageTest.cc
  5660. * test/BtRequestMessageTest.cc
  5661. * test/DefaultBtMessageDispatcherTest.cc
  5662. * test/MockBtMessage.h
  5663. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5664. Code cleanup
  5665. * src/RequestGroupMan.cc
  5666. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5667. Code cleanup
  5668. * src/DownloadCommand.cc
  5669. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5670. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5671. byte.
  5672. * src/DownloadCommand.cc
  5673. * src/bitfield.h
  5674. * test/bitfieldTest.cc
  5675. Fixed the bug that causes infinite loop if broken web server
  5676. returns chunked response without last "0" chunk-size marker and
  5677. closes connection.
  5678. * src/DownloadCommand.cc
  5679. Instantiate properly configured HttpDownloadCommand for
  5680. non-resumable downlaods.
  5681. * src/HttpResponseCommand.cc
  5682. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5683. Rewritten array operation functions.
  5684. * src/BitfieldMan.cc
  5685. * src/array_fun.h
  5686. * test/array_funTest.cc
  5687. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5688. Removed unused variable 'query'
  5689. * src/Request.cc
  5690. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5691. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5692. accidentally set to false in r1162.
  5693. * configure.ac
  5694. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5695. Code cleanup
  5696. * src/BNode.cc
  5697. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5698. Increase prefixLength for the bucket which doesn't own local node
  5699. ID when splitting bucket.
  5700. * src/DHTBucket.cc
  5701. * test/DHTBucketTest.cc
  5702. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5703. * Release 1.3.1
  5704. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5705. Bump up version number to 1.3.1
  5706. * configure.ac
  5707. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5708. Removed unused variable checkPoint. Also removed include directive
  5709. for TimeA2.h.
  5710. * src/SeedCheckCommand.h
  5711. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5712. Fixed the bug that upload limit exceeds the value specified in
  5713. --seed-ratio option depending on the timing of the execution of
  5714. SeedCheckCommand.
  5715. * src/SeedCheckCommand.cc
  5716. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5717. Fixed the bug that removed peer's session upload/download length
  5718. are counted twice in _cachedTransferStat before it is
  5719. re-calculated. This affected the calculation of shara ratio,
  5720. resulting aria2 wrongly determines that specified share ratio is
  5721. reached. Also fixed the typo in calculateStatFor function name.
  5722. * src/BtSetup.cc
  5723. * src/DefaultPeerStorage.cc
  5724. * src/ShareRatioSeedCriteria.h
  5725. * test/ShareRatioSeedCriteriaTest.cc
  5726. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5727. * Release 1.3.0
  5728. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5729. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5730. Nynorsk translations. Thanks to all translators.
  5731. * po/es.po
  5732. * po/ja.po
  5733. * po/nn.po
  5734. * po/ru.po
  5735. * po/uk.po
  5736. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5737. Rewritten isInRange()
  5738. * src/DHTBucket.cc
  5739. * test/DHTBucketTest.cc
  5740. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5741. Fixed typo
  5742. * doc/aria2c.1.txt
  5743. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5744. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5745. malloc/realloc is not used.
  5746. * src/configure.ac
  5747. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5748. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5749. char* bitfield instead of stl container for efficiency.
  5750. PieceSelector::select now takes this
  5751. bitfield. RarestPieceSelector::select now also performs
  5752. efficiently for this change. bitfield namespace is introduced and
  5753. it has several helper functions to handle basic bitfield
  5754. operations such as test, count set bits, etc.
  5755. * src/BitfieldMan.cc
  5756. * src/BitfieldMan.h
  5757. * src/DefaultBtRequestFactory.cc
  5758. * src/DefaultPieceStorage.cc
  5759. * src/DefaultPieceStorage.h
  5760. * src/LongestSequencePieceSelector.cc
  5761. * src/LongestSequencePieceSelector.h
  5762. * src/Makefile.am
  5763. * src/Piece.cc
  5764. * src/Piece.h
  5765. * src/PieceSelector.h
  5766. * src/RarestPieceSelector.cc
  5767. * src/RarestPieceSelector.h
  5768. * src/Util.cc
  5769. * src/Util.h
  5770. * src/bitfield.h
  5771. * test/BitfieldManTest.cc
  5772. * test/LongestSequencePieceSelectorTest.cc
  5773. * test/Makefile.am
  5774. * test/RarestPieceSelectorTest.cc
  5775. * test/UtilTest.cc
  5776. * test/bitfieldTest.cc
  5777. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5778. Made accepted socket non-block.
  5779. * src/FtpNegotiationCommand.cc
  5780. * src/HttpListenCommand.cc
  5781. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5782. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5783. * src/AbstractSingleDiskAdaptor.cc
  5784. * src/DefaultPieceStorage.cc
  5785. * src/DiskAdaptor.h
  5786. * src/DiskAdaptor.h
  5787. * src/MultiFileAllocationIterator.cc
  5788. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5789. Run
  5790. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5791. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5792. it doesn't need to be called every time when
  5793. DefaultBtInteractive::doInteractionProcessing() is called.
  5794. * src/DefaultBtInteractive.cc
  5795. * src/DefaultBtInteractive.h
  5796. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5797. Documented 'falloc' in man page.
  5798. * doc/aria2c.1.txt
  5799. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5800. Updated doc
  5801. * src/usage_text.h
  5802. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5803. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5804. allocation mode uses posix_fallocate() system call to allocate
  5805. file on disk. If you are using newer file systems such as ext4
  5806. (with extents support), btrfs or xfs, 'falloc' is your best
  5807. choice. It allocates large(few GiB) files almost instantly. Don't
  5808. use 'falloc' with legacy file systems such as ext3 because it
  5809. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5810. until allocation finishes. 'falloc' may not be available if your
  5811. system doesn't have posix_fallocate() system call.
  5812. * configure.ac
  5813. * src/AbstractDiskWriter.cc
  5814. * src/AbstractDiskWriter.h
  5815. * src/AbstractSingleDiskAdaptor.cc
  5816. * src/BinaryStream.h
  5817. * src/BtCheckIntegrityEntry.cc
  5818. * src/ByteArrayDiskWriter.h
  5819. * src/CheckIntegrityEntry.cc
  5820. * src/CheckIntegrityEntry.h
  5821. * src/DefaultPieceStorage.cc
  5822. * src/DiskAdaptor.cc
  5823. * src/DiskAdaptor.h
  5824. * src/DiskWriter.h
  5825. * src/FallocFileAllocationIterator.cc
  5826. * src/FallocFileAllocationIterator.h
  5827. * src/FileAllocationEntry.cc
  5828. * src/FileAllocationEntry.h
  5829. * src/Makefile.am
  5830. * src/MultiFileAllocationIterator.cc
  5831. * src/MultiFileAllocationIterator.h
  5832. * src/OptionHandlerFactory.cc
  5833. * src/RequestGroup.cc
  5834. * src/StreamCheckIntegrityEntry.cc
  5835. * src/prefs.cc
  5836. * src/prefs.h
  5837. * src/usage_text.h
  5838. * test/FallocFileAllocationIteratorTest.cc
  5839. * test/Makefile.am
  5840. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5841. Removed duplicate enableDirectIO() call.
  5842. * src/MultiFileAllocationIterator.cc
  5843. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5844. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5845. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5846. cost of std::rotate().
  5847. * src/RarestPieceSelector.cc
  5848. * src/RarestPieceSelector.h
  5849. * test/RarestPieceSelectorTest.cc
  5850. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5851. Updated usage doc for --bt-tracker-interval option.
  5852. * src/usage_text.h
  5853. * doc/aria2c.1.txt
  5854. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5855. Documented --bt-tracker-interval option in man page.
  5856. * doc/aria2c.1.txt
  5857. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5858. Added an option to specify the interval between tracker requests.
  5859. If non-zero value is specified, aria2 uses it and ignores the
  5860. interval value in the response of tracker. If zero is specified,
  5861. aria2 determines the inteval value based on the tarcker response
  5862. and download progress.
  5863. * src/DefaultBtAnnounce.cc
  5864. * src/DefaultBtAnnounce.h
  5865. * src/OptionHandlerFactory.cc
  5866. * src/RequestGroup.cc
  5867. * src/prefs.cc
  5868. * src/prefs.h
  5869. * src/usage_text.h
  5870. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5871. Added operator+=, operator-=, operator-
  5872. * src/TransferStat.cc
  5873. * src/TransferStat.h
  5874. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5875. Refactored RarestPieceSelector to reduce CPU load, especially for
  5876. addPieceStats.
  5877. * src/RarestPieceSelector.cc
  5878. * src/RarestPieceSelector.h
  5879. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5880. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5881. getAllMissingBlockIndexes to reduce a call to
  5882. array_function_base::operator[].
  5883. * src/BitfieldMan.cc
  5884. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5885. Cached TransferStat/download speed to avoid to sum them up in each
  5886. call.
  5887. * src/DefaultPeerStorage.cc
  5888. * src/DefaultPeerStorage.h
  5889. * src/SegmentMan.cc
  5890. * src/SegmentMan.h
  5891. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5892. Typedefed cuid_t as int32_t in Command.h
  5893. * src/CUIDCounter.h
  5894. * src/Command.cc
  5895. * src/Command.h
  5896. * src/DownloadEngine.cc
  5897. * src/DownloadEngine.h
  5898. * src/PeerStat.h
  5899. * src/SegmentMan.cc
  5900. * src/SegmentMan.h
  5901. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5902. Reduced the number of calls to PeerStorage::calculateStat() and
  5903. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5904. transfer rate.
  5905. * src/DefaultBtInteractive.cc
  5906. * src/DefaultBtMessageDispatcher.cc
  5907. * src/DefaultPeerStorage.cc
  5908. * src/DefaultPeerStorage.h
  5909. * src/DownloadCommand.cc
  5910. * src/DownloadEngine.cc
  5911. * src/PeerStorage.h
  5912. * src/SegmentMan.cc
  5913. * src/SegmentMan.h
  5914. * test/MockPeerStorage.h
  5915. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5916. Prepended _dir+"/" after joining path elements in torrent file.
  5917. * src/DefaultBtContext.cc
  5918. * test/DefaultBtContextTest.cc
  5919. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5920. Added missing IndexBtMessageValidator.h
  5921. * src/Makefile.am
  5922. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5923. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5924. Chinese translations. Thank you for contributing our project.
  5925. * po/id.po
  5926. * po/it.po
  5927. * po/ru.po
  5928. * po/uk.po
  5929. * po/zh_CN.po
  5930. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5931. Updated README
  5932. * README
  5933. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5934. Bump up version number to 1.3.0
  5935. * configure.ac
  5936. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5937. Updated doc
  5938. * src/DefaultBtContext.h
  5939. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5940. Slice/joinPath for name of single torrent.
  5941. * src/DefaultBtContext.cc
  5942. * test/DefaultBtContextTest.cc
  5943. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5944. Updated man page: Documented --dry-run and --index-out
  5945. options. Changed the default value of --uri-selector and
  5946. --http-auth-challenge options. Removed --direct-file-mapping
  5947. option. Added example for --index-out
  5948. * doc/aria2c.1.txt
  5949. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5950. Updated TEXT_DRY_RUN
  5951. * src/usage_text.h
  5952. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5953. Changed the default value of --uri-selector option from 'inorder'
  5954. to 'feedback'
  5955. * src/OptionHandlerFactory.cc
  5956. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5957. Included current URI in exception message.
  5958. * src/AbstractCommand.cc
  5959. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5960. Renamed ServerStatURISelector as FeedbackURISelector.
  5961. * src/FeedbackURISelector.cc
  5962. * src/FeedbackURISelector.h
  5963. * src/Makefile.am
  5964. * src/RequestGroupMan.cc
  5965. * src/ServerStatURISelector.cc
  5966. * src/ServerStatURISelector.h
  5967. * test/FeedbackURISelectorTest.cc
  5968. * test/Makefile.am
  5969. * test/ServerStatURISelectorTest.cc
  5970. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5971. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5972. all URIs are tested and their timeout is not reached.
  5973. * src/AdaptiveURISelector.cc
  5974. * src/AdaptiveURISelector.h
  5975. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5976. Changed the default value of --http-auth-challenge option to false.
  5977. * src/OptionHandlerFactory.cc
  5978. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5979. Reuse URIs when all unused URIs run out.
  5980. * src/OptionHandlerFactory.cc
  5981. * src/RequestGroup.cc
  5982. * src/prefs.cc
  5983. * src/prefs.h
  5984. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5985. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5986. and BtRejectMessage are derived from RangeBtMessage class.
  5987. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5988. derived from IndexBtMessage class. BtChokeMessage,
  5989. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5990. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5991. ZeroBtMessage class.
  5992. * src/AbstractBtMessage.cc
  5993. * src/AbstractBtMessage.h
  5994. * src/BtAllowedFastMessage.cc
  5995. * src/BtAllowedFastMessage.h
  5996. * src/BtAllowedFastMessageValidator.h: Removed
  5997. * src/BtBitfieldMessage.cc
  5998. * src/BtBitfieldMessage.h
  5999. * src/BtCancelMessage.cc
  6000. * src/BtCancelMessage.h
  6001. * src/BtCancelMessageValidator.h: Removed
  6002. * src/BtChokeMessage.cc
  6003. * src/BtChokeMessage.h
  6004. * src/BtExtendedMessage.cc
  6005. * src/BtExtendedMessage.h
  6006. * src/BtHandshakeMessage.cc
  6007. * src/BtHandshakeMessage.h
  6008. * src/BtHaveAllMessage.cc
  6009. * src/BtHaveAllMessage.h
  6010. * src/BtHaveMessage.cc
  6011. * src/BtHaveMessage.h
  6012. * src/BtHaveMessageValidator.h: Removed
  6013. * src/BtHaveNoneMessage.cc
  6014. * src/BtHaveNoneMessage.h
  6015. * src/BtInterestedMessage.cc
  6016. * src/BtInterestedMessage.h
  6017. * src/BtKeepAliveMessage.cc
  6018. * src/BtKeepAliveMessage.h
  6019. * src/BtNotInterestedMessage.cc
  6020. * src/BtNotInterestedMessage.h
  6021. * src/BtPieceMessage.cc
  6022. * src/BtPieceMessage.h
  6023. * src/BtPortMessage.cc
  6024. * src/BtPortMessage.h
  6025. * src/BtRejectMessage.cc
  6026. * src/BtRejectMessage.h
  6027. * src/BtRejectMessageValidator.h: Removed
  6028. * src/BtRequestMessage.cc
  6029. * src/BtRequestMessage.h
  6030. * src/BtRequestMessageValidator.h: Removed
  6031. * src/BtSuggestPieceMessage.cc
  6032. * src/BtSuggestPieceMessage.h
  6033. * src/BtSuggestPieceMessageValidator.h: Removed
  6034. * src/BtUnchokeMessage.cc
  6035. * src/BtUnchokeMessage.h
  6036. * src/DefaultBtMessageFactory.cc
  6037. * src/IndexBtMessage.cc
  6038. * src/IndexBtMessage.h
  6039. * src/IndexBtMessageValidator.h
  6040. * src/Makefile.am
  6041. * src/PeerMessageUtil.cc
  6042. * src/PeerMessageUtil.h
  6043. * src/RangeBtMessage.cc
  6044. * src/RangeBtMessage.h
  6045. * src/RangeBtMessageValidator.h
  6046. * src/SimpleBtMessage.cc
  6047. * src/SimpleBtMessage.h
  6048. * src/ZeroBtMessage.cc
  6049. * src/ZeroBtMessage.h
  6050. * test/BtRequestMessageTest.cc
  6051. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6052. Reverted usage_text.h to r1093 to avoid to lose translated
  6053. messages.
  6054. * src/usage_text.h
  6055. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6056. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  6057. declared as non-const previously is now const and defined in class
  6058. definition.
  6059. * src/AbstractBtMessage.cc
  6060. * src/AbstractBtMessage.h
  6061. * src/BtAllowedFastMessage.cc
  6062. * src/BtAllowedFastMessage.h
  6063. * src/BtBitfieldMessage.h
  6064. * src/BtCancelMessage.cc
  6065. * src/BtCancelMessage.h
  6066. * src/BtChokeMessage.cc
  6067. * src/BtChokeMessage.h
  6068. * src/BtExtendedMessage.cc
  6069. * src/BtExtendedMessage.h
  6070. * src/BtHandshakeMessage.cc
  6071. * src/BtHandshakeMessage.h
  6072. * src/BtHaveAllMessage.cc
  6073. * src/BtHaveAllMessage.h
  6074. * src/BtHaveMessage.cc
  6075. * src/BtHaveMessage.h
  6076. * src/BtHaveNoneMessage.cc
  6077. * src/BtHaveNoneMessage.h
  6078. * src/BtInterestedMessage.cc
  6079. * src/BtInterestedMessage.h
  6080. * src/BtKeepAliveMessage.cc
  6081. * src/BtKeepAliveMessage.h
  6082. * src/BtMessage.h
  6083. * src/BtNotInterestedMessage.cc
  6084. * src/BtNotInterestedMessage.h
  6085. * src/BtPieceMessage.h
  6086. * src/BtPortMessage.cc
  6087. * src/BtPortMessage.h
  6088. * src/BtRejectMessage.cc
  6089. * src/BtRejectMessage.h
  6090. * src/BtRequestMessage.cc
  6091. * src/BtRequestMessage.h
  6092. * src/BtSuggestPieceMessage.cc
  6093. * src/BtSuggestPieceMessage.h
  6094. * src/BtUnchokeMessage.cc
  6095. * src/BtUnchokeMessage.h
  6096. * src/SimpleBtMessage.cc
  6097. * src/SimpleBtMessage.h
  6098. * test/MockBtMessage.h
  6099. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6100. Use FileEntry::exists()
  6101. * src/MultiDiskAdaptor.cc
  6102. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6103. Added exists()
  6104. * src/FileEntry.cc
  6105. * src/FileEntry.h
  6106. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6107. Added missing prefix dir.
  6108. * src/download_helper.cc
  6109. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6110. Removed --direct-file-mapping option and CopyDiskAdaptor.
  6111. * src/CopyDiskAdaptor.cc: Removed
  6112. * src/CopyDiskAdaptor.h: Removed
  6113. * src/DefaultPieceStorage.cc
  6114. * src/Makefile.am
  6115. * src/OptionHandlerFactory.cc
  6116. * src/prefs.cc
  6117. * src/prefs.h
  6118. * src/usage_text.h
  6119. * test/CopyDiskAdaptorTest.cc: Removed
  6120. * test/Makefile.am
  6121. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6122. Rewritten isSameFileBeingDownloaded()
  6123. * src/RequestGroupMan.cc
  6124. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6125. Removed getName() from DownloadContext. getName() is declared in
  6126. BtContext.
  6127. * src/BtContext.h
  6128. * src/DownloadContext.h
  6129. * src/SingleFileDownloadContext.cc
  6130. * src/SingleFileDownloadContext.h
  6131. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  6132. in AbstractSingleDiskAdaptor.
  6133. * src/AbstractSingleDiskAdaptor.h
  6134. * src/DiskAdaptor.h
  6135. * src/MultiDiskAdaptor.h
  6136. * src/RequestGroup.cc
  6137. Removed setTopDir() and getTopDir() and getTopDirPath() from
  6138. MultiDiskAdaptor.
  6139. * src/DefaultPieceStorage.cc
  6140. * src/MultiDiskAdaptor.cc
  6141. * src/MultiDiskAdaptor.h
  6142. * test/MultiDiskAdaptorTest.cc
  6143. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6144. FileEntry::getPath() contains store(top level) directory to
  6145. simplify path handling operation. In the previous implementation,
  6146. store directory is concatenated to FileEntry::getPath() in
  6147. DownloadContext.
  6148. * src/BtDependency.cc
  6149. * src/BtPostDownloadHandler.cc
  6150. * src/CopyDiskAdaptor.cc
  6151. * src/DefaultBtContext.cc
  6152. * src/DirectDiskAdaptor.cc
  6153. * src/FileEntry.cc
  6154. * src/FileEntry.h
  6155. * src/FtpNegotiationCommand.cc
  6156. * src/HttpResponse.cc
  6157. * src/HttpResponseCommand.cc
  6158. * src/Metalink2RequestGroup.cc
  6159. * src/MultiDiskAdaptor.cc
  6160. * src/MultiDiskAdaptor.h
  6161. * src/MultiFileAllocationIterator.cc
  6162. * src/RequestGroup.cc
  6163. * src/SingleFileDownloadContext.cc
  6164. * src/SingleFileDownloadContext.h
  6165. * src/download_helper.cc
  6166. * test/BtDependencyTest.cc
  6167. * test/CopyDiskAdaptorTest.cc
  6168. * test/DefaultBtContextTest.cc
  6169. * test/DefaultBtProgressInfoFileTest.cc
  6170. * test/DirectDiskAdaptorTest.cc
  6171. * test/DownloadHelperTest.cc
  6172. * test/FileEntryTest.cc
  6173. * test/MultiDiskAdaptorTest.cc
  6174. * test/MultiFileAllocationIteratorTest.cc
  6175. * test/RequestGroupTest.cc
  6176. * test/SingleFileDownloadContextTest.cc
  6177. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6178. Fixed compiler warning
  6179. * src/download_helper.cc
  6180. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6181. Throw exception if same infohash torrent is now downloading.
  6182. * src/RequestGroup.cc
  6183. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6184. Added --dry-run option. In this mode, aria2 just checks whether
  6185. the remote file is available and doesn't download data. This
  6186. option has effect on HTTP/FTP downloads and BitTorrent downloads
  6187. are canceled in this mode.
  6188. * src/FtpNegotiationCommand.cc
  6189. * src/HttpResponseCommand.cc
  6190. * src/HttpResponseCommand.h
  6191. * src/OptionHandlerFactory.cc
  6192. * src/RequestGroup.cc
  6193. * src/RequestGroupMan.cc
  6194. * src/prefs.cc
  6195. * src/prefs.h
  6196. * src/usage_text.h
  6197. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6198. Fixed compiler waring
  6199. * test/UriListParserTest.cc
  6200. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6201. Parse options in -i list using OptionParser.
  6202. * src/UriListParser.cc
  6203. * src/UriListParser.h
  6204. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6205. Don't reset URI in retry to avoid additional round trips because
  6206. of redirects.
  6207. * src/AbstractCommand.cc
  6208. * src/OptionHandlerFactory.cc
  6209. * src/prefs.cc
  6210. * src/prefs.h
  6211. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6212. Declared hide() in OptionHandler.
  6213. * src/NameMatchOptionHandler.h
  6214. * src/OptionHandler.h
  6215. * src/OptionHandlerImpl.h
  6216. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6217. Updated doc
  6218. * src/Peer.h
  6219. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6220. Added log message in setStatusInternal()
  6221. * src/ServerStat.cc
  6222. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6223. Call ServerStat::setError() in AbstractCommand::onAbort() to
  6224. effectively exclude failed server.
  6225. * src/AbstractCommand.cc
  6226. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6227. Added --index-out option to specify each file path for torrent.
  6228. Here index shown in --show-files option is used to specify which
  6229. file path should be altered. For example, to change the file path
  6230. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  6231. option multiple times: --index-out=1=aria2.tar.bz2
  6232. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  6233. available. This option can be specified in -i list.
  6234. * src/DefaultBtContext.cc
  6235. * src/DefaultBtContext.h
  6236. * src/MultiDiskAdaptor.cc
  6237. * src/MultiDiskAdaptor.h
  6238. * src/MultiFileAllocationIterator.cc
  6239. * src/OptionHandlerFactory.cc
  6240. * src/OptionHandlerImpl.h
  6241. * src/Util.cc
  6242. * src/Util.h
  6243. * src/download_helper.cc
  6244. * src/prefs.cc
  6245. * src/prefs.h
  6246. * src/usage_text.h
  6247. * test/DefaultBtContextTest.cc
  6248. * test/MultiDiskAdaptorTest.cc
  6249. * test/MultiFileAllocationIteratorTest.cc
  6250. * test/UtilTest.cc
  6251. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6252. Use Util::pathJoin()
  6253. * src/MetalinkParserController.cc
  6254. * test/test.xml
  6255. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6256. Use Util::pathJoin()
  6257. * src/DefaultBtContext.cc
  6258. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6259. Added Util::pathJoin()
  6260. * src/Util.h
  6261. * test/UtilTest.cc
  6262. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6263. Applied basename function to remove directory element in
  6264. content-disposition value.
  6265. Return empty string if content-disposition value is ".." or ".".
  6266. * src/Util.cc
  6267. * test/UtilTest.cc
  6268. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6269. Added --max-overall-download-limit in man page.
  6270. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  6271. * doc/aria2c.1.txt
  6272. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6273. Added --max-overall-download-limit option. Now --max-upload-limit
  6274. option is not ignored when --max-overall-upload-limit option has
  6275. non-zero value. aria2 checks download(upload) speed in the order:
  6276. first checks overall speed limit and if it is not exceeded, then
  6277. checks speed limit per download. Thus you can specify both
  6278. value. For example, set --max-overall-download-limit=1M and
  6279. --max-download-limit=500K to prevent from one download from eating
  6280. all overall speed limit.
  6281. * src/DefaultBtInteractive.cc
  6282. * src/DefaultBtInteractive.h
  6283. * src/DefaultBtMessageDispatcher.cc
  6284. * src/DefaultBtMessageDispatcher.h
  6285. * src/DownloadCommand.cc
  6286. * src/DownloadCommand.h
  6287. * src/FtpNegotiationCommand.cc
  6288. * src/HttpResponseCommand.cc
  6289. * src/OptionHandlerFactory.cc
  6290. * src/PeerInteractionCommand.cc
  6291. * src/RequestGroup.cc
  6292. * src/RequestGroup.h
  6293. * src/RequestGroupMan.cc
  6294. * src/RequestGroupMan.h
  6295. * src/prefs.cc
  6296. * src/prefs.h
  6297. * src/usage_text.h
  6298. * test/DefaultBtMessageDispatcherTest.cc
  6299. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6300. Documented select-file option in Input File section.
  6301. Documented --http-auth-challenge option.
  6302. * doc/aria2c.1.txt
  6303. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6304. Now select-file can be specified in the uri list(-i list).
  6305. * src/BtContext.cc
  6306. * src/BtContext.h
  6307. * src/RequestGroup.cc
  6308. * src/Sequence.h
  6309. * src/download_helper.cc
  6310. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6311. Made the upper value of --max-concurrent-downloads options unlimited.
  6312. * src/OptionHandlerFactory.cc
  6313. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6314. Fixed the bug that disk writer is not created even if it shares
  6315. same piece with the preceding file if the length of previous file
  6316. is 0.
  6317. * src/MultiDiskAdaptor.cc
  6318. * test/MultiDiskAdaptorTest.cc
  6319. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6320. In BitTorrent, Open files in read-only mode for hash check. After
  6321. that, re-open file in read/write mode only when the download is
  6322. not finished.
  6323. * src/AbstractDiskWriter.cc
  6324. * src/AbstractDiskWriter.h
  6325. * src/AbstractSingleDiskAdaptor.cc
  6326. * src/AbstractSingleDiskAdaptor.h
  6327. * src/BtCheckIntegrityEntry.cc
  6328. * src/DiskAdaptor.h
  6329. * src/DiskWriter.h
  6330. * src/MultiDiskAdaptor.cc
  6331. * src/MultiDiskAdaptor.h
  6332. * src/RequestGroup.cc
  6333. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6334. Added --http-auth-challenge option. If it is set to true(by
  6335. default), aria2 sends HTTP authorization header only when it is
  6336. requested by the server. If false is set, then authorization
  6337. header is always sent to the server. This is useful for servers
  6338. that don't respond 401 code when authentication is required.
  6339. There is an exception: if username and password are embedded in
  6340. URI, authorization header is always sent to the server regardless
  6341. of this option.
  6342. * src/AuthConfigFactory.cc
  6343. * src/HttpSkipResponseCommand.cc
  6344. * src/OptionHandlerFactory.cc
  6345. * src/prefs.cc
  6346. * src/prefs.h
  6347. * src/usage_text.h
  6348. * test/AuthConfigFactoryTest.cc
  6349. * test/HttpRequestTest.cc
  6350. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6351. * Release 1.2.0
  6352. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6353. Updated Spanish, Ukrainian, Russian and Japanese translations.
  6354. Thanks to all translators.
  6355. * po/es.po
  6356. * po/ja.po
  6357. * po/ru.po
  6358. * po/uk.po
  6359. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6360. Call deleteSocketForReadCheck() before socket is closed.
  6361. * src/HttpListenCommand.cc
  6362. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6363. Defined virtual destructor for BObject.
  6364. * src/bencode.h
  6365. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6366. Rewritten BDE to make it efficient.
  6367. * src/bencode.cc
  6368. * src/bencode.h
  6369. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6370. Removed function throw list.
  6371. * src/bencode.cc
  6372. * src/bencode.h
  6373. * test/BencodeTest.cc
  6374. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6375. Enclosed all URLs in double quotes in command-line examples.
  6376. * doc/aria2c.1.txt
  6377. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6378. Updated reference/see also section.
  6379. * README
  6380. * doc/aria2c.1.txt
  6381. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6382. Reorganized man page based on man man-pages.
  6383. * doc/aria2c.1.txt
  6384. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6385. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  6386. because same documents are available in man page. Added
  6387. References section.
  6388. * README
  6389. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6390. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  6391. PERFORMANCE PROFILE section.
  6392. * doc/aria2c.1.txt
  6393. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6394. Rewritten the section for configuration file.
  6395. * README
  6396. * doc/aria2c.1.txt
  6397. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6398. Fixed the segmentation fault during execution of choking algorithm
  6399. in leecher state because of broken compare operator
  6400. implementation.
  6401. * src/BtLeecherStateChoke.cc
  6402. * src/BtLeecherStateChoke.h
  6403. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6404. Open file in binary mode.
  6405. * src/CookieStorage.cc
  6406. * src/DHTSetup.cc
  6407. * src/DHTUtil.cc
  6408. * src/Netrc.cc
  6409. * src/NsCookieParser.cc
  6410. * src/ProtocolDetector.cc
  6411. * src/RequestGroupMan.cc
  6412. * src/Signature.cc
  6413. * src/bencode.cc
  6414. * src/download_helper.cc
  6415. * src/option_processing.cc
  6416. * test/CookieParserTest.cc
  6417. * test/DefaultBtProgressInfoFileTest.cc
  6418. * test/FileTest.cc
  6419. * test/GZipDecoderTest.cc
  6420. * test/RequestGroupManTest.cc
  6421. * test/SignatureTest.cc
  6422. * test/SingleFileAllocationIteratorTest.cc
  6423. * test/UriListParserTest.cc
  6424. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6425. Removed operator[] because it is ambiguous with built-in []
  6426. operator.
  6427. * src/array_fun.h
  6428. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6429. Fixed compile error
  6430. * src/OptionParser.cc
  6431. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6432. Added missing call to arrayWrapperConst
  6433. * test/array_funTest.cc
  6434. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6435. Use array_wrapper instead of array_ptr.
  6436. * src/DHTRoutingTableDeserializer.cc
  6437. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6438. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6439. * src/array_fun.h
  6440. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6441. Added array_wrapper template.
  6442. * src/array_fun.h
  6443. * test/array_funTest.cc
  6444. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6445. Use operator T* of array_ptr.
  6446. * src/OptionParser.cc
  6447. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6448. Use localhost instead of 127.0.0.1
  6449. * test/FtpConnectionTest.cc
  6450. * test/MSEHandshakeTest.cc
  6451. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6452. Added operator T*
  6453. * src/array_fun.h
  6454. * test/array_funTest.cc
  6455. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6456. Use dynamically allocated char array to detect memory access
  6457. violation.
  6458. * src/DHTRoutingTableDeserializer.cc
  6459. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6460. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6461. defined.
  6462. * src/PeerMessageUtil.cc
  6463. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6464. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6465. * configure.ac
  6466. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6467. Added a check to see struct sockaddr_in has sin_len member.
  6468. * configure.ac
  6469. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6470. Fixed buffer overrun.
  6471. * src/DHTRoutingTableDeserializer.cc
  6472. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6473. Added LL for long long int constant.
  6474. * test/FtpConnectionTest.cc
  6475. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6476. Casted to unsigned int to suppress compiler warning on netbsd.
  6477. * src/BtRuntime.h
  6478. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6479. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6480. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6481. type time_t.
  6482. * src/SimpleLogger.cc
  6483. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6484. Added test for FtpConnection::receiveSizeResponse().
  6485. * test/FtpConnectionTest.cc
  6486. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6487. Fix epoll error on the old kernel 2.6.8 or ealier.
  6488. * src/EpollEventPoll.cc
  6489. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6490. Use Util::parseLLInt instead of sscanf for portability. The
  6491. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6492. * src/FtpConnection.cc
  6493. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6494. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6495. block. It should not filter anything.
  6496. * src/BitfieldMan.cc
  6497. * src/ConsoleStatCalc.cc
  6498. * test/BitfieldManTest.cc
  6499. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6500. Fixed the bug that the boolean options that don't take arguments
  6501. don't work.
  6502. * src/OptionHandlerImpl.h
  6503. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6504. Fixed broken selected file BitTorrent download.
  6505. * src/MultiDiskAdaptor.cc
  6506. * test/MultiDiskAdaptorTest.cc
  6507. * test/MultiFileAllocationIteratorTest.cc
  6508. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6509. Fixed #define guard for EpollEventPoll
  6510. * src/EpollEventPoll.h
  6511. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6512. Wait 2 seconds. 1 second is sometimes not enough.
  6513. * test/TimeSeedCriteriaTest.cc
  6514. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6515. Use localhost instead of 127.0.0.1.
  6516. * test/DHTConnectionImplTest.cc
  6517. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6518. Suppressed compiler warning.
  6519. * src/AdaptiveURISelector.cc
  6520. * src/DefaultPieceStorage.cc
  6521. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6522. Defined virtual destructor.
  6523. * src/MetalinkParserState.h
  6524. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6525. Give NULL for second argument of getaddrinfo instead of "0".
  6526. * src/NameResolver.cc
  6527. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6528. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6529. included strptime doesn't parse data for this format.
  6530. * src/FtpConnection.cc
  6531. * test/FtpConnectionTest.cc
  6532. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6533. Removed tests giving -1 for unsigned argument.
  6534. * test/SingleFileDownloadContextTest.cc
  6535. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6536. Don't use sha256 in tests because it might not be supported by the
  6537. SSL library.
  6538. * test/MetalinkProcessorTest.cc
  6539. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6540. Removed tests giving -1 for unsigned argument.
  6541. * test/AlphaNumberDecoratorTest
  6542. * test/BitfieldManTest.cc
  6543. * test/DefaultBtContextTest.cc
  6544. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6545. Fixed compile error without libcares when epoll is available.
  6546. * src/EpollEventPoll.cc
  6547. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6548. Included fstream instead of iostream.
  6549. * test/SignatureTest.cc
  6550. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6551. Removed #include <algorithm>
  6552. * test/RequestGroupTest.cc
  6553. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6554. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6555. using RequestGroup::extractURIResult().
  6556. * src/AdaptiveURISelector.cc
  6557. * src/RequestGroup.cc
  6558. * src/RequestGroup.h
  6559. * test/RequestGroupTest.cc
  6560. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6561. Added tests for array_ptr.
  6562. * test/array_funTest.cc
  6563. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6564. Don't send ip parameter to a tracker if ip parameter is empty
  6565. string.
  6566. * src/DefaultBtAnnounce.cc
  6567. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6568. Adjusted line feed.
  6569. * src/version_usage.cc
  6570. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6571. Print tags, possible values when OptionHandlerException is caught.
  6572. * src/option_processing.cc
  6573. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6574. Changed the message for FatalException.
  6575. * src/OptionParser.cc
  6576. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6577. Documented --bt-external-ip option in man page. Updated man pages
  6578. for --proxy-method option.
  6579. * doc/aria2c.1.txt
  6580. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6581. Use GET method for FTP via HTTP proxy.
  6582. * src/FtpInitiateConnectionCommand.cc
  6583. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6584. Changed the default value of --proxy-method option from 'tunnel'
  6585. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6586. option.
  6587. * src/AbstractCommand.cc
  6588. * src/AbstractCommand.h
  6589. * src/FtpInitiateConnectionCommand.cc
  6590. * src/HttpDownloadCommand.cc
  6591. * src/HttpInitiateConnectionCommand.cc
  6592. * src/HttpInitiateConnectionCommand.h
  6593. * src/OptionHandlerFactory.cc
  6594. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6595. Initialized _logger
  6596. * src/SelectEventPoll.cc
  6597. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6598. Defined a copy constructor for the same type.
  6599. * src/SharedHandle.h
  6600. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6601. Added OptionParser::parseArg() which internally uses getopt_long
  6602. to parse command-line options. All command-line options are now
  6603. configured by OptionHandler. No manual editing of struct option*
  6604. is required any more.
  6605. * src/NameMatchOptionHandler.h
  6606. * src/OptionHandler.h
  6607. * src/OptionHandlerFactory.cc
  6608. * src/OptionHandlerImpl.h
  6609. * src/OptionParser.cc
  6610. * src/OptionParser.h
  6611. * src/array_fun.h
  6612. * src/main.cc
  6613. * src/option_processing.cc
  6614. * test/OptionHandlerTest.cc
  6615. * test/OptionParserTest.cc
  6616. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6617. Fixed configure error with --disable-epoll
  6618. * configure.ac
  6619. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6620. Fixed compile error when HAVE_EPOLL is not defined.
  6621. Fixed linker error on bigendian systems.
  6622. * src/SocketCore.cc
  6623. * src/SocketCore.h
  6624. * test/DefaultBtProgressInfoFileTest.cc
  6625. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6626. Added --bt-external-ip option. You can specify the external IP
  6627. address to report to a BitTorrent tracker. Although this function
  6628. is named 'external', it can accept any kind of IP addresses.
  6629. * src/DefaultBtAnnounce.cc
  6630. * src/OptionHandlerFactory.cc
  6631. * src/option_processing.cc
  6632. * src/prefs.cc
  6633. * src/prefs.h
  6634. * src/usage_text.h
  6635. * test/DefaultBtAnnounceTest.cc
  6636. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6637. Extracted the algorithm to find the longest incremental sequence
  6638. as max_sequence template.
  6639. * src/LongestSequencePieceSelector.cc
  6640. * src/a2algo.h
  6641. * test/Makefile.am
  6642. * test/a2algoTest.cc
  6643. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6644. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6645. * src/usage_text.h
  6646. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6647. Updated doc for --uri-selector, --http-server-listen-port and
  6648. --enable-http-server option. Documented --event-poll option.
  6649. * doc/aria2c.1.txt
  6650. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6651. Updated doc for --enable-http-server.
  6652. * src/usage_text.h
  6653. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6654. Documented --http-server-listen-port and --enable-http-server in
  6655. man page.
  6656. * doc/aria2c.1.txt
  6657. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6658. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6659. translations. Thanks to all translators.
  6660. * po/es.po
  6661. * po/id.po
  6662. * po/it.po
  6663. * po/ru.po
  6664. * po/uk.po
  6665. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6666. Bump up version number to 1.2.0
  6667. * configure.ac
  6668. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6669. BtContext::getAnnounceTiers() now returns const reference.
  6670. * src/BtContext.h
  6671. * src/DefaultBtContext.cc
  6672. * src/DefaultBtContext.h
  6673. * test/MockBtContext.h
  6674. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6675. Change the number of retries for tracker request based on the
  6676. number of available tracker in a torrent file.
  6677. * src/TrackerWatcherCommand.cc
  6678. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6679. Added _maxTries property to RequestGroup and assign the option
  6680. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6681. RequestGroup::getMaxTries() instead of
  6682. Option::getAsInt(PREF_MAX_TRIES).
  6683. * src/AbstractCommand.cc
  6684. * src/RequestGroup.cc
  6685. * src/RequestGroup.h
  6686. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6687. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6688. Mandriva. I modified the patch: make RequestGroup have the
  6689. timeout value and AdaptiveURISelector directly modifies that
  6690. value.
  6691. * src/AbstractCommand.cc
  6692. * src/AdaptiveURISelector.cc
  6693. * src/AdaptiveURISelector.h
  6694. * src/FtpNegotiationCommand.cc
  6695. * src/RequestGroup.cc
  6696. * src/RequestGroup.h
  6697. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6698. Fixed compiler warning
  6699. * test/IteratableChecksumValidatorTest.cc
  6700. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6701. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6702. integrated downloads. This PieceSelector subclass finds the
  6703. longest continuous sequence in the available missing pieces and
  6704. selects the last index of such sequence. This makes HTTP/FTP
  6705. connections less interrupted by the pieces obtained by BitTorrent
  6706. peers.
  6707. * src/DefaultPieceStorage.cc
  6708. * src/DefaultPieceStorage.h
  6709. * src/LongestSequencePieceSelector.cc
  6710. * src/LongestSequencePieceSelector.h
  6711. * src/Makefile.am
  6712. * src/PieceSelector.h
  6713. * src/RarestPieceSelector.h
  6714. * src/RequestGroup.cc
  6715. * test/BtDependencyTest.cc
  6716. * test/DefaultPieceStorageTest.cc
  6717. * test/IteratableChecksumValidatorTest.cc
  6718. * test/LongestSequencePieceSelectorTest.cc
  6719. * test/Makefile.am
  6720. * test/SegmentManTest.cc
  6721. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6722. Fixed the bug that the average speed is wrong in
  6723. http/ftp/BitTorrent integrated download. Only the download bytes
  6724. in BitTorrent were considered.
  6725. * src/RequestGroup.cc
  6726. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6727. Choose port for BitTorrent/DHT randomly from the specified range.
  6728. * src/DHTConnectionImpl.cc
  6729. * src/PeerListenCommand.cc
  6730. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6731. Send HTTP Authorization header only if it is requested by the
  6732. server(response 401). There are some exceptions. The authorization
  6733. header for proxy is always sent if it is available without request
  6734. by the server. If username/password is specified in the URI, it
  6735. is immediately sent to the server without request by the server.
  6736. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6737. SharedHandle<AuthConfig>().
  6738. NetrcAuthResolver::resolveAuthConfig() returns
  6739. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6740. * src/AbstractAuthResolver.cc
  6741. * src/AbstractProxyRequestCommand.cc
  6742. * src/AuthConfigFactory.cc
  6743. * src/AuthConfigFactory.h
  6744. * src/HttpConnection.cc
  6745. * src/HttpRequest.cc
  6746. * src/HttpRequest.h
  6747. * src/HttpResponse.cc
  6748. * src/HttpResponseCommand.cc
  6749. * src/HttpSkipResponseCommand.cc
  6750. * test/AuthConfigFactoryTest.cc
  6751. * test/HttpRequestTest.cc
  6752. * test/HttpResponseTest.cc
  6753. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6754. Remove leading "--" from help keyword and a substring after "="
  6755. from help keyword, so that one can query options by '-h--max-' or
  6756. '-hmax-peers=10'.
  6757. * src/option_processing.cc
  6758. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6759. Rewritten PStringVisitor and its implementation.
  6760. * src/PStringBuildVisitor.cc
  6761. * src/PStringBuildVisitor.h
  6762. * src/PStringDatum.h
  6763. * src/PStringNumLoop.h
  6764. * src/PStringSegment.cc
  6765. * src/PStringSegment.h
  6766. * src/PStringSelect.h
  6767. * src/PStringVisitor.h
  6768. * src/download_helper.cc
  6769. * test/PStringBuildVisitorTest.cc
  6770. * test/ParameterizedStringParserTest.cc
  6771. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6772. Persist connection between the built-in HTTP server and a client
  6773. if a client supports keep-alive. Fixed the bug that aria2 exits
  6774. when the HTTP server receives EOF from a client.
  6775. * src/HttpServer.cc
  6776. * src/HttpServer.h
  6777. * src/HttpServerCommand.cc
  6778. * src/HttpServerCommand.h
  6779. * src/HttpServerResponseCommand.cc
  6780. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6781. Added experimental built-in HTTP server. Currently, when a client
  6782. accesses to the server, it responds with the current download
  6783. progress. By default, it is disabled. To enable the server, give
  6784. --enable-http-server option. To change the default port number
  6785. for the server to listen to, use --http-server-listen-port option.
  6786. The response HTML is very simple and refreshes it self each 1
  6787. second. Because of this refresh, you see flicker in normal web
  6788. browser such as Firefox. I recommend to use console-based browser
  6789. such as elinks, w3m. To connect to the server, run 'elinks
  6790. http://localhost:6800/' while running aria2. Please replace port
  6791. number '6800'(which is default) with your preference.
  6792. * src/DownloadEngineFactory.cc
  6793. * src/HttpHeader.cc
  6794. * src/HttpHeader.h
  6795. * src/HttpHeaderProcessor.cc
  6796. * src/HttpHeaderProcessor.h
  6797. * src/HttpListenCommand.cc
  6798. * src/HttpListenCommand.h
  6799. * src/HttpServer.cc
  6800. * src/HttpServer.h
  6801. * src/HttpServerCommand.cc
  6802. * src/HttpServerCommand.h
  6803. * src/HttpServerResponseCommand.cc
  6804. * src/HttpServerResponseCommand.h
  6805. * src/Makefile.am
  6806. * src/OptionHandlerFactory.cc
  6807. * src/Util.cc
  6808. * src/Util.h
  6809. * src/help_tags.h
  6810. * src/option_processing.cc
  6811. * src/prefs.cc
  6812. * src/prefs.h
  6813. * src/usage_text.h
  6814. * test/HttpHeaderProcessorTest.cc
  6815. * test/UtilTest.cc
  6816. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6817. Removed.
  6818. * src/CheckIntegrityMan.cc
  6819. * src/FileAllocationMan.cc
  6820. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6821. Made (piece) hash check sequential for each RequestGroup because
  6822. simultaneous hash check is slower than sequential execution.
  6823. * src/CheckIntegrityCommand.cc
  6824. * src/CheckIntegrityDispatcherCommand.cc
  6825. * src/CheckIntegrityDispatcherCommand.h
  6826. * src/CheckIntegrityMan.h
  6827. * src/ConsoleStatCalc.cc
  6828. * src/DownloadCommand.cc
  6829. * src/DownloadEngine.cc
  6830. * src/DownloadEngine.h
  6831. * src/DownloadEngineFactory.cc
  6832. * src/Makefile.am
  6833. * src/Makefile.in
  6834. * src/RequestGroup.cc
  6835. * src/StatCalc.h
  6836. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6837. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6838. SequentialDispatcherCommand.
  6839. * src/FileAllocationDispatcherCommand.cc
  6840. * src/SequentialDispatcherCommand.h
  6841. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6842. Rewritten FileAllocationDispatcherCommand using brand new
  6843. SequentialDispatcherCommand.
  6844. * src/DownloadEngineFactory.cc
  6845. * src/FileAllocationCommand.cc
  6846. * src/FileAllocationDispatcherCommand.cc
  6847. * src/FileAllocationDispatcherCommand.h
  6848. * src/Makefile.am
  6849. * src/SequentialDispatcherCommand.h
  6850. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6851. Replaced FileAllocationMan with
  6852. SequentialPicker<FileAllocationEntry>.
  6853. * src/BtCheckIntegrityEntry.cc
  6854. * src/ConsoleStatCalc.cc
  6855. * src/DownloadEngine.cc
  6856. * src/DownloadEngine.h
  6857. * src/DownloadEngineFactory.cc
  6858. * src/FileAllocationCommand.cc
  6859. * src/FileAllocationDispatcherCommand.cc
  6860. * src/FileAllocationMan.h
  6861. * src/Makefile.am
  6862. * src/SequentialPicker.h
  6863. * src/StatCalc.h
  6864. * src/StreamCheckIntegrityEntry.cc
  6865. * test/Makefile.am
  6866. * test/SequentialPickerTest.cc
  6867. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6868. Added doc for adaptive URI selector.
  6869. * doc/aria2c.1.txt
  6870. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6871. Added doc for adaptive URI selector.
  6872. * src/usage_text.h
  6873. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6874. Added doc for --bt-max-peers option.
  6875. * doc/aria2c.1.txt
  6876. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6877. Added doc for --bt-hash-check-seed option.
  6878. * doc/aria2c.1.txt
  6879. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6880. Documented exit codes.
  6881. * doc/aria2c.1.txt
  6882. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6883. Added --bt-max-peers option to specify the maximum number of peers
  6884. per torrent. 0 means unlimited number of peers.
  6885. * src/ActivePeerConnectionCommand.cc
  6886. * src/BtRuntime.h
  6887. * src/DefaultPeerStorage.cc
  6888. * src/DefaultPeerStorage.h
  6889. * src/OptionHandlerFactory.cc
  6890. * src/RequestGroup.cc
  6891. * src/option_processing.cc
  6892. * src/prefs.cc
  6893. * src/prefs.h
  6894. * src/usage_text.h
  6895. * test/DefaultPeerStorageTest.cc
  6896. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6897. Added --bt-hash-check-seed option. If true is given to this
  6898. option, after hash check using --check-integrity option and file
  6899. is complete, continue to seed file. If you want to check file and
  6900. download it only when it is damaged or incomplete, set this option
  6901. to false. This option has effect only on BitTorrent download.
  6902. The default value is true(This is the same behavior with the
  6903. previous release).
  6904. * src/BtCheckIntegrityEntry.cc
  6905. * src/OptionHandlerFactory.cc
  6906. * src/option_processing.cc
  6907. * src/prefs.cc
  6908. * src/prefs.h
  6909. * src/usage_text.h
  6910. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6911. Updated copyright year.
  6912. * src/version_usage.cc
  6913. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6914. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6915. * doc/aria2c.1.txt
  6916. * src/usage_text.h
  6917. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6918. Made the max value of split option unlimited.
  6919. * doc/aria2c.1.txt
  6920. * src/OptionHandlerFactory.cc
  6921. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6922. Fixed compile warning/error.
  6923. * src/DownloadResult.h
  6924. * src/HttpDownloadCommand.cc
  6925. * src/ServerStat.cc
  6926. * test/RequestGroupTest.cc
  6927. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6928. Added --event-poll option to select the method for polling events.
  6929. The available methods are "select" and "epoll". "epoll" is
  6930. available on Linux only. The earlier release has the compile
  6931. option to choose from these methods.
  6932. * configure.ac
  6933. * src/RequestGroupMan.cc
  6934. * src/OptionHandlerFactory.cc
  6935. * src/EpollEventPoll.h
  6936. * src/StreamFileAllocationEntry.cc
  6937. * src/a2io.h
  6938. * src/SelectEventPoll.h
  6939. * src/option_processing.cc
  6940. * src/prefs.h
  6941. * src/EpollEventPoll.cc
  6942. * src/EventPoll.h
  6943. * src/SocketCore.h
  6944. * src/Makefile.am
  6945. * src/main.cc
  6946. * src/DownloadEngine.h
  6947. * src/SelectEventPoll.cc
  6948. * src/DownloadEngine.cc
  6949. * src/SocketCore.cc
  6950. * src/DownloadEngineFactory.cc
  6951. * src/Makefile.in
  6952. * src/prefs.cc
  6953. * src/usage_text.h
  6954. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6955. Included RecoverableException.h from main.cc
  6956. * src/main.cc
  6957. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6958. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6959. now returns last error encountered in the HTTP/FTP downloads as a
  6960. exit status value. If all downloads finished successfully, aria2
  6961. returns 0. The error code is defined in src/DownloadResult.h.
  6962. The error occurred in the download currently in progress is not
  6963. reported as a last error. If no error has encountered but there
  6964. are in progress or waiting downloads, aria2 returns 7.
  6965. * src/AbstractCommand.cc
  6966. * src/DlAbortEx.h
  6967. * src/DlRetryEx.h
  6968. * src/DownloadCommand.cc
  6969. * src/DownloadFailureException.h
  6970. * src/DownloadResult.h
  6971. * src/FtpNegotiationCommand.cc
  6972. * src/HttpSkipResponseCommand.cc
  6973. * src/Makefile.am
  6974. * src/MultiUrlRequestInfo.cc
  6975. * src/MultiUrlRequestInfo.h
  6976. * src/RecoverableException.h
  6977. * src/RequestGroup.cc
  6978. * src/RequestGroup.h
  6979. * src/RequestGroupMan.cc
  6980. * src/RequestGroupMan.h
  6981. * src/URIResult.cc
  6982. * src/URIResult.h
  6983. * src/main.cc
  6984. * src/option_processing.cc
  6985. * test/RequestGroupTest.cc
  6986. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6987. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6988. patch adds AdaptiveURISelector, which selects one of the bests
  6989. mirrors for first and reserved connections. For supplementary
  6990. ones, it returns mirrors which has not been tested yet, and if
  6991. each of them already tested, returns mirrors which has to be
  6992. tested again. Otherwise, it doesn't return anymore mirrors.
  6993. * src/AdaptiveURISelector.cc
  6994. * src/AdaptiveURISelector.h
  6995. * src/FtpNegotiationCommand.cc
  6996. * src/HttpResponseCommand.cc
  6997. * src/Makefile.am
  6998. * src/Makefile.in
  6999. * src/OptionHandlerFactory.cc
  7000. * src/RequestGroup.cc
  7001. * src/RequestGroup.h
  7002. * src/RequestGroupMan.cc
  7003. * src/ServerStat.cc
  7004. * src/ServerStat.h
  7005. * src/ServerStatMan.cc
  7006. * src/SpeedCalc.cc
  7007. * src/URISelector.h
  7008. * src/prefs.cc
  7009. * src/prefs.h
  7010. * test/RequestGroupManTest.cc
  7011. * test/ServerStatManTest.cc
  7012. * test/ServerStatTest.cc
  7013. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7014. Fixed unit test error.
  7015. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  7016. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7017. * Release 1.1.2
  7018. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7019. Updated Russian translation. Thanks to the translators.
  7020. * po/ru.po
  7021. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7022. Added the description of --use-head option to man page.
  7023. * doc/aria2c.1.txt
  7024. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7025. Bump up version number to 1.1.2
  7026. * configure.ac
  7027. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7028. Added --use-head option to toggle whether HEAD method should be
  7029. used in the first HTTP request. By default aria2 uses HEAD method
  7030. as the first request. When the server doesn't recognize HEAD, then
  7031. give aria2 --use-head=false to force aria2 to use GET method
  7032. instead.
  7033. * src/OptionHandlerFactory.cc
  7034. * src/RequestGroupMan.cc
  7035. * src/option_processing.cc
  7036. * src/prefs.cc
  7037. * src/prefs.h
  7038. * src/usage_text.h
  7039. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7040. Fixed the bug that BitTorrent download doesn't finish when REJECT
  7041. message is received before CHOKE message. The old implementation
  7042. doen't clear the use-bit of the piece when recieved REJECT
  7043. message.
  7044. * src/DefaultBtMessageDispatcher.cc
  7045. * test/DefaultBtMessageDispatcherTest.cc
  7046. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7047. * Release 1.1.1
  7048. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7049. Bump up version number to 1.1.1.
  7050. * configure.ac
  7051. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7052. Fixed the bug that --summary-interval=0 doesn't work. The summary
  7053. is printed repeatedly.
  7054. * src/ConsoleStatCalc.cc
  7055. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7056. * Release 1.1.0
  7057. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7058. Added ifdef clause for conditional compilation.
  7059. * src/main.cc
  7060. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7061. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  7062. translations. Thanks to all translators.
  7063. * po/ja.po
  7064. * po/ru.po
  7065. * po/uk.po
  7066. * po/zh_CN.po
  7067. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7068. Added the preceding ">>> " before the message "Printing the
  7069. contents of file..." to make the output more readable.
  7070. * src/main.cc
  7071. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7072. Added try-catch block in the loop in showFiles() to continue the
  7073. operation even if the exception occurred in one file.
  7074. * src/main.cc (showFiles)
  7075. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7076. Made messages in showFiles() translatable.
  7077. * po/aria2.pot
  7078. * src/main.cc
  7079. * src/message.h
  7080. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7081. Print the contents of Torrent/Metalink files are printed without
  7082. -T/-M options.
  7083. * src/main.cc
  7084. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7085. Escaped '--' with '\--'
  7086. * README
  7087. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7088. Updated "How to build" section in README. Mentioned about
  7089. --with-ca-bundle compile option.
  7090. * README
  7091. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7092. Bump up version number to 1.1.0.
  7093. * configure.ac
  7094. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7095. Added a note for --dht-listen-port option.
  7096. * doc/aria2c.1.txt
  7097. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7098. Update doc for --realtime-chunk-checksum option.
  7099. * doc/aria2c.1.txt
  7100. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7101. Update doc for --realtime-chunk-checksum option.
  7102. * src/usage_text.h
  7103. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7104. Updated French, Japanese, Russian and Ukrainian translations.
  7105. Thanks to all translators.
  7106. * po/fr.po
  7107. * po/ja.po
  7108. * po/ru.po
  7109. * po/uk.po
  7110. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7111. Renamed aria2c.pot to aria2.pot
  7112. * po/aria2.pot
  7113. * po/aria2c.pot: Removed.
  7114. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7115. Removed MetaEntry.h
  7116. * src/Makefile.am
  7117. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7118. Rename file by appending digits if a local file exists and its
  7119. file size is larger than that of remote file with --continue
  7120. option. The old implementation just throws exception in such case.
  7121. * src/RequestGroup.cc
  7122. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7123. Fixed the bug that download progress summary is not printed in the
  7124. interval specified by the option.
  7125. * src/ConsoleStatCalc.cc
  7126. * src/ConsoleStatCalc.h
  7127. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7128. Fixed compiler warning
  7129. * src/Cookie.cc
  7130. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7131. Fixed the cookie implementation based on RFC2965.
  7132. Now if a value in domain field is not started with dot, then
  7133. prepend dot. That means a cookie with domain=sf.net is sent to
  7134. wiki.sf.net.
  7135. * src/Cookie.cc
  7136. * test/CookieParserTest.cc
  7137. * test/CookieStorageTest.cc
  7138. * test/CookieTest.cc
  7139. * test/NsCookieParserTest.cc
  7140. * test/Sqlite3MozCookieParserTest.cc
  7141. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7142. Fixed the bug that causes corrupted downloads if HTTP pipelining
  7143. is enabled and the server doesn't support keep-alive.
  7144. * src/AbstractCommand.cc
  7145. * src/DownloadCommand.cc
  7146. * src/HttpDownloadCommand.cc
  7147. * src/HttpDownloadCommand.h
  7148. * src/HttpResponseCommand.cc
  7149. * src/Request.cc
  7150. * src/Request.h
  7151. * test/RequestTest.cc
  7152. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7153. Removed Dictionary/List/Data and its related classes.
  7154. * src/BencodeVisitor.cc: Removed.
  7155. * src/BencodeVisitor.h: Removed.
  7156. * src/Data.cc: Removed.
  7157. * src/Data.h: Removed.
  7158. * src/Dictionary.cc: Removed.
  7159. * src/Dictionary.h: Removed.
  7160. * src/List.cc: Removed.
  7161. * src/List.h: Removed.
  7162. * src/Makefile.am
  7163. * src/MetaEntry.h: Removed.
  7164. * src/MetaEntryVisitor.h: Removed.
  7165. * src/MetaFileUtil.cc: Removed.
  7166. * src/MetaFileUtil.h: Removed.
  7167. * test/BencodeVisitorTest.cc: Removed.
  7168. * test/DataTest.cc: Removed.
  7169. * test/DictionaryTest.cc: Removed.
  7170. * test/ListTest.cc: Removed.
  7171. * test/Makefile.am
  7172. * test/MetaFileUtilTest.cc: Removed.
  7173. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7174. Removed include of MetaEntry.h
  7175. * test/DHTMessageTrackerEntryTest.cc
  7176. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7177. Use BDE instead of Dictionary/List/Data.
  7178. * src/AnnounceList.cc
  7179. * src/AnnounceList.h
  7180. * test/AnnounceListTest.cc
  7181. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7182. Use BDE instead of Dictionary/List/Data.
  7183. * src/DHTAbstractMessage.cc
  7184. * src/DHTAbstractMessage.h
  7185. * src/DHTAnnouncePeerMessage.cc
  7186. * src/DHTAnnouncePeerMessage.h
  7187. * src/DHTAnnouncePeerReplyMessage.cc
  7188. * src/DHTAnnouncePeerReplyMessage.h
  7189. * src/DHTFindNodeMessage.cc
  7190. * src/DHTFindNodeMessage.h
  7191. * src/DHTFindNodeReplyMessage.cc
  7192. * src/DHTFindNodeReplyMessage.h
  7193. * src/DHTGetPeersMessage.cc
  7194. * src/DHTGetPeersMessage.h
  7195. * src/DHTGetPeersReplyMessage.cc
  7196. * src/DHTGetPeersReplyMessage.h
  7197. * src/DHTMessageFactory.h
  7198. * src/DHTMessageFactoryImpl.cc
  7199. * src/DHTMessageFactoryImpl.h
  7200. * src/DHTMessageReceiver.cc
  7201. * src/DHTMessageTracker.cc
  7202. * src/DHTMessageTracker.h
  7203. * src/DHTPingMessage.cc
  7204. * src/DHTPingMessage.h
  7205. * src/DHTPingReplyMessage.cc
  7206. * src/DHTPingReplyMessage.h
  7207. * src/DHTQueryMessage.cc
  7208. * src/DHTQueryMessage.h
  7209. * src/DHTResponseMessage.cc
  7210. * src/DHTResponseMessage.h
  7211. * test/DHTAnnouncePeerMessageTest.cc
  7212. * test/DHTAnnouncePeerReplyMessageTest.cc
  7213. * test/DHTFindNodeMessageTest.cc
  7214. * test/DHTFindNodeReplyMessageTest.cc
  7215. * test/DHTGetPeersMessageTest.cc
  7216. * test/DHTGetPeersReplyMessageTest.cc
  7217. * test/DHTMessageFactoryImplTest.cc
  7218. * test/DHTMessageTrackerTest.cc
  7219. * test/DHTPingMessageTest.cc
  7220. * test/DHTPingReplyMessageTest.cc
  7221. * test/MockDHTMessageFactory.h
  7222. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7223. Added tests the case where length < 0 is specified.
  7224. * test/BencodeTest.cc
  7225. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7226. Fixed memory leak in decoderawstring()
  7227. * src/bencode.cc
  7228. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7229. Added missing #ifdef guard. Added uc() function for String and
  7230. removeKey() for Dict.
  7231. * src/bencode.cc
  7232. * src/bencode.h
  7233. * test/BencodeTest.cc
  7234. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7235. Use BDE instead of Dictionary/List/Data.
  7236. * src/HandshakeExtensionMessage.cc
  7237. * src/HandshakeExtensionMessage.h
  7238. * test/HandshakeExtensionMessageTest.cc
  7239. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7240. Added --max-overall-upload-limit option. This option limits the
  7241. overall upload speed. Stated in help message that the existing
  7242. --max-upload-limit option limits the upload speed per each
  7243. torrent. Man page is also updated.
  7244. * doc/aria2c.1.txt
  7245. * src/DefaultBtMessageDispatcher.cc
  7246. * src/DefaultBtMessageDispatcher.h
  7247. * src/OptionHandlerFactory.cc
  7248. * src/PeerInteractionCommand.cc
  7249. * src/option_processing.cc
  7250. * src/prefs.cc
  7251. * src/prefs.h
  7252. * src/usage_text.h
  7253. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7254. Use BDE instead of Dictionary/List/Data classes.
  7255. * src/CompactPeerListProcessor.cc
  7256. * src/CompactPeerListProcessor.h
  7257. * src/DefaultBtAnnounce.cc
  7258. * src/DefaultBtContext.cc
  7259. * src/DefaultBtContext.h
  7260. * src/DefaultPeerListProcessor.cc
  7261. * src/DefaultPeerListProcessor.h
  7262. * src/DelegatingPeerListProcessor.cc
  7263. * src/DelegatingPeerListProcessor.h
  7264. * src/PeerListProcessor.h
  7265. * src/UTPexExtensionMessage.cc
  7266. * src/Util.h
  7267. * src/message.h
  7268. * test/DefaultBtContextTest.cc
  7269. * test/DefaultPeerListProcessorTest.cc
  7270. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7271. Added bencode helper functions and BDE class.
  7272. They will replace MetaFileUtil and Dictionary/List/Data classes.
  7273. * src/Makefile.am
  7274. * src/bencode.cc
  7275. * src/bencode.h
  7276. * test/BencodeTest.cc
  7277. * test/Makefile.am
  7278. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7279. Fixed the bug that bad URI is sent to the tracker when the announe
  7280. URI in torrent file includes query.
  7281. * src/DefaultBtAnnounce.cc
  7282. * test/DefaultBtAnnounceTest.cc
  7283. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7284. Added Option::blank().
  7285. Use !Option::blank(name) instead of Option::defined(name) for
  7286. the options that take filename.
  7287. * src/MultiUrlRequestInfo.cc
  7288. * src/Option.cc
  7289. * src/Option.h
  7290. * src/main.cc
  7291. * src/option_processing.cc
  7292. * test/OptionTest.cc
  7293. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7294. Documented the default value of --check-certificate option in man
  7295. page.
  7296. * doc/aria2c.1.txt
  7297. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7298. Enabled --check-certificate by default. Added compile
  7299. time(configure) option --with-ca-bundle to specify CA bundle.
  7300. Warn if --check-certificate=true and --ca-certificate is not
  7301. specified or loading CA certificate is failed.
  7302. * configure.ac
  7303. * src/MultiUrlRequestInfo.cc
  7304. * src/OptionHandlerFactory.cc
  7305. * src/message.h
  7306. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7307. Mentioned https tag in help option.
  7308. * doc/aria2c.1.txt
  7309. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7310. Added `https' tag to help option category. Added https tag to
  7311. --ca-certificate, --certificate, --check-certificate and
  7312. --private-key option.
  7313. * src/OptionHandlerFactory.cc
  7314. * src/help_tags.h
  7315. * src/option_processing.cc
  7316. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7317. Changed the package name from `aria2c' to `aria2' in order to fix
  7318. the packaging issue in Debian and Fedora. The name of the
  7319. executable is not changed.
  7320. * configure.ac
  7321. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7322. Fixed typos
  7323. * src/usage_text.h
  7324. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7325. Fixed typos and updated doc.
  7326. * README
  7327. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7328. Fixed typos
  7329. * doc/aria2c.1.txt
  7330. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7331. Fixed typos
  7332. * src/usage_text.h
  7333. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7334. Print a message when no files to download.
  7335. * src/download_helper.cc
  7336. * src/main.cc
  7337. * src/message.h
  7338. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7339. RFC3986 complied Percent-Encoding(urlencode).
  7340. Use uppercase hexadecimal digits for encoded text instead of lowercase
  7341. ones.
  7342. * src/Request.cc
  7343. * src/Util.cc
  7344. * src/Util.h
  7345. * test/BtHandshakeMessageTest.cc
  7346. * test/DefaultBtAnnounceTest.cc
  7347. * test/DefaultBtContextTest.cc
  7348. * test/RequestTest.cc
  7349. * test/UtilTest.cc
  7350. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7351. Fixed the bug that prevents aria2 from downloading 0-length files
  7352. via HTTP/FTP.
  7353. * src/DefaultBtContext.cc
  7354. * src/DefaultBtContext.h
  7355. * src/DownloadContext.h
  7356. * src/FtpNegotiationCommand.cc
  7357. * src/HttpResponseCommand.cc
  7358. * src/HttpResponseCommand.h
  7359. * src/RequestGroup.cc
  7360. * src/SingleFileDownloadContext.cc
  7361. * src/SingleFileDownloadContext.h
  7362. * test/BtPostDownloadHandlerTest.cc
  7363. * test/MetalinkPostDownloadHandlerTest.cc
  7364. * test/MockBtContext.h
  7365. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7366. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  7367. * src/option_processing.cc
  7368. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7369. Applied aria2-1.0.1-mingw.patch.
  7370. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  7371. mingw.
  7372. Collected 4th and 5th argument types for getsockopt and setsockopt.
  7373. * src/SocketCore.cc
  7374. * src/a2netcompat.h
  7375. * test/SocketCoreTest.cc
  7376. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7377. * Release 1.0.1
  7378. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7379. Updated Ukrainian and Norwegian Nynorsk translations.
  7380. Thanks to all translators.
  7381. * po/nn.po
  7382. * po/uk.po
  7383. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7384. Don't show download result when -S option is used.
  7385. * src/main.cc
  7386. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7387. Bump up version number to 1.0.1
  7388. * configure.ac
  7389. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7390. Closed files after the test cases in MultiDiskWriterTest::
  7391. testResetDiskWriterEntries(). This will fix the unit test error
  7392. in mingw32 build.
  7393. * test/MultiDiskWriterTest.cc
  7394. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7395. Use HEAD method to get file size from HTTP server for segmented
  7396. downloading.
  7397. The request to the BitTorrent Tracker always uses GET method because
  7398. the response of the tracker is small and it doesn't need segmented
  7399. download.
  7400. * src/FtpNegotiationCommand.cc
  7401. * src/HttpRequest.cc
  7402. * src/HttpResponseCommand.cc
  7403. * src/HttpSkipResponseCommand.cc
  7404. * src/RequestGroup.cc
  7405. * src/RequestGroup.h
  7406. * src/TrackerWatcherCommand.cc
  7407. * test/HttpRequestTest.cc
  7408. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7409. Fixed the bug that causes floating exception when -T option is used and
  7410. no URIs are given.
  7411. * src/download_helper.cc
  7412. * test/DownloadHelperTest.cc
  7413. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7414. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7415. errors in MinGW:
  7416. Closed file after saving server stats (RequestGroupMan.cc)
  7417. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7418. Ignored case & handled 2-digit years (strptime.c)
  7419. Added missing suseconds_t definition (a2time.h)
  7420. Fixed socket CLOSE() define (SocketCore.cc)
  7421. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7422. Changed utime() test values from x000 to x00000 as MinGW failed on
  7423. values less than timezone offset from Unix epoch
  7424. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7425. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7426. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7427. handle negative dates (CookieParserTest.cc)
  7428. * src/a2time.h
  7429. * src/FtpConnection.cc
  7430. * src/RequestGroupMan.cc
  7431. * src/SocketCore.cc
  7432. * src/strptime.c
  7433. * test/CookieParserTest.cc
  7434. * test/CopyDiskAdaptorTest.cc
  7435. * test/FileTest.cc
  7436. * test/FtpConnectionTest.cc
  7437. * test/MultiDiskAdaptorTest.cc
  7438. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7439. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7440. * doc/aria2c.1.txt
  7441. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7442. * Release 1.0.0
  7443. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7444. Added '~' to reserved characters.
  7445. * src/Util.cc
  7446. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7447. Do not urlencode Request::url in setUrl() because we want unmodified
  7448. URL using Request::getUrl()
  7449. * src/Request.cc
  7450. * src/Request.h
  7451. * test/RequestTest.cc
  7452. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7453. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7454. Thanks to all translators.
  7455. * po/bg.po
  7456. * po/fr.po
  7457. * po/ja.po
  7458. * po/ru.po
  7459. * po/uk.po
  7460. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7461. Bump up version number to 1.0.0
  7462. * configure.ac
  7463. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7464. Added nosqlite3 build to build_test.sh.
  7465. Renamed noxml as expat.
  7466. * build_test.sh
  7467. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7468. Updated INPUT FILE section.
  7469. * doc/aria2c.1.txt
  7470. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7471. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7472. on big endian systems because test .aria2 files are made for little
  7473. endian systems.
  7474. * test/DefaultBtProgressInfoFileTest.cc
  7475. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7476. Dropped ares support.
  7477. * README
  7478. * configure.ac
  7479. * m4/libares.m4: Removed.
  7480. * src/AsyncNameResolver.cc
  7481. * src/Makefile.am
  7482. * test/Makefile.am
  7483. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7484. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7485. Removed const qualifier from DiskWriter::size().
  7486. * src/AbstractDiskWriter.cc
  7487. * src/AbstractDiskWriter.h
  7488. * src/ByteArrayDiskWriter.cc
  7489. * src/ByteArrayDiskWriter.h
  7490. * src/DiskWriter.h
  7491. * test/ByteArrayDiskWriterTest.cc
  7492. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7493. Fixed the bug that causes segmentation fault/bus error during executing
  7494. choking algorithm while seeding. This is caused by improper
  7495. implementation of compare function which returns inconsistent results
  7496. depending on the timing of last unchoke.
  7497. * src/BtSeederStateChoke.cc
  7498. * src/BtSeederStateChoke.h
  7499. * src/DefaultPeerStorage.cc
  7500. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7501. Removed TODO
  7502. * TODO
  7503. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7504. Added a section that explains how to pass argument to options that
  7505. takes optional arguments with its short form.
  7506. * doc/aria2c.1.txt
  7507. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7508. Added -u for the short form of --max-upload-limit option.
  7509. * doc/aria2c.1.txt
  7510. * src/option_processing.cc
  7511. * src/usage_text.h
  7512. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7513. Added -V for the short form of --check-integrity option.
  7514. Now the argument of --check-integrity option is optional:
  7515. if it is omitted, it is evaluated as true.
  7516. * doc/aria2c.1.txt
  7517. * src/option_processing.cc
  7518. * src/usage_text.h
  7519. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7520. Made the default value of --ftp-pasv option set to true and it can take
  7521. true/false values.
  7522. * src/OptionHandlerFactory.cc
  7523. * src/option_processing.cc
  7524. * src/usage_text.h
  7525. * doc/aria2c.1.txt
  7526. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7527. Given custom random number generator to std::random_shuffle.
  7528. * src/AnnounceList.cc
  7529. * src/BtLeecherStateChoke.cc
  7530. * src/BtSeederStateChoke.cc
  7531. * src/DefaultBtRequestFactory.cc
  7532. * src/MetalinkEntry.cc
  7533. * src/RarestPieceSelector.cc
  7534. * src/SimpleRandomizer.cc
  7535. * src/SimpleRandomizer.h
  7536. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7537. Now the default value of --enable-direct-io is true.
  7538. * src/OptionHandlerFactory.cc
  7539. * doc/aria2c.1.txt
  7540. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7541. Erase peer before executing onReturningPeer and onErasingPeer
  7542. because choking algorithm called from onReturningPeer doesn't
  7543. like erasing peer in the active peer list.
  7544. * src/DefaultPeerStorage.cc
  7545. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7546. Instead of creating special filename in createDownloadResult() if
  7547. inMemoryDownload() is true, now it is done in getFilePath().
  7548. * src/RequestGroup.cc
  7549. * test/RequestGroupTest.cc
  7550. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7551. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7552. processed in memory. This is the fix for previous comment out.
  7553. * src/MemoryBufferPreDownloadHandler.cc
  7554. * src/RequestGroup.cc
  7555. * src/RequestGroup.h
  7556. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7557. Commented out the code which sets virtual directory path "[MEMORY]"
  7558. propagate directory to store to following RequestGroup.
  7559. * src/MemoryBufferPreDownloadHandler.cc
  7560. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7561. Bump up version number to 1.0.0b
  7562. * configure.ac
  7563. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7564. Added input_uris.txt to EXTRA_DIST
  7565. * test/Makefile.am
  7566. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7567. Removed PeerObject.h from Makefile.am
  7568. * src/Makefile.am
  7569. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7570. Avoid slow seeding
  7571. * src/PeerInteractionCommand.cc
  7572. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7573. Updated usage for -i option.
  7574. * src/usage_text.h (TEXT_INPUT_FILE)
  7575. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7576. Added INPUT FILE section to man page.
  7577. Escaped fake URLs.
  7578. * doc/aria2c.1.txt
  7579. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7580. Fixed wrong note position for -o option.
  7581. * doc/aria2c.1.txt
  7582. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7583. Fixed compile error without SSL/XML library.
  7584. * src/DefaultBtProgressInfoFile.cc
  7585. * src/DefaultBtProgressInfoFile.h
  7586. * src/FileMetalinkParserState.cc
  7587. * src/RequestGroup.h
  7588. * src/SocketCore.cc
  7589. * src/SocketCore.h
  7590. * src/VerificationMetalinkParserState.cc
  7591. * src/download_helper.h
  7592. * src/main.cc
  7593. * test/DefaultBtProgressInfoFileTest.cc
  7594. * test/DownloadHelperTest.cc
  7595. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7596. Rewritten URI handling functions. They are now provided as a testable
  7597. functions.
  7598. * src/Makefile.am
  7599. * src/RequestGroup.cc
  7600. * src/RequestGroup.h
  7601. * src/download_helper.cc
  7602. * src/download_helper.h
  7603. * src/main.cc
  7604. * test/DownloadHelperTest.cc
  7605. * test/Makefile.am
  7606. * test/input_uris.txt
  7607. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7608. Quickly terminate commands when ctrl-c is pressed.
  7609. * src/DownloadEngine.cc
  7610. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7611. Quickly terminate idle commands when download finished.
  7612. * src/AbstractCommand.cc
  7613. * src/DownloadCommand.cc
  7614. * src/DownloadEngine.cc
  7615. * src/DownloadEngine.h
  7616. * src/SleepCommand.cc
  7617. * src/SleepCommand.h
  7618. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7619. Added the ability to specify output filename and directory in input
  7620. file.
  7621. Additional parameters are added in the following line of URIs
  7622. with proceeding white space(s), 1 parameter in 1 line.
  7623. The parameter names are the same with the command-line option name
  7624. without proceeding "--". Not all the options are available here:
  7625. at the moment, 'dir' and 'out' options are avialable.
  7626. Please note that out option has no effect against Metalink or BitTorrent
  7627. downloads.
  7628. Example input file:
  7629. http://host/foo-1.1.tar.bz2
  7630. out=foo.tar.bz2
  7631. dir=/tmp/downloads
  7632. http://host/thundermonkey-2.0.tar.bz2
  7633. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7634. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7635. thundermonkey-2.0.tar.bz2 is saved as
  7636. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7637. * src/BtPostDownloadHandler.cc
  7638. * src/Metalink2RequestGroup.cc
  7639. * src/Metalink2RequestGroup.h
  7640. * src/MetalinkPostDownloadHandler.cc
  7641. * src/UriListParser.cc
  7642. * src/UriListParser.h
  7643. * src/main.cc
  7644. * test/Metalink2RequestGroupTest.cc
  7645. * test/UriListParserTest.cc
  7646. * test/filelist1.txt
  7647. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7648. Fixed error when SSL library is not found.
  7649. * configure.ac
  7650. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7651. Cross referenced among -s, -C and -j options.
  7652. Updated usage of -C and -s options.
  7653. * src/usage_text.h
  7654. * doc/aria2c.1.txt
  7655. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7656. Fixed bad cast in 32bit platforms.
  7657. * test/DefaultPieceStorageTest.cc
  7658. (DefaultPieceStorageTest::testGetCompletedLength)
  7659. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7660. Fixed unit test fails on 32bit platforms.
  7661. * test/CookieParserTest.cc
  7662. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7663. Show an average download speed in Download results.
  7664. * src/BtFileAllocationEntry.cc
  7665. * src/DefaultPieceStorage.cc
  7666. * src/DownloadContext.cc
  7667. * src/DownloadContext.h
  7668. * src/DownloadResult.h
  7669. * src/RequestGroup.cc
  7670. * src/RequestGroupMan.cc
  7671. * src/StreamFileAllocationEntry.cc
  7672. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7673. Fixed the bug that metalink file is not processed if Content-Type
  7674. field has a paramter.
  7675. * src/HttpResponse.cc
  7676. * src/HttpResponse.h
  7677. * test/HttpResponseTest.cc
  7678. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7679. Removed unused code.
  7680. * src/DefaultBtAnnounce.cc
  7681. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7682. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7683. the value larger than DefaultPieceStorage::getTotalLength() when
  7684. in flight pieces are involved.
  7685. * src/DefaultPieceStorage.cc
  7686. * test/DefaultPieceStorageTest.cc
  7687. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7688. Bump up version number to 1.0.0a.
  7689. * configure.ac
  7690. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7691. Updated configure.ac
  7692. * configure.ac
  7693. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7694. Added usege for proxy.
  7695. * doc/aria2c.1.txt
  7696. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7697. Added usage for --ca-certificate, --certificate, --private-key and
  7698. --check-certificate options.
  7699. * doc/aria2c.1.txt
  7700. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7701. Updated man page
  7702. * doc/aria2c.1.txt
  7703. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7704. Added --no-proxy option. It receives comman separated hostname or
  7705. domains to which proxy should not be used.
  7706. aria2 honors the environment variable no_proxy to override no-proxy
  7707. value in configuration file. The user can override the environment
  7708. variable no_proxy with --no-proxy command-line option.
  7709. * src/AbstractCommand.cc
  7710. * src/OptionHandlerFactory.cc
  7711. * src/option_processing.cc
  7712. * src/prefs.cc
  7713. * src/prefs.h
  7714. * src/usage_text.h
  7715. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7716. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7717. The CA certificates are specified in --ca-certificate option.
  7718. By default, the verification is disabled. Use --check-certificate
  7719. option to enable it.
  7720. * src/HttpRequestCommand.cc
  7721. * src/LibgnutlsTLSContext.cc
  7722. * src/LibgnutlsTLSContext.h
  7723. * src/LibsslTLSContext.cc
  7724. * src/LibsslTLSContext.h
  7725. * src/MultiUrlRequestInfo.cc
  7726. * src/OptionHandlerFactory.cc
  7727. * src/SocketCore.cc
  7728. * src/SocketCore.h
  7729. * src/a2functional.h
  7730. * src/message.h
  7731. * src/option_processing.cc
  7732. * src/prefs.cc
  7733. * src/prefs.h
  7734. * src/usage_text.h
  7735. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7736. Added client certificate authentication for SSL/TLS.
  7737. Currently a private key must be decrypted for use with aria2.
  7738. If a user accidentally gives encrypted file to aria2 then following
  7739. thing happens:
  7740. If encrypted private key is given to aria2, it behaves differently
  7741. depending on the ssl library it uses. If aria2 built with openssl then
  7742. openssl prompts the user for password. If aria2 build with gnutls then
  7743. aria2 exists with error at start up.
  7744. * src/DownloadEngineFactory.cc
  7745. * src/MultiUrlRequestInfo.cc
  7746. * src/OptionHandlerFactory.cc
  7747. * src/option_processing.cc
  7748. * src/prefs.cc
  7749. * src/prefs.h
  7750. * src/usage_text.h
  7751. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7752. Introduced TLSContext that holds TLS related data that can be shared
  7753. with multiple SSL connections.
  7754. * src/DownloadEngineFactory.cc
  7755. * src/LibgnutlsTLSContext.cc
  7756. * src/LibgnutlsTLSContext.h
  7757. * src/LibsslTLSContext.cc
  7758. * src/LibsslTLSContext.h
  7759. * src/Makefile.am
  7760. * src/SocketCore.cc
  7761. * src/SocketCore.h
  7762. * src/TLSContext.h
  7763. * src/message.h
  7764. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7765. Fixed the bug that the DiskWriter of the first FileEntry whose
  7766. `needsFileAllocation' property is false is not created
  7767. even if it shares a piece with next FileEntry which `requested' property
  7768. is true.
  7769. Fixed the bug that zero-length file is not created if pre file
  7770. allocation is not done.
  7771. * src/MultiDiskAdaptor.cc
  7772. * src/MultiDiskAdaptor.h
  7773. * test/MultiDiskAdaptorTest.cc
  7774. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Added the ability to pool proxy connection.
  7776. The conneciton in FTP with proxy-method=GET is not pooled.
  7777. Proxy-Connection header will not be sent when sending CONNECT method.
  7778. * src/DownloadEngine.cc
  7779. * src/DownloadEngine.h
  7780. * src/FtpFinishDownloadCommand.cc
  7781. * src/FtpInitiateConnectionCommand.cc
  7782. * src/FtpNegotiationCommand.cc
  7783. * src/HttpDownloadCommand.cc
  7784. * src/HttpInitiateConnectionCommand.cc
  7785. * src/HttpRequest.cc
  7786. * src/HttpRequest.h
  7787. * src/HttpResponse.cc
  7788. * src/HttpSkipResponseCommand.cc
  7789. * test/HttpRequestTest.cc
  7790. * test/HttpResponseTest.cc
  7791. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7792. Handle date before epoch.
  7793. To create *bad* Time object, call Time::null().
  7794. * src/CookieParser.cc
  7795. * src/FtpConnection.cc
  7796. * src/FtpConnection.h
  7797. * src/FtpNegotiationCommand.cc
  7798. * src/RequestGroup.cc
  7799. * src/TimeA2.cc
  7800. * src/TimeA2.h
  7801. * test/CookieParserTest.cc
  7802. * test/FtpConnectionTest.cc
  7803. * test/TimeTest.cc
  7804. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7805. Added support for following envrionment variables: http_proxy,
  7806. https_proxy, ftp_proxy and all_proxy.
  7807. Each variable is equivalent to the aria2 option whose name is the
  7808. variable name with '_' replaced with '-'.
  7809. They overrides options specified in aria2.conf file.
  7810. The envrionment variables can be overrode using command-line option.
  7811. * src/option_processing.cc
  7812. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. Renamed --http-proxy-method as --proxy-method.
  7814. * src/AbstractCommand.cc
  7815. * src/FtpInitiateConnectionCommand.cc
  7816. * src/HttpInitiateConnectionCommand.cc
  7817. * src/OptionHandlerFactory.cc
  7818. * src/option_processing.cc
  7819. * src/prefs.cc
  7820. * src/prefs.h
  7821. * src/usage_text.h
  7822. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7824. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7825. Above 3 options and --http-proxy option can handle proxy in URL format
  7826. like: http://user:passwd@host:port.
  7827. If a proxy requires user/password, they must be specified in a URL.
  7828. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7829. instead.
  7830. * src/AbstractCommand.cc
  7831. * src/AbstractCommand.h
  7832. * src/AbstractProxyRequestCommand.cc
  7833. * src/AbstractProxyRequestCommand.h
  7834. * src/AuthConfigFactory.cc
  7835. * src/AuthConfigFactory.h
  7836. * src/FtpFinishDownloadCommand.cc
  7837. * src/FtpInitiateConnectionCommand.cc
  7838. * src/FtpInitiateConnectionCommand.h
  7839. * src/FtpNegotiationCommand.cc
  7840. * src/FtpTunnelRequestCommand.cc
  7841. * src/FtpTunnelRequestCommand.h
  7842. * src/HttpDownloadCommand.cc
  7843. * src/HttpInitiateConnectionCommand.cc
  7844. * src/HttpInitiateConnectionCommand.h
  7845. * src/HttpProxyRequestCommand.cc
  7846. * src/HttpProxyRequestCommand.h
  7847. * src/HttpRequest.cc
  7848. * src/HttpRequest.h
  7849. * src/HttpRequestCommand.cc
  7850. * src/HttpRequestCommand.h
  7851. * src/HttpSkipResponseCommand.cc
  7852. * src/InitiateConnectionCommand.cc
  7853. * src/InitiateConnectionCommand.h
  7854. * src/OptionHandlerFactory.cc
  7855. * src/OptionHandlerImpl.h
  7856. * src/Request.cc
  7857. * src/option_processing.cc
  7858. * src/prefs.cc
  7859. * src/prefs.h
  7860. * src/usage_text.h
  7861. * test/AuthConfigFactoryTest.cc
  7862. * test/HttpRequestTest.cc
  7863. * test/OptionHandlerTest.cc
  7864. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7865. Execute choking algorithm when unchoked and interested peer is
  7866. disconected.
  7867. * src/DefaultPeerStorage.cc
  7868. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. Added testcase for BtNotInterestedMessage from unchoked peer.
  7870. * test/BtNotInterestedMessageTest.cc
  7871. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Execute choking algorithm when BtInterestedMessage arrives from
  7873. unchoked peer.
  7874. * src/BtInterestedMessage.cc
  7875. * src/BtInterestedMessage.h
  7876. * src/DefaultBtMessageFactory.cc
  7877. * test/BtInterestedMessageTest.cc
  7878. * test/MockPeerStorage.h
  7879. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7880. AuthConfigFactory is now part of DownloadEngine.
  7881. * src/AbstractProxyRequestCommand.cc
  7882. * src/AuthConfigFactory.h
  7883. * src/DownloadEngine.cc
  7884. * src/DownloadEngine.h
  7885. * src/FtpConnection.cc
  7886. * src/FtpConnection.h
  7887. * src/FtpNegotiationCommand.cc
  7888. * src/HttpConnection.cc
  7889. * src/HttpRequest.cc
  7890. * src/HttpRequest.h
  7891. * src/HttpRequestCommand.cc
  7892. * src/HttpResponse.cc
  7893. * src/HttpResponseCommand.cc
  7894. * src/HttpSkipResponseCommand.cc
  7895. * src/MultiUrlRequestInfo.cc
  7896. * src/main.cc
  7897. * test/FtpConnectionTest.cc
  7898. * test/HttpRequestTest.cc
  7899. * test/HttpResponseTest.cc
  7900. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7901. Corrected catched exception type.
  7902. * src/ServerStatMan.cc
  7903. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7904. DNSCache is now part of DownloadEngine.
  7905. * src/DNSCache.h
  7906. * src/DownloadEngine.cc
  7907. * src/DownloadEngine.h
  7908. * src/InitiateConnectionCommand.cc
  7909. * src/MultiUrlRequestInfo.cc
  7910. * test/Makefile.am
  7911. * test/Makefile.in
  7912. * test/SimpleDNSCacheTest.cc
  7913. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7915. DownloadEngine.
  7916. * src/ActivePeerConnectionCommand.cc
  7917. * src/BtSetup.cc
  7918. * src/CUIDCounter.h
  7919. * src/DHTSetup.cc
  7920. * src/DownloadCommand.cc
  7921. * src/DownloadEngine.cc
  7922. * src/DownloadEngine.h
  7923. * src/DownloadEngineFactory.cc
  7924. * src/FileAllocationDispatcherCommand.cc
  7925. * src/InitiatorMSEHandshakeCommand.cc
  7926. * src/PeerInitiateConnectionCommand.cc
  7927. * src/PeerInteractionCommand.cc
  7928. * src/PeerListenCommand.cc
  7929. * src/RequestGroup.cc
  7930. * src/StreamFileAllocationEntry.cc
  7931. * src/TrackerWatcherCommand.cc
  7932. * src/main.cc
  7933. * test/RequestGroupManTest.cc
  7934. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Implemented commented code in BtSeederStateChoke
  7936. * src/BtSeederStateChoke.cc
  7937. * src/Peer.cc
  7938. * src/Peer.h
  7939. * src/PeerInteractionCommand.cc
  7940. * src/PeerSessionResource.cc
  7941. * src/PeerSessionResource.h
  7942. * test/MockBtMessageDispatcher.h
  7943. * test/PeerSessionResourceTest.cc
  7944. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7945. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7946. its object.
  7947. * src/AbstractBtMessage.cc
  7948. * src/ActivePeerConnectionCommand.cc
  7949. * src/ActivePeerConnectionCommand.h
  7950. * src/BtContextAwareCommand.cc
  7951. * src/BtContextAwareCommand.h
  7952. * src/BtExtendedMessage.cc
  7953. * src/BtExtendedMessage.h
  7954. * src/BtInterestedMessage.cc
  7955. * src/BtInterestedMessage.h
  7956. * src/BtNotInterestedMessage.cc
  7957. * src/BtNotInterestedMessage.h
  7958. * src/BtRegistry.cc
  7959. * src/BtRegistry.h
  7960. * src/BtSeederStateChoke.cc
  7961. * src/BtSetup.cc
  7962. * src/DHTGetPeersCommand.cc
  7963. * src/DHTGetPeersCommand.h
  7964. * src/DHTPeerAnnounceEntry.cc
  7965. * src/DHTPeerAnnounceEntry.h
  7966. * src/DHTPeerAnnounceStorage.cc
  7967. * src/DHTPeerAnnounceStorage.h
  7968. * src/DHTPeerLookupTask.cc
  7969. * src/DHTPeerLookupTask.h
  7970. * src/DHTSetup.cc
  7971. * src/DHTSetup.h
  7972. * src/DHTTaskFactory.h
  7973. * src/DHTTaskFactoryImpl.cc
  7974. * src/DHTTaskFactoryImpl.h
  7975. * src/DefaultBtAnnounce.cc
  7976. * src/DefaultBtInteractive.cc
  7977. * src/DefaultBtInteractive.h
  7978. * src/DefaultBtMessageDispatcher.cc
  7979. * src/DefaultBtMessageDispatcher.h
  7980. * src/DefaultBtMessageFactory.cc
  7981. * src/DefaultBtMessageFactory.h
  7982. * src/DefaultBtMessageReceiver.cc
  7983. * src/DefaultBtProgressInfoFile.cc
  7984. * src/DefaultBtProgressInfoFile.h
  7985. * src/DefaultBtRequestFactory.cc
  7986. * src/DefaultBtRequestFactory.h
  7987. * src/DefaultExtensionMessageFactory.cc
  7988. * src/DefaultExtensionMessageFactory.h
  7989. * src/DefaultPeerStorage.cc
  7990. * src/DefaultPeerStorage.h
  7991. * src/DownloadEngine.cc
  7992. * src/DownloadEngine.h
  7993. * src/InitiatorMSEHandshakeCommand.cc
  7994. * src/InitiatorMSEHandshakeCommand.h
  7995. * src/MSEHandshake.cc
  7996. * src/MSEHandshake.h
  7997. * src/Makefile.am
  7998. * src/Makefile.in
  7999. * src/PeerChokeCommand.cc
  8000. * src/PeerChokeCommand.h
  8001. * src/PeerInitiateConnectionCommand.cc
  8002. * src/PeerInitiateConnectionCommand.h
  8003. * src/PeerInteractionCommand.cc
  8004. * src/PeerInteractionCommand.h
  8005. * src/PeerObject.h
  8006. * src/PeerReceiveHandshakeCommand.cc
  8007. * src/PeerReceiveHandshakeCommand.h
  8008. * src/ReceiverMSEHandshakeCommand.cc
  8009. * src/RequestGroup.cc
  8010. * src/RequestGroup.h
  8011. * src/RequestGroupMan.cc
  8012. * src/RequestGroupMan.h
  8013. * src/SeedCheckCommand.cc
  8014. * src/SeedCheckCommand.h
  8015. * src/ShareRatioSeedCriteria.h
  8016. * src/SimpleBtMessage.cc
  8017. * src/TrackerWatcherCommand.cc
  8018. * src/TrackerWatcherCommand.h
  8019. * src/UTPexExtensionMessage.cc
  8020. * src/UTPexExtensionMessage.h
  8021. * test/BtCancelMessageTest.cc
  8022. * test/BtChokeMessageTest.cc
  8023. * test/BtExtendedMessageTest.cc
  8024. * test/BtInterestedMessageTest.cc
  8025. * test/BtNotInterestedMessageTest.cc
  8026. * test/BtPieceMessageTest.cc
  8027. * test/BtPortMessageTest.cc
  8028. * test/BtRegistryTest.cc
  8029. * test/BtRejectMessageTest.cc
  8030. * test/BtRequestMessageTest.cc
  8031. * test/DHTPeerAnnounceEntryTest.cc
  8032. * test/DHTPeerAnnounceStorageTest.cc
  8033. * test/DefaultBtMessageDispatcherTest.cc
  8034. * test/DefaultBtMessageFactoryTest.cc
  8035. * test/DefaultBtProgressInfoFileTest.cc
  8036. * test/DefaultBtRequestFactoryTest.cc
  8037. * test/DefaultExtensionMessageFactoryTest.cc
  8038. * test/MSEHandshakeTest.cc
  8039. * test/MockDHTTaskFactory.h
  8040. * test/ShareRatioSeedCriteriaTest.cc
  8041. * test/UTPexExtensionMessageTest.cc
  8042. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8043. Fixed compiler warning.
  8044. * test/UtilTest.cc
  8045. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8046. Treat Cookie object as session cookie if expiry = 0 is given.
  8047. With this change, you can specify session scoped cookies in an external
  8048. file setting expiry value to 0.
  8049. * src/Cookie.cc
  8050. * src/Cookie.h
  8051. * test/CookieParserTest.cc
  8052. * test/CookieStorageTest.cc
  8053. * test/CookieTest.cc
  8054. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Changed signature of DHTMessageFactory::createResponseMessage().
  8056. Removed unused validateIDMatch.
  8057. * src/DHTMessageFactory.h
  8058. * src/DHTMessageFactoryImpl.cc
  8059. * src/DHTMessageFactoryImpl.h
  8060. * src/DHTMessageTracker.cc
  8061. * test/DHTMessageFactoryImplTest.cc
  8062. * test/MockDHTMessageFactory.h
  8063. Dropped DHT message coming from same ID of localhost.
  8064. * src/DHTMessageReceiver.cc
  8065. Rejected adding node whose ID is the same as localhost's.
  8066. * src/DHTRoutingTable.cc
  8067. * test/BtPortMessageTest.cc
  8068. * test/DHTRoutingTableTest.cc
  8069. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. Pool connection when redirection occurs with Content-Length = 0.
  8071. * src/HttpSkipResponseCommand.cc
  8072. * src/HttpSkipResponseCommand.h
  8073. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8074. Fixed the bug that causes time out when redirection occurs with
  8075. content-length 0.
  8076. * src/HttpResponseCommand.cc
  8077. * src/HttpSkipResponseCommand.cc
  8078. * src/HttpSkipResponseCommand.h
  8079. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. Now each status legends is shown only when it appears in Download
  8081. Result. If Download Result has no item, then status legend will not
  8082. be printed.
  8083. * src/RequestGroupMan.cc
  8084. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. Removed duplicate creation of OptionHandlers.
  8086. * src/option_processing.cc
  8087. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8088. Fixed the bug that causes segmentation fault when accessing files which
  8089. don't exist or are not included in --select-file option while
  8090. validating chunk checksum.
  8091. * src/MultiDiskAdaptor.cc
  8092. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8093. Fixed compiler warning.
  8094. * test/UtilTest.cc
  8095. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8096. Included cstdlib. This fixed the compile error with g++-4.3.2.
  8097. * src/IteratableChecksumValidator.cc
  8098. * src/IteratableChunkChecksumValidator.cc
  8099. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8100. * Release 0.16.2
  8101. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8102. Added Serbian translation. Updated Ukrainian translation.
  8103. Thanks to all translators.
  8104. * po/sr.po
  8105. * po/uk.po
  8106. * po/LINGUAS
  8107. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. Bump up version number to 0.16.2
  8109. * configure.ac
  8110. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Added length equality test to operator== to drop a piece message
  8112. whose length does not match to the requested one.
  8113. * src/RequestSlot.cc
  8114. * test/DefaultBtMessageDispatcherTest.cc
  8115. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  8117. recieved.
  8118. In this fix, if a request larger than 16KiB length is received, aria2
  8119. disconnects the peer.
  8120. * src/BtConstants.h
  8121. * src/PeerMessageUtil.cc
  8122. * src/PeerMessageUtil.h
  8123. * test/BtRequestMessageTest.cc
  8124. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8125. * Release 0.16.1
  8126. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  8128. * doc/aria2c.1.txt
  8129. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  8131. Updated French, Simplified Chinese and Japanese translations.
  8132. Thanks to all translators.
  8133. en@quot and en@boldquot are also added.
  8134. * po/LINGUAS
  8135. * po/fr.po
  8136. * po/ja.po
  8137. * po/uk.po
  8138. * po/vi.po
  8139. * po/zh_CN.po
  8140. * po/zh_TW.po
  8141. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8142. Bump up version number to 0.16.1.
  8143. * configure.ac
  8144. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. Updated README.
  8146. * README
  8147. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8148. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  8149. not to replace '--' with em dash character.
  8150. * doc/aria2c.1.txt
  8151. * doc/makeman
  8152. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  8154. every SEC seconds.
  8155. * src/DownloadEngineFactory.cc
  8156. * src/OptionHandlerFactory.cc
  8157. * src/option_processing.cc
  8158. * src/usage_text.h
  8159. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8160. Fixed compile warning on linux-amd64
  8161. * src/FtpConnection.cc
  8162. * src/IteratableChunkChecksumValidator.cc
  8163. * src/MultiDiskAdaptor.cc
  8164. Fixed the bug that unit test fails on linux-amd64
  8165. * test/UtilTest.cc
  8166. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. Added --dht-file-path option to change the path to dht.dat, which is a
  8168. serialized DHT routing table.
  8169. * src/OptionHandlerFactory.cc
  8170. * src/option_processing.cc
  8171. * src/usage_text.h
  8172. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8173. Fixed possible underflow.
  8174. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  8175. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Fixed the bug that last character in URI is not encoded.
  8177. * src/Request.cc
  8178. * test/RequestTest.cc
  8179. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8180. Fixed the bug that referer header field contains fragment.
  8181. Now Request class removes fragment part of URI and encodes it
  8182. in Request::setUri() and setReferer().
  8183. * src/Request.h
  8184. * src/Request.cc
  8185. * test/RequestTest.cc
  8186. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Added missing m4 macros.
  8188. * m4/cppunit.m4
  8189. * m4/libgcrypt.m4
  8190. * m4/libgnutls-extra.m4
  8191. * m4/libgnutls.m4
  8192. * m4/libxml2.m4
  8193. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. Fixed compile error with gcc-4.4(snapshot)
  8195. * src/File.cc
  8196. * src/FtpConnection.cc
  8197. * src/OptionHandlerImpl.h
  8198. * src/Util.cc
  8199. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8200. Removed assert()
  8201. * src/SocketBuffer.cc (SocketBuffer::send)
  8202. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8203. Changed the type of _numNewConnection to unsigned int.
  8204. * src/ActivePeerConnectionCommand.cc
  8205. * src/ActivePeerConnectionCommand.h
  8206. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. * Release 0.16.0
  8208. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8209. Updated doc
  8210. * README
  8211. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8212. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  8213. translations. Thanks to all translators.
  8214. * po/bg.po
  8215. * po/de.po
  8216. * po/fr.po
  8217. * po/ja.po
  8218. * po/zh_CN.po
  8219. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8220. Bump up version number to 0.16.0.
  8221. * configure.ac
  8222. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8223. Casted entry->maxConnections to int32_t for std::min<T> with T =
  8224. int32_t.
  8225. Changed the type of count to int32_t.
  8226. * src/Metalink2RequestGroup.cc
  8227. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8228. Added test for Time::elapsed(time_t).
  8229. * test/TimeTest.cc
  8230. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8231. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  8232. Util::difftv() should be used instead.
  8233. * src/TimeA2.cc
  8234. * src/TimeA2.h
  8235. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8236. Made socket for dht connections non-blocking
  8237. * src/DHTAbstractMessage.cc
  8238. * src/DHTAbstractMessage.h
  8239. * src/DHTConnection.h
  8240. * src/DHTConnectionImpl.cc
  8241. * src/DHTConnectionImpl.h
  8242. * src/DHTMessage.h
  8243. * src/DHTMessageDispatcherImpl.cc
  8244. * src/DHTMessageDispatcherImpl.h
  8245. * src/DHTUnknownMessage.cc
  8246. * src/DHTUnknownMessage.h
  8247. * src/SocketCore.cc
  8248. * src/SocketCore.h
  8249. * test/MockDHTMessage.h
  8250. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Changed the type of offset to int.
  8252. * src/ParameterizedStringParser.cc
  8253. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8254. Made getAsInt() return int32_t
  8255. * src/Option.h
  8256. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  8258. build.
  8259. * configure.ac
  8260. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8261. Use sqlite3_open if sqlite3_open_v2 is not available.
  8262. * src/Sqlite3MozCookieParser.cc
  8263. * src/Sqlite3MozCookieParser.h
  8264. * m4/sqlite3.m4
  8265. * test/Sqlite3MozCookieParserTest.cc
  8266. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  8268. * src/BtPieceMessage.cc
  8269. * src/DHTPeerAnnounceStorage.cc
  8270. * src/DefaultPieceStorage.cc
  8271. * src/DownloadCommand.cc
  8272. * src/DownloadEngine.cc
  8273. * src/FtpConnection.cc
  8274. * src/PeerConnection.cc
  8275. * src/PeerMessageUtil.cc
  8276. * src/RequestGroup.cc
  8277. * src/RequestGroupMan.cc
  8278. * src/SimpleBtMessage.cc
  8279. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8280. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  8281. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  8282. * src/AbstractDiskWriter.cc
  8283. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8284. Don't set Request::supportsPersistentConnection() in HttpConnection
  8285. since this code is also used in AbstractProxyResponseCommand.
  8286. Moved those code to HttpResponse.
  8287. * src/HttpResponse.cc
  8288. * src/HttpResponse.h
  8289. * src/HttpConnection.cc
  8290. * src/HttpConnection.h
  8291. * src/HttpResponseCommand.cc
  8292. * test/HttpResponseTest.cc
  8293. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8294. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  8295. The configuration is minimum: no torrent, no metalink, so there may be
  8296. other compile error on their code.
  8297. * src/a2netcompat.h
  8298. * src/File.cc
  8299. * src/File.h
  8300. * src/SocketCore.cc
  8301. * src/SocketCore.h
  8302. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Made a socket of incoming peer non-blocking.
  8304. * src/PeerListenCommand.cc
  8305. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8306. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  8307. whole message data is not sent in one send() call.
  8308. * src/BtPieceMessage.cc
  8309. * src/BtPieceMessage.h
  8310. * src/PeerConnection.cc
  8311. * src/PeerConnection.h
  8312. * src/SimpleBtMessage.cc
  8313. * src/SimpleBtMessage.h
  8314. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Fixed the bug that aria2 downloads faster than max-download-limit when
  8316. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  8317. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  8318. , instead of sum of them.
  8319. * src/ActivePeerConnectionCommand.cc
  8320. * src/DefaultBtInteractive.cc
  8321. * src/DownloadCommand.cc
  8322. * src/PeerInteractionCommand.cc
  8323. * src/PeerReceiveHandshakeCommand.cc
  8324. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8325. Fixed the bug that HTTPS download fails.
  8326. * src/AbstractCommand.cc
  8327. * src/AbstractCommand.h
  8328. * src/DownloadCommand.cc
  8329. * src/FtpConnection.cc
  8330. * src/HttpConnection.cc
  8331. * src/HttpRequestCommand.cc
  8332. * src/HttpResponseCommand.cc
  8333. * src/HttpSkipResponseCommand.cc
  8334. * src/MSEHandshake.cc
  8335. * src/PeerConnection.cc
  8336. * src/SocketCore.cc
  8337. * src/SocketCore.h
  8338. Fixed the bug that aria2 doesn't download whole content body and cannot
  8339. reuse connection if chunked transfer encoding and gzip content encoding
  8340. are set.
  8341. * src/DownloadCommand.cc
  8342. * src/HttpSkipResponseCommand.cc
  8343. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Updated man page.
  8345. * doc/aria2c.1.txt
  8346. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8347. When error occurred while aria2 was parsing an .aria2.conf file, print
  8348. the usage of the option that caused error.
  8349. * src/option_processing.cc
  8350. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8351. Fixed compile error on OptionHandlerException
  8352. * src/Makefile.am
  8353. * src/OptionHandlerException.cc
  8354. * src/OptionHandlerException.h
  8355. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. Moved message of the error to OptionHandlerException.h
  8357. * src/NameMatchOptionHandler.h
  8358. * src/OptionHandlerException.h
  8359. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8360. When error occurs while aria2 is parsing an command-line option, print
  8361. the usage of the option.
  8362. * src/Makefile.am
  8363. * src/NameMatchOptionHandler.h
  8364. * src/OptionHandlerException.h
  8365. * src/option_processing.cc
  8366. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8367. Reverted previous change.
  8368. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  8369. username is not in URI.
  8370. * src/HttpRequest.cc
  8371. * src/Request.cc
  8372. * test/HttpRequestTest.cc
  8373. * test/RequestTest.cc
  8374. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8375. Now colon is required for username and password in FTP URL, like:
  8376. ftp://username:password@host.
  8377. If colon is not there, aria2 don't parse it as a username. For example,
  8378. aria2 don't retrieve username from ftp://username@host.
  8379. This fix was made in order to login FTP server via non-transparent ftp
  8380. proxy.
  8381. * src/Request.cc
  8382. * test/RequestTest.cc
  8383. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8384. Use netrc for HTTP.
  8385. Now FTP user/password is sent in Authorization header when
  8386. --ftp-via-http-proxy=get is given.
  8387. * src/AuthConfigFactory.cc
  8388. * src/HttpRequest.cc
  8389. * src/HttpRequest.h
  8390. * src/NetrcAuthResolver.cc
  8391. * src/NetrcAuthResolver.h
  8392. * src/OptionHandlerFactory.cc
  8393. * src/option_processing.cc
  8394. * src/prefs.cc
  8395. * src/prefs.h
  8396. * test/AuthConfigFactoryTest.cc
  8397. * test/HttpRequestTest.cc
  8398. * test/NetrcAuthResolverTest.cc
  8399. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8400. Issue PWD command first and get working directory and use it as a prefix
  8401. for CWD command.
  8402. * src/DownloadEngine.cc
  8403. * src/DownloadEngine.h
  8404. * src/FtpConnection.cc
  8405. * src/FtpConnection.h
  8406. * src/FtpFinishDownloadCommand.cc
  8407. * src/FtpInitiateConnectionCommand.cc
  8408. * src/FtpNegotiationCommand.cc
  8409. * src/FtpNegotiationCommand.h
  8410. * test/FtpConnectionTest.cc
  8411. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8412. Removed default user/pass for FTP user/pass, since it should not have
  8413. precedence over netrc configuration by default.
  8414. * src/OptionHandlerFactory.cc
  8415. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8416. Added debug log for socket event.
  8417. * src/AbstractCommand.cc
  8418. * src/PeerAbstractCommand.cc
  8419. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8420. Log microseconds.
  8421. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8422. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8423. Replaced HelpItem.cc with OptionHandler.cc.
  8424. * po/POTFILES.in
  8425. Updated po files with 'make update-po'
  8426. * po/aria2c.pot
  8427. * po/*.po
  8428. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8429. Removed possible values from the text.
  8430. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8431. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. Removed unused preferences:
  8433. PREF_NO_PREALLOCATION
  8434. PREF_STDOUT_LOG
  8435. PREF_TRACKER_MAX_TRIES
  8436. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8437. PREF_MIN_SEGMENT_SIZE
  8438. * src/option_processing.cc
  8439. * src/prefs.cc
  8440. * src/prefs.h
  8441. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8442. Integrated HelpItem into OptionParser to ease the workload for adding
  8443. new options. Removed default value from usage text.
  8444. * src/HelpItem.cc: Removed.
  8445. * src/HelpItem.h: Removed.
  8446. * src/HelpItemFactory.cc: Removed.
  8447. * src/HelpItemFactory.h: Removed.
  8448. * src/Makefile.am
  8449. * src/Makefile.in
  8450. * src/NameMatchOptionHandler.h
  8451. * src/OptionHandler.cc
  8452. * src/OptionHandler.h
  8453. * src/OptionHandlerFactory.cc
  8454. * src/OptionHandlerImpl.h
  8455. * src/OptionParser.cc
  8456. * src/OptionParser.h
  8457. * src/TagContainer.cc: Removed.
  8458. * src/TagContainer.h: Removed.
  8459. * src/TaggedItem.cc: Removed.
  8460. * src/TaggedItem.h: Removed.
  8461. * src/main.cc
  8462. * src/option_processing.cc
  8463. * src/usage_text.h
  8464. * src/version_usage.cc
  8465. * test/HelpItemTest.cc: Removed.
  8466. * test/Makefile.am
  8467. * test/Makefile.in
  8468. * test/OptionHandlerTest.cc
  8469. * test/OptionParserTest.cc
  8470. * test/TagContainerTest.cc: Removed.
  8471. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8472. Moved `TransferStat stat = ...' to inside the `if' clause.
  8473. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8474. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Fixed the bug that a block in a piece is requested when same block is
  8476. already requested to the same peer in end game mode.
  8477. * src/BtRequestFactory.h
  8478. * src/DefaultBtInteractive.cc
  8479. * src/DefaultBtRequestFactory.cc
  8480. * src/DefaultBtRequestFactory.h
  8481. * src/DefaultPieceStorage.cc
  8482. * src/DefaultPieceStorage.h
  8483. * src/PieceStorage.h
  8484. * src/UnknownLengthPieceStorage.cc
  8485. * src/UnknownLengthPieceStorage.h
  8486. * test/DefaultBtRequestFactoryTest.cc
  8487. * test/DefaultPieceStorageTest.cc
  8488. * test/MockBtRequestFactory.h
  8489. * test/MockPieceStorage.h
  8490. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8491. Removed _uploadLength and _downloadLength from PeerSessionResource
  8492. and use PeerStat::_sessionUploadLength and
  8493. PeerStat::_sessionDownloadLength.
  8494. * src/PeerSessionResource.cc
  8495. * src/PeerSessionResource.h
  8496. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. Fixed the bug that prefixLength of split bucket which doesn't include
  8498. local node ID is incremented.
  8499. * src/DHTBucket.cc
  8500. * src/DHTBucket.h
  8501. * test/DHTBucketTest.cc
  8502. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8503. Added cookies.sqlite to EXTRA_DIST
  8504. * test/Makefile.am
  8505. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8506. Added Turkish translation. Updated French, German, Russian and
  8507. Simplified Chinese translations. Thanks to all translators.
  8508. * po/LINGUAS
  8509. * po/de.po
  8510. * po/fr.po
  8511. * po/ru.po
  8512. * po/tr.po
  8513. * po/zh_CN.po
  8514. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Added deliminating text to the beginning of the log so that one can find
  8516. where the log starts easily.
  8517. * src/main.cc
  8518. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8519. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8520. to fix compile error when async DNS is not enabled by configuration.
  8521. * src/AbstractCommand.cc
  8522. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. If establishing conneciton to a server is failed, then mark error on
  8524. its ServerStat.
  8525. Added the cause of error to log when error event occurred.
  8526. Moved message string to message.h for translation.
  8527. * src/AbstractCommand.cc
  8528. * src/AbstractCommand.h
  8529. * src/FtpNegotiationCommand.cc
  8530. * src/HttpRequestCommand.cc
  8531. * src/PeerAbstractCommand.cc
  8532. * src/message.h
  8533. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8534. Added the function to get error message from socket.
  8535. * src/SocketCore.cc
  8536. * src/SocketCore.h
  8537. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8539. * src/RequestGroupMan.cc
  8540. * src/RequestGroupMan.h
  8541. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. If error event is received in epoll, then abort download immediately.
  8543. * src/AbstractCommand.cc
  8544. * src/Command.cc
  8545. * src/Command.h
  8546. * src/DownloadEngine.cc
  8547. * src/PeerAbstractCommand.cc
  8548. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Added usage message for --uri-selector, --server-stat-of,
  8550. --server-stat-in, --server-stat-timeout options.
  8551. * src/HelpItemFactory.cc
  8552. * src/usage_text.h
  8553. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Added upper limit of FTP response buffer. The current implementation
  8555. uses 4096bytes as a limit.
  8556. * src/FtpConnection.cc
  8557. * src/FtpConnection.h
  8558. * test/FtpConnectionTest.cc
  8559. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8560. Use non-blocking socket for TCP communication to avoid possible
  8561. blocking due to buffer full.
  8562. * src/AbstractProxyRequestCommand.cc
  8563. * src/FtpConnection.cc
  8564. * src/FtpConnection.h
  8565. * src/FtpNegotiationCommand.cc
  8566. * src/FtpNegotiationCommand.h
  8567. * src/HttpConnection.cc
  8568. * src/HttpConnection.h
  8569. * src/HttpRequestCommand.cc
  8570. * src/InitiatorMSEHandshakeCommand.cc
  8571. * src/InitiatorMSEHandshakeCommand.h
  8572. * src/MSEHandshake.cc
  8573. * src/MSEHandshake.h
  8574. * src/Makefile.am
  8575. * src/PeerConnection.cc
  8576. * src/PeerConnection.h
  8577. * src/PeerInteractionCommand.cc
  8578. * src/PeerListenCommand.cc
  8579. * src/ReceiverMSEHandshakeCommand.cc
  8580. * src/ReceiverMSEHandshakeCommand.h
  8581. * src/SocketBuffer.cc
  8582. * src/SocketBuffer.h
  8583. * src/SocketCore.cc
  8584. * src/SocketCore.h
  8585. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8586. Call setStatusRealtime() in constructor.
  8587. * src/RealtimeCommand.cc
  8588. * src/RealtimeCommand.h
  8589. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. Call Download::setNoWait(true) to execute newly created command without
  8591. a pause.
  8592. * src/AbstractCommand.cc
  8593. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8594. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8595. found' error from HTTP/FTP server NUM times without getting single
  8596. bytes of data, then force the download to fail.
  8597. Basically aria2 tris all URIs available. So if long list of URIs are
  8598. specified in Metalink, then aria2 will take a long time to fail
  8599. eventually if all URIs are outdated. This option eases this situation
  8600. to limit the number of servers to try.
  8601. * src/FtpNegotiationCommand.cc
  8602. * src/HelpItemFactory.cc
  8603. * src/HttpResponseCommand.cc
  8604. * src/OptionHandlerFactory.cc
  8605. * src/PeerStat.h
  8606. * src/RequestGroup.cc
  8607. * src/RequestGroup.h
  8608. * src/SegmentMan.cc
  8609. * src/SegmentMan.h
  8610. * src/option_processing.cc
  8611. * src/prefs.cc
  8612. * src/prefs.h
  8613. * src/usage_text.h
  8614. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8615. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8616. response even if more than one response is in it.
  8617. * src/FtpConnection.cc
  8618. * src/FtpConnection.h
  8619. * test/FtpConnectionTest.cc
  8620. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8621. Merged from stable-0.15
  8622. * m4/libcares.m4
  8623. Use pkg-config
  8624. * m4/sqlite3.m4
  8625. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8626. Removed unnecessary if statement.
  8627. * src/DefaultPieceStorage.cc (initPieceStorage)
  8628. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8629. Added --connect-timeout option to specify connect timeout in seconds.
  8630. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8631. connecting to BitTorrent peer is not controlled by this option.
  8632. * src/AbstractProxyRequestCommand.cc
  8633. * src/FtpNegotiationCommand.cc
  8634. * src/HelpItemFactory.cc
  8635. * src/HttpRequestCommand.cc
  8636. * src/OptionHandlerFactory.cc
  8637. * src/option_processing.cc
  8638. * src/prefs.cc
  8639. * src/prefs.h
  8640. * src/usage_text.h
  8641. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8642. Added help message for -R option.
  8643. * src/HelpItemFactory.cc
  8644. * src/usage_text.h
  8645. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8646. Added the message that the time is in local time zone.
  8647. * src/RequestGroup.cc
  8648. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Implemented the ability to get timestamp from remote FTP server using
  8650. MDTM command described in RFC3659.
  8651. * src/FtpConnection.cc
  8652. * src/FtpConnection.h
  8653. * src/FtpNegotiationCommand.cc
  8654. * src/FtpNegotiationCommand.h
  8655. * test/FtpConnectionTest.cc
  8656. * test/Makefile.am
  8657. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Implemented the ability to get timestamp from remote HTTP server and
  8659. apply it to local file. To enable this feature, --remote-time option
  8660. is added. No usage text has been written yet.
  8661. If several servers returns difference timestamp, then aria2 uses latest
  8662. one.
  8663. * src/CopyDiskAdaptor.cc
  8664. * src/CopyDiskAdaptor.h
  8665. * src/DirectDiskAdaptor.cc
  8666. * src/DirectDiskAdaptor.h
  8667. * src/DiskAdaptor.h
  8668. * src/File.cc
  8669. * src/File.h
  8670. * src/HttpHeader.cc
  8671. * src/HttpHeader.h
  8672. * src/HttpResponse.cc
  8673. * src/HttpResponse.h
  8674. * src/HttpResponseCommand.cc
  8675. * src/HttpResponseCommand.h
  8676. * src/MultiDiskAdaptor.cc
  8677. * src/MultiDiskAdaptor.h
  8678. * src/OptionHandlerFactory.cc
  8679. * src/RequestGroup.cc
  8680. * src/RequestGroup.h
  8681. * src/RequestGroupMan.cc
  8682. * src/option_processing.cc
  8683. * src/prefs.cc
  8684. * src/prefs.h
  8685. * test/CopyDiskAdaptorTest.cc
  8686. * test/FileTest.cc
  8687. * test/Makefile.am
  8688. * test/Makefile.in
  8689. * test/MultiDiskAdaptorTest.cc
  8690. * test/TestUtil.cc
  8691. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8692. Fixed the bug that DiskWriterEntry is not created when its
  8693. FileEntry.isRequested() is false and it doesn't share a piece with
  8694. other FileEntries that are requested. This bug causes segmentation fault
  8695. in the end.
  8696. * src/MultiDiskAdaptor.cc
  8697. * src/MultiDiskAdaptor.h
  8698. * src/MultiFileAllocationIterator.cc
  8699. * test/MultiDiskAdaptorTest.cc
  8700. * test/MultiFileAllocationIteratorTest.cc
  8701. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8702. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8703. called if the number of file entries are greater than max open files.
  8704. * src/AbstractSingleDiskAdaptor.cc
  8705. * src/AbstractSingleDiskAdaptor.h
  8706. * src/DiskAdaptor.h
  8707. * src/MultiDiskAdaptor.cc
  8708. * src/MultiDiskAdaptor.h
  8709. * test/MultiDiskAdaptorTest.cc
  8710. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. Added a constuctor that receives struct timeval.
  8712. Added operator<.
  8713. * src/TimeA2.cc
  8714. * src/TimeA2.h
  8715. * test/TimeTest.cc
  8716. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8717. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8718. * src/CookieParser.cc
  8719. * test/CookieParserTest.cc
  8720. * test/HttpResponseTest.cc
  8721. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Implmented the functions to parse date.
  8723. * src/TimeA2.cc
  8724. * src/TimeA2.h
  8725. * test/TimeTest.cc
  8726. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. Added "Firefox3 Cookie" feature to FeatureConfig
  8728. * src/FeatureConfig.cc
  8729. * src/FeatureConfig.h
  8730. * test/FeatureConfigTest.cc
  8731. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8732. Bump up version number to 0.16.0b
  8733. * configure.ac
  8734. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8735. Use pkg-config if is is available.
  8736. * m4/openssl.m4
  8737. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8739. * src/BtAnnounce.h
  8740. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. If an error occurred with a URI, remove identical URI from remaining
  8742. URI list because it is likely that same error occurred in the end and it
  8743. is waste of time.
  8744. * src/AbstractCommand.cc
  8745. * src/RequestGroup.cc
  8746. * src/RequestGroup.h
  8747. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8748. Removed wrong comment.
  8749. * src/DefaultPeerStorage.cc
  8750. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8751. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8752. Added return value of getpid() to argument of srand() to achieve more
  8753. randomized value.
  8754. * src/SimpleRandomizer.cc
  8755. * src/SimpleRandomizer.h
  8756. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Contact tracker frequently when the number of connections are 0 and
  8758. download is not finished yet.
  8759. * src/ActivePeerConnectionCommand.cc
  8760. * src/BtAnnounce.h
  8761. * src/DefaultBtAnnounce.cc
  8762. * src/DefaultBtAnnounce.h
  8763. * test/MockBtAnnounce.h
  8764. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8765. Moved threshold values to UTPexExtensionMessage.
  8766. * src/DefaultBtInteractive.cc
  8767. * src/Peer.cc
  8768. * src/Peer.h
  8769. * src/UTPexExtensionMessage.cc
  8770. * src/UTPexExtensionMessage.h
  8771. * test/UTPexExtensionMessageTest.cc
  8772. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8773. Added _incoming member to Peer class and made it true if the peer
  8774. initiated connection. Don't add those peer to UTPex message.
  8775. If extended handshake is received, assign _incoming to false.
  8776. * src/DefaultBtInteractive.cc
  8777. * src/HandshakeExtensionMessage.cc
  8778. * src/Peer.cc
  8779. * src/Peer.h
  8780. * src/PeerListenCommand.cc
  8781. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8783. Encoding Decoder. Removed size threshold for turning off on the fly
  8784. inflation because resulting file may or may not be inflated depending
  8785. on the file size and I think it is not expected by users.
  8786. This change fixes segmentation fault when Metalink file contains gzipped
  8787. file and its filesize is provided.
  8788. * src/HttpResponseCommand.cc
  8789. * src/HttpResponseCommand.h
  8790. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8791. Made Cookie immutable.
  8792. * src/Cookie.cc
  8793. * src/Cookie.h
  8794. * src/CookieParser.cc
  8795. * src/CookieParser.h
  8796. * src/CookieStorage.cc
  8797. * test/CookieParserTest.cc
  8798. * test/CookieStorageTest.cc
  8799. * test/NsCookieParserTest.cc
  8800. * test/Sqlite3MozCookieParserTest.cc
  8801. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8802. Removed CookieBox, CookieBoxFactory.
  8803. * src/CookieBox.cc
  8804. * src/CookieBox.h
  8805. * src/CookieBoxFactory.cc
  8806. * src/CookieBoxFactory.h
  8807. * src/Makefile.am
  8808. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8809. Use CookieStorage class instead of CookieBox class.
  8810. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8811. * src/AbstractProxyRequestCommand.cc
  8812. * src/CookieStorage.cc
  8813. * src/DownloadEngine.cc
  8814. * src/DownloadEngine.h
  8815. * src/HttpConnection.cc
  8816. * src/HttpConnection.h
  8817. * src/HttpRequest.cc
  8818. * src/HttpRequest.h
  8819. * src/HttpRequestCommand.cc
  8820. * src/HttpResponse.cc
  8821. * src/HttpResponseCommand.cc
  8822. * src/HttpSkipResponseCommand.cc
  8823. * src/Makefile.am
  8824. * src/MultiUrlRequestInfo.cc
  8825. * src/Request.cc
  8826. * src/Request.h
  8827. * src/main.cc
  8828. * test/AllTest.cc
  8829. * test/CookieStorageTest.cc
  8830. * test/CookieTest.cc
  8831. * test/HttpRequestTest.cc
  8832. * test/HttpResponseTest.cc
  8833. * test/Makefile.am
  8834. * test/NsCookieParserTest.cc
  8835. * test/Sqlite3MozCookieParserTest.cc
  8836. * test/nscookietest.txt
  8837. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Updated
  8839. * test/Cookies.sqlite
  8840. * test/nscookietest.txt
  8841. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8842. Added tests for CookieStorage::load()
  8843. * test/CookieStorageTest.cc
  8844. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Added CookieStorage class which is based on RFC2109 and manages cookies
  8846. more strictly than CookieBox and CookieBoxFactory class.
  8847. * src/CookieStorage.cc
  8848. * src/CookieStorage.h
  8849. * src/Cookie.cc
  8850. * src/Cookie.h
  8851. * test/CookieStorageTest.cc
  8852. * test/CookieTest.cc
  8853. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. Fixed the bug that commands are created more than the number of pieces.
  8855. * src/RequestGroup.cc
  8856. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Fixed infinite loop bug in FTP when SIZE command failed.
  8858. * src/FtpNegotiationCommand.cc
  8859. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8860. Removed DirectDiskAdaptorTest.h
  8861. * test/Makefile.am
  8862. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. Fixed chunk checksum validation cannot detect trailing garbage data.
  8864. BUG#2074141
  8865. * src/AbstractSingleDiskAdaptor.cc
  8866. * src/AbstractSingleDiskAdaptor.h
  8867. * src/CheckIntegrityEntry.cc
  8868. * src/CheckIntegrityEntry.h
  8869. * src/DiskAdaptor.h
  8870. * src/MultiDiskAdaptor.cc
  8871. * src/MultiDiskAdaptor.h
  8872. * src/RequestGroup.cc
  8873. * test/DirectDiskAdaptorTest.cc
  8874. * test/MultiDiskAdaptorTest.cc
  8875. * test/TestUtil.cc
  8876. * test/TestUtil.h
  8877. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8878. Bump up version number of dht.dat file to 3. In version 3 format, time
  8879. is stored in 64bit, network byte order.
  8880. New build can load old format(version 2) but it saves the file in new
  8881. format. It means once you used new build, your dht.dat becomes
  8882. incompatible with older build.
  8883. * src/DHTRoutingTableDeserializer.cc
  8884. * src/DHTRoutingTableSerializer.cc
  8885. * test/DHTRoutingTableSerializerTest.cc
  8886. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8887. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8888. * test/Makefile.am
  8889. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8890. Bump up version number of .aria2 control file to 0001.
  8891. New aria2 can still load version 0000 file but it saves the file in
  8892. version 0001 format. It means that new aria2 can resume download
  8893. started by old aria2 but the opposite is not true.
  8894. * src/DefaultBtProgressInfoFile.cc
  8895. * src/DefaultBtProgressInfoFile.h
  8896. * test/DefaultBtProgressInfoFileTest.cc
  8897. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. Added ntoh64 and hton64 as inline functions.
  8899. * src/Util.cc
  8900. * test/UtilTest.cc
  8901. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8902. Added sqlite3 depenency and Firefox3 cookie support.
  8903. * README
  8904. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8905. State that firefox3 cookie is supported explicitly in the usage.
  8906. * src/usage_text.h
  8907. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8908. Externalized message.
  8909. * src/RequestGroupMan.cc
  8910. * src/message.h
  8911. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8912. Save temporary file first and rename to the destination on success.
  8913. Added test cases.
  8914. * src/RequestGroupMan.cc
  8915. * test/RequestGroupManTest.cc
  8916. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8917. Fixed the bug that the number of connected peer is exceeding the limit
  8918. (55 by default) in seeding mode.
  8919. Multiplied 0.8 to _maxUploadSpeedLimit.
  8920. * src/ActivePeerConnectionCommand.cc
  8921. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8922. Clear table item.
  8923. * src/Dictionary.cc
  8924. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. Fixed error handling of lseek.
  8926. * src/AbstractDiskWriter.cc
  8927. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8928. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8929. style cookie file.
  8930. * src/usage_text.h
  8931. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8932. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8933. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8934. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8935. * src/Util.cc
  8936. * src/Util.h
  8937. * src/CookieParser.cc
  8938. * test/UtilTest.cc
  8939. * test/CookieParserTest.cc
  8940. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8941. Separate the implementation to load old mozilla format of cookie to
  8942. NsCookieParser class.
  8943. * src/CookieBoxFactory.cc
  8944. * src/CookieBoxFactory.h
  8945. * src/NsCookieParser.cc
  8946. * src/NsCookieParser.h
  8947. * test/NsCookieParserTest.cc
  8948. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Made parse() const
  8950. * src/Sqlite3MozCookieParser.cc
  8951. * src/Sqlite3MozCookieParser.h
  8952. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8953. Added firefox3 cookie support based on the patch submitted by
  8954. tizianomueller.
  8955. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8956. this functionality.
  8957. * configure.ac
  8958. * m4/sqlite3.m4
  8959. * src/CookieBoxFactory.cc
  8960. * src/CookieBoxFactory.h
  8961. * src/Makefile.am
  8962. * src/Makefile.in
  8963. * src/Sqlite3MozCookieParser.cc
  8964. * src/Sqlite3MozCookieParser.h
  8965. * src/main.cc
  8966. * test/CookieBoxFactoryTest.cc
  8967. * test/Makefile.am
  8968. * test/Makefile.in
  8969. * test/Sqlite3MozCookieParserTest.cc
  8970. * test/badcookies.sqlite
  8971. * test/cookies.sqlite
  8972. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Added Danish and Greek translations.
  8974. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8975. Great thanks to all translators.
  8976. * po/LINGUAS
  8977. * po/el.po
  8978. * po/da.po
  8979. * po/es.po
  8980. * po/ca.po
  8981. * po/nn.po
  8982. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8983. Fixed man page: --follow-bittorrent should be --follow-torrent
  8984. * doc/aria2c.1.txt
  8985. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8986. Fixed: numCommand is less than the value specified in -C option.
  8987. * src/RequestGroup.cc
  8988. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8989. Fixed occasional assertion failure in PieceSegment.
  8990. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8991. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8992. creation of duplicate segments and one of the segment was finished then
  8993. assertion failure was caused.
  8994. * src/SegmentMan.cc
  8995. * test/SegmentManTest.cc
  8996. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. Added options to load/save the server's performance/status to a file
  8998. and the timeout to drop their data.
  8999. --server-stat-of=FILE specifies the file to which performance data
  9000. is saved.
  9001. --server-stat-if=FILE specifies the file to read previously saved
  9002. by --server-stat-of option. Might be used with --uri-selector=feedback.
  9003. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  9004. TIMEOUT is specified in seconds and the default value is 24hours.
  9005. * src/MultiUrlRequestInfo.cc
  9006. * src/OptionHandlerFactory.cc
  9007. * src/RequestGroupMan.cc
  9008. * src/RequestGroupMan.h
  9009. * src/ServerStatMan.cc
  9010. * src/ServerStatMan.h
  9011. * src/option_processing.cc
  9012. * src/prefs.cc
  9013. * src/prefs.h
  9014. * test/ServerStatManTest.cc
  9015. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9016. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  9017. * src/ServerStatMan.cc
  9018. * src/ServerStatMan.h
  9019. * test/ServerStatManTest.cc
  9020. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9021. Implemented ServerStatMan::load(...) function and its test case.
  9022. * src/ServerStat.cc
  9023. * src/ServerStat.h
  9024. * src/ServerStatMan.cc
  9025. * test/ServerStatManTest.cc
  9026. * test/ServerStatTest.cc
  9027. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9028. Use time_t instead of int32_t. Use int64_t where milli second is
  9029. expected.
  9030. * src/TimeA2.cc
  9031. * src/TimeA2.h
  9032. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9033. Implemented ServerStatMan::save(...) function and its test case.
  9034. * src/ServerStat.cc
  9035. * src/ServerStat.h
  9036. * src/ServerStatMan.cc
  9037. * src/ServerStatMan.h
  9038. * test/ServerStatManTest.cc
  9039. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Now aria2 uses name attribute in Metalink as local filename in
  9041. BitTorrent downloads. BUG#2033999
  9042. * src/BtContext.h
  9043. * src/BtDependency.cc
  9044. * src/DefaultBtContext.cc
  9045. * src/DefaultBtContext.h
  9046. * src/SingleFileDownloadContext.cc
  9047. * src/SingleFileDownloadContext.h
  9048. * test/BtDependencyTest.cc
  9049. * test/DefaultBtContextTest.cc
  9050. * test/MockBtContext.h
  9051. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9052. Added AC_C_BIGENDIAN
  9053. * src/configure.ac
  9054. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9055. Limited numCommand less than or equal to the number of piece.
  9056. * src/RequestGroup.cc
  9057. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9058. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  9059. directive.
  9060. * test/DefaultPieceStorageTest.cc
  9061. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Fixed memory leak in test code
  9063. * test/AnnounceListTest.cc
  9064. * test/DefaultPeerListProcessorTest.cc
  9065. * test/DefaultPeerStorageTest.cc
  9066. * test/MetaFileUtilTest.cc
  9067. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9068. Fixed wrong argument passing to BitfieldMan::isBitSet()
  9069. * src/DefaultPieceStorage.cc
  9070. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9071. Initialized _directIOAllowed
  9072. * src/MultiDiskAdaptor.cc
  9073. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. Fixed memory leak
  9075. * src/GZipDecoder.cc
  9076. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9077. Fixed memory leak
  9078. * src/MetalinkParserStateMachine.cc
  9079. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9080. Fixed memory leak
  9081. * src/Dictionary.cc
  9082. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9083. Fixed memory leak
  9084. * src/IteratableChunkChecksumValidator.h
  9085. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Fixed unmatched malloc/free.
  9087. * src/IteratableChunkChecksumValidator.cc
  9088. * src/IteratableChecksumValidator.cc
  9089. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9090. Removed max chunk size check. This change fixes BUG#2040169
  9091. * src/ChunkedDecoder.cc
  9092. * src/ChunkedDecoder.h
  9093. * test/ChunkedDecoderTest.cc
  9094. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9095. Implemented download speed based URI selection algorithm.
  9096. Introduced new option --uri-selector.
  9097. If --uri-selector=feedback is given, aria2 uses download speed observed
  9098. in the previous downloads and chooses fastest server in the URI list.
  9099. Currently at most 10 URIs are considered to introduce randomeness for
  9100. finding better servers. The speed is average download speed in the
  9101. downloads.
  9102. On the other hand, if --uri-selector=inorder is given, which is default,
  9103. URI is tried in order in URI list.
  9104. The usage text for the new option has not been written yet.
  9105. * src/AbstractCommand.cc
  9106. * src/DownloadCommand.cc
  9107. * src/DownloadEngine.cc
  9108. * src/DownloadEngineFactory.cc
  9109. * src/InOrderURISelector.cc
  9110. * src/InOrderURISelector.h
  9111. * src/OptionHandlerFactory.cc
  9112. * src/PeerStat.h
  9113. * src/RequestGroup.cc
  9114. * src/RequestGroup.h
  9115. * src/RequestGroupMan.cc
  9116. * src/RequestGroupMan.h
  9117. * src/SegmentMan.cc
  9118. * src/SegmentMan.h
  9119. * src/ServerStat.cc
  9120. * src/ServerStat.h
  9121. * src/ServerStatMan.cc
  9122. * src/ServerStatMan.h
  9123. * src/ServerStatURISelector.cc
  9124. * src/ServerStatURISelector.h
  9125. * src/URISelector.h
  9126. * src/option_processing.cc
  9127. * src/prefs.cc
  9128. * src/prefs.h
  9129. * test/InOrderURISelectorTest.cc
  9130. * test/RequestGroupManTest.cc
  9131. * test/ServerStatManTest.cc
  9132. * test/ServerStatURISelectorTest.cc
  9133. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9134. * Release 0.15.1+2
  9135. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9136. Bump up version number to 0.15.1+2
  9137. * configure.ac
  9138. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9139. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  9140. * m4/aria2_arg.m4
  9141. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9142. * Release 0.15.1+1
  9143. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9144. Bump up version number to 0.15.1+1
  9145. * configure.ac
  9146. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9147. Fixed the bug that causes segmentaion fault when resuming download
  9148. using metalink without size tag. Reproducible only using HTTP URI.
  9149. * src/HttpResponseCommand.cc
  9150. * src/FtpNegotiationCommand.cc
  9151. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. * Release 0.15.1
  9153. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. Updated Bulgarian and French translations, thanks to all translators.
  9155. * po/bg.po
  9156. * po/fr.po
  9157. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9158. Bump up version number to 0.15.1
  9159. * configure.ac
  9160. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9161. Avoid repeated call of gettimeofday() when calculating speed.
  9162. * src/SpeedCalc.cc
  9163. * src/SpeedCalc.h
  9164. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Removed writable check when socket's send buffer is full in BitTorrent
  9166. downloads to lower CPU usage.
  9167. * src/PeerInteractionCommand.cc
  9168. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9169. Fixed broken gzip inflation.
  9170. Turn off segmented downloading if gzip content is smaller than or equal
  9171. to 1MiB and inflate the data on the fly, because HTTP response header
  9172. doesn't contain the length of inflated file we can't determin where
  9173. the chunk of data should be written.
  9174. On the other hand, if gzip content is larger than 1MB, then turn off
  9175. on the fly inflation, because some servers returns "content-type: gzip"
  9176. for *.tgz, *.gz files.
  9177. * src/DownloadCommand.cc
  9178. * src/HttpResponseCommand.cc
  9179. * src/HttpResponseCommand.h
  9180. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9181. Applied tizianomueller's patch to fix compile error.
  9182. * test/BitfieldManTest.cc
  9183. * test/BtRequestMessageTest.cc
  9184. * test/DefaultBtContextTest.cc
  9185. * test/DefaultDiskWriterTest.cc
  9186. * test/DefaultPieceStorageTest.cc
  9187. * test/HttpHeaderProcessorTest.cc
  9188. * test/HttpResponseTest.cc
  9189. * test/Metalink2RequestGroupTest.cc
  9190. * test/MetalinkParserControllerTest.cc
  9191. * test/MetalinkProcessorTest.cc
  9192. * test/PeerSessionResourceTest.cc
  9193. * test/UtilTest.cc
  9194. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. * Release 0.15.0
  9196. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. Reordered src files in POTFILES.in so that usage text appears first.
  9198. * po/POTFILES.in
  9199. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9200. Bump up version number to 0.15.0
  9201. * configure.ac
  9202. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. Added Bulgarian translation.
  9204. Updated Catalan, Spanish, French and Japanese translations.
  9205. Thanks to all translators.
  9206. * po/LINGUAS
  9207. * po/bg.po
  9208. * po/ca.po
  9209. * po/es.po
  9210. * po/fr.po
  9211. * po/ja.po
  9212. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9213. Updated feature list. Added libz for dependency section.
  9214. Added a description about unit testing using CppUnit.
  9215. * README
  9216. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9217. Added a test for libz. Quoted where it is necessary.
  9218. * build_test.sh
  9219. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Added GZip to `Enabled Features' list.
  9221. * src/FeatureConfig.cc
  9222. * src/FeatureConfig.h
  9223. * test/FeatureConfigTest.cc
  9224. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9225. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  9226. the transfer has not yet started.
  9227. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  9228. * src/SegmentMan.cc
  9229. * src/SegmentMan.h
  9230. * test/SegmentManTest.cc
  9231. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9232. Cache last calculated average download/upload speed.
  9233. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  9234. cached value.
  9235. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  9236. * src/PeerStat.h
  9237. * src/SpeedCalc.cc
  9238. * src/SpeedCalc.h
  9239. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9240. Call parseUrl directly.
  9241. * src/Request.cc (resetUrl)
  9242. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9243. Supported absolute/relative path in Location header field.
  9244. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  9245. * src/HttpHeader.cc
  9246. * src/HttpHeader.h
  9247. * src/HttpResponse.cc
  9248. * src/HttpSkipResponseCommand.cc
  9249. * src/Request.cc
  9250. * test/HttpHeaderTest.cc
  9251. * test/HttpResponseTest.cc
  9252. * test/RequestTest.cc
  9253. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9254. Changed help text for --load-cookie option.
  9255. * doc/aria2c.1.txt
  9256. * src/usage_text.h
  9257. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9258. Regenerated test/Makefile.in to remove stale ChangeLog.
  9259. * test/Makefile.in
  9260. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9261. Updated po files.
  9262. * po/aria2c.pot
  9263. * po/*.po
  9264. * po/*.gmo
  9265. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9266. Bump up version number to 0.15.0b
  9267. * configure.ac
  9268. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9269. Externalize messages.
  9270. * src/RequestGroupMan.cc
  9271. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  9272. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9273. Use File::exists() instead of File::isFile() to allow non-regular file
  9274. such as block special files.
  9275. * src/AbstractDiskWriter.cc
  9276. * src/MultiDiskWriter.cc
  9277. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9278. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  9279. * src/gai_strerror.h
  9280. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9281. Fixed compile error. Thanks gknauf for the patch.
  9282. * src/asctime_r.c
  9283. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Included asctime_r.h from a2time.h.
  9285. * src/a2time.h
  9286. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9287. Added a message "aria2 doesn't verify signature" to log message when
  9288. signature file is saved.
  9289. * src/RequestGroupMan.cc
  9290. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9291. Added the ability to save signature when download is completed if
  9292. signature is available. The filename of signature file is the path to
  9293. download file followed by ".sig". If it already exists, then signature
  9294. will not be saved.
  9295. * src/RequestGroupMan.cc
  9296. * src/Signature.cc
  9297. * test/SignatureTest.cc
  9298. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Updated the descriptions for --bt-seed-unverified.
  9300. * doc/aria2c.1
  9301. * doc/aria2c.1.html
  9302. * doc/aria2c.1.txt
  9303. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  9305. that this is not going to verify files using piece hashes.
  9306. * src/HelpItemFactory.cc
  9307. * src/OptionHandlerFactory.cc
  9308. * src/RequestGroup.cc
  9309. * src/option_processing.cc
  9310. * src/prefs.cc
  9311. * src/prefs.h
  9312. * src/usage_text.h
  9313. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. Added the ability to retrieve signature from Metalink file.
  9315. A retrieved signature is stored in Signature class and it is held by
  9316. DownloadContext class. Note that aria2 doesn't verify signature.
  9317. * src/DownloadContext.cc
  9318. * src/DownloadContext.h
  9319. * src/Makefile.am
  9320. * src/Makefile.in
  9321. * src/Metalink2RequestGroup.cc
  9322. * src/MetalinkEntry.cc
  9323. * src/MetalinkEntry.h
  9324. * src/MetalinkParserController.cc
  9325. * src/MetalinkParserController.h
  9326. * src/MetalinkParserStateMachine.cc
  9327. * src/MetalinkParserStateMachine.h
  9328. * src/Signature.cc
  9329. * src/Signature.h
  9330. * src/SignatureMetalinkParserState.cc
  9331. * src/SignatureMetalinkParserState.h
  9332. * src/VerificationMetalinkParserState.cc
  9333. * src/VerificationMetalinkParserState.h
  9334. * test/Metalink2RequestGroupTest.cc
  9335. * test/MetalinkParserControllerTest.cc
  9336. * test/MetalinkProcessorTest.cc
  9337. * test/test.xml
  9338. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Close DiskAdaptor after renaming file.
  9340. * src/RequestGroup.cc
  9341. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9342. Corrected indentation
  9343. * src/DefaultBtProgressInfoFile.cc
  9344. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9345. Moved the calls of std::ios::exceptions() inside of try-catch block
  9346. because if an error occurred in constructor of std::fstream, then
  9347. exception is thrown immediately when std::ios::exceptions() is called
  9348. which results unhandled exception and aria2c aborts.
  9349. * src/DefaultBtProgressInfoFile.cc
  9350. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9351. Added the test for the previous change in DefaultBtContext.cc
  9352. * test/DefaultBtContextTest.cc
  9353. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9354. Fixed the bug that causes infinite loop when the number of pieces are
  9355. fewer than allowed fast set size which is 10 by default.
  9356. * src/DefaultBtContext.cc
  9357. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9358. Updated the descriptions for -j, -s. Added --bt-seed.
  9359. * doc/aria2c.1
  9360. * doc/aria2c.1.html
  9361. * doc/aria2c.1.txt
  9362. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9363. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  9364. aria2 seeds previously downloaded files without validating piece hashs.
  9365. * src/HelpItemFactory.cc
  9366. * src/OptionHandlerFactory.cc
  9367. * src/RequestGroup.cc
  9368. * src/option_processing.cc
  9369. * src/prefs.cc
  9370. * src/prefs.h
  9371. * src/usage_text.h
  9372. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9373. Updated DESCRIPTION of man page.
  9374. * doc/aria2c.1
  9375. * doc/aria2c.1.html
  9376. * doc/aria2c.1.txt
  9377. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9378. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  9379. Don't define `struct addrinfo' when __sun is defined.
  9380. * src/getaddrinfo.h
  9381. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9382. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  9383. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  9384. second argument is of type `struct _stati64'. Otherwise it is defined as
  9385. `struct stat'.
  9386. * src/AbstractDiskWriter.cc
  9387. * src/File.cc
  9388. * src/File.h
  9389. * src/a2io.h
  9390. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9391. Fixed the compile error in hurd-i386
  9392. See the original bug report:
  9393. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  9394. * src/a2io.h
  9395. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Code cleanup.
  9397. * src/PeerAbstractCommand.cc
  9398. * src/PeerAbstractCommand.h
  9399. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9400. Removed TransferEncoding.
  9401. * src/DownloadCommand.cc
  9402. * src/DownloadCommand.h
  9403. * src/HttpResponseCommand.cc
  9404. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9405. Updated po files.
  9406. * po/aria2c.pot
  9407. * po/*.po
  9408. * po/*.gmo
  9409. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9410. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9411. * src/A2STR.cc
  9412. * src/A2STR.h
  9413. * src/ChunkedDecoder.cc
  9414. * src/ChunkedDecoder.h
  9415. * src/ChunkedEncoding.cc: Removed
  9416. * src/ChunkedEncoding.h: Removed
  9417. * src/DownloadCommand.cc
  9418. * src/DownloadCommand.h
  9419. * src/HttpDownloadCommand.cc
  9420. * src/HttpResponse.cc
  9421. * src/HttpResponse.h
  9422. * src/HttpResponseCommand.cc
  9423. * src/HttpSkipResponseCommand.cc
  9424. * src/HttpSkipResponseCommand.h
  9425. * src/Makefile.am
  9426. * src/TransferEncoding.h: Removed
  9427. * test/ChunkedDecoderTest.cc
  9428. * test/ChunkedEncodingTest.cc: Removed
  9429. * test/HttpResponseTest.cc
  9430. * test/Makefile.am
  9431. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9432. Use append instead of insert.
  9433. * src/GZipDecoder.cc
  9434. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. Updated doc
  9436. * src/Decoder.h
  9437. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9438. Updated usage text for -s option.
  9439. * src/usage_text.h
  9440. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9442. * src/Request.cc
  9443. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9444. Cleaned up configure.ac.
  9445. * configure.ac
  9446. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9448. AC_ARG_ENABLE.
  9449. * configure.ac
  9450. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9451. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9452. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9453. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9454. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9455. fly and writes decoded data to a local disk.
  9456. * README
  9457. * README.html
  9458. * configure.ac
  9459. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9460. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9461. * m4/libz.m4
  9462. * src/Decoder.h
  9463. * src/DownloadCommand.cc
  9464. * src/DownloadCommand.h
  9465. * src/Exception.h
  9466. * src/GZipDecoder.cc
  9467. * src/GZipDecoder.h
  9468. * src/HttpHeader.cc
  9469. * src/HttpHeader.h
  9470. * src/HttpRequest.cc
  9471. * src/HttpRequest.h
  9472. * src/HttpResponse.cc
  9473. * src/HttpResponse.h
  9474. * src/HttpResponseCommand.cc
  9475. * src/Makefile.am
  9476. * test/GZipDecoderTest.cc
  9477. * test/HttpRequestTest.cc
  9478. * test/HttpResponseTest.cc
  9479. * test/Makefile.am
  9480. * test/Makefile.in
  9481. * test/gzip_decode_test.gz
  9482. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9483. Clarified usage of -j option.
  9484. * src/usage_text.h
  9485. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Disabled getting size from the response of RETR.
  9487. If SIZE command failed, then disable resuming and segmented downloading.
  9488. * src/FtpConnection.cc
  9489. * src/FtpConnection.h
  9490. * src/FtpNegotiationCommand.cc
  9491. * src/FtpNegotiationCommand.h
  9492. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9493. Use digits to find first byte of file size, which makes the intention
  9494. of the code clearer.
  9495. * src/FtpConnection.cc
  9496. Don't call validateTotalLength() when size is 0.
  9497. * src/FtpNegotiationCommand.cc
  9498. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9499. Updated po files.
  9500. * po/aria2c.pot
  9501. * po/*.gmo
  9502. * po/*.po
  9503. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. Clarified usage text for --split option.
  9505. * src/usage_text.h
  9506. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9507. Bump up version number to 0.15.0dev. "dev" means "development"
  9508. version, which means I started the development of the next release!
  9509. * src/configure.ac
  9510. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9511. If FTP server returns negative response with REST raw command and
  9512. requested range is not 0, throw exception. If requested range is 0,
  9513. continue download a file from 0 byte.
  9514. * src/FtpNegotiationCommand.cc
  9515. * src/FtpNegotiationCommand.h
  9516. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9517. Supported FTP server which don't recognize SIZE raw command.
  9518. If SIZE raw command is failed, aria2 will try to get file size
  9519. from the response of RETR raw command. If both attempts are failed,
  9520. then resuming and segmented downloading are disabled.
  9521. * src/FtpConnection.cc
  9522. * src/FtpConnection.h
  9523. * src/FtpNegotiationCommand.cc
  9524. * src/FtpNegotiationCommand.h
  9525. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9526. * Release 0.14.0+1
  9527. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9528. Bump up version number to 0.14.0+1
  9529. * src/configure.ac
  9530. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9531. Fixed the code that refers static member variable from non-static
  9532. context.
  9533. * src/DefaultPeerStorage.cc
  9534. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. * Release 0.14.0
  9536. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9537. Added build test script
  9538. * build_test.sh
  9539. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9540. Updated ja.po
  9541. * src/ja.po
  9542. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9543. Bump up version number to 0.14.0
  9544. * src/configure.ac
  9545. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9546. Updated ja.po and fr.po. Great thanks for french translators and
  9547. Sebastien WILLEMIJNS.
  9548. * po/fr.po
  9549. * po/ja.po
  9550. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9551. Added configure option to enable/disable epoll support.
  9552. * configure.ac
  9553. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9554. Updated man page.
  9555. * doc/aria2c.1.txt
  9556. * doc/aria2c.1
  9557. * doc/aria2c.1.html
  9558. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9559. Added missing default value '5' to the usage of --split option.
  9560. * src/HelpItemFactory.cc
  9561. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9562. Filled up pieces based on the number of missing blocks, rather than
  9563. simplay the number of piece * block length.
  9564. * src/BtRequestFactory.h
  9565. * src/DefaultBtInteractive.cc
  9566. * src/DefaultBtInteractive.h
  9567. * src/DefaultBtRequestFactory.cc
  9568. * src/DefaultBtRequestFactory.h
  9569. * src/Piece.cc
  9570. * src/Piece.h
  9571. * test/BitfieldManTest.cc
  9572. * test/DefaultBtRequestFactoryTest.cc
  9573. * test/MockBtRequestFactory.h
  9574. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9575. Made _epEvents a member variable.
  9576. * src/DownloadEngine.cc
  9577. * src/DownloadEngine.h
  9578. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9579. Cancel download if http redirect is bounded more than 20 times.
  9580. * src/AbstractCommand.cc
  9581. * src/HttpSkipResponseCommand.cc
  9582. * src/Request.cc
  9583. * src/Request.h
  9584. * test/RequestTest.cc
  9585. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. Fixed unhandled exception(removed keyword `new').
  9587. * src/SocketCore.cc (initEPOLL)
  9588. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9589. Removed visit(const MetaEntry*)
  9590. * src/MetaEntryVisitor.h:
  9591. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9592. and made them virtual.
  9593. * src/BencodeVisitor.h
  9594. * src/BencodeVisitor.cc
  9595. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Updated po files.
  9597. * po/aria2c.pot
  9598. * po/*.po
  9599. * po/*.gmo
  9600. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9601. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9602. the number of socket to watch out.
  9603. * src/PeerInteractionCommand.cc
  9604. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9605. When there is not enough space in disk when writing a chunk of data,
  9606. aria2 now prints the message to the console to warn user and aborts
  9607. its download. Not all downloads are canceled because some downloads
  9608. may use another disk or partition. BUG#1640332
  9609. * src/AbstractDiskWriter.cc
  9610. * src/PeerAbstractCommand.cc
  9611. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9612. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9613. setHaltRequested(true) to cancel download.
  9614. * src/PeerInteractionCommand.h
  9615. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9616. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9617. socket from int to sock_t as sockets are unsigned in Windows.
  9618. For AsyncNameResolver, DownloadEngine, I did additional modification
  9619. for the portion of the code changed according to epoll support.
  9620. I defined sock_t in a2netcompat.h to use sock_t without including
  9621. SocketCore.h.
  9622. * src/AsyncNameResolver.cc
  9623. * src/AsyncNameResolver.h
  9624. * src/DownloadEngine.cc
  9625. * src/DownloadEngine.h
  9626. * src/SocketCore.cc
  9627. * src/SocketCore.h
  9628. * src/a2netcompat.h
  9629. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9630. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9631. changes in the patch were applied.
  9632. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9633. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9634. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9635. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9637. a2io.h and common.h were modified.
  9638. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9639. MinGW.
  9640. * src/common.h: Changed off_t to 64 bit in MinGW.
  9641. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9642. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9643. only a2netcompat.h is modified.
  9644. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9645. directives.
  9646. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9647. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9648. only gai_strerror.h is modified.
  9649. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9650. winsock errors in MinGW.
  9651. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9652. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9653. follow sources are applied.
  9654. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9655. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9656. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9657. I included locale.h from Platform.cc.
  9658. * src/main.cc: Moved common setup/teardown code to Platform class.
  9659. * test/AllTest.cc: Use Platform class.
  9660. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9661. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9662. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9663. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9664. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9665. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9666. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9667. aria2-0.13.2+1-mingw-2.patch.
  9668. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9669. systems which don't have termious.h. I moved the directive inside of
  9670. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9671. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9672. anyway.
  9673. * src/asctime_r.h
  9674. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9675. I added 2nd argument to the prototype declaration.
  9676. * src/StringFormat.cc: Get rid of vasprintf.
  9677. * src/getaddrinfo.h: Fixed constants.
  9678. * configure.ac: Added the check for asctime_r function.
  9679. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9680. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9681. Added writable test for Socket when the sending message is in progress.
  9682. Usually the sending message is piece message. Without wriable check,
  9683. upload latency is dropped to more than 1sec.
  9684. * src/PeerInteractionCommand.cc
  9685. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. Create only requested files and files which shares a piece with
  9687. requested file in multi-torrent downloads. Directory structures are
  9688. also created in the same rule.
  9689. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9690. DiskWriterEntry as in the previous implementation.
  9691. * src/MultiDiskWriter.cc
  9692. * src/MultiFileAllocationIterator.cc
  9693. * src/MultiFileAllocationIterator.h
  9694. * test/MultiFileAllocationIteratorTest.cc
  9695. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9696. Commented out -lprofiler
  9697. * src/Makefile.am
  9698. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. Bump up version number to 0.14.0b.
  9700. * src/configure.ac
  9701. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9702. Actively establish connection to peers in seeding, when peer cache
  9703. is not full and max upload speed limit is not reached.
  9704. * src/ActivePeerConnectionCommand.cc
  9705. * src/ActivePeerConnectionCommand.h
  9706. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9707. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9708. to make room more fleshy, recently found peers.
  9709. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9710. it.
  9711. * src/DefaultPeerStorage.cc
  9712. * test/DefaultPeerStorageTest.cc
  9713. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9714. Returns cached data only when the previous receiveHandshake() is called
  9715. with peek = true.
  9716. * src/PeerConnection.cc (receiveHandshake)
  9717. * src/PeerConnection.h (receiveHandshake)
  9718. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9719. Changed default value of -s option from 1 to 5.
  9720. Also max value of -s option is changed from 5 to 16.
  9721. * src/HelpItemFactory.cc
  9722. * src/OptionHandlerFactory.cc
  9723. * src/option_processing.cc
  9724. * src/usage_text.h
  9725. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. Changed -s options behavior. Now it means the number of connections
  9727. made simultaneously in each http/ftp download.
  9728. If 1 URL is specified, the behavior is the same with old implementation.
  9729. If -s N is given and more than N URLs are specified, first N URLs are
  9730. used and remaining URLs are used for backup. If less than N URLs are
  9731. specified, some of URLs are used more than once so that totally N
  9732. connections are made simultaneously.
  9733. * src/main.cc
  9734. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9735. Included missing iosfwd or ostream header.
  9736. * src/RequestGroupMan.cc
  9737. * src/TaggedItem.cc
  9738. * src/TaggedItem.h
  9739. * src/Util.cc
  9740. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9741. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9742. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9743. * src/HttpConnection.cc: Included missing sstream.
  9744. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9745. Added --bt-max-open-files option.
  9746. * src/DefaultPieceStorage.cc
  9747. * src/HelpItemFactory.cc
  9748. * src/MultiDiskAdaptor.cc
  9749. * src/MultiDiskAdaptor.h
  9750. * src/OptionHandlerFactory.cc
  9751. * src/option_processing.cc
  9752. * src/prefs.cc
  9753. * src/prefs.h
  9754. * src/usage_text.h
  9755. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9756. Fixed the bug that aria2 aborts when a path to a directory is given
  9757. in command-line.
  9758. * src/ProtocolDetector.cc
  9759. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. Limited the number files opened in each BitTorrent download. The default
  9761. value is 100. The option to change this value will be added.
  9762. * src/MultiDiskAdaptor.cc
  9763. * src/MultiDiskAdaptor.h
  9764. * src/MultiFileAllocationIterator.cc
  9765. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9766. Fixed the bug that HTTP downloads don't start with old libraries.
  9767. * src/HttpHeaderProcessor.cc
  9768. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. Use empty() instead of size() > 0.
  9770. * src/HttpConnection.cc
  9771. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. Drop connection if the incoming peer ID is the same with localhost's
  9773. one. The previous implementation drops connection when incoming peer's
  9774. IP address is the same with localhost's one.
  9775. * src/PeerListenCommand.cc
  9776. * src/DefaultBtInteractive.cc
  9777. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9778. Returns cached data without checking whether socket is readable
  9779. if the cache is available.
  9780. * src/PeerConnection.cc (receiveHandshake)
  9781. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9782. Included stdint.h
  9783. * src/common.h
  9784. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9785. Removed duplicate HAVE_GETTIMEOFDAY
  9786. * src/Makefile.am
  9787. * src/Makefile.in
  9788. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9789. Use interval as a minInterval when minInterval is not supplied.
  9790. * src/DefaultBtAnnounce.cc
  9791. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9792. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9793. attempt is failed, then 2nd attempt get kicked out more quickly.
  9794. And it is now static const member of DefaultBtAnnounce.
  9795. * src/DefaultBtAnnounce.h
  9796. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9798. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9799. * src/ActivePeerConnectionCommand.cc
  9800. * src/BtConstants.h
  9801. * src/BtRuntime.h
  9802. * src/DHTGetPeersCommand.cc
  9803. * src/DefaultBtAnnounce.cc
  9804. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9805. BtRuntime::MAX_PEERS.
  9806. * src/DefaultPeerStorage.h
  9807. * src/InitiatorMSEHandshakeCommand.cc
  9808. * src/PeerInitiateConnectionCommand.cc
  9809. * src/PeerInteractionCommand.cc
  9810. * src/PeerReceiveHandshakeCommand.cc
  9811. * src/TrackerWatcherCommand.cc
  9812. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9813. Always Connect to _numNewConnection
  9814. * src/ActivePeerConnectionCommand.cc
  9815. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9816. Made `begin' unsigned int.
  9817. * src/GrowSegment.h
  9818. * src/Piece.cc
  9819. * src/Piece.h
  9820. * src/PiecedSegment.cc
  9821. * src/PiecedSegment.h
  9822. * src/Segment.h
  9823. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9824. Calculate piece hash when data is arrived if the data is arrived in
  9825. order. This removes additional read operation for hash calculation.
  9826. If the data is arrived in out of order, the hash is calucated when the
  9827. piece is completed. This is the same behavior as the old implementation.
  9828. * src/BtPieceMessage.cc
  9829. * src/DefaultBtProgressInfoFile.cc
  9830. * src/DefaultPieceStorage.cc
  9831. * src/DownloadCommand.cc
  9832. * src/DownloadCommand.h
  9833. * src/DownloadEngine.cc
  9834. * src/GrowSegment.cc
  9835. * src/GrowSegment.h
  9836. * src/Piece.cc
  9837. * src/Piece.h
  9838. * src/PiecedSegment.cc
  9839. * src/PiecedSegment.h
  9840. * src/Segment.h
  9841. * test/PieceTest.cc
  9842. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9843. Try to keep the ordering of outgoing piece message.
  9844. * src/DefaultBtMessageDispatcher.cc
  9845. (DefaultBtMessageDispatcher::sendMessages)
  9846. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9847. Fixed busy loop when error/hup epoll events occur.
  9848. * src/AbstractCommand.cc
  9849. * src/PeerAbstractCommand.cc
  9850. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9851. Added --bt-request-peer-speed-limit option, which was a constant
  9852. SLOW_SPEED_THRESHOLD.
  9853. * src/ActivePeerConnectionCommand.cc
  9854. * src/ActivePeerConnectionCommand.h
  9855. * src/BtConstants.h
  9856. * src/HelpItemFactory.cc
  9857. * src/OptionHandlerFactory.cc
  9858. * src/PeerReceiveHandshakeCommand.cc
  9859. * src/option_processing.cc
  9860. * src/prefs.cc
  9861. * src/prefs.h
  9862. * src/usage_text.h
  9863. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9864. Removed repeated call of getTopDirPath(). Instead, call it once and
  9865. cache the result.
  9866. * src/MultiDiskAdaptor.cc
  9867. * src/MultiDiskAdaptor.h
  9868. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9869. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9870. Fixed compile error on debian etch.
  9871. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9872. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9873. it is undefined.
  9874. * src/Util.cc (ULLONG_MAX)
  9875. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. Added epoll support. Use epoll if it is available. If not, use select.
  9877. When async dns is enabled in compile time, epoll support is enabled
  9878. only when aria2 is built with c-ares. This condition statement is
  9879. defined in a2io.h.
  9880. Currently aria2 supports both c-ares and ares, but ares is maintained
  9881. for quite a while and debian already has c-ares package, ares support
  9882. will be dropped in the future version.
  9883. * configure.ac
  9884. * src/AbstractCommand.cc
  9885. * src/AsyncNameResolver.cc
  9886. * src/AsyncNameResolver.h
  9887. * src/Command.cc
  9888. * src/Command.h
  9889. * src/DownloadEngine.cc
  9890. * src/DownloadEngine.h
  9891. * src/PeerAbstractCommand.cc
  9892. * src/SocketCore.cc
  9893. * src/SocketCore.h
  9894. * src/a2io.h
  9895. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9897. directive.
  9898. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9899. Do not do write operation to /dev/null file.
  9900. * src/LogFactory.cc
  9901. * src/SimpleLogger.cc
  9902. Replaced vasprintf with vsnprintf
  9903. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9904. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9905. * src/BtRequestMessage.cc
  9906. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9907. for segmentation fault caused by previous commit.
  9908. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9909. Reduced the usage of gettimeofday().
  9910. * src/DefaultBtMessageDispatcher.cc
  9911. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9912. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9913. * src/RequestSlot.cc
  9914. * src/RequestSlot.h
  9915. (RequestSlot::isTimeout)
  9916. Made RequestSlot have a reference to Piece object to avoid find
  9917. Piece repeatedly.
  9918. * src/DefaultBtMessageDispatcher.cc
  9919. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9920. * src/RequestSlot.cc
  9921. * src/RequestSlot.h
  9922. (RequestSlot::getPiece)
  9923. * test/DefaultBtMessageDispatcherTest.cc
  9924. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9925. * src/TimeA2.cc
  9926. * src/TimeA2.h
  9927. (Time::difference): New function.
  9928. (Time::elapsed): Done optimization.
  9929. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9930. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9931. directive.
  9932. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9933. * src/option_processing.cc: Added missing `defined' keyword to #if
  9934. directive.
  9935. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9936. Bump up version number to 0.13.2+1
  9937. * src/configure.ac
  9938. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9939. Refactored broken outstanding piece handling.
  9940. * src/DefaultPieceStorage.cc
  9941. * src/DefaultPieceStorage.h
  9942. * src/Piece.cc
  9943. * src/Piece.h
  9944. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9945. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9946. name collision of static variable and predefined macro.
  9947. * src/BtContext.cc
  9948. * src/BtContext.h
  9949. * src/CookieBoxFactory.cc
  9950. * src/CookieBoxFactory.h
  9951. * src/CookieParser.cc
  9952. * src/CookieParser.h
  9953. * src/DefaultBtContext.cc
  9954. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9955. * src/RequestGroup.cc
  9956. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9957. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9958. * Release 0.13.2
  9959. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9960. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9961. * po/fr.po
  9962. * po/ja.po
  9963. * po/aria2c.pot
  9964. * po/*.po
  9965. * po/*.gmo
  9966. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9967. Bump up version number to 0.13.2
  9968. * src/configure.ac
  9969. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9970. Refactord.
  9971. * src/RequestGroupMan.cc
  9972. (removeStoppedGroup)
  9973. (fillRequestGroupFromReserver)
  9974. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9975. Fixed compile error on Ubuntu.
  9976. * src/BtPieceMessage.cc
  9977. * src/MessageDigestHelper.cc
  9978. * src/Util.cc
  9979. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9980. Fixed compile error when configured with --disable-bittorrent
  9981. * test/DownloadHandlerFactoryTest.cc
  9982. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9983. Done make update-po
  9984. * po/aria2c.pot
  9985. * po/*.po
  9986. * po/*.gmo
  9987. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. Bump up version number to 0.13.2rc.
  9989. * src/configure.ac
  9990. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9991. Made option name bold. Updated SYNOPSIS to make it more readable.
  9992. * doc/aria2c.1.txt
  9993. * doc/aria2c.1
  9994. * doc/aria2c.1.html
  9995. * src/version_usage.cc
  9996. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9997. Refactored. Use std::string instead of size and char*.
  9998. * Data.cc
  9999. * Data.h
  10000. * test/Data.cc
  10001. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10002. Added trimSelf(). Rewritten trim() to use trimSelf().
  10003. * Util.cc
  10004. * Util.h
  10005. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10006. * src/ChunkChecksum.h (getChecksum): Return const reference.
  10007. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. Fixed compile error when configured with --disable-metalink.
  10009. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  10010. * test/FeatureConfigTest.cc
  10011. * test/DownloadHandlerFactoryTest.cc
  10012. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10013. Fixed compile error when configured with --without-gnutls
  10014. --without-openssl
  10015. * src/main.cc
  10016. * test/DefaultBtProgressInfoFileTest.cc
  10017. * test/SegmentManTest.cc
  10018. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10019. Fixed compile error with OpenSSL.
  10020. * src/IteratableChunkChecksumValidator.cc
  10021. * src/LibsslDHKeyExchange.h
  10022. * src/MessageDigestHelper.cc
  10023. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10024. Revert the default value of --max-concurrent-downloads to 5.
  10025. Revert the default value of --metalink-servers to 5.
  10026. Man pages was also updated.
  10027. * src/option_processing.cc
  10028. * doc/aria2c.1.txt
  10029. * doc/aria2c.1.html
  10030. * doc/aria2c.1
  10031. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10032. Returns const reference:
  10033. DownloadContext::getPieceHash, DownloadContext::getName,
  10034. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  10035. BtContext::getInfoHashAsString,
  10036. * src/BtContext.h
  10037. * src/DefaultBtContext.cc
  10038. * src/DefaultBtContext.h
  10039. * src/DownloadContext.h
  10040. * src/SingleFileDownloadContext.h
  10041. * test/MockBtContext.h
  10042. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10043. * src/RequestGroup.h (getDir): Removed.
  10044. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10045. Returns const reference. The internal urlencode function was optimized
  10046. a little bit.
  10047. * src/Request.cc
  10048. * src/Request.h
  10049. * src/HttpRequest.cc
  10050. * src/HttpRequest.h
  10051. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10052. Defined option name and possible values as std::string to reduce
  10053. temporary string object creation in runtime.
  10054. * src/HelpItemFactory.cc
  10055. * src/LogFactory.cc
  10056. * src/Option.cc
  10057. * src/OptionHandlerFactory.cc
  10058. * src/option_processing.cc
  10059. * src/prefs.cc
  10060. * src/prefs.h
  10061. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10062. Return const reference.
  10063. * src/DownloadHandlerConstants.cc
  10064. * src/DownloadHandlerConstants.h
  10065. (getMetalinkExtensions)
  10066. (getMetalinkContentTypes)
  10067. (getBtExtensions)
  10068. (getBtContentTypes)
  10069. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10070. * src/HttpHeader.cc (get): Rewritten.
  10071. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10072. Make HttpHeader::getFirst(...) return const reference.
  10073. * src/HttpHeader.cc
  10074. * src/HttpHeader.h
  10075. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10076. Use Option::getAsBool(...) instead of Option::get(...) and compare
  10077. it with V_TRUE.
  10078. * src/DefaultPieceStorage.cc
  10079. * src/DownloadCommand.cc
  10080. * src/FtpNegotiationCommand.cc
  10081. * src/HttpRequest.cc
  10082. * src/InitiateConnectionCommand.cc
  10083. * src/RequestGroup.cc
  10084. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10085. Made Option::get(...) return const reference of std::string.
  10086. * src/Option.cc
  10087. * src/Option.h
  10088. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10089. Replaced std:copy with insert.
  10090. * src/DefaultBtMessageDispatcher.cc
  10091. * src/DefaultPieceStorage.cc
  10092. * src/DownloadEngineFactory.cc
  10093. * src/RequestGroup.cc
  10094. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10095. Included SocketCore.h to fix compiler warning.
  10096. * src/InitiateConnectionCommand.cc
  10097. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10098. Put piece selection strategy algorithm to RarestPieceSelector class,
  10099. Added a switch to choose whether randomized selection so that unit
  10100. tests emit same results in, possibly, win32.
  10101. * src/DefaultPieceStorage.cc
  10102. * src/DefaultPieceStorage.h
  10103. * src/RarestPieceSelector.cc
  10104. * src/RarestPieceSelector.h
  10105. * test/DefaultPieceStorageTest.cc
  10106. * test/RarestPieceSelectorTest.cc
  10107. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10108. Don't pool connection if HTTP proxy is enabled.
  10109. * src/FtpFinishDownloadCommand.cc
  10110. * src/FtpNegotiationCommand.cc
  10111. * src/HttpSkipResponseCommand.cc
  10112. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10113. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  10114. * src/AbstractCommand.cc
  10115. * src/AbstractCommand.h
  10116. * src/ActivePeerConnectionCommand.cc
  10117. * src/FtpInitiateConnectionCommand.cc
  10118. * src/HttpInitiateConnectionCommand.cc
  10119. * src/InitiateConnectionCommandFactory.cc
  10120. * src/PeerAbstractCommand.cc
  10121. * src/PeerAbstractCommand.h
  10122. * src/PeerInitiateConnectionCommand.cc
  10123. * src/TrackerWatcherCommand.cc
  10124. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10125. Sort RequestSlot in ascending order and manipulate them using
  10126. lower_bound.
  10127. * src/DefaultBtMessageDispatcher.cc
  10128. * src/DefaultBtMessageDispatcher.h
  10129. (getMessageQueue): Added const qualifier.
  10130. (getRequestSlots): Added const qualifier.
  10131. (sendMessages): Use empty() instead of size().
  10132. (doCancelSendingPieceAction): Use HandleEvent object.
  10133. (doAbortOutstandingRequestAction): Rewritten.
  10134. (doChokedAction): Rewritten.
  10135. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  10136. (isOutstandingRequest): Rewritten.
  10137. (getOutstandingRequest): Rewritten.
  10138. (removeOutstandingRequest): Rewritten.
  10139. (addOutstandingRequest): Rewritten.
  10140. * src/RequestSlot.cc
  10141. * src/RequestSlot.h
  10142. (operator=): Rewritten.
  10143. (operator!=): New function.
  10144. (operator<): New function.
  10145. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10146. * src/DefaultBtRequestFactory.cc
  10147. (doChokedAction): Rewritten.
  10148. (removeCompletedPiece): Rewritten.
  10149. (removeTargetPiece): Rewritten.
  10150. (createRequestMessages): Added the debug log.
  10151. (createRequestMessagesOnEndGame: Added the debug log.
  10152. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10153. Added the debug log message.
  10154. * src/BtPieceMessage.cc (doReceivedAction)
  10155. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10156. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  10157. used lower_bound to process them rather than linear search.
  10158. * src/DHTPeerAnnounceStorage.cc
  10159. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10160. Call subtractPieceStats from ~PeerInteractionCommand only when the
  10161. peer has at least one completed piece.
  10162. * src/Peer.cc
  10163. * src/Peer.h
  10164. * src/PeerInteractionCommand.cc
  10165. * src/PeerSessionResource.cc
  10166. * src/PeerSessionResource.h
  10167. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10168. Removed unnecessary sorting
  10169. * src/DefaultPieceStorage (DefaultPieceStorage)
  10170. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10171. Rewritten the portion of the code that mangaes allowed fast indexes.
  10172. * src/PeerSessionResource.cc
  10173. * src/PeerSessionResource.h
  10174. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10175. Removed the invalid string including '\r' from ru.po and
  10176. did make update-po.
  10177. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10178. Added --log-level and --summary-interval to man page.
  10179. * doc/aria2c.1.txt
  10180. * doc/aria2c.1.html
  10181. * doc/aria2c.1
  10182. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10183. Added --log-level option to specify log level. Log messages under
  10184. the specified level are not output. Default value is `debug'.
  10185. * src/HelpItemFactory.cc
  10186. * src/LogFactory.cc
  10187. * src/LogFactory.h
  10188. * src/Logger.h
  10189. * src/OptionHandlerFactory.cc
  10190. * src/SimpleLogger.cc
  10191. * src/SimpleLogger.h
  10192. * src/main.cc
  10193. * src/option_processing.cc
  10194. * src/prefs.h
  10195. * src/usage_text.h
  10196. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10197. Print download progress summary of all parallel downloads in specified
  10198. interval, default 60 secs. While aria2 could download several files
  10199. in parallel (see -j option), it displayed just first download progress,
  10200. and the other downloads are hidden from the users. This new feature
  10201. prints all downloads currently in-progress to the console so that you
  10202. can check the status of all downloads. The interval can be adjusted
  10203. by --summary-interval option.
  10204. The progress readout is now cut so that all fits in the one line of
  10205. console.
  10206. * src/ConsoleStatCalc.cc
  10207. * src/ConsoleStatCalc.h
  10208. * src/HelpItemFactory.cc
  10209. * src/OptionHandlerFactory.cc
  10210. * src/RequestGroupMan.cc
  10211. * src/RequestGroupMan.h
  10212. * src/main.cc
  10213. * src/option_processing.cc
  10214. * src/prefs.h
  10215. * src/usage_text.h
  10216. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10217. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  10218. * src/DownloadEngine.cc (DownloadEngine)
  10219. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10220. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  10221. defined.
  10222. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  10223. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10224. Use erase+lower_bound+insert instead of sort.
  10225. * src/DefaultPieceStorage.cc (addPieceStats)
  10226. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10227. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  10228. * src/A2STR.cc
  10229. * src/A2STR.h
  10230. * src/OptionParser.cc (parse)
  10231. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10232. Defined fake filename `[tracker.announce]' as static const std::string.
  10233. * src/TrackerWatcherCommand.cc (createRequestGroup)
  10234. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10235. Defined default filename `index.html' as static const std::string
  10236. * src/SingleFileDownloadContext.cc
  10237. * src/SingleFileDownloadContext.h
  10238. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10239. Defined "[MEMORY]" as static const std::string.
  10240. * src/MemoryBufferPreDownloadHandler.cc (execute)
  10241. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10242. Defined control file's version number as static const std::string.
  10243. * src/DefaultBtProgressInfoFile.cc
  10244. * src/DefaultBtProgressInfoFile.h
  10245. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10246. Use Request::METHOD_GET
  10247. * src/RequestGroup.cc (createNextCommandWithAdj)
  10248. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10249. Defined "OK", "ERR", "INPR" as static const std::string
  10250. * src/RequestGroupMan.cc (showDownloadResults)
  10251. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10252. Defined default client used in extended handshake as static const
  10253. std::string
  10254. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  10255. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10256. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  10257. * src/HttpConnection.cc (eraseConfidentialInfo)
  10258. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. Defined default ftp user and password as static const std::string
  10260. * src/AuthConfigFactory.cc
  10261. * src/AuthConfigFactory.h
  10262. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10263. Defined strings used in netrc as static const std::string
  10264. * src/Netrc.cc
  10265. * src/Netrc.h
  10266. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10267. Defined HTTP status as static const std::string
  10268. * src/AbstractProxyResponseCommand.cc
  10269. * src/HttpHeader.cc
  10270. * src/HttpHeader.h
  10271. * src/HttpResponse.cc
  10272. * src/HttpResponseCommand.cc
  10273. * src/HttpSkipResponseCommand.cc
  10274. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10275. Defined "\r\n", "A", "I" as static const std::string
  10276. * src/A2STR.cc
  10277. * src/A2STR.h
  10278. * src/FtpConnection.cc
  10279. * src/FtpConnection.h
  10280. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10281. Added COLON_C(".") and used it in Request::parseUrl()
  10282. * src/A2STR.cc
  10283. * src/A2STR.h
  10284. * src/Request.cc (parseUrl)
  10285. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Changed the type of padName from `const std::string&' to `const char*'.
  10287. * src/MSEHandshake.cc (verifyPadLength)
  10288. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10289. Defined "sha1" as static const std::string.
  10290. * src/MetalinkParserController.cc
  10291. * src/MetalinkParserController.h
  10292. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10293. Defined message digest algorithm name as static const std::string
  10294. * src/DHTTokenTracker.cc
  10295. * src/DHTUtil.cc
  10296. * src/DefaultBtContext.cc
  10297. * src/MSEHandshake.cc
  10298. * src/MessageDigestHelper.cc
  10299. * src/Peer.cc
  10300. * src/messageDigest.cc
  10301. * src/messageDigest.h
  10302. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10303. Made string literals used in SAX parser static const std::string.
  10304. * src/FileMetalinkParserState.cc
  10305. * src/FileMetalinkParserState.h
  10306. * src/FilesMetalinkParserState.cc
  10307. * src/FilesMetalinkParserState.h
  10308. * src/InitialMetalinkParserState.cc
  10309. * src/InitialMetalinkParserState.h
  10310. * src/MetalinkMetalinkParserState.cc
  10311. * src/MetalinkMetalinkParserState.h
  10312. * src/PiecesMetalinkParserState.cc
  10313. * src/PiecesMetalinkParserState.h
  10314. * src/ResourcesMetalinkParserState.cc
  10315. * src/ResourcesMetalinkParserState.h
  10316. * src/VerificationMetalinkParserState.cc
  10317. * src/VerificationMetalinkParserState.h
  10318. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  10320. * src/A2STR.cc
  10321. * src/A2STR.h
  10322. * src/File.cc
  10323. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. Defined static const std::string IP("ip"), PORT("port") and use them
  10325. instead of string literals.
  10326. * src/DefaultPeerListProcessor.cc
  10327. * src/DefaultPeerListProcessor.h
  10328. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10329. Made string literals for torrent file processing static const
  10330. std::string.
  10331. * src/BtContext.cc
  10332. * src/BtContext.h
  10333. * src/DefaultBtContext.cc
  10334. * src/DefaultBtContext.h
  10335. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10336. Made string literal for tracker response static const std::string
  10337. * src/BtAnnounce.cc
  10338. * src/BtAnnounce.h
  10339. * src/DefaultBtAnnounce.cc
  10340. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10341. Use DHTMessage::T instead of "t".
  10342. * src/DHTMessageTracker.cc (messageArrived)
  10343. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10344. Made keyName static const. Made trimmed charset static const
  10345. std::string.
  10346. * src/Util.cc (getContentDispositionFilename)
  10347. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10348. Made USER_AGENT const. Made "/" static const std::string.
  10349. * src/A2STR.cc
  10350. * src/A2STR.h
  10351. * src/HttpRequest.cc
  10352. * src/HttpRequest.h
  10353. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10354. Made string listeral to static const std::string:
  10355. "Content-Range", "Content-Length"
  10356. * src/HttpHeader.cc
  10357. * src/HttpHeader.h
  10358. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10359. Made string listeral to static const std::string.
  10360. * src/HttpConnection.cc
  10361. * src/HttpHeader.cc
  10362. * src/HttpHeader.h
  10363. * src/HttpResponse.cc
  10364. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10365. Made string listeral to static const std::string.
  10366. * src/A2STR.cc
  10367. * src/A2STR.h
  10368. * src/SimpleLogger.cc
  10369. * src/SimpleLogger.h
  10370. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10371. Made string literal to static const std::string.
  10372. Rewritten CookieParser::setField.
  10373. * src/A2STR.cc
  10374. * src/A2STR.h
  10375. * src/CookieBoxFactory.cc
  10376. * src/CookieBoxFactory.h
  10377. * src/CookieParser.cc
  10378. * src/CookieParser.h
  10379. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10380. Made string literal to static const std::string
  10381. * src/DHTAbstractMessage.cc
  10382. * src/DHTAnnouncePeerMessage.cc
  10383. * src/DHTAnnouncePeerMessage.h
  10384. * src/DHTAnnouncePeerReplyMessage.cc
  10385. * src/DHTAnnouncePeerReplyMessage.h
  10386. * src/DHTFindNodeMessage.cc
  10387. * src/DHTFindNodeMessage.h
  10388. * src/DHTFindNodeReplyMessage.cc
  10389. * src/DHTFindNodeReplyMessage.h
  10390. * src/DHTGetPeersMessage.cc
  10391. * src/DHTGetPeersMessage.h
  10392. * src/DHTGetPeersReplyMessage.cc
  10393. * src/DHTGetPeersReplyMessage.h
  10394. * src/DHTMessage.cc
  10395. * src/DHTMessage.h
  10396. * src/DHTMessageFactoryImpl.cc
  10397. * src/DHTMessageReceiver.cc
  10398. * src/DHTPingMessage.cc
  10399. * src/DHTPingMessage.h
  10400. * src/DHTPingReplyMessage.cc
  10401. * src/DHTPingReplyMessage.h
  10402. * src/DHTQueryMessage.cc
  10403. * src/DHTQueryMessage.h
  10404. * src/DHTResponseMessage.cc
  10405. * src/DHTResponseMessage.h
  10406. * src/DHTUnknownMessage.cc
  10407. * src/DHTUnknownMessage.h
  10408. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10409. Made string literal to static const std::string
  10410. * src/BtChokeMessage.cc (toString)
  10411. * src/BtHaveAllMessage.cc (toString)
  10412. * src/BtHaveNoneMessage.cc (toString)
  10413. * src/BtInterestedMessage.cc (toString)
  10414. * src/BtNotInterestedMessage.cc (toString)
  10415. * src/BtUnchokeMessage.cc (toString)
  10416. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10417. Replaced "" with static const variable A2STR::NIL.
  10418. Replaced string comparison against "" with std::string::empty().
  10419. Added PROTO_* to Request class and use them as a protocol string
  10420. constant.
  10421. Made "started", "stopped", "completed" static const variable in
  10422. AnnounceList class.
  10423. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10424. Updated translations. Great thanks to translators.
  10425. * po/ca.po
  10426. * po/de.po
  10427. * po/fr.po
  10428. * po/it.po
  10429. * po/ja.po
  10430. * po/ru.po
  10431. * po/zh_CN.po
  10432. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10433. Updated man page; categorized options and fixed typo.
  10434. * doc/aria2c.1.txt
  10435. * doc/aria2c.1.html
  10436. * doc/aria2c.1
  10437. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. Removed const ref
  10439. * src/MetalinkEntry.cc (AddProtocolPreference)
  10440. * src/RequestGroup.cc (FindServerHostByHostname)
  10441. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10442. Rewritten Accept-Features handling.
  10443. * src/HttpRequestCommand.cc (createHttpRequest)
  10444. * src/a2functional.h
  10445. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10446. Changed method signature:
  10447. DHTAbstractNodeLookupTask::toEntries
  10448. * src/DHTAbstractNodeLookupTask.cc
  10449. * src/DHTAbstractNodeLookupTask.h
  10450. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10451. Changed method signature:
  10452. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10453. * src/BtContext.h
  10454. * src/DefaultBtContext.cc
  10455. * src/DefaultBtContext.h
  10456. * src/DefaultBtInteractive.cc
  10457. * test/DefaultBtContextTest.cc
  10458. * test/MockBtContext.h
  10459. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10460. Changed method signature:
  10461. MultiFileAllocationIterator::makeDiskWriterEntries
  10462. * src/MultiFileAllocationIterator.cc
  10463. * src/MultiFileAllocationIterator.h
  10464. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10465. Changed method sinature:
  10466. MetalinkEntry::toFileEntry,
  10467. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10468. Metalinker::queryEntry
  10469. * src/Metalink2RequestGroup.cc
  10470. * src/MetalinkEntry.cc
  10471. * src/MetalinkEntry.h
  10472. * src/MetalinkHelper.cc
  10473. * src/MetalinkHelper.h
  10474. * src/Metalinker.cc
  10475. * src/Metalinker.h
  10476. * src/main.cc
  10477. * test/MetalinkHelperTest.cc
  10478. * test/MetalinkerTest.cc
  10479. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10480. Changed method sinature:
  10481. RequestGroup::getURIs
  10482. * src/RequestGroup.cc
  10483. * src/RequestGroup.h
  10484. * test/Metalink2RequestGroupTest.cc
  10485. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10486. Changed method signature:
  10487. PeerListProcessor::extractPeer
  10488. * src/CompactPeerListProcessor.cc
  10489. * src/CompactPeerListProcessor.h
  10490. * src/DefaultBtAnnounce.cc
  10491. * src/DefaultPeerListProcessor.cc
  10492. * src/DefaultPeerListProcessor.h
  10493. * src/DelegatingPeerListProcessor.cc
  10494. * src/DelegatingPeerListProcessor.h
  10495. * src/PeerListProcessor.h
  10496. * src/UTPexExtensionMessage.cc
  10497. * test/DefaultPeerListProcessorTest.cc
  10498. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10499. Changed method signature:
  10500. BtRequestFactory::createRequestMessages,
  10501. BtRequestFactory::createRequestMessagesOnEndGame
  10502. * src/BtRequestFactory.h
  10503. * src/DefaultBtInteractive.cc
  10504. * src/DefaultBtRequestFactory.cc
  10505. * src/DefaultBtRequestFactory.h
  10506. * test/DefaultBtRequestFactoryTest.cc
  10507. * test/MockBtRequestFactory.h
  10508. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10509. Changed method signature:
  10510. PieceStorage::getInFlightPieces
  10511. * src/DefaultBtProgressInfoFile.cc
  10512. * src/DefaultPieceStorage.cc
  10513. * src/DefaultPieceStorage.h
  10514. * src/PieceStorage.h
  10515. * src/UnknownLengthPieceStorage.cc
  10516. * src/UnknownLengthPieceStorage.h
  10517. * test/DefaultBtProgressInfoFileTest.cc
  10518. * test/MockPieceStorage.h
  10519. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10520. Changed method signature:
  10521. PostDownloadHandler::getNextRequestGroups
  10522. Metalink2RequestGroup::generate
  10523. RequestGroup::postDownloadProcessing
  10524. * src/BtPostDownloadHandler.cc
  10525. * src/BtPostDownloadHandler.h
  10526. * src/Metalink2RequestGroup.cc
  10527. * src/Metalink2RequestGroup.h
  10528. * src/MetalinkPostDownloadHandler.cc
  10529. * src/MetalinkPostDownloadHandler.h
  10530. * src/PostDownloadHandler.h
  10531. * src/RequestGroup.cc
  10532. * src/RequestGroup.h
  10533. * src/RequestGroupMan.cc
  10534. * src/main.cc
  10535. * test/BtPostDownloadHandlerTest.cc
  10536. * test/Metalink2RequestGroupTest.cc
  10537. * test/MetalinkPostDownloadHandlerTest.cc
  10538. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10539. Rewritten AccRequestGroup
  10540. * src/main.cc
  10541. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10542. Rewritten.
  10543. * src/TaggedItem.cc (toTagString)
  10544. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10545. Rewritten Accept-Features handling.
  10546. * src/HttpRequestCommand.cc (createHttpRequest)
  10547. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10548. Rewritten accept types handling.
  10549. * HttpRequest.cc (createRequest)
  10550. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10551. Rewritten
  10552. * src/FeatureConfig.cc (featureSummary)
  10553. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10554. Changed method signature:
  10555. PeerStorage::getActivePeers
  10556. * src/DHTPeerAnnounceEntry.cc
  10557. * src/DefaultPeerStorage.cc
  10558. * src/DefaultPeerStorage.h
  10559. * src/PeerStorage.h
  10560. * test/DefaultPeerStorageTest.cc
  10561. * test/MockPeerStorage.h
  10562. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10563. Changed method signature:
  10564. DHTPeerAnnounceStorage::getPeers,
  10565. DHTPeerAnnounceEntry::getPeers
  10566. * src/DHTGetPeersMessage.cc
  10567. * src/DHTPeerAnnounceEntry.cc
  10568. * src/DHTPeerAnnounceEntry.h
  10569. * src/DHTPeerAnnounceStorage.cc
  10570. * src/DHTPeerAnnounceStorage.h
  10571. * test/DHTAnnouncePeerMessageTest.cc
  10572. * test/DHTPeerAnnounceEntryTest.cc
  10573. * test/DHTPeerAnnounceStorageTest.cc
  10574. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10575. Changed method signature:
  10576. NameResolver::resolve
  10577. * src/DHTEntryPointNameResolveCommand.cc
  10578. * src/InitiateConnectionCommand.cc
  10579. * src/NameResolver.cc
  10580. * src/NameResolver.h
  10581. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10582. Changed method signature:
  10583. PieceStorage::getAdvertisedPieceIndexes
  10584. * src/DefaultBtInteractive.cc
  10585. * src/DefaultPieceStorage.cc
  10586. * src/DefaultPieceStorage.h
  10587. * src/PieceStorage.h
  10588. * src/UnknownLengthPieceStorage.h
  10589. * test/MockPieceStorage.h
  10590. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. Changed method signature:
  10592. SegmentMan::getInFlightSegment
  10593. * src/AbstractCommand.cc
  10594. * src/SegmentMan.cc
  10595. * src/SegmentMan.h
  10596. * test/SegmentManTest.cc
  10597. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10598. Changed method signature:
  10599. DHTAbstractNodeLookupTask::getNodesFromMessage
  10600. * src/DHTAbstractNodeLookupTask.cc
  10601. * src/DHTAbstractNodeLookupTask.h
  10602. * src/DHTNodeLookupTask.cc
  10603. * src/DHTNodeLookupTask.h
  10604. * src/DHTPeerLookupTask.cc
  10605. * src/DHTPeerLookupTask.h
  10606. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10607. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10608. * src/AbstractCommand.cc
  10609. * src/BtCheckIntegrityEntry.cc
  10610. * src/BtCheckIntegrityEntry.h
  10611. * src/BtFileAllocationEntry.cc
  10612. * src/BtFileAllocationEntry.h
  10613. * src/BtSetup.cc
  10614. * src/BtSetup.h
  10615. * src/CheckIntegrityCommand.cc
  10616. * src/CheckIntegrityEntry.h
  10617. * src/ChecksumCheckIntegrityEntry.cc
  10618. * src/ChecksumCheckIntegrityEntry.h
  10619. * src/DHTSetup.cc
  10620. * src/DHTSetup.h
  10621. * src/DownloadEngine.cc
  10622. * src/FileAllocationCommand.cc
  10623. * src/FileAllocationEntry.h
  10624. * src/RequestGroup.cc
  10625. * src/RequestGroup.h
  10626. * src/RequestGroupMan.cc
  10627. * src/RequestGroupMan.h
  10628. * src/StreamCheckIntegrityEntry.cc
  10629. * src/StreamCheckIntegrityEntry.h
  10630. * src/StreamFileAllocationEntry.cc
  10631. * src/StreamFileAllocationEntry.h
  10632. * src/TrackerWatcherCommand.cc
  10633. * src/a2functional.h
  10634. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10635. Changed method signature:
  10636. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10637. DHTBucket::getGoodNodes,
  10638. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10639. * src/BNode.cc
  10640. * src/BNode.h
  10641. * src/DHTAbstractNodeLookupTask.cc
  10642. * src/DHTAutoSaveCommand.cc
  10643. * src/DHTBucket.cc
  10644. * src/DHTBucket.h
  10645. * src/DHTBucketRefreshTask.cc
  10646. * src/DHTFindNodeMessage.cc
  10647. * src/DHTGetPeersMessage.cc
  10648. * src/DHTRoutingTable.cc
  10649. * src/DHTRoutingTable.h
  10650. * test/BNodeTest.cc
  10651. * test/DHTBucketTest.cc
  10652. * test/DHTRoutingTableTest.cc
  10653. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10654. In piece selection functions, Pass std::deque<...> by reference rather
  10655. than returning it.
  10656. * src/BitfieldMan.cc
  10657. * src/BitfieldMan.h
  10658. * src/DefaultBtRequestFactory.cc
  10659. * src/DefaultPieceStorage.cc
  10660. * src/Piece.cc
  10661. * src/Piece.h
  10662. * test/BitfieldManTest.cc
  10663. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10664. Implemented rarest piece first piece selection strategy.
  10665. * src/AbstractBtMessage.cc
  10666. * src/AbstractBtMessage.h
  10667. * src/BitfieldMan.cc
  10668. * src/BitfieldMan.h
  10669. * src/BtBitfieldMessage.cc
  10670. * src/BtHaveAllMessage.cc
  10671. * src/BtHaveMessage.cc
  10672. * src/DefaultPieceStorage.cc
  10673. * src/DefaultPieceStorage.h
  10674. * src/PeerInteractionCommand.cc
  10675. * src/PieceStorage.h
  10676. * src/UnknownLengthPieceStorage.h
  10677. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10678. Rewritten readData and writeData.
  10679. * src/MultiDiskAdaptor.cc
  10680. * src/MultiDiskAdaptor.h
  10681. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10682. Move \n out of the message "Usage: ...".
  10683. * src/version_usage.cc
  10684. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10685. Bump up version number to 0.13.2b.
  10686. * configure.ac
  10687. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10688. Added const qualifier to argument Exception& e.
  10689. * src/Logger.h
  10690. * src/SimpleLogger.cc
  10691. * src/SimpleLogger.h
  10692. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10693. Pool connection when CWD, SIZE command fails.
  10694. * src/FtpNegotiationCommand.cc
  10695. * src/FtpNegotiationCommand.h
  10696. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10697. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10698. * src/HttpResponseCommand.cc
  10699. * src/HttpSkipResponseCommand.cc
  10700. * src/HttpSkipResponseCommand.h
  10701. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10702. Pool connection when a server returns 4xx, 5xx responses.
  10703. * src/HttpNullDownloadCommand.cc
  10704. * src/HttpNullDownloadCommand.h
  10705. * src/HttpResponse.cc
  10706. * src/HttpResponse.h
  10707. * src/HttpResponseCommand.cc
  10708. * src/HttpResponseCommand.h
  10709. * test/HttpResponseTest.cc
  10710. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10711. Print usage when no URL is specifed or bad command-line option is
  10712. specified.
  10713. * src/HelpItemFactory.cc
  10714. * src/help_tags.h
  10715. * src/option_processing.cc
  10716. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10717. Removed duplicate log message.
  10718. * src/AbstractCommand.cc (asyncResolveHostname)
  10719. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10720. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10721. Changed -j option's default value from 5 to 1.
  10722. Added new examples using protocol auto detection feature.
  10723. Removed -T, -M usage where it can be omitted.
  10724. * doc/aria2c.1.txt
  10725. * doc/aria2c.1.html
  10726. * doc/aria2c.1.txt
  10727. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10728. Updated command-line usage text, so that it tells users that they
  10729. can specify any number of torrent files and metalink files in
  10730. command-line.
  10731. * src/version_usage.cc
  10732. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10733. Changed the default value of -j option to 1.
  10734. * src/HelpItemFactory.cc
  10735. * src/option_processing.cc
  10736. * src/usage_text.h
  10737. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10738. Added the ability to reuse connection in FTP and it is enabled by
  10739. default. It can be disabled by --ftp-reuse-connection=false option.
  10740. * src/Command.cc
  10741. * src/DownloadCommand.cc
  10742. * src/FtpDownloadCommand.cc
  10743. * src/FtpDownloadCommand.h
  10744. * src/FtpFinishDownloadCommand.cc
  10745. * src/FtpFinishDownloadCommand.h
  10746. * src/FtpInitiateConnectionCommand.cc
  10747. * src/FtpNegotiationCommand.cc
  10748. * src/FtpNegotiationCommand.h
  10749. * src/HelpItemFactory.cc
  10750. * src/Makefile.am
  10751. * src/Makefile.in
  10752. * src/OptionHandlerFactory.cc
  10753. * src/option_processing.cc
  10754. * src/prefs.h
  10755. * src/usage_text.h
  10756. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10757. Call Command::transitStatus() before calling Command::execute(),
  10758. so that the status change made in execute() is not cleared.
  10759. * src/DownloadEngine.cc
  10760. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10761. Removed forward declaration of SocketCore class.
  10762. * src/HttpDownloadCommand.h
  10763. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10764. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10765. in InitiateConnectionCommandFactory. They should be set only when
  10766. the protocol is HTTP or HTTPS.
  10767. * src/InitiateConnectionCommandFactory.cc
  10768. * src/RequestGroup.cc
  10769. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10770. Fixed infinite loop in checksum checking.
  10771. * src/IteratableChecksumValidator.cc
  10772. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10773. Set _supportsPersistentConnection to true by default.
  10774. * src/Request.cc
  10775. * src/RequestGroup.cc
  10776. * test/HttpRequestTest.cc
  10777. * test/RequestTest.cc
  10778. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10779. Added timeout to socket pool. The default timeout is 15 seconds,
  10780. which is the same value Apache uses.
  10781. * src/DownloadEngine.cc
  10782. * src/DownloadEngine.h
  10783. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10784. Fixed misuse of multimap::find()
  10785. * src/HttpHeader.cc
  10786. * test/HttpHeaderTest.cc
  10787. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10788. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10789. option.
  10790. The asynchronous DNS is not capable of IPv6 yet.
  10791. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10792. least for HTTP download.
  10793. * src/AbstractCommand.cc
  10794. * src/AbstractCommand.h
  10795. * src/AsyncNameResolver.cc
  10796. * src/AsyncNameResolver.h
  10797. * src/DHTEntryPointNameResolveCommand.cc
  10798. * src/DHTEntryPointNameResolveCommand.h
  10799. * src/DownloadEngine.cc
  10800. * src/DownloadEngine.h
  10801. * src/FtpInitiateConnectionCommand.cc
  10802. * src/FtpInitiateConnectionCommand.h
  10803. * src/HelpItemFactory.cc
  10804. * src/HttpInitiateConnectionCommand.cc
  10805. * src/HttpInitiateConnectionCommand.h
  10806. * src/InitiateConnectionCommand.cc
  10807. * src/InitiateConnectionCommand.h
  10808. * src/Makefile.am
  10809. * src/Makefile.in
  10810. * src/NameResolver.cc
  10811. * src/NameResolver.h
  10812. * src/OptionHandlerFactory.cc
  10813. * src/SocketCore.cc
  10814. * src/SocketCore.h
  10815. * src/Util.cc
  10816. * src/Util.h
  10817. * src/option_processing.cc
  10818. * src/prefs.h
  10819. * src/usage_text.h
  10820. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10821. Updated man page: --quiet, --header were added.
  10822. --metalink-servers and --enable-http-keep-alive option were updated.
  10823. * doc/aria2c.1
  10824. * doc/aria2c.1.html
  10825. * doc/aria2c.1.txt
  10826. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10827. Enable HTTP keep-alive by default.
  10828. * src/HelpItemFactory.cc
  10829. * src/option_processing.cc
  10830. * src/usage_text.h
  10831. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10832. Disable http keep-alive if the remote server is not HTTP/1.1.
  10833. * src/HttpConnection.cc
  10834. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10835. Receive content body of 302 response so that the connection can be
  10836. reused later when http keep-alive is enabled.
  10837. * src/HttpNullDownloadCommand.cc
  10838. * src/HttpNullDownloadCommand.h
  10839. * src/HttpResponseCommand.cc
  10840. * src/HttpResponseCommand.h
  10841. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10842. const SharedHandle<Request> -> const SharedHandle<Request>&
  10843. * src/FtpDowndloadCommand.cc
  10844. * src/FtpDowndloadCommand.h
  10845. * src/HttpDownloadCommand.cc
  10846. * src/HttpDownloadCommand.h
  10847. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10848. Fixed the bug that the control file(.aria2 file) is not renamed
  10849. according to tryAutoFileRenaming().
  10850. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10851. its control file exist, use them and continue download.
  10852. The old implementation didn't take into account of control file's
  10853. existence, so basically you couldn't continue download of renamed file.
  10854. * src/BtProgressInfoFile.h
  10855. * src/DefaultBtProgressInfoFile.cc
  10856. * src/DefaultBtProgressInfoFile.h
  10857. * src/NullProgressInfoFile.h
  10858. * src/RequestGroup.cc
  10859. * test/DefaultBtProgressInfoFileTest.cc
  10860. * test/MockBtProgressInfoFile.h
  10861. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10862. Change the default value of --metalink-servers option from `5' to `1'.
  10863. * src/HelpItemFactory.cc
  10864. * src/option_processing.cc
  10865. * src/usage_text.h
  10866. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10867. Reimplemented transparent metalink using Accept request header.
  10868. * src/HttpRequest.cc
  10869. * src/HttpRequest.h
  10870. * src/HttpRequestCommand.cc
  10871. * src/Metalink2RequestGroup.cc
  10872. * src/RequestGroup.cc
  10873. * src/RequestGroup.h
  10874. * test/HttpRequestTest.cc
  10875. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10876. Bump up version number to 0.13.2a
  10877. * configure.ac
  10878. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10879. Updated configure.ac using the result of autoscan.
  10880. * configure.ac
  10881. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10882. Fixed compilation error without gcrypt/openssl.
  10883. * src/DownloadCommand.cc
  10884. * src/DownloadCommand.h
  10885. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10886. Reorganized version information so that it can be displayed in a
  10887. standard terminal screen without scrolling.
  10888. Removed http, ftp from Configuration section, because they are always
  10889. enabled.
  10890. * src/FeatureConfig.cc
  10891. * src/FeatureConfig.h
  10892. * src/main.cc
  10893. * src/messageDigest.cc
  10894. * src/messageDigest.h
  10895. * src/version_usage.cc
  10896. * test/FeatureConfigTest.cc
  10897. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10898. Masked user ID in log.
  10899. * src/FtpConnection.cc (sendUser)
  10900. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10901. Removed query part from filename in HTTP download. The query part means
  10902. the substring after "?" in URL. Firefox seems do the same thing.
  10903. A query part is sometimes very long and not suitable to filename,
  10904. so I think it is better to remove it from filename.
  10905. * src/HttpRequest.cc
  10906. * src/HttpRequest.h
  10907. * src/Request.cc
  10908. * src/Request.h
  10909. * test/HttpRequestTest.cc
  10910. * test/RequestTest.cc
  10911. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10912. Rewritten Exception class. Throw exception object, not its pointer and
  10913. catch by reference, so that remove problematic delete operator for
  10914. catched exception.
  10915. * src/Exception.cc
  10916. * src/Exception.h
  10917. * test/ExceptionTest.cc
  10918. * src/*: All files throwing/catching exception.
  10919. * test/*: All files throwing/catching exception.
  10920. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10921. Now auto protocol detection is enabled without -Z option.
  10922. But there is a important difference between with/without -Z optoin.
  10923. For example, if you type:
  10924. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10925. then, aria2 interprets there are 3 request groups:
  10926. (1) http://host/file, http://mirror/file <-- multi-source download
  10927. (2) file1.torrent
  10928. (3) file2.metalink
  10929. On the other hand, if you invoke above command with -Z option, it is
  10930. interpreted as 4 request groups:
  10931. (1) http://host/file
  10932. (2) file1.torrent
  10933. (3) file2.metalink
  10934. (4) http://mirror/file
  10935. I think usually user don't mix multi-source URLs and torrent files, so
  10936. there is no big problem here.
  10937. * src/main.cc
  10938. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10939. Fixed the bug that causes segmentaion fault when reading XML containing
  10940. unescapsed character like '&'.
  10941. Also a modification was made which avoids adding unnecessary
  10942. characters stack and appending unused string.
  10943. * src/ExpatMetalinkProcessor.cc
  10944. * src/FileMetalinkParserState.h
  10945. * src/FilesMetalinkParserState.h
  10946. * src/FinMetalinkParserState.h
  10947. * src/HashMetalinkParserState.h
  10948. * src/InitialMetalinkParserState.h
  10949. * src/LanguageMetalinkParserState.h
  10950. * src/MetalinkMetalinkParserState.h
  10951. * src/MetalinkParserState.h
  10952. * src/MetalinkParserStateMachine.cc
  10953. * src/MetalinkParserStateMachine.h
  10954. * src/OSMetalinkParserState.h
  10955. * src/PieceHashMetalinkParserState.h
  10956. * src/PiecesMetalinkParserState.h
  10957. * src/ResourcesMetalinkParserState.h
  10958. * src/SizeMetalinkParserState.h
  10959. * src/SkipTagMetalinkParserState.h
  10960. * src/URLMetalinkParserState.h
  10961. * src/VerificationMetalinkParserState.h
  10962. * src/VersionMetalinkParserState.h
  10963. * src/XML2SAXMetalinkProcessor.cc
  10964. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10965. Added StringFormat class, which internally calls vasprintf.
  10966. operator<< is defined for this class, so it can be used with iostream
  10967. classes nicely. SimpleLogger and following functions are rewritten
  10968. using StringFormat class.
  10969. Besides, now Logger class's methods are non-const, many classes
  10970. that has a const Logger* as a member variable are modified to remove
  10971. const qualifier from the variable declaration.
  10972. * src/HelpItemFactory.cc
  10973. * src/Request.cc
  10974. * src/SimpleLogger.cc
  10975. * src/StringFormat.cc
  10976. * src/StringFormat.h
  10977. * src/Util.cc
  10978. * src/option_processing.cc
  10979. * src/version_usage.cc
  10980. * test/StringFormatTest.cc
  10981. * src/*.h: The classes that has const Logger* as a member variable.
  10982. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10983. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10984. failed. Also fixed memory link when exception is thrown there.
  10985. * src/main.cc (AccRequestGroup)
  10986. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10987. Added build-in "Accept-Features" support. For now only "metalink" is
  10988. used in this header field.
  10989. This "metalink" value is removed from the list when connecting URLs
  10990. fed by metalink file to avoid loop in "transparent" metlaink.
  10991. * src/HttpRequest.cc
  10992. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10993. header is also held in this variable. Also renamed setUserHeaders as
  10994. addHeader and it was rewritten to add header not just to clear the old
  10995. value.
  10996. * src/HttpRequestCommand.cc
  10997. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10998. from "Accept-Features" list.
  10999. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  11000. default.
  11001. * src/RequestGroup.h
  11002. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  11003. * src/a2functional.h: Included <string> because Concat class depends on
  11004. it.
  11005. * test/HttpRequestTest.cc
  11006. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11007. Added comment
  11008. * src/RequestGroup.cc (createNextCommand)
  11009. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11010. Capitalized METHOD_GET and METHOD_HEAD
  11011. * src/Request.cc
  11012. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11013. Added getDownloadResults() method
  11014. * src/RequestGroupMan.cc
  11015. * src/RequestGroupMan.h
  11016. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Fixed the bug that aria2 exits when commands is empty() but
  11018. _routineCommands are not.
  11019. * src/DownloadEngine.cc
  11020. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11021. Use the default value pulled from Option object in HelpItemFactory.
  11022. except options whose defualt value is embedded in a usage text.
  11023. * src/HelpItemFactory.cc
  11024. * src/HelpItemFactory.h
  11025. * src/option_processing.cc
  11026. * src/version_usage.cc
  11027. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11028. Added --quiet option to make aria2 quiet (no console output).
  11029. --quiet option is tagged with ADVANCED.
  11030. * src/HelpItemFactory.cc
  11031. * src/LogFactory.cc
  11032. * src/LogFactory.h
  11033. * src/MultiUrlRequestInfo.cc
  11034. * src/MultiUrlRequestInfo.h
  11035. * src/NullStatCalc.h: New class. This class prints nothing.
  11036. * src/OptionHandlerFactory.cc
  11037. * src/main.cc
  11038. * src/option_processing.cc
  11039. * src/prefs.h
  11040. * src/usage_text.h
  11041. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11042. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  11043. * src/HelpItemFactory.cc (createHelpItems):
  11044. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11045. Fixed compilation error in ExpatMetalinkProcessor.cc
  11046. * src/ExpatMetalinkProcessor.cc
  11047. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11048. Reuse socket if the origin server supports HTTP keep-alive and
  11049. --enable-http-keep-alive or --enable-http-pipelining is given.
  11050. The current implementation doesn't reuse the connections established
  11051. against proxy server.
  11052. * src/AbstractCommand.cc
  11053. * src/DownloadEngine.cc
  11054. * src/DownloadEngine.h
  11055. * src/HttpDownloadCommand.cc
  11056. * src/HttpInitiateConnectionCommand.cc
  11057. * src/HttpResponseCommand.cc
  11058. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11059. Rewritten HTTP keep-alive and pipelining routine.
  11060. * src/AbstractCommand.cc
  11061. * src/HttpConnection.cc
  11062. * src/HttpDownloadCommand.cc
  11063. * src/HttpRequest.cc
  11064. * src/HttpRequestCommand.cc
  11065. * src/HttpResponseCommand.cc
  11066. * src/Request.cc
  11067. * src/Request.h
  11068. * src/RequestGroup.cc
  11069. * test/HttpRequestTest.cc
  11070. * test/HttpResponseTest.cc
  11071. * test/RequestTest.cc
  11072. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11073. Added missing setUserHeaders call
  11074. * src/HttpRequestCommand.cc
  11075. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11076. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  11077. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  11078. waste of time because it is more likey false.
  11079. * src/FileAllocationDispatcherCommand.cc (execute)
  11080. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11081. Now HTTP status and version are a member variable of HttpHeader.
  11082. HTTP status is processed as a string, not integer.
  11083. * src/AbstractProxyResponseCommand.cc
  11084. * src/HttpConnection.cc
  11085. * src/HttpHeader.cc
  11086. * src/HttpHeader.h
  11087. * src/HttpHeaderProcessor.cc
  11088. * src/HttpHeaderProcessor.h
  11089. * src/HttpResponse.cc
  11090. * src/HttpResponse.h
  11091. * test/HttpHeaderProcessorTest.cc
  11092. * test/HttpResponseTest.cc
  11093. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11094. Added --header option. You can specify any number of additional HTTP headers
  11095. like:
  11096. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  11097. Unlike other commad-line option, you can use --header option multiple times.
  11098. * src/HelpItemFactory.cc
  11099. * src/HttpRequest.{cc, h}
  11100. * src/HttpRequestCommand.cc
  11101. * src/OptionHandlerFactory.cc
  11102. * src/OptionHandlerImpl.h
  11103. * src/option_processing.cc
  11104. * src/prefs.h
  11105. * src/usage_text.h
  11106. * test/HttpRequestTest.cc (testUserHeaders)
  11107. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11108. Eliminates the time lag between sequential downloads and commands in
  11109. the same RequestGroup.
  11110. In old implementation, aria2 occasionally waits 1 seconds before
  11111. executing next command or RequestGroup.
  11112. This is really a waste of time, and new implementation eliminates
  11113. this unnecessary time lag.
  11114. * src/AbstractCommand.cc
  11115. * src/AutoSaveCommand.cc
  11116. * src/CheckIntegrityCommand.cc
  11117. * src/Command.{cc, h}
  11118. * src/DownloadEngine.{cc, h}
  11119. * src/DownloadEngineFactory.cc
  11120. * src/FileAllocationCommand.cc
  11121. * src/FileAllocationDispatcherCommand.cc
  11122. * src/FillRequestGroupCommand.cc
  11123. * src/FtpInitiateConnectionCommand.cc
  11124. * src/HaveEraseCommand.cc
  11125. * src/HttpInitiateConnectionCommand.cc
  11126. * src/HttpResponseCommand.cc
  11127. * src/RealtimeCommand.cc
  11128. * src/RequestGroup.cc
  11129. * src/RequestGroupMan.cc
  11130. * src/StreamFileAllocationEntry.cc
  11131. * src/TimeBasedCommand.{cc, h}
  11132. * src/TimedHaltCommand.cc
  11133. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11134. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  11135. keyword explicit and SharedHandle's default constructor initializes
  11136. its internal obj to null, old implementation initializes it using
  11137. obj's default constructor.
  11138. To assign null, write SharedHandle<T> x(...); x.reset();
  11139. TODO: test/SharedHandleTest.cc needs more tests.
  11140. * src/SharedHandle.h
  11141. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11142. Fixed type in man page.
  11143. * doc/aria2c.1.txt
  11144. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11145. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  11146. * src/SimpleLogger.{cc, h}
  11147. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11148. Implemented auto protocol detection.
  11149. Now you can do:
  11150. aria2c -Z http://host/file file1.torrent file2.metalink
  11151. (Note: -Z option is required for auto protcol detection.)
  11152. Then aria2c downloads 3 files simultaneously:
  11153. 1. http://host/file
  11154. 2. file1.torrent <-- read local torrent file
  11155. 3. file2.metalink <-- read local Metalink file.
  11156. Same thing goes with -i option. Assume your uris.txt contans:
  11157. http://host/file
  11158. file1.torrent
  11159. file2.metalink
  11160. Then you can do: aria2c -i uris.txt
  11161. (Note: -Z option is not needed if -i option is given.)
  11162. * src/main.cc
  11163. * src/ProtocolDetector.{cc, h}
  11164. * test/ProtocolDetectorTest.cc
  11165. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11166. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  11167. installed
  11168. * src/ARC4Encryptor.h
  11169. * src/ARC4Decryptor.h
  11170. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11171. Renamed argument from 'errno' to 'err', since errno is confused with
  11172. errno defined in errno.h.
  11173. * src/LibgcryptARC4Decryptor.h
  11174. * src/LibgcryptARC4Context.h
  11175. * src/LibgcryptDHKeyExchange.h
  11176. * src/LibgcryptARC4Encryptor.h
  11177. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11178. Rewritten choking algorithm.
  11179. * src/PeerChokeCommand.{cc, h}
  11180. * src/BtInterestedMessage.cc
  11181. * src/PeerSessionResource.{cc, h}
  11182. * src/DefaultPeerStorage.{cc, h}
  11183. * src/BtNotInterestedMessage.cc
  11184. * src/DefaultBtMessageDispatcher.{cc, h}
  11185. * src/BtMessageDispatcher.h
  11186. * src/Peer.{cc, h}
  11187. * src/BtLeecherStateChoke.{cc, h}
  11188. * src/BtSetup.cc
  11189. * src/BtSeederStateChoke.{cc, h}
  11190. * src/PeerStorage.h
  11191. * test/MockPeerStorage.h
  11192. * test/MockBtMessageDispatcher.h
  11193. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11194. Fixed compilation error on x84-64 platform.
  11195. * src/AuthConfig.cc: Included ostream.
  11196. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11197. Rewritten getBasename() and getDirname(), without standard library
  11198. basename(), dirname().
  11199. * src/File.cc
  11200. * test/FileTest.cc
  11201. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11202. Added Simplified Chinese translation. Also updated the following
  11203. translations: Polish, Dutch, German. Great thanks to all translators.
  11204. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11205. Suppress content-range error when 'Content-Range' response header
  11206. doesn't contains bytes-unit specifier 'bytes'
  11207. * src/HttpHeader.cc (getRange)
  11208. * test/HttpHeaderTest.cc
  11209. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11210. Fixed compilation error with g++-4.3
  11211. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11212. Added missing include files for MinGW
  11213. * test/HttpHeaderProcessorTest.cc
  11214. * test/DHTRoutingTableSerializerTest.cc
  11215. * test/DHTRoutingTableDeserializerTest.cc
  11216. * test/UriListParserTest.cc
  11217. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11218. Now download line is printed nicely with no garbage at the end of
  11219. line. I use ioctl to get the columns of terminal.
  11220. If stdout is redirected to another device, instead of carriage return,
  11221. end of line '\n' character is used. This is feature request#1909659
  11222. * src/ConsoleStatCalc.cc (calculateStat)
  11223. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11224. Included a2time.h
  11225. * src/DHTMessageDispatcher.h
  11226. * src/DHTMessageEntry.h
  11227. * src/DHTReplaceNodeTask.h
  11228. * src/DHTMessageTracker.h
  11229. * src/Util.h
  11230. * src/CookieBox.h
  11231. * src/SocketCore.h
  11232. * src/DefaultBtMessageDispatcher.h
  11233. * src/SocketCore.cc
  11234. * src/Util.cc
  11235. * src/DHTPingTask.h
  11236. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11237. Fixed high memory footprint when DHT is enabled.
  11238. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  11239. queued than it is processed and the queue is getting longer. As a
  11240. consequence, momory usage is increased.
  11241. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  11242. replacement cache in DHTBucket which is described in Kademlia paper.
  11243. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  11244. DHTReplaceNodeTask.
  11245. * src/DHTBucket.{h, cc}
  11246. (cacheNode): New function.
  11247. (getCachedNodes): New function.
  11248. (dropNode): Push back cached node to _nodes.
  11249. * test/DHTBucketTest.cc
  11250. (testCacheNode): New test
  11251. (testDropNode): New test
  11252. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11253. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  11254. the unused 4KB memory when ssl is not used.
  11255. * src/SocketCore.cc
  11256. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11257. Added summary log for peer announce storage.
  11258. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  11259. Removed cast
  11260. * src/DefaultPeerStorage.cc (addPeer)
  11261. Log exception message
  11262. * src/DHTMessageTracker.cc (handleTimeout)
  11263. Fixed casting
  11264. * test/HttpRequestTest.cc
  11265. * test/MetalinkProcessorTest.cc
  11266. * test/PieceTest.cc
  11267. * test/MetalinkEntryTest.cc
  11268. * test/SequenceTest.cc
  11269. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11270. * src/ParameterizedStringParser.cc (createLoop):
  11271. Removed unused variable sstep.
  11272. * src/AlphaNumberDecorator.h (decode): Rewritten.
  11273. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11274. * src/Util.{h, cc}
  11275. (parseUInt): New function.
  11276. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  11277. The actual range is uint32_t.
  11278. * test/UtilTest.cc
  11279. * src/ParameterizedStringParser.cc:
  11280. Use Util::parseUInt() for loop variables.
  11281. * test/ParameterizedStringParserTest.cc
  11282. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  11283. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11284. Rewritten the functions for binding port.
  11285. * src/DHTConnectionImpl.{h, cc}
  11286. * src/PeerListenCommand.{h, cc}
  11287. * src/DHTSetup.cc
  11288. * src/BtSetup.cc
  11289. * test/DHTConnectionImplTest.cc
  11290. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11291. type cleanup for allmost all remaining files.
  11292. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11293. Type clarification
  11294. * src/PeerSessionResource.{h, cc}
  11295. * src/DefaultPieceStorage.{h, cc}
  11296. * src/Peer.{h, cc}
  11297. * test/PeerSessionResourceTest.cc
  11298. Use div function
  11299. * src/BtPieceMessage.cc (erasePieceOnDisk)
  11300. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11301. Type clarification
  11302. * src/DefaultPeerStorage.{h, cc}
  11303. * test/DefaultPeerStorageTest.cc
  11304. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11305. Type clarification: size_t for length or size, uint64_t for file
  11306. length, off_t for file offset.
  11307. * src/DefaultBtProgressInfoFile.cc
  11308. * src/DefaultBtContext.{h, cc}
  11309. * src/DefaultBtInteractive.cc
  11310. * src/DownloadCommand.{h, cc}
  11311. * src/IteratableChunkChecksumValidator.{h, cc}
  11312. * src/SegmentMan.{h, cc}
  11313. * src/SingleFileDownloadContext.{h, cc}
  11314. * src/IteratableChecksumValidator.{h, cc}
  11315. * src/BtContext.h
  11316. * src/IteratableValidator.h
  11317. * src/DownloadContext.h
  11318. * test/SingleFileDownloadContextTest.cc
  11319. * test/DefaultBtContextTest.cc
  11320. * test/MockBtContext.h
  11321. * test/Metalink2RequestGroupTest.cc
  11322. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11323. Type clarification: size_t for length or size, uint64_t for file
  11324. length, off_t for file offset.
  11325. * src/PiecedSegment.cc
  11326. * src/GrowSegment.h
  11327. * src/DefaultBtRequestFactory.h
  11328. * src/DefaultBtProgressInfoFile.cc
  11329. * src/UnknownLengthPieceStorage.h
  11330. * src/DefaultPieceStorage.cc
  11331. * src/UnknownLengthPieceStorage.cc
  11332. * src/DefaultBtInteractive.cc
  11333. * src/GrowSegment.cc
  11334. * src/BitfieldMan.h
  11335. * src/DownloadCommand.cc
  11336. * src/BtRequestFactory.h
  11337. * src/PiecedSegment.h
  11338. * src/DefaultPieceStorage.h
  11339. * src/Piece.cc
  11340. * src/DefaultBtRequestFactory.cc
  11341. * src/PieceStorage.h
  11342. * src/Segment.h
  11343. * src/Piece.h
  11344. * src/BitfieldMan.cc
  11345. * src/Util.cc
  11346. * test/DefaultBtProgressInfoFileTest.cc
  11347. * test/DefaultPieceStorageTest.cc
  11348. * test/MockPieceStorage.h
  11349. * test/BtRequestMessageTest.cc
  11350. * test/DefaultBtMessageDispatcherTest.cc
  11351. * test/BitfieldManTest.cc
  11352. * test/GrowSegmentTest.cc
  11353. * test/PieceTest.cc
  11354. * test/SegmentTest.cc
  11355. * test/SegmentManTest.cc
  11356. * test/DefaultBtRequestFactoryTest.cc
  11357. * test/MockBtRequestFactory.h
  11358. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11359. Fixed compilation error with --disable-nls
  11360. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  11361. in gettext.h causes the problem.
  11362. * src/common.h
  11363. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11364. Removed subPiece related functions.
  11365. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  11366. * src/DefaultPieceStorage.{h, cc}
  11367. * test/PieceTest.cc
  11368. * test/DefaultPieceStorageTest.cc
  11369. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11370. Use unsigned char for data store.
  11371. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11372. Bump up version number to 0.13.0+1
  11373. * configure.ac
  11374. * Release 0.13.0+1
  11375. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11376. Changed inactive connection timeout to 120.
  11377. To accept more mulually interested peers, disconnect peer when there
  11378. is no interest between us after certain time passed.
  11379. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  11380. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11381. Fixed the bug that aria2 only uses first dns server in resolv.conf
  11382. when compiled with async DNS support.
  11383. * src/DownloadEngine.cc
  11384. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  11385. value '10' will be a little bit short when some DNS servers are
  11386. offline and several DNS servers are tried. It should be configured
  11387. by command-line option.
  11388. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11389. Merged Ross's mingw patch.
  11390. * src/DHTRoutingTableDeserializer.cc
  11391. * src/DHTRoutingTableSerializer.cc
  11392. * src/Platform.{h, cc}
  11393. * src/timegm.h
  11394. * src/gettimeofday.h
  11395. * src/getaddrinfo.h
  11396. * src/SocketCore.h
  11397. * src/common.h
  11398. * src/inet_aton.h
  11399. * src/DownloadEngine.h
  11400. * src/gai_strerror.h
  11401. * src/a2netcompat.h
  11402. * configure.ac
  11403. * configure
  11404. * aclocal.m4
  11405. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11406. Included missing iostream.
  11407. * test/AllTest.cc
  11408. * test/BtDependencyTest.cc
  11409. * test/BtExtendedMessageTest.cc
  11410. * test/DHTConnectionImplTest.cc
  11411. * test/DHTMessageFactoryImplTest.cc
  11412. * test/DHTMessageTrackerEntryTest.cc
  11413. * test/DHTNodeTest.cc
  11414. * test/DHTRoutingTableSerializerTest.cc
  11415. * test/DefaultBtAnnounceTest.cc
  11416. * test/DefaultBtContextTest.cc
  11417. * test/DefaultBtMessageFactoryTest.cc
  11418. * test/DefaultExtensionMessageFactoryTest.cc
  11419. * test/HandshakeExtensionMessageTest.cc
  11420. * test/HttpResponseTest.cc
  11421. * test/MetalinkProcessorTest.cc
  11422. * test/MultiFileAllocationIteratorTest.cc
  11423. * test/SocketCoreTest.cc
  11424. * test/UTPexExtensionMessageTest.cc
  11425. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11426. Reorganized includes.
  11427. * src/NameResolver.cc
  11428. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11429. Fixed compilation error without ares/c-ares
  11430. * src/NameResolver.h:
  11431. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11432. Added a test for large file.
  11433. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11434. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11435. Fixed the bug that file size is ignored if size > INT32_MAX
  11436. * src/SizeMetalinkParserState.cc (endElement):
  11437. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11438. Bump up version number to 0.13.0
  11439. * configure.ac
  11440. * Release 0.13.0
  11441. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11442. Updated Makfefile.am to make 'make dist' work.
  11443. Now packaged filename is aria2c-VERSION.tar.bz2.
  11444. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11445. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11446. Large file support is now configured by configure script.
  11447. * configure.ac
  11448. Removed unsused source files
  11449. * src/
  11450. * test/
  11451. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11452. Peer.h and BtContext.h respectively.
  11453. * src/Peer.h
  11454. * src/BtContext.h
  11455. Updated translations.
  11456. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11457. translations. Great thanks to all translators!;)
  11458. * po/*.{po, gmo}
  11459. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11460. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11461. statically declared sha1 MessageDigestContext.
  11462. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11463. initialization of short-lived MessageDigestContext.
  11464. * src/MessageDigestHelper.{h, cc}
  11465. * src/main.cc
  11466. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11467. the initialization of MessageDigestContext every time in validating
  11468. chunk checksum.
  11469. * src/DownloadCommand.{h, cc}
  11470. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11471. Add a file descriptor which connected to fast peer(latency<1500) to
  11472. select(). This change reduced CPU load.
  11473. * src/PeerInteractionCommand.cc
  11474. * src/DefaultBtInteractive.{h, cc}
  11475. * src/BtInteractive.h
  11476. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11477. Fixed the previous insufficient fix for possible busy loop.
  11478. * src/MSEHandshake.cc (identifyHandshakeType)
  11479. Removed unused functions.
  11480. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11481. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11482. Fixed possible busy loop if first 20 bytes are not received for a few
  11483. minutes.
  11484. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11485. * src/ReceiverMSEHandshakeCommand.cc
  11486. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11487. Fixed compilation error
  11488. * src/ExpatMetalinkProcessor.cc
  11489. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11490. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11491. * src/DHTBucket.cc
  11492. Removed unnecessary cast.
  11493. * src/HandshakeExtensionMessage.cc
  11494. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11495. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11496. is missing.
  11497. * src/OptionHandlerFactory.cc
  11498. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11499. Fixed the bug that HAVE message is not sent for a piece they are
  11500. downloaded fom http/ftp server before any BitTorrent handshake is done
  11501. with peers.
  11502. * src/DefaultBtInteractive.cc
  11503. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11504. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11505. * src/Makefile.am
  11506. * src/Makefile.in
  11507. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11508. Updated README. Added html version of README and man page.
  11509. * README
  11510. * README.html
  11511. * readme2html: Shell script to generate README.html from README using
  11512. asciidoc.
  11513. * doc/aria2c.1.html
  11514. * doc/makeman: Added the line to generate aria2c.1.html
  11515. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11516. Fixed offset calculation.
  11517. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11518. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11519. Rewritten itos and uitos using template. llitos and ullitos are
  11520. replaced with itos and uitos respectively.
  11521. * src/Util.{h, cc}
  11522. * test/UtilTest.cc
  11523. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11524. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11525. of the number of bytes required for storing public key and shared
  11526. secret.
  11527. * src/LibgcryptDHKeyExchange.h
  11528. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11529. * src/MSEHandshake.cc
  11530. * test/DHKeyExchangeTest.cc
  11531. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11532. Removed since they are not used.
  11533. * src/Xml2MetalinkProcessor.{h, cc}
  11534. * src/Socket.cc
  11535. * src/SegmentSplitter.{h, cc}
  11536. * test/Xml2MetalinkProcessorTest.cc
  11537. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11538. Fixed the bug that prevents aria2 from stopping other than by pressing
  11539. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11540. option. aria2 doesn't stop even after --seed-time is satisfied and
  11541. continues to output blank lines in the console.
  11542. * src/ReceiverMSEHandshakeCommand.cc
  11543. * src/PeerReceiveHandshakeCommand.cc
  11544. * src/PeerListenCommand.cc
  11545. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11546. Bump up version number to 0.13.0rc
  11547. * configure.ac
  11548. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11549. Updated man page and some usage text.
  11550. * doc/aria2c.1.txt
  11551. * src/usage_text.h
  11552. * po/*.{po, gmo}
  11553. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11554. Updated translations. Added Finnish and Hebrew translations.
  11555. Great thanks to all translators!
  11556. * po/*.{po, gmo}
  11557. * po/LINGUAS
  11558. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11559. Log more detailed information about each message.
  11560. * src/DHTQueryMessage.{h, cc}
  11561. * src/DHTGetPeersMessage.{h, cc}
  11562. * src/DHTFindNodeReplyMessage.{h, cc}
  11563. * src/DHTGetPeersReplyMessage.{h, cc}
  11564. * src/DHTAnnouncePeerMessage.{h, cc}
  11565. * src/DHTResponseMessage.{h, cc}
  11566. * src/DHTFindNodeMessage.{h, cc}
  11567. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11568. Use constants defined in prefs.h
  11569. * src/option_processing.cc
  11570. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11571. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11572. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11573. Make room for future enchancements for IPv6 addresses.
  11574. Bump up version number of dht.dat file format to 2.
  11575. Not compatible with previous version.
  11576. * src/DHTRoutingTableSerializer.cc
  11577. * src/DHTRoutingTableDeserializer.cc
  11578. * test/DHTRoutingTableSerializerTest.cc
  11579. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11580. Added handling for the return values from
  11581. PeerMessageUtil::createcompact().
  11582. * src/DefaultBtContext.cc (computeFastSet):
  11583. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11584. Fixed abort when peer's ip address is IPv4-mapped address.
  11585. * src/DefaultBtContext.cc (computeFastSet)
  11586. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11587. cannot handle IPv4-mapped addresses.
  11588. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11589. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11590. Proper return value handling for OpenSSL functions.
  11591. * src/LibsslDHKeyExchange.h
  11592. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11593. Random bytes generation using libgcrypt and OpenSSL.
  11594. * src/DHTUtil.{h, cc}
  11595. * test/DHTUtilTest.cc
  11596. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11597. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11598. received.
  11599. * src/DHTMessageReceiver.cc (receiveMessage)
  11600. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11601. Fixed the bug that a return code is always 0. BUG#1897704
  11602. If error occurred during the download or there exist unfinished
  11603. downloads, aria2 returns with code 1.
  11604. * src/RequestGroupMan.{h, cc}
  11605. * src/MultiUrlRequestInfo.{h, cc}
  11606. * src/main.cc
  11607. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11608. IPv6 support for SocketCore class.
  11609. TODO: In SocketCore::establishConnection(), this is insufficient to
  11610. determin the failure of connect() here because the socket is
  11611. non-blocking state. The next addresses should be tried after select().
  11612. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11613. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11614. instead which address family independent.
  11615. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11616. information in a compact peer format which is for IPv4 only.
  11617. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11618. this is a spec of BitTorrent protocol.
  11619. * src/SocketCore.{h, cc}
  11620. * src/PeerMessageUtil.cc
  11621. * test/SocketCoreTest.cc
  11622. * test/PeerMessageUtilTest.cc
  11623. * test/DHTConnectionImplTest.cc
  11624. Handle IPv4-mapped addresses.
  11625. * src/DHTNode.cc: Now identity is determined by node id.
  11626. * src/DHTMessageTrackerEntry.cc
  11627. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11628. should handle it.
  11629. * src/DHTRoutingTableDeserializer.cc
  11630. * src/DHTMessageFactoryImpl.cc
  11631. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11632. Change the unit of --stop option from a minute to a second.
  11633. * src/usage_text.h
  11634. * src/DownloadEngineFactory.cc
  11635. * src/OptionHandlerFactory.cc
  11636. * src/message.h
  11637. * src/TimedHaltCommand.cc
  11638. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11639. Make listening socket non-block mode.
  11640. * src/FtpConnection.cc
  11641. * src/FtpNegotiationCommand.{h, cc}
  11642. * src/PeerListenCommand.cc
  11643. Fixed the bug that cause slow ftp negotiation.
  11644. * src/FtpNegotiationCommand.{h, cc}
  11645. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11646. Added basic tag to --enable-dht, --dht-listen-port option.
  11647. * src/HelpItemFactory.cc (createHelpItems)
  11648. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11649. Updated text.
  11650. * src/usage_text.h
  11651. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11652. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11653. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11654. Determin _threadtholdSpeed in each constructor for
  11655. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11656. * src/ActivePeerConnectionCommand.{h, cc}
  11657. * src/PeerReceiveHandshakeCommand.{h, cc}
  11658. * src/BtSetup.cc
  11659. * src/BtConstants.h
  11660. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11661. Added --bt-min-crypto-level and --bt-require-crypto options.
  11662. * src/OptionHandlerFactory.cc
  11663. * src/MSEHandshake.cc
  11664. * src/HelpItemFactory.cc
  11665. * src/option_processing.cc
  11666. * src/ReceiverMSEHandshakeCommand.cc
  11667. * src/prefs.h
  11668. * src/DefaultBtAnnounce.cc
  11669. * src/InitiatorMSEHandshakeCommand.cc
  11670. * src/usage_text.h
  11671. * test/MSEHandshakeTest.cc
  11672. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11673. Bump version number to 0.13.0b
  11674. * configure.ac
  11675. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11676. Updated doc.
  11677. * src/MessageDigestHelper.h:
  11678. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11679. Use raw message digest as a token instead of its hexadecimal
  11680. representation.
  11681. * src/DHTTokenTracker.cc (generateToken)
  11682. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11683. Added Message Stream Encryption(MSE) support.
  11684. Currently, aria2 accepts incoming connections with Obfuscation Header
  11685. and legacy BitTorrent Header and establishes connections with
  11686. Obfuscation Header first and if failed then retry with legacy
  11687. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11688. choose ARC4. The new option to change the default behavior is planned.
  11689. For tracker extension, "supportcrypto=1" is added statically.
  11690. * src/PeerInitiateConnectionCommand.{h, cc}
  11691. * src/PeerConnection.{h, cc}
  11692. * src/HandleRegistry.h
  11693. * src/SocketCore.h
  11694. * src/PeerReceiveHandshakeCommand.{h, cc}
  11695. * src/BtRegistry.{h, cc}
  11696. * src/PeerListenCommand.cc
  11697. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11698. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11699. * src/MSEHandshake.{h, cc}
  11700. * src/ARC4Encryptor.h
  11701. * src/ARC4Decryptor.h
  11702. * src/LibgcryptARC4Encryptor.h
  11703. * src/LibgcryptARC4Decryptor.h
  11704. * src/LibgcryptARC4Context.h
  11705. * src/LibsslARC4Encryptor.h
  11706. * src/LibsslARC4Decryptor.h
  11707. * src/LibsslARC4Context.h
  11708. * src/DHKeyExchange.h
  11709. * src/LibgcryptDHKeyExchange.h
  11710. * src/LibsslDHKeyExchange.h
  11711. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11712. * test/DefaultBtAnnounceTest.cc
  11713. * test/ARC4Test.cc
  11714. * test/DHKeyExchangeTest.cc
  11715. Removed prepareForRetry() because it is not used.
  11716. * src/PeerAbstractCommand.{h, cc}
  11717. * src/PeerInteractionCommand.{h, cc}
  11718. * src/PeerInitiateConnectionCommand.{h, cc}
  11719. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11720. Added the ability to load nodes from torrent file. These nodes are
  11721. added to the routing table when downloading that torrent.
  11722. * src/BtContext.h
  11723. * src/DefaultBtContext.{h, cc}
  11724. * src/DHTSetup.cc
  11725. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11726. hostname and port pair, and resolves all of them.
  11727. * src/NameResolver.{h, cc}: Added reset().
  11728. * src/RequestGroup.cc
  11729. * test/DefaultBtContextTest.cc
  11730. * test/MockBtContext.h
  11731. Removed assert() from DefaultBtContext and throw exception instead.
  11732. * src/DefaultBtContext.cc
  11733. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11734. Fixed segmentation fault bug when exiting if dht is disabled.
  11735. * src/RequestGroup.cc
  11736. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11737. Fixed typo in log message and define the message in message.h
  11738. * src/TimedHaltCommand.cc
  11739. * src/message.h
  11740. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11741. Included RecoverableException.h to fix compilation error.
  11742. * test/DHTMessageFactoryImplTest.cc
  11743. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11744. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11745. * test/DHTPingMessageTest.cc
  11746. * test/DHTGetPeersMessageTest.cc
  11747. * test/DHTFindNodeMessageTest.cc
  11748. * test/DHTAnnouncePeerMessageTest.cc
  11749. * test/MockDHTMessage.h
  11750. * test/MockDHTMessageFactory.h
  11751. * test/MockDHTMessageDispatcher.h: New class.
  11752. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11753. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11754. virtual.
  11755. * src/DHTMessageDispatcher.h
  11756. * src/DHTMessageDispatcherImpl.{h, cc}
  11757. * src/DHTSetup.cc
  11758. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11759. Adding handling of DHT error message. Just log error message and
  11760. throw exception.
  11761. * src/DHTMessageFactoryImpl.cc
  11762. * test/DHTMessageFactoryImplTest.cc
  11763. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11764. Added handling of dynamic cast failure.
  11765. * src/DHTNodeLookupTask.cc
  11766. * src/DHTPeerLookupTask.cc
  11767. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11768. Added the ability to stop aria2 itself when given time has passed
  11769. from start. Use --stop option to specify time in minutes.
  11770. When 0 is given, this feature is disabled.
  11771. * src/OptionHandlerFactory.cc
  11772. * src/TimeBasedCommand.h: Make _interval protected scope.
  11773. * src/HelpItemFactory.cc
  11774. * src/option_processing.cc
  11775. * src/prefs.h
  11776. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11777. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11778. Without this modification, the result list shows "ERR" when aria2 is
  11779. stopped by --stop option. It should be "INPR".
  11780. * src/DownloadEngine.{h, cc}
  11781. * src/DownloadEngineFactory.cc
  11782. * src/usage_text.h
  11783. * src/TimedHaltCommand.{h, cc}: New class.
  11784. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11785. Bootstrap through node added by port message.
  11786. Currently bootstrap is executed if the number of buckets in routing
  11787. table is 1.
  11788. * src/BtPortMessage.{h, cc}
  11789. * src/DefaultBtMessageFactory.{h, cc}
  11790. * src/PeerInteractionCommand.cc
  11791. * test/BtPortMessageTest.cc
  11792. * test/MockDHTTask.h
  11793. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11794. Extract the Peer class's member variables, which are only needed after
  11795. PeerInteractionCommand, into PeerSessionResource class.
  11796. This class is instantiated in PeerInteractionCommand class's ctor and
  11797. released in its dtor.
  11798. This will make Peer class lightweight and uses less memory for peers
  11799. which are not connected and wait in the queue.
  11800. * src/PeerChokeCommand.cc
  11801. * src/PeerSessionResource.{h, cc}
  11802. * src/PeerInteractionCommand.cc
  11803. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11804. * src/DefaultBtInteractive.cc
  11805. * src/BtPieceMessage.cc
  11806. * src/BtInterestedMessage.cc
  11807. * src/BtUnchokeMessage.cc
  11808. * src/DefaultPeerStorage.{h, cc}
  11809. * src/PeerInitiateConnectionCommand.cc
  11810. * src/ActivePeerConnectionCommand.cc
  11811. * src/BtNotInterestedMessage.cc
  11812. * src/DefaultBtMessageDispatcher.cc
  11813. * src/BtChokeMessage.cc
  11814. * src/BtRequestMessage.cc
  11815. * src/Peer.{h, cc}
  11816. * src/BtRegistry.h
  11817. * src/TrackerWatcherCommand.cc
  11818. * src/PeerReceiveHandshakeCommand.cc
  11819. * test/BtExtendedMessageTest.cc
  11820. * test/BtAllowedFastMessageTest.cc
  11821. * test/BtCancelMessageTest.cc
  11822. * test/DefaultPieceStorageTest.cc
  11823. * test/BtBitfieldMessageTest.cc
  11824. * test/BtHaveMessageTest.cc
  11825. * test/BtNotInterestedMessageTest.cc
  11826. * test/BtRequestMessageTest.cc
  11827. * test/PeerSessionResourceTest.cc
  11828. * test/DefaultBtMessageDispatcherTest.cc
  11829. * test/PeerTest.cc
  11830. * test/BtInterestedMessageTest.cc
  11831. * test/BtRejectMessageTest.cc
  11832. * test/BtChokeMessageTest.cc
  11833. * test/DefaultPeerStorageTest.cc
  11834. * test/BtHaveNoneMessageTest.cc
  11835. * test/BtHaveAllMessageTest.cc
  11836. * test/DefaultExtensionMessageFactoryTest.cc
  11837. * test/BtUnchokeMessageTest.cc
  11838. * test/DefaultBtMessageFactoryTest.cc
  11839. * test/HandshakeExtensionMessageTest.cc
  11840. * test/UTPexExtensionMessageTest.cc
  11841. * test/DefaultBtRequestFactoryTest.cc
  11842. * test/BtPieceMessageTest.cc
  11843. Removed typedef PeerStats.
  11844. * src/PeerStat.h
  11845. * src/SegmentMan.cc
  11846. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11847. Added std namespace to copy, remove_copy, back_inserter,
  11848. front_inserter.
  11849. * src/RequestGroupMan.cc
  11850. * src/DefaultPieceStorage.cc
  11851. * src/StreamFileAllocationEntry.cc
  11852. * src/BtFileAllocationEntry.cc
  11853. * src/RequestGroup.cc
  11854. * src/MetalinkEntry.cc
  11855. * src/DelegatingPeerListProcessor.cc
  11856. * src/DefaultBtRequestFactory.cc
  11857. * src/DefaultBtMessageDispatcher.cc
  11858. * src/version_usage.cc: Included <algorithm>
  11859. * src/main.cc
  11860. * src/MetalinkParserController.cc
  11861. * src/DefaultBtContext.cc
  11862. * src/DownloadEngineFactory.cc
  11863. * src/a2algo.h
  11864. Removed.
  11865. * test/StreamUriListParserTest.cc
  11866. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11867. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11868. ActivePeerConnectionCommand when it is given and
  11869. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11870. * src/ActivePeerConnectionCommand.{h, cc}
  11871. * src/BtSetup.cc
  11872. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11873. Only add socket to DownloadEngine's select routine when peer or
  11874. localhost is unchoked and interested. This lowers CPU usage a
  11875. little bit.
  11876. * src/PeerInteractionCommand.cc
  11877. * src/PeerAbstractCommand.{h, cc}
  11878. * src/BtInteractive.h
  11879. * src/DefaultBtInteractive.{h, cc}
  11880. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11881. Revert previous change because get_peers message is needed for
  11882. announce_peer anyway.
  11883. * src/DHTGetPeersCommand.cc
  11884. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11885. Request peers thought DHT only when download hasn't finished.
  11886. * src/DHTGetPeersCommand.cc
  11887. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11888. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11889. * src/DHTBucketRefreshTask.{h, cc}
  11890. * src/DHTSetup.cc
  11891. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11892. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11893. standard classes.
  11894. Included string.h where mem* function are used.
  11895. Added namespace aria2.
  11896. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11897. Create directory before saving DHT routing table.
  11898. Now ios::failure is now handled properly.
  11899. * src/DHTAutoSaveCommand.cc
  11900. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11901. Removed unnecessary cerr.
  11902. * src/DownloadEngine.cc
  11903. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11904. Catch exception inside DHTMessageReceiver::receiveMessage().
  11905. Log unknown message.
  11906. * src/DHTMessageReceiver.{h, cc}
  11907. * src/DHTMessageFactory.h
  11908. * src/DHTMessageFactoryImpl.{h, cc}
  11909. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11910. * src/DHTInteractionCommand.cc
  11911. * src/DHTUnknownMessage.{h, cc}
  11912. * test/DHTUnknownMessageTest.cc
  11913. * test/MockDHTMessageFactory.h
  11914. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11915. Commented out ip address comparison because a host can have multiple
  11916. ip addresses and it is hard to predict the hostname is resolved into
  11917. which one.
  11918. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11919. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11920. * po/Makefile.in: Removed since this is generated by configure.
  11921. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11922. Fixed compiler warning about redefinition of SIZE_MAX.
  11923. Use common.h instead of config.h directly here.
  11924. * src/Platform.{h, cc}
  11925. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11926. here.
  11927. * common.h
  11928. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11929. Updated gettext related files.
  11930. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11931. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11932. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11933. Added DHT functionality, compatible with mainline.
  11934. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11935. You may need to specify entry point to DHT network using
  11936. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11937. Use --dht-listen-port to specify port number. Make sure that your
  11938. firewall configuration can pass through UDP traffic to the port.
  11939. The routing table is saved in $HOME/.aria2/dht.dat.
  11940. * src/DHT*
  11941. * src/BNode.{h, cc}
  11942. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11943. particular torrent.
  11944. * src/Data.cc: Rewritten ctor.
  11945. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11946. --dht-entry-point.
  11947. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11948. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11949. ends, remove BtContext from DHTPeerAnnounceStorage.
  11950. * src/BtPortMessage.{h, cc}: Rewritten.
  11951. * src/message.h
  11952. * src/OptionHandlerImpl.cc
  11953. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11954. --dht-entry-point.
  11955. * src/Dictionary.{h, cc} (remove): New function.
  11956. * src/prefs.h
  11957. * src/DefaultBtMessageFactory.h
  11958. * src/BtHandshakeMessage.cc
  11959. * src/ActivePeerConnectionCommand.cc
  11960. * src/SocketCore.{h, cc}: Added datagram socket support.
  11961. * src/DefaultBtMessageFactory.cc
  11962. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11963. Create DHT commands.
  11964. * src/BtMessageFactory.h
  11965. * src/PeerMessageUtil.{h, cc}
  11966. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11967. Fixed the bug that log file is not written when configuration file doesn't exist.
  11968. This is caused by using Logger class before LogFactory is not configured.
  11969. BUG #1875079
  11970. * src/option_processing.cc
  11971. Warning message "configuration doesn't exist" is only printed when --conf is
  11972. given.
  11973. * src/option_processing.cc
  11974. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11975. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11976. ShaVisitor is now deprecated and slated to be removed.
  11977. * src/DefaultBtContext.cc
  11978. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11979. Externalize message to message.h
  11980. * src/Platform.cc
  11981. * src/message.h
  11982. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11983. Set default domain and default path to cookie.
  11984. * src/HttpResponse.cc
  11985. * src/CookieBox.{h, cc}
  11986. * src/CookieParser.{h, cc}
  11987. * test/CookieParserTest.cc
  11988. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11989. Added --no-conf and --conf-path command-line option.
  11990. --no-conf option disables loading aria2.conf file.
  11991. --conf-path option changes the configuration file path. The default
  11992. file path is $HOME/.aria2/aria2.conf
  11993. Added a warning message when the configuration file is not found.
  11994. * src/HelpItemFactory.cc
  11995. * src/option_processing.cc
  11996. * src/prefs.h
  11997. * src/usage_text.h
  11998. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11999. Added the message to inform users that other help categories are
  12000. available in -h option.
  12001. * src/version_usage.cc
  12002. * src/TagContainer.{h, cc}
  12003. * test/TagContainerTest.cc
  12004. * src/TaggedItem.{h, cc}
  12005. * test/TaggedItemTest.cc
  12006. * src/HelpItem.h
  12007. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12008. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  12009. from PiecedSegment's ctor.
  12010. Previously Piece::getAllMissingBlockIndexes() is called from
  12011. PiecedSegment() but it is rather expensive since only first element is
  12012. used.
  12013. * src/PiecedSegment.cc
  12014. * src/Piece.{h, cc}
  12015. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12016. Rewritten get*Missing*Index functions. Now no need to allocate memory
  12017. each time these functions are called.
  12018. * src/BitfieldMan.{h, cc}
  12019. * test/BitfieldManTest.cc
  12020. * src/array_fun.h
  12021. * test/array_funTest.cc
  12022. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  12023. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  12024. filtered. Removed unnecessary cast to int32_t.
  12025. * src/BitfieldMan.{h, cc}
  12026. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12027. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  12028. payload length(4bytes) are received. This happens because lenbufLength
  12029. is not updated in this particular case and successive call of
  12030. receiveMessage() overwrites payload length with bytes recieved which
  12031. are payload body.
  12032. * src/PeerConnection.{h, cc}
  12033. * src/message.h
  12034. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12035. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  12036. peer if there are peers that have same ipaddr and port.
  12037. I've experiened segmentation fault and "pure virtual function was
  12038. called" error.
  12039. * src/Peer.h
  12040. * test/PeerTest.cc
  12041. * src/DefaultPeerStorage.cc
  12042. * test/DefaultPeerStorageTest.cc
  12043. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12044. Removed a call to isPowerOf() because it is no longer necessary here
  12045. and a request block is not always power of 2.
  12046. BUG#1866924
  12047. * src/PeerMessageUtil.cc (checkLength)
  12048. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12049. Fixed the bug that always first found Segment is removed from
  12050. usedSegmentEntries. Removed unused functions.
  12051. * src/SegmentMan.{h, cc}
  12052. * test/SegmentManTest.cc
  12053. Fixed the bug that ServerHost is not removed.
  12054. * src/RequestGroup.cc
  12055. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12056. Fixed the bug that SegmentMan::completeSegment() is not called
  12057. even if Segment is complete when --lowest-speed-limit is enabled.
  12058. BUG#1864525
  12059. * src/DownloadCommand.{h, cc}
  12060. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12061. Fixed: hash algorithm 'sha1' is always used.
  12062. * src/DownloadCommand.cc (validatePieceHash)
  12063. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12064. Added --enable-peer-exchange command-line option.
  12065. * src/OptionHandlerFactory.cc
  12066. * src/HelpItemFactory.cc
  12067. * src/option_processing.cc
  12068. * src/usage_text.h
  12069. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12070. Move extension from BtRuntime to ExtensionMessageFactory, because
  12071. extension can be specified per peer, not per torrent.
  12072. * src/DefaultBtInteractive.cc
  12073. * src/BtRuntime.h
  12074. * src/ExtendedMessagingAware.h
  12075. * src/ExtensionMessageFactory.h
  12076. * src/DefaultExtensionMessageFactory.cc
  12077. * test/DefaultExtensionMessageFactoryTest.cc
  12078. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12079. Added categorized option help. Specify category using --help option.
  12080. Also added the ability to search options in forward match.
  12081. * src/HelpItem.{h, cc}
  12082. * test/HelpItemTest.cc
  12083. * src/HelpItemFactory.{h, cc}
  12084. * src/TagContainer.{h, cc}
  12085. * test/TagContainerTest.cc
  12086. * src/option_processing.cc
  12087. * src/prefs.h
  12088. * src/TaggedItem.{h, cc}
  12089. * test/TaggedItemTest.cc
  12090. * src/version_usage.cc
  12091. * src/help_tags.h
  12092. * src/usage_text.h
  12093. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12094. Fixed segmentation fault when bad torrent metainfo is parsed.
  12095. Added dynamic_cast properly to detect the misconfiguration of metainfo
  12096. and then throw exception or skip it.
  12097. * src/DefaultBtContext.{h, cc}
  12098. * test/DefaultBtContextTest.cc
  12099. * src/AnnounceList.cc
  12100. * src/CompactPeerListProcessor.cc
  12101. * src/message.h
  12102. * src/DefaultBtAnnounce.{h, cc}
  12103. * test/DefaultBtAnnounceTest.cc
  12104. * src/BencodeVisitor.cc
  12105. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12106. Added missing "B"(=Byte). So now the message looks like this:
  12107. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  12108. * src/message.h (MSG_SHARE_RATIO_REPORT)
  12109. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12110. Show the seed ratio after torrent downloads.
  12111. For example, after torrent download completed and --seed-time and
  12112. --seed-ratio conditions are fulfilled, following message is printed
  12113. right after "Download complete: .....":
  12114. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  12115. * src/RequestGroupMan.cc
  12116. * src/RequestGroup.{h, cc}
  12117. * src/message.h
  12118. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12119. Remove a defunct control file. A defunct control file means that while
  12120. it exists, but the corresponding download file is missing.
  12121. After its removal, a download restarts from the beginning.
  12122. * src/RequestGroup.cc
  12123. * src/message.h
  12124. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12125. Allocate bitfield in Peer when it is really used. More specifically,
  12126. bitfield in Peer is allocated after the connection is established and
  12127. deallocated when the connection is dropped.
  12128. Since 2 parameters(piece length and total length) was removed from the
  12129. constructor of Peer class, many test classes were modified accordingly.
  12130. See svn log for more detailed information.
  12131. * src/PeerInteractionCommand.cc
  12132. * src/CompactPeerListProcessor.cc
  12133. * src/Peer.cc
  12134. * src/DefaultPeerListProcessor.cc
  12135. * src/PeerListenCommand.cc
  12136. * src/PeerReceiveHandshakeCommand.cc
  12137. Fixed memory leak
  12138. * src/Piece.cc
  12139. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12140. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  12141. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  12142. command-line options.
  12143. * src/option_processing.cc
  12144. * src/ActivePeerConnectionCommand.cc
  12145. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12146. Send have message to peer if it already has the piece.
  12147. * src/BtHaveMessage.{h, cc}
  12148. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12149. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  12150. port.
  12151. * src/DefaultPeerStorage.{h, cc}
  12152. * test/DefaultPeerStorageTest.cc
  12153. * src/HandshakeExtensionMessage.cc
  12154. * test/HandshakeExtensionMessageTest.cc
  12155. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  12156. * src/PeerStorage.h
  12157. * test/MockPeerStorage.h
  12158. * src/PeerListenCommand.cc
  12159. * src/PeerReceiveHandshakeCommand.cc
  12160. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12161. Added --metalink-enable-unique-protocol option.
  12162. * src/Metalink2RequestGroup.cc
  12163. * src/option_processing.cc
  12164. * src/prefs.h
  12165. * src/version_usage.cc
  12166. * doc/aria2c.1.txt
  12167. * doc/aria2c.1
  12168. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12169. Allow a peer in incomingPeer to be added peers.
  12170. * src/DefaultPeerStorage.cc
  12171. * test/DefaultPeerStorageTest.cc
  12172. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12173. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  12174. I could reproduce this bug in following procedure:
  12175. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  12176. 2. Restart aria2.
  12177. 3. You see the download stopped around 99%.
  12178. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12179. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  12180. If timeout is reached, then _nextCommand is unused and it may contains
  12181. segments and they won't be canceled. Actually, timeout is not needed
  12182. here because if the server dropped connection, then retry is made.
  12183. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12184. Added uTorrent compatible Peer Exchange.
  12185. * src/BencodeVisitor.{h, cc}
  12186. * test/BencodeVisitorTest.cc
  12187. * src/BtConstants.h
  12188. * src/BtContext.h: Added 'private' flag.
  12189. * src/BtExtendedMessage.{h, cc}
  12190. * test/BtExtendedMessageTest.cc
  12191. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  12192. reserved field.
  12193. * test/BtHandshakeMessageTest.cc
  12194. * src/BtMessageFactory.h
  12195. * src/BtRegistry.h
  12196. * src/BtRuntime.h: This class holds default extension message IDs for
  12197. aria2. By default, aria2 uses ID 8 for ut_pex.
  12198. * src/DefaultBtContext.cc
  12199. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  12200. When it is true, aria2 enables ut_pex. This value is set by
  12201. PeerInteractionCommand.
  12202. * src/DefaultBtMessageFactory.{h, cc}
  12203. * test/DefaultBtMessageFactoryTest.cc
  12204. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  12205. handling to DefaultBtInteractive class.
  12206. * src/DefaultExtensionMessageFactory.{h, cc}
  12207. * test/DefaultExtensionMessageFactoryTest.cc
  12208. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  12209. the container(peers and incomingPeers. The equality is determined by
  12210. Peer::id).
  12211. * test/DefaultPeerStorageTest.cc
  12212. * src/ExtensionMessage.h
  12213. * test/MockExtensionMessage.h
  12214. * src/ExtensionMessageFactory.h
  12215. * test/MockExtensionMessageFactory.h
  12216. * src/HandshakeExtensionMessage.{h, cc}
  12217. * test/HandshakeExtensionMessageTest.cc
  12218. * src/MetaEntry.h
  12219. * src/Peer.{h, cc}
  12220. * src/PeerInteractionCommand.cc
  12221. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  12222. addIncomingPeer.
  12223. * src/PeerMessageUtil.{h, cc}
  12224. * src/PeerObject.h
  12225. * src/UTPexExtensionMessage.{h, cc}
  12226. * test/UTPexExtensionMessageTest.cc
  12227. * src/message.h
  12228. * src/prefs.h
  12229. Fixed the bug that returns incomplete data when it contains null
  12230. character. A convenient constructor was also added.
  12231. * src/Data.{h, cc}
  12232. Rewritten.
  12233. * src/CompactPeerListProcessor.cc
  12234. Fixed typos.
  12235. * src/message.h
  12236. * src/MetaFileUtil.cc
  12237. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12238. Added "Status Legend" label to the explanation text of 'stat' in
  12239. download result and moved it to the last. BUG#1848214
  12240. * src/RequestGroupMan.cc
  12241. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12242. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  12243. * src/Makefie.am
  12244. * test/Makefile.am
  12245. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12246. Fixed the bug that prevents aria2 from loading cookie file when expire
  12247. value is greater than 2^31-1. BUG#1851066
  12248. * src/CookieBoxFactory.cc
  12249. * test/CookieBoxFactoryTest.cc
  12250. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12251. Fixed possible memory leak when an exception is thrown.
  12252. * src/XML2SAXMetalinkProcessor.cc
  12253. Added Expat support. If both libxml2 and Expat are installed, then
  12254. libxml2 is used by default.
  12255. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  12256. ExpatMetalinkProcessor according to the configuration.
  12257. * src/ExpatMetalinkProcessor.{h, cc}
  12258. * src/main.cc: Removed libxml2 specific header and init/free function.
  12259. * src/MetalinkProcessorFactory.{h, cc}
  12260. * src/MetalinkHelper.cc
  12261. * src/Metalinker.h: Removed unnecessary libxml2 header.
  12262. * src/MetalinkProcessor.h
  12263. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  12264. MetalinkProcessorTest is used instead.
  12265. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  12266. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  12267. MetalinkProcessorFactory::newInstance().
  12268. * m4/libexpat.m4
  12269. * configure.ac: Added configuration options for libexpat.
  12270. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12271. Disabled -s option in metalink download.
  12272. * src/Metalink2RequestGroup.cc
  12273. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12274. If several protocols are available for a mirror in metalink file,
  12275. aria2 now use one of them. --metalink-preferred-protocol option was
  12276. added to specify the preference of protocol.
  12277. * src/AbstractCommand.cc
  12278. * src/OptionHandlerFactory.cc
  12279. * src/ServerHost.{h, cc}
  12280. * src/Metalink2RequestGroup.cc
  12281. * src/RequestGroup.{h, cc}
  12282. * test/RequestGroupTest.cc
  12283. * src/option_processing.cc
  12284. * src/prefs.h
  12285. * src/HttpResponseCommand.cc
  12286. * src/MetalinkResource.{h, cc}
  12287. * src/FtpNegotiationCommand.cc
  12288. * src/MetalinkEntry.{h, cc}
  12289. * src/MetalinkEntryTest.cc
  12290. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12291. Code cleanup and added debug log.
  12292. * src/PeerConnection.cc
  12293. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12294. Compiler error fix: applied the patch by Tiziano Mueller
  12295. * src/RequestGroup.cc
  12296. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12297. Fixed the bug: only first announce URL is tried in AnnounceTier,
  12298. in stopped and completed event.
  12299. * src/AnnounceList.{h, cc}
  12300. * test/AnnounceListTest.cc
  12301. * src/DefaultBtAnnounce.cc
  12302. * test/DefaultBtAnnounceTest.cc
  12303. Sorted URLs.
  12304. * test/Metalink2RequestGroupTest.cc
  12305. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12306. Removed unnecessary string copy. Updated doc and corrected indentation.
  12307. * src/Base64.cc
  12308. Fixed compilation warnings
  12309. * test/DataTest.cc
  12310. * test/HttpRequestTest.cc
  12311. * test/MetaFileUtilTest.cc
  12312. * test/RequestTest.cc
  12313. * Release 0.12.0
  12314. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12315. Updated translations
  12316. * po/{de,fr,ja,nl,ru}.po
  12317. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  12318. translations. Many thanks to translators.
  12319. * po/{ca,es,it,pt_BR,sv}.po
  12320. * po/LINGUAS
  12321. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12322. Added a notice about URL
  12323. * src/version_usage.cc
  12324. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  12325. Fixed the bug#1845750; CTRL+C does not stop torrent.
  12326. aria2 repeatedly sends stopped request when tracker returns error code.
  12327. * src/AnnounceList.cc
  12328. * test/AnnounceListTest.cc
  12329. * src/AnnounceTier.h
  12330. Added a message when ctrl-c is hit.
  12331. Now second ctrl-c is also handled in signal handler.
  12332. * src/RequestGroupMan.{h, cc}
  12333. * src/RequestGroup.{h, cc}
  12334. * src/MultiUrlRequestInfo.cc
  12335. * src/DownloadEngine.cc
  12336. * src/TrackerWatcherCommand.cc
  12337. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12338. Code cleanup
  12339. * src/Base64.cc (encode)
  12340. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12341. Changed Direct/IO enable/disable procesure in file allocation routine.
  12342. * src/SingleFileAllocationIterator.cc
  12343. (SingleFileAllocationIterator):
  12344. Disable directIO if offset is not multiple of 512.
  12345. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  12346. * src/MultiFileAllocationIterator.cc (allocateChunk):
  12347. Enable created SingleFileAllocationIterator's directIO.
  12348. * src/FileAllocationEntry.cc
  12349. (FileAllocationEntry): Enable directIO here.
  12350. (~FileAllocationEntry): Disable directIO here.
  12351. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12352. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  12353. * src/Peer.{h, cc}
  12354. * src/DefaultPieceStorage.cc
  12355. * test/DefaultPieceStorageTest.cc
  12356. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12357. Rewritten direct I/O support routine
  12358. * src/SingleFileAllocationIterator.cc
  12359. * src/MultiDiskAdaptor.{h, cc}
  12360. * src/ByteArrayDiskWriter.h
  12361. * src/AbstractSingleDiskAdaptor.h
  12362. * src/AbstractDiskWriter.cc
  12363. * src/DefaultPieceStorage.cc
  12364. * src/DiskWriter.h
  12365. * src/BinaryStream.h
  12366. * src/IteratableChunkChecksumValidator.cc
  12367. * src/IteratableChecksumValidator.cc
  12368. * src/CheckIntegrityEntry.cc
  12369. * src/FileAllocationEntry.cc
  12370. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12371. Fixed typo
  12372. * src/version_usage.cc
  12373. Updated doc
  12374. * doc/aria2c.1.txt
  12375. * doc/aria2c.1
  12376. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12377. Fixed compile error without message digest support.
  12378. * src/FileMetalinkParserState.cc
  12379. * src/MetalinkParserController.{h, cc}
  12380. * test/XML2SAXMetalinkProcessorTest.cc
  12381. * test/MetalinkParserControllerTest.cc
  12382. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12383. Enable direct I/O support in checksum checking.
  12384. * src/IteratableChunkChecksumValidator.{h, cc}
  12385. * test/IteratableChunkChecksumValidatorTest.cc
  12386. * src/CheckIntegrityEntry.cc
  12387. * src/PieceHashCheckIntegrityEntry.cc
  12388. * src/IteratableChecksumValidator.{h, cc}
  12389. * src/BtCheckIntegrityEntry.cc: Added doc.
  12390. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12391. Added --allow-piece-length-change option.
  12392. * src/DefaultBtProgressInfoFile.cc
  12393. * test/DefaultBtProgressInfoFileTest.cc
  12394. * src/OptionHandlerFactory.cc
  12395. * src/option_processing.cc
  12396. * src/prefs.h
  12397. * src/version_usage.cc
  12398. * doc/aria2c.1.txt
  12399. * doc/aria2c.1
  12400. Fixed: duplicated result entry appears when exception is thrown in
  12401. RequestGroup::createInitiateConnectionCommand().
  12402. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12403. Add RequestGroup to _requestGroup after RequetGroup::
  12404. createInitiateConnectionCommand() succeeds.
  12405. Externalized message
  12406. * src/XML2SAXMetalinkProcessor.cc
  12407. * src/message.h
  12408. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12409. Forced download abort when received negative response from http/ftp
  12410. server.
  12411. * src/HttpResponseCommand.cc
  12412. * src/FtpNegotiationCommand.cc
  12413. * src/HttpResponse.cc
  12414. * src/FtpConnection.cc
  12415. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12416. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12417. the predecessor, Xml2MetalinkParser class.
  12418. I tested them against 94KB metalink file with 1234 chunk checksums.
  12419. The new one parsed it in 22msec, while it took 6000msec with old one.
  12420. * src/XML2SAXMetalinkProcessor.{h, cc}
  12421. * test/XML2SAXMetalinkProcessorTest.cc
  12422. * src/MetalinkParserController.{h, cc}
  12423. * test/MetalinkParserControllerTest.cc
  12424. * src/MetalinkParserState.h: Also added 16 subclasses.
  12425. * src/main.cc
  12426. * src/Metalink2RequestGroup.cc
  12427. * src/MetalinkHelper.cc
  12428. * src/MetalinkEntry.cc
  12429. * src/ChunkChecksum.h
  12430. Rewritten Base64 class for better performance.
  12431. * src/Base64.{h, cc}
  12432. * test/Base64Test.cc
  12433. * src/HttpRequest.cc
  12434. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12435. Fixed the bug#1841757: aria2 will connect to server to only get
  12436. file size.
  12437. * src/StreamFileAllocationEntry.cc
  12438. * src/option_processing.cc
  12439. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12440. downloads.
  12441. * src/FtpNegotiationCommand.cc
  12442. Suppressed wrong message when finding PreDownloadHandler
  12443. * src/RequestGroup.cc
  12444. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12445. Updated usage
  12446. * src/version_usage.cc
  12447. Updated man page
  12448. * doc/aria2c.1.txt
  12449. * doc/aria2c.1
  12450. Updated po files
  12451. * po/aria2c.pot
  12452. * po/*.po
  12453. * po/*.gmo
  12454. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12455. Eliminated g++-4.2 warning
  12456. * src/DownloadHandlerConstants.{h, cc}
  12457. * src/Util.cc
  12458. * test/MetaFileUtilTest.cc
  12459. * test/PStringBuildVisitorTest.cc
  12460. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12461. * src/RequestGroup.cc
  12462. * src/BtCheckIntegrityEntry.cc
  12463. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12464. Fixed a2io.h
  12465. * src/a2io.h
  12466. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12467. Added direct I/O support. The current implementation uses O_DIRECT,
  12468. which is not posix standard and is tested on linux 2.6.21.
  12469. Currently only file allocation uses direct I/O.
  12470. * src/SingleFileAllocationIterator.{h, cc}
  12471. * test/SingleFileAllocationIteratorTest.cc
  12472. * src/MultiFileAllocationIterator.{h, cc}
  12473. * test/MultiFileAllocationIteratorTest.cc
  12474. * src/BinaryStream.h
  12475. * src/DiskWriter.h
  12476. * src/AbstractDiskWriter.{h, cc}
  12477. * src/ByteArrayDiskWriter.h
  12478. * src/DiskAdaptor.h
  12479. * src/AbstractSingleDiskAdaptor.{h, cc}
  12480. * src/MultiDiskAdaptor.{h, cc}
  12481. * src/FileAllocationEntry.cc
  12482. * src/Util.{h, cc}
  12483. * src/OptionHandlerFactory.cc
  12484. * src/prefs.h
  12485. * src/version_usage.cc
  12486. * src/option_processing.cc
  12487. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12488. handleException.
  12489. * src/MultiFileAllocationIterator.cc
  12490. Added EINTR handling
  12491. * src/SocketCore.cc
  12492. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12493. Updated usage
  12494. * src/version_usage.cc
  12495. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12496. Applied Ross's patch for MinGW port.
  12497. * src/DownloadEngine.h
  12498. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12499. Set Content-Type to SingleFileDownloadContext when http response is
  12500. received.
  12501. * src/HttpResponseCommand.cc
  12502. * src/HttpResponse.{h, cc}
  12503. * test/HttpResponseTest.cc
  12504. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12505. Rewritten to add content-type support.
  12506. * src/DownloadHandler.{h, cc}
  12507. * src/BtPostDownloadHandler.{h, cc}
  12508. * test/BtPostDownloadHandlerTest.cc
  12509. * src/MetalinkPostDownloadHandler.{h, cc}
  12510. * test/MetalinkPostDownloadHandlerTest.cc
  12511. * src/PostDownloadHandler.{h, cc}
  12512. * src/DownloadHandlerConstants.{h, cc}
  12513. * src/RequestGroup.cc
  12514. * src/HttpResponseCommand.cc
  12515. * src/FtpNegotiationCommand.cc
  12516. * src/SingleFileDownloadContext.{h, cc}
  12517. * src/RequestGroup.h
  12518. * src/RequestGroupCriteria.h
  12519. * src/ContentTypeRequestGroupCriteria.h
  12520. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12521. If it is give, metalink/torrent file is not written to the disk, but
  12522. just is kept in memory. Parsing is occurred on memory.
  12523. * src/MetalinkHelper.{h, cc}
  12524. * src/MetalinkProcessor.h
  12525. * src/Xml2MetalinkProcessor.{h, cc}
  12526. * test/Xml2MetalinkProcessorTest.cc
  12527. * src/DownloadHandlerFactory.{h, cc}
  12528. * test/DownloadHandlerFactoryTest.cc
  12529. * src/PreDownloadHandler.{h, cc}
  12530. * src/OptionHandlerFactory.cc
  12531. * src/DefaultBtContext.{h, cc}
  12532. * test/DefaultBtContextTest.cc
  12533. * src/version_usage.cc
  12534. * src/Metalink2RequestGroup.{h, cc}
  12535. * src/RequestGroup.{h, cc}
  12536. * src/a2functional.h
  12537. * test/a2functionalTest.cc
  12538. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12539. * src/OptionHandlerImpl.h
  12540. * src/prefs.h
  12541. * src/Util.{h, cc}
  12542. * test/UtilTest.cc
  12543. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12544. memory usage.
  12545. * src/RequestGroupMan.{h, cc}
  12546. * src/DownloadEngine.cc
  12547. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12548. WeakHandle to SharedHandle because WeakHandle could be null.
  12549. * src/RequestGroup.{h, cc}
  12550. * src/DownloadEngineFactory.cc
  12551. * src/DownloadResult.h
  12552. Set totalLength after download finished
  12553. * src/UnknownLengthPieceStorage.{h, cc}
  12554. Keep torrent file specified in metalink in memory.
  12555. * src/Metalink2RequestGroup.cc
  12556. * src/BtDependency.cc
  12557. * src/TrueRequestGroupCriteria.h
  12558. Fixed the bug: seekg is used where seekp should be used.
  12559. * src/ByteArrayDiskWriter.cc
  12560. * test/ByteArraydiskWriterTest.cc
  12561. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12562. Fixed syntax error
  12563. * test/SequenceTest.cc
  12564. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12565. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12566. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12567. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12568. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12569. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12570. Added the check to see whether ares_host_callback accepts timeouts
  12571. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12572. * src/NameResolver.{h, cc}
  12573. * m4/libcares.m4
  12574. * configure.ac: Set C++ for language choice.
  12575. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12576. Fixed: compilation fails without c-ares/ares
  12577. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12578. Generate http/ftp commands only when download is incomplete.
  12579. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12580. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12581. Corrected typo. Examples are removed since they are available in man
  12582. page.
  12583. * src/version_usage.cc
  12584. Updated man page.
  12585. * doc/aria2c.1
  12586. * doc/aria2c.1.txt
  12587. * doc/makeman: Commented out sed command.
  12588. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12589. Throw DlAbortEx when a remote file is not found.
  12590. * src/HttpResponse.cc
  12591. * src/FtpNegotiationCommand.cc
  12592. * src/message.h
  12593. Overwrite an existing file if --allow-overwrite=true is given.
  12594. * src/RequestGroup.cc
  12595. Removed unused functions
  12596. * src/AbstractCommand.h
  12597. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12598. Removed 'extern' from 'extern typedef ...' in src/*.h
  12599. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12600. Updated usage
  12601. * src/version_usage.cc
  12602. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12603. Trim announce URL
  12604. * src/DefaultBtContext.cc
  12605. * test/ShaVisitorTest.cc
  12606. Trim argument s. Give trimed s to exception constructor.
  12607. * src/Util.cc (parseInt)(parseLLInt)
  12608. * test/UtilTest.cc
  12609. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12610. Set precision back to 1.
  12611. * src/ConsoleStatCalc.cc (calculateStat)
  12612. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12613. Replaced strtol with Util::parseInt
  12614. * src/ChunkedEncoding.cc
  12615. * src/HttpConnection.cc
  12616. * src/CookieBoxFactory.cc
  12617. * src/ParameterizedStringParser.cc
  12618. * src/Util.cc
  12619. * test/UtilTest.cc
  12620. * test/OptionHandlerTest.cc
  12621. * src/Request.cc
  12622. Throw exception when empty string is given. The message for exception
  12623. changed.
  12624. * src/Util.cc (parseInt)(parseLLInt)
  12625. * src/message.h
  12626. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12627. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12628. set to 1.
  12629. * src/ConsoleStatCalc.cc (calculateStat)
  12630. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12631. Preallocate non-requested file which is adjacent forward to requested
  12632. file('requested' files means the files given in --select-file option)
  12633. if they share a same piece.
  12634. This fixes long pause in the file system which doesn't support sparse
  12635. files like FAT32 while downloading.
  12636. * src/MultiFileAllocationIterator.{h, cc}
  12637. * test/MultiFileAllocationIteratorTest.cc
  12638. * src/FileEntry.{h, cc}
  12639. Removed unused _option.
  12640. * src/MultiDiskAdaptor.h
  12641. * test/MultiDiskAdaptorTest.cc
  12642. * src/DefaultPieceStorage.cc
  12643. Set the default value of --seed-ratio to 1.0.
  12644. If 0.0 is given, then seeding continues regardless of share ratio.
  12645. * src/version_usage.cc
  12646. * src/option_processing.cc
  12647. * src/BtSetup.cc
  12648. * doc/aria2c.1.txt
  12649. * doc/aria2c.1
  12650. Fixed: Selective download is not working in BitTorrent
  12651. * src/RequestGroup.cc
  12652. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12653. * src/PieceStorage.h
  12654. * test/MockPieceStorage.h
  12655. * src/UnknownLengthPieceStorage.h
  12656. * src/DefaultPieceStorage.{h, cc}
  12657. * src/Metalink2RequestGroup.cc
  12658. * src/RequestGroup.cc
  12659. * src/Sequence.h
  12660. * test/SequenceTest.cc
  12661. * src/IntSequence.h
  12662. * src/message.h
  12663. * src/Util.{h, cc}
  12664. * test/UtilTest.cc
  12665. Added new function 'parse' to catch exception thrown by subclass's
  12666. parseArg
  12667. * src/OptionHandler.h
  12668. * src/OptionParser.cc
  12669. * src/NameMatchOptionHandler.h
  12670. * src/OptionHandlerImpl.h
  12671. * test/OptionHandlerTest.cc
  12672. Added IntegerRangeOptionHandler. Used for --listen-port and
  12673. --select-file. Now --listen-port accepts range of port.
  12674. * src/OptionHandlerFactory.cc
  12675. * src/version_usage.cc
  12676. * src/OptionHandlerImpl.h
  12677. * src/option_processing.cc
  12678. * src/BtSetup.cc
  12679. * src/PeerListenCommand.{h, cc}
  12680. * doc/aria2c.1.txt
  12681. * doc/aria2c.1
  12682. Implemented operator< for Exception class to provide easy way to print
  12683. exception stack trace.
  12684. * src/Exception.{h, cc}
  12685. * src/main.cc
  12686. * src/option_processing.cc
  12687. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12688. * src/version_usage.cc
  12689. (showVersion): Reworked.
  12690. (showUsage): Added examples.
  12691. Removed Hint for total length and file name.
  12692. * src/Metalink2RequestGroup.cc
  12693. * src/RequestGroup.{h, cc}
  12694. * src/HttpResponseCommand.cc
  12695. * src/FtpNegotiationCommand.cc
  12696. Now --follow-torrent and --follow-metalink option work properly.
  12697. * src/RequestGroup.cc
  12698. Updated man page
  12699. * doc/aria2c.1.txt
  12700. * doc/aria2c.1
  12701. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12702. Removed.
  12703. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12704. Use Segment::operator==()
  12705. * src/HttpConnection.cc
  12706. * src/Segment.h
  12707. Updated usage
  12708. * src/version_usage.cc
  12709. Added EINTR treatment.
  12710. * src/SocketCore.cc
  12711. * src/AbstractDiskWriter.cc
  12712. Rewritten.
  12713. * src/Util.cc (rangedFileCopy)
  12714. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12715. Fixed typo.
  12716. * src/version_usage.cc
  12717. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12718. Implemented. Now -c option works fine.
  12719. * src/DefaultPieceStorage.cc (markPiecesDone)
  12720. * test/DefaultPieceStorageTest.cc
  12721. Removed.
  12722. * src/SegmentMan.{h, cc}
  12723. (markAllPiecesDone)
  12724. (markPieceDone)
  12725. Synchronized po files with
  12726. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12727. * src/fr.po
  12728. * src/ru.po
  12729. * src/de.po
  12730. * src/ja.po
  12731. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12732. Added ifdef and some modifications to compile without BitTorrent,
  12733. Metalink, MessageDigest
  12734. support.
  12735. * src/PieceHashCheckIntegrityEntry.cc
  12736. * src/MetalinkEntry.h
  12737. * src/version_usage.cc
  12738. * src/main.cc
  12739. * src/DownloadEngine.{h, cc}
  12740. * src/Metalink2RequestGroup.cc
  12741. * src/Peer.cc
  12742. * src/RequestGroup.cc
  12743. * src/MetalinkHelper.cc
  12744. * test/DefaultPieceStorageTest.cc
  12745. * test/MetalinkPostDownloadHandlerTest.cc
  12746. * test/Metalink2RequestGroupTest.cc
  12747. Hide TOTAL SPD when all downloads complete.
  12748. * src/ConsoleStatCalc.cc
  12749. Log target system information.
  12750. * src/main.cc
  12751. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12752. Now --metalink-location accepts a comma-deliminated list of locations.
  12753. * src/MetalinkEntry.{h, cc}
  12754. * test/MetalinkEntryTest.cc
  12755. * src/version_usage.cc
  12756. * src/Metalink2RequestGroup.cc
  12757. * src/Xml2MetalinkProcessor.cc
  12758. * test/Xml2MetalinkProcessorTest.cc
  12759. * doc/aria2c.1.txt
  12760. * doc/aria2c.1
  12761. * src/Util.cc (toUpper)(toLower): Rewritten.
  12762. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12763. Added the ability to detect duplicate download entry which is about to
  12764. download the same file other RequestGroup is downloading.
  12765. * src/RequestGroup.cc
  12766. * src/HttpResponseCommand.cc
  12767. * src/FtpNegotiationCommand.cc
  12768. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12769. Recalculates download progress when loading a control file,
  12770. if the piece length of DownloadContext is different from the one saved
  12771. in the control file. Currently in-flight pieces are ignored.
  12772. * src/DefaultBtProgressInfoFile.cc
  12773. * test/DefaultBtProgressInfoFileTest.cc
  12774. * src/Util.{h, cc}
  12775. * test/UtilTest.cc
  12776. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12777. Do not rotate tiers in announce-list.
  12778. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12779. AnnounceList::allTiersFailed() used instead to detect whether all
  12780. tiers are tried and failed.
  12781. * test/DefaultBtAnnounceTest.cc
  12782. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12783. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12784. * test/AnnounceListTest.cc
  12785. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12786. clause. Catch RecoverableException instead of DlRetryEx instead.
  12787. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12788. Implemented checksum validation feature(1 checksum for each file)
  12789. The validation takes place after the download.
  12790. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12791. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12792. * src/CheckIntegrityCommand.cc: Changed log message.
  12793. * src/Metalink2RequestGroup.cc: Set checksum to
  12794. SingleFileDownloadContext.
  12795. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12796. PieceHashCheckIntegrity class.
  12797. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12798. PieceHashCheckIntegrity class.
  12799. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12800. * src/IteratableValidator.h: New class.
  12801. * src/message.h
  12802. * src/CheckIntegrityEntry.{h, cc}
  12803. * src/IteratableChunkChecksumValidator.{h, cc}
  12804. * src/SingleFileDownloadContext.h
  12805. * src/DownloadCommand.cc
  12806. --allow-overwrite=true is no longer needed to check file integrity
  12807. before download in BitTorrent download.
  12808. * src/RequestGroup.cc (getInitialCommand)
  12809. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12810. throws exception.
  12811. * src/RequestGroupMan.cc (getInitialCommands)
  12812. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12813. urlencode the given url inside Request::parseUrl(...)
  12814. * src/Request.{h, cc}
  12815. * src/Util.{h, cc}
  12816. * test/RequestTest.cc
  12817. Removed #!metalink3! notation support because it is deleted from
  12818. the metalink specification.
  12819. * src/Request.{h, cc}
  12820. * test/RequestTest.cc
  12821. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12822. Don't connect server before checking file integrity at startup, if
  12823. filesize and output file path are known.
  12824. * src/AbstractCommand.cc
  12825. * src/StreamFileAllocationEntry.cc
  12826. * src/Metalink2RequestGroup.cc
  12827. * src/RequestGroup.{h, cc}
  12828. * src/HttpResponseCommand.cc
  12829. * src/FtpNegotiationCommand.cc
  12830. Added DownloadFailureException. If it is thrown, RequestGroup should
  12831. halt.
  12832. * src/AbstractCommand.cc
  12833. * src/DownloadFailureException.h
  12834. * src/RequestGroup.cc
  12835. Catch RecoverableException, instead of DlAbortEx.
  12836. * src/RequestGroupMan.cc
  12837. * src/FillRequestGroupCommand.cc
  12838. * src/MetaFileUtil.cc
  12839. * src/IteratableChunkChecksumValidator.cc
  12840. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12841. getGID())
  12842. * src/CheckIntegrityCommand.cc
  12843. * src/message.h
  12844. Print gid instead of idx.
  12845. * src/RequestGroupMan.cc
  12846. Removed exception throwers declaration.
  12847. * src/DirectDiskAdaptor.{h, cc}
  12848. * src/SocketCore.{h, cc}
  12849. * src/MultiDiskAdaptor.{h, cc}
  12850. * src/HttpConnection.{h, cc}
  12851. * src/HttpResponse.{h, cc}
  12852. * src/DiskAdaptor.{h, cc}
  12853. * src/CopyDiskAdaptor.{h, cc}
  12854. * src/MultiDiskAdaptor.{h, cc}
  12855. * src/HttpHeaderProcessor.{h, cc}
  12856. * src/AbstractSingleDiskAdaptor.{h, cc}
  12857. * src/Util.{h, cc}
  12858. * test/UtilTest.cc
  12859. * src/DefaultDiskWriter.{h, cc}
  12860. * src/FtpConnection.{h, cc}
  12861. * src/AbstractDiskWriter.{h, cc}
  12862. Removed duplicate code.
  12863. * src/StreamCheckIntegrityEntry.cc
  12864. Removed unnecessary include.
  12865. * src/DiskWriter.h
  12866. Included Exception.h
  12867. * src/option_processing.cc
  12868. Included 2 files and added doc
  12869. * src/TrackerWatcherCommand.cc
  12870. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12871. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12872. Changed CheckIntegrityEntry interface so that it can define
  12873. the action when all the chunk checksums are valid.
  12874. * src/CheckIntegrityEntry.h
  12875. * src/StreamCheckIntegrityEntry.{h, cc}
  12876. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12877. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12878. to exit rather than doing seeding. So, it would be good to toggle this
  12879. behavior.
  12880. * src/CheckIntegrityCommand.cc
  12881. * src/AbstractCommand.cc
  12882. * src/RequestGroup.cc
  12883. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12884. Reflect the download length of in-flight pieces.
  12885. It makes the download length readout more precise.
  12886. * src/DefaultPieceStorage.{h, cc}
  12887. * test/DefaultPieceStorageTest.cc
  12888. * src/a2functional.h
  12889. * test/a2functionalTest.cc
  12890. Lower CPU load when --max-download-limit is used.
  12891. There is up and down in speed indicator when enabling
  12892. http-pipelining but a download goes well. I think the problem is that
  12893. because http-pipelining is enabled, DownloadCommand is created for
  12894. each segment and in its constructor, PeerStat::downloadStart() is
  12895. called. In PeerStat::downloadStart(), speed calculation object is
  12896. reseted, which makes download speed zero.
  12897. * src/DownloadCommand.cc
  12898. Rewritten using accumulate.
  12899. * src/RequestGroupMan.cc (calculateStat)
  12900. Code clearnup.
  12901. * src/FtpNegotiationCommand.cc
  12902. * src/HttpResponseCommand.cc
  12903. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12904. Fixed: Can not resume: aria2 reports download already finished.
  12905. * src/AbstractCommand.{h, cc}
  12906. * src/HttpResponseCommand.cc
  12907. * src/FtpNegotiateCommand.cc
  12908. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12909. Now a file is stored in the directory specified in .metalnk file
  12910. (file[@name]).
  12911. * src/Metalink2RequestGroup.cc
  12912. Create the directory structure when opening the file if it doesn't
  12913. exist.
  12914. * src/AbstractDiskWriter.cc
  12915. * src/Util.{h, cc}
  12916. * src/File.h
  12917. * test/UtilTest.cc
  12918. Removed file name comparison
  12919. * src/Metalink2RequestGroup.cc
  12920. * src/HttpResponseCommand.cc
  12921. Rewritten using Util::mkdirs()
  12922. * src/FileEntry.cc (setupDir)
  12923. * test/FileEntryTest.cc
  12924. Updated doc
  12925. * src/SingleFileDownloadContext.h
  12926. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12927. Now SleepCommand dispatches nextCommand when halt is requested.
  12928. It avoids a possible long wait after hitting CTRL-C.
  12929. * src/SleepCommand.{h, cc}
  12930. * src/RequestGroupAware.{h, cc}
  12931. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12932. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12933. to open listen port, then remove the port number from the tracker
  12934. request.
  12935. * src/DefaultBtAnnounce.cc
  12936. * test/DefaultBtAnnounceTest.cc
  12937. * test/MockPieceStorage.h
  12938. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12939. them more testable.
  12940. * src/DefaultBtAnnounce.{h, cc}
  12941. * src/DefaultBtContext.{h, cc}
  12942. * src/Util.{h, cc}
  12943. * test/DefaultBtAnnounceTest.cc
  12944. * test/DefaultBtContextTest.cc
  12945. * test/UtilTest.cc
  12946. Added 'B' to upload bytes readout.
  12947. * src/ConsoleStatCalc.cc
  12948. Now the listen port for BitTorrent download is opened when it is
  12949. needed.
  12950. * src/DownloadEngineFactory.cc
  12951. * src/BtSetup.{h, cc}
  12952. * src/PeerListenCommand.{h, cc}
  12953. Now an exception thrown while parsing tracker response is now logged.
  12954. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12955. called, which means no retry is made in this case, assuming a tracker
  12956. has a problem.
  12957. * src/TrackerWatcherCommand.cc
  12958. Fixed: downloading a file whose length is unkown fails.
  12959. * src/DownloadCommand.cc
  12960. Simplified prepareForNextSegment()
  12961. * src/DownloadCommand.cc
  12962. Updated
  12963. * po/POTFILES.in
  12964. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12965. Re-implemented a file listing for Metalink, which was dropped while
  12966. http/ftp/torrent integration was being implemented.
  12967. * src/MetalinkHelper.{h, cc}: New class.
  12968. * test/MetalinkHelperTest.cc
  12969. * src/main.cc
  12970. * src/Metalink2RequestGroup.cc
  12971. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12972. Added the ability to display the detailed torrent file information.
  12973. Now -S option gives not only a file listing, but also total download
  12974. length, info hash, announce URI, piece length, the number of pieces,
  12975. and mode(single or multi-torrent).
  12976. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12977. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12978. KiB)
  12979. * test/UtilTest.cc
  12980. * src/main.cc
  12981. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12982. Added ftp://USER:PASSWD@Servername automatic parsing.
  12983. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12984. _password. Recognize username and password in URI.
  12985. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12986. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12987. * src/RequestFactory.{h, cc}: Removed.
  12988. * src/AuthConfigFactory.{h, cc}: New class.
  12989. * src/FtpConnection.cc: Use AuthConfigFactory.
  12990. * src/HttpRequest.cc: Use AuthConfigFactory.
  12991. * test/HttpRequestTest.cc: Updated.
  12992. * test/RequestTest.cc: Updated.
  12993. * test/AuthConfigFactoryTest.cc: New class.
  12994. * test/RequestFactoryTest.cc: Removed.
  12995. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12996. Use RequestGroup::allDownloadFinished() to decide whether the control
  12997. file should be removed or saved.
  12998. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12999. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  13000. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13001. Use File::renameTo()
  13002. * src/DefaultBtProgressInfoFile.cc
  13003. Added --no-file-allocation-limit command-line option.
  13004. * src/version_usage.cc
  13005. * src/option_processing.cc
  13006. * src/OptionHandlerFactory.cc
  13007. * src/RequestGroup.{h, cc}
  13008. * src/BtCheckIntegrityEntry.cc
  13009. * src/StreamCheckIntegrityEntry.cc
  13010. * src/prefs.h
  13011. * doc/aria2c.1.txt
  13012. * doc/aria2c.1
  13013. Now prealloc is the default value for --file-allocation option.
  13014. * src/version_usage.cc
  13015. * src/option_processing.cc
  13016. * doc/aria2c.1.txt
  13017. * doc/aria2c.1
  13018. Don't URL-encode user-agent.
  13019. * src/HttpRequest.cc
  13020. Updated translations
  13021. * po/LINGUAS: Added nl for Dutch translation.
  13022. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  13023. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  13024. * po/POTFILES.in: Updated.
  13025. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13026. Added the ability to recognize url-list in a torrent file.
  13027. The retrieved URLs are attached to the corresponding FileEntry.
  13028. * src/DefaultBtContext.{h, cc}
  13029. * src/FileEntry.{h, cc}
  13030. * test/DefaultBtContextTest.cc
  13031. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13032. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  13033. after the download finishes.
  13034. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13035. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  13036. the data smaller than block length.
  13037. A block length can be specified by constructor's argument.
  13038. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  13039. Get a missing piece in the range of given FileEntry. This function is
  13040. not used in the program yet.
  13041. * src/Util.h: Added some macros.
  13042. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13043. Added HTTP/1.1 keep alive and pipelining support.
  13044. See --enable-http-keep-alive and --enable-http-pipelining option.
  13045. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  13046. Segment.
  13047. * src/HttpDownloadCommand.{h, cc}
  13048. * src/OptionHandlerFactory.cc
  13049. * src/HttpConnection.{h, cc}
  13050. * src/version_usage.cc
  13051. * src/HttpInitiateConnectionCommand.cc
  13052. * src/FtpInitiateConnectionCommand.cc
  13053. * src/Segment.h
  13054. * src/HttpRequestCommand.{h, cc}
  13055. * src/option_processing.cc
  13056. * src/prefs.h
  13057. * src/HttpResponseCommand.cc
  13058. * src/SegmentMan.{h, cc}
  13059. * src/FtpNegotiateCommand.cc
  13060. * src/HttpProxyResponseCommand.cc
  13061. * src/Request.cc
  13062. * src/HttpRequest.cc
  13063. * src/DownloadCommand.cc
  13064. * test/HttpRequestTest.cc
  13065. * test/RequestTest.cc
  13066. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13067. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  13068. finished.
  13069. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13070. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  13071. catching it inside the method.
  13072. When no file entry is found in a metalink without querying user
  13073. preferences, throw the exception with the error message that suggests
  13074. metalink file is probably broken.
  13075. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  13076. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13077. Fixed the bug that prevents remote Metalink/Torrent file from begin
  13078. processed.
  13079. * src/RequestGroupMan.cc (removeStoppedGroup)
  13080. Added debug message.
  13081. * src/BtPostDownloadHandler.cc
  13082. * src/MetalinkPostDownloadHandler.cc
  13083. * src/PostDownloadHandler.{h, cc}
  13084. * src/RequestGroup.cc
  13085. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13086. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  13087. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13088. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  13089. stops and there are any unfinished or in-progress downloads.
  13090. Added the legend of "stat".
  13091. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13092. Throw exception when chunck checksum verification fails.
  13093. * src/DownloadCommand.cc (validatePieceHash): New function.
  13094. * src/PiecedSegment.{h, cc} (clear): New function.
  13095. * src/GrowSegment.{h, cc} (clear): New function.
  13096. * src/Segment.h (clear): New function.
  13097. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  13098. * test/SegmentTest.cc
  13099. * test/GrowSegmentTest.cc
  13100. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13101. Do not send referer when redirected.
  13102. * src/Request.cc (redirectUrl)
  13103. * test/RequestTest.cc
  13104. * test/HttpRequestTest.cc
  13105. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13106. Implemented BitTorrent/http/ftp integrated download.
  13107. I've rewritten lots of files and now some headers have forward
  13108. class declarations to reduce compile time.
  13109. The implementation is extremely alpha stage, I recommend to use this
  13110. for testing purpose only.
  13111. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13112. Fixed the compilation error on 64bit platform.
  13113. * test/HttpHeaderProcessorTest.cc
  13114. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13115. Merged Ross's patch that fixes compilation problem in MinGW
  13116. * test/DefaultBtProgressInfoFileTest.cc
  13117. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13118. Updated fr.po by sebone
  13119. * po/fr.po
  13120. Updated man page.
  13121. * doc/aria2c.1.txt
  13122. * Release 0.11.3
  13123. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13124. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  13125. failure in Metalink.
  13126. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13127. Automatically save *.aria2 control file of http/ftp download in every
  13128. 60 seconds.
  13129. * src/AutoSaveCommand.{h, cc}: New class.
  13130. * src/TimeBasedCommand.{h, cc}: New class.
  13131. * src/DownloadEngineFactory.cc (newConsoleEngine)
  13132. Disable parameterized URI support by default. Added -P option to
  13133. enable the feature.
  13134. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  13135. * src/OptionHandlerFactory.cc
  13136. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  13137. Updated Japanese translation.
  13138. * po/ja.po
  13139. Updated man page.
  13140. * doc/aria2c.1.txt
  13141. * Release 0.11.3-rc
  13142. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13143. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  13144. it is successful, then renamed to *.aria2.
  13145. This prevents *.aria2 file from being truncated or corrupted when
  13146. file system becomes out of space.
  13147. * src/DefaultBtProgressInfoFile.cc (save)
  13148. * src/SegmentMan.cc (save)
  13149. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  13150. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13151. Reduced the fragmentation of bitfield in http/ftp download.
  13152. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  13153. * test/BitfieldManTest.cc
  13154. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13155. Added the ability to disable segmented download in .metalink.
  13156. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  13157. 'url' tag.
  13158. * src/MetalinkEntry.{h, cc}
  13159. * src/RequestResource.{h, cc}
  13160. * src/MetalinkRequestInfo.cc
  13161. * src/Xml2MetalinkProcessor.cc
  13162. * test/Xml2MetalinkProcessorTest.cc
  13163. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13164. Added parameterized URI support.
  13165. * src/main.cc: -Z option added.
  13166. * src/OptionHandlerFactory.cc
  13167. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  13168. * src/PStringDatum.h: New class.
  13169. * src/PStringSegment.{h,cc}: New class.
  13170. * src/PStringNumLoop.h: New class.
  13171. * src/PStringSelect.h: New class.
  13172. * src/NumberDecorator.h: New class.
  13173. * src/FixedWidthNumberDecorator.h: New class.
  13174. * src/AlphaNumberDecorator.h: New class.
  13175. * src/PStringVisitor.h: New class.
  13176. * src/PStringBuildVisitor.{h,cc}: New class.
  13177. * src/ParameterizedStringParser.{h,cc}: New class.
  13178. * src/Util.{h,cc}
  13179. (isNumber): New function.
  13180. (isLowercase): New function.
  13181. (isUppercase): New function.
  13182. (alphaToNum): New function.
  13183. * test/ParameterizedStringParserTest.cc: New class.
  13184. * test/AlphaNumberDecoratorTest.cc: New class.
  13185. * test/PStringBuildVisitorTest.cc: New class.
  13186. * test/UtilTest.cc
  13187. (testIsNumber): New function.
  13188. (testIsLowercase): New function.
  13189. (testIsUppercase): New function.
  13190. (testAlphaToNum): New function.
  13191. Added '\n' after the error message
  13192. * src/RequestInfo.h (printDownloadAbortMessage)
  13193. Added auto file renaming feature in http(s)/ftp download.
  13194. * src/main.cc: Added --auto-file-renaming command-line option.
  13195. * src/OptionHandlerFactory.cc
  13196. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  13197. * src/RequestGroup.{h, cc}
  13198. (shouldCancelDownloadForSafety): Rewritten
  13199. (tryAutoFileRenaming): New function.
  13200. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  13201. * src/HttpResponseCommand.cc
  13202. (executeInternal): Removed the call to RequestGroupMan::
  13203. isSameFileBeingDownloaded()
  13204. * src/FtpNegotiateCommand.cc
  13205. (recvSize): Removed the call to RequestGroupMan::
  13206. isSameFileBeingDownloaded()
  13207. * test/RequestGroupTest.cc: New class.
  13208. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13209. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  13210. IO.
  13211. * src/DefaultBtProgressInfoFile.cc
  13212. * src/MetaFileUtil.cc
  13213. * src/SimpleLogger.cc
  13214. * src/SegmentMan.cc
  13215. * src/Util.cc
  13216. * src/Platform.cc
  13217. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13218. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  13219. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13220. Avoid sparse files if possible, because VFAT32 doesn't support it.
  13221. * src/DefaultDiskWriter.cc (initAndOpenFile)
  13222. Fixed the bug that prevents file allocation is not done when
  13223. dowloading multi-torrent file.
  13224. * src/AbstractDiskWriter.cc (openFile)
  13225. Increase the maximum number of -j option from 15 to 45.
  13226. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13227. Added fr.po, thanks to Charles Landemaine.
  13228. * po/fr.po
  13229. * po/LINGUAS
  13230. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13231. gcc 3.4.4 support:
  13232. * src/DefaultBtContext.cc: int32_t -> int
  13233. * src/main.cc: int -> int32_t, int32_t -> int
  13234. * src/messageDigest.h: uint32_t -> unsigned int
  13235. * src/NameResolver.h: int32_t -> int
  13236. * src/PeerConnection.cc: int -> int32_t
  13237. * src/SpeedCalc.cc: int32_t -> int
  13238. * src/TrackerUpdateCommand.h: int -> int32_t
  13239. * src/Util.cc: int32_t -> int
  13240. * src/Util.h: int32_t -> int
  13241. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  13242. * test/AnnounceListTest.cc: int -> int32_t
  13243. * test/ChunkedEncodingTest.cc: int -> int32_t
  13244. * test/DataTest.cc: int -> int32_t
  13245. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  13246. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  13247. * test/DefaultPieceStorageTest.cc: int -> int32_t
  13248. * test/FeatureConfigTest.cc: int -> int32_t
  13249. * test/MetalinkEntryTest.cc: int -> int32_t
  13250. * test/MockBtRequestFactory.h: int -> int32_t
  13251. * test/MockPieceStorage.h: int -> int32_t
  13252. * test/OptionTest.cc: int -> int32_t
  13253. * test/RequestTest.cc: int -> int32_t
  13254. * test/SegmentManTest.cc: int -> int32_t
  13255. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  13256. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13257. Move sleep functions to Util class:
  13258. * src/Util.cc
  13259. (sleep): New function.
  13260. (usleep): New function.
  13261. * src/DownloadCommand.cc: sleep -> Util::sleep
  13262. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  13263. MinGW build enhancements. The following files are added:
  13264. * src/timegm.{c,h}
  13265. Changes to support the above new files:
  13266. * configure.ac
  13267. * src/Makefile.am
  13268. * src/a2time.h
  13269. * src/Util.cc:
  13270. * src/strptime.c: Added support for %Z option.
  13271. Fixed MinGW non-blocking bug.
  13272. * src/SocketCore.cc
  13273. * src/HttpRequestCommand.cc
  13274. Miscellenous build fixes/enhancements.
  13275. * configure.ac: Added summary report.
  13276. * src/Platform.h: Tweaked #include's.
  13277. * src/a2netcompat.h: Tweaked #include's.
  13278. * src/strptime.h: Tweaked #include's.
  13279. * src/gai_strerror.c: Tweaked #include's.
  13280. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  13281. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  13282. * src/gettimeofday.h: Added HAVE_CONFIG_H
  13283. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13284. Increased the initial connection size in BitTorrent download to 40.
  13285. * src/BtRuntime.h
  13286. Added the usage message of --peer-id-prefix option.
  13287. * src/main.cc
  13288. * Release 0.11.2
  13289. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13290. MessageDigestHelper is introduced in order to simplify the use
  13291. of message digest. Removed repeated code.
  13292. The message digest algorithm is now specified by string, like "sha1",
  13293. "md5".
  13294. * src/messageDigest.{h, cc}
  13295. * src/MessageDigestHelper.{h, cc}: New class.
  13296. * src/DefaultPieceStorage.cc
  13297. * src/DefaultBtContext.{h, cc}
  13298. (computeFastSet): New function.
  13299. (setInfoHash): Added for unit testing.
  13300. (setNumPieces): Added for unit testing.
  13301. * src/DefaultBtInteractive.cc
  13302. * src/BtPieceMessage.cc
  13303. * src/Peer.cc
  13304. * src/Checksum.h
  13305. * src/message.h
  13306. * src/IteratableChecksumValidator.h
  13307. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  13308. inside it.
  13309. * src/SegmentMan.{h, cc}
  13310. (checkIntegrity): Removed.
  13311. * src/IteratableChunkChecksumValidator.{h, cc}
  13312. * src/Util.h
  13313. (sha1Sum): Removed.
  13314. (simpleMessageDigest): Removed.
  13315. (fileChecksum): Removed.
  13316. (computeFastSet): Removed.
  13317. * src/ShaVisitor.cc
  13318. * src/ChunkChecksum.h
  13319. * src/DownloadCommand.cc
  13320. Removed messageDigest virtual functions.
  13321. * src/MultiDiskAdaptor.{h, cc}
  13322. * src/DiskAdaptor.h
  13323. * src/ByteArrayDiskWriter.h
  13324. * src/DiskWriter.h
  13325. * src/DiskAdaptorWriter.h
  13326. * src/AbstractSingleDiskAdaptor.{h, cc}
  13327. * src/AbstractDiskWriter.{h, cc}
  13328. Fixed comilation error when message digest is disabled.
  13329. * src/MetalinkEntry.{h, cc}
  13330. * src/MetalinkRequestInfo.cc
  13331. Removed srandom and random.
  13332. * src/SimpleRandomizer.h
  13333. Added size() virtual function to DiskAdaptor
  13334. * src/MultiDiskAdaptor.h
  13335. Fixed the bug that causes that files are not opened correctly in
  13336. multi-file torrent.
  13337. * src/TorrentRequestInfo.cc
  13338. * src/MultiDiskAdaptor.cc
  13339. Added SHA256 support
  13340. * src/messageDigest.cc
  13341. * src/Xml2MetalinkProcessor.cc
  13342. Show supported message digest algorithms
  13343. * src/main.cc
  13344. Updated contact info.
  13345. * src/main.cc
  13346. Applied Ross's patch
  13347. * src/a2netcompat.h
  13348. * src/main.cc
  13349. Fixed the bug that prevents a remote metalink from not being processed
  13350. even if '-o foo.metalink' is specified.
  13351. * src/MetalinkRequestInfo.cc
  13352. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13353. Merged Dan's patch:
  13354. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  13355. Use va_copy to avoid core dump on amd64:
  13356. * src/SimpleLogger.cc
  13357. Updated contact info.
  13358. * src/main.cc
  13359. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  13360. digest is not available.
  13361. * src/MetalinkEntry.h
  13362. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13363. Make a2netcompat.h include a2io.h to fix compilation error:
  13364. * src/a2netcompat.h
  13365. * src/SocketCore.cc: Removed include of a2io.h
  13366. * src/Util.cc: Removed include of a2io.h
  13367. Gather time related functions to a2time.h:
  13368. * src/a2time.h: New file.
  13369. * src/DefaultPeerStorage.cc
  13370. * src/SimpleLogger.cc
  13371. * src/Util.{h, cc}
  13372. * src/SimpleRandomizer.h
  13373. * src/TimeA2.{h,cc}
  13374. * src/DownloadCommand.cc
  13375. * src/main.cc
  13376. Removed #ifdef __MINGW32__ since gai_strerror is included in
  13377. a2netcompat.h:
  13378. * src/NameResolver.cc
  13379. Fixed compilation error without openssl:
  13380. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  13381. Added default block to suppress compiler warnings:
  13382. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  13383. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  13384. MinGW build enhancements. The following files are added:
  13385. * src/gai_strerror.{c,h}
  13386. * src/gettimeofday.{c,h}
  13387. Changes to support the above new files:
  13388. * configure.ac
  13389. * src/Makefile.am
  13390. * src/a2netcompat.h
  13391. * src/TimeA2.cc
  13392. * src/DefaultPeerStorage.cc
  13393. * src/NameResolver.cc: removed mingw_strerror() function.
  13394. * src/SocketCore.cc: removed mingw_strerror() function.
  13395. Miscellaneous MinGW build fixes.
  13396. * src/a2io.h: Use _lseeki64() instead of lseek()
  13397. * src/common.h
  13398. * src/DefaultFileAllocator.cc
  13399. * src/GlowFileAllocator.cc
  13400. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13401. * src/NameResolver.cc
  13402. (callback): Changed int32_t to int.
  13403. (resolve): Changed int32_t to int.
  13404. * src/Platform.cc
  13405. * src/Platform.h
  13406. * test/MultiDiskWriterTest.cc
  13407. * test/PeerMessageUtilTest.cc
  13408. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13409. Other enhancements and fixes.
  13410. * src/HttpRequestCommand.cc
  13411. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13412. * src/SocketCore.cc:
  13413. (error): New function to abstract errno/WSAGetLastError().
  13414. (errorMsg): New function to abstract errno/WSAGetLastError().
  13415. (initiateSecureConnection): Added more detailed error reporting.
  13416. * src/SocketCore.h: Added private variable blocking, to allow
  13417. proper handling of OpenSSL psuedo-errors.
  13418. * src/message.h
  13419. (EX_SSL_INIT_FAILURE)
  13420. (EX_SSL_IO_ERROR)
  13421. (EX_SSL_PROTOCOL_ERROR)
  13422. (EX_SSL_UNKNOWN_ERROR)
  13423. (EX_SSL_CONNECT_ERROR)
  13424. (EX_SOCKET_BLOCKING)
  13425. (EX_SOCKET_NONBLOCKING)
  13426. (EX_SOCKET_UNKNOWN_ERROR)
  13427. * src/Util.cc
  13428. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13429. reserved name.
  13430. (httpGMT): Fixed typo.
  13431. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13432. Merged Ross's win32 patch(manually)
  13433. In the course of merging, following files are added.
  13434. * src/strptime.{h,c}
  13435. * src/libgen.{h,c}
  13436. * src/inet_aton.{h,c}
  13437. * src/Platform.{h,cc}
  13438. * src/localtime_r.{h,c}
  13439. * src/getaddrinfo.{h,c}
  13440. I've gethered network related things, and put them to following file:
  13441. * src/a2netcompat.h
  13442. Also io related things are put to following file:
  13443. * src/a2io.h
  13444. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13445. * src/message.h
  13446. (MSG_ALLOCATION_COMPLETED)
  13447. (EX_TOO_LARGE_FILE)
  13448. (EX_SIZE_MISMATCH)
  13449. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13450. (EX_INVALID_CHUNK_CHECKSUM)
  13451. (EX_INVALID_RANGE_HEADER)
  13452. * src/FileAllocationCommand.cc
  13453. * src/HttpResponse.cc
  13454. * src/RequestGroup.cc
  13455. * src/MultiDiskAdaptor.cc
  13456. * src/OptionHandlerImpl.h
  13457. * src/HttpResponseCommand.cc
  13458. * src/FtpNegotiateCommand.cc
  13459. * src/IteratableChecksumValidator.cc
  13460. * src/SegmentMan.cc
  13461. * src/ChunkChecksumValidator.cc
  13462. Added Randomizer::getRandomNumber(long int)
  13463. * src/Randomizer.h (getRandomNumber)
  13464. * src/SimpleRandomizer.h (getRandomNumber)
  13465. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13466. * src/Util.cc (randomAlpha): Use this new function.
  13467. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13468. Converted int's to in32_t. long long int's are also converted to
  13469. int64_t
  13470. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13471. Fixed the bug that prevents cookies from being sent to the server
  13472. if the domain of cookie is FQDN and starts with ".".
  13473. * src/Cookie.cc (match)
  13474. To add the ability to change peer id.
  13475. * src/DefaultBtContext.h
  13476. (_peerIdPrefix): New variable
  13477. (setPeerIdPrefix): New function.
  13478. * src/torrentRequestInfo.cc
  13479. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13480. DefaultBtContext.
  13481. * src/main.cc (main): Added peer-id-prefix command-line option.
  13482. The usage message is not added yet.
  13483. * src/DefaultBtContext.cc
  13484. (generatePeerId): Use _peerIdPrefix.
  13485. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13486. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13487. Fixed the bug that prevents filename in content-disposition from
  13488. being retrieved when filename is not quoted.
  13489. * src/Util.cc (getContentDispositionFilename)
  13490. Fixed the bug that causes infinate loop and memory leak when file open
  13491. operation failed.
  13492. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13493. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13494. Fixed the bug that causes segfault when all URIs specified are
  13495. unsupported.
  13496. * src/RequestGroupMan.cc (getInitialCommands)
  13497. Check if RequestGroup::createNextCommand() returns empty list of
  13498. commands.
  13499. * src/RequestGroup.cc (createNextCommand)
  13500. Change log level from info to error so that users can notice that
  13501. an error occurred.
  13502. Fixed the bug that causes segfault when a zero-sized file is
  13503. downloaded.
  13504. * src/BitfieldMan.cc (isAllBitSet)
  13505. Return true if bitfieldLength is 0.
  13506. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13507. * src/main.cc
  13508. (showUsage): Added 3 usage examples for metalink download.
  13509. Replace MetalinkChunkChecksum with ChunkChecksum.
  13510. * src/MetalinkChunkChecksum.h: Removed.
  13511. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13512. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13513. * src/Xml2MetalinkProcessor.cc
  13514. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13515. * src/MetalinkRequestInfo.cc (execute)
  13516. * Release 0.11.1
  13517. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13518. Reads URIs from stdin when "-i -" is specified.
  13519. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13520. * src/UriListParser.h, src/UriListParser.cc: New class.
  13521. * src/StreamUriListParser.h: New class.
  13522. * src/FileUriListParser.h: New class.
  13523. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13524. instead of UriFileListParser.
  13525. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13526. Made console readout more readable.
  13527. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13528. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13529. Fix the bug that causes -s option not to work.
  13530. * src/main.cc (main)
  13531. * src/a2algo.h: New file.
  13532. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13533. Create directory structure specified in metalink file.
  13534. * src/RequestGroup.h, src/RequestGroup.cc
  13535. (initAndOpenFile): Create a directory to store files if it does not
  13536. exist.
  13537. (getDir): New function.
  13538. Added ETA and download speed for an individual file to readout.
  13539. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13540. * src/RequestGroup.h
  13541. (calculateDownloadSpeed): New function.
  13542. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13543. Made -S option work with metalink file and provided selective download
  13544. to metalink.
  13545. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13546. (filename): Removed.
  13547. (file): New variable.
  13548. (size): Removed.
  13549. (operator=): Updated.
  13550. (getPath): New function.
  13551. (getLength): New function.
  13552. (toFileEntry): New function.
  13553. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13554. (execute): Use toStream.
  13555. (showFileEntry): Removed.
  13556. * src/MetalinkRequestInfo.h
  13557. (targetFiles): New variable.
  13558. (setTargetFiles): New variable.
  13559. * src/MetalinkRequestInfo.cc
  13560. (execute): Added the ability to print file information included in
  13561. a metalink file.
  13562. Added selective download mode to metalink.
  13563. * src/main.cc
  13564. (showUsage): Updated to denote that -S and --select-file options are
  13565. applicable to metalink.
  13566. * src/FileEntry.h
  13567. (operator=): New function.
  13568. (getBasename): New function.
  13569. (getDirname): New function.
  13570. * src/Util.h, src/Util.cc
  13571. (toStream): New function.
  13572. * src/Xml2MetalinkProcessor.cc: Updated.
  13573. Made aria2 work with metalink with directory structure.
  13574. * src/File.h, src/File.cc
  13575. (getBasename): New function.
  13576. (getDirname): New function.
  13577. * src/RequestGroup.h, src/RequestGroup.cc
  13578. (_topDir): New variable.
  13579. (setTopDir): New function.
  13580. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13581. Rewrote HTTP header parsing with stringstream.
  13582. * src/HttpConnection.h, src/HttpConnection.cc
  13583. (HttpRequestEntry): New class.
  13584. (headerBuf): Removed.
  13585. (headerBufLength): Removed.
  13586. (outstandingHttpRequests): Now its element type is
  13587. HttpRequestEntryHandle.
  13588. (findEndOfHeader): Removed.
  13589. (receiveResponse): Rewritten.
  13590. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13591. Updated doc for -j option to notice that it should be used with -i
  13592. option.
  13593. * src/main.cc (showUsage)
  13594. Removed unused classes.
  13595. * src/RequestInfo.h
  13596. (FileInfo): Removed.
  13597. (checksum): Removed.
  13598. (fileInfo): Removed.
  13599. (setChecksum): Removed.
  13600. (getChecksum): Removed.
  13601. (getFileInfo): Removed.
  13602. Use ISO units.
  13603. * src/ConsoleDownloadEngine.cc
  13604. * src/TorrentConsoleDownloadEngine.cc
  13605. * src/Util.cc (abbrevSize)
  13606. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13607. Added the default listening ports to the help message.
  13608. * src/main.cc (showUsage)
  13609. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13610. Reduce the number of calls to gettimeofday to lower CPU load.
  13611. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13612. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13613. * src/Peer.h (calculateUploadSpeed): New function.
  13614. (calculateDownloadSpeed): New function.
  13615. * src/DefaultPeerStorage.cc
  13616. (CalculateStat): Added _now variable.
  13617. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13618. and Peer::calculateUploadSpeed(const struct timeval&)
  13619. Drop connection if no request or piece message is exchanged in
  13620. a certain interval.
  13621. * src/DefaultBtInteractive.h
  13622. (btRuntime): New variable.
  13623. (inactiveCheckPoint): New variable.
  13624. (checkActiveInteraction): New function.
  13625. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13626. request or piece message is received.
  13627. (checkActiveInteraction): New function.
  13628. (doInteractionProcessing): Call checkActiveInteraction.
  13629. Fixed the bug that causes remote Metalink and Torrent files are not
  13630. processed.
  13631. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13632. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13633. Changed format of log file.
  13634. * src/SimpleLogger.cc
  13635. * Release 0.11.0
  13636. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13637. * src/AbstractCommand.cc
  13638. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13639. MSG_MAX_TRY from error to info.
  13640. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13641. * src/message.h
  13642. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13643. (MSG_DOWNLOAD_ABORTED): Added %s.
  13644. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13645. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13646. * src/PeerAbstractCommand.cc
  13647. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13648. * src/Request.h
  13649. (cookieBox): Made ShardHandle.
  13650. * src/RequestGroup.h, src/RequestGroup.cc
  13651. (createNextCommandWithAdj): New function.
  13652. * src/FileAllocationCommand.cc
  13653. (executeInternal): Use createNextCommandWithAdj().
  13654. * src/CheckIntegrityCommand.cc
  13655. (executeInternal): Use createNextCommandWithAdj().
  13656. Added --load-cookies command-option.
  13657. * src/OptionHandlerFactory.cc
  13658. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13659. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13660. Now aria2 can handle cookie's expiration date.
  13661. * src/Cookie.h (expires): Changed its type to time_t.
  13662. * src/main.cc: Added --load-cookies command-line option.
  13663. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13664. * src/Util.h, src/Util.cc (httpGMT): New function.
  13665. * src/Request.cc (Request): Initialize cookieBox using
  13666. CookieBoxFactory.
  13667. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13668. * src/CookieParser.h, src/CookieParser.cc: New class.
  13669. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13670. * src/HttpResponseCommand.cc
  13671. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13672. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13673. download.
  13674. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13675. Added -j command-line option.
  13676. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13677. * src/main.cc
  13678. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13679. Rewritten using stringstream.
  13680. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13681. Rewritten using stringstream.
  13682. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13683. Make download size shown in MB, KB.
  13684. * src/ConsoleDownloadEngine.h (sendStatistics)
  13685. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13686. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13687. Accept incoming connections if download rate is low.
  13688. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13689. (_lowestSpeedLimit): New variable.
  13690. (setLowestSpeedLimit): New function.
  13691. (execute): Accept incoming connections if download rate is low.
  13692. MAX_PEERS is ignored in this case.
  13693. Disable PREF_OUT in multiple concurrent download:
  13694. * src/RequestGroup.h, src/RequestGroup.cc
  13695. (setUserDefinedFilename): New function.
  13696. * src/DownloadEngineFactory.cc
  13697. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13698. concurrent download.
  13699. * src/DefaultSegmentManFactory.cc
  13700. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13701. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13702. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13703. Added its overloaded method.
  13704. * src/RequestGroup.h
  13705. (_numConcurrentCommand): New variable.
  13706. (setNumConcurrentCommand): New function.
  13707. * src/RequestGroup.cc
  13708. Abort download if same file is being downloaded concurrently.
  13709. * src/RequestGroup.h, src/RequestGroupMan.cc
  13710. (isSameFileBeingDownloaded): New function.
  13711. * src/HttpResponseCommand.cc (executeInternal)
  13712. * src/FtpNegotiateCommand.cc (recvSize)
  13713. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13714. * main.cc: Added help message for -i option.
  13715. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13716. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13717. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13718. * src/MetalinkEntry.h
  13719. (checksum): Changed to ChecksumHandle
  13720. * src/MetalinkRequestInfo.cc
  13721. (checksum): Changed to ChecksumHandle
  13722. * src/File.cc
  13723. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13724. * src/common.h
  13725. (DIR_OPEN_MODE): New definition
  13726. * src/RequestGroup.cc
  13727. (prepareForNextAction): Added an argument.
  13728. * src/message.h
  13729. (MSG_GOOD_CHECKSUM): New definition
  13730. (MSG_BAD_CHECKSUM): New definition
  13731. * src/HttpResponseCommand.cc
  13732. (handleDefaultEncoding): Continue download sequence in new
  13733. non-segmented download.
  13734. * src/FileAllocationEntry.h
  13735. (_nextDownloadCommand): New variable.
  13736. * src/DownloadCommand.cc
  13737. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13738. available.
  13739. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13740. * src/IteratableChecksumValidator.h,
  13741. src/IteratableChecksumValidator.cc: New class.
  13742. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13743. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13744. Change file mode to 666:
  13745. * src/common.h (OPEN_MODE): New definition.
  13746. * src/File.cc
  13747. * src/Util.cc
  13748. * src/Directry.cc
  13749. * src/AbstractDiskWriter.cc
  13750. Change the level of log message "download aborted" to debug:
  13751. * src/PeerAbstractCommand.cc (execute)
  13752. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13753. * src/TrackerWatcherCommand.cc
  13754. (createCommand): Sleep some seconds after request failed.
  13755. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13756. then abort tracker request.
  13757. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13758. * Added the simultaneous download feature.
  13759. * src/main.cc: Print "Exception caught: " when exception is caught.
  13760. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13761. * src/ActivePeerConnectionCommand.cc
  13762. * src/PeerInteractionCommand.cc
  13763. * src/BtRuntime.h
  13764. (cuidCounter): Removed.
  13765. (getNewCuid): Removed.
  13766. * src/DownloadEngineFactory.cc
  13767. * src/PeerListenCommand.cc
  13768. * src/TrackerUpdateCommand.cc
  13769. * src/PeerInitiateConnectionCommand.cc
  13770. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13771. * src/PeerAbstractCommand.cc
  13772. (onAbort): Call PeerStorage::returnPeer()
  13773. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13774. (incomingPeers): New variable.
  13775. (addIncomingPeer): New function.
  13776. (returnPeer): New function.
  13777. (onErasingPeer): New function.
  13778. (addPeer): push_back -> push_front
  13779. (getActivePeers): Rewritten.
  13780. (calculateStat): Rewritten.
  13781. * src/PeerStorage.h
  13782. (TransferStat::copy): New function.
  13783. (TransferStat::TransferStat): New function.
  13784. (TransferStat::operator=): New function.
  13785. (addIncomingPeer): New function.
  13786. (returnPeer): New function.
  13787. * src/PeerListenCommand.cc
  13788. (execute): Use PeerStorage::addIncomingPeer() instead of
  13789. Peer::addPeer().
  13790. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13791. Connect to a peer actively when download speed is lower than specified
  13792. speed in torrent download:
  13793. * src/ActivePeerConnectionCommand.h: New class.
  13794. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13795. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13796. * src/main.cc: Fixed the bug that prevents download if .netrc
  13797. doesn't exist.
  13798. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13799. To cache resolved hostname:
  13800. * src/AbstractCommand.h, src/AbstractCommand.cc
  13801. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13802. Added dns cache.
  13803. * src/FtpInitiateConnectionCommand.cc
  13804. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13805. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13806. NameResolver working without ares.
  13807. * src/TorrentRequestInfo.cc
  13808. (execute): Don't cache dns in torrent download.
  13809. * src/HttpInitiateConnectionCommand.cc
  13810. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13811. * src/DNSCache.h: New class.
  13812. * src/UrlRequestInfo.cc
  13813. (execute): Use dns cache.
  13814. In http request, suppress port number in http request header if port
  13815. is 80 or 443:
  13816. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13817. request header if port is 80 or 443.
  13818. (createProxyRequest): Allways send port number.
  13819. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13820. To add the command-line option which disables netrc support:
  13821. * src/OptionHandlerFactory.cc
  13822. (createOptionHandlers): Added PREF_NO_NETRC.
  13823. * src/main.cc: Added -n option.
  13824. * src/prefs.h (PREF_NO_NETRC): New definition.
  13825. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13826. V_TRUE.
  13827. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13828. is V_FALSE. This may get configurable in the future release.
  13829. To clear peer's error status by time basis:
  13830. * src/PeerAbstractCommand.cc
  13831. (onAbort): Call Peer::startBadCondition().
  13832. * src/Peer.h, src/Peer.cc
  13833. (error): Removed.
  13834. (_badConditionStartTime): New variable.
  13835. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13836. (startBadCondition): New function.
  13837. (isGood): New function.
  13838. * src/DefaultPeerStorage.cc
  13839. (addPeer): Use Peer::isGood().
  13840. (FindFinePeer): Use Peer::isGood().
  13841. Always include port number in http request header:
  13842. * src/HttpRequest.cc (getHostText): Always include port number in
  13843. http request header.
  13844. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13845. To the ability to read options from a config file:
  13846. * src/main.cc: Command-line parameter validation is delegated to
  13847. OptionHandler class.
  13848. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13849. * src/Option.h, src/Option.cc (clear): New function.
  13850. * src/OptionParser.h, src/OptionParser.cc: New class.
  13851. * src/OptionHandler.h: New class.
  13852. * src/NameMatchOptionHandler.h: New class.
  13853. * src/OptionHandlerImpl.h: New classes.
  13854. * src/prefs.h: '_' -> '-'
  13855. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13856. (FTP_PASV): New definition.
  13857. * src/Util.h, src/Util.cc (getRealSize): New function.
  13858. To disable netrc support if .netrc file does not have correct
  13859. permissions:
  13860. * src/File.h, src/File.cc (mode): New function.
  13861. To prevent confidential information to be logged:
  13862. * src/HttpConnection.h, src/HttpConnection.cc
  13863. (eraseConfidentialInfo): New function.
  13864. (sendRequest): Call eraseConfidentialInfo().
  13865. (sendProxyRequest): Call eraseConfidentialInfo().
  13866. * src/main.cc: Validate permissions of .netrc file.
  13867. To add --user-agent command-line option:
  13868. * src/main.cc: Added new command line option: --user-agent
  13869. * src/prefs.h (PREF_USER_AGENT): New definition.
  13870. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13871. parameter to HttpRequest object.
  13872. * src/AbstractProxyRequestCommand.cc
  13873. (executeInternal): Set user-agent option parameter to HttpRequest
  13874. object.
  13875. Marged the patches from Dan Fandrich.
  13876. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13877. Use filename and size from Metalink file instead of sending HEAD
  13878. request:
  13879. * src/UrlRequestInfo.h
  13880. (_filename): New variable.
  13881. (_totalLength): New variable.
  13882. (setTotalLength): New variable.
  13883. (setFilename): New variable.
  13884. * src/MetalinkRequestInfo.cc
  13885. (execute): Set filename and size to UrlRequestInfo
  13886. * src/UrlRequestInfo.cc
  13887. (execute): Use filename and size from Metalink instead of seding
  13888. HEAD request to servers.
  13889. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13890. To add the ability to resume downloading a partially downloaded file
  13891. which is downloaded from the beginning:
  13892. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13893. takes this role.
  13894. * src/main.cc: Added -c option.
  13895. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13896. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13897. * src/prefs.h (PREF_CONTINUE): New definition.
  13898. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13899. * src/DefaultDiskWriter.cc
  13900. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13901. * src/AbstractDiskWriter.h
  13902. (glowFileAllocator): New variable.
  13903. * src/AbstractDiskWriter.cc
  13904. (openExistingFile): Now preallocate file space from the end of the
  13905. existing file if totalLength argument is specified and grater than 0.
  13906. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13907. to download exists in local, continue the download of the file.
  13908. --allow-overwrite=true is assumed in this context.
  13909. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13910. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13911. Throw exception if --check-integrity=true is specified but chunk
  13912. checksums are not provided:
  13913. * src/UrlRequestInfo.cc
  13914. Do not print URLs to stdout:
  13915. * src/UrlRequestInfo.cc
  13916. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13917. * src/Request.h: Use AuthResolver to get authentication information.
  13918. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13919. set to RequestFactory object.
  13920. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13921. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13922. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13923. create Request object.
  13924. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13925. To integrate Netrc into exsiting classes:
  13926. * src/Request.h
  13927. (_userDefinedAuthConfig): New variable.
  13928. (findNetrcAuthenticator): New function.
  13929. (segment): Removed.
  13930. (setUserDefinedAuthConfig): New function.
  13931. (resolveHttpAuthConfigItem): New function.
  13932. (resolveFtpAuthConfigItem): New function.
  13933. (resolveHttpProxyAuthConfigItem): New function.
  13934. * src/HttpRequest.h
  13935. (authConfig): Removed.
  13936. (proxyAuthConfig): Removed.
  13937. (setAuthConfig): Removed.
  13938. (setProxyAuthConfig): Removed.
  13939. * src/UrlRequest.h
  13940. (getHeadResult): Added a parameter: authConfigHandle
  13941. * src/common.h
  13942. (SingletonHolder.h): New include.
  13943. * src/main.cc
  13944. (Netrc.h): New include.
  13945. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13946. Added initial value of PREF_NETRC_PATH.
  13947. Added the initialization of netrc.
  13948. * src/AuthConfig.h: New class.
  13949. * src/prefs.h
  13950. (PREF_NETRC_PATH): New definition.
  13951. * src/HttpAuthConfig.h: Removed.
  13952. * src/Netrc.cc
  13953. (getRequiredNextToken): New function.
  13954. (skipMacdef): New function.
  13955. (parse): Rewritten.
  13956. * src/Netrc.h
  13957. (getRequiredNextToken): New function.
  13958. (skipMacdef): New function.
  13959. * src/Util.h, src/Util.cc
  13960. (getHomeDir): New function.
  13961. * src/TrackerWatcherComand.cc
  13962. (createRequestCommand): Use AuthConfig.
  13963. * src/FtpConnection.cc
  13964. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13965. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13966. * src/Request.cc
  13967. (findNetrcAuthenticator): New function.
  13968. (resolveHttpAuthConfigItem): New function.
  13969. (resolveFtpAuthConfigItem): New function.
  13970. (resolveHttpProxyAuthConfigItem): New function.
  13971. * src/UrlRequestInfo.cc: Use AuthConfig.
  13972. * src/HttpRequest.cc
  13973. (createRequest): Use authConfig.
  13974. (getProxyAuthString): Use authConfig.
  13975. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13976. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13977. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13978. To reduce overhead to find commands whose socket is either
  13979. readable or writable in the download engine loop:
  13980. * src/Command.h, src/Command.cc
  13981. (STATUS): New enum.
  13982. (status): New variable.
  13983. (statusMatch): New function.
  13984. (setStatusActive): New function.
  13985. (setStatusInactive): New function.
  13986. * src/DownloadEngine.h, src/DownloadEngine.cc
  13987. (executeCommand): New function.
  13988. (run): Simplified.
  13989. (waitData): Call Command::setStatusActive() when command's socket is
  13990. readable or writable.
  13991. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13992. To handle Segment as SegmentHandle:
  13993. * src/AbstractCommand.cc (execute): Rewritten.
  13994. * src/SegmentMan.h: Segment -> SegmentHandle
  13995. Introducded HttpResponse class, HttpRequest class to improve code
  13996. extensiveness and make it clear:
  13997. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13998. HttpResponse class.
  13999. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  14000. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  14001. * src/HttpConnection.cc: Contruction of http request were moved to
  14002. HttpRequest class.
  14003. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  14004. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  14005. * src/HttpAuthConfig.h: New class.
  14006. * src/Range.h: New class.
  14007. To make FtpTunnel{Request, Response}Command and
  14008. HttpProxy{Request, Response}Command derived from
  14009. AbstractProxy{Request, Response}Command:
  14010. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  14011. Derived from AbstractProxyRequestCommand class.
  14012. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  14013. Derived from AbstractProxyResponseCommand class.
  14014. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  14015. Derived from AbstractProxyRequestCommand class.
  14016. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  14017. Derived from AbstractProxyResponseCommand class.
  14018. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  14019. : New class.
  14020. * src/AbstractProxyResponseCommand.h,
  14021. src/AbstractProxyResponseCommand.cc: New class.
  14022. To add netrc support:
  14023. * src/Netrc.h, src/Netrc.cc: New class.
  14024. * src/Util.h, src/Util.cc (split): New function.
  14025. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  14026. "Content-Range" header instead of "Range" header.
  14027. * src/HttpHeader.h
  14028. (getStatus): Removed.
  14029. (setStatus): Removed.
  14030. * src/Segment.h
  14031. (getPositionToWrite): New function.
  14032. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14033. * src/HttpHeader.h
  14034. (Range.h): New include.
  14035. (status): New variable.
  14036. (HttpHeader): Initialized status with 0.
  14037. (getStatus): New function.
  14038. (setStatus): New function.
  14039. (getRange): New function.
  14040. (HttpHeaderHandle): New function.
  14041. * src/HttpHeader.cc
  14042. (getRange): New function.
  14043. * src/Request.h
  14044. (RequestWeakHandle): New definition.
  14045. * src/HttpConnection.h
  14046. (HttpConnectionHandle): New type definition.
  14047. * src/HttpConnection.cc
  14048. (receiveResponse): Set HTTP status to headers.
  14049. * src/main.cc
  14050. (showUsage): Fixed typo.
  14051. * src/Segment.h
  14052. (SegmentHandle): New type definition.
  14053. * src/BitfieldMan.h
  14054. (getMissingUnusedLength): New function.
  14055. * src/BitfieldMan.cc
  14056. (getMissingUnusedLength): New function.
  14057. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14058. To fix static initialization order problem:
  14059. * src/BitfieldManFactory.h
  14060. (defaultRandomizer): Removed.
  14061. (factory): New variable.
  14062. (getNewFactory): Removed.
  14063. (getFactoryInstance): New function.
  14064. (setDefaultRandomizer): Rewritten.
  14065. (getDefaultRandomizer): Rewritten.
  14066. * src/BitfieldManFactory.cc
  14067. (defaultRandomizer): Removed.
  14068. (factory): Initialized to 0.
  14069. (BitfieldManFactory): Initialized randomizer to 0.
  14070. * src/DefaultPieceStorage.cc
  14071. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  14072. * src/Peer.cc
  14073. (Peer): getNewFactory() -> getFactoryInstance()
  14074. * src/SegmentMan.cc
  14075. (initBitfield): getNewFactory() -> getFactoryInstance()
  14076. * src/Piece.cc
  14077. (Piece): getNewFactory() -> getFactoryInstance()
  14078. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14079. To fix the bug that causes crash on Max OS X:
  14080. * src/SimpleRandomizer.h
  14081. (getInstance): Create new instance if the static variable is null.
  14082. * src/SimpleRandomizer.cc
  14083. (randomizer): Initialized to 0.
  14084. * src/BitfieldManFactory.h
  14085. (getNewFactory): Removed the call to setRandomizer().
  14086. To fix the miscalculation of the range of checksum:
  14087. * src/BitfieldMan.h
  14088. (isBitSetOffsetRange): New function.
  14089. * src/BitfieldMan.cc
  14090. (isBitSetOffsetRange): New function.
  14091. * src/SegmentMan.cc
  14092. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  14093. Use bitfield->getBlockLength() instead of segment.segmentLength.
  14094. * Release 0.10.1
  14095. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14096. To lower CPU usage in BitTorrent download when --max-upload-limit
  14097. command-line option specified:
  14098. * src/DefaultBtMessageDispatcher.cc
  14099. (sendMessages): Calculate uploading speed only when current message
  14100. is uploading data and is not sent yet.
  14101. * src/DefaultPeerStorage.h
  14102. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  14103. * src/HttpResponseCommand.cc
  14104. (handleDefaultEncoding): Added the cast to int32_t to itos.
  14105. This fixes compile error in Soralis 10.
  14106. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14107. To fix segfault in Metalink download:
  14108. * src/UrlRequestInfo.h
  14109. (filename): Removed.
  14110. (totalLength): Removed.
  14111. (setTotalLength): Removed.
  14112. (setFilename): Removed.
  14113. * src/MetalinkRequestInfo.cc
  14114. (execute): Do not set filename and totalLength to reqInfo.
  14115. Set chunk checksum to reqInfo if it is not null.
  14116. * src/HttpResponseCommand.cc
  14117. (executeInternal): Fixed filename in log.
  14118. (handleDefaultEncoding): Removed the call to initBitfield() and
  14119. markAllPiecesDone().
  14120. (handleOtherEncoding): Added HEAD method handling.
  14121. * src/FtpNegotiateCommand.cc
  14122. (executeInternal): Added SEQ_HEAD_OK handling.
  14123. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  14124. return false.
  14125. * src/FtpNegotiateCommand.h
  14126. (SEQ_HEAD_OK): New definition.
  14127. * src/SegmentMan.cc
  14128. (initBitfield): Delete bitfield.
  14129. (isChunkChecksumValidationReady): Fixed the condition.
  14130. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  14131. works fine.
  14132. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14133. * src/Xml2MetalinkProcessor.h
  14134. (xpathExists): New function.
  14135. * src/Xml2MetalinkProcessor.cc
  14136. (xpathExists): New function.
  14137. Not to send HEAD request if filename and size are available in Metalink
  14138. file:
  14139. * src/UrlRequestInfo.h
  14140. (filename): New variable.
  14141. (totalLength): New variable.
  14142. (setTotalLength): New function.
  14143. (setFilename): New function.
  14144. * src/MetalinkRequestInfo.cc
  14145. (execute): Set filename and size to UrlRequestInfo.
  14146. * src/MetalinkEntry.cc
  14147. (MetalinkEntry): Initialize size with 0.
  14148. * src/UrlRequestInfo.cc
  14149. (execute): Set filename and size to SegmentMan.
  14150. Not to download rest of the files after selected files are downloaded
  14151. in BitTorrent:
  14152. * src/PieceStorage.h
  14153. (allDownloadFinished): New function.
  14154. * src/DefaultBtAnnounce.cc
  14155. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  14156. downloadFinished.
  14157. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  14158. * src/DefaultPieceStorage.cc
  14159. (completePiece): Use allDownloadFinished instead of downloadFinished.
  14160. Commented out the call to finishSelectiveDownloadingMode().
  14161. (downloadFinished): Call isFilteredAllBitSet() instead of
  14162. isAllBitSet().
  14163. (allDownloadFinished): New function.
  14164. * src/DefaultBtInteractive.cc
  14165. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  14166. downloadFinished().
  14167. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  14168. * src/TorrentDownloadEngine.cc
  14169. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  14170. * src/BitfieldMan.h
  14171. (isFilteredAllBitSet): New function.
  14172. * src/ShareRatioSeedCriteria.h
  14173. (PieceStorage.h): New include.
  14174. (pieceStorage): New variable.
  14175. (evaluate):
  14176. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  14177. * src/BitfieldMan.cc
  14178. (isFilteredAllBitSet): New function.
  14179. (isAllBitSet): Filter is not took into account.
  14180. Rename --force-truncate as --allow-overwrite:
  14181. * src/TorrentRequestInfo.cc
  14182. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  14183. * src/main.cc
  14184. (showUsage): --force-truncate -> --allow-overwrite
  14185. * src/message.h
  14186. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  14187. * src/prefs.h
  14188. (PREF_FORCE_TRUNCATE): Removed.
  14189. (PREF_ALLOW_OVERWRITE): New definition.
  14190. * src/SegmentMan.cc
  14191. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  14192. * src/MetalinkRequestInfo.cc
  14193. (execute): Queueing message are now logged in info level.
  14194. * src/common.h
  14195. (LONG_LONG_MAX): Removed.
  14196. (LONG_LONG_MIN): Removed.
  14197. * src/HttpResponseCommand.cc
  14198. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  14199. * src/FtpNegotiateCommand.cc
  14200. (recvSize): LONG_LONG_MAX -> INT64_MAX
  14201. * src/main.cc
  14202. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  14203. command-line option.
  14204. (main): Added --check-integriy and --realtime-chunk-checksum
  14205. command-line option.
  14206. --force-truncate -> --allow-overwrite
  14207. Set initial value of --check-integrity option to false.
  14208. Don't show usage when error occurs while persing command-line options.
  14209. Removed deprecated --upload-limit option.
  14210. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14211. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  14212. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  14213. * src/BtAllowedFastMessage.cc:
  14214. * src/BtBitfieldMessage.cc
  14215. * src/BtCancelMessage.cc
  14216. * src/BtChokeMessage.cc
  14217. * src/BtHaveAllMessage.cc
  14218. * src/BtHaveMessage.cc
  14219. * src/BtHaveNoneMessage.cc
  14220. * src/BtInterestedMessage.cc
  14221. * src/BtNotInterestedMessage.cc
  14222. * src/BtPieceMessage.cc
  14223. * src/BtPortMessage.cc
  14224. * src/BtRejectMessage.cc
  14225. * src/BtRequestMessage.cc
  14226. * src/BtSuggestPieceMessage.cc
  14227. * src/BtUnchokeMessage.cc
  14228. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  14229. files are affected.
  14230. * src/ChunkChecksumValidator.cc
  14231. * src/SegmentMan.cc
  14232. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14233. To add chunk checksum validation:
  14234. * src/MetalinkEntry.h
  14235. (MetalinkChunkChecksum.h): New include.
  14236. (chunkChecksum): New variable.
  14237. * src/Request.h
  14238. (method): New variable.
  14239. (setMethod): New function.
  14240. (getMethod): New function.
  14241. (METHOD_GET): New static constant.
  14242. (METHOD_HEAD): New static constant.
  14243. * src/Xml2MetalinkProcessor.h
  14244. (getPieceHash): New function.
  14245. * src/PieceStorage.h
  14246. (markAllPiecesDone): New function.
  14247. (checkIntegrity): New function.
  14248. * src/FileAllocator.h
  14249. (NullFileAllocationMonitor.h): New include.
  14250. (FileAllocator): Initialize fileAllocationMonitor with new
  14251. NullFileAllocationMonitor().
  14252. * src/MultiDiskAdaptor.h
  14253. (messageDigest.h): Remove include.
  14254. (ctx): Removed.
  14255. (hashUpdate): Added ctx.
  14256. (MultiDiskAdaptor): Removed ctx.
  14257. (sha1Sum): Renamed as messageDigest.
  14258. (messageDigest): New function.
  14259. * src/UrlRequestInfo.h
  14260. (HeadResult): New class.
  14261. (digestAlgo): New variable.
  14262. (chunkChecksumLength): New variable.
  14263. (chunkChecksums): New variable.
  14264. (getHeadResult): New function.
  14265. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  14266. (setDigestAlgo): New function.
  14267. (setChunkChecksumLength): New function.
  14268. (setChunkChecksums): New function.
  14269. * src/DefaultPieceStorage.cc
  14270. (DiskAdaptorWriter.h): New include.
  14271. (ChunkChecksumValidator.h): New include.
  14272. (markAllPiecesDone): New function.
  14273. (checkIntegrity): New function.
  14274. * src/DefaultBtContext.h
  14275. (getPieceHashes): New function.
  14276. * src/TorrentRequestInfo.cc
  14277. (execute): Try to validate chunk checksum if file already exists and
  14278. .aria2 file doesn't there and user allows aria2 to overwrite it.
  14279. * src/messageDigest.h
  14280. (~MessageDigestContext): Added digestFree().
  14281. * src/MetalinkRequestInfo.cc
  14282. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  14283. * src/DiskAdaptor.h
  14284. (messageDigest.h): New include.
  14285. (sha1Sum): Renamed as messageDigest.
  14286. (messageDigest): New function.
  14287. * src/DownloadCommand.h
  14288. (PeerStat.h): New include.
  14289. (maxDownloadSpeedLimit): New variable.
  14290. (startupIdleTime): New variable.
  14291. (lowestDownloadSpeedLimit): New variable.
  14292. (peerStat): New variable.
  14293. (setMaxDownloadSpeedLimit): New function.
  14294. (setStartupIdleTime): New function.
  14295. (setLowestDownloadSPeedLimit): New function.
  14296. * src/BtContext.h
  14297. (getPieceHashes): New function.
  14298. * src/main.cc
  14299. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  14300. option to true for testing purpose.
  14301. * src/BtPieceMessage.cc
  14302. (checkPieceHash): Use messageDigest
  14303. * src/DownloadEngine.cc
  14304. (SetDescriptor): Removed.
  14305. (AccumulateActiveCommand): Removed.
  14306. (waitData): Rewritten.
  14307. (updateFdSet): Rewritten.
  14308. * src/MultiDiskAdaptor.cc
  14309. (hashUpdate): Added ctx.
  14310. (sha1Sum): Renamed as messageDigest.
  14311. (messageDigest): New function.
  14312. * src/BitfieldMan.h
  14313. (isBitRangeSet): New function.
  14314. (unsetBitRange): New function.
  14315. * src/ByteArrayDiskWriter.h
  14316. (sha1Sum): Renamed as messageDigest.
  14317. (messageDigest): New function.
  14318. * src/ConsoleDownloadEngine.cc
  14319. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  14320. * src/DiskWriter.h
  14321. (messageDigest.h): New include.
  14322. (sha1Sum): Renamed as messageDigest.
  14323. (messageDigest): New function.
  14324. * src/ChunkChecksumValidator.h: New class.
  14325. * src/DiskAdaptorWriter.h: New class.
  14326. * src/prefs.h
  14327. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  14328. (PREF_CHECK_INTEGRITY): New definition.
  14329. * src/HttpResponseCommand.cc
  14330. (handleDefaultEncoding): Added method "HEAD" handling.
  14331. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14332. (handleOtherEncoding):
  14333. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  14334. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  14335. startupIdleTime, lowestDownloadSpeedLimit to command.
  14336. * src/SegmentMan.h
  14337. (getSegmentEntryByIndex): New function.
  14338. (getSegmentEntryByCuid): New function.
  14339. (getSegmentEntryIteratorByCuid): New function.
  14340. (diskWriter): DiskWriter -> DiskWriterHandle
  14341. (pieceHashes): New variable.
  14342. (chunkHashLength): New variable.
  14343. (digestAlgo): New variable.
  14344. (FindPeerStat): Removed.
  14345. (getPeerStat): Rewritten.
  14346. (markAllPiecesDone): New function.
  14347. (checkIntegrity): New function.
  14348. (tryChunkChecksumValidation): New function.
  14349. (isChunkChecksumValidationReady): New function.
  14350. * src/BitfieldMan.cc
  14351. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  14352. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  14353. blocks to 0.
  14354. (isBitRangeSet): New function.
  14355. (unsetBitRange): New function.
  14356. * src/FtpNegotiateCommand.cc
  14357. (executeInternal): Set maxDownloadSpeedLimit,
  14358. startupIdleTime, lowestDownloadSpeedLimit to command.
  14359. (recvSize): Added method "HEAD" handling.
  14360. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14361. * src/AbstractSingleDiskAdaptor.cc
  14362. (sha1Sum): Renamed as messageDigest.
  14363. (messageDigest): New function.
  14364. * src/AbstractSingleDiskAdaptor.h
  14365. (sha1Sum): Renamed as messageDigest.
  14366. (messageDigest): New function.
  14367. * src/Util.h
  14368. (indexRange): New function.
  14369. * src/MetalinkEntry.cc
  14370. (MetalinkEntry): Initialized chunkChecksum to 0.
  14371. * src/ShaVisitor.cc
  14372. (~ShaVisitor): Removed the call to ctx.digestFree().
  14373. * src/SegmentMan.cc
  14374. (ChunkChecksumValidator.h): New include.
  14375. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  14376. to DIGEST_ALGO_SHA1.
  14377. (~SegmentMan): Removed diskWriter.
  14378. (FindSegmentEntryByIndex): Removed.
  14379. (FindSegmentEntryByCuid): Removed.
  14380. (checkoutSegment): Rewritten.
  14381. (findSlowerSegmentEntry): Rewritten.
  14382. (getSegment): Rewritten.
  14383. (updateSegment): Rewritten.
  14384. (completeSegment): Rewritten.
  14385. (markAllPiecesDone): New function.
  14386. (checkIntegrity): New function.
  14387. (isChunkChecksumValidationReady): New function.
  14388. (tryChunkChecksumValidation): New function.
  14389. * src/Xml2MetalinkProcessor.cc
  14390. (getEntry): Get size and set it to entry.
  14391. Get chunk checksum and set it to entry.
  14392. (getPieceHash): New function.
  14393. * src/Util.cc
  14394. (sha1Sum): Removed ctx.digestFree()
  14395. (fileChecksum): Removed ctx.digestFree()
  14396. (indexRange): New function.
  14397. * src/Request.cc
  14398. (METHOD_GET): New variable.
  14399. (METHOD_HEAD): New variable.
  14400. (Request): Added method.
  14401. * src/UrlRequestInfo.cc
  14402. (FatalException.h): New include.
  14403. (message.h): New include.
  14404. (operator<<): Added operator<< for class HeadResult.
  14405. (getHeadResult): New function.
  14406. (execute): Get filename and size in separate download engine.
  14407. * src/ChunkChecksumValidator.cc: New class.
  14408. * src/DownloadCommand.cc:
  14409. (DownloadCommand): Added peerStat.
  14410. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14411. the value from Option.
  14412. The buffer size is now 16KB.
  14413. Use peerStat member instead of getting it from SegmentMan.
  14414. Use startupIdleTime member instead of gettingit from Option.
  14415. Added chunk checksum validation.
  14416. * src/AbstractDiskWriter.cc
  14417. (AbstractDiskWriter): Removed ctx.
  14418. (~AbstractDiskWriter): Removed ctx.digestFree()
  14419. (writeDataInternal): Returns the return value of write.
  14420. (readDataInternal): Returns the return value of read.
  14421. (sha1Sum): Renamed as messageDigest
  14422. (messageDigest): New function.
  14423. * src/AbstractDiwkWriter.h
  14424. (messageDigest.h): Removed include.
  14425. (ctx): Removed.
  14426. (sha1Sum): Renamed as messageDigest
  14427. (messageDigest): New function.
  14428. * src/DefaultPieceStorage.h
  14429. (markAllPiecesDone): New function.
  14430. (checkIntegrity): New function.
  14431. * src/NullFileAllocationMonitor.h: New class.
  14432. * src/MetalinkChunkChecksum.h: New class.
  14433. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14434. To decrease CPU usage in bittorrent download, calculation results in
  14435. BitfieldMan were cached and realtime fetching PeerObject was removed
  14436. with WeakHandle introduced. Option values are set to the objects
  14437. by setter before download begins.
  14438. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14439. * src/DefaultBtRequestFactory.h
  14440. (dispatcher): BtMessageDispatcherHandle ->
  14441. BtMessageDispatcherWeakHandle.
  14442. (messageFactory): New variable.
  14443. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14444. BtMessageDispatcherWeakHandle.
  14445. (setBtMessageFactory): New function.
  14446. * src/DefaultBtMessageDispatcher.cc:
  14447. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14448. from Option.
  14449. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14450. feating the value from Option.
  14451. Use messageFactory member.
  14452. * src/PeerInteractionCommand.cc
  14453. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14454. Add reverse dependencies to factory object.
  14455. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14456. dispatcher.
  14457. Set messageFactory to receiver.
  14458. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14459. btInteractive.
  14460. Set receiver to peerObject.
  14461. Set maxDownloadSpeedLimit to this.
  14462. (executeInternal): Use maxDownloadSpeedLimit member.
  14463. * src/BtChokeMessage.cc
  14464. (doReceivedAction): Use dispatcher, requestFactory member.
  14465. (onSendComplete): Use dispatcher member.
  14466. * src/PeerInteractionCommand.h
  14467. (maxDownloadSpeedLimit): New variable.
  14468. * src/DefaultBtMessageReceiver.h
  14469. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14470. (dispatcher):
  14471. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14472. (messageFactory): New variable.
  14473. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14474. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14475. (setDispatcher):
  14476. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14477. (setBtMessageFactory): New function.
  14478. * src/DefaultBtInteractive.cc
  14479. (initiateHandshake): Use messageFactory member.
  14480. (addBitfieldMessageToQueue): Use messageFactory member.
  14481. (addAllowedFastMessageToQueue): Use messageFactory member.
  14482. (decideChoking): Use messageFactory member.
  14483. (checkHave): Use messageFactory member.
  14484. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14485. (receiveMessages): Use maxDownloadSpeedLimit member.
  14486. (decideInterest): Use messageFactory member.
  14487. * src/BtRequestMessage.cc
  14488. (doReceivedAction): Use messageFactory, dispatcher member.
  14489. (onQueued): Use dispatcher member.
  14490. * src/BtPieceMessage.cc
  14491. (doReceivedAction): Use dispatcher member.
  14492. (send): Use peerConnection member.
  14493. (onWrongPiece): Use requestFactory member.
  14494. (handleChokingEvent): Use messageFactory, dispatcher member.
  14495. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14496. * src/BtMessageDispatcher.h
  14497. (BtMessageDispatcherWeakHandle): New type definition.
  14498. * src/SimpleBtMessage.cc
  14499. (send): Use peerConnection member.
  14500. * src/BtRejectMessage.cc
  14501. (doReceivedAction): Use dispatcher member.
  14502. * src/DefaultBtMessageDispatcher.h
  14503. (Option.h): Removed include.
  14504. (messageFactory): New variable.
  14505. (option): Removed.
  14506. (maxUploadSpeedLimit): New variable.
  14507. (requestTimeout): New variable.
  14508. (DefaultBtMessageDispatcher): Removed option.
  14509. Added maxUploadSpeedLimit, requestTimeout.
  14510. (setOption): Removed.
  14511. (getOption): Removed.
  14512. (setMaxUploadSpeedLimit): New function.
  14513. (setRequestTimeout): New function.
  14514. (setBtMessageFactory): New function.
  14515. * src/DefaultBtInteractive.h
  14516. (btMessageReceiver):
  14517. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14518. (dispatcher):
  14519. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14520. (btRequestFactory):
  14521. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14522. (peerConnection):
  14523. PeerConnectionHandle -> PeerConnectionWeakHandle
  14524. (messageFactory): New variable.
  14525. (option): Removed.
  14526. (keepAliveInterval): New variable.
  14527. (maxDownloadSpeedLimit): New variable.
  14528. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14529. (setBtMessageReceiver):
  14530. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14531. (setDispatcher):
  14532. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14533. (setBtRequestFactory):
  14534. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14535. (setPeerConnection):
  14536. PeerConnectionHandle -> PeerConnectionWeakHandle
  14537. (setOption): Removed.
  14538. (setKeepAliveInterval): New function.
  14539. (setMaxDownloadSpeedLimit): New function.
  14540. (setBtMessageFactory): New function.
  14541. * src/BitfieldMan.h
  14542. (cachedNumMissingBlock): New variable.
  14543. (cachedNumFilteredBlock): New variable.
  14544. (cachedCompletedLength): New variable.
  14545. (cachedFilteredComletedLength): New variable.
  14546. (cachedFilteredTotalLength): New variable.
  14547. (countMissingBlockNow): New function.
  14548. (countFilteredBlockNow): New function.
  14549. (getFilteredTotalLengthNow): New function.
  14550. (getCompletedLengthNow): New function.
  14551. (getFilteredCompletedLengthNow): New function.
  14552. (updateCache): New function.
  14553. * src/AbstractBtMessage.h
  14554. (BtMessageDispatcher.h): New include.
  14555. (PeerConnection.h): New include.
  14556. (BtRequestFactory.h): New include
  14557. (BtMessageFactory.h): New include.
  14558. (dispatcher): New variable.
  14559. (messageFactory): New variable.
  14560. (peerConnection: New variable.
  14561. (setBtMessageDispatcher): New function.
  14562. (setPeerConnection): New function.
  14563. (setBtMessageFactory): New function.
  14564. (setBtRequestFactory): New function.
  14565. * src/DefaultBtMessageFactory.cc
  14566. (setCommonProperty): Set dispatcher, requestFactory, this,
  14567. peerConnection to msg.
  14568. * src/BtRegistry.h
  14569. (BT_MESSAGE_RECEIVER): New macro.
  14570. * src/PeerConnection.h
  14571. (PeerConnectionWeakHandle): New type definition.
  14572. * src/BtMessageFactory.h
  14573. (BtMessageFactoryWeakHandle): New type definition.
  14574. * src/BitfieldMan.cc
  14575. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14576. cachedCompletedLength, cachedFilteredComletedLength,
  14577. cachedFilteredTotalLength.
  14578. Call updateCache().
  14579. (countMissingBlock): Return cachedNumMissingBlock.
  14580. (countMissingBlockNow): New function.
  14581. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14582. (countFilteredBlockNow): New function.
  14583. (setBit): Call updateCache().
  14584. (unsetBit): Call updateCache().
  14585. (setBitfield): Call updateCache().
  14586. (clearAllBit): Call updateCache().
  14587. (setAllBit): Use setBitInternal instead of setBit.
  14588. Call updateCache().
  14589. (addFilter): Call updateCache().
  14590. (enableFilter): Call updateCache().
  14591. (disableFilter): Call updateCache().
  14592. (clearFilter): Call updateCache().
  14593. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14594. (getFilteredTotalLengthNow): New function.
  14595. (getCompletedLength): Return cachedCompletedLength.
  14596. (getCompletedLengthNow): New function.
  14597. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14598. (getFilteredCompletedLengthNow): New function.
  14599. (updateCache): New function.
  14600. * src/BtMessageReceiver.h
  14601. (BtMessageReceiverWeakHandle): New type definition.
  14602. * src/DefaultBtMessageReceiver.cc
  14603. (receiveHandshake): Use messageFactory member.
  14604. (sendHandshake): Use messageFactory member.
  14605. (receiveMessage): Use messageFactory member.
  14606. * src/DefaultBtMessageFactory.h
  14607. (dispatcher): New variable.
  14608. (requestFactory): New variable.
  14609. (peerConnection): New variablle.
  14610. (setBtMessageDispatcher): New function.
  14611. (setBtRequestFactory): New function.
  14612. (setPeerConnection): New function.
  14613. * src/SharedHandle.h
  14614. (RefCount): New class.
  14615. (WeakHandle): New class.
  14616. * src/PeerObject.h
  14617. (BtMessageReceiver.h): New include.
  14618. (PeerObject): Added btMessageReceiver.
  14619. (btMessageReceiver): New variable.
  14620. * src/Util.cc
  14621. (countBit): Simplified.
  14622. * src/BtCancelMessage.cc
  14623. (doReceivedAction): Use dispatcher member.
  14624. * src/BtRequestFactory.h
  14625. (BtRequestFactoryWeakHandle): New type definition.
  14626. * src/PeerStorage.h
  14627. (downloadSpeed): int -> uint32_t
  14628. (uploadSpeed): int -> uint32_t
  14629. (sessionDownloadLength): long long int -> uint64_t
  14630. (sessionUploadLength): long long int -> uint64_t
  14631. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14632. To add RecoverableException, FatalException:
  14633. * src/AbstractCommand.cc
  14634. (onAbort): Exception -> RecoverableException
  14635. * src/PeerAbstractCommand.h
  14636. (RecoverableException.h): New include.
  14637. (onAbort): Exception -> RecoverableException.
  14638. * src/PeerInteractionCommand.cc
  14639. (onAbort): Exception -> RecoverableException.
  14640. * src/PeerAbstractCommand.cc
  14641. (execute): Exception -> RecoverableException.
  14642. (onAbort): Exception -> RecoverableException.
  14643. * src/TorrentRequestInfo.cc
  14644. (execute): Exception -> RecoverableException.
  14645. * src/MetalinkRequestInfo.cc
  14646. (execute): Exception -> RecoverableException.
  14647. * src/MetaFileUtil.cc: RecoverableException.
  14648. * src/AbstractCommand.h
  14649. (onAbort): Exception -> RecoverableException.
  14650. * src/DlRetryEx.h: Exception -> RecoverableException.
  14651. * src/DlAbortEx.h: Exception -> RecoverableException.
  14652. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14653. * src/Util.cc: Exception -> RecoverableException.
  14654. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14655. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14656. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14657. To make ID static const int
  14658. * src/BtInterestedMessage.h
  14659. (ID_t): Removed.
  14660. (ID): New variable.
  14661. (getId): Made non-const.
  14662. * src/BtPieceMessage.h
  14663. (ID_t): Removed.
  14664. (ID): New variable.
  14665. (getId): Made non-const.
  14666. * src/BtChokeMessage.h
  14667. (ID_t): Removed.
  14668. (ID): New variable.
  14669. (getId): Made non-const.
  14670. * src/BtHaveAllMessage.h
  14671. (ID_t): Removed.
  14672. (ID): New variable.
  14673. (getId): Made non-const.
  14674. * src/BtKeepAliveMessage.h
  14675. (ID_t): Removed.
  14676. (ID): New variable.
  14677. (getId): Made non-const.
  14678. * src/BtHandshakeMessage.h
  14679. (ID): New variable.
  14680. (getId): Made non-const.
  14681. * src/BtSuggestPieceMessage.h
  14682. (ID_t): Removed.
  14683. (ID): New variable.
  14684. (getId): Made non-const.
  14685. * src/BtPortMessage.h
  14686. (ID_t): Removed.
  14687. (ID): New variable.
  14688. (getId): Made non-const.
  14689. * src/AbstractBtMessage.h
  14690. (id): Removed.
  14691. (AbstractBtMessage): Removed id.
  14692. (getId): Removed.
  14693. * src/BtHaveMessage.h
  14694. (ID_t): Removed.
  14695. (ID): New variable.
  14696. (getId): Made non-const.
  14697. * src/BtAllowedFastMessage.h
  14698. (ID_t): Removed.
  14699. (ID): New variable.
  14700. (getId): Made non-const.
  14701. * src/BtCancelMessage.h
  14702. (ID_t): Removed.
  14703. (ID): New variable.
  14704. (getId): Made non-const.
  14705. * src/BtNotInterestedMessage.h
  14706. (ID_t): Removed.
  14707. (ID): New variable.
  14708. (getId): Made non-const.
  14709. * src/BtChokeMessage.h
  14710. (ID_t): Removed.
  14711. (ID): New variable.
  14712. (getId): Made non-const.
  14713. * src/BtRejectMessage.h
  14714. (ID_t): Removed.
  14715. (ID): New variable.
  14716. (getId): Made non-const.
  14717. * src/BtBitfieldMessage.h
  14718. (ID_t): Removed.
  14719. (ID): New variable.
  14720. (getId): Made non-const.
  14721. * src/BtUnchokeMessage.h
  14722. (ID_t): Removed.
  14723. (ID): New variable.
  14724. (getId): Made non-const.
  14725. * src/BtRequestMessage.h
  14726. (ID_t): Removed.
  14727. (ID): New variable.
  14728. (getId): Made non-const.
  14729. * src/BtHaveMessage.h
  14730. (ID_t): Removed.
  14731. (ID): New variable.
  14732. (getId): Made non-const.
  14733. To add --force-truncate command-line option and a check whether
  14734. the file already exists:
  14735. * src/DirectDiskAdaptor.h
  14736. (getFilePath): Made virtual public.
  14737. * src/MultiDiskAdaptor.h
  14738. (File.h): New include.
  14739. (DiskWriterEntry::fileEntry): Made private.
  14740. (DiskWriterEntry::fileExists): New function.
  14741. (DiskWriterEntry::getFileEntry): New function.
  14742. (fileExists): New function.
  14743. (getFilePath): New function.
  14744. * src/TorrentRequestInfo.cc
  14745. (FatalException.h): New include.
  14746. (message.h): New include.
  14747. (RecoverableException.h): New include.
  14748. (execute): Added a check whether file is already exists or not.
  14749. * src/DiskAdaptor.h
  14750. (fileExists): New function.
  14751. (getFilePath): New function.
  14752. * src/main.cc
  14753. (showUsage): Added an explanation of --force-truncate command-line
  14754. option.
  14755. (main): Added --force-truncate command-line option.
  14756. * src/Exception.h
  14757. (setMsg): buf[256] -> buf[1024]
  14758. * src/CopyDiskWriter.h
  14759. (getFilePath): Made public virtual.
  14760. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14761. (fileExists): New function.
  14762. * src/DownloadEngineFactory.cc
  14763. (newTorrentConsoleEngine): Don't open file here.
  14764. * src/message.h
  14765. (EX_FILE_ALREADY_EXISTS): New definition.
  14766. * src/prefs.h
  14767. (PREF_FOECE_TRUNCATE): New definition.
  14768. * src/HttpResponseCommand.cc
  14769. (handleDefaultEncoding): Added a check whether the file already exists.
  14770. * src/SegmentMan.h
  14771. (fileExists): New function.
  14772. (shouldCancelDownloadForSafety): New function.
  14773. * src/FtpNegotiateCommand.cc
  14774. (recvSize): Added a check whether the file already exists.
  14775. * src/AbstractSingleDiskAdaptor.cc
  14776. (File.h): New include.
  14777. (fileExists): New function.
  14778. * src/AbstractSingleDiskAdaptor.h
  14779. (getFilePath): Removed.
  14780. (fileExists): New function.
  14781. * src/SegmentMan.cc
  14782. (fileExists): New function.
  14783. (shouldCancelDownloadForSafety): New function.
  14784. To fix regression bug in torrent downloading:
  14785. * src/DefaultBtRequestFactory.cc
  14786. (doChokedAction): New function.
  14787. * src/DefaultBtRequestFactory.h
  14788. (doChokedAction): New function.
  14789. * src/DefaultBtMessageDispatcher.cc
  14790. (doChokedAction): Do not delete request if its target is in allowed
  14791. fast set.
  14792. * src/DefaultBtInteractive.cc
  14793. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14794. (sendKeepAlive): Send keep alive message even if the outgoing message
  14795. queue is not empty.
  14796. (decideInterest): Simplified the code.
  14797. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14798. it is already called when BtChokeMessage is received from a peer.
  14799. * src/BtRequestFactory.h
  14800. (doChokedAction): New function.
  14801. To clean up code:
  14802. * src/PeerInteractionCommand.h
  14803. (executeInternal): Added virtual keyword explicitly.
  14804. (prepareForRetry): Added virtual keyword explicitly.
  14805. (prepareForNextPeer): Added virtual keyword explicitly.
  14806. (onAbort): Added virtual keyword explicitly.
  14807. * src/RequestSlot.cc
  14808. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14809. * src/BtPieceMessage.cc
  14810. (doReceivedAction): Added a debug log of piece's bitfield.
  14811. * src/Piece.h
  14812. (getBitfieldLength): New function.
  14813. * src/ByteArrayDiskWriter.cc
  14814. (clear): Added buf = 0 to avoid double free corruption.
  14815. * src/FileAllocator.cc
  14816. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14817. Added cp.reset().
  14818. * src/BitfieldMan.h
  14819. (operator=): Rewritten.
  14820. * src/BitfieldMan.cc
  14821. (BitfieldMan): Initialized bitfield, useBitfield.
  14822. * src/PeerConnection.cc
  14823. (receiveMessage): Added a call to socket->readable() after getting
  14824. message length to avoid possible EOF.
  14825. * src/Util.cc
  14826. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14827. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14828. To add an ability to pre-allocate file space:
  14829. * src/DirectDiskAdaptor.h: Rewritten.
  14830. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14831. * src/MultiDiskAdaptor.h: Rewritten.
  14832. * src/DefaultPieceStorage.cc
  14833. (MultiDiskWriter.h): Removed include.
  14834. (PreAllocationDiskWriter.h): Removed include.
  14835. (FileAllocationMonitor.h): New include.
  14836. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14837. (initStorage): Rewritten.
  14838. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14839. * src/FileAllocator.h: New class.
  14840. * src/FileAllocator.cc: New class.
  14841. * src/FileAllocationMonitor.h: New class.
  14842. * src/FileAllocationMonitor.cc: New class.
  14843. * src/ConsoleFileAllocationMonitor.h: New class.
  14844. * src/ConsoleFileAllocationMonitor.cc: New class.
  14845. * src/AbstractSingleDiskAdaptor.h: New class.
  14846. * src/AbstractSingleDiskAdaptor.cc: New class.
  14847. * src/DiskAdaptor.h
  14848. (Directory.h): Removed include.
  14849. (DiskWriter.h): Removed include.
  14850. (FileEntry.h): Removed include.
  14851. (diskWriter): Removed.
  14852. (DiskAdaptor): Removed diskWriter.
  14853. (openFile): Made pure virtual.
  14854. (closeFile): Made pure virtual.
  14855. (openExistingFile): Made pure virtual.
  14856. (initAndOpenFile): Made pure virtual.
  14857. (writeData): Made pure virtual.
  14858. (readData): Made pure virtual.
  14859. (sha1Sum): Made pure virtual.
  14860. (getStoreDir): Returns const reference of storeDir.
  14861. (DiskAdaptorHandle): New type definition.
  14862. * src/main.cc
  14863. (ConsoleFileAllocationMonitor.h): New include.
  14864. (showUsage): Added default value description of -s option.
  14865. Added the description of --file-allocation option.
  14866. (main): Set default value of --file-allocation option to 'none'.
  14867. Added --file-allocation command-line option.
  14868. Setup FileAllocationMonitorFactory.
  14869. * src/FtpInitiateConnectionCommand.cc
  14870. (executeInternal): Removed diskWriter related processing, which was
  14871. moved to FtpNegotiationCommand.cc.
  14872. * src/DirectDiskAdaptor.cc
  14873. (getFilePath): Made non-const.
  14874. * src/CopyDiskAdaptor.h
  14875. (DiskAdaptor.h): Removed include.
  14876. (DiskWriter.h): Removed include.
  14877. (AbstractSingleDiskAdaptor.h): New include.
  14878. (getFilePath): Made non-const. Added virtual keyword.
  14879. (CopyDiskAdaptor): Removed diskWriter.
  14880. (getTempFile): Returns const reference.
  14881. (CopyDiskAdaptorHandle): New type definition.
  14882. * src/ByteArrayDiskWriter.cc
  14883. (clear): Simplified.
  14884. (initAndOpenFile): Rewritten.
  14885. (openFile): Call initAndOpenFile()
  14886. * src/MultiDiskAdaptor.cc: Rewritten.
  14887. * src/DownloadEngineFactory.cc
  14888. (FileAllocator.h): New include.
  14889. (FileAllocationMonitor.h): New include.
  14890. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14891. create DefaultDiskWriter with file allocator.
  14892. * src/DiskWriter.h
  14893. (initAndOpenFile): Added totalLength argument.
  14894. (openFile): Added totalLength argument.
  14895. * src/prefs.h
  14896. (PREF_FILE_ALLOCATION): New definition.
  14897. (V_PREALLOC): New definition.
  14898. (V_NONE): New definition.
  14899. * src/HttpResponseCommand.cc
  14900. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14901. size.
  14902. * src/FtpNegotiateCommand.cc
  14903. (Util.h): New include.
  14904. (recvSize): Open file here.
  14905. * src/Util.h
  14906. (ullitos): New function.
  14907. * src/CopyDiskWriter.h
  14908. (getFilePath): Made non-const.
  14909. * src/DefaultDiskWriter.h
  14910. (Option.h): New include.
  14911. (totalLength): Removed.
  14912. (DefaultDiskWriter): Removed totalLength.
  14913. (initAndOpenFile): Added totalLength argument.
  14914. (DefaultDiskWriterHandle): New type definition.
  14915. (createNewDiskWriter): New function.
  14916. * src/Util.cc
  14917. (ullitos): New function.
  14918. * src/DefaultDiskWriter.cc
  14919. (message.h): New include.
  14920. (FileAllocator.h): New include.
  14921. (prefs.h): New include.
  14922. (Util.h): New include.
  14923. (DefaultDiskWriter): Removed totalLength.
  14924. (initAndOpenFile): Added file allocation.
  14925. (createNewDiskWriter): New function. Just for temporary solution.
  14926. It will be rewritten later.
  14927. * src/DiskAdaptor.cc
  14928. (DiskAdaptor): Removed diskWriter.
  14929. * src/AbstractDiskWriter.cc
  14930. (LogFactory.h): New include.
  14931. (AbstractDiskWriter): Added fileAllocator, logger.
  14932. (openFile): Added totalLength argument.
  14933. * src/AbstractDiskWriter.h
  14934. (FileAllocator.h): New include.
  14935. (Logger.h): New include.
  14936. (fileAllocator): New variable.
  14937. (logger): New variable.
  14938. (openFile): Added totalLength argument. Added virtual keyword
  14939. explicitly.
  14940. (openExistingFile): Added totalLength argument. Added virtual keyword
  14941. explicitly.
  14942. (closeFile): Added virtual keyword explicitly.
  14943. (sha1Sum): Added virtual keyword explicitly.
  14944. (writeData): Added virtual keyword explicitly.
  14945. (readData): Added virtual keyword explicitly.
  14946. (setFileAllocator): New function.
  14947. * src/DefaultPieceStorage.h
  14948. (FileAllocator.h): New include.
  14949. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14950. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14951. * src/FileProgressMonitor.h: New class.
  14952. To compile aria2 on PC-BSD:
  14953. * src/DefaultBtContext.cc
  14954. (libgen.h): New include.
  14955. To fix memory leak:
  14956. * src/Exception.h
  14957. (~Exception): Delete cause. Fixed memory leak.
  14958. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14959. Rewritten a portion of bittorrent implementation:
  14960. * src/BtMessageValidator.h: New class.
  14961. * src/BtBitfieldMessageValidator.h: New class.
  14962. * src/BtHandshakeMessageValidator.h: New class.
  14963. * src/BtRequestMessageValidator.h: New class.
  14964. * src/BtSuggestPieceMessageValidator.h: New class.
  14965. * src/BtAllowedFastMessageValidator.h: New class.
  14966. * src/BtRejectMessageValidator.h: New class.
  14967. * src/BtCancelMessageValidator.h: New class.
  14968. * src/BtPieceMessageValidator.h: New class.
  14969. * src/BtHaveMessageValidator.h: New class.
  14970. * src/BtEventListener.h: New class.
  14971. * src/AbstractBtEventListener.h: New class.
  14972. * src/BtEvent.h: New class.
  14973. * src/BtChokingEvent.h: New class.
  14974. * src/BtChokedEvent.h: New class.
  14975. * src/BtCancelSendingPieceEvent.h: New class.
  14976. * src/BtAbortOutstandingRequestEvent.h: New class.
  14977. * src/Randomizer.h: New class.
  14978. * src/SimpleRandomizer.h: New class.
  14979. * src/BtMessage.h: New class.
  14980. * src/AbstractBtMessage.h: New class.
  14981. * src/SimpleBtMessage.h: New class.
  14982. * src/BtHaveMessage.h: New class.
  14983. * src/BtInterestedMessage.h: New class.
  14984. * src/BtAllowedFastMessage.h: New class.
  14985. * src/BtUnchokeMessage.h: New class.
  14986. * src/BtCancelMessage.h: New class.
  14987. * src/BtNotInterestedMessage.h: New class.
  14988. * src/BtChokeMessage.h: New class.
  14989. * src/BtHaveNoneMessage.h: New class.
  14990. * src/BtHandshakeMessage.h: New class.
  14991. * src/BtSuggestPieceMessage.h: New class.
  14992. * src/BtHaveMessage.h: New class.
  14993. * src/BtPieceMessage.h: New class.
  14994. * src/BtHaveAllMessage.h: New class.
  14995. * src/BtKeepAliveMessage.h: New class.
  14996. * src/BtPortMessage.h: New class.
  14997. * src/BtRejectMessage.h: New class.
  14998. * src/BtBitfieldMessage.h: New class.
  14999. * src/BtRequestMessage.h: New class.
  15000. * src/DefaultBtRequestFactory.h: New class.
  15001. * src/DefaultBtMessageReceiver.h: New class.
  15002. * src/BtInteractive.h: New class.
  15003. * src/BtMessageDispatcher.h: New class.
  15004. * src/DefaultBtMessageDispatcher.h: New class.
  15005. * src/DefaultBtInteractive.h: New class.
  15006. * src/BitfieldManFactory.h: New class.
  15007. * src/HandleRegistry.h: New class.
  15008. * src/BtMessageFactory.h: New class.
  15009. * src/BtMessageReceiver.h: New class.
  15010. * src/DefaultBtMessageFactory.h: New class.
  15011. * src/PeerObject.h: New class.
  15012. * src/BtRequestFactory.h: New class.
  15013. * src/SuggestPieceMessage.h: Removed.
  15014. * src/PortMessage.h: Removed.
  15015. * src/SuggestPieceMessage.h: Removed.
  15016. * src/KeepAliveMessage.h: Removed.
  15017. * src/HandshakeMessage.h: Removed.
  15018. * src/PeerInteraction.h: Removed.
  15019. * src/UnchokeMessage.h: Removed.
  15020. * src/PieceMessage.h: Removed.
  15021. * src/RequestMessage.h: Removed.
  15022. * src/InterestedMessage.h: Removed.
  15023. * src/HaveMessage.h: Removed.
  15024. * src/CancelMessage.h: Removed.
  15025. * src/RejectMessage.h: Removed.
  15026. * src/AllowedFastMessage.h: Removed.
  15027. * src/HaveNoneMessage.h: Removed.
  15028. * src/SimplePeerMessage.h: Removed.
  15029. * src/HaveAllMessage.h: Removed.
  15030. * src/BitfieldMessage.h: Removed.
  15031. * src/PeerMessageFactory.h: Removed.
  15032. * src/NotInterestedMessage.h: Removed.
  15033. * src/ChokeMessage.h: Removed.
  15034. * src/PeerMessage.h: Removed.
  15035. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15036. To know root cause of exception:
  15037. * src/Exception.h
  15038. (cause): New variable.
  15039. (Exception): Added a parameter.
  15040. (getMsg): Return const reference to msg.
  15041. (getCause): New function.
  15042. * src/DlRetryEx.h
  15043. (DlRetryEx): Added a parameter 'cause'.
  15044. Added an overloaded constructor.
  15045. (DlAbortEx): Added a parameter 'cause'.
  15046. Added an overloaded constructor.
  15047. * src/SimpleLogger.cc
  15048. (writeLog): Log nested exception messages recursively.
  15049. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15050. * src/DefaultBtProgressInfoFile.cc
  15051. (load): Fixed memory leak when the infohash doesn't match.
  15052. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15053. * src/DefaultPeerStorage.cc
  15054. (calculateStat): Simplified the code by combining 2 loops into 1.
  15055. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15056. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  15057. for BitTorrent download:
  15058. * src/PeerAbstractCommand.cc
  15059. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  15060. * src/main.cc:
  15061. (timeoutSpecified): Removed.
  15062. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  15063. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  15064. * src/TorrentRequestInfo.cc
  15065. (timeoutSpecified): Removed.
  15066. (torrentHandler): Removed timeoutSpecified and the adjustment of
  15067. timeout value.
  15068. * src/prefs.h
  15069. (PREF_BT_TIMEOUT): New definition.
  15070. Delete unused variables:
  15071. * src/TorrentRequestInfo.cc
  15072. (requestInfo): Removed.
  15073. Move setSignalHander to Util::setGlobalSignalHandler:
  15074. * src/TorrentRequestInfo.cc:
  15075. setSignalHander -> Util::setGlobalSignalHandler
  15076. * src/main.cc
  15077. (setSignalHander): Removed.
  15078. (main): setSignalHander -> Util::setGlobalSignalHandler
  15079. * src/Util.h
  15080. (setGlobalSignalHandler): New function.
  15081. * src/Util.cc
  15082. (setGlobalSignalHandler): New function.
  15083. * src/UrlRequestInfo.cc:
  15084. setSignalHander -> Util::setGlobalSignalHandler
  15085. Reset peer status in order to exit gracefully:
  15086. * src/PeerAbstractCommand.cc
  15087. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  15088. To fix the bug that causes the number of bytes uploaded is not saved
  15089. to .aria2 file:
  15090. * src/DefaultPeerStorage.h
  15091. (removedPeerSessionDownloadLength): New variable.
  15092. (removedPeerSessionUploadLength): New variable.
  15093. * src/DefaultPeerStorage.cc
  15094. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  15095. removedPeerSessionUploadLength(0).
  15096. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  15097. through all peers, and then add removedPeerSessionDownloadLength(
  15098. removedPeerSessionUploadLength) to it.
  15099. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  15100. (to) the peer to removedPeerSessionDownloadLength
  15101. (removedPeerSessionUploadLength).
  15102. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15103. To add Metalink location option:
  15104. * src/MetalinkRequestInfo.cc
  15105. (execute): Call MetalinkEntry::setLocationPreference()
  15106. * src/main.cc
  15107. (showUsage): Added the help message for --metalink-location option.
  15108. (main): Added --metalink-location option.
  15109. * src/prefs.h
  15110. (PREF_METALINK_LOCATION): New definition.
  15111. * src/MetalinkEntry.cc
  15112. (AddLocationPreference): New function object.
  15113. (setLocationPreference): New function.
  15114. * src/Xml2MetalinkProcessor.cc
  15115. (getResource): Set location attribute to MetalinkResource
  15116. To show URLs to download
  15117. * src/UrlRequestInfo.h
  15118. (printUrls): New function.
  15119. To add multiple <file> Metalink support:
  15120. * src/MetalinkEntry.h
  15121. (MetalinkResources): Removed.
  15122. (setLocationPreference): New function.
  15123. (MetalinkEntryHandle): New type definition.
  15124. (MetalinkEntries): New type definition.
  15125. * src/Xml2MetalinkProcessor.h
  15126. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15127. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15128. (parseFile): Metalinker* -> MetalinkerHandle
  15129. * src/UrlRequestInfo.h
  15130. (execute): RequestInfo* -> RequestInfos
  15131. * src/MetalinkRequestInfo.cc
  15132. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  15133. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  15134. (execute): RequestInfo* -> RequestInfos
  15135. Added multiple <file> support. Print filename when it is queued.
  15136. * src/MetalinkRequestInfo.h
  15137. (execute): RequestInfo* -> RequestInfos
  15138. (getDownloadEngine): Removed.
  15139. * src/RequestInfo.h
  15140. (RequestInfoHandle): New type definition.
  15141. (RequestInfos): New type definition.
  15142. (execute): RequestInfo* -> RequestInfos
  15143. (getDownloadEngine): Removed.
  15144. * src/MetalinkResource.h
  15145. (MetalinkResourceHandle): New type definition.
  15146. (MetalinkResources): New type definition.
  15147. * src/MetalinkEntry.cc
  15148. (~MetalinkEntry): Removed the deletion of the elements of resources,
  15149. because the element is now of type MetalinkResourceHandle.
  15150. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  15151. (Supported): MetalinkResource* -> MetalinkResourceHandle
  15152. (dropUnsupportedResource): Removed the deletion of the elements of
  15153. resources because the element is now of type MetalinkResourceHandle.
  15154. * src/Xml2MetalinkProcessor.cc
  15155. (parseFile): Metalinker* -> MetalinkerHandle
  15156. MetalinkEntry* -> MetalinkEntryHandle
  15157. Removed try-catch block.
  15158. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15159. MetalinkResource* -> MetalinkResourceHandle
  15160. Removed try-catch block.
  15161. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15162. Free result by using xmlXPathFreeObject()
  15163. * src/Metalinker.cc
  15164. (~Metalinker): Removed the deletion of entries.
  15165. MetalinkEntry* -> MetalinkEntryHandle
  15166. (queryEntry): Add multiple <file> Metalink support.
  15167. * src/Metalinker.h
  15168. (MetalinkEntries): Removed.
  15169. (queryEntry): MetalinkEntry* -> MetalinkEntries
  15170. * src/MetalinkProcessor.h
  15171. (parseFile): Metalinker* -> MetalinkerHandle
  15172. Bug fixes:
  15173. * src/PeerChokeCommand.cc
  15174. (execute): cat01->cat02
  15175. * src/DefaultPieceStorage.cc
  15176. (DefaultPieceStorage): Added diskAdaptor(0)
  15177. * src/TrackerWatcherComand.cc:
  15178. (execute): Use btAnnounce->noMoreAnnounce()
  15179. to determin whether the function returns true or not.
  15180. * src/TrackerUpdateCommand.cc:
  15181. (execute): Use btAnnounce->noMoreAnnounce()
  15182. to determin whether the function returns true or not.
  15183. * src/FtpConnection.cc
  15184. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  15185. This is the fix of the busy loop bug.
  15186. * src/DownloadCommand.cc
  15187. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  15188. cached PeerStat.
  15189. The value of "name" entry in torrent file is now set by
  15190. *DiskAdaptor::setTopDir(...) methods.
  15191. * src/MultiDiskAdaptor.h
  15192. (topDir): New variable.
  15193. (setTopDir): New function.
  15194. (getTopDir): New function.
  15195. * src/MultiDiskAdaptor.cc
  15196. (getFilePath): Concat storDir, "/" and topDir.
  15197. (mkdir): Use getFilePath() to get the directory path for output.
  15198. * src/DefaultPieceStorage.cc
  15199. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  15200. CopyDiskAdaptor.
  15201. * src/CopyDiskAdaptor.h
  15202. (topDir): New variable.
  15203. (setTopDir): New function.
  15204. (getTopDir): New function.
  15205. * src/CopyDiskAdaptor.cc
  15206. (fixFilename): Updated.
  15207. Misc
  15208. * src/UrlRequestInfo.h
  15209. (e): Removed.
  15210. (UrlRequestInfo): Removed e.
  15211. (getDownloadEngine): Removed.
  15212. * src/UrlRequestInfo.cc
  15213. (handler): Rewritten.
  15214. (printUrls): New function.
  15215. (execute): Call printUrls().
  15216. * src/HandshakeMessage.cc
  15217. (check): peerinteraction->getBtContext() -> btContext
  15218. * src/PeerInteraction.h
  15219. (getBtContext): Removed.
  15220. * src/TorrentRequestInfo.h
  15221. (execute): RequestInfo* -> RequestInfos
  15222. (getDownloadEngine): Removed.
  15223. * src/TorrentRequestInfo.cc
  15224. (haltRequested): Removed.
  15225. (btHaltRequested): New variable.
  15226. (torrentHandler): haltRequested -> btHaltRequested
  15227. (execute): RequestInfo* -> RequestInfos
  15228. * src/TorrentConsoleDownloadEngine.cc
  15229. (afterEachIteration): haltRequested -> btHaltRequested.
  15230. * src/ConsoleDownloadEngine.h
  15231. (initStatistics): Added virtual.
  15232. (calculateStatistics): Added virtual.
  15233. (onEndOfRun): Added virtual.
  15234. (afterEachIteration): Added virtual.
  15235. * src/ConsoleDownloadEngine.cc
  15236. (haltRequested): New variable.
  15237. (afterEachIteration): New function.
  15238. * src/main.cc
  15239. (requestInfo): Removed.
  15240. * src/SegmentMan.cc
  15241. (findSlowerSegmentEntry): Refactored.
  15242. * Release 0.9.0
  15243. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15244. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  15245. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  15246. * src/TorrentMan.h: Removed.
  15247. * src/TorrentMan.cc: Removed.
  15248. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  15249. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  15250. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  15251. * src/PeerAbstractCommand.cc: Use btRuntime.
  15252. * src/BtContextAwareCommand.h: New class.
  15253. * src/FileEntry.h: Added accessor methods for following variables.
  15254. (path): Made private.
  15255. (length): Made private.
  15256. (offset): Made private.
  15257. (extracted): Made private.
  15258. (requested): Made private.
  15259. (FileEntries): New definition.
  15260. (FileEntryHandle): New definition.
  15261. * src/FileEntry.cc: New file.
  15262. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  15263. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  15264. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  15265. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  15266. * src/PieceStorage.h: New file.
  15267. * src/PeerInteractionCommand.h: Use btContext.
  15268. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  15269. btRuntime.
  15270. * src/DefaultBtProgressInfoFile.h: New file.
  15271. * src/DefaultBtProgressInfoFile.cc: New file.
  15272. * src/File.cc
  15273. (Util.h): New include.
  15274. (mkdirs): New function.
  15275. * src/MultiDiskAdaptor.h
  15276. (mkdir): New function.
  15277. * src/PeerListProcessor.h
  15278. (Peers): Removed.
  15279. * src/PeerInteraction.h
  15280. (torrentMan): Removed.
  15281. (btContext): New variable.
  15282. (peerStorage): New variable.
  15283. (pieceStorage): New variable.
  15284. (btAnnounce): New variable.
  15285. (getTorrentMan): Removed.
  15286. (getBtContext): New function.
  15287. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  15288. btAnnounce.
  15289. * src/HandshakeMessage.h
  15290. (TorrentMan.h): Removed.
  15291. * src/HandshakeMessage.cc: Use btContext.
  15292. * src/DefaultBtAnnounce.cc: New file.
  15293. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  15294. * src/DefaultPieceStorage.cc: New file.
  15295. * src/DefaultBtContext.h: New file.
  15296. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  15297. Use the accessor methods of FileEntry.
  15298. * src/CookieBox.cc: Updated to use Util::slice().
  15299. * src/PieceMessage.cc: Use btContext, pieceStorage.
  15300. * src/common.h (SharedHandle.h): New include.
  15301. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  15302. pieceStorage.
  15303. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  15304. * src/DiskAdaptor.h
  15305. (topDir): Removed.
  15306. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  15307. (setTopDir): Removed.
  15308. (getTopDir): Removed.
  15309. * src/BtContext.h: New file.
  15310. * src/DefaultPeerStorage.h: New file.
  15311. * src/PieceMessage.h (TorrentMan.h): Removed.
  15312. * src/RequestMessage.h (TorrentMan.h): Removed.
  15313. * src/TorrentDownloadEngine.h
  15314. (uploadLength): New variable.
  15315. (btContext): New variable.
  15316. (btRuntime): New variable.
  15317. (pieceStorage): New variable.
  15318. (peerStorage): New variable.
  15319. (btAnnounce): New variable.
  15320. (btProgressInfoFile): New variable.
  15321. (torrentMan): Removed.
  15322. (setBtContext): New function.
  15323. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  15324. peerStorage, btAnnounce, btProgressInfoFile.
  15325. * src/Piece.h
  15326. (toString): New function.
  15327. (Pieces): New type definition.
  15328. * src/Peer.h
  15329. (active): New variable.
  15330. (Peer): Added active.
  15331. (activate): Set active to true.
  15332. (deactivate): Set active to false.
  15333. (isActive): New function.
  15334. (Peers): New type definition.
  15335. * src/DirectDiskAdaptor.cc
  15336. (getFilePath): Use the accessor methods of FileEntry.
  15337. * src/TorrentConsoleDownloadEngine.h
  15338. (afterEachIteration): New function.
  15339. * src/TorrentConsoleDownloadEngine.cc
  15340. (haltRequested): New variable.
  15341. (sendStatistics): Use pieceStorage, btRuntime.
  15342. (afterEachIteration): New function.
  15343. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  15344. * src/Directry.h
  15345. (Directory): New function.
  15346. (DirectoryHandle): New type definition.
  15347. * src/BtProgressInfoFile.h: New file.
  15348. * src/RequestMessage.cc: Use pieceStorage.
  15349. * src/BtRuntime.h: New file.
  15350. * src/DefaultBtContext.cc: New file.
  15351. * src/BitfieldMan.h
  15352. (getCompletedLength): New function(private).
  15353. (getCompletedLength): New function.
  15354. (getFilteredCompletedLength): New function.
  15355. * src/BitfieldMan.h
  15356. (getCompletedLength): New function(private).
  15357. (getCompletedLength): New function.
  15358. (getFilteredCompletedLength): New function.
  15359. * src/MultiDiskAdaptor.cc
  15360. (mkdir): New function.
  15361. (openFile): Call mkdir().
  15362. (initAndOpenFile): Call mkdir().
  15363. * src/CancelMessage.h
  15364. (TorrentMan.h): Removed.
  15365. * src/RejectMessage.h
  15366. (TorrentMan.h): Removed.
  15367. * src/DownloadEngineFactory.cc
  15368. (DefaultPieceStorage.h): New include.
  15369. (DefaultPeerStorage.h): New include.
  15370. (DefaultBtAnnounce.h): New include.
  15371. (DefaultBtProgressInfoFile.h): New include.
  15372. (newTorrentConsoleEngine): Rewritten.
  15373. * src/ShareRatioSeedCriteria.h
  15374. (torrentMan): Removed.
  15375. (btContext): New variable.
  15376. (peerStorage): New variable.
  15377. (btRuntime): New variable.
  15378. (evaluate): Use btContext, btRuntime, peerStorage.
  15379. * src/AnnounceTier.h: New file.
  15380. * src/BtAnnounce.h: New file.
  15381. * src/BtRegistry.h: New file.
  15382. * src/PeerInitiateConnectionCommand.h: Added btContext.
  15383. * src/PeerConnection.h (TorrentMan.h): Removed.
  15384. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  15385. * src/Util.h
  15386. (slice): Added an argument.
  15387. * src/Util.cc
  15388. (slice): Added an argument to control whether trim is made or not.
  15389. * src/PeerStorage.h: New file.
  15390. * src/BtRegistry.cc: New file.
  15391. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  15392. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  15393. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  15394. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  15395. * src/TorrentRequestInfo.h
  15396. (e): Removed.
  15397. (showFileEntry): Added an argument.
  15398. (getDownloadEngine): Return 0.
  15399. * src/DefaultBtAnnounce.h: New file.
  15400. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15401. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15402. * src/PeerMessageFactory.h
  15403. (btContext): New variable.
  15404. (pieceStorage): New variable.
  15405. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15406. btAnnounce.
  15407. * src/DiskAdaptor.cc
  15408. (DiskAdaptor): Removed topDir.
  15409. (~DiskAdaptor): Removed topDir.
  15410. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15411. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15412. * src/File.h (mkdirs): New function.
  15413. * src/DefaultPeerStorage): New file.
  15414. * src/DownloadEngineFactory.h
  15415. (newTorrentConsoleEngine): Use btContext.
  15416. * src/BtContextAwareCommand.cc: New file.
  15417. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15418. * src/PeerMessage.h
  15419. (btContext): New variable.
  15420. (peerStorage): New variable.
  15421. (pieceStorage): New variable.
  15422. (setBtContext): New function.
  15423. * src/Directry.cc
  15424. (Directory): New function.
  15425. (createDir): Do nothing if name.size() == 0.
  15426. * src/AnnounceList.h
  15427. (AnnounceTier): Removed.
  15428. (AnnounceTiers): Removed.
  15429. * src/DefaultPieceStorage.h: New file.
  15430. * src/Piece.cc (toString): New function.
  15431. To fix typo:
  15432. * src/main.cc (showVersion): Fixed typo.
  15433. To fix compile warning:
  15434. * src/DelegatingPeerListProcessor.cc
  15435. (canHandle): Added "return false".
  15436. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15437. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15438. make the process of announce request testable.
  15439. * src/TrackerWatcherCommand.h
  15440. (TimeA2.h): Removed.
  15441. (interval): Removed.
  15442. (checkPoint): Removed.
  15443. (createRequestCommand): Added an argument 'url'.
  15444. (TrackerWatherCommand): Removed interval.
  15445. (createCommand): New function.
  15446. * src/DownloadEngineFactory.cc
  15447. (newTorrentConsoleEngine): Updated according to the changes in
  15448. TrackerWatherCommand.
  15449. * src/TorrentMan.cc
  15450. (DelegatingPeerListProcessor.h): New includes.
  15451. (TorrentMan): Added the initialization of announceInterval.
  15452. (isStoppedAnnounceReady): New function.
  15453. (isCompletedAnnounceReady): New function.
  15454. (isDefaultAnnounceReady): New function.
  15455. (isAnnounceReady): New function.
  15456. (getAnnounceUrl): New function.
  15457. (announceStart): New function.
  15458. (announceFailure): New function.
  15459. (announceSuccess): New function.
  15460. (isAllAnnounceFailed): New function.
  15461. (resetAnnounce): New function.
  15462. (processAnnounceResponse): New function.
  15463. (needMorePeerConnection): New function.
  15464. (noMoreAnnounce): New function.
  15465. * src/TrackerUpdateCommand.h
  15466. (getTrackerResponse): int->size_t
  15467. * src/TorrentMan.h
  15468. (isStoppedAnnounceReady): New function.
  15469. (isCompletedAnnounceReady): New function.
  15470. (isDefaultAnnounceReady): New function.
  15471. (announceInterval): New variable.
  15472. (isAnnounceReady): New function.
  15473. (getAnnounceUrl): New function.
  15474. (announceStart): New function.
  15475. (announceFailure): New function.
  15476. (announceSuccess): New function.
  15477. (isAllAnnounceFailed): New function.
  15478. (resetAnnounce): New function.
  15479. (processAnnounceResponse): New function.
  15480. (needMorePeerConnection): New function.
  15481. (noMoreAnnounce): New function.
  15482. * src/TrackerWatcherCommand.cc
  15483. (TrackerWatherCommand): Removed interval and checkPoint.
  15484. (execute): Rewritten.
  15485. (createCommand): New function.
  15486. (createRequestCommand): Rewritten.
  15487. * src/TrackerUpdateCommand.cc
  15488. (MetaFileUtil.h): Removed.
  15489. (DelegatingPeerListProcessor.h): Removed.
  15490. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15491. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15492. Request -> RequestHandle:
  15493. * src/HttpResponseCommand.h: Request->RequestHandle
  15494. * src/AbstractCommand.cc: Request->RequestHandle
  15495. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15496. * src/HttpRequestCommand.cc: Request->RequestHandle
  15497. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15498. * src/AbstractCommand.h: Request->RequestHandle
  15499. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15500. * src/HttpResponseCommand.cc: Request->RequestHandle
  15501. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15502. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15503. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15504. * src/HttpConnection.h: Request->RequestHandle
  15505. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15506. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15507. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15508. * src/DownloadCommand.h: Request->RequestHandle
  15509. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15510. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15511. * src/HttpRequestCommand.h: Request->RequestHandle
  15512. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15513. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15514. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15515. * src/HttpDownloadCommand.h: Request->RequestHandle
  15516. * src/FtpConnection.cc: Request->RequestHandle
  15517. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15518. * src/UrlRequestInfo.cc: Request->RequestHandle
  15519. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15520. * src/HttpConnection.h: Request->RequestHandle
  15521. * src/DownloadCommand.cc: Request->RequestHandle
  15522. * src/FtpConnection.h: Request->RequestHandle
  15523. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15524. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15525. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15526. * src/Request.h
  15527. (SharedHandle.h): New include.
  15528. (RequestHandle): New type definition.
  15529. (Requests): Redefined.
  15530. To add MULTITRACKER support:
  15531. * src/TrackerWatcherCommand.h
  15532. (createRequestCommand): New function.
  15533. * src/DownloadEngineFactory.cc
  15534. (newTorrentConsoleEngine): Removed req.
  15535. * src/prefs.h
  15536. (PREF_TRACKER_MAX_TRIES): New definition.
  15537. * src/TorrentMan.cc
  15538. (TorrentMan): Removed req. Added trackerNumTry.
  15539. (~TorrentMan): Removed req.
  15540. (setupInternal1): Added announceList.
  15541. * src/TorrentRequestInfo.cc
  15542. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15543. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15544. * src/main.cc
  15545. (main): Added PREF_TRACKER_MAX_TRIES.
  15546. * src/TorrentMan.h
  15547. (Request.h): Removed.
  15548. (AnnounceList.h): New include.
  15549. (trackerNumTry): New variable.
  15550. (req): Removed.
  15551. (announceList): New variable.
  15552. * src/TrackerWatcherCommand.cc
  15553. (execute): Rewritten.
  15554. (createRequestCommand): New function.
  15555. * src/TrackerUpdateCommand.cc
  15556. (execute): Updated with the use of AnnounceList.
  15557. * src/AnnounceList.cc: New class.
  15558. * src/AnnounceList.h: New class.
  15559. To fix typo:
  15560. * src/prefs.h
  15561. (PREF_MAX_TRIES): max_try->max_tries
  15562. To not to decode "+" as space in URL decode:
  15563. * src/Util.cc
  15564. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15565. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15566. To add timeout to async name resolution:
  15567. * src/AbstractCommand.h
  15568. (nameResolveFinished): New function. This is not elegant way. It needs
  15569. to be more refined.
  15570. (nameResolverCheck): New variable.
  15571. * src/AbstractCommand.cc
  15572. (AbstractCommand): Added nameResolverCheck.
  15573. (execute): Added the check whether the name resolution has finished.
  15574. (setNameResolverCheck): Set nameResolverCheck to true.
  15575. (disableNameResolverCheck): Set nameResolverCheck to false.
  15576. (nameResolverFinished): New function.
  15577. * src/FtpInitiateConnectionCommand.h
  15578. (nameResolverFinished): New function.
  15579. * src/FtpInitiateConnectionCommand.cc
  15580. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15581. * src/HttpInitiateConnectionCommand.h
  15582. (nameResolverFinished): New function.
  15583. * src/HttpInitiateConnectionCommand.cc
  15584. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15585. * src/prefs.h
  15586. (PREF_DNS_TIMEOUT): New definition.
  15587. * src/main.cc
  15588. (main): Added PREF_DNS_TIMEOUT.
  15589. To add the support for a non-compact response from a tracker:
  15590. * src/PeerListProcessor.h: New class.
  15591. * src/DefaultPeerListProcessor.h: New class.
  15592. * src/DefaultPeerListProcessor.cc: New class.
  15593. * src/CompactPeerListProcessor.h: New class.
  15594. * src/CompactPeerListProcessor.cc: New class.
  15595. * src/DelegatingPeerListProcessor.h: New class.
  15596. * src/DelegatingPeerListProcessor.cc: New class.
  15597. * src/TorrentMan.cc
  15598. (addPeer): New function(overload).
  15599. (addPeer): Delete unused peers only when new peer is added.
  15600. * src/TorrentMan.h
  15601. (PeerListProcessor.h): Included.
  15602. (Peers): Removed.
  15603. (addPeer): New function(overload).
  15604. * src/TrackerUpdateCommand.cc
  15605. (netinet/in.h): Removed.
  15606. (DelegatingPeerListProcessor.h): Included.
  15607. (execute): Updated to use DelegatingPeerListProcessor.
  15608. To fix the memory leak in TorrentMan::peers:
  15609. * src/PeerAbstractCommand.cc
  15610. (onAbort): Added peer->resetStatus().
  15611. * src/Peer.h
  15612. (resetStatus): Made public.
  15613. To improve the precision of the speed calculation:
  15614. * src/SpeedCalc.h
  15615. (nextInterval): New variable.
  15616. * src/SpeedCalc.cc
  15617. (reset): Added nextInterval.
  15618. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15619. (changeSw): Set nextInterval to 15 seconds relative to the current
  15620. instant time.
  15621. * src/main.cc
  15622. (showVersion): Updated.
  15623. (showUsage): Updated.
  15624. * Release 0.8.1
  15625. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15626. * src/main.cc
  15627. (showUsage): Commented out --min-segment-size option.
  15628. (main): Commented out --min-segment-size option.
  15629. * Release 0.8.0
  15630. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15631. * src/*.{h,cc}:
  15632. Added an exception to the license which allows linking with OpenSSL.
  15633. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15634. * src/AbstractCommand.cc
  15635. (execute): Check whether the download has finished before checking
  15636. socket status.
  15637. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15638. Do not exit even if no segment is available.
  15639. * src/prefs.h
  15640. (PREF_STARTUP_IDLE_TIME): New definition.
  15641. * src/PeerInteractionCommand.cc
  15642. (executeInternal): Removed max speed limit. Because it performs bad.
  15643. (receiveMessages): Added max speed limit. This was better than above,
  15644. but still a little bit to be desired. Sometimes the download speed
  15645. became much faster than I specified.
  15646. * src/SpeedCalc.h
  15647. (start): New variable.
  15648. (accumulatedLength): New variable.
  15649. (getAvgSpeed): New function.
  15650. * src/SpeedCalc.cc
  15651. (reset): Added start, accumulatedLength.
  15652. (update): Added calculation of an average speed.
  15653. (getAvgSpeed): New function.
  15654. * src/DownloadCommand.h
  15655. (sw): Removed.
  15656. * src/main.cc
  15657. (main): Added PREF_STARTUP_IDLE_TIME.
  15658. * src/PeerStat.h
  15659. (STATUS): Added REQUEST_IDLE.
  15660. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15661. (getAvgDownloadSpeed): New function
  15662. (requestIdle): New function.
  15663. * src/SegmentMan.h
  15664. (SegmentEntryHandle): New type definition.
  15665. (SegmentEntries): Now holds SegmentEntryHandle.
  15666. (findSlowerSegmentEntry): New funtion.
  15667. * src/SegmentMan.cc
  15668. (save): Updated according to the changes in SegmentEntries.
  15669. (read): Updated according to the changes in SegmentEntries.
  15670. (FindSegmentEntryByIndex): Updated according to the changes in
  15671. SegmentEntries.
  15672. (FindSegmentEntryByCuid): Updated according to the changes in
  15673. SegmentEntries.
  15674. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15675. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15676. Renamed uitr as itr.
  15677. (findSlowerSegmentEntry): New function.
  15678. (getSegment): Updated according to the changes in SegmentEntries.
  15679. Added the feature that cancels the segment with slow server and fast
  15680. one takes it over.
  15681. (cancelSegment): Updated according to the changes in SegmentEntries.
  15682. (getDownloadLength): Updated according to the changes in
  15683. SegmentEntries.
  15684. (init): Assigned 0 to bitfield after deleting it.
  15685. * src/DownloadCommand.cc
  15686. (STARTUP_IDLE_TIME): Removed.
  15687. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15688. * src/PeerChokeCommand.cc
  15689. (optUnchokingPeer): Updated according to the changes in Peer.
  15690. (ResetDelta): Removed.
  15691. (UploadFaster): Updated according to the changes in Peer.
  15692. (DownloadFaster): Updated according to the changes in Peer.
  15693. (execute): I clarify the meaning of "upload" and "download" here.
  15694. "upload" means the transfer from localhost to remote host.
  15695. "download" means the transfer from remote host to localhost.
  15696. Based on this rule, I swapped orderByUploadRate and
  15697. orderByDownloadRate.
  15698. * src/PeerInteractionCommand.cc
  15699. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15700. (executeInternal): Removed the argument of
  15701. peerInteraction->sendMessages().
  15702. (receiveMessages): Rewritten download speed limit.
  15703. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15704. * src/HttpResponseCommand.cc
  15705. (handleDefaultEncoding): If file size is unknown in torrent request,
  15706. do not call segmentMan->initBitfield() here.
  15707. Disabled persistent connection feature in torrent request.
  15708. * src/UrlRequestInfo.h
  15709. (UrlRequestInfo): Removed const qualifier from option.
  15710. * src/TorrentMan.h
  15711. (TransferStat): New class.
  15712. (deltaDownloadLength): Removed.
  15713. (deltaUploadLength): Removed.
  15714. (addDeltaDownloadLength): Removed.
  15715. (getDeltaDownloadLength): Removed.
  15716. (resetDeltaDownloadLength): Removed.
  15717. (addDeltaUploadLength): Removed.
  15718. (getDeltaUploadLength): Removed.
  15719. (resetDeltaUploadLength): Removed.
  15720. (addActivePeer): Added peer->activate().
  15721. (deleteActivePeer): Added peer->deactivate().
  15722. (calculateStat): New function.
  15723. * src/TorrentMan.cc
  15724. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15725. (calculateStat): New function.
  15726. * src/PeerInteraction.h
  15727. (uploadLimit): Removed.
  15728. (option): New variable.
  15729. (setUploadLimit): Removed.
  15730. (getUploadSpeed): Removed.
  15731. (sendMessages): Removed the argument "currentUploadSpeed".
  15732. * src/PeerInteraction.cc
  15733. (prefs.h): Included.
  15734. (PeerInteraction): Removed uploadLimit. Added option.
  15735. (sendMessages): Rewritten upload speed limit.
  15736. (sendHandshake): Removed the argument from sendMessages().
  15737. (sendBitfield): Removed the argument from sendMessages().
  15738. * src/PeerAbstractCommand.cc
  15739. (execute): Commented out the portion of upload limit.
  15740. (onAbort): Removed peer->resetStatus().
  15741. * src/TorrentRequestInfo.cc
  15742. (timeoutSpecified): Declared extern.
  15743. (execute): Set timeout to 180 if timeout is not specified by.
  15744. command-line.
  15745. * src/PieceMessage.cc
  15746. (receivedAction): Added peer->updateDownloadLength().
  15747. Removed peer->addPeerUpload().
  15748. Removed torrentMan->addDeltaDownloadLength().
  15749. (send): Added peer->updateUploadLength().
  15750. Removed peer->addPeerDownload().
  15751. Removed torrentMan->addDeltaUploadLength().
  15752. * src/main.cc
  15753. (timeoutSpecified): New variable.
  15754. (main): Set timeoutSpecified to false.
  15755. If the command-line option "--upload-limit" is specified, then
  15756. timeoutSpecified is set to true. This option will remain in the next
  15757. release, but be deprecated in the future release.
  15758. * src/TorrentRequestInfo.h
  15759. (TorrentRequestInfo): Removed const qualifier from op.
  15760. * src/PeerStat.h
  15761. (uploadSpeed): New variable.
  15762. (PeerStat): Added default value to cuid.
  15763. (calculateUploadSpeed): New function.
  15764. (updateUploadLength): New function.
  15765. (getMaxUploadSpeed): New function.
  15766. (getAvgUploadSpeed): New function.
  15767. (reset): Added uploadSpeed. Set status to IDLE.
  15768. * src/TorrentDownloadEngine.h
  15769. (cp): Declared as Time.
  15770. (sessionDownloadLengthArray): Removed.
  15771. (sessionUploadLengthArray): Removed.
  15772. (currentCp): Removed.
  15773. (lastCalcStat): New variable
  15774. (lastElapsed): Removed.
  15775. (sessionDownloadLength): Removed.
  15776. (calculateStat): New function.
  15777. * src/TorrentDownloadEngine.cc
  15778. (initStatistics): Removed lastElapsed, cp[],
  15779. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15780. currentCp, sessionDownloadLength.
  15781. Added cp.reset() and lastCalcStat.reset().
  15782. (calculateSpeed): Changed the name of the argument.
  15783. (calculateStatistics): Rewritten.
  15784. (calculateStat): New function.
  15785. * src/Peer.h
  15786. (PeerStat.h): Included.
  15787. (peerUpload): Removed.
  15788. (peerDownload): Removed.
  15789. (peerStat): New variable.
  15790. (sessionUploadLength): New variable.
  15791. (sessionDownloadLength): New variable.
  15792. (deltaUpload): Removed.
  15793. (deltaDownload): Removed.
  15794. (resetStatus): Made private.
  15795. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15796. Removed peerUpload, peerDownload.
  15797. (updateUploadLength): New function.
  15798. (addDeltaUpload): Removed.
  15799. (updateDownloadLength): New function.
  15800. (resetDeltaUpload): Removed.
  15801. (getDeltaUpload): Removed.
  15802. (addDeltaDownload): Removed.
  15803. (calculateUploadSpeed): New function.
  15804. (resetDeltaDownload): Removed.
  15805. (getDeltaDownload): Removed.
  15806. (calculateDownloadSpeed): New function.
  15807. (getSessionUploadLength): New function.
  15808. (getSessionDownloadLength): New function.
  15809. (activate): New function.
  15810. (deactivate): New function.
  15811. (addPeerUpload): Removed.
  15812. (setPeerUpload): Removed.
  15813. (getPeerUpload): Removed.
  15814. (addPeerDownload): Removed.
  15815. (setPeerDownload): Removed.
  15816. (getPeerDownload): Removed.
  15817. * src/Peer.cc
  15818. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15819. * src/MetalinkRequestInfo.h
  15820. (MetalinkRequestInfo): Removed const qualifier from op.
  15821. * src/RequestInfo.h
  15822. (op): Removed const qualifier.
  15823. (RequestInfo): Removed const qualifier from op.
  15824. * src/prefs.h
  15825. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15826. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15827. * src/PeerInteractionCommand.cc
  15828. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15829. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15830. * src/PeerInteraction.cc
  15831. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15832. * src/main.cc
  15833. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15834. Added the description of "--max-download-limit" option.
  15835. Removed the description of "--upload-limit" option.
  15836. Added the description of "--max-upload-limit" option.
  15837. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15838. Added "--max-download-limit" option and "--max-upload-limit" option.
  15839. Added the warning message if "--upload-limit" option is used.
  15840. * src/DownloadCommand.cc
  15841. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15842. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15843. To rewrite segment download mechanism for HTTP/FTP download.
  15844. Use BitfieldMan to manage segment download.
  15845. * src/HttpResponseCommand.h
  15846. (executeInternal): Pass the reference of segment.
  15847. * src/AbstractCommand.cc
  15848. (prepareForRetry): Call segmentMan->cancelSegment here.
  15849. (onAbort): Call segmentMan->cancelSegment here.
  15850. * src/HttpDownloadCommand.cc
  15851. (prepareForNextSegment): New function.
  15852. * src/DownloadEngineFactory.cc
  15853. (newConsoleEngine): Removed splitter.
  15854. (newTorrentConsoleEngine): Removed splitter.
  15855. * src/Request.h
  15856. (segment): Renamed from seg.
  15857. * src/FtpInitiateConnectionCommand.h
  15858. (executeInternal): Pass the reference of segment.
  15859. * src/AbstractCommand.h
  15860. (executeInternal): Pass the reference of segment.
  15861. * src/pref.h
  15862. (PREF_SEGMENT_SIZE): New definition.
  15863. * src/HttpProxyRequestCommand.h
  15864. (executeInternal): Pass the reference of segment.
  15865. * src/HttpResponseCommand.cc
  15866. (checkResponse): Allowed status 206 when a request range starts 0.
  15867. (handleDefaultEncoding): Rewritten the code related to Segment.
  15868. (handleOtherEncoding): Rewritten the code related to Segment.
  15869. * src/SegmentMan.h
  15870. (SegmentEntry): New class.
  15871. (SegmentEntries): New type definition.
  15872. (bitfield): New variable.
  15873. (usedSegmentEntries): New variable.
  15874. (onNullBitfield): New function.
  15875. (checkoutSegment): New function.
  15876. (segments): Removed.
  15877. (splitter): Removed.
  15878. (unregisterId): Removed.
  15879. (getSegment): New function(overload)
  15880. (getDownloadedSize): Removed.
  15881. (cancelSegment): New function.
  15882. (completeSegment): New function.
  15883. (initBitfield): New function.
  15884. (hasSegment): New function.
  15885. (getDownloadLength): New function.
  15886. * src/BitfieldMan.h
  15887. (getStartIndex): New function.
  15888. (getEndIndex): New function.
  15889. (getMissingUnusedIndex): New function(overload).
  15890. (getSparseMissingUnusedIndex): New function.
  15891. * src/BitfieldMan.cc
  15892. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15893. (getMissingUnusedIndex): New function(overload).
  15894. (Range): New class.
  15895. (getStartIndex): New function.
  15896. (getEndIndex): New function.
  15897. (getSparseMissingUnusedIndex): New function.
  15898. (isBitSetInternal): Return false if the given index is less than 0.
  15899. * src/HttpInitiateConnectionCommand.h
  15900. (executeInternal): Pass the reference of segment.
  15901. * src/FtpNegotiateCommand.h
  15902. (executeInternal): Pass the reference of segment.
  15903. * src/FtpNegotiateCommand.cc
  15904. (recvSize): Initialize bitfield here.
  15905. * src/FtpTunnelResponseCommand.h
  15906. (executeInternal): Pass the reference of segment.
  15907. * src/HttpConnection.cc
  15908. (createRequest): Rewritten range header processing.
  15909. * src/DownloadCommand.h
  15910. (executeInternal): Pass the reference of segment.
  15911. (prepareForRetry): Removed.
  15912. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15913. function.
  15914. * src/main.cc
  15915. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15916. * src/SegmentMan.cc
  15917. (SegmentMan): Added bitfield. Removed splitter.
  15918. (~SegmentMan): Added bitfield. Removed splitter.
  15919. (unregisterId): Removed.
  15920. (getSegment): Rewritten.
  15921. (updateSegment): Rewritten.
  15922. (save): Rewritten.
  15923. (read): Rewritten.
  15924. (finished): Rewritten.
  15925. (getDownloadedSize): Removed.
  15926. (initBitfield): New function.
  15927. (FindSegmentEntryByIndex): New function object.
  15928. (FindSegmentEntryByCuid): New function object.
  15929. (checkoutSegment): New function.
  15930. (onNullBitfield): New function.
  15931. (getSegment): New function(overload).
  15932. (CancelSegment): New function object.
  15933. (cancelSegment): New function.
  15934. (completeSegment): New function.
  15935. (hasSegment): New function.
  15936. (getDownloadLength): New function.
  15937. * src/FtpInitiateConnectionCommand.cc
  15938. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15939. * src/Segment.h: Rewritten.
  15940. * src/Segment.cc (operator<<): New function.
  15941. * src/HttpDownloadCommand.h
  15942. (prepareForNextSegment): New function.
  15943. * src/Request.cc
  15944. (resetUrl): Made segment null.
  15945. * src/DownloadEngine.cc
  15946. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15947. * src/HttpProxyRequestCommand.h
  15948. (executeInternal): Pass the reference of segment.
  15949. * src/DownloadCommand.cc
  15950. (executeInternal): Rewritten the code related to Segment.
  15951. (prepareForRetry): Removed.
  15952. (prepareForNextSegment): Rewritten.
  15953. * src/FtpTunnelResponseCommand.h
  15954. (executeInternal): Pass the reference of segment.
  15955. To add HTTP 1.1 persistent connection support(experimental)
  15956. * src/HttpRequestCommand.cc
  15957. (executeInternal): Disable keep alive if it is disabled by
  15958. configuration.
  15959. * src/Request.h
  15960. (keepAlive): New variable.
  15961. (isKeepAlive): New function.
  15962. (setKeepAlive): New function.
  15963. * src/pref.h
  15964. (PREF_HTTP_KEEP_ALIVE): New definition.
  15965. * src/HttpResponseCommand.cc
  15966. (executeInternal): Check the remote server supports keep alive.
  15967. * src/HttpConnection.cc
  15968. (createRequest): Send "Connection: close" only if keep alive is
  15969. disabled.
  15970. * src/main.cc
  15971. (main):
  15972. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15973. To add max download speed limit:
  15974. * src/pref.h
  15975. (PREF_MAX_SPEED_LIMIT): New definition.
  15976. * src/PeerInteractionCommand.cc
  15977. (executeInternal): Added max download speed limit. Not tested yet.
  15978. * src/SegmentMan.h
  15979. (PeerStats): New type definition.
  15980. (peerStats): New variable.
  15981. (registerPeerStat): New function.
  15982. (FindPeerStat): New function object.
  15983. (getPeerStat): New function.
  15984. (calculateDownloadSpeed): New function.
  15985. * src/SpeedCalc.h: New class.
  15986. * src/SpeedCalc.cc: New class.
  15987. * src/main.cc
  15988. (main):
  15989. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15990. download speed is not restricted).
  15991. * src/PeerStat.h: New class.
  15992. * src/SegmentMan.cc
  15993. (registerPeerStat): New function.
  15994. (calculateDownloadSpeed): New function.
  15995. * src/DownloadCommand.cc
  15996. (STARTUP_IDLE_TIME): New definition.
  15997. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15998. downloadStart.
  15999. (~DownloadCommand): Call peerStat->downloadStop.
  16000. (executeInternal): Added download speed limitter. Rewritten lowest
  16001. speed limitter.
  16002. * src/HttpConnection.cc
  16003. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  16004. * src/AbstractCommand.cc
  16005. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  16006. Added hostname to the error message.
  16007. * src/ConsoleDownloadEngine.cc
  16008. (calculateStatistics): Initialize psize with dlSize.
  16009. * src/PieceMessage.cc
  16010. (receivedAction): Do not call peerInteraction->abortPiece here.
  16011. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  16012. * src/BitfieldMan.h
  16013. (clearAllUseBit): New function.
  16014. (setAllUseBit): New function.
  16015. * src/BitfieldMan.cc
  16016. (clearAllBit): Do not clear useBitfield here.
  16017. (clearAllUseBit): New function.
  16018. (setAllUseBit): New function.
  16019. * src/Piece.cc
  16020. (clearAllBlock): Call bitfield->clearAllUseBit().
  16021. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16022. To make filename URL-decoded:
  16023. * src/HttpResponseCommand.h: Updated doc.
  16024. * src/HttpResponseCommand.cc
  16025. (determinFilename): Made filename URL-decoded.
  16026. * src/FtpInitiateConnectionCommand.cc
  16027. (executeInternal): Made filename URL-decoded.
  16028. * src/Util.h (urldecode): New function.
  16029. * src/Util.cc (urldecode): New function.
  16030. To fix a bug that caused assertion failure in ares_strerror:
  16031. * src/NameResolver.cc (callback): Fixed the bug.
  16032. * Release 0.7.3
  16033. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16034. To add --seed-time and --seed-ratio command-line option:
  16035. * src/Option.h (getAsDouble): New function.
  16036. * src/Option.cc (getAsDouble): New function.
  16037. * src/SeedCheckCommand.h: New class.
  16038. * src/SeedCheckCommand.cc: New class.
  16039. * src/DownloadEngineFactory.cc
  16040. (SeedCheckCommand.h): Included.
  16041. (UnionSeedCriteria.h): Included.
  16042. (TimeSeedCriteria.h): Included.
  16043. (ShareRatioSeedCriteria.h): Included.
  16044. (newTorrentConsoleEngine): Added the processing of seed option.
  16045. * src/SeedCriteria.h: New class.
  16046. * src/ShareRatioSeedCriteria.h: New class.
  16047. * src/TimeSeedCriteria.h: New class.
  16048. * src/UnionSeedCriteria.h: New class.
  16049. * src/prefs.h
  16050. (PREF_SEED_TIME): New definition.
  16051. (PREF_SEED_RATIO): New definition.
  16052. * src/main.cc
  16053. (showUsage): Added --seed-time and --seed-ratio option.
  16054. (main): Added --seed-time and --seed-ratio option.
  16055. Made default log file name "/dev/null".
  16056. * src/SharedHandle.h
  16057. (SharedHandle): Copy constructor. Made it assignable from the
  16058. SharedHandle of the subclasses.
  16059. (operator=): Made it assignable from the SharedHandle of the
  16060. subclasses.
  16061. (getRefCount): New function.
  16062. To add notice log level and the switch to write log to stdout. This
  16063. switch is configurable per log level.
  16064. * src/Logger.h
  16065. (notice): New function.
  16066. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  16067. constant.
  16068. * src/LogFactory.cc
  16069. (getInstance): The use of NullLogger was removed. A log message with
  16070. notice log level was made written to stdout along with log file.
  16071. * src/NullLogger.h
  16072. (notice): New function.
  16073. * src/SimpleLogger.h
  16074. (writeHeader): Added the 'file' argument.
  16075. (writeLog): Added the 'file' argument.
  16076. (writeFile): New function.
  16077. (stdoutField): New variable.
  16078. (SimpleLogger): Removed the default constructor.
  16079. (SimpleLogger): Made the default value of logfile 0.
  16080. (debug): Added 'virtual' keyword.
  16081. (info): Added 'virtual' keyword.
  16082. (warn): Added 'virtual' keyword.
  16083. (error): Added 'virtual' keyword.
  16084. (notice): New function.
  16085. (setStdout): New function.
  16086. * src/SimpleLogger.cc
  16087. (WRITE_LOG): Replaced writeLog with writeFile.
  16088. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  16089. (SimpleLogger): Removed the default constructor.
  16090. (setStdout): New function.
  16091. (writeLog): Added the handling of NOTICE log level.
  16092. (writeFile): New function.
  16093. (notice): New function.
  16094. * src/TorrentMan.h: Updated doc.
  16095. * src/BitfieldMan.h: Updated doc.
  16096. * src/TrackerWatcherCommand.cc
  16097. (execute): Return true if error occurred in the request to the tracker
  16098. and halt is requested.
  16099. * src/TrackerUpdateCommand.cc
  16100. (execute): Return true if error occurred in the request to the tracker
  16101. and halt is requested.
  16102. To call onDownloadComplete from TorrentMan::completePiece(), not from
  16103. DownloadEngine:
  16104. * src/TorrentConsoleDownloadEngine.h
  16105. (onSelectiveDownloadingCompletes): Removed.
  16106. * src/TorrentConsoleDownloadEngine.cc
  16107. (onSelectiveDownloadingCompletes): Removed.
  16108. * src/TorrentDownloadEngine.h
  16109. (onEndOfRun): Added 'virtual' keyword.
  16110. (afterEachIteration): Removed.
  16111. (onSelectiveDownloadingCompletes): Removed.
  16112. * src/TorrentDownloadEngine.cc
  16113. (onEndOfRun): Removed filenameFixed.
  16114. (afterEachIteration): Removed.
  16115. * src/TorrentMan.cc
  16116. (completePiece): Call onDownloadComplete here.
  16117. (onDownloadComplete): Added 2 log messages.
  16118. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16119. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  16120. * src/NameResolver.h: Added the prototype declaration of callback().
  16121. To support c-ares library:
  16122. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16123. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16124. * src/FtpInitiateConnectionCommand.h:
  16125. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16126. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16127. * src/HttpInitiateConnectionCommand.h:
  16128. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16129. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  16130. Added thes upport of c-ares's ares_strerror(the idea came from patch
  16131. #1542285 by tizianomueller)
  16132. * src/HttpInitiateConnectionCommand.cc:
  16133. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16134. * src/FtpInitiateConnectionCommand.cc:
  16135. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16136. * src/DownloadEngine.h:
  16137. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16138. * src/DownloadEngine.cc:
  16139. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16140. To fix the bug that causes compilation failure with metalink-support
  16141. disabled(bug#1543587):
  16142. * src/main.cc: Fixed with the patch by tizianomueller.
  16143. * Release 0.7.2
  16144. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16145. * src/main.cc
  16146. (main): Added a message to inform users that aria2 is starting to
  16147. verify checksum.
  16148. * src/RequestInfo.cc
  16149. (printDownloadAbortMessage): Added a message to inform users that
  16150. transfer can be resumed.
  16151. * src/FeatureConfig.cc
  16152. (FEATURE_ASYNC_DNS): New definition.
  16153. (FeatureConfig): Added aysnc DNS entry.
  16154. To replace CommandUuid with Command* in SocketEntry and
  16155. NameResolverEntry:
  16156. * src/DownloadEngine.h
  16157. (CommandUuids): Removed.
  16158. (SocketEntry::commandUuid): Removed.
  16159. (SocketEntry::command): New variable.
  16160. (SocketEntry::SocketEntry): Updated.
  16161. (SocketEntry::operator==): Updated.
  16162. (NameResolverEntry::commandUuid): Removed.
  16163. (NameResolverEntry::command): New variable.
  16164. (NameResolverEntry::NameResolverEntry): Updated.
  16165. (NameResolverEntry::operator==): Updated.
  16166. (waitData): Changed the argument type.
  16167. (addSocketForReadCheck): Changed the argument type.
  16168. (deleteSocketForReadCheck): Changed the argument type.
  16169. (addSocketForWriteCheck): Changed the argument type.
  16170. (deleteSocketForWriteCheck): Changed the argument type.
  16171. (addNameResolverCheck): Changed the argument type.
  16172. (deleteNameResolverCheck): Changed the argument type.
  16173. * src/DownloadEngine.cc
  16174. (FindCommand): Removed.
  16175. (run): Removed activeUuid. Added activeCommands instead.
  16176. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  16177. (AccumulateActiveCommand): New function object.
  16178. (waitData): Use AccumulateActiveCommand.
  16179. (addSocketForReadCheck): Use Command instead of CommandUuid.
  16180. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  16181. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  16182. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  16183. (addNameResolverCheck): Use Command instead of CommandUuid.
  16184. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  16185. * src/AbstractCommand.cc
  16186. (disableReadCheckSocket): Updated according to the changes in
  16187. DownloadEngine.
  16188. (setReadCheckSocket): Updated according to the changes in
  16189. DownloadEngine.
  16190. (disableWriteCheckSocket): Updated according to the changes in
  16191. DownloadEngine.
  16192. (setWriteCheckSocket): Updated according to the changes in
  16193. DownloadEngine.
  16194. (setNameResolverCheck): Updated according to the changes in
  16195. DownloadEngine.
  16196. (disableNameResolverCheck): Updated according to the changes in
  16197. DownloadEngine.
  16198. * src/AbstractCommand.cc
  16199. (disableReadCheckSocket): Updated according to the changes in
  16200. DownloadEngine.
  16201. (setReadCheckSocket): Updated according to the changes in
  16202. DownloadEngine.
  16203. (disableWriteCheckSocket): Updated according to the changes in
  16204. DownloadEngine.
  16205. (setWriteCheckSocket): Updated according to the changes in
  16206. DownloadEngine.
  16207. * release 0.7.1
  16208. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16209. To handle the case where some BitTorrent tracker requires all letters
  16210. except for [A-Za-z0-9] is URL encoded.
  16211. * src/Util.h
  16212. (torrentUrlencode): New function.
  16213. * src/Util.cc
  16214. (ctype.h): Included.
  16215. (torrentUrlencode): New function.
  16216. * src/TrackerWatcherCommand.cc
  16217. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  16218. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16219. To add asynchronous DNS support(libares):
  16220. * src/AbstractCommand.h
  16221. (setNameResolverCheck): New function.
  16222. (disableNameResolverCheck): New function
  16223. (resolveHostname): New function.
  16224. * src/AbstractCommand.cc
  16225. (setNameResolverCheck): New function.
  16226. (disableNameResolverCheck): New function
  16227. (resolveHostname): New function.
  16228. * src/FtpInitiateConnectionCommand.h
  16229. (nameResolver): New function.
  16230. * src/FtpInitiateConnectionCommand.cc
  16231. (Util.h): Included.
  16232. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  16233. disableWriteCheckSocket.
  16234. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  16235. (executeInternal): Added async DNS support.
  16236. * src/HttpInitiateConnectionCommand.h
  16237. (nameResolver): New function.
  16238. * src/HttpInitiateConnectionCommand.cc
  16239. (DlRetryEx.h): Included.
  16240. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  16241. disableWriteCheckSocket.
  16242. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  16243. (executeInternal): Added async DNS support.
  16244. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  16245. by extern "C" declaration.
  16246. * src/NameResolver.cc: New class.
  16247. * src/Util.h:
  16248. (isNumberAndDotsNotation): New function
  16249. * src/Util.cc
  16250. (isNumberAndDotsNotation): New function.
  16251. * src/DownloadEngine.h
  16252. (NameResolver.h): Included.
  16253. (NameResolverEntry): New class.
  16254. (NameResolverEntries): New type definition.
  16255. (addNameResolverCheck): New function.
  16256. (deleteNameResolverCheck): New function.
  16257. * src/DownloadEngine.cc
  16258. (run): Initialize cp with 0.
  16259. (SetDescriptor::operator()): Added for NameResolverEntry.
  16260. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  16261. (waitData): Check nameResolver entries.
  16262. (updateFdSet): Update fds in nameResolver entries.
  16263. (addNameResolverCheck): New function.
  16264. (deleteNameResolverCheck): new function.
  16265. * src/PeerInteractionCommand.cc
  16266. (executeInternal): Fixed wrong socket handling.
  16267. * src/main.cc
  16268. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  16269. * src/Util.cc
  16270. (fileChecksum): Removed the call to ctx.digestReset().
  16271. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16272. * po/ru.po: Azamat sent me Russian translation.
  16273. * src/FtpNegotiateCommand.cc
  16274. (recvGreeting): Call disableWriteCheckSocket just after
  16275. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  16276. (recvRetr): Recognized status code 125 as a acceptable response code.
  16277. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  16278. case-insesitive filesystem(BUG#1531057).
  16279. * src/Time.h: Renamed as TimeA2.h.
  16280. * src/Time.cc: Renamed as TimeA2.cc.
  16281. * src/TimeA2.h: New class.
  16282. * src/TimeA2.cc: New class.
  16283. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  16284. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  16285. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  16286. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  16287. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  16288. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16289. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  16290. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  16291. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  16292. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16293. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  16294. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  16295. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  16296. * release 0.7.0
  16297. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16298. * src/PeerChokeCommand.h
  16299. (PeerChokeCommand): Rearranged the arguments.
  16300. * src/PeerChokeCommand.cc
  16301. (PeerChokeCommand): Rearranged the arguments.
  16302. * src/MetalinkEntry.h
  16303. (Checksum.h): Included.
  16304. (md5): Removed.
  16305. (sha1): Removed.
  16306. (checksum): New variable.
  16307. (operator=): Updated.
  16308. (check): Removed.
  16309. * src/prefs.h
  16310. (PREF_LOWEST_SPEED_LIMIT): New definition.
  16311. (PREF_FOLLOW_TORRENT): New definition.
  16312. (PREF_SELECT_FILE): New definition.
  16313. (PREF_FOLLOW_METALINK): New definition.
  16314. * src/MetalinkResource.h
  16315. (TYPE_HTTPS): Added to enum TYPE.
  16316. * src/TorrentMan.cc
  16317. (~TorrentMan): Rewritten.
  16318. * src/MultiDiskWriter.cc
  16319. (MultiDiskAdaptor): Updated according to the changes in
  16320. MessageDigestContext.
  16321. (~MultiDiskAdaptor): Updated according to the changes in
  16322. MessageDigestContext.
  16323. (hashUpdate): Updated according to the changes in MessageDigestContext.
  16324. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16325. * src/Util.h
  16326. (fileChecksum): Updated according to the changes in
  16327. MessageDigestContext.
  16328. * src/Util.cc
  16329. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16330. (fileChecksum): Updated according to the changes in
  16331. MessageDigestContext.
  16332. * src/messageDigest.h: Rewritten.
  16333. * src/MetalinkEntry.cc
  16334. (check): Removed.
  16335. (Supported): Updated.
  16336. (dropUnsupportedResource): Fixed a memory leak.
  16337. * src/ShaVisitor.cc
  16338. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  16339. (~ShaVisitor): Updated according to the changes in
  16340. MessageDigestContext.
  16341. (visit): Updated according to the changes in MessageDigestContext.
  16342. * src/main.cc
  16343. (main): Rewritten the portion of download loop. --lowest-speed-limit
  16344. command-line option added.
  16345. * src/DownloadEngine.h
  16346. (SocketEntry): New class.
  16347. (SocketEntries): New definition.
  16348. (PairFind): Removed.
  16349. (SockCmdMap): Removed.
  16350. * src/DownloadEngine.cc
  16351. (DownloadEngine): Rewritten.
  16352. (~DownloadEngine): Rewritten.
  16353. (run): Renamed activeCommandUuids as activeUuids.
  16354. (SetDescriptor): Rewritten.
  16355. (AccumulateActiveCommandUuid): Removed.
  16356. (AccumulateActiveUuid): New function object.
  16357. (waitData): Rewritten.
  16358. (updateFdSet): Rewritten.
  16359. (addSocket): Rewritten.
  16360. (deleteSocket): Rewritten.
  16361. (addSocketForReadCheck): Rewritten.
  16362. (deleteSocketForReadCheck): Rewritten.
  16363. (addSocketForWriteCheck): Rewritten.
  16364. (deleteSocketForWriteCheck): Rewritten.
  16365. * src/Xml2MetalinkProcessor.cc
  16366. (getEntry): Rewritten the portion of MetalinkEntry creation.
  16367. * src/DownloadCommand.cc
  16368. (executeInternal): Added the check routine for lowest speed limit.
  16369. * src/AbstractDiskWriter.cc
  16370. (AbstractDiskWriter): Updated according to the changes in
  16371. MessageDigestContext.
  16372. (~AbstractDiskWriter): Updated according to the changes in
  16373. MessageDigestContext.
  16374. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16375. * src/RequestInfo.h: New class.
  16376. * src/UrlRequestInfo.h: New class.
  16377. * src/UrlRequestInfo.cc: New class.
  16378. * src/TorrentRequestInfo.h: New class.
  16379. * src/TorrentRequestInfo.cc: New class.
  16380. * src/MetalinkRequestInfo.h: New class.
  16381. * src/MetalinkRequestInfo.cc: New class.
  16382. * src/Checksum.h: New class.
  16383. * src/DownloadEngineFactory.h: New class.
  16384. * src/DownloadEngineFactory.cc: New class.
  16385. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16386. * src/Option.h
  16387. (getAsBool): New function.
  16388. * src/Option.cc
  16389. (prefs.h): Included.
  16390. (defined): 0-length value is now recognized as undefined.
  16391. (getAsInt): Rewritten.
  16392. (getAsLLInt): Rewritten.
  16393. (getAsBool): New function.
  16394. * src/FeatureConfig.h: Rewritten.
  16395. * src/FeatureConfig.cc: Rewritten.
  16396. * src/prefs.h
  16397. (PREF_STDOUT_LOG): New definition.
  16398. (PREF_LOG): New definition.
  16399. (PREF_DIR): New definition.
  16400. (PREF_OUT): New definition.
  16401. (PREF_SPLIT): New definition.
  16402. (PREF_DAEMON): New definition.
  16403. (PREF_REFERER): New definition.
  16404. (PREF_TORRENT_FILE): New definition.
  16405. (PREF_LISTEN_PORT): New definition.
  16406. (PREF_METALINK_FILE): New definition.
  16407. (PREF_METALINK_VERSION): New definition.
  16408. (PREF_METALINK_LANGUAGE): New definition.
  16409. (PREF_METALINK_OS): New definition.
  16410. (PREF_METALINK_SERVERS): New definition.
  16411. * src/main.cc
  16412. (main): Following command-line parameters are now put into Option
  16413. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16414. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16415. metalinkLanguage, metalinkOs, metalinkServers
  16416. To fix the bug that aria2 can not handle http response header properly.
  16417. * src/HttpHeader.cc
  16418. (put): Made name lowercased.
  16419. (defined): Made name lowercased.
  16420. (getFirst): Made name lowercased.
  16421. (get): Made name lowercased.
  16422. (getFirstAsInt): Rewritten.
  16423. (getFirstAsLLInt): Rewritten.
  16424. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16425. * src/TorrentMan.h:
  16426. (advertisePiece): Updated doc.
  16427. (getAdvertisedPieceIndexes): Updated doc.
  16428. (removeAdvertisedPiece); New function.
  16429. * src/TorrentMan.cc
  16430. (FindElapsedHave): New function object.
  16431. (removeAdvertisedPiece): New function.
  16432. * src/HaveEraseCommand.h: New class.
  16433. * src/HaveEraseCommand.cc: New class.
  16434. * src/FeatureConfig.h: New class.
  16435. * src/FeatureConfig.cc: New class.
  16436. * src/Request.h
  16437. (defaultPorts): Removed.
  16438. * src/Request.cc
  16439. (FeatureConfig.h): Included.
  16440. (Request): Removed the statements related to defaultPorts.
  16441. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16442. A default port number is now retrieved from FeatureConfig.
  16443. * src/main.cc
  16444. (HaveEraseCommand.h): Included.
  16445. (showVersion): Added the output of feature list.
  16446. (main): Added HaveEraseCommand to command queue in BitTorrent
  16447. downloading.
  16448. * src/PeerInteractionCommand.h
  16449. (chokeCheckPoint): Commented out.
  16450. (periodicExecPoint): New variable.
  16451. * src/PeerInteractionCommand.cc
  16452. (executeInternal): Following methods are now called in at least every
  16453. 0.5 seconds to reduce CPU usage:
  16454. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16455. checkHave(), sendKeepAlive().
  16456. (checkLongTimePeerChoking): Commented out.
  16457. * src/BitfieldMan.h
  16458. (getNthBitIndex): Changed the method signature.
  16459. (getMissingIndexRandomly): Changed the method signature.
  16460. * src/BitfieldMan.cc
  16461. (getNthBitIndex): Rewritten
  16462. (getMissingIndexRandomly): Rewritten.
  16463. (hasMissingPiece): Rewritten.
  16464. (getMissingIndex): Refactored.
  16465. (getMissingUnusedIndex); Refactored.
  16466. (getMissingIndex): Refactored.
  16467. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16468. * src/PeerMessage.h
  16469. (Piece.h): Included.
  16470. (SharedHandle.h): Included.
  16471. (invalidate): New variable.
  16472. (uploading): New variable.
  16473. (isInvalidate): New function.
  16474. (isUploading): New function.
  16475. (onPush): New function.
  16476. (onChoked): New function.
  16477. (onCanceled): New function.
  16478. (onAbortPiece): New function.
  16479. (PeerMessageHandle): New type definition.
  16480. * src/PeerMessage.cc
  16481. (PeerMessage): Added the initialization for invalidate and uploading.
  16482. * src/CancelMessage.h
  16483. (CancelMessage): Rewritten.
  16484. * src/RejectMessage.h
  16485. (RejectMessage): Rewritten.
  16486. * src/Metalinker.h
  16487. (operator=): Defined.
  16488. * src/MetaEntry.h
  16489. (operator=): Defined.
  16490. * src/MetalinkResource.h
  16491. (operator=): Defined.
  16492. * src/AllowedFastMessage.h
  16493. (AllowedFastMessage): Rewritten.
  16494. * src/HandshakeMessage.h
  16495. (HandshakeMessage): New function(overload).
  16496. * src/HandshakeMessage.cc
  16497. (HandshakeMessage): Rewritten.
  16498. (init): New function.
  16499. * src/HaveMessage.h
  16500. (HaveMessage): Rewritten.
  16501. * src/Time.h
  16502. (operator=): Defined the function body here.
  16503. * src/Time.cc
  16504. (operator=): Removed.
  16505. * src/SocketCore.h
  16506. (operator==): Defined here.
  16507. (operator!=): Defined here.
  16508. (operator<): Defined here.
  16509. * src/SocketCore.cc
  16510. (operator==): Removed.
  16511. (operator<): Removed.
  16512. * src/BitfieldMan.h
  16513. (operator=): Defined the function body here.
  16514. * src/BitfieldMan.cc
  16515. (operator=): Removed.
  16516. * src/TorrentMan.h
  16517. (deleteErrorPeer): Removed.
  16518. (deleteUnusedPeer); New function.
  16519. * src/TorrentMan.cc
  16520. (addPeer): Call deleteUnusedPeer.
  16521. (deleteErrorPeer): Removed.
  16522. (deleteUnusedPeer): New function.
  16523. * src/PeerAbstractCommand.h
  16524. (setNoCheck): New function.
  16525. (noCheck): New variable.
  16526. * src/PeerAbstractCommand.cc
  16527. (PeerAbstractCommand): Added the initialization of noCheck.
  16528. (execute): Added a check for noCheck.
  16529. (setNoCheck): New function.
  16530. * src/Util.h
  16531. (stdio.h): Included.
  16532. * src/Util.cc
  16533. (unistd.h): Included.
  16534. * src/DefaultDiskWriter.cc
  16535. (unistd.h): Included.
  16536. * src/Peer.h
  16537. (operator==): Defined the function body here.
  16538. (operator!=): Defined the function body here.
  16539. * src/Peer.cc
  16540. (operator==): Removed.
  16541. (operator!=): Removed.
  16542. * src/Piece.h
  16543. (Piece): Defined the function body here(copy constructor).
  16544. (operator=): Defined the function body here.
  16545. (operator==): Defined the function body here.
  16546. * src/Piece.cc
  16547. (Piece): Removed(copy constructor).
  16548. (operator=): Removed.
  16549. (operator==): Removed.
  16550. * src/PeerMessageUtil.h
  16551. (ChokeMessage.h): Removed.
  16552. (UnchokeMessage.h): Removed.
  16553. (InterestedMessage.h): Removed.
  16554. (NotInterestedMessage.h): Removed.
  16555. (HaveMessage.h): Removed.
  16556. (BitfieldMessage.h): Removed.
  16557. (RequestMessage.h): Removed.
  16558. (CancelMessage.h): Removed.
  16559. (PieceMessage.h): Removed.
  16560. (HandshakeMessage.h): Removed.
  16561. (KeepAliveMessage.h): Removed.
  16562. (PortMessage.h): Removed.
  16563. (HaveAllMessage.h): Removed.
  16564. (HaveNoneMessage.h): Removed.
  16565. (PeerConnection.h): Removed.
  16566. (HandshakeMessage.h): Included.
  16567. * src/BitfieldMessage.h
  16568. (init): New function.
  16569. (BitfieldMessage): Rewritten.
  16570. (BitfieldMessage): New function(overload).
  16571. * src/RequestSlot.h
  16572. (operator=): Defined the function body here.
  16573. (operator==): Defined the function body here.
  16574. * src/RequestSlot.cc
  16575. (operator=): Removed.
  16576. (operator==): Removed.
  16577. To remove the dependency on the PeerMessage subclass from
  16578. PeerInteraction:
  16579. * src/PeerMessageFactory.h: New class.
  16580. * src/PeerMessageFactory.cc: New class.
  16581. * src/SimplePeerMessage.cc
  16582. (send): If invalidate is true then do nothing.
  16583. * src/PeerInteractionCommand.cc
  16584. (HandshakeMessage.h): Included.
  16585. (KeepAliveMessage.h): Included.
  16586. (ChokeMessage.h): Included.
  16587. (UnchokeMessage.h): Included.
  16588. (HaveMessage.h): Included.
  16589. (executeInternal): Call setNoCheck().
  16590. Removed setWriteCheckSocket(socket).
  16591. * src/PeerInteraction.h
  16592. (ChokeMessage.h): Removed.
  16593. (UnchokeMessage.h): Removed.
  16594. (InterestedMessage.h): Removed.
  16595. (NotInterestedMessage.h): Removed.
  16596. (HaveMessage.h): Removed.
  16597. (BitfieldMessage.h): Removed.
  16598. (RequestMessage.h): Removed.
  16599. (CancelMessage.h): Removed.
  16600. (PieceMessage.h): Removed.
  16601. (HandshakeMessage.h): Removed.
  16602. (KeepAliveMessage.h): Removed.
  16603. (PortMessage.h): Removed.
  16604. (HaveAllMessage.h): Removed.
  16605. (HaveNoneMessage.h): Removed.
  16606. (RejectMessage.h): Removed.
  16607. (AllowedFastMessage.h): Removed.
  16608. (SuggestPieceMessage.h): Removed.
  16609. (PeerMessageFactory.h): Included.
  16610. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16611. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16612. (PeerMessageFactory): New variable.
  16613. (createPeerMessage): Removed.
  16614. (createHandshakeMessage): Removed.
  16615. (setPeerMessageCommonProperty): Removed.
  16616. (addRequestSlot): New function.
  16617. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16618. (getPeerMessageFactory): New function.
  16619. (createRequestMessage): Removed.
  16620. (createCancelMessage): Removed.
  16621. (createPieceMessage): Removed.
  16622. (createHaveMessage): Removed.
  16623. (createChokeMessage): Removed.
  16624. (createUnchokeMessage): Removed.
  16625. (createInterestedMessage): Removed.
  16626. (createNotInterestedMessage): Removed.
  16627. (createBitfieldMessage): Removed.
  16628. (createKeepAliveMessage): Removed.
  16629. (createHaveAllMessage): Removed.
  16630. (createHaveNoneMessage): Removed.
  16631. (createRejectMessage): Removed.
  16632. (createAllowedFastMessage): Removed.
  16633. * src/PeerInteraction.cc
  16634. (PeerInteraction): Allocate PeerMessageFactory here.
  16635. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16636. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16637. PieceMessage::ID.
  16638. (addMessage): Simplified by using PeerMessage::onPush().
  16639. (addRequestSlot): New function.
  16640. (rejectAllPieceMessageInQueue): Simplified by using
  16641. PeerMessage::onChoked().
  16642. (rejectPieceMessageInQueue): Simplified by using
  16643. PeerMessage::onCanceled().
  16644. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16645. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16646. (createHandshakeMessage): Removed.
  16647. (createPeerMessage): Removed.
  16648. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16649. (setPeerMessageCommonProperty): Removed.
  16650. (createRequestMessage): Removed.
  16651. (createCancelMessage): Removed.
  16652. (createPieceMessage): Removed.
  16653. (createHaveMessage): Removed.
  16654. (createChokeMessage): Removed.
  16655. (createUnchokeMessage): Removed.
  16656. (createInterestedMessage): Removed.
  16657. (createNotInterestedMessage): Removed.
  16658. (createBitfieldMessage): Removed.
  16659. (createKeepAliveMessage): Removed.
  16660. (createHaveAllMessage): Removed.
  16661. (createHaveNoneMessage): Removed.
  16662. (createRejectMessage): Removed.
  16663. (createAllowedFastMessage): Removed.
  16664. * src/PieceMessage.h
  16665. (createRejectMessage): New function.
  16666. (PieceMessage): Rewritten.
  16667. (onChoked): New function.
  16668. (onCanceled): New function.
  16669. * src/PieceMessage.cc
  16670. (send): If invalidate is true then do nothing, just return.
  16671. (createRejectMessage): New function.
  16672. (onChoked): New function.
  16673. (onCanceled): New function.
  16674. * src/RequestMessage.h
  16675. (RequestMessage): Rewritten.
  16676. (onPush): New function.
  16677. (onAbortPiece): New function.
  16678. * src/RequestMessage.cc
  16679. (onPush): New function.
  16680. (onAbortPiece): New function.
  16681. Update fd_set when a socket is added or deleted in order to improve
  16682. performance:
  16683. * src/DownloadEngine.h
  16684. (rfdset): New variable.
  16685. (wfdset): New variable.
  16686. (updateFdSet): New function.
  16687. * src/DownloadEngine.cc
  16688. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16689. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16690. (waitData): Copy rfdset and wfdset.
  16691. (updateFdSet): New function.
  16692. (addSocket): Call updateFdSet.
  16693. (deleteSocket): Call updateFdSet.
  16694. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16695. To add the support for Metalink3.0 backward compatible links:
  16696. * src/Request.h
  16697. (SAFE_CHARS): Added '#'.
  16698. (METALINK_MARK): New definition.
  16699. * src/Request.cc
  16700. (parseUrl): Added the support for Metalink3.0 backward compatible
  16701. links.
  16702. etc
  16703. * src/PeerInteraction.cc
  16704. (MsgPushBack): Removed.
  16705. (sendMessages): Use STL copy and back_inserter.
  16706. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16707. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16708. * src/TorrentMan.h
  16709. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16710. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16711. * src/SharedHandle.h: New class.
  16712. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16713. * src/HttpResponseCommand.h
  16714. (HttpResponseCommand): Wrapped Socket.
  16715. * src/SocketCore.h
  16716. (operator==): New function.
  16717. (operator!=): New function.
  16718. (operator<): New function.
  16719. (getSockfd): New function.
  16720. (isOpen): New function.
  16721. (writeData): New function.
  16722. * src/SocketCore.cc
  16723. (operator==): New function.
  16724. (operator!=): New function.
  16725. (operator<): New function.
  16726. * src/AbstractCommand.h
  16727. (socket): Changed its type to SocketHandle.
  16728. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16729. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16730. (disableReadCheckSocket): New function.
  16731. (disableWriteCheckSocket): New function.
  16732. (readCheckTarget): Changed its type to SocketHandle.
  16733. (writeCheckTarget): Changed its type to SocketHandle.
  16734. (AbstractCommand): Replaced Socket with SocketHandle.
  16735. * src/AbstractCommand.cc
  16736. (AbstractCommand): Replaced Socket with SocketHandle.
  16737. (~AbstractCommand): Removed the deallocation for Socket object.
  16738. (disableReadCheckSocket): New function.
  16739. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16740. (disableWriteCheckSocket): New function.
  16741. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16742. * src/HttpDownloadCommand.cc
  16743. (DownloadCommand): Replaced Socket with SocketHandle.
  16744. * src/PeerAbstractCommand.h
  16745. (socket): Changed its type to SocketHandle.
  16746. (peer): Changed its type to PeerHandle.
  16747. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16748. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16749. (disableReadCheckSocket): New function.
  16750. (disableWriteCheckSocket): New function.
  16751. (readCheckTarget): Changed its type to SocketHandle.
  16752. (writeCheckTarget): Changed its type to SocketHandle.
  16753. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16754. Replaced Peer with PeerHandle.
  16755. * src/HttpRequestCommand.cc
  16756. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16757. Use disableReadCheckSocket.
  16758. * src/PeerInitiateConnectionCommand.h
  16759. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16760. * src/PeerChokeCommand.cc
  16761. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16762. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16763. (execute): Use PeerHandle.
  16764. * src/PeerConnection.h
  16765. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16766. (socket): Changed its type to SocketHandle.
  16767. (PeerConnection): Replaced Socket with SocketHandle.
  16768. * src/PeerConnection.cc
  16769. (PeerConnection): Replaced Socket with SocketHandle.
  16770. * src/PeerInteractionCommand.h
  16771. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16772. Replaced Peer with PeerHandle.
  16773. * src/PeerInteractionCommand.cc
  16774. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16775. Replaced Peer with PeerHandle.
  16776. (executeInternal): Use disableWriteCheckSocket.
  16777. Use HandshakeMessageHandle.
  16778. (receiveMessages): Use PeerMessageHandle.
  16779. (prepareForNextPeer): Use PeerHandle.
  16780. * src/HttpProxyRequestCommand.h
  16781. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16782. * src/HttpResponseCommand.cc
  16783. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16784. * src/TorrentMan.cc
  16785. (nullPeer): Added external reference.
  16786. (~TorrentMan): Removed the deallocation of the elements of peers.
  16787. (addPeer): Rewritten.
  16788. (isPeerAvailable): Use nullPeer.
  16789. (deleteOldpeers): Replaced with deleteErrorPeer.
  16790. (deleteErrorPeer): New function.
  16791. (getPeer): Use PeerHandle and nullPeer.
  16792. (hasMissingPiece): Replaced Peer with PeerHandle.
  16793. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16794. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16795. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16796. (getMissingPiece): Replaced Peer with PeerHandle.
  16797. * src/FtpNegotiateCommand.cc
  16798. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16799. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16800. (recvGreeting): Use disableWriteCheckSocket.
  16801. (recvPasv): Removed the allocation of Socket.
  16802. Use disableReadCheckSocket.
  16803. (sendRestPasv): Use disableWriteCheckSocket.
  16804. (recvRetr): Changed assertion.
  16805. * src/PeerInteraction.h
  16806. (SharedHandle.h): Included SharedHandle.h.
  16807. (PeerMessageHandle): New type definition.
  16808. (HandshakeMessageHandle): New type definition.
  16809. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16810. (peer): Changed its type to PeerHandle.
  16811. (createHandshakeMessage): Replaced HandshakeMessage with
  16812. HandshakeMessageHandle.
  16813. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16814. (PeerInteraction): Replaced Peer with PeerHandle.
  16815. Replaced Socket with SocketHandle.
  16816. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16817. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16818. (receiveHandshake): Replaced HandshakeMessage with
  16819. HandshakeMessageHandle.
  16820. * src/PeerInteraction.cc
  16821. (PeerInteraction): Replaced Peer with PeerHandle.
  16822. Replaced Socket with SocketHandle.
  16823. (~PeerInteraction): Removed the deallocation of the elements of
  16824. messageQueue.
  16825. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16826. (isSendingMessageInProgress): Replaced PeerMessage with
  16827. PeerMessageHandle.
  16828. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16829. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16830. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16831. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16832. (abortPiece): Use PeerMessageHandle.
  16833. (receiveHandshake): Replaced HandshakeMessage with
  16834. HandshakeMessageHandle. Removed try-catch block.
  16835. (createHandshakeMessage): Replaced HandshakeMessage with
  16836. HandshakeMessageHandle.
  16837. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16838. Removed try-catch block.
  16839. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16840. * src/HttpProxyResponseCommand.cc
  16841. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16842. * src/FtpTunnelResponseCommand.h
  16843. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16844. * src/HttpConnection.cc
  16845. (HttpConnection): Replaced Socket with SocketHandle.
  16846. * src/PeerAbstractCommand.cc
  16847. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16848. (~PeerAbstractCommand): Removed the deallocation of socket.
  16849. Use disableReadCheckSocket, disableWriteCheckSocket.
  16850. (disableReadCheckSocket): New function.
  16851. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16852. (disableWriteCheckSocket): New function.
  16853. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16854. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16855. * src/FtpTunnelRequestCommand.cc
  16856. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16857. (~FtpTunnelRequestCommand): Corrected indentation.
  16858. * src/DownloadCommand.h
  16859. (DownloadCommand): Replaced Socket with SocketHandle.
  16860. * src/PeerListenCommand.cc
  16861. (PeerListenCommand): Removed the initialization of socket.
  16862. (~PeerListenCommand): Removed the deallocation of socket.
  16863. (bindPort): Use SocketHandle.
  16864. (execute): Use SocketHandle and PeerHandle.
  16865. * src/FtpDowndloadCommand.cc
  16866. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16867. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16868. * src/main.cc
  16869. (main): Corrected indentation.
  16870. * src/HttpInitiateConnectionCommand.cc
  16871. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16872. (executeInternal): Removed the allocation of socket.
  16873. * src/HttpRequestCommand.h
  16874. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16875. * src/FtpNegotiationCommand.h
  16876. (dataSocket): Changed its type to SocketHandle.
  16877. (serverSocket): Changed its type to SocketHandle.
  16878. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16879. * src/TorrentMan.h
  16880. (MAX_PEER_UPDATE): Removed.
  16881. (MAX_PEERS): New definition.
  16882. (Peers): The element is now of type PeerHandle.
  16883. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16884. (getPeer): Replaced Peer with PeerHandle.
  16885. (deleteOldErrorPeers): Removed.
  16886. (deleteErrorPeer): New function.
  16887. (hasMissingPiece): Replaced Peer with PeerHandle.
  16888. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16889. (getMissingPiece): Replaced Peer with PeerHandle.
  16890. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16891. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16892. (addActivePeer): Replaced Peer with PeerHandle.
  16893. (deleteActivePeer): Replaced Peer with PeerHandle.
  16894. Added a check for the return value of find.
  16895. * src/FtpTunnelResponseCommand.cc
  16896. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16897. * src/FtpInitiateConnectionCommand.cc
  16898. (executeInternal): Removed the allocation of socket.
  16899. * src/DownloadEngine.h
  16900. (Sockets): An element is now of type SocketHandle.
  16901. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16902. (CommandUuids): New type definition.
  16903. (rsockets): Changed its type to SockCmdMap.
  16904. (wsockets): Changed its type to SockCmdMap.
  16905. (addSocket): Rewritten.
  16906. (deleteSocket): Rewritten.
  16907. (addSocketForReadCheck): Rewritten.
  16908. (deleteSocketForReadCheck): Rewritten.
  16909. (addSocketForWriteCheck): Rewritten.
  16910. (deleteSocketForWriteCheck): Rewritten.
  16911. (PairFind): New template class.
  16912. * src/HttpDownloadCommand.h
  16913. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16914. * src/FtpConnection.cc
  16915. (FtpConnection): Replaced Socket with SocketHandle.
  16916. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16917. block.
  16918. * src/InitiateConnectionCommandFactory.cc
  16919. (DlAbortEx.h): Included DlAbortEx.h.
  16920. (createInitiateConnectionCommand): Throw exception if the protocol of
  16921. requested URI is not supported.
  16922. * src/Peer.cc
  16923. (nullPeer): Changed its type to PeerHandle.
  16924. (operator==): New function.
  16925. (operator!=): New function.
  16926. * src/Peer.h
  16927. (SharedHandle.h): Included SharedHandle.h.
  16928. (operator==): New function.
  16929. (operator!=): New function.
  16930. (Peer): Added the default constructor.
  16931. Use resetStatus() to initialize member variables.
  16932. (nullPeer): Removed.
  16933. * src/TrackerUpdateCommand.cc
  16934. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16935. with MIN_PEERS.
  16936. * src/PeerListenCommand.h
  16937. (socket): Changed its type to SocketHandle.
  16938. * src/Command.h
  16939. (CommandUuid): New type definition.
  16940. (uuid): New variable.
  16941. (uuidGen): New variable.
  16942. (Command): Added the initialization of uuid.
  16943. (getUuid): New function.
  16944. * src/Socket.h
  16945. (Socket): Removed.
  16946. (SocketHandle): New type definition.
  16947. * src/DownloadEngine.h
  16948. (FindCommand): New function object.
  16949. (run): The portion of socket check was rewritten.
  16950. (SetDescriptor): New function object.
  16951. (AccumulateActiveCommandUuid): New function object.
  16952. (waitData): Rewritten.
  16953. (addSocket): Rewritten.
  16954. (deleteSocket): Rewritten.
  16955. (addSocketForReadCheck): Rewritten.
  16956. (addSocketForWriteCheck): Rewritten.
  16957. (deleteSocketForReadCheck): Rewritten.
  16958. (deleteSocketForWriteCheck): Rewritten.
  16959. * src/HttpProxyResponseCommand.h
  16960. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16961. * src/HttpConnection.h
  16962. (socket): Changed its type to SocketHandle.
  16963. (HttpConnection): Replaced Socket with SocketHandle.
  16964. * src/PeerInitiateConnectionCommand.cc
  16965. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16966. (executeInternal): Removed the allocation of socket.
  16967. (prepareForNextPeer): Use PeerHandle.
  16968. * src/PeerMessage.h
  16969. (peer): Changed its type to PeerHandle.
  16970. (getPeer): Replaced Peer with PeerHandle.
  16971. (setPeer): Replaced Peer with PeerHandle.
  16972. * src/DownloadCommand.cc
  16973. (DownloadCommand): Replaced Socket with SocketHandle.
  16974. * src/FtpConnection.h
  16975. (socket): Changed its type to SocketHandle.
  16976. (FtpConnection): Replaced Socket with SocketHandle.
  16977. (sendPort); Replaced Socket with SocketHandle.
  16978. * src/FtpDowndloadCommand.h
  16979. (ctrlSocket): Changed its type to SocketHandle.
  16980. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16981. * src/HttpProxyRequestCommand.cc
  16982. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16983. * src/FtpTunnelRequestCommand.h
  16984. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16985. etc
  16986. * src/PeerChokeCommand.h
  16987. (setAllPeerChoked): Removed.
  16988. (setAllPeerResetDelta): Removed.
  16989. * src/PeerChokeCommand.cc
  16990. (setAllPeerChoked): Removed.
  16991. (ChokePeer): New function object.
  16992. (setAllPeerResetDelta): Removed.
  16993. (ResetDelta): New function object.
  16994. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16995. (execute): Show download speed when the local node is a seeder.
  16996. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16997. using STL.
  16998. * src/TrackerWatcherCommand.h
  16999. (MIN_PEERS): Removed.
  17000. * src/TorrentMan.cc
  17001. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  17002. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17003. To fix the bug that .aria2 file is not saved if downloading is stopped
  17004. by the errors:it results that aria2 can not resume downloading:
  17005. * src/main.cc
  17006. (normalDownload): Added the call to save().
  17007. (main): Added the deletion of the elements in 'reserved'.
  17008. To fix log:
  17009. * src/PeerInteraction.cc
  17010. (receiveHandshake): Fixed log.
  17011. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17012. To improve download performance in BitTorrent:
  17013. * src/TorrentMan.cc
  17014. (getPeer): Check the number of connections. Return nullPeer if
  17015. it is greater than MAX_PEER_UPDATE.
  17016. This code was originally here, but was removed in 0.5.1.
  17017. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17018. To improve the conditional compilation:
  17019. * src/MultiDiskWriter.h:
  17020. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17021. * src/MultiDiskWriter.cc:
  17022. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17023. * src/Util.h:
  17024. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17025. Added ENABLE_BITTORRENT around computeFastSet().
  17026. * src/Util.cc:
  17027. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17028. Added ENABLE_BITTORRENT around computeFastSet().
  17029. * src/messageDigest.h:
  17030. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  17031. * src/ShaVisitor.h:
  17032. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17033. * src/ShaVisitor.cc:
  17034. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17035. * src/main.cc:
  17036. Added ENABLE_BITTORRENT around includes and blocks related to
  17037. BitTorrent.
  17038. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  17039. digest support is not available.
  17040. * src/AbstractDiskWriter.h:
  17041. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17042. * src/AbstractDiskWriter.cc:
  17043. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17044. * src/MetalinkEntry.cc
  17045. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  17046. support is not available.
  17047. To add command-line options for Metalink:
  17048. * src/main.cc:
  17049. Added metalink-version, metalink-language, metalink-os,
  17050. follow-metalink.
  17051. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  17052. * src/main.cc: Use these definition.
  17053. * Release 0.6.0
  17054. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17055. To add Metalink support(http/ftp only):
  17056. * src/AbstractCommand.h
  17057. (tryReserved): New function.
  17058. * src/AbstractCommand.cc
  17059. (execute): Call tryReserved().
  17060. (tryReserved): New function.
  17061. * src/Request.h
  17062. (Requests): New type definition.
  17063. * src/SegmentMan.h
  17064. (reserved): New variable.
  17065. * src/Util.h
  17066. (fileChecksum): New function.
  17067. (toUpper): New function.
  17068. (toLower): New function.
  17069. * src/Util.cc
  17070. (messageDigest.h): Included.
  17071. (trim): Trim \r\n\t.
  17072. (fileChecksum): New function.
  17073. (toUpper): New function.
  17074. (toLower): New function.
  17075. * src/main.cc
  17076. (normalDownload): New function.
  17077. (main): Added 2 command-line options: metalink-file,
  17078. metalink-connection. Their usage has not been written yet.
  17079. * src/MetalinkProcessor.h: New class.
  17080. * src/Xml2MetalinkProcessor.h: New class.
  17081. * src/Xml2MetalinkProcessor.cc: New class.
  17082. * src/MetalinkEntry.h: New class.
  17083. * src/MetalinkEntry.cc: New class.
  17084. * src/MetalinkResource.h: New class.
  17085. * src/MetalinkResource.cc: New class.
  17086. To add md5 message digest checking:
  17087. * src/messageDigest.h: Rewritten.
  17088. * src/MultiDiskWriter.cc: Updated according to the changes in
  17089. messageDigest.h.
  17090. * src/ShaVisitor.cc: Updated according to the changes in
  17091. messageDigest.h.
  17092. * src/Util.cc: Updated according to the changes in messageDigest.h.
  17093. * src/AbstractDiskWriter.cc: Updated according to the changes in
  17094. messageDigest.h.
  17095. To fix a bug that causes segfault when the payload length in peer
  17096. message is less than 0:
  17097. * src/PeerConnection.cc:
  17098. (receiveMessage): Fixed the bug.
  17099. * src/PeerMessageUtil.cc
  17100. (checkLength): Throw an exception if length is less than or equals to
  17101. 0.
  17102. To add new interfaces to Base64 encoding/decoding:
  17103. * src/Base64.h
  17104. (part_encode): Changed the method signature.
  17105. (encode): New function(overload).
  17106. (decode): New function(overload).
  17107. * src/Base64.cc
  17108. (part_encode): Rewritten.
  17109. (encode): Rewritten.
  17110. (encode): New function(overload).
  17111. To prevent a peer to download same piece if there is an error in
  17112. checksum:
  17113. * src/PieceMessage.cc
  17114. (receivedAction): Call peerInteraction->abortPiece().
  17115. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17116. To fix the bug that causes same have message is sent many times to
  17117. a single peer.
  17118. * src/Time.cc
  17119. (isNewer): Use Util::difftv().
  17120. * src/Util.cc
  17121. (difftv): Added a cast to (long long int).
  17122. * src/TorrentMan.cc
  17123. (advertisePiece): Use push_front.
  17124. (getAdvertisedPieceIndexes): A performance improvement was made.
  17125. To fix the bug that sends tracker requests without a sleep interval
  17126. when the number of connections is less than 15.
  17127. * src/TrackerWatcherCommand.cc
  17128. (execute): Now the number of connections is not a factor to decide
  17129. whether or not a tracker request should be sent or not.
  17130. * src/Time.h
  17131. (setTimeInSec): New function.
  17132. * src/Time.cc
  17133. (setTimeInSec): New function.
  17134. etc.
  17135. * src/ChokeMessage.cc
  17136. (receivedAction): Removed peer->snubbing = false
  17137. * src/PeerConnection.h
  17138. (receiveHandshake): Updated doc.
  17139. * src/TorrentMan.h
  17140. (getAdvertisedPieceIndexes): Updated the method signature.
  17141. * src/TorrentMan.cc
  17142. (getAdvertisedPieceIndexes): Updated the method signature.
  17143. * src/Time.h
  17144. (getTimeInMicros): Added a cast to (long long int).
  17145. (getTimeInMillis): Added a cast to (long long int).
  17146. * Release 0.5.2
  17147. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17148. To make a listening socket non-block:
  17149. * src/SocketCore.h
  17150. (setNonBlockingMode): New function.
  17151. * src/SocketCore.cc
  17152. (setNonBlockingMode): New function.
  17153. (beginListen): Added a call to setNonBlockingMode().
  17154. (acceptConnection): Call setNonBlockingMode().
  17155. (setBlockingMode): Updated.
  17156. To handle tracker's NAT-checking:
  17157. * src/PeerConnection.cc
  17158. (receiveHandshake): 'msg' param is filled with received data and
  17159. its length is assigned to 'length' param, even if all handshake
  17160. message is not yet received.
  17161. * src/PeerInteractionCommand.cc
  17162. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  17163. a new peer connects to localhost.
  17164. A call to peerInteraction->sendHandshake() was removed because
  17165. it is called from peerInteraction->receiveHandshake(true).
  17166. * src/PeerInteraction.h
  17167. (quickReplied): New variable.
  17168. (receiveHandshake): Added an argument.
  17169. * src/PeerInteraction.cc
  17170. (PeerInteraction): Added the initialization of quickReplied.
  17171. (receiveHandshake): Send handshake message as soon as the info hash
  17172. in a handshake message from a peer is correct.
  17173. To change the random part of peer id and key parameter:
  17174. * src/TorrentMan.h
  17175. (key): New variable.
  17176. * src/TorrentMan.cc
  17177. (setupInternal1): Use Util::randomAlpha() to generate random part
  17178. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  17179. key is also generated by Util::randomAlpha() and it is now 8 character
  17180. long.
  17181. * src/Util.h
  17182. (randomAlpha): New function.
  17183. * src/Util.cc
  17184. (randomAlpha): New function.
  17185. * src/TrackerWatcherCommand.cc
  17186. (execute): In a tracker request: Use torrentMan->key as key parameter.
  17187. Added no_peer_id=1.
  17188. Set snubbing flag to false when a choke message is received from a
  17189. snubbed peer.
  17190. * src/ChokeMessage.cc
  17191. (receivedAction): Set snubbing flag to false.
  17192. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17193. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  17194. * src/SimpleLogger.h (writeHeader): New function.
  17195. * src/SimpleLogger.cc (writeHeader): New function.
  17196. (writeLog): Fixed the bug that causes segfaults if exception message
  17197. contains an unescaped "%" character.
  17198. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  17199. when a tracker request fails.
  17200. * src/Request.cc (parseUrl): Query string is now handled properly.
  17201. * Release 0.5.1
  17202. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17203. To add Time class which represents a specific instant in time and
  17204. its precision is microseconds. Time checking procedures were rewritten
  17205. using this object.
  17206. * src/Time.h: New class.
  17207. * src/Time.cc: New class.
  17208. * src/AbstractCommand.h
  17209. (updateCheckPoint): Removed.
  17210. (isTimeoutDetected): Removed.
  17211. (checkPoint): Changed the type to Time.
  17212. (timeout): New variable.
  17213. (setTimeout): New function.
  17214. * src/AbstractCommand.cc
  17215. (AbstractCommand): Removed the initialization of checkPoint.
  17216. Added the initialization of timeout.
  17217. (updateCheckPoint): Removed.
  17218. (isTimeoutDetected): Removed.
  17219. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17220. * src/PeerChokeCommand.h
  17221. (checkPoint): Changed the type to Time.
  17222. * src/PeerChokeCommand.cc
  17223. (PeerChokeCommand): Removed the initialization of checkPoint.
  17224. (execute): Rewritten using Time object.
  17225. * src/TrackerWatcherCommand.h
  17226. (checkPoint): Changed the type to Time.
  17227. * src/TrackerWatcherCommand.cc
  17228. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  17229. (execute): Rewritten.
  17230. * src/ConsoleDownloadEngine.h
  17231. (cp): Changed the type to Time.
  17232. (startup): Changed the type to Time.
  17233. * src/ConsoleDownloadEngine.cc
  17234. (initStatistics): Use cp.reset(), startup.reset().
  17235. (calculateStatistics): Rewritten using Time object.
  17236. * src/PeerAbstractCommand.h
  17237. (updateCheckPoint): Removed.
  17238. (isTimeoutDetected): Removed.
  17239. (checkPoint): Changed the type to Time.
  17240. * src/PeerAbstractCommand.cc
  17241. (PeerAbstractCommand): Removed the initialization of checkPoint.
  17242. (updateCheckPoint): Removed.
  17243. (isTimeoutDetected): Removed.
  17244. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17245. * src/PeerInteractionCommand.cc
  17246. (PeerInteractionCommand): Removed the initializations of struct
  17247. timeval variables.
  17248. * src/PeerInteractionCommand.h
  17249. (keepAliveCheckPoint): Changed the type to Time.
  17250. (chokeCheckPoint): Changed the type to Time.
  17251. (freqCheckPoint): Changed the type to Time.
  17252. (haveCheckTime): Changed the type to Time.
  17253. * src/PeerInteractionCommand.cc
  17254. (executeInternal): Rewritten using Time object.
  17255. (detectMessageFlooding): Rewritten using Time object.
  17256. (checkLongTimePeerChoking): Rewritten using Time object.
  17257. (sendKeepAlive): Rewritten using Time object.
  17258. (checkHave): Rewritten using Time object.
  17259. * src/SleepCommand.h
  17260. (checkPoint): Changed the type to Time.
  17261. * src/SleepCommand.cc
  17262. (SleepCommand): Removed the initialization of checkPoint.
  17263. (execute): Rewritten using Time object.
  17264. * src/TorrentAutoSaveCommand.h
  17265. (checkPoint): Changed the type to Time.
  17266. * src/TorrentAutoSaveCommand.cc
  17267. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  17268. (execute): Rewritten.
  17269. * src/DownloadCommand.h
  17270. (sw): Changed the type to Time.
  17271. * src/DownloadCommand.cc
  17272. (DownloadCommand): Removed the initialization of sw.
  17273. (executeInternal): Rewritten.
  17274. * src/RequestSlot.h
  17275. (dispatchedTime): Changed the type to Time.
  17276. * src/RequestSlot.cc
  17277. (RequestSlot): Removed the call to setDispatchedTime().
  17278. (setDispatchedTime): Rewirtten.
  17279. (isTimeout): Rewritten.
  17280. (getLatencyInMillis): Rewritten.
  17281. * src/TorrentDownloadEngine.h
  17282. (cp): Changed the type to Time[2].
  17283. (startup): Changed the type to Time.
  17284. * src/TorrentDownloadEngine.cc
  17285. (initStatistics): Rewritten.
  17286. (calculateStatistics): Rewritten.
  17287. * src/DownloadEngine.cc
  17288. (run): Rewritten.
  17289. To detect all attempts to connect to the tracker are failed:
  17290. * src/AbstractCommand.cc
  17291. (execute): Increment e->segmentMan->errors if a command aborted.
  17292. * src/SegmentMan.h
  17293. (errors): New variable.
  17294. * src/SegmentMan.cc
  17295. (SegmentMan): Added the initialization of errors.
  17296. (init): Added the initialization of errors.
  17297. * src/TrackerWatcherCommand.cc
  17298. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  17299. request was failed.
  17300. To handle snubbed peers:
  17301. * src/PeerChokeCommand.cc
  17302. (optUnchokingPeer): Snubbed peers don't get unchoked.
  17303. (execute): Snubbed peers don't get unchoked.
  17304. * src/PeerInteraction.h
  17305. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  17306. * src/PeerInteraction.cc
  17307. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  17308. back the requested 16k block in 60 seconds.
  17309. * src/PieceMessage.cc
  17310. (receivedAction): A peer's snubbed state is cleard if it sends
  17311. the requested 16k block in 60 seconds.
  17312. * src/Peer.h
  17313. (snubbing): New variable.
  17314. * src/Peer.cc
  17315. (resetStatus): Added snubbed = false.
  17316. To fix the bug that causes have message is not sent:
  17317. * src/PeerInteractionCommand.cc
  17318. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  17319. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  17320. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  17321. * src/TorrentMan.h
  17322. (HaveEntry): New class.
  17323. (advertisePiece): Rewritten.
  17324. (getAdvertisedPieceIndexes): Rewritten.
  17325. (Haves): Changed the type.
  17326. (getAdvertisedPieceIndexes): Added an argument.
  17327. Others:
  17328. * src/TorrentMan.h
  17329. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  17330. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  17331. * src/TorrentMan.cc
  17332. (getPeer): Don't check the number of connections here.
  17333. (setupInternal1): Changed peerId.
  17334. * src/PeerInteractionCommand.h
  17335. (KEEP_ALIVE_INTERVAL): New definition.
  17336. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  17337. * src/main.cc
  17338. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  17339. * src/DownloadEngine.h: Removed unnecessary header includes.
  17340. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17341. To fix the bug that causes segfaults if a tracker returns a zero-length
  17342. list as "peers":
  17343. * src/TrackerUpdateCommand.cc
  17344. (execute): Added a check to see wether the type of peers is Data*.
  17345. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17346. * Release 0.5.0
  17347. To fix compile issue with gcc3:
  17348. * src/CancelMessage.h
  17349. (ID): Renamed as ID_t
  17350. (ID_t): New enum.
  17351. * src/RejectMessage.h
  17352. (ID): Renamed as ID_t
  17353. (ID_t): New enum.
  17354. * src/SuggestPieceMessage.h
  17355. (ID): Renamed as ID_t
  17356. (ID_t): New enum.
  17357. * src/AllowedFastMessage.h
  17358. (ID): Renamed as ID_t
  17359. (ID_t): New enum.
  17360. * src/PortMessage.h
  17361. (ID): Renamed as ID_t
  17362. (ID_t): New enum.
  17363. * src/HaveNoneMessage.h
  17364. (ID): Renamed as ID_t
  17365. (ID_t): New enum.
  17366. * src/KeepAliveMessage.h
  17367. (ID): Renamed as ID_t
  17368. (ID_t): New enum.
  17369. * src/HaveAllMessage.h
  17370. (ID): Renamed as ID_t
  17371. (ID_t): New enum.
  17372. * src/UnchokeMessage.h
  17373. (ID): Renamed as ID_t
  17374. (ID_t): New enum.
  17375. * src/BitfieldMessage.h
  17376. (ID): Renamed as ID_t
  17377. (ID_t): New enum.
  17378. * src/PieceMessage.h
  17379. (ID): Renamed as ID_t
  17380. (ID_t): New enum.
  17381. * src/RequestMessage.h
  17382. (ID): Renamed as ID_t
  17383. (ID_t): New enum.
  17384. * src/NotInterestedMessage.h
  17385. (ID): Renamed as ID_t
  17386. (ID_t): New enum.
  17387. * src/ChokeMessage.h
  17388. (ID): Renamed as ID_t
  17389. (ID_t): New enum.
  17390. * src/InterestedMessage.h
  17391. (ID): Renamed as ID_t
  17392. (ID_t): New enum.
  17393. * src/HaveMessage.h
  17394. (ID): Renamed as ID_t
  17395. (ID_t): New enum.
  17396. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17397. * src/PeerAbstractCommand.h
  17398. (beforeSocketCheck): Removed.
  17399. * src/PeerAbstractCommand.cc
  17400. Modified in order to call executeInternal() even if socket check
  17401. and upload limit check fail.
  17402. * src/PeerInteractionCommand.h
  17403. (keepAlive): Removed.
  17404. (sendKeepAlive): New function.
  17405. (checkHave): New function.
  17406. (beforeSocketCheck): Removed.
  17407. * src/PeerInteractionCommand.cc
  17408. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17409. calls to checkHave() and sendKeepAlive().
  17410. (keepAlive): Renamed to sendKeepAlive().
  17411. (sendKeepAlive): New function.
  17412. (beforeSocketCheck): Removed.
  17413. (checkHave): New function.
  17414. * src/BitfieldMan.cc
  17415. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17416. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17417. 0.
  17418. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17419. * src/TorrentMan.h
  17420. (UsedPieces): Removed.
  17421. (Pieces): New type definition.
  17422. * src/Piece.h: Updated doc.
  17423. * src/Peer.h
  17424. (totalLength): Removed.
  17425. * src/Peer.cc
  17426. (updateLatency): Fixed the latency calculation.
  17427. * src/TorrentMan.cc
  17428. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17429. than or equal to MAX_PEER_LIST_SIZE.
  17430. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17431. then return false.
  17432. (deleteOldErrorPeers): Rewritten.
  17433. (deleteUsedPiece): Fixed the miss use of STL remove.
  17434. * src/PeerInteraction.h
  17435. (Pieces): Removed.
  17436. (deleteTimeoutRequestSlot): Removed.
  17437. (deleteCompletedRequestSlot): Removed.
  17438. (checkRequestSlot): New function.
  17439. * src/PeerInteraction.cc
  17440. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17441. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17442. (checkRequestSlot): New function.
  17443. * src/DownloadEngine.cc
  17444. (run): Clear activeSockets before calling waitData().
  17445. (waitData): Removed a call to activeSockets.clear().
  17446. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17447. To attempt to handle EINTR:
  17448. * src/SocketCore.cc
  17449. (isReadable): Added EINTR handling.
  17450. (isWritable): Added EINTR handling.
  17451. To improve the performance:
  17452. * src/AbstractCommand.cc
  17453. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17454. * src/PeerInteractionCommand.h
  17455. (receiveMessage): Renamed as receiveMessages().
  17456. (receiveMessages): New function.
  17457. * src/PeerInteractionCommand.cc
  17458. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17459. () function. detectMessageFlooding() is moved here.
  17460. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17461. (). The flooding detection for have message is comment out.
  17462. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17463. Util::difftv().
  17464. (receiveMessage): Renamed as receiveMessages().
  17465. (receiveMessages): New function.
  17466. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17467. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17468. * src/SleepCommand.cc
  17469. (execute): Use Util::difftvsec() instead of Util::difftv().
  17470. * src/BitfieldMan.h
  17471. (getNthBitIndex): New function.
  17472. (hasMissingPiece): New function.
  17473. (getAllMissingIndexes): New function.
  17474. * src/BitfieldMan.cc
  17475. (countSetBit): Rewritten.
  17476. (getNthBitIndex): New function.
  17477. (getMissingIndexRandomly): Rewritten.
  17478. (hasMissingPiece): New function.
  17479. (getAllMissingIndexes): New function.
  17480. * src/TorrentMan.cc
  17481. (hasMissingPiece): New function.
  17482. (deleteUsedPiece): Rewritten using STL.
  17483. * src/PeerInteraction.cc
  17484. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17485. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17486. (addRequests): Updated the number of pending requests.
  17487. * src/PeerAbstractCommand.cc
  17488. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17489. (execute): Returns true if TorrentMan::isHalt() is true.
  17490. Corrected the condition of upload limit checking.
  17491. * src/Util.h
  17492. (countBit): New function.
  17493. * src/Util.cc
  17494. (nbits): New variable.
  17495. (countBit): New function.
  17496. * src/DownloadEngine.h
  17497. (SockCmdMap): New type definition.
  17498. (waitData): Added an argument.
  17499. (addSocket): Added an argument.
  17500. (addSocketForReadCheck): Added an argument.
  17501. (addSocketForWriteCheck): Added an argument.
  17502. * src/DownloadEngine.cc
  17503. (run): Executes only commands whose sockets are ready to read or write.
  17504. All commands are executed in every 1 second.
  17505. (waitData): Calls select() again if it returned
  17506. EINTR.
  17507. (addSocket): Saves socket and command object pair to the map.
  17508. (deleteSocket): Deletes socket and command object pair from the map.
  17509. (addSocketForReadCheck): Added an argument.
  17510. (addSocketForWriteCheck): Added an argument.
  17511. * src/DownloadCommand.cc
  17512. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17513. To send "event=stopped" to the tracker when the application finishes:
  17514. * src/PeerChokeCommand.h
  17515. (checkPoint): New variable.
  17516. * src/PeerChokeCommand.cc
  17517. (PeerChokeCommand): Added the initialization of checkPoint.
  17518. (execute): The interval check is now done by checkPoint, not
  17519. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17520. * src/TorrentMan.h
  17521. (halt): New function.
  17522. (hasMissingPiece): New function.
  17523. (isHalt): New function.
  17524. (setHalt): New function.
  17525. * src/TorrentMan.cc
  17526. (TorrentMan): Added the initialization of halt.
  17527. * src/TorrentAutoSaveCommand.h
  17528. (checkPoint): New variable.
  17529. * src/PeerListenCommand.cc
  17530. (execute): Returns true if TorrentMan::isHalt() is true.
  17531. * src/main.cc
  17532. (setSignalHander): Added flags argument.
  17533. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17534. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17535. Removed printDownloadAbortMessage() after torrent downloading loop.
  17536. * src/TorrentAutoSaveCommand.cc
  17537. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17538. (execute): Returns true if TorrentMan::isHalt() is true.
  17539. The interval check is now done by checkPoint, not SleepCommand.
  17540. * src/TrackerWatcherCommand.cc
  17541. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17542. event=stopped.
  17543. * src/TrackerUpdateCommand.cc
  17544. (prepareForRetry): Do not use SleepCommand here.
  17545. (execute): Returns true if TorrentMan::isHalt() is true.
  17546. Others:
  17547. * src/TorrentMan.cc
  17548. (getMissingPieceIndex): Updated log message.
  17549. * src/PeerInteraction.cc
  17550. (createPeerMessag): Updated log message.
  17551. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17552. To add the ability to download several pieces in mix in a command and
  17553. increase the number of request slots according to request-cancel
  17554. latency:
  17555. * src/PeerInteractionCommand.cc
  17556. (executeInternal): The number of messages to be received at a time
  17557. is increased from 10 to 50.
  17558. * src/LogFactory
  17559. (getInstance): Added NullLogger.
  17560. * src/NullLogger.h: New class.
  17561. * src/BitfieldMan.h
  17562. (getMissingIndex): New function.
  17563. * src/BitfieldMan.cc
  17564. (getMissingIndex): New function.
  17565. * src/TorrentMan.h
  17566. (checkOutPiece): New function.
  17567. (getMissingPieceIndex): New function.
  17568. (getMissingFastPieceIndex): New function.
  17569. (getMissingFastPiece): New function.
  17570. * src/TorrentMan.cc
  17571. (updatePiece): Rewritten using STL.
  17572. (syncPiece): Rewritten using STL.
  17573. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17574. checkOutPiece().
  17575. (getMissingPieceIndex): New function.
  17576. (getMissingFastPieceIndex): New function.
  17577. (getMissingFastPiece): New function.
  17578. (checkOutPiece): New function.
  17579. * src/PeerInteraction.h
  17580. (Pieces): New type definition.
  17581. (piece): Removed.
  17582. (pieces): New variable.
  17583. (getNewPieceAndSendInterest): Added the "piece" argument.
  17584. (abortPiece): Added the "piece" argument.
  17585. (abortAllPieces): New function.
  17586. (isInRequestSlot): New function.
  17587. (hasDownloadPiece): Added the "index" argument.
  17588. (setDownloadPiece): Removed.
  17589. (getDownloadPiece): Added the "index" argument.
  17590. (updatePiece): New function.
  17591. (createRequestMessage): Added the "index" argument.
  17592. * src/PeerInteraction.cc
  17593. (onChoked): Rewritten.
  17594. (abortPiece): Rewirtten.
  17595. (abortAllPieces): New function.
  17596. (deleteTimeoutRequestSlot): Rewritten.
  17597. Clarified code a little bit.
  17598. (deleteCompletedRequestSlot): Rewritten.
  17599. (isInRequestSlot): New function.
  17600. (syncPiece): Rewritten.
  17601. (updatePiece): New function.
  17602. (getNewPieceAndSendInterest): Rewritten.
  17603. (addRequests): Rewritten.
  17604. (getDownloadPiece): Rewritten.
  17605. (hasDownloadPiece): Rewritten.
  17606. (createRequestMessage): Added the "index" argument.
  17607. * src/common.h
  17608. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17609. (DIV_FLOOR): New definition.
  17610. * src/PieceMessage.cc
  17611. (receivedAction): Update request-piece latency here.
  17612. * src/RequestSlot.h
  17613. (getLatencyInMillis): New function.
  17614. * src/RequestSlot.cc
  17615. (isTimeout): Rewritten using getLatencyInMillis.
  17616. (getLatencyInMillis): New function.
  17617. * src/Piece.h
  17618. (operator==): New function.
  17619. (getMissingBlockIndex): New function.
  17620. * src/Piece.cc
  17621. (operator==): New function.
  17622. (getMissingBlockIndex): New function.
  17623. * src/Peer.h
  17624. (DEFAULT_LATENCY): New definition.
  17625. (latency): New variable.
  17626. (updateLatency): New function.
  17627. (getLatency): New function.
  17628. * src/Peer.cc
  17629. (resetStatus): Reset latecy.
  17630. (updateLatency): New function.
  17631. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17632. * src/SocketCore.cc
  17633. (isReadable): Added secure to the condition.
  17634. * src/HttpConnection.cc
  17635. (receiveResponse): Fixed a bug that causes no response header
  17636. exception.
  17637. * src/Peer.h
  17638. (getFastSet): Fixed the return value type.
  17639. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17640. To remove a wait from download loop:
  17641. * src/DownloadEngine.cc
  17642. (run): Comment out shortSleep.
  17643. To rewrite the message handling:
  17644. * src/SimplePeerMessage.h: New class.
  17645. * src/SimplePeerMessage.cc: New class.
  17646. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17647. (msg): New variable.
  17648. (create): New function.
  17649. (send): Removed.
  17650. (getMessage): New function.
  17651. (getMessageLength): New function.
  17652. * src/CancelMessage.cc
  17653. (create): New function.
  17654. (receivedAction): Replaced deleteRequestMessageInQueue with
  17655. rejectPieceMessageInQueue.
  17656. (send): Removed.
  17657. (getMessage): New function.
  17658. (getMessageLength): New function.
  17659. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17660. (msg): New variable.
  17661. (msgLength): New variable.
  17662. (~BitfieldMessage): Deleted msg.
  17663. (send): Removed.
  17664. (getMessage): New function.
  17665. (getMessageLength): New function.
  17666. * src/BitfieldMessage.cc
  17667. (create): New function.
  17668. (send): Removed.
  17669. (getMessage): New function.
  17670. (getMessageLength): New function.
  17671. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17672. (msg): New variable.
  17673. (sendPredicate): New function.
  17674. (onSendComplete): New function.
  17675. (send): Removed.
  17676. (getMessage): New function.
  17677. (getMessageLength): New function.
  17678. (create): New function.
  17679. * src/ChokeMessage.cc
  17680. (create): New function.
  17681. (send): Removed.
  17682. (sendPredicate): New function.
  17683. (getMessage): New function.
  17684. (getMessageLength): New function.
  17685. (onSendComplete): New function.
  17686. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17687. (msg): New variable.
  17688. (send): Removed.
  17689. (getMessage): New function.
  17690. (getMessageLength): New function.
  17691. * src/KeepAliveMessage.cc
  17692. (send): Removed.
  17693. (getMessage): New function.
  17694. (getMessageLength): New function.
  17695. * src/PortMessage.h
  17696. (create): New function.
  17697. (receivedAction): Updated log message.
  17698. * src/PortMessage.cc: New file.
  17699. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17700. (msg): New variable.
  17701. (sendPredicate): New function.
  17702. (onSendComplete): New function.
  17703. (create): New function.
  17704. (send): Removed.
  17705. (getMessage): New function.
  17706. (getMessageLength): New function.
  17707. * src/UnchokeMessage.cc
  17708. (create): New function.
  17709. (send): Removed.
  17710. (sendPredicate): New function.
  17711. (getMessage): New function.
  17712. (getMessageLength): New function.
  17713. (onSendComplete): New function.
  17714. * src/PieceMessage.h
  17715. (leftPieceDataLength): Removed.
  17716. (leftDataLength): New variable.
  17717. (headerSend): New variable.
  17718. (pendingCount): New variable.
  17719. (msgHeader): New variable.
  17720. (sendPieceData): New function.
  17721. (incrementPendingCount): New function.
  17722. (isPendingCountMax): New function.
  17723. (create): New function.
  17724. (getMessageHeader): New function.
  17725. (getMessageHeaderLength): New function.
  17726. * src/PieceMessage.cc
  17727. (create): New function.
  17728. (getMessageHeader): New function.
  17729. (getMessageHeaderLength): New function.
  17730. (send): Rewritten.
  17731. (sendPieceData): New function.
  17732. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17733. (msg): New variable.
  17734. (create): New function.
  17735. (getMessage): New function.
  17736. (getMessageLength): New function.
  17737. * src/HaveMessage.cc
  17738. (create): New function.
  17739. (send): Removed.
  17740. (sendPieceData): New function.
  17741. (getMessage): New function.
  17742. (getMessageLength): New function.
  17743. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17744. (msg): New variable.
  17745. (create): New function.
  17746. (send): Removed.
  17747. (getMessage): New function.
  17748. (getMessageLength): New function.
  17749. * src/RequestMessage.cc
  17750. (create): New function.
  17751. (receivedAction): Added the handling of fast extension.
  17752. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17753. (send): Removed.
  17754. (getMessage): New function.
  17755. (getMessageLength): New function.
  17756. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17757. (msg): New variable.
  17758. (sendPredicate): New function.
  17759. (onSendComplete): New function.
  17760. (create): New function.
  17761. (getMessage): New function.
  17762. (getMessageLength): New function.
  17763. * src/InterestedMessage.cc
  17764. (create): New function.
  17765. (send): Removed.
  17766. (sendPieceData): New function.
  17767. (getMessage): New function.
  17768. (getMessageLength): New function.
  17769. (onSendComplete): New function.
  17770. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17771. (msg): New variable.
  17772. (sendPieceData): New function.
  17773. (onSendComplete): New function.
  17774. (create): New function.
  17775. (send): Removed.
  17776. (getMessage): New function.
  17777. (getMessageLength): New function.
  17778. * src/NotInterestedMessage.cc
  17779. (create): New function.
  17780. (send): Removed.
  17781. (sendPredicate): New function.
  17782. (getMessage): New function.
  17783. (getMessageLength): New function.
  17784. (onSendComplete): New function.
  17785. * src/AllowedFastMessage.h: New class.
  17786. * src/AllowedFastMessage.cc: New class.
  17787. * src/RejectMessage.h: New class.
  17788. * src/RejectMessage.cc: New class.
  17789. * src/SuggestPieceMessage.h: New class.
  17790. * src/SuggestPieceMessage.cc: New class.
  17791. * src/HaveAllMessage.h: New class.
  17792. * src/HaveAllMessage.cc: New class.
  17793. * src/HaveNoneMessage.h: New class.
  17794. * src/HaveNoneMessage.cc: New class.
  17795. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17796. (msg): New variable.
  17797. (reserved): New variable.
  17798. (create): New function.
  17799. (getId): New function.
  17800. (receivedAction): New function.
  17801. (getMessage): New function.
  17802. (getMessageLength): New function.
  17803. (isFastExtensionSupported): New function.
  17804. * src/HandshakeMessage.cc
  17805. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17806. (create): New function.
  17807. (getMessage): New function.
  17808. (getMessageLength): New function.
  17809. (toString): Added the output of reserved field.
  17810. (check): Added const qualifier.
  17811. (isFastExtensionSupported): New function.
  17812. * src/PeerMessageUtil.h
  17813. (createChokeMessage): Removed.
  17814. (createUnchokeMessage): Removed.
  17815. (createInterestedMessage): Removed.
  17816. (createNotInterestedMessage): Removed.
  17817. (createHaveMessage): Removed.
  17818. (createBitfieldMessage): Removed.
  17819. (createRequestMessage): Removed.
  17820. (createCancelMessage): Removed.
  17821. (createPieceMessage): Removed.
  17822. (createPortMessage): Removed.
  17823. (createChokeMessage): Removed.
  17824. (createUnchokeMessage): Removed.
  17825. (createInterestedMessage): Removed.
  17826. (createNotInterestedMessage): Removed.
  17827. (createHaveMessage): Removed.
  17828. (createBitfieldMessage): Removed.
  17829. (createRequestMessage): Removed.
  17830. (createCancelMessage): Removed.
  17831. (createPieceMessage): Removed.
  17832. (createKeepAliveMessage): Removed.
  17833. (createHandshakeMessage): Removed.
  17834. (setIntParam): New function.
  17835. (createPeerMessageString): New function.
  17836. * src/PeerMessageUtil.cc
  17837. (createChokeMessage): Removed.
  17838. (createUnchokeMessage): Removed.
  17839. (createInterestedMessage): Removed.
  17840. (createNotInterestedMessage): Removed.
  17841. (createHaveMessage): Removed.
  17842. (createBitfieldMessage): Removed.
  17843. (createRequestMessage): Removed.
  17844. (createCancelMessage): Removed.
  17845. (createPieceMessage): Removed.
  17846. (createPortMessage): Removed.
  17847. (createRequestMessage): Removed.
  17848. (createCancelMessage): Removed.
  17849. (createPieceMessage): Removed.
  17850. (createHaveMessage): Removed.
  17851. (createChokeMessage): Removed.
  17852. (createUnchokeMessage): Removed.
  17853. (createInterestedMessage): Removed.
  17854. (createNotInterestedMessage): Removed.
  17855. (createBitfieldMessage): Removed.
  17856. (createKeepAliveMessage): Removed.
  17857. (createHandshakeMessage): Removed.
  17858. (setIntParam): New function.
  17859. (createPeerMessageString): New function.
  17860. * src/PeerConnection.h
  17861. (peer): Removed.
  17862. (torrentMan): Removed.
  17863. (createNLengthMessage): Removed.
  17864. (setIntParam): Removed.
  17865. (writeOutgoingMessageLog): Removed all overloaded functions.
  17866. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17867. (sendMessage): New function.
  17868. (sendHandshake): Removed.
  17869. (sendKeepAlive): Removed.
  17870. (sendChoke): Removed.
  17871. (sendUnchoke): Removed.
  17872. (sendInterested): Removed.
  17873. (sendNotInterested): Removed.
  17874. (sendHave): Removed.
  17875. (sendBitfield): Removed.
  17876. (sendRequest): Removed.
  17877. (sendPiece): Removed.
  17878. (sendPieceHeader): Removed.
  17879. (sendPieceData): Removed.
  17880. (sendCancel): Removed.
  17881. (getPeer): Removed.
  17882. * src/PeerConnection.cc
  17883. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17884. (sendHandshake): Removed.
  17885. (sendKeepAlive): Removed.
  17886. (createNLengthMessage): Removed.
  17887. (setIntParam): Removed.
  17888. (writeOutgoingMessageLog): Removed all overloaded functions.
  17889. (sendChoke): Removed.
  17890. (sendUnchoke): Removed.
  17891. (sendInterested): Removed.
  17892. (sendNotInterested): Removed.
  17893. (sendHave): Removed.
  17894. (sendBitfield): Removed.
  17895. (sendRequest): Removed.
  17896. (sendPiece): Removed.
  17897. (sendPieceHeader): Removed.
  17898. (sendPieceData): Removed.
  17899. (sendMessage): New function.
  17900. (sendCancel): Removed.
  17901. * src/PeerInteractionCommand.cc
  17902. (PeerInteractionCommand): Call setUploadLimit.
  17903. (executeInternal): Call setUploadLimit.
  17904. Added the handling of "inProgress" state of handshake message.
  17905. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17906. sendNow().
  17907. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17908. sendNow().
  17909. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17910. * src/TorrentMan.h
  17911. (PEER_ID_LENGTH): New definition.
  17912. (hasAllPieces): New function.
  17913. * src/TorrentMan.cc
  17914. (getMissingPiece): Added the handling of fast extension.
  17915. (cancelPiece): Call updatePiece().
  17916. (hasAllPieces): New function.
  17917. * src/PeerInteraction.h
  17918. (fastSet): New variable.
  17919. (getNewPieceAndSendInterest): Changed the return type to void.
  17920. (send): Renamed as sendMessages.
  17921. (deleteAllRequestSlot): Removed.
  17922. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17923. (cancelAllRequest): Removed all overloaded functions.
  17924. (deleteAllRequestSlot): Removed.
  17925. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17926. (rejectPieceMessageInQueue): New function.
  17927. (rejectAllPieceMessageInQueue): New function.
  17928. (onChoked): New function.
  17929. (isSendingMessageInProgress): New function.
  17930. (getCorrespondingRequestSlot): Changed its arguments.
  17931. (isInFastSet): New function.
  17932. (addFastSetIndex): New function.
  17933. (addRequests): New function.
  17934. (sendNow): Removed.
  17935. (trySendNow): Removed.
  17936. (sendBitfield): New function.
  17937. (sendAllowdFast): New function.
  17938. (createHaveAllMessage): New function.
  17939. (createHaveNoneMessage): New function.
  17940. (createRejectMessage): New function.
  17941. (createAllowedFastMessage): New function.
  17942. * src/PeerInteraction.cc
  17943. (send): Renamed as sendMessages.
  17944. (sendMessages): New function.
  17945. (MsgPushBack): New class.
  17946. (isSendingMessageInProgress): New function.
  17947. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17948. (rejectAllPieceMessageInQueue): New function.
  17949. Added the handling of fast extension.
  17950. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17951. (rejectPieceMessageInQueue): New function.
  17952. Added the handling of fast extension.
  17953. (deleteRequestSlot): Replaced for loop with std::find.
  17954. (onChoked): New function.
  17955. (deleteAllRequestSlot): Removed.
  17956. (abortPiece): Rewirtten.
  17957. (deleteTimeoutRequestSlot): Updated log messages.
  17958. (getCorrespondingRequestSlot): Changed its arguments.
  17959. (cancelAllRequest): Removed all overloaded functions.
  17960. (receiveHandshake): Added the check to see whether an incoming peer
  17961. supports fast extension.
  17962. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17963. PeerMessageUtil.
  17964. (createPeerMessage): Use create() of each message class instead of
  17965. PeerMessageUtil.
  17966. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17967. AllowedFastMessage were added.
  17968. (getNewPieceAndSendInterest): Changed its return value type to void.
  17969. Added the handling of fast extension.
  17970. (addRequests): New function.
  17971. (sendNow): Removed.
  17972. (sendHandshake): Rewritten.
  17973. (trySendNow): Removed.
  17974. (sendBitfield): New function.
  17975. (sendAllowdFast): New function.
  17976. (isInFastSet): New function.
  17977. (addFastSetIndex): New function.
  17978. (createRequestMessage): Use RequestMessage::create instead of
  17979. PeerMessageUtil.
  17980. (createCancelMessage): Use CancelMessage::create instead of
  17981. PeerMessageUtil.
  17982. (createPieceMessage): Use PieceMessage::create instead of
  17983. PeerMessageUtil.
  17984. (createHaveMessage): Use HaveMessage::create instead of
  17985. PeerMessageUtil.
  17986. (createChokeMessage): Use ChokeMessage::create instead of
  17987. PeerMessageUtil.
  17988. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17989. PeerMessageUtil.
  17990. (createInterestedMessage): Use InterestedMessage::create instead of
  17991. PeerMessageUtil.
  17992. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17993. of PeerMessageUtil.
  17994. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17995. PeerMessageUtil.
  17996. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17997. PeerMessageUtil.
  17998. (createHaveAllMessage): New function.
  17999. (createHaveNoneMessage): New function.
  18000. (createRejectMessage): New function.
  18001. (createAllowedFastMessage: New function.
  18002. * src/Util.h
  18003. (sha1Sum): New function.
  18004. (computeFastSet): New function.
  18005. * src/Util.cc
  18006. (sha1Sum): New function.
  18007. (computeFastSet): New function.
  18008. * src/Peer.h
  18009. (fastExtensionEnabled): New variable.
  18010. (fastSet): New variable.
  18011. (setAllBitfield): New function.
  18012. (setFastExtensionEnabled): New function.
  18013. (isFastExtensionEnabled): New function.
  18014. (addFastSetIndex): New function.
  18015. (getFastSet): New function.
  18016. (isInFastSet): New function.
  18017. (countFastSet): New function.
  18018. * src/Peer.cc
  18019. (isInFastSet): New function.
  18020. (addFastSetIndex): New function.
  18021. (setAllBitfield): New function.
  18022. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  18023. sockets.
  18024. * src/PeerAbstractCommand.cc
  18025. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  18026. and uploadLimit.
  18027. (execute): Changed the procedure of checking sockets. The upload speed
  18028. checking were added.
  18029. (setUploadLimit): New function.
  18030. (setUploadLimitCheck): New function.
  18031. * src/PeerAbstractCommand.h
  18032. (setUploadLimit): New function.
  18033. (setUploadLimitCheck): New function.
  18034. (uploadLimit): New variable.
  18035. (uploadLimitCheck): New variable.
  18036. To contact a tracker regularly:
  18037. * src/TrackerWatcherCommand.h (interval): New variable.
  18038. (checkPoint): New variable.
  18039. (TrackerWatcherCommand): Added interval argument.
  18040. * src/TrackerWatcherCommand.cc
  18041. (TrackerWatcherCommand): Initialized checkPoint.
  18042. (execute): Now a tracker is contacted in every specified period.
  18043. If peer list is not needed, send request with numwant=0.
  18044. * src/TrackerUpdateCommand.cc
  18045. (execute): Updated log messages.
  18046. * src/DownloadEngine.cc
  18047. (~DownloadEngine): Removed two asserts.
  18048. (waitData): Uncommented wfds. May be a bug fix.
  18049. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18050. * src/PeerInteractionCommand.h
  18051. (checkInactiveConnection): Removed.
  18052. * src/PeerInteractionCommand.cc
  18053. (executeInternal): Removed following function calls:
  18054. detectMessageFlooding(), checkLongTimePeerChoking and
  18055. checkInactiveConnection().
  18056. (checkInactiveConnection): Removed.
  18057. (detectMessageFlooding): Removed function call to
  18058. checkInactiveConnection().
  18059. * src/PeerMessageUtil.h
  18060. (createChokeMessage): New function. Overload.
  18061. (createUnchokeMessage): New function. Overload.
  18062. (createInterestedMessage): New function. Overload.
  18063. (createNotInterestedMessage): New function. Overload.
  18064. (createHaveMessage): New function. Overload.
  18065. (createBitfieldMessage): New function. Overload.
  18066. (createRequestMessage): New function. Overload.
  18067. (createCancelMessage): New function. Overload.
  18068. (createPieceMessage): New function. Overload.
  18069. (createKeepAliveMessage): New function. Overload.
  18070. * src/PeerMessageUtil.cc
  18071. (createChokeMessage): New function. Overload.
  18072. (createUnchokeMessage): New function. Overload.
  18073. (createInterestedMessage): New function. Overload.
  18074. (createNotInterestedMessage): New function. Overload.
  18075. (createHaveMessage): New function. Overload.
  18076. (createBitfieldMessage): New function. Overload.
  18077. (createRequestMessage): New function. Overload.
  18078. (createCancelMessage): New function. Overload.
  18079. (createPieceMessage): New function. Overload.
  18080. (createKeepAliveMessage): New function. Overload.
  18081. * src/SendMessageQueue.cc
  18082. (createRequestMessage): Use PeerMessageUtil.
  18083. (createCancelMessage): Use PeerMessageUtil.
  18084. (createPieceMessage): Use PeerMessageUtil.
  18085. (createHaveMessage): Use PeerMessageUtil.
  18086. (createChokeMessage): Use PeerMessageUtil.
  18087. (createUnchokeMessage): Use PeerMessageUtil.
  18088. (createInterestedMessage): Use PeerMessageUtil.
  18089. (createNotInterestedMessage): Use PeerMessageUtil.
  18090. (createBitfieldMessage): Use PeerMessageUtil.
  18091. (createKeepAliveMessage): Use PeerMessageUtil.
  18092. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  18093. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  18094. * src/PeerInteraction.h: New class.
  18095. * src/PeerInteraction.cc: New class.
  18096. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18097. Each peer message has its own class.
  18098. * src/PendingMessages.h: Removed.
  18099. * src/PendingMessages.cc: Removed. The sending process was moved to
  18100. each message class.
  18101. * src/RequestSlotMan.h: Removed.
  18102. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  18103. SendMessageQueue.
  18104. * src/RequestMessage.h: New class.
  18105. * src/RequestMessage.cc: New class.
  18106. * src/CancelMessage.h: New class.
  18107. * src/CancelMessage.cc: New class.
  18108. * src/BitfieldMessage.h: New class.
  18109. * src/BitfieldMessage.cc: New class.
  18110. * src/ChokeMessage.h: New class.
  18111. * src/ChokeMessage.cc: New class.
  18112. * src/KeepAliveMessage.h: New class.
  18113. * src/KeepAliveMessage.cc: New class.
  18114. * src/PortMessage.h: New class.
  18115. * src/UnchokeMessage.h: New class.
  18116. * src/UnchokeMessage.cc: New class.
  18117. * src/PieceMessage.h: New class.
  18118. * src/PieceMessage.cc: New class.
  18119. * src/HaveMessage.h: New class.
  18120. * src/HaveMessage.cc: New class.
  18121. * src/BitfieldMessage.h: New class.
  18122. * src/BitfieldMessage.cc: New class.
  18123. * src/NotInterestedMessage.h: New class.
  18124. * src/NotInterestedMessage.cc: New class.
  18125. * src/InterestedMessage.h: New class.
  18126. * src/InterestedMessage.cc: New class.
  18127. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  18128. (getSendMessageQueue): New function.
  18129. (setSendMessageQueue): New function.
  18130. * src/HandshakeMessage.cc: New class.
  18131. * src/PeerConnection.h (receiveMessage): Changed return value and
  18132. arguments.
  18133. (receiveHandshake): Changed return value and arguments.
  18134. * src/PeerConnection.cc (receiveMessage): Do not create message class
  18135. here.
  18136. (receiveHandshake): Do not create handshake class here.
  18137. * src/PeerInteractionCommand.h (peerConnection): Removed.
  18138. (piece): Removed.
  18139. (syncPiece): Removed.
  18140. (sendInterest): Removed.
  18141. (sendMessages): Removed.
  18142. (createRequestPendingMessage): Removed.
  18143. (checkPieceHash): Removed.
  18144. (erasePieceOnDisk): Removed.
  18145. (getNewPieceAndSendInterest): Removed.
  18146. (onGotNewPice): Removed.
  18147. (onGotWrongPiece): Removed.
  18148. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18149. Removed peerConnection, piece.
  18150. (~PeerInteractionCommand): Removed peerConnection.
  18151. (executeInternal): Use sendMessageQueue instead of peerConnection.
  18152. (syncPiece): Moved to SendMessageQueue.
  18153. (decideChoking): Removed PendingMessage.
  18154. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  18155. The action after receiving peer message was moved to each message
  18156. class.
  18157. (onGotNewPice): Moved to SendMessageQueue.
  18158. (onGotWrongPiece): Moved to SendMessageQueue.
  18159. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  18160. (sendInterest): Moved to SendMessageQueue.
  18161. (createRequestPendingMessage): Removed.
  18162. (sendMessages): Moved to SendMessageQueue.
  18163. (onAbort): Use SendMessageQueue::abortPiece()
  18164. (keepAlive): Use sendMessageQueue instead of peerConnection.
  18165. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  18166. (checkPieceHash): Moved to SendMessageQueue.
  18167. (erasePieceOnDisk): Moved to SendMessageQueue.
  18168. * src/PeerMessageUtil.h
  18169. (createBitfieldMessage): Removed.
  18170. (createHaveMessage): Changed return value and arguments.
  18171. (createBitfieldMessage): Changed return value and arguments.
  18172. (createRequestCancelMessage): Removed.
  18173. (createPieceMessage): Changed return value and arguments.
  18174. (getShortIntParam): New function.
  18175. (checkIndex): Changed arguments.
  18176. (checkBegin): Changed arguments.
  18177. (checkLength): Changed arguments.
  18178. (checkPieceOffset): Removed.
  18179. (checkRange): New function.
  18180. (checkBitfield): Changed arguments.
  18181. (createPeerMessage): Removed.
  18182. (checkIntegrity): Removed.
  18183. (createHandshakeMessage): Changed arguments.
  18184. (createChokeMessage): New function.
  18185. (createUnchokeMessage): New function.
  18186. (createInterestedMessage): New function.
  18187. (createNotInterestedMessage): New function.
  18188. (createRequestMessage): New function.
  18189. (createCancelMessage): New function.
  18190. (createPortMessage): New function.
  18191. * src/PeerMessageUtil.cc
  18192. (createBitfieldMessage): Removed.
  18193. (createHaveMessage): Changed return value and arguments.
  18194. (createBitfieldMessage): Changed return value and arguments.
  18195. (createRequestCancelMessage): Removed.
  18196. (createPieceMessage): Changed return value and arguments.
  18197. (getShortIntParam): New function.
  18198. (checkIndex): Changed arguments.
  18199. (checkBegin): Changed arguments.
  18200. (checkLength): Changed arguments.
  18201. (checkPieceOffset): Removed.
  18202. (checkRange): New function.
  18203. (checkBitfield): Changed arguments.
  18204. (createPeerMessage): Removed.
  18205. (checkIntegrity): Removed.
  18206. (createHandshakeMessage): Changed arguments.
  18207. (createChokeMessage): New function.
  18208. (createUnchokeMessage): New function.
  18209. (createInterestedMessage): New function.
  18210. (createNotInterestedMessage): New function.
  18211. (createRequestMessage): New function.
  18212. (createCancelMessage): New function.
  18213. (createPortMessage): New function.
  18214. * src/PeerMessage.h
  18215. (id): Removed.
  18216. (index): Removed.
  18217. (begin): Removed.
  18218. (length): Removed.
  18219. (bitfield): Removed.
  18220. (bitfieldLength): Removed.
  18221. (block): Removed.
  18222. (blockLength): Removed.
  18223. (inProgress): New variable.
  18224. (cuid): New variable.
  18225. (peer): New variable.
  18226. (sendMessageQueue): New variable.
  18227. (logger): New variable.
  18228. (setBitfield): Removed.
  18229. (getBitfield): Removed.
  18230. (setBlock): Removed.
  18231. (getBlock): Removed.
  18232. (getBitfieldLength): Removed.
  18233. (getBlockLength): Removed.
  18234. (isInProgress): New function.
  18235. (toString): Made pure virtual.
  18236. (check): New function.
  18237. (send): New function.
  18238. (receivedAction): New function.
  18239. (getId): Made pure virtual.
  18240. (setId): Removed.
  18241. (getIndex): Removed.
  18242. (setIndex): Removed.
  18243. (getBegin): Removed.
  18244. (setBegin): Removed.
  18245. (getLength): Removed.
  18246. (setLength): Removed.
  18247. (getCuid): New function.
  18248. (setCuid): New function.
  18249. (getPeer): New function.
  18250. (setPeer): New function.
  18251. (getSendMessageQueue): New function.
  18252. (setSendMessageQueue): New function.
  18253. (ID): Removed.
  18254. * src/PeerMessage.cc
  18255. (setBitfield): Removed.
  18256. (setBlock): Removed.
  18257. (toString): Removed.
  18258. * src/TorrentMan.h
  18259. (getPieceLength): New function.
  18260. (getPieceLength): New function.
  18261. * src/SendMessageQueue.h
  18262. (REQUEST_TIME_OUT): New definition.
  18263. (RequestSlots): New definition.
  18264. (MessageQueue): New definition.
  18265. (requestSlotMan): Removed.
  18266. (pendingMessages): Removed.
  18267. (requestSlots): New variable.
  18268. (messageQueue): New variable.
  18269. (torrentMan): New variable.
  18270. (peerConnection): New variable.
  18271. (peer): New variable.
  18272. (piece): New variable.
  18273. (getNewPieceAndSendInterest): New function.
  18274. (createPeerMessage): New function.
  18275. (createHandshakeMessage): New function.
  18276. (send): Made private.
  18277. (setPeerMessageCommonProperty): New function.
  18278. (deleteAllRequestSlot): New function.
  18279. (deleteRequestMessageInQueue): New function.
  18280. (cancelAllRequest): Made private.
  18281. (cancelAllRequest): Made private.
  18282. (countRequestSlot): Made private.
  18283. (addPendingMessage): Removed.
  18284. (deletePendingPieceMessage): Removed.
  18285. (deletePendingRequestMessage): Removed.
  18286. (addMessage): New function.
  18287. (deletePieceMessageInQueue): New function.
  18288. (deleteTimeoutRequestSlot): Changed argument.
  18289. (deleteCompletedRequestSlot): Changed argument.
  18290. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  18291. (getCorrespondingRequestSlot): New function.
  18292. (countPendingMessage): Removed.
  18293. (countMessageInQueue): New function.
  18294. (getTorrentMan): New function.
  18295. (getPeerConnection): New function.
  18296. (hasDownloadPiece): New function.
  18297. (getDownloadPiece): New function.
  18298. (setDownloadPiece): New function.
  18299. (syncPiece): New function.
  18300. (sendMessages): New function.
  18301. (sendNow): New function.
  18302. (trySendNow): New function.
  18303. (abortPiece): New function.
  18304. (sendHandshake): New function.
  18305. (receiveMessage): New function.
  18306. (receiveHandshake): New function.
  18307. (createRequestMessage): New function.
  18308. (createCancelMessage): New function.
  18309. (createPieceMessage): New function.
  18310. (createHaveMessage): New function.
  18311. (createChokeMessage): New function.
  18312. (createUnchokeMessage): New function.
  18313. (createInterestedMessage): New function.
  18314. (createNotInterestedMessage): New function.
  18315. (createBitfieldMessage): New function.
  18316. (createKeepAliveMessage): New function.
  18317. * src/SendMessageQueue.cc
  18318. (SendMessageQueue): Removed requestSlotMan.
  18319. Instantiated peerConnection here.
  18320. (~SendMessageQueue): Removed requestSlotMan.
  18321. Added deletion of peerConnection and the contents of messageQueue.
  18322. (send): Updated according to the change of messageQueue.
  18323. (addPendingMessage): Renamed to addMessage.
  18324. (addMessage): New function.
  18325. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  18326. (deletePieceMessageInQueue): New function.
  18327. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  18328. (deleteRequestMessageInQueue): New function.
  18329. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  18330. here.
  18331. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  18332. (...) was moved here.
  18333. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  18334. moved here.
  18335. (deleteCompletedRequestSlot):
  18336. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  18337. (getCorrespondingRequestSlot):
  18338. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  18339. And renamed to getCorrespondingRequestSlot, correcting a typo.
  18340. (countPendingMessage): Renamed to countMessageInQueue.
  18341. (countMessageInQueue): New function.
  18342. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  18343. (receiveHandshake): New function.
  18344. (createHandshakeMessage): New function.
  18345. (receiveMessage): New function.
  18346. (createPeerMessage): New function.
  18347. (syncPiece): New function.
  18348. (getNewPieceAndSendInterest): New function.
  18349. (sendMessages): New function.
  18350. (sendNow): New function.
  18351. (trySendNow): New function.
  18352. (sendHandshake): New function.
  18353. (abortPiece): New function.
  18354. (getDownloadPiece): New function.
  18355. (getPeerMessageCommonProperty): New function.
  18356. (createRequestMessage): New function.
  18357. (createCancelMessage): New function.
  18358. (createPieceMessage): New function.
  18359. (createHaveMessage): New function.
  18360. (createChokeMessage): New function.
  18361. (createUnchokeMessage): New function.
  18362. (createInterestedMessage): New function.
  18363. (createNotInterestedMessage): New function.
  18364. (createBitfieldMessage): New function.
  18365. (createKeepAliveMessage): New function.
  18366. To add simple Content-Disposition support:
  18367. * src/HttpResponseCommand.h (determinFilename): New function.
  18368. * src/HttpResponseCommand.cc (executeInternal):
  18369. Use determinFilename(headers) instead of req->getFile() when comparing
  18370. filename.
  18371. (determinFilename): New function.
  18372. (handleDefaultEncoding): Use determinFilename(headers) instead of
  18373. req->getFile().
  18374. (handleOtherEncoding): Use determinFilename(headers) instead of
  18375. req->getFile().
  18376. * src/Util.h (getContentDispositionFilename): New function.
  18377. * src/Util.cc (getContentDispositionFilename): New function.
  18378. * src/LogFactory.h (release): New function.
  18379. * src/LogFactory.cc (release): New function.
  18380. To fix a bug that causes out-of-bound exception when HTTP status
  18381. line is wrong:
  18382. * src/HttpConnection.cc (receiveResponse): Added a check for header
  18383. size.
  18384. * src/common.h (Deleter): New class.
  18385. * src/SegmentMan.cc
  18386. (~SegmentMan): Added deletion of splitter and diskWriter.
  18387. * src/DownloadEngine.h
  18388. (Commands): Use deque.
  18389. (clearQueue): New function.
  18390. * src/DownloadEngine.cc
  18391. (~DownloadEngine): Added deletion of segmentMan.
  18392. (cleanQueue): New function.
  18393. * src/TorrentDownloadEngine.h
  18394. (TorrentDownloadEngine): The implementation was moved to
  18395. TorrentDownloadEngine.cc.
  18396. (~TorrentDownloadEngine): The implementation was moved to
  18397. TorrentDownloadEngine.cc.
  18398. * src/TorrentDownloadEngine.cc
  18399. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18400. * src/main.cc
  18401. (clearRequest): Removed.
  18402. (handler): Added deletion of e.
  18403. (torrentHandler): Added deletion of te.
  18404. (main): Do not share splitter.
  18405. Use Deleter instead of clearRequest.
  18406. Deletion of classes were updated.
  18407. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18408. * src/main.cc (main): Fixed typo.
  18409. * src/message.h: Fixed typo.
  18410. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18411. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18412. To add --select-file command-line option:
  18413. * src/Util.cc
  18414. (unfoldRange): New function.
  18415. (getNum): New function.
  18416. (unfoldSubRange): New function
  18417. * src/main.cc
  18418. (showUsage): Added help message.
  18419. (main): Added --select-file command-line option. Updated the layout of
  18420. file listing.
  18421. * src/common.h
  18422. (Integers): New definition.
  18423. * src/SocketCore.cc
  18424. (writeData): Removed timeout argument.
  18425. (readData): Removed timeout argument.
  18426. (peekData): Removed timeout argument.
  18427. * src/Socket.cc
  18428. (writeData): Removed timeout argument.
  18429. (readData): Removed timeout argument.
  18430. (peekData): Removed timeout argument.
  18431. * Release 0.4.1
  18432. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18433. To deploy upload rate based choking algorithm:
  18434. * src/PeerInteractionCommand.cc
  18435. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18436. peer currently used.
  18437. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18438. download completes. Simplified.
  18439. (receiveMessage): Updated.
  18440. * src/TorrentMan.h
  18441. (activePeers): New variable.
  18442. (addActivePeer): New function.
  18443. (getActivePeers): New function.
  18444. (deleteActivePeer): New function.
  18445. * src/TorrentMan.cc
  18446. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18447. * src/PeerAbstractCommand.cc
  18448. (onAbort): Use peer->resetStatus().
  18449. * src/main.cc
  18450. (PeerChokeCommand.h): Included.
  18451. (main): Added the instance of ChokingCommand to the command queue.
  18452. * src/Peer.h
  18453. (amChoking): Renamed from amChocking
  18454. (chokingRequired): New variable.
  18455. (optUnchoking): New variable.
  18456. (deltaUpload): New variable.
  18457. (deltaDownload): New variable.
  18458. (addDeltaUpload): New function.
  18459. (resetDeltaUpload): New function.
  18460. (addDeltaDownload): New function.
  18461. (resetDeltaDownload): New function.
  18462. (addPeerUpload): Added a call to addDeltaUpload.
  18463. (addPeerDownload): Added a call to addDeltaDownload.
  18464. * src/Peer.cc
  18465. (shouldBeChoking): Renamed from shouldChoke.
  18466. (resetStatus): New function.
  18467. * src/PeerChokeCommand.h: New class.
  18468. * src/PeerChokeCommand.cc: New class.
  18469. To add lazy upload speed limiter:
  18470. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18471. statistics calculation to TorrentDownloadEngine.
  18472. * src/TorrentConsoleDownloadEngine.cc
  18473. (sendStatistics): Renamed from printStatistics.
  18474. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18475. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18476. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18477. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18478. calculation.
  18479. (sendStatistics): New function as pure virtual function.
  18480. (getUploadSpeed): New function.
  18481. * src/TorrentDownloadEngine.cc
  18482. (initStatistics): New function.
  18483. (calculateSpeed): New function.
  18484. (calculateStatistics): New function.
  18485. * src/SendMessageQueue.h
  18486. (uploadLength): New variable.
  18487. (send): Added an argument.
  18488. (setUploadLimit): New function.
  18489. (getUploadLimit): New function.
  18490. * src/SendMessageQueue.cc
  18491. (send): Added upload speed limiter.
  18492. * src/prefs.h
  18493. (PREF_UPLOAD_LIMIT): New definition.
  18494. * src/PeerInteractionCommand.cc
  18495. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18496. * src/main.cc
  18497. (main): Added --upload-limit option
  18498. For bug fixes:
  18499. * src/main.cc
  18500. (showUsage): Corrected --listen-port help
  18501. Other changes:
  18502. * src/TorrentMan.cc
  18503. (getPeer): Return nullPeer if connection is grather than
  18504. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18505. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18506. To add some useful information to the exception message:
  18507. * src/SocketCore.cc : Updated messages.
  18508. * src/SegmentMan.cc :
  18509. * src/TorrentMan.cc : Updated messages.
  18510. * src/MultiDiskWriter.cc : Updated messages.
  18511. * src/Util.cc : Updated messages.
  18512. * src/AbstractDiskWriter.cc : Updated messages.
  18513. * src/PreAllocationDiskWriter.cc : Updated messages.
  18514. * src/message.cc : Added new messages. Updated some messages.
  18515. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18516. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18517. Updated threshold from 30 to 15.
  18518. * src/AbstractDiskWriter.h (filename): New variable.
  18519. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18520. (createFile): Assigned filename.
  18521. * src/main.cc: Updated the help message for http-auth-scheme.
  18522. * Release 0.4.0
  18523. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18524. To add TrackerUpdateCommand with which replaces
  18525. CompactTrackerResponseProcessor:
  18526. * src/TrackerWatcherCommand.h (req): Removed.
  18527. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18528. if the number of peer connections are less than 30.
  18529. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18530. * src/SegmentMan.h (diskWriter): New function.
  18531. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18532. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18533. (main): Use TrackerUpdateCommand.
  18534. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18535. (req): New variable.
  18536. (setTrackerResponseProcessor): Removed.
  18537. (getTrackerResponseProcessor): Removed.
  18538. (processTrackerResponse): Removed.
  18539. * src/DownloadEngine.h (diskWriter): Removed.
  18540. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18541. to torrentMan->processTrackerResponse().
  18542. To add Util::expandBuffer:
  18543. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18544. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18545. * src/Util.h (expandBuffer): New function.
  18546. To fix the bug that causes segmentation fault when "-l ." is specified
  18547. in command-line option:
  18548. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18549. (openFile): New function.
  18550. (closeFile): New function.
  18551. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18552. (~SimpleLogger): Call closeFile();
  18553. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18554. * src/main.cc (main): Added a check to see logger is configured
  18555. properly.
  18556. To enable HTTP authentication without specifying "--http-auth-scheme"
  18557. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18558. * src/HttpConnection.cc (createRequest): Send Authorization header
  18559. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18560. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18561. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18562. * src/Peer.cc (shouldChoke): Updated algorithm.
  18563. * src/message.h (EX_AUTH_FAILED): New definition.
  18564. (EX_FILE_OPEN): New definition.
  18565. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18566. if status == 401.
  18567. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18568. if req->isTorrent == true.
  18569. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18570. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18571. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18572. (createFile): Updated message.
  18573. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18574. To add a readout of estimated remaining time to normal HTTP/FTP
  18575. downloads:
  18576. * src/ConsoleDownloadEngine.h (startup): New variable.
  18577. (startupLength): New variable.
  18578. (isStartupLengthSet): New variable.
  18579. (avgSpeed): New variable.
  18580. (eta): New variable.
  18581. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18582. estimated remaining time.
  18583. (initStatistics): Initialized newly added variables.
  18584. (calculateStatistics): Calculate average speed and estimated remaining
  18585. time.
  18586. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18587. * src/TrackerDownloadCommand.h: Removed.
  18588. * src/TrackerDownloadCommand.cc: Removed.
  18589. * src/TrackerInitCommand.h: Removed.
  18590. * src/TrackerInitCommand.cc: Removed.
  18591. * src/TrackerUpdateCommand.h: Removed.
  18592. * src/TrackerUpdateCommand.cc: Removed.
  18593. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18594. url written in TrackerInitCommand was moved here. Do not create
  18595. tracker request command if torrentMan->trackers != 0.
  18596. * src/CompactTrackerResponseProcessor.h: New class.
  18597. * src/CompactTrackerResponseProcessor.cc: New class.
  18598. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18599. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18600. Decoupled TorrentDownloadEngine from this.
  18601. * src/SegmentMan.h (init): New function.
  18602. * src/SegmentMan.cc (init): New function.
  18603. * src/TorrentMan.h (responseProcessor): New variable.
  18604. (trackers): New variable.
  18605. (setTrackerResponseProcessor): New function.
  18606. (getTrackerResponseProcessor): New function.
  18607. (processTrackerResponse): New function.
  18608. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18609. (processTrackerResponse): New function.
  18610. * src/main.cc (main): Use ByteArrayDiskWriter and
  18611. CompactTrackerResponseProcessor.
  18612. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18613. processTrackerResponse().
  18614. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18615. readout.
  18616. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18617. which indicates download has completed.
  18618. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18619. (closeFile): fd >= 0, not fd > 0
  18620. * src/main.cc (main): Added short cut for show-files.
  18621. Added short cut for torrent-file.
  18622. Added new command-line option listen-port.
  18623. Updated i18n messages.
  18624. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18625. To add LogFactory which creates singleton logger:
  18626. * src/LogFactory.h: New class.
  18627. * src/LogFactory.cc: New class.
  18628. * src/Command.h (logger): New variable.
  18629. (Constructor): Use LogFactory.
  18630. * src/AbstractCommand.cc: Use Command::logger
  18631. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18632. Use LogFactory.
  18633. * src/SegmentSplitter.h : Made logger protected.
  18634. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18635. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18636. * src/DownloadEngine.h : Made logger protected.
  18637. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18638. * src/PeerInteractionCommand.cc : Use Command::logger.
  18639. * src/HttpResponseCommand.cc : Use Command::logger.
  18640. * src/SegmentMan.h : Made logger private.
  18641. * src/TorrentMan.h : Made logger private.
  18642. * src/TorrentMan.cc : Use LogFactory.
  18643. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18644. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18645. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18646. Use LogFactory.
  18647. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18648. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18649. Use LogFactory.
  18650. * src/DownloadCommand.cc : Use Command::logger.
  18651. * src/PeerAbstractCommand.cc : Use Command::logger.
  18652. * src/PeerListenCommand.cc : Use Command::logger.
  18653. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18654. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18655. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18656. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18657. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18658. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18659. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18660. Use LogFactory.
  18661. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18662. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18663. Use LogFactory.
  18664. * src/main.cc (main): Use LogFactory.
  18665. * src/DiskAdaptor.h (logger): New variable.
  18666. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18667. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18668. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18669. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18670. parameter to a tracker request.
  18671. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18672. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18673. * src/main.cc (setSignalHander): New function.
  18674. (main): Added a handler for SIGTERM.
  18675. (handler): Updated message.
  18676. (torrentHandler): Updated message.
  18677. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18678. * src/TorrentConsoleDownloadEngine.cc
  18679. (onPartialDownloadingCompletes): Renamed as
  18680. onSelectiveDownloadingCompletes.
  18681. (onSelectiveDownloadingCompletes): Updated message.
  18682. To add DiskAdaptor which abstract DiskWriter family:
  18683. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18684. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18685. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18686. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18687. MultiDiskAdaptor.h.
  18688. (readFileEntry): Changed its arguments.
  18689. (setup): setupDiskWriter is merged into this function.
  18690. (setupDiskWriter): Removed.
  18691. (setFileFilter): New function.
  18692. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18693. made in readFileEntry.
  18694. (getFilePath): Removed.
  18695. (getTempFilePath): Removed.
  18696. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18697. (fixFilename): Removed.
  18698. (copySingleFile): Removed.
  18699. (splitMultiFile): Removed.
  18700. (deleteTempFile): Removed.
  18701. (setFileEntriesToDownload): Removed.
  18702. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18703. (isSelectiveDownloadingMode): New function.
  18704. (setAllMultiFileRequestedState): Removed.
  18705. (finishPartialDownloadingMode): Renamed as
  18706. finishSelectiveDownloadingMode.
  18707. (finishSelectiveDownloadingMode): New function.
  18708. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18709. (getSelectedTotalLength): New function.
  18710. (onDownloadComplete): Use diskAdaptor.
  18711. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18712. (Range): Removed.
  18713. (setMultiFileEntries): Renamed as setFileEntries.
  18714. (setFileEntries): New function.
  18715. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18716. (pieceLength): New variable.
  18717. * src/main.cc (printDownloadCompeleteMessage): New function.
  18718. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18719. (main): Renamed torrent-show-files to show-files.
  18720. Rewritten file contents listing.
  18721. * src/TorrentMan.h (FileEntry): Removed.
  18722. (multiFileTopDir): Removed.
  18723. (multiFileEntries): Removed.
  18724. (diskWriter): Removed.
  18725. (diskAdaptor): New variable.
  18726. * src/DefaultDiskWriter.h (totalLength): New variable.
  18727. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18728. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18729. diskWriter.
  18730. * src/TorrentConsoleDownloadEngine.h
  18731. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18732. (partialTotalLength): Renamed as selectedTotalLength.
  18733. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18734. openExistingFile, otherwise call initAndOpenFile.
  18735. (closeFile): fd > 0, not fd != 0.
  18736. * src/DirectDiskAdaptor.h: New class.
  18737. * src/DirectDiskAdaptor.cc: New class.
  18738. * src/MultiDiskAdaptor.h: New class.
  18739. * src/MultiDiskAdaptor.cc: New class.
  18740. * src/CopyDiskAdaptor.h: New class.
  18741. * src/CopyDiskAdaptor.cc: New class.
  18742. * src/DiskAdaptor.h: New class.
  18743. * src/DiskAdaptor.cc: New class.
  18744. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18745. (PREF_SHOW_FILES): New definition.
  18746. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18747. To add the ability to download multi torrent into respective files
  18748. directly:
  18749. * src/DiskWriter.h (openFile): New function.
  18750. (seek): Removed.
  18751. * src/MultiDiskWriter.h: New class.
  18752. * src/MultiDiskWriter.cc: New class.
  18753. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18754. protected.
  18755. (openFile): New function.
  18756. * src/AbstractDiskWriter.cc (openFile): New function.
  18757. * src/prefs.h (V_FALSE): New definition.
  18758. (PREF_DIRECT_FILE_MAPPING): New definition.
  18759. * src/TorrentMan.h (setupDiskWriter): New function.
  18760. (setAllMultiFileRequestedState): New function.
  18761. (onDownloadComplete): New function.
  18762. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18763. (setupDiskWriter): New function.
  18764. (getFilePath): Updated.
  18765. (getTempFilePath): Updated.
  18766. (getSegmentFilePath): Updated.
  18767. (fixFilename): Updated.
  18768. (deleteTempFile): Updated.
  18769. (setAllMultiFileRequestedState): New function.
  18770. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18771. (finishPartialDownloadingMode): Reset requested flags.
  18772. (onDownloadComplete): New function.
  18773. * src/main.cc: Added --direct-file-mapping option.
  18774. Use TorrentMan::setupDiskWriter().
  18775. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18776. onDownloadComplete().
  18777. To fix ETA bug:
  18778. * src/Util.h (difftvsec): New function.
  18779. * src/Util.cc (difftvsec): New function.
  18780. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18781. type of "elapsed" instead of long long int.
  18782. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18783. The updates of statistics takes place every 1 seconds.
  18784. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18785. (calculateSpeed): Changed its argument signature.
  18786. * src/PeerMessage.cc (toString): Fixed message.
  18787. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18788. To print ETA:
  18789. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18790. completion handling when dealing with
  18791. TorrentMan::isPartialDownloadingMode() == true.
  18792. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18793. New function.
  18794. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18795. (sessionDownloadLength): New variable.
  18796. (avgSpeed): New variable.
  18797. (eta): New variable.
  18798. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18799. new variables: eta, avgSpeed, startup.
  18800. (calculateSpeed): Calculate average speed and ETA.
  18801. (printStatistics): Added ETA.
  18802. * src/Util.h (secfmt): New function.
  18803. * src/Util.cc (secfmt): New function.
  18804. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18805. To detect "keep alive" flooding:
  18806. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18807. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18808. variable: keepAliveCount.
  18809. (detectMessageFlooding): Added "keep alive" flooding detection.
  18810. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18811. received.
  18812. To add the ability to download only specified files in multi-file
  18813. torrent:
  18814. * src/BitfieldMan.h (filterBitfield): New variable.
  18815. (filterEnabled): New variable.
  18816. (setFilterBit): New function.
  18817. (enableFilter): New function.
  18818. (disableFilter): New function.
  18819. (isFilterEnabled): New function.
  18820. (getFilteredTotalLength): New function.
  18821. (getCompletedLength): New function.
  18822. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18823. filterBitfield, filterEnabled.
  18824. (CopyConstructor): Added filterBitfield and filterEnabled.
  18825. (operator==): Added filterBitfield and filterEnabled.
  18826. (Destructor): Added filterBitfield.
  18827. (getMissingIndex): Use filterBitfield.
  18828. (getMissingUnusedIndex): Use filterBitfield.
  18829. (getFirstMissingUnusedIndex): Use filterBitfield.
  18830. (getFirstMissingUnusedIndex): Use filterBitfield.
  18831. (getAllMissingIndexes): Use filterBitfield.
  18832. (countMissingBlock): Use filterBitfield.
  18833. (countBlock): Use filterBitfield.
  18834. (setBitInternal): Added new argument on.
  18835. (setUseBit): Use setBitInternal.
  18836. (unsetUseBit): Use setBitInternal.
  18837. (setBit): Use setBitInternal.
  18838. (unsetBit): Use setBitInternal.
  18839. (isAllBitSet): Use filterBitfield.
  18840. (setFilterBit): New function.
  18841. (addFilter): New function.
  18842. (enableFilter): New function.
  18843. (disableFilter): New function.
  18844. (clearFilter): New function.
  18845. (isFilterEnabled): New function.
  18846. (getFilteredTotalLength): New function.
  18847. (getCompletedLength): New function.
  18848. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18849. Initalized newly added variables.
  18850. [FileEntry](offset): New variable.
  18851. [FileEntry](extracted): New variable.
  18852. [FileEntry](requested): New variable.
  18853. (readFileEntry): New function.
  18854. (option): New variable.
  18855. (splitMultiFile): Removed const qualifier.
  18856. (fixFilename): Removed const qualifier.
  18857. (readFileEntryFromMetaInfoFile): New function.
  18858. (finishPartialDownloadingMode): New function.
  18859. (isPartialDownloadingMode): New function.
  18860. (setFileEntriesToDownload): New function.
  18861. (getCompletedLength): New function.
  18862. (getPartialTotalLength): New function.
  18863. * src/TorrentMan.cc (readFileEntry): New function.
  18864. (setup): Use readFileEntry. If no-preallocation option is specified,
  18865. use DefaultDiskWriter.
  18866. (readFileEntryFromMetaInfoFile): New function.
  18867. (fixFilename): Removed const qualifier.
  18868. (splitMultiFile): Removed const qualifier.
  18869. (setFileEntriesToDownload): New function.
  18870. (isPartialDownloadingMode): New function.
  18871. (finishPartialDownloadingMode): New function.
  18872. (getCompletedLength): New function.
  18873. (getPartialTotalLength): New function.
  18874. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18875. New variable.
  18876. (partialTotalLength): New variable.
  18877. (downloadLength): New variable.
  18878. (totalLength): New variable.
  18879. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18880. Added log.
  18881. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18882. partialTotalLength, downloadLength, totalLength.
  18883. (calculate): Calculate downloadLength and totalLength.
  18884. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18885. * src/main.cc (addCommand): Changed argument signature.
  18886. (main): Added new variable: args. Added new option "torrent-show-files"
  18887. "no-preallocation". Usage is not updated yet.
  18888. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18889. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18890. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18891. Attempt to add the ability to listing file entries in a .torrent file.
  18892. This feature is not yet complete.
  18893. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18894. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18895. (getName): New function.
  18896. * src/TorrentMan.h (getMultiFileEntries): New function.
  18897. (getName): New function.
  18898. * src/main.cc (main): Use above 2 funtion.
  18899. * Release 0.3.2
  18900. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18901. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18902. (detectMessageFlooding): Updated threshold value.
  18903. (checkLongTimePeerChoking): Updated timeout value.
  18904. (getNewPieceAndSendInterest): Added debug log.
  18905. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18906. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18907. (getPeer): Updated.
  18908. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18909. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18910. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18911. is localhost.
  18912. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18913. * src/PendingMessage.cc (processMessage): Not to send piece message
  18914. if peer is not interested in the pieces localhost has.
  18915. * src/Peer.cc (shouldChoke): Updated.
  18916. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18917. * src/Util.cc (isPowerOf): New function.
  18918. * src/Util.h (isPowerOf): New function.
  18919. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18920. whether or not it is power of 2.
  18921. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18922. Added new class SendMessageQueue that includes PendingMessages and
  18923. RequestSlotMan.
  18924. * src/SendMessageQueue.h: New class.
  18925. * src/SendMessageQueue.cc: New class.
  18926. * src/PendingMessage.h: Added new member variable blockIndex and its
  18927. accessors.
  18928. (createRequestMessage): Updated.
  18929. * src/PendingMessage.cc (createRequestMessage): Updated.
  18930. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18931. SendMessageQueue.
  18932. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18933. (receiveMessage): Updated with SendMessageQueue.
  18934. (deletePendingPieceMessage): Removed.
  18935. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18936. (sendInterest): Updated with SendMessageQueue.
  18937. (createRequestPendingMessage): Updated with SendMessageQueue.
  18938. (sendMessages): Updated with SendMessageQueue.
  18939. (onAbort): Updated with SendMessageQueue.
  18940. (keepAlive): Updated with SendMessageQueue.
  18941. (beforeSocketCheck): Updated SendMessageQueue.
  18942. * src/PeerInteractionCommand (sendMessages): Shuffle
  18943. missingBLockIndexes before using it.
  18944. Added its own timeout for peer connection.
  18945. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18946. setter.
  18947. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18948. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18949. Added setTimeout() call.
  18950. (executeInternal): Added setTimeout() call.
  18951. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18952. Added timeout.
  18953. (isTimeoutDetected): Updated.
  18954. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18955. option.
  18956. Added *simple* message flooding checker.
  18957. * src/PeerInteractionCommand.cc (executeInternal):
  18958. Added detectMessageFlooding() call.
  18959. (detectMessageFlooding): New function.
  18960. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18961. (beforeSocketCheck): Added detectMessageFlooding() call.
  18962. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18963. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18964. Removed deletePendingPieceMessage(), getRequestSlot(),
  18965. deleteRequestSlot(), deleteAllRequestSlot().
  18966. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18967. Added checkLongTimePeerChoking() call.
  18968. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18969. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18970. if duplicate == false.
  18971. The parameter "uploaded" and "downloaded" in the tracker request are
  18972. the size since the client sent the "started" event to the tracker.
  18973. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18974. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18975. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18976. getSessionDownloadedSize(), getSessionUploadedSize().
  18977. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18978. getSessionUploadedSize() instead of getDownloadedSize(),
  18979. getUploadedSize().
  18980. * src/PendingMessage.cc (processMessage): Do not send request message
  18981. if the peer is choking the client.
  18982. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18983. less than interval.
  18984. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18985. * configure.in: Added gnutls support. Added several CPP macros.
  18986. * m4/openssl.m4: Added.
  18987. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18988. readData(), peekData(). Added gnutls support.
  18989. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18990. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18991. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18992. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18993. Instead, added a check for whether setup method has executed
  18994. successfully.
  18995. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18996. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18997. * src/Makefile.am: Updated.
  18998. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18999. using whether OpenSSL or gcrypt, depending on the result of configure
  19000. script.
  19001. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  19002. messageDigest.h.
  19003. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  19004. * src/PeerListenCommand.cc: Added log about port binded successfully.
  19005. Fixed memory leak.
  19006. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  19007. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  19008. Removed instantiation of TrackerInitCommand. Instead,
  19009. TrackerWatcherCommand is instantiated and pushed to the command queue.
  19010. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  19011. ENABLE_SSL.
  19012. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  19013. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  19014. If a piece is already acquired by another command, delete the request
  19015. slots for the piece.
  19016. * src/TrackerUpdateCommand.cc (execute):
  19017. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  19018. Added a check whether peer list is null.
  19019. Fixed the bug that causes sending completed event to the tracker
  19020. several times.
  19021. * src/TrackerInitCommand.cc (execute):
  19022. Fixed the bug that causes sending completed event to the tracker
  19023. several times.
  19024. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  19025. by using messageDigest.h.
  19026. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19027. * PeerConnection.cc: Replaced log message "keep-alive" with
  19028. "keep alive".
  19029. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  19030. localhost long time.
  19031. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  19032. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  19033. at most 100 failure entry from the list. If with duplicate = false,
  19034. MAX_PEER_LIST is not checked.
  19035. * PeerListenCommand.cc: Fixed the argument order of log message.
  19036. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19037. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  19038. Added warn().
  19039. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  19040. Implemented warn().
  19041. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  19042. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19043. * Request.h: Added AFTER_COMPLETED event.
  19044. * TorrentDownloadEngine.cc: Prints "Download complete" message
  19045. instead of downloaded size and progress(%) after download completes.
  19046. * PeerInteractionCommand.cc: After download completes, sends unchoke
  19047. message to the peer if it is interested in what localhost has
  19048. downloaded.
  19049. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  19050. destination instead of just renaming it.
  19051. * TorrentMan.cc: Added deleteTempFile().
  19052. * PeerAbstractCommand.cc: do not stop execution after download
  19053. completes. This makes localhost a seeder.
  19054. * Util.{h,cc}: Added fileCopy().
  19055. * PeerListenCommand.cc: do not stop execution after download completes.
  19056. This makes localhost a seeder.
  19057. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  19058. Added TorrentMan::deleteTempFile() to torrentHandler.
  19059. Initialized the variable dir as ".".
  19060. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  19061. Deleted renameSingleFile().
  19062. Added copySingleFile(), deleteTempFile().
  19063. * DownloadEngine.h: Added virtual function afterEachIteration().
  19064. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  19065. in onEndOfRun() to afterEachIteration().
  19066. In onEndOfRun(), changed if condition to check whether filenameFixed is
  19067. true.
  19068. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  19069. In rangedFileCopy(), added try-catch block to properly close file
  19070. descriptors.
  19071. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  19072. Added afterEachIteration(), isFilenameFixed().
  19073. * Peer.cc: Changed choking strategy.
  19074. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  19075. * TrackerInitCommand.cc: Send completed event only once.
  19076. * DownloadEngine.cc: Added a call to afterEachIteration().
  19077. * TrackerUpdateCommand.cc: Do not stop execution after download
  19078. completes.
  19079. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  19080. connect the peers at most MAX_PEER_UPDATE when a peer list is
  19081. received from a tracker.
  19082. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  19083. Decreased the number of failure peers to delete to 0(just comment out
  19084. the line).
  19085. * Release 0.3.1
  19086. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19087. * PeerInteractionCommand.cc: added a call to
  19088. TorrentMan::unadvertisePiece in Destructor.
  19089. * PeerInteractionCommand.cc: make have message sent immediately
  19090. if the size of pending message queue is zero.
  19091. * TorrentMan.cc: set the maximum size of peer list to 250.
  19092. * TorrentMan.h: changed the container type of Peers and UsedPieces
  19093. to deque.
  19094. * Util.cc: fixed rangedFileCopy.
  19095. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  19096. to Constructor. Also, moved digest cleanup to Destructor.
  19097. * MetaFileUtil.cc: fixed memory leak
  19098. * replaced std::vector with std::deque.
  19099. * AbstractCommand.cc: casted timeout value to long long int.
  19100. * ChunkedEncoding.cc: fixed memory leak.
  19101. * PeerInteractionCommand.cc: casted timeout value to long long int.
  19102. * SleepCommand.cc: casted timeout value to long long int.
  19103. * Data.cc: fixed memory leak.
  19104. * Data.cc: fixed toLLInt().
  19105. * BitfieldMan.cc: fixed memory leak.
  19106. * TorrentMan.cc: initialized storeDir to ".".
  19107. * TorrentMan.cc: fixed memory leak.
  19108. * TorrentMan.cc: corrected file paths of splitted files.
  19109. * PeerAbstractCommand.cc: casted timeout to long long int.
  19110. * main.cc: added delete(req) and delete(te->diskWriter).
  19111. * RequestSlot.cc: casted timeout value to long long int.
  19112. * Request.cc: fixed memory leak.
  19113. * PendingMessage.cc: make HAVE messages sent only when peer does not
  19114. have the piece.
  19115. * Peer.{h,cc}: added hasPiece(int index).
  19116. * main.cc: corrected addCommand.
  19117. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19118. * BitTorrent protocol support added.
  19119. * Release 0.3.0
  19120. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19121. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  19122. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19123. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  19124. decoding did not work properly.
  19125. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19126. * DownloadEngine.h: included sys/time.h
  19127. * DownloadEngine.cc: remove sys/time.h
  19128. * Makefile.am (SUBDIRS): Add intl.
  19129. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  19130. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19131. * main.cc: correct help message for --http-auth-scheme.
  19132. * main.cc: changed e-mail address for bug reports.
  19133. * ja.po: added japanese translation.
  19134. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19135. * SimpleLogger.cc: flush log file instead of stdout.
  19136. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19137. * main.cc: Fixed command-line option: max-tries
  19138. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  19139. does not equal to seg.sp.
  19140. * DownloadCommand.cc: If EOF is got from the server and the total size
  19141. of file is not zero, then throw DlRetryEx.
  19142. * main.cc: Set the minium value of min-segment-size to 1024.
  19143. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  19144. fails because of a regression since 0.2.0 release.
  19145. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19146. * HttpConnection.cc:
  19147. * common.h: defined the user agent name as macro
  19148. * DownloadEngine.{h, cc}:
  19149. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  19150. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  19151. * main.cc: Download complete/abort message is now generated by main.
  19152. * Makefile.am (SUBDIRS): Add m4.
  19153. (ACLOCAL_AMFLAGS): New variable.
  19154. (EXTRA_DIST): New variable.
  19155. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  19156. * gettext: added gettext functionality
  19157. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19158. * AbstractCommand.cc:
  19159. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  19160. unregister its cuid from SegmentMan.
  19161. * DownloadEngine.cc: .aria2 file was written when a downloading
  19162. failed with errors.
  19163. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  19164. Added "User-Agent" header to CONNECT proxy request.
  19165. Fixed "Proxy-Authorization" header. Now proxy authorization works
  19166. properly.
  19167. * Logger.h:
  19168. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  19169. * ChunkedEncoding.cc: Added #include directive for strings.h
  19170. * Release 0.2.1
  19171. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19172. * Util.{h,cc}: added startsWith().
  19173. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  19174. Util::endsWith().
  19175. * SocketCore.cc: struct addrinfo is now zero-initialized.
  19176. * common.h: added #include directive of limit.h.
  19177. * DownloadEngine.cc: added #include directive of sys/time.h and
  19178. algorithm.
  19179. * Exception.h: added #include directive of stdio.h.
  19180. * AbstractCommand.h: added #include directive of sys/time.h.
  19181. * DownloadCommand.h: added #include directive of sys/time.h.
  19182. * *.h: added #include directive of common.h to all base classes.
  19183. subclasses' one was removed.
  19184. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  19185. does not define these macros.
  19186. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19187. * Release 0.2.0
  19188. * main.cc:
  19189. * HttpInitiateConnectionCommand.{h,cc}:
  19190. * prefs.h:
  19191. * HttpConnection.{h,cc}: added --http-proxy-method option.
  19192. We can now use GET command in http proxy.
  19193. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19194. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  19195. that splits slowest segment of SegmentMan::commands vector.
  19196. This is the default split algorithm of aria2.
  19197. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  19198. that splits first segment of SegmentMan::commands vector.
  19199. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  19200. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  19201. * Segment.h:
  19202. * SegmentMan.cc: Added speed field to Segment.h
  19203. * main.cc: -s option now affects all URLs in command-line arguemtns.
  19204. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  19205. * message.h: Change file size related %d to %lld.
  19206. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19207. * FtpInitiateConnectionCommand.{h,cc}:
  19208. * FtpNegotiationCommand.{h,cc}:
  19209. * FtpDownloadCommand.{h,cc}:
  19210. * FtpConnection.{h,cc}: Added FTP support
  19211. * SimpleLogger.cc: Log message now includes time information.
  19212. * main.cc: The value of --http-auth-scheme option is chagned from
  19213. 'BASIC' to 'basic'
  19214. * main.cc: Added --timeout command-line option.
  19215. * main.cc: Added --min-segment-size command-line option.
  19216. * main.cc: Added --max-retries command-line option.
  19217. * prefs.h: option string constants are now defined in prefs.h
  19218. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19219. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  19220. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  19221. with version 0.1.0's one.
  19222. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19223. * configure.in: Added --enable-ssl option to configure script.
  19224. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  19225. cannot permit absoluteURI as Request-URI.
  19226. * HttpConnection.cc: Added Referer support.
  19227. * main.cc: Added referer command-line option.
  19228. * main.cc: Added rety-wait command-line option.
  19229. * Exception.h: Fixed formating bug in Exception::setMsg()
  19230. * SocketCore.{h,cc}:
  19231. * Socket.{h, cc}:
  19232. * Request.cc:
  19233. * InitiateConnectionCommandFactory.cc:
  19234. * HttpRequestCommand.cc: Added HTTPS support.
  19235. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  19236. for SocketCore.
  19237. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  19238. size is wrong
  19239. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  19240. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  19241. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  19242. * Release 0.1.0