ChangeLog 692 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336
  1. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Rewirtten util::isNumber()
  3. * src/util.cc
  4. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  6. because without it localized error messages are not printed
  7. correctly.
  8. * src/Platform.cc
  9. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Added unit tests for util::getContentDispositionFilename() from
  11. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  12. tests are passed.
  13. * src/util.cc
  14. * test/UtilTest.cc
  15. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  17. util.cc
  18. * src/Platform.cc
  19. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  20. Support RFC2231 "Parameter Value Character Set and Language
  21. Information" in Content-Disposition header.
  22. * src/HttpResponse.cc
  23. * src/util.cc
  24. * src/util.h
  25. * test/UtilTest.cc
  26. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  27. Print CXXFLAGS
  28. * configure.ac
  29. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  30. Small optimization for A2_WOULDBLOCK(e)
  31. * src/SocketCore.cc
  32. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Removed test file
  34. * test/CookieStorageTest.cc
  35. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Check both EAGAIN and EWOULDBLOCK
  37. * src/SocketCore.cc
  38. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  39. Removed ret == 0 checking for SSL_read(), SSL_write() and
  40. SSL_peek() because the checks are done in the caller. In
  41. SocketBuffer::send(), throw exception if nothing could be written
  42. and socket error was not EWOULDBLOCK
  43. * src/SocketBuffer.cc
  44. * src/SocketCore.cc
  45. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Fixed error code handling so that it can handle Winsock2 error
  47. code.
  48. * src/SocketCore.cc
  49. * src/SocketCore.h
  50. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Bump up version number to 1.9.0a
  52. * configure.ac
  53. * doc/aria2c.1.txt
  54. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Fixed the bug that aria2 doesn't handle return value if error
  56. occurred before download begins.
  57. * src/MultiUrlRequestInfo.cc
  58. * src/main.cc
  59. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  60. Removed SegmentManFactory class.
  61. * src/AbstractSegmentManFactory.h
  62. * src/DefaultSegmentManFactory.cc
  63. * src/DefaultSegmentManFactory.h
  64. * src/Makefile.am
  65. * src/RequestGroup.cc
  66. * src/RequestGroup.h
  67. * src/SegmentManFactory.h
  68. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  69. Destroyed digest context after getting calculated hash.
  70. * src/Piece.cc
  71. * src/Piece.h
  72. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  73. Removed BitfieldManFactory class.
  74. * src/BitfieldManFactory.cc
  75. * src/BitfieldManFactory.h
  76. * src/DefaultPieceStorage.cc
  77. * src/Makefile.am
  78. * src/PeerSessionResource.cc
  79. * src/Piece.cc
  80. * src/main.cc
  81. * test/DefaultPieceStorageTest.cc
  82. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  83. Removed unused methods from BitfieldMan class. Moved
  84. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  85. class.
  86. * src/BitfieldMan.cc
  87. * src/BitfieldMan.h
  88. * src/BitfieldManFactory.cc
  89. * src/BitfieldManFactory.h
  90. * src/bitfield.h
  91. * src/main.cc
  92. * test/BitfieldManTest.cc
  93. * test/DefaultPieceStorageTest.cc
  94. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Moved getFirstNMissingIndex to bitfield.h and made it return the
  96. number of appended indexes.
  97. * src/BitfieldMan.cc
  98. * src/BitfieldMan.h
  99. * src/Piece.cc
  100. * src/Piece.h
  101. * src/bitfield.h
  102. * test/BitfieldManTest.cc
  103. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  104. Added more tests.
  105. * test/BitfieldManTest.cc
  106. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  108. unused block indexes at once instead of calling
  109. getFirstMissingUnusedIndex() multiple times. Made use of it in
  110. Piece class and DefaultBtRequestFactory class via Piece class.
  111. * src/BitfieldMan.cc
  112. * src/BitfieldMan.h
  113. * src/DefaultBtRequestFactory.cc
  114. * src/Piece.cc
  115. * src/Piece.h
  116. * test/BitfieldManTest.cc
  117. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Use std::make_pair(...)
  119. * src/DHTMessageTracker.cc
  120. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Use std::make_pair(...)
  122. * src/bittorrent_helper.cc
  123. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. urlencode(removeFragment(...)) in parseUrl(...)
  125. * src/Request.cc
  126. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  128. * src/AbstractCommand.cc
  129. * src/AdaptiveURISelector.cc
  130. * src/BtPieceMessage.cc
  131. * src/BtPortMessage.cc
  132. * src/CreateRequestCommand.cc
  133. * src/DHTAbstractNodeLookupTask.cc
  134. * src/DHTBucket.cc
  135. * src/DHTGetPeersCommand.cc
  136. * src/DHTMessageDispatcherImpl.cc
  137. * src/DHTMessageFactoryImpl.cc
  138. * src/DHTMessageTracker.cc
  139. * src/DHTPeerAnnounceStorage.cc
  140. * src/DHTRoutingTable.cc
  141. * src/DHTSetup.cc
  142. * src/DefaultBtAnnounce.cc
  143. * src/DefaultBtInteractive.cc
  144. * src/DefaultBtMessageDispatcher.cc
  145. * src/DefaultBtMessageReceiver.cc
  146. * src/DefaultBtProgressInfoFile.cc
  147. * src/DefaultBtRequestFactory.cc
  148. * src/DefaultPeerStorage.cc
  149. * src/DefaultPieceStorage.cc
  150. * src/DownloadCommand.cc
  151. * src/DownloadEngine.cc
  152. * src/EpollEventPoll.cc
  153. * src/FileAllocationCommand.cc
  154. * src/FileEntry.cc
  155. * src/FtpNegotiationCommand.cc
  156. * src/HandshakeExtensionMessage.cc
  157. * src/HttpListenCommand.cc
  158. * src/HttpServer.cc
  159. * src/HttpSkipResponseCommand.cc
  160. * src/IteratableChunkChecksumValidator.cc
  161. * src/Logger.h
  162. * src/MSEHandshake.cc
  163. * src/MetalinkPostDownloadHandler.cc
  164. * src/MultiDiskAdaptor.cc
  165. * src/PeerAbstractCommand.cc
  166. * src/PeerConnection.cc
  167. * src/PeerListenCommand.cc
  168. * src/PeerReceiveHandshakeCommand.cc
  169. * src/RequestGroup.cc
  170. * src/RequestGroupMan.cc
  171. * src/SegmentMan.cc
  172. * src/SelectEventPoll.cc
  173. * src/ServerStat.cc
  174. * src/SimpleBtMessage.cc
  175. * src/SocketCore.cc
  176. * src/TrackerWatcherCommand.cc
  177. * src/UTMetadataDataExtensionMessage.cc
  178. * src/UTMetadataRequestFactory.cc
  179. * src/UTMetadataRequestTracker.cc
  180. * src/XmlRpcMethod.cc
  181. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  182. Changed log level from debug to info
  183. * src/BtDependency.cc
  184. * src/BtPostDownloadHandler.cc
  185. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. Removed unused PeerSessionResource::_latency.
  187. * src/BtConstants.h
  188. * src/BtPieceMessage.cc
  189. * src/Peer.cc
  190. * src/Peer.h
  191. * src/PeerSessionResource.cc
  192. * src/PeerSessionResource.h
  193. * test/PeerSessionResourceTest.cc
  194. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Fixed the bug that --file-allocation=falloc doesn't work with
  196. single file download.
  197. * src/AbstractSingleDiskAdaptor.cc
  198. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Release 1.8.2
  200. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Added Portuguese translation. Updated Ukrainian and Spanish
  202. translation. Thanks to all translators.
  203. * po/LINGUAS
  204. * po/es.po
  205. * po/pt.po
  206. * po/uk.po
  207. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Remove fragment from redirected URI.
  209. * src/Request.cc
  210. * test/RequestTest.cc
  211. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. Updated po templates.
  213. * po/aria2.pot
  214. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  215. Drop legacy ifdef for ares support and code cleanup.
  216. * src/AsyncNameResolver.cc
  217. * src/AsyncNameResolver.h
  218. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  219. Call ares_library_init and ares_library_cleanup if they are
  220. available. Some code cleanups.
  221. * src/Platform.cc
  222. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Call ares_process_fd() each time after epoll to handle timeout.
  224. * src/EpollEventPoll.cc
  225. * src/EpollEventPoll.h
  226. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  227. Suppressed type-cast compiler warning
  228. * src/CookieStorage.cc
  229. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. Fixed compile error on Mac OS X.
  231. * src/CookieStorage.h
  232. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  233. Removed cookietest.txt from Makefile.am
  234. * test/Makefile.am
  235. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  236. Updated version number in man page.
  237. * doc/aria2c.1.txt
  238. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Rewritten help message for --allow-overwrite option.
  240. * doc/aria2c.1.txt
  241. * src/usage_text.h
  242. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Added bittorrent key to the response of tellStatus XML-RPC method.
  244. The associated value of the key is a struct and contains data
  245. retrieved from .torrent file, such as name, announce-list,
  246. comment, etc.
  247. * doc/aria2c.1.txt
  248. * src/XmlRpcMethodImpl.cc
  249. * src/XmlRpcMethodImpl.h
  250. * test/XmlRpcMethodTest.cc
  251. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  252. Removed parse(std::istream&) and parse(const std::string&) from
  253. CookieParser.
  254. * src/CookieParser.cc
  255. * src/CookieParser.h
  256. * test/CookieParserTest.cc
  257. * test/cookietest.txt: Removed
  258. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Fixed the bug that cookie for domain a.b.c is not sent to the host
  260. a.b.c if no other cookies are stored. Fixed the bug that
  261. Cookie::markOriginServerOnly() is not called when cookies are
  262. loaded from file/sqlite3 database.
  263. * src/Cookie.h
  264. * src/CookieStorage.cc
  265. * src/NsCookieParser.cc
  266. * src/Sqlite3MozCookieParser.cc
  267. * test/CookieStorageTest.cc
  268. * test/NsCookieParserTest.cc
  269. * test/Sqlite3MozCookieParserTest.cc
  270. * test/cookies.sqlite
  271. * test/nscookietest.txt
  272. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  274. both _pieceStorage and _segmentMan are initialized or they are
  275. not.
  276. * src/RequestGroup.cc
  277. * src/RequestGroup.h
  278. * test/BtDependencyTest.cc
  279. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  280. Bump up version number to 1.8.2
  281. * configure.ac
  282. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Replaced "." with A2STR::DOT_C
  284. * src/AbstractCommand.cc
  285. * src/Cookie.cc
  286. * src/DownloadContext.cc
  287. * src/FtpConnection.cc
  288. * src/RequestGroup.cc
  289. * src/util.cc
  290. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Replaced isNumberAndDotsNotation() with isNumericHost().
  292. isNumericHost() can handle IPv6 address.
  293. * src/Cookie.cc
  294. * src/CookieStorage.cc
  295. * src/util.cc
  296. * src/util.h
  297. * test/CookieTest.cc
  298. * test/UtilTest.cc
  299. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Included A2STR.h
  301. * src/CookieStorage.cc
  302. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Rewritten Cookie storage.
  304. * src/Cookie.cc
  305. * src/Cookie.h
  306. * src/CookieParser.cc
  307. * src/CookieStorage.cc
  308. * src/CookieStorage.h
  309. * src/a2functional.h
  310. * test/CookieParserTest.cc
  311. * test/CookieStorageTest.cc
  312. * test/CookieTest.cc
  313. * test/HttpResponseTest.cc
  314. * test/TestUtil.h
  315. * test/a2functionalTest.cc
  316. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  317. Handle redirected URI which is not properly percent encoded.
  318. * src/Request.cc
  319. * test/RequestTest.cc
  320. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  322. not found' in the N times(N is where --max-file-not-found=N, N>0)
  323. in a row without single '200 OK' response.
  324. * src/RequestGroup.cc.
  325. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  327. readout by 80 characters in mingw32 build. Catch exception in
  328. DHTMessageReceiver::receiveMessage().
  329. * src/AbstractDiskWriter.cc
  330. * src/ConsoleStatCalc.cc
  331. * src/DHTMessageReceiver.cc
  332. * src/File.cc
  333. * src/RequestGroupMan.cc
  334. * src/a2io.h
  335. * test/FileTest.cc
  336. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  337. Fixed compile error with intel compiler
  338. * src/XmlRpcMethodImpl.cc
  339. * src/XmlRpcMethodImpl.h
  340. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  341. Release 1.8.1
  342. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Updated Swedish, Russian and Italian translations. Thanks to all
  344. translators.
  345. * po/it.po
  346. * po/ru.po
  347. * po/sv.po
  348. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Fixed broken OptionParser::findByName().
  350. * src/OptionParser.cc
  351. * test/OptionParserTest.cc
  352. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Fixed test error without BitTorrent support.
  354. * test/XmlRpcMethodTest.cc
  355. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Fixed compile error without GNUTLS/OpenSSL.
  357. * src/util.cc
  358. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Changed compression level to Z_DEFAULT_COMPRESSION.
  360. * src/GZipEncoder.cc
  361. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Added missing command line options: --http-no-cache,
  363. --bt-save-metadata and --bt-metadata-only.
  364. * doc/xmlrpc/aria2rpc
  365. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  366. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  367. client accepts gzip content encoding.
  368. * src/A2STR.cc
  369. * src/A2STR.h
  370. * src/GZipEncoder.cc
  371. * src/GZipEncoder.h
  372. * src/HttpHeader.cc
  373. * src/HttpHeader.h
  374. * src/HttpServer.cc
  375. * src/HttpServer.h
  376. * src/HttpServerBodyCommand.cc
  377. * src/HttpServerCommand.cc
  378. * src/Makefile.am
  379. * src/XmlRpcResponse.cc
  380. * src/XmlRpcResponse.h
  381. * test/GZipEncoderTest.cc
  382. * test/Makefile.am
  383. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  384. Added XML-RPC client sample code in Python.
  385. * doc/aria2c.1.txt
  386. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Updated po templates.
  388. * po/aria2.pot
  389. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Bump up version number to 1.8.1
  391. * configure.ac
  392. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  393. Added version number to man page. Updated copyright year in man
  394. page.
  395. * doc/aria2c.1.txt
  396. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  397. Rewritten toTagString
  398. * src/NameMatchOptionHandler.cc
  399. * test/OptionHandlerTest.cc
  400. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Added dir and files key to the response struct of aria2.tellStatus
  402. XML-RPC method. The value associated with files key is the list
  403. of files. Its element is the same struct used in aria2.getFiles
  404. XML-RPC method. Added uris key to the response struct of
  405. aria2.getFiles XML-RPC method. The value associated with uris key
  406. is the list of URIs. Its element is the same struct used in
  407. aria2.getUris XML-RPC method.
  408. * doc/aria2c.1.txt
  409. * src/XmlRpcMethodImpl.cc
  410. * test/XmlRpcMethodTest.cc
  411. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Added aria2.getSessionInfo XML-RPC method. This method returns a
  413. struct containing Session ID, which is generated each time when
  414. aria2 is invoked.
  415. * doc/aria2c.1.txt
  416. * doc/xmlrpc/aria2rpc
  417. * src/DownloadEngine.cc
  418. * src/DownloadEngine.h
  419. * src/XmlRpcMethodFactory.cc
  420. * src/XmlRpcMethodImpl.cc
  421. * src/XmlRpcMethodImpl.h
  422. * test/XmlRpcMethodTest.cc
  423. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Moved generateRandomKey() from bittorrent_helper to util.
  425. * src/DHTBucket.cc
  426. * src/DHTNode.cc
  427. * src/bittorrent_helper.cc
  428. * src/bittorrent_helper.h
  429. * src/util.cc
  430. * src/util.h
  431. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Updated doc about GID.
  433. * doc/aria2c.1.txt
  434. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  435. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  436. accepts a negative integer. 'offset' == -1 points last download
  437. in the waiting queue and 'offset' == -2 points the download before
  438. the last download, and so on. The downloads in the response are in
  439. reversed order.
  440. * doc/aria2c.1.txt
  441. * src/XmlRpcMethodImpl.cc
  442. * src/XmlRpcMethodImpl.h
  443. * test/XmlRpcMethodTest.cc
  444. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Added --human-readable option. This option, when true is given,
  446. prints sizes and speed in human readable format(e.g., 1.2Ki,
  447. 3.4Mi) in the console readout. The default value is true and it
  448. looks exactly the same as aria2-1.8.0. So the 'new feature'
  449. appears when false is given. In this case, sizes and speed are
  450. printed without in bytes. No Ki, Mi units conversion is used.
  451. This may be useful for a program to parse the output of aria2.
  452. * doc/aria2c.1.txt
  453. * src/ConsoleStatCalc.cc
  454. * src/ConsoleStatCalc.h
  455. * src/OptionHandlerFactory.cc
  456. * src/main.cc
  457. * src/prefs.cc
  458. * src/prefs.h
  459. * src/usage_text.h
  460. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  462. option accepts empty string "". When "" is given, it erases
  463. previously defined proxy.
  464. * doc/aria2c.1.txt
  465. * src/OptionHandlerImpl.h
  466. * src/usage_text.h
  467. * test/OptionHandlerTest.cc
  468. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Code cleanup for proxy URI handling.
  470. * src/AbstractCommand.cc
  471. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  472. Added --bt-metadata-only option. If true is given to this option,
  473. aria2 downloads metadata only. The file(s) described in metadata
  474. will not be downloaded. This option has effect only when
  475. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  476. * doc/aria2c.1.txt
  477. * src/OptionHandlerFactory.cc
  478. * src/UTMetadataPostDownloadHandler.cc
  479. * src/download_helper.cc
  480. * src/prefs.cc
  481. * src/prefs.h
  482. * src/usage_text.h
  483. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Fixed memory leak. Commands stored in std::deque<Command*> are not
  485. deleted when exception is thrown. Make sure that when passing
  486. std::deque<Command*> to function to store Commands, handle
  487. exception and delete these Commands.
  488. * src/AbstractCommand.cc
  489. * src/CheckIntegrityCommand.cc
  490. * src/FileAllocationCommand.cc
  491. * src/RequestGroup.cc
  492. * src/TrackerWatcherCommand.cc
  493. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  494. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  495. * src/A2STR.cc
  496. * src/A2STR.h
  497. * src/FtpNegotiationCommand.cc
  498. * src/HttpResponseCommand.cc
  499. * src/util.cc
  500. * src/util.h
  501. * test/UtilTest.cc
  502. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Treat --dir="" as --dir="."
  504. * src/FtpNegotiationCommand.cc
  505. * src/HttpResponseCommand.cc
  506. * src/Metalink2RequestGroup.cc
  507. * src/UTMetadataPostDownloadHandler.cc
  508. * src/bittorrent_helper.cc
  509. * src/download_helper.cc
  510. * src/util.cc
  511. * src/util.h
  512. * test/UtilTest.cc
  513. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Code clean up.
  515. * src/main.cc
  516. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Reset GID to 1 when they reach maximum value. Rewritten
  518. CUIDCounter::newID()
  519. * src/CUIDCounter.h
  520. * src/RequestGroup.cc
  521. * src/RequestGroup.h
  522. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Documented --http-no-cache option in man page.
  524. * doc/aria2c.1.txt
  525. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  526. Added --http-no-cache option. When true is given, aria2 sends
  527. Cache-Control: no-cache and Pragma: no-cache header to avoid
  528. cached content. If false is given , these headers are not sent
  529. and you can add Cache-Control header with a directive you like
  530. using --header option.
  531. * src/HttpRequest.cc
  532. * src/HttpRequest.h
  533. * src/HttpRequestCommand.cc
  534. * src/OptionHandlerFactory.cc
  535. * src/download_helper.cc
  536. * src/prefs.cc
  537. * src/prefs.h
  538. * src/usage_text.h
  539. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  540. Removed Logger from OptionParser. When OptionParser is used to
  541. parse options at bootstrap, LogFactory is not configured yet
  542. properly. When LogFactory is used in OptionParser, it initializes
  543. itself to return a logger which has no ability to write log to the
  544. disk.
  545. * src/OptionParser.cc
  546. * src/OptionParser.h
  547. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Added following sentance to the help message of --out option:
  549. --out option is ignored when -Z is used.
  550. * doc/aria2c.1.txt
  551. * src/usage_text.h
  552. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Added --bt-save-metadata option to -i list options.
  554. * doc/aria2c.1.txt
  555. * src/download_helper.cc
  556. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  557. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  558. additional libraries.
  559. * src/MultiUrlRequestInfo.cc
  560. * src/NameResolver.cc
  561. * src/SelectEventPoll.cc
  562. * src/SelectEventPoll.h
  563. * src/SocketCore.cc
  564. * src/SocketCore.h
  565. * src/a2netcompat.h
  566. * src/daemon.cc
  567. * src/main.cc
  568. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. Fixed typo.
  570. * src/DHTMessageReceiver.cc
  571. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  572. Fixed the bug that causes segmentation fault if unknown option is
  573. put in aria2.conf file. BUG#2928303
  574. * src/OptionParser.cc
  575. * src/OptionParser.h
  576. * src/option_processing.cc
  577. * test/OptionParserTest.cc
  578. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  579. Ignore port message with port=0.
  580. * src/BtPortMessage.cc
  581. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Run autoupdate
  583. * configure.ac
  584. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Updated autoconf/automake auxiliary files.
  586. * INSTALL
  587. * config.guess
  588. * config.sub
  589. * depcomp
  590. * install-sh
  591. * m4/intldir.m4
  592. * missing
  593. * mkinstalldirs
  594. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. Removed unused function.
  596. * src/SharedHandle.h
  597. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  598. Find pooled socket using all cached addresses.
  599. * src/DNSCache.h
  600. * src/DownloadEngine.cc
  601. * src/DownloadEngine.h
  602. * src/InitiateConnectionCommand.cc
  603. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Updated copyright year.
  605. * src/version_usage.cc
  606. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Pool connection if _contentEncodingDecoder is used and server
  608. supports persistent connection.
  609. * src/HttpDownloadCommand.cc
  610. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  611. Updated doc.
  612. * src/DownloadCommand.cc
  613. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Untabify. Fixed one line in copyright which is longer than 80
  615. columns.
  616. * src
  617. * test
  618. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Release 1.8.0
  620. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  621. Updated po templates.
  622. * po/aria2.pot
  623. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Documented --bt-save-metadata option in man page.
  625. * doc/aria2c.1.txt
  626. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  627. Fixed usage of --bt-save-metadata option.
  628. * src/usage_text.h
  629. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Updated po templates.
  631. * po/aria2.pot
  632. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  634. causes name resolution error when none of network interface has
  635. IPv4 address.
  636. * src/main.cc
  637. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Bump up version number to 1.8.0.
  639. * configure.ac
  640. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. Use info hash as a filename when saving BitTorrent metadata.
  642. * src/UTMetadataPostDownloadHandler.cc
  643. * test/UTMetadataPostDownloadHandlerTest.cc
  644. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  645. Documented system.multicall XML-RPC method in man page.
  646. * doc/aria2c.1.txt
  647. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Added signal handler for SIGHUP to save .aria2 file when terminal
  649. is closed. The handler is the same one for SIGINT and SIGTERM.
  650. * src/MultiUrlRequestInfo.cc
  651. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. Defined method name in XmlRpcMethod subclasses.
  653. * src/XmlRpcMethodFactory.cc
  654. * src/XmlRpcMethodImpl.cc
  655. * src/XmlRpcMethodImpl.h
  656. * test/XmlRpcMethodTest.cc
  657. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Added system.multicall XML-RPC method.
  659. * src/XmlRpcMethod.cc
  660. * src/XmlRpcMethod.h
  661. * src/XmlRpcMethodFactory.cc
  662. * src/XmlRpcMethodImpl.cc
  663. * src/XmlRpcMethodImpl.h
  664. * test/XmlRpcMethodTest.cc
  665. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  666. Check structure depth when decoding.
  667. * src/bencode.cc
  668. * src/bencode.h
  669. * test/BencodeTest.cc
  670. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  671. Documented tellStopped XML-RPC method in man page.
  672. * doc/aria2c.1.txt
  673. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  674. Added tellStopped XML-RPC method to aria2rpc.
  675. * doc/xmlrpc/aria2rpc
  676. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Added tellStopped XML-RPC method. This method returns stopped
  678. download in the specified range. It takes same parameters with
  679. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  680. * src/XmlRpcMethodFactory.cc
  681. * src/XmlRpcMethodImpl.cc
  682. * src/XmlRpcMethodImpl.h
  683. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  685. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  686. when conducting unit tests because they fail if networking
  687. interface is not configured with IPv4 address.
  688. * src/NameResolver.cc
  689. * src/SocketCore.cc
  690. * src/SocketCore.h
  691. * src/a2netcompat.h
  692. * test/AllTest.cc
  693. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Fixed unit test error
  695. * test/UTMetadataPostDownloadHandlerTest.cc
  696. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. Defined static string constants for efficiency.
  698. * src/XmlRpcMethodImpl.cc
  699. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  700. Added --bt-save-metadata option. When true is given, it saves
  701. metadata as .torrent file. This option has effect only when
  702. BitTorrent Magnet URI is used. The filename is name in metadata
  703. with suffix .torrent. The directory to be saved is the same
  704. directory where download file is saved. If the same file already
  705. exists, metdata is not saved.
  706. * src/OptionHandlerFactory.cc
  707. * src/UTMetadataPostDownloadHandler.cc
  708. * src/UTMetadataPostDownloadHandler.h
  709. * src/message.h
  710. * src/prefs.cc
  711. * src/prefs.h
  712. * src/usage_text.h
  713. * test/UTMetadataDataExtensionMessageTest.cc
  714. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  715. Added util::saveAs() function. Use it in Signature::save().
  716. * src/Signature.cc
  717. * src/util.cc
  718. * src/util.h
  719. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Upcase info hash in Magnet URI.
  721. * doc/aria2c.1.txt
  722. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Refactored RequestGroupMan::changeReservedGroupPosition()
  724. * src/RequestGroupMan.cc
  725. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Updated the description for aria2.addTorrent XML-RPC method.
  727. * doc/aria2c.1.txt
  728. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Added changePosition to aria2rpc.
  730. * doc/xmlrpc/aria2rpc
  731. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Documented changePosition XML-RPC method in man page.
  733. * doc/aria2c.1.txt
  734. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  736. pos and how. This method changes the position of download denoted
  737. by gid. If how is POS_SET, it moves the download to a position
  738. relative to the beginning of the queue. If how is POS_CUR, it
  739. moves the download to a position relative to the current
  740. position. If how is POS_END, it moves the download to a position
  741. relative to the end of the queue. If the destination position is
  742. less than 0 or beyond the end of the queue, it moves the download
  743. to the beginning or the end of the queue respectively. Returns
  744. the destination position.
  745. * src/RequestGroupMan.cc
  746. * src/RequestGroupMan.h
  747. * src/XmlRpcMethodFactory.cc
  748. * src/XmlRpcMethodImpl.cc
  749. * src/XmlRpcMethodImpl.h
  750. * test/RequestGroupManTest.cc
  751. * test/XmlRpcMethodTest.cc
  752. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. Added getOption and getGlobalOption to aria2rpc.
  754. * doc/xmlrpc/aria2rpc
  755. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. Documented getOption and getGlobalOption XML-RPC method in man
  757. page
  758. * doc/aria2c.1.txt
  759. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Added getOption and getGlobalOption XML-RPC method. getOption
  761. takes GID as a parameter and returns its options as struct.
  762. getGlobalOption takes no parameter and returns global
  763. options. Because global option is used as a template for the
  764. option of newly added downloads, it includes options returned by
  765. getOption.
  766. * src/Option.h
  767. * src/XmlRpcMethodFactory.cc
  768. * src/XmlRpcMethodImpl.cc
  769. * src/XmlRpcMethodImpl.h
  770. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  771. Sort _optionHandlers in OptionParser by name in ascending order.
  772. Use vector instead of deque for efficiency.
  773. * src/OptionHandler.h
  774. * src/OptionHandlerFactory.h
  775. * src/OptionParser.cc
  776. * src/OptionParser.h
  777. * src/version_usage.cc
  778. * test/OptionParserTest.cc
  779. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  780. Code cleanup
  781. * src/XmlRpcMethod.cc
  782. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Documented about followedBy and belongsTo in man page.
  784. * doc/aria2c.1.txt
  785. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  786. Added following 2 keys, followedBy and belongsTo, to the response
  787. of tellStatus.
  788. followedBy: List of GIDs which are generated by the consequence of
  789. this download. For example, when aria2 downloaded Metalink file,
  790. it generates downloads described in it(see *--follow-metalink*
  791. option). This value is useful to track these auto generated
  792. downloads. If there is no such downloads, this key will not be
  793. included in the response.
  794. belongsTo: GID of a parent download. Some downloads are a part of
  795. another download. For example, if a file in Metalink has
  796. BitTorrent resource, the download of .torrent is a part of that
  797. file. If this download has no parent, this key will not be
  798. included in the response.
  799. * src/BtPostDownloadHandler.cc
  800. * src/DownloadResult.h
  801. * src/Metalink2RequestGroup.cc
  802. * src/MetalinkPostDownloadHandler.cc
  803. * src/RequestGroup.cc
  804. * src/RequestGroup.h
  805. * src/UTMetadataPostDownloadHandler.cc
  806. * src/XmlRpcMethodImpl.cc
  807. * src/XmlRpcMethodImpl.h
  808. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Assigned BObject in BDE() to avoid segmentation fault when calling
  810. methods of BDE::none().
  811. * src/BDE.cc
  812. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Show info hash in Magnet URI in upper case letters in -S output.
  814. * src/bittorrent_helper.cc
  815. * test/BittorrentHelperTest.cc
  816. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Removed old useless comment
  818. * src/MultiUrlRequestInfo.cc
  819. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  821. not properly used in configure script and failed to detect gnutls.
  822. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  823. and the initialization of pkg-config is done in first occurrence
  824. of PKG_CHECK_MODULES which is not executed because it is inside of
  825. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  826. * configure.ac
  827. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Release 1.7.2
  829. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Fixed the bug that RequestGroupMan::downloadFinished() returns
  831. true even if all downloads haven't finished, especially when
  832. PostDownloadHandler is involved. Changed the condition so that it
  833. only returns true if both _requestGroups and _reservedGroups are
  834. empty.
  835. * src/RequestGroupMan.cc
  836. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Log listening port for BitTorrent/DHT in notice level.
  838. * src/DHTConnectionImpl.cc
  839. * src/PeerListenCommand.cc
  840. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Updated po templates.
  842. * po/aria2.pot
  843. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Bump up version number to 1.7.2
  845. * configure.ac
  846. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Changed default value of --enable-dht from 'false' to 'true'.
  848. * doc/aria2c.1.txt
  849. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. Enabled DHT by default because of Magnet URI support. To disable
  851. DHT, use --enable-dht=false
  852. * src/OptionHandlerFactory.cc
  853. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  854. Print Magnet URI in -S output.
  855. * src/AnnounceList.cc
  856. * src/bittorrent_helper.cc
  857. * src/bittorrent_helper.h
  858. * test/BittorrentHelperTest.cc
  859. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Added --bt-prioritize-piece option to aria2rpc.
  861. * doc/xmlrpc/aria2rpc
  862. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  863. Refer Magnet URI in --help. Made some cosmetic changes.
  864. * src/version_usage.cc
  865. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Updated -T and -M option.
  867. * doc/aria2c.1.txt
  868. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Fixed typo
  870. * doc/aria2c.1.txt
  871. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Fixed the bug that line separator is missing in horizontal bar.
  873. * doc/xmlrpc/aria2mon
  874. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  875. Updated usage text for --metalink-file option.
  876. * src/usage_text.h
  877. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  878. If '-' is given as an argument to --metalink-file option, aria2
  879. reads Metalink file from stdin.
  880. * src/OptionHandlerFactory.cc
  881. * src/OptionHandlerImpl.h
  882. * src/a2io.h
  883. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. Fixed the bug that aria2 listens wrong port if --interface option
  885. is used.
  886. * src/SocketCore.cc
  887. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  888. Fixed the bug that query parameter in magnet URI is not decoded.
  889. * src/magnet.cc
  890. * test/MagnetTest.cc
  891. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Specified defaultSize as an argument for easy testing.
  893. * src/util.cc
  894. * src/util.h
  895. * test/UtilTest.cc
  896. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  897. Release 1.7.1
  898. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Bump up version number to 1.7.1
  900. * configure.ac
  901. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Fixed the bug --bt-prioritize-piece=tail is not working.
  903. * src/util.cc
  904. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  905. Release 1.7.0
  906. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  907. Updated po templates.
  908. * po/aria2.pot
  909. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Updated help message for --bt-prioritize-piece. Some cosmetic
  911. changes.
  912. * doc/aria2c.1.txt
  913. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  915. * src/usage_text.h
  916. * src/util.cc
  917. * test/UtilTest.cc
  918. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. Updated Russian, Ukrainian, German and French translations.
  920. Thanks to all translators involved.
  921. * po/de.po
  922. * po/fr.po
  923. * po/ru.po
  924. * po/uk.po
  925. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Mentioned about pkg-config
  927. * README
  928. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Fixed typo. Referred --index-out option in BitTorrent notes.
  930. * README
  931. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. Store all addresses found by getifaddrs() and getaddrinfo(). In
  933. bind, try all addresses until success
  934. * src/SocketCore.cc
  935. * src/SocketCore.h
  936. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  937. Updated po templates.
  938. * po/aria2.pot
  939. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Bump up version number to 1.7.0
  941. * configure.ac
  942. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Fixed compile error if ENABLE_BITTORRENT is undefined.
  944. * src/DefaultPieceStorage.cc
  945. * src/DefaultPieceStorage.h
  946. * src/PieceStorage.h
  947. * src/UnknownLengthPieceStorage.cc
  948. * src/UnknownLengthPieceStorage.h
  949. * test/MockPieceStorage.h
  950. * test/ProtocolDetectorTest.cc
  951. * test/XmlRpcMethodTest.cc
  952. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. Documented in man page that if getifaddrs() is missing,
  954. --interface option doesn't accept interface name.
  955. * doc/aria2c.1.txt
  956. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  957. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  958. * src/DefaultBtAnnounce.cc
  959. * src/DefaultBtAnnounce.h
  960. * test/DefaultBtAnnounceTest.cc
  961. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  962. Fixed the bug that connection is always dropped if handshake
  963. message in extension protocol don't have metadata_size.
  964. src/HandshakeExtensionMessage.cc
  965. * src/HandshakeExtensionMessage.cc
  966. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  968. text saying DHT is recommended when Magnet URI is provided.
  969. * doc/aria2c.1.txt
  970. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  972. URI is supplied. Notify user that they should consider enabling
  973. DHT if they use Magnet URI.
  974. * src/RequestGroup.cc
  975. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Added --disable-ipv6 option to disable IPv6.
  977. * doc/aria2c.1.txt
  978. * src/InitiateConnectionCommand.cc
  979. * src/NameResolver.cc
  980. * src/NameResolver.h
  981. * src/OptionHandlerFactory.cc
  982. * src/main.cc
  983. * src/prefs.cc
  984. * src/prefs.h
  985. * src/usage_text.h
  986. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Updated usage text for --bt-prioritize-piece option.
  988. * doc/aria2c.1.txt
  989. * src/usage_text.h
  990. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  991. In configure script, if --with-PACKAGE and --enable-FEATURE are
  992. given and PACKAGE is missing in the system or FEATURE cannot be
  993. enabled, print error message and stop the script.
  994. * configure.ac
  995. * m4/aria2_arg.m4
  996. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  997. Halt metadata download immediately when metadata download is done.
  998. Don't wait unresponsive tracker.
  999. * src/ByteArrayDiskWriter.h
  1000. * src/DefaultBtInteractive.cc
  1001. * src/DefaultExtensionMessageFactory.cc
  1002. * src/DefaultExtensionMessageFactory.h
  1003. * src/PeerInteractionCommand.cc
  1004. * src/UTMetadataDataExtensionMessage.cc
  1005. * src/UTMetadataDataExtensionMessage.h
  1006. * src/UTMetadataRequestExtensionMessage.cc
  1007. * test/UTMetadataDataExtensionMessageTest.cc
  1008. * test/UTMetadataRequestExtensionMessageTest.cc
  1009. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Documented --interface option in man page.
  1011. * doc/aria2c.1.txt
  1012. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Try resolved address in the order received from the resolver.
  1014. * src/DNSCache.h
  1015. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. Added debug logs.
  1017. * src/SocketCore.cc
  1018. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Fixed type of tail to uint64_t
  1020. * src/util.cc
  1021. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Added --interface option. This feature binds sockets to given
  1023. interface. You can specify interface name, IP address and
  1024. hostname.
  1025. * configure.ac
  1026. * src/OptionHandlerFactory.cc
  1027. * src/SocketCore.cc
  1028. * src/SocketCore.h
  1029. * src/main.cc
  1030. * src/message.h
  1031. * src/prefs.cc
  1032. * src/prefs.h
  1033. * src/usage_text.h
  1034. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Updated man page for bt-prioritize-piece option in -i list.
  1036. * doc/aria2c.1.txt
  1037. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1038. Added bt-prioritize-piece option to -i list.
  1039. * src/download_helper.cc
  1040. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Removed --http-auth-scheme option from man page.
  1042. * doc/aria2c.1.txt
  1043. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Removed --http-auth-scheme option since it doesn't do nothing.
  1045. * src/OptionHandlerFactory.cc
  1046. * src/prefs.cc
  1047. * src/prefs.h
  1048. * src/usage_text.h
  1049. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Adjusted the number of peer info which get_peers reply message can
  1051. carry.
  1052. * src/DHTGetPeersReplyMessage.cc
  1053. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Added extension_message_test_helper.h to aria2c_SOURCES.
  1055. * test/Makefile.am
  1056. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Documented --bt-prioritize-piece option in man page.
  1058. * doc/aria2c.1.txt
  1059. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Added option --bt-prioritize-piece. This option instruct aria2 to
  1061. try to download first and last pieces of each file first. The
  1062. argument can contain 2 keywords:head and tail. To include both
  1063. keywords, they must be separated by comma. These keywords can take
  1064. one parameter, SIZE. For example , if head=SIZE is specified,
  1065. pieces in the range of first SIZE bytes of each file get higher
  1066. priority. tail=SIZE means the range of last SIZE bytes of each
  1067. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1068. * src/DefaultPieceStorage.h
  1069. * src/Makefile.am
  1070. * src/OptionHandlerFactory.cc
  1071. * src/OptionHandlerImpl.h
  1072. * src/PriorityPieceSelector.cc
  1073. * src/PriorityPieceSelector.h
  1074. * src/RequestGroup.cc
  1075. * src/prefs.cc
  1076. * src/prefs.h
  1077. * src/usage_text.h
  1078. * src/util.cc
  1079. * src/util.h
  1080. * test/Makefile.am
  1081. * test/MockPieceSelector.h
  1082. * test/PriorityPieceSelectorTest.cc
  1083. * test/UtilTest.cc
  1084. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1085. Fixed typo
  1086. * src/HttpRequest.h
  1087. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1088. In Magnet URI with tr parameter, put each announce URI in separate
  1089. tier.
  1090. * src/bittorrent_helper.cc
  1091. * test/BittorrentHelperTest.cc
  1092. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Renamed ExtensionMessage::getBencodedData() as
  1094. ExtensionMessage::getPayload()
  1095. * src/BtExtendedMessage.cc
  1096. * src/ExtensionMessage.h
  1097. * src/HandshakeExtensionMessage.cc
  1098. * src/HandshakeExtensionMessage.h
  1099. * src/UTMetadataDataExtensionMessage.cc
  1100. * src/UTMetadataDataExtensionMessage.h
  1101. * src/UTMetadataRejectExtensionMessage.cc
  1102. * src/UTMetadataRejectExtensionMessage.h
  1103. * src/UTMetadataRequestExtensionMessage.cc
  1104. * src/UTMetadataRequestExtensionMessage.h
  1105. * src/UTPexExtensionMessage.cc
  1106. * src/UTPexExtensionMessage.h
  1107. * test/HandshakeExtensionMessageTest.cc
  1108. * test/MockExtensionMessage.h
  1109. * test/UTMetadataDataExtensionMessageTest.cc
  1110. * test/UTMetadataRejectExtensionMessageTest.cc
  1111. * test/UTMetadataRequestExtensionMessageTest.cc
  1112. * test/UTPexExtensionMessageTest.cc
  1113. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1114. Updated man page for BitTorrent Magnet URI.
  1115. * doc/aria2c.1.txt
  1116. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Call DownloadContext::setOwnerRequestGroup() in
  1118. RequestGroup::setDownloadContext().
  1119. * src/BtDependency.cc
  1120. * src/RequestGroup.cc
  1121. * src/RequestGroup.h
  1122. * src/download_helper.cc
  1123. * test/DefaultBtMessageDispatcherTest.cc
  1124. * test/DefaultExtensionMessageFactoryTest.cc
  1125. * test/HandshakeExtensionMessageTest.cc
  1126. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1128. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1129. from metadata, use new metadata2Torrent() function.
  1130. * src/BtDependency.cc
  1131. * src/UTMetadataPostDownloadHandler.cc
  1132. * src/bittorrent_helper.cc
  1133. * src/bittorrent_helper.h
  1134. * test/BittorrentHelperTest.cc
  1135. * test/BtDependencyTest.cc
  1136. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Use createRequestGroupForUri to create the download for torrent
  1138. file.
  1139. * src/Metalink2RequestGroup.cc
  1140. * test/Metalink2RequestGroupTest.cc
  1141. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1142. Fixed typo
  1143. * src/DownloadContext.h
  1144. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1145. Use createRequestGroupForBitTorrent()
  1146. * src/BtPostDownloadHandler.cc
  1147. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1148. Added remove().
  1149. * src/Option.cc
  1150. * src/Option.h
  1151. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Removed options which is only valid for URIs specified in
  1153. command-line. If they are left, because op is used as a template
  1154. for new RequestGroup(such as created in XML-RPC command,
  1155. BtPostDownloadHandler etc), they causes unintentional effect.
  1156. * src/main.cc
  1157. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Refer to option value of PREF_OUT only in download_helper.
  1159. * src/FtpNegotiationCommand.cc
  1160. * src/HttpResponseCommand.cc
  1161. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1163. * src/download_helper.cc
  1164. * src/download_helper.h
  1165. * src/XmlRpcMethodImpl.cc
  1166. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Updated man page for changeOption XML-RPC method.
  1168. * doc/aria2c.1.txt
  1169. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Added --bt-max-peers option to changeOption XML-RPC method.
  1171. * src/XmlRpcMethod.cc
  1172. * src/XmlRpcMethodImpl.cc
  1173. * test/XmlRpcMethodTest.cc
  1174. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1176. * test/XmlRpcMethodTest.cc
  1177. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1178. Removed redundant DownloadContext::hasAttribute(...) calls.
  1179. * src/ConsoleStatCalc.cc
  1180. * src/RequestGroup.cc
  1181. * src/XmlRpcMethodImpl.cc
  1182. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Changed the number of tracker request attempt from 5 to 2.
  1184. * src/TrackerWatcherCommand.cc
  1185. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Use host and protocol in original URI, because URI selector
  1187. selects URI based on original URI, not redirected one.
  1188. * src/Request.cc
  1189. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Fixed the bug which causes segmentation fault with tellWaiting
  1191. XML-RPC method when BitTorrent download is waiting. The key of
  1192. BtRegistry is changed from info hash to GID, because it is
  1193. registered per RequestGroup, not info hash.
  1194. * src/BtRegistry.cc
  1195. * src/BtRegistry.h
  1196. * src/BtSetup.cc
  1197. * src/ConsoleStatCalc.cc
  1198. * src/InitiatorMSEHandshakeCommand.cc
  1199. * src/PeerInitiateConnectionCommand.cc
  1200. * src/PeerInteractionCommand.cc
  1201. * src/PeerInteractionCommand.h
  1202. * src/PeerReceiveHandshakeCommand.cc
  1203. * src/RequestGroup.cc
  1204. * src/XmlRpcMethodImpl.cc
  1205. * test/BtRegistryTest.cc
  1206. * test/XmlRpcMethodTest.cc
  1207. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Updated man page for changeOption XML-RPC method.
  1209. * doc/aria2c.1.txt
  1210. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1211. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1212. method.
  1213. * src/XmlRpcMethod.cc
  1214. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Documented about BitTorrent Magnet URI in man page.
  1216. * doc/aria2c.1.txt
  1217. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1218. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1219. inherited to generated RequestGroup.
  1220. * src/UTMetadataPostDownloadHandler.cc
  1221. * test/UTMetadataPostDownloadHandlerTest.cc
  1222. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1223. Prepended "[METADATA]" before dn.
  1224. * src/bittorrent_helper.cc
  1225. * test/BittorrentHelperTest.cc
  1226. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1227. Rewritten Magnet URI parser.
  1228. * src/Makefile.am
  1229. * src/ProtocolDetector.cc
  1230. * src/bittorrent_helper.cc
  1231. * src/bittorrent_helper.h
  1232. * src/download_helper.cc
  1233. * src/magnet.cc
  1234. * src/magnet.h
  1235. * test/BittorrentHelperTest.cc
  1236. * test/MagnetTest.cc
  1237. * test/Makefile.am
  1238. * test/ProtocolDetectorTest.cc
  1239. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1240. Use hton64
  1241. * src/base32.cc
  1242. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Added Base32 encoded BitTorrent Magnet Link support.
  1244. * src/Makefile.am
  1245. * src/base32.cc
  1246. * src/base32.h
  1247. * src/bittorrent_helper.cc
  1248. * test/Base32Test.cc
  1249. * test/BittorrentHelperTest.cc
  1250. * test/Makefile.am
  1251. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1253. supported yet. Fixed typo in method name in RequestGroup. In
  1254. metadataGetMode, don't show "Your share ratio was ..." message.
  1255. * src/DefaultBtInteractive.cc
  1256. * src/DefaultBtInteractive.h
  1257. * src/DownloadHandlerFactory.cc
  1258. * src/DownloadHandlerFactory.h
  1259. * src/HandshakeExtensionMessage.cc
  1260. * src/Makefile.am
  1261. * src/Metalink2RequestGroup.cc
  1262. * src/PeerInteractionCommand.cc
  1263. * src/RequestGroup.cc
  1264. * src/RequestGroup.h
  1265. * src/UTMetadataPostDownloadHandler.cc
  1266. * src/UTMetadataPostDownloadHandler.h
  1267. * src/download_helper.cc
  1268. * test/HandshakeExtensionMessageTest.cc
  1269. * test/Makefile.am
  1270. * test/UTMetadataPostDownloadHandlerTest.cc
  1271. * test/UTMetadataRejectExtensionMessageTest.cc
  1272. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. In metadataGetMode, don't show SEEDING.
  1274. * src/ConsoleStatCalc.cc
  1275. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Fixed ut_metadata data handling. Implemented
  1277. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1278. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1279. metadata_size is received.
  1280. * src/DefaultExtensionMessageFactory.cc
  1281. * src/DefaultExtensionMessageFactory.h
  1282. * src/HandshakeExtensionMessage.cc
  1283. * src/HandshakeExtensionMessage.h
  1284. * src/UTMetadataDataExtensionMessage.cc
  1285. * src/UTMetadataDataExtensionMessage.h
  1286. * src/UTMetadataRequestExtensionMessage.cc
  1287. * src/UTMetadataRequestFactory.cc
  1288. * src/UTMetadataRequestFactory.h
  1289. * src/UTMetadataRequestTracker.cc
  1290. * src/UTMetadataRequestTracker.h
  1291. * test/DefaultExtensionMessageFactoryTest.cc
  1292. * test/HandshakeExtensionMessageTest.cc
  1293. * test/MockBtMessage.h
  1294. * test/UTMetadataDataExtensionMessageTest.cc
  1295. * test/UTMetadataRequestExtensionMessageTest.cc
  1296. * test/UTMetadataRequestFactoryTest.cc
  1297. * test/UTMetadataRequestTrackerTest.cc
  1298. * test/extension_message_test_helper.h
  1299. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Drop connection if ut_metadata reject message is received.
  1301. * src/UTMetadataRejectExtensionMessage.cc
  1302. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1304. get high enough in that mode.
  1305. * src/ActivePeerConnectionCommand.cc
  1306. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Added BitTorrent magnet link support to ProtocolDetector.
  1308. * src/ProtocolDetector.cc
  1309. * src/ProtocolDetector.h
  1310. * test/ProtocolDetectorTest.cc
  1311. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Don't inject validator into BtMessage in metadataGetMode because
  1313. most of the checks depends on the total length of download but it
  1314. is unknown. Delegate metadataGetMode to BtMessage.
  1315. * src/DefaultBtMessageFactory.cc
  1316. * src/DefaultBtMessageFactory.h
  1317. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1318. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1319. * src/DefaultPieceStorage.h
  1320. * src/PieceStorage.h
  1321. * src/UnknownLengthPieceStorage.h
  1322. * test/MockPieceStorage.h
  1323. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Added markTotalLengthIsKnown().
  1325. * src/DownloadContext.h
  1326. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1328. missing. If metadata is missing, always use DHT when it is ready.
  1329. * src/BtSetup.cc
  1330. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Added parseMagnetLink(). Hex encoded info hash is supported.
  1332. Base32 encoded info hash is not supported yet.
  1333. * src/bittorrent_helper.cc
  1334. * src/bittorrent_helper.h
  1335. * test/BittorrentHelperTest.cc
  1336. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Added FromHex()
  1338. * src/util.cc
  1339. * src/util.h
  1340. * test/UtilTest.cc
  1341. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Added _metadataGetMode member variable. It toggles the action when
  1343. messages are received: usually they almost do nothing if
  1344. _metadataGetMode is true.
  1345. * src/AbstractBtMessage.cc
  1346. * src/AbstractBtMessage.h
  1347. * src/BtAllowedFastMessage.cc
  1348. * src/BtBitfieldMessage.cc
  1349. * src/BtCancelMessage.cc
  1350. * src/BtChokeMessage.cc
  1351. * src/BtHaveAllMessage.cc
  1352. * src/BtHaveMessage.cc
  1353. * src/BtInterestedMessage.cc
  1354. * src/BtNotInterestedMessage.cc
  1355. * src/BtPieceMessage.cc
  1356. * src/BtRejectMessage.cc
  1357. * src/BtRequestMessage.cc
  1358. * src/BtUnchokeMessage.cc
  1359. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Added bencode::decode overload functions. They have extra argument
  1361. 'end', passed by reference. 'end' points to the beyond the last
  1362. position of data used in decoding process.
  1363. * src/bencode.cc
  1364. * src/bencode.h
  1365. * test/BencodeTest.cc
  1366. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1367. Initial support of Extension for Peers to Send Metadata
  1368. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1369. metadata from swarm.
  1370. * src/BtConstants.h
  1371. * src/DefaultBtInteractive.cc
  1372. * src/DefaultExtensionMessageFactory.cc
  1373. * src/DefaultExtensionMessageFactory.h
  1374. * src/ExtensionMessage.h
  1375. * src/ExtensionMessageRegistry.h
  1376. * src/HandshakeExtensionMessage.cc
  1377. * src/HandshakeExtensionMessage.h
  1378. * src/Makefile.am
  1379. * src/PeerConnection.h
  1380. * src/PeerInteractionCommand.cc
  1381. * src/UTMetadataDataExtensionMessage.cc
  1382. * src/UTMetadataDataExtensionMessage.h
  1383. * src/UTMetadataExtensionMessage.cc
  1384. * src/UTMetadataExtensionMessage.h
  1385. * src/UTMetadataRejectExtensionMessage.cc
  1386. * src/UTMetadataRejectExtensionMessage.h
  1387. * src/UTMetadataRequestExtensionMessage.cc
  1388. * src/UTMetadataRequestExtensionMessage.h
  1389. * src/bittorrent_helper.cc
  1390. * src/bittorrent_helper.h
  1391. * test/BittorrentHelperTest.cc
  1392. * test/DefaultExtensionMessageFactoryTest.cc
  1393. * test/HandshakeExtensionMessageTest.cc
  1394. * test/Makefile.am
  1395. * test/UTMetadataDataExtensionMessageTest.cc
  1396. * test/UTMetadataRejectExtensionMessageTest.cc
  1397. * test/UTMetadataRequestExtensionMessageTest.cc
  1398. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. Cancel segment in prepareForRetry() because there is a chance that
  1400. the command has segments.
  1401. * src/CreateRequestCommand.cc
  1402. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1403. Fixed the bug that slow server is not knocked down in favor of
  1404. faster one.
  1405. * src/AbstractCommand.cc
  1406. * src/DefaultPieceStorage.cc
  1407. * src/DefaultPieceStorage.h
  1408. * src/PieceStorage.h
  1409. * src/UnknownLengthPieceStorage.cc
  1410. * src/UnknownLengthPieceStorage.h
  1411. * test/MockPieceStorage.h
  1412. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Fixed the bug that Request object is not added to
  1414. _inFlightRequests in findFasterRequest().
  1415. * src/FileEntry.cc
  1416. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1417. Changed the strategry of how to increase the number of outstanding
  1418. requests. Now the number is doubled if there are no outstanding
  1419. requests after receiving messages.
  1420. * src/BtConstants.h
  1421. * src/DefaultBtInteractive.cc
  1422. * src/DefaultBtInteractive.h
  1423. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Check socket for reading if there are outstanding requests.
  1425. * src/PeerInteractionCommand.cc
  1426. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1427. Moved frequently called methods to header file so they get
  1428. inlined.
  1429. * src/RequestSlot.cc
  1430. * src/RequestSlot.h
  1431. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1432. Copied in_addr instead of just casting from char* which might
  1433. violate strict aliasing rules.
  1434. * src/AsyncNameResolver.cc
  1435. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Use dynamic_pointer_cast
  1437. * test/BtPieceMessageTest.cc
  1438. * test/BtRequestMessageTest.cc
  1439. * test/DefaultBtRequestFactoryTest.cc
  1440. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Added testSetUrl20()
  1442. * test/RequestTest.cc
  1443. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1444. Code cleanup
  1445. * src/bittorrent_helper.cc
  1446. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Use C++ style cast
  1448. * src/AsyncNameResolver.cc
  1449. * src/Base64.h
  1450. * src/BtBitfieldMessage.cc
  1451. * src/BtHandshakeMessage.cc
  1452. * src/DefaultBtMessageFactory.cc
  1453. * src/DefaultBtProgressInfoFile.cc
  1454. * src/EpollEventPoll.cc
  1455. * src/ExpatMetalinkProcessor.cc
  1456. * src/IteratableChecksumValidator.cc
  1457. * src/IteratableChunkChecksumValidator.cc
  1458. * src/MessageDigestHelper.cc
  1459. * src/Platform.cc
  1460. * src/RequestGroupMan.cc
  1461. * src/SingleFileAllocationIterator.cc
  1462. * src/Sqlite3MozCookieParser.cc
  1463. * src/XML2SAXMetalinkProcessor.cc
  1464. * src/Xml2XmlRpcRequestProcessor.cc
  1465. * src/util.cc
  1466. * src/util.h
  1467. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1468. Fixed integer potential alignment problem.
  1469. * src/bitfield.h
  1470. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1471. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1472. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1473. include file ordering.
  1474. * src/PeerListProcessor.h
  1475. * src/bittorrent_helper.cc
  1476. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1478. * src/Request.cc
  1479. * src/util.cc
  1480. * src/util.h
  1481. * test/RequestTest.cc
  1482. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1483. Rewritten util::uitos()
  1484. * src/util.h
  1485. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1486. Code cleanup
  1487. * src/Request.cc
  1488. * src/Request.h
  1489. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1490. Rewritten Request::parseUrl()
  1491. * src/Request.cc
  1492. * test/RequestTest.cc
  1493. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Removed unused macro SAFE_CHARS
  1495. * src/Request.cc
  1496. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Updated doc
  1498. * src/DHTRoutingTableDeserializer.cc
  1499. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Release 1.6.3
  1501. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Removed unused function.
  1503. * test/DHTPeerAnnounceStorageTest.cc
  1504. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Only decrement cols if cols > 0
  1506. * src/ConsoleStatCalc.cc
  1507. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1509. translations. Thanks to all translators.
  1510. * po/ca.po
  1511. * po/fr.po
  1512. * po/it.po
  1513. * po/ja.po
  1514. * po/pl.po
  1515. * po/ru.po
  1516. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Updated translation template
  1518. * po
  1519. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Fixed compile error without ssl library.
  1521. * src/util.cc
  1522. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1523. Logged received nodes in get_peers reply message.
  1524. * src/DHTAbstractNodeLookupTask.cc
  1525. * src/DHTAbstractNodeLookupTask.h
  1526. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1528. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1529. * src/DHTMessageDispatcherImpl.cc
  1530. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1531. Don't reuse URI if Request pool is not empty.
  1532. * src/CreateRequestCommand.cc
  1533. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1535. receive get_peers request for torrent which the client is now
  1536. downloading.
  1537. * src/BtSetup.cc
  1538. * src/DHTPeerAnnounceEntry.cc
  1539. * src/DHTPeerAnnounceEntry.h
  1540. * src/DHTPeerAnnounceStorage.cc
  1541. * src/DHTPeerAnnounceStorage.h
  1542. * src/RequestGroup.cc
  1543. * test/DHTPeerAnnounceEntryTest.cc
  1544. * test/DHTPeerAnnounceStorageTest.cc
  1545. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Fixed the bug that in Windows environment new blank line is
  1547. inserted when console readout is updated.
  1548. * src/ConsoleStatCalc.cc
  1549. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Throw exception if binding listening port is failed. Removed
  1551. RequestGroupMan::getInitialCommand(). Use
  1552. fillRequestGroupFromReserver() instead. Delete commands for
  1553. RequestGroup which has errors when it is being added.
  1554. * src/BtSetup.cc
  1555. * src/DownloadEngine.cc
  1556. * src/DownloadEngine.h
  1557. * src/DownloadEngineFactory.cc
  1558. * src/MultiUrlRequestInfo.cc
  1559. * src/RequestGroupMan.cc
  1560. * src/RequestGroupMan.h
  1561. * test/RequestGroupManTest.cc
  1562. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1563. Fixed the bug that when downloading more than one torrent,
  1564. listening port is not reported properly to tracker for 2nd or
  1565. later torrents.
  1566. * src/BtSetup.cc
  1567. * src/PeerListenCommand.cc
  1568. * src/PeerListenCommand.h
  1569. * src/RequestGroup.cc
  1570. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Bump up version number to 1.6.3
  1572. * configure.ac
  1573. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. Removed Util.cc from POTFILES.in
  1575. * po/POTFILES.in
  1576. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1577. Updated man page for previous change.
  1578. * doc/aria2c.1.txt
  1579. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. If user name is embedded but password is missing in URI, first
  1581. resolve password using .netrc. If password is found in .netrc,
  1582. then use it as password. If not, use the password specified in
  1583. --ftp-passwd.
  1584. * src/AuthConfigFactory.cc
  1585. * src/Request.cc
  1586. * src/Request.h
  1587. * test/AuthConfigFactoryTest.cc
  1588. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1589. Fixed typo
  1590. * doc/aria2c.1.txt
  1591. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Fixed typo
  1593. * src/usage_text.h
  1594. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Added missing bitfield.cc
  1596. * src/bitfield.cc
  1597. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Renamed Util.{cc,h} as util.{cc,h}
  1599. * src/Util.cc
  1600. * src/Util.h
  1601. * src/util.cc
  1602. * src/util.h
  1603. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1604. Moved static functions in Util class to namespace util.
  1605. * src
  1606. * test
  1607. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1609. Moved generateRandomKey to bittorrent_helper.cc.
  1610. * src/DHTBucket.cc
  1611. * src/DHTGetPeersMessage.cc
  1612. * src/DHTGetPeersReplyMessage.cc
  1613. * src/DHTMessage.cc
  1614. * src/DHTNode.cc
  1615. * src/DHTTokenTracker.cc
  1616. * src/DHTUtil.cc: Removed.
  1617. * src/DHTUtil.h: Removed.
  1618. * src/Makefile.am
  1619. * src/Util.cc
  1620. * src/Util.h
  1621. * src/bitfield.h
  1622. * src/bittorrent_helper.cc
  1623. * src/bittorrent_helper.h
  1624. * test/ARC4Test.cc
  1625. * test/BNodeTest.cc
  1626. * test/DHTAnnouncePeerMessageTest.cc
  1627. * test/DHTAnnouncePeerReplyMessageTest.cc
  1628. * test/DHTFindNodeMessageTest.cc
  1629. * test/DHTFindNodeReplyMessageTest.cc
  1630. * test/DHTGetPeersMessageTest.cc
  1631. * test/DHTGetPeersReplyMessageTest.cc
  1632. * test/DHTPingMessageTest.cc
  1633. * test/DHTPingReplyMessageTest.cc
  1634. * test/DHTTokenTrackerTest.cc
  1635. * test/DHTUtilTest.cc: Removed.
  1636. * test/Makefile.am
  1637. * test/UtilTest.cc
  1638. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Removed the call to trim() because trim() is called for each
  1640. element in split().
  1641. * src/CookieParser.cc
  1642. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1643. Replaced Util::slice() with split()
  1644. * src/AbstractCommand.cc
  1645. * src/CookieParser.cc
  1646. * src/File.cc
  1647. * src/HttpHeaderProcessor.cc
  1648. * src/HttpRequest.cc
  1649. * src/Metalink2RequestGroup.cc
  1650. * src/MetalinkParserController.cc
  1651. * src/Netrc.cc
  1652. * src/NsCookieParser.cc
  1653. * src/ParameterizedStringParser.cc
  1654. * src/ServerStatMan.cc
  1655. * src/UriListParser.cc
  1656. * src/Util.cc
  1657. * src/Util.h
  1658. * src/bittorrent_helper.cc
  1659. * test/UtilTest.cc
  1660. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Use request->getDir() instead of "/" for embedded user/pass in
  1662. URI.
  1663. * src/AuthConfigFactory.cc
  1664. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1665. Fixed wrong insertion point for BasicCred.
  1666. * src/AuthConfigFactory.cc
  1667. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1668. Allowed non-regular file in LocalFilePathOptionHandler
  1669. * src/OptionHandlerImpl.h
  1670. * src/message.h
  1671. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1672. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1673. * src/Netrc.cc
  1674. * src/Util.h
  1675. * test/NetrcTest.cc
  1676. * test/sample.netrc
  1677. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Fixed typo
  1679. * src/BtDependency.cc
  1680. * src/BtRejectMessage.cc
  1681. * src/FtpConnection.cc
  1682. * src/HttpHeaderProcessor.h
  1683. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Fixed lintian report in man page
  1685. * doc/aria2c.1.txt
  1686. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Release 1.6.2
  1688. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1689. Updated Ukrainian translation. Thanks to all translators.
  1690. * po/uk.po
  1691. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1692. Updated translation template
  1693. * po
  1694. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1695. Bump up version number to 1.6.2
  1696. * configure.ac
  1697. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Updated licence message in -v output.
  1699. * src/version_usage.cc
  1700. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Replaced aria2 with aria2c in help message.
  1702. * src/version_usage.cc
  1703. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1705. * src/version_usage.cc
  1706. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1707. Quoted localedir
  1708. * src/Makefile.am
  1709. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1710. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1711. utime. Check header for utime.h.
  1712. * configure.ac
  1713. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1715. * configure.ac
  1716. * src/daemon.cc
  1717. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Don't set localedir manually. Leave it to autoconf.
  1719. * configure.ac
  1720. * src/Makefile.am
  1721. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. Added --install to ACLOCAL_AMFLAGS.
  1723. Removed m4 from SUBDIRS.
  1724. Updated automake 1.11 and autoconf 2.64.
  1725. Replaced some obsolute macros with new one.
  1726. * Makefile.am
  1727. * configure.ac
  1728. * m4/aria2_arg.m4
  1729. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Removed Makefile.am in m4 directory.
  1731. * configure.ac
  1732. * m4/ChangeLog
  1733. * m4/Makefile.am
  1734. * m4/Makefile.in
  1735. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1736. Removed unused m4 macros.
  1737. * m4/intldir.m4
  1738. * m4/inttypes.m4
  1739. * m4/isc-posix.m4
  1740. * m4/libgnutls-extra.m4
  1741. * m4/ulonglong.m4
  1742. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1743. Fixed the bug that causes segmentation fault if
  1744. req->getCurrentUrl() contains printf formatting characters such as
  1745. %d. The statement that causes this bug is useless and removed.
  1746. * src/AbstractCommand.cc
  1747. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. * Release 1.6.1
  1749. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Updated Simplified Chinese translation. Thanks to translators.
  1751. * po/zh_CN.po
  1752. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Updated translation template
  1754. * po
  1755. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Bump up version number to 1.6.1
  1757. * configure.ac
  1758. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Changed interval from 120 to 60 for dropping inactive peer.
  1760. * src/DefaultBtInteractive.cc
  1761. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Updated man page for --user-agent and --peer-id-prefix option.
  1763. * doc/aria2c.1.txt
  1764. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Code clean up
  1766. * src/BtPostDownloadHandler.cc
  1767. * src/ContentTypeRequestGroupCriteria.cc
  1768. * src/ContentTypeRequestGroupCriteria.h
  1769. * src/DownloadHandlerConstants.cc
  1770. * src/DownloadHandlerConstants.h
  1771. * src/DownloadHandlerFactory.cc
  1772. * src/MetalinkPostDownloadHandler.cc
  1773. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Don't save control file when aria2 exists while checking piece
  1775. hash(behavior of -V option). If control file doesn't exist when
  1776. aria2 launched, the completed length in saved control file will be
  1777. 0 byte and this confuses user. disableSaveControlFile() is called
  1778. in RequestGroup::processCheckIntegrityEntry().
  1779. enableSaveControlFile() will be called after hash checking is
  1780. done. See CheckIntegrityCommand.
  1781. * src/CheckIntegrityCommand.cc
  1782. * src/RequestGroup.cc
  1783. * src/RequestGroup.h
  1784. * src/RequestGroupMan.cc
  1785. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Included version number in Peer ID and client version. Peer ID
  1787. now starts with "aria2/VERSION-", where VERSION is
  1788. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1789. * src/DefaultBtInteractive.cc
  1790. * src/OptionHandlerFactory.cc
  1791. * src/bittorrent_helper.cc
  1792. * src/bittorrent_helper.h
  1793. * src/main.cc
  1794. * src/usage_text.h
  1795. * test/BittorrentHelperTest.cc
  1796. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Fixed memory leak.
  1798. * src/DownloadCommand.cc
  1799. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Removed server, port, user and passwd key from options before
  1801. XMLRPC::Client.call since they are not options of aria2.
  1802. * doc/xmlrpc/aria2mon
  1803. * doc/xmlrpc/aria2rpc
  1804. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Included version number in user-agent string.
  1806. * src/OptionHandlerFactory.cc
  1807. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1808. Fixed the bug that the option values changed by XML-RPC
  1809. method(changeOption and changeGlobalOption) are overwritten to the
  1810. previous value by the next these request which doesn't contain
  1811. that option value. Supporse max-download-limit is initially 0. You
  1812. changed this value to 100K by changeOption. Then you issue
  1813. changeOption request to change max-upload-limit to 50K. This
  1814. second request doesn't contain xml-download-limit, so it is back
  1815. to initial value, 0. Another improvement is that exception is
  1816. thrown when changeOption and changeGlobalOption request contains
  1817. option name which doesn't allowed in each request.
  1818. * src/DownloadEngine.h
  1819. * src/XmlRpcMethod.cc
  1820. * src/XmlRpcMethod.h
  1821. * src/XmlRpcMethodImpl.cc
  1822. * src/download_helper.cc
  1823. * src/download_helper.h
  1824. * test/XmlRpcMethodTest.cc
  1825. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1826. Added missing MetalinkParserStateImpl.{cc,h}
  1827. * src/MetalinkParserStateImpl.cc
  1828. * src/MetalinkParserStateImpl.h
  1829. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1830. Put all MetalinkParserState subclasses into
  1831. MetalinkParserStateImpl.cc. Use stack to track element structure.
  1832. * src/FileMetalinkParserState.cc: Removed
  1833. * src/FileMetalinkParserState.h: Removed
  1834. * src/FilesMetalinkParserState.cc: Removed
  1835. * src/FilesMetalinkParserState.h: Removed
  1836. * src/FinMetalinkParserState.cc: Removed
  1837. * src/FinMetalinkParserState.h: Removed
  1838. * src/HashMetalinkParserState.cc: Removed
  1839. * src/HashMetalinkParserState.h: Removed
  1840. * src/InitialMetalinkParserState.cc: Removed
  1841. * src/InitialMetalinkParserState.h: Removed
  1842. * src/LanguageMetalinkParserState.cc: Removed
  1843. * src/LanguageMetalinkParserState.h: Removed
  1844. * src/Makefile.am
  1845. * src/MetalinkMetalinkParserState.cc: Removed
  1846. * src/MetalinkMetalinkParserState.h: Removed
  1847. * src/MetalinkParserState.h
  1848. * src/MetalinkParserStateMachine.cc
  1849. * src/MetalinkParserStateMachine.h
  1850. * src/OSMetalinkParserState.cc: Removed
  1851. * src/OSMetalinkParserState.h: Removed
  1852. * src/PieceHashMetalinkParserState.cc: Removed
  1853. * src/PieceHashMetalinkParserState.h: Removed
  1854. * src/PiecesMetalinkParserState.cc: Removed
  1855. * src/PiecesMetalinkParserState.h: Removed
  1856. * src/ResourcesMetalinkParserState.cc: Removed
  1857. * src/ResourcesMetalinkParserState.h: Removed
  1858. * src/SignatureMetalinkParserState.cc: Removed
  1859. * src/SignatureMetalinkParserState.h: Removed
  1860. * src/SizeMetalinkParserState.cc: Removed
  1861. * src/SizeMetalinkParserState.h: Removed
  1862. * src/SkipTagMetalinkParserState.cc: Removed
  1863. * src/SkipTagMetalinkParserState.h: Removed
  1864. * src/URLMetalinkParserState.cc: Removed
  1865. * src/URLMetalinkParserState.h: Removed
  1866. * src/VerificationMetalinkParserState.cc: Removed
  1867. * src/VerificationMetalinkParserState.h: Removed
  1868. * src/VersionMetalinkParserState.cc: Removed
  1869. * src/VersionMetalinkParserState.h: Removed
  1870. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Move all functions in PeerMessageUtil to bittorrent_helper.
  1872. * src/BtBitfieldMessage.cc
  1873. * src/BtBitfieldMessageValidator.h
  1874. * src/BtExtendedMessage.cc
  1875. * src/BtHandshakeMessage.cc
  1876. * src/BtHandshakeMessageValidator.h
  1877. * src/BtPieceMessage.cc
  1878. * src/BtPieceMessageValidator.h
  1879. * src/BtPortMessage.cc
  1880. * src/DHTFindNodeReplyMessage.cc
  1881. * src/DHTGetPeersReplyMessage.cc
  1882. * src/DHTMessageFactoryImpl.cc
  1883. * src/DHTRoutingTableDeserializer.cc
  1884. * src/DHTRoutingTableSerializer.cc
  1885. * src/DHTTokenTracker.cc
  1886. * src/DefaultBtMessageFactory.cc
  1887. * src/IndexBtMessage.cc
  1888. * src/IndexBtMessage.h
  1889. * src/IndexBtMessageValidator.h
  1890. * src/Makefile.am
  1891. * src/PeerMessageUtil.cc: Removed.
  1892. * src/PeerMessageUtil.h: Removed.
  1893. * src/RangeBtMessage.cc
  1894. * src/RangeBtMessage.h
  1895. * src/RangeBtMessageValidator.h
  1896. * src/UTPexExtensionMessage.cc
  1897. * src/ZeroBtMessage.cc
  1898. * src/ZeroBtMessage.h
  1899. * src/bittorrent_helper.cc
  1900. * src/bittorrent_helper.h
  1901. * test/BittorrentHelperTest.cc
  1902. * test/BtAllowedFastMessageTest.cc
  1903. * test/BtBitfieldMessageTest.cc
  1904. * test/BtCancelMessageTest.cc
  1905. * test/BtChokeMessageTest.cc
  1906. * test/BtExtendedMessageTest.cc
  1907. * test/BtHandshakeMessageTest.cc
  1908. * test/BtHaveAllMessageTest.cc
  1909. * test/BtHaveMessageTest.cc
  1910. * test/BtHaveNoneMessageTest.cc
  1911. * test/BtInterestedMessageTest.cc
  1912. * test/BtNotInterestedMessageTest.cc
  1913. * test/BtPieceMessageTest.cc
  1914. * test/BtPortMessageTest.cc
  1915. * test/BtRejectMessageTest.cc
  1916. * test/BtRequestMessageTest.cc
  1917. * test/BtSuggestPieceMessageTest.cc
  1918. * test/BtUnchokeMessageTest.cc
  1919. * test/DHTFindNodeReplyMessageTest.cc
  1920. * test/DHTGetPeersReplyMessageTest.cc
  1921. * test/DHTMessageFactoryImplTest.cc
  1922. * test/DHTRoutingTableDeserializerTest.cc
  1923. * test/DHTRoutingTableSerializerTest.cc
  1924. * test/DefaultBtMessageFactoryTest.cc
  1925. * test/DefaultExtensionMessageFactoryTest.cc
  1926. * test/Makefile.am
  1927. * test/PeerListProcessorTest.cc
  1928. * test/PeerMessageUtilTest.cc: Removed.
  1929. * test/UTPexExtensionMessageTest.cc
  1930. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1931. Limit the size of values list when sending get_peers reply.
  1932. * src/DHTGetPeersReplyMessage.cc
  1933. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1934. Updated banner
  1935. * doc/xmlrpc/aria2rpc
  1936. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1937. Added missing help message for remove command.
  1938. * doc/xmlrpc/aria2rpc
  1939. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Generated configure and config.h.in
  1941. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1942. Add check for fork(), which is missing on MinGW
  1943. * src/daemon.cc
  1944. * configure.ac
  1945. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1946. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1947. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1948. Util::httpGMT().
  1949. * src/Util.cc
  1950. * src/Util.h
  1951. * test/UtilTest.cc
  1952. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1953. * Release 1.6.0
  1954. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Fixed a path to xmlrpc/README.txt
  1956. * doc/Makefile.am
  1957. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1958. Added XML-RPC in -v Configuration output.
  1959. * src/FeatureConfig.cc
  1960. * src/FeatureConfig.h
  1961. * test/FeatureConfigTest.cc
  1962. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1963. Updated Bulgarian, Russian, Slovak and Japanese
  1964. translations. Thanks to all translators.
  1965. * po/bg.po
  1966. * po/ja.po
  1967. * po/ru.po
  1968. * po/sk.po
  1969. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Removed --retry-wait option from aria2rpc
  1971. * doc/xmlrpc/aria2rpc
  1972. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1973. Removed --retry-wait option from man page.
  1974. * doc/aria2c.1.txt
  1975. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Removed --retry-wait option since the current architecture doesn't
  1977. allow sleep for particular URI.
  1978. * src/AbstractCommand.cc
  1979. * src/OptionHandlerFactory.cc
  1980. * src/download_helper.cc
  1981. * src/prefs.cc
  1982. * src/prefs.h
  1983. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Removed Retry-After header support. Since the current architecture
  1985. doesn't allow sleep for particular URI.
  1986. * src/HttpSkipResponseCommand.cc
  1987. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1988. Updated the help message for --daemon option.
  1989. * doc/aria2c.1.txt
  1990. * src/usage_text.h
  1991. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Added our own daemon() function for systems which desn't have
  1993. daemon(3).
  1994. * configure.ac
  1995. * src/Makefile.am
  1996. * src/daemon.cc
  1997. * src/daemon.h
  1998. * src/option_processing.cc
  1999. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2000. Simplified File::getCurrentDir()
  2001. * src/File.cc
  2002. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2003. Use exit() instead of _exit
  2004. * src/RequestGroupMan.cc
  2005. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2006. Replaced "CATEGORY" with "TAGS".
  2007. * src/usage_text.h
  2008. * doc/aria2c.1.txt
  2009. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. Updated the help message for --help option.
  2011. * src/usage_text.h
  2012. * doc/aria2c.1.txt
  2013. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Updated man page for added help tags.
  2015. * doc/aria2c.1.txt
  2016. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2017. Added help category #file. Added #file tag to the options related
  2018. to downloaded file.
  2019. * src/OptionHandlerFactory.cc
  2020. * src/help_tags.h
  2021. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Added help categories: #cookie and #hook. Added #https tag to
  2023. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2024. * src/OptionHandlerFactory.cc
  2025. * src/help_tags.h
  2026. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2027. Made MSG_NOT_FILE translatable.
  2028. * src/message.h
  2029. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Updated man page for --help option.
  2031. * doc/aria2c.1.txt
  2032. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Updated doc.
  2034. * src/XmlRpcMethod.h
  2035. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2036. Help category now starts with "#" to distinguish a category from
  2037. keyword search. For example, "http" categroy is now "#http". You
  2038. can type "--help=#http" to get explanation of options related to
  2039. http. If '#' is omitted, then the argument is treated as a keyword
  2040. and aria2 searches options whose name includes the keyword and
  2041. print matched ones. For example, "--help=http" will show options
  2042. whose name includes "http".
  2043. * src/OptionHandlerFactory.cc
  2044. * src/help_tags.h
  2045. * src/usage_text.h
  2046. * src/version_usage.cc
  2047. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. Documented missing experimental tag and newly added xml-rpc tag in
  2049. man page.
  2050. * doc/aria2c.1.txt
  2051. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Added xml-rpc help tag. Tagged xml-rpc related options with
  2053. xml-rpc tag.
  2054. * src/OptionHandlerFactory.cc
  2055. * src/help_tags.h
  2056. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2057. Updated message when a path is not a file. Updated common message
  2058. for wrong option.
  2059. * src/OptionHandlerException.cc
  2060. * src/message.h
  2061. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2062. Use File::isFile() instead of File::exists(). Updated message when
  2063. a path is not a file.
  2064. * src/OptionHandlerImpl.cc
  2065. * src/message.h
  2066. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. Fixed the bug that server performence profile is not updated when
  2068. aria2c was terminated by emergency shutdown.
  2069. * src/TrackerWatcherCommand.cc
  2070. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2071. Use LocalFilePathOptionHandler for -T and -M option.
  2072. Updated message of MSG_FILE_NOT_EXIST.
  2073. * src/OptionHandlerFactory.cc
  2074. * src/message.h
  2075. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2076. Added LocalFilePathOptionHandler which check whether the specified
  2077. file path does exist or not.
  2078. * src/OptionHandlerImpl.cc
  2079. * src/message.h
  2080. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Updated wiki page URI.
  2082. * README
  2083. * doc/aria2c.1.txt
  2084. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2085. Added README.txt for xmlrpc directory.
  2086. * doc/Makefile.am
  2087. * doc/xmlrpc/README.txt
  2088. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Bump up version number to 1.6.0.
  2090. * configure.ac
  2091. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Added XML-RPC client scripts written in ruby.
  2093. * doc/Makefile.am
  2094. * doc/xmlrpc/aria2mon
  2095. * doc/xmlrpc/aria2rpc
  2096. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Added support for IPv6 literal address in URI. Now aria2 can
  2098. handle URI such as http://[::1]/
  2099. * src/HttpRequest.cc
  2100. * src/HttpRequest.h
  2101. * src/Request.cc
  2102. * src/Request.h
  2103. * test/HttpRequestTest.cc
  2104. * test/OptionHandlerTest.cc
  2105. * test/RequestTest.cc
  2106. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Fixed the bug that HTTP request header for XML-RPC request is not
  2108. parsed properly.
  2109. * src/HttpHeader.cc
  2110. * src/HttpHeaderProcessor.cc
  2111. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. Fixed the bug that XML-RPC authorization might be done before HTTP
  2113. request header is fully received.
  2114. * src/HttpServerCommand.cc
  2115. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2116. Documented --xml-rpc-listen-all option in man page.
  2117. * doc/aria2c.1.txt
  2118. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2119. Added --xml-rpc-listen-all option. If true is given to this
  2120. option, aria2 listens incoming XML-RPC requests on all network
  2121. interfaces. If false is given, listens only on local loopback
  2122. interface. The default value is false.
  2123. * src/HttpListenCommand.cc
  2124. * src/OptionHandlerFactory.cc
  2125. * src/SocketCore.cc
  2126. * src/SocketCore.h
  2127. * src/prefs.cc
  2128. * src/prefs.h
  2129. * src/usage_text.h
  2130. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. * Release 1.5.2
  2132. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Updated Ukrainian and Russian translations. Thanks to all
  2134. translators.
  2135. * po/ru.po
  2136. * po/uk.po
  2137. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Bump up version number to 1.5.2
  2139. * configure.ac
  2140. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2141. Get comment, comment.utf-8, created by and creation date from
  2142. .torrent file and print them in -S output.
  2143. * src/bittorrent_helper.cc
  2144. * src/bittorrent_helper.h
  2145. * test/BittorrentHelperTest.cc
  2146. * test/test.torrent
  2147. * test/utf8.torrent
  2148. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Show exact file size along in -S option output.
  2150. * src/Util.h
  2151. * src/bittorrent_helper.cc
  2152. * test/UtilTest.cc
  2153. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Avoided unnecessary memory allocation in
  2155. BitfieldMan::getCompletedLength().
  2156. * src/BitfieldMan.cc
  2157. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Fixed the bug that download fails if
  2159. SocketCore::establishConnection() throws exception and aria2
  2160. doesn't try another address.
  2161. * src/AbstractCommand.cc
  2162. * src/InitiateConnectionCommand.cc
  2163. * src/message.h
  2164. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2166. detected properly.
  2167. * m4/sqlite3.m4
  2168. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2170. because it causes compile error if PARAMS macro is defined.
  2171. * src/XmlRpcElements.cc
  2172. * src/XmlRpcElements.h
  2173. * src/XmlRpcRequestParserStateImpl.cc
  2174. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. * Release 1.5.1
  2176. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2177. Bump up version number to 1.5.1
  2178. * configure.ac
  2179. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2180. Fixed compile error without BitTorrent support
  2181. * src/DefaultBtProgressInfoFile.cc
  2182. * src/DownloadEngine.cc
  2183. * src/DownloadEngine.h
  2184. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Added missing '=' in Download Results
  2186. * src/RequestGroupMan.cc
  2187. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2188. Fixed compiler warning
  2189. * src/DefaultBtProgressInfoFile.cc
  2190. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2191. Fixed compiler warning on 32bit systems.
  2192. * src/DownloadCommand.cc
  2193. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Call flush from ServerStatMan::save()
  2195. * src/ServerStatMan.cc
  2196. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Check stream status after file is opened.
  2198. * src/CookieStorage.cc
  2199. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Rewritten Signature::save()
  2201. * src/Signature.cc
  2202. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Rewritten RequestGroupMan::saveServerStat()
  2204. * src/RequestGroupMan.cc
  2205. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2206. Rewritten stream error handling
  2207. * src/DHTAutoSaveCommand.cc
  2208. * src/DHTRoutingTableDeserializer.cc
  2209. * src/DHTRoutingTableSerializer.cc
  2210. * src/DHTSetup.cc
  2211. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Check stream status after file is opened.
  2213. * src/DefaultBtProgressInfoFile.cc
  2214. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Rewritten stream error handling
  2216. * src/DefaultBtProgressInfoFile.cc
  2217. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Make sure that stream is closed before renaming file. Unit test
  2219. fails on mingw32 in the previous implementation.
  2220. * src/CookieStorage.cc
  2221. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2222. Fixed the unit test error without sqlite3
  2223. * test/CookieStorageTest.cc
  2224. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2225. Fixed the undefined reference error
  2226. * test/HttpResponseTest.cc
  2227. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. * Release 1.5.0
  2229. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2231. Ukrainian translations. Thanks to all translators.
  2232. * po/ru.po
  2233. * po/it.po
  2234. * po/da.po
  2235. * po/bg.po
  2236. * po/ja.po
  2237. * po/uk.po
  2238. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2239. Added missing src/Logger.cc
  2240. * src/Logger.cc
  2241. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2242. Rewritten Logger to avoiding constly virtual call.
  2243. * src/LogFactory.cc
  2244. * src/LogFactory.h
  2245. * src/Logger.h
  2246. * src/Makefile.am
  2247. * src/Makefile.in
  2248. * src/NullLogger.h: Removed.
  2249. * src/SimpleLogger.cc
  2250. * src/SimpleLogger.h
  2251. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Updated doc
  2253. * src/main.cc
  2254. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Updated debug log message
  2256. * src/AbstractCommand.cc
  2257. * src/message.h
  2258. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Avoid to create zombie process when commands specified in
  2260. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2261. X and NetBSD.
  2262. * src/main.cc
  2263. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. Fixed typo
  2265. * src/usage_text.h
  2266. * doc/aria2c.1.txt
  2267. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2268. Documented 'errorCode' of tellStatus in man page.
  2269. * doc/aria2c.1.txt
  2270. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2272. This key is only available for stopped/completed downloads and its
  2273. value is the error code defined in EXIT STATUS in man page.
  2274. * src/XmlRpcMethodImpl.cc
  2275. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2276. Fixed the bug that session download length is not updated when
  2277. PeerStat is not fastest one.
  2278. * src/SegmentMan.cc
  2279. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Updated doc.
  2281. * doc/aria2c.1.txt
  2282. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Updated doc.
  2284. * src/AbstractCommand.cc
  2285. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2286. Handle the case when DownloadContext has no FileEntry.
  2287. * src/XmlRpcMethodImpl.cc
  2288. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Handle the situation where struct option.name is char *.
  2290. * configure.ac
  2291. * src/OptionParser.cc
  2292. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Code cleanup
  2294. * src/AbstractCommand.cc
  2295. * src/DownloadCommand.cc
  2296. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2297. Use option of each download to create AuthConfig instead of global
  2298. option.
  2299. * src/AuthConfigFactory.cc
  2300. * src/AuthConfigFactory.h
  2301. * src/FtpNegotiationCommand.cc
  2302. * src/HttpRequest.cc
  2303. * src/HttpRequest.h
  2304. * src/HttpRequestCommand.cc
  2305. * src/HttpSkipResponseCommand.cc
  2306. * src/MultiUrlRequestInfo.cc
  2307. * test/AuthConfigFactoryTest.cc
  2308. * test/FtpConnectionTest.cc
  2309. * test/HttpRequestTest.cc
  2310. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2311. Don't call prepareForRetry(1) if all segments are ignored in
  2312. SegmentMan.
  2313. * src/AbstractCommand.cc
  2314. * src/BitfieldMan.cc
  2315. * src/BitfieldMan.h
  2316. * src/SegmentMan.cc
  2317. * src/SegmentMan.h
  2318. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2319. Removed FileEntry::getAssociatedUris()
  2320. * src/FileEntry.h
  2321. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2322. Updated doc: TODO1.5 -> TODO
  2323. * src/FileEntry.cc
  2324. * src/HttpResponseCommand.cc
  2325. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2326. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2327. involved.
  2328. * src/RequestGroup.cc
  2329. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2330. Eliminated duplicated filterBitfield initialization code.
  2331. * src/BitfieldMan.cc
  2332. * src/BitfieldMan.h
  2333. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2335. relatively naive approach, though). For DownloadFailureException,
  2336. we handle the case when req is null properly.
  2337. * src/AbstractCommand.cc
  2338. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2339. Added function returning suffix of control file to
  2340. DefaultBtProgressInfoFile.
  2341. * src/DefaultBtProgressInfoFile.cc
  2342. * src/DefaultBtProgressInfoFile.h
  2343. * src/RequestGroup.cc
  2344. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2345. Documented getVersion in man page.
  2346. * doc/aria2c.1.txt
  2347. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2348. Documented type of offset and num for tellWaiting xml-rpc method.
  2349. * doc/aria2c.1.txt
  2350. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Implemented getVersion xml-rpc method. This method returns struct
  2352. which has 2 key-value pairs: "version" key is associated to the
  2353. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2354. associated to the list of enabled features, such as "Async DNS",
  2355. "BitTorrent".
  2356. * src/FeatureConfig.h
  2357. * src/XmlRpcMethodFactory.cc
  2358. * src/XmlRpcMethodImpl.cc
  2359. * src/XmlRpcMethodImpl.h
  2360. * test/XmlRpcMethodTest.cc
  2361. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2362. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2363. for compatibility issue.
  2364. * src/SocketCore.cc
  2365. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2366. Fixed compile error with openSSL
  2367. * src/bittorrent_helper.cc
  2368. * src/messageDigest.h
  2369. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2370. Removed bad code: setting certificate type priority to key
  2371. exchange priority.
  2372. * src/SocketCore.cc
  2373. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2374. Disconnect seeder if client is also in seed state.
  2375. * src/BtBitfieldMessage.cc
  2376. * src/BtHaveAllMessage.cc
  2377. * src/BtHaveMessage.cc
  2378. * src/message.h
  2379. * test/BtBitfieldMessageTest.cc
  2380. * test/BtHaveAllMessageTest.cc
  2381. * test/BtHaveMessageTest.cc
  2382. * test/MockPieceStorage.h
  2383. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Keep CreateRequestCommand in queue when no segment is available so
  2385. that they can pick up pieces which slow BitTorrent peers are
  2386. downloading.
  2387. * src/AbstractCommand.cc
  2388. * src/CreateRequestCommand.cc
  2389. * src/CreateRequestCommand.h
  2390. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. --bt-stop-timeout now only checks download speed.
  2392. * src/BtStopDownloadCommand.cc
  2393. * src/BtStopDownloadCommand.h
  2394. * src/BtSetup.cc
  2395. * src/usage_text.h
  2396. * doc/aria2c.1.txt
  2397. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2398. Fixed compile error regarding BUFSIZE.
  2399. * src/DownloadCommand.cc
  2400. * src/DownloadCommand.h
  2401. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Documented tellWaiting xml-rpc method in man page.
  2403. * doc/aria2c.1.txt
  2404. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Bump up version number to 1.5.0
  2406. * configure.ac
  2407. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Removed resolved TODO1.5
  2409. * src/AbstractCommand.cc
  2410. * src/DownloadCommand.cc
  2411. * src/RequestGroup.cc
  2412. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Release pooled and in-flight Request objectsand URIResult objects
  2414. in FileEntry after download completed.
  2415. * src/DownloadContext.cc
  2416. * src/DownloadContext.h
  2417. * src/FileEntry.cc
  2418. * src/FileEntry.h
  2419. * src/RequestGroup.cc
  2420. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2421. Set manual and source attribute in aria2c.1.txt
  2422. * doc/aria2c.1.txt
  2423. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Documented that the default value of --use-head is 'false' in man
  2425. page.
  2426. * doc/aria2c.1.txt
  2427. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2428. Added bt-stop-timeout option to -i list.
  2429. * doc/aria2c.1.txt
  2430. * src/download_helper.cc
  2431. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Fixed typo
  2433. * doc/aria2c.1.txt
  2434. * src/usage_text.h
  2435. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2436. Removed peer-id-prefix option from -i list.
  2437. * doc/aria2c.1.txt
  2438. * src/download_helper.cc
  2439. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2440. Fixed typo
  2441. * doc/aria2c.1.txt
  2442. * src/usage_text.h
  2443. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Documented --bt-stop-timeout option in man page.
  2445. * doc/aria2c.1.txt
  2446. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2447. Updated README regarding multi-file torrent web-seeding.
  2448. * doc/README.txt
  2449. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Updated man page regarding multi-file torrent web-seeding.
  2451. * doc/aria2c.1.txt
  2452. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2453. Updated doc
  2454. * src/version_usage.cc
  2455. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2456. Winsock select() doesn't work if no socket is in FD_SET. To
  2457. overcome this problem, a dummy socket is added to FD_SET and it is
  2458. given to select().
  2459. * src/SelectEventPoll.cc
  2460. * src/SelectEventPoll.h
  2461. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2462. Disabled --use-head option by default because --use-head=true
  2463. causes problems on some web sites.
  2464. * src/OptionHandlerFactory.cc
  2465. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2466. Print URL List in -S option for torrent.
  2467. * src/bittorrent_helper.cc
  2468. * src/bittorrent_helper.h
  2469. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Allocate buffer in ctor of DownloadCommand.
  2471. * src/DownloadCommand.cc
  2472. * src/DownloadCommand.h
  2473. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2474. Removed DiskAdaptor::onDownloadComplete()
  2475. * src/DirectDiskAdaptor.cc
  2476. * src/DirectDiskAdaptor.h
  2477. * src/DiskAdaptor.h
  2478. * src/MultiDiskAdaptor.cc
  2479. * src/MultiDiskAdaptor.h
  2480. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2481. Committed missing BtStopDownloadCommand.{cc,h}
  2482. * src/BtStopDownloadCommand.cc
  2483. * src/BtStopDownloadCommand.h
  2484. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2485. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2486. download if the download speed is 0 and the number of seeder is 0
  2487. in consecutive SEC seconds. By default, this function is disabled.
  2488. * src/BtSetup.cc
  2489. * src/Makefile.am
  2490. * src/OptionHandlerFactory.cc
  2491. * src/prefs.cc
  2492. * src/prefs.h
  2493. * src/usage_text.h
  2494. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Removed the call to DiskAdaptor::onDownloadComplete() from
  2496. BtCheckIntegrityEntry and DefaultPieceStorage.
  2497. * src/BtCheckIntegrityEntry.cc
  2498. * src/DefaultPieceStorage.cc
  2499. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2500. Commented out throw statements when number of piece is 0 to
  2501. download 0 length torrent.
  2502. * src/bittorrent_helper.cc
  2503. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2504. Call RequestGroup::createNextCommandWithAdj() from
  2505. BtFileAllocationEntry if at least one FileEntry has URI. The
  2506. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2507. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2508. * src/BtFileAllocationEntry.cc
  2509. * src/FileEntry.h
  2510. * src/RequestGroup.cc
  2511. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Generate peer ID after SimpleRandomizer is initialized.
  2513. * src/main.cc
  2514. * src/option_processing.cc
  2515. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. Removed unused method argument.
  2517. * src/CreateRequestCommand.cc
  2518. * src/RequestGroup.cc
  2519. * src/RequestGroup.h
  2520. * src/RequestGroupMan.cc
  2521. * src/TrackerWatcherCommand.cc
  2522. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2523. Made URI reusing function work.
  2524. * src/CreateRequestCommand.cc
  2525. * src/FileEntry.cc
  2526. * src/FileEntry.h
  2527. * test/FileEntryTest.cc
  2528. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Add formerly fastest PeerStat's sessionDownloadLength to new
  2530. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2531. bytes in a session.
  2532. * src/PeerStat.cc
  2533. * src/SegmentMan.cc
  2534. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2535. If pipelining is enabled, we can always pool socket.
  2536. * src/HttpDownloadCommand.cc
  2537. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2538. In a single file download, file size becomes known just after
  2539. downloading, set total length to FileEntry object when download
  2540. completed.
  2541. * src/DownloadCommand.cc
  2542. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2543. Use std::vector::reserve() for fileEntries and pieceHashes in
  2544. bittorrent_helper
  2545. * src/bittorrent_helper.cc
  2546. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2548. Removed hidden option PREF_RESET_URI.
  2549. * src/AbstractCommand.cc
  2550. * src/OptionHandlerFactory.cc
  2551. * src/prefs.cc
  2552. * src/prefs.h
  2553. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Removed unused variable/function.
  2555. * src/PeerStat.h
  2556. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Show first URL in Download Results if file path is not available.
  2558. * src/FileEntry.h
  2559. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2560. Throw exception if file path doesn't exist in FTP URL.
  2561. * src/InitiateConnectionCommandFactory.cc
  2562. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2563. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2564. * src/BitfieldMan.cc
  2565. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2566. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2567. of PeerStat in SegmentMan. peerStats is used for calculating
  2568. download speed. Therefore all active PeerStats should be in
  2569. there. Another one is _fastestPeerStats and it only contains
  2570. fastest PeerStat for each hostname/protocol pair. They are used
  2571. for updating ServerStat.
  2572. * src/DownloadCommand.cc
  2573. * src/Request.h
  2574. * src/RequestGroupMan.cc
  2575. * src/SegmentMan.cc
  2576. * src/SegmentMan.h
  2577. * test/SegmentManTest.cc
  2578. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2579. Try all available addresses returned by DNS until it gets
  2580. connected in HTTP(S)/FTP download
  2581. * src/AbstractCommand.cc
  2582. * src/AbstractCommand.h
  2583. * src/AbstractProxyRequestCommand.cc
  2584. * src/AbstractProxyRequestCommand.h
  2585. * src/DNSCache.h
  2586. * src/DownloadEngine.cc
  2587. * src/DownloadEngine.h
  2588. * src/FtpInitiateConnectionCommand.cc
  2589. * src/FtpInitiateConnectionCommand.h
  2590. * src/FtpNegotiationCommand.cc
  2591. * src/FtpNegotiationCommand.h
  2592. * src/HttpInitiateConnectionCommand.cc
  2593. * src/HttpInitiateConnectionCommand.h
  2594. * src/HttpRequestCommand.cc
  2595. * src/HttpRequestCommand.h
  2596. * src/InitiateConnectionCommand.cc
  2597. * src/InitiateConnectionCommand.h
  2598. * test/DNSCacheTest.cc
  2599. * test/Makefile.am
  2600. * test/SimpleDNSCacheTest.cc
  2601. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2602. Updated doc
  2603. * src/download_helper.cc
  2604. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2605. Refactored fieldMan ctor.
  2606. * src/BitfieldMan.cc
  2607. * src/BitfieldMan.h
  2608. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2609. Don't print "No files to download." message if -S is given.
  2610. * src/main.cc
  2611. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2612. Set referer and method to newly created Request object.
  2613. * src/CreateRequestCommand.cc
  2614. * src/FileEntry.cc
  2615. * src/FileEntry.h
  2616. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2618. * src/AbstractCommand.cc
  2619. * src/AbstractCommand.h
  2620. * src/CreateRequestCommand.cc
  2621. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2622. Get proxy download working
  2623. * src/AbstractProxyRequestCommand.cc
  2624. * src/AbstractProxyRequestCommand.h
  2625. * src/AbstractProxyResponseCommand.cc
  2626. * src/AbstractProxyResponseCommand.h
  2627. * src/FtpInitiateConnectionCommand.cc
  2628. * src/FtpTunnelRequestCommand.cc
  2629. * src/FtpTunnelRequestCommand.h
  2630. * src/FtpTunnelResponseCommand.cc
  2631. * src/FtpTunnelResponseCommand.h
  2632. * src/HttpInitiateConnectionCommand.cc
  2633. * src/HttpProxyRequestCommand.cc
  2634. * src/HttpProxyRequestCommand.h
  2635. * src/HttpProxyResponseCommand.cc
  2636. * src/HttpProxyResponseCommand.h
  2637. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2638. Use SegmentMan::getSegment(cuid) for single file download.
  2639. * src/AbstractCommand.cc
  2640. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2641. Fixed bufSize calculation
  2642. * src/DownloadCommand.cc
  2643. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2644. Don't append "/" if base URI ends with "/".
  2645. * src/bittorrent_helper.cc
  2646. * test/url-list-multiFile.torrent
  2647. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2648. HTTP pipelining is now working. Fixed Segmention fault in
  2649. BitfieldMan's copy ctor.
  2650. * src/AbstractCommand.cc
  2651. * src/BitfieldMan.cc
  2652. * src/BitfieldMan.h
  2653. * src/DownloadCommand.cc
  2654. * src/HttpDownloadCommand.cc
  2655. * src/HttpRequest.cc
  2656. * src/SegmentMan.cc
  2657. * src/SegmentMan.h
  2658. * test/BitfieldManTest.cc
  2659. * test/SegmentManTest.cc
  2660. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Removed ServerHost. Same functionality is implemented using
  2662. FileEntry's in-flight Request objects.
  2663. * src/AbstractCommand.cc
  2664. * src/BtDependency.cc
  2665. * src/CreateRequestCommand.cc
  2666. * src/FileEntry.cc
  2667. * src/FileEntry.h
  2668. * src/FtpNegotiationCommand.cc
  2669. * src/HttpResponseCommand.cc
  2670. * src/Makefile.am
  2671. * src/Metalink2RequestGroup.cc
  2672. * src/RequestGroup.cc
  2673. * src/RequestGroup.h
  2674. * src/ServerHost.cc: Removed
  2675. * src/ServerHost.h: Removed
  2676. * test/BtDependencyTest.cc
  2677. * test/FileEntryTest.cc
  2678. * test/RequestGroupTest.cc
  2679. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Rewritten PeerStat handling. In the previous implementation,
  2681. faster command tries to find slower command. In this new
  2682. implementation, slower command tries to find faster command.
  2683. PeerStat is now created in each HTTP/FTP request to get download
  2684. rate correctly. If the download range is small, the download rate
  2685. tends to small and this will occur at the later stage of download.
  2686. * src/AbstractCommand.cc
  2687. * src/DownloadCommand.cc
  2688. * src/FileEntry.cc
  2689. * src/FileEntry.h
  2690. * src/Request.cc
  2691. * src/Request.h
  2692. * src/RequestGroup.h
  2693. * src/RequestGroupMan.cc
  2694. * src/SegmentMan.cc
  2695. * src/SegmentMan.h
  2696. * test/SegmentManTest.cc
  2697. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2698. Removed _uris from RequestGroup. All functions that refer to _uris
  2699. were moved to FileEntry. Exit status code are now defined in
  2700. DownloadResultCode.h.
  2701. * src/AbstractCommand.cc
  2702. * src/AdaptiveURISelector.cc
  2703. * src/AdaptiveURISelector.h
  2704. * src/AutoSaveCommand.cc
  2705. * src/BtPostDownloadHandler.cc
  2706. * src/CheckIntegrityDispatcherCommand.cc
  2707. * src/CookieStorage.cc
  2708. * src/DHTAutoSaveCommand.cc
  2709. * src/DHTBucketRefreshCommand.cc
  2710. * src/DHTEntryPointNameResolveCommand.cc
  2711. * src/DHTInteractionCommand.cc
  2712. * src/DHTPeerAnnounceCommand.cc
  2713. * src/DHTTokenUpdateCommand.cc
  2714. * src/DlAbortEx.h
  2715. * src/DlRetryEx.h
  2716. * src/DownloadCommand.cc
  2717. * src/DownloadContext.h
  2718. * src/DownloadFailureException.h
  2719. * src/DownloadResult.h
  2720. * src/DownloadResultCode.h
  2721. * src/FeedbackURISelector.cc
  2722. * src/FeedbackURISelector.h
  2723. * src/FileEntry.cc
  2724. * src/FileEntry.h
  2725. * src/FtpNegotiationCommand.cc
  2726. * src/HttpListenCommand.cc
  2727. * src/HttpResponseCommand.cc
  2728. * src/HttpServerResponseCommand.cc
  2729. * src/HttpSkipResponseCommand.cc
  2730. * src/InOrderURISelector.cc
  2731. * src/InOrderURISelector.h
  2732. * src/Makefile.am
  2733. * src/Makefile.in
  2734. * src/Metalink2RequestGroup.cc
  2735. * src/MultiUrlRequestInfo.cc
  2736. * src/MultiUrlRequestInfo.h
  2737. * src/OptionHandlerFactory.cc
  2738. * src/PeerListenCommand.cc
  2739. * src/RecoverableException.h
  2740. * src/RequestGroup.cc
  2741. * src/RequestGroup.h
  2742. * src/RequestGroupMan.cc
  2743. * src/RequestGroupMan.h
  2744. * src/TimedHaltCommand.cc
  2745. * src/TrackerWatcherCommand.cc
  2746. * src/URIResult.cc
  2747. * src/URIResult.h
  2748. * src/URISelector.h
  2749. * src/XmlRpcMethodImpl.cc
  2750. * src/bittorrent_helper.cc
  2751. * src/bittorrent_helper.h
  2752. * src/download_helper.cc
  2753. * src/main.cc
  2754. * src/option_processing.cc
  2755. * test/BtDependencyTest.cc
  2756. * test/BtPostDownloadHandlerTest.cc
  2757. * test/CookieStorageTest.cc
  2758. * test/DefaultBtMessageDispatcherTest.cc
  2759. * test/DownloadHandlerFactoryTest.cc
  2760. * test/DownloadHelperTest.cc
  2761. * test/FeedbackURISelectorTest.cc
  2762. * test/FileEntryTest.cc
  2763. * test/InOrderURISelectorTest.cc
  2764. * test/Metalink2RequestGroupTest.cc
  2765. * test/MetalinkPostDownloadHandlerTest.cc
  2766. * test/RequestGroupManTest.cc
  2767. * test/RequestGroupTest.cc
  2768. * test/XmlRpcMethodTest.cc
  2769. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2770. Removed MockBtContext.h
  2771. * test/Makefile.am
  2772. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2773. Removed _currentRequest from StreamCheckIntegrityEntry and
  2774. StreamFileAllocationEntry.
  2775. * src/AbstractCommand.cc
  2776. * src/HttpResponseCommand.cc
  2777. * src/RequestGroup.cc
  2778. * src/StreamCheckIntegrityEntry.cc
  2779. * src/StreamCheckIntegrityEntry.h
  2780. * src/StreamFileAllocationEntry.cc
  2781. * src/StreamFileAllocationEntry.h
  2782. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2783. Rewritten DownloadContext and removed SingleFileDownloadContext
  2784. and BtContext and its derived classes. BitTorrent specific
  2785. attributes are now set by DownloadContext::setAttribute() with key
  2786. bittorrent::BITTORRENT.
  2787. * src/AbstractBtMessage.cc
  2788. * src/AbstractBtMessage.h
  2789. * src/AbstractCommand.cc
  2790. * src/AbstractCommand.h
  2791. * src/AbstractProxyRequestCommand.cc
  2792. * src/AbstractProxyResponseCommand.cc
  2793. * src/ActivePeerConnectionCommand.cc
  2794. * src/ActivePeerConnectionCommand.h
  2795. * src/AnnounceList.cc
  2796. * src/BtCheckIntegrityEntry.cc
  2797. * src/BtConstants.h
  2798. * src/BtContext.h: Removed
  2799. * src/BtDependency.cc
  2800. * src/BtExtendedMessage.cc
  2801. * src/BtPieceMessage.cc
  2802. * src/BtPieceMessage.h
  2803. * src/BtPostDownloadHandler.cc
  2804. * src/BtRegistry.cc
  2805. * src/BtRegistry.h
  2806. * src/BtSetup.cc
  2807. * src/CheckIntegrityCommand.cc
  2808. * src/CheckIntegrityEntry.cc
  2809. * src/ChecksumCheckIntegrityEntry.cc
  2810. * src/ConsoleStatCalc.cc
  2811. * src/ContentTypeRequestGroupCriteria.cc
  2812. * src/DHTGetPeersCommand.cc
  2813. * src/DHTGetPeersCommand.h
  2814. * src/DHTPeerLookupTask.cc
  2815. * src/DHTPeerLookupTask.h
  2816. * src/DHTTaskFactory.h
  2817. * src/DHTTaskFactoryImpl.cc
  2818. * src/DHTTaskFactoryImpl.h
  2819. * src/DefaultBtAnnounce.cc
  2820. * src/DefaultBtAnnounce.h
  2821. * src/DefaultBtContext.cc: Removed
  2822. * src/DefaultBtContext.h: Removed
  2823. * src/DefaultBtInteractive.cc
  2824. * src/DefaultBtInteractive.h
  2825. * src/DefaultBtMessageDispatcher.cc
  2826. * src/DefaultBtMessageDispatcher.h
  2827. * src/DefaultBtMessageFactory.cc
  2828. * src/DefaultBtMessageFactory.h
  2829. * src/DefaultBtMessageReceiver.cc
  2830. * src/DefaultBtMessageReceiver.h
  2831. * src/DefaultBtProgressInfoFile.cc
  2832. * src/DefaultBtRequestFactory.cc
  2833. * src/DefaultBtRequestFactory.h
  2834. * src/DefaultExtensionMessageFactory.cc
  2835. * src/DefaultExtensionMessageFactory.h
  2836. * src/DefaultPeerStorage.cc
  2837. * src/DefaultPeerStorage.h
  2838. * src/DefaultPieceStorage.cc
  2839. * src/DefaultSegmentManFactory.cc
  2840. * src/DiskAdaptor.cc
  2841. * src/DiskAdaptor.h
  2842. * src/DownloadContext.cc
  2843. * src/DownloadContext.h
  2844. * src/DownloadEngine.cc
  2845. * src/DownloadEngineFactory.cc
  2846. * src/DownloadHandler.cc
  2847. * src/DownloadResult.h
  2848. * src/FileAllocationCommand.cc
  2849. * src/FileAllocationDispatcherCommand.cc
  2850. * src/FileAllocationEntry.cc
  2851. * src/FileEntry.h
  2852. * src/FillRequestGroupCommand.cc
  2853. * src/FtpDownloadCommand.cc
  2854. * src/FtpFinishDownloadCommand.cc
  2855. * src/FtpInitiateConnectionCommand.cc
  2856. * src/FtpNegotiationCommand.cc
  2857. * src/FtpTunnelRequestCommand.cc
  2858. * src/FtpTunnelResponseCommand.cc
  2859. * src/HandshakeExtensionMessage.cc
  2860. * src/HandshakeExtensionMessage.h
  2861. * src/HaveEraseCommand.cc
  2862. * src/HttpDownloadCommand.cc
  2863. * src/HttpInitiateConnectionCommand.cc
  2864. * src/HttpProxyRequestCommand.cc
  2865. * src/HttpProxyResponseCommand.cc
  2866. * src/HttpRequest.cc
  2867. * src/HttpRequest.h
  2868. * src/HttpRequestCommand.cc
  2869. * src/HttpResponseCommand.cc
  2870. * src/HttpServerBodyCommand.cc
  2871. * src/HttpServerCommand.cc
  2872. * src/HttpSkipResponseCommand.cc
  2873. * src/InitiateConnectionCommandFactory.cc
  2874. * src/InitiatorMSEHandshakeCommand.cc
  2875. * src/InitiatorMSEHandshakeCommand.h
  2876. * src/IteratableChecksumValidator.cc
  2877. * src/IteratableChecksumValidator.h
  2878. * src/IteratableChunkChecksumValidator.cc
  2879. * src/MSEHandshake.cc
  2880. * src/MSEHandshake.h
  2881. * src/Makefile.am
  2882. * src/Makefile.in
  2883. * src/Metalink2RequestGroup.cc
  2884. * src/MetalinkPostDownloadHandler.cc
  2885. * src/MultiDiskAdaptor.cc
  2886. * src/MultiDiskAdaptor.h
  2887. * src/MultiFileAllocationIterator.cc
  2888. * src/MultiUrlRequestInfo.cc
  2889. * src/PeerChokeCommand.cc
  2890. * src/PeerChokeCommand.h
  2891. * src/PeerInitiateConnectionCommand.cc
  2892. * src/PeerInitiateConnectionCommand.h
  2893. * src/PeerInteractionCommand.cc
  2894. * src/PeerInteractionCommand.h
  2895. * src/PeerReceiveHandshakeCommand.cc
  2896. * src/PieceHashCheckIntegrityEntry.cc
  2897. * src/RealtimeCommand.cc
  2898. * src/ReceiverMSEHandshakeCommand.cc
  2899. * src/RequestGroup.cc
  2900. * src/RequestGroup.h
  2901. * src/RequestGroupEntry.cc
  2902. * src/RequestGroupMan.cc
  2903. * src/SeedCheckCommand.cc
  2904. * src/SeedCheckCommand.h
  2905. * src/SegmentMan.cc
  2906. * src/ShareRatioSeedCriteria.h
  2907. * src/SingleFileDownloadContext.cc: Removed
  2908. * src/SingleFileDownloadContext.h: Removed
  2909. * src/SleepCommand.cc
  2910. * src/StreamCheckIntegrityEntry.cc
  2911. * src/TrackerWatcherCommand.cc
  2912. * src/TrackerWatcherCommand.h
  2913. * src/UnknownLengthPieceStorage.cc
  2914. * src/Util.cc
  2915. * src/Util.h
  2916. * src/XmlRpcMethodImpl.cc
  2917. * src/bittorrent_helper.cc
  2918. * src/bittorrent_helper.h
  2919. * src/download_helper.cc
  2920. * src/main.cc
  2921. * src/option_processing.cc
  2922. * test/BitfieldManTest.cc
  2923. * test/BittorrentHelperTest.cc
  2924. * test/BtCancelMessageTest.cc
  2925. * test/BtChokeMessageTest.cc
  2926. * test/BtDependencyTest.cc
  2927. * test/BtPieceMessageTest.cc
  2928. * test/BtPostDownloadHandlerTest.cc
  2929. * test/BtRegistryTest.cc
  2930. * test/BtRejectMessageTest.cc
  2931. * test/BtRequestMessageTest.cc
  2932. * test/DHTPeerAnnounceStorageTest.cc
  2933. * test/DefaultBtAnnounceTest.cc
  2934. * test/DefaultBtContextTest.cc: Removed
  2935. * test/DefaultBtMessageDispatcherTest.cc
  2936. * test/DefaultBtMessageFactoryTest.cc
  2937. * test/DefaultBtProgressInfoFileTest.cc
  2938. * test/DefaultBtRequestFactoryTest.cc
  2939. * test/DefaultExtensionMessageFactoryTest.cc
  2940. * test/DefaultPeerStorageTest.cc
  2941. * test/DefaultPieceStorageTest.cc
  2942. * test/DirectDiskAdaptorTest.cc
  2943. * test/DownloadContextTest.cc
  2944. * test/DownloadHandlerFactoryTest.cc
  2945. * test/DownloadHelperTest.cc
  2946. * test/HandshakeExtensionMessageTest.cc
  2947. * test/HttpRequestTest.cc
  2948. * test/HttpResponseTest.cc
  2949. * test/IteratableChecksumValidatorTest.cc
  2950. * test/IteratableChunkChecksumValidatorTest.cc
  2951. * test/MSEHandshakeTest.cc
  2952. * test/Makefile.am
  2953. * test/Makefile.in
  2954. * test/Metalink2RequestGroupTest.cc
  2955. * test/MetalinkPostDownloadHandlerTest.cc
  2956. * test/MockBtContext.h: Removed
  2957. * test/MockDHTTaskFactory.h
  2958. * test/MockDownloadContext.h: Removed
  2959. * test/MockPieceStorage.h
  2960. * test/MultiDiskAdaptorTest.cc
  2961. * test/MultiFileAllocationIteratorTest.cc
  2962. * test/RequestGroupManTest.cc
  2963. * test/RequestGroupTest.cc
  2964. * test/SegmentManTest.cc
  2965. * test/ShareRatioSeedCriteriaTest.cc
  2966. * test/SingleFileDownloadContextTest.cc: Removed
  2967. * test/UtilTest.cc
  2968. * test/XmlRpcMethodTest.cc
  2969. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2970. Added experimental support of WEB-Seeding for multi-file torrent.
  2971. Due to fundamental changes in file handling in HTTP/FTP code, many
  2972. functions are not working: PeerStat, ServerHost, proxy..etc
  2973. * src/AbstractCommand.cc
  2974. * src/AbstractCommand.h
  2975. * src/BitfieldMan.cc
  2976. * src/BitfieldMan.h
  2977. * src/CreateRequestCommand.cc
  2978. * src/CreateRequestCommand.h
  2979. * src/DefaultPieceStorage.cc
  2980. * src/DefaultPieceStorage.h
  2981. * src/DownloadCommand.cc
  2982. * src/DownloadCommand.h
  2983. * src/DownloadContext.cc
  2984. * src/DownloadContext.h
  2985. * src/FileEntry.cc
  2986. * src/FileEntry.h
  2987. * src/FtpDownloadCommand.cc
  2988. * src/FtpDownloadCommand.h
  2989. * src/FtpFinishDownloadCommand.cc
  2990. * src/FtpFinishDownloadCommand.h
  2991. * src/FtpInitiateConnectionCommand.cc
  2992. * src/FtpInitiateConnectionCommand.h
  2993. * src/FtpNegotiationCommand.cc
  2994. * src/FtpNegotiationCommand.h
  2995. * src/FtpTunnelResponseCommand.cc
  2996. * src/HttpDownloadCommand.cc
  2997. * src/HttpDownloadCommand.h
  2998. * src/HttpInitiateConnectionCommand.cc
  2999. * src/HttpInitiateConnectionCommand.h
  3000. * src/HttpProxyResponseCommand.cc
  3001. * src/HttpRequest.cc
  3002. * src/HttpRequest.h
  3003. * src/HttpRequestCommand.cc
  3004. * src/HttpRequestCommand.h
  3005. * src/HttpResponseCommand.cc
  3006. * src/HttpResponseCommand.h
  3007. * src/HttpSkipResponseCommand.cc
  3008. * src/HttpSkipResponseCommand.h
  3009. * src/InitiateConnectionCommand.cc
  3010. * src/InitiateConnectionCommand.h
  3011. * src/InitiateConnectionCommandFactory.cc
  3012. * src/InitiateConnectionCommandFactory.h
  3013. * src/Makefile.am
  3014. * src/PieceStorage.h
  3015. * src/RequestGroup.cc
  3016. * src/RequestGroup.h
  3017. * src/RequestGroupMan.cc
  3018. * src/SegmentMan.cc
  3019. * src/SegmentMan.h
  3020. * src/SingleFileDownloadContext.h
  3021. * src/StreamFileAllocationEntry.cc
  3022. * src/TrackerWatcherCommand.cc
  3023. * src/UnknownLengthPieceStorage.cc
  3024. * src/UnknownLengthPieceStorage.h
  3025. * src/array_fun.h
  3026. * src/bitfield.h
  3027. * src/download_helper.cc
  3028. * test/DownloadContextTest.cc
  3029. * test/Makefile.am
  3030. * test/MockDownloadContext.h
  3031. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Added tellWaiting XML-RPC method.
  3033. * src/SingleFileDownloadContext.cc
  3034. * src/XmlRpcMethodFactory.cc
  3035. * src/XmlRpcMethodImpl.cc
  3036. * src/XmlRpcMethodImpl.h
  3037. * test/XmlRpcMethodTest.cc
  3038. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3039. Updated CookieStorageTest
  3040. * test/CookieStorageTest.cc
  3041. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3042. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3043. handle excepion inside these functions.
  3044. * src/LibgnutlsTLSContext.cc
  3045. * src/LibgnutlsTLSContext.h
  3046. * src/LibsslTLSContext.cc
  3047. * src/LibsslTLSContext.h
  3048. * src/MultiUrlRequestInfo.cc
  3049. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3050. Added comment
  3051. * src/RequestGroup.cc
  3052. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3053. In CookieStorage::load() and saveNsFormat(), handle exception
  3054. inside the functions. When saving Cookies, first write temporary
  3055. file and after successful writes, then renames it to final
  3056. destination.
  3057. * src/CookieStorage.cc
  3058. * src/CookieStorage.h
  3059. * src/MultiUrlRequestInfo.cc
  3060. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3061. The default value of --dir option is the absolute path to the
  3062. current directory. If getcwd() is failed, then it is ".", which is
  3063. the same value with old implementation. This change is necessary
  3064. because after daemon() call, the current working directory is
  3065. changed to /.
  3066. * src/File.cc
  3067. * src/File.h
  3068. * src/OptionHandlerFactory.cc
  3069. * src/option_processing.cc
  3070. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3071. Call daemon() with arguments(0,0), which means daemon() changes
  3072. current working directory to / and redirects stdin, stdout and
  3073. stderr to /dev/null.
  3074. * src/option_processing.cc
  3075. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3076. Small performance optimizations.
  3077. * src/RequestGroupMan.cc
  3078. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3079. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3080. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3081. * src/RequestGroupMan.cc
  3082. * src/RequestGroupMan.h
  3083. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3085. setNoWiat(true) if newly created command calls
  3086. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3087. * src/HttpListenCommand.cc
  3088. * src/HttpServerBodyCommand.cc
  3089. * src/HttpServerCommand.cc
  3090. * src/HttpServerResponseCommand.cc
  3091. * src/InitiateConnectionCommand.cc
  3092. * src/RequestGroup.cc
  3093. * src/StreamFileAllocationEntry.cc
  3094. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3095. Removed include vector
  3096. * src/BtRegistry.h
  3097. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3098. Rewritten BtRegistry
  3099. * src/BtRegistry.cc
  3100. * src/BtRegistry.h
  3101. * src/BtSetup.cc
  3102. * src/ConsoleStatCalc.cc
  3103. * src/PeerInteractionCommand.cc
  3104. * src/PeerReceiveHandshakeCommand.cc
  3105. * src/ReceiverMSEHandshakeCommand.cc
  3106. * src/RequestGroup.cc
  3107. * src/XmlRpcMethodImpl.cc
  3108. * test/BtRegistryTest.cc
  3109. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3110. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3111. * src/DefaultBtProgressInfoFile.cc
  3112. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3113. Throw an exception if position is less than 0.
  3114. * src/XmlRpcMethodImpl.cc
  3115. * test/XmlRpcMethodTest.cc
  3116. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3117. Use writeFilePath() in ConsoleStatCalc.cc
  3118. * src/ConsoleStatCalc.cc
  3119. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3120. Receive the return value as const reference from
  3121. DownloadContext::getFileEntries().
  3122. * src/DefaultPieceStorage.cc
  3123. * src/RequestGroupMan.cc
  3124. * src/XmlRpcMethodImpl.cc
  3125. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3126. DownloadContext now has _fileEntries so that
  3127. DownloadContext::getFileEntries() can returns its const reference.
  3128. * src/DefaultBtContext.cc
  3129. * src/DefaultBtContext.h
  3130. * src/DownloadContext.cc
  3131. * src/DownloadContext.h
  3132. * src/SingleFileDownloadContext.cc
  3133. * src/SingleFileDownloadContext.h
  3134. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3135. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3136. writeFilePath() function template from RequestGroupMan.cc to
  3137. FileEntry.h
  3138. * src/FileEntry.h
  3139. * src/RequestGroupMan.cc
  3140. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Documented 'position' parameter is starting from 0 in man page.
  3142. * doc/aria2c.1.txt
  3143. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3144. Updated doc.
  3145. * src/MSEHandshake.cc
  3146. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3147. Removed _acceptFeatures and its accessor functions from
  3148. RequestGroup since they are not used practically.
  3149. * src/HttpRequestCommand.cc
  3150. * src/RequestGroup.cc
  3151. * src/RequestGroup.h
  3152. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. Removed member _maxTries from RequestGroup class to avoid
  3154. duplicate option value. Those classes who refer this variable
  3155. should use option value of PREF_MAX_TRIES directly.
  3156. * src/AbstractCommand.cc
  3157. * src/RequestGroup.cc
  3158. * src/RequestGroup.h
  3159. * src/TrackerWatcherCommand.cc
  3160. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. * Release 1.4.1
  3162. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3163. Fixed compiler warnings on netbsd
  3164. * src/DHTConnectionImpl.cc
  3165. * src/PeerListenCommand.cc
  3166. * src/PeerSessionResource.cc
  3167. * src/SegmentMan.cc
  3168. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3169. Updated Ukrainian translation. Thanks to all translators.
  3170. * po/uk.po
  3171. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3172. Bump up version number to 1.4.1.
  3173. * configure.ac
  3174. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3175. Added unit tests for strjoin, strconcat and strappend.
  3176. * test/a2functionalTest.cc
  3177. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3178. Rewritten strconcat and strappend using operator+ instead of
  3179. append().
  3180. * src/a2functional.h
  3181. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3182. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3183. is enabled.
  3184. * src/Makefile.am
  3185. * test/Makefile.am
  3186. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3187. Added countSeeder() function which counts seeder in the given
  3188. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3189. * src/ConsoleStatCalc.cc
  3190. * src/Peer.h
  3191. * src/XmlRpcMethodImpl.cc
  3192. * test/PeerTest.cc
  3193. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3194. Documented missing seeder in getPeers xml-rpc method.
  3195. Documented uploadLength and numSeeders.
  3196. * doc/aria2c.1.txt
  3197. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3198. Added uploadLength and numSeeders to the response of tellStatus
  3199. xml-rpc method. Assert that PeerStorage instance is not null
  3200. instead of checking if statement. It should be non-null in this
  3201. context.
  3202. * src/XmlRpcMethodImpl.cc
  3203. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3204. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3205. * src/XmlRpcResponse.cc
  3206. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. Avoid intermediate object during string concatenation.
  3208. * src/HttpRequest.cc
  3209. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3210. Added strjoin function template. Use it in pathJoin()
  3211. * src/Util.h
  3212. * src/a2functional.h
  3213. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3214. Avoid intermediate object during string concatenation. Replaced
  3215. post-increment unary operator with pre-increment one in for loop.
  3216. * src/AdaptiveURISelector.cc
  3217. * src/AnnounceList.cc
  3218. * src/AuthConfig.h
  3219. * src/BtBitfieldMessage.cc
  3220. * src/BtExtendedMessage.cc
  3221. * src/BtHandshakeMessage.cc
  3222. * src/BtPieceMessage.cc
  3223. * src/BtPortMessage.cc
  3224. * src/Cookie.cc
  3225. * src/DHTAnnouncePeerMessage.cc
  3226. * src/DHTAutoSaveCommand.cc
  3227. * src/DHTGetPeersReplyMessage.cc
  3228. * src/DHTNode.cc
  3229. * src/DHTQueryMessage.cc
  3230. * src/DHTResponseMessage.cc
  3231. * src/DHTUnknownMessage.cc
  3232. * src/DefaultBtAnnounce.cc
  3233. * src/DefaultBtContext.cc
  3234. * src/DefaultBtInteractive.cc
  3235. * src/DefaultBtProgressInfoFile.cc
  3236. * src/DefaultPeerStorage.cc
  3237. * src/DownloadEngine.cc
  3238. * src/FeatureConfig.cc
  3239. * src/File.cc
  3240. * src/FtpConnection.cc
  3241. * src/FtpNegotiationCommand.cc
  3242. * src/HandshakeExtensionMessage.cc
  3243. * src/HttpConnection.cc
  3244. * src/HttpRequest.cc
  3245. * src/HttpResponseCommand.cc
  3246. * src/HttpServer.cc
  3247. * src/IndexBtMessage.cc
  3248. * src/Metalink2RequestGroup.cc
  3249. * src/OptionHandlerImpl.h
  3250. * src/PStringBuildVisitor.cc
  3251. * src/Peer.cc
  3252. * src/PeerListenCommand.cc
  3253. * src/Piece.cc
  3254. * src/RangeBtMessage.cc
  3255. * src/Request.cc
  3256. * src/Request.h
  3257. * src/RequestGroup.cc
  3258. * src/RequestGroupMan.cc
  3259. * src/ServerStat.cc
  3260. * src/ServerStatMan.cc
  3261. * src/UTPexExtensionMessage.cc
  3262. * src/Util.cc
  3263. * src/a2functional.h
  3264. * src/download_helper.cc
  3265. * src/messageDigest.cc
  3266. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3267. Unchoke a peer randomly at first and second choke round in seed
  3268. state.
  3269. * src/BtSeederStateChoke.cc
  3270. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3271. Added (sock_t) to quiet compiler warnings in MinGW
  3272. * src/SocketCore.cc
  3273. * src/SocketCore.h
  3274. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3276. * src/EpollEventPoll.h
  3277. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3278. Added fork() emulation using CreateProcess() in MinGW
  3279. * src/RequestGroupMan.cc
  3280. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3281. * Release 1.4.0
  3282. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3283. Added utf8.torrent to EXTRA_DIST
  3284. * test/Makefile.am
  3285. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. Fixed docs of aria2.addMetalink xml-rpc method.
  3287. * doc/aria2c.1.txt
  3288. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3289. Added Slovak translation. Updated Ukrainian and Brazilian
  3290. Portuguese translation. Thanks to all translators.
  3291. * po/sk.po
  3292. * po/uk.po
  3293. * po/pt_BR.po
  3294. * po/LINGUAS
  3295. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3296. Added test case for XmlRpcProcessor to fail to parse malformed
  3297. document.
  3298. * test/XmlRpcRequestProcessorTest.cc
  3299. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3300. Removed *.gmo files in po because they are generated on 'make
  3301. dist'
  3302. * po/*.gmo
  3303. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3304. Documented max-concurrent-downloads of changeGlobalOption method
  3305. in man page.
  3306. * doc/aria2c.1.txt
  3307. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3308. Added max-concurrent-downloads option to changeGlobalOption
  3309. xml-rpc method. Rewritten loop conditional in
  3310. RequestGroupMan::fillRequestGroupFromReserver().
  3311. * src/RequestGroupMan.cc
  3312. * src/RequestGroupMan.h
  3313. * src/XmlRpcMethod.cc
  3314. * src/XmlRpcMethodImpl.cc
  3315. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3316. Documented position parameter in man page.
  3317. * doc/aria2c.1.txt
  3318. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3319. Added 'position' parameter to addUri, addTorrent and addMetalink
  3320. xml-rpc method.
  3321. * src/RequestGroupMan.cc
  3322. * src/RequestGroupMan.h
  3323. * src/XmlRpcMethodImpl.cc
  3324. * test/XmlRpcMethodTest.cc
  3325. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3326. Removed Peer.cc from compile source list when --disable-bittorrent
  3327. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3328. takes Peer.
  3329. * src/DefaultPieceStorage.cc
  3330. * src/DefaultPieceStorage.h
  3331. * src/Makefile.am
  3332. * src/PieceStorage.h
  3333. * src/UnknownLengthPieceStorage.cc
  3334. * src/UnknownLengthPieceStorage.h
  3335. * test/MockPieceStorage.h
  3336. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3337. Implemented getter methods in header files to give them more
  3338. chance of optimization.
  3339. Return const reference for SharadHandle if possible.
  3340. * src/AbstractAuthResolver.cc
  3341. * src/AbstractAuthResolver.h
  3342. * src/AbstractBtMessage.cc
  3343. * src/AbstractBtMessage.h
  3344. * src/AbstractSingleDiskAdaptor.cc
  3345. * src/AbstractSingleDiskAdaptor.h
  3346. * src/AsyncNameResolver.cc
  3347. * src/AsyncNameResolver.h
  3348. * src/BNode.cc
  3349. * src/BNode.h
  3350. * src/BitfieldMan.cc
  3351. * src/BitfieldMan.h
  3352. * src/BtAbortOutstandingRequestEvent.h
  3353. * src/BtExtendedMessage.cc
  3354. * src/BtExtendedMessage.h
  3355. * src/BtSeederStateChoke.cc
  3356. * src/BtSeederStateChoke.h
  3357. * src/Cookie.cc
  3358. * src/Cookie.h
  3359. * src/DHTBucket.cc
  3360. * src/DHTBucket.h
  3361. * src/DHTConnectionImpl.cc
  3362. * src/DHTConnectionImpl.h
  3363. * src/DHTFindNodeReplyMessage.cc
  3364. * src/DHTFindNodeReplyMessage.h
  3365. * src/DHTGetPeersReplyMessage.cc
  3366. * src/DHTGetPeersReplyMessage.h
  3367. * src/DHTInteractionCommand.cc
  3368. * src/DHTMessage.cc
  3369. * src/DHTMessage.h
  3370. * src/DHTMessageDispatcherImpl.cc
  3371. * src/DHTMessageEntry.cc
  3372. * src/DHTMessageReceiver.cc
  3373. * src/DHTMessageReceiver.h
  3374. * src/DHTMessageTrackerEntry.cc
  3375. * src/DHTMessageTrackerEntry.h
  3376. * src/DHTPeerAnnounceEntry.cc
  3377. * src/DHTPeerAnnounceEntry.h
  3378. * src/DHTPeerLookupTask.cc
  3379. * src/DHTPeerLookupTask.h
  3380. * src/DHTRoutingTableDeserializer.cc
  3381. * src/DHTRoutingTableDeserializer.h
  3382. * src/DefaultBtAnnounce.cc
  3383. * src/DefaultBtAnnounce.h
  3384. * src/DefaultBtMessageDispatcher.cc
  3385. * src/DefaultBtMessageDispatcher.h
  3386. * src/DefaultBtRequestFactory.cc
  3387. * src/DefaultBtRequestFactory.h
  3388. * src/DiskAdaptor.cc
  3389. * src/DiskAdaptor.h
  3390. * src/DownloadContext.cc
  3391. * src/DownloadContext.h
  3392. * src/DownloadEngine.cc
  3393. * src/DownloadEngine.h
  3394. * src/EpollEventPoll.cc
  3395. * src/EpollEventPoll.h
  3396. * src/FtpConnection.cc
  3397. * src/FtpConnection.h
  3398. * src/HttpConnection.cc
  3399. * src/HttpConnection.h
  3400. * src/HttpHeader.cc
  3401. * src/HttpHeader.h
  3402. * src/HttpRequest.cc
  3403. * src/HttpRequest.h
  3404. * src/HttpResponse.cc
  3405. * src/HttpResponse.h
  3406. * src/LibsslTLSContext.cc
  3407. * src/LibsslTLSContext.h
  3408. * src/MSEHandshake.cc
  3409. * src/MSEHandshake.h
  3410. * src/MetalinkEntry.cc
  3411. * src/MetalinkEntry.h
  3412. * src/MetalinkParserController.cc
  3413. * src/MetalinkParserController.h
  3414. * src/MetalinkParserStateMachine.cc
  3415. * src/MetalinkParserStateMachine.h
  3416. * src/MultiDiskAdaptor.cc
  3417. * src/MultiDiskAdaptor.h
  3418. * src/NetrcAuthResolver.cc
  3419. * src/NetrcAuthResolver.h
  3420. * src/Peer.cc
  3421. * src/Peer.h
  3422. * src/PeerSessionResource.cc
  3423. * src/PeerSessionResource.h
  3424. * src/Piece.cc
  3425. * src/Piece.h
  3426. * src/PieceStatMan.cc
  3427. * src/PieceStatMan.h
  3428. * src/Request.cc
  3429. * src/Request.h
  3430. * src/RequestGroup.cc
  3431. * src/RequestGroup.h
  3432. * src/RequestGroupMan.cc
  3433. * src/RequestGroupMan.h
  3434. * src/RequestSlot.cc
  3435. * src/RequestSlot.h
  3436. * src/SegmentMan.cc
  3437. * src/SegmentMan.h
  3438. * src/SelectEventPoll.cc
  3439. * src/SelectEventPoll.h
  3440. * src/ServerStat.cc
  3441. * src/ServerStat.h
  3442. * src/Signature.cc
  3443. * src/Signature.h
  3444. * src/URIResult.cc
  3445. * src/URIResult.h
  3446. * src/UTPexExtensionMessage.cc
  3447. * src/UTPexExtensionMessage.h
  3448. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Fixed compile error without BitTorrent and Metalink support.
  3450. * src/XmlRpcMethod.cc
  3451. * src/XmlRpcMethodFactory.cc
  3452. * src/XmlRpcMethodImpl.cc
  3453. * src/XmlRpcMethodImpl.h
  3454. * test/XmlRpcMethodTest.cc
  3455. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3456. Rewritten the help message for --allow-overwrite option.
  3457. * doc/aria2c.1.txt
  3458. * src/usage_text.h
  3459. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3460. Fixed typo
  3461. * doc/aria2c.1.txt
  3462. * src/usage_text.h
  3463. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3464. Updated README for 1.4.0 release. Use new table syntax of
  3465. asciidoc.
  3466. * README
  3467. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3468. Documented --xml-rpc-max-request-size option in man page.
  3469. * doc/aria2c.1.txt
  3470. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3471. Moved C_* constants from BtContext to DefaultBtContext.
  3472. * src/BtContext.cc: Removed.
  3473. * src/BtContext.h
  3474. * src/DefaultBtContext.cc
  3475. * src/DefaultBtContext.h
  3476. * src/Makefile.am
  3477. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3478. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3479. path key respectively when persing .torrent file.
  3480. * src/BtContext.cc
  3481. * src/BtContext.h
  3482. * src/DefaultBtContext.cc
  3483. * test/DefaultBtContextTest.cc
  3484. * test/utf8.torrent
  3485. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3486. Added --xml-rpc-max-request-size option to limit the size of
  3487. XML-RPC request.
  3488. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3489. Documented XML-RPC API in man page.
  3490. * doc/aria2c.1.txt
  3491. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3492. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3493. will break strict-aliasing rules
  3494. * src/PeerConnection.cc
  3495. * test/DHTRoutingTableSerializerTest.cc
  3496. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3497. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3498. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3499. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3500. PKG_CHECK_MODULES macro uses latter name.
  3501. * m4/sqlite3.m4
  3502. * src/Makefile.am
  3503. * test/Makefile.am
  3504. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3505. Fixed typo
  3506. * configure.ac
  3507. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3509. presence of libgnutls using pkg-config first. If it fails, fall
  3510. back to old macro libgnutls.m4.
  3511. * configure.ac
  3512. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3513. Use s itself instead of !s.bad()
  3514. * src/CookieStorage.cc
  3515. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3516. Documented --on-download-* option and --save-cookies option in man
  3517. page.
  3518. * doc/aria2c.1.txt
  3519. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3520. Set possible values for --load-cookie option to "/path/to/file".
  3521. * src/OptionHandlerFactory.cc
  3522. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3523. Added --save-cookies option.
  3524. * src/Cookie.cc
  3525. * src/Cookie.h
  3526. * src/CookieStorage.cc
  3527. * src/CookieStorage.h
  3528. * src/MultiUrlRequestInfo.cc
  3529. * src/OptionHandlerFactory.cc
  3530. * src/prefs.cc
  3531. * src/prefs.h
  3532. * src/usage_text.h
  3533. * test/CookieStorageTest.cc
  3534. * test/CookieTest.cc
  3535. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3536. Removed tellAll XML-RPC command because its reponse tends to be
  3537. big if stopped/waiting downloads pile up.
  3538. * src/XmlRpcMethodFactory.cc
  3539. * src/XmlRpcMethodImpl.cc
  3540. * src/XmlRpcMethodImpl.h
  3541. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3542. Added the ability to execute command when download starts and
  3543. stops. You can also specify command for particular cases such as
  3544. complete/error download. Added --on-download-start,
  3545. --on-download-stop, --on-download-complete and --on-download-error
  3546. option.
  3547. * src/OptionHandlerFactory.cc
  3548. * src/RequestGroupMan.cc
  3549. * src/prefs.cc
  3550. * src/prefs.h
  3551. * src/usage_text.h
  3552. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3553. Fixed test error
  3554. * test/BencodeTest.cc
  3555. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3556. Added unit tests.
  3557. * test/XmlRpcMethodTest.cc
  3558. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3559. Made exception message more verbose.
  3560. * src/bencode.cc
  3561. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3562. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3563. space in console readout. Also they are now shown in MiB/s if
  3564. speed > 1024KiB/s.
  3565. * src/ConsoleStatCalc.cc
  3566. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3567. Added SEED to console output, which represents the number of
  3568. seeders currently the client is connecting to.
  3569. * src/ConsoleStatCalc.cc
  3570. * src/ConsoleStatCalc.h
  3571. * src/DownloadEngine.cc
  3572. * src/NullStatCalc.h
  3573. * src/StatCalc.h
  3574. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3575. Added source filename(__FILE__) and line number(__LINE__) to
  3576. exception message.
  3577. * src/AbstractCommand.cc
  3578. * src/AbstractDiskWriter.cc
  3579. * src/AbstractProxyResponseCommand.cc
  3580. * src/BDE.h
  3581. * src/BtAllowedFastMessage.cc
  3582. * src/BtHandshakeMessageValidator.h
  3583. * src/BtHaveAllMessage.cc
  3584. * src/BtHaveNoneMessage.cc
  3585. * src/BtPieceMessage.cc
  3586. * src/BtRejectMessage.cc
  3587. * src/ChunkedDecoder.cc
  3588. * src/CookieStorage.cc
  3589. * src/DHTAnnouncePeerMessage.cc
  3590. * src/DHTEntryPointNameResolveCommand.cc
  3591. * src/DHTMessageFactoryImpl.cc
  3592. * src/DHTMessageTracker.cc
  3593. * src/DHTRoutingTableDeserializer.cc
  3594. * src/DHTRoutingTableSerializer.cc
  3595. * src/DHTSetup.cc
  3596. * src/DHTTokenTracker.cc
  3597. * src/DefaultBtAnnounce.cc
  3598. * src/DefaultBtContext.cc
  3599. * src/DefaultBtInteractive.cc
  3600. * src/DefaultBtMessageFactory.cc
  3601. * src/DefaultBtProgressInfoFile.cc
  3602. * src/DefaultExtensionMessageFactory.cc
  3603. * src/DlAbortEx.h
  3604. * src/DlRetryEx.h
  3605. * src/DownloadCommand.cc
  3606. * src/DownloadEngineFactory.cc
  3607. * src/DownloadFailureException.h
  3608. * src/Exception.cc
  3609. * src/Exception.h
  3610. * src/ExpatMetalinkProcessor.cc
  3611. * src/ExpatXmlRpcRequestProcessor.cc
  3612. * src/FallocFileAllocationIterator.cc
  3613. * src/FatalException.h
  3614. * src/FtpConnection.cc
  3615. * src/FtpFinishDownloadCommand.cc
  3616. * src/FtpInitiateConnectionCommand.cc
  3617. * src/FtpNegotiationCommand.cc
  3618. * src/GZipDecoder.cc
  3619. * src/HandshakeExtensionMessage.cc
  3620. * src/HttpConnection.cc
  3621. * src/HttpHeaderProcessor.cc
  3622. * src/HttpInitiateConnectionCommand.cc
  3623. * src/HttpResponse.cc
  3624. * src/HttpResponseCommand.cc
  3625. * src/HttpServer.cc
  3626. * src/HttpSkipResponseCommand.cc
  3627. * src/InitiateConnectionCommandFactory.cc
  3628. * src/IteratableChunkChecksumValidator.cc
  3629. * src/LibgcryptARC4Context.h
  3630. * src/LibgcryptARC4Decryptor.h
  3631. * src/LibgcryptARC4Encryptor.h
  3632. * src/LibgcryptDHKeyExchange.h
  3633. * src/LibgnutlsTLSContext.cc
  3634. * src/LibsslARC4Context.h
  3635. * src/LibsslARC4Decryptor.h
  3636. * src/LibsslARC4Encryptor.h
  3637. * src/LibsslDHKeyExchange.h
  3638. * src/LibsslTLSContext.cc
  3639. * src/MSEHandshake.cc
  3640. * src/MessageDigestHelper.cc
  3641. * src/MetalinkHelper.cc
  3642. * src/MultiDiskAdaptor.cc
  3643. * src/NameMatchOptionHandler.h
  3644. * src/NameResolver.cc
  3645. * src/Netrc.cc
  3646. * src/NsCookieParser.cc
  3647. * src/OptionHandlerException.cc
  3648. * src/OptionHandlerException.h
  3649. * src/OptionHandlerImpl.h
  3650. * src/OptionParser.cc
  3651. * src/ParameterizedStringParser.cc
  3652. * src/PeerAbstractCommand.cc
  3653. * src/PeerConnection.cc
  3654. * src/PeerMessageUtil.cc
  3655. * src/PeerReceiveHandshakeCommand.cc
  3656. * src/Platform.cc
  3657. * src/ReceiverMSEHandshakeCommand.cc
  3658. * src/RecoverableException.h
  3659. * src/RequestGroup.cc
  3660. * src/SimpleLogger.cc
  3661. * src/SocketCore.cc
  3662. * src/Sqlite3MozCookieParser.cc
  3663. * src/UTPexExtensionMessage.cc
  3664. * src/Util.cc
  3665. * src/XML2SAXMetalinkProcessor.cc
  3666. * src/Xml2XmlRpcRequestProcessor.cc
  3667. * src/XmlRpcMethodImpl.cc
  3668. * src/bencode.cc
  3669. * src/download_helper.cc
  3670. * src/messageDigest.h
  3671. * test/ExceptionTest.cc
  3672. * test/TestUtil.cc
  3673. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Bump up version number to 1.4.0
  3675. * configure.ac
  3676. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3677. Added 2files.metalink to EXTRA_DIST
  3678. * test/Makefile.am
  3679. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3680. Added missing 2files.metalink
  3681. * test/2files.metalink
  3682. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3683. Show "[MEMORY]" prefix before filename in download summary if it
  3684. is downloaded into memory.
  3685. * src/DownloadResult.h
  3686. * src/RequestGroup.cc
  3687. * src/RequestGroupMan.cc
  3688. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3689. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3690. * src/ExpatXmlRpcRequestProcessor.cc
  3691. * src/Xml2XmlRpcRequestProcessor.cc
  3692. * src/message.h
  3693. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3694. Defined const BDEs to avoid duplicate instantiation.
  3695. Defined MSG_GID_NOT_PROVIDED.
  3696. * src/XmlRpcMethodImpl.cc
  3697. * src/message.h
  3698. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3699. Code cleanup
  3700. * src/Xml2XmlRpcRequestProcessor.cc
  3701. * src/Xml2XmlRpcRequestProcessor.h
  3702. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3703. Defined ENABLE_XML_RPC
  3704. * configure.ac
  3705. * configure
  3706. * config.h.in
  3707. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3708. Added ExpatXmlRpcRequestProcessor
  3709. * src/ExpatXmlRpcRequestProcessor.cc
  3710. * src/ExpatXmlRpcRequestProcessor.h
  3711. * src/Makefile.am
  3712. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Added tests for addTorrent and addMetalink command.
  3714. * test/TestUtil.cc
  3715. * test/TestUtil.h
  3716. * test/XmlRpcMethodTest.cc
  3717. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3718. Corrected the description of --file-allocation option.
  3719. * doc/aria2c.1.txt
  3720. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3721. Added tellAll command.
  3722. * src/XmlRpcMethodFactory.cc
  3723. * src/XmlRpcMethodImpl.cc
  3724. * src/XmlRpcMethodImpl.h
  3725. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3726. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3727. * src/XmlRpcMethodImpl.cc
  3728. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3729. Added changeGlobalOption command. Currently,
  3730. max-overall-download-limit and max-overall-upload-limit option are
  3731. available.
  3732. * src/RequestGroupMan.h
  3733. * src/XmlRpcMethod.cc
  3734. * src/XmlRpcMethod.h
  3735. * src/XmlRpcMethodFactory.cc
  3736. * src/XmlRpcMethodImpl.cc
  3737. * src/XmlRpcMethodImpl.h
  3738. * test/XmlRpcMethodTest.cc
  3739. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Added changeOption command. Currently, max-download-limit,
  3741. max-upload-limit option are available in this command.
  3742. * src/RequestGroup.h
  3743. * src/XmlRpcMethod.cc
  3744. * src/XmlRpcMethod.h
  3745. * src/XmlRpcMethodFactory.cc
  3746. * src/XmlRpcMethodImpl.cc
  3747. * src/XmlRpcMethodImpl.h
  3748. * test/XmlRpcMethodTest.cc
  3749. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3750. Added purgeDownloadResult command.
  3751. * src/RequestGroupMan.cc
  3752. * src/RequestGroupMan.h
  3753. * src/XmlRpcMethodFactory.cc
  3754. * src/XmlRpcMethodImpl.cc
  3755. * src/XmlRpcMethodImpl.h
  3756. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3757. Refactored.
  3758. * src/XmlRpcMethod.cc
  3759. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3760. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3761. XmlRpcResponse.
  3762. * src/HttpServerBodyCommand.cc
  3763. * src/Makefile.am
  3764. * src/XmlRpcMethod.cc
  3765. * src/XmlRpcMethod.h
  3766. * src/XmlRpcMethodImpl.cc
  3767. * src/XmlRpcResponse.cc
  3768. * src/XmlRpcResponse.h
  3769. * test/XmlRpcMethodTest.cc
  3770. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3771. In XML-RPC option struct, header and index-out option can take
  3772. array as value.
  3773. * src/XmlRpcMethod.cc
  3774. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3775. Removed unused option member from PeerConnection.
  3776. * src/InitiatorMSEHandshakeCommand.cc
  3777. * src/PeerConnection.cc
  3778. * src/PeerConnection.h
  3779. * src/PeerInteractionCommand.cc
  3780. * src/PeerReceiveHandshakeCommand.cc
  3781. * src/ReceiverMSEHandshakeCommand.cc
  3782. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Added "seeder" key to getPeers response.
  3784. * src/XmlRpcMethodImpl.cc
  3785. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Added addMetalink XML-RPC command.
  3787. * src/XmlRpcMethodFactory.cc
  3788. * src/XmlRpcMethodImpl.cc
  3789. * src/XmlRpcMethodImpl.h
  3790. * src/download_helper.cc
  3791. * src/download_helper.h
  3792. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3793. Fixed the bug that POU peers are never choked in seeding.
  3794. * src/BtSeederStateChoke.cc
  3795. * src/BtSeederStateChoke.h
  3796. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3797. Added web-seeding URI handling in addTorrent command.
  3798. * src/XmlRpcMethodImpl.cc
  3799. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Added "length" key to getFiles response.
  3801. * src/XmlRpcMethodImpl.cc
  3802. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3803. Moved --no-netrc option from ftp option section to http/ftp option
  3804. section.
  3805. * doc/aria2c.1.txt
  3806. * src/OptionHandlerFactory.cc
  3807. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3808. Removed garbage "\" character before '
  3809. * doc/aria2c.1.txt
  3810. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3811. Removed garbage "\" character before http.
  3812. * doc/aria2c.1.txt
  3813. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3814. Documented additional options that can be specified in -i list.
  3815. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  3816. and --xml-rpc-passwd. Removed --enable-http-server and
  3817. --http-server-listen-port.
  3818. * doc/aria2c.1.txt
  3819. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3820. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  3821. * src/DefaultPeerStorage.cc
  3822. * src/DefaultPeerStorage.h
  3823. * src/PeerStorage.h
  3824. * src/XmlRpcMethodImpl.cc
  3825. * test/MockPeerStorage.h
  3826. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3827. Put a call to Socket::isReadable() in try block.
  3828. * src/HttpServerBodyCommand.cc
  3829. * src/HttpServerCommand.cc
  3830. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3831. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  3832. exception , so it is now in try block.
  3833. * src/HttpServerResponseCommand.cc
  3834. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3835. Added "amChoking" and "peerChoking" key in getPeers response.
  3836. * src/XmlRpcMethodImpl.cc
  3837. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3838. Added test case for zero-length filter.
  3839. * test/BitfieldManTest.cc
  3840. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. getFiles command now returns file data for finished/stopped
  3842. downloads.
  3843. * src/XmlRpcMethodImpl.cc
  3844. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3845. DownloadResult now has the list of FileEntry. The download
  3846. summary displays the path of first selected file and the number of
  3847. remaining files for multi-file torrent.
  3848. * src/DownloadResult.h
  3849. * src/RequestGroup.cc
  3850. * src/RequestGroupMan.cc
  3851. * test/RequestGroupTest.cc
  3852. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3853. Fixed segmentation fault error when no file is selected in
  3854. multi-file torrent.
  3855. * src/BitfieldMan.cc
  3856. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3857. Escaped <,>,& character in XML-RPC response.
  3858. * src/XmlRpcMethod.cc
  3859. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3860. Throw DlAbortEx instead of FatalException during parsing options
  3861. because we don't want for aria2 to quit when bad option is passed
  3862. via XML-RPC.
  3863. * src/OptionHandlerException.cc
  3864. * src/OptionHandlerException.h
  3865. * src/OptionHandlerImpl.h
  3866. * src/OptionParser.cc
  3867. * src/OptionParser.h
  3868. * src/PStringSegment.cc
  3869. * src/ParameterizedStringParser.cc
  3870. * src/download_helper.cc
  3871. * test/ParameterizedStringParserTest.cc
  3872. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3873. Selecting files are now done in
  3874. DefaultBtContext::setFileFileter().
  3875. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3876. functions are removed because they are no longer used. Creating
  3877. filter in BitfieldMan is done in new funtion
  3878. PieceStorage::setupFileFilter()
  3879. * src/BtContext.cc
  3880. * src/BtContext.h
  3881. * src/DefaultBtContext.cc
  3882. * src/DefaultBtContext.h
  3883. * src/DefaultPieceStorage.cc
  3884. * src/DefaultPieceStorage.h
  3885. * src/DiskAdaptor.cc
  3886. * src/DiskAdaptor.h
  3887. * src/PieceStorage.h
  3888. * src/RequestGroup.cc
  3889. * src/UnknownLengthPieceStorage.h
  3890. * src/XmlRpcMethodImpl.cc
  3891. * test/DefaultBtContextTest.cc
  3892. * test/MockBtContext.h
  3893. * test/MockPieceStorage.h
  3894. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3895. Fixed compile error on Mac OS X
  3896. * src/HttpServer.cc
  3897. * src/XmlRpcMethod.h
  3898. * src/XmlRpcMethodImpl.cc
  3899. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3900. Use std::binary_search instead of std::find
  3901. * src/DefaultPieceStorage.cc
  3902. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Removed unnecessary BDE() call; leave them to implicit conversion.
  3904. * src/XmlRpcMethodImpl.cc
  3905. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3906. Return connections and gid in string
  3907. * src/XmlRpcMethodImpl.cc
  3908. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3909. Renamed addURI as addUri
  3910. * src/XmlRpcMethodFactory.cc
  3911. * src/XmlRpcMethodImpl.cc
  3912. * src/XmlRpcMethodImpl.h
  3913. * test/XmlRpcMethodTest.cc
  3914. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Renamed addTorrentFile as addTorrent
  3916. * src/XmlRpcMethodFactory.cc
  3917. * src/XmlRpcMethodImpl.cc
  3918. * src/XmlRpcMethodImpl.h
  3919. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. The information for files, URIs, peers are removed from the
  3921. reponse of TellaActive, TellStatus command because they tend to be
  3922. large. Instead they can be retrieved by the dedicated commands:
  3923. getFiles, getUris and getPeers respectively.
  3924. * src/XmlRpcMethodFactory.cc
  3925. * src/XmlRpcMethodImpl.cc
  3926. * src/XmlRpcMethodImpl.h
  3927. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3928. Removed --max-overall-upload-limit and
  3929. --max-overall-download-limit option from listRequestOptions.
  3930. * src/download_helper.cc
  3931. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3932. Log incoming host in HttpListenCommand.
  3933. * src/HttpListenCommand.cc
  3934. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3935. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3936. --xml-rpc-passwd option.
  3937. * src/HttpServer.cc
  3938. * src/HttpServer.h
  3939. * src/HttpServerCommand.cc
  3940. * src/OptionHandlerFactory.cc
  3941. * src/prefs.cc
  3942. * src/prefs.h
  3943. * src/usage_text.h
  3944. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3945. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3946. processing 0 length request.
  3947. * src/HttpServerBodyCommand.cc
  3948. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. Removed --enable-http-server and --http-server-listen-port
  3950. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3951. instead. The original feature for --enable-http-server that
  3952. reports download progress in HTML was officially removed. Persist
  3953. XML-RPC connection if client supports keep-alive.
  3954. * src/DownloadEngineFactory.cc
  3955. * src/HttpServerCommand.cc
  3956. * src/HttpServerResponseCommand.cc
  3957. * src/Makefile.am
  3958. * src/Makefile.in
  3959. * src/OptionHandlerFactory.cc
  3960. * src/RequestGroupMan.cc
  3961. * src/main.cc
  3962. * src/option_processing.cc
  3963. * src/prefs.cc
  3964. * src/prefs.h
  3965. * src/usage_text.h
  3966. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3967. Added "uris" key to the response of tellStatus command. Added
  3968. "connections" key to the response of tellStatus and tellActive
  3969. command.
  3970. * src/XmlRpcMethodImpl.cc
  3971. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3972. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3973. Added TellStatusXmlRpcMethod. Remove command can now remove
  3974. waiting RequestGroup.
  3975. * src/RequestGroupMan.cc
  3976. * src/RequestGroupMan.h
  3977. * src/XmlRpcMethodFactory.cc
  3978. * src/XmlRpcMethodImpl.cc
  3979. * src/XmlRpcMethodImpl.h
  3980. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3981. Initialized _peerId
  3982. * src/Peer.cc
  3983. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3984. Return fault structure for error. FailXmlRpcMethod is renamed as
  3985. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3986. in non-torrent download. Return single param value.
  3987. * src/XmlRpcMethod.cc
  3988. * src/XmlRpcMethodFactory.cc
  3989. * src/XmlRpcMethodImpl.cc
  3990. * src/XmlRpcMethodImpl.h
  3991. * test/XmlRpcMethodTest.cc
  3992. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3993. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3994. command.
  3995. * src/RequestGroup.cc
  3996. * src/RequestGroup.h
  3997. * src/RequestGroupMan.cc
  3998. * src/XmlRpcMethodImpl.cc
  3999. * test/RequestGroupTest.cc
  4000. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4001. Added more options that can be specified in -i list and xml-rpc
  4002. add* command.
  4003. * src/download_helper.h
  4004. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4005. The available options in -i list should be listed in
  4006. listRequestOptions().
  4007. * src/download_helper.cc
  4008. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4009. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4010. command.
  4011. * src/XmlRpcMethodImpl.cc
  4012. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4013. Now RequestGroup has its own copy of Option object. This will help
  4014. to give custom option for each RequestGroup.
  4015. addTorrentFile command now takes options.
  4016. * src/AbstractCommand.cc
  4017. * src/AbstractCommand.h
  4018. * src/AbstractProxyRequestCommand.cc
  4019. * src/ActivePeerConnectionCommand.cc
  4020. * src/ActivePeerConnectionCommand.h
  4021. * src/AdaptiveURISelector.cc
  4022. * src/BtCheckIntegrityEntry.cc
  4023. * src/BtDependency.cc
  4024. * src/BtDependency.h
  4025. * src/BtFileAllocationEntry.cc
  4026. * src/BtPostDownloadHandler.cc
  4027. * src/CheckIntegrityEntry.cc
  4028. * src/DownloadCommand.cc
  4029. * src/FtpDownloadCommand.cc
  4030. * src/FtpFinishDownloadCommand.cc
  4031. * src/FtpInitiateConnectionCommand.cc
  4032. * src/FtpNegotiationCommand.cc
  4033. * src/HttpInitiateConnectionCommand.cc
  4034. * src/HttpRequestCommand.cc
  4035. * src/HttpResponseCommand.cc
  4036. * src/HttpSkipResponseCommand.cc
  4037. * src/InitiateConnectionCommand.cc
  4038. * src/InitiateConnectionCommandFactory.cc
  4039. * src/InitiatorMSEHandshakeCommand.cc
  4040. * src/InitiatorMSEHandshakeCommand.h
  4041. * src/Metalink2RequestGroup.cc
  4042. * src/Metalink2RequestGroup.h
  4043. * src/MetalinkPostDownloadHandler.cc
  4044. * src/MultiUrlRequestInfo.cc
  4045. * src/MultiUrlRequestInfo.h
  4046. * src/PeerAbstractCommand.cc
  4047. * src/PeerInteractionCommand.cc
  4048. * src/PeerInteractionCommand.h
  4049. * src/PeerReceiveHandshakeCommand.cc
  4050. * src/PeerReceiveHandshakeCommand.h
  4051. * src/RequestGroup.cc
  4052. * src/RequestGroup.h
  4053. * src/TrackerWatcherCommand.cc
  4054. * src/TrackerWatcherCommand.h
  4055. * src/XmlRpcMethod.cc
  4056. * src/XmlRpcMethod.h
  4057. * src/XmlRpcMethodImpl.cc
  4058. * src/download_helper.cc
  4059. * src/download_helper.h
  4060. * src/main.cc
  4061. * test/BtDependencyTest.cc
  4062. * test/BtPostDownloadHandlerTest.cc
  4063. * test/DefaultBtMessageDispatcherTest.cc
  4064. * test/DownloadHandlerFactoryTest.cc
  4065. * test/DownloadHelperTest.cc
  4066. * test/Metalink2RequestGroupTest.cc
  4067. * test/MetalinkPostDownloadHandlerTest.cc
  4068. * test/RequestGroupManTest.cc
  4069. * test/RequestGroupTest.cc
  4070. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4071. Added tellActiveStatus xml-rpc command which reports download
  4072. status of active downloads.
  4073. * src/XmlRpcMethodFactory.cc
  4074. * src/XmlRpcMethodImpl.cc
  4075. * src/XmlRpcMethodImpl.h
  4076. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4077. Added addTorrentFile xml-rpc command which receives uploaded
  4078. torrent file and add download for it.
  4079. * src/RequestGroupMan.cc
  4080. * src/XmlRpcMethodFactory.cc
  4081. * src/XmlRpcMethodImpl.cc
  4082. * src/XmlRpcMethodImpl.h
  4083. * src/download_helper.cc
  4084. * src/download_helper.h
  4085. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4086. Added remove xml-rpc command which removes specified download.
  4087. There is a known issue: the removed unfinished downloads are
  4088. reported ERR when aria2 exits. They should be reported as INPR.
  4089. * src/RequestGroupMan.cc
  4090. * src/RequestGroupMan.h
  4091. * src/XmlRpcMethodFactory.cc
  4092. * src/XmlRpcMethodImpl.cc
  4093. * src/XmlRpcMethodImpl.h
  4094. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4095. If --enable-http-server is enabled, don't stop aria2 when all
  4096. download finished and don't quit when no files to download at
  4097. start up.
  4098. * src/RequestGroupMan.cc
  4099. * src/main.cc
  4100. * src/option_processing.cc
  4101. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4102. Added missing AM_CONDITIONAL
  4103. * configure.ac
  4104. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4105. Added xml-rpc functionality. Currently only addURI commad is
  4106. supported. To enable xml-rpc, run aria2 with
  4107. --enable-http-server. This option name is temporal and will be
  4108. changed. The feature that reports download progress in html format
  4109. is temporarily disabled.
  4110. * src/HttpServer.cc
  4111. * src/HttpServer.h
  4112. * src/HttpServerBodyCommand.cc
  4113. * src/HttpServerBodyCommand.h
  4114. * src/HttpServerCommand.cc
  4115. * src/HttpServerResponseCommand.cc
  4116. * src/Makefile.am
  4117. * src/OptionParser.cc
  4118. * src/OptionParser.h
  4119. * src/RequestGroupMan.cc
  4120. * src/RequestGroupMan.h
  4121. * src/XmlRpcMethod.cc
  4122. * src/XmlRpcMethod.h
  4123. * src/XmlRpcMethodFactory.cc
  4124. * src/XmlRpcMethodFactory.h
  4125. * src/XmlRpcMethodImpl.cc
  4126. * src/XmlRpcMethodImpl.h
  4127. * src/download_helper.cc
  4128. * src/download_helper.h
  4129. * test/Makefile.am
  4130. * test/XmlRpcMethodTest.cc
  4131. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4132. Added xml-rpc request parser. The supported value types are:
  4133. i4/int, string, double, struct, array, base64. Currently only
  4134. libxml2 version is provided.
  4135. * src/Xml2XmlRpcRequestProcessor.cc
  4136. * src/Xml2XmlRpcRequestProcessor.h
  4137. * src/XmlRpcElements.cc
  4138. * src/XmlRpcElements.h
  4139. * src/XmlRpcRequest.h
  4140. * src/XmlRpcRequestParserController.cc
  4141. * src/XmlRpcRequestParserController.h
  4142. * src/XmlRpcRequestParserState.h
  4143. * src/XmlRpcRequestParserStateImpl.cc
  4144. * src/XmlRpcRequestParserStateImpl.h
  4145. * src/XmlRpcRequestParserStateMachine.cc
  4146. * src/XmlRpcRequestParserStateMachine.h
  4147. * src/XmlRpcRequestProcessor.h
  4148. * test/XmlRpcRequestParserControllerTest.cc
  4149. * test/XmlRpcRequestProcessorTest.cc
  4150. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4151. * Release 1.3.3
  4152. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4153. Fixed compile error since r1202.
  4154. * src/ExpatMetalinkProcessor.cc
  4155. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4156. Updated Ukrainian, Russian and Simplified Chinese
  4157. translations. Thanks to all translators.
  4158. * po/ru.po
  4159. * po/uk.po
  4160. * po/zh_CN.po
  4161. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4162. Pass reference of Option object instead of pointer.
  4163. * src/download_helper.cc
  4164. * src/download_helper.h
  4165. * src/main.cc
  4166. * test/DownloadHelperTest.cc
  4167. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4168. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4169. from option directly. Instead, get them from RequestGroup.
  4170. * src/ActivePeerConnectionCommand.cc
  4171. * src/ActivePeerConnectionCommand.h
  4172. * src/PeerReceiveHandshakeCommand.cc
  4173. * src/RequestGroup.h
  4174. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4175. Removed unused uploadLimitCheck and uploadLimit from
  4176. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4177. PeerInteractionCommand.
  4178. * src/PeerAbstractCommand.cc
  4179. * src/PeerAbstractCommand.h
  4180. * src/PeerInteractionCommand.cc
  4181. * src/PeerInteractionCommand.h
  4182. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4183. Fixed broken file renaming feature since r1202.
  4184. * src/FtpNegotiationCommand.cc
  4185. * src/FtpNegotiationCommand.h
  4186. * src/HttpResponseCommand.cc
  4187. * src/RequestGroup.cc
  4188. * src/RequestGroup.h
  4189. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4190. Removed unused debug log
  4191. * src/SocketCore.cc
  4192. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4193. Generated configure and Makefile.in using autoconf 2.63 and
  4194. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4195. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4196. * configure.ac
  4197. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4198. Moved piece statistics stuff to new PieceStatMan class.
  4199. Refactored PieceSelector interface.
  4200. * src/DefaultPieceStorage.cc
  4201. * src/DefaultPieceStorage.h
  4202. * src/LongestSequencePieceSelector.cc
  4203. * src/LongestSequencePieceSelector.h
  4204. * src/Makefile.am
  4205. * src/PieceSelector.h
  4206. * src/PieceStatMan.cc
  4207. * src/PieceStatMan.h
  4208. * src/RarestPieceSelector.cc
  4209. * src/RarestPieceSelector.h
  4210. * src/RequestGroup.cc
  4211. * test/DefaultPieceStorageTest.cc
  4212. * test/InOrderPieceSelector.h
  4213. * test/Makefile.am
  4214. * test/PieceStatManTest.cc
  4215. * test/RarestPieceSelectorTest.cc
  4216. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4217. Added static member _protocolFamily to SocketCore. By default,
  4218. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4219. address. Sometime SocketCore::bind() and
  4220. SocketCore::establishConnection() use difference protocl family
  4221. and latter cannot connect to former. To avoid this situation, we
  4222. limit protocol family to AF_INET for unit tests.
  4223. * src/SocketCore.cc
  4224. * src/SocketCore.h
  4225. * test/AllTest.cc
  4226. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4227. Avoid std::bad_alloc for negative bencode string length.
  4228. * src/bencode.cc
  4229. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4230. Supported segmented downloading with chunked transfer encoding and
  4231. content-length.
  4232. * src/DownloadCommand.cc
  4233. * src/HttpResponseCommand.cc
  4234. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4235. Bump up version number to 1.3.3
  4236. * configure.ac
  4237. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4238. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4239. from 4096 to 65536 (for insanely large ftp login banners)
  4240. * src/FtpConnection.h
  4241. * test/FtpConnectionTest.cc
  4242. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4243. In DefaultBtContext::getActualBasePath(), return first
  4244. FileEntry::getPath() for single file torrent.
  4245. * src/DefaultBtContext.cc
  4246. * test/DefaultBtContextTest.cc
  4247. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4248. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4249. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4250. Removed _directIOAllowed member from DiskWriter.
  4251. * src/AbstractDiskWriter.cc
  4252. * src/AbstractDiskWriter.h
  4253. * src/AbstractSingleDiskAdaptor.cc
  4254. * src/AbstractSingleDiskAdaptor.h
  4255. * src/BinaryStream.h
  4256. * src/ByteArrayDiskWriter.h
  4257. * src/DefaultPieceStorage.cc
  4258. * src/DiskWriter.h
  4259. * src/MultiDiskAdaptor.cc
  4260. * src/MultiDiskAdaptor.h
  4261. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4262. Now the constructor of AbstractDiskWriter takes filename as an
  4263. argument and filename argument is removed from openFile(),
  4264. initAndOpenFile(), openExistingFile() interface. storeDir member
  4265. and its accessor functions are removed from DiskAdaptor because it
  4266. is not used anymore. size() member function of DefaultDiskWriter,
  4267. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4268. opening file.
  4269. * src/AbstractDiskWriter.cc
  4270. * src/AbstractDiskWriter.h
  4271. * src/AbstractSingleDiskAdaptor.cc
  4272. * src/AbstractSingleDiskAdaptor.h
  4273. * src/ByteArrayDiskWriter.cc
  4274. * src/ByteArrayDiskWriter.h
  4275. * src/ByteArrayDiskWriterFactory.cc
  4276. * src/ByteArrayDiskWriterFactory.h
  4277. * src/DefaultDiskWriter.cc
  4278. * src/DefaultDiskWriter.h
  4279. * src/DefaultDiskWriterFactory.cc
  4280. * src/DefaultDiskWriterFactory.h
  4281. * src/DefaultPieceStorage.cc
  4282. * src/DirectDiskAdaptor.cc
  4283. * src/DirectDiskAdaptor.h
  4284. * src/DiskAdaptor.h
  4285. * src/DiskWriter.h
  4286. * src/DiskWriterFactory.h
  4287. * src/MessageDigestHelper.cc
  4288. * src/MultiDiskAdaptor.cc
  4289. * src/RequestGroup.cc
  4290. * src/UnknownLengthPieceStorage.cc
  4291. * src/Util.cc
  4292. * test/DefaultDiskWriterTest.cc
  4293. * test/DirectDiskAdaptorTest.cc
  4294. * test/FallocFileAllocationIteratorTest.cc
  4295. * test/MessageDigestHelperTest.cc
  4296. * test/MetalinkProcessorTest.cc
  4297. * test/MultiDiskAdaptorTest.cc
  4298. * test/MultiFileAllocationIteratorTest.cc
  4299. * test/SingleFileAllocationIteratorTest.cc
  4300. * test/UtilTest.cc
  4301. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4302. Fixed the bug that aria2 aborts when --select-file is used. This
  4303. bug was introduced in r1199.
  4304. * src/MultiDiskAdaptor.cc
  4305. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4306. Code cleanup
  4307. * test/MockPieceStorage.cc
  4308. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4309. Fixed the bug that read-only file with wrong file size will cause
  4310. error because it cannot be truncated to the correct size. Now if
  4311. file size is different than the expected one, re-open file in
  4312. writable mode.
  4313. * src/AbstractSingleDiskAdaptor.cc
  4314. * src/AbstractSingleDiskAdaptor.h
  4315. * src/BtCheckIntegrityEntry.cc
  4316. * src/DiskAdaptor.h
  4317. * src/MultiDiskAdaptor.h
  4318. * src/RequestGroup.cc
  4319. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4320. Fixed the bug that with --check-integrity option aria2 reports
  4321. downloaded file size is 0 even if some parts of file is correctly
  4322. downloaded. This bug is reproducible for the download that a file
  4323. includes last piece is missing. This bug doesn't reveal for
  4324. single-torrent with file allocation on.
  4325. * src/IteratableChecksumValidator.cc
  4326. * test/IteratableChecksumValidatorTest.cc
  4327. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4328. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4329. * src/RequestGroupMan.cc
  4330. * src/AdaptiveURISelector.cc
  4331. * src/AdaptiveURISelector.h
  4332. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4333. * Release 1.3.2
  4334. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4335. Updated README
  4336. * README
  4337. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4338. Updated Ukrainian translations. Thanks to Alexander10.
  4339. * po/uk.po
  4340. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4341. Code cleanup
  4342. * src/MetalinkParserStateMachine.cc
  4343. * src/MetalinkParserStateMachine.h
  4344. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4345. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4346. and expat simultaneously, MetalinkProcessor is now not base class
  4347. and it is directly implemented in XML2SAXMetalinkProcessor and
  4348. ExpatMetalinkProcessor.
  4349. * src/ExpatMetalinkProcessor.cc
  4350. * src/ExpatMetalinkProcessor.h
  4351. * src/Makefile.am
  4352. * src/MetalinkHelper.cc
  4353. * src/MetalinkProcessor.h
  4354. * src/MetalinkProcessorFactory.cc: Removed.
  4355. * src/MetalinkProcessorFactory.h: Removed
  4356. * src/XML2SAXMetalinkProcessor.cc
  4357. * src/XML2SAXMetalinkProcessor.h
  4358. * test/MetalinkProcessorTest.cc
  4359. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4360. Bump up version number to 1.3.2
  4361. * configure.ac
  4362. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4363. Added missing file.
  4364. * test/Makefile.am
  4365. * test/url-list-singleFileEndsWithSlash.torrent
  4366. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4367. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4368. request.
  4369. * src/AnnounceList.cc
  4370. * src/AnnounceList.h
  4371. * src/BDE.cc: Added
  4372. * src/BDE.h: Added
  4373. * src/DHTAbstractMessage.cc
  4374. * src/DHTAbstractMessage.h
  4375. * src/DHTAnnouncePeerMessage.cc
  4376. * src/DHTAnnouncePeerMessage.h
  4377. * src/DHTAnnouncePeerReplyMessage.cc
  4378. * src/DHTAnnouncePeerReplyMessage.h
  4379. * src/DHTFindNodeMessage.cc
  4380. * src/DHTFindNodeMessage.h
  4381. * src/DHTFindNodeReplyMessage.cc
  4382. * src/DHTFindNodeReplyMessage.h
  4383. * src/DHTGetPeersMessage.cc
  4384. * src/DHTGetPeersMessage.h
  4385. * src/DHTGetPeersReplyMessage.cc
  4386. * src/DHTGetPeersReplyMessage.h
  4387. * src/DHTMessageFactory.h
  4388. * src/DHTMessageFactoryImpl.cc
  4389. * src/DHTMessageFactoryImpl.h
  4390. * src/DHTMessageReceiver.cc
  4391. * src/DHTMessageTracker.cc
  4392. * src/DHTMessageTracker.h
  4393. * src/DHTPingMessage.cc
  4394. * src/DHTPingMessage.h
  4395. * src/DHTPingReplyMessage.cc
  4396. * src/DHTPingReplyMessage.h
  4397. * src/DHTQueryMessage.cc
  4398. * src/DHTQueryMessage.h
  4399. * src/DHTResponseMessage.cc
  4400. * src/DHTResponseMessage.h
  4401. * src/DefaultBtAnnounce.cc
  4402. * src/DefaultBtContext.cc
  4403. * src/DefaultBtContext.h
  4404. * src/HandshakeExtensionMessage.cc
  4405. * src/Makefile.am
  4406. * src/PeerListProcessor.h
  4407. * src/UTPexExtensionMessage.cc
  4408. * src/bencode.cc
  4409. * src/bencode.h
  4410. * test/AnnounceListTest.cc
  4411. * test/BDETest.cc: Added
  4412. * test/BencodeTest.cc
  4413. * test/DHTAnnouncePeerMessageTest.cc
  4414. * test/DHTAnnouncePeerReplyMessageTest.cc
  4415. * test/DHTFindNodeMessageTest.cc
  4416. * test/DHTFindNodeReplyMessageTest.cc
  4417. * test/DHTGetPeersMessageTest.cc
  4418. * test/DHTGetPeersReplyMessageTest.cc
  4419. * test/DHTMessageFactoryImplTest.cc
  4420. * test/DHTMessageTrackerTest.cc
  4421. * test/DHTPingMessageTest.cc
  4422. * test/DHTPingReplyMessageTest.cc
  4423. * test/Makefile.am
  4424. * test/MockDHTMessageFactory.h
  4425. * test/PeerListProcessorTest.cc
  4426. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4427. Use url-list (web-seeding) only for single-file torrent. This is
  4428. basically the same behavior with Metalink file with torrent and
  4429. URIs.
  4430. * src/RequestGroup.cc
  4431. * src/DefaultBtContext.cc
  4432. * test/DefaultBtContextTest.cc
  4433. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4434. Rewritten expr
  4435. * src/array_fun.h
  4436. * test/array_funTest.cc
  4437. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4438. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4439. * src/DefaultBtMessageDispatcher.cc
  4440. * src/a2algo.h
  4441. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4442. Removed ExtendedMessagingAware. Instead of using inheritance,
  4443. added ExtensionMessageRegistry and it is passed to
  4444. DefaultExtensionMessageFactory.
  4445. * src/DefaultBtInteractive.cc
  4446. * src/DefaultBtInteractive.h
  4447. * src/DefaultExtensionMessageFactory.cc
  4448. * src/DefaultExtensionMessageFactory.h
  4449. * src/ExtendedMessagingAware.h: Removed.
  4450. * src/ExtensionMessageFactory.h
  4451. * src/ExtensionMessageRegistry.h: Added.
  4452. * src/Makefile.am
  4453. * src/PeerInteractionCommand.cc
  4454. * test/DefaultExtensionMessageFactoryTest.cc
  4455. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Fixed typo in log messages
  4457. * src/MSEHandshake.cc
  4458. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4459. Fixed the bug that prevents torrent download from finishing. The
  4460. bug doesn't reveal for all torrents. The torrents affected this
  4461. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4462. of pieces.
  4463. * src/bitfield.h
  4464. * test/bitfieldTest.cc
  4465. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4466. Code cleanup
  4467. * src/PeerListProcessor.h
  4468. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4469. Removed RequestGroupAware
  4470. * src/AbstractCommand.cc
  4471. * src/AbstractCommand.h
  4472. * src/ActivePeerConnectionCommand.cc
  4473. * src/ActivePeerConnectionCommand.h
  4474. * src/DHTGetPeersCommand.cc
  4475. * src/DHTGetPeersCommand.h
  4476. * src/InitiatorMSEHandshakeCommand.cc
  4477. * src/InitiatorMSEHandshakeCommand.h
  4478. * src/Makefile.am
  4479. * src/PeerInitiateConnectionCommand.cc
  4480. * src/PeerInitiateConnectionCommand.h
  4481. * src/PeerInteractionCommand.cc
  4482. * src/PeerInteractionCommand.h
  4483. * src/RealtimeCommand.cc
  4484. * src/RealtimeCommand.h
  4485. * src/RequestGroupAware.cc: Removed
  4486. * src/RequestGroupAware.h: Removed
  4487. * src/SeedCheckCommand.cc
  4488. * src/SeedCheckCommand.h
  4489. * src/SleepCommand.cc
  4490. * src/TrackerWatcherCommand.cc
  4491. * src/TrackerWatcherCommand.h
  4492. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4493. Rewritten PeerListProcessor
  4494. * src/PeerListProcessor.h
  4495. * src/CompactPeerListProcessor.h: Removed
  4496. * src/CompactPeerListProcessor.cc: Removed
  4497. * src/DelegatingPeerListProcessor.cc: Removed.
  4498. * src/DefaultBtAnnounce.cc
  4499. * src/Makefile.am
  4500. * src/UTPexExtensionMessage.cc
  4501. * src/DefaultPeerListProcessor.h: Removed.
  4502. * src/DefaultPeerListProcessor.cc: Removed.
  4503. * src/DelegatingPeerListProcessor.h: Removed.
  4504. * test/Makefile.am
  4505. * test/PeerListProcessorTest.cc
  4506. * test/DefaultPeerListProcessorTest.cc: Removed.
  4507. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4508. Rewritten RequestGroupMan::calculateStat()
  4509. * src/RequestGroupMan.cc
  4510. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4511. Removed unnecessary virtual destructor for Request class.
  4512. * src/Request.cc
  4513. * src/Request.h
  4514. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Avoid dynamic_pointer_cast.
  4516. * src/DHTGetPeersCommand.cc
  4517. * src/DHTGetPeersCommand.h
  4518. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4519. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4520. BtEvent.
  4521. * src/AbstractBtEventListener.h: Removed.
  4522. * src/AbstractBtMessage.cc
  4523. * src/AbstractBtMessage.h
  4524. * src/BtAbortOutstandingRequestEvent.h
  4525. * src/BtCancelSendingPieceEvent.h
  4526. * src/BtChokedEvent.h: Removed.
  4527. * src/BtChokingEvent.h
  4528. * src/BtEvent.h: Removed
  4529. * src/BtEventListener.h: Removed.
  4530. * src/BtMessage.h
  4531. * src/BtPieceMessage.cc
  4532. * src/BtPieceMessage.h
  4533. * src/BtRequestMessage.cc
  4534. * src/BtRequestMessage.h
  4535. * src/DefaultBtMessageDispatcher.cc
  4536. * src/Makefile.am
  4537. * src/a2functional.h
  4538. * test/BtPieceMessageTest.cc
  4539. * test/BtRequestMessageTest.cc
  4540. * test/DefaultBtMessageDispatcherTest.cc
  4541. * test/MockBtMessage.h
  4542. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4543. Code cleanup
  4544. * src/RequestGroupMan.cc
  4545. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4546. Code cleanup
  4547. * src/DownloadCommand.cc
  4548. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4549. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4550. byte.
  4551. * src/DownloadCommand.cc
  4552. * src/bitfield.h
  4553. * test/bitfieldTest.cc
  4554. Fixed the bug that causes infinite loop if broken web server
  4555. returns chunked response without last "0" chunk-size marker and
  4556. closes connection.
  4557. * src/DownloadCommand.cc
  4558. Instantiate properly configured HttpDownloadCommand for
  4559. non-resumable downlaods.
  4560. * src/HttpResponseCommand.cc
  4561. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4562. Rewritten array operation functions.
  4563. * src/BitfieldMan.cc
  4564. * src/array_fun.h
  4565. * test/array_funTest.cc
  4566. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4567. Removed unused variable 'query'
  4568. * src/Request.cc
  4569. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4570. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4571. accidentally set to false in r1162.
  4572. * configure.ac
  4573. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4574. Code cleanup
  4575. * src/BNode.cc
  4576. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4577. Increase prefixLength for the bucket which doesn't own local node
  4578. ID when splitting bucket.
  4579. * src/DHTBucket.cc
  4580. * test/DHTBucketTest.cc
  4581. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4582. * Release 1.3.1
  4583. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4584. Bump up version number to 1.3.1
  4585. * configure.ac
  4586. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4587. Removed unused variable checkPoint. Also removed include directive
  4588. for TimeA2.h.
  4589. * src/SeedCheckCommand.h
  4590. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4591. Fixed the bug that upload limit exceeds the value specified in
  4592. --seed-ratio option depending on the timing of the execution of
  4593. SeedCheckCommand.
  4594. * src/SeedCheckCommand.cc
  4595. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4596. Fixed the bug that removed peer's session upload/download length
  4597. are counted twice in _cachedTransferStat before it is
  4598. re-calculated. This affected the calculation of shara ratio,
  4599. resulting aria2 wrongly determines that specified share ratio is
  4600. reached. Also fixed the typo in calculateStatFor function name.
  4601. * src/BtSetup.cc
  4602. * src/DefaultPeerStorage.cc
  4603. * src/ShareRatioSeedCriteria.h
  4604. * test/ShareRatioSeedCriteriaTest.cc
  4605. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4606. * Release 1.3.0
  4607. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4608. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4609. Nynorsk translations. Thanks to all translators.
  4610. * po/es.po
  4611. * po/ja.po
  4612. * po/nn.po
  4613. * po/ru.po
  4614. * po/uk.po
  4615. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4616. Rewritten isInRange()
  4617. * src/DHTBucket.cc
  4618. * test/DHTBucketTest.cc
  4619. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4620. Fixed typo
  4621. * doc/aria2c.1.txt
  4622. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4623. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4624. malloc/realloc is not used.
  4625. * src/configure.ac
  4626. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4627. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4628. char* bitfield instead of stl container for efficiency.
  4629. PieceSelector::select now takes this
  4630. bitfield. RarestPieceSelector::select now also performs
  4631. efficiently for this change. bitfield namespace is introduced and
  4632. it has several helper functions to handle basic bitfield
  4633. operations such as test, count set bits, etc.
  4634. * src/BitfieldMan.cc
  4635. * src/BitfieldMan.h
  4636. * src/DefaultBtRequestFactory.cc
  4637. * src/DefaultPieceStorage.cc
  4638. * src/DefaultPieceStorage.h
  4639. * src/LongestSequencePieceSelector.cc
  4640. * src/LongestSequencePieceSelector.h
  4641. * src/Makefile.am
  4642. * src/Piece.cc
  4643. * src/Piece.h
  4644. * src/PieceSelector.h
  4645. * src/RarestPieceSelector.cc
  4646. * src/RarestPieceSelector.h
  4647. * src/Util.cc
  4648. * src/Util.h
  4649. * src/bitfield.h
  4650. * test/BitfieldManTest.cc
  4651. * test/LongestSequencePieceSelectorTest.cc
  4652. * test/Makefile.am
  4653. * test/RarestPieceSelectorTest.cc
  4654. * test/UtilTest.cc
  4655. * test/bitfieldTest.cc
  4656. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4657. Made accepted socket non-block.
  4658. * src/FtpNegotiationCommand.cc
  4659. * src/HttpListenCommand.cc
  4660. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4661. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4662. * src/AbstractSingleDiskAdaptor.cc
  4663. * src/DefaultPieceStorage.cc
  4664. * src/DiskAdaptor.h
  4665. * src/DiskAdaptor.h
  4666. * src/MultiFileAllocationIterator.cc
  4667. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4668. Run
  4669. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4670. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4671. it doesn't need to be called every time when
  4672. DefaultBtInteractive::doInteractionProcessing() is called.
  4673. * src/DefaultBtInteractive.cc
  4674. * src/DefaultBtInteractive.h
  4675. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4676. Documented 'falloc' in man page.
  4677. * doc/aria2c.1.txt
  4678. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4679. Updated doc
  4680. * src/usage_text.h
  4681. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4682. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4683. allocation mode uses posix_fallocate() system call to allocate
  4684. file on disk. If you are using newer file systems such as ext4
  4685. (with extents support), btrfs or xfs, 'falloc' is your best
  4686. choice. It allocates large(few GiB) files almost instantly. Don't
  4687. use 'falloc' with legacy file systems such as ext3 because it
  4688. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4689. until allocation finishes. 'falloc' may not be available if your
  4690. system doesn't have posix_fallocate() system call.
  4691. * configure.ac
  4692. * src/AbstractDiskWriter.cc
  4693. * src/AbstractDiskWriter.h
  4694. * src/AbstractSingleDiskAdaptor.cc
  4695. * src/BinaryStream.h
  4696. * src/BtCheckIntegrityEntry.cc
  4697. * src/ByteArrayDiskWriter.h
  4698. * src/CheckIntegrityEntry.cc
  4699. * src/CheckIntegrityEntry.h
  4700. * src/DefaultPieceStorage.cc
  4701. * src/DiskAdaptor.cc
  4702. * src/DiskAdaptor.h
  4703. * src/DiskWriter.h
  4704. * src/FallocFileAllocationIterator.cc
  4705. * src/FallocFileAllocationIterator.h
  4706. * src/FileAllocationEntry.cc
  4707. * src/FileAllocationEntry.h
  4708. * src/Makefile.am
  4709. * src/MultiFileAllocationIterator.cc
  4710. * src/MultiFileAllocationIterator.h
  4711. * src/OptionHandlerFactory.cc
  4712. * src/RequestGroup.cc
  4713. * src/StreamCheckIntegrityEntry.cc
  4714. * src/prefs.cc
  4715. * src/prefs.h
  4716. * src/usage_text.h
  4717. * test/FallocFileAllocationIteratorTest.cc
  4718. * test/Makefile.am
  4719. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4720. Removed duplicate enableDirectIO() call.
  4721. * src/MultiFileAllocationIterator.cc
  4722. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4723. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4724. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4725. cost of std::rotate().
  4726. * src/RarestPieceSelector.cc
  4727. * src/RarestPieceSelector.h
  4728. * test/RarestPieceSelectorTest.cc
  4729. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4730. Updated usage doc for --bt-tracker-interval option.
  4731. * src/usage_text.h
  4732. * doc/aria2c.1.txt
  4733. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4734. Documented --bt-tracker-interval option in man page.
  4735. * doc/aria2c.1.txt
  4736. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4737. Added an option to specify the interval between tracker requests.
  4738. If non-zero value is specified, aria2 uses it and ignores the
  4739. interval value in the response of tracker. If zero is specified,
  4740. aria2 determines the inteval value based on the tarcker response
  4741. and download progress.
  4742. * src/DefaultBtAnnounce.cc
  4743. * src/DefaultBtAnnounce.h
  4744. * src/OptionHandlerFactory.cc
  4745. * src/RequestGroup.cc
  4746. * src/prefs.cc
  4747. * src/prefs.h
  4748. * src/usage_text.h
  4749. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4750. Added operator+=, operator-=, operator-
  4751. * src/TransferStat.cc
  4752. * src/TransferStat.h
  4753. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4754. Refactored RarestPieceSelector to reduce CPU load, especially for
  4755. addPieceStats.
  4756. * src/RarestPieceSelector.cc
  4757. * src/RarestPieceSelector.h
  4758. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4759. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4760. getAllMissingBlockIndexes to reduce a call to
  4761. array_function_base::operator[].
  4762. * src/BitfieldMan.cc
  4763. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4764. Cached TransferStat/download speed to avoid to sum them up in each
  4765. call.
  4766. * src/DefaultPeerStorage.cc
  4767. * src/DefaultPeerStorage.h
  4768. * src/SegmentMan.cc
  4769. * src/SegmentMan.h
  4770. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4771. Typedefed cuid_t as int32_t in Command.h
  4772. * src/CUIDCounter.h
  4773. * src/Command.cc
  4774. * src/Command.h
  4775. * src/DownloadEngine.cc
  4776. * src/DownloadEngine.h
  4777. * src/PeerStat.h
  4778. * src/SegmentMan.cc
  4779. * src/SegmentMan.h
  4780. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4781. Reduced the number of calls to PeerStorage::calculateStat() and
  4782. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4783. transfer rate.
  4784. * src/DefaultBtInteractive.cc
  4785. * src/DefaultBtMessageDispatcher.cc
  4786. * src/DefaultPeerStorage.cc
  4787. * src/DefaultPeerStorage.h
  4788. * src/DownloadCommand.cc
  4789. * src/DownloadEngine.cc
  4790. * src/PeerStorage.h
  4791. * src/SegmentMan.cc
  4792. * src/SegmentMan.h
  4793. * test/MockPeerStorage.h
  4794. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4795. Prepended _dir+"/" after joining path elements in torrent file.
  4796. * src/DefaultBtContext.cc
  4797. * test/DefaultBtContextTest.cc
  4798. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4799. Added missing IndexBtMessageValidator.h
  4800. * src/Makefile.am
  4801. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4802. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4803. Chinese translations. Thank you for contributing our project.
  4804. * po/id.po
  4805. * po/it.po
  4806. * po/ru.po
  4807. * po/uk.po
  4808. * po/zh_CN.po
  4809. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4810. Updated README
  4811. * README
  4812. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4813. Bump up version number to 1.3.0
  4814. * configure.ac
  4815. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4816. Updated doc
  4817. * src/DefaultBtContext.h
  4818. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4819. Slice/joinPath for name of single torrent.
  4820. * src/DefaultBtContext.cc
  4821. * test/DefaultBtContextTest.cc
  4822. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4823. Updated man page: Documented --dry-run and --index-out
  4824. options. Changed the default value of --uri-selector and
  4825. --http-auth-challenge options. Removed --direct-file-mapping
  4826. option. Added example for --index-out
  4827. * doc/aria2c.1.txt
  4828. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4829. Updated TEXT_DRY_RUN
  4830. * src/usage_text.h
  4831. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4832. Changed the default value of --uri-selector option from 'inorder'
  4833. to 'feedback'
  4834. * src/OptionHandlerFactory.cc
  4835. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4836. Included current URI in exception message.
  4837. * src/AbstractCommand.cc
  4838. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4839. Renamed ServerStatURISelector as FeedbackURISelector.
  4840. * src/FeedbackURISelector.cc
  4841. * src/FeedbackURISelector.h
  4842. * src/Makefile.am
  4843. * src/RequestGroupMan.cc
  4844. * src/ServerStatURISelector.cc
  4845. * src/ServerStatURISelector.h
  4846. * test/FeedbackURISelectorTest.cc
  4847. * test/Makefile.am
  4848. * test/ServerStatURISelectorTest.cc
  4849. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4850. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  4851. all URIs are tested and their timeout is not reached.
  4852. * src/AdaptiveURISelector.cc
  4853. * src/AdaptiveURISelector.h
  4854. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4855. Changed the default value of --http-auth-challenge option to false.
  4856. * src/OptionHandlerFactory.cc
  4857. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4858. Reuse URIs when all unused URIs run out.
  4859. * src/OptionHandlerFactory.cc
  4860. * src/RequestGroup.cc
  4861. * src/prefs.cc
  4862. * src/prefs.h
  4863. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4864. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4865. and BtRejectMessage are derived from RangeBtMessage class.
  4866. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4867. derived from IndexBtMessage class. BtChokeMessage,
  4868. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4869. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4870. ZeroBtMessage class.
  4871. * src/AbstractBtMessage.cc
  4872. * src/AbstractBtMessage.h
  4873. * src/BtAllowedFastMessage.cc
  4874. * src/BtAllowedFastMessage.h
  4875. * src/BtAllowedFastMessageValidator.h: Removed
  4876. * src/BtBitfieldMessage.cc
  4877. * src/BtBitfieldMessage.h
  4878. * src/BtCancelMessage.cc
  4879. * src/BtCancelMessage.h
  4880. * src/BtCancelMessageValidator.h: Removed
  4881. * src/BtChokeMessage.cc
  4882. * src/BtChokeMessage.h
  4883. * src/BtExtendedMessage.cc
  4884. * src/BtExtendedMessage.h
  4885. * src/BtHandshakeMessage.cc
  4886. * src/BtHandshakeMessage.h
  4887. * src/BtHaveAllMessage.cc
  4888. * src/BtHaveAllMessage.h
  4889. * src/BtHaveMessage.cc
  4890. * src/BtHaveMessage.h
  4891. * src/BtHaveMessageValidator.h: Removed
  4892. * src/BtHaveNoneMessage.cc
  4893. * src/BtHaveNoneMessage.h
  4894. * src/BtInterestedMessage.cc
  4895. * src/BtInterestedMessage.h
  4896. * src/BtKeepAliveMessage.cc
  4897. * src/BtKeepAliveMessage.h
  4898. * src/BtNotInterestedMessage.cc
  4899. * src/BtNotInterestedMessage.h
  4900. * src/BtPieceMessage.cc
  4901. * src/BtPieceMessage.h
  4902. * src/BtPortMessage.cc
  4903. * src/BtPortMessage.h
  4904. * src/BtRejectMessage.cc
  4905. * src/BtRejectMessage.h
  4906. * src/BtRejectMessageValidator.h: Removed
  4907. * src/BtRequestMessage.cc
  4908. * src/BtRequestMessage.h
  4909. * src/BtRequestMessageValidator.h: Removed
  4910. * src/BtSuggestPieceMessage.cc
  4911. * src/BtSuggestPieceMessage.h
  4912. * src/BtSuggestPieceMessageValidator.h: Removed
  4913. * src/BtUnchokeMessage.cc
  4914. * src/BtUnchokeMessage.h
  4915. * src/DefaultBtMessageFactory.cc
  4916. * src/IndexBtMessage.cc
  4917. * src/IndexBtMessage.h
  4918. * src/IndexBtMessageValidator.h
  4919. * src/Makefile.am
  4920. * src/PeerMessageUtil.cc
  4921. * src/PeerMessageUtil.h
  4922. * src/RangeBtMessage.cc
  4923. * src/RangeBtMessage.h
  4924. * src/RangeBtMessageValidator.h
  4925. * src/SimpleBtMessage.cc
  4926. * src/SimpleBtMessage.h
  4927. * src/ZeroBtMessage.cc
  4928. * src/ZeroBtMessage.h
  4929. * test/BtRequestMessageTest.cc
  4930. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4931. Reverted usage_text.h to r1093 to avoid to lose translated
  4932. messages.
  4933. * src/usage_text.h
  4934. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4935. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4936. declared as non-const previously is now const and defined in class
  4937. definition.
  4938. * src/AbstractBtMessage.cc
  4939. * src/AbstractBtMessage.h
  4940. * src/BtAllowedFastMessage.cc
  4941. * src/BtAllowedFastMessage.h
  4942. * src/BtBitfieldMessage.h
  4943. * src/BtCancelMessage.cc
  4944. * src/BtCancelMessage.h
  4945. * src/BtChokeMessage.cc
  4946. * src/BtChokeMessage.h
  4947. * src/BtExtendedMessage.cc
  4948. * src/BtExtendedMessage.h
  4949. * src/BtHandshakeMessage.cc
  4950. * src/BtHandshakeMessage.h
  4951. * src/BtHaveAllMessage.cc
  4952. * src/BtHaveAllMessage.h
  4953. * src/BtHaveMessage.cc
  4954. * src/BtHaveMessage.h
  4955. * src/BtHaveNoneMessage.cc
  4956. * src/BtHaveNoneMessage.h
  4957. * src/BtInterestedMessage.cc
  4958. * src/BtInterestedMessage.h
  4959. * src/BtKeepAliveMessage.cc
  4960. * src/BtKeepAliveMessage.h
  4961. * src/BtMessage.h
  4962. * src/BtNotInterestedMessage.cc
  4963. * src/BtNotInterestedMessage.h
  4964. * src/BtPieceMessage.h
  4965. * src/BtPortMessage.cc
  4966. * src/BtPortMessage.h
  4967. * src/BtRejectMessage.cc
  4968. * src/BtRejectMessage.h
  4969. * src/BtRequestMessage.cc
  4970. * src/BtRequestMessage.h
  4971. * src/BtSuggestPieceMessage.cc
  4972. * src/BtSuggestPieceMessage.h
  4973. * src/BtUnchokeMessage.cc
  4974. * src/BtUnchokeMessage.h
  4975. * src/SimpleBtMessage.cc
  4976. * src/SimpleBtMessage.h
  4977. * test/MockBtMessage.h
  4978. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4979. Use FileEntry::exists()
  4980. * src/MultiDiskAdaptor.cc
  4981. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4982. Added exists()
  4983. * src/FileEntry.cc
  4984. * src/FileEntry.h
  4985. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4986. Added missing prefix dir.
  4987. * src/download_helper.cc
  4988. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4989. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4990. * src/CopyDiskAdaptor.cc: Removed
  4991. * src/CopyDiskAdaptor.h: Removed
  4992. * src/DefaultPieceStorage.cc
  4993. * src/Makefile.am
  4994. * src/OptionHandlerFactory.cc
  4995. * src/prefs.cc
  4996. * src/prefs.h
  4997. * src/usage_text.h
  4998. * test/CopyDiskAdaptorTest.cc: Removed
  4999. * test/Makefile.am
  5000. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5001. Rewritten isSameFileBeingDownloaded()
  5002. * src/RequestGroupMan.cc
  5003. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5004. Removed getName() from DownloadContext. getName() is declared in
  5005. BtContext.
  5006. * src/BtContext.h
  5007. * src/DownloadContext.h
  5008. * src/SingleFileDownloadContext.cc
  5009. * src/SingleFileDownloadContext.h
  5010. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5011. in AbstractSingleDiskAdaptor.
  5012. * src/AbstractSingleDiskAdaptor.h
  5013. * src/DiskAdaptor.h
  5014. * src/MultiDiskAdaptor.h
  5015. * src/RequestGroup.cc
  5016. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5017. MultiDiskAdaptor.
  5018. * src/DefaultPieceStorage.cc
  5019. * src/MultiDiskAdaptor.cc
  5020. * src/MultiDiskAdaptor.h
  5021. * test/MultiDiskAdaptorTest.cc
  5022. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5023. FileEntry::getPath() contains store(top level) directory to
  5024. simplify path handling operation. In the previous implementation,
  5025. store directory is concatenated to FileEntry::getPath() in
  5026. DownloadContext.
  5027. * src/BtDependency.cc
  5028. * src/BtPostDownloadHandler.cc
  5029. * src/CopyDiskAdaptor.cc
  5030. * src/DefaultBtContext.cc
  5031. * src/DirectDiskAdaptor.cc
  5032. * src/FileEntry.cc
  5033. * src/FileEntry.h
  5034. * src/FtpNegotiationCommand.cc
  5035. * src/HttpResponse.cc
  5036. * src/HttpResponseCommand.cc
  5037. * src/Metalink2RequestGroup.cc
  5038. * src/MultiDiskAdaptor.cc
  5039. * src/MultiDiskAdaptor.h
  5040. * src/MultiFileAllocationIterator.cc
  5041. * src/RequestGroup.cc
  5042. * src/SingleFileDownloadContext.cc
  5043. * src/SingleFileDownloadContext.h
  5044. * src/download_helper.cc
  5045. * test/BtDependencyTest.cc
  5046. * test/CopyDiskAdaptorTest.cc
  5047. * test/DefaultBtContextTest.cc
  5048. * test/DefaultBtProgressInfoFileTest.cc
  5049. * test/DirectDiskAdaptorTest.cc
  5050. * test/DownloadHelperTest.cc
  5051. * test/FileEntryTest.cc
  5052. * test/MultiDiskAdaptorTest.cc
  5053. * test/MultiFileAllocationIteratorTest.cc
  5054. * test/RequestGroupTest.cc
  5055. * test/SingleFileDownloadContextTest.cc
  5056. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5057. Fixed compiler warning
  5058. * src/download_helper.cc
  5059. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5060. Throw exception if same infohash torrent is now downloading.
  5061. * src/RequestGroup.cc
  5062. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5063. Added --dry-run option. In this mode, aria2 just checks whether
  5064. the remote file is available and doesn't download data. This
  5065. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5066. are canceled in this mode.
  5067. * src/FtpNegotiationCommand.cc
  5068. * src/HttpResponseCommand.cc
  5069. * src/HttpResponseCommand.h
  5070. * src/OptionHandlerFactory.cc
  5071. * src/RequestGroup.cc
  5072. * src/RequestGroupMan.cc
  5073. * src/prefs.cc
  5074. * src/prefs.h
  5075. * src/usage_text.h
  5076. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5077. Fixed compiler waring
  5078. * test/UriListParserTest.cc
  5079. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5080. Parse options in -i list using OptionParser.
  5081. * src/UriListParser.cc
  5082. * src/UriListParser.h
  5083. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5084. Don't reset URI in retry to avoid additional round trips because
  5085. of redirects.
  5086. * src/AbstractCommand.cc
  5087. * src/OptionHandlerFactory.cc
  5088. * src/prefs.cc
  5089. * src/prefs.h
  5090. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5091. Declared hide() in OptionHandler.
  5092. * src/NameMatchOptionHandler.h
  5093. * src/OptionHandler.h
  5094. * src/OptionHandlerImpl.h
  5095. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5096. Updated doc
  5097. * src/Peer.h
  5098. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5099. Added log message in setStatusInternal()
  5100. * src/ServerStat.cc
  5101. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5102. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5103. effectively exclude failed server.
  5104. * src/AbstractCommand.cc
  5105. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5106. Added --index-out option to specify each file path for torrent.
  5107. Here index shown in --show-files option is used to specify which
  5108. file path should be altered. For example, to change the file path
  5109. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5110. option multiple times: --index-out=1=aria2.tar.bz2
  5111. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5112. available. This option can be specified in -i list.
  5113. * src/DefaultBtContext.cc
  5114. * src/DefaultBtContext.h
  5115. * src/MultiDiskAdaptor.cc
  5116. * src/MultiDiskAdaptor.h
  5117. * src/MultiFileAllocationIterator.cc
  5118. * src/OptionHandlerFactory.cc
  5119. * src/OptionHandlerImpl.h
  5120. * src/Util.cc
  5121. * src/Util.h
  5122. * src/download_helper.cc
  5123. * src/prefs.cc
  5124. * src/prefs.h
  5125. * src/usage_text.h
  5126. * test/DefaultBtContextTest.cc
  5127. * test/MultiDiskAdaptorTest.cc
  5128. * test/MultiFileAllocationIteratorTest.cc
  5129. * test/UtilTest.cc
  5130. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5131. Use Util::pathJoin()
  5132. * src/MetalinkParserController.cc
  5133. * test/test.xml
  5134. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5135. Use Util::pathJoin()
  5136. * src/DefaultBtContext.cc
  5137. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5138. Added Util::pathJoin()
  5139. * src/Util.h
  5140. * test/UtilTest.cc
  5141. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5142. Applied basename function to remove directory element in
  5143. content-disposition value.
  5144. Return empty string if content-disposition value is ".." or ".".
  5145. * src/Util.cc
  5146. * test/UtilTest.cc
  5147. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5148. Added --max-overall-download-limit in man page.
  5149. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5150. * doc/aria2c.1.txt
  5151. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5152. Added --max-overall-download-limit option. Now --max-upload-limit
  5153. option is not ignored when --max-overall-upload-limit option has
  5154. non-zero value. aria2 checks download(upload) speed in the order:
  5155. first checks overall speed limit and if it is not exceeded, then
  5156. checks speed limit per download. Thus you can specify both
  5157. value. For example, set --max-overall-download-limit=1M and
  5158. --max-download-limit=500K to prevent from one download from eating
  5159. all overall speed limit.
  5160. * src/DefaultBtInteractive.cc
  5161. * src/DefaultBtInteractive.h
  5162. * src/DefaultBtMessageDispatcher.cc
  5163. * src/DefaultBtMessageDispatcher.h
  5164. * src/DownloadCommand.cc
  5165. * src/DownloadCommand.h
  5166. * src/FtpNegotiationCommand.cc
  5167. * src/HttpResponseCommand.cc
  5168. * src/OptionHandlerFactory.cc
  5169. * src/PeerInteractionCommand.cc
  5170. * src/RequestGroup.cc
  5171. * src/RequestGroup.h
  5172. * src/RequestGroupMan.cc
  5173. * src/RequestGroupMan.h
  5174. * src/prefs.cc
  5175. * src/prefs.h
  5176. * src/usage_text.h
  5177. * test/DefaultBtMessageDispatcherTest.cc
  5178. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5179. Documented select-file option in Input File section.
  5180. Documented --http-auth-challenge option.
  5181. * doc/aria2c.1.txt
  5182. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5183. Now select-file can be specified in the uri list(-i list).
  5184. * src/BtContext.cc
  5185. * src/BtContext.h
  5186. * src/RequestGroup.cc
  5187. * src/Sequence.h
  5188. * src/download_helper.cc
  5189. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5190. Made the upper value of --max-concurrent-downloads options unlimited.
  5191. * src/OptionHandlerFactory.cc
  5192. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5193. Fixed the bug that disk writer is not created even if it shares
  5194. same piece with the preceding file if the length of previous file
  5195. is 0.
  5196. * src/MultiDiskAdaptor.cc
  5197. * test/MultiDiskAdaptorTest.cc
  5198. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5199. In BitTorrent, Open files in read-only mode for hash check. After
  5200. that, re-open file in read/write mode only when the download is
  5201. not finished.
  5202. * src/AbstractDiskWriter.cc
  5203. * src/AbstractDiskWriter.h
  5204. * src/AbstractSingleDiskAdaptor.cc
  5205. * src/AbstractSingleDiskAdaptor.h
  5206. * src/BtCheckIntegrityEntry.cc
  5207. * src/DiskAdaptor.h
  5208. * src/DiskWriter.h
  5209. * src/MultiDiskAdaptor.cc
  5210. * src/MultiDiskAdaptor.h
  5211. * src/RequestGroup.cc
  5212. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5213. Added --http-auth-challenge option. If it is set to true(by
  5214. default), aria2 sends HTTP authorization header only when it is
  5215. requested by the server. If false is set, then authorization
  5216. header is always sent to the server. This is useful for servers
  5217. that don't respond 401 code when authentication is required.
  5218. There is an exception: if username and password are embedded in
  5219. URI, authorization header is always sent to the server regardless
  5220. of this option.
  5221. * src/AuthConfigFactory.cc
  5222. * src/HttpSkipResponseCommand.cc
  5223. * src/OptionHandlerFactory.cc
  5224. * src/prefs.cc
  5225. * src/prefs.h
  5226. * src/usage_text.h
  5227. * test/AuthConfigFactoryTest.cc
  5228. * test/HttpRequestTest.cc
  5229. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5230. * Release 1.2.0
  5231. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5232. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5233. Thanks to all translators.
  5234. * po/es.po
  5235. * po/ja.po
  5236. * po/ru.po
  5237. * po/uk.po
  5238. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5239. Call deleteSocketForReadCheck() before socket is closed.
  5240. * src/HttpListenCommand.cc
  5241. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5242. Defined virtual destructor for BObject.
  5243. * src/bencode.h
  5244. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5245. Rewritten BDE to make it efficient.
  5246. * src/bencode.cc
  5247. * src/bencode.h
  5248. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5249. Removed function throw list.
  5250. * src/bencode.cc
  5251. * src/bencode.h
  5252. * test/BencodeTest.cc
  5253. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5254. Enclosed all URLs in double quotes in command-line examples.
  5255. * doc/aria2c.1.txt
  5256. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5257. Updated reference/see also section.
  5258. * README
  5259. * doc/aria2c.1.txt
  5260. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5261. Reorganized man page based on man man-pages.
  5262. * doc/aria2c.1.txt
  5263. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5264. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5265. because same documents are available in man page. Added
  5266. References section.
  5267. * README
  5268. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5269. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5270. PERFORMANCE PROFILE section.
  5271. * doc/aria2c.1.txt
  5272. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5273. Rewritten the section for configuration file.
  5274. * README
  5275. * doc/aria2c.1.txt
  5276. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5277. Fixed the segmentation fault during execution of choking algorithm
  5278. in leecher state because of broken compare operator
  5279. implementation.
  5280. * src/BtLeecherStateChoke.cc
  5281. * src/BtLeecherStateChoke.h
  5282. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5283. Open file in binary mode.
  5284. * src/CookieStorage.cc
  5285. * src/DHTSetup.cc
  5286. * src/DHTUtil.cc
  5287. * src/Netrc.cc
  5288. * src/NsCookieParser.cc
  5289. * src/ProtocolDetector.cc
  5290. * src/RequestGroupMan.cc
  5291. * src/Signature.cc
  5292. * src/bencode.cc
  5293. * src/download_helper.cc
  5294. * src/option_processing.cc
  5295. * test/CookieParserTest.cc
  5296. * test/DefaultBtProgressInfoFileTest.cc
  5297. * test/FileTest.cc
  5298. * test/GZipDecoderTest.cc
  5299. * test/RequestGroupManTest.cc
  5300. * test/SignatureTest.cc
  5301. * test/SingleFileAllocationIteratorTest.cc
  5302. * test/UriListParserTest.cc
  5303. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5304. Removed operator[] because it is ambiguous with built-in []
  5305. operator.
  5306. * src/array_fun.h
  5307. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5308. Fixed compile error
  5309. * src/OptionParser.cc
  5310. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5311. Added missing call to arrayWrapperConst
  5312. * test/array_funTest.cc
  5313. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5314. Use array_wrapper instead of array_ptr.
  5315. * src/DHTRoutingTableDeserializer.cc
  5316. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5317. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5318. * src/array_fun.h
  5319. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5320. Added array_wrapper template.
  5321. * src/array_fun.h
  5322. * test/array_funTest.cc
  5323. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5324. Use operator T* of array_ptr.
  5325. * src/OptionParser.cc
  5326. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5327. Use localhost instead of 127.0.0.1
  5328. * test/FtpConnectionTest.cc
  5329. * test/MSEHandshakeTest.cc
  5330. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5331. Added operator T*
  5332. * src/array_fun.h
  5333. * test/array_funTest.cc
  5334. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5335. Use dynamically allocated char array to detect memory access
  5336. violation.
  5337. * src/DHTRoutingTableDeserializer.cc
  5338. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5339. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5340. defined.
  5341. * src/PeerMessageUtil.cc
  5342. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5343. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5344. * configure.ac
  5345. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5346. Added a check to see struct sockaddr_in has sin_len member.
  5347. * configure.ac
  5348. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5349. Fixed buffer overrun.
  5350. * src/DHTRoutingTableDeserializer.cc
  5351. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5352. Added LL for long long int constant.
  5353. * test/FtpConnectionTest.cc
  5354. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5355. Casted to unsigned int to suppress compiler warning on netbsd.
  5356. * src/BtRuntime.h
  5357. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5358. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5359. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5360. type time_t.
  5361. * src/SimpleLogger.cc
  5362. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5363. Added test for FtpConnection::receiveSizeResponse().
  5364. * test/FtpConnectionTest.cc
  5365. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5366. Fix epoll error on the old kernel 2.6.8 or ealier.
  5367. * src/EpollEventPoll.cc
  5368. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5369. Use Util::parseLLInt instead of sscanf for portability. The
  5370. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5371. * src/FtpConnection.cc
  5372. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5373. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5374. block. It should not filter anything.
  5375. * src/BitfieldMan.cc
  5376. * src/ConsoleStatCalc.cc
  5377. * test/BitfieldManTest.cc
  5378. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5379. Fixed the bug that the boolean options that don't take arguments
  5380. don't work.
  5381. * src/OptionHandlerImpl.h
  5382. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5383. Fixed broken selected file BitTorrent download.
  5384. * src/MultiDiskAdaptor.cc
  5385. * test/MultiDiskAdaptorTest.cc
  5386. * test/MultiFileAllocationIteratorTest.cc
  5387. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5388. Fixed #define guard for EpollEventPoll
  5389. * src/EpollEventPoll.h
  5390. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5391. Wait 2 seconds. 1 second is sometimes not enough.
  5392. * test/TimeSeedCriteriaTest.cc
  5393. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5394. Use localhost instead of 127.0.0.1.
  5395. * test/DHTConnectionImplTest.cc
  5396. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5397. Suppressed compiler warning.
  5398. * src/AdaptiveURISelector.cc
  5399. * src/DefaultPieceStorage.cc
  5400. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5401. Defined virtual destructor.
  5402. * src/MetalinkParserState.h
  5403. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5404. Give NULL for second argument of getaddrinfo instead of "0".
  5405. * src/NameResolver.cc
  5406. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5407. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5408. included strptime doesn't parse data for this format.
  5409. * src/FtpConnection.cc
  5410. * test/FtpConnectionTest.cc
  5411. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5412. Removed tests giving -1 for unsigned argument.
  5413. * test/SingleFileDownloadContextTest.cc
  5414. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5415. Don't use sha256 in tests because it might not be supported by the
  5416. SSL library.
  5417. * test/MetalinkProcessorTest.cc
  5418. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5419. Removed tests giving -1 for unsigned argument.
  5420. * test/AlphaNumberDecoratorTest
  5421. * test/BitfieldManTest.cc
  5422. * test/DefaultBtContextTest.cc
  5423. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5424. Fixed compile error without libcares when epoll is available.
  5425. * src/EpollEventPoll.cc
  5426. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5427. Included fstream instead of iostream.
  5428. * test/SignatureTest.cc
  5429. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5430. Removed #include <algorithm>
  5431. * test/RequestGroupTest.cc
  5432. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5433. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5434. using RequestGroup::extractURIResult().
  5435. * src/AdaptiveURISelector.cc
  5436. * src/RequestGroup.cc
  5437. * src/RequestGroup.h
  5438. * test/RequestGroupTest.cc
  5439. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5440. Added tests for array_ptr.
  5441. * test/array_funTest.cc
  5442. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5443. Don't send ip parameter to a tracker if ip parameter is empty
  5444. string.
  5445. * src/DefaultBtAnnounce.cc
  5446. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5447. Adjusted line feed.
  5448. * src/version_usage.cc
  5449. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5450. Print tags, possible values when OptionHandlerException is caught.
  5451. * src/option_processing.cc
  5452. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5453. Changed the message for FatalException.
  5454. * src/OptionParser.cc
  5455. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5456. Documented --bt-external-ip option in man page. Updated man pages
  5457. for --proxy-method option.
  5458. * doc/aria2c.1.txt
  5459. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5460. Use GET method for FTP via HTTP proxy.
  5461. * src/FtpInitiateConnectionCommand.cc
  5462. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5463. Changed the default value of --proxy-method option from 'tunnel'
  5464. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5465. option.
  5466. * src/AbstractCommand.cc
  5467. * src/AbstractCommand.h
  5468. * src/FtpInitiateConnectionCommand.cc
  5469. * src/HttpDownloadCommand.cc
  5470. * src/HttpInitiateConnectionCommand.cc
  5471. * src/HttpInitiateConnectionCommand.h
  5472. * src/OptionHandlerFactory.cc
  5473. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5474. Initialized _logger
  5475. * src/SelectEventPoll.cc
  5476. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5477. Defined a copy constructor for the same type.
  5478. * src/SharedHandle.h
  5479. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5480. Added OptionParser::parseArg() which internally uses getopt_long
  5481. to parse command-line options. All command-line options are now
  5482. configured by OptionHandler. No manual editing of struct option*
  5483. is required any more.
  5484. * src/NameMatchOptionHandler.h
  5485. * src/OptionHandler.h
  5486. * src/OptionHandlerFactory.cc
  5487. * src/OptionHandlerImpl.h
  5488. * src/OptionParser.cc
  5489. * src/OptionParser.h
  5490. * src/array_fun.h
  5491. * src/main.cc
  5492. * src/option_processing.cc
  5493. * test/OptionHandlerTest.cc
  5494. * test/OptionParserTest.cc
  5495. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5496. Fixed configure error with --disable-epoll
  5497. * configure.ac
  5498. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5499. Fixed compile error when HAVE_EPOLL is not defined.
  5500. Fixed linker error on bigendian systems.
  5501. * src/SocketCore.cc
  5502. * src/SocketCore.h
  5503. * test/DefaultBtProgressInfoFileTest.cc
  5504. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5505. Added --bt-external-ip option. You can specify the external IP
  5506. address to report to a BitTorrent tracker. Although this function
  5507. is named 'external', it can accept any kind of IP addresses.
  5508. * src/DefaultBtAnnounce.cc
  5509. * src/OptionHandlerFactory.cc
  5510. * src/option_processing.cc
  5511. * src/prefs.cc
  5512. * src/prefs.h
  5513. * src/usage_text.h
  5514. * test/DefaultBtAnnounceTest.cc
  5515. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5516. Extracted the algorithm to find the longest incremental sequence
  5517. as max_sequence template.
  5518. * src/LongestSequencePieceSelector.cc
  5519. * src/a2algo.h
  5520. * test/Makefile.am
  5521. * test/a2algoTest.cc
  5522. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5523. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5524. * src/usage_text.h
  5525. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5526. Updated doc for --uri-selector, --http-server-listen-port and
  5527. --enable-http-server option. Documented --event-poll option.
  5528. * doc/aria2c.1.txt
  5529. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5530. Updated doc for --enable-http-server.
  5531. * src/usage_text.h
  5532. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5533. Documented --http-server-listen-port and --enable-http-server in
  5534. man page.
  5535. * doc/aria2c.1.txt
  5536. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5537. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5538. translations. Thanks to all translators.
  5539. * po/es.po
  5540. * po/id.po
  5541. * po/it.po
  5542. * po/ru.po
  5543. * po/uk.po
  5544. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5545. Bump up version number to 1.2.0
  5546. * configure.ac
  5547. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5548. BtContext::getAnnounceTiers() now returns const reference.
  5549. * src/BtContext.h
  5550. * src/DefaultBtContext.cc
  5551. * src/DefaultBtContext.h
  5552. * test/MockBtContext.h
  5553. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5554. Change the number of retries for tracker request based on the
  5555. number of available tracker in a torrent file.
  5556. * src/TrackerWatcherCommand.cc
  5557. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5558. Added _maxTries property to RequestGroup and assign the option
  5559. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5560. RequestGroup::getMaxTries() instead of
  5561. Option::getAsInt(PREF_MAX_TRIES).
  5562. * src/AbstractCommand.cc
  5563. * src/RequestGroup.cc
  5564. * src/RequestGroup.h
  5565. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5566. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5567. Mandriva. I modified the patch: make RequestGroup have the
  5568. timeout value and AdaptiveURISelector directly modifies that
  5569. value.
  5570. * src/AbstractCommand.cc
  5571. * src/AdaptiveURISelector.cc
  5572. * src/AdaptiveURISelector.h
  5573. * src/FtpNegotiationCommand.cc
  5574. * src/RequestGroup.cc
  5575. * src/RequestGroup.h
  5576. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5577. Fixed compiler warning
  5578. * test/IteratableChecksumValidatorTest.cc
  5579. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5580. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5581. integrated downloads. This PieceSelector subclass finds the
  5582. longest continuous sequence in the available missing pieces and
  5583. selects the last index of such sequence. This makes HTTP/FTP
  5584. connections less interrupted by the pieces obtained by BitTorrent
  5585. peers.
  5586. * src/DefaultPieceStorage.cc
  5587. * src/DefaultPieceStorage.h
  5588. * src/LongestSequencePieceSelector.cc
  5589. * src/LongestSequencePieceSelector.h
  5590. * src/Makefile.am
  5591. * src/PieceSelector.h
  5592. * src/RarestPieceSelector.h
  5593. * src/RequestGroup.cc
  5594. * test/BtDependencyTest.cc
  5595. * test/DefaultPieceStorageTest.cc
  5596. * test/IteratableChecksumValidatorTest.cc
  5597. * test/LongestSequencePieceSelectorTest.cc
  5598. * test/Makefile.am
  5599. * test/SegmentManTest.cc
  5600. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5601. Fixed the bug that the average speed is wrong in
  5602. http/ftp/BitTorrent integrated download. Only the download bytes
  5603. in BitTorrent were considered.
  5604. * src/RequestGroup.cc
  5605. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5606. Choose port for BitTorrent/DHT randomly from the specified range.
  5607. * src/DHTConnectionImpl.cc
  5608. * src/PeerListenCommand.cc
  5609. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5610. Send HTTP Authorization header only if it is requested by the
  5611. server(response 401). There are some exceptions. The authorization
  5612. header for proxy is always sent if it is available without request
  5613. by the server. If username/password is specified in the URI, it
  5614. is immediately sent to the server without request by the server.
  5615. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5616. SharedHandle<AuthConfig>().
  5617. NetrcAuthResolver::resolveAuthConfig() returns
  5618. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5619. * src/AbstractAuthResolver.cc
  5620. * src/AbstractProxyRequestCommand.cc
  5621. * src/AuthConfigFactory.cc
  5622. * src/AuthConfigFactory.h
  5623. * src/HttpConnection.cc
  5624. * src/HttpRequest.cc
  5625. * src/HttpRequest.h
  5626. * src/HttpResponse.cc
  5627. * src/HttpResponseCommand.cc
  5628. * src/HttpSkipResponseCommand.cc
  5629. * test/AuthConfigFactoryTest.cc
  5630. * test/HttpRequestTest.cc
  5631. * test/HttpResponseTest.cc
  5632. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5633. Remove leading "--" from help keyword and a substring after "="
  5634. from help keyword, so that one can query options by '-h--max-' or
  5635. '-hmax-peers=10'.
  5636. * src/option_processing.cc
  5637. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5638. Rewritten PStringVisitor and its implementation.
  5639. * src/PStringBuildVisitor.cc
  5640. * src/PStringBuildVisitor.h
  5641. * src/PStringDatum.h
  5642. * src/PStringNumLoop.h
  5643. * src/PStringSegment.cc
  5644. * src/PStringSegment.h
  5645. * src/PStringSelect.h
  5646. * src/PStringVisitor.h
  5647. * src/download_helper.cc
  5648. * test/PStringBuildVisitorTest.cc
  5649. * test/ParameterizedStringParserTest.cc
  5650. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5651. Persist connection between the built-in HTTP server and a client
  5652. if a client supports keep-alive. Fixed the bug that aria2 exits
  5653. when the HTTP server receives EOF from a client.
  5654. * src/HttpServer.cc
  5655. * src/HttpServer.h
  5656. * src/HttpServerCommand.cc
  5657. * src/HttpServerCommand.h
  5658. * src/HttpServerResponseCommand.cc
  5659. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5660. Added experimental built-in HTTP server. Currently, when a client
  5661. accesses to the server, it responds with the current download
  5662. progress. By default, it is disabled. To enable the server, give
  5663. --enable-http-server option. To change the default port number
  5664. for the server to listen to, use --http-server-listen-port option.
  5665. The response HTML is very simple and refreshes it self each 1
  5666. second. Because of this refresh, you see flicker in normal web
  5667. browser such as Firefox. I recommend to use console-based browser
  5668. such as elinks, w3m. To connect to the server, run 'elinks
  5669. http://localhost:6800/' while running aria2. Please replace port
  5670. number '6800'(which is default) with your preference.
  5671. * src/DownloadEngineFactory.cc
  5672. * src/HttpHeader.cc
  5673. * src/HttpHeader.h
  5674. * src/HttpHeaderProcessor.cc
  5675. * src/HttpHeaderProcessor.h
  5676. * src/HttpListenCommand.cc
  5677. * src/HttpListenCommand.h
  5678. * src/HttpServer.cc
  5679. * src/HttpServer.h
  5680. * src/HttpServerCommand.cc
  5681. * src/HttpServerCommand.h
  5682. * src/HttpServerResponseCommand.cc
  5683. * src/HttpServerResponseCommand.h
  5684. * src/Makefile.am
  5685. * src/OptionHandlerFactory.cc
  5686. * src/Util.cc
  5687. * src/Util.h
  5688. * src/help_tags.h
  5689. * src/option_processing.cc
  5690. * src/prefs.cc
  5691. * src/prefs.h
  5692. * src/usage_text.h
  5693. * test/HttpHeaderProcessorTest.cc
  5694. * test/UtilTest.cc
  5695. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5696. Removed.
  5697. * src/CheckIntegrityMan.cc
  5698. * src/FileAllocationMan.cc
  5699. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5700. Made (piece) hash check sequential for each RequestGroup because
  5701. simultaneous hash check is slower than sequential execution.
  5702. * src/CheckIntegrityCommand.cc
  5703. * src/CheckIntegrityDispatcherCommand.cc
  5704. * src/CheckIntegrityDispatcherCommand.h
  5705. * src/CheckIntegrityMan.h
  5706. * src/ConsoleStatCalc.cc
  5707. * src/DownloadCommand.cc
  5708. * src/DownloadEngine.cc
  5709. * src/DownloadEngine.h
  5710. * src/DownloadEngineFactory.cc
  5711. * src/Makefile.am
  5712. * src/Makefile.in
  5713. * src/RequestGroup.cc
  5714. * src/StatCalc.h
  5715. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5716. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5717. SequentialDispatcherCommand.
  5718. * src/FileAllocationDispatcherCommand.cc
  5719. * src/SequentialDispatcherCommand.h
  5720. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5721. Rewritten FileAllocationDispatcherCommand using brand new
  5722. SequentialDispatcherCommand.
  5723. * src/DownloadEngineFactory.cc
  5724. * src/FileAllocationCommand.cc
  5725. * src/FileAllocationDispatcherCommand.cc
  5726. * src/FileAllocationDispatcherCommand.h
  5727. * src/Makefile.am
  5728. * src/SequentialDispatcherCommand.h
  5729. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5730. Replaced FileAllocationMan with
  5731. SequentialPicker<FileAllocationEntry>.
  5732. * src/BtCheckIntegrityEntry.cc
  5733. * src/ConsoleStatCalc.cc
  5734. * src/DownloadEngine.cc
  5735. * src/DownloadEngine.h
  5736. * src/DownloadEngineFactory.cc
  5737. * src/FileAllocationCommand.cc
  5738. * src/FileAllocationDispatcherCommand.cc
  5739. * src/FileAllocationMan.h
  5740. * src/Makefile.am
  5741. * src/SequentialPicker.h
  5742. * src/StatCalc.h
  5743. * src/StreamCheckIntegrityEntry.cc
  5744. * test/Makefile.am
  5745. * test/SequentialPickerTest.cc
  5746. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5747. Added doc for adaptive URI selector.
  5748. * doc/aria2c.1.txt
  5749. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5750. Added doc for adaptive URI selector.
  5751. * src/usage_text.h
  5752. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5753. Added doc for --bt-max-peers option.
  5754. * doc/aria2c.1.txt
  5755. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5756. Added doc for --bt-hash-check-seed option.
  5757. * doc/aria2c.1.txt
  5758. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5759. Documented exit codes.
  5760. * doc/aria2c.1.txt
  5761. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5762. Added --bt-max-peers option to specify the maximum number of peers
  5763. per torrent. 0 means unlimited number of peers.
  5764. * src/ActivePeerConnectionCommand.cc
  5765. * src/BtRuntime.h
  5766. * src/DefaultPeerStorage.cc
  5767. * src/DefaultPeerStorage.h
  5768. * src/OptionHandlerFactory.cc
  5769. * src/RequestGroup.cc
  5770. * src/option_processing.cc
  5771. * src/prefs.cc
  5772. * src/prefs.h
  5773. * src/usage_text.h
  5774. * test/DefaultPeerStorageTest.cc
  5775. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5776. Added --bt-hash-check-seed option. If true is given to this
  5777. option, after hash check using --check-integrity option and file
  5778. is complete, continue to seed file. If you want to check file and
  5779. download it only when it is damaged or incomplete, set this option
  5780. to false. This option has effect only on BitTorrent download.
  5781. The default value is true(This is the same behavior with the
  5782. previous release).
  5783. * src/BtCheckIntegrityEntry.cc
  5784. * src/OptionHandlerFactory.cc
  5785. * src/option_processing.cc
  5786. * src/prefs.cc
  5787. * src/prefs.h
  5788. * src/usage_text.h
  5789. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5790. Updated copyright year.
  5791. * src/version_usage.cc
  5792. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5793. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5794. * doc/aria2c.1.txt
  5795. * src/usage_text.h
  5796. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5797. Made the max value of split option unlimited.
  5798. * doc/aria2c.1.txt
  5799. * src/OptionHandlerFactory.cc
  5800. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5801. Fixed compile warning/error.
  5802. * src/DownloadResult.h
  5803. * src/HttpDownloadCommand.cc
  5804. * src/ServerStat.cc
  5805. * test/RequestGroupTest.cc
  5806. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5807. Added --event-poll option to select the method for polling events.
  5808. The available methods are "select" and "epoll". "epoll" is
  5809. available on Linux only. The earlier release has the compile
  5810. option to choose from these methods.
  5811. * configure.ac
  5812. * src/RequestGroupMan.cc
  5813. * src/OptionHandlerFactory.cc
  5814. * src/EpollEventPoll.h
  5815. * src/StreamFileAllocationEntry.cc
  5816. * src/a2io.h
  5817. * src/SelectEventPoll.h
  5818. * src/option_processing.cc
  5819. * src/prefs.h
  5820. * src/EpollEventPoll.cc
  5821. * src/EventPoll.h
  5822. * src/SocketCore.h
  5823. * src/Makefile.am
  5824. * src/main.cc
  5825. * src/DownloadEngine.h
  5826. * src/SelectEventPoll.cc
  5827. * src/DownloadEngine.cc
  5828. * src/SocketCore.cc
  5829. * src/DownloadEngineFactory.cc
  5830. * src/Makefile.in
  5831. * src/prefs.cc
  5832. * src/usage_text.h
  5833. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5834. Included RecoverableException.h from main.cc
  5835. * src/main.cc
  5836. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5837. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  5838. now returns last error encountered in the HTTP/FTP downloads as a
  5839. exit status value. If all downloads finished successfully, aria2
  5840. returns 0. The error code is defined in src/DownloadResult.h.
  5841. The error occurred in the download currently in progress is not
  5842. reported as a last error. If no error has encountered but there
  5843. are in progress or waiting downloads, aria2 returns 7.
  5844. * src/AbstractCommand.cc
  5845. * src/DlAbortEx.h
  5846. * src/DlRetryEx.h
  5847. * src/DownloadCommand.cc
  5848. * src/DownloadFailureException.h
  5849. * src/DownloadResult.h
  5850. * src/FtpNegotiationCommand.cc
  5851. * src/HttpSkipResponseCommand.cc
  5852. * src/Makefile.am
  5853. * src/MultiUrlRequestInfo.cc
  5854. * src/MultiUrlRequestInfo.h
  5855. * src/RecoverableException.h
  5856. * src/RequestGroup.cc
  5857. * src/RequestGroup.h
  5858. * src/RequestGroupMan.cc
  5859. * src/RequestGroupMan.h
  5860. * src/URIResult.cc
  5861. * src/URIResult.h
  5862. * src/main.cc
  5863. * src/option_processing.cc
  5864. * test/RequestGroupTest.cc
  5865. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5866. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5867. patch adds AdaptiveURISelector, which selects one of the bests
  5868. mirrors for first and reserved connections. For supplementary
  5869. ones, it returns mirrors which has not been tested yet, and if
  5870. each of them already tested, returns mirrors which has to be
  5871. tested again. Otherwise, it doesn't return anymore mirrors.
  5872. * src/AdaptiveURISelector.cc
  5873. * src/AdaptiveURISelector.h
  5874. * src/FtpNegotiationCommand.cc
  5875. * src/HttpResponseCommand.cc
  5876. * src/Makefile.am
  5877. * src/Makefile.in
  5878. * src/OptionHandlerFactory.cc
  5879. * src/RequestGroup.cc
  5880. * src/RequestGroup.h
  5881. * src/RequestGroupMan.cc
  5882. * src/ServerStat.cc
  5883. * src/ServerStat.h
  5884. * src/ServerStatMan.cc
  5885. * src/SpeedCalc.cc
  5886. * src/URISelector.h
  5887. * src/prefs.cc
  5888. * src/prefs.h
  5889. * test/RequestGroupManTest.cc
  5890. * test/ServerStatManTest.cc
  5891. * test/ServerStatTest.cc
  5892. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5893. Fixed unit test error.
  5894. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5895. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5896. * Release 1.1.2
  5897. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5898. Updated Russian translation. Thanks to the translators.
  5899. * po/ru.po
  5900. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5901. Added the description of --use-head option to man page.
  5902. * doc/aria2c.1.txt
  5903. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5904. Bump up version number to 1.1.2
  5905. * configure.ac
  5906. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5907. Added --use-head option to toggle whether HEAD method should be
  5908. used in the first HTTP request. By default aria2 uses HEAD method
  5909. as the first request. When the server doesn't recognize HEAD, then
  5910. give aria2 --use-head=false to force aria2 to use GET method
  5911. instead.
  5912. * src/OptionHandlerFactory.cc
  5913. * src/RequestGroupMan.cc
  5914. * src/option_processing.cc
  5915. * src/prefs.cc
  5916. * src/prefs.h
  5917. * src/usage_text.h
  5918. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5919. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5920. message is received before CHOKE message. The old implementation
  5921. doen't clear the use-bit of the piece when recieved REJECT
  5922. message.
  5923. * src/DefaultBtMessageDispatcher.cc
  5924. * test/DefaultBtMessageDispatcherTest.cc
  5925. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5926. * Release 1.1.1
  5927. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5928. Bump up version number to 1.1.1.
  5929. * configure.ac
  5930. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5931. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5932. is printed repeatedly.
  5933. * src/ConsoleStatCalc.cc
  5934. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5935. * Release 1.1.0
  5936. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5937. Added ifdef clause for conditional compilation.
  5938. * src/main.cc
  5939. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5940. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5941. translations. Thanks to all translators.
  5942. * po/ja.po
  5943. * po/ru.po
  5944. * po/uk.po
  5945. * po/zh_CN.po
  5946. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5947. Added the preceding ">>> " before the message "Printing the
  5948. contents of file..." to make the output more readable.
  5949. * src/main.cc
  5950. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5951. Added try-catch block in the loop in showFiles() to continue the
  5952. operation even if the exception occurred in one file.
  5953. * src/main.cc (showFiles)
  5954. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5955. Made messages in showFiles() translatable.
  5956. * po/aria2.pot
  5957. * src/main.cc
  5958. * src/message.h
  5959. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5960. Print the contents of Torrent/Metalink files are printed without
  5961. -T/-M options.
  5962. * src/main.cc
  5963. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5964. Escaped '--' with '\--'
  5965. * README
  5966. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5967. Updated "How to build" section in README. Mentioned about
  5968. --with-ca-bundle compile option.
  5969. * README
  5970. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5971. Bump up version number to 1.1.0.
  5972. * configure.ac
  5973. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5974. Added a note for --dht-listen-port option.
  5975. * doc/aria2c.1.txt
  5976. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5977. Update doc for --realtime-chunk-checksum option.
  5978. * doc/aria2c.1.txt
  5979. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5980. Update doc for --realtime-chunk-checksum option.
  5981. * src/usage_text.h
  5982. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5983. Updated French, Japanese, Russian and Ukrainian translations.
  5984. Thanks to all translators.
  5985. * po/fr.po
  5986. * po/ja.po
  5987. * po/ru.po
  5988. * po/uk.po
  5989. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5990. Renamed aria2c.pot to aria2.pot
  5991. * po/aria2.pot
  5992. * po/aria2c.pot: Removed.
  5993. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5994. Removed MetaEntry.h
  5995. * src/Makefile.am
  5996. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5997. Rename file by appending digits if a local file exists and its
  5998. file size is larger than that of remote file with --continue
  5999. option. The old implementation just throws exception in such case.
  6000. * src/RequestGroup.cc
  6001. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6002. Fixed the bug that download progress summary is not printed in the
  6003. interval specified by the option.
  6004. * src/ConsoleStatCalc.cc
  6005. * src/ConsoleStatCalc.h
  6006. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6007. Fixed compiler warning
  6008. * src/Cookie.cc
  6009. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6010. Fixed the cookie implementation based on RFC2965.
  6011. Now if a value in domain field is not started with dot, then
  6012. prepend dot. That means a cookie with domain=sf.net is sent to
  6013. wiki.sf.net.
  6014. * src/Cookie.cc
  6015. * test/CookieParserTest.cc
  6016. * test/CookieStorageTest.cc
  6017. * test/CookieTest.cc
  6018. * test/NsCookieParserTest.cc
  6019. * test/Sqlite3MozCookieParserTest.cc
  6020. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6021. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6022. is enabled and the server doesn't support keep-alive.
  6023. * src/AbstractCommand.cc
  6024. * src/DownloadCommand.cc
  6025. * src/HttpDownloadCommand.cc
  6026. * src/HttpDownloadCommand.h
  6027. * src/HttpResponseCommand.cc
  6028. * src/Request.cc
  6029. * src/Request.h
  6030. * test/RequestTest.cc
  6031. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6032. Removed Dictionary/List/Data and its related classes.
  6033. * src/BencodeVisitor.cc: Removed.
  6034. * src/BencodeVisitor.h: Removed.
  6035. * src/Data.cc: Removed.
  6036. * src/Data.h: Removed.
  6037. * src/Dictionary.cc: Removed.
  6038. * src/Dictionary.h: Removed.
  6039. * src/List.cc: Removed.
  6040. * src/List.h: Removed.
  6041. * src/Makefile.am
  6042. * src/MetaEntry.h: Removed.
  6043. * src/MetaEntryVisitor.h: Removed.
  6044. * src/MetaFileUtil.cc: Removed.
  6045. * src/MetaFileUtil.h: Removed.
  6046. * test/BencodeVisitorTest.cc: Removed.
  6047. * test/DataTest.cc: Removed.
  6048. * test/DictionaryTest.cc: Removed.
  6049. * test/ListTest.cc: Removed.
  6050. * test/Makefile.am
  6051. * test/MetaFileUtilTest.cc: Removed.
  6052. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6053. Removed include of MetaEntry.h
  6054. * test/DHTMessageTrackerEntryTest.cc
  6055. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6056. Use BDE instead of Dictionary/List/Data.
  6057. * src/AnnounceList.cc
  6058. * src/AnnounceList.h
  6059. * test/AnnounceListTest.cc
  6060. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6061. Use BDE instead of Dictionary/List/Data.
  6062. * src/DHTAbstractMessage.cc
  6063. * src/DHTAbstractMessage.h
  6064. * src/DHTAnnouncePeerMessage.cc
  6065. * src/DHTAnnouncePeerMessage.h
  6066. * src/DHTAnnouncePeerReplyMessage.cc
  6067. * src/DHTAnnouncePeerReplyMessage.h
  6068. * src/DHTFindNodeMessage.cc
  6069. * src/DHTFindNodeMessage.h
  6070. * src/DHTFindNodeReplyMessage.cc
  6071. * src/DHTFindNodeReplyMessage.h
  6072. * src/DHTGetPeersMessage.cc
  6073. * src/DHTGetPeersMessage.h
  6074. * src/DHTGetPeersReplyMessage.cc
  6075. * src/DHTGetPeersReplyMessage.h
  6076. * src/DHTMessageFactory.h
  6077. * src/DHTMessageFactoryImpl.cc
  6078. * src/DHTMessageFactoryImpl.h
  6079. * src/DHTMessageReceiver.cc
  6080. * src/DHTMessageTracker.cc
  6081. * src/DHTMessageTracker.h
  6082. * src/DHTPingMessage.cc
  6083. * src/DHTPingMessage.h
  6084. * src/DHTPingReplyMessage.cc
  6085. * src/DHTPingReplyMessage.h
  6086. * src/DHTQueryMessage.cc
  6087. * src/DHTQueryMessage.h
  6088. * src/DHTResponseMessage.cc
  6089. * src/DHTResponseMessage.h
  6090. * test/DHTAnnouncePeerMessageTest.cc
  6091. * test/DHTAnnouncePeerReplyMessageTest.cc
  6092. * test/DHTFindNodeMessageTest.cc
  6093. * test/DHTFindNodeReplyMessageTest.cc
  6094. * test/DHTGetPeersMessageTest.cc
  6095. * test/DHTGetPeersReplyMessageTest.cc
  6096. * test/DHTMessageFactoryImplTest.cc
  6097. * test/DHTMessageTrackerTest.cc
  6098. * test/DHTPingMessageTest.cc
  6099. * test/DHTPingReplyMessageTest.cc
  6100. * test/MockDHTMessageFactory.h
  6101. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6102. Added tests the case where length < 0 is specified.
  6103. * test/BencodeTest.cc
  6104. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6105. Fixed memory leak in decoderawstring()
  6106. * src/bencode.cc
  6107. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6108. Added missing #ifdef guard. Added uc() function for String and
  6109. removeKey() for Dict.
  6110. * src/bencode.cc
  6111. * src/bencode.h
  6112. * test/BencodeTest.cc
  6113. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6114. Use BDE instead of Dictionary/List/Data.
  6115. * src/HandshakeExtensionMessage.cc
  6116. * src/HandshakeExtensionMessage.h
  6117. * test/HandshakeExtensionMessageTest.cc
  6118. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6119. Added --max-overall-upload-limit option. This option limits the
  6120. overall upload speed. Stated in help message that the existing
  6121. --max-upload-limit option limits the upload speed per each
  6122. torrent. Man page is also updated.
  6123. * doc/aria2c.1.txt
  6124. * src/DefaultBtMessageDispatcher.cc
  6125. * src/DefaultBtMessageDispatcher.h
  6126. * src/OptionHandlerFactory.cc
  6127. * src/PeerInteractionCommand.cc
  6128. * src/option_processing.cc
  6129. * src/prefs.cc
  6130. * src/prefs.h
  6131. * src/usage_text.h
  6132. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6133. Use BDE instead of Dictionary/List/Data classes.
  6134. * src/CompactPeerListProcessor.cc
  6135. * src/CompactPeerListProcessor.h
  6136. * src/DefaultBtAnnounce.cc
  6137. * src/DefaultBtContext.cc
  6138. * src/DefaultBtContext.h
  6139. * src/DefaultPeerListProcessor.cc
  6140. * src/DefaultPeerListProcessor.h
  6141. * src/DelegatingPeerListProcessor.cc
  6142. * src/DelegatingPeerListProcessor.h
  6143. * src/PeerListProcessor.h
  6144. * src/UTPexExtensionMessage.cc
  6145. * src/Util.h
  6146. * src/message.h
  6147. * test/DefaultBtContextTest.cc
  6148. * test/DefaultPeerListProcessorTest.cc
  6149. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6150. Added bencode helper functions and BDE class.
  6151. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6152. * src/Makefile.am
  6153. * src/bencode.cc
  6154. * src/bencode.h
  6155. * test/BencodeTest.cc
  6156. * test/Makefile.am
  6157. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6158. Fixed the bug that bad URI is sent to the tracker when the announe
  6159. URI in torrent file includes query.
  6160. * src/DefaultBtAnnounce.cc
  6161. * test/DefaultBtAnnounceTest.cc
  6162. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6163. Added Option::blank().
  6164. Use !Option::blank(name) instead of Option::defined(name) for
  6165. the options that take filename.
  6166. * src/MultiUrlRequestInfo.cc
  6167. * src/Option.cc
  6168. * src/Option.h
  6169. * src/main.cc
  6170. * src/option_processing.cc
  6171. * test/OptionTest.cc
  6172. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6173. Documented the default value of --check-certificate option in man
  6174. page.
  6175. * doc/aria2c.1.txt
  6176. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6177. Enabled --check-certificate by default. Added compile
  6178. time(configure) option --with-ca-bundle to specify CA bundle.
  6179. Warn if --check-certificate=true and --ca-certificate is not
  6180. specified or loading CA certificate is failed.
  6181. * configure.ac
  6182. * src/MultiUrlRequestInfo.cc
  6183. * src/OptionHandlerFactory.cc
  6184. * src/message.h
  6185. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6186. Mentioned https tag in help option.
  6187. * doc/aria2c.1.txt
  6188. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6189. Added `https' tag to help option category. Added https tag to
  6190. --ca-certificate, --certificate, --check-certificate and
  6191. --private-key option.
  6192. * src/OptionHandlerFactory.cc
  6193. * src/help_tags.h
  6194. * src/option_processing.cc
  6195. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6196. Changed the package name from `aria2c' to `aria2' in order to fix
  6197. the packaging issue in Debian and Fedora. The name of the
  6198. executable is not changed.
  6199. * configure.ac
  6200. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6201. Fixed typos
  6202. * src/usage_text.h
  6203. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6204. Fixed typos and updated doc.
  6205. * README
  6206. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6207. Fixed typos
  6208. * doc/aria2c.1.txt
  6209. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6210. Fixed typos
  6211. * src/usage_text.h
  6212. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6213. Print a message when no files to download.
  6214. * src/download_helper.cc
  6215. * src/main.cc
  6216. * src/message.h
  6217. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6218. RFC3986 complied Percent-Encoding(urlencode).
  6219. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6220. ones.
  6221. * src/Request.cc
  6222. * src/Util.cc
  6223. * src/Util.h
  6224. * test/BtHandshakeMessageTest.cc
  6225. * test/DefaultBtAnnounceTest.cc
  6226. * test/DefaultBtContextTest.cc
  6227. * test/RequestTest.cc
  6228. * test/UtilTest.cc
  6229. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6230. Fixed the bug that prevents aria2 from downloading 0-length files
  6231. via HTTP/FTP.
  6232. * src/DefaultBtContext.cc
  6233. * src/DefaultBtContext.h
  6234. * src/DownloadContext.h
  6235. * src/FtpNegotiationCommand.cc
  6236. * src/HttpResponseCommand.cc
  6237. * src/HttpResponseCommand.h
  6238. * src/RequestGroup.cc
  6239. * src/SingleFileDownloadContext.cc
  6240. * src/SingleFileDownloadContext.h
  6241. * test/BtPostDownloadHandlerTest.cc
  6242. * test/MetalinkPostDownloadHandlerTest.cc
  6243. * test/MockBtContext.h
  6244. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6245. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6246. * src/option_processing.cc
  6247. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6248. Applied aria2-1.0.1-mingw.patch.
  6249. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6250. mingw.
  6251. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6252. * src/SocketCore.cc
  6253. * src/a2netcompat.h
  6254. * test/SocketCoreTest.cc
  6255. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6256. * Release 1.0.1
  6257. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6258. Updated Ukrainian and Norwegian Nynorsk translations.
  6259. Thanks to all translators.
  6260. * po/nn.po
  6261. * po/uk.po
  6262. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6263. Don't show download result when -S option is used.
  6264. * src/main.cc
  6265. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6266. Bump up version number to 1.0.1
  6267. * configure.ac
  6268. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6269. Closed files after the test cases in MultiDiskWriterTest::
  6270. testResetDiskWriterEntries(). This will fix the unit test error
  6271. in mingw32 build.
  6272. * test/MultiDiskWriterTest.cc
  6273. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6274. Use HEAD method to get file size from HTTP server for segmented
  6275. downloading.
  6276. The request to the BitTorrent Tracker always uses GET method because
  6277. the response of the tracker is small and it doesn't need segmented
  6278. download.
  6279. * src/FtpNegotiationCommand.cc
  6280. * src/HttpRequest.cc
  6281. * src/HttpResponseCommand.cc
  6282. * src/HttpSkipResponseCommand.cc
  6283. * src/RequestGroup.cc
  6284. * src/RequestGroup.h
  6285. * src/TrackerWatcherCommand.cc
  6286. * test/HttpRequestTest.cc
  6287. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6288. Fixed the bug that causes floating exception when -T option is used and
  6289. no URIs are given.
  6290. * src/download_helper.cc
  6291. * test/DownloadHelperTest.cc
  6292. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6293. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6294. errors in MinGW:
  6295. Closed file after saving server stats (RequestGroupMan.cc)
  6296. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6297. Ignored case & handled 2-digit years (strptime.c)
  6298. Added missing suseconds_t definition (a2time.h)
  6299. Fixed socket CLOSE() define (SocketCore.cc)
  6300. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6301. Changed utime() test values from x000 to x00000 as MinGW failed on
  6302. values less than timezone offset from Unix epoch
  6303. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6304. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6305. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6306. handle negative dates (CookieParserTest.cc)
  6307. * src/a2time.h
  6308. * src/FtpConnection.cc
  6309. * src/RequestGroupMan.cc
  6310. * src/SocketCore.cc
  6311. * src/strptime.c
  6312. * test/CookieParserTest.cc
  6313. * test/CopyDiskAdaptorTest.cc
  6314. * test/FileTest.cc
  6315. * test/FtpConnectionTest.cc
  6316. * test/MultiDiskAdaptorTest.cc
  6317. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6318. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6319. * doc/aria2c.1.txt
  6320. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6321. * Release 1.0.0
  6322. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6323. Added '~' to reserved characters.
  6324. * src/Util.cc
  6325. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6326. Do not urlencode Request::url in setUrl() because we want unmodified
  6327. URL using Request::getUrl()
  6328. * src/Request.cc
  6329. * src/Request.h
  6330. * test/RequestTest.cc
  6331. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6332. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6333. Thanks to all translators.
  6334. * po/bg.po
  6335. * po/fr.po
  6336. * po/ja.po
  6337. * po/ru.po
  6338. * po/uk.po
  6339. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6340. Bump up version number to 1.0.0
  6341. * configure.ac
  6342. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6343. Added nosqlite3 build to build_test.sh.
  6344. Renamed noxml as expat.
  6345. * build_test.sh
  6346. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6347. Updated INPUT FILE section.
  6348. * doc/aria2c.1.txt
  6349. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6350. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6351. on big endian systems because test .aria2 files are made for little
  6352. endian systems.
  6353. * test/DefaultBtProgressInfoFileTest.cc
  6354. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6355. Dropped ares support.
  6356. * README
  6357. * configure.ac
  6358. * m4/libares.m4: Removed.
  6359. * src/AsyncNameResolver.cc
  6360. * src/Makefile.am
  6361. * test/Makefile.am
  6362. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6363. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6364. Removed const qualifier from DiskWriter::size().
  6365. * src/AbstractDiskWriter.cc
  6366. * src/AbstractDiskWriter.h
  6367. * src/ByteArrayDiskWriter.cc
  6368. * src/ByteArrayDiskWriter.h
  6369. * src/DiskWriter.h
  6370. * test/ByteArrayDiskWriterTest.cc
  6371. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6372. Fixed the bug that causes segmentation fault/bus error during executing
  6373. choking algorithm while seeding. This is caused by improper
  6374. implementation of compare function which returns inconsistent results
  6375. depending on the timing of last unchoke.
  6376. * src/BtSeederStateChoke.cc
  6377. * src/BtSeederStateChoke.h
  6378. * src/DefaultPeerStorage.cc
  6379. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6380. Removed TODO
  6381. * TODO
  6382. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6383. Added a section that explains how to pass argument to options that
  6384. takes optional arguments with its short form.
  6385. * doc/aria2c.1.txt
  6386. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6387. Added -u for the short form of --max-upload-limit option.
  6388. * doc/aria2c.1.txt
  6389. * src/option_processing.cc
  6390. * src/usage_text.h
  6391. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6392. Added -V for the short form of --check-integrity option.
  6393. Now the argument of --check-integrity option is optional:
  6394. if it is omitted, it is evaluated as true.
  6395. * doc/aria2c.1.txt
  6396. * src/option_processing.cc
  6397. * src/usage_text.h
  6398. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6399. Made the default value of --ftp-pasv option set to true and it can take
  6400. true/false values.
  6401. * src/OptionHandlerFactory.cc
  6402. * src/option_processing.cc
  6403. * src/usage_text.h
  6404. * doc/aria2c.1.txt
  6405. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6406. Given custom random number generator to std::random_shuffle.
  6407. * src/AnnounceList.cc
  6408. * src/BtLeecherStateChoke.cc
  6409. * src/BtSeederStateChoke.cc
  6410. * src/DefaultBtRequestFactory.cc
  6411. * src/MetalinkEntry.cc
  6412. * src/RarestPieceSelector.cc
  6413. * src/SimpleRandomizer.cc
  6414. * src/SimpleRandomizer.h
  6415. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6416. Now the default value of --enable-direct-io is true.
  6417. * src/OptionHandlerFactory.cc
  6418. * doc/aria2c.1.txt
  6419. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6420. Erase peer before executing onReturningPeer and onErasingPeer
  6421. because choking algorithm called from onReturningPeer doesn't
  6422. like erasing peer in the active peer list.
  6423. * src/DefaultPeerStorage.cc
  6424. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6425. Instead of creating special filename in createDownloadResult() if
  6426. inMemoryDownload() is true, now it is done in getFilePath().
  6427. * src/RequestGroup.cc
  6428. * test/RequestGroupTest.cc
  6429. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6430. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6431. processed in memory. This is the fix for previous comment out.
  6432. * src/MemoryBufferPreDownloadHandler.cc
  6433. * src/RequestGroup.cc
  6434. * src/RequestGroup.h
  6435. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6436. Commented out the code which sets virtual directory path "[MEMORY]"
  6437. propagate directory to store to following RequestGroup.
  6438. * src/MemoryBufferPreDownloadHandler.cc
  6439. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6440. Bump up version number to 1.0.0b
  6441. * configure.ac
  6442. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6443. Added input_uris.txt to EXTRA_DIST
  6444. * test/Makefile.am
  6445. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6446. Removed PeerObject.h from Makefile.am
  6447. * src/Makefile.am
  6448. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6449. Avoid slow seeding
  6450. * src/PeerInteractionCommand.cc
  6451. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6452. Updated usage for -i option.
  6453. * src/usage_text.h (TEXT_INPUT_FILE)
  6454. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6455. Added INPUT FILE section to man page.
  6456. Escaped fake URLs.
  6457. * doc/aria2c.1.txt
  6458. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6459. Fixed wrong note position for -o option.
  6460. * doc/aria2c.1.txt
  6461. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6462. Fixed compile error without SSL/XML library.
  6463. * src/DefaultBtProgressInfoFile.cc
  6464. * src/DefaultBtProgressInfoFile.h
  6465. * src/FileMetalinkParserState.cc
  6466. * src/RequestGroup.h
  6467. * src/SocketCore.cc
  6468. * src/SocketCore.h
  6469. * src/VerificationMetalinkParserState.cc
  6470. * src/download_helper.h
  6471. * src/main.cc
  6472. * test/DefaultBtProgressInfoFileTest.cc
  6473. * test/DownloadHelperTest.cc
  6474. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6475. Rewritten URI handling functions. They are now provided as a testable
  6476. functions.
  6477. * src/Makefile.am
  6478. * src/RequestGroup.cc
  6479. * src/RequestGroup.h
  6480. * src/download_helper.cc
  6481. * src/download_helper.h
  6482. * src/main.cc
  6483. * test/DownloadHelperTest.cc
  6484. * test/Makefile.am
  6485. * test/input_uris.txt
  6486. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6487. Quickly terminate commands when ctrl-c is pressed.
  6488. * src/DownloadEngine.cc
  6489. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6490. Quickly terminate idle commands when download finished.
  6491. * src/AbstractCommand.cc
  6492. * src/DownloadCommand.cc
  6493. * src/DownloadEngine.cc
  6494. * src/DownloadEngine.h
  6495. * src/SleepCommand.cc
  6496. * src/SleepCommand.h
  6497. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6498. Added the ability to specify output filename and directory in input
  6499. file.
  6500. Additional parameters are added in the following line of URIs
  6501. with proceeding white space(s), 1 parameter in 1 line.
  6502. The parameter names are the same with the command-line option name
  6503. without proceeding "--". Not all the options are available here:
  6504. at the moment, 'dir' and 'out' options are avialable.
  6505. Please note that out option has no effect against Metalink or BitTorrent
  6506. downloads.
  6507. Example input file:
  6508. http://host/foo-1.1.tar.bz2
  6509. out=foo.tar.bz2
  6510. dir=/tmp/downloads
  6511. http://host/thundermonkey-2.0.tar.bz2
  6512. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6513. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6514. thundermonkey-2.0.tar.bz2 is saved as
  6515. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6516. * src/BtPostDownloadHandler.cc
  6517. * src/Metalink2RequestGroup.cc
  6518. * src/Metalink2RequestGroup.h
  6519. * src/MetalinkPostDownloadHandler.cc
  6520. * src/UriListParser.cc
  6521. * src/UriListParser.h
  6522. * src/main.cc
  6523. * test/Metalink2RequestGroupTest.cc
  6524. * test/UriListParserTest.cc
  6525. * test/filelist1.txt
  6526. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6527. Fixed error when SSL library is not found.
  6528. * configure.ac
  6529. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6530. Cross referenced among -s, -C and -j options.
  6531. Updated usage of -C and -s options.
  6532. * src/usage_text.h
  6533. * doc/aria2c.1.txt
  6534. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6535. Fixed bad cast in 32bit platforms.
  6536. * test/DefaultPieceStorageTest.cc
  6537. (DefaultPieceStorageTest::testGetCompletedLength)
  6538. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6539. Fixed unit test fails on 32bit platforms.
  6540. * test/CookieParserTest.cc
  6541. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6542. Show an average download speed in Download results.
  6543. * src/BtFileAllocationEntry.cc
  6544. * src/DefaultPieceStorage.cc
  6545. * src/DownloadContext.cc
  6546. * src/DownloadContext.h
  6547. * src/DownloadResult.h
  6548. * src/RequestGroup.cc
  6549. * src/RequestGroupMan.cc
  6550. * src/StreamFileAllocationEntry.cc
  6551. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6552. Fixed the bug that metalink file is not processed if Content-Type
  6553. field has a paramter.
  6554. * src/HttpResponse.cc
  6555. * src/HttpResponse.h
  6556. * test/HttpResponseTest.cc
  6557. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6558. Removed unused code.
  6559. * src/DefaultBtAnnounce.cc
  6560. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6561. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6562. the value larger than DefaultPieceStorage::getTotalLength() when
  6563. in flight pieces are involved.
  6564. * src/DefaultPieceStorage.cc
  6565. * test/DefaultPieceStorageTest.cc
  6566. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6567. Bump up version number to 1.0.0a.
  6568. * configure.ac
  6569. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6570. Updated configure.ac
  6571. * configure.ac
  6572. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6573. Added usege for proxy.
  6574. * doc/aria2c.1.txt
  6575. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6576. Added usage for --ca-certificate, --certificate, --private-key and
  6577. --check-certificate options.
  6578. * doc/aria2c.1.txt
  6579. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6580. Updated man page
  6581. * doc/aria2c.1.txt
  6582. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6583. Added --no-proxy option. It receives comman separated hostname or
  6584. domains to which proxy should not be used.
  6585. aria2 honors the environment variable no_proxy to override no-proxy
  6586. value in configuration file. The user can override the environment
  6587. variable no_proxy with --no-proxy command-line option.
  6588. * src/AbstractCommand.cc
  6589. * src/OptionHandlerFactory.cc
  6590. * src/option_processing.cc
  6591. * src/prefs.cc
  6592. * src/prefs.h
  6593. * src/usage_text.h
  6594. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6595. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6596. The CA certificates are specified in --ca-certificate option.
  6597. By default, the verification is disabled. Use --check-certificate
  6598. option to enable it.
  6599. * src/HttpRequestCommand.cc
  6600. * src/LibgnutlsTLSContext.cc
  6601. * src/LibgnutlsTLSContext.h
  6602. * src/LibsslTLSContext.cc
  6603. * src/LibsslTLSContext.h
  6604. * src/MultiUrlRequestInfo.cc
  6605. * src/OptionHandlerFactory.cc
  6606. * src/SocketCore.cc
  6607. * src/SocketCore.h
  6608. * src/a2functional.h
  6609. * src/message.h
  6610. * src/option_processing.cc
  6611. * src/prefs.cc
  6612. * src/prefs.h
  6613. * src/usage_text.h
  6614. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6615. Added client certificate authentication for SSL/TLS.
  6616. Currently a private key must be decrypted for use with aria2.
  6617. If a user accidentally gives encrypted file to aria2 then following
  6618. thing happens:
  6619. If encrypted private key is given to aria2, it behaves differently
  6620. depending on the ssl library it uses. If aria2 built with openssl then
  6621. openssl prompts the user for password. If aria2 build with gnutls then
  6622. aria2 exists with error at start up.
  6623. * src/DownloadEngineFactory.cc
  6624. * src/MultiUrlRequestInfo.cc
  6625. * src/OptionHandlerFactory.cc
  6626. * src/option_processing.cc
  6627. * src/prefs.cc
  6628. * src/prefs.h
  6629. * src/usage_text.h
  6630. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6631. Introduced TLSContext that holds TLS related data that can be shared
  6632. with multiple SSL connections.
  6633. * src/DownloadEngineFactory.cc
  6634. * src/LibgnutlsTLSContext.cc
  6635. * src/LibgnutlsTLSContext.h
  6636. * src/LibsslTLSContext.cc
  6637. * src/LibsslTLSContext.h
  6638. * src/Makefile.am
  6639. * src/SocketCore.cc
  6640. * src/SocketCore.h
  6641. * src/TLSContext.h
  6642. * src/message.h
  6643. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6644. Fixed the bug that the DiskWriter of the first FileEntry whose
  6645. `needsFileAllocation' property is false is not created
  6646. even if it shares a piece with next FileEntry which `requested' property
  6647. is true.
  6648. Fixed the bug that zero-length file is not created if pre file
  6649. allocation is not done.
  6650. * src/MultiDiskAdaptor.cc
  6651. * src/MultiDiskAdaptor.h
  6652. * test/MultiDiskAdaptorTest.cc
  6653. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6654. Added the ability to pool proxy connection.
  6655. The conneciton in FTP with proxy-method=GET is not pooled.
  6656. Proxy-Connection header will not be sent when sending CONNECT method.
  6657. * src/DownloadEngine.cc
  6658. * src/DownloadEngine.h
  6659. * src/FtpFinishDownloadCommand.cc
  6660. * src/FtpInitiateConnectionCommand.cc
  6661. * src/FtpNegotiationCommand.cc
  6662. * src/HttpDownloadCommand.cc
  6663. * src/HttpInitiateConnectionCommand.cc
  6664. * src/HttpRequest.cc
  6665. * src/HttpRequest.h
  6666. * src/HttpResponse.cc
  6667. * src/HttpSkipResponseCommand.cc
  6668. * test/HttpRequestTest.cc
  6669. * test/HttpResponseTest.cc
  6670. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Handle date before epoch.
  6672. To create *bad* Time object, call Time::null().
  6673. * src/CookieParser.cc
  6674. * src/FtpConnection.cc
  6675. * src/FtpConnection.h
  6676. * src/FtpNegotiationCommand.cc
  6677. * src/RequestGroup.cc
  6678. * src/TimeA2.cc
  6679. * src/TimeA2.h
  6680. * test/CookieParserTest.cc
  6681. * test/FtpConnectionTest.cc
  6682. * test/TimeTest.cc
  6683. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6684. Added support for following envrionment variables: http_proxy,
  6685. https_proxy, ftp_proxy and all_proxy.
  6686. Each variable is equivalent to the aria2 option whose name is the
  6687. variable name with '_' replaced with '-'.
  6688. They overrides options specified in aria2.conf file.
  6689. The envrionment variables can be overrode using command-line option.
  6690. * src/option_processing.cc
  6691. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6692. Renamed --http-proxy-method as --proxy-method.
  6693. * src/AbstractCommand.cc
  6694. * src/FtpInitiateConnectionCommand.cc
  6695. * src/HttpInitiateConnectionCommand.cc
  6696. * src/OptionHandlerFactory.cc
  6697. * src/option_processing.cc
  6698. * src/prefs.cc
  6699. * src/prefs.h
  6700. * src/usage_text.h
  6701. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6702. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6703. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6704. Above 3 options and --http-proxy option can handle proxy in URL format
  6705. like: http://user:passwd@host:port.
  6706. If a proxy requires user/password, they must be specified in a URL.
  6707. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6708. instead.
  6709. * src/AbstractCommand.cc
  6710. * src/AbstractCommand.h
  6711. * src/AbstractProxyRequestCommand.cc
  6712. * src/AbstractProxyRequestCommand.h
  6713. * src/AuthConfigFactory.cc
  6714. * src/AuthConfigFactory.h
  6715. * src/FtpFinishDownloadCommand.cc
  6716. * src/FtpInitiateConnectionCommand.cc
  6717. * src/FtpInitiateConnectionCommand.h
  6718. * src/FtpNegotiationCommand.cc
  6719. * src/FtpTunnelRequestCommand.cc
  6720. * src/FtpTunnelRequestCommand.h
  6721. * src/HttpDownloadCommand.cc
  6722. * src/HttpInitiateConnectionCommand.cc
  6723. * src/HttpInitiateConnectionCommand.h
  6724. * src/HttpProxyRequestCommand.cc
  6725. * src/HttpProxyRequestCommand.h
  6726. * src/HttpRequest.cc
  6727. * src/HttpRequest.h
  6728. * src/HttpRequestCommand.cc
  6729. * src/HttpRequestCommand.h
  6730. * src/HttpSkipResponseCommand.cc
  6731. * src/InitiateConnectionCommand.cc
  6732. * src/InitiateConnectionCommand.h
  6733. * src/OptionHandlerFactory.cc
  6734. * src/OptionHandlerImpl.h
  6735. * src/Request.cc
  6736. * src/option_processing.cc
  6737. * src/prefs.cc
  6738. * src/prefs.h
  6739. * src/usage_text.h
  6740. * test/AuthConfigFactoryTest.cc
  6741. * test/HttpRequestTest.cc
  6742. * test/OptionHandlerTest.cc
  6743. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6744. Execute choking algorithm when unchoked and interested peer is
  6745. disconected.
  6746. * src/DefaultPeerStorage.cc
  6747. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Added testcase for BtNotInterestedMessage from unchoked peer.
  6749. * test/BtNotInterestedMessageTest.cc
  6750. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6751. Execute choking algorithm when BtInterestedMessage arrives from
  6752. unchoked peer.
  6753. * src/BtInterestedMessage.cc
  6754. * src/BtInterestedMessage.h
  6755. * src/DefaultBtMessageFactory.cc
  6756. * test/BtInterestedMessageTest.cc
  6757. * test/MockPeerStorage.h
  6758. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6759. AuthConfigFactory is now part of DownloadEngine.
  6760. * src/AbstractProxyRequestCommand.cc
  6761. * src/AuthConfigFactory.h
  6762. * src/DownloadEngine.cc
  6763. * src/DownloadEngine.h
  6764. * src/FtpConnection.cc
  6765. * src/FtpConnection.h
  6766. * src/FtpNegotiationCommand.cc
  6767. * src/HttpConnection.cc
  6768. * src/HttpRequest.cc
  6769. * src/HttpRequest.h
  6770. * src/HttpRequestCommand.cc
  6771. * src/HttpResponse.cc
  6772. * src/HttpResponseCommand.cc
  6773. * src/HttpSkipResponseCommand.cc
  6774. * src/MultiUrlRequestInfo.cc
  6775. * src/main.cc
  6776. * test/FtpConnectionTest.cc
  6777. * test/HttpRequestTest.cc
  6778. * test/HttpResponseTest.cc
  6779. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6780. Corrected catched exception type.
  6781. * src/ServerStatMan.cc
  6782. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6783. DNSCache is now part of DownloadEngine.
  6784. * src/DNSCache.h
  6785. * src/DownloadEngine.cc
  6786. * src/DownloadEngine.h
  6787. * src/InitiateConnectionCommand.cc
  6788. * src/MultiUrlRequestInfo.cc
  6789. * test/Makefile.am
  6790. * test/Makefile.in
  6791. * test/SimpleDNSCacheTest.cc
  6792. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6794. DownloadEngine.
  6795. * src/ActivePeerConnectionCommand.cc
  6796. * src/BtSetup.cc
  6797. * src/CUIDCounter.h
  6798. * src/DHTSetup.cc
  6799. * src/DownloadCommand.cc
  6800. * src/DownloadEngine.cc
  6801. * src/DownloadEngine.h
  6802. * src/DownloadEngineFactory.cc
  6803. * src/FileAllocationDispatcherCommand.cc
  6804. * src/InitiatorMSEHandshakeCommand.cc
  6805. * src/PeerInitiateConnectionCommand.cc
  6806. * src/PeerInteractionCommand.cc
  6807. * src/PeerListenCommand.cc
  6808. * src/RequestGroup.cc
  6809. * src/StreamFileAllocationEntry.cc
  6810. * src/TrackerWatcherCommand.cc
  6811. * src/main.cc
  6812. * test/RequestGroupManTest.cc
  6813. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Implemented commented code in BtSeederStateChoke
  6815. * src/BtSeederStateChoke.cc
  6816. * src/Peer.cc
  6817. * src/Peer.h
  6818. * src/PeerInteractionCommand.cc
  6819. * src/PeerSessionResource.cc
  6820. * src/PeerSessionResource.h
  6821. * test/MockBtMessageDispatcher.h
  6822. * test/PeerSessionResourceTest.cc
  6823. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6824. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  6825. its object.
  6826. * src/AbstractBtMessage.cc
  6827. * src/ActivePeerConnectionCommand.cc
  6828. * src/ActivePeerConnectionCommand.h
  6829. * src/BtContextAwareCommand.cc
  6830. * src/BtContextAwareCommand.h
  6831. * src/BtExtendedMessage.cc
  6832. * src/BtExtendedMessage.h
  6833. * src/BtInterestedMessage.cc
  6834. * src/BtInterestedMessage.h
  6835. * src/BtNotInterestedMessage.cc
  6836. * src/BtNotInterestedMessage.h
  6837. * src/BtRegistry.cc
  6838. * src/BtRegistry.h
  6839. * src/BtSeederStateChoke.cc
  6840. * src/BtSetup.cc
  6841. * src/DHTGetPeersCommand.cc
  6842. * src/DHTGetPeersCommand.h
  6843. * src/DHTPeerAnnounceEntry.cc
  6844. * src/DHTPeerAnnounceEntry.h
  6845. * src/DHTPeerAnnounceStorage.cc
  6846. * src/DHTPeerAnnounceStorage.h
  6847. * src/DHTPeerLookupTask.cc
  6848. * src/DHTPeerLookupTask.h
  6849. * src/DHTSetup.cc
  6850. * src/DHTSetup.h
  6851. * src/DHTTaskFactory.h
  6852. * src/DHTTaskFactoryImpl.cc
  6853. * src/DHTTaskFactoryImpl.h
  6854. * src/DefaultBtAnnounce.cc
  6855. * src/DefaultBtInteractive.cc
  6856. * src/DefaultBtInteractive.h
  6857. * src/DefaultBtMessageDispatcher.cc
  6858. * src/DefaultBtMessageDispatcher.h
  6859. * src/DefaultBtMessageFactory.cc
  6860. * src/DefaultBtMessageFactory.h
  6861. * src/DefaultBtMessageReceiver.cc
  6862. * src/DefaultBtProgressInfoFile.cc
  6863. * src/DefaultBtProgressInfoFile.h
  6864. * src/DefaultBtRequestFactory.cc
  6865. * src/DefaultBtRequestFactory.h
  6866. * src/DefaultExtensionMessageFactory.cc
  6867. * src/DefaultExtensionMessageFactory.h
  6868. * src/DefaultPeerStorage.cc
  6869. * src/DefaultPeerStorage.h
  6870. * src/DownloadEngine.cc
  6871. * src/DownloadEngine.h
  6872. * src/InitiatorMSEHandshakeCommand.cc
  6873. * src/InitiatorMSEHandshakeCommand.h
  6874. * src/MSEHandshake.cc
  6875. * src/MSEHandshake.h
  6876. * src/Makefile.am
  6877. * src/Makefile.in
  6878. * src/PeerChokeCommand.cc
  6879. * src/PeerChokeCommand.h
  6880. * src/PeerInitiateConnectionCommand.cc
  6881. * src/PeerInitiateConnectionCommand.h
  6882. * src/PeerInteractionCommand.cc
  6883. * src/PeerInteractionCommand.h
  6884. * src/PeerObject.h
  6885. * src/PeerReceiveHandshakeCommand.cc
  6886. * src/PeerReceiveHandshakeCommand.h
  6887. * src/ReceiverMSEHandshakeCommand.cc
  6888. * src/RequestGroup.cc
  6889. * src/RequestGroup.h
  6890. * src/RequestGroupMan.cc
  6891. * src/RequestGroupMan.h
  6892. * src/SeedCheckCommand.cc
  6893. * src/SeedCheckCommand.h
  6894. * src/ShareRatioSeedCriteria.h
  6895. * src/SimpleBtMessage.cc
  6896. * src/TrackerWatcherCommand.cc
  6897. * src/TrackerWatcherCommand.h
  6898. * src/UTPexExtensionMessage.cc
  6899. * src/UTPexExtensionMessage.h
  6900. * test/BtCancelMessageTest.cc
  6901. * test/BtChokeMessageTest.cc
  6902. * test/BtExtendedMessageTest.cc
  6903. * test/BtInterestedMessageTest.cc
  6904. * test/BtNotInterestedMessageTest.cc
  6905. * test/BtPieceMessageTest.cc
  6906. * test/BtPortMessageTest.cc
  6907. * test/BtRegistryTest.cc
  6908. * test/BtRejectMessageTest.cc
  6909. * test/BtRequestMessageTest.cc
  6910. * test/DHTPeerAnnounceEntryTest.cc
  6911. * test/DHTPeerAnnounceStorageTest.cc
  6912. * test/DefaultBtMessageDispatcherTest.cc
  6913. * test/DefaultBtMessageFactoryTest.cc
  6914. * test/DefaultBtProgressInfoFileTest.cc
  6915. * test/DefaultBtRequestFactoryTest.cc
  6916. * test/DefaultExtensionMessageFactoryTest.cc
  6917. * test/MSEHandshakeTest.cc
  6918. * test/MockDHTTaskFactory.h
  6919. * test/ShareRatioSeedCriteriaTest.cc
  6920. * test/UTPexExtensionMessageTest.cc
  6921. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6922. Fixed compiler warning.
  6923. * test/UtilTest.cc
  6924. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. Treat Cookie object as session cookie if expiry = 0 is given.
  6926. With this change, you can specify session scoped cookies in an external
  6927. file setting expiry value to 0.
  6928. * src/Cookie.cc
  6929. * src/Cookie.h
  6930. * test/CookieParserTest.cc
  6931. * test/CookieStorageTest.cc
  6932. * test/CookieTest.cc
  6933. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6934. Changed signature of DHTMessageFactory::createResponseMessage().
  6935. Removed unused validateIDMatch.
  6936. * src/DHTMessageFactory.h
  6937. * src/DHTMessageFactoryImpl.cc
  6938. * src/DHTMessageFactoryImpl.h
  6939. * src/DHTMessageTracker.cc
  6940. * test/DHTMessageFactoryImplTest.cc
  6941. * test/MockDHTMessageFactory.h
  6942. Dropped DHT message coming from same ID of localhost.
  6943. * src/DHTMessageReceiver.cc
  6944. Rejected adding node whose ID is the same as localhost's.
  6945. * src/DHTRoutingTable.cc
  6946. * test/BtPortMessageTest.cc
  6947. * test/DHTRoutingTableTest.cc
  6948. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6949. Pool connection when redirection occurs with Content-Length = 0.
  6950. * src/HttpSkipResponseCommand.cc
  6951. * src/HttpSkipResponseCommand.h
  6952. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. Fixed the bug that causes time out when redirection occurs with
  6954. content-length 0.
  6955. * src/HttpResponseCommand.cc
  6956. * src/HttpSkipResponseCommand.cc
  6957. * src/HttpSkipResponseCommand.h
  6958. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Now each status legends is shown only when it appears in Download
  6960. Result. If Download Result has no item, then status legend will not
  6961. be printed.
  6962. * src/RequestGroupMan.cc
  6963. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6964. Removed duplicate creation of OptionHandlers.
  6965. * src/option_processing.cc
  6966. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6967. Fixed the bug that causes segmentation fault when accessing files which
  6968. don't exist or are not included in --select-file option while
  6969. validating chunk checksum.
  6970. * src/MultiDiskAdaptor.cc
  6971. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6972. Fixed compiler warning.
  6973. * test/UtilTest.cc
  6974. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6976. * src/IteratableChecksumValidator.cc
  6977. * src/IteratableChunkChecksumValidator.cc
  6978. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6979. * Release 0.16.2
  6980. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6981. Added Serbian translation. Updated Ukrainian translation.
  6982. Thanks to all translators.
  6983. * po/sr.po
  6984. * po/uk.po
  6985. * po/LINGUAS
  6986. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6987. Bump up version number to 0.16.2
  6988. * configure.ac
  6989. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6990. Added length equality test to operator== to drop a piece message
  6991. whose length does not match to the requested one.
  6992. * src/RequestSlot.cc
  6993. * test/DefaultBtMessageDispatcherTest.cc
  6994. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6995. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6996. recieved.
  6997. In this fix, if a request larger than 16KiB length is received, aria2
  6998. disconnects the peer.
  6999. * src/BtConstants.h
  7000. * src/PeerMessageUtil.cc
  7001. * src/PeerMessageUtil.h
  7002. * test/BtRequestMessageTest.cc
  7003. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. * Release 0.16.1
  7005. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7007. * doc/aria2c.1.txt
  7008. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7009. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7010. Updated French, Simplified Chinese and Japanese translations.
  7011. Thanks to all translators.
  7012. en@quot and en@boldquot are also added.
  7013. * po/LINGUAS
  7014. * po/fr.po
  7015. * po/ja.po
  7016. * po/uk.po
  7017. * po/vi.po
  7018. * po/zh_CN.po
  7019. * po/zh_TW.po
  7020. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7021. Bump up version number to 0.16.1.
  7022. * configure.ac
  7023. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Updated README.
  7025. * README
  7026. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7027. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7028. not to replace '--' with em dash character.
  7029. * doc/aria2c.1.txt
  7030. * doc/makeman
  7031. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7032. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7033. every SEC seconds.
  7034. * src/DownloadEngineFactory.cc
  7035. * src/OptionHandlerFactory.cc
  7036. * src/option_processing.cc
  7037. * src/usage_text.h
  7038. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7039. Fixed compile warning on linux-amd64
  7040. * src/FtpConnection.cc
  7041. * src/IteratableChunkChecksumValidator.cc
  7042. * src/MultiDiskAdaptor.cc
  7043. Fixed the bug that unit test fails on linux-amd64
  7044. * test/UtilTest.cc
  7045. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7046. Added --dht-file-path option to change the path to dht.dat, which is a
  7047. serialized DHT routing table.
  7048. * src/OptionHandlerFactory.cc
  7049. * src/option_processing.cc
  7050. * src/usage_text.h
  7051. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7052. Fixed possible underflow.
  7053. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7054. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Fixed the bug that last character in URI is not encoded.
  7056. * src/Request.cc
  7057. * test/RequestTest.cc
  7058. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7059. Fixed the bug that referer header field contains fragment.
  7060. Now Request class removes fragment part of URI and encodes it
  7061. in Request::setUri() and setReferer().
  7062. * src/Request.h
  7063. * src/Request.cc
  7064. * test/RequestTest.cc
  7065. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7066. Added missing m4 macros.
  7067. * m4/cppunit.m4
  7068. * m4/libgcrypt.m4
  7069. * m4/libgnutls-extra.m4
  7070. * m4/libgnutls.m4
  7071. * m4/libxml2.m4
  7072. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7073. Fixed compile error with gcc-4.4(snapshot)
  7074. * src/File.cc
  7075. * src/FtpConnection.cc
  7076. * src/OptionHandlerImpl.h
  7077. * src/Util.cc
  7078. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. Removed assert()
  7080. * src/SocketBuffer.cc (SocketBuffer::send)
  7081. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7082. Changed the type of _numNewConnection to unsigned int.
  7083. * src/ActivePeerConnectionCommand.cc
  7084. * src/ActivePeerConnectionCommand.h
  7085. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. * Release 0.16.0
  7087. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. Updated doc
  7089. * README
  7090. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7091. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7092. translations. Thanks to all translators.
  7093. * po/bg.po
  7094. * po/de.po
  7095. * po/fr.po
  7096. * po/ja.po
  7097. * po/zh_CN.po
  7098. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7099. Bump up version number to 0.16.0.
  7100. * configure.ac
  7101. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7103. int32_t.
  7104. Changed the type of count to int32_t.
  7105. * src/Metalink2RequestGroup.cc
  7106. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7107. Added test for Time::elapsed(time_t).
  7108. * test/TimeTest.cc
  7109. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7110. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7111. Util::difftv() should be used instead.
  7112. * src/TimeA2.cc
  7113. * src/TimeA2.h
  7114. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7115. Made socket for dht connections non-blocking
  7116. * src/DHTAbstractMessage.cc
  7117. * src/DHTAbstractMessage.h
  7118. * src/DHTConnection.h
  7119. * src/DHTConnectionImpl.cc
  7120. * src/DHTConnectionImpl.h
  7121. * src/DHTMessage.h
  7122. * src/DHTMessageDispatcherImpl.cc
  7123. * src/DHTMessageDispatcherImpl.h
  7124. * src/DHTUnknownMessage.cc
  7125. * src/DHTUnknownMessage.h
  7126. * src/SocketCore.cc
  7127. * src/SocketCore.h
  7128. * test/MockDHTMessage.h
  7129. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7130. Changed the type of offset to int.
  7131. * src/ParameterizedStringParser.cc
  7132. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7133. Made getAsInt() return int32_t
  7134. * src/Option.h
  7135. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7136. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7137. build.
  7138. * configure.ac
  7139. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7140. Use sqlite3_open if sqlite3_open_v2 is not available.
  7141. * src/Sqlite3MozCookieParser.cc
  7142. * src/Sqlite3MozCookieParser.h
  7143. * m4/sqlite3.m4
  7144. * test/Sqlite3MozCookieParserTest.cc
  7145. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7146. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7147. * src/BtPieceMessage.cc
  7148. * src/DHTPeerAnnounceStorage.cc
  7149. * src/DefaultPieceStorage.cc
  7150. * src/DownloadCommand.cc
  7151. * src/DownloadEngine.cc
  7152. * src/FtpConnection.cc
  7153. * src/PeerConnection.cc
  7154. * src/PeerMessageUtil.cc
  7155. * src/RequestGroup.cc
  7156. * src/RequestGroupMan.cc
  7157. * src/SimpleBtMessage.cc
  7158. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7160. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7161. * src/AbstractDiskWriter.cc
  7162. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7163. Don't set Request::supportsPersistentConnection() in HttpConnection
  7164. since this code is also used in AbstractProxyResponseCommand.
  7165. Moved those code to HttpResponse.
  7166. * src/HttpResponse.cc
  7167. * src/HttpResponse.h
  7168. * src/HttpConnection.cc
  7169. * src/HttpConnection.h
  7170. * src/HttpResponseCommand.cc
  7171. * test/HttpResponseTest.cc
  7172. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7174. The configuration is minimum: no torrent, no metalink, so there may be
  7175. other compile error on their code.
  7176. * src/a2netcompat.h
  7177. * src/File.cc
  7178. * src/File.h
  7179. * src/SocketCore.cc
  7180. * src/SocketCore.h
  7181. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7182. Made a socket of incoming peer non-blocking.
  7183. * src/PeerListenCommand.cc
  7184. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7185. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7186. whole message data is not sent in one send() call.
  7187. * src/BtPieceMessage.cc
  7188. * src/BtPieceMessage.h
  7189. * src/PeerConnection.cc
  7190. * src/PeerConnection.h
  7191. * src/SimpleBtMessage.cc
  7192. * src/SimpleBtMessage.h
  7193. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7194. Fixed the bug that aria2 downloads faster than max-download-limit when
  7195. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7196. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7197. , instead of sum of them.
  7198. * src/ActivePeerConnectionCommand.cc
  7199. * src/DefaultBtInteractive.cc
  7200. * src/DownloadCommand.cc
  7201. * src/PeerInteractionCommand.cc
  7202. * src/PeerReceiveHandshakeCommand.cc
  7203. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Fixed the bug that HTTPS download fails.
  7205. * src/AbstractCommand.cc
  7206. * src/AbstractCommand.h
  7207. * src/DownloadCommand.cc
  7208. * src/FtpConnection.cc
  7209. * src/HttpConnection.cc
  7210. * src/HttpRequestCommand.cc
  7211. * src/HttpResponseCommand.cc
  7212. * src/HttpSkipResponseCommand.cc
  7213. * src/MSEHandshake.cc
  7214. * src/PeerConnection.cc
  7215. * src/SocketCore.cc
  7216. * src/SocketCore.h
  7217. Fixed the bug that aria2 doesn't download whole content body and cannot
  7218. reuse connection if chunked transfer encoding and gzip content encoding
  7219. are set.
  7220. * src/DownloadCommand.cc
  7221. * src/HttpSkipResponseCommand.cc
  7222. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Updated man page.
  7224. * doc/aria2c.1.txt
  7225. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. When error occurred while aria2 was parsing an .aria2.conf file, print
  7227. the usage of the option that caused error.
  7228. * src/option_processing.cc
  7229. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7230. Fixed compile error on OptionHandlerException
  7231. * src/Makefile.am
  7232. * src/OptionHandlerException.cc
  7233. * src/OptionHandlerException.h
  7234. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Moved message of the error to OptionHandlerException.h
  7236. * src/NameMatchOptionHandler.h
  7237. * src/OptionHandlerException.h
  7238. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7239. When error occurs while aria2 is parsing an command-line option, print
  7240. the usage of the option.
  7241. * src/Makefile.am
  7242. * src/NameMatchOptionHandler.h
  7243. * src/OptionHandlerException.h
  7244. * src/option_processing.cc
  7245. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Reverted previous change.
  7247. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7248. username is not in URI.
  7249. * src/HttpRequest.cc
  7250. * src/Request.cc
  7251. * test/HttpRequestTest.cc
  7252. * test/RequestTest.cc
  7253. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7254. Now colon is required for username and password in FTP URL, like:
  7255. ftp://username:password@host.
  7256. If colon is not there, aria2 don't parse it as a username. For example,
  7257. aria2 don't retrieve username from ftp://username@host.
  7258. This fix was made in order to login FTP server via non-transparent ftp
  7259. proxy.
  7260. * src/Request.cc
  7261. * test/RequestTest.cc
  7262. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7263. Use netrc for HTTP.
  7264. Now FTP user/password is sent in Authorization header when
  7265. --ftp-via-http-proxy=get is given.
  7266. * src/AuthConfigFactory.cc
  7267. * src/HttpRequest.cc
  7268. * src/HttpRequest.h
  7269. * src/NetrcAuthResolver.cc
  7270. * src/NetrcAuthResolver.h
  7271. * src/OptionHandlerFactory.cc
  7272. * src/option_processing.cc
  7273. * src/prefs.cc
  7274. * src/prefs.h
  7275. * test/AuthConfigFactoryTest.cc
  7276. * test/HttpRequestTest.cc
  7277. * test/NetrcAuthResolverTest.cc
  7278. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Issue PWD command first and get working directory and use it as a prefix
  7280. for CWD command.
  7281. * src/DownloadEngine.cc
  7282. * src/DownloadEngine.h
  7283. * src/FtpConnection.cc
  7284. * src/FtpConnection.h
  7285. * src/FtpFinishDownloadCommand.cc
  7286. * src/FtpInitiateConnectionCommand.cc
  7287. * src/FtpNegotiationCommand.cc
  7288. * src/FtpNegotiationCommand.h
  7289. * test/FtpConnectionTest.cc
  7290. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Removed default user/pass for FTP user/pass, since it should not have
  7292. precedence over netrc configuration by default.
  7293. * src/OptionHandlerFactory.cc
  7294. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7295. Added debug log for socket event.
  7296. * src/AbstractCommand.cc
  7297. * src/PeerAbstractCommand.cc
  7298. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7299. Log microseconds.
  7300. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7301. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7302. Replaced HelpItem.cc with OptionHandler.cc.
  7303. * po/POTFILES.in
  7304. Updated po files with 'make update-po'
  7305. * po/aria2c.pot
  7306. * po/*.po
  7307. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. Removed possible values from the text.
  7309. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7310. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7311. Removed unused preferences:
  7312. PREF_NO_PREALLOCATION
  7313. PREF_STDOUT_LOG
  7314. PREF_TRACKER_MAX_TRIES
  7315. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7316. PREF_MIN_SEGMENT_SIZE
  7317. * src/option_processing.cc
  7318. * src/prefs.cc
  7319. * src/prefs.h
  7320. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. Integrated HelpItem into OptionParser to ease the workload for adding
  7322. new options. Removed default value from usage text.
  7323. * src/HelpItem.cc: Removed.
  7324. * src/HelpItem.h: Removed.
  7325. * src/HelpItemFactory.cc: Removed.
  7326. * src/HelpItemFactory.h: Removed.
  7327. * src/Makefile.am
  7328. * src/Makefile.in
  7329. * src/NameMatchOptionHandler.h
  7330. * src/OptionHandler.cc
  7331. * src/OptionHandler.h
  7332. * src/OptionHandlerFactory.cc
  7333. * src/OptionHandlerImpl.h
  7334. * src/OptionParser.cc
  7335. * src/OptionParser.h
  7336. * src/TagContainer.cc: Removed.
  7337. * src/TagContainer.h: Removed.
  7338. * src/TaggedItem.cc: Removed.
  7339. * src/TaggedItem.h: Removed.
  7340. * src/main.cc
  7341. * src/option_processing.cc
  7342. * src/usage_text.h
  7343. * src/version_usage.cc
  7344. * test/HelpItemTest.cc: Removed.
  7345. * test/Makefile.am
  7346. * test/Makefile.in
  7347. * test/OptionHandlerTest.cc
  7348. * test/OptionParserTest.cc
  7349. * test/TagContainerTest.cc: Removed.
  7350. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Moved `TransferStat stat = ...' to inside the `if' clause.
  7352. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7353. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Fixed the bug that a block in a piece is requested when same block is
  7355. already requested to the same peer in end game mode.
  7356. * src/BtRequestFactory.h
  7357. * src/DefaultBtInteractive.cc
  7358. * src/DefaultBtRequestFactory.cc
  7359. * src/DefaultBtRequestFactory.h
  7360. * src/DefaultPieceStorage.cc
  7361. * src/DefaultPieceStorage.h
  7362. * src/PieceStorage.h
  7363. * src/UnknownLengthPieceStorage.cc
  7364. * src/UnknownLengthPieceStorage.h
  7365. * test/DefaultBtRequestFactoryTest.cc
  7366. * test/DefaultPieceStorageTest.cc
  7367. * test/MockBtRequestFactory.h
  7368. * test/MockPieceStorage.h
  7369. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7370. Removed _uploadLength and _downloadLength from PeerSessionResource
  7371. and use PeerStat::_sessionUploadLength and
  7372. PeerStat::_sessionDownloadLength.
  7373. * src/PeerSessionResource.cc
  7374. * src/PeerSessionResource.h
  7375. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. Fixed the bug that prefixLength of split bucket which doesn't include
  7377. local node ID is incremented.
  7378. * src/DHTBucket.cc
  7379. * src/DHTBucket.h
  7380. * test/DHTBucketTest.cc
  7381. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7382. Added cookies.sqlite to EXTRA_DIST
  7383. * test/Makefile.am
  7384. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Added Turkish translation. Updated French, German, Russian and
  7386. Simplified Chinese translations. Thanks to all translators.
  7387. * po/LINGUAS
  7388. * po/de.po
  7389. * po/fr.po
  7390. * po/ru.po
  7391. * po/tr.po
  7392. * po/zh_CN.po
  7393. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7394. Added deliminating text to the beginning of the log so that one can find
  7395. where the log starts easily.
  7396. * src/main.cc
  7397. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7399. to fix compile error when async DNS is not enabled by configuration.
  7400. * src/AbstractCommand.cc
  7401. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. If establishing conneciton to a server is failed, then mark error on
  7403. its ServerStat.
  7404. Added the cause of error to log when error event occurred.
  7405. Moved message string to message.h for translation.
  7406. * src/AbstractCommand.cc
  7407. * src/AbstractCommand.h
  7408. * src/FtpNegotiationCommand.cc
  7409. * src/HttpRequestCommand.cc
  7410. * src/PeerAbstractCommand.cc
  7411. * src/message.h
  7412. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7413. Added the function to get error message from socket.
  7414. * src/SocketCore.cc
  7415. * src/SocketCore.h
  7416. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7418. * src/RequestGroupMan.cc
  7419. * src/RequestGroupMan.h
  7420. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. If error event is received in epoll, then abort download immediately.
  7422. * src/AbstractCommand.cc
  7423. * src/Command.cc
  7424. * src/Command.h
  7425. * src/DownloadEngine.cc
  7426. * src/PeerAbstractCommand.cc
  7427. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7428. Added usage message for --uri-selector, --server-stat-of,
  7429. --server-stat-in, --server-stat-timeout options.
  7430. * src/HelpItemFactory.cc
  7431. * src/usage_text.h
  7432. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7433. Added upper limit of FTP response buffer. The current implementation
  7434. uses 4096bytes as a limit.
  7435. * src/FtpConnection.cc
  7436. * src/FtpConnection.h
  7437. * test/FtpConnectionTest.cc
  7438. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7439. Use non-blocking socket for TCP communication to avoid possible
  7440. blocking due to buffer full.
  7441. * src/AbstractProxyRequestCommand.cc
  7442. * src/FtpConnection.cc
  7443. * src/FtpConnection.h
  7444. * src/FtpNegotiationCommand.cc
  7445. * src/FtpNegotiationCommand.h
  7446. * src/HttpConnection.cc
  7447. * src/HttpConnection.h
  7448. * src/HttpRequestCommand.cc
  7449. * src/InitiatorMSEHandshakeCommand.cc
  7450. * src/InitiatorMSEHandshakeCommand.h
  7451. * src/MSEHandshake.cc
  7452. * src/MSEHandshake.h
  7453. * src/Makefile.am
  7454. * src/PeerConnection.cc
  7455. * src/PeerConnection.h
  7456. * src/PeerInteractionCommand.cc
  7457. * src/PeerListenCommand.cc
  7458. * src/ReceiverMSEHandshakeCommand.cc
  7459. * src/ReceiverMSEHandshakeCommand.h
  7460. * src/SocketBuffer.cc
  7461. * src/SocketBuffer.h
  7462. * src/SocketCore.cc
  7463. * src/SocketCore.h
  7464. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7465. Call setStatusRealtime() in constructor.
  7466. * src/RealtimeCommand.cc
  7467. * src/RealtimeCommand.h
  7468. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7469. Call Download::setNoWait(true) to execute newly created command without
  7470. a pause.
  7471. * src/AbstractCommand.cc
  7472. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7473. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7474. found' error from HTTP/FTP server NUM times without getting single
  7475. bytes of data, then force the download to fail.
  7476. Basically aria2 tris all URIs available. So if long list of URIs are
  7477. specified in Metalink, then aria2 will take a long time to fail
  7478. eventually if all URIs are outdated. This option eases this situation
  7479. to limit the number of servers to try.
  7480. * src/FtpNegotiationCommand.cc
  7481. * src/HelpItemFactory.cc
  7482. * src/HttpResponseCommand.cc
  7483. * src/OptionHandlerFactory.cc
  7484. * src/PeerStat.h
  7485. * src/RequestGroup.cc
  7486. * src/RequestGroup.h
  7487. * src/SegmentMan.cc
  7488. * src/SegmentMan.h
  7489. * src/option_processing.cc
  7490. * src/prefs.cc
  7491. * src/prefs.h
  7492. * src/usage_text.h
  7493. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7494. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7495. response even if more than one response is in it.
  7496. * src/FtpConnection.cc
  7497. * src/FtpConnection.h
  7498. * test/FtpConnectionTest.cc
  7499. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7500. Merged from stable-0.15
  7501. * m4/libcares.m4
  7502. Use pkg-config
  7503. * m4/sqlite3.m4
  7504. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7505. Removed unnecessary if statement.
  7506. * src/DefaultPieceStorage.cc (initPieceStorage)
  7507. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. Added --connect-timeout option to specify connect timeout in seconds.
  7509. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7510. connecting to BitTorrent peer is not controlled by this option.
  7511. * src/AbstractProxyRequestCommand.cc
  7512. * src/FtpNegotiationCommand.cc
  7513. * src/HelpItemFactory.cc
  7514. * src/HttpRequestCommand.cc
  7515. * src/OptionHandlerFactory.cc
  7516. * src/option_processing.cc
  7517. * src/prefs.cc
  7518. * src/prefs.h
  7519. * src/usage_text.h
  7520. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7521. Added help message for -R option.
  7522. * src/HelpItemFactory.cc
  7523. * src/usage_text.h
  7524. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7525. Added the message that the time is in local time zone.
  7526. * src/RequestGroup.cc
  7527. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Implemented the ability to get timestamp from remote FTP server using
  7529. MDTM command described in RFC3659.
  7530. * src/FtpConnection.cc
  7531. * src/FtpConnection.h
  7532. * src/FtpNegotiationCommand.cc
  7533. * src/FtpNegotiationCommand.h
  7534. * test/FtpConnectionTest.cc
  7535. * test/Makefile.am
  7536. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. Implemented the ability to get timestamp from remote HTTP server and
  7538. apply it to local file. To enable this feature, --remote-time option
  7539. is added. No usage text has been written yet.
  7540. If several servers returns difference timestamp, then aria2 uses latest
  7541. one.
  7542. * src/CopyDiskAdaptor.cc
  7543. * src/CopyDiskAdaptor.h
  7544. * src/DirectDiskAdaptor.cc
  7545. * src/DirectDiskAdaptor.h
  7546. * src/DiskAdaptor.h
  7547. * src/File.cc
  7548. * src/File.h
  7549. * src/HttpHeader.cc
  7550. * src/HttpHeader.h
  7551. * src/HttpResponse.cc
  7552. * src/HttpResponse.h
  7553. * src/HttpResponseCommand.cc
  7554. * src/HttpResponseCommand.h
  7555. * src/MultiDiskAdaptor.cc
  7556. * src/MultiDiskAdaptor.h
  7557. * src/OptionHandlerFactory.cc
  7558. * src/RequestGroup.cc
  7559. * src/RequestGroup.h
  7560. * src/RequestGroupMan.cc
  7561. * src/option_processing.cc
  7562. * src/prefs.cc
  7563. * src/prefs.h
  7564. * test/CopyDiskAdaptorTest.cc
  7565. * test/FileTest.cc
  7566. * test/Makefile.am
  7567. * test/Makefile.in
  7568. * test/MultiDiskAdaptorTest.cc
  7569. * test/TestUtil.cc
  7570. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Fixed the bug that DiskWriterEntry is not created when its
  7572. FileEntry.isRequested() is false and it doesn't share a piece with
  7573. other FileEntries that are requested. This bug causes segmentation fault
  7574. in the end.
  7575. * src/MultiDiskAdaptor.cc
  7576. * src/MultiDiskAdaptor.h
  7577. * src/MultiFileAllocationIterator.cc
  7578. * test/MultiDiskAdaptorTest.cc
  7579. * test/MultiFileAllocationIteratorTest.cc
  7580. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7582. called if the number of file entries are greater than max open files.
  7583. * src/AbstractSingleDiskAdaptor.cc
  7584. * src/AbstractSingleDiskAdaptor.h
  7585. * src/DiskAdaptor.h
  7586. * src/MultiDiskAdaptor.cc
  7587. * src/MultiDiskAdaptor.h
  7588. * test/MultiDiskAdaptorTest.cc
  7589. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7590. Added a constuctor that receives struct timeval.
  7591. Added operator<.
  7592. * src/TimeA2.cc
  7593. * src/TimeA2.h
  7594. * test/TimeTest.cc
  7595. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7596. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7597. * src/CookieParser.cc
  7598. * test/CookieParserTest.cc
  7599. * test/HttpResponseTest.cc
  7600. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7601. Implmented the functions to parse date.
  7602. * src/TimeA2.cc
  7603. * src/TimeA2.h
  7604. * test/TimeTest.cc
  7605. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7606. Added "Firefox3 Cookie" feature to FeatureConfig
  7607. * src/FeatureConfig.cc
  7608. * src/FeatureConfig.h
  7609. * test/FeatureConfigTest.cc
  7610. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7611. Bump up version number to 0.16.0b
  7612. * configure.ac
  7613. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. Use pkg-config if is is available.
  7615. * m4/openssl.m4
  7616. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7618. * src/BtAnnounce.h
  7619. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7620. If an error occurred with a URI, remove identical URI from remaining
  7621. URI list because it is likely that same error occurred in the end and it
  7622. is waste of time.
  7623. * src/AbstractCommand.cc
  7624. * src/RequestGroup.cc
  7625. * src/RequestGroup.h
  7626. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7627. Removed wrong comment.
  7628. * src/DefaultPeerStorage.cc
  7629. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7630. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7631. Added return value of getpid() to argument of srand() to achieve more
  7632. randomized value.
  7633. * src/SimpleRandomizer.cc
  7634. * src/SimpleRandomizer.h
  7635. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. Contact tracker frequently when the number of connections are 0 and
  7637. download is not finished yet.
  7638. * src/ActivePeerConnectionCommand.cc
  7639. * src/BtAnnounce.h
  7640. * src/DefaultBtAnnounce.cc
  7641. * src/DefaultBtAnnounce.h
  7642. * test/MockBtAnnounce.h
  7643. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7644. Moved threshold values to UTPexExtensionMessage.
  7645. * src/DefaultBtInteractive.cc
  7646. * src/Peer.cc
  7647. * src/Peer.h
  7648. * src/UTPexExtensionMessage.cc
  7649. * src/UTPexExtensionMessage.h
  7650. * test/UTPexExtensionMessageTest.cc
  7651. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7652. Added _incoming member to Peer class and made it true if the peer
  7653. initiated connection. Don't add those peer to UTPex message.
  7654. If extended handshake is received, assign _incoming to false.
  7655. * src/DefaultBtInteractive.cc
  7656. * src/HandshakeExtensionMessage.cc
  7657. * src/Peer.cc
  7658. * src/Peer.h
  7659. * src/PeerListenCommand.cc
  7660. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7661. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7662. Encoding Decoder. Removed size threshold for turning off on the fly
  7663. inflation because resulting file may or may not be inflated depending
  7664. on the file size and I think it is not expected by users.
  7665. This change fixes segmentation fault when Metalink file contains gzipped
  7666. file and its filesize is provided.
  7667. * src/HttpResponseCommand.cc
  7668. * src/HttpResponseCommand.h
  7669. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Made Cookie immutable.
  7671. * src/Cookie.cc
  7672. * src/Cookie.h
  7673. * src/CookieParser.cc
  7674. * src/CookieParser.h
  7675. * src/CookieStorage.cc
  7676. * test/CookieParserTest.cc
  7677. * test/CookieStorageTest.cc
  7678. * test/NsCookieParserTest.cc
  7679. * test/Sqlite3MozCookieParserTest.cc
  7680. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Removed CookieBox, CookieBoxFactory.
  7682. * src/CookieBox.cc
  7683. * src/CookieBox.h
  7684. * src/CookieBoxFactory.cc
  7685. * src/CookieBoxFactory.h
  7686. * src/Makefile.am
  7687. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7688. Use CookieStorage class instead of CookieBox class.
  7689. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7690. * src/AbstractProxyRequestCommand.cc
  7691. * src/CookieStorage.cc
  7692. * src/DownloadEngine.cc
  7693. * src/DownloadEngine.h
  7694. * src/HttpConnection.cc
  7695. * src/HttpConnection.h
  7696. * src/HttpRequest.cc
  7697. * src/HttpRequest.h
  7698. * src/HttpRequestCommand.cc
  7699. * src/HttpResponse.cc
  7700. * src/HttpResponseCommand.cc
  7701. * src/HttpSkipResponseCommand.cc
  7702. * src/Makefile.am
  7703. * src/MultiUrlRequestInfo.cc
  7704. * src/Request.cc
  7705. * src/Request.h
  7706. * src/main.cc
  7707. * test/AllTest.cc
  7708. * test/CookieStorageTest.cc
  7709. * test/CookieTest.cc
  7710. * test/HttpRequestTest.cc
  7711. * test/HttpResponseTest.cc
  7712. * test/Makefile.am
  7713. * test/NsCookieParserTest.cc
  7714. * test/Sqlite3MozCookieParserTest.cc
  7715. * test/nscookietest.txt
  7716. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7717. Updated
  7718. * test/Cookies.sqlite
  7719. * test/nscookietest.txt
  7720. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. Added tests for CookieStorage::load()
  7722. * test/CookieStorageTest.cc
  7723. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7724. Added CookieStorage class which is based on RFC2109 and manages cookies
  7725. more strictly than CookieBox and CookieBoxFactory class.
  7726. * src/CookieStorage.cc
  7727. * src/CookieStorage.h
  7728. * src/Cookie.cc
  7729. * src/Cookie.h
  7730. * test/CookieStorageTest.cc
  7731. * test/CookieTest.cc
  7732. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7733. Fixed the bug that commands are created more than the number of pieces.
  7734. * src/RequestGroup.cc
  7735. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7736. Fixed infinite loop bug in FTP when SIZE command failed.
  7737. * src/FtpNegotiationCommand.cc
  7738. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7739. Removed DirectDiskAdaptorTest.h
  7740. * test/Makefile.am
  7741. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7742. Fixed chunk checksum validation cannot detect trailing garbage data.
  7743. BUG#2074141
  7744. * src/AbstractSingleDiskAdaptor.cc
  7745. * src/AbstractSingleDiskAdaptor.h
  7746. * src/CheckIntegrityEntry.cc
  7747. * src/CheckIntegrityEntry.h
  7748. * src/DiskAdaptor.h
  7749. * src/MultiDiskAdaptor.cc
  7750. * src/MultiDiskAdaptor.h
  7751. * src/RequestGroup.cc
  7752. * test/DirectDiskAdaptorTest.cc
  7753. * test/MultiDiskAdaptorTest.cc
  7754. * test/TestUtil.cc
  7755. * test/TestUtil.h
  7756. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. Bump up version number of dht.dat file to 3. In version 3 format, time
  7758. is stored in 64bit, network byte order.
  7759. New build can load old format(version 2) but it saves the file in new
  7760. format. It means once you used new build, your dht.dat becomes
  7761. incompatible with older build.
  7762. * src/DHTRoutingTableDeserializer.cc
  7763. * src/DHTRoutingTableSerializer.cc
  7764. * test/DHTRoutingTableSerializerTest.cc
  7765. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7766. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7767. * test/Makefile.am
  7768. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7769. Bump up version number of .aria2 control file to 0001.
  7770. New aria2 can still load version 0000 file but it saves the file in
  7771. version 0001 format. It means that new aria2 can resume download
  7772. started by old aria2 but the opposite is not true.
  7773. * src/DefaultBtProgressInfoFile.cc
  7774. * src/DefaultBtProgressInfoFile.h
  7775. * test/DefaultBtProgressInfoFileTest.cc
  7776. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7777. Added ntoh64 and hton64 as inline functions.
  7778. * src/Util.cc
  7779. * test/UtilTest.cc
  7780. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. Added sqlite3 depenency and Firefox3 cookie support.
  7782. * README
  7783. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7784. State that firefox3 cookie is supported explicitly in the usage.
  7785. * src/usage_text.h
  7786. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Externalized message.
  7788. * src/RequestGroupMan.cc
  7789. * src/message.h
  7790. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Save temporary file first and rename to the destination on success.
  7792. Added test cases.
  7793. * src/RequestGroupMan.cc
  7794. * test/RequestGroupManTest.cc
  7795. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7796. Fixed the bug that the number of connected peer is exceeding the limit
  7797. (55 by default) in seeding mode.
  7798. Multiplied 0.8 to _maxUploadSpeedLimit.
  7799. * src/ActivePeerConnectionCommand.cc
  7800. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7801. Clear table item.
  7802. * src/Dictionary.cc
  7803. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7804. Fixed error handling of lseek.
  7805. * src/AbstractDiskWriter.cc
  7806. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7807. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  7808. style cookie file.
  7809. * src/usage_text.h
  7810. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7811. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  7812. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  7813. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  7814. * src/Util.cc
  7815. * src/Util.h
  7816. * src/CookieParser.cc
  7817. * test/UtilTest.cc
  7818. * test/CookieParserTest.cc
  7819. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7820. Separate the implementation to load old mozilla format of cookie to
  7821. NsCookieParser class.
  7822. * src/CookieBoxFactory.cc
  7823. * src/CookieBoxFactory.h
  7824. * src/NsCookieParser.cc
  7825. * src/NsCookieParser.h
  7826. * test/NsCookieParserTest.cc
  7827. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Made parse() const
  7829. * src/Sqlite3MozCookieParser.cc
  7830. * src/Sqlite3MozCookieParser.h
  7831. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7832. Added firefox3 cookie support based on the patch submitted by
  7833. tizianomueller.
  7834. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  7835. this functionality.
  7836. * configure.ac
  7837. * m4/sqlite3.m4
  7838. * src/CookieBoxFactory.cc
  7839. * src/CookieBoxFactory.h
  7840. * src/Makefile.am
  7841. * src/Makefile.in
  7842. * src/Sqlite3MozCookieParser.cc
  7843. * src/Sqlite3MozCookieParser.h
  7844. * src/main.cc
  7845. * test/CookieBoxFactoryTest.cc
  7846. * test/Makefile.am
  7847. * test/Makefile.in
  7848. * test/Sqlite3MozCookieParserTest.cc
  7849. * test/badcookies.sqlite
  7850. * test/cookies.sqlite
  7851. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Added Danish and Greek translations.
  7853. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  7854. Great thanks to all translators.
  7855. * po/LINGUAS
  7856. * po/el.po
  7857. * po/da.po
  7858. * po/es.po
  7859. * po/ca.po
  7860. * po/nn.po
  7861. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7862. Fixed man page: --follow-bittorrent should be --follow-torrent
  7863. * doc/aria2c.1.txt
  7864. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7865. Fixed: numCommand is less than the value specified in -C option.
  7866. * src/RequestGroup.cc
  7867. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7868. Fixed occasional assertion failure in PieceSegment.
  7869. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7870. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7871. creation of duplicate segments and one of the segment was finished then
  7872. assertion failure was caused.
  7873. * src/SegmentMan.cc
  7874. * test/SegmentManTest.cc
  7875. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Added options to load/save the server's performance/status to a file
  7877. and the timeout to drop their data.
  7878. --server-stat-of=FILE specifies the file to which performance data
  7879. is saved.
  7880. --server-stat-if=FILE specifies the file to read previously saved
  7881. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7882. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7883. TIMEOUT is specified in seconds and the default value is 24hours.
  7884. * src/MultiUrlRequestInfo.cc
  7885. * src/OptionHandlerFactory.cc
  7886. * src/RequestGroupMan.cc
  7887. * src/RequestGroupMan.h
  7888. * src/ServerStatMan.cc
  7889. * src/ServerStatMan.h
  7890. * src/option_processing.cc
  7891. * src/prefs.cc
  7892. * src/prefs.h
  7893. * test/ServerStatManTest.cc
  7894. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7895. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7896. * src/ServerStatMan.cc
  7897. * src/ServerStatMan.h
  7898. * test/ServerStatManTest.cc
  7899. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. Implemented ServerStatMan::load(...) function and its test case.
  7901. * src/ServerStat.cc
  7902. * src/ServerStat.h
  7903. * src/ServerStatMan.cc
  7904. * test/ServerStatManTest.cc
  7905. * test/ServerStatTest.cc
  7906. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7907. Use time_t instead of int32_t. Use int64_t where milli second is
  7908. expected.
  7909. * src/TimeA2.cc
  7910. * src/TimeA2.h
  7911. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. Implemented ServerStatMan::save(...) function and its test case.
  7913. * src/ServerStat.cc
  7914. * src/ServerStat.h
  7915. * src/ServerStatMan.cc
  7916. * src/ServerStatMan.h
  7917. * test/ServerStatManTest.cc
  7918. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7919. Now aria2 uses name attribute in Metalink as local filename in
  7920. BitTorrent downloads. BUG#2033999
  7921. * src/BtContext.h
  7922. * src/BtDependency.cc
  7923. * src/DefaultBtContext.cc
  7924. * src/DefaultBtContext.h
  7925. * src/SingleFileDownloadContext.cc
  7926. * src/SingleFileDownloadContext.h
  7927. * test/BtDependencyTest.cc
  7928. * test/DefaultBtContextTest.cc
  7929. * test/MockBtContext.h
  7930. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. Added AC_C_BIGENDIAN
  7932. * src/configure.ac
  7933. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. Limited numCommand less than or equal to the number of piece.
  7935. * src/RequestGroup.cc
  7936. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7938. directive.
  7939. * test/DefaultPieceStorageTest.cc
  7940. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Fixed memory leak in test code
  7942. * test/AnnounceListTest.cc
  7943. * test/DefaultPeerListProcessorTest.cc
  7944. * test/DefaultPeerStorageTest.cc
  7945. * test/MetaFileUtilTest.cc
  7946. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7948. * src/DefaultPieceStorage.cc
  7949. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Initialized _directIOAllowed
  7951. * src/MultiDiskAdaptor.cc
  7952. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Fixed memory leak
  7954. * src/GZipDecoder.cc
  7955. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7956. Fixed memory leak
  7957. * src/MetalinkParserStateMachine.cc
  7958. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Fixed memory leak
  7960. * src/Dictionary.cc
  7961. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. Fixed memory leak
  7963. * src/IteratableChunkChecksumValidator.h
  7964. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7965. Fixed unmatched malloc/free.
  7966. * src/IteratableChunkChecksumValidator.cc
  7967. * src/IteratableChecksumValidator.cc
  7968. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7969. Removed max chunk size check. This change fixes BUG#2040169
  7970. * src/ChunkedDecoder.cc
  7971. * src/ChunkedDecoder.h
  7972. * test/ChunkedDecoderTest.cc
  7973. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Implemented download speed based URI selection algorithm.
  7975. Introduced new option --uri-selector.
  7976. If --uri-selector=feedback is given, aria2 uses download speed observed
  7977. in the previous downloads and chooses fastest server in the URI list.
  7978. Currently at most 10 URIs are considered to introduce randomeness for
  7979. finding better servers. The speed is average download speed in the
  7980. downloads.
  7981. On the other hand, if --uri-selector=inorder is given, which is default,
  7982. URI is tried in order in URI list.
  7983. The usage text for the new option has not been written yet.
  7984. * src/AbstractCommand.cc
  7985. * src/DownloadCommand.cc
  7986. * src/DownloadEngine.cc
  7987. * src/DownloadEngineFactory.cc
  7988. * src/InOrderURISelector.cc
  7989. * src/InOrderURISelector.h
  7990. * src/OptionHandlerFactory.cc
  7991. * src/PeerStat.h
  7992. * src/RequestGroup.cc
  7993. * src/RequestGroup.h
  7994. * src/RequestGroupMan.cc
  7995. * src/RequestGroupMan.h
  7996. * src/SegmentMan.cc
  7997. * src/SegmentMan.h
  7998. * src/ServerStat.cc
  7999. * src/ServerStat.h
  8000. * src/ServerStatMan.cc
  8001. * src/ServerStatMan.h
  8002. * src/ServerStatURISelector.cc
  8003. * src/ServerStatURISelector.h
  8004. * src/URISelector.h
  8005. * src/option_processing.cc
  8006. * src/prefs.cc
  8007. * src/prefs.h
  8008. * test/InOrderURISelectorTest.cc
  8009. * test/RequestGroupManTest.cc
  8010. * test/ServerStatManTest.cc
  8011. * test/ServerStatURISelectorTest.cc
  8012. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8013. * Release 0.15.1+2
  8014. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. Bump up version number to 0.15.1+2
  8016. * configure.ac
  8017. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8018. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8019. * m4/aria2_arg.m4
  8020. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8021. * Release 0.15.1+1
  8022. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Bump up version number to 0.15.1+1
  8024. * configure.ac
  8025. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8026. Fixed the bug that causes segmentaion fault when resuming download
  8027. using metalink without size tag. Reproducible only using HTTP URI.
  8028. * src/HttpResponseCommand.cc
  8029. * src/FtpNegotiationCommand.cc
  8030. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8031. * Release 0.15.1
  8032. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8033. Updated Bulgarian and French translations, thanks to all translators.
  8034. * po/bg.po
  8035. * po/fr.po
  8036. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8037. Bump up version number to 0.15.1
  8038. * configure.ac
  8039. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Avoid repeated call of gettimeofday() when calculating speed.
  8041. * src/SpeedCalc.cc
  8042. * src/SpeedCalc.h
  8043. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8044. Removed writable check when socket's send buffer is full in BitTorrent
  8045. downloads to lower CPU usage.
  8046. * src/PeerInteractionCommand.cc
  8047. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8048. Fixed broken gzip inflation.
  8049. Turn off segmented downloading if gzip content is smaller than or equal
  8050. to 1MiB and inflate the data on the fly, because HTTP response header
  8051. doesn't contain the length of inflated file we can't determin where
  8052. the chunk of data should be written.
  8053. On the other hand, if gzip content is larger than 1MB, then turn off
  8054. on the fly inflation, because some servers returns "content-type: gzip"
  8055. for *.tgz, *.gz files.
  8056. * src/DownloadCommand.cc
  8057. * src/HttpResponseCommand.cc
  8058. * src/HttpResponseCommand.h
  8059. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Applied tizianomueller's patch to fix compile error.
  8061. * test/BitfieldManTest.cc
  8062. * test/BtRequestMessageTest.cc
  8063. * test/DefaultBtContextTest.cc
  8064. * test/DefaultDiskWriterTest.cc
  8065. * test/DefaultPieceStorageTest.cc
  8066. * test/HttpHeaderProcessorTest.cc
  8067. * test/HttpResponseTest.cc
  8068. * test/Metalink2RequestGroupTest.cc
  8069. * test/MetalinkParserControllerTest.cc
  8070. * test/MetalinkProcessorTest.cc
  8071. * test/PeerSessionResourceTest.cc
  8072. * test/UtilTest.cc
  8073. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8074. * Release 0.15.0
  8075. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. Reordered src files in POTFILES.in so that usage text appears first.
  8077. * po/POTFILES.in
  8078. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. Bump up version number to 0.15.0
  8080. * configure.ac
  8081. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8082. Added Bulgarian translation.
  8083. Updated Catalan, Spanish, French and Japanese translations.
  8084. Thanks to all translators.
  8085. * po/LINGUAS
  8086. * po/bg.po
  8087. * po/ca.po
  8088. * po/es.po
  8089. * po/fr.po
  8090. * po/ja.po
  8091. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. Updated feature list. Added libz for dependency section.
  8093. Added a description about unit testing using CppUnit.
  8094. * README
  8095. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8096. Added a test for libz. Quoted where it is necessary.
  8097. * build_test.sh
  8098. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8099. Added GZip to `Enabled Features' list.
  8100. * src/FeatureConfig.cc
  8101. * src/FeatureConfig.h
  8102. * test/FeatureConfigTest.cc
  8103. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8105. the transfer has not yet started.
  8106. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8107. * src/SegmentMan.cc
  8108. * src/SegmentMan.h
  8109. * test/SegmentManTest.cc
  8110. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Cache last calculated average download/upload speed.
  8112. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8113. cached value.
  8114. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8115. * src/PeerStat.h
  8116. * src/SpeedCalc.cc
  8117. * src/SpeedCalc.h
  8118. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8119. Call parseUrl directly.
  8120. * src/Request.cc (resetUrl)
  8121. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Supported absolute/relative path in Location header field.
  8123. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8124. * src/HttpHeader.cc
  8125. * src/HttpHeader.h
  8126. * src/HttpResponse.cc
  8127. * src/HttpSkipResponseCommand.cc
  8128. * src/Request.cc
  8129. * test/HttpHeaderTest.cc
  8130. * test/HttpResponseTest.cc
  8131. * test/RequestTest.cc
  8132. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8133. Changed help text for --load-cookie option.
  8134. * doc/aria2c.1.txt
  8135. * src/usage_text.h
  8136. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. Regenerated test/Makefile.in to remove stale ChangeLog.
  8138. * test/Makefile.in
  8139. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8140. Updated po files.
  8141. * po/aria2c.pot
  8142. * po/*.po
  8143. * po/*.gmo
  8144. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. Bump up version number to 0.15.0b
  8146. * configure.ac
  8147. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8148. Externalize messages.
  8149. * src/RequestGroupMan.cc
  8150. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8151. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8152. Use File::exists() instead of File::isFile() to allow non-regular file
  8153. such as block special files.
  8154. * src/AbstractDiskWriter.cc
  8155. * src/MultiDiskWriter.cc
  8156. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8157. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8158. * src/gai_strerror.h
  8159. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8160. Fixed compile error. Thanks gknauf for the patch.
  8161. * src/asctime_r.c
  8162. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8163. Included asctime_r.h from a2time.h.
  8164. * src/a2time.h
  8165. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8166. Added a message "aria2 doesn't verify signature" to log message when
  8167. signature file is saved.
  8168. * src/RequestGroupMan.cc
  8169. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8170. Added the ability to save signature when download is completed if
  8171. signature is available. The filename of signature file is the path to
  8172. download file followed by ".sig". If it already exists, then signature
  8173. will not be saved.
  8174. * src/RequestGroupMan.cc
  8175. * src/Signature.cc
  8176. * test/SignatureTest.cc
  8177. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8178. Updated the descriptions for --bt-seed-unverified.
  8179. * doc/aria2c.1
  8180. * doc/aria2c.1.html
  8181. * doc/aria2c.1.txt
  8182. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8184. that this is not going to verify files using piece hashes.
  8185. * src/HelpItemFactory.cc
  8186. * src/OptionHandlerFactory.cc
  8187. * src/RequestGroup.cc
  8188. * src/option_processing.cc
  8189. * src/prefs.cc
  8190. * src/prefs.h
  8191. * src/usage_text.h
  8192. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8193. Added the ability to retrieve signature from Metalink file.
  8194. A retrieved signature is stored in Signature class and it is held by
  8195. DownloadContext class. Note that aria2 doesn't verify signature.
  8196. * src/DownloadContext.cc
  8197. * src/DownloadContext.h
  8198. * src/Makefile.am
  8199. * src/Makefile.in
  8200. * src/Metalink2RequestGroup.cc
  8201. * src/MetalinkEntry.cc
  8202. * src/MetalinkEntry.h
  8203. * src/MetalinkParserController.cc
  8204. * src/MetalinkParserController.h
  8205. * src/MetalinkParserStateMachine.cc
  8206. * src/MetalinkParserStateMachine.h
  8207. * src/Signature.cc
  8208. * src/Signature.h
  8209. * src/SignatureMetalinkParserState.cc
  8210. * src/SignatureMetalinkParserState.h
  8211. * src/VerificationMetalinkParserState.cc
  8212. * src/VerificationMetalinkParserState.h
  8213. * test/Metalink2RequestGroupTest.cc
  8214. * test/MetalinkParserControllerTest.cc
  8215. * test/MetalinkProcessorTest.cc
  8216. * test/test.xml
  8217. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Close DiskAdaptor after renaming file.
  8219. * src/RequestGroup.cc
  8220. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8221. Corrected indentation
  8222. * src/DefaultBtProgressInfoFile.cc
  8223. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8224. Moved the calls of std::ios::exceptions() inside of try-catch block
  8225. because if an error occurred in constructor of std::fstream, then
  8226. exception is thrown immediately when std::ios::exceptions() is called
  8227. which results unhandled exception and aria2c aborts.
  8228. * src/DefaultBtProgressInfoFile.cc
  8229. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8230. Added the test for the previous change in DefaultBtContext.cc
  8231. * test/DefaultBtContextTest.cc
  8232. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Fixed the bug that causes infinite loop when the number of pieces are
  8234. fewer than allowed fast set size which is 10 by default.
  8235. * src/DefaultBtContext.cc
  8236. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8237. Updated the descriptions for -j, -s. Added --bt-seed.
  8238. * doc/aria2c.1
  8239. * doc/aria2c.1.html
  8240. * doc/aria2c.1.txt
  8241. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8243. aria2 seeds previously downloaded files without validating piece hashs.
  8244. * src/HelpItemFactory.cc
  8245. * src/OptionHandlerFactory.cc
  8246. * src/RequestGroup.cc
  8247. * src/option_processing.cc
  8248. * src/prefs.cc
  8249. * src/prefs.h
  8250. * src/usage_text.h
  8251. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Updated DESCRIPTION of man page.
  8253. * doc/aria2c.1
  8254. * doc/aria2c.1.html
  8255. * doc/aria2c.1.txt
  8256. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8258. Don't define `struct addrinfo' when __sun is defined.
  8259. * src/getaddrinfo.h
  8260. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8261. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8262. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8263. second argument is of type `struct _stati64'. Otherwise it is defined as
  8264. `struct stat'.
  8265. * src/AbstractDiskWriter.cc
  8266. * src/File.cc
  8267. * src/File.h
  8268. * src/a2io.h
  8269. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. Fixed the compile error in hurd-i386
  8271. See the original bug report:
  8272. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8273. * src/a2io.h
  8274. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Code cleanup.
  8276. * src/PeerAbstractCommand.cc
  8277. * src/PeerAbstractCommand.h
  8278. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8279. Removed TransferEncoding.
  8280. * src/DownloadCommand.cc
  8281. * src/DownloadCommand.h
  8282. * src/HttpResponseCommand.cc
  8283. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8284. Updated po files.
  8285. * po/aria2c.pot
  8286. * po/*.po
  8287. * po/*.gmo
  8288. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8290. * src/A2STR.cc
  8291. * src/A2STR.h
  8292. * src/ChunkedDecoder.cc
  8293. * src/ChunkedDecoder.h
  8294. * src/ChunkedEncoding.cc: Removed
  8295. * src/ChunkedEncoding.h: Removed
  8296. * src/DownloadCommand.cc
  8297. * src/DownloadCommand.h
  8298. * src/HttpDownloadCommand.cc
  8299. * src/HttpResponse.cc
  8300. * src/HttpResponse.h
  8301. * src/HttpResponseCommand.cc
  8302. * src/HttpSkipResponseCommand.cc
  8303. * src/HttpSkipResponseCommand.h
  8304. * src/Makefile.am
  8305. * src/TransferEncoding.h: Removed
  8306. * test/ChunkedDecoderTest.cc
  8307. * test/ChunkedEncodingTest.cc: Removed
  8308. * test/HttpResponseTest.cc
  8309. * test/Makefile.am
  8310. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8311. Use append instead of insert.
  8312. * src/GZipDecoder.cc
  8313. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8314. Updated doc
  8315. * src/Decoder.h
  8316. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8317. Updated usage text for -s option.
  8318. * src/usage_text.h
  8319. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8320. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8321. * src/Request.cc
  8322. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8323. Cleaned up configure.ac.
  8324. * configure.ac
  8325. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8327. AC_ARG_ENABLE.
  8328. * configure.ac
  8329. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8331. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8332. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8333. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8334. fly and writes decoded data to a local disk.
  8335. * README
  8336. * README.html
  8337. * configure.ac
  8338. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8339. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8340. * m4/libz.m4
  8341. * src/Decoder.h
  8342. * src/DownloadCommand.cc
  8343. * src/DownloadCommand.h
  8344. * src/Exception.h
  8345. * src/GZipDecoder.cc
  8346. * src/GZipDecoder.h
  8347. * src/HttpHeader.cc
  8348. * src/HttpHeader.h
  8349. * src/HttpRequest.cc
  8350. * src/HttpRequest.h
  8351. * src/HttpResponse.cc
  8352. * src/HttpResponse.h
  8353. * src/HttpResponseCommand.cc
  8354. * src/Makefile.am
  8355. * test/GZipDecoderTest.cc
  8356. * test/HttpRequestTest.cc
  8357. * test/HttpResponseTest.cc
  8358. * test/Makefile.am
  8359. * test/Makefile.in
  8360. * test/gzip_decode_test.gz
  8361. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8362. Clarified usage of -j option.
  8363. * src/usage_text.h
  8364. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8365. Disabled getting size from the response of RETR.
  8366. If SIZE command failed, then disable resuming and segmented downloading.
  8367. * src/FtpConnection.cc
  8368. * src/FtpConnection.h
  8369. * src/FtpNegotiationCommand.cc
  8370. * src/FtpNegotiationCommand.h
  8371. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8372. Use digits to find first byte of file size, which makes the intention
  8373. of the code clearer.
  8374. * src/FtpConnection.cc
  8375. Don't call validateTotalLength() when size is 0.
  8376. * src/FtpNegotiationCommand.cc
  8377. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. Updated po files.
  8379. * po/aria2c.pot
  8380. * po/*.gmo
  8381. * po/*.po
  8382. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8383. Clarified usage text for --split option.
  8384. * src/usage_text.h
  8385. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. Bump up version number to 0.15.0dev. "dev" means "development"
  8387. version, which means I started the development of the next release!
  8388. * src/configure.ac
  8389. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8390. If FTP server returns negative response with REST raw command and
  8391. requested range is not 0, throw exception. If requested range is 0,
  8392. continue download a file from 0 byte.
  8393. * src/FtpNegotiationCommand.cc
  8394. * src/FtpNegotiationCommand.h
  8395. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Supported FTP server which don't recognize SIZE raw command.
  8397. If SIZE raw command is failed, aria2 will try to get file size
  8398. from the response of RETR raw command. If both attempts are failed,
  8399. then resuming and segmented downloading are disabled.
  8400. * src/FtpConnection.cc
  8401. * src/FtpConnection.h
  8402. * src/FtpNegotiationCommand.cc
  8403. * src/FtpNegotiationCommand.h
  8404. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8405. * Release 0.14.0+1
  8406. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8407. Bump up version number to 0.14.0+1
  8408. * src/configure.ac
  8409. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8410. Fixed the code that refers static member variable from non-static
  8411. context.
  8412. * src/DefaultPeerStorage.cc
  8413. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8414. * Release 0.14.0
  8415. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8416. Added build test script
  8417. * build_test.sh
  8418. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8419. Updated ja.po
  8420. * src/ja.po
  8421. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. Bump up version number to 0.14.0
  8423. * src/configure.ac
  8424. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8425. Updated ja.po and fr.po. Great thanks for french translators and
  8426. Sebastien WILLEMIJNS.
  8427. * po/fr.po
  8428. * po/ja.po
  8429. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8430. Added configure option to enable/disable epoll support.
  8431. * configure.ac
  8432. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. Updated man page.
  8434. * doc/aria2c.1.txt
  8435. * doc/aria2c.1
  8436. * doc/aria2c.1.html
  8437. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8438. Added missing default value '5' to the usage of --split option.
  8439. * src/HelpItemFactory.cc
  8440. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8441. Filled up pieces based on the number of missing blocks, rather than
  8442. simplay the number of piece * block length.
  8443. * src/BtRequestFactory.h
  8444. * src/DefaultBtInteractive.cc
  8445. * src/DefaultBtInteractive.h
  8446. * src/DefaultBtRequestFactory.cc
  8447. * src/DefaultBtRequestFactory.h
  8448. * src/Piece.cc
  8449. * src/Piece.h
  8450. * test/BitfieldManTest.cc
  8451. * test/DefaultBtRequestFactoryTest.cc
  8452. * test/MockBtRequestFactory.h
  8453. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Made _epEvents a member variable.
  8455. * src/DownloadEngine.cc
  8456. * src/DownloadEngine.h
  8457. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8458. Cancel download if http redirect is bounded more than 20 times.
  8459. * src/AbstractCommand.cc
  8460. * src/HttpSkipResponseCommand.cc
  8461. * src/Request.cc
  8462. * src/Request.h
  8463. * test/RequestTest.cc
  8464. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8465. Fixed unhandled exception(removed keyword `new').
  8466. * src/SocketCore.cc (initEPOLL)
  8467. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8468. Removed visit(const MetaEntry*)
  8469. * src/MetaEntryVisitor.h:
  8470. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8471. and made them virtual.
  8472. * src/BencodeVisitor.h
  8473. * src/BencodeVisitor.cc
  8474. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Updated po files.
  8476. * po/aria2c.pot
  8477. * po/*.po
  8478. * po/*.gmo
  8479. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8480. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8481. the number of socket to watch out.
  8482. * src/PeerInteractionCommand.cc
  8483. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8484. When there is not enough space in disk when writing a chunk of data,
  8485. aria2 now prints the message to the console to warn user and aborts
  8486. its download. Not all downloads are canceled because some downloads
  8487. may use another disk or partition. BUG#1640332
  8488. * src/AbstractDiskWriter.cc
  8489. * src/PeerAbstractCommand.cc
  8490. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8491. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8492. setHaltRequested(true) to cancel download.
  8493. * src/PeerInteractionCommand.h
  8494. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8496. socket from int to sock_t as sockets are unsigned in Windows.
  8497. For AsyncNameResolver, DownloadEngine, I did additional modification
  8498. for the portion of the code changed according to epoll support.
  8499. I defined sock_t in a2netcompat.h to use sock_t without including
  8500. SocketCore.h.
  8501. * src/AsyncNameResolver.cc
  8502. * src/AsyncNameResolver.h
  8503. * src/DownloadEngine.cc
  8504. * src/DownloadEngine.h
  8505. * src/SocketCore.cc
  8506. * src/SocketCore.h
  8507. * src/a2netcompat.h
  8508. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8509. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8510. changes in the patch were applied.
  8511. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8512. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8513. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8514. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8516. a2io.h and common.h were modified.
  8517. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8518. MinGW.
  8519. * src/common.h: Changed off_t to 64 bit in MinGW.
  8520. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8521. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8522. only a2netcompat.h is modified.
  8523. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8524. directives.
  8525. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8527. only gai_strerror.h is modified.
  8528. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8529. winsock errors in MinGW.
  8530. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8531. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8532. follow sources are applied.
  8533. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8534. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8535. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8536. I included locale.h from Platform.cc.
  8537. * src/main.cc: Moved common setup/teardown code to Platform class.
  8538. * test/AllTest.cc: Use Platform class.
  8539. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8540. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8541. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8542. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8543. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8544. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8545. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8546. aria2-0.13.2+1-mingw-2.patch.
  8547. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8548. systems which don't have termious.h. I moved the directive inside of
  8549. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8550. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8551. anyway.
  8552. * src/asctime_r.h
  8553. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8554. I added 2nd argument to the prototype declaration.
  8555. * src/StringFormat.cc: Get rid of vasprintf.
  8556. * src/getaddrinfo.h: Fixed constants.
  8557. * configure.ac: Added the check for asctime_r function.
  8558. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8559. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8560. Added writable test for Socket when the sending message is in progress.
  8561. Usually the sending message is piece message. Without wriable check,
  8562. upload latency is dropped to more than 1sec.
  8563. * src/PeerInteractionCommand.cc
  8564. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8565. Create only requested files and files which shares a piece with
  8566. requested file in multi-torrent downloads. Directory structures are
  8567. also created in the same rule.
  8568. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8569. DiskWriterEntry as in the previous implementation.
  8570. * src/MultiDiskWriter.cc
  8571. * src/MultiFileAllocationIterator.cc
  8572. * src/MultiFileAllocationIterator.h
  8573. * test/MultiFileAllocationIteratorTest.cc
  8574. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8575. Commented out -lprofiler
  8576. * src/Makefile.am
  8577. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Bump up version number to 0.14.0b.
  8579. * src/configure.ac
  8580. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8581. Actively establish connection to peers in seeding, when peer cache
  8582. is not full and max upload speed limit is not reached.
  8583. * src/ActivePeerConnectionCommand.cc
  8584. * src/ActivePeerConnectionCommand.h
  8585. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8586. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8587. to make room more fleshy, recently found peers.
  8588. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8589. it.
  8590. * src/DefaultPeerStorage.cc
  8591. * test/DefaultPeerStorageTest.cc
  8592. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8593. Returns cached data only when the previous receiveHandshake() is called
  8594. with peek = true.
  8595. * src/PeerConnection.cc (receiveHandshake)
  8596. * src/PeerConnection.h (receiveHandshake)
  8597. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8598. Changed default value of -s option from 1 to 5.
  8599. Also max value of -s option is changed from 5 to 16.
  8600. * src/HelpItemFactory.cc
  8601. * src/OptionHandlerFactory.cc
  8602. * src/option_processing.cc
  8603. * src/usage_text.h
  8604. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Changed -s options behavior. Now it means the number of connections
  8606. made simultaneously in each http/ftp download.
  8607. If 1 URL is specified, the behavior is the same with old implementation.
  8608. If -s N is given and more than N URLs are specified, first N URLs are
  8609. used and remaining URLs are used for backup. If less than N URLs are
  8610. specified, some of URLs are used more than once so that totally N
  8611. connections are made simultaneously.
  8612. * src/main.cc
  8613. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8614. Included missing iosfwd or ostream header.
  8615. * src/RequestGroupMan.cc
  8616. * src/TaggedItem.cc
  8617. * src/TaggedItem.h
  8618. * src/Util.cc
  8619. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8620. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8621. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8622. * src/HttpConnection.cc: Included missing sstream.
  8623. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8624. Added --bt-max-open-files option.
  8625. * src/DefaultPieceStorage.cc
  8626. * src/HelpItemFactory.cc
  8627. * src/MultiDiskAdaptor.cc
  8628. * src/MultiDiskAdaptor.h
  8629. * src/OptionHandlerFactory.cc
  8630. * src/option_processing.cc
  8631. * src/prefs.cc
  8632. * src/prefs.h
  8633. * src/usage_text.h
  8634. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8635. Fixed the bug that aria2 aborts when a path to a directory is given
  8636. in command-line.
  8637. * src/ProtocolDetector.cc
  8638. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8639. Limited the number files opened in each BitTorrent download. The default
  8640. value is 100. The option to change this value will be added.
  8641. * src/MultiDiskAdaptor.cc
  8642. * src/MultiDiskAdaptor.h
  8643. * src/MultiFileAllocationIterator.cc
  8644. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. Fixed the bug that HTTP downloads don't start with old libraries.
  8646. * src/HttpHeaderProcessor.cc
  8647. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8648. Use empty() instead of size() > 0.
  8649. * src/HttpConnection.cc
  8650. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8651. Drop connection if the incoming peer ID is the same with localhost's
  8652. one. The previous implementation drops connection when incoming peer's
  8653. IP address is the same with localhost's one.
  8654. * src/PeerListenCommand.cc
  8655. * src/DefaultBtInteractive.cc
  8656. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. Returns cached data without checking whether socket is readable
  8658. if the cache is available.
  8659. * src/PeerConnection.cc (receiveHandshake)
  8660. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. Included stdint.h
  8662. * src/common.h
  8663. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. Removed duplicate HAVE_GETTIMEOFDAY
  8665. * src/Makefile.am
  8666. * src/Makefile.in
  8667. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Use interval as a minInterval when minInterval is not supplied.
  8669. * src/DefaultBtAnnounce.cc
  8670. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8671. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8672. attempt is failed, then 2nd attempt get kicked out more quickly.
  8673. And it is now static const member of DefaultBtAnnounce.
  8674. * src/DefaultBtAnnounce.h
  8675. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8676. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8677. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8678. * src/ActivePeerConnectionCommand.cc
  8679. * src/BtConstants.h
  8680. * src/BtRuntime.h
  8681. * src/DHTGetPeersCommand.cc
  8682. * src/DefaultBtAnnounce.cc
  8683. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8684. BtRuntime::MAX_PEERS.
  8685. * src/DefaultPeerStorage.h
  8686. * src/InitiatorMSEHandshakeCommand.cc
  8687. * src/PeerInitiateConnectionCommand.cc
  8688. * src/PeerInteractionCommand.cc
  8689. * src/PeerReceiveHandshakeCommand.cc
  8690. * src/TrackerWatcherCommand.cc
  8691. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8692. Always Connect to _numNewConnection
  8693. * src/ActivePeerConnectionCommand.cc
  8694. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8695. Made `begin' unsigned int.
  8696. * src/GrowSegment.h
  8697. * src/Piece.cc
  8698. * src/Piece.h
  8699. * src/PiecedSegment.cc
  8700. * src/PiecedSegment.h
  8701. * src/Segment.h
  8702. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8703. Calculate piece hash when data is arrived if the data is arrived in
  8704. order. This removes additional read operation for hash calculation.
  8705. If the data is arrived in out of order, the hash is calucated when the
  8706. piece is completed. This is the same behavior as the old implementation.
  8707. * src/BtPieceMessage.cc
  8708. * src/DefaultBtProgressInfoFile.cc
  8709. * src/DefaultPieceStorage.cc
  8710. * src/DownloadCommand.cc
  8711. * src/DownloadCommand.h
  8712. * src/DownloadEngine.cc
  8713. * src/GrowSegment.cc
  8714. * src/GrowSegment.h
  8715. * src/Piece.cc
  8716. * src/Piece.h
  8717. * src/PiecedSegment.cc
  8718. * src/PiecedSegment.h
  8719. * src/Segment.h
  8720. * test/PieceTest.cc
  8721. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Try to keep the ordering of outgoing piece message.
  8723. * src/DefaultBtMessageDispatcher.cc
  8724. (DefaultBtMessageDispatcher::sendMessages)
  8725. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8726. Fixed busy loop when error/hup epoll events occur.
  8727. * src/AbstractCommand.cc
  8728. * src/PeerAbstractCommand.cc
  8729. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8730. Added --bt-request-peer-speed-limit option, which was a constant
  8731. SLOW_SPEED_THRESHOLD.
  8732. * src/ActivePeerConnectionCommand.cc
  8733. * src/ActivePeerConnectionCommand.h
  8734. * src/BtConstants.h
  8735. * src/HelpItemFactory.cc
  8736. * src/OptionHandlerFactory.cc
  8737. * src/PeerReceiveHandshakeCommand.cc
  8738. * src/option_processing.cc
  8739. * src/prefs.cc
  8740. * src/prefs.h
  8741. * src/usage_text.h
  8742. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8743. Removed repeated call of getTopDirPath(). Instead, call it once and
  8744. cache the result.
  8745. * src/MultiDiskAdaptor.cc
  8746. * src/MultiDiskAdaptor.h
  8747. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8748. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Fixed compile error on debian etch.
  8750. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8751. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8752. it is undefined.
  8753. * src/Util.cc (ULLONG_MAX)
  8754. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8755. Added epoll support. Use epoll if it is available. If not, use select.
  8756. When async dns is enabled in compile time, epoll support is enabled
  8757. only when aria2 is built with c-ares. This condition statement is
  8758. defined in a2io.h.
  8759. Currently aria2 supports both c-ares and ares, but ares is maintained
  8760. for quite a while and debian already has c-ares package, ares support
  8761. will be dropped in the future version.
  8762. * configure.ac
  8763. * src/AbstractCommand.cc
  8764. * src/AsyncNameResolver.cc
  8765. * src/AsyncNameResolver.h
  8766. * src/Command.cc
  8767. * src/Command.h
  8768. * src/DownloadEngine.cc
  8769. * src/DownloadEngine.h
  8770. * src/PeerAbstractCommand.cc
  8771. * src/SocketCore.cc
  8772. * src/SocketCore.h
  8773. * src/a2io.h
  8774. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8775. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8776. directive.
  8777. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8778. Do not do write operation to /dev/null file.
  8779. * src/LogFactory.cc
  8780. * src/SimpleLogger.cc
  8781. Replaced vasprintf with vsnprintf
  8782. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8783. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8784. * src/BtRequestMessage.cc
  8785. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8786. for segmentation fault caused by previous commit.
  8787. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. Reduced the usage of gettimeofday().
  8789. * src/DefaultBtMessageDispatcher.cc
  8790. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8791. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8792. * src/RequestSlot.cc
  8793. * src/RequestSlot.h
  8794. (RequestSlot::isTimeout)
  8795. Made RequestSlot have a reference to Piece object to avoid find
  8796. Piece repeatedly.
  8797. * src/DefaultBtMessageDispatcher.cc
  8798. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8799. * src/RequestSlot.cc
  8800. * src/RequestSlot.h
  8801. (RequestSlot::getPiece)
  8802. * test/DefaultBtMessageDispatcherTest.cc
  8803. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8804. * src/TimeA2.cc
  8805. * src/TimeA2.h
  8806. (Time::difference): New function.
  8807. (Time::elapsed): Done optimization.
  8808. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8809. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  8810. directive.
  8811. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8812. * src/option_processing.cc: Added missing `defined' keyword to #if
  8813. directive.
  8814. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Bump up version number to 0.13.2+1
  8816. * src/configure.ac
  8817. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8818. Refactored broken outstanding piece handling.
  8819. * src/DefaultPieceStorage.cc
  8820. * src/DefaultPieceStorage.h
  8821. * src/Piece.cc
  8822. * src/Piece.h
  8823. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8824. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  8825. name collision of static variable and predefined macro.
  8826. * src/BtContext.cc
  8827. * src/BtContext.h
  8828. * src/CookieBoxFactory.cc
  8829. * src/CookieBoxFactory.h
  8830. * src/CookieParser.cc
  8831. * src/CookieParser.h
  8832. * src/DefaultBtContext.cc
  8833. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8834. * src/RequestGroup.cc
  8835. (RequestGroup::createInitialCommand): Use empty() instead of size().
  8836. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8837. * Release 0.13.2
  8838. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8839. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  8840. * po/fr.po
  8841. * po/ja.po
  8842. * po/aria2c.pot
  8843. * po/*.po
  8844. * po/*.gmo
  8845. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8846. Bump up version number to 0.13.2
  8847. * src/configure.ac
  8848. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8849. Refactord.
  8850. * src/RequestGroupMan.cc
  8851. (removeStoppedGroup)
  8852. (fillRequestGroupFromReserver)
  8853. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. Fixed compile error on Ubuntu.
  8855. * src/BtPieceMessage.cc
  8856. * src/MessageDigestHelper.cc
  8857. * src/Util.cc
  8858. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8859. Fixed compile error when configured with --disable-bittorrent
  8860. * test/DownloadHandlerFactoryTest.cc
  8861. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. Done make update-po
  8863. * po/aria2c.pot
  8864. * po/*.po
  8865. * po/*.gmo
  8866. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. Bump up version number to 0.13.2rc.
  8868. * src/configure.ac
  8869. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Made option name bold. Updated SYNOPSIS to make it more readable.
  8871. * doc/aria2c.1.txt
  8872. * doc/aria2c.1
  8873. * doc/aria2c.1.html
  8874. * src/version_usage.cc
  8875. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8876. Refactored. Use std::string instead of size and char*.
  8877. * Data.cc
  8878. * Data.h
  8879. * test/Data.cc
  8880. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8881. Added trimSelf(). Rewritten trim() to use trimSelf().
  8882. * Util.cc
  8883. * Util.h
  8884. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8885. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8886. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8887. Fixed compile error when configured with --disable-metalink.
  8888. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8889. * test/FeatureConfigTest.cc
  8890. * test/DownloadHandlerFactoryTest.cc
  8891. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8892. Fixed compile error when configured with --without-gnutls
  8893. --without-openssl
  8894. * src/main.cc
  8895. * test/DefaultBtProgressInfoFileTest.cc
  8896. * test/SegmentManTest.cc
  8897. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. Fixed compile error with OpenSSL.
  8899. * src/IteratableChunkChecksumValidator.cc
  8900. * src/LibsslDHKeyExchange.h
  8901. * src/MessageDigestHelper.cc
  8902. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8903. Revert the default value of --max-concurrent-downloads to 5.
  8904. Revert the default value of --metalink-servers to 5.
  8905. Man pages was also updated.
  8906. * src/option_processing.cc
  8907. * doc/aria2c.1.txt
  8908. * doc/aria2c.1.html
  8909. * doc/aria2c.1
  8910. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8911. Returns const reference:
  8912. DownloadContext::getPieceHash, DownloadContext::getName,
  8913. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8914. BtContext::getInfoHashAsString,
  8915. * src/BtContext.h
  8916. * src/DefaultBtContext.cc
  8917. * src/DefaultBtContext.h
  8918. * src/DownloadContext.h
  8919. * src/SingleFileDownloadContext.h
  8920. * test/MockBtContext.h
  8921. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8922. * src/RequestGroup.h (getDir): Removed.
  8923. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8924. Returns const reference. The internal urlencode function was optimized
  8925. a little bit.
  8926. * src/Request.cc
  8927. * src/Request.h
  8928. * src/HttpRequest.cc
  8929. * src/HttpRequest.h
  8930. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8931. Defined option name and possible values as std::string to reduce
  8932. temporary string object creation in runtime.
  8933. * src/HelpItemFactory.cc
  8934. * src/LogFactory.cc
  8935. * src/Option.cc
  8936. * src/OptionHandlerFactory.cc
  8937. * src/option_processing.cc
  8938. * src/prefs.cc
  8939. * src/prefs.h
  8940. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8941. Return const reference.
  8942. * src/DownloadHandlerConstants.cc
  8943. * src/DownloadHandlerConstants.h
  8944. (getMetalinkExtensions)
  8945. (getMetalinkContentTypes)
  8946. (getBtExtensions)
  8947. (getBtContentTypes)
  8948. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. * src/HttpHeader.cc (get): Rewritten.
  8950. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8951. Make HttpHeader::getFirst(...) return const reference.
  8952. * src/HttpHeader.cc
  8953. * src/HttpHeader.h
  8954. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8955. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8956. it with V_TRUE.
  8957. * src/DefaultPieceStorage.cc
  8958. * src/DownloadCommand.cc
  8959. * src/FtpNegotiationCommand.cc
  8960. * src/HttpRequest.cc
  8961. * src/InitiateConnectionCommand.cc
  8962. * src/RequestGroup.cc
  8963. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8964. Made Option::get(...) return const reference of std::string.
  8965. * src/Option.cc
  8966. * src/Option.h
  8967. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. Replaced std:copy with insert.
  8969. * src/DefaultBtMessageDispatcher.cc
  8970. * src/DefaultPieceStorage.cc
  8971. * src/DownloadEngineFactory.cc
  8972. * src/RequestGroup.cc
  8973. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8974. Included SocketCore.h to fix compiler warning.
  8975. * src/InitiateConnectionCommand.cc
  8976. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. Put piece selection strategy algorithm to RarestPieceSelector class,
  8978. Added a switch to choose whether randomized selection so that unit
  8979. tests emit same results in, possibly, win32.
  8980. * src/DefaultPieceStorage.cc
  8981. * src/DefaultPieceStorage.h
  8982. * src/RarestPieceSelector.cc
  8983. * src/RarestPieceSelector.h
  8984. * test/DefaultPieceStorageTest.cc
  8985. * test/RarestPieceSelectorTest.cc
  8986. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8987. Don't pool connection if HTTP proxy is enabled.
  8988. * src/FtpFinishDownloadCommand.cc
  8989. * src/FtpNegotiationCommand.cc
  8990. * src/HttpSkipResponseCommand.cc
  8991. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8993. * src/AbstractCommand.cc
  8994. * src/AbstractCommand.h
  8995. * src/ActivePeerConnectionCommand.cc
  8996. * src/FtpInitiateConnectionCommand.cc
  8997. * src/HttpInitiateConnectionCommand.cc
  8998. * src/InitiateConnectionCommandFactory.cc
  8999. * src/PeerAbstractCommand.cc
  9000. * src/PeerAbstractCommand.h
  9001. * src/PeerInitiateConnectionCommand.cc
  9002. * src/TrackerWatcherCommand.cc
  9003. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. Sort RequestSlot in ascending order and manipulate them using
  9005. lower_bound.
  9006. * src/DefaultBtMessageDispatcher.cc
  9007. * src/DefaultBtMessageDispatcher.h
  9008. (getMessageQueue): Added const qualifier.
  9009. (getRequestSlots): Added const qualifier.
  9010. (sendMessages): Use empty() instead of size().
  9011. (doCancelSendingPieceAction): Use HandleEvent object.
  9012. (doAbortOutstandingRequestAction): Rewritten.
  9013. (doChokedAction): Rewritten.
  9014. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9015. (isOutstandingRequest): Rewritten.
  9016. (getOutstandingRequest): Rewritten.
  9017. (removeOutstandingRequest): Rewritten.
  9018. (addOutstandingRequest): Rewritten.
  9019. * src/RequestSlot.cc
  9020. * src/RequestSlot.h
  9021. (operator=): Rewritten.
  9022. (operator!=): New function.
  9023. (operator<): New function.
  9024. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9025. * src/DefaultBtRequestFactory.cc
  9026. (doChokedAction): Rewritten.
  9027. (removeCompletedPiece): Rewritten.
  9028. (removeTargetPiece): Rewritten.
  9029. (createRequestMessages): Added the debug log.
  9030. (createRequestMessagesOnEndGame: Added the debug log.
  9031. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9032. Added the debug log message.
  9033. * src/BtPieceMessage.cc (doReceivedAction)
  9034. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9036. used lower_bound to process them rather than linear search.
  9037. * src/DHTPeerAnnounceStorage.cc
  9038. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9039. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9040. peer has at least one completed piece.
  9041. * src/Peer.cc
  9042. * src/Peer.h
  9043. * src/PeerInteractionCommand.cc
  9044. * src/PeerSessionResource.cc
  9045. * src/PeerSessionResource.h
  9046. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Removed unnecessary sorting
  9048. * src/DefaultPieceStorage (DefaultPieceStorage)
  9049. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9050. Rewritten the portion of the code that mangaes allowed fast indexes.
  9051. * src/PeerSessionResource.cc
  9052. * src/PeerSessionResource.h
  9053. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9054. Removed the invalid string including '\r' from ru.po and
  9055. did make update-po.
  9056. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9057. Added --log-level and --summary-interval to man page.
  9058. * doc/aria2c.1.txt
  9059. * doc/aria2c.1.html
  9060. * doc/aria2c.1
  9061. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Added --log-level option to specify log level. Log messages under
  9063. the specified level are not output. Default value is `debug'.
  9064. * src/HelpItemFactory.cc
  9065. * src/LogFactory.cc
  9066. * src/LogFactory.h
  9067. * src/Logger.h
  9068. * src/OptionHandlerFactory.cc
  9069. * src/SimpleLogger.cc
  9070. * src/SimpleLogger.h
  9071. * src/main.cc
  9072. * src/option_processing.cc
  9073. * src/prefs.h
  9074. * src/usage_text.h
  9075. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9076. Print download progress summary of all parallel downloads in specified
  9077. interval, default 60 secs. While aria2 could download several files
  9078. in parallel (see -j option), it displayed just first download progress,
  9079. and the other downloads are hidden from the users. This new feature
  9080. prints all downloads currently in-progress to the console so that you
  9081. can check the status of all downloads. The interval can be adjusted
  9082. by --summary-interval option.
  9083. The progress readout is now cut so that all fits in the one line of
  9084. console.
  9085. * src/ConsoleStatCalc.cc
  9086. * src/ConsoleStatCalc.h
  9087. * src/HelpItemFactory.cc
  9088. * src/OptionHandlerFactory.cc
  9089. * src/RequestGroupMan.cc
  9090. * src/RequestGroupMan.h
  9091. * src/main.cc
  9092. * src/option_processing.cc
  9093. * src/prefs.h
  9094. * src/usage_text.h
  9095. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9096. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9097. * src/DownloadEngine.cc (DownloadEngine)
  9098. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9099. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9100. defined.
  9101. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9102. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Use erase+lower_bound+insert instead of sort.
  9104. * src/DefaultPieceStorage.cc (addPieceStats)
  9105. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9107. * src/A2STR.cc
  9108. * src/A2STR.h
  9109. * src/OptionParser.cc (parse)
  9110. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9111. Defined fake filename `[tracker.announce]' as static const std::string.
  9112. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9113. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9114. Defined default filename `index.html' as static const std::string
  9115. * src/SingleFileDownloadContext.cc
  9116. * src/SingleFileDownloadContext.h
  9117. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9118. Defined "[MEMORY]" as static const std::string.
  9119. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9120. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. Defined control file's version number as static const std::string.
  9122. * src/DefaultBtProgressInfoFile.cc
  9123. * src/DefaultBtProgressInfoFile.h
  9124. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9125. Use Request::METHOD_GET
  9126. * src/RequestGroup.cc (createNextCommandWithAdj)
  9127. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9128. Defined "OK", "ERR", "INPR" as static const std::string
  9129. * src/RequestGroupMan.cc (showDownloadResults)
  9130. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. Defined default client used in extended handshake as static const
  9132. std::string
  9133. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9134. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9135. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9136. * src/HttpConnection.cc (eraseConfidentialInfo)
  9137. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9138. Defined default ftp user and password as static const std::string
  9139. * src/AuthConfigFactory.cc
  9140. * src/AuthConfigFactory.h
  9141. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9142. Defined strings used in netrc as static const std::string
  9143. * src/Netrc.cc
  9144. * src/Netrc.h
  9145. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Defined HTTP status as static const std::string
  9147. * src/AbstractProxyResponseCommand.cc
  9148. * src/HttpHeader.cc
  9149. * src/HttpHeader.h
  9150. * src/HttpResponse.cc
  9151. * src/HttpResponseCommand.cc
  9152. * src/HttpSkipResponseCommand.cc
  9153. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. Defined "\r\n", "A", "I" as static const std::string
  9155. * src/A2STR.cc
  9156. * src/A2STR.h
  9157. * src/FtpConnection.cc
  9158. * src/FtpConnection.h
  9159. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9160. Added COLON_C(".") and used it in Request::parseUrl()
  9161. * src/A2STR.cc
  9162. * src/A2STR.h
  9163. * src/Request.cc (parseUrl)
  9164. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Changed the type of padName from `const std::string&' to `const char*'.
  9166. * src/MSEHandshake.cc (verifyPadLength)
  9167. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9168. Defined "sha1" as static const std::string.
  9169. * src/MetalinkParserController.cc
  9170. * src/MetalinkParserController.h
  9171. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9172. Defined message digest algorithm name as static const std::string
  9173. * src/DHTTokenTracker.cc
  9174. * src/DHTUtil.cc
  9175. * src/DefaultBtContext.cc
  9176. * src/MSEHandshake.cc
  9177. * src/MessageDigestHelper.cc
  9178. * src/Peer.cc
  9179. * src/messageDigest.cc
  9180. * src/messageDigest.h
  9181. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. Made string literals used in SAX parser static const std::string.
  9183. * src/FileMetalinkParserState.cc
  9184. * src/FileMetalinkParserState.h
  9185. * src/FilesMetalinkParserState.cc
  9186. * src/FilesMetalinkParserState.h
  9187. * src/InitialMetalinkParserState.cc
  9188. * src/InitialMetalinkParserState.h
  9189. * src/MetalinkMetalinkParserState.cc
  9190. * src/MetalinkMetalinkParserState.h
  9191. * src/PiecesMetalinkParserState.cc
  9192. * src/PiecesMetalinkParserState.h
  9193. * src/ResourcesMetalinkParserState.cc
  9194. * src/ResourcesMetalinkParserState.h
  9195. * src/VerificationMetalinkParserState.cc
  9196. * src/VerificationMetalinkParserState.h
  9197. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9198. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9199. * src/A2STR.cc
  9200. * src/A2STR.h
  9201. * src/File.cc
  9202. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. Defined static const std::string IP("ip"), PORT("port") and use them
  9204. instead of string literals.
  9205. * src/DefaultPeerListProcessor.cc
  9206. * src/DefaultPeerListProcessor.h
  9207. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9208. Made string literals for torrent file processing static const
  9209. std::string.
  9210. * src/BtContext.cc
  9211. * src/BtContext.h
  9212. * src/DefaultBtContext.cc
  9213. * src/DefaultBtContext.h
  9214. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. Made string literal for tracker response static const std::string
  9216. * src/BtAnnounce.cc
  9217. * src/BtAnnounce.h
  9218. * src/DefaultBtAnnounce.cc
  9219. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Use DHTMessage::T instead of "t".
  9221. * src/DHTMessageTracker.cc (messageArrived)
  9222. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9223. Made keyName static const. Made trimmed charset static const
  9224. std::string.
  9225. * src/Util.cc (getContentDispositionFilename)
  9226. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Made USER_AGENT const. Made "/" static const std::string.
  9228. * src/A2STR.cc
  9229. * src/A2STR.h
  9230. * src/HttpRequest.cc
  9231. * src/HttpRequest.h
  9232. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9233. Made string listeral to static const std::string:
  9234. "Content-Range", "Content-Length"
  9235. * src/HttpHeader.cc
  9236. * src/HttpHeader.h
  9237. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9238. Made string listeral to static const std::string.
  9239. * src/HttpConnection.cc
  9240. * src/HttpHeader.cc
  9241. * src/HttpHeader.h
  9242. * src/HttpResponse.cc
  9243. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9244. Made string listeral to static const std::string.
  9245. * src/A2STR.cc
  9246. * src/A2STR.h
  9247. * src/SimpleLogger.cc
  9248. * src/SimpleLogger.h
  9249. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. Made string literal to static const std::string.
  9251. Rewritten CookieParser::setField.
  9252. * src/A2STR.cc
  9253. * src/A2STR.h
  9254. * src/CookieBoxFactory.cc
  9255. * src/CookieBoxFactory.h
  9256. * src/CookieParser.cc
  9257. * src/CookieParser.h
  9258. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9259. Made string literal to static const std::string
  9260. * src/DHTAbstractMessage.cc
  9261. * src/DHTAnnouncePeerMessage.cc
  9262. * src/DHTAnnouncePeerMessage.h
  9263. * src/DHTAnnouncePeerReplyMessage.cc
  9264. * src/DHTAnnouncePeerReplyMessage.h
  9265. * src/DHTFindNodeMessage.cc
  9266. * src/DHTFindNodeMessage.h
  9267. * src/DHTFindNodeReplyMessage.cc
  9268. * src/DHTFindNodeReplyMessage.h
  9269. * src/DHTGetPeersMessage.cc
  9270. * src/DHTGetPeersMessage.h
  9271. * src/DHTGetPeersReplyMessage.cc
  9272. * src/DHTGetPeersReplyMessage.h
  9273. * src/DHTMessage.cc
  9274. * src/DHTMessage.h
  9275. * src/DHTMessageFactoryImpl.cc
  9276. * src/DHTMessageReceiver.cc
  9277. * src/DHTPingMessage.cc
  9278. * src/DHTPingMessage.h
  9279. * src/DHTPingReplyMessage.cc
  9280. * src/DHTPingReplyMessage.h
  9281. * src/DHTQueryMessage.cc
  9282. * src/DHTQueryMessage.h
  9283. * src/DHTResponseMessage.cc
  9284. * src/DHTResponseMessage.h
  9285. * src/DHTUnknownMessage.cc
  9286. * src/DHTUnknownMessage.h
  9287. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9288. Made string literal to static const std::string
  9289. * src/BtChokeMessage.cc (toString)
  9290. * src/BtHaveAllMessage.cc (toString)
  9291. * src/BtHaveNoneMessage.cc (toString)
  9292. * src/BtInterestedMessage.cc (toString)
  9293. * src/BtNotInterestedMessage.cc (toString)
  9294. * src/BtUnchokeMessage.cc (toString)
  9295. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Replaced "" with static const variable A2STR::NIL.
  9297. Replaced string comparison against "" with std::string::empty().
  9298. Added PROTO_* to Request class and use them as a protocol string
  9299. constant.
  9300. Made "started", "stopped", "completed" static const variable in
  9301. AnnounceList class.
  9302. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9303. Updated translations. Great thanks to translators.
  9304. * po/ca.po
  9305. * po/de.po
  9306. * po/fr.po
  9307. * po/it.po
  9308. * po/ja.po
  9309. * po/ru.po
  9310. * po/zh_CN.po
  9311. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9312. Updated man page; categorized options and fixed typo.
  9313. * doc/aria2c.1.txt
  9314. * doc/aria2c.1.html
  9315. * doc/aria2c.1
  9316. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9317. Removed const ref
  9318. * src/MetalinkEntry.cc (AddProtocolPreference)
  9319. * src/RequestGroup.cc (FindServerHostByHostname)
  9320. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9321. Rewritten Accept-Features handling.
  9322. * src/HttpRequestCommand.cc (createHttpRequest)
  9323. * src/a2functional.h
  9324. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9325. Changed method signature:
  9326. DHTAbstractNodeLookupTask::toEntries
  9327. * src/DHTAbstractNodeLookupTask.cc
  9328. * src/DHTAbstractNodeLookupTask.h
  9329. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9330. Changed method signature:
  9331. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9332. * src/BtContext.h
  9333. * src/DefaultBtContext.cc
  9334. * src/DefaultBtContext.h
  9335. * src/DefaultBtInteractive.cc
  9336. * test/DefaultBtContextTest.cc
  9337. * test/MockBtContext.h
  9338. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Changed method signature:
  9340. MultiFileAllocationIterator::makeDiskWriterEntries
  9341. * src/MultiFileAllocationIterator.cc
  9342. * src/MultiFileAllocationIterator.h
  9343. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Changed method sinature:
  9345. MetalinkEntry::toFileEntry,
  9346. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9347. Metalinker::queryEntry
  9348. * src/Metalink2RequestGroup.cc
  9349. * src/MetalinkEntry.cc
  9350. * src/MetalinkEntry.h
  9351. * src/MetalinkHelper.cc
  9352. * src/MetalinkHelper.h
  9353. * src/Metalinker.cc
  9354. * src/Metalinker.h
  9355. * src/main.cc
  9356. * test/MetalinkHelperTest.cc
  9357. * test/MetalinkerTest.cc
  9358. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9359. Changed method sinature:
  9360. RequestGroup::getURIs
  9361. * src/RequestGroup.cc
  9362. * src/RequestGroup.h
  9363. * test/Metalink2RequestGroupTest.cc
  9364. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Changed method signature:
  9366. PeerListProcessor::extractPeer
  9367. * src/CompactPeerListProcessor.cc
  9368. * src/CompactPeerListProcessor.h
  9369. * src/DefaultBtAnnounce.cc
  9370. * src/DefaultPeerListProcessor.cc
  9371. * src/DefaultPeerListProcessor.h
  9372. * src/DelegatingPeerListProcessor.cc
  9373. * src/DelegatingPeerListProcessor.h
  9374. * src/PeerListProcessor.h
  9375. * src/UTPexExtensionMessage.cc
  9376. * test/DefaultPeerListProcessorTest.cc
  9377. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9378. Changed method signature:
  9379. BtRequestFactory::createRequestMessages,
  9380. BtRequestFactory::createRequestMessagesOnEndGame
  9381. * src/BtRequestFactory.h
  9382. * src/DefaultBtInteractive.cc
  9383. * src/DefaultBtRequestFactory.cc
  9384. * src/DefaultBtRequestFactory.h
  9385. * test/DefaultBtRequestFactoryTest.cc
  9386. * test/MockBtRequestFactory.h
  9387. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9388. Changed method signature:
  9389. PieceStorage::getInFlightPieces
  9390. * src/DefaultBtProgressInfoFile.cc
  9391. * src/DefaultPieceStorage.cc
  9392. * src/DefaultPieceStorage.h
  9393. * src/PieceStorage.h
  9394. * src/UnknownLengthPieceStorage.cc
  9395. * src/UnknownLengthPieceStorage.h
  9396. * test/DefaultBtProgressInfoFileTest.cc
  9397. * test/MockPieceStorage.h
  9398. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. Changed method signature:
  9400. PostDownloadHandler::getNextRequestGroups
  9401. Metalink2RequestGroup::generate
  9402. RequestGroup::postDownloadProcessing
  9403. * src/BtPostDownloadHandler.cc
  9404. * src/BtPostDownloadHandler.h
  9405. * src/Metalink2RequestGroup.cc
  9406. * src/Metalink2RequestGroup.h
  9407. * src/MetalinkPostDownloadHandler.cc
  9408. * src/MetalinkPostDownloadHandler.h
  9409. * src/PostDownloadHandler.h
  9410. * src/RequestGroup.cc
  9411. * src/RequestGroup.h
  9412. * src/RequestGroupMan.cc
  9413. * src/main.cc
  9414. * test/BtPostDownloadHandlerTest.cc
  9415. * test/Metalink2RequestGroupTest.cc
  9416. * test/MetalinkPostDownloadHandlerTest.cc
  9417. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9418. Rewritten AccRequestGroup
  9419. * src/main.cc
  9420. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9421. Rewritten.
  9422. * src/TaggedItem.cc (toTagString)
  9423. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9424. Rewritten Accept-Features handling.
  9425. * src/HttpRequestCommand.cc (createHttpRequest)
  9426. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9427. Rewritten accept types handling.
  9428. * HttpRequest.cc (createRequest)
  9429. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Rewritten
  9431. * src/FeatureConfig.cc (featureSummary)
  9432. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. Changed method signature:
  9434. PeerStorage::getActivePeers
  9435. * src/DHTPeerAnnounceEntry.cc
  9436. * src/DefaultPeerStorage.cc
  9437. * src/DefaultPeerStorage.h
  9438. * src/PeerStorage.h
  9439. * test/DefaultPeerStorageTest.cc
  9440. * test/MockPeerStorage.h
  9441. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9442. Changed method signature:
  9443. DHTPeerAnnounceStorage::getPeers,
  9444. DHTPeerAnnounceEntry::getPeers
  9445. * src/DHTGetPeersMessage.cc
  9446. * src/DHTPeerAnnounceEntry.cc
  9447. * src/DHTPeerAnnounceEntry.h
  9448. * src/DHTPeerAnnounceStorage.cc
  9449. * src/DHTPeerAnnounceStorage.h
  9450. * test/DHTAnnouncePeerMessageTest.cc
  9451. * test/DHTPeerAnnounceEntryTest.cc
  9452. * test/DHTPeerAnnounceStorageTest.cc
  9453. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Changed method signature:
  9455. NameResolver::resolve
  9456. * src/DHTEntryPointNameResolveCommand.cc
  9457. * src/InitiateConnectionCommand.cc
  9458. * src/NameResolver.cc
  9459. * src/NameResolver.h
  9460. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Changed method signature:
  9462. PieceStorage::getAdvertisedPieceIndexes
  9463. * src/DefaultBtInteractive.cc
  9464. * src/DefaultPieceStorage.cc
  9465. * src/DefaultPieceStorage.h
  9466. * src/PieceStorage.h
  9467. * src/UnknownLengthPieceStorage.h
  9468. * test/MockPieceStorage.h
  9469. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. Changed method signature:
  9471. SegmentMan::getInFlightSegment
  9472. * src/AbstractCommand.cc
  9473. * src/SegmentMan.cc
  9474. * src/SegmentMan.h
  9475. * test/SegmentManTest.cc
  9476. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9477. Changed method signature:
  9478. DHTAbstractNodeLookupTask::getNodesFromMessage
  9479. * src/DHTAbstractNodeLookupTask.cc
  9480. * src/DHTAbstractNodeLookupTask.h
  9481. * src/DHTNodeLookupTask.cc
  9482. * src/DHTNodeLookupTask.h
  9483. * src/DHTPeerLookupTask.cc
  9484. * src/DHTPeerLookupTask.h
  9485. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9487. * src/AbstractCommand.cc
  9488. * src/BtCheckIntegrityEntry.cc
  9489. * src/BtCheckIntegrityEntry.h
  9490. * src/BtFileAllocationEntry.cc
  9491. * src/BtFileAllocationEntry.h
  9492. * src/BtSetup.cc
  9493. * src/BtSetup.h
  9494. * src/CheckIntegrityCommand.cc
  9495. * src/CheckIntegrityEntry.h
  9496. * src/ChecksumCheckIntegrityEntry.cc
  9497. * src/ChecksumCheckIntegrityEntry.h
  9498. * src/DHTSetup.cc
  9499. * src/DHTSetup.h
  9500. * src/DownloadEngine.cc
  9501. * src/FileAllocationCommand.cc
  9502. * src/FileAllocationEntry.h
  9503. * src/RequestGroup.cc
  9504. * src/RequestGroup.h
  9505. * src/RequestGroupMan.cc
  9506. * src/RequestGroupMan.h
  9507. * src/StreamCheckIntegrityEntry.cc
  9508. * src/StreamCheckIntegrityEntry.h
  9509. * src/StreamFileAllocationEntry.cc
  9510. * src/StreamFileAllocationEntry.h
  9511. * src/TrackerWatcherCommand.cc
  9512. * src/a2functional.h
  9513. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9514. Changed method signature:
  9515. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9516. DHTBucket::getGoodNodes,
  9517. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9518. * src/BNode.cc
  9519. * src/BNode.h
  9520. * src/DHTAbstractNodeLookupTask.cc
  9521. * src/DHTAutoSaveCommand.cc
  9522. * src/DHTBucket.cc
  9523. * src/DHTBucket.h
  9524. * src/DHTBucketRefreshTask.cc
  9525. * src/DHTFindNodeMessage.cc
  9526. * src/DHTGetPeersMessage.cc
  9527. * src/DHTRoutingTable.cc
  9528. * src/DHTRoutingTable.h
  9529. * test/BNodeTest.cc
  9530. * test/DHTBucketTest.cc
  9531. * test/DHTRoutingTableTest.cc
  9532. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. In piece selection functions, Pass std::deque<...> by reference rather
  9534. than returning it.
  9535. * src/BitfieldMan.cc
  9536. * src/BitfieldMan.h
  9537. * src/DefaultBtRequestFactory.cc
  9538. * src/DefaultPieceStorage.cc
  9539. * src/Piece.cc
  9540. * src/Piece.h
  9541. * test/BitfieldManTest.cc
  9542. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9543. Implemented rarest piece first piece selection strategy.
  9544. * src/AbstractBtMessage.cc
  9545. * src/AbstractBtMessage.h
  9546. * src/BitfieldMan.cc
  9547. * src/BitfieldMan.h
  9548. * src/BtBitfieldMessage.cc
  9549. * src/BtHaveAllMessage.cc
  9550. * src/BtHaveMessage.cc
  9551. * src/DefaultPieceStorage.cc
  9552. * src/DefaultPieceStorage.h
  9553. * src/PeerInteractionCommand.cc
  9554. * src/PieceStorage.h
  9555. * src/UnknownLengthPieceStorage.h
  9556. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9557. Rewritten readData and writeData.
  9558. * src/MultiDiskAdaptor.cc
  9559. * src/MultiDiskAdaptor.h
  9560. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9561. Move \n out of the message "Usage: ...".
  9562. * src/version_usage.cc
  9563. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9564. Bump up version number to 0.13.2b.
  9565. * configure.ac
  9566. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9567. Added const qualifier to argument Exception& e.
  9568. * src/Logger.h
  9569. * src/SimpleLogger.cc
  9570. * src/SimpleLogger.h
  9571. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9572. Pool connection when CWD, SIZE command fails.
  9573. * src/FtpNegotiationCommand.cc
  9574. * src/FtpNegotiationCommand.h
  9575. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9577. * src/HttpResponseCommand.cc
  9578. * src/HttpSkipResponseCommand.cc
  9579. * src/HttpSkipResponseCommand.h
  9580. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9581. Pool connection when a server returns 4xx, 5xx responses.
  9582. * src/HttpNullDownloadCommand.cc
  9583. * src/HttpNullDownloadCommand.h
  9584. * src/HttpResponse.cc
  9585. * src/HttpResponse.h
  9586. * src/HttpResponseCommand.cc
  9587. * src/HttpResponseCommand.h
  9588. * test/HttpResponseTest.cc
  9589. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9590. Print usage when no URL is specifed or bad command-line option is
  9591. specified.
  9592. * src/HelpItemFactory.cc
  9593. * src/help_tags.h
  9594. * src/option_processing.cc
  9595. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Removed duplicate log message.
  9597. * src/AbstractCommand.cc (asyncResolveHostname)
  9598. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9599. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9600. Changed -j option's default value from 5 to 1.
  9601. Added new examples using protocol auto detection feature.
  9602. Removed -T, -M usage where it can be omitted.
  9603. * doc/aria2c.1.txt
  9604. * doc/aria2c.1.html
  9605. * doc/aria2c.1.txt
  9606. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Updated command-line usage text, so that it tells users that they
  9608. can specify any number of torrent files and metalink files in
  9609. command-line.
  9610. * src/version_usage.cc
  9611. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9612. Changed the default value of -j option to 1.
  9613. * src/HelpItemFactory.cc
  9614. * src/option_processing.cc
  9615. * src/usage_text.h
  9616. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9617. Added the ability to reuse connection in FTP and it is enabled by
  9618. default. It can be disabled by --ftp-reuse-connection=false option.
  9619. * src/Command.cc
  9620. * src/DownloadCommand.cc
  9621. * src/FtpDownloadCommand.cc
  9622. * src/FtpDownloadCommand.h
  9623. * src/FtpFinishDownloadCommand.cc
  9624. * src/FtpFinishDownloadCommand.h
  9625. * src/FtpInitiateConnectionCommand.cc
  9626. * src/FtpNegotiationCommand.cc
  9627. * src/FtpNegotiationCommand.h
  9628. * src/HelpItemFactory.cc
  9629. * src/Makefile.am
  9630. * src/Makefile.in
  9631. * src/OptionHandlerFactory.cc
  9632. * src/option_processing.cc
  9633. * src/prefs.h
  9634. * src/usage_text.h
  9635. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Call Command::transitStatus() before calling Command::execute(),
  9637. so that the status change made in execute() is not cleared.
  9638. * src/DownloadEngine.cc
  9639. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9640. Removed forward declaration of SocketCore class.
  9641. * src/HttpDownloadCommand.h
  9642. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9643. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9644. in InitiateConnectionCommandFactory. They should be set only when
  9645. the protocol is HTTP or HTTPS.
  9646. * src/InitiateConnectionCommandFactory.cc
  9647. * src/RequestGroup.cc
  9648. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. Fixed infinite loop in checksum checking.
  9650. * src/IteratableChecksumValidator.cc
  9651. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9652. Set _supportsPersistentConnection to true by default.
  9653. * src/Request.cc
  9654. * src/RequestGroup.cc
  9655. * test/HttpRequestTest.cc
  9656. * test/RequestTest.cc
  9657. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9658. Added timeout to socket pool. The default timeout is 15 seconds,
  9659. which is the same value Apache uses.
  9660. * src/DownloadEngine.cc
  9661. * src/DownloadEngine.h
  9662. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Fixed misuse of multimap::find()
  9664. * src/HttpHeader.cc
  9665. * test/HttpHeaderTest.cc
  9666. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9667. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9668. option.
  9669. The asynchronous DNS is not capable of IPv6 yet.
  9670. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9671. least for HTTP download.
  9672. * src/AbstractCommand.cc
  9673. * src/AbstractCommand.h
  9674. * src/AsyncNameResolver.cc
  9675. * src/AsyncNameResolver.h
  9676. * src/DHTEntryPointNameResolveCommand.cc
  9677. * src/DHTEntryPointNameResolveCommand.h
  9678. * src/DownloadEngine.cc
  9679. * src/DownloadEngine.h
  9680. * src/FtpInitiateConnectionCommand.cc
  9681. * src/FtpInitiateConnectionCommand.h
  9682. * src/HelpItemFactory.cc
  9683. * src/HttpInitiateConnectionCommand.cc
  9684. * src/HttpInitiateConnectionCommand.h
  9685. * src/InitiateConnectionCommand.cc
  9686. * src/InitiateConnectionCommand.h
  9687. * src/Makefile.am
  9688. * src/Makefile.in
  9689. * src/NameResolver.cc
  9690. * src/NameResolver.h
  9691. * src/OptionHandlerFactory.cc
  9692. * src/SocketCore.cc
  9693. * src/SocketCore.h
  9694. * src/Util.cc
  9695. * src/Util.h
  9696. * src/option_processing.cc
  9697. * src/prefs.h
  9698. * src/usage_text.h
  9699. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9700. Updated man page: --quiet, --header were added.
  9701. --metalink-servers and --enable-http-keep-alive option were updated.
  9702. * doc/aria2c.1
  9703. * doc/aria2c.1.html
  9704. * doc/aria2c.1.txt
  9705. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9706. Enable HTTP keep-alive by default.
  9707. * src/HelpItemFactory.cc
  9708. * src/option_processing.cc
  9709. * src/usage_text.h
  9710. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9711. Disable http keep-alive if the remote server is not HTTP/1.1.
  9712. * src/HttpConnection.cc
  9713. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9714. Receive content body of 302 response so that the connection can be
  9715. reused later when http keep-alive is enabled.
  9716. * src/HttpNullDownloadCommand.cc
  9717. * src/HttpNullDownloadCommand.h
  9718. * src/HttpResponseCommand.cc
  9719. * src/HttpResponseCommand.h
  9720. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. const SharedHandle<Request> -> const SharedHandle<Request>&
  9722. * src/FtpDowndloadCommand.cc
  9723. * src/FtpDowndloadCommand.h
  9724. * src/HttpDownloadCommand.cc
  9725. * src/HttpDownloadCommand.h
  9726. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9727. Fixed the bug that the control file(.aria2 file) is not renamed
  9728. according to tryAutoFileRenaming().
  9729. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9730. its control file exist, use them and continue download.
  9731. The old implementation didn't take into account of control file's
  9732. existence, so basically you couldn't continue download of renamed file.
  9733. * src/BtProgressInfoFile.h
  9734. * src/DefaultBtProgressInfoFile.cc
  9735. * src/DefaultBtProgressInfoFile.h
  9736. * src/NullProgressInfoFile.h
  9737. * src/RequestGroup.cc
  9738. * test/DefaultBtProgressInfoFileTest.cc
  9739. * test/MockBtProgressInfoFile.h
  9740. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9741. Change the default value of --metalink-servers option from `5' to `1'.
  9742. * src/HelpItemFactory.cc
  9743. * src/option_processing.cc
  9744. * src/usage_text.h
  9745. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9746. Reimplemented transparent metalink using Accept request header.
  9747. * src/HttpRequest.cc
  9748. * src/HttpRequest.h
  9749. * src/HttpRequestCommand.cc
  9750. * src/Metalink2RequestGroup.cc
  9751. * src/RequestGroup.cc
  9752. * src/RequestGroup.h
  9753. * test/HttpRequestTest.cc
  9754. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9755. Bump up version number to 0.13.2a
  9756. * configure.ac
  9757. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9758. Updated configure.ac using the result of autoscan.
  9759. * configure.ac
  9760. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9761. Fixed compilation error without gcrypt/openssl.
  9762. * src/DownloadCommand.cc
  9763. * src/DownloadCommand.h
  9764. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. Reorganized version information so that it can be displayed in a
  9766. standard terminal screen without scrolling.
  9767. Removed http, ftp from Configuration section, because they are always
  9768. enabled.
  9769. * src/FeatureConfig.cc
  9770. * src/FeatureConfig.h
  9771. * src/main.cc
  9772. * src/messageDigest.cc
  9773. * src/messageDigest.h
  9774. * src/version_usage.cc
  9775. * test/FeatureConfigTest.cc
  9776. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9777. Masked user ID in log.
  9778. * src/FtpConnection.cc (sendUser)
  9779. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9780. Removed query part from filename in HTTP download. The query part means
  9781. the substring after "?" in URL. Firefox seems do the same thing.
  9782. A query part is sometimes very long and not suitable to filename,
  9783. so I think it is better to remove it from filename.
  9784. * src/HttpRequest.cc
  9785. * src/HttpRequest.h
  9786. * src/Request.cc
  9787. * src/Request.h
  9788. * test/HttpRequestTest.cc
  9789. * test/RequestTest.cc
  9790. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9791. Rewritten Exception class. Throw exception object, not its pointer and
  9792. catch by reference, so that remove problematic delete operator for
  9793. catched exception.
  9794. * src/Exception.cc
  9795. * src/Exception.h
  9796. * test/ExceptionTest.cc
  9797. * src/*: All files throwing/catching exception.
  9798. * test/*: All files throwing/catching exception.
  9799. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9800. Now auto protocol detection is enabled without -Z option.
  9801. But there is a important difference between with/without -Z optoin.
  9802. For example, if you type:
  9803. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9804. then, aria2 interprets there are 3 request groups:
  9805. (1) http://host/file, http://mirror/file <-- multi-source download
  9806. (2) file1.torrent
  9807. (3) file2.metalink
  9808. On the other hand, if you invoke above command with -Z option, it is
  9809. interpreted as 4 request groups:
  9810. (1) http://host/file
  9811. (2) file1.torrent
  9812. (3) file2.metalink
  9813. (4) http://mirror/file
  9814. I think usually user don't mix multi-source URLs and torrent files, so
  9815. there is no big problem here.
  9816. * src/main.cc
  9817. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9818. Fixed the bug that causes segmentaion fault when reading XML containing
  9819. unescapsed character like '&'.
  9820. Also a modification was made which avoids adding unnecessary
  9821. characters stack and appending unused string.
  9822. * src/ExpatMetalinkProcessor.cc
  9823. * src/FileMetalinkParserState.h
  9824. * src/FilesMetalinkParserState.h
  9825. * src/FinMetalinkParserState.h
  9826. * src/HashMetalinkParserState.h
  9827. * src/InitialMetalinkParserState.h
  9828. * src/LanguageMetalinkParserState.h
  9829. * src/MetalinkMetalinkParserState.h
  9830. * src/MetalinkParserState.h
  9831. * src/MetalinkParserStateMachine.cc
  9832. * src/MetalinkParserStateMachine.h
  9833. * src/OSMetalinkParserState.h
  9834. * src/PieceHashMetalinkParserState.h
  9835. * src/PiecesMetalinkParserState.h
  9836. * src/ResourcesMetalinkParserState.h
  9837. * src/SizeMetalinkParserState.h
  9838. * src/SkipTagMetalinkParserState.h
  9839. * src/URLMetalinkParserState.h
  9840. * src/VerificationMetalinkParserState.h
  9841. * src/VersionMetalinkParserState.h
  9842. * src/XML2SAXMetalinkProcessor.cc
  9843. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9844. Added StringFormat class, which internally calls vasprintf.
  9845. operator<< is defined for this class, so it can be used with iostream
  9846. classes nicely. SimpleLogger and following functions are rewritten
  9847. using StringFormat class.
  9848. Besides, now Logger class's methods are non-const, many classes
  9849. that has a const Logger* as a member variable are modified to remove
  9850. const qualifier from the variable declaration.
  9851. * src/HelpItemFactory.cc
  9852. * src/Request.cc
  9853. * src/SimpleLogger.cc
  9854. * src/StringFormat.cc
  9855. * src/StringFormat.h
  9856. * src/Util.cc
  9857. * src/option_processing.cc
  9858. * src/version_usage.cc
  9859. * test/StringFormatTest.cc
  9860. * src/*.h: The classes that has const Logger* as a member variable.
  9861. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9862. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  9863. failed. Also fixed memory link when exception is thrown there.
  9864. * src/main.cc (AccRequestGroup)
  9865. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. Added build-in "Accept-Features" support. For now only "metalink" is
  9867. used in this header field.
  9868. This "metalink" value is removed from the list when connecting URLs
  9869. fed by metalink file to avoid loop in "transparent" metlaink.
  9870. * src/HttpRequest.cc
  9871. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9872. header is also held in this variable. Also renamed setUserHeaders as
  9873. addHeader and it was rewritten to add header not just to clear the old
  9874. value.
  9875. * src/HttpRequestCommand.cc
  9876. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9877. from "Accept-Features" list.
  9878. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9879. default.
  9880. * src/RequestGroup.h
  9881. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9882. * src/a2functional.h: Included <string> because Concat class depends on
  9883. it.
  9884. * test/HttpRequestTest.cc
  9885. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9886. Added comment
  9887. * src/RequestGroup.cc (createNextCommand)
  9888. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Capitalized METHOD_GET and METHOD_HEAD
  9890. * src/Request.cc
  9891. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. Added getDownloadResults() method
  9893. * src/RequestGroupMan.cc
  9894. * src/RequestGroupMan.h
  9895. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. Fixed the bug that aria2 exits when commands is empty() but
  9897. _routineCommands are not.
  9898. * src/DownloadEngine.cc
  9899. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9900. Use the default value pulled from Option object in HelpItemFactory.
  9901. except options whose defualt value is embedded in a usage text.
  9902. * src/HelpItemFactory.cc
  9903. * src/HelpItemFactory.h
  9904. * src/option_processing.cc
  9905. * src/version_usage.cc
  9906. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9907. Added --quiet option to make aria2 quiet (no console output).
  9908. --quiet option is tagged with ADVANCED.
  9909. * src/HelpItemFactory.cc
  9910. * src/LogFactory.cc
  9911. * src/LogFactory.h
  9912. * src/MultiUrlRequestInfo.cc
  9913. * src/MultiUrlRequestInfo.h
  9914. * src/NullStatCalc.h: New class. This class prints nothing.
  9915. * src/OptionHandlerFactory.cc
  9916. * src/main.cc
  9917. * src/option_processing.cc
  9918. * src/prefs.h
  9919. * src/usage_text.h
  9920. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9921. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9922. * src/HelpItemFactory.cc (createHelpItems):
  9923. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9924. Fixed compilation error in ExpatMetalinkProcessor.cc
  9925. * src/ExpatMetalinkProcessor.cc
  9926. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. Reuse socket if the origin server supports HTTP keep-alive and
  9928. --enable-http-keep-alive or --enable-http-pipelining is given.
  9929. The current implementation doesn't reuse the connections established
  9930. against proxy server.
  9931. * src/AbstractCommand.cc
  9932. * src/DownloadEngine.cc
  9933. * src/DownloadEngine.h
  9934. * src/HttpDownloadCommand.cc
  9935. * src/HttpInitiateConnectionCommand.cc
  9936. * src/HttpResponseCommand.cc
  9937. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9938. Rewritten HTTP keep-alive and pipelining routine.
  9939. * src/AbstractCommand.cc
  9940. * src/HttpConnection.cc
  9941. * src/HttpDownloadCommand.cc
  9942. * src/HttpRequest.cc
  9943. * src/HttpRequestCommand.cc
  9944. * src/HttpResponseCommand.cc
  9945. * src/Request.cc
  9946. * src/Request.h
  9947. * src/RequestGroup.cc
  9948. * test/HttpRequestTest.cc
  9949. * test/HttpResponseTest.cc
  9950. * test/RequestTest.cc
  9951. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9952. Added missing setUserHeaders call
  9953. * src/HttpRequestCommand.cc
  9954. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9955. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9956. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9957. waste of time because it is more likey false.
  9958. * src/FileAllocationDispatcherCommand.cc (execute)
  9959. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9960. Now HTTP status and version are a member variable of HttpHeader.
  9961. HTTP status is processed as a string, not integer.
  9962. * src/AbstractProxyResponseCommand.cc
  9963. * src/HttpConnection.cc
  9964. * src/HttpHeader.cc
  9965. * src/HttpHeader.h
  9966. * src/HttpHeaderProcessor.cc
  9967. * src/HttpHeaderProcessor.h
  9968. * src/HttpResponse.cc
  9969. * src/HttpResponse.h
  9970. * test/HttpHeaderProcessorTest.cc
  9971. * test/HttpResponseTest.cc
  9972. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9973. Added --header option. You can specify any number of additional HTTP headers
  9974. like:
  9975. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9976. Unlike other commad-line option, you can use --header option multiple times.
  9977. * src/HelpItemFactory.cc
  9978. * src/HttpRequest.{cc, h}
  9979. * src/HttpRequestCommand.cc
  9980. * src/OptionHandlerFactory.cc
  9981. * src/OptionHandlerImpl.h
  9982. * src/option_processing.cc
  9983. * src/prefs.h
  9984. * src/usage_text.h
  9985. * test/HttpRequestTest.cc (testUserHeaders)
  9986. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9987. Eliminates the time lag between sequential downloads and commands in
  9988. the same RequestGroup.
  9989. In old implementation, aria2 occasionally waits 1 seconds before
  9990. executing next command or RequestGroup.
  9991. This is really a waste of time, and new implementation eliminates
  9992. this unnecessary time lag.
  9993. * src/AbstractCommand.cc
  9994. * src/AutoSaveCommand.cc
  9995. * src/CheckIntegrityCommand.cc
  9996. * src/Command.{cc, h}
  9997. * src/DownloadEngine.{cc, h}
  9998. * src/DownloadEngineFactory.cc
  9999. * src/FileAllocationCommand.cc
  10000. * src/FileAllocationDispatcherCommand.cc
  10001. * src/FillRequestGroupCommand.cc
  10002. * src/FtpInitiateConnectionCommand.cc
  10003. * src/HaveEraseCommand.cc
  10004. * src/HttpInitiateConnectionCommand.cc
  10005. * src/HttpResponseCommand.cc
  10006. * src/RealtimeCommand.cc
  10007. * src/RequestGroup.cc
  10008. * src/RequestGroupMan.cc
  10009. * src/StreamFileAllocationEntry.cc
  10010. * src/TimeBasedCommand.{cc, h}
  10011. * src/TimedHaltCommand.cc
  10012. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10013. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10014. keyword explicit and SharedHandle's default constructor initializes
  10015. its internal obj to null, old implementation initializes it using
  10016. obj's default constructor.
  10017. To assign null, write SharedHandle<T> x(...); x.reset();
  10018. TODO: test/SharedHandleTest.cc needs more tests.
  10019. * src/SharedHandle.h
  10020. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10021. Fixed type in man page.
  10022. * doc/aria2c.1.txt
  10023. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10024. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10025. * src/SimpleLogger.{cc, h}
  10026. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10027. Implemented auto protocol detection.
  10028. Now you can do:
  10029. aria2c -Z http://host/file file1.torrent file2.metalink
  10030. (Note: -Z option is required for auto protcol detection.)
  10031. Then aria2c downloads 3 files simultaneously:
  10032. 1. http://host/file
  10033. 2. file1.torrent <-- read local torrent file
  10034. 3. file2.metalink <-- read local Metalink file.
  10035. Same thing goes with -i option. Assume your uris.txt contans:
  10036. http://host/file
  10037. file1.torrent
  10038. file2.metalink
  10039. Then you can do: aria2c -i uris.txt
  10040. (Note: -Z option is not needed if -i option is given.)
  10041. * src/main.cc
  10042. * src/ProtocolDetector.{cc, h}
  10043. * test/ProtocolDetectorTest.cc
  10044. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10045. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10046. installed
  10047. * src/ARC4Encryptor.h
  10048. * src/ARC4Decryptor.h
  10049. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10050. Renamed argument from 'errno' to 'err', since errno is confused with
  10051. errno defined in errno.h.
  10052. * src/LibgcryptARC4Decryptor.h
  10053. * src/LibgcryptARC4Context.h
  10054. * src/LibgcryptDHKeyExchange.h
  10055. * src/LibgcryptARC4Encryptor.h
  10056. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10057. Rewritten choking algorithm.
  10058. * src/PeerChokeCommand.{cc, h}
  10059. * src/BtInterestedMessage.cc
  10060. * src/PeerSessionResource.{cc, h}
  10061. * src/DefaultPeerStorage.{cc, h}
  10062. * src/BtNotInterestedMessage.cc
  10063. * src/DefaultBtMessageDispatcher.{cc, h}
  10064. * src/BtMessageDispatcher.h
  10065. * src/Peer.{cc, h}
  10066. * src/BtLeecherStateChoke.{cc, h}
  10067. * src/BtSetup.cc
  10068. * src/BtSeederStateChoke.{cc, h}
  10069. * src/PeerStorage.h
  10070. * test/MockPeerStorage.h
  10071. * test/MockBtMessageDispatcher.h
  10072. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. Fixed compilation error on x84-64 platform.
  10074. * src/AuthConfig.cc: Included ostream.
  10075. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10076. Rewritten getBasename() and getDirname(), without standard library
  10077. basename(), dirname().
  10078. * src/File.cc
  10079. * test/FileTest.cc
  10080. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10081. Added Simplified Chinese translation. Also updated the following
  10082. translations: Polish, Dutch, German. Great thanks to all translators.
  10083. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10084. Suppress content-range error when 'Content-Range' response header
  10085. doesn't contains bytes-unit specifier 'bytes'
  10086. * src/HttpHeader.cc (getRange)
  10087. * test/HttpHeaderTest.cc
  10088. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10089. Fixed compilation error with g++-4.3
  10090. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10091. Added missing include files for MinGW
  10092. * test/HttpHeaderProcessorTest.cc
  10093. * test/DHTRoutingTableSerializerTest.cc
  10094. * test/DHTRoutingTableDeserializerTest.cc
  10095. * test/UriListParserTest.cc
  10096. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10097. Now download line is printed nicely with no garbage at the end of
  10098. line. I use ioctl to get the columns of terminal.
  10099. If stdout is redirected to another device, instead of carriage return,
  10100. end of line '\n' character is used. This is feature request#1909659
  10101. * src/ConsoleStatCalc.cc (calculateStat)
  10102. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10103. Included a2time.h
  10104. * src/DHTMessageDispatcher.h
  10105. * src/DHTMessageEntry.h
  10106. * src/DHTReplaceNodeTask.h
  10107. * src/DHTMessageTracker.h
  10108. * src/Util.h
  10109. * src/CookieBox.h
  10110. * src/SocketCore.h
  10111. * src/DefaultBtMessageDispatcher.h
  10112. * src/SocketCore.cc
  10113. * src/Util.cc
  10114. * src/DHTPingTask.h
  10115. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10116. Fixed high memory footprint when DHT is enabled.
  10117. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10118. queued than it is processed and the queue is getting longer. As a
  10119. consequence, momory usage is increased.
  10120. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10121. replacement cache in DHTBucket which is described in Kademlia paper.
  10122. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10123. DHTReplaceNodeTask.
  10124. * src/DHTBucket.{h, cc}
  10125. (cacheNode): New function.
  10126. (getCachedNodes): New function.
  10127. (dropNode): Push back cached node to _nodes.
  10128. * test/DHTBucketTest.cc
  10129. (testCacheNode): New test
  10130. (testDropNode): New test
  10131. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10132. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10133. the unused 4KB memory when ssl is not used.
  10134. * src/SocketCore.cc
  10135. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10136. Added summary log for peer announce storage.
  10137. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10138. Removed cast
  10139. * src/DefaultPeerStorage.cc (addPeer)
  10140. Log exception message
  10141. * src/DHTMessageTracker.cc (handleTimeout)
  10142. Fixed casting
  10143. * test/HttpRequestTest.cc
  10144. * test/MetalinkProcessorTest.cc
  10145. * test/PieceTest.cc
  10146. * test/MetalinkEntryTest.cc
  10147. * test/SequenceTest.cc
  10148. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10149. * src/ParameterizedStringParser.cc (createLoop):
  10150. Removed unused variable sstep.
  10151. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10152. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10153. * src/Util.{h, cc}
  10154. (parseUInt): New function.
  10155. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10156. The actual range is uint32_t.
  10157. * test/UtilTest.cc
  10158. * src/ParameterizedStringParser.cc:
  10159. Use Util::parseUInt() for loop variables.
  10160. * test/ParameterizedStringParserTest.cc
  10161. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10162. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. Rewritten the functions for binding port.
  10164. * src/DHTConnectionImpl.{h, cc}
  10165. * src/PeerListenCommand.{h, cc}
  10166. * src/DHTSetup.cc
  10167. * src/BtSetup.cc
  10168. * test/DHTConnectionImplTest.cc
  10169. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10170. type cleanup for allmost all remaining files.
  10171. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10172. Type clarification
  10173. * src/PeerSessionResource.{h, cc}
  10174. * src/DefaultPieceStorage.{h, cc}
  10175. * src/Peer.{h, cc}
  10176. * test/PeerSessionResourceTest.cc
  10177. Use div function
  10178. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10179. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10180. Type clarification
  10181. * src/DefaultPeerStorage.{h, cc}
  10182. * test/DefaultPeerStorageTest.cc
  10183. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10184. Type clarification: size_t for length or size, uint64_t for file
  10185. length, off_t for file offset.
  10186. * src/DefaultBtProgressInfoFile.cc
  10187. * src/DefaultBtContext.{h, cc}
  10188. * src/DefaultBtInteractive.cc
  10189. * src/DownloadCommand.{h, cc}
  10190. * src/IteratableChunkChecksumValidator.{h, cc}
  10191. * src/SegmentMan.{h, cc}
  10192. * src/SingleFileDownloadContext.{h, cc}
  10193. * src/IteratableChecksumValidator.{h, cc}
  10194. * src/BtContext.h
  10195. * src/IteratableValidator.h
  10196. * src/DownloadContext.h
  10197. * test/SingleFileDownloadContextTest.cc
  10198. * test/DefaultBtContextTest.cc
  10199. * test/MockBtContext.h
  10200. * test/Metalink2RequestGroupTest.cc
  10201. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10202. Type clarification: size_t for length or size, uint64_t for file
  10203. length, off_t for file offset.
  10204. * src/PiecedSegment.cc
  10205. * src/GrowSegment.h
  10206. * src/DefaultBtRequestFactory.h
  10207. * src/DefaultBtProgressInfoFile.cc
  10208. * src/UnknownLengthPieceStorage.h
  10209. * src/DefaultPieceStorage.cc
  10210. * src/UnknownLengthPieceStorage.cc
  10211. * src/DefaultBtInteractive.cc
  10212. * src/GrowSegment.cc
  10213. * src/BitfieldMan.h
  10214. * src/DownloadCommand.cc
  10215. * src/BtRequestFactory.h
  10216. * src/PiecedSegment.h
  10217. * src/DefaultPieceStorage.h
  10218. * src/Piece.cc
  10219. * src/DefaultBtRequestFactory.cc
  10220. * src/PieceStorage.h
  10221. * src/Segment.h
  10222. * src/Piece.h
  10223. * src/BitfieldMan.cc
  10224. * src/Util.cc
  10225. * test/DefaultBtProgressInfoFileTest.cc
  10226. * test/DefaultPieceStorageTest.cc
  10227. * test/MockPieceStorage.h
  10228. * test/BtRequestMessageTest.cc
  10229. * test/DefaultBtMessageDispatcherTest.cc
  10230. * test/BitfieldManTest.cc
  10231. * test/GrowSegmentTest.cc
  10232. * test/PieceTest.cc
  10233. * test/SegmentTest.cc
  10234. * test/SegmentManTest.cc
  10235. * test/DefaultBtRequestFactoryTest.cc
  10236. * test/MockBtRequestFactory.h
  10237. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10238. Fixed compilation error with --disable-nls
  10239. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10240. in gettext.h causes the problem.
  10241. * src/common.h
  10242. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10243. Removed subPiece related functions.
  10244. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10245. * src/DefaultPieceStorage.{h, cc}
  10246. * test/PieceTest.cc
  10247. * test/DefaultPieceStorageTest.cc
  10248. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10249. Use unsigned char for data store.
  10250. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10251. Bump up version number to 0.13.0+1
  10252. * configure.ac
  10253. * Release 0.13.0+1
  10254. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10255. Changed inactive connection timeout to 120.
  10256. To accept more mulually interested peers, disconnect peer when there
  10257. is no interest between us after certain time passed.
  10258. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10259. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10260. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10261. when compiled with async DNS support.
  10262. * src/DownloadEngine.cc
  10263. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10264. value '10' will be a little bit short when some DNS servers are
  10265. offline and several DNS servers are tried. It should be configured
  10266. by command-line option.
  10267. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10268. Merged Ross's mingw patch.
  10269. * src/DHTRoutingTableDeserializer.cc
  10270. * src/DHTRoutingTableSerializer.cc
  10271. * src/Platform.{h, cc}
  10272. * src/timegm.h
  10273. * src/gettimeofday.h
  10274. * src/getaddrinfo.h
  10275. * src/SocketCore.h
  10276. * src/common.h
  10277. * src/inet_aton.h
  10278. * src/DownloadEngine.h
  10279. * src/gai_strerror.h
  10280. * src/a2netcompat.h
  10281. * configure.ac
  10282. * configure
  10283. * aclocal.m4
  10284. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10285. Included missing iostream.
  10286. * test/AllTest.cc
  10287. * test/BtDependencyTest.cc
  10288. * test/BtExtendedMessageTest.cc
  10289. * test/DHTConnectionImplTest.cc
  10290. * test/DHTMessageFactoryImplTest.cc
  10291. * test/DHTMessageTrackerEntryTest.cc
  10292. * test/DHTNodeTest.cc
  10293. * test/DHTRoutingTableSerializerTest.cc
  10294. * test/DefaultBtAnnounceTest.cc
  10295. * test/DefaultBtContextTest.cc
  10296. * test/DefaultBtMessageFactoryTest.cc
  10297. * test/DefaultExtensionMessageFactoryTest.cc
  10298. * test/HandshakeExtensionMessageTest.cc
  10299. * test/HttpResponseTest.cc
  10300. * test/MetalinkProcessorTest.cc
  10301. * test/MultiFileAllocationIteratorTest.cc
  10302. * test/SocketCoreTest.cc
  10303. * test/UTPexExtensionMessageTest.cc
  10304. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10305. Reorganized includes.
  10306. * src/NameResolver.cc
  10307. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10308. Fixed compilation error without ares/c-ares
  10309. * src/NameResolver.h:
  10310. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10311. Added a test for large file.
  10312. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10313. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10314. Fixed the bug that file size is ignored if size > INT32_MAX
  10315. * src/SizeMetalinkParserState.cc (endElement):
  10316. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10317. Bump up version number to 0.13.0
  10318. * configure.ac
  10319. * Release 0.13.0
  10320. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10321. Updated Makfefile.am to make 'make dist' work.
  10322. Now packaged filename is aria2c-VERSION.tar.bz2.
  10323. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10324. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10325. Large file support is now configured by configure script.
  10326. * configure.ac
  10327. Removed unsused source files
  10328. * src/
  10329. * test/
  10330. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10331. Peer.h and BtContext.h respectively.
  10332. * src/Peer.h
  10333. * src/BtContext.h
  10334. Updated translations.
  10335. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10336. translations. Great thanks to all translators!;)
  10337. * po/*.{po, gmo}
  10338. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10339. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10340. statically declared sha1 MessageDigestContext.
  10341. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10342. initialization of short-lived MessageDigestContext.
  10343. * src/MessageDigestHelper.{h, cc}
  10344. * src/main.cc
  10345. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10346. the initialization of MessageDigestContext every time in validating
  10347. chunk checksum.
  10348. * src/DownloadCommand.{h, cc}
  10349. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10350. Add a file descriptor which connected to fast peer(latency<1500) to
  10351. select(). This change reduced CPU load.
  10352. * src/PeerInteractionCommand.cc
  10353. * src/DefaultBtInteractive.{h, cc}
  10354. * src/BtInteractive.h
  10355. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10356. Fixed the previous insufficient fix for possible busy loop.
  10357. * src/MSEHandshake.cc (identifyHandshakeType)
  10358. Removed unused functions.
  10359. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10360. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10361. Fixed possible busy loop if first 20 bytes are not received for a few
  10362. minutes.
  10363. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10364. * src/ReceiverMSEHandshakeCommand.cc
  10365. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10366. Fixed compilation error
  10367. * src/ExpatMetalinkProcessor.cc
  10368. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10369. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10370. * src/DHTBucket.cc
  10371. Removed unnecessary cast.
  10372. * src/HandshakeExtensionMessage.cc
  10373. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10374. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10375. is missing.
  10376. * src/OptionHandlerFactory.cc
  10377. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10378. Fixed the bug that HAVE message is not sent for a piece they are
  10379. downloaded fom http/ftp server before any BitTorrent handshake is done
  10380. with peers.
  10381. * src/DefaultBtInteractive.cc
  10382. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10383. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10384. * src/Makefile.am
  10385. * src/Makefile.in
  10386. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10387. Updated README. Added html version of README and man page.
  10388. * README
  10389. * README.html
  10390. * readme2html: Shell script to generate README.html from README using
  10391. asciidoc.
  10392. * doc/aria2c.1.html
  10393. * doc/makeman: Added the line to generate aria2c.1.html
  10394. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10395. Fixed offset calculation.
  10396. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10397. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10398. Rewritten itos and uitos using template. llitos and ullitos are
  10399. replaced with itos and uitos respectively.
  10400. * src/Util.{h, cc}
  10401. * test/UtilTest.cc
  10402. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10403. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10404. of the number of bytes required for storing public key and shared
  10405. secret.
  10406. * src/LibgcryptDHKeyExchange.h
  10407. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10408. * src/MSEHandshake.cc
  10409. * test/DHKeyExchangeTest.cc
  10410. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10411. Removed since they are not used.
  10412. * src/Xml2MetalinkProcessor.{h, cc}
  10413. * src/Socket.cc
  10414. * src/SegmentSplitter.{h, cc}
  10415. * test/Xml2MetalinkProcessorTest.cc
  10416. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10417. Fixed the bug that prevents aria2 from stopping other than by pressing
  10418. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10419. option. aria2 doesn't stop even after --seed-time is satisfied and
  10420. continues to output blank lines in the console.
  10421. * src/ReceiverMSEHandshakeCommand.cc
  10422. * src/PeerReceiveHandshakeCommand.cc
  10423. * src/PeerListenCommand.cc
  10424. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10425. Bump up version number to 0.13.0rc
  10426. * configure.ac
  10427. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10428. Updated man page and some usage text.
  10429. * doc/aria2c.1.txt
  10430. * src/usage_text.h
  10431. * po/*.{po, gmo}
  10432. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10433. Updated translations. Added Finnish and Hebrew translations.
  10434. Great thanks to all translators!
  10435. * po/*.{po, gmo}
  10436. * po/LINGUAS
  10437. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. Log more detailed information about each message.
  10439. * src/DHTQueryMessage.{h, cc}
  10440. * src/DHTGetPeersMessage.{h, cc}
  10441. * src/DHTFindNodeReplyMessage.{h, cc}
  10442. * src/DHTGetPeersReplyMessage.{h, cc}
  10443. * src/DHTAnnouncePeerMessage.{h, cc}
  10444. * src/DHTResponseMessage.{h, cc}
  10445. * src/DHTFindNodeMessage.{h, cc}
  10446. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10447. Use constants defined in prefs.h
  10448. * src/option_processing.cc
  10449. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10450. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10451. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10452. Make room for future enchancements for IPv6 addresses.
  10453. Bump up version number of dht.dat file format to 2.
  10454. Not compatible with previous version.
  10455. * src/DHTRoutingTableSerializer.cc
  10456. * src/DHTRoutingTableDeserializer.cc
  10457. * test/DHTRoutingTableSerializerTest.cc
  10458. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10459. Added handling for the return values from
  10460. PeerMessageUtil::createcompact().
  10461. * src/DefaultBtContext.cc (computeFastSet):
  10462. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10463. Fixed abort when peer's ip address is IPv4-mapped address.
  10464. * src/DefaultBtContext.cc (computeFastSet)
  10465. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10466. cannot handle IPv4-mapped addresses.
  10467. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10468. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10469. Proper return value handling for OpenSSL functions.
  10470. * src/LibsslDHKeyExchange.h
  10471. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10472. Random bytes generation using libgcrypt and OpenSSL.
  10473. * src/DHTUtil.{h, cc}
  10474. * test/DHTUtilTest.cc
  10475. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10477. received.
  10478. * src/DHTMessageReceiver.cc (receiveMessage)
  10479. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10480. Fixed the bug that a return code is always 0. BUG#1897704
  10481. If error occurred during the download or there exist unfinished
  10482. downloads, aria2 returns with code 1.
  10483. * src/RequestGroupMan.{h, cc}
  10484. * src/MultiUrlRequestInfo.{h, cc}
  10485. * src/main.cc
  10486. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10487. IPv6 support for SocketCore class.
  10488. TODO: In SocketCore::establishConnection(), this is insufficient to
  10489. determin the failure of connect() here because the socket is
  10490. non-blocking state. The next addresses should be tried after select().
  10491. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10492. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10493. instead which address family independent.
  10494. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10495. information in a compact peer format which is for IPv4 only.
  10496. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10497. this is a spec of BitTorrent protocol.
  10498. * src/SocketCore.{h, cc}
  10499. * src/PeerMessageUtil.cc
  10500. * test/SocketCoreTest.cc
  10501. * test/PeerMessageUtilTest.cc
  10502. * test/DHTConnectionImplTest.cc
  10503. Handle IPv4-mapped addresses.
  10504. * src/DHTNode.cc: Now identity is determined by node id.
  10505. * src/DHTMessageTrackerEntry.cc
  10506. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10507. should handle it.
  10508. * src/DHTRoutingTableDeserializer.cc
  10509. * src/DHTMessageFactoryImpl.cc
  10510. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10511. Change the unit of --stop option from a minute to a second.
  10512. * src/usage_text.h
  10513. * src/DownloadEngineFactory.cc
  10514. * src/OptionHandlerFactory.cc
  10515. * src/message.h
  10516. * src/TimedHaltCommand.cc
  10517. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10518. Make listening socket non-block mode.
  10519. * src/FtpConnection.cc
  10520. * src/FtpNegotiationCommand.{h, cc}
  10521. * src/PeerListenCommand.cc
  10522. Fixed the bug that cause slow ftp negotiation.
  10523. * src/FtpNegotiationCommand.{h, cc}
  10524. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10525. Added basic tag to --enable-dht, --dht-listen-port option.
  10526. * src/HelpItemFactory.cc (createHelpItems)
  10527. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10528. Updated text.
  10529. * src/usage_text.h
  10530. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10531. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10532. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10533. Determin _threadtholdSpeed in each constructor for
  10534. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10535. * src/ActivePeerConnectionCommand.{h, cc}
  10536. * src/PeerReceiveHandshakeCommand.{h, cc}
  10537. * src/BtSetup.cc
  10538. * src/BtConstants.h
  10539. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10540. Added --bt-min-crypto-level and --bt-require-crypto options.
  10541. * src/OptionHandlerFactory.cc
  10542. * src/MSEHandshake.cc
  10543. * src/HelpItemFactory.cc
  10544. * src/option_processing.cc
  10545. * src/ReceiverMSEHandshakeCommand.cc
  10546. * src/prefs.h
  10547. * src/DefaultBtAnnounce.cc
  10548. * src/InitiatorMSEHandshakeCommand.cc
  10549. * src/usage_text.h
  10550. * test/MSEHandshakeTest.cc
  10551. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10552. Bump version number to 0.13.0b
  10553. * configure.ac
  10554. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10555. Updated doc.
  10556. * src/MessageDigestHelper.h:
  10557. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10558. Use raw message digest as a token instead of its hexadecimal
  10559. representation.
  10560. * src/DHTTokenTracker.cc (generateToken)
  10561. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10562. Added Message Stream Encryption(MSE) support.
  10563. Currently, aria2 accepts incoming connections with Obfuscation Header
  10564. and legacy BitTorrent Header and establishes connections with
  10565. Obfuscation Header first and if failed then retry with legacy
  10566. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10567. choose ARC4. The new option to change the default behavior is planned.
  10568. For tracker extension, "supportcrypto=1" is added statically.
  10569. * src/PeerInitiateConnectionCommand.{h, cc}
  10570. * src/PeerConnection.{h, cc}
  10571. * src/HandleRegistry.h
  10572. * src/SocketCore.h
  10573. * src/PeerReceiveHandshakeCommand.{h, cc}
  10574. * src/BtRegistry.{h, cc}
  10575. * src/PeerListenCommand.cc
  10576. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10577. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10578. * src/MSEHandshake.{h, cc}
  10579. * src/ARC4Encryptor.h
  10580. * src/ARC4Decryptor.h
  10581. * src/LibgcryptARC4Encryptor.h
  10582. * src/LibgcryptARC4Decryptor.h
  10583. * src/LibgcryptARC4Context.h
  10584. * src/LibsslARC4Encryptor.h
  10585. * src/LibsslARC4Decryptor.h
  10586. * src/LibsslARC4Context.h
  10587. * src/DHKeyExchange.h
  10588. * src/LibgcryptDHKeyExchange.h
  10589. * src/LibsslDHKeyExchange.h
  10590. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10591. * test/DefaultBtAnnounceTest.cc
  10592. * test/ARC4Test.cc
  10593. * test/DHKeyExchangeTest.cc
  10594. Removed prepareForRetry() because it is not used.
  10595. * src/PeerAbstractCommand.{h, cc}
  10596. * src/PeerInteractionCommand.{h, cc}
  10597. * src/PeerInitiateConnectionCommand.{h, cc}
  10598. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10599. Added the ability to load nodes from torrent file. These nodes are
  10600. added to the routing table when downloading that torrent.
  10601. * src/BtContext.h
  10602. * src/DefaultBtContext.{h, cc}
  10603. * src/DHTSetup.cc
  10604. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10605. hostname and port pair, and resolves all of them.
  10606. * src/NameResolver.{h, cc}: Added reset().
  10607. * src/RequestGroup.cc
  10608. * test/DefaultBtContextTest.cc
  10609. * test/MockBtContext.h
  10610. Removed assert() from DefaultBtContext and throw exception instead.
  10611. * src/DefaultBtContext.cc
  10612. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10613. Fixed segmentation fault bug when exiting if dht is disabled.
  10614. * src/RequestGroup.cc
  10615. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10616. Fixed typo in log message and define the message in message.h
  10617. * src/TimedHaltCommand.cc
  10618. * src/message.h
  10619. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10620. Included RecoverableException.h to fix compilation error.
  10621. * test/DHTMessageFactoryImplTest.cc
  10622. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10623. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10624. * test/DHTPingMessageTest.cc
  10625. * test/DHTGetPeersMessageTest.cc
  10626. * test/DHTFindNodeMessageTest.cc
  10627. * test/DHTAnnouncePeerMessageTest.cc
  10628. * test/MockDHTMessage.h
  10629. * test/MockDHTMessageFactory.h
  10630. * test/MockDHTMessageDispatcher.h: New class.
  10631. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10632. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10633. virtual.
  10634. * src/DHTMessageDispatcher.h
  10635. * src/DHTMessageDispatcherImpl.{h, cc}
  10636. * src/DHTSetup.cc
  10637. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10638. Adding handling of DHT error message. Just log error message and
  10639. throw exception.
  10640. * src/DHTMessageFactoryImpl.cc
  10641. * test/DHTMessageFactoryImplTest.cc
  10642. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10643. Added handling of dynamic cast failure.
  10644. * src/DHTNodeLookupTask.cc
  10645. * src/DHTPeerLookupTask.cc
  10646. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10647. Added the ability to stop aria2 itself when given time has passed
  10648. from start. Use --stop option to specify time in minutes.
  10649. When 0 is given, this feature is disabled.
  10650. * src/OptionHandlerFactory.cc
  10651. * src/TimeBasedCommand.h: Make _interval protected scope.
  10652. * src/HelpItemFactory.cc
  10653. * src/option_processing.cc
  10654. * src/prefs.h
  10655. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10656. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10657. Without this modification, the result list shows "ERR" when aria2 is
  10658. stopped by --stop option. It should be "INPR".
  10659. * src/DownloadEngine.{h, cc}
  10660. * src/DownloadEngineFactory.cc
  10661. * src/usage_text.h
  10662. * src/TimedHaltCommand.{h, cc}: New class.
  10663. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10664. Bootstrap through node added by port message.
  10665. Currently bootstrap is executed if the number of buckets in routing
  10666. table is 1.
  10667. * src/BtPortMessage.{h, cc}
  10668. * src/DefaultBtMessageFactory.{h, cc}
  10669. * src/PeerInteractionCommand.cc
  10670. * test/BtPortMessageTest.cc
  10671. * test/MockDHTTask.h
  10672. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10673. Extract the Peer class's member variables, which are only needed after
  10674. PeerInteractionCommand, into PeerSessionResource class.
  10675. This class is instantiated in PeerInteractionCommand class's ctor and
  10676. released in its dtor.
  10677. This will make Peer class lightweight and uses less memory for peers
  10678. which are not connected and wait in the queue.
  10679. * src/PeerChokeCommand.cc
  10680. * src/PeerSessionResource.{h, cc}
  10681. * src/PeerInteractionCommand.cc
  10682. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10683. * src/DefaultBtInteractive.cc
  10684. * src/BtPieceMessage.cc
  10685. * src/BtInterestedMessage.cc
  10686. * src/BtUnchokeMessage.cc
  10687. * src/DefaultPeerStorage.{h, cc}
  10688. * src/PeerInitiateConnectionCommand.cc
  10689. * src/ActivePeerConnectionCommand.cc
  10690. * src/BtNotInterestedMessage.cc
  10691. * src/DefaultBtMessageDispatcher.cc
  10692. * src/BtChokeMessage.cc
  10693. * src/BtRequestMessage.cc
  10694. * src/Peer.{h, cc}
  10695. * src/BtRegistry.h
  10696. * src/TrackerWatcherCommand.cc
  10697. * src/PeerReceiveHandshakeCommand.cc
  10698. * test/BtExtendedMessageTest.cc
  10699. * test/BtAllowedFastMessageTest.cc
  10700. * test/BtCancelMessageTest.cc
  10701. * test/DefaultPieceStorageTest.cc
  10702. * test/BtBitfieldMessageTest.cc
  10703. * test/BtHaveMessageTest.cc
  10704. * test/BtNotInterestedMessageTest.cc
  10705. * test/BtRequestMessageTest.cc
  10706. * test/PeerSessionResourceTest.cc
  10707. * test/DefaultBtMessageDispatcherTest.cc
  10708. * test/PeerTest.cc
  10709. * test/BtInterestedMessageTest.cc
  10710. * test/BtRejectMessageTest.cc
  10711. * test/BtChokeMessageTest.cc
  10712. * test/DefaultPeerStorageTest.cc
  10713. * test/BtHaveNoneMessageTest.cc
  10714. * test/BtHaveAllMessageTest.cc
  10715. * test/DefaultExtensionMessageFactoryTest.cc
  10716. * test/BtUnchokeMessageTest.cc
  10717. * test/DefaultBtMessageFactoryTest.cc
  10718. * test/HandshakeExtensionMessageTest.cc
  10719. * test/UTPexExtensionMessageTest.cc
  10720. * test/DefaultBtRequestFactoryTest.cc
  10721. * test/BtPieceMessageTest.cc
  10722. Removed typedef PeerStats.
  10723. * src/PeerStat.h
  10724. * src/SegmentMan.cc
  10725. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10726. Added std namespace to copy, remove_copy, back_inserter,
  10727. front_inserter.
  10728. * src/RequestGroupMan.cc
  10729. * src/DefaultPieceStorage.cc
  10730. * src/StreamFileAllocationEntry.cc
  10731. * src/BtFileAllocationEntry.cc
  10732. * src/RequestGroup.cc
  10733. * src/MetalinkEntry.cc
  10734. * src/DelegatingPeerListProcessor.cc
  10735. * src/DefaultBtRequestFactory.cc
  10736. * src/DefaultBtMessageDispatcher.cc
  10737. * src/version_usage.cc: Included <algorithm>
  10738. * src/main.cc
  10739. * src/MetalinkParserController.cc
  10740. * src/DefaultBtContext.cc
  10741. * src/DownloadEngineFactory.cc
  10742. * src/a2algo.h
  10743. Removed.
  10744. * test/StreamUriListParserTest.cc
  10745. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10746. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10747. ActivePeerConnectionCommand when it is given and
  10748. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10749. * src/ActivePeerConnectionCommand.{h, cc}
  10750. * src/BtSetup.cc
  10751. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10752. Only add socket to DownloadEngine's select routine when peer or
  10753. localhost is unchoked and interested. This lowers CPU usage a
  10754. little bit.
  10755. * src/PeerInteractionCommand.cc
  10756. * src/PeerAbstractCommand.{h, cc}
  10757. * src/BtInteractive.h
  10758. * src/DefaultBtInteractive.{h, cc}
  10759. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10760. Revert previous change because get_peers message is needed for
  10761. announce_peer anyway.
  10762. * src/DHTGetPeersCommand.cc
  10763. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10764. Request peers thought DHT only when download hasn't finished.
  10765. * src/DHTGetPeersCommand.cc
  10766. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10767. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10768. * src/DHTBucketRefreshTask.{h, cc}
  10769. * src/DHTSetup.cc
  10770. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10771. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10772. standard classes.
  10773. Included string.h where mem* function are used.
  10774. Added namespace aria2.
  10775. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10776. Create directory before saving DHT routing table.
  10777. Now ios::failure is now handled properly.
  10778. * src/DHTAutoSaveCommand.cc
  10779. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10780. Removed unnecessary cerr.
  10781. * src/DownloadEngine.cc
  10782. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10783. Catch exception inside DHTMessageReceiver::receiveMessage().
  10784. Log unknown message.
  10785. * src/DHTMessageReceiver.{h, cc}
  10786. * src/DHTMessageFactory.h
  10787. * src/DHTMessageFactoryImpl.{h, cc}
  10788. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10789. * src/DHTInteractionCommand.cc
  10790. * src/DHTUnknownMessage.{h, cc}
  10791. * test/DHTUnknownMessageTest.cc
  10792. * test/MockDHTMessageFactory.h
  10793. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10794. Commented out ip address comparison because a host can have multiple
  10795. ip addresses and it is hard to predict the hostname is resolved into
  10796. which one.
  10797. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10798. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10799. * po/Makefile.in: Removed since this is generated by configure.
  10800. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10801. Fixed compiler warning about redefinition of SIZE_MAX.
  10802. Use common.h instead of config.h directly here.
  10803. * src/Platform.{h, cc}
  10804. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10805. here.
  10806. * common.h
  10807. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  10808. Updated gettext related files.
  10809. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  10810. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  10811. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10812. Added DHT functionality, compatible with mainline.
  10813. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  10814. You may need to specify entry point to DHT network using
  10815. --dht-entry-point. DHT uses UDP port to listen incoming message.
  10816. Use --dht-listen-port to specify port number. Make sure that your
  10817. firewall configuration can pass through UDP traffic to the port.
  10818. The routing table is saved in $HOME/.aria2/dht.dat.
  10819. * src/DHT*
  10820. * src/BNode.{h, cc}
  10821. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  10822. particular torrent.
  10823. * src/Data.cc: Rewritten ctor.
  10824. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  10825. --dht-entry-point.
  10826. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  10827. * src/RequestGroup.cc: Initialize DHT functionality. When download
  10828. ends, remove BtContext from DHTPeerAnnounceStorage.
  10829. * src/BtPortMessage.{h, cc}: Rewritten.
  10830. * src/message.h
  10831. * src/OptionHandlerImpl.cc
  10832. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  10833. --dht-entry-point.
  10834. * src/Dictionary.{h, cc} (remove): New function.
  10835. * src/prefs.h
  10836. * src/DefaultBtMessageFactory.h
  10837. * src/BtHandshakeMessage.cc
  10838. * src/ActivePeerConnectionCommand.cc
  10839. * src/SocketCore.{h, cc}: Added datagram socket support.
  10840. * src/DefaultBtMessageFactory.cc
  10841. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  10842. Create DHT commands.
  10843. * src/BtMessageFactory.h
  10844. * src/PeerMessageUtil.{h, cc}
  10845. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10846. Fixed the bug that log file is not written when configuration file doesn't exist.
  10847. This is caused by using Logger class before LogFactory is not configured.
  10848. BUG #1875079
  10849. * src/option_processing.cc
  10850. Warning message "configuration doesn't exist" is only printed when --conf is
  10851. given.
  10852. * src/option_processing.cc
  10853. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10854. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  10855. ShaVisitor is now deprecated and slated to be removed.
  10856. * src/DefaultBtContext.cc
  10857. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10858. Externalize message to message.h
  10859. * src/Platform.cc
  10860. * src/message.h
  10861. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10862. Set default domain and default path to cookie.
  10863. * src/HttpResponse.cc
  10864. * src/CookieBox.{h, cc}
  10865. * src/CookieParser.{h, cc}
  10866. * test/CookieParserTest.cc
  10867. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10868. Added --no-conf and --conf-path command-line option.
  10869. --no-conf option disables loading aria2.conf file.
  10870. --conf-path option changes the configuration file path. The default
  10871. file path is $HOME/.aria2/aria2.conf
  10872. Added a warning message when the configuration file is not found.
  10873. * src/HelpItemFactory.cc
  10874. * src/option_processing.cc
  10875. * src/prefs.h
  10876. * src/usage_text.h
  10877. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10878. Added the message to inform users that other help categories are
  10879. available in -h option.
  10880. * src/version_usage.cc
  10881. * src/TagContainer.{h, cc}
  10882. * test/TagContainerTest.cc
  10883. * src/TaggedItem.{h, cc}
  10884. * test/TaggedItemTest.cc
  10885. * src/HelpItem.h
  10886. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10887. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10888. from PiecedSegment's ctor.
  10889. Previously Piece::getAllMissingBlockIndexes() is called from
  10890. PiecedSegment() but it is rather expensive since only first element is
  10891. used.
  10892. * src/PiecedSegment.cc
  10893. * src/Piece.{h, cc}
  10894. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10895. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10896. each time these functions are called.
  10897. * src/BitfieldMan.{h, cc}
  10898. * test/BitfieldManTest.cc
  10899. * src/array_fun.h
  10900. * test/array_funTest.cc
  10901. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10902. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10903. filtered. Removed unnecessary cast to int32_t.
  10904. * src/BitfieldMan.{h, cc}
  10905. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10906. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10907. payload length(4bytes) are received. This happens because lenbufLength
  10908. is not updated in this particular case and successive call of
  10909. receiveMessage() overwrites payload length with bytes recieved which
  10910. are payload body.
  10911. * src/PeerConnection.{h, cc}
  10912. * src/message.h
  10913. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10914. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10915. peer if there are peers that have same ipaddr and port.
  10916. I've experiened segmentation fault and "pure virtual function was
  10917. called" error.
  10918. * src/Peer.h
  10919. * test/PeerTest.cc
  10920. * src/DefaultPeerStorage.cc
  10921. * test/DefaultPeerStorageTest.cc
  10922. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10923. Removed a call to isPowerOf() because it is no longer necessary here
  10924. and a request block is not always power of 2.
  10925. BUG#1866924
  10926. * src/PeerMessageUtil.cc (checkLength)
  10927. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10928. Fixed the bug that always first found Segment is removed from
  10929. usedSegmentEntries. Removed unused functions.
  10930. * src/SegmentMan.{h, cc}
  10931. * test/SegmentManTest.cc
  10932. Fixed the bug that ServerHost is not removed.
  10933. * src/RequestGroup.cc
  10934. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10935. Fixed the bug that SegmentMan::completeSegment() is not called
  10936. even if Segment is complete when --lowest-speed-limit is enabled.
  10937. BUG#1864525
  10938. * src/DownloadCommand.{h, cc}
  10939. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10940. Fixed: hash algorithm 'sha1' is always used.
  10941. * src/DownloadCommand.cc (validatePieceHash)
  10942. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10943. Added --enable-peer-exchange command-line option.
  10944. * src/OptionHandlerFactory.cc
  10945. * src/HelpItemFactory.cc
  10946. * src/option_processing.cc
  10947. * src/usage_text.h
  10948. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10949. Move extension from BtRuntime to ExtensionMessageFactory, because
  10950. extension can be specified per peer, not per torrent.
  10951. * src/DefaultBtInteractive.cc
  10952. * src/BtRuntime.h
  10953. * src/ExtendedMessagingAware.h
  10954. * src/ExtensionMessageFactory.h
  10955. * src/DefaultExtensionMessageFactory.cc
  10956. * test/DefaultExtensionMessageFactoryTest.cc
  10957. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10958. Added categorized option help. Specify category using --help option.
  10959. Also added the ability to search options in forward match.
  10960. * src/HelpItem.{h, cc}
  10961. * test/HelpItemTest.cc
  10962. * src/HelpItemFactory.{h, cc}
  10963. * src/TagContainer.{h, cc}
  10964. * test/TagContainerTest.cc
  10965. * src/option_processing.cc
  10966. * src/prefs.h
  10967. * src/TaggedItem.{h, cc}
  10968. * test/TaggedItemTest.cc
  10969. * src/version_usage.cc
  10970. * src/help_tags.h
  10971. * src/usage_text.h
  10972. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10973. Fixed segmentation fault when bad torrent metainfo is parsed.
  10974. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10975. and then throw exception or skip it.
  10976. * src/DefaultBtContext.{h, cc}
  10977. * test/DefaultBtContextTest.cc
  10978. * src/AnnounceList.cc
  10979. * src/CompactPeerListProcessor.cc
  10980. * src/message.h
  10981. * src/DefaultBtAnnounce.{h, cc}
  10982. * test/DefaultBtAnnounceTest.cc
  10983. * src/BencodeVisitor.cc
  10984. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10985. Added missing "B"(=Byte). So now the message looks like this:
  10986. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10987. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10988. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10989. Show the seed ratio after torrent downloads.
  10990. For example, after torrent download completed and --seed-time and
  10991. --seed-ratio conditions are fulfilled, following message is printed
  10992. right after "Download complete: .....":
  10993. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10994. * src/RequestGroupMan.cc
  10995. * src/RequestGroup.{h, cc}
  10996. * src/message.h
  10997. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10998. Remove a defunct control file. A defunct control file means that while
  10999. it exists, but the corresponding download file is missing.
  11000. After its removal, a download restarts from the beginning.
  11001. * src/RequestGroup.cc
  11002. * src/message.h
  11003. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11004. Allocate bitfield in Peer when it is really used. More specifically,
  11005. bitfield in Peer is allocated after the connection is established and
  11006. deallocated when the connection is dropped.
  11007. Since 2 parameters(piece length and total length) was removed from the
  11008. constructor of Peer class, many test classes were modified accordingly.
  11009. See svn log for more detailed information.
  11010. * src/PeerInteractionCommand.cc
  11011. * src/CompactPeerListProcessor.cc
  11012. * src/Peer.cc
  11013. * src/DefaultPeerListProcessor.cc
  11014. * src/PeerListenCommand.cc
  11015. * src/PeerReceiveHandshakeCommand.cc
  11016. Fixed memory leak
  11017. * src/Piece.cc
  11018. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11019. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11020. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11021. command-line options.
  11022. * src/option_processing.cc
  11023. * src/ActivePeerConnectionCommand.cc
  11024. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11025. Send have message to peer if it already has the piece.
  11026. * src/BtHaveMessage.{h, cc}
  11027. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11028. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11029. port.
  11030. * src/DefaultPeerStorage.{h, cc}
  11031. * test/DefaultPeerStorageTest.cc
  11032. * src/HandshakeExtensionMessage.cc
  11033. * test/HandshakeExtensionMessageTest.cc
  11034. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11035. * src/PeerStorage.h
  11036. * test/MockPeerStorage.h
  11037. * src/PeerListenCommand.cc
  11038. * src/PeerReceiveHandshakeCommand.cc
  11039. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11040. Added --metalink-enable-unique-protocol option.
  11041. * src/Metalink2RequestGroup.cc
  11042. * src/option_processing.cc
  11043. * src/prefs.h
  11044. * src/version_usage.cc
  11045. * doc/aria2c.1.txt
  11046. * doc/aria2c.1
  11047. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11048. Allow a peer in incomingPeer to be added peers.
  11049. * src/DefaultPeerStorage.cc
  11050. * test/DefaultPeerStorageTest.cc
  11051. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11052. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11053. I could reproduce this bug in following procedure:
  11054. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11055. 2. Restart aria2.
  11056. 3. You see the download stopped around 99%.
  11057. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11058. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11059. If timeout is reached, then _nextCommand is unused and it may contains
  11060. segments and they won't be canceled. Actually, timeout is not needed
  11061. here because if the server dropped connection, then retry is made.
  11062. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11063. Added uTorrent compatible Peer Exchange.
  11064. * src/BencodeVisitor.{h, cc}
  11065. * test/BencodeVisitorTest.cc
  11066. * src/BtConstants.h
  11067. * src/BtContext.h: Added 'private' flag.
  11068. * src/BtExtendedMessage.{h, cc}
  11069. * test/BtExtendedMessageTest.cc
  11070. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11071. reserved field.
  11072. * test/BtHandshakeMessageTest.cc
  11073. * src/BtMessageFactory.h
  11074. * src/BtRegistry.h
  11075. * src/BtRuntime.h: This class holds default extension message IDs for
  11076. aria2. By default, aria2 uses ID 8 for ut_pex.
  11077. * src/DefaultBtContext.cc
  11078. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11079. When it is true, aria2 enables ut_pex. This value is set by
  11080. PeerInteractionCommand.
  11081. * src/DefaultBtMessageFactory.{h, cc}
  11082. * test/DefaultBtMessageFactoryTest.cc
  11083. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11084. handling to DefaultBtInteractive class.
  11085. * src/DefaultExtensionMessageFactory.{h, cc}
  11086. * test/DefaultExtensionMessageFactoryTest.cc
  11087. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11088. the container(peers and incomingPeers. The equality is determined by
  11089. Peer::id).
  11090. * test/DefaultPeerStorageTest.cc
  11091. * src/ExtensionMessage.h
  11092. * test/MockExtensionMessage.h
  11093. * src/ExtensionMessageFactory.h
  11094. * test/MockExtensionMessageFactory.h
  11095. * src/HandshakeExtensionMessage.{h, cc}
  11096. * test/HandshakeExtensionMessageTest.cc
  11097. * src/MetaEntry.h
  11098. * src/Peer.{h, cc}
  11099. * src/PeerInteractionCommand.cc
  11100. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11101. addIncomingPeer.
  11102. * src/PeerMessageUtil.{h, cc}
  11103. * src/PeerObject.h
  11104. * src/UTPexExtensionMessage.{h, cc}
  11105. * test/UTPexExtensionMessageTest.cc
  11106. * src/message.h
  11107. * src/prefs.h
  11108. Fixed the bug that returns incomplete data when it contains null
  11109. character. A convenient constructor was also added.
  11110. * src/Data.{h, cc}
  11111. Rewritten.
  11112. * src/CompactPeerListProcessor.cc
  11113. Fixed typos.
  11114. * src/message.h
  11115. * src/MetaFileUtil.cc
  11116. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11117. Added "Status Legend" label to the explanation text of 'stat' in
  11118. download result and moved it to the last. BUG#1848214
  11119. * src/RequestGroupMan.cc
  11120. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11121. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11122. * src/Makefie.am
  11123. * test/Makefile.am
  11124. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11125. Fixed the bug that prevents aria2 from loading cookie file when expire
  11126. value is greater than 2^31-1. BUG#1851066
  11127. * src/CookieBoxFactory.cc
  11128. * test/CookieBoxFactoryTest.cc
  11129. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11130. Fixed possible memory leak when an exception is thrown.
  11131. * src/XML2SAXMetalinkProcessor.cc
  11132. Added Expat support. If both libxml2 and Expat are installed, then
  11133. libxml2 is used by default.
  11134. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11135. ExpatMetalinkProcessor according to the configuration.
  11136. * src/ExpatMetalinkProcessor.{h, cc}
  11137. * src/main.cc: Removed libxml2 specific header and init/free function.
  11138. * src/MetalinkProcessorFactory.{h, cc}
  11139. * src/MetalinkHelper.cc
  11140. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11141. * src/MetalinkProcessor.h
  11142. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11143. MetalinkProcessorTest is used instead.
  11144. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11145. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11146. MetalinkProcessorFactory::newInstance().
  11147. * m4/libexpat.m4
  11148. * configure.ac: Added configuration options for libexpat.
  11149. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11150. Disabled -s option in metalink download.
  11151. * src/Metalink2RequestGroup.cc
  11152. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11153. If several protocols are available for a mirror in metalink file,
  11154. aria2 now use one of them. --metalink-preferred-protocol option was
  11155. added to specify the preference of protocol.
  11156. * src/AbstractCommand.cc
  11157. * src/OptionHandlerFactory.cc
  11158. * src/ServerHost.{h, cc}
  11159. * src/Metalink2RequestGroup.cc
  11160. * src/RequestGroup.{h, cc}
  11161. * test/RequestGroupTest.cc
  11162. * src/option_processing.cc
  11163. * src/prefs.h
  11164. * src/HttpResponseCommand.cc
  11165. * src/MetalinkResource.{h, cc}
  11166. * src/FtpNegotiationCommand.cc
  11167. * src/MetalinkEntry.{h, cc}
  11168. * src/MetalinkEntryTest.cc
  11169. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11170. Code cleanup and added debug log.
  11171. * src/PeerConnection.cc
  11172. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Compiler error fix: applied the patch by Tiziano Mueller
  11174. * src/RequestGroup.cc
  11175. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11176. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11177. in stopped and completed event.
  11178. * src/AnnounceList.{h, cc}
  11179. * test/AnnounceListTest.cc
  11180. * src/DefaultBtAnnounce.cc
  11181. * test/DefaultBtAnnounceTest.cc
  11182. Sorted URLs.
  11183. * test/Metalink2RequestGroupTest.cc
  11184. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11185. Removed unnecessary string copy. Updated doc and corrected indentation.
  11186. * src/Base64.cc
  11187. Fixed compilation warnings
  11188. * test/DataTest.cc
  11189. * test/HttpRequestTest.cc
  11190. * test/MetaFileUtilTest.cc
  11191. * test/RequestTest.cc
  11192. * Release 0.12.0
  11193. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11194. Updated translations
  11195. * po/{de,fr,ja,nl,ru}.po
  11196. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11197. translations. Many thanks to translators.
  11198. * po/{ca,es,it,pt_BR,sv}.po
  11199. * po/LINGUAS
  11200. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11201. Added a notice about URL
  11202. * src/version_usage.cc
  11203. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11204. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11205. aria2 repeatedly sends stopped request when tracker returns error code.
  11206. * src/AnnounceList.cc
  11207. * test/AnnounceListTest.cc
  11208. * src/AnnounceTier.h
  11209. Added a message when ctrl-c is hit.
  11210. Now second ctrl-c is also handled in signal handler.
  11211. * src/RequestGroupMan.{h, cc}
  11212. * src/RequestGroup.{h, cc}
  11213. * src/MultiUrlRequestInfo.cc
  11214. * src/DownloadEngine.cc
  11215. * src/TrackerWatcherCommand.cc
  11216. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11217. Code cleanup
  11218. * src/Base64.cc (encode)
  11219. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11220. Changed Direct/IO enable/disable procesure in file allocation routine.
  11221. * src/SingleFileAllocationIterator.cc
  11222. (SingleFileAllocationIterator):
  11223. Disable directIO if offset is not multiple of 512.
  11224. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11225. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11226. Enable created SingleFileAllocationIterator's directIO.
  11227. * src/FileAllocationEntry.cc
  11228. (FileAllocationEntry): Enable directIO here.
  11229. (~FileAllocationEntry): Disable directIO here.
  11230. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11231. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11232. * src/Peer.{h, cc}
  11233. * src/DefaultPieceStorage.cc
  11234. * test/DefaultPieceStorageTest.cc
  11235. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11236. Rewritten direct I/O support routine
  11237. * src/SingleFileAllocationIterator.cc
  11238. * src/MultiDiskAdaptor.{h, cc}
  11239. * src/ByteArrayDiskWriter.h
  11240. * src/AbstractSingleDiskAdaptor.h
  11241. * src/AbstractDiskWriter.cc
  11242. * src/DefaultPieceStorage.cc
  11243. * src/DiskWriter.h
  11244. * src/BinaryStream.h
  11245. * src/IteratableChunkChecksumValidator.cc
  11246. * src/IteratableChecksumValidator.cc
  11247. * src/CheckIntegrityEntry.cc
  11248. * src/FileAllocationEntry.cc
  11249. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11250. Fixed typo
  11251. * src/version_usage.cc
  11252. Updated doc
  11253. * doc/aria2c.1.txt
  11254. * doc/aria2c.1
  11255. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11256. Fixed compile error without message digest support.
  11257. * src/FileMetalinkParserState.cc
  11258. * src/MetalinkParserController.{h, cc}
  11259. * test/XML2SAXMetalinkProcessorTest.cc
  11260. * test/MetalinkParserControllerTest.cc
  11261. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11262. Enable direct I/O support in checksum checking.
  11263. * src/IteratableChunkChecksumValidator.{h, cc}
  11264. * test/IteratableChunkChecksumValidatorTest.cc
  11265. * src/CheckIntegrityEntry.cc
  11266. * src/PieceHashCheckIntegrityEntry.cc
  11267. * src/IteratableChecksumValidator.{h, cc}
  11268. * src/BtCheckIntegrityEntry.cc: Added doc.
  11269. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11270. Added --allow-piece-length-change option.
  11271. * src/DefaultBtProgressInfoFile.cc
  11272. * test/DefaultBtProgressInfoFileTest.cc
  11273. * src/OptionHandlerFactory.cc
  11274. * src/option_processing.cc
  11275. * src/prefs.h
  11276. * src/version_usage.cc
  11277. * doc/aria2c.1.txt
  11278. * doc/aria2c.1
  11279. Fixed: duplicated result entry appears when exception is thrown in
  11280. RequestGroup::createInitiateConnectionCommand().
  11281. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11282. Add RequestGroup to _requestGroup after RequetGroup::
  11283. createInitiateConnectionCommand() succeeds.
  11284. Externalized message
  11285. * src/XML2SAXMetalinkProcessor.cc
  11286. * src/message.h
  11287. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11288. Forced download abort when received negative response from http/ftp
  11289. server.
  11290. * src/HttpResponseCommand.cc
  11291. * src/FtpNegotiationCommand.cc
  11292. * src/HttpResponse.cc
  11293. * src/FtpConnection.cc
  11294. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11295. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11296. the predecessor, Xml2MetalinkParser class.
  11297. I tested them against 94KB metalink file with 1234 chunk checksums.
  11298. The new one parsed it in 22msec, while it took 6000msec with old one.
  11299. * src/XML2SAXMetalinkProcessor.{h, cc}
  11300. * test/XML2SAXMetalinkProcessorTest.cc
  11301. * src/MetalinkParserController.{h, cc}
  11302. * test/MetalinkParserControllerTest.cc
  11303. * src/MetalinkParserState.h: Also added 16 subclasses.
  11304. * src/main.cc
  11305. * src/Metalink2RequestGroup.cc
  11306. * src/MetalinkHelper.cc
  11307. * src/MetalinkEntry.cc
  11308. * src/ChunkChecksum.h
  11309. Rewritten Base64 class for better performance.
  11310. * src/Base64.{h, cc}
  11311. * test/Base64Test.cc
  11312. * src/HttpRequest.cc
  11313. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11314. Fixed the bug#1841757: aria2 will connect to server to only get
  11315. file size.
  11316. * src/StreamFileAllocationEntry.cc
  11317. * src/option_processing.cc
  11318. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11319. downloads.
  11320. * src/FtpNegotiationCommand.cc
  11321. Suppressed wrong message when finding PreDownloadHandler
  11322. * src/RequestGroup.cc
  11323. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11324. Updated usage
  11325. * src/version_usage.cc
  11326. Updated man page
  11327. * doc/aria2c.1.txt
  11328. * doc/aria2c.1
  11329. Updated po files
  11330. * po/aria2c.pot
  11331. * po/*.po
  11332. * po/*.gmo
  11333. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11334. Eliminated g++-4.2 warning
  11335. * src/DownloadHandlerConstants.{h, cc}
  11336. * src/Util.cc
  11337. * test/MetaFileUtilTest.cc
  11338. * test/PStringBuildVisitorTest.cc
  11339. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11340. * src/RequestGroup.cc
  11341. * src/BtCheckIntegrityEntry.cc
  11342. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11343. Fixed a2io.h
  11344. * src/a2io.h
  11345. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11346. Added direct I/O support. The current implementation uses O_DIRECT,
  11347. which is not posix standard and is tested on linux 2.6.21.
  11348. Currently only file allocation uses direct I/O.
  11349. * src/SingleFileAllocationIterator.{h, cc}
  11350. * test/SingleFileAllocationIteratorTest.cc
  11351. * src/MultiFileAllocationIterator.{h, cc}
  11352. * test/MultiFileAllocationIteratorTest.cc
  11353. * src/BinaryStream.h
  11354. * src/DiskWriter.h
  11355. * src/AbstractDiskWriter.{h, cc}
  11356. * src/ByteArrayDiskWriter.h
  11357. * src/DiskAdaptor.h
  11358. * src/AbstractSingleDiskAdaptor.{h, cc}
  11359. * src/MultiDiskAdaptor.{h, cc}
  11360. * src/FileAllocationEntry.cc
  11361. * src/Util.{h, cc}
  11362. * src/OptionHandlerFactory.cc
  11363. * src/prefs.h
  11364. * src/version_usage.cc
  11365. * src/option_processing.cc
  11366. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11367. handleException.
  11368. * src/MultiFileAllocationIterator.cc
  11369. Added EINTR handling
  11370. * src/SocketCore.cc
  11371. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11372. Updated usage
  11373. * src/version_usage.cc
  11374. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11375. Applied Ross's patch for MinGW port.
  11376. * src/DownloadEngine.h
  11377. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11378. Set Content-Type to SingleFileDownloadContext when http response is
  11379. received.
  11380. * src/HttpResponseCommand.cc
  11381. * src/HttpResponse.{h, cc}
  11382. * test/HttpResponseTest.cc
  11383. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11384. Rewritten to add content-type support.
  11385. * src/DownloadHandler.{h, cc}
  11386. * src/BtPostDownloadHandler.{h, cc}
  11387. * test/BtPostDownloadHandlerTest.cc
  11388. * src/MetalinkPostDownloadHandler.{h, cc}
  11389. * test/MetalinkPostDownloadHandlerTest.cc
  11390. * src/PostDownloadHandler.{h, cc}
  11391. * src/DownloadHandlerConstants.{h, cc}
  11392. * src/RequestGroup.cc
  11393. * src/HttpResponseCommand.cc
  11394. * src/FtpNegotiationCommand.cc
  11395. * src/SingleFileDownloadContext.{h, cc}
  11396. * src/RequestGroup.h
  11397. * src/RequestGroupCriteria.h
  11398. * src/ContentTypeRequestGroupCriteria.h
  11399. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11400. If it is give, metalink/torrent file is not written to the disk, but
  11401. just is kept in memory. Parsing is occurred on memory.
  11402. * src/MetalinkHelper.{h, cc}
  11403. * src/MetalinkProcessor.h
  11404. * src/Xml2MetalinkProcessor.{h, cc}
  11405. * test/Xml2MetalinkProcessorTest.cc
  11406. * src/DownloadHandlerFactory.{h, cc}
  11407. * test/DownloadHandlerFactoryTest.cc
  11408. * src/PreDownloadHandler.{h, cc}
  11409. * src/OptionHandlerFactory.cc
  11410. * src/DefaultBtContext.{h, cc}
  11411. * test/DefaultBtContextTest.cc
  11412. * src/version_usage.cc
  11413. * src/Metalink2RequestGroup.{h, cc}
  11414. * src/RequestGroup.{h, cc}
  11415. * src/a2functional.h
  11416. * test/a2functionalTest.cc
  11417. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11418. * src/OptionHandlerImpl.h
  11419. * src/prefs.h
  11420. * src/Util.{h, cc}
  11421. * test/UtilTest.cc
  11422. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11423. memory usage.
  11424. * src/RequestGroupMan.{h, cc}
  11425. * src/DownloadEngine.cc
  11426. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11427. WeakHandle to SharedHandle because WeakHandle could be null.
  11428. * src/RequestGroup.{h, cc}
  11429. * src/DownloadEngineFactory.cc
  11430. * src/DownloadResult.h
  11431. Set totalLength after download finished
  11432. * src/UnknownLengthPieceStorage.{h, cc}
  11433. Keep torrent file specified in metalink in memory.
  11434. * src/Metalink2RequestGroup.cc
  11435. * src/BtDependency.cc
  11436. * src/TrueRequestGroupCriteria.h
  11437. Fixed the bug: seekg is used where seekp should be used.
  11438. * src/ByteArrayDiskWriter.cc
  11439. * test/ByteArraydiskWriterTest.cc
  11440. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11441. Fixed syntax error
  11442. * test/SequenceTest.cc
  11443. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11444. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11445. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11446. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11447. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11448. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11449. Added the check to see whether ares_host_callback accepts timeouts
  11450. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11451. * src/NameResolver.{h, cc}
  11452. * m4/libcares.m4
  11453. * configure.ac: Set C++ for language choice.
  11454. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11455. Fixed: compilation fails without c-ares/ares
  11456. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11457. Generate http/ftp commands only when download is incomplete.
  11458. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11459. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11460. Corrected typo. Examples are removed since they are available in man
  11461. page.
  11462. * src/version_usage.cc
  11463. Updated man page.
  11464. * doc/aria2c.1
  11465. * doc/aria2c.1.txt
  11466. * doc/makeman: Commented out sed command.
  11467. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11468. Throw DlAbortEx when a remote file is not found.
  11469. * src/HttpResponse.cc
  11470. * src/FtpNegotiationCommand.cc
  11471. * src/message.h
  11472. Overwrite an existing file if --allow-overwrite=true is given.
  11473. * src/RequestGroup.cc
  11474. Removed unused functions
  11475. * src/AbstractCommand.h
  11476. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11477. Removed 'extern' from 'extern typedef ...' in src/*.h
  11478. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11479. Updated usage
  11480. * src/version_usage.cc
  11481. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11482. Trim announce URL
  11483. * src/DefaultBtContext.cc
  11484. * test/ShaVisitorTest.cc
  11485. Trim argument s. Give trimed s to exception constructor.
  11486. * src/Util.cc (parseInt)(parseLLInt)
  11487. * test/UtilTest.cc
  11488. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11489. Set precision back to 1.
  11490. * src/ConsoleStatCalc.cc (calculateStat)
  11491. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11492. Replaced strtol with Util::parseInt
  11493. * src/ChunkedEncoding.cc
  11494. * src/HttpConnection.cc
  11495. * src/CookieBoxFactory.cc
  11496. * src/ParameterizedStringParser.cc
  11497. * src/Util.cc
  11498. * test/UtilTest.cc
  11499. * test/OptionHandlerTest.cc
  11500. * src/Request.cc
  11501. Throw exception when empty string is given. The message for exception
  11502. changed.
  11503. * src/Util.cc (parseInt)(parseLLInt)
  11504. * src/message.h
  11505. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11506. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11507. set to 1.
  11508. * src/ConsoleStatCalc.cc (calculateStat)
  11509. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11510. Preallocate non-requested file which is adjacent forward to requested
  11511. file('requested' files means the files given in --select-file option)
  11512. if they share a same piece.
  11513. This fixes long pause in the file system which doesn't support sparse
  11514. files like FAT32 while downloading.
  11515. * src/MultiFileAllocationIterator.{h, cc}
  11516. * test/MultiFileAllocationIteratorTest.cc
  11517. * src/FileEntry.{h, cc}
  11518. Removed unused _option.
  11519. * src/MultiDiskAdaptor.h
  11520. * test/MultiDiskAdaptorTest.cc
  11521. * src/DefaultPieceStorage.cc
  11522. Set the default value of --seed-ratio to 1.0.
  11523. If 0.0 is given, then seeding continues regardless of share ratio.
  11524. * src/version_usage.cc
  11525. * src/option_processing.cc
  11526. * src/BtSetup.cc
  11527. * doc/aria2c.1.txt
  11528. * doc/aria2c.1
  11529. Fixed: Selective download is not working in BitTorrent
  11530. * src/RequestGroup.cc
  11531. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11532. * src/PieceStorage.h
  11533. * test/MockPieceStorage.h
  11534. * src/UnknownLengthPieceStorage.h
  11535. * src/DefaultPieceStorage.{h, cc}
  11536. * src/Metalink2RequestGroup.cc
  11537. * src/RequestGroup.cc
  11538. * src/Sequence.h
  11539. * test/SequenceTest.cc
  11540. * src/IntSequence.h
  11541. * src/message.h
  11542. * src/Util.{h, cc}
  11543. * test/UtilTest.cc
  11544. Added new function 'parse' to catch exception thrown by subclass's
  11545. parseArg
  11546. * src/OptionHandler.h
  11547. * src/OptionParser.cc
  11548. * src/NameMatchOptionHandler.h
  11549. * src/OptionHandlerImpl.h
  11550. * test/OptionHandlerTest.cc
  11551. Added IntegerRangeOptionHandler. Used for --listen-port and
  11552. --select-file. Now --listen-port accepts range of port.
  11553. * src/OptionHandlerFactory.cc
  11554. * src/version_usage.cc
  11555. * src/OptionHandlerImpl.h
  11556. * src/option_processing.cc
  11557. * src/BtSetup.cc
  11558. * src/PeerListenCommand.{h, cc}
  11559. * doc/aria2c.1.txt
  11560. * doc/aria2c.1
  11561. Implemented operator< for Exception class to provide easy way to print
  11562. exception stack trace.
  11563. * src/Exception.{h, cc}
  11564. * src/main.cc
  11565. * src/option_processing.cc
  11566. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11567. * src/version_usage.cc
  11568. (showVersion): Reworked.
  11569. (showUsage): Added examples.
  11570. Removed Hint for total length and file name.
  11571. * src/Metalink2RequestGroup.cc
  11572. * src/RequestGroup.{h, cc}
  11573. * src/HttpResponseCommand.cc
  11574. * src/FtpNegotiationCommand.cc
  11575. Now --follow-torrent and --follow-metalink option work properly.
  11576. * src/RequestGroup.cc
  11577. Updated man page
  11578. * doc/aria2c.1.txt
  11579. * doc/aria2c.1
  11580. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11581. Removed.
  11582. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11583. Use Segment::operator==()
  11584. * src/HttpConnection.cc
  11585. * src/Segment.h
  11586. Updated usage
  11587. * src/version_usage.cc
  11588. Added EINTR treatment.
  11589. * src/SocketCore.cc
  11590. * src/AbstractDiskWriter.cc
  11591. Rewritten.
  11592. * src/Util.cc (rangedFileCopy)
  11593. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11594. Fixed typo.
  11595. * src/version_usage.cc
  11596. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11597. Implemented. Now -c option works fine.
  11598. * src/DefaultPieceStorage.cc (markPiecesDone)
  11599. * test/DefaultPieceStorageTest.cc
  11600. Removed.
  11601. * src/SegmentMan.{h, cc}
  11602. (markAllPiecesDone)
  11603. (markPieceDone)
  11604. Synchronized po files with
  11605. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11606. * src/fr.po
  11607. * src/ru.po
  11608. * src/de.po
  11609. * src/ja.po
  11610. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11611. Added ifdef and some modifications to compile without BitTorrent,
  11612. Metalink, MessageDigest
  11613. support.
  11614. * src/PieceHashCheckIntegrityEntry.cc
  11615. * src/MetalinkEntry.h
  11616. * src/version_usage.cc
  11617. * src/main.cc
  11618. * src/DownloadEngine.{h, cc}
  11619. * src/Metalink2RequestGroup.cc
  11620. * src/Peer.cc
  11621. * src/RequestGroup.cc
  11622. * src/MetalinkHelper.cc
  11623. * test/DefaultPieceStorageTest.cc
  11624. * test/MetalinkPostDownloadHandlerTest.cc
  11625. * test/Metalink2RequestGroupTest.cc
  11626. Hide TOTAL SPD when all downloads complete.
  11627. * src/ConsoleStatCalc.cc
  11628. Log target system information.
  11629. * src/main.cc
  11630. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11631. Now --metalink-location accepts a comma-deliminated list of locations.
  11632. * src/MetalinkEntry.{h, cc}
  11633. * test/MetalinkEntryTest.cc
  11634. * src/version_usage.cc
  11635. * src/Metalink2RequestGroup.cc
  11636. * src/Xml2MetalinkProcessor.cc
  11637. * test/Xml2MetalinkProcessorTest.cc
  11638. * doc/aria2c.1.txt
  11639. * doc/aria2c.1
  11640. * src/Util.cc (toUpper)(toLower): Rewritten.
  11641. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11642. Added the ability to detect duplicate download entry which is about to
  11643. download the same file other RequestGroup is downloading.
  11644. * src/RequestGroup.cc
  11645. * src/HttpResponseCommand.cc
  11646. * src/FtpNegotiationCommand.cc
  11647. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11648. Recalculates download progress when loading a control file,
  11649. if the piece length of DownloadContext is different from the one saved
  11650. in the control file. Currently in-flight pieces are ignored.
  11651. * src/DefaultBtProgressInfoFile.cc
  11652. * test/DefaultBtProgressInfoFileTest.cc
  11653. * src/Util.{h, cc}
  11654. * test/UtilTest.cc
  11655. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11656. Do not rotate tiers in announce-list.
  11657. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11658. AnnounceList::allTiersFailed() used instead to detect whether all
  11659. tiers are tried and failed.
  11660. * test/DefaultBtAnnounceTest.cc
  11661. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11662. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11663. * test/AnnounceListTest.cc
  11664. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11665. clause. Catch RecoverableException instead of DlRetryEx instead.
  11666. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11667. Implemented checksum validation feature(1 checksum for each file)
  11668. The validation takes place after the download.
  11669. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11670. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11671. * src/CheckIntegrityCommand.cc: Changed log message.
  11672. * src/Metalink2RequestGroup.cc: Set checksum to
  11673. SingleFileDownloadContext.
  11674. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11675. PieceHashCheckIntegrity class.
  11676. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11677. PieceHashCheckIntegrity class.
  11678. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11679. * src/IteratableValidator.h: New class.
  11680. * src/message.h
  11681. * src/CheckIntegrityEntry.{h, cc}
  11682. * src/IteratableChunkChecksumValidator.{h, cc}
  11683. * src/SingleFileDownloadContext.h
  11684. * src/DownloadCommand.cc
  11685. --allow-overwrite=true is no longer needed to check file integrity
  11686. before download in BitTorrent download.
  11687. * src/RequestGroup.cc (getInitialCommand)
  11688. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11689. throws exception.
  11690. * src/RequestGroupMan.cc (getInitialCommands)
  11691. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11692. urlencode the given url inside Request::parseUrl(...)
  11693. * src/Request.{h, cc}
  11694. * src/Util.{h, cc}
  11695. * test/RequestTest.cc
  11696. Removed #!metalink3! notation support because it is deleted from
  11697. the metalink specification.
  11698. * src/Request.{h, cc}
  11699. * test/RequestTest.cc
  11700. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11701. Don't connect server before checking file integrity at startup, if
  11702. filesize and output file path are known.
  11703. * src/AbstractCommand.cc
  11704. * src/StreamFileAllocationEntry.cc
  11705. * src/Metalink2RequestGroup.cc
  11706. * src/RequestGroup.{h, cc}
  11707. * src/HttpResponseCommand.cc
  11708. * src/FtpNegotiationCommand.cc
  11709. Added DownloadFailureException. If it is thrown, RequestGroup should
  11710. halt.
  11711. * src/AbstractCommand.cc
  11712. * src/DownloadFailureException.h
  11713. * src/RequestGroup.cc
  11714. Catch RecoverableException, instead of DlAbortEx.
  11715. * src/RequestGroupMan.cc
  11716. * src/FillRequestGroupCommand.cc
  11717. * src/MetaFileUtil.cc
  11718. * src/IteratableChunkChecksumValidator.cc
  11719. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11720. getGID())
  11721. * src/CheckIntegrityCommand.cc
  11722. * src/message.h
  11723. Print gid instead of idx.
  11724. * src/RequestGroupMan.cc
  11725. Removed exception throwers declaration.
  11726. * src/DirectDiskAdaptor.{h, cc}
  11727. * src/SocketCore.{h, cc}
  11728. * src/MultiDiskAdaptor.{h, cc}
  11729. * src/HttpConnection.{h, cc}
  11730. * src/HttpResponse.{h, cc}
  11731. * src/DiskAdaptor.{h, cc}
  11732. * src/CopyDiskAdaptor.{h, cc}
  11733. * src/MultiDiskAdaptor.{h, cc}
  11734. * src/HttpHeaderProcessor.{h, cc}
  11735. * src/AbstractSingleDiskAdaptor.{h, cc}
  11736. * src/Util.{h, cc}
  11737. * test/UtilTest.cc
  11738. * src/DefaultDiskWriter.{h, cc}
  11739. * src/FtpConnection.{h, cc}
  11740. * src/AbstractDiskWriter.{h, cc}
  11741. Removed duplicate code.
  11742. * src/StreamCheckIntegrityEntry.cc
  11743. Removed unnecessary include.
  11744. * src/DiskWriter.h
  11745. Included Exception.h
  11746. * src/option_processing.cc
  11747. Included 2 files and added doc
  11748. * src/TrackerWatcherCommand.cc
  11749. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11750. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11751. Changed CheckIntegrityEntry interface so that it can define
  11752. the action when all the chunk checksums are valid.
  11753. * src/CheckIntegrityEntry.h
  11754. * src/StreamCheckIntegrityEntry.{h, cc}
  11755. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11756. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11757. to exit rather than doing seeding. So, it would be good to toggle this
  11758. behavior.
  11759. * src/CheckIntegrityCommand.cc
  11760. * src/AbstractCommand.cc
  11761. * src/RequestGroup.cc
  11762. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11763. Reflect the download length of in-flight pieces.
  11764. It makes the download length readout more precise.
  11765. * src/DefaultPieceStorage.{h, cc}
  11766. * test/DefaultPieceStorageTest.cc
  11767. * src/a2functional.h
  11768. * test/a2functionalTest.cc
  11769. Lower CPU load when --max-download-limit is used.
  11770. There is up and down in speed indicator when enabling
  11771. http-pipelining but a download goes well. I think the problem is that
  11772. because http-pipelining is enabled, DownloadCommand is created for
  11773. each segment and in its constructor, PeerStat::downloadStart() is
  11774. called. In PeerStat::downloadStart(), speed calculation object is
  11775. reseted, which makes download speed zero.
  11776. * src/DownloadCommand.cc
  11777. Rewritten using accumulate.
  11778. * src/RequestGroupMan.cc (calculateStat)
  11779. Code clearnup.
  11780. * src/FtpNegotiationCommand.cc
  11781. * src/HttpResponseCommand.cc
  11782. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11783. Fixed: Can not resume: aria2 reports download already finished.
  11784. * src/AbstractCommand.{h, cc}
  11785. * src/HttpResponseCommand.cc
  11786. * src/FtpNegotiateCommand.cc
  11787. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11788. Now a file is stored in the directory specified in .metalnk file
  11789. (file[@name]).
  11790. * src/Metalink2RequestGroup.cc
  11791. Create the directory structure when opening the file if it doesn't
  11792. exist.
  11793. * src/AbstractDiskWriter.cc
  11794. * src/Util.{h, cc}
  11795. * src/File.h
  11796. * test/UtilTest.cc
  11797. Removed file name comparison
  11798. * src/Metalink2RequestGroup.cc
  11799. * src/HttpResponseCommand.cc
  11800. Rewritten using Util::mkdirs()
  11801. * src/FileEntry.cc (setupDir)
  11802. * test/FileEntryTest.cc
  11803. Updated doc
  11804. * src/SingleFileDownloadContext.h
  11805. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11806. Now SleepCommand dispatches nextCommand when halt is requested.
  11807. It avoids a possible long wait after hitting CTRL-C.
  11808. * src/SleepCommand.{h, cc}
  11809. * src/RequestGroupAware.{h, cc}
  11810. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11811. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  11812. to open listen port, then remove the port number from the tracker
  11813. request.
  11814. * src/DefaultBtAnnounce.cc
  11815. * test/DefaultBtAnnounceTest.cc
  11816. * test/MockPieceStorage.h
  11817. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  11818. them more testable.
  11819. * src/DefaultBtAnnounce.{h, cc}
  11820. * src/DefaultBtContext.{h, cc}
  11821. * src/Util.{h, cc}
  11822. * test/DefaultBtAnnounceTest.cc
  11823. * test/DefaultBtContextTest.cc
  11824. * test/UtilTest.cc
  11825. Added 'B' to upload bytes readout.
  11826. * src/ConsoleStatCalc.cc
  11827. Now the listen port for BitTorrent download is opened when it is
  11828. needed.
  11829. * src/DownloadEngineFactory.cc
  11830. * src/BtSetup.{h, cc}
  11831. * src/PeerListenCommand.{h, cc}
  11832. Now an exception thrown while parsing tracker response is now logged.
  11833. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  11834. called, which means no retry is made in this case, assuming a tracker
  11835. has a problem.
  11836. * src/TrackerWatcherCommand.cc
  11837. Fixed: downloading a file whose length is unkown fails.
  11838. * src/DownloadCommand.cc
  11839. Simplified prepareForNextSegment()
  11840. * src/DownloadCommand.cc
  11841. Updated
  11842. * po/POTFILES.in
  11843. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11844. Re-implemented a file listing for Metalink, which was dropped while
  11845. http/ftp/torrent integration was being implemented.
  11846. * src/MetalinkHelper.{h, cc}: New class.
  11847. * test/MetalinkHelperTest.cc
  11848. * src/main.cc
  11849. * src/Metalink2RequestGroup.cc
  11850. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11851. Added the ability to display the detailed torrent file information.
  11852. Now -S option gives not only a file listing, but also total download
  11853. length, info hash, announce URI, piece length, the number of pieces,
  11854. and mode(single or multi-torrent).
  11855. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  11856. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  11857. KiB)
  11858. * test/UtilTest.cc
  11859. * src/main.cc
  11860. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11861. Added ftp://USER:PASSWD@Servername automatic parsing.
  11862. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  11863. _password. Recognize username and password in URI.
  11864. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11865. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11866. * src/RequestFactory.{h, cc}: Removed.
  11867. * src/AuthConfigFactory.{h, cc}: New class.
  11868. * src/FtpConnection.cc: Use AuthConfigFactory.
  11869. * src/HttpRequest.cc: Use AuthConfigFactory.
  11870. * test/HttpRequestTest.cc: Updated.
  11871. * test/RequestTest.cc: Updated.
  11872. * test/AuthConfigFactoryTest.cc: New class.
  11873. * test/RequestFactoryTest.cc: Removed.
  11874. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11875. Use RequestGroup::allDownloadFinished() to decide whether the control
  11876. file should be removed or saved.
  11877. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11878. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11879. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11880. Use File::renameTo()
  11881. * src/DefaultBtProgressInfoFile.cc
  11882. Added --no-file-allocation-limit command-line option.
  11883. * src/version_usage.cc
  11884. * src/option_processing.cc
  11885. * src/OptionHandlerFactory.cc
  11886. * src/RequestGroup.{h, cc}
  11887. * src/BtCheckIntegrityEntry.cc
  11888. * src/StreamCheckIntegrityEntry.cc
  11889. * src/prefs.h
  11890. * doc/aria2c.1.txt
  11891. * doc/aria2c.1
  11892. Now prealloc is the default value for --file-allocation option.
  11893. * src/version_usage.cc
  11894. * src/option_processing.cc
  11895. * doc/aria2c.1.txt
  11896. * doc/aria2c.1
  11897. Don't URL-encode user-agent.
  11898. * src/HttpRequest.cc
  11899. Updated translations
  11900. * po/LINGUAS: Added nl for Dutch translation.
  11901. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11902. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11903. * po/POTFILES.in: Updated.
  11904. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11905. Added the ability to recognize url-list in a torrent file.
  11906. The retrieved URLs are attached to the corresponding FileEntry.
  11907. * src/DefaultBtContext.{h, cc}
  11908. * src/FileEntry.{h, cc}
  11909. * test/DefaultBtContextTest.cc
  11910. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11911. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11912. after the download finishes.
  11913. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11914. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11915. the data smaller than block length.
  11916. A block length can be specified by constructor's argument.
  11917. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11918. Get a missing piece in the range of given FileEntry. This function is
  11919. not used in the program yet.
  11920. * src/Util.h: Added some macros.
  11921. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11922. Added HTTP/1.1 keep alive and pipelining support.
  11923. See --enable-http-keep-alive and --enable-http-pipelining option.
  11924. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11925. Segment.
  11926. * src/HttpDownloadCommand.{h, cc}
  11927. * src/OptionHandlerFactory.cc
  11928. * src/HttpConnection.{h, cc}
  11929. * src/version_usage.cc
  11930. * src/HttpInitiateConnectionCommand.cc
  11931. * src/FtpInitiateConnectionCommand.cc
  11932. * src/Segment.h
  11933. * src/HttpRequestCommand.{h, cc}
  11934. * src/option_processing.cc
  11935. * src/prefs.h
  11936. * src/HttpResponseCommand.cc
  11937. * src/SegmentMan.{h, cc}
  11938. * src/FtpNegotiateCommand.cc
  11939. * src/HttpProxyResponseCommand.cc
  11940. * src/Request.cc
  11941. * src/HttpRequest.cc
  11942. * src/DownloadCommand.cc
  11943. * test/HttpRequestTest.cc
  11944. * test/RequestTest.cc
  11945. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11946. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11947. finished.
  11948. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11949. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11950. catching it inside the method.
  11951. When no file entry is found in a metalink without querying user
  11952. preferences, throw the exception with the error message that suggests
  11953. metalink file is probably broken.
  11954. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11955. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11956. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11957. processed.
  11958. * src/RequestGroupMan.cc (removeStoppedGroup)
  11959. Added debug message.
  11960. * src/BtPostDownloadHandler.cc
  11961. * src/MetalinkPostDownloadHandler.cc
  11962. * src/PostDownloadHandler.{h, cc}
  11963. * src/RequestGroup.cc
  11964. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11965. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11966. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11967. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11968. stops and there are any unfinished or in-progress downloads.
  11969. Added the legend of "stat".
  11970. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11971. Throw exception when chunck checksum verification fails.
  11972. * src/DownloadCommand.cc (validatePieceHash): New function.
  11973. * src/PiecedSegment.{h, cc} (clear): New function.
  11974. * src/GrowSegment.{h, cc} (clear): New function.
  11975. * src/Segment.h (clear): New function.
  11976. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11977. * test/SegmentTest.cc
  11978. * test/GrowSegmentTest.cc
  11979. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11980. Do not send referer when redirected.
  11981. * src/Request.cc (redirectUrl)
  11982. * test/RequestTest.cc
  11983. * test/HttpRequestTest.cc
  11984. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11985. Implemented BitTorrent/http/ftp integrated download.
  11986. I've rewritten lots of files and now some headers have forward
  11987. class declarations to reduce compile time.
  11988. The implementation is extremely alpha stage, I recommend to use this
  11989. for testing purpose only.
  11990. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11991. Fixed the compilation error on 64bit platform.
  11992. * test/HttpHeaderProcessorTest.cc
  11993. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11994. Merged Ross's patch that fixes compilation problem in MinGW
  11995. * test/DefaultBtProgressInfoFileTest.cc
  11996. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11997. Updated fr.po by sebone
  11998. * po/fr.po
  11999. Updated man page.
  12000. * doc/aria2c.1.txt
  12001. * Release 0.11.3
  12002. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12003. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12004. failure in Metalink.
  12005. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12006. Automatically save *.aria2 control file of http/ftp download in every
  12007. 60 seconds.
  12008. * src/AutoSaveCommand.{h, cc}: New class.
  12009. * src/TimeBasedCommand.{h, cc}: New class.
  12010. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12011. Disable parameterized URI support by default. Added -P option to
  12012. enable the feature.
  12013. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12014. * src/OptionHandlerFactory.cc
  12015. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12016. Updated Japanese translation.
  12017. * po/ja.po
  12018. Updated man page.
  12019. * doc/aria2c.1.txt
  12020. * Release 0.11.3-rc
  12021. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12022. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12023. it is successful, then renamed to *.aria2.
  12024. This prevents *.aria2 file from being truncated or corrupted when
  12025. file system becomes out of space.
  12026. * src/DefaultBtProgressInfoFile.cc (save)
  12027. * src/SegmentMan.cc (save)
  12028. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12029. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12030. Reduced the fragmentation of bitfield in http/ftp download.
  12031. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12032. * test/BitfieldManTest.cc
  12033. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12034. Added the ability to disable segmented download in .metalink.
  12035. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12036. 'url' tag.
  12037. * src/MetalinkEntry.{h, cc}
  12038. * src/RequestResource.{h, cc}
  12039. * src/MetalinkRequestInfo.cc
  12040. * src/Xml2MetalinkProcessor.cc
  12041. * test/Xml2MetalinkProcessorTest.cc
  12042. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12043. Added parameterized URI support.
  12044. * src/main.cc: -Z option added.
  12045. * src/OptionHandlerFactory.cc
  12046. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12047. * src/PStringDatum.h: New class.
  12048. * src/PStringSegment.{h,cc}: New class.
  12049. * src/PStringNumLoop.h: New class.
  12050. * src/PStringSelect.h: New class.
  12051. * src/NumberDecorator.h: New class.
  12052. * src/FixedWidthNumberDecorator.h: New class.
  12053. * src/AlphaNumberDecorator.h: New class.
  12054. * src/PStringVisitor.h: New class.
  12055. * src/PStringBuildVisitor.{h,cc}: New class.
  12056. * src/ParameterizedStringParser.{h,cc}: New class.
  12057. * src/Util.{h,cc}
  12058. (isNumber): New function.
  12059. (isLowercase): New function.
  12060. (isUppercase): New function.
  12061. (alphaToNum): New function.
  12062. * test/ParameterizedStringParserTest.cc: New class.
  12063. * test/AlphaNumberDecoratorTest.cc: New class.
  12064. * test/PStringBuildVisitorTest.cc: New class.
  12065. * test/UtilTest.cc
  12066. (testIsNumber): New function.
  12067. (testIsLowercase): New function.
  12068. (testIsUppercase): New function.
  12069. (testAlphaToNum): New function.
  12070. Added '\n' after the error message
  12071. * src/RequestInfo.h (printDownloadAbortMessage)
  12072. Added auto file renaming feature in http(s)/ftp download.
  12073. * src/main.cc: Added --auto-file-renaming command-line option.
  12074. * src/OptionHandlerFactory.cc
  12075. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12076. * src/RequestGroup.{h, cc}
  12077. (shouldCancelDownloadForSafety): Rewritten
  12078. (tryAutoFileRenaming): New function.
  12079. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12080. * src/HttpResponseCommand.cc
  12081. (executeInternal): Removed the call to RequestGroupMan::
  12082. isSameFileBeingDownloaded()
  12083. * src/FtpNegotiateCommand.cc
  12084. (recvSize): Removed the call to RequestGroupMan::
  12085. isSameFileBeingDownloaded()
  12086. * test/RequestGroupTest.cc: New class.
  12087. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12088. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12089. IO.
  12090. * src/DefaultBtProgressInfoFile.cc
  12091. * src/MetaFileUtil.cc
  12092. * src/SimpleLogger.cc
  12093. * src/SegmentMan.cc
  12094. * src/Util.cc
  12095. * src/Platform.cc
  12096. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12097. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12098. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12099. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12100. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12101. Fixed the bug that prevents file allocation is not done when
  12102. dowloading multi-torrent file.
  12103. * src/AbstractDiskWriter.cc (openFile)
  12104. Increase the maximum number of -j option from 15 to 45.
  12105. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12106. Added fr.po, thanks to Charles Landemaine.
  12107. * po/fr.po
  12108. * po/LINGUAS
  12109. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12110. gcc 3.4.4 support:
  12111. * src/DefaultBtContext.cc: int32_t -> int
  12112. * src/main.cc: int -> int32_t, int32_t -> int
  12113. * src/messageDigest.h: uint32_t -> unsigned int
  12114. * src/NameResolver.h: int32_t -> int
  12115. * src/PeerConnection.cc: int -> int32_t
  12116. * src/SpeedCalc.cc: int32_t -> int
  12117. * src/TrackerUpdateCommand.h: int -> int32_t
  12118. * src/Util.cc: int32_t -> int
  12119. * src/Util.h: int32_t -> int
  12120. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12121. * test/AnnounceListTest.cc: int -> int32_t
  12122. * test/ChunkedEncodingTest.cc: int -> int32_t
  12123. * test/DataTest.cc: int -> int32_t
  12124. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12125. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12126. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12127. * test/FeatureConfigTest.cc: int -> int32_t
  12128. * test/MetalinkEntryTest.cc: int -> int32_t
  12129. * test/MockBtRequestFactory.h: int -> int32_t
  12130. * test/MockPieceStorage.h: int -> int32_t
  12131. * test/OptionTest.cc: int -> int32_t
  12132. * test/RequestTest.cc: int -> int32_t
  12133. * test/SegmentManTest.cc: int -> int32_t
  12134. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12135. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12136. Move sleep functions to Util class:
  12137. * src/Util.cc
  12138. (sleep): New function.
  12139. (usleep): New function.
  12140. * src/DownloadCommand.cc: sleep -> Util::sleep
  12141. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12142. MinGW build enhancements. The following files are added:
  12143. * src/timegm.{c,h}
  12144. Changes to support the above new files:
  12145. * configure.ac
  12146. * src/Makefile.am
  12147. * src/a2time.h
  12148. * src/Util.cc:
  12149. * src/strptime.c: Added support for %Z option.
  12150. Fixed MinGW non-blocking bug.
  12151. * src/SocketCore.cc
  12152. * src/HttpRequestCommand.cc
  12153. Miscellenous build fixes/enhancements.
  12154. * configure.ac: Added summary report.
  12155. * src/Platform.h: Tweaked #include's.
  12156. * src/a2netcompat.h: Tweaked #include's.
  12157. * src/strptime.h: Tweaked #include's.
  12158. * src/gai_strerror.c: Tweaked #include's.
  12159. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12160. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12161. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12162. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12163. Increased the initial connection size in BitTorrent download to 40.
  12164. * src/BtRuntime.h
  12165. Added the usage message of --peer-id-prefix option.
  12166. * src/main.cc
  12167. * Release 0.11.2
  12168. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12169. MessageDigestHelper is introduced in order to simplify the use
  12170. of message digest. Removed repeated code.
  12171. The message digest algorithm is now specified by string, like "sha1",
  12172. "md5".
  12173. * src/messageDigest.{h, cc}
  12174. * src/MessageDigestHelper.{h, cc}: New class.
  12175. * src/DefaultPieceStorage.cc
  12176. * src/DefaultBtContext.{h, cc}
  12177. (computeFastSet): New function.
  12178. (setInfoHash): Added for unit testing.
  12179. (setNumPieces): Added for unit testing.
  12180. * src/DefaultBtInteractive.cc
  12181. * src/BtPieceMessage.cc
  12182. * src/Peer.cc
  12183. * src/Checksum.h
  12184. * src/message.h
  12185. * src/IteratableChecksumValidator.h
  12186. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12187. inside it.
  12188. * src/SegmentMan.{h, cc}
  12189. (checkIntegrity): Removed.
  12190. * src/IteratableChunkChecksumValidator.{h, cc}
  12191. * src/Util.h
  12192. (sha1Sum): Removed.
  12193. (simpleMessageDigest): Removed.
  12194. (fileChecksum): Removed.
  12195. (computeFastSet): Removed.
  12196. * src/ShaVisitor.cc
  12197. * src/ChunkChecksum.h
  12198. * src/DownloadCommand.cc
  12199. Removed messageDigest virtual functions.
  12200. * src/MultiDiskAdaptor.{h, cc}
  12201. * src/DiskAdaptor.h
  12202. * src/ByteArrayDiskWriter.h
  12203. * src/DiskWriter.h
  12204. * src/DiskAdaptorWriter.h
  12205. * src/AbstractSingleDiskAdaptor.{h, cc}
  12206. * src/AbstractDiskWriter.{h, cc}
  12207. Fixed comilation error when message digest is disabled.
  12208. * src/MetalinkEntry.{h, cc}
  12209. * src/MetalinkRequestInfo.cc
  12210. Removed srandom and random.
  12211. * src/SimpleRandomizer.h
  12212. Added size() virtual function to DiskAdaptor
  12213. * src/MultiDiskAdaptor.h
  12214. Fixed the bug that causes that files are not opened correctly in
  12215. multi-file torrent.
  12216. * src/TorrentRequestInfo.cc
  12217. * src/MultiDiskAdaptor.cc
  12218. Added SHA256 support
  12219. * src/messageDigest.cc
  12220. * src/Xml2MetalinkProcessor.cc
  12221. Show supported message digest algorithms
  12222. * src/main.cc
  12223. Updated contact info.
  12224. * src/main.cc
  12225. Applied Ross's patch
  12226. * src/a2netcompat.h
  12227. * src/main.cc
  12228. Fixed the bug that prevents a remote metalink from not being processed
  12229. even if '-o foo.metalink' is specified.
  12230. * src/MetalinkRequestInfo.cc
  12231. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12232. Merged Dan's patch:
  12233. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12234. Use va_copy to avoid core dump on amd64:
  12235. * src/SimpleLogger.cc
  12236. Updated contact info.
  12237. * src/main.cc
  12238. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12239. digest is not available.
  12240. * src/MetalinkEntry.h
  12241. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12242. Make a2netcompat.h include a2io.h to fix compilation error:
  12243. * src/a2netcompat.h
  12244. * src/SocketCore.cc: Removed include of a2io.h
  12245. * src/Util.cc: Removed include of a2io.h
  12246. Gather time related functions to a2time.h:
  12247. * src/a2time.h: New file.
  12248. * src/DefaultPeerStorage.cc
  12249. * src/SimpleLogger.cc
  12250. * src/Util.{h, cc}
  12251. * src/SimpleRandomizer.h
  12252. * src/TimeA2.{h,cc}
  12253. * src/DownloadCommand.cc
  12254. * src/main.cc
  12255. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12256. a2netcompat.h:
  12257. * src/NameResolver.cc
  12258. Fixed compilation error without openssl:
  12259. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12260. Added default block to suppress compiler warnings:
  12261. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12262. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12263. MinGW build enhancements. The following files are added:
  12264. * src/gai_strerror.{c,h}
  12265. * src/gettimeofday.{c,h}
  12266. Changes to support the above new files:
  12267. * configure.ac
  12268. * src/Makefile.am
  12269. * src/a2netcompat.h
  12270. * src/TimeA2.cc
  12271. * src/DefaultPeerStorage.cc
  12272. * src/NameResolver.cc: removed mingw_strerror() function.
  12273. * src/SocketCore.cc: removed mingw_strerror() function.
  12274. Miscellaneous MinGW build fixes.
  12275. * src/a2io.h: Use _lseeki64() instead of lseek()
  12276. * src/common.h
  12277. * src/DefaultFileAllocator.cc
  12278. * src/GlowFileAllocator.cc
  12279. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12280. * src/NameResolver.cc
  12281. (callback): Changed int32_t to int.
  12282. (resolve): Changed int32_t to int.
  12283. * src/Platform.cc
  12284. * src/Platform.h
  12285. * test/MultiDiskWriterTest.cc
  12286. * test/PeerMessageUtilTest.cc
  12287. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12288. Other enhancements and fixes.
  12289. * src/HttpRequestCommand.cc
  12290. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12291. * src/SocketCore.cc:
  12292. (error): New function to abstract errno/WSAGetLastError().
  12293. (errorMsg): New function to abstract errno/WSAGetLastError().
  12294. (initiateSecureConnection): Added more detailed error reporting.
  12295. * src/SocketCore.h: Added private variable blocking, to allow
  12296. proper handling of OpenSSL psuedo-errors.
  12297. * src/message.h
  12298. (EX_SSL_INIT_FAILURE)
  12299. (EX_SSL_IO_ERROR)
  12300. (EX_SSL_PROTOCOL_ERROR)
  12301. (EX_SSL_UNKNOWN_ERROR)
  12302. (EX_SSL_CONNECT_ERROR)
  12303. (EX_SOCKET_BLOCKING)
  12304. (EX_SOCKET_NONBLOCKING)
  12305. (EX_SOCKET_UNKNOWN_ERROR)
  12306. * src/Util.cc
  12307. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12308. reserved name.
  12309. (httpGMT): Fixed typo.
  12310. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12311. Merged Ross's win32 patch(manually)
  12312. In the course of merging, following files are added.
  12313. * src/strptime.{h,c}
  12314. * src/libgen.{h,c}
  12315. * src/inet_aton.{h,c}
  12316. * src/Platform.{h,cc}
  12317. * src/localtime_r.{h,c}
  12318. * src/getaddrinfo.{h,c}
  12319. I've gethered network related things, and put them to following file:
  12320. * src/a2netcompat.h
  12321. Also io related things are put to following file:
  12322. * src/a2io.h
  12323. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12324. * src/message.h
  12325. (MSG_ALLOCATION_COMPLETED)
  12326. (EX_TOO_LARGE_FILE)
  12327. (EX_SIZE_MISMATCH)
  12328. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12329. (EX_INVALID_CHUNK_CHECKSUM)
  12330. (EX_INVALID_RANGE_HEADER)
  12331. * src/FileAllocationCommand.cc
  12332. * src/HttpResponse.cc
  12333. * src/RequestGroup.cc
  12334. * src/MultiDiskAdaptor.cc
  12335. * src/OptionHandlerImpl.h
  12336. * src/HttpResponseCommand.cc
  12337. * src/FtpNegotiateCommand.cc
  12338. * src/IteratableChecksumValidator.cc
  12339. * src/SegmentMan.cc
  12340. * src/ChunkChecksumValidator.cc
  12341. Added Randomizer::getRandomNumber(long int)
  12342. * src/Randomizer.h (getRandomNumber)
  12343. * src/SimpleRandomizer.h (getRandomNumber)
  12344. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12345. * src/Util.cc (randomAlpha): Use this new function.
  12346. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12347. Converted int's to in32_t. long long int's are also converted to
  12348. int64_t
  12349. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12350. Fixed the bug that prevents cookies from being sent to the server
  12351. if the domain of cookie is FQDN and starts with ".".
  12352. * src/Cookie.cc (match)
  12353. To add the ability to change peer id.
  12354. * src/DefaultBtContext.h
  12355. (_peerIdPrefix): New variable
  12356. (setPeerIdPrefix): New function.
  12357. * src/torrentRequestInfo.cc
  12358. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12359. DefaultBtContext.
  12360. * src/main.cc (main): Added peer-id-prefix command-line option.
  12361. The usage message is not added yet.
  12362. * src/DefaultBtContext.cc
  12363. (generatePeerId): Use _peerIdPrefix.
  12364. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12365. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12366. Fixed the bug that prevents filename in content-disposition from
  12367. being retrieved when filename is not quoted.
  12368. * src/Util.cc (getContentDispositionFilename)
  12369. Fixed the bug that causes infinate loop and memory leak when file open
  12370. operation failed.
  12371. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12372. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12373. Fixed the bug that causes segfault when all URIs specified are
  12374. unsupported.
  12375. * src/RequestGroupMan.cc (getInitialCommands)
  12376. Check if RequestGroup::createNextCommand() returns empty list of
  12377. commands.
  12378. * src/RequestGroup.cc (createNextCommand)
  12379. Change log level from info to error so that users can notice that
  12380. an error occurred.
  12381. Fixed the bug that causes segfault when a zero-sized file is
  12382. downloaded.
  12383. * src/BitfieldMan.cc (isAllBitSet)
  12384. Return true if bitfieldLength is 0.
  12385. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12386. * src/main.cc
  12387. (showUsage): Added 3 usage examples for metalink download.
  12388. Replace MetalinkChunkChecksum with ChunkChecksum.
  12389. * src/MetalinkChunkChecksum.h: Removed.
  12390. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12391. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12392. * src/Xml2MetalinkProcessor.cc
  12393. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12394. * src/MetalinkRequestInfo.cc (execute)
  12395. * Release 0.11.1
  12396. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12397. Reads URIs from stdin when "-i -" is specified.
  12398. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12399. * src/UriListParser.h, src/UriListParser.cc: New class.
  12400. * src/StreamUriListParser.h: New class.
  12401. * src/FileUriListParser.h: New class.
  12402. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12403. instead of UriFileListParser.
  12404. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12405. Made console readout more readable.
  12406. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12407. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12408. Fix the bug that causes -s option not to work.
  12409. * src/main.cc (main)
  12410. * src/a2algo.h: New file.
  12411. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12412. Create directory structure specified in metalink file.
  12413. * src/RequestGroup.h, src/RequestGroup.cc
  12414. (initAndOpenFile): Create a directory to store files if it does not
  12415. exist.
  12416. (getDir): New function.
  12417. Added ETA and download speed for an individual file to readout.
  12418. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12419. * src/RequestGroup.h
  12420. (calculateDownloadSpeed): New function.
  12421. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12422. Made -S option work with metalink file and provided selective download
  12423. to metalink.
  12424. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12425. (filename): Removed.
  12426. (file): New variable.
  12427. (size): Removed.
  12428. (operator=): Updated.
  12429. (getPath): New function.
  12430. (getLength): New function.
  12431. (toFileEntry): New function.
  12432. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12433. (execute): Use toStream.
  12434. (showFileEntry): Removed.
  12435. * src/MetalinkRequestInfo.h
  12436. (targetFiles): New variable.
  12437. (setTargetFiles): New variable.
  12438. * src/MetalinkRequestInfo.cc
  12439. (execute): Added the ability to print file information included in
  12440. a metalink file.
  12441. Added selective download mode to metalink.
  12442. * src/main.cc
  12443. (showUsage): Updated to denote that -S and --select-file options are
  12444. applicable to metalink.
  12445. * src/FileEntry.h
  12446. (operator=): New function.
  12447. (getBasename): New function.
  12448. (getDirname): New function.
  12449. * src/Util.h, src/Util.cc
  12450. (toStream): New function.
  12451. * src/Xml2MetalinkProcessor.cc: Updated.
  12452. Made aria2 work with metalink with directory structure.
  12453. * src/File.h, src/File.cc
  12454. (getBasename): New function.
  12455. (getDirname): New function.
  12456. * src/RequestGroup.h, src/RequestGroup.cc
  12457. (_topDir): New variable.
  12458. (setTopDir): New function.
  12459. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12460. Rewrote HTTP header parsing with stringstream.
  12461. * src/HttpConnection.h, src/HttpConnection.cc
  12462. (HttpRequestEntry): New class.
  12463. (headerBuf): Removed.
  12464. (headerBufLength): Removed.
  12465. (outstandingHttpRequests): Now its element type is
  12466. HttpRequestEntryHandle.
  12467. (findEndOfHeader): Removed.
  12468. (receiveResponse): Rewritten.
  12469. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12470. Updated doc for -j option to notice that it should be used with -i
  12471. option.
  12472. * src/main.cc (showUsage)
  12473. Removed unused classes.
  12474. * src/RequestInfo.h
  12475. (FileInfo): Removed.
  12476. (checksum): Removed.
  12477. (fileInfo): Removed.
  12478. (setChecksum): Removed.
  12479. (getChecksum): Removed.
  12480. (getFileInfo): Removed.
  12481. Use ISO units.
  12482. * src/ConsoleDownloadEngine.cc
  12483. * src/TorrentConsoleDownloadEngine.cc
  12484. * src/Util.cc (abbrevSize)
  12485. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12486. Added the default listening ports to the help message.
  12487. * src/main.cc (showUsage)
  12488. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12489. Reduce the number of calls to gettimeofday to lower CPU load.
  12490. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12491. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12492. * src/Peer.h (calculateUploadSpeed): New function.
  12493. (calculateDownloadSpeed): New function.
  12494. * src/DefaultPeerStorage.cc
  12495. (CalculateStat): Added _now variable.
  12496. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12497. and Peer::calculateUploadSpeed(const struct timeval&)
  12498. Drop connection if no request or piece message is exchanged in
  12499. a certain interval.
  12500. * src/DefaultBtInteractive.h
  12501. (btRuntime): New variable.
  12502. (inactiveCheckPoint): New variable.
  12503. (checkActiveInteraction): New function.
  12504. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12505. request or piece message is received.
  12506. (checkActiveInteraction): New function.
  12507. (doInteractionProcessing): Call checkActiveInteraction.
  12508. Fixed the bug that causes remote Metalink and Torrent files are not
  12509. processed.
  12510. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12511. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12512. Changed format of log file.
  12513. * src/SimpleLogger.cc
  12514. * Release 0.11.0
  12515. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12516. * src/AbstractCommand.cc
  12517. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12518. MSG_MAX_TRY from error to info.
  12519. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12520. * src/message.h
  12521. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12522. (MSG_DOWNLOAD_ABORTED): Added %s.
  12523. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12524. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12525. * src/PeerAbstractCommand.cc
  12526. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12527. * src/Request.h
  12528. (cookieBox): Made ShardHandle.
  12529. * src/RequestGroup.h, src/RequestGroup.cc
  12530. (createNextCommandWithAdj): New function.
  12531. * src/FileAllocationCommand.cc
  12532. (executeInternal): Use createNextCommandWithAdj().
  12533. * src/CheckIntegrityCommand.cc
  12534. (executeInternal): Use createNextCommandWithAdj().
  12535. Added --load-cookies command-option.
  12536. * src/OptionHandlerFactory.cc
  12537. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12538. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12539. Now aria2 can handle cookie's expiration date.
  12540. * src/Cookie.h (expires): Changed its type to time_t.
  12541. * src/main.cc: Added --load-cookies command-line option.
  12542. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12543. * src/Util.h, src/Util.cc (httpGMT): New function.
  12544. * src/Request.cc (Request): Initialize cookieBox using
  12545. CookieBoxFactory.
  12546. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12547. * src/CookieParser.h, src/CookieParser.cc: New class.
  12548. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12549. * src/HttpResponseCommand.cc
  12550. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12551. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12552. download.
  12553. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12554. Added -j command-line option.
  12555. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12556. * src/main.cc
  12557. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12558. Rewritten using stringstream.
  12559. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12560. Rewritten using stringstream.
  12561. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12562. Make download size shown in MB, KB.
  12563. * src/ConsoleDownloadEngine.h (sendStatistics)
  12564. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12565. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12566. Accept incoming connections if download rate is low.
  12567. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12568. (_lowestSpeedLimit): New variable.
  12569. (setLowestSpeedLimit): New function.
  12570. (execute): Accept incoming connections if download rate is low.
  12571. MAX_PEERS is ignored in this case.
  12572. Disable PREF_OUT in multiple concurrent download:
  12573. * src/RequestGroup.h, src/RequestGroup.cc
  12574. (setUserDefinedFilename): New function.
  12575. * src/DownloadEngineFactory.cc
  12576. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12577. concurrent download.
  12578. * src/DefaultSegmentManFactory.cc
  12579. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12580. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12581. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12582. Added its overloaded method.
  12583. * src/RequestGroup.h
  12584. (_numConcurrentCommand): New variable.
  12585. (setNumConcurrentCommand): New function.
  12586. * src/RequestGroup.cc
  12587. Abort download if same file is being downloaded concurrently.
  12588. * src/RequestGroup.h, src/RequestGroupMan.cc
  12589. (isSameFileBeingDownloaded): New function.
  12590. * src/HttpResponseCommand.cc (executeInternal)
  12591. * src/FtpNegotiateCommand.cc (recvSize)
  12592. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12593. * main.cc: Added help message for -i option.
  12594. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12595. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12596. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12597. * src/MetalinkEntry.h
  12598. (checksum): Changed to ChecksumHandle
  12599. * src/MetalinkRequestInfo.cc
  12600. (checksum): Changed to ChecksumHandle
  12601. * src/File.cc
  12602. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12603. * src/common.h
  12604. (DIR_OPEN_MODE): New definition
  12605. * src/RequestGroup.cc
  12606. (prepareForNextAction): Added an argument.
  12607. * src/message.h
  12608. (MSG_GOOD_CHECKSUM): New definition
  12609. (MSG_BAD_CHECKSUM): New definition
  12610. * src/HttpResponseCommand.cc
  12611. (handleDefaultEncoding): Continue download sequence in new
  12612. non-segmented download.
  12613. * src/FileAllocationEntry.h
  12614. (_nextDownloadCommand): New variable.
  12615. * src/DownloadCommand.cc
  12616. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12617. available.
  12618. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12619. * src/IteratableChecksumValidator.h,
  12620. src/IteratableChecksumValidator.cc: New class.
  12621. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12622. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12623. Change file mode to 666:
  12624. * src/common.h (OPEN_MODE): New definition.
  12625. * src/File.cc
  12626. * src/Util.cc
  12627. * src/Directry.cc
  12628. * src/AbstractDiskWriter.cc
  12629. Change the level of log message "download aborted" to debug:
  12630. * src/PeerAbstractCommand.cc (execute)
  12631. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12632. * src/TrackerWatcherCommand.cc
  12633. (createCommand): Sleep some seconds after request failed.
  12634. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12635. then abort tracker request.
  12636. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12637. * Added the simultaneous download feature.
  12638. * src/main.cc: Print "Exception caught: " when exception is caught.
  12639. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12640. * src/ActivePeerConnectionCommand.cc
  12641. * src/PeerInteractionCommand.cc
  12642. * src/BtRuntime.h
  12643. (cuidCounter): Removed.
  12644. (getNewCuid): Removed.
  12645. * src/DownloadEngineFactory.cc
  12646. * src/PeerListenCommand.cc
  12647. * src/TrackerUpdateCommand.cc
  12648. * src/PeerInitiateConnectionCommand.cc
  12649. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12650. * src/PeerAbstractCommand.cc
  12651. (onAbort): Call PeerStorage::returnPeer()
  12652. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12653. (incomingPeers): New variable.
  12654. (addIncomingPeer): New function.
  12655. (returnPeer): New function.
  12656. (onErasingPeer): New function.
  12657. (addPeer): push_back -> push_front
  12658. (getActivePeers): Rewritten.
  12659. (calculateStat): Rewritten.
  12660. * src/PeerStorage.h
  12661. (TransferStat::copy): New function.
  12662. (TransferStat::TransferStat): New function.
  12663. (TransferStat::operator=): New function.
  12664. (addIncomingPeer): New function.
  12665. (returnPeer): New function.
  12666. * src/PeerListenCommand.cc
  12667. (execute): Use PeerStorage::addIncomingPeer() instead of
  12668. Peer::addPeer().
  12669. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12670. Connect to a peer actively when download speed is lower than specified
  12671. speed in torrent download:
  12672. * src/ActivePeerConnectionCommand.h: New class.
  12673. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12674. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12675. * src/main.cc: Fixed the bug that prevents download if .netrc
  12676. doesn't exist.
  12677. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12678. To cache resolved hostname:
  12679. * src/AbstractCommand.h, src/AbstractCommand.cc
  12680. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12681. Added dns cache.
  12682. * src/FtpInitiateConnectionCommand.cc
  12683. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12684. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12685. NameResolver working without ares.
  12686. * src/TorrentRequestInfo.cc
  12687. (execute): Don't cache dns in torrent download.
  12688. * src/HttpInitiateConnectionCommand.cc
  12689. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12690. * src/DNSCache.h: New class.
  12691. * src/UrlRequestInfo.cc
  12692. (execute): Use dns cache.
  12693. In http request, suppress port number in http request header if port
  12694. is 80 or 443:
  12695. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12696. request header if port is 80 or 443.
  12697. (createProxyRequest): Allways send port number.
  12698. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12699. To add the command-line option which disables netrc support:
  12700. * src/OptionHandlerFactory.cc
  12701. (createOptionHandlers): Added PREF_NO_NETRC.
  12702. * src/main.cc: Added -n option.
  12703. * src/prefs.h (PREF_NO_NETRC): New definition.
  12704. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12705. V_TRUE.
  12706. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12707. is V_FALSE. This may get configurable in the future release.
  12708. To clear peer's error status by time basis:
  12709. * src/PeerAbstractCommand.cc
  12710. (onAbort): Call Peer::startBadCondition().
  12711. * src/Peer.h, src/Peer.cc
  12712. (error): Removed.
  12713. (_badConditionStartTime): New variable.
  12714. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12715. (startBadCondition): New function.
  12716. (isGood): New function.
  12717. * src/DefaultPeerStorage.cc
  12718. (addPeer): Use Peer::isGood().
  12719. (FindFinePeer): Use Peer::isGood().
  12720. Always include port number in http request header:
  12721. * src/HttpRequest.cc (getHostText): Always include port number in
  12722. http request header.
  12723. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12724. To the ability to read options from a config file:
  12725. * src/main.cc: Command-line parameter validation is delegated to
  12726. OptionHandler class.
  12727. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12728. * src/Option.h, src/Option.cc (clear): New function.
  12729. * src/OptionParser.h, src/OptionParser.cc: New class.
  12730. * src/OptionHandler.h: New class.
  12731. * src/NameMatchOptionHandler.h: New class.
  12732. * src/OptionHandlerImpl.h: New classes.
  12733. * src/prefs.h: '_' -> '-'
  12734. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12735. (FTP_PASV): New definition.
  12736. * src/Util.h, src/Util.cc (getRealSize): New function.
  12737. To disable netrc support if .netrc file does not have correct
  12738. permissions:
  12739. * src/File.h, src/File.cc (mode): New function.
  12740. To prevent confidential information to be logged:
  12741. * src/HttpConnection.h, src/HttpConnection.cc
  12742. (eraseConfidentialInfo): New function.
  12743. (sendRequest): Call eraseConfidentialInfo().
  12744. (sendProxyRequest): Call eraseConfidentialInfo().
  12745. * src/main.cc: Validate permissions of .netrc file.
  12746. To add --user-agent command-line option:
  12747. * src/main.cc: Added new command line option: --user-agent
  12748. * src/prefs.h (PREF_USER_AGENT): New definition.
  12749. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12750. parameter to HttpRequest object.
  12751. * src/AbstractProxyRequestCommand.cc
  12752. (executeInternal): Set user-agent option parameter to HttpRequest
  12753. object.
  12754. Marged the patches from Dan Fandrich.
  12755. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12756. Use filename and size from Metalink file instead of sending HEAD
  12757. request:
  12758. * src/UrlRequestInfo.h
  12759. (_filename): New variable.
  12760. (_totalLength): New variable.
  12761. (setTotalLength): New variable.
  12762. (setFilename): New variable.
  12763. * src/MetalinkRequestInfo.cc
  12764. (execute): Set filename and size to UrlRequestInfo
  12765. * src/UrlRequestInfo.cc
  12766. (execute): Use filename and size from Metalink instead of seding
  12767. HEAD request to servers.
  12768. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12769. To add the ability to resume downloading a partially downloaded file
  12770. which is downloaded from the beginning:
  12771. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12772. takes this role.
  12773. * src/main.cc: Added -c option.
  12774. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12775. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12776. * src/prefs.h (PREF_CONTINUE): New definition.
  12777. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12778. * src/DefaultDiskWriter.cc
  12779. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12780. * src/AbstractDiskWriter.h
  12781. (glowFileAllocator): New variable.
  12782. * src/AbstractDiskWriter.cc
  12783. (openExistingFile): Now preallocate file space from the end of the
  12784. existing file if totalLength argument is specified and grater than 0.
  12785. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12786. to download exists in local, continue the download of the file.
  12787. --allow-overwrite=true is assumed in this context.
  12788. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12789. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12790. Throw exception if --check-integrity=true is specified but chunk
  12791. checksums are not provided:
  12792. * src/UrlRequestInfo.cc
  12793. Do not print URLs to stdout:
  12794. * src/UrlRequestInfo.cc
  12795. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12796. * src/Request.h: Use AuthResolver to get authentication information.
  12797. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12798. set to RequestFactory object.
  12799. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12800. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12801. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12802. create Request object.
  12803. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12804. To integrate Netrc into exsiting classes:
  12805. * src/Request.h
  12806. (_userDefinedAuthConfig): New variable.
  12807. (findNetrcAuthenticator): New function.
  12808. (segment): Removed.
  12809. (setUserDefinedAuthConfig): New function.
  12810. (resolveHttpAuthConfigItem): New function.
  12811. (resolveFtpAuthConfigItem): New function.
  12812. (resolveHttpProxyAuthConfigItem): New function.
  12813. * src/HttpRequest.h
  12814. (authConfig): Removed.
  12815. (proxyAuthConfig): Removed.
  12816. (setAuthConfig): Removed.
  12817. (setProxyAuthConfig): Removed.
  12818. * src/UrlRequest.h
  12819. (getHeadResult): Added a parameter: authConfigHandle
  12820. * src/common.h
  12821. (SingletonHolder.h): New include.
  12822. * src/main.cc
  12823. (Netrc.h): New include.
  12824. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  12825. Added initial value of PREF_NETRC_PATH.
  12826. Added the initialization of netrc.
  12827. * src/AuthConfig.h: New class.
  12828. * src/prefs.h
  12829. (PREF_NETRC_PATH): New definition.
  12830. * src/HttpAuthConfig.h: Removed.
  12831. * src/Netrc.cc
  12832. (getRequiredNextToken): New function.
  12833. (skipMacdef): New function.
  12834. (parse): Rewritten.
  12835. * src/Netrc.h
  12836. (getRequiredNextToken): New function.
  12837. (skipMacdef): New function.
  12838. * src/Util.h, src/Util.cc
  12839. (getHomeDir): New function.
  12840. * src/TrackerWatcherComand.cc
  12841. (createRequestCommand): Use AuthConfig.
  12842. * src/FtpConnection.cc
  12843. (sendUser): Use Request::resolveFtpAuthConfigItem().
  12844. (sendPass): Use Request::resolveFtpAuthConfigItem().
  12845. * src/Request.cc
  12846. (findNetrcAuthenticator): New function.
  12847. (resolveHttpAuthConfigItem): New function.
  12848. (resolveFtpAuthConfigItem): New function.
  12849. (resolveHttpProxyAuthConfigItem): New function.
  12850. * src/UrlRequestInfo.cc: Use AuthConfig.
  12851. * src/HttpRequest.cc
  12852. (createRequest): Use authConfig.
  12853. (getProxyAuthString): Use authConfig.
  12854. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  12855. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  12856. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12857. To reduce overhead to find commands whose socket is either
  12858. readable or writable in the download engine loop:
  12859. * src/Command.h, src/Command.cc
  12860. (STATUS): New enum.
  12861. (status): New variable.
  12862. (statusMatch): New function.
  12863. (setStatusActive): New function.
  12864. (setStatusInactive): New function.
  12865. * src/DownloadEngine.h, src/DownloadEngine.cc
  12866. (executeCommand): New function.
  12867. (run): Simplified.
  12868. (waitData): Call Command::setStatusActive() when command's socket is
  12869. readable or writable.
  12870. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12871. To handle Segment as SegmentHandle:
  12872. * src/AbstractCommand.cc (execute): Rewritten.
  12873. * src/SegmentMan.h: Segment -> SegmentHandle
  12874. Introducded HttpResponse class, HttpRequest class to improve code
  12875. extensiveness and make it clear:
  12876. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12877. HttpResponse class.
  12878. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12879. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12880. * src/HttpConnection.cc: Contruction of http request were moved to
  12881. HttpRequest class.
  12882. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12883. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12884. * src/HttpAuthConfig.h: New class.
  12885. * src/Range.h: New class.
  12886. To make FtpTunnel{Request, Response}Command and
  12887. HttpProxy{Request, Response}Command derived from
  12888. AbstractProxy{Request, Response}Command:
  12889. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12890. Derived from AbstractProxyRequestCommand class.
  12891. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12892. Derived from AbstractProxyResponseCommand class.
  12893. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12894. Derived from AbstractProxyRequestCommand class.
  12895. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12896. Derived from AbstractProxyResponseCommand class.
  12897. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12898. : New class.
  12899. * src/AbstractProxyResponseCommand.h,
  12900. src/AbstractProxyResponseCommand.cc: New class.
  12901. To add netrc support:
  12902. * src/Netrc.h, src/Netrc.cc: New class.
  12903. * src/Util.h, src/Util.cc (split): New function.
  12904. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12905. "Content-Range" header instead of "Range" header.
  12906. * src/HttpHeader.h
  12907. (getStatus): Removed.
  12908. (setStatus): Removed.
  12909. * src/Segment.h
  12910. (getPositionToWrite): New function.
  12911. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12912. * src/HttpHeader.h
  12913. (Range.h): New include.
  12914. (status): New variable.
  12915. (HttpHeader): Initialized status with 0.
  12916. (getStatus): New function.
  12917. (setStatus): New function.
  12918. (getRange): New function.
  12919. (HttpHeaderHandle): New function.
  12920. * src/HttpHeader.cc
  12921. (getRange): New function.
  12922. * src/Request.h
  12923. (RequestWeakHandle): New definition.
  12924. * src/HttpConnection.h
  12925. (HttpConnectionHandle): New type definition.
  12926. * src/HttpConnection.cc
  12927. (receiveResponse): Set HTTP status to headers.
  12928. * src/main.cc
  12929. (showUsage): Fixed typo.
  12930. * src/Segment.h
  12931. (SegmentHandle): New type definition.
  12932. * src/BitfieldMan.h
  12933. (getMissingUnusedLength): New function.
  12934. * src/BitfieldMan.cc
  12935. (getMissingUnusedLength): New function.
  12936. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12937. To fix static initialization order problem:
  12938. * src/BitfieldManFactory.h
  12939. (defaultRandomizer): Removed.
  12940. (factory): New variable.
  12941. (getNewFactory): Removed.
  12942. (getFactoryInstance): New function.
  12943. (setDefaultRandomizer): Rewritten.
  12944. (getDefaultRandomizer): Rewritten.
  12945. * src/BitfieldManFactory.cc
  12946. (defaultRandomizer): Removed.
  12947. (factory): Initialized to 0.
  12948. (BitfieldManFactory): Initialized randomizer to 0.
  12949. * src/DefaultPieceStorage.cc
  12950. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12951. * src/Peer.cc
  12952. (Peer): getNewFactory() -> getFactoryInstance()
  12953. * src/SegmentMan.cc
  12954. (initBitfield): getNewFactory() -> getFactoryInstance()
  12955. * src/Piece.cc
  12956. (Piece): getNewFactory() -> getFactoryInstance()
  12957. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12958. To fix the bug that causes crash on Max OS X:
  12959. * src/SimpleRandomizer.h
  12960. (getInstance): Create new instance if the static variable is null.
  12961. * src/SimpleRandomizer.cc
  12962. (randomizer): Initialized to 0.
  12963. * src/BitfieldManFactory.h
  12964. (getNewFactory): Removed the call to setRandomizer().
  12965. To fix the miscalculation of the range of checksum:
  12966. * src/BitfieldMan.h
  12967. (isBitSetOffsetRange): New function.
  12968. * src/BitfieldMan.cc
  12969. (isBitSetOffsetRange): New function.
  12970. * src/SegmentMan.cc
  12971. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12972. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12973. * Release 0.10.1
  12974. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12975. To lower CPU usage in BitTorrent download when --max-upload-limit
  12976. command-line option specified:
  12977. * src/DefaultBtMessageDispatcher.cc
  12978. (sendMessages): Calculate uploading speed only when current message
  12979. is uploading data and is not sent yet.
  12980. * src/DefaultPeerStorage.h
  12981. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12982. * src/HttpResponseCommand.cc
  12983. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12984. This fixes compile error in Soralis 10.
  12985. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12986. To fix segfault in Metalink download:
  12987. * src/UrlRequestInfo.h
  12988. (filename): Removed.
  12989. (totalLength): Removed.
  12990. (setTotalLength): Removed.
  12991. (setFilename): Removed.
  12992. * src/MetalinkRequestInfo.cc
  12993. (execute): Do not set filename and totalLength to reqInfo.
  12994. Set chunk checksum to reqInfo if it is not null.
  12995. * src/HttpResponseCommand.cc
  12996. (executeInternal): Fixed filename in log.
  12997. (handleDefaultEncoding): Removed the call to initBitfield() and
  12998. markAllPiecesDone().
  12999. (handleOtherEncoding): Added HEAD method handling.
  13000. * src/FtpNegotiateCommand.cc
  13001. (executeInternal): Added SEQ_HEAD_OK handling.
  13002. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13003. return false.
  13004. * src/FtpNegotiateCommand.h
  13005. (SEQ_HEAD_OK): New definition.
  13006. * src/SegmentMan.cc
  13007. (initBitfield): Delete bitfield.
  13008. (isChunkChecksumValidationReady): Fixed the condition.
  13009. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13010. works fine.
  13011. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13012. * src/Xml2MetalinkProcessor.h
  13013. (xpathExists): New function.
  13014. * src/Xml2MetalinkProcessor.cc
  13015. (xpathExists): New function.
  13016. Not to send HEAD request if filename and size are available in Metalink
  13017. file:
  13018. * src/UrlRequestInfo.h
  13019. (filename): New variable.
  13020. (totalLength): New variable.
  13021. (setTotalLength): New function.
  13022. (setFilename): New function.
  13023. * src/MetalinkRequestInfo.cc
  13024. (execute): Set filename and size to UrlRequestInfo.
  13025. * src/MetalinkEntry.cc
  13026. (MetalinkEntry): Initialize size with 0.
  13027. * src/UrlRequestInfo.cc
  13028. (execute): Set filename and size to SegmentMan.
  13029. Not to download rest of the files after selected files are downloaded
  13030. in BitTorrent:
  13031. * src/PieceStorage.h
  13032. (allDownloadFinished): New function.
  13033. * src/DefaultBtAnnounce.cc
  13034. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13035. downloadFinished.
  13036. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13037. * src/DefaultPieceStorage.cc
  13038. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13039. Commented out the call to finishSelectiveDownloadingMode().
  13040. (downloadFinished): Call isFilteredAllBitSet() instead of
  13041. isAllBitSet().
  13042. (allDownloadFinished): New function.
  13043. * src/DefaultBtInteractive.cc
  13044. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13045. downloadFinished().
  13046. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13047. * src/TorrentDownloadEngine.cc
  13048. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13049. * src/BitfieldMan.h
  13050. (isFilteredAllBitSet): New function.
  13051. * src/ShareRatioSeedCriteria.h
  13052. (PieceStorage.h): New include.
  13053. (pieceStorage): New variable.
  13054. (evaluate):
  13055. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13056. * src/BitfieldMan.cc
  13057. (isFilteredAllBitSet): New function.
  13058. (isAllBitSet): Filter is not took into account.
  13059. Rename --force-truncate as --allow-overwrite:
  13060. * src/TorrentRequestInfo.cc
  13061. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13062. * src/main.cc
  13063. (showUsage): --force-truncate -> --allow-overwrite
  13064. * src/message.h
  13065. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13066. * src/prefs.h
  13067. (PREF_FORCE_TRUNCATE): Removed.
  13068. (PREF_ALLOW_OVERWRITE): New definition.
  13069. * src/SegmentMan.cc
  13070. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13071. * src/MetalinkRequestInfo.cc
  13072. (execute): Queueing message are now logged in info level.
  13073. * src/common.h
  13074. (LONG_LONG_MAX): Removed.
  13075. (LONG_LONG_MIN): Removed.
  13076. * src/HttpResponseCommand.cc
  13077. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13078. * src/FtpNegotiateCommand.cc
  13079. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13080. * src/main.cc
  13081. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13082. command-line option.
  13083. (main): Added --check-integriy and --realtime-chunk-checksum
  13084. command-line option.
  13085. --force-truncate -> --allow-overwrite
  13086. Set initial value of --check-integrity option to false.
  13087. Don't show usage when error occurs while persing command-line options.
  13088. Removed deprecated --upload-limit option.
  13089. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13090. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13091. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13092. * src/BtAllowedFastMessage.cc:
  13093. * src/BtBitfieldMessage.cc
  13094. * src/BtCancelMessage.cc
  13095. * src/BtChokeMessage.cc
  13096. * src/BtHaveAllMessage.cc
  13097. * src/BtHaveMessage.cc
  13098. * src/BtHaveNoneMessage.cc
  13099. * src/BtInterestedMessage.cc
  13100. * src/BtNotInterestedMessage.cc
  13101. * src/BtPieceMessage.cc
  13102. * src/BtPortMessage.cc
  13103. * src/BtRejectMessage.cc
  13104. * src/BtRequestMessage.cc
  13105. * src/BtSuggestPieceMessage.cc
  13106. * src/BtUnchokeMessage.cc
  13107. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13108. files are affected.
  13109. * src/ChunkChecksumValidator.cc
  13110. * src/SegmentMan.cc
  13111. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13112. To add chunk checksum validation:
  13113. * src/MetalinkEntry.h
  13114. (MetalinkChunkChecksum.h): New include.
  13115. (chunkChecksum): New variable.
  13116. * src/Request.h
  13117. (method): New variable.
  13118. (setMethod): New function.
  13119. (getMethod): New function.
  13120. (METHOD_GET): New static constant.
  13121. (METHOD_HEAD): New static constant.
  13122. * src/Xml2MetalinkProcessor.h
  13123. (getPieceHash): New function.
  13124. * src/PieceStorage.h
  13125. (markAllPiecesDone): New function.
  13126. (checkIntegrity): New function.
  13127. * src/FileAllocator.h
  13128. (NullFileAllocationMonitor.h): New include.
  13129. (FileAllocator): Initialize fileAllocationMonitor with new
  13130. NullFileAllocationMonitor().
  13131. * src/MultiDiskAdaptor.h
  13132. (messageDigest.h): Remove include.
  13133. (ctx): Removed.
  13134. (hashUpdate): Added ctx.
  13135. (MultiDiskAdaptor): Removed ctx.
  13136. (sha1Sum): Renamed as messageDigest.
  13137. (messageDigest): New function.
  13138. * src/UrlRequestInfo.h
  13139. (HeadResult): New class.
  13140. (digestAlgo): New variable.
  13141. (chunkChecksumLength): New variable.
  13142. (chunkChecksums): New variable.
  13143. (getHeadResult): New function.
  13144. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13145. (setDigestAlgo): New function.
  13146. (setChunkChecksumLength): New function.
  13147. (setChunkChecksums): New function.
  13148. * src/DefaultPieceStorage.cc
  13149. (DiskAdaptorWriter.h): New include.
  13150. (ChunkChecksumValidator.h): New include.
  13151. (markAllPiecesDone): New function.
  13152. (checkIntegrity): New function.
  13153. * src/DefaultBtContext.h
  13154. (getPieceHashes): New function.
  13155. * src/TorrentRequestInfo.cc
  13156. (execute): Try to validate chunk checksum if file already exists and
  13157. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13158. * src/messageDigest.h
  13159. (~MessageDigestContext): Added digestFree().
  13160. * src/MetalinkRequestInfo.cc
  13161. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13162. * src/DiskAdaptor.h
  13163. (messageDigest.h): New include.
  13164. (sha1Sum): Renamed as messageDigest.
  13165. (messageDigest): New function.
  13166. * src/DownloadCommand.h
  13167. (PeerStat.h): New include.
  13168. (maxDownloadSpeedLimit): New variable.
  13169. (startupIdleTime): New variable.
  13170. (lowestDownloadSpeedLimit): New variable.
  13171. (peerStat): New variable.
  13172. (setMaxDownloadSpeedLimit): New function.
  13173. (setStartupIdleTime): New function.
  13174. (setLowestDownloadSPeedLimit): New function.
  13175. * src/BtContext.h
  13176. (getPieceHashes): New function.
  13177. * src/main.cc
  13178. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13179. option to true for testing purpose.
  13180. * src/BtPieceMessage.cc
  13181. (checkPieceHash): Use messageDigest
  13182. * src/DownloadEngine.cc
  13183. (SetDescriptor): Removed.
  13184. (AccumulateActiveCommand): Removed.
  13185. (waitData): Rewritten.
  13186. (updateFdSet): Rewritten.
  13187. * src/MultiDiskAdaptor.cc
  13188. (hashUpdate): Added ctx.
  13189. (sha1Sum): Renamed as messageDigest.
  13190. (messageDigest): New function.
  13191. * src/BitfieldMan.h
  13192. (isBitRangeSet): New function.
  13193. (unsetBitRange): New function.
  13194. * src/ByteArrayDiskWriter.h
  13195. (sha1Sum): Renamed as messageDigest.
  13196. (messageDigest): New function.
  13197. * src/ConsoleDownloadEngine.cc
  13198. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13199. * src/DiskWriter.h
  13200. (messageDigest.h): New include.
  13201. (sha1Sum): Renamed as messageDigest.
  13202. (messageDigest): New function.
  13203. * src/ChunkChecksumValidator.h: New class.
  13204. * src/DiskAdaptorWriter.h: New class.
  13205. * src/prefs.h
  13206. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13207. (PREF_CHECK_INTEGRITY): New definition.
  13208. * src/HttpResponseCommand.cc
  13209. (handleDefaultEncoding): Added method "HEAD" handling.
  13210. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13211. (handleOtherEncoding):
  13212. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13213. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13214. startupIdleTime, lowestDownloadSpeedLimit to command.
  13215. * src/SegmentMan.h
  13216. (getSegmentEntryByIndex): New function.
  13217. (getSegmentEntryByCuid): New function.
  13218. (getSegmentEntryIteratorByCuid): New function.
  13219. (diskWriter): DiskWriter -> DiskWriterHandle
  13220. (pieceHashes): New variable.
  13221. (chunkHashLength): New variable.
  13222. (digestAlgo): New variable.
  13223. (FindPeerStat): Removed.
  13224. (getPeerStat): Rewritten.
  13225. (markAllPiecesDone): New function.
  13226. (checkIntegrity): New function.
  13227. (tryChunkChecksumValidation): New function.
  13228. (isChunkChecksumValidationReady): New function.
  13229. * src/BitfieldMan.cc
  13230. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13231. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13232. blocks to 0.
  13233. (isBitRangeSet): New function.
  13234. (unsetBitRange): New function.
  13235. * src/FtpNegotiateCommand.cc
  13236. (executeInternal): Set maxDownloadSpeedLimit,
  13237. startupIdleTime, lowestDownloadSpeedLimit to command.
  13238. (recvSize): Added method "HEAD" handling.
  13239. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13240. * src/AbstractSingleDiskAdaptor.cc
  13241. (sha1Sum): Renamed as messageDigest.
  13242. (messageDigest): New function.
  13243. * src/AbstractSingleDiskAdaptor.h
  13244. (sha1Sum): Renamed as messageDigest.
  13245. (messageDigest): New function.
  13246. * src/Util.h
  13247. (indexRange): New function.
  13248. * src/MetalinkEntry.cc
  13249. (MetalinkEntry): Initialized chunkChecksum to 0.
  13250. * src/ShaVisitor.cc
  13251. (~ShaVisitor): Removed the call to ctx.digestFree().
  13252. * src/SegmentMan.cc
  13253. (ChunkChecksumValidator.h): New include.
  13254. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13255. to DIGEST_ALGO_SHA1.
  13256. (~SegmentMan): Removed diskWriter.
  13257. (FindSegmentEntryByIndex): Removed.
  13258. (FindSegmentEntryByCuid): Removed.
  13259. (checkoutSegment): Rewritten.
  13260. (findSlowerSegmentEntry): Rewritten.
  13261. (getSegment): Rewritten.
  13262. (updateSegment): Rewritten.
  13263. (completeSegment): Rewritten.
  13264. (markAllPiecesDone): New function.
  13265. (checkIntegrity): New function.
  13266. (isChunkChecksumValidationReady): New function.
  13267. (tryChunkChecksumValidation): New function.
  13268. * src/Xml2MetalinkProcessor.cc
  13269. (getEntry): Get size and set it to entry.
  13270. Get chunk checksum and set it to entry.
  13271. (getPieceHash): New function.
  13272. * src/Util.cc
  13273. (sha1Sum): Removed ctx.digestFree()
  13274. (fileChecksum): Removed ctx.digestFree()
  13275. (indexRange): New function.
  13276. * src/Request.cc
  13277. (METHOD_GET): New variable.
  13278. (METHOD_HEAD): New variable.
  13279. (Request): Added method.
  13280. * src/UrlRequestInfo.cc
  13281. (FatalException.h): New include.
  13282. (message.h): New include.
  13283. (operator<<): Added operator<< for class HeadResult.
  13284. (getHeadResult): New function.
  13285. (execute): Get filename and size in separate download engine.
  13286. * src/ChunkChecksumValidator.cc: New class.
  13287. * src/DownloadCommand.cc:
  13288. (DownloadCommand): Added peerStat.
  13289. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13290. the value from Option.
  13291. The buffer size is now 16KB.
  13292. Use peerStat member instead of getting it from SegmentMan.
  13293. Use startupIdleTime member instead of gettingit from Option.
  13294. Added chunk checksum validation.
  13295. * src/AbstractDiskWriter.cc
  13296. (AbstractDiskWriter): Removed ctx.
  13297. (~AbstractDiskWriter): Removed ctx.digestFree()
  13298. (writeDataInternal): Returns the return value of write.
  13299. (readDataInternal): Returns the return value of read.
  13300. (sha1Sum): Renamed as messageDigest
  13301. (messageDigest): New function.
  13302. * src/AbstractDiwkWriter.h
  13303. (messageDigest.h): Removed include.
  13304. (ctx): Removed.
  13305. (sha1Sum): Renamed as messageDigest
  13306. (messageDigest): New function.
  13307. * src/DefaultPieceStorage.h
  13308. (markAllPiecesDone): New function.
  13309. (checkIntegrity): New function.
  13310. * src/NullFileAllocationMonitor.h: New class.
  13311. * src/MetalinkChunkChecksum.h: New class.
  13312. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13313. To decrease CPU usage in bittorrent download, calculation results in
  13314. BitfieldMan were cached and realtime fetching PeerObject was removed
  13315. with WeakHandle introduced. Option values are set to the objects
  13316. by setter before download begins.
  13317. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13318. * src/DefaultBtRequestFactory.h
  13319. (dispatcher): BtMessageDispatcherHandle ->
  13320. BtMessageDispatcherWeakHandle.
  13321. (messageFactory): New variable.
  13322. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13323. BtMessageDispatcherWeakHandle.
  13324. (setBtMessageFactory): New function.
  13325. * src/DefaultBtMessageDispatcher.cc:
  13326. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13327. from Option.
  13328. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13329. feating the value from Option.
  13330. Use messageFactory member.
  13331. * src/PeerInteractionCommand.cc
  13332. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13333. Add reverse dependencies to factory object.
  13334. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13335. dispatcher.
  13336. Set messageFactory to receiver.
  13337. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13338. btInteractive.
  13339. Set receiver to peerObject.
  13340. Set maxDownloadSpeedLimit to this.
  13341. (executeInternal): Use maxDownloadSpeedLimit member.
  13342. * src/BtChokeMessage.cc
  13343. (doReceivedAction): Use dispatcher, requestFactory member.
  13344. (onSendComplete): Use dispatcher member.
  13345. * src/PeerInteractionCommand.h
  13346. (maxDownloadSpeedLimit): New variable.
  13347. * src/DefaultBtMessageReceiver.h
  13348. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13349. (dispatcher):
  13350. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13351. (messageFactory): New variable.
  13352. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13353. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13354. (setDispatcher):
  13355. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13356. (setBtMessageFactory): New function.
  13357. * src/DefaultBtInteractive.cc
  13358. (initiateHandshake): Use messageFactory member.
  13359. (addBitfieldMessageToQueue): Use messageFactory member.
  13360. (addAllowedFastMessageToQueue): Use messageFactory member.
  13361. (decideChoking): Use messageFactory member.
  13362. (checkHave): Use messageFactory member.
  13363. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13364. (receiveMessages): Use maxDownloadSpeedLimit member.
  13365. (decideInterest): Use messageFactory member.
  13366. * src/BtRequestMessage.cc
  13367. (doReceivedAction): Use messageFactory, dispatcher member.
  13368. (onQueued): Use dispatcher member.
  13369. * src/BtPieceMessage.cc
  13370. (doReceivedAction): Use dispatcher member.
  13371. (send): Use peerConnection member.
  13372. (onWrongPiece): Use requestFactory member.
  13373. (handleChokingEvent): Use messageFactory, dispatcher member.
  13374. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13375. * src/BtMessageDispatcher.h
  13376. (BtMessageDispatcherWeakHandle): New type definition.
  13377. * src/SimpleBtMessage.cc
  13378. (send): Use peerConnection member.
  13379. * src/BtRejectMessage.cc
  13380. (doReceivedAction): Use dispatcher member.
  13381. * src/DefaultBtMessageDispatcher.h
  13382. (Option.h): Removed include.
  13383. (messageFactory): New variable.
  13384. (option): Removed.
  13385. (maxUploadSpeedLimit): New variable.
  13386. (requestTimeout): New variable.
  13387. (DefaultBtMessageDispatcher): Removed option.
  13388. Added maxUploadSpeedLimit, requestTimeout.
  13389. (setOption): Removed.
  13390. (getOption): Removed.
  13391. (setMaxUploadSpeedLimit): New function.
  13392. (setRequestTimeout): New function.
  13393. (setBtMessageFactory): New function.
  13394. * src/DefaultBtInteractive.h
  13395. (btMessageReceiver):
  13396. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13397. (dispatcher):
  13398. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13399. (btRequestFactory):
  13400. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13401. (peerConnection):
  13402. PeerConnectionHandle -> PeerConnectionWeakHandle
  13403. (messageFactory): New variable.
  13404. (option): Removed.
  13405. (keepAliveInterval): New variable.
  13406. (maxDownloadSpeedLimit): New variable.
  13407. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13408. (setBtMessageReceiver):
  13409. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13410. (setDispatcher):
  13411. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13412. (setBtRequestFactory):
  13413. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13414. (setPeerConnection):
  13415. PeerConnectionHandle -> PeerConnectionWeakHandle
  13416. (setOption): Removed.
  13417. (setKeepAliveInterval): New function.
  13418. (setMaxDownloadSpeedLimit): New function.
  13419. (setBtMessageFactory): New function.
  13420. * src/BitfieldMan.h
  13421. (cachedNumMissingBlock): New variable.
  13422. (cachedNumFilteredBlock): New variable.
  13423. (cachedCompletedLength): New variable.
  13424. (cachedFilteredComletedLength): New variable.
  13425. (cachedFilteredTotalLength): New variable.
  13426. (countMissingBlockNow): New function.
  13427. (countFilteredBlockNow): New function.
  13428. (getFilteredTotalLengthNow): New function.
  13429. (getCompletedLengthNow): New function.
  13430. (getFilteredCompletedLengthNow): New function.
  13431. (updateCache): New function.
  13432. * src/AbstractBtMessage.h
  13433. (BtMessageDispatcher.h): New include.
  13434. (PeerConnection.h): New include.
  13435. (BtRequestFactory.h): New include
  13436. (BtMessageFactory.h): New include.
  13437. (dispatcher): New variable.
  13438. (messageFactory): New variable.
  13439. (peerConnection: New variable.
  13440. (setBtMessageDispatcher): New function.
  13441. (setPeerConnection): New function.
  13442. (setBtMessageFactory): New function.
  13443. (setBtRequestFactory): New function.
  13444. * src/DefaultBtMessageFactory.cc
  13445. (setCommonProperty): Set dispatcher, requestFactory, this,
  13446. peerConnection to msg.
  13447. * src/BtRegistry.h
  13448. (BT_MESSAGE_RECEIVER): New macro.
  13449. * src/PeerConnection.h
  13450. (PeerConnectionWeakHandle): New type definition.
  13451. * src/BtMessageFactory.h
  13452. (BtMessageFactoryWeakHandle): New type definition.
  13453. * src/BitfieldMan.cc
  13454. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13455. cachedCompletedLength, cachedFilteredComletedLength,
  13456. cachedFilteredTotalLength.
  13457. Call updateCache().
  13458. (countMissingBlock): Return cachedNumMissingBlock.
  13459. (countMissingBlockNow): New function.
  13460. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13461. (countFilteredBlockNow): New function.
  13462. (setBit): Call updateCache().
  13463. (unsetBit): Call updateCache().
  13464. (setBitfield): Call updateCache().
  13465. (clearAllBit): Call updateCache().
  13466. (setAllBit): Use setBitInternal instead of setBit.
  13467. Call updateCache().
  13468. (addFilter): Call updateCache().
  13469. (enableFilter): Call updateCache().
  13470. (disableFilter): Call updateCache().
  13471. (clearFilter): Call updateCache().
  13472. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13473. (getFilteredTotalLengthNow): New function.
  13474. (getCompletedLength): Return cachedCompletedLength.
  13475. (getCompletedLengthNow): New function.
  13476. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13477. (getFilteredCompletedLengthNow): New function.
  13478. (updateCache): New function.
  13479. * src/BtMessageReceiver.h
  13480. (BtMessageReceiverWeakHandle): New type definition.
  13481. * src/DefaultBtMessageReceiver.cc
  13482. (receiveHandshake): Use messageFactory member.
  13483. (sendHandshake): Use messageFactory member.
  13484. (receiveMessage): Use messageFactory member.
  13485. * src/DefaultBtMessageFactory.h
  13486. (dispatcher): New variable.
  13487. (requestFactory): New variable.
  13488. (peerConnection): New variablle.
  13489. (setBtMessageDispatcher): New function.
  13490. (setBtRequestFactory): New function.
  13491. (setPeerConnection): New function.
  13492. * src/SharedHandle.h
  13493. (RefCount): New class.
  13494. (WeakHandle): New class.
  13495. * src/PeerObject.h
  13496. (BtMessageReceiver.h): New include.
  13497. (PeerObject): Added btMessageReceiver.
  13498. (btMessageReceiver): New variable.
  13499. * src/Util.cc
  13500. (countBit): Simplified.
  13501. * src/BtCancelMessage.cc
  13502. (doReceivedAction): Use dispatcher member.
  13503. * src/BtRequestFactory.h
  13504. (BtRequestFactoryWeakHandle): New type definition.
  13505. * src/PeerStorage.h
  13506. (downloadSpeed): int -> uint32_t
  13507. (uploadSpeed): int -> uint32_t
  13508. (sessionDownloadLength): long long int -> uint64_t
  13509. (sessionUploadLength): long long int -> uint64_t
  13510. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13511. To add RecoverableException, FatalException:
  13512. * src/AbstractCommand.cc
  13513. (onAbort): Exception -> RecoverableException
  13514. * src/PeerAbstractCommand.h
  13515. (RecoverableException.h): New include.
  13516. (onAbort): Exception -> RecoverableException.
  13517. * src/PeerInteractionCommand.cc
  13518. (onAbort): Exception -> RecoverableException.
  13519. * src/PeerAbstractCommand.cc
  13520. (execute): Exception -> RecoverableException.
  13521. (onAbort): Exception -> RecoverableException.
  13522. * src/TorrentRequestInfo.cc
  13523. (execute): Exception -> RecoverableException.
  13524. * src/MetalinkRequestInfo.cc
  13525. (execute): Exception -> RecoverableException.
  13526. * src/MetaFileUtil.cc: RecoverableException.
  13527. * src/AbstractCommand.h
  13528. (onAbort): Exception -> RecoverableException.
  13529. * src/DlRetryEx.h: Exception -> RecoverableException.
  13530. * src/DlAbortEx.h: Exception -> RecoverableException.
  13531. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13532. * src/Util.cc: Exception -> RecoverableException.
  13533. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13534. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13535. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13536. To make ID static const int
  13537. * src/BtInterestedMessage.h
  13538. (ID_t): Removed.
  13539. (ID): New variable.
  13540. (getId): Made non-const.
  13541. * src/BtPieceMessage.h
  13542. (ID_t): Removed.
  13543. (ID): New variable.
  13544. (getId): Made non-const.
  13545. * src/BtChokeMessage.h
  13546. (ID_t): Removed.
  13547. (ID): New variable.
  13548. (getId): Made non-const.
  13549. * src/BtHaveAllMessage.h
  13550. (ID_t): Removed.
  13551. (ID): New variable.
  13552. (getId): Made non-const.
  13553. * src/BtKeepAliveMessage.h
  13554. (ID_t): Removed.
  13555. (ID): New variable.
  13556. (getId): Made non-const.
  13557. * src/BtHandshakeMessage.h
  13558. (ID): New variable.
  13559. (getId): Made non-const.
  13560. * src/BtSuggestPieceMessage.h
  13561. (ID_t): Removed.
  13562. (ID): New variable.
  13563. (getId): Made non-const.
  13564. * src/BtPortMessage.h
  13565. (ID_t): Removed.
  13566. (ID): New variable.
  13567. (getId): Made non-const.
  13568. * src/AbstractBtMessage.h
  13569. (id): Removed.
  13570. (AbstractBtMessage): Removed id.
  13571. (getId): Removed.
  13572. * src/BtHaveMessage.h
  13573. (ID_t): Removed.
  13574. (ID): New variable.
  13575. (getId): Made non-const.
  13576. * src/BtAllowedFastMessage.h
  13577. (ID_t): Removed.
  13578. (ID): New variable.
  13579. (getId): Made non-const.
  13580. * src/BtCancelMessage.h
  13581. (ID_t): Removed.
  13582. (ID): New variable.
  13583. (getId): Made non-const.
  13584. * src/BtNotInterestedMessage.h
  13585. (ID_t): Removed.
  13586. (ID): New variable.
  13587. (getId): Made non-const.
  13588. * src/BtChokeMessage.h
  13589. (ID_t): Removed.
  13590. (ID): New variable.
  13591. (getId): Made non-const.
  13592. * src/BtRejectMessage.h
  13593. (ID_t): Removed.
  13594. (ID): New variable.
  13595. (getId): Made non-const.
  13596. * src/BtBitfieldMessage.h
  13597. (ID_t): Removed.
  13598. (ID): New variable.
  13599. (getId): Made non-const.
  13600. * src/BtUnchokeMessage.h
  13601. (ID_t): Removed.
  13602. (ID): New variable.
  13603. (getId): Made non-const.
  13604. * src/BtRequestMessage.h
  13605. (ID_t): Removed.
  13606. (ID): New variable.
  13607. (getId): Made non-const.
  13608. * src/BtHaveMessage.h
  13609. (ID_t): Removed.
  13610. (ID): New variable.
  13611. (getId): Made non-const.
  13612. To add --force-truncate command-line option and a check whether
  13613. the file already exists:
  13614. * src/DirectDiskAdaptor.h
  13615. (getFilePath): Made virtual public.
  13616. * src/MultiDiskAdaptor.h
  13617. (File.h): New include.
  13618. (DiskWriterEntry::fileEntry): Made private.
  13619. (DiskWriterEntry::fileExists): New function.
  13620. (DiskWriterEntry::getFileEntry): New function.
  13621. (fileExists): New function.
  13622. (getFilePath): New function.
  13623. * src/TorrentRequestInfo.cc
  13624. (FatalException.h): New include.
  13625. (message.h): New include.
  13626. (RecoverableException.h): New include.
  13627. (execute): Added a check whether file is already exists or not.
  13628. * src/DiskAdaptor.h
  13629. (fileExists): New function.
  13630. (getFilePath): New function.
  13631. * src/main.cc
  13632. (showUsage): Added an explanation of --force-truncate command-line
  13633. option.
  13634. (main): Added --force-truncate command-line option.
  13635. * src/Exception.h
  13636. (setMsg): buf[256] -> buf[1024]
  13637. * src/CopyDiskWriter.h
  13638. (getFilePath): Made public virtual.
  13639. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13640. (fileExists): New function.
  13641. * src/DownloadEngineFactory.cc
  13642. (newTorrentConsoleEngine): Don't open file here.
  13643. * src/message.h
  13644. (EX_FILE_ALREADY_EXISTS): New definition.
  13645. * src/prefs.h
  13646. (PREF_FOECE_TRUNCATE): New definition.
  13647. * src/HttpResponseCommand.cc
  13648. (handleDefaultEncoding): Added a check whether the file already exists.
  13649. * src/SegmentMan.h
  13650. (fileExists): New function.
  13651. (shouldCancelDownloadForSafety): New function.
  13652. * src/FtpNegotiateCommand.cc
  13653. (recvSize): Added a check whether the file already exists.
  13654. * src/AbstractSingleDiskAdaptor.cc
  13655. (File.h): New include.
  13656. (fileExists): New function.
  13657. * src/AbstractSingleDiskAdaptor.h
  13658. (getFilePath): Removed.
  13659. (fileExists): New function.
  13660. * src/SegmentMan.cc
  13661. (fileExists): New function.
  13662. (shouldCancelDownloadForSafety): New function.
  13663. To fix regression bug in torrent downloading:
  13664. * src/DefaultBtRequestFactory.cc
  13665. (doChokedAction): New function.
  13666. * src/DefaultBtRequestFactory.h
  13667. (doChokedAction): New function.
  13668. * src/DefaultBtMessageDispatcher.cc
  13669. (doChokedAction): Do not delete request if its target is in allowed
  13670. fast set.
  13671. * src/DefaultBtInteractive.cc
  13672. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13673. (sendKeepAlive): Send keep alive message even if the outgoing message
  13674. queue is not empty.
  13675. (decideInterest): Simplified the code.
  13676. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13677. it is already called when BtChokeMessage is received from a peer.
  13678. * src/BtRequestFactory.h
  13679. (doChokedAction): New function.
  13680. To clean up code:
  13681. * src/PeerInteractionCommand.h
  13682. (executeInternal): Added virtual keyword explicitly.
  13683. (prepareForRetry): Added virtual keyword explicitly.
  13684. (prepareForNextPeer): Added virtual keyword explicitly.
  13685. (onAbort): Added virtual keyword explicitly.
  13686. * src/RequestSlot.cc
  13687. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13688. * src/BtPieceMessage.cc
  13689. (doReceivedAction): Added a debug log of piece's bitfield.
  13690. * src/Piece.h
  13691. (getBitfieldLength): New function.
  13692. * src/ByteArrayDiskWriter.cc
  13693. (clear): Added buf = 0 to avoid double free corruption.
  13694. * src/FileAllocator.cc
  13695. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13696. Added cp.reset().
  13697. * src/BitfieldMan.h
  13698. (operator=): Rewritten.
  13699. * src/BitfieldMan.cc
  13700. (BitfieldMan): Initialized bitfield, useBitfield.
  13701. * src/PeerConnection.cc
  13702. (receiveMessage): Added a call to socket->readable() after getting
  13703. message length to avoid possible EOF.
  13704. * src/Util.cc
  13705. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13706. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13707. To add an ability to pre-allocate file space:
  13708. * src/DirectDiskAdaptor.h: Rewritten.
  13709. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13710. * src/MultiDiskAdaptor.h: Rewritten.
  13711. * src/DefaultPieceStorage.cc
  13712. (MultiDiskWriter.h): Removed include.
  13713. (PreAllocationDiskWriter.h): Removed include.
  13714. (FileAllocationMonitor.h): New include.
  13715. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13716. (initStorage): Rewritten.
  13717. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13718. * src/FileAllocator.h: New class.
  13719. * src/FileAllocator.cc: New class.
  13720. * src/FileAllocationMonitor.h: New class.
  13721. * src/FileAllocationMonitor.cc: New class.
  13722. * src/ConsoleFileAllocationMonitor.h: New class.
  13723. * src/ConsoleFileAllocationMonitor.cc: New class.
  13724. * src/AbstractSingleDiskAdaptor.h: New class.
  13725. * src/AbstractSingleDiskAdaptor.cc: New class.
  13726. * src/DiskAdaptor.h
  13727. (Directory.h): Removed include.
  13728. (DiskWriter.h): Removed include.
  13729. (FileEntry.h): Removed include.
  13730. (diskWriter): Removed.
  13731. (DiskAdaptor): Removed diskWriter.
  13732. (openFile): Made pure virtual.
  13733. (closeFile): Made pure virtual.
  13734. (openExistingFile): Made pure virtual.
  13735. (initAndOpenFile): Made pure virtual.
  13736. (writeData): Made pure virtual.
  13737. (readData): Made pure virtual.
  13738. (sha1Sum): Made pure virtual.
  13739. (getStoreDir): Returns const reference of storeDir.
  13740. (DiskAdaptorHandle): New type definition.
  13741. * src/main.cc
  13742. (ConsoleFileAllocationMonitor.h): New include.
  13743. (showUsage): Added default value description of -s option.
  13744. Added the description of --file-allocation option.
  13745. (main): Set default value of --file-allocation option to 'none'.
  13746. Added --file-allocation command-line option.
  13747. Setup FileAllocationMonitorFactory.
  13748. * src/FtpInitiateConnectionCommand.cc
  13749. (executeInternal): Removed diskWriter related processing, which was
  13750. moved to FtpNegotiationCommand.cc.
  13751. * src/DirectDiskAdaptor.cc
  13752. (getFilePath): Made non-const.
  13753. * src/CopyDiskAdaptor.h
  13754. (DiskAdaptor.h): Removed include.
  13755. (DiskWriter.h): Removed include.
  13756. (AbstractSingleDiskAdaptor.h): New include.
  13757. (getFilePath): Made non-const. Added virtual keyword.
  13758. (CopyDiskAdaptor): Removed diskWriter.
  13759. (getTempFile): Returns const reference.
  13760. (CopyDiskAdaptorHandle): New type definition.
  13761. * src/ByteArrayDiskWriter.cc
  13762. (clear): Simplified.
  13763. (initAndOpenFile): Rewritten.
  13764. (openFile): Call initAndOpenFile()
  13765. * src/MultiDiskAdaptor.cc: Rewritten.
  13766. * src/DownloadEngineFactory.cc
  13767. (FileAllocator.h): New include.
  13768. (FileAllocationMonitor.h): New include.
  13769. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13770. create DefaultDiskWriter with file allocator.
  13771. * src/DiskWriter.h
  13772. (initAndOpenFile): Added totalLength argument.
  13773. (openFile): Added totalLength argument.
  13774. * src/prefs.h
  13775. (PREF_FILE_ALLOCATION): New definition.
  13776. (V_PREALLOC): New definition.
  13777. (V_NONE): New definition.
  13778. * src/HttpResponseCommand.cc
  13779. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13780. size.
  13781. * src/FtpNegotiateCommand.cc
  13782. (Util.h): New include.
  13783. (recvSize): Open file here.
  13784. * src/Util.h
  13785. (ullitos): New function.
  13786. * src/CopyDiskWriter.h
  13787. (getFilePath): Made non-const.
  13788. * src/DefaultDiskWriter.h
  13789. (Option.h): New include.
  13790. (totalLength): Removed.
  13791. (DefaultDiskWriter): Removed totalLength.
  13792. (initAndOpenFile): Added totalLength argument.
  13793. (DefaultDiskWriterHandle): New type definition.
  13794. (createNewDiskWriter): New function.
  13795. * src/Util.cc
  13796. (ullitos): New function.
  13797. * src/DefaultDiskWriter.cc
  13798. (message.h): New include.
  13799. (FileAllocator.h): New include.
  13800. (prefs.h): New include.
  13801. (Util.h): New include.
  13802. (DefaultDiskWriter): Removed totalLength.
  13803. (initAndOpenFile): Added file allocation.
  13804. (createNewDiskWriter): New function. Just for temporary solution.
  13805. It will be rewritten later.
  13806. * src/DiskAdaptor.cc
  13807. (DiskAdaptor): Removed diskWriter.
  13808. * src/AbstractDiskWriter.cc
  13809. (LogFactory.h): New include.
  13810. (AbstractDiskWriter): Added fileAllocator, logger.
  13811. (openFile): Added totalLength argument.
  13812. * src/AbstractDiskWriter.h
  13813. (FileAllocator.h): New include.
  13814. (Logger.h): New include.
  13815. (fileAllocator): New variable.
  13816. (logger): New variable.
  13817. (openFile): Added totalLength argument. Added virtual keyword
  13818. explicitly.
  13819. (openExistingFile): Added totalLength argument. Added virtual keyword
  13820. explicitly.
  13821. (closeFile): Added virtual keyword explicitly.
  13822. (sha1Sum): Added virtual keyword explicitly.
  13823. (writeData): Added virtual keyword explicitly.
  13824. (readData): Added virtual keyword explicitly.
  13825. (setFileAllocator): New function.
  13826. * src/DefaultPieceStorage.h
  13827. (FileAllocator.h): New include.
  13828. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13829. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13830. * src/FileProgressMonitor.h: New class.
  13831. To compile aria2 on PC-BSD:
  13832. * src/DefaultBtContext.cc
  13833. (libgen.h): New include.
  13834. To fix memory leak:
  13835. * src/Exception.h
  13836. (~Exception): Delete cause. Fixed memory leak.
  13837. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13838. Rewritten a portion of bittorrent implementation:
  13839. * src/BtMessageValidator.h: New class.
  13840. * src/BtBitfieldMessageValidator.h: New class.
  13841. * src/BtHandshakeMessageValidator.h: New class.
  13842. * src/BtRequestMessageValidator.h: New class.
  13843. * src/BtSuggestPieceMessageValidator.h: New class.
  13844. * src/BtAllowedFastMessageValidator.h: New class.
  13845. * src/BtRejectMessageValidator.h: New class.
  13846. * src/BtCancelMessageValidator.h: New class.
  13847. * src/BtPieceMessageValidator.h: New class.
  13848. * src/BtHaveMessageValidator.h: New class.
  13849. * src/BtEventListener.h: New class.
  13850. * src/AbstractBtEventListener.h: New class.
  13851. * src/BtEvent.h: New class.
  13852. * src/BtChokingEvent.h: New class.
  13853. * src/BtChokedEvent.h: New class.
  13854. * src/BtCancelSendingPieceEvent.h: New class.
  13855. * src/BtAbortOutstandingRequestEvent.h: New class.
  13856. * src/Randomizer.h: New class.
  13857. * src/SimpleRandomizer.h: New class.
  13858. * src/BtMessage.h: New class.
  13859. * src/AbstractBtMessage.h: New class.
  13860. * src/SimpleBtMessage.h: New class.
  13861. * src/BtHaveMessage.h: New class.
  13862. * src/BtInterestedMessage.h: New class.
  13863. * src/BtAllowedFastMessage.h: New class.
  13864. * src/BtUnchokeMessage.h: New class.
  13865. * src/BtCancelMessage.h: New class.
  13866. * src/BtNotInterestedMessage.h: New class.
  13867. * src/BtChokeMessage.h: New class.
  13868. * src/BtHaveNoneMessage.h: New class.
  13869. * src/BtHandshakeMessage.h: New class.
  13870. * src/BtSuggestPieceMessage.h: New class.
  13871. * src/BtHaveMessage.h: New class.
  13872. * src/BtPieceMessage.h: New class.
  13873. * src/BtHaveAllMessage.h: New class.
  13874. * src/BtKeepAliveMessage.h: New class.
  13875. * src/BtPortMessage.h: New class.
  13876. * src/BtRejectMessage.h: New class.
  13877. * src/BtBitfieldMessage.h: New class.
  13878. * src/BtRequestMessage.h: New class.
  13879. * src/DefaultBtRequestFactory.h: New class.
  13880. * src/DefaultBtMessageReceiver.h: New class.
  13881. * src/BtInteractive.h: New class.
  13882. * src/BtMessageDispatcher.h: New class.
  13883. * src/DefaultBtMessageDispatcher.h: New class.
  13884. * src/DefaultBtInteractive.h: New class.
  13885. * src/BitfieldManFactory.h: New class.
  13886. * src/HandleRegistry.h: New class.
  13887. * src/BtMessageFactory.h: New class.
  13888. * src/BtMessageReceiver.h: New class.
  13889. * src/DefaultBtMessageFactory.h: New class.
  13890. * src/PeerObject.h: New class.
  13891. * src/BtRequestFactory.h: New class.
  13892. * src/SuggestPieceMessage.h: Removed.
  13893. * src/PortMessage.h: Removed.
  13894. * src/SuggestPieceMessage.h: Removed.
  13895. * src/KeepAliveMessage.h: Removed.
  13896. * src/HandshakeMessage.h: Removed.
  13897. * src/PeerInteraction.h: Removed.
  13898. * src/UnchokeMessage.h: Removed.
  13899. * src/PieceMessage.h: Removed.
  13900. * src/RequestMessage.h: Removed.
  13901. * src/InterestedMessage.h: Removed.
  13902. * src/HaveMessage.h: Removed.
  13903. * src/CancelMessage.h: Removed.
  13904. * src/RejectMessage.h: Removed.
  13905. * src/AllowedFastMessage.h: Removed.
  13906. * src/HaveNoneMessage.h: Removed.
  13907. * src/SimplePeerMessage.h: Removed.
  13908. * src/HaveAllMessage.h: Removed.
  13909. * src/BitfieldMessage.h: Removed.
  13910. * src/PeerMessageFactory.h: Removed.
  13911. * src/NotInterestedMessage.h: Removed.
  13912. * src/ChokeMessage.h: Removed.
  13913. * src/PeerMessage.h: Removed.
  13914. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13915. To know root cause of exception:
  13916. * src/Exception.h
  13917. (cause): New variable.
  13918. (Exception): Added a parameter.
  13919. (getMsg): Return const reference to msg.
  13920. (getCause): New function.
  13921. * src/DlRetryEx.h
  13922. (DlRetryEx): Added a parameter 'cause'.
  13923. Added an overloaded constructor.
  13924. (DlAbortEx): Added a parameter 'cause'.
  13925. Added an overloaded constructor.
  13926. * src/SimpleLogger.cc
  13927. (writeLog): Log nested exception messages recursively.
  13928. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13929. * src/DefaultBtProgressInfoFile.cc
  13930. (load): Fixed memory leak when the infohash doesn't match.
  13931. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13932. * src/DefaultPeerStorage.cc
  13933. (calculateStat): Simplified the code by combining 2 loops into 1.
  13934. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13935. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13936. for BitTorrent download:
  13937. * src/PeerAbstractCommand.cc
  13938. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13939. * src/main.cc:
  13940. (timeoutSpecified): Removed.
  13941. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13942. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13943. * src/TorrentRequestInfo.cc
  13944. (timeoutSpecified): Removed.
  13945. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13946. timeout value.
  13947. * src/prefs.h
  13948. (PREF_BT_TIMEOUT): New definition.
  13949. Delete unused variables:
  13950. * src/TorrentRequestInfo.cc
  13951. (requestInfo): Removed.
  13952. Move setSignalHander to Util::setGlobalSignalHandler:
  13953. * src/TorrentRequestInfo.cc:
  13954. setSignalHander -> Util::setGlobalSignalHandler
  13955. * src/main.cc
  13956. (setSignalHander): Removed.
  13957. (main): setSignalHander -> Util::setGlobalSignalHandler
  13958. * src/Util.h
  13959. (setGlobalSignalHandler): New function.
  13960. * src/Util.cc
  13961. (setGlobalSignalHandler): New function.
  13962. * src/UrlRequestInfo.cc:
  13963. setSignalHander -> Util::setGlobalSignalHandler
  13964. Reset peer status in order to exit gracefully:
  13965. * src/PeerAbstractCommand.cc
  13966. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13967. To fix the bug that causes the number of bytes uploaded is not saved
  13968. to .aria2 file:
  13969. * src/DefaultPeerStorage.h
  13970. (removedPeerSessionDownloadLength): New variable.
  13971. (removedPeerSessionUploadLength): New variable.
  13972. * src/DefaultPeerStorage.cc
  13973. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13974. removedPeerSessionUploadLength(0).
  13975. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13976. through all peers, and then add removedPeerSessionDownloadLength(
  13977. removedPeerSessionUploadLength) to it.
  13978. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13979. (to) the peer to removedPeerSessionDownloadLength
  13980. (removedPeerSessionUploadLength).
  13981. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13982. To add Metalink location option:
  13983. * src/MetalinkRequestInfo.cc
  13984. (execute): Call MetalinkEntry::setLocationPreference()
  13985. * src/main.cc
  13986. (showUsage): Added the help message for --metalink-location option.
  13987. (main): Added --metalink-location option.
  13988. * src/prefs.h
  13989. (PREF_METALINK_LOCATION): New definition.
  13990. * src/MetalinkEntry.cc
  13991. (AddLocationPreference): New function object.
  13992. (setLocationPreference): New function.
  13993. * src/Xml2MetalinkProcessor.cc
  13994. (getResource): Set location attribute to MetalinkResource
  13995. To show URLs to download
  13996. * src/UrlRequestInfo.h
  13997. (printUrls): New function.
  13998. To add multiple <file> Metalink support:
  13999. * src/MetalinkEntry.h
  14000. (MetalinkResources): Removed.
  14001. (setLocationPreference): New function.
  14002. (MetalinkEntryHandle): New type definition.
  14003. (MetalinkEntries): New type definition.
  14004. * src/Xml2MetalinkProcessor.h
  14005. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14006. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14007. (parseFile): Metalinker* -> MetalinkerHandle
  14008. * src/UrlRequestInfo.h
  14009. (execute): RequestInfo* -> RequestInfos
  14010. * src/MetalinkRequestInfo.cc
  14011. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14012. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14013. (execute): RequestInfo* -> RequestInfos
  14014. Added multiple <file> support. Print filename when it is queued.
  14015. * src/MetalinkRequestInfo.h
  14016. (execute): RequestInfo* -> RequestInfos
  14017. (getDownloadEngine): Removed.
  14018. * src/RequestInfo.h
  14019. (RequestInfoHandle): New type definition.
  14020. (RequestInfos): New type definition.
  14021. (execute): RequestInfo* -> RequestInfos
  14022. (getDownloadEngine): Removed.
  14023. * src/MetalinkResource.h
  14024. (MetalinkResourceHandle): New type definition.
  14025. (MetalinkResources): New type definition.
  14026. * src/MetalinkEntry.cc
  14027. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14028. because the element is now of type MetalinkResourceHandle.
  14029. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14030. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14031. (dropUnsupportedResource): Removed the deletion of the elements of
  14032. resources because the element is now of type MetalinkResourceHandle.
  14033. * src/Xml2MetalinkProcessor.cc
  14034. (parseFile): Metalinker* -> MetalinkerHandle
  14035. MetalinkEntry* -> MetalinkEntryHandle
  14036. Removed try-catch block.
  14037. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14038. MetalinkResource* -> MetalinkResourceHandle
  14039. Removed try-catch block.
  14040. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14041. Free result by using xmlXPathFreeObject()
  14042. * src/Metalinker.cc
  14043. (~Metalinker): Removed the deletion of entries.
  14044. MetalinkEntry* -> MetalinkEntryHandle
  14045. (queryEntry): Add multiple <file> Metalink support.
  14046. * src/Metalinker.h
  14047. (MetalinkEntries): Removed.
  14048. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14049. * src/MetalinkProcessor.h
  14050. (parseFile): Metalinker* -> MetalinkerHandle
  14051. Bug fixes:
  14052. * src/PeerChokeCommand.cc
  14053. (execute): cat01->cat02
  14054. * src/DefaultPieceStorage.cc
  14055. (DefaultPieceStorage): Added diskAdaptor(0)
  14056. * src/TrackerWatcherComand.cc:
  14057. (execute): Use btAnnounce->noMoreAnnounce()
  14058. to determin whether the function returns true or not.
  14059. * src/TrackerUpdateCommand.cc:
  14060. (execute): Use btAnnounce->noMoreAnnounce()
  14061. to determin whether the function returns true or not.
  14062. * src/FtpConnection.cc
  14063. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14064. This is the fix of the busy loop bug.
  14065. * src/DownloadCommand.cc
  14066. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14067. cached PeerStat.
  14068. The value of "name" entry in torrent file is now set by
  14069. *DiskAdaptor::setTopDir(...) methods.
  14070. * src/MultiDiskAdaptor.h
  14071. (topDir): New variable.
  14072. (setTopDir): New function.
  14073. (getTopDir): New function.
  14074. * src/MultiDiskAdaptor.cc
  14075. (getFilePath): Concat storDir, "/" and topDir.
  14076. (mkdir): Use getFilePath() to get the directory path for output.
  14077. * src/DefaultPieceStorage.cc
  14078. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14079. CopyDiskAdaptor.
  14080. * src/CopyDiskAdaptor.h
  14081. (topDir): New variable.
  14082. (setTopDir): New function.
  14083. (getTopDir): New function.
  14084. * src/CopyDiskAdaptor.cc
  14085. (fixFilename): Updated.
  14086. Misc
  14087. * src/UrlRequestInfo.h
  14088. (e): Removed.
  14089. (UrlRequestInfo): Removed e.
  14090. (getDownloadEngine): Removed.
  14091. * src/UrlRequestInfo.cc
  14092. (handler): Rewritten.
  14093. (printUrls): New function.
  14094. (execute): Call printUrls().
  14095. * src/HandshakeMessage.cc
  14096. (check): peerinteraction->getBtContext() -> btContext
  14097. * src/PeerInteraction.h
  14098. (getBtContext): Removed.
  14099. * src/TorrentRequestInfo.h
  14100. (execute): RequestInfo* -> RequestInfos
  14101. (getDownloadEngine): Removed.
  14102. * src/TorrentRequestInfo.cc
  14103. (haltRequested): Removed.
  14104. (btHaltRequested): New variable.
  14105. (torrentHandler): haltRequested -> btHaltRequested
  14106. (execute): RequestInfo* -> RequestInfos
  14107. * src/TorrentConsoleDownloadEngine.cc
  14108. (afterEachIteration): haltRequested -> btHaltRequested.
  14109. * src/ConsoleDownloadEngine.h
  14110. (initStatistics): Added virtual.
  14111. (calculateStatistics): Added virtual.
  14112. (onEndOfRun): Added virtual.
  14113. (afterEachIteration): Added virtual.
  14114. * src/ConsoleDownloadEngine.cc
  14115. (haltRequested): New variable.
  14116. (afterEachIteration): New function.
  14117. * src/main.cc
  14118. (requestInfo): Removed.
  14119. * src/SegmentMan.cc
  14120. (findSlowerSegmentEntry): Refactored.
  14121. * Release 0.9.0
  14122. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14123. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14124. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14125. * src/TorrentMan.h: Removed.
  14126. * src/TorrentMan.cc: Removed.
  14127. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14128. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14129. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14130. * src/PeerAbstractCommand.cc: Use btRuntime.
  14131. * src/BtContextAwareCommand.h: New class.
  14132. * src/FileEntry.h: Added accessor methods for following variables.
  14133. (path): Made private.
  14134. (length): Made private.
  14135. (offset): Made private.
  14136. (extracted): Made private.
  14137. (requested): Made private.
  14138. (FileEntries): New definition.
  14139. (FileEntryHandle): New definition.
  14140. * src/FileEntry.cc: New file.
  14141. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14142. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14143. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14144. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14145. * src/PieceStorage.h: New file.
  14146. * src/PeerInteractionCommand.h: Use btContext.
  14147. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14148. btRuntime.
  14149. * src/DefaultBtProgressInfoFile.h: New file.
  14150. * src/DefaultBtProgressInfoFile.cc: New file.
  14151. * src/File.cc
  14152. (Util.h): New include.
  14153. (mkdirs): New function.
  14154. * src/MultiDiskAdaptor.h
  14155. (mkdir): New function.
  14156. * src/PeerListProcessor.h
  14157. (Peers): Removed.
  14158. * src/PeerInteraction.h
  14159. (torrentMan): Removed.
  14160. (btContext): New variable.
  14161. (peerStorage): New variable.
  14162. (pieceStorage): New variable.
  14163. (btAnnounce): New variable.
  14164. (getTorrentMan): Removed.
  14165. (getBtContext): New function.
  14166. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14167. btAnnounce.
  14168. * src/HandshakeMessage.h
  14169. (TorrentMan.h): Removed.
  14170. * src/HandshakeMessage.cc: Use btContext.
  14171. * src/DefaultBtAnnounce.cc: New file.
  14172. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14173. * src/DefaultPieceStorage.cc: New file.
  14174. * src/DefaultBtContext.h: New file.
  14175. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14176. Use the accessor methods of FileEntry.
  14177. * src/CookieBox.cc: Updated to use Util::slice().
  14178. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14179. * src/common.h (SharedHandle.h): New include.
  14180. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14181. pieceStorage.
  14182. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14183. * src/DiskAdaptor.h
  14184. (topDir): Removed.
  14185. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14186. (setTopDir): Removed.
  14187. (getTopDir): Removed.
  14188. * src/BtContext.h: New file.
  14189. * src/DefaultPeerStorage.h: New file.
  14190. * src/PieceMessage.h (TorrentMan.h): Removed.
  14191. * src/RequestMessage.h (TorrentMan.h): Removed.
  14192. * src/TorrentDownloadEngine.h
  14193. (uploadLength): New variable.
  14194. (btContext): New variable.
  14195. (btRuntime): New variable.
  14196. (pieceStorage): New variable.
  14197. (peerStorage): New variable.
  14198. (btAnnounce): New variable.
  14199. (btProgressInfoFile): New variable.
  14200. (torrentMan): Removed.
  14201. (setBtContext): New function.
  14202. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14203. peerStorage, btAnnounce, btProgressInfoFile.
  14204. * src/Piece.h
  14205. (toString): New function.
  14206. (Pieces): New type definition.
  14207. * src/Peer.h
  14208. (active): New variable.
  14209. (Peer): Added active.
  14210. (activate): Set active to true.
  14211. (deactivate): Set active to false.
  14212. (isActive): New function.
  14213. (Peers): New type definition.
  14214. * src/DirectDiskAdaptor.cc
  14215. (getFilePath): Use the accessor methods of FileEntry.
  14216. * src/TorrentConsoleDownloadEngine.h
  14217. (afterEachIteration): New function.
  14218. * src/TorrentConsoleDownloadEngine.cc
  14219. (haltRequested): New variable.
  14220. (sendStatistics): Use pieceStorage, btRuntime.
  14221. (afterEachIteration): New function.
  14222. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14223. * src/Directry.h
  14224. (Directory): New function.
  14225. (DirectoryHandle): New type definition.
  14226. * src/BtProgressInfoFile.h: New file.
  14227. * src/RequestMessage.cc: Use pieceStorage.
  14228. * src/BtRuntime.h: New file.
  14229. * src/DefaultBtContext.cc: New file.
  14230. * src/BitfieldMan.h
  14231. (getCompletedLength): New function(private).
  14232. (getCompletedLength): New function.
  14233. (getFilteredCompletedLength): New function.
  14234. * src/BitfieldMan.h
  14235. (getCompletedLength): New function(private).
  14236. (getCompletedLength): New function.
  14237. (getFilteredCompletedLength): New function.
  14238. * src/MultiDiskAdaptor.cc
  14239. (mkdir): New function.
  14240. (openFile): Call mkdir().
  14241. (initAndOpenFile): Call mkdir().
  14242. * src/CancelMessage.h
  14243. (TorrentMan.h): Removed.
  14244. * src/RejectMessage.h
  14245. (TorrentMan.h): Removed.
  14246. * src/DownloadEngineFactory.cc
  14247. (DefaultPieceStorage.h): New include.
  14248. (DefaultPeerStorage.h): New include.
  14249. (DefaultBtAnnounce.h): New include.
  14250. (DefaultBtProgressInfoFile.h): New include.
  14251. (newTorrentConsoleEngine): Rewritten.
  14252. * src/ShareRatioSeedCriteria.h
  14253. (torrentMan): Removed.
  14254. (btContext): New variable.
  14255. (peerStorage): New variable.
  14256. (btRuntime): New variable.
  14257. (evaluate): Use btContext, btRuntime, peerStorage.
  14258. * src/AnnounceTier.h: New file.
  14259. * src/BtAnnounce.h: New file.
  14260. * src/BtRegistry.h: New file.
  14261. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14262. * src/PeerConnection.h (TorrentMan.h): Removed.
  14263. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14264. * src/Util.h
  14265. (slice): Added an argument.
  14266. * src/Util.cc
  14267. (slice): Added an argument to control whether trim is made or not.
  14268. * src/PeerStorage.h: New file.
  14269. * src/BtRegistry.cc: New file.
  14270. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14271. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14272. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14273. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14274. * src/TorrentRequestInfo.h
  14275. (e): Removed.
  14276. (showFileEntry): Added an argument.
  14277. (getDownloadEngine): Return 0.
  14278. * src/DefaultBtAnnounce.h: New file.
  14279. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14280. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14281. * src/PeerMessageFactory.h
  14282. (btContext): New variable.
  14283. (pieceStorage): New variable.
  14284. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14285. btAnnounce.
  14286. * src/DiskAdaptor.cc
  14287. (DiskAdaptor): Removed topDir.
  14288. (~DiskAdaptor): Removed topDir.
  14289. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14290. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14291. * src/File.h (mkdirs): New function.
  14292. * src/DefaultPeerStorage): New file.
  14293. * src/DownloadEngineFactory.h
  14294. (newTorrentConsoleEngine): Use btContext.
  14295. * src/BtContextAwareCommand.cc: New file.
  14296. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14297. * src/PeerMessage.h
  14298. (btContext): New variable.
  14299. (peerStorage): New variable.
  14300. (pieceStorage): New variable.
  14301. (setBtContext): New function.
  14302. * src/Directry.cc
  14303. (Directory): New function.
  14304. (createDir): Do nothing if name.size() == 0.
  14305. * src/AnnounceList.h
  14306. (AnnounceTier): Removed.
  14307. (AnnounceTiers): Removed.
  14308. * src/DefaultPieceStorage.h: New file.
  14309. * src/Piece.cc (toString): New function.
  14310. To fix typo:
  14311. * src/main.cc (showVersion): Fixed typo.
  14312. To fix compile warning:
  14313. * src/DelegatingPeerListProcessor.cc
  14314. (canHandle): Added "return false".
  14315. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14316. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14317. make the process of announce request testable.
  14318. * src/TrackerWatcherCommand.h
  14319. (TimeA2.h): Removed.
  14320. (interval): Removed.
  14321. (checkPoint): Removed.
  14322. (createRequestCommand): Added an argument 'url'.
  14323. (TrackerWatherCommand): Removed interval.
  14324. (createCommand): New function.
  14325. * src/DownloadEngineFactory.cc
  14326. (newTorrentConsoleEngine): Updated according to the changes in
  14327. TrackerWatherCommand.
  14328. * src/TorrentMan.cc
  14329. (DelegatingPeerListProcessor.h): New includes.
  14330. (TorrentMan): Added the initialization of announceInterval.
  14331. (isStoppedAnnounceReady): New function.
  14332. (isCompletedAnnounceReady): New function.
  14333. (isDefaultAnnounceReady): New function.
  14334. (isAnnounceReady): New function.
  14335. (getAnnounceUrl): New function.
  14336. (announceStart): New function.
  14337. (announceFailure): New function.
  14338. (announceSuccess): New function.
  14339. (isAllAnnounceFailed): New function.
  14340. (resetAnnounce): New function.
  14341. (processAnnounceResponse): New function.
  14342. (needMorePeerConnection): New function.
  14343. (noMoreAnnounce): New function.
  14344. * src/TrackerUpdateCommand.h
  14345. (getTrackerResponse): int->size_t
  14346. * src/TorrentMan.h
  14347. (isStoppedAnnounceReady): New function.
  14348. (isCompletedAnnounceReady): New function.
  14349. (isDefaultAnnounceReady): New function.
  14350. (announceInterval): New variable.
  14351. (isAnnounceReady): New function.
  14352. (getAnnounceUrl): New function.
  14353. (announceStart): New function.
  14354. (announceFailure): New function.
  14355. (announceSuccess): New function.
  14356. (isAllAnnounceFailed): New function.
  14357. (resetAnnounce): New function.
  14358. (processAnnounceResponse): New function.
  14359. (needMorePeerConnection): New function.
  14360. (noMoreAnnounce): New function.
  14361. * src/TrackerWatcherCommand.cc
  14362. (TrackerWatherCommand): Removed interval and checkPoint.
  14363. (execute): Rewritten.
  14364. (createCommand): New function.
  14365. (createRequestCommand): Rewritten.
  14366. * src/TrackerUpdateCommand.cc
  14367. (MetaFileUtil.h): Removed.
  14368. (DelegatingPeerListProcessor.h): Removed.
  14369. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14370. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14371. Request -> RequestHandle:
  14372. * src/HttpResponseCommand.h: Request->RequestHandle
  14373. * src/AbstractCommand.cc: Request->RequestHandle
  14374. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14375. * src/HttpRequestCommand.cc: Request->RequestHandle
  14376. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14377. * src/AbstractCommand.h: Request->RequestHandle
  14378. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14379. * src/HttpResponseCommand.cc: Request->RequestHandle
  14380. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14381. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14382. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14383. * src/HttpConnection.h: Request->RequestHandle
  14384. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14385. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14386. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14387. * src/DownloadCommand.h: Request->RequestHandle
  14388. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14389. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14390. * src/HttpRequestCommand.h: Request->RequestHandle
  14391. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14392. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14393. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14394. * src/HttpDownloadCommand.h: Request->RequestHandle
  14395. * src/FtpConnection.cc: Request->RequestHandle
  14396. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14397. * src/UrlRequestInfo.cc: Request->RequestHandle
  14398. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14399. * src/HttpConnection.h: Request->RequestHandle
  14400. * src/DownloadCommand.cc: Request->RequestHandle
  14401. * src/FtpConnection.h: Request->RequestHandle
  14402. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14403. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14404. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14405. * src/Request.h
  14406. (SharedHandle.h): New include.
  14407. (RequestHandle): New type definition.
  14408. (Requests): Redefined.
  14409. To add MULTITRACKER support:
  14410. * src/TrackerWatcherCommand.h
  14411. (createRequestCommand): New function.
  14412. * src/DownloadEngineFactory.cc
  14413. (newTorrentConsoleEngine): Removed req.
  14414. * src/prefs.h
  14415. (PREF_TRACKER_MAX_TRIES): New definition.
  14416. * src/TorrentMan.cc
  14417. (TorrentMan): Removed req. Added trackerNumTry.
  14418. (~TorrentMan): Removed req.
  14419. (setupInternal1): Added announceList.
  14420. * src/TorrentRequestInfo.cc
  14421. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14422. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14423. * src/main.cc
  14424. (main): Added PREF_TRACKER_MAX_TRIES.
  14425. * src/TorrentMan.h
  14426. (Request.h): Removed.
  14427. (AnnounceList.h): New include.
  14428. (trackerNumTry): New variable.
  14429. (req): Removed.
  14430. (announceList): New variable.
  14431. * src/TrackerWatcherCommand.cc
  14432. (execute): Rewritten.
  14433. (createRequestCommand): New function.
  14434. * src/TrackerUpdateCommand.cc
  14435. (execute): Updated with the use of AnnounceList.
  14436. * src/AnnounceList.cc: New class.
  14437. * src/AnnounceList.h: New class.
  14438. To fix typo:
  14439. * src/prefs.h
  14440. (PREF_MAX_TRIES): max_try->max_tries
  14441. To not to decode "+" as space in URL decode:
  14442. * src/Util.cc
  14443. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14444. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14445. To add timeout to async name resolution:
  14446. * src/AbstractCommand.h
  14447. (nameResolveFinished): New function. This is not elegant way. It needs
  14448. to be more refined.
  14449. (nameResolverCheck): New variable.
  14450. * src/AbstractCommand.cc
  14451. (AbstractCommand): Added nameResolverCheck.
  14452. (execute): Added the check whether the name resolution has finished.
  14453. (setNameResolverCheck): Set nameResolverCheck to true.
  14454. (disableNameResolverCheck): Set nameResolverCheck to false.
  14455. (nameResolverFinished): New function.
  14456. * src/FtpInitiateConnectionCommand.h
  14457. (nameResolverFinished): New function.
  14458. * src/FtpInitiateConnectionCommand.cc
  14459. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14460. * src/HttpInitiateConnectionCommand.h
  14461. (nameResolverFinished): New function.
  14462. * src/HttpInitiateConnectionCommand.cc
  14463. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14464. * src/prefs.h
  14465. (PREF_DNS_TIMEOUT): New definition.
  14466. * src/main.cc
  14467. (main): Added PREF_DNS_TIMEOUT.
  14468. To add the support for a non-compact response from a tracker:
  14469. * src/PeerListProcessor.h: New class.
  14470. * src/DefaultPeerListProcessor.h: New class.
  14471. * src/DefaultPeerListProcessor.cc: New class.
  14472. * src/CompactPeerListProcessor.h: New class.
  14473. * src/CompactPeerListProcessor.cc: New class.
  14474. * src/DelegatingPeerListProcessor.h: New class.
  14475. * src/DelegatingPeerListProcessor.cc: New class.
  14476. * src/TorrentMan.cc
  14477. (addPeer): New function(overload).
  14478. (addPeer): Delete unused peers only when new peer is added.
  14479. * src/TorrentMan.h
  14480. (PeerListProcessor.h): Included.
  14481. (Peers): Removed.
  14482. (addPeer): New function(overload).
  14483. * src/TrackerUpdateCommand.cc
  14484. (netinet/in.h): Removed.
  14485. (DelegatingPeerListProcessor.h): Included.
  14486. (execute): Updated to use DelegatingPeerListProcessor.
  14487. To fix the memory leak in TorrentMan::peers:
  14488. * src/PeerAbstractCommand.cc
  14489. (onAbort): Added peer->resetStatus().
  14490. * src/Peer.h
  14491. (resetStatus): Made public.
  14492. To improve the precision of the speed calculation:
  14493. * src/SpeedCalc.h
  14494. (nextInterval): New variable.
  14495. * src/SpeedCalc.cc
  14496. (reset): Added nextInterval.
  14497. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14498. (changeSw): Set nextInterval to 15 seconds relative to the current
  14499. instant time.
  14500. * src/main.cc
  14501. (showVersion): Updated.
  14502. (showUsage): Updated.
  14503. * Release 0.8.1
  14504. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14505. * src/main.cc
  14506. (showUsage): Commented out --min-segment-size option.
  14507. (main): Commented out --min-segment-size option.
  14508. * Release 0.8.0
  14509. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14510. * src/*.{h,cc}:
  14511. Added an exception to the license which allows linking with OpenSSL.
  14512. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14513. * src/AbstractCommand.cc
  14514. (execute): Check whether the download has finished before checking
  14515. socket status.
  14516. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14517. Do not exit even if no segment is available.
  14518. * src/prefs.h
  14519. (PREF_STARTUP_IDLE_TIME): New definition.
  14520. * src/PeerInteractionCommand.cc
  14521. (executeInternal): Removed max speed limit. Because it performs bad.
  14522. (receiveMessages): Added max speed limit. This was better than above,
  14523. but still a little bit to be desired. Sometimes the download speed
  14524. became much faster than I specified.
  14525. * src/SpeedCalc.h
  14526. (start): New variable.
  14527. (accumulatedLength): New variable.
  14528. (getAvgSpeed): New function.
  14529. * src/SpeedCalc.cc
  14530. (reset): Added start, accumulatedLength.
  14531. (update): Added calculation of an average speed.
  14532. (getAvgSpeed): New function.
  14533. * src/DownloadCommand.h
  14534. (sw): Removed.
  14535. * src/main.cc
  14536. (main): Added PREF_STARTUP_IDLE_TIME.
  14537. * src/PeerStat.h
  14538. (STATUS): Added REQUEST_IDLE.
  14539. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14540. (getAvgDownloadSpeed): New function
  14541. (requestIdle): New function.
  14542. * src/SegmentMan.h
  14543. (SegmentEntryHandle): New type definition.
  14544. (SegmentEntries): Now holds SegmentEntryHandle.
  14545. (findSlowerSegmentEntry): New funtion.
  14546. * src/SegmentMan.cc
  14547. (save): Updated according to the changes in SegmentEntries.
  14548. (read): Updated according to the changes in SegmentEntries.
  14549. (FindSegmentEntryByIndex): Updated according to the changes in
  14550. SegmentEntries.
  14551. (FindSegmentEntryByCuid): Updated according to the changes in
  14552. SegmentEntries.
  14553. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14554. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14555. Renamed uitr as itr.
  14556. (findSlowerSegmentEntry): New function.
  14557. (getSegment): Updated according to the changes in SegmentEntries.
  14558. Added the feature that cancels the segment with slow server and fast
  14559. one takes it over.
  14560. (cancelSegment): Updated according to the changes in SegmentEntries.
  14561. (getDownloadLength): Updated according to the changes in
  14562. SegmentEntries.
  14563. (init): Assigned 0 to bitfield after deleting it.
  14564. * src/DownloadCommand.cc
  14565. (STARTUP_IDLE_TIME): Removed.
  14566. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14567. * src/PeerChokeCommand.cc
  14568. (optUnchokingPeer): Updated according to the changes in Peer.
  14569. (ResetDelta): Removed.
  14570. (UploadFaster): Updated according to the changes in Peer.
  14571. (DownloadFaster): Updated according to the changes in Peer.
  14572. (execute): I clarify the meaning of "upload" and "download" here.
  14573. "upload" means the transfer from localhost to remote host.
  14574. "download" means the transfer from remote host to localhost.
  14575. Based on this rule, I swapped orderByUploadRate and
  14576. orderByDownloadRate.
  14577. * src/PeerInteractionCommand.cc
  14578. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14579. (executeInternal): Removed the argument of
  14580. peerInteraction->sendMessages().
  14581. (receiveMessages): Rewritten download speed limit.
  14582. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14583. * src/HttpResponseCommand.cc
  14584. (handleDefaultEncoding): If file size is unknown in torrent request,
  14585. do not call segmentMan->initBitfield() here.
  14586. Disabled persistent connection feature in torrent request.
  14587. * src/UrlRequestInfo.h
  14588. (UrlRequestInfo): Removed const qualifier from option.
  14589. * src/TorrentMan.h
  14590. (TransferStat): New class.
  14591. (deltaDownloadLength): Removed.
  14592. (deltaUploadLength): Removed.
  14593. (addDeltaDownloadLength): Removed.
  14594. (getDeltaDownloadLength): Removed.
  14595. (resetDeltaDownloadLength): Removed.
  14596. (addDeltaUploadLength): Removed.
  14597. (getDeltaUploadLength): Removed.
  14598. (resetDeltaUploadLength): Removed.
  14599. (addActivePeer): Added peer->activate().
  14600. (deleteActivePeer): Added peer->deactivate().
  14601. (calculateStat): New function.
  14602. * src/TorrentMan.cc
  14603. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14604. (calculateStat): New function.
  14605. * src/PeerInteraction.h
  14606. (uploadLimit): Removed.
  14607. (option): New variable.
  14608. (setUploadLimit): Removed.
  14609. (getUploadSpeed): Removed.
  14610. (sendMessages): Removed the argument "currentUploadSpeed".
  14611. * src/PeerInteraction.cc
  14612. (prefs.h): Included.
  14613. (PeerInteraction): Removed uploadLimit. Added option.
  14614. (sendMessages): Rewritten upload speed limit.
  14615. (sendHandshake): Removed the argument from sendMessages().
  14616. (sendBitfield): Removed the argument from sendMessages().
  14617. * src/PeerAbstractCommand.cc
  14618. (execute): Commented out the portion of upload limit.
  14619. (onAbort): Removed peer->resetStatus().
  14620. * src/TorrentRequestInfo.cc
  14621. (timeoutSpecified): Declared extern.
  14622. (execute): Set timeout to 180 if timeout is not specified by.
  14623. command-line.
  14624. * src/PieceMessage.cc
  14625. (receivedAction): Added peer->updateDownloadLength().
  14626. Removed peer->addPeerUpload().
  14627. Removed torrentMan->addDeltaDownloadLength().
  14628. (send): Added peer->updateUploadLength().
  14629. Removed peer->addPeerDownload().
  14630. Removed torrentMan->addDeltaUploadLength().
  14631. * src/main.cc
  14632. (timeoutSpecified): New variable.
  14633. (main): Set timeoutSpecified to false.
  14634. If the command-line option "--upload-limit" is specified, then
  14635. timeoutSpecified is set to true. This option will remain in the next
  14636. release, but be deprecated in the future release.
  14637. * src/TorrentRequestInfo.h
  14638. (TorrentRequestInfo): Removed const qualifier from op.
  14639. * src/PeerStat.h
  14640. (uploadSpeed): New variable.
  14641. (PeerStat): Added default value to cuid.
  14642. (calculateUploadSpeed): New function.
  14643. (updateUploadLength): New function.
  14644. (getMaxUploadSpeed): New function.
  14645. (getAvgUploadSpeed): New function.
  14646. (reset): Added uploadSpeed. Set status to IDLE.
  14647. * src/TorrentDownloadEngine.h
  14648. (cp): Declared as Time.
  14649. (sessionDownloadLengthArray): Removed.
  14650. (sessionUploadLengthArray): Removed.
  14651. (currentCp): Removed.
  14652. (lastCalcStat): New variable
  14653. (lastElapsed): Removed.
  14654. (sessionDownloadLength): Removed.
  14655. (calculateStat): New function.
  14656. * src/TorrentDownloadEngine.cc
  14657. (initStatistics): Removed lastElapsed, cp[],
  14658. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14659. currentCp, sessionDownloadLength.
  14660. Added cp.reset() and lastCalcStat.reset().
  14661. (calculateSpeed): Changed the name of the argument.
  14662. (calculateStatistics): Rewritten.
  14663. (calculateStat): New function.
  14664. * src/Peer.h
  14665. (PeerStat.h): Included.
  14666. (peerUpload): Removed.
  14667. (peerDownload): Removed.
  14668. (peerStat): New variable.
  14669. (sessionUploadLength): New variable.
  14670. (sessionDownloadLength): New variable.
  14671. (deltaUpload): Removed.
  14672. (deltaDownload): Removed.
  14673. (resetStatus): Made private.
  14674. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14675. Removed peerUpload, peerDownload.
  14676. (updateUploadLength): New function.
  14677. (addDeltaUpload): Removed.
  14678. (updateDownloadLength): New function.
  14679. (resetDeltaUpload): Removed.
  14680. (getDeltaUpload): Removed.
  14681. (addDeltaDownload): Removed.
  14682. (calculateUploadSpeed): New function.
  14683. (resetDeltaDownload): Removed.
  14684. (getDeltaDownload): Removed.
  14685. (calculateDownloadSpeed): New function.
  14686. (getSessionUploadLength): New function.
  14687. (getSessionDownloadLength): New function.
  14688. (activate): New function.
  14689. (deactivate): New function.
  14690. (addPeerUpload): Removed.
  14691. (setPeerUpload): Removed.
  14692. (getPeerUpload): Removed.
  14693. (addPeerDownload): Removed.
  14694. (setPeerDownload): Removed.
  14695. (getPeerDownload): Removed.
  14696. * src/Peer.cc
  14697. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14698. * src/MetalinkRequestInfo.h
  14699. (MetalinkRequestInfo): Removed const qualifier from op.
  14700. * src/RequestInfo.h
  14701. (op): Removed const qualifier.
  14702. (RequestInfo): Removed const qualifier from op.
  14703. * src/prefs.h
  14704. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14705. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14706. * src/PeerInteractionCommand.cc
  14707. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14708. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14709. * src/PeerInteraction.cc
  14710. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14711. * src/main.cc
  14712. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14713. Added the description of "--max-download-limit" option.
  14714. Removed the description of "--upload-limit" option.
  14715. Added the description of "--max-upload-limit" option.
  14716. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14717. Added "--max-download-limit" option and "--max-upload-limit" option.
  14718. Added the warning message if "--upload-limit" option is used.
  14719. * src/DownloadCommand.cc
  14720. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14721. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14722. To rewrite segment download mechanism for HTTP/FTP download.
  14723. Use BitfieldMan to manage segment download.
  14724. * src/HttpResponseCommand.h
  14725. (executeInternal): Pass the reference of segment.
  14726. * src/AbstractCommand.cc
  14727. (prepareForRetry): Call segmentMan->cancelSegment here.
  14728. (onAbort): Call segmentMan->cancelSegment here.
  14729. * src/HttpDownloadCommand.cc
  14730. (prepareForNextSegment): New function.
  14731. * src/DownloadEngineFactory.cc
  14732. (newConsoleEngine): Removed splitter.
  14733. (newTorrentConsoleEngine): Removed splitter.
  14734. * src/Request.h
  14735. (segment): Renamed from seg.
  14736. * src/FtpInitiateConnectionCommand.h
  14737. (executeInternal): Pass the reference of segment.
  14738. * src/AbstractCommand.h
  14739. (executeInternal): Pass the reference of segment.
  14740. * src/pref.h
  14741. (PREF_SEGMENT_SIZE): New definition.
  14742. * src/HttpProxyRequestCommand.h
  14743. (executeInternal): Pass the reference of segment.
  14744. * src/HttpResponseCommand.cc
  14745. (checkResponse): Allowed status 206 when a request range starts 0.
  14746. (handleDefaultEncoding): Rewritten the code related to Segment.
  14747. (handleOtherEncoding): Rewritten the code related to Segment.
  14748. * src/SegmentMan.h
  14749. (SegmentEntry): New class.
  14750. (SegmentEntries): New type definition.
  14751. (bitfield): New variable.
  14752. (usedSegmentEntries): New variable.
  14753. (onNullBitfield): New function.
  14754. (checkoutSegment): New function.
  14755. (segments): Removed.
  14756. (splitter): Removed.
  14757. (unregisterId): Removed.
  14758. (getSegment): New function(overload)
  14759. (getDownloadedSize): Removed.
  14760. (cancelSegment): New function.
  14761. (completeSegment): New function.
  14762. (initBitfield): New function.
  14763. (hasSegment): New function.
  14764. (getDownloadLength): New function.
  14765. * src/BitfieldMan.h
  14766. (getStartIndex): New function.
  14767. (getEndIndex): New function.
  14768. (getMissingUnusedIndex): New function(overload).
  14769. (getSparseMissingUnusedIndex): New function.
  14770. * src/BitfieldMan.cc
  14771. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14772. (getMissingUnusedIndex): New function(overload).
  14773. (Range): New class.
  14774. (getStartIndex): New function.
  14775. (getEndIndex): New function.
  14776. (getSparseMissingUnusedIndex): New function.
  14777. (isBitSetInternal): Return false if the given index is less than 0.
  14778. * src/HttpInitiateConnectionCommand.h
  14779. (executeInternal): Pass the reference of segment.
  14780. * src/FtpNegotiateCommand.h
  14781. (executeInternal): Pass the reference of segment.
  14782. * src/FtpNegotiateCommand.cc
  14783. (recvSize): Initialize bitfield here.
  14784. * src/FtpTunnelResponseCommand.h
  14785. (executeInternal): Pass the reference of segment.
  14786. * src/HttpConnection.cc
  14787. (createRequest): Rewritten range header processing.
  14788. * src/DownloadCommand.h
  14789. (executeInternal): Pass the reference of segment.
  14790. (prepareForRetry): Removed.
  14791. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14792. function.
  14793. * src/main.cc
  14794. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14795. * src/SegmentMan.cc
  14796. (SegmentMan): Added bitfield. Removed splitter.
  14797. (~SegmentMan): Added bitfield. Removed splitter.
  14798. (unregisterId): Removed.
  14799. (getSegment): Rewritten.
  14800. (updateSegment): Rewritten.
  14801. (save): Rewritten.
  14802. (read): Rewritten.
  14803. (finished): Rewritten.
  14804. (getDownloadedSize): Removed.
  14805. (initBitfield): New function.
  14806. (FindSegmentEntryByIndex): New function object.
  14807. (FindSegmentEntryByCuid): New function object.
  14808. (checkoutSegment): New function.
  14809. (onNullBitfield): New function.
  14810. (getSegment): New function(overload).
  14811. (CancelSegment): New function object.
  14812. (cancelSegment): New function.
  14813. (completeSegment): New function.
  14814. (hasSegment): New function.
  14815. (getDownloadLength): New function.
  14816. * src/FtpInitiateConnectionCommand.cc
  14817. (executeInternal): Load .aria2 file after hostname resolution finishes.
  14818. * src/Segment.h: Rewritten.
  14819. * src/Segment.cc (operator<<): New function.
  14820. * src/HttpDownloadCommand.h
  14821. (prepareForNextSegment): New function.
  14822. * src/Request.cc
  14823. (resetUrl): Made segment null.
  14824. * src/DownloadEngine.cc
  14825. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  14826. * src/HttpProxyRequestCommand.h
  14827. (executeInternal): Pass the reference of segment.
  14828. * src/DownloadCommand.cc
  14829. (executeInternal): Rewritten the code related to Segment.
  14830. (prepareForRetry): Removed.
  14831. (prepareForNextSegment): Rewritten.
  14832. * src/FtpTunnelResponseCommand.h
  14833. (executeInternal): Pass the reference of segment.
  14834. To add HTTP 1.1 persistent connection support(experimental)
  14835. * src/HttpRequestCommand.cc
  14836. (executeInternal): Disable keep alive if it is disabled by
  14837. configuration.
  14838. * src/Request.h
  14839. (keepAlive): New variable.
  14840. (isKeepAlive): New function.
  14841. (setKeepAlive): New function.
  14842. * src/pref.h
  14843. (PREF_HTTP_KEEP_ALIVE): New definition.
  14844. * src/HttpResponseCommand.cc
  14845. (executeInternal): Check the remote server supports keep alive.
  14846. * src/HttpConnection.cc
  14847. (createRequest): Send "Connection: close" only if keep alive is
  14848. disabled.
  14849. * src/main.cc
  14850. (main):
  14851. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  14852. To add max download speed limit:
  14853. * src/pref.h
  14854. (PREF_MAX_SPEED_LIMIT): New definition.
  14855. * src/PeerInteractionCommand.cc
  14856. (executeInternal): Added max download speed limit. Not tested yet.
  14857. * src/SegmentMan.h
  14858. (PeerStats): New type definition.
  14859. (peerStats): New variable.
  14860. (registerPeerStat): New function.
  14861. (FindPeerStat): New function object.
  14862. (getPeerStat): New function.
  14863. (calculateDownloadSpeed): New function.
  14864. * src/SpeedCalc.h: New class.
  14865. * src/SpeedCalc.cc: New class.
  14866. * src/main.cc
  14867. (main):
  14868. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14869. download speed is not restricted).
  14870. * src/PeerStat.h: New class.
  14871. * src/SegmentMan.cc
  14872. (registerPeerStat): New function.
  14873. (calculateDownloadSpeed): New function.
  14874. * src/DownloadCommand.cc
  14875. (STARTUP_IDLE_TIME): New definition.
  14876. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14877. downloadStart.
  14878. (~DownloadCommand): Call peerStat->downloadStop.
  14879. (executeInternal): Added download speed limitter. Rewritten lowest
  14880. speed limitter.
  14881. * src/HttpConnection.cc
  14882. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14883. * src/AbstractCommand.cc
  14884. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14885. Added hostname to the error message.
  14886. * src/ConsoleDownloadEngine.cc
  14887. (calculateStatistics): Initialize psize with dlSize.
  14888. * src/PieceMessage.cc
  14889. (receivedAction): Do not call peerInteraction->abortPiece here.
  14890. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14891. * src/BitfieldMan.h
  14892. (clearAllUseBit): New function.
  14893. (setAllUseBit): New function.
  14894. * src/BitfieldMan.cc
  14895. (clearAllBit): Do not clear useBitfield here.
  14896. (clearAllUseBit): New function.
  14897. (setAllUseBit): New function.
  14898. * src/Piece.cc
  14899. (clearAllBlock): Call bitfield->clearAllUseBit().
  14900. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14901. To make filename URL-decoded:
  14902. * src/HttpResponseCommand.h: Updated doc.
  14903. * src/HttpResponseCommand.cc
  14904. (determinFilename): Made filename URL-decoded.
  14905. * src/FtpInitiateConnectionCommand.cc
  14906. (executeInternal): Made filename URL-decoded.
  14907. * src/Util.h (urldecode): New function.
  14908. * src/Util.cc (urldecode): New function.
  14909. To fix a bug that caused assertion failure in ares_strerror:
  14910. * src/NameResolver.cc (callback): Fixed the bug.
  14911. * Release 0.7.3
  14912. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14913. To add --seed-time and --seed-ratio command-line option:
  14914. * src/Option.h (getAsDouble): New function.
  14915. * src/Option.cc (getAsDouble): New function.
  14916. * src/SeedCheckCommand.h: New class.
  14917. * src/SeedCheckCommand.cc: New class.
  14918. * src/DownloadEngineFactory.cc
  14919. (SeedCheckCommand.h): Included.
  14920. (UnionSeedCriteria.h): Included.
  14921. (TimeSeedCriteria.h): Included.
  14922. (ShareRatioSeedCriteria.h): Included.
  14923. (newTorrentConsoleEngine): Added the processing of seed option.
  14924. * src/SeedCriteria.h: New class.
  14925. * src/ShareRatioSeedCriteria.h: New class.
  14926. * src/TimeSeedCriteria.h: New class.
  14927. * src/UnionSeedCriteria.h: New class.
  14928. * src/prefs.h
  14929. (PREF_SEED_TIME): New definition.
  14930. (PREF_SEED_RATIO): New definition.
  14931. * src/main.cc
  14932. (showUsage): Added --seed-time and --seed-ratio option.
  14933. (main): Added --seed-time and --seed-ratio option.
  14934. Made default log file name "/dev/null".
  14935. * src/SharedHandle.h
  14936. (SharedHandle): Copy constructor. Made it assignable from the
  14937. SharedHandle of the subclasses.
  14938. (operator=): Made it assignable from the SharedHandle of the
  14939. subclasses.
  14940. (getRefCount): New function.
  14941. To add notice log level and the switch to write log to stdout. This
  14942. switch is configurable per log level.
  14943. * src/Logger.h
  14944. (notice): New function.
  14945. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14946. constant.
  14947. * src/LogFactory.cc
  14948. (getInstance): The use of NullLogger was removed. A log message with
  14949. notice log level was made written to stdout along with log file.
  14950. * src/NullLogger.h
  14951. (notice): New function.
  14952. * src/SimpleLogger.h
  14953. (writeHeader): Added the 'file' argument.
  14954. (writeLog): Added the 'file' argument.
  14955. (writeFile): New function.
  14956. (stdoutField): New variable.
  14957. (SimpleLogger): Removed the default constructor.
  14958. (SimpleLogger): Made the default value of logfile 0.
  14959. (debug): Added 'virtual' keyword.
  14960. (info): Added 'virtual' keyword.
  14961. (warn): Added 'virtual' keyword.
  14962. (error): Added 'virtual' keyword.
  14963. (notice): New function.
  14964. (setStdout): New function.
  14965. * src/SimpleLogger.cc
  14966. (WRITE_LOG): Replaced writeLog with writeFile.
  14967. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14968. (SimpleLogger): Removed the default constructor.
  14969. (setStdout): New function.
  14970. (writeLog): Added the handling of NOTICE log level.
  14971. (writeFile): New function.
  14972. (notice): New function.
  14973. * src/TorrentMan.h: Updated doc.
  14974. * src/BitfieldMan.h: Updated doc.
  14975. * src/TrackerWatcherCommand.cc
  14976. (execute): Return true if error occurred in the request to the tracker
  14977. and halt is requested.
  14978. * src/TrackerUpdateCommand.cc
  14979. (execute): Return true if error occurred in the request to the tracker
  14980. and halt is requested.
  14981. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14982. DownloadEngine:
  14983. * src/TorrentConsoleDownloadEngine.h
  14984. (onSelectiveDownloadingCompletes): Removed.
  14985. * src/TorrentConsoleDownloadEngine.cc
  14986. (onSelectiveDownloadingCompletes): Removed.
  14987. * src/TorrentDownloadEngine.h
  14988. (onEndOfRun): Added 'virtual' keyword.
  14989. (afterEachIteration): Removed.
  14990. (onSelectiveDownloadingCompletes): Removed.
  14991. * src/TorrentDownloadEngine.cc
  14992. (onEndOfRun): Removed filenameFixed.
  14993. (afterEachIteration): Removed.
  14994. * src/TorrentMan.cc
  14995. (completePiece): Call onDownloadComplete here.
  14996. (onDownloadComplete): Added 2 log messages.
  14997. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14998. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14999. * src/NameResolver.h: Added the prototype declaration of callback().
  15000. To support c-ares library:
  15001. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15002. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15003. * src/FtpInitiateConnectionCommand.h:
  15004. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15005. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15006. * src/HttpInitiateConnectionCommand.h:
  15007. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15008. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15009. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15010. #1542285 by tizianomueller)
  15011. * src/HttpInitiateConnectionCommand.cc:
  15012. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15013. * src/FtpInitiateConnectionCommand.cc:
  15014. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15015. * src/DownloadEngine.h:
  15016. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15017. * src/DownloadEngine.cc:
  15018. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15019. To fix the bug that causes compilation failure with metalink-support
  15020. disabled(bug#1543587):
  15021. * src/main.cc: Fixed with the patch by tizianomueller.
  15022. * Release 0.7.2
  15023. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15024. * src/main.cc
  15025. (main): Added a message to inform users that aria2 is starting to
  15026. verify checksum.
  15027. * src/RequestInfo.cc
  15028. (printDownloadAbortMessage): Added a message to inform users that
  15029. transfer can be resumed.
  15030. * src/FeatureConfig.cc
  15031. (FEATURE_ASYNC_DNS): New definition.
  15032. (FeatureConfig): Added aysnc DNS entry.
  15033. To replace CommandUuid with Command* in SocketEntry and
  15034. NameResolverEntry:
  15035. * src/DownloadEngine.h
  15036. (CommandUuids): Removed.
  15037. (SocketEntry::commandUuid): Removed.
  15038. (SocketEntry::command): New variable.
  15039. (SocketEntry::SocketEntry): Updated.
  15040. (SocketEntry::operator==): Updated.
  15041. (NameResolverEntry::commandUuid): Removed.
  15042. (NameResolverEntry::command): New variable.
  15043. (NameResolverEntry::NameResolverEntry): Updated.
  15044. (NameResolverEntry::operator==): Updated.
  15045. (waitData): Changed the argument type.
  15046. (addSocketForReadCheck): Changed the argument type.
  15047. (deleteSocketForReadCheck): Changed the argument type.
  15048. (addSocketForWriteCheck): Changed the argument type.
  15049. (deleteSocketForWriteCheck): Changed the argument type.
  15050. (addNameResolverCheck): Changed the argument type.
  15051. (deleteNameResolverCheck): Changed the argument type.
  15052. * src/DownloadEngine.cc
  15053. (FindCommand): Removed.
  15054. (run): Removed activeUuid. Added activeCommands instead.
  15055. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15056. (AccumulateActiveCommand): New function object.
  15057. (waitData): Use AccumulateActiveCommand.
  15058. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15059. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15060. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15061. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15062. (addNameResolverCheck): Use Command instead of CommandUuid.
  15063. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15064. * src/AbstractCommand.cc
  15065. (disableReadCheckSocket): Updated according to the changes in
  15066. DownloadEngine.
  15067. (setReadCheckSocket): Updated according to the changes in
  15068. DownloadEngine.
  15069. (disableWriteCheckSocket): Updated according to the changes in
  15070. DownloadEngine.
  15071. (setWriteCheckSocket): Updated according to the changes in
  15072. DownloadEngine.
  15073. (setNameResolverCheck): Updated according to the changes in
  15074. DownloadEngine.
  15075. (disableNameResolverCheck): Updated according to the changes in
  15076. DownloadEngine.
  15077. * src/AbstractCommand.cc
  15078. (disableReadCheckSocket): Updated according to the changes in
  15079. DownloadEngine.
  15080. (setReadCheckSocket): Updated according to the changes in
  15081. DownloadEngine.
  15082. (disableWriteCheckSocket): Updated according to the changes in
  15083. DownloadEngine.
  15084. (setWriteCheckSocket): Updated according to the changes in
  15085. DownloadEngine.
  15086. * release 0.7.1
  15087. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15088. To handle the case where some BitTorrent tracker requires all letters
  15089. except for [A-Za-z0-9] is URL encoded.
  15090. * src/Util.h
  15091. (torrentUrlencode): New function.
  15092. * src/Util.cc
  15093. (ctype.h): Included.
  15094. (torrentUrlencode): New function.
  15095. * src/TrackerWatcherCommand.cc
  15096. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15097. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15098. To add asynchronous DNS support(libares):
  15099. * src/AbstractCommand.h
  15100. (setNameResolverCheck): New function.
  15101. (disableNameResolverCheck): New function
  15102. (resolveHostname): New function.
  15103. * src/AbstractCommand.cc
  15104. (setNameResolverCheck): New function.
  15105. (disableNameResolverCheck): New function
  15106. (resolveHostname): New function.
  15107. * src/FtpInitiateConnectionCommand.h
  15108. (nameResolver): New function.
  15109. * src/FtpInitiateConnectionCommand.cc
  15110. (Util.h): Included.
  15111. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15112. disableWriteCheckSocket.
  15113. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15114. (executeInternal): Added async DNS support.
  15115. * src/HttpInitiateConnectionCommand.h
  15116. (nameResolver): New function.
  15117. * src/HttpInitiateConnectionCommand.cc
  15118. (DlRetryEx.h): Included.
  15119. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15120. disableWriteCheckSocket.
  15121. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15122. (executeInternal): Added async DNS support.
  15123. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15124. by extern "C" declaration.
  15125. * src/NameResolver.cc: New class.
  15126. * src/Util.h:
  15127. (isNumberAndDotsNotation): New function
  15128. * src/Util.cc
  15129. (isNumberAndDotsNotation): New function.
  15130. * src/DownloadEngine.h
  15131. (NameResolver.h): Included.
  15132. (NameResolverEntry): New class.
  15133. (NameResolverEntries): New type definition.
  15134. (addNameResolverCheck): New function.
  15135. (deleteNameResolverCheck): New function.
  15136. * src/DownloadEngine.cc
  15137. (run): Initialize cp with 0.
  15138. (SetDescriptor::operator()): Added for NameResolverEntry.
  15139. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15140. (waitData): Check nameResolver entries.
  15141. (updateFdSet): Update fds in nameResolver entries.
  15142. (addNameResolverCheck): New function.
  15143. (deleteNameResolverCheck): new function.
  15144. * src/PeerInteractionCommand.cc
  15145. (executeInternal): Fixed wrong socket handling.
  15146. * src/main.cc
  15147. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15148. * src/Util.cc
  15149. (fileChecksum): Removed the call to ctx.digestReset().
  15150. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15151. * po/ru.po: Azamat sent me Russian translation.
  15152. * src/FtpNegotiateCommand.cc
  15153. (recvGreeting): Call disableWriteCheckSocket just after
  15154. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15155. (recvRetr): Recognized status code 125 as a acceptable response code.
  15156. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15157. case-insesitive filesystem(BUG#1531057).
  15158. * src/Time.h: Renamed as TimeA2.h.
  15159. * src/Time.cc: Renamed as TimeA2.cc.
  15160. * src/TimeA2.h: New class.
  15161. * src/TimeA2.cc: New class.
  15162. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15163. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15164. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15165. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15166. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15167. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15168. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15169. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15170. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15171. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15172. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15173. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15174. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15175. * release 0.7.0
  15176. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15177. * src/PeerChokeCommand.h
  15178. (PeerChokeCommand): Rearranged the arguments.
  15179. * src/PeerChokeCommand.cc
  15180. (PeerChokeCommand): Rearranged the arguments.
  15181. * src/MetalinkEntry.h
  15182. (Checksum.h): Included.
  15183. (md5): Removed.
  15184. (sha1): Removed.
  15185. (checksum): New variable.
  15186. (operator=): Updated.
  15187. (check): Removed.
  15188. * src/prefs.h
  15189. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15190. (PREF_FOLLOW_TORRENT): New definition.
  15191. (PREF_SELECT_FILE): New definition.
  15192. (PREF_FOLLOW_METALINK): New definition.
  15193. * src/MetalinkResource.h
  15194. (TYPE_HTTPS): Added to enum TYPE.
  15195. * src/TorrentMan.cc
  15196. (~TorrentMan): Rewritten.
  15197. * src/MultiDiskWriter.cc
  15198. (MultiDiskAdaptor): Updated according to the changes in
  15199. MessageDigestContext.
  15200. (~MultiDiskAdaptor): Updated according to the changes in
  15201. MessageDigestContext.
  15202. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15203. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15204. * src/Util.h
  15205. (fileChecksum): Updated according to the changes in
  15206. MessageDigestContext.
  15207. * src/Util.cc
  15208. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15209. (fileChecksum): Updated according to the changes in
  15210. MessageDigestContext.
  15211. * src/messageDigest.h: Rewritten.
  15212. * src/MetalinkEntry.cc
  15213. (check): Removed.
  15214. (Supported): Updated.
  15215. (dropUnsupportedResource): Fixed a memory leak.
  15216. * src/ShaVisitor.cc
  15217. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15218. (~ShaVisitor): Updated according to the changes in
  15219. MessageDigestContext.
  15220. (visit): Updated according to the changes in MessageDigestContext.
  15221. * src/main.cc
  15222. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15223. command-line option added.
  15224. * src/DownloadEngine.h
  15225. (SocketEntry): New class.
  15226. (SocketEntries): New definition.
  15227. (PairFind): Removed.
  15228. (SockCmdMap): Removed.
  15229. * src/DownloadEngine.cc
  15230. (DownloadEngine): Rewritten.
  15231. (~DownloadEngine): Rewritten.
  15232. (run): Renamed activeCommandUuids as activeUuids.
  15233. (SetDescriptor): Rewritten.
  15234. (AccumulateActiveCommandUuid): Removed.
  15235. (AccumulateActiveUuid): New function object.
  15236. (waitData): Rewritten.
  15237. (updateFdSet): Rewritten.
  15238. (addSocket): Rewritten.
  15239. (deleteSocket): Rewritten.
  15240. (addSocketForReadCheck): Rewritten.
  15241. (deleteSocketForReadCheck): Rewritten.
  15242. (addSocketForWriteCheck): Rewritten.
  15243. (deleteSocketForWriteCheck): Rewritten.
  15244. * src/Xml2MetalinkProcessor.cc
  15245. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15246. * src/DownloadCommand.cc
  15247. (executeInternal): Added the check routine for lowest speed limit.
  15248. * src/AbstractDiskWriter.cc
  15249. (AbstractDiskWriter): Updated according to the changes in
  15250. MessageDigestContext.
  15251. (~AbstractDiskWriter): Updated according to the changes in
  15252. MessageDigestContext.
  15253. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15254. * src/RequestInfo.h: New class.
  15255. * src/UrlRequestInfo.h: New class.
  15256. * src/UrlRequestInfo.cc: New class.
  15257. * src/TorrentRequestInfo.h: New class.
  15258. * src/TorrentRequestInfo.cc: New class.
  15259. * src/MetalinkRequestInfo.h: New class.
  15260. * src/MetalinkRequestInfo.cc: New class.
  15261. * src/Checksum.h: New class.
  15262. * src/DownloadEngineFactory.h: New class.
  15263. * src/DownloadEngineFactory.cc: New class.
  15264. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15265. * src/Option.h
  15266. (getAsBool): New function.
  15267. * src/Option.cc
  15268. (prefs.h): Included.
  15269. (defined): 0-length value is now recognized as undefined.
  15270. (getAsInt): Rewritten.
  15271. (getAsLLInt): Rewritten.
  15272. (getAsBool): New function.
  15273. * src/FeatureConfig.h: Rewritten.
  15274. * src/FeatureConfig.cc: Rewritten.
  15275. * src/prefs.h
  15276. (PREF_STDOUT_LOG): New definition.
  15277. (PREF_LOG): New definition.
  15278. (PREF_DIR): New definition.
  15279. (PREF_OUT): New definition.
  15280. (PREF_SPLIT): New definition.
  15281. (PREF_DAEMON): New definition.
  15282. (PREF_REFERER): New definition.
  15283. (PREF_TORRENT_FILE): New definition.
  15284. (PREF_LISTEN_PORT): New definition.
  15285. (PREF_METALINK_FILE): New definition.
  15286. (PREF_METALINK_VERSION): New definition.
  15287. (PREF_METALINK_LANGUAGE): New definition.
  15288. (PREF_METALINK_OS): New definition.
  15289. (PREF_METALINK_SERVERS): New definition.
  15290. * src/main.cc
  15291. (main): Following command-line parameters are now put into Option
  15292. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15293. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15294. metalinkLanguage, metalinkOs, metalinkServers
  15295. To fix the bug that aria2 can not handle http response header properly.
  15296. * src/HttpHeader.cc
  15297. (put): Made name lowercased.
  15298. (defined): Made name lowercased.
  15299. (getFirst): Made name lowercased.
  15300. (get): Made name lowercased.
  15301. (getFirstAsInt): Rewritten.
  15302. (getFirstAsLLInt): Rewritten.
  15303. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15304. * src/TorrentMan.h:
  15305. (advertisePiece): Updated doc.
  15306. (getAdvertisedPieceIndexes): Updated doc.
  15307. (removeAdvertisedPiece); New function.
  15308. * src/TorrentMan.cc
  15309. (FindElapsedHave): New function object.
  15310. (removeAdvertisedPiece): New function.
  15311. * src/HaveEraseCommand.h: New class.
  15312. * src/HaveEraseCommand.cc: New class.
  15313. * src/FeatureConfig.h: New class.
  15314. * src/FeatureConfig.cc: New class.
  15315. * src/Request.h
  15316. (defaultPorts): Removed.
  15317. * src/Request.cc
  15318. (FeatureConfig.h): Included.
  15319. (Request): Removed the statements related to defaultPorts.
  15320. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15321. A default port number is now retrieved from FeatureConfig.
  15322. * src/main.cc
  15323. (HaveEraseCommand.h): Included.
  15324. (showVersion): Added the output of feature list.
  15325. (main): Added HaveEraseCommand to command queue in BitTorrent
  15326. downloading.
  15327. * src/PeerInteractionCommand.h
  15328. (chokeCheckPoint): Commented out.
  15329. (periodicExecPoint): New variable.
  15330. * src/PeerInteractionCommand.cc
  15331. (executeInternal): Following methods are now called in at least every
  15332. 0.5 seconds to reduce CPU usage:
  15333. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15334. checkHave(), sendKeepAlive().
  15335. (checkLongTimePeerChoking): Commented out.
  15336. * src/BitfieldMan.h
  15337. (getNthBitIndex): Changed the method signature.
  15338. (getMissingIndexRandomly): Changed the method signature.
  15339. * src/BitfieldMan.cc
  15340. (getNthBitIndex): Rewritten
  15341. (getMissingIndexRandomly): Rewritten.
  15342. (hasMissingPiece): Rewritten.
  15343. (getMissingIndex): Refactored.
  15344. (getMissingUnusedIndex); Refactored.
  15345. (getMissingIndex): Refactored.
  15346. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15347. * src/PeerMessage.h
  15348. (Piece.h): Included.
  15349. (SharedHandle.h): Included.
  15350. (invalidate): New variable.
  15351. (uploading): New variable.
  15352. (isInvalidate): New function.
  15353. (isUploading): New function.
  15354. (onPush): New function.
  15355. (onChoked): New function.
  15356. (onCanceled): New function.
  15357. (onAbortPiece): New function.
  15358. (PeerMessageHandle): New type definition.
  15359. * src/PeerMessage.cc
  15360. (PeerMessage): Added the initialization for invalidate and uploading.
  15361. * src/CancelMessage.h
  15362. (CancelMessage): Rewritten.
  15363. * src/RejectMessage.h
  15364. (RejectMessage): Rewritten.
  15365. * src/Metalinker.h
  15366. (operator=): Defined.
  15367. * src/MetaEntry.h
  15368. (operator=): Defined.
  15369. * src/MetalinkResource.h
  15370. (operator=): Defined.
  15371. * src/AllowedFastMessage.h
  15372. (AllowedFastMessage): Rewritten.
  15373. * src/HandshakeMessage.h
  15374. (HandshakeMessage): New function(overload).
  15375. * src/HandshakeMessage.cc
  15376. (HandshakeMessage): Rewritten.
  15377. (init): New function.
  15378. * src/HaveMessage.h
  15379. (HaveMessage): Rewritten.
  15380. * src/Time.h
  15381. (operator=): Defined the function body here.
  15382. * src/Time.cc
  15383. (operator=): Removed.
  15384. * src/SocketCore.h
  15385. (operator==): Defined here.
  15386. (operator!=): Defined here.
  15387. (operator<): Defined here.
  15388. * src/SocketCore.cc
  15389. (operator==): Removed.
  15390. (operator<): Removed.
  15391. * src/BitfieldMan.h
  15392. (operator=): Defined the function body here.
  15393. * src/BitfieldMan.cc
  15394. (operator=): Removed.
  15395. * src/TorrentMan.h
  15396. (deleteErrorPeer): Removed.
  15397. (deleteUnusedPeer); New function.
  15398. * src/TorrentMan.cc
  15399. (addPeer): Call deleteUnusedPeer.
  15400. (deleteErrorPeer): Removed.
  15401. (deleteUnusedPeer): New function.
  15402. * src/PeerAbstractCommand.h
  15403. (setNoCheck): New function.
  15404. (noCheck): New variable.
  15405. * src/PeerAbstractCommand.cc
  15406. (PeerAbstractCommand): Added the initialization of noCheck.
  15407. (execute): Added a check for noCheck.
  15408. (setNoCheck): New function.
  15409. * src/Util.h
  15410. (stdio.h): Included.
  15411. * src/Util.cc
  15412. (unistd.h): Included.
  15413. * src/DefaultDiskWriter.cc
  15414. (unistd.h): Included.
  15415. * src/Peer.h
  15416. (operator==): Defined the function body here.
  15417. (operator!=): Defined the function body here.
  15418. * src/Peer.cc
  15419. (operator==): Removed.
  15420. (operator!=): Removed.
  15421. * src/Piece.h
  15422. (Piece): Defined the function body here(copy constructor).
  15423. (operator=): Defined the function body here.
  15424. (operator==): Defined the function body here.
  15425. * src/Piece.cc
  15426. (Piece): Removed(copy constructor).
  15427. (operator=): Removed.
  15428. (operator==): Removed.
  15429. * src/PeerMessageUtil.h
  15430. (ChokeMessage.h): Removed.
  15431. (UnchokeMessage.h): Removed.
  15432. (InterestedMessage.h): Removed.
  15433. (NotInterestedMessage.h): Removed.
  15434. (HaveMessage.h): Removed.
  15435. (BitfieldMessage.h): Removed.
  15436. (RequestMessage.h): Removed.
  15437. (CancelMessage.h): Removed.
  15438. (PieceMessage.h): Removed.
  15439. (HandshakeMessage.h): Removed.
  15440. (KeepAliveMessage.h): Removed.
  15441. (PortMessage.h): Removed.
  15442. (HaveAllMessage.h): Removed.
  15443. (HaveNoneMessage.h): Removed.
  15444. (PeerConnection.h): Removed.
  15445. (HandshakeMessage.h): Included.
  15446. * src/BitfieldMessage.h
  15447. (init): New function.
  15448. (BitfieldMessage): Rewritten.
  15449. (BitfieldMessage): New function(overload).
  15450. * src/RequestSlot.h
  15451. (operator=): Defined the function body here.
  15452. (operator==): Defined the function body here.
  15453. * src/RequestSlot.cc
  15454. (operator=): Removed.
  15455. (operator==): Removed.
  15456. To remove the dependency on the PeerMessage subclass from
  15457. PeerInteraction:
  15458. * src/PeerMessageFactory.h: New class.
  15459. * src/PeerMessageFactory.cc: New class.
  15460. * src/SimplePeerMessage.cc
  15461. (send): If invalidate is true then do nothing.
  15462. * src/PeerInteractionCommand.cc
  15463. (HandshakeMessage.h): Included.
  15464. (KeepAliveMessage.h): Included.
  15465. (ChokeMessage.h): Included.
  15466. (UnchokeMessage.h): Included.
  15467. (HaveMessage.h): Included.
  15468. (executeInternal): Call setNoCheck().
  15469. Removed setWriteCheckSocket(socket).
  15470. * src/PeerInteraction.h
  15471. (ChokeMessage.h): Removed.
  15472. (UnchokeMessage.h): Removed.
  15473. (InterestedMessage.h): Removed.
  15474. (NotInterestedMessage.h): Removed.
  15475. (HaveMessage.h): Removed.
  15476. (BitfieldMessage.h): Removed.
  15477. (RequestMessage.h): Removed.
  15478. (CancelMessage.h): Removed.
  15479. (PieceMessage.h): Removed.
  15480. (HandshakeMessage.h): Removed.
  15481. (KeepAliveMessage.h): Removed.
  15482. (PortMessage.h): Removed.
  15483. (HaveAllMessage.h): Removed.
  15484. (HaveNoneMessage.h): Removed.
  15485. (RejectMessage.h): Removed.
  15486. (AllowedFastMessage.h): Removed.
  15487. (SuggestPieceMessage.h): Removed.
  15488. (PeerMessageFactory.h): Included.
  15489. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15490. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15491. (PeerMessageFactory): New variable.
  15492. (createPeerMessage): Removed.
  15493. (createHandshakeMessage): Removed.
  15494. (setPeerMessageCommonProperty): Removed.
  15495. (addRequestSlot): New function.
  15496. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15497. (getPeerMessageFactory): New function.
  15498. (createRequestMessage): Removed.
  15499. (createCancelMessage): Removed.
  15500. (createPieceMessage): Removed.
  15501. (createHaveMessage): Removed.
  15502. (createChokeMessage): Removed.
  15503. (createUnchokeMessage): Removed.
  15504. (createInterestedMessage): Removed.
  15505. (createNotInterestedMessage): Removed.
  15506. (createBitfieldMessage): Removed.
  15507. (createKeepAliveMessage): Removed.
  15508. (createHaveAllMessage): Removed.
  15509. (createHaveNoneMessage): Removed.
  15510. (createRejectMessage): Removed.
  15511. (createAllowedFastMessage): Removed.
  15512. * src/PeerInteraction.cc
  15513. (PeerInteraction): Allocate PeerMessageFactory here.
  15514. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15515. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15516. PieceMessage::ID.
  15517. (addMessage): Simplified by using PeerMessage::onPush().
  15518. (addRequestSlot): New function.
  15519. (rejectAllPieceMessageInQueue): Simplified by using
  15520. PeerMessage::onChoked().
  15521. (rejectPieceMessageInQueue): Simplified by using
  15522. PeerMessage::onCanceled().
  15523. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15524. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15525. (createHandshakeMessage): Removed.
  15526. (createPeerMessage): Removed.
  15527. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15528. (setPeerMessageCommonProperty): Removed.
  15529. (createRequestMessage): Removed.
  15530. (createCancelMessage): Removed.
  15531. (createPieceMessage): Removed.
  15532. (createHaveMessage): Removed.
  15533. (createChokeMessage): Removed.
  15534. (createUnchokeMessage): Removed.
  15535. (createInterestedMessage): Removed.
  15536. (createNotInterestedMessage): Removed.
  15537. (createBitfieldMessage): Removed.
  15538. (createKeepAliveMessage): Removed.
  15539. (createHaveAllMessage): Removed.
  15540. (createHaveNoneMessage): Removed.
  15541. (createRejectMessage): Removed.
  15542. (createAllowedFastMessage): Removed.
  15543. * src/PieceMessage.h
  15544. (createRejectMessage): New function.
  15545. (PieceMessage): Rewritten.
  15546. (onChoked): New function.
  15547. (onCanceled): New function.
  15548. * src/PieceMessage.cc
  15549. (send): If invalidate is true then do nothing, just return.
  15550. (createRejectMessage): New function.
  15551. (onChoked): New function.
  15552. (onCanceled): New function.
  15553. * src/RequestMessage.h
  15554. (RequestMessage): Rewritten.
  15555. (onPush): New function.
  15556. (onAbortPiece): New function.
  15557. * src/RequestMessage.cc
  15558. (onPush): New function.
  15559. (onAbortPiece): New function.
  15560. Update fd_set when a socket is added or deleted in order to improve
  15561. performance:
  15562. * src/DownloadEngine.h
  15563. (rfdset): New variable.
  15564. (wfdset): New variable.
  15565. (updateFdSet): New function.
  15566. * src/DownloadEngine.cc
  15567. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15568. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15569. (waitData): Copy rfdset and wfdset.
  15570. (updateFdSet): New function.
  15571. (addSocket): Call updateFdSet.
  15572. (deleteSocket): Call updateFdSet.
  15573. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15574. To add the support for Metalink3.0 backward compatible links:
  15575. * src/Request.h
  15576. (SAFE_CHARS): Added '#'.
  15577. (METALINK_MARK): New definition.
  15578. * src/Request.cc
  15579. (parseUrl): Added the support for Metalink3.0 backward compatible
  15580. links.
  15581. etc
  15582. * src/PeerInteraction.cc
  15583. (MsgPushBack): Removed.
  15584. (sendMessages): Use STL copy and back_inserter.
  15585. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15586. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15587. * src/TorrentMan.h
  15588. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15589. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15590. * src/SharedHandle.h: New class.
  15591. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15592. * src/HttpResponseCommand.h
  15593. (HttpResponseCommand): Wrapped Socket.
  15594. * src/SocketCore.h
  15595. (operator==): New function.
  15596. (operator!=): New function.
  15597. (operator<): New function.
  15598. (getSockfd): New function.
  15599. (isOpen): New function.
  15600. (writeData): New function.
  15601. * src/SocketCore.cc
  15602. (operator==): New function.
  15603. (operator!=): New function.
  15604. (operator<): New function.
  15605. * src/AbstractCommand.h
  15606. (socket): Changed its type to SocketHandle.
  15607. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15608. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15609. (disableReadCheckSocket): New function.
  15610. (disableWriteCheckSocket): New function.
  15611. (readCheckTarget): Changed its type to SocketHandle.
  15612. (writeCheckTarget): Changed its type to SocketHandle.
  15613. (AbstractCommand): Replaced Socket with SocketHandle.
  15614. * src/AbstractCommand.cc
  15615. (AbstractCommand): Replaced Socket with SocketHandle.
  15616. (~AbstractCommand): Removed the deallocation for Socket object.
  15617. (disableReadCheckSocket): New function.
  15618. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15619. (disableWriteCheckSocket): New function.
  15620. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15621. * src/HttpDownloadCommand.cc
  15622. (DownloadCommand): Replaced Socket with SocketHandle.
  15623. * src/PeerAbstractCommand.h
  15624. (socket): Changed its type to SocketHandle.
  15625. (peer): Changed its type to PeerHandle.
  15626. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15627. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15628. (disableReadCheckSocket): New function.
  15629. (disableWriteCheckSocket): New function.
  15630. (readCheckTarget): Changed its type to SocketHandle.
  15631. (writeCheckTarget): Changed its type to SocketHandle.
  15632. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15633. Replaced Peer with PeerHandle.
  15634. * src/HttpRequestCommand.cc
  15635. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15636. Use disableReadCheckSocket.
  15637. * src/PeerInitiateConnectionCommand.h
  15638. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15639. * src/PeerChokeCommand.cc
  15640. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15641. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15642. (execute): Use PeerHandle.
  15643. * src/PeerConnection.h
  15644. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15645. (socket): Changed its type to SocketHandle.
  15646. (PeerConnection): Replaced Socket with SocketHandle.
  15647. * src/PeerConnection.cc
  15648. (PeerConnection): Replaced Socket with SocketHandle.
  15649. * src/PeerInteractionCommand.h
  15650. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15651. Replaced Peer with PeerHandle.
  15652. * src/PeerInteractionCommand.cc
  15653. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15654. Replaced Peer with PeerHandle.
  15655. (executeInternal): Use disableWriteCheckSocket.
  15656. Use HandshakeMessageHandle.
  15657. (receiveMessages): Use PeerMessageHandle.
  15658. (prepareForNextPeer): Use PeerHandle.
  15659. * src/HttpProxyRequestCommand.h
  15660. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15661. * src/HttpResponseCommand.cc
  15662. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15663. * src/TorrentMan.cc
  15664. (nullPeer): Added external reference.
  15665. (~TorrentMan): Removed the deallocation of the elements of peers.
  15666. (addPeer): Rewritten.
  15667. (isPeerAvailable): Use nullPeer.
  15668. (deleteOldpeers): Replaced with deleteErrorPeer.
  15669. (deleteErrorPeer): New function.
  15670. (getPeer): Use PeerHandle and nullPeer.
  15671. (hasMissingPiece): Replaced Peer with PeerHandle.
  15672. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15673. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15674. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15675. (getMissingPiece): Replaced Peer with PeerHandle.
  15676. * src/FtpNegotiateCommand.cc
  15677. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15678. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15679. (recvGreeting): Use disableWriteCheckSocket.
  15680. (recvPasv): Removed the allocation of Socket.
  15681. Use disableReadCheckSocket.
  15682. (sendRestPasv): Use disableWriteCheckSocket.
  15683. (recvRetr): Changed assertion.
  15684. * src/PeerInteraction.h
  15685. (SharedHandle.h): Included SharedHandle.h.
  15686. (PeerMessageHandle): New type definition.
  15687. (HandshakeMessageHandle): New type definition.
  15688. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15689. (peer): Changed its type to PeerHandle.
  15690. (createHandshakeMessage): Replaced HandshakeMessage with
  15691. HandshakeMessageHandle.
  15692. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15693. (PeerInteraction): Replaced Peer with PeerHandle.
  15694. Replaced Socket with SocketHandle.
  15695. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15696. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15697. (receiveHandshake): Replaced HandshakeMessage with
  15698. HandshakeMessageHandle.
  15699. * src/PeerInteraction.cc
  15700. (PeerInteraction): Replaced Peer with PeerHandle.
  15701. Replaced Socket with SocketHandle.
  15702. (~PeerInteraction): Removed the deallocation of the elements of
  15703. messageQueue.
  15704. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15705. (isSendingMessageInProgress): Replaced PeerMessage with
  15706. PeerMessageHandle.
  15707. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15708. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15709. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15710. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15711. (abortPiece): Use PeerMessageHandle.
  15712. (receiveHandshake): Replaced HandshakeMessage with
  15713. HandshakeMessageHandle. Removed try-catch block.
  15714. (createHandshakeMessage): Replaced HandshakeMessage with
  15715. HandshakeMessageHandle.
  15716. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15717. Removed try-catch block.
  15718. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15719. * src/HttpProxyResponseCommand.cc
  15720. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15721. * src/FtpTunnelResponseCommand.h
  15722. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15723. * src/HttpConnection.cc
  15724. (HttpConnection): Replaced Socket with SocketHandle.
  15725. * src/PeerAbstractCommand.cc
  15726. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15727. (~PeerAbstractCommand): Removed the deallocation of socket.
  15728. Use disableReadCheckSocket, disableWriteCheckSocket.
  15729. (disableReadCheckSocket): New function.
  15730. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15731. (disableWriteCheckSocket): New function.
  15732. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15733. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15734. * src/FtpTunnelRequestCommand.cc
  15735. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15736. (~FtpTunnelRequestCommand): Corrected indentation.
  15737. * src/DownloadCommand.h
  15738. (DownloadCommand): Replaced Socket with SocketHandle.
  15739. * src/PeerListenCommand.cc
  15740. (PeerListenCommand): Removed the initialization of socket.
  15741. (~PeerListenCommand): Removed the deallocation of socket.
  15742. (bindPort): Use SocketHandle.
  15743. (execute): Use SocketHandle and PeerHandle.
  15744. * src/FtpDowndloadCommand.cc
  15745. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15746. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15747. * src/main.cc
  15748. (main): Corrected indentation.
  15749. * src/HttpInitiateConnectionCommand.cc
  15750. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15751. (executeInternal): Removed the allocation of socket.
  15752. * src/HttpRequestCommand.h
  15753. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15754. * src/FtpNegotiationCommand.h
  15755. (dataSocket): Changed its type to SocketHandle.
  15756. (serverSocket): Changed its type to SocketHandle.
  15757. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15758. * src/TorrentMan.h
  15759. (MAX_PEER_UPDATE): Removed.
  15760. (MAX_PEERS): New definition.
  15761. (Peers): The element is now of type PeerHandle.
  15762. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15763. (getPeer): Replaced Peer with PeerHandle.
  15764. (deleteOldErrorPeers): Removed.
  15765. (deleteErrorPeer): New function.
  15766. (hasMissingPiece): Replaced Peer with PeerHandle.
  15767. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15768. (getMissingPiece): Replaced Peer with PeerHandle.
  15769. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15770. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15771. (addActivePeer): Replaced Peer with PeerHandle.
  15772. (deleteActivePeer): Replaced Peer with PeerHandle.
  15773. Added a check for the return value of find.
  15774. * src/FtpTunnelResponseCommand.cc
  15775. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15776. * src/FtpInitiateConnectionCommand.cc
  15777. (executeInternal): Removed the allocation of socket.
  15778. * src/DownloadEngine.h
  15779. (Sockets): An element is now of type SocketHandle.
  15780. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15781. (CommandUuids): New type definition.
  15782. (rsockets): Changed its type to SockCmdMap.
  15783. (wsockets): Changed its type to SockCmdMap.
  15784. (addSocket): Rewritten.
  15785. (deleteSocket): Rewritten.
  15786. (addSocketForReadCheck): Rewritten.
  15787. (deleteSocketForReadCheck): Rewritten.
  15788. (addSocketForWriteCheck): Rewritten.
  15789. (deleteSocketForWriteCheck): Rewritten.
  15790. (PairFind): New template class.
  15791. * src/HttpDownloadCommand.h
  15792. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15793. * src/FtpConnection.cc
  15794. (FtpConnection): Replaced Socket with SocketHandle.
  15795. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15796. block.
  15797. * src/InitiateConnectionCommandFactory.cc
  15798. (DlAbortEx.h): Included DlAbortEx.h.
  15799. (createInitiateConnectionCommand): Throw exception if the protocol of
  15800. requested URI is not supported.
  15801. * src/Peer.cc
  15802. (nullPeer): Changed its type to PeerHandle.
  15803. (operator==): New function.
  15804. (operator!=): New function.
  15805. * src/Peer.h
  15806. (SharedHandle.h): Included SharedHandle.h.
  15807. (operator==): New function.
  15808. (operator!=): New function.
  15809. (Peer): Added the default constructor.
  15810. Use resetStatus() to initialize member variables.
  15811. (nullPeer): Removed.
  15812. * src/TrackerUpdateCommand.cc
  15813. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  15814. with MIN_PEERS.
  15815. * src/PeerListenCommand.h
  15816. (socket): Changed its type to SocketHandle.
  15817. * src/Command.h
  15818. (CommandUuid): New type definition.
  15819. (uuid): New variable.
  15820. (uuidGen): New variable.
  15821. (Command): Added the initialization of uuid.
  15822. (getUuid): New function.
  15823. * src/Socket.h
  15824. (Socket): Removed.
  15825. (SocketHandle): New type definition.
  15826. * src/DownloadEngine.h
  15827. (FindCommand): New function object.
  15828. (run): The portion of socket check was rewritten.
  15829. (SetDescriptor): New function object.
  15830. (AccumulateActiveCommandUuid): New function object.
  15831. (waitData): Rewritten.
  15832. (addSocket): Rewritten.
  15833. (deleteSocket): Rewritten.
  15834. (addSocketForReadCheck): Rewritten.
  15835. (addSocketForWriteCheck): Rewritten.
  15836. (deleteSocketForReadCheck): Rewritten.
  15837. (deleteSocketForWriteCheck): Rewritten.
  15838. * src/HttpProxyResponseCommand.h
  15839. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  15840. * src/HttpConnection.h
  15841. (socket): Changed its type to SocketHandle.
  15842. (HttpConnection): Replaced Socket with SocketHandle.
  15843. * src/PeerInitiateConnectionCommand.cc
  15844. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15845. (executeInternal): Removed the allocation of socket.
  15846. (prepareForNextPeer): Use PeerHandle.
  15847. * src/PeerMessage.h
  15848. (peer): Changed its type to PeerHandle.
  15849. (getPeer): Replaced Peer with PeerHandle.
  15850. (setPeer): Replaced Peer with PeerHandle.
  15851. * src/DownloadCommand.cc
  15852. (DownloadCommand): Replaced Socket with SocketHandle.
  15853. * src/FtpConnection.h
  15854. (socket): Changed its type to SocketHandle.
  15855. (FtpConnection): Replaced Socket with SocketHandle.
  15856. (sendPort); Replaced Socket with SocketHandle.
  15857. * src/FtpDowndloadCommand.h
  15858. (ctrlSocket): Changed its type to SocketHandle.
  15859. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15860. * src/HttpProxyRequestCommand.cc
  15861. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15862. * src/FtpTunnelRequestCommand.h
  15863. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15864. etc
  15865. * src/PeerChokeCommand.h
  15866. (setAllPeerChoked): Removed.
  15867. (setAllPeerResetDelta): Removed.
  15868. * src/PeerChokeCommand.cc
  15869. (setAllPeerChoked): Removed.
  15870. (ChokePeer): New function object.
  15871. (setAllPeerResetDelta): Removed.
  15872. (ResetDelta): New function object.
  15873. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15874. (execute): Show download speed when the local node is a seeder.
  15875. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15876. using STL.
  15877. * src/TrackerWatcherCommand.h
  15878. (MIN_PEERS): Removed.
  15879. * src/TorrentMan.cc
  15880. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15881. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15882. To fix the bug that .aria2 file is not saved if downloading is stopped
  15883. by the errors:it results that aria2 can not resume downloading:
  15884. * src/main.cc
  15885. (normalDownload): Added the call to save().
  15886. (main): Added the deletion of the elements in 'reserved'.
  15887. To fix log:
  15888. * src/PeerInteraction.cc
  15889. (receiveHandshake): Fixed log.
  15890. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15891. To improve download performance in BitTorrent:
  15892. * src/TorrentMan.cc
  15893. (getPeer): Check the number of connections. Return nullPeer if
  15894. it is greater than MAX_PEER_UPDATE.
  15895. This code was originally here, but was removed in 0.5.1.
  15896. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15897. To improve the conditional compilation:
  15898. * src/MultiDiskWriter.h:
  15899. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15900. * src/MultiDiskWriter.cc:
  15901. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15902. * src/Util.h:
  15903. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15904. Added ENABLE_BITTORRENT around computeFastSet().
  15905. * src/Util.cc:
  15906. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15907. Added ENABLE_BITTORRENT around computeFastSet().
  15908. * src/messageDigest.h:
  15909. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15910. * src/ShaVisitor.h:
  15911. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15912. * src/ShaVisitor.cc:
  15913. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15914. * src/main.cc:
  15915. Added ENABLE_BITTORRENT around includes and blocks related to
  15916. BitTorrent.
  15917. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15918. digest support is not available.
  15919. * src/AbstractDiskWriter.h:
  15920. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15921. * src/AbstractDiskWriter.cc:
  15922. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15923. * src/MetalinkEntry.cc
  15924. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15925. support is not available.
  15926. To add command-line options for Metalink:
  15927. * src/main.cc:
  15928. Added metalink-version, metalink-language, metalink-os,
  15929. follow-metalink.
  15930. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15931. * src/main.cc: Use these definition.
  15932. * Release 0.6.0
  15933. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15934. To add Metalink support(http/ftp only):
  15935. * src/AbstractCommand.h
  15936. (tryReserved): New function.
  15937. * src/AbstractCommand.cc
  15938. (execute): Call tryReserved().
  15939. (tryReserved): New function.
  15940. * src/Request.h
  15941. (Requests): New type definition.
  15942. * src/SegmentMan.h
  15943. (reserved): New variable.
  15944. * src/Util.h
  15945. (fileChecksum): New function.
  15946. (toUpper): New function.
  15947. (toLower): New function.
  15948. * src/Util.cc
  15949. (messageDigest.h): Included.
  15950. (trim): Trim \r\n\t.
  15951. (fileChecksum): New function.
  15952. (toUpper): New function.
  15953. (toLower): New function.
  15954. * src/main.cc
  15955. (normalDownload): New function.
  15956. (main): Added 2 command-line options: metalink-file,
  15957. metalink-connection. Their usage has not been written yet.
  15958. * src/MetalinkProcessor.h: New class.
  15959. * src/Xml2MetalinkProcessor.h: New class.
  15960. * src/Xml2MetalinkProcessor.cc: New class.
  15961. * src/MetalinkEntry.h: New class.
  15962. * src/MetalinkEntry.cc: New class.
  15963. * src/MetalinkResource.h: New class.
  15964. * src/MetalinkResource.cc: New class.
  15965. To add md5 message digest checking:
  15966. * src/messageDigest.h: Rewritten.
  15967. * src/MultiDiskWriter.cc: Updated according to the changes in
  15968. messageDigest.h.
  15969. * src/ShaVisitor.cc: Updated according to the changes in
  15970. messageDigest.h.
  15971. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15972. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15973. messageDigest.h.
  15974. To fix a bug that causes segfault when the payload length in peer
  15975. message is less than 0:
  15976. * src/PeerConnection.cc:
  15977. (receiveMessage): Fixed the bug.
  15978. * src/PeerMessageUtil.cc
  15979. (checkLength): Throw an exception if length is less than or equals to
  15980. 0.
  15981. To add new interfaces to Base64 encoding/decoding:
  15982. * src/Base64.h
  15983. (part_encode): Changed the method signature.
  15984. (encode): New function(overload).
  15985. (decode): New function(overload).
  15986. * src/Base64.cc
  15987. (part_encode): Rewritten.
  15988. (encode): Rewritten.
  15989. (encode): New function(overload).
  15990. To prevent a peer to download same piece if there is an error in
  15991. checksum:
  15992. * src/PieceMessage.cc
  15993. (receivedAction): Call peerInteraction->abortPiece().
  15994. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15995. To fix the bug that causes same have message is sent many times to
  15996. a single peer.
  15997. * src/Time.cc
  15998. (isNewer): Use Util::difftv().
  15999. * src/Util.cc
  16000. (difftv): Added a cast to (long long int).
  16001. * src/TorrentMan.cc
  16002. (advertisePiece): Use push_front.
  16003. (getAdvertisedPieceIndexes): A performance improvement was made.
  16004. To fix the bug that sends tracker requests without a sleep interval
  16005. when the number of connections is less than 15.
  16006. * src/TrackerWatcherCommand.cc
  16007. (execute): Now the number of connections is not a factor to decide
  16008. whether or not a tracker request should be sent or not.
  16009. * src/Time.h
  16010. (setTimeInSec): New function.
  16011. * src/Time.cc
  16012. (setTimeInSec): New function.
  16013. etc.
  16014. * src/ChokeMessage.cc
  16015. (receivedAction): Removed peer->snubbing = false
  16016. * src/PeerConnection.h
  16017. (receiveHandshake): Updated doc.
  16018. * src/TorrentMan.h
  16019. (getAdvertisedPieceIndexes): Updated the method signature.
  16020. * src/TorrentMan.cc
  16021. (getAdvertisedPieceIndexes): Updated the method signature.
  16022. * src/Time.h
  16023. (getTimeInMicros): Added a cast to (long long int).
  16024. (getTimeInMillis): Added a cast to (long long int).
  16025. * Release 0.5.2
  16026. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16027. To make a listening socket non-block:
  16028. * src/SocketCore.h
  16029. (setNonBlockingMode): New function.
  16030. * src/SocketCore.cc
  16031. (setNonBlockingMode): New function.
  16032. (beginListen): Added a call to setNonBlockingMode().
  16033. (acceptConnection): Call setNonBlockingMode().
  16034. (setBlockingMode): Updated.
  16035. To handle tracker's NAT-checking:
  16036. * src/PeerConnection.cc
  16037. (receiveHandshake): 'msg' param is filled with received data and
  16038. its length is assigned to 'length' param, even if all handshake
  16039. message is not yet received.
  16040. * src/PeerInteractionCommand.cc
  16041. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16042. a new peer connects to localhost.
  16043. A call to peerInteraction->sendHandshake() was removed because
  16044. it is called from peerInteraction->receiveHandshake(true).
  16045. * src/PeerInteraction.h
  16046. (quickReplied): New variable.
  16047. (receiveHandshake): Added an argument.
  16048. * src/PeerInteraction.cc
  16049. (PeerInteraction): Added the initialization of quickReplied.
  16050. (receiveHandshake): Send handshake message as soon as the info hash
  16051. in a handshake message from a peer is correct.
  16052. To change the random part of peer id and key parameter:
  16053. * src/TorrentMan.h
  16054. (key): New variable.
  16055. * src/TorrentMan.cc
  16056. (setupInternal1): Use Util::randomAlpha() to generate random part
  16057. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16058. key is also generated by Util::randomAlpha() and it is now 8 character
  16059. long.
  16060. * src/Util.h
  16061. (randomAlpha): New function.
  16062. * src/Util.cc
  16063. (randomAlpha): New function.
  16064. * src/TrackerWatcherCommand.cc
  16065. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16066. Added no_peer_id=1.
  16067. Set snubbing flag to false when a choke message is received from a
  16068. snubbed peer.
  16069. * src/ChokeMessage.cc
  16070. (receivedAction): Set snubbing flag to false.
  16071. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16072. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16073. * src/SimpleLogger.h (writeHeader): New function.
  16074. * src/SimpleLogger.cc (writeHeader): New function.
  16075. (writeLog): Fixed the bug that causes segfaults if exception message
  16076. contains an unescaped "%" character.
  16077. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16078. when a tracker request fails.
  16079. * src/Request.cc (parseUrl): Query string is now handled properly.
  16080. * Release 0.5.1
  16081. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16082. To add Time class which represents a specific instant in time and
  16083. its precision is microseconds. Time checking procedures were rewritten
  16084. using this object.
  16085. * src/Time.h: New class.
  16086. * src/Time.cc: New class.
  16087. * src/AbstractCommand.h
  16088. (updateCheckPoint): Removed.
  16089. (isTimeoutDetected): Removed.
  16090. (checkPoint): Changed the type to Time.
  16091. (timeout): New variable.
  16092. (setTimeout): New function.
  16093. * src/AbstractCommand.cc
  16094. (AbstractCommand): Removed the initialization of checkPoint.
  16095. Added the initialization of timeout.
  16096. (updateCheckPoint): Removed.
  16097. (isTimeoutDetected): Removed.
  16098. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16099. * src/PeerChokeCommand.h
  16100. (checkPoint): Changed the type to Time.
  16101. * src/PeerChokeCommand.cc
  16102. (PeerChokeCommand): Removed the initialization of checkPoint.
  16103. (execute): Rewritten using Time object.
  16104. * src/TrackerWatcherCommand.h
  16105. (checkPoint): Changed the type to Time.
  16106. * src/TrackerWatcherCommand.cc
  16107. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16108. (execute): Rewritten.
  16109. * src/ConsoleDownloadEngine.h
  16110. (cp): Changed the type to Time.
  16111. (startup): Changed the type to Time.
  16112. * src/ConsoleDownloadEngine.cc
  16113. (initStatistics): Use cp.reset(), startup.reset().
  16114. (calculateStatistics): Rewritten using Time object.
  16115. * src/PeerAbstractCommand.h
  16116. (updateCheckPoint): Removed.
  16117. (isTimeoutDetected): Removed.
  16118. (checkPoint): Changed the type to Time.
  16119. * src/PeerAbstractCommand.cc
  16120. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16121. (updateCheckPoint): Removed.
  16122. (isTimeoutDetected): Removed.
  16123. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16124. * src/PeerInteractionCommand.cc
  16125. (PeerInteractionCommand): Removed the initializations of struct
  16126. timeval variables.
  16127. * src/PeerInteractionCommand.h
  16128. (keepAliveCheckPoint): Changed the type to Time.
  16129. (chokeCheckPoint): Changed the type to Time.
  16130. (freqCheckPoint): Changed the type to Time.
  16131. (haveCheckTime): Changed the type to Time.
  16132. * src/PeerInteractionCommand.cc
  16133. (executeInternal): Rewritten using Time object.
  16134. (detectMessageFlooding): Rewritten using Time object.
  16135. (checkLongTimePeerChoking): Rewritten using Time object.
  16136. (sendKeepAlive): Rewritten using Time object.
  16137. (checkHave): Rewritten using Time object.
  16138. * src/SleepCommand.h
  16139. (checkPoint): Changed the type to Time.
  16140. * src/SleepCommand.cc
  16141. (SleepCommand): Removed the initialization of checkPoint.
  16142. (execute): Rewritten using Time object.
  16143. * src/TorrentAutoSaveCommand.h
  16144. (checkPoint): Changed the type to Time.
  16145. * src/TorrentAutoSaveCommand.cc
  16146. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16147. (execute): Rewritten.
  16148. * src/DownloadCommand.h
  16149. (sw): Changed the type to Time.
  16150. * src/DownloadCommand.cc
  16151. (DownloadCommand): Removed the initialization of sw.
  16152. (executeInternal): Rewritten.
  16153. * src/RequestSlot.h
  16154. (dispatchedTime): Changed the type to Time.
  16155. * src/RequestSlot.cc
  16156. (RequestSlot): Removed the call to setDispatchedTime().
  16157. (setDispatchedTime): Rewirtten.
  16158. (isTimeout): Rewritten.
  16159. (getLatencyInMillis): Rewritten.
  16160. * src/TorrentDownloadEngine.h
  16161. (cp): Changed the type to Time[2].
  16162. (startup): Changed the type to Time.
  16163. * src/TorrentDownloadEngine.cc
  16164. (initStatistics): Rewritten.
  16165. (calculateStatistics): Rewritten.
  16166. * src/DownloadEngine.cc
  16167. (run): Rewritten.
  16168. To detect all attempts to connect to the tracker are failed:
  16169. * src/AbstractCommand.cc
  16170. (execute): Increment e->segmentMan->errors if a command aborted.
  16171. * src/SegmentMan.h
  16172. (errors): New variable.
  16173. * src/SegmentMan.cc
  16174. (SegmentMan): Added the initialization of errors.
  16175. (init): Added the initialization of errors.
  16176. * src/TrackerWatcherCommand.cc
  16177. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16178. request was failed.
  16179. To handle snubbed peers:
  16180. * src/PeerChokeCommand.cc
  16181. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16182. (execute): Snubbed peers don't get unchoked.
  16183. * src/PeerInteraction.h
  16184. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16185. * src/PeerInteraction.cc
  16186. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16187. back the requested 16k block in 60 seconds.
  16188. * src/PieceMessage.cc
  16189. (receivedAction): A peer's snubbed state is cleard if it sends
  16190. the requested 16k block in 60 seconds.
  16191. * src/Peer.h
  16192. (snubbing): New variable.
  16193. * src/Peer.cc
  16194. (resetStatus): Added snubbed = false.
  16195. To fix the bug that causes have message is not sent:
  16196. * src/PeerInteractionCommand.cc
  16197. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16198. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16199. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16200. * src/TorrentMan.h
  16201. (HaveEntry): New class.
  16202. (advertisePiece): Rewritten.
  16203. (getAdvertisedPieceIndexes): Rewritten.
  16204. (Haves): Changed the type.
  16205. (getAdvertisedPieceIndexes): Added an argument.
  16206. Others:
  16207. * src/TorrentMan.h
  16208. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16209. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16210. * src/TorrentMan.cc
  16211. (getPeer): Don't check the number of connections here.
  16212. (setupInternal1): Changed peerId.
  16213. * src/PeerInteractionCommand.h
  16214. (KEEP_ALIVE_INTERVAL): New definition.
  16215. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16216. * src/main.cc
  16217. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16218. * src/DownloadEngine.h: Removed unnecessary header includes.
  16219. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16220. To fix the bug that causes segfaults if a tracker returns a zero-length
  16221. list as "peers":
  16222. * src/TrackerUpdateCommand.cc
  16223. (execute): Added a check to see wether the type of peers is Data*.
  16224. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16225. * Release 0.5.0
  16226. To fix compile issue with gcc3:
  16227. * src/CancelMessage.h
  16228. (ID): Renamed as ID_t
  16229. (ID_t): New enum.
  16230. * src/RejectMessage.h
  16231. (ID): Renamed as ID_t
  16232. (ID_t): New enum.
  16233. * src/SuggestPieceMessage.h
  16234. (ID): Renamed as ID_t
  16235. (ID_t): New enum.
  16236. * src/AllowedFastMessage.h
  16237. (ID): Renamed as ID_t
  16238. (ID_t): New enum.
  16239. * src/PortMessage.h
  16240. (ID): Renamed as ID_t
  16241. (ID_t): New enum.
  16242. * src/HaveNoneMessage.h
  16243. (ID): Renamed as ID_t
  16244. (ID_t): New enum.
  16245. * src/KeepAliveMessage.h
  16246. (ID): Renamed as ID_t
  16247. (ID_t): New enum.
  16248. * src/HaveAllMessage.h
  16249. (ID): Renamed as ID_t
  16250. (ID_t): New enum.
  16251. * src/UnchokeMessage.h
  16252. (ID): Renamed as ID_t
  16253. (ID_t): New enum.
  16254. * src/BitfieldMessage.h
  16255. (ID): Renamed as ID_t
  16256. (ID_t): New enum.
  16257. * src/PieceMessage.h
  16258. (ID): Renamed as ID_t
  16259. (ID_t): New enum.
  16260. * src/RequestMessage.h
  16261. (ID): Renamed as ID_t
  16262. (ID_t): New enum.
  16263. * src/NotInterestedMessage.h
  16264. (ID): Renamed as ID_t
  16265. (ID_t): New enum.
  16266. * src/ChokeMessage.h
  16267. (ID): Renamed as ID_t
  16268. (ID_t): New enum.
  16269. * src/InterestedMessage.h
  16270. (ID): Renamed as ID_t
  16271. (ID_t): New enum.
  16272. * src/HaveMessage.h
  16273. (ID): Renamed as ID_t
  16274. (ID_t): New enum.
  16275. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16276. * src/PeerAbstractCommand.h
  16277. (beforeSocketCheck): Removed.
  16278. * src/PeerAbstractCommand.cc
  16279. Modified in order to call executeInternal() even if socket check
  16280. and upload limit check fail.
  16281. * src/PeerInteractionCommand.h
  16282. (keepAlive): Removed.
  16283. (sendKeepAlive): New function.
  16284. (checkHave): New function.
  16285. (beforeSocketCheck): Removed.
  16286. * src/PeerInteractionCommand.cc
  16287. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16288. calls to checkHave() and sendKeepAlive().
  16289. (keepAlive): Renamed to sendKeepAlive().
  16290. (sendKeepAlive): New function.
  16291. (beforeSocketCheck): Removed.
  16292. (checkHave): New function.
  16293. * src/BitfieldMan.cc
  16294. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16295. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16296. 0.
  16297. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16298. * src/TorrentMan.h
  16299. (UsedPieces): Removed.
  16300. (Pieces): New type definition.
  16301. * src/Piece.h: Updated doc.
  16302. * src/Peer.h
  16303. (totalLength): Removed.
  16304. * src/Peer.cc
  16305. (updateLatency): Fixed the latency calculation.
  16306. * src/TorrentMan.cc
  16307. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16308. than or equal to MAX_PEER_LIST_SIZE.
  16309. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16310. then return false.
  16311. (deleteOldErrorPeers): Rewritten.
  16312. (deleteUsedPiece): Fixed the miss use of STL remove.
  16313. * src/PeerInteraction.h
  16314. (Pieces): Removed.
  16315. (deleteTimeoutRequestSlot): Removed.
  16316. (deleteCompletedRequestSlot): Removed.
  16317. (checkRequestSlot): New function.
  16318. * src/PeerInteraction.cc
  16319. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16320. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16321. (checkRequestSlot): New function.
  16322. * src/DownloadEngine.cc
  16323. (run): Clear activeSockets before calling waitData().
  16324. (waitData): Removed a call to activeSockets.clear().
  16325. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16326. To attempt to handle EINTR:
  16327. * src/SocketCore.cc
  16328. (isReadable): Added EINTR handling.
  16329. (isWritable): Added EINTR handling.
  16330. To improve the performance:
  16331. * src/AbstractCommand.cc
  16332. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16333. * src/PeerInteractionCommand.h
  16334. (receiveMessage): Renamed as receiveMessages().
  16335. (receiveMessages): New function.
  16336. * src/PeerInteractionCommand.cc
  16337. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16338. () function. detectMessageFlooding() is moved here.
  16339. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16340. (). The flooding detection for have message is comment out.
  16341. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16342. Util::difftv().
  16343. (receiveMessage): Renamed as receiveMessages().
  16344. (receiveMessages): New function.
  16345. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16346. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16347. * src/SleepCommand.cc
  16348. (execute): Use Util::difftvsec() instead of Util::difftv().
  16349. * src/BitfieldMan.h
  16350. (getNthBitIndex): New function.
  16351. (hasMissingPiece): New function.
  16352. (getAllMissingIndexes): New function.
  16353. * src/BitfieldMan.cc
  16354. (countSetBit): Rewritten.
  16355. (getNthBitIndex): New function.
  16356. (getMissingIndexRandomly): Rewritten.
  16357. (hasMissingPiece): New function.
  16358. (getAllMissingIndexes): New function.
  16359. * src/TorrentMan.cc
  16360. (hasMissingPiece): New function.
  16361. (deleteUsedPiece): Rewritten using STL.
  16362. * src/PeerInteraction.cc
  16363. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16364. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16365. (addRequests): Updated the number of pending requests.
  16366. * src/PeerAbstractCommand.cc
  16367. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16368. (execute): Returns true if TorrentMan::isHalt() is true.
  16369. Corrected the condition of upload limit checking.
  16370. * src/Util.h
  16371. (countBit): New function.
  16372. * src/Util.cc
  16373. (nbits): New variable.
  16374. (countBit): New function.
  16375. * src/DownloadEngine.h
  16376. (SockCmdMap): New type definition.
  16377. (waitData): Added an argument.
  16378. (addSocket): Added an argument.
  16379. (addSocketForReadCheck): Added an argument.
  16380. (addSocketForWriteCheck): Added an argument.
  16381. * src/DownloadEngine.cc
  16382. (run): Executes only commands whose sockets are ready to read or write.
  16383. All commands are executed in every 1 second.
  16384. (waitData): Calls select() again if it returned
  16385. EINTR.
  16386. (addSocket): Saves socket and command object pair to the map.
  16387. (deleteSocket): Deletes socket and command object pair from the map.
  16388. (addSocketForReadCheck): Added an argument.
  16389. (addSocketForWriteCheck): Added an argument.
  16390. * src/DownloadCommand.cc
  16391. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16392. To send "event=stopped" to the tracker when the application finishes:
  16393. * src/PeerChokeCommand.h
  16394. (checkPoint): New variable.
  16395. * src/PeerChokeCommand.cc
  16396. (PeerChokeCommand): Added the initialization of checkPoint.
  16397. (execute): The interval check is now done by checkPoint, not
  16398. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16399. * src/TorrentMan.h
  16400. (halt): New function.
  16401. (hasMissingPiece): New function.
  16402. (isHalt): New function.
  16403. (setHalt): New function.
  16404. * src/TorrentMan.cc
  16405. (TorrentMan): Added the initialization of halt.
  16406. * src/TorrentAutoSaveCommand.h
  16407. (checkPoint): New variable.
  16408. * src/PeerListenCommand.cc
  16409. (execute): Returns true if TorrentMan::isHalt() is true.
  16410. * src/main.cc
  16411. (setSignalHander): Added flags argument.
  16412. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16413. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16414. Removed printDownloadAbortMessage() after torrent downloading loop.
  16415. * src/TorrentAutoSaveCommand.cc
  16416. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16417. (execute): Returns true if TorrentMan::isHalt() is true.
  16418. The interval check is now done by checkPoint, not SleepCommand.
  16419. * src/TrackerWatcherCommand.cc
  16420. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16421. event=stopped.
  16422. * src/TrackerUpdateCommand.cc
  16423. (prepareForRetry): Do not use SleepCommand here.
  16424. (execute): Returns true if TorrentMan::isHalt() is true.
  16425. Others:
  16426. * src/TorrentMan.cc
  16427. (getMissingPieceIndex): Updated log message.
  16428. * src/PeerInteraction.cc
  16429. (createPeerMessag): Updated log message.
  16430. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16431. To add the ability to download several pieces in mix in a command and
  16432. increase the number of request slots according to request-cancel
  16433. latency:
  16434. * src/PeerInteractionCommand.cc
  16435. (executeInternal): The number of messages to be received at a time
  16436. is increased from 10 to 50.
  16437. * src/LogFactory
  16438. (getInstance): Added NullLogger.
  16439. * src/NullLogger.h: New class.
  16440. * src/BitfieldMan.h
  16441. (getMissingIndex): New function.
  16442. * src/BitfieldMan.cc
  16443. (getMissingIndex): New function.
  16444. * src/TorrentMan.h
  16445. (checkOutPiece): New function.
  16446. (getMissingPieceIndex): New function.
  16447. (getMissingFastPieceIndex): New function.
  16448. (getMissingFastPiece): New function.
  16449. * src/TorrentMan.cc
  16450. (updatePiece): Rewritten using STL.
  16451. (syncPiece): Rewritten using STL.
  16452. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16453. checkOutPiece().
  16454. (getMissingPieceIndex): New function.
  16455. (getMissingFastPieceIndex): New function.
  16456. (getMissingFastPiece): New function.
  16457. (checkOutPiece): New function.
  16458. * src/PeerInteraction.h
  16459. (Pieces): New type definition.
  16460. (piece): Removed.
  16461. (pieces): New variable.
  16462. (getNewPieceAndSendInterest): Added the "piece" argument.
  16463. (abortPiece): Added the "piece" argument.
  16464. (abortAllPieces): New function.
  16465. (isInRequestSlot): New function.
  16466. (hasDownloadPiece): Added the "index" argument.
  16467. (setDownloadPiece): Removed.
  16468. (getDownloadPiece): Added the "index" argument.
  16469. (updatePiece): New function.
  16470. (createRequestMessage): Added the "index" argument.
  16471. * src/PeerInteraction.cc
  16472. (onChoked): Rewritten.
  16473. (abortPiece): Rewirtten.
  16474. (abortAllPieces): New function.
  16475. (deleteTimeoutRequestSlot): Rewritten.
  16476. Clarified code a little bit.
  16477. (deleteCompletedRequestSlot): Rewritten.
  16478. (isInRequestSlot): New function.
  16479. (syncPiece): Rewritten.
  16480. (updatePiece): New function.
  16481. (getNewPieceAndSendInterest): Rewritten.
  16482. (addRequests): Rewritten.
  16483. (getDownloadPiece): Rewritten.
  16484. (hasDownloadPiece): Rewritten.
  16485. (createRequestMessage): Added the "index" argument.
  16486. * src/common.h
  16487. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16488. (DIV_FLOOR): New definition.
  16489. * src/PieceMessage.cc
  16490. (receivedAction): Update request-piece latency here.
  16491. * src/RequestSlot.h
  16492. (getLatencyInMillis): New function.
  16493. * src/RequestSlot.cc
  16494. (isTimeout): Rewritten using getLatencyInMillis.
  16495. (getLatencyInMillis): New function.
  16496. * src/Piece.h
  16497. (operator==): New function.
  16498. (getMissingBlockIndex): New function.
  16499. * src/Piece.cc
  16500. (operator==): New function.
  16501. (getMissingBlockIndex): New function.
  16502. * src/Peer.h
  16503. (DEFAULT_LATENCY): New definition.
  16504. (latency): New variable.
  16505. (updateLatency): New function.
  16506. (getLatency): New function.
  16507. * src/Peer.cc
  16508. (resetStatus): Reset latecy.
  16509. (updateLatency): New function.
  16510. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16511. * src/SocketCore.cc
  16512. (isReadable): Added secure to the condition.
  16513. * src/HttpConnection.cc
  16514. (receiveResponse): Fixed a bug that causes no response header
  16515. exception.
  16516. * src/Peer.h
  16517. (getFastSet): Fixed the return value type.
  16518. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16519. To remove a wait from download loop:
  16520. * src/DownloadEngine.cc
  16521. (run): Comment out shortSleep.
  16522. To rewrite the message handling:
  16523. * src/SimplePeerMessage.h: New class.
  16524. * src/SimplePeerMessage.cc: New class.
  16525. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16526. (msg): New variable.
  16527. (create): New function.
  16528. (send): Removed.
  16529. (getMessage): New function.
  16530. (getMessageLength): New function.
  16531. * src/CancelMessage.cc
  16532. (create): New function.
  16533. (receivedAction): Replaced deleteRequestMessageInQueue with
  16534. rejectPieceMessageInQueue.
  16535. (send): Removed.
  16536. (getMessage): New function.
  16537. (getMessageLength): New function.
  16538. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16539. (msg): New variable.
  16540. (msgLength): New variable.
  16541. (~BitfieldMessage): Deleted msg.
  16542. (send): Removed.
  16543. (getMessage): New function.
  16544. (getMessageLength): New function.
  16545. * src/BitfieldMessage.cc
  16546. (create): New function.
  16547. (send): Removed.
  16548. (getMessage): New function.
  16549. (getMessageLength): New function.
  16550. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16551. (msg): New variable.
  16552. (sendPredicate): New function.
  16553. (onSendComplete): New function.
  16554. (send): Removed.
  16555. (getMessage): New function.
  16556. (getMessageLength): New function.
  16557. (create): New function.
  16558. * src/ChokeMessage.cc
  16559. (create): New function.
  16560. (send): Removed.
  16561. (sendPredicate): New function.
  16562. (getMessage): New function.
  16563. (getMessageLength): New function.
  16564. (onSendComplete): New function.
  16565. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16566. (msg): New variable.
  16567. (send): Removed.
  16568. (getMessage): New function.
  16569. (getMessageLength): New function.
  16570. * src/KeepAliveMessage.cc
  16571. (send): Removed.
  16572. (getMessage): New function.
  16573. (getMessageLength): New function.
  16574. * src/PortMessage.h
  16575. (create): New function.
  16576. (receivedAction): Updated log message.
  16577. * src/PortMessage.cc: New file.
  16578. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16579. (msg): New variable.
  16580. (sendPredicate): New function.
  16581. (onSendComplete): New function.
  16582. (create): New function.
  16583. (send): Removed.
  16584. (getMessage): New function.
  16585. (getMessageLength): New function.
  16586. * src/UnchokeMessage.cc
  16587. (create): New function.
  16588. (send): Removed.
  16589. (sendPredicate): New function.
  16590. (getMessage): New function.
  16591. (getMessageLength): New function.
  16592. (onSendComplete): New function.
  16593. * src/PieceMessage.h
  16594. (leftPieceDataLength): Removed.
  16595. (leftDataLength): New variable.
  16596. (headerSend): New variable.
  16597. (pendingCount): New variable.
  16598. (msgHeader): New variable.
  16599. (sendPieceData): New function.
  16600. (incrementPendingCount): New function.
  16601. (isPendingCountMax): New function.
  16602. (create): New function.
  16603. (getMessageHeader): New function.
  16604. (getMessageHeaderLength): New function.
  16605. * src/PieceMessage.cc
  16606. (create): New function.
  16607. (getMessageHeader): New function.
  16608. (getMessageHeaderLength): New function.
  16609. (send): Rewritten.
  16610. (sendPieceData): New function.
  16611. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16612. (msg): New variable.
  16613. (create): New function.
  16614. (getMessage): New function.
  16615. (getMessageLength): New function.
  16616. * src/HaveMessage.cc
  16617. (create): New function.
  16618. (send): Removed.
  16619. (sendPieceData): New function.
  16620. (getMessage): New function.
  16621. (getMessageLength): New function.
  16622. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16623. (msg): New variable.
  16624. (create): New function.
  16625. (send): Removed.
  16626. (getMessage): New function.
  16627. (getMessageLength): New function.
  16628. * src/RequestMessage.cc
  16629. (create): New function.
  16630. (receivedAction): Added the handling of fast extension.
  16631. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16632. (send): Removed.
  16633. (getMessage): New function.
  16634. (getMessageLength): New function.
  16635. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16636. (msg): New variable.
  16637. (sendPredicate): New function.
  16638. (onSendComplete): New function.
  16639. (create): New function.
  16640. (getMessage): New function.
  16641. (getMessageLength): New function.
  16642. * src/InterestedMessage.cc
  16643. (create): New function.
  16644. (send): Removed.
  16645. (sendPieceData): New function.
  16646. (getMessage): New function.
  16647. (getMessageLength): New function.
  16648. (onSendComplete): New function.
  16649. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16650. (msg): New variable.
  16651. (sendPieceData): New function.
  16652. (onSendComplete): New function.
  16653. (create): New function.
  16654. (send): Removed.
  16655. (getMessage): New function.
  16656. (getMessageLength): New function.
  16657. * src/NotInterestedMessage.cc
  16658. (create): New function.
  16659. (send): Removed.
  16660. (sendPredicate): New function.
  16661. (getMessage): New function.
  16662. (getMessageLength): New function.
  16663. (onSendComplete): New function.
  16664. * src/AllowedFastMessage.h: New class.
  16665. * src/AllowedFastMessage.cc: New class.
  16666. * src/RejectMessage.h: New class.
  16667. * src/RejectMessage.cc: New class.
  16668. * src/SuggestPieceMessage.h: New class.
  16669. * src/SuggestPieceMessage.cc: New class.
  16670. * src/HaveAllMessage.h: New class.
  16671. * src/HaveAllMessage.cc: New class.
  16672. * src/HaveNoneMessage.h: New class.
  16673. * src/HaveNoneMessage.cc: New class.
  16674. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16675. (msg): New variable.
  16676. (reserved): New variable.
  16677. (create): New function.
  16678. (getId): New function.
  16679. (receivedAction): New function.
  16680. (getMessage): New function.
  16681. (getMessageLength): New function.
  16682. (isFastExtensionSupported): New function.
  16683. * src/HandshakeMessage.cc
  16684. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16685. (create): New function.
  16686. (getMessage): New function.
  16687. (getMessageLength): New function.
  16688. (toString): Added the output of reserved field.
  16689. (check): Added const qualifier.
  16690. (isFastExtensionSupported): New function.
  16691. * src/PeerMessageUtil.h
  16692. (createChokeMessage): Removed.
  16693. (createUnchokeMessage): Removed.
  16694. (createInterestedMessage): Removed.
  16695. (createNotInterestedMessage): Removed.
  16696. (createHaveMessage): Removed.
  16697. (createBitfieldMessage): Removed.
  16698. (createRequestMessage): Removed.
  16699. (createCancelMessage): Removed.
  16700. (createPieceMessage): Removed.
  16701. (createPortMessage): Removed.
  16702. (createChokeMessage): Removed.
  16703. (createUnchokeMessage): Removed.
  16704. (createInterestedMessage): Removed.
  16705. (createNotInterestedMessage): Removed.
  16706. (createHaveMessage): Removed.
  16707. (createBitfieldMessage): Removed.
  16708. (createRequestMessage): Removed.
  16709. (createCancelMessage): Removed.
  16710. (createPieceMessage): Removed.
  16711. (createKeepAliveMessage): Removed.
  16712. (createHandshakeMessage): Removed.
  16713. (setIntParam): New function.
  16714. (createPeerMessageString): New function.
  16715. * src/PeerMessageUtil.cc
  16716. (createChokeMessage): Removed.
  16717. (createUnchokeMessage): Removed.
  16718. (createInterestedMessage): Removed.
  16719. (createNotInterestedMessage): Removed.
  16720. (createHaveMessage): Removed.
  16721. (createBitfieldMessage): Removed.
  16722. (createRequestMessage): Removed.
  16723. (createCancelMessage): Removed.
  16724. (createPieceMessage): Removed.
  16725. (createPortMessage): Removed.
  16726. (createRequestMessage): Removed.
  16727. (createCancelMessage): Removed.
  16728. (createPieceMessage): Removed.
  16729. (createHaveMessage): Removed.
  16730. (createChokeMessage): Removed.
  16731. (createUnchokeMessage): Removed.
  16732. (createInterestedMessage): Removed.
  16733. (createNotInterestedMessage): Removed.
  16734. (createBitfieldMessage): Removed.
  16735. (createKeepAliveMessage): Removed.
  16736. (createHandshakeMessage): Removed.
  16737. (setIntParam): New function.
  16738. (createPeerMessageString): New function.
  16739. * src/PeerConnection.h
  16740. (peer): Removed.
  16741. (torrentMan): Removed.
  16742. (createNLengthMessage): Removed.
  16743. (setIntParam): Removed.
  16744. (writeOutgoingMessageLog): Removed all overloaded functions.
  16745. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16746. (sendMessage): New function.
  16747. (sendHandshake): Removed.
  16748. (sendKeepAlive): Removed.
  16749. (sendChoke): Removed.
  16750. (sendUnchoke): Removed.
  16751. (sendInterested): Removed.
  16752. (sendNotInterested): Removed.
  16753. (sendHave): Removed.
  16754. (sendBitfield): Removed.
  16755. (sendRequest): Removed.
  16756. (sendPiece): Removed.
  16757. (sendPieceHeader): Removed.
  16758. (sendPieceData): Removed.
  16759. (sendCancel): Removed.
  16760. (getPeer): Removed.
  16761. * src/PeerConnection.cc
  16762. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16763. (sendHandshake): Removed.
  16764. (sendKeepAlive): Removed.
  16765. (createNLengthMessage): Removed.
  16766. (setIntParam): Removed.
  16767. (writeOutgoingMessageLog): Removed all overloaded functions.
  16768. (sendChoke): Removed.
  16769. (sendUnchoke): Removed.
  16770. (sendInterested): Removed.
  16771. (sendNotInterested): Removed.
  16772. (sendHave): Removed.
  16773. (sendBitfield): Removed.
  16774. (sendRequest): Removed.
  16775. (sendPiece): Removed.
  16776. (sendPieceHeader): Removed.
  16777. (sendPieceData): Removed.
  16778. (sendMessage): New function.
  16779. (sendCancel): Removed.
  16780. * src/PeerInteractionCommand.cc
  16781. (PeerInteractionCommand): Call setUploadLimit.
  16782. (executeInternal): Call setUploadLimit.
  16783. Added the handling of "inProgress" state of handshake message.
  16784. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16785. sendNow().
  16786. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16787. sendNow().
  16788. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16789. * src/TorrentMan.h
  16790. (PEER_ID_LENGTH): New definition.
  16791. (hasAllPieces): New function.
  16792. * src/TorrentMan.cc
  16793. (getMissingPiece): Added the handling of fast extension.
  16794. (cancelPiece): Call updatePiece().
  16795. (hasAllPieces): New function.
  16796. * src/PeerInteraction.h
  16797. (fastSet): New variable.
  16798. (getNewPieceAndSendInterest): Changed the return type to void.
  16799. (send): Renamed as sendMessages.
  16800. (deleteAllRequestSlot): Removed.
  16801. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16802. (cancelAllRequest): Removed all overloaded functions.
  16803. (deleteAllRequestSlot): Removed.
  16804. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16805. (rejectPieceMessageInQueue): New function.
  16806. (rejectAllPieceMessageInQueue): New function.
  16807. (onChoked): New function.
  16808. (isSendingMessageInProgress): New function.
  16809. (getCorrespondingRequestSlot): Changed its arguments.
  16810. (isInFastSet): New function.
  16811. (addFastSetIndex): New function.
  16812. (addRequests): New function.
  16813. (sendNow): Removed.
  16814. (trySendNow): Removed.
  16815. (sendBitfield): New function.
  16816. (sendAllowdFast): New function.
  16817. (createHaveAllMessage): New function.
  16818. (createHaveNoneMessage): New function.
  16819. (createRejectMessage): New function.
  16820. (createAllowedFastMessage): New function.
  16821. * src/PeerInteraction.cc
  16822. (send): Renamed as sendMessages.
  16823. (sendMessages): New function.
  16824. (MsgPushBack): New class.
  16825. (isSendingMessageInProgress): New function.
  16826. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16827. (rejectAllPieceMessageInQueue): New function.
  16828. Added the handling of fast extension.
  16829. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16830. (rejectPieceMessageInQueue): New function.
  16831. Added the handling of fast extension.
  16832. (deleteRequestSlot): Replaced for loop with std::find.
  16833. (onChoked): New function.
  16834. (deleteAllRequestSlot): Removed.
  16835. (abortPiece): Rewirtten.
  16836. (deleteTimeoutRequestSlot): Updated log messages.
  16837. (getCorrespondingRequestSlot): Changed its arguments.
  16838. (cancelAllRequest): Removed all overloaded functions.
  16839. (receiveHandshake): Added the check to see whether an incoming peer
  16840. supports fast extension.
  16841. (createHandshakeMessage): Use HandshakeMessage::create instead of
  16842. PeerMessageUtil.
  16843. (createPeerMessage): Use create() of each message class instead of
  16844. PeerMessageUtil.
  16845. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  16846. AllowedFastMessage were added.
  16847. (getNewPieceAndSendInterest): Changed its return value type to void.
  16848. Added the handling of fast extension.
  16849. (addRequests): New function.
  16850. (sendNow): Removed.
  16851. (sendHandshake): Rewritten.
  16852. (trySendNow): Removed.
  16853. (sendBitfield): New function.
  16854. (sendAllowdFast): New function.
  16855. (isInFastSet): New function.
  16856. (addFastSetIndex): New function.
  16857. (createRequestMessage): Use RequestMessage::create instead of
  16858. PeerMessageUtil.
  16859. (createCancelMessage): Use CancelMessage::create instead of
  16860. PeerMessageUtil.
  16861. (createPieceMessage): Use PieceMessage::create instead of
  16862. PeerMessageUtil.
  16863. (createHaveMessage): Use HaveMessage::create instead of
  16864. PeerMessageUtil.
  16865. (createChokeMessage): Use ChokeMessage::create instead of
  16866. PeerMessageUtil.
  16867. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16868. PeerMessageUtil.
  16869. (createInterestedMessage): Use InterestedMessage::create instead of
  16870. PeerMessageUtil.
  16871. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16872. of PeerMessageUtil.
  16873. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16874. PeerMessageUtil.
  16875. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16876. PeerMessageUtil.
  16877. (createHaveAllMessage): New function.
  16878. (createHaveNoneMessage): New function.
  16879. (createRejectMessage): New function.
  16880. (createAllowedFastMessage: New function.
  16881. * src/Util.h
  16882. (sha1Sum): New function.
  16883. (computeFastSet): New function.
  16884. * src/Util.cc
  16885. (sha1Sum): New function.
  16886. (computeFastSet): New function.
  16887. * src/Peer.h
  16888. (fastExtensionEnabled): New variable.
  16889. (fastSet): New variable.
  16890. (setAllBitfield): New function.
  16891. (setFastExtensionEnabled): New function.
  16892. (isFastExtensionEnabled): New function.
  16893. (addFastSetIndex): New function.
  16894. (getFastSet): New function.
  16895. (isInFastSet): New function.
  16896. (countFastSet): New function.
  16897. * src/Peer.cc
  16898. (isInFastSet): New function.
  16899. (addFastSetIndex): New function.
  16900. (setAllBitfield): New function.
  16901. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16902. sockets.
  16903. * src/PeerAbstractCommand.cc
  16904. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16905. and uploadLimit.
  16906. (execute): Changed the procedure of checking sockets. The upload speed
  16907. checking were added.
  16908. (setUploadLimit): New function.
  16909. (setUploadLimitCheck): New function.
  16910. * src/PeerAbstractCommand.h
  16911. (setUploadLimit): New function.
  16912. (setUploadLimitCheck): New function.
  16913. (uploadLimit): New variable.
  16914. (uploadLimitCheck): New variable.
  16915. To contact a tracker regularly:
  16916. * src/TrackerWatcherCommand.h (interval): New variable.
  16917. (checkPoint): New variable.
  16918. (TrackerWatcherCommand): Added interval argument.
  16919. * src/TrackerWatcherCommand.cc
  16920. (TrackerWatcherCommand): Initialized checkPoint.
  16921. (execute): Now a tracker is contacted in every specified period.
  16922. If peer list is not needed, send request with numwant=0.
  16923. * src/TrackerUpdateCommand.cc
  16924. (execute): Updated log messages.
  16925. * src/DownloadEngine.cc
  16926. (~DownloadEngine): Removed two asserts.
  16927. (waitData): Uncommented wfds. May be a bug fix.
  16928. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16929. * src/PeerInteractionCommand.h
  16930. (checkInactiveConnection): Removed.
  16931. * src/PeerInteractionCommand.cc
  16932. (executeInternal): Removed following function calls:
  16933. detectMessageFlooding(), checkLongTimePeerChoking and
  16934. checkInactiveConnection().
  16935. (checkInactiveConnection): Removed.
  16936. (detectMessageFlooding): Removed function call to
  16937. checkInactiveConnection().
  16938. * src/PeerMessageUtil.h
  16939. (createChokeMessage): New function. Overload.
  16940. (createUnchokeMessage): New function. Overload.
  16941. (createInterestedMessage): New function. Overload.
  16942. (createNotInterestedMessage): New function. Overload.
  16943. (createHaveMessage): New function. Overload.
  16944. (createBitfieldMessage): New function. Overload.
  16945. (createRequestMessage): New function. Overload.
  16946. (createCancelMessage): New function. Overload.
  16947. (createPieceMessage): New function. Overload.
  16948. (createKeepAliveMessage): New function. Overload.
  16949. * src/PeerMessageUtil.cc
  16950. (createChokeMessage): New function. Overload.
  16951. (createUnchokeMessage): New function. Overload.
  16952. (createInterestedMessage): New function. Overload.
  16953. (createNotInterestedMessage): New function. Overload.
  16954. (createHaveMessage): New function. Overload.
  16955. (createBitfieldMessage): New function. Overload.
  16956. (createRequestMessage): New function. Overload.
  16957. (createCancelMessage): New function. Overload.
  16958. (createPieceMessage): New function. Overload.
  16959. (createKeepAliveMessage): New function. Overload.
  16960. * src/SendMessageQueue.cc
  16961. (createRequestMessage): Use PeerMessageUtil.
  16962. (createCancelMessage): Use PeerMessageUtil.
  16963. (createPieceMessage): Use PeerMessageUtil.
  16964. (createHaveMessage): Use PeerMessageUtil.
  16965. (createChokeMessage): Use PeerMessageUtil.
  16966. (createUnchokeMessage): Use PeerMessageUtil.
  16967. (createInterestedMessage): Use PeerMessageUtil.
  16968. (createNotInterestedMessage): Use PeerMessageUtil.
  16969. (createBitfieldMessage): Use PeerMessageUtil.
  16970. (createKeepAliveMessage): Use PeerMessageUtil.
  16971. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16972. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16973. * src/PeerInteraction.h: New class.
  16974. * src/PeerInteraction.cc: New class.
  16975. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16976. Each peer message has its own class.
  16977. * src/PendingMessages.h: Removed.
  16978. * src/PendingMessages.cc: Removed. The sending process was moved to
  16979. each message class.
  16980. * src/RequestSlotMan.h: Removed.
  16981. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16982. SendMessageQueue.
  16983. * src/RequestMessage.h: New class.
  16984. * src/RequestMessage.cc: New class.
  16985. * src/CancelMessage.h: New class.
  16986. * src/CancelMessage.cc: New class.
  16987. * src/BitfieldMessage.h: New class.
  16988. * src/BitfieldMessage.cc: New class.
  16989. * src/ChokeMessage.h: New class.
  16990. * src/ChokeMessage.cc: New class.
  16991. * src/KeepAliveMessage.h: New class.
  16992. * src/KeepAliveMessage.cc: New class.
  16993. * src/PortMessage.h: New class.
  16994. * src/UnchokeMessage.h: New class.
  16995. * src/UnchokeMessage.cc: New class.
  16996. * src/PieceMessage.h: New class.
  16997. * src/PieceMessage.cc: New class.
  16998. * src/HaveMessage.h: New class.
  16999. * src/HaveMessage.cc: New class.
  17000. * src/BitfieldMessage.h: New class.
  17001. * src/BitfieldMessage.cc: New class.
  17002. * src/NotInterestedMessage.h: New class.
  17003. * src/NotInterestedMessage.cc: New class.
  17004. * src/InterestedMessage.h: New class.
  17005. * src/InterestedMessage.cc: New class.
  17006. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17007. (getSendMessageQueue): New function.
  17008. (setSendMessageQueue): New function.
  17009. * src/HandshakeMessage.cc: New class.
  17010. * src/PeerConnection.h (receiveMessage): Changed return value and
  17011. arguments.
  17012. (receiveHandshake): Changed return value and arguments.
  17013. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17014. here.
  17015. (receiveHandshake): Do not create handshake class here.
  17016. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17017. (piece): Removed.
  17018. (syncPiece): Removed.
  17019. (sendInterest): Removed.
  17020. (sendMessages): Removed.
  17021. (createRequestPendingMessage): Removed.
  17022. (checkPieceHash): Removed.
  17023. (erasePieceOnDisk): Removed.
  17024. (getNewPieceAndSendInterest): Removed.
  17025. (onGotNewPice): Removed.
  17026. (onGotWrongPiece): Removed.
  17027. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17028. Removed peerConnection, piece.
  17029. (~PeerInteractionCommand): Removed peerConnection.
  17030. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17031. (syncPiece): Moved to SendMessageQueue.
  17032. (decideChoking): Removed PendingMessage.
  17033. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17034. The action after receiving peer message was moved to each message
  17035. class.
  17036. (onGotNewPice): Moved to SendMessageQueue.
  17037. (onGotWrongPiece): Moved to SendMessageQueue.
  17038. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17039. (sendInterest): Moved to SendMessageQueue.
  17040. (createRequestPendingMessage): Removed.
  17041. (sendMessages): Moved to SendMessageQueue.
  17042. (onAbort): Use SendMessageQueue::abortPiece()
  17043. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17044. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17045. (checkPieceHash): Moved to SendMessageQueue.
  17046. (erasePieceOnDisk): Moved to SendMessageQueue.
  17047. * src/PeerMessageUtil.h
  17048. (createBitfieldMessage): Removed.
  17049. (createHaveMessage): Changed return value and arguments.
  17050. (createBitfieldMessage): Changed return value and arguments.
  17051. (createRequestCancelMessage): Removed.
  17052. (createPieceMessage): Changed return value and arguments.
  17053. (getShortIntParam): New function.
  17054. (checkIndex): Changed arguments.
  17055. (checkBegin): Changed arguments.
  17056. (checkLength): Changed arguments.
  17057. (checkPieceOffset): Removed.
  17058. (checkRange): New function.
  17059. (checkBitfield): Changed arguments.
  17060. (createPeerMessage): Removed.
  17061. (checkIntegrity): Removed.
  17062. (createHandshakeMessage): Changed arguments.
  17063. (createChokeMessage): New function.
  17064. (createUnchokeMessage): New function.
  17065. (createInterestedMessage): New function.
  17066. (createNotInterestedMessage): New function.
  17067. (createRequestMessage): New function.
  17068. (createCancelMessage): New function.
  17069. (createPortMessage): New function.
  17070. * src/PeerMessageUtil.cc
  17071. (createBitfieldMessage): Removed.
  17072. (createHaveMessage): Changed return value and arguments.
  17073. (createBitfieldMessage): Changed return value and arguments.
  17074. (createRequestCancelMessage): Removed.
  17075. (createPieceMessage): Changed return value and arguments.
  17076. (getShortIntParam): New function.
  17077. (checkIndex): Changed arguments.
  17078. (checkBegin): Changed arguments.
  17079. (checkLength): Changed arguments.
  17080. (checkPieceOffset): Removed.
  17081. (checkRange): New function.
  17082. (checkBitfield): Changed arguments.
  17083. (createPeerMessage): Removed.
  17084. (checkIntegrity): Removed.
  17085. (createHandshakeMessage): Changed arguments.
  17086. (createChokeMessage): New function.
  17087. (createUnchokeMessage): New function.
  17088. (createInterestedMessage): New function.
  17089. (createNotInterestedMessage): New function.
  17090. (createRequestMessage): New function.
  17091. (createCancelMessage): New function.
  17092. (createPortMessage): New function.
  17093. * src/PeerMessage.h
  17094. (id): Removed.
  17095. (index): Removed.
  17096. (begin): Removed.
  17097. (length): Removed.
  17098. (bitfield): Removed.
  17099. (bitfieldLength): Removed.
  17100. (block): Removed.
  17101. (blockLength): Removed.
  17102. (inProgress): New variable.
  17103. (cuid): New variable.
  17104. (peer): New variable.
  17105. (sendMessageQueue): New variable.
  17106. (logger): New variable.
  17107. (setBitfield): Removed.
  17108. (getBitfield): Removed.
  17109. (setBlock): Removed.
  17110. (getBlock): Removed.
  17111. (getBitfieldLength): Removed.
  17112. (getBlockLength): Removed.
  17113. (isInProgress): New function.
  17114. (toString): Made pure virtual.
  17115. (check): New function.
  17116. (send): New function.
  17117. (receivedAction): New function.
  17118. (getId): Made pure virtual.
  17119. (setId): Removed.
  17120. (getIndex): Removed.
  17121. (setIndex): Removed.
  17122. (getBegin): Removed.
  17123. (setBegin): Removed.
  17124. (getLength): Removed.
  17125. (setLength): Removed.
  17126. (getCuid): New function.
  17127. (setCuid): New function.
  17128. (getPeer): New function.
  17129. (setPeer): New function.
  17130. (getSendMessageQueue): New function.
  17131. (setSendMessageQueue): New function.
  17132. (ID): Removed.
  17133. * src/PeerMessage.cc
  17134. (setBitfield): Removed.
  17135. (setBlock): Removed.
  17136. (toString): Removed.
  17137. * src/TorrentMan.h
  17138. (getPieceLength): New function.
  17139. (getPieceLength): New function.
  17140. * src/SendMessageQueue.h
  17141. (REQUEST_TIME_OUT): New definition.
  17142. (RequestSlots): New definition.
  17143. (MessageQueue): New definition.
  17144. (requestSlotMan): Removed.
  17145. (pendingMessages): Removed.
  17146. (requestSlots): New variable.
  17147. (messageQueue): New variable.
  17148. (torrentMan): New variable.
  17149. (peerConnection): New variable.
  17150. (peer): New variable.
  17151. (piece): New variable.
  17152. (getNewPieceAndSendInterest): New function.
  17153. (createPeerMessage): New function.
  17154. (createHandshakeMessage): New function.
  17155. (send): Made private.
  17156. (setPeerMessageCommonProperty): New function.
  17157. (deleteAllRequestSlot): New function.
  17158. (deleteRequestMessageInQueue): New function.
  17159. (cancelAllRequest): Made private.
  17160. (cancelAllRequest): Made private.
  17161. (countRequestSlot): Made private.
  17162. (addPendingMessage): Removed.
  17163. (deletePendingPieceMessage): Removed.
  17164. (deletePendingRequestMessage): Removed.
  17165. (addMessage): New function.
  17166. (deletePieceMessageInQueue): New function.
  17167. (deleteTimeoutRequestSlot): Changed argument.
  17168. (deleteCompletedRequestSlot): Changed argument.
  17169. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17170. (getCorrespondingRequestSlot): New function.
  17171. (countPendingMessage): Removed.
  17172. (countMessageInQueue): New function.
  17173. (getTorrentMan): New function.
  17174. (getPeerConnection): New function.
  17175. (hasDownloadPiece): New function.
  17176. (getDownloadPiece): New function.
  17177. (setDownloadPiece): New function.
  17178. (syncPiece): New function.
  17179. (sendMessages): New function.
  17180. (sendNow): New function.
  17181. (trySendNow): New function.
  17182. (abortPiece): New function.
  17183. (sendHandshake): New function.
  17184. (receiveMessage): New function.
  17185. (receiveHandshake): New function.
  17186. (createRequestMessage): New function.
  17187. (createCancelMessage): New function.
  17188. (createPieceMessage): New function.
  17189. (createHaveMessage): New function.
  17190. (createChokeMessage): New function.
  17191. (createUnchokeMessage): New function.
  17192. (createInterestedMessage): New function.
  17193. (createNotInterestedMessage): New function.
  17194. (createBitfieldMessage): New function.
  17195. (createKeepAliveMessage): New function.
  17196. * src/SendMessageQueue.cc
  17197. (SendMessageQueue): Removed requestSlotMan.
  17198. Instantiated peerConnection here.
  17199. (~SendMessageQueue): Removed requestSlotMan.
  17200. Added deletion of peerConnection and the contents of messageQueue.
  17201. (send): Updated according to the change of messageQueue.
  17202. (addPendingMessage): Renamed to addMessage.
  17203. (addMessage): New function.
  17204. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17205. (deletePieceMessageInQueue): New function.
  17206. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17207. (deleteRequestMessageInQueue): New function.
  17208. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17209. here.
  17210. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17211. (...) was moved here.
  17212. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17213. moved here.
  17214. (deleteCompletedRequestSlot):
  17215. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17216. (getCorrespondingRequestSlot):
  17217. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17218. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17219. (countPendingMessage): Renamed to countMessageInQueue.
  17220. (countMessageInQueue): New function.
  17221. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17222. (receiveHandshake): New function.
  17223. (createHandshakeMessage): New function.
  17224. (receiveMessage): New function.
  17225. (createPeerMessage): New function.
  17226. (syncPiece): New function.
  17227. (getNewPieceAndSendInterest): New function.
  17228. (sendMessages): New function.
  17229. (sendNow): New function.
  17230. (trySendNow): New function.
  17231. (sendHandshake): New function.
  17232. (abortPiece): New function.
  17233. (getDownloadPiece): New function.
  17234. (getPeerMessageCommonProperty): New function.
  17235. (createRequestMessage): New function.
  17236. (createCancelMessage): New function.
  17237. (createPieceMessage): New function.
  17238. (createHaveMessage): New function.
  17239. (createChokeMessage): New function.
  17240. (createUnchokeMessage): New function.
  17241. (createInterestedMessage): New function.
  17242. (createNotInterestedMessage): New function.
  17243. (createBitfieldMessage): New function.
  17244. (createKeepAliveMessage): New function.
  17245. To add simple Content-Disposition support:
  17246. * src/HttpResponseCommand.h (determinFilename): New function.
  17247. * src/HttpResponseCommand.cc (executeInternal):
  17248. Use determinFilename(headers) instead of req->getFile() when comparing
  17249. filename.
  17250. (determinFilename): New function.
  17251. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17252. req->getFile().
  17253. (handleOtherEncoding): Use determinFilename(headers) instead of
  17254. req->getFile().
  17255. * src/Util.h (getContentDispositionFilename): New function.
  17256. * src/Util.cc (getContentDispositionFilename): New function.
  17257. * src/LogFactory.h (release): New function.
  17258. * src/LogFactory.cc (release): New function.
  17259. To fix a bug that causes out-of-bound exception when HTTP status
  17260. line is wrong:
  17261. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17262. size.
  17263. * src/common.h (Deleter): New class.
  17264. * src/SegmentMan.cc
  17265. (~SegmentMan): Added deletion of splitter and diskWriter.
  17266. * src/DownloadEngine.h
  17267. (Commands): Use deque.
  17268. (clearQueue): New function.
  17269. * src/DownloadEngine.cc
  17270. (~DownloadEngine): Added deletion of segmentMan.
  17271. (cleanQueue): New function.
  17272. * src/TorrentDownloadEngine.h
  17273. (TorrentDownloadEngine): The implementation was moved to
  17274. TorrentDownloadEngine.cc.
  17275. (~TorrentDownloadEngine): The implementation was moved to
  17276. TorrentDownloadEngine.cc.
  17277. * src/TorrentDownloadEngine.cc
  17278. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17279. * src/main.cc
  17280. (clearRequest): Removed.
  17281. (handler): Added deletion of e.
  17282. (torrentHandler): Added deletion of te.
  17283. (main): Do not share splitter.
  17284. Use Deleter instead of clearRequest.
  17285. Deletion of classes were updated.
  17286. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17287. * src/main.cc (main): Fixed typo.
  17288. * src/message.h: Fixed typo.
  17289. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17290. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17291. To add --select-file command-line option:
  17292. * src/Util.cc
  17293. (unfoldRange): New function.
  17294. (getNum): New function.
  17295. (unfoldSubRange): New function
  17296. * src/main.cc
  17297. (showUsage): Added help message.
  17298. (main): Added --select-file command-line option. Updated the layout of
  17299. file listing.
  17300. * src/common.h
  17301. (Integers): New definition.
  17302. * src/SocketCore.cc
  17303. (writeData): Removed timeout argument.
  17304. (readData): Removed timeout argument.
  17305. (peekData): Removed timeout argument.
  17306. * src/Socket.cc
  17307. (writeData): Removed timeout argument.
  17308. (readData): Removed timeout argument.
  17309. (peekData): Removed timeout argument.
  17310. * Release 0.4.1
  17311. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17312. To deploy upload rate based choking algorithm:
  17313. * src/PeerInteractionCommand.cc
  17314. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17315. peer currently used.
  17316. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17317. download completes. Simplified.
  17318. (receiveMessage): Updated.
  17319. * src/TorrentMan.h
  17320. (activePeers): New variable.
  17321. (addActivePeer): New function.
  17322. (getActivePeers): New function.
  17323. (deleteActivePeer): New function.
  17324. * src/TorrentMan.cc
  17325. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17326. * src/PeerAbstractCommand.cc
  17327. (onAbort): Use peer->resetStatus().
  17328. * src/main.cc
  17329. (PeerChokeCommand.h): Included.
  17330. (main): Added the instance of ChokingCommand to the command queue.
  17331. * src/Peer.h
  17332. (amChoking): Renamed from amChocking
  17333. (chokingRequired): New variable.
  17334. (optUnchoking): New variable.
  17335. (deltaUpload): New variable.
  17336. (deltaDownload): New variable.
  17337. (addDeltaUpload): New function.
  17338. (resetDeltaUpload): New function.
  17339. (addDeltaDownload): New function.
  17340. (resetDeltaDownload): New function.
  17341. (addPeerUpload): Added a call to addDeltaUpload.
  17342. (addPeerDownload): Added a call to addDeltaDownload.
  17343. * src/Peer.cc
  17344. (shouldBeChoking): Renamed from shouldChoke.
  17345. (resetStatus): New function.
  17346. * src/PeerChokeCommand.h: New class.
  17347. * src/PeerChokeCommand.cc: New class.
  17348. To add lazy upload speed limiter:
  17349. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17350. statistics calculation to TorrentDownloadEngine.
  17351. * src/TorrentConsoleDownloadEngine.cc
  17352. (sendStatistics): Renamed from printStatistics.
  17353. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17354. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17355. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17356. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17357. calculation.
  17358. (sendStatistics): New function as pure virtual function.
  17359. (getUploadSpeed): New function.
  17360. * src/TorrentDownloadEngine.cc
  17361. (initStatistics): New function.
  17362. (calculateSpeed): New function.
  17363. (calculateStatistics): New function.
  17364. * src/SendMessageQueue.h
  17365. (uploadLength): New variable.
  17366. (send): Added an argument.
  17367. (setUploadLimit): New function.
  17368. (getUploadLimit): New function.
  17369. * src/SendMessageQueue.cc
  17370. (send): Added upload speed limiter.
  17371. * src/prefs.h
  17372. (PREF_UPLOAD_LIMIT): New definition.
  17373. * src/PeerInteractionCommand.cc
  17374. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17375. * src/main.cc
  17376. (main): Added --upload-limit option
  17377. For bug fixes:
  17378. * src/main.cc
  17379. (showUsage): Corrected --listen-port help
  17380. Other changes:
  17381. * src/TorrentMan.cc
  17382. (getPeer): Return nullPeer if connection is grather than
  17383. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17384. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17385. To add some useful information to the exception message:
  17386. * src/SocketCore.cc : Updated messages.
  17387. * src/SegmentMan.cc :
  17388. * src/TorrentMan.cc : Updated messages.
  17389. * src/MultiDiskWriter.cc : Updated messages.
  17390. * src/Util.cc : Updated messages.
  17391. * src/AbstractDiskWriter.cc : Updated messages.
  17392. * src/PreAllocationDiskWriter.cc : Updated messages.
  17393. * src/message.cc : Added new messages. Updated some messages.
  17394. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17395. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17396. Updated threshold from 30 to 15.
  17397. * src/AbstractDiskWriter.h (filename): New variable.
  17398. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17399. (createFile): Assigned filename.
  17400. * src/main.cc: Updated the help message for http-auth-scheme.
  17401. * Release 0.4.0
  17402. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17403. To add TrackerUpdateCommand with which replaces
  17404. CompactTrackerResponseProcessor:
  17405. * src/TrackerWatcherCommand.h (req): Removed.
  17406. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17407. if the number of peer connections are less than 30.
  17408. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17409. * src/SegmentMan.h (diskWriter): New function.
  17410. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17411. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17412. (main): Use TrackerUpdateCommand.
  17413. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17414. (req): New variable.
  17415. (setTrackerResponseProcessor): Removed.
  17416. (getTrackerResponseProcessor): Removed.
  17417. (processTrackerResponse): Removed.
  17418. * src/DownloadEngine.h (diskWriter): Removed.
  17419. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17420. to torrentMan->processTrackerResponse().
  17421. To add Util::expandBuffer:
  17422. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17423. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17424. * src/Util.h (expandBuffer): New function.
  17425. To fix the bug that causes segmentation fault when "-l ." is specified
  17426. in command-line option:
  17427. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17428. (openFile): New function.
  17429. (closeFile): New function.
  17430. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17431. (~SimpleLogger): Call closeFile();
  17432. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17433. * src/main.cc (main): Added a check to see logger is configured
  17434. properly.
  17435. To enable HTTP authentication without specifying "--http-auth-scheme"
  17436. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17437. * src/HttpConnection.cc (createRequest): Send Authorization header
  17438. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17439. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17440. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17441. * src/Peer.cc (shouldChoke): Updated algorithm.
  17442. * src/message.h (EX_AUTH_FAILED): New definition.
  17443. (EX_FILE_OPEN): New definition.
  17444. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17445. if status == 401.
  17446. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17447. if req->isTorrent == true.
  17448. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17449. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17450. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17451. (createFile): Updated message.
  17452. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17453. To add a readout of estimated remaining time to normal HTTP/FTP
  17454. downloads:
  17455. * src/ConsoleDownloadEngine.h (startup): New variable.
  17456. (startupLength): New variable.
  17457. (isStartupLengthSet): New variable.
  17458. (avgSpeed): New variable.
  17459. (eta): New variable.
  17460. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17461. estimated remaining time.
  17462. (initStatistics): Initialized newly added variables.
  17463. (calculateStatistics): Calculate average speed and estimated remaining
  17464. time.
  17465. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17466. * src/TrackerDownloadCommand.h: Removed.
  17467. * src/TrackerDownloadCommand.cc: Removed.
  17468. * src/TrackerInitCommand.h: Removed.
  17469. * src/TrackerInitCommand.cc: Removed.
  17470. * src/TrackerUpdateCommand.h: Removed.
  17471. * src/TrackerUpdateCommand.cc: Removed.
  17472. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17473. url written in TrackerInitCommand was moved here. Do not create
  17474. tracker request command if torrentMan->trackers != 0.
  17475. * src/CompactTrackerResponseProcessor.h: New class.
  17476. * src/CompactTrackerResponseProcessor.cc: New class.
  17477. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17478. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17479. Decoupled TorrentDownloadEngine from this.
  17480. * src/SegmentMan.h (init): New function.
  17481. * src/SegmentMan.cc (init): New function.
  17482. * src/TorrentMan.h (responseProcessor): New variable.
  17483. (trackers): New variable.
  17484. (setTrackerResponseProcessor): New function.
  17485. (getTrackerResponseProcessor): New function.
  17486. (processTrackerResponse): New function.
  17487. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17488. (processTrackerResponse): New function.
  17489. * src/main.cc (main): Use ByteArrayDiskWriter and
  17490. CompactTrackerResponseProcessor.
  17491. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17492. processTrackerResponse().
  17493. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17494. readout.
  17495. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17496. which indicates download has completed.
  17497. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17498. (closeFile): fd >= 0, not fd > 0
  17499. * src/main.cc (main): Added short cut for show-files.
  17500. Added short cut for torrent-file.
  17501. Added new command-line option listen-port.
  17502. Updated i18n messages.
  17503. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17504. To add LogFactory which creates singleton logger:
  17505. * src/LogFactory.h: New class.
  17506. * src/LogFactory.cc: New class.
  17507. * src/Command.h (logger): New variable.
  17508. (Constructor): Use LogFactory.
  17509. * src/AbstractCommand.cc: Use Command::logger
  17510. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17511. Use LogFactory.
  17512. * src/SegmentSplitter.h : Made logger protected.
  17513. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17514. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17515. * src/DownloadEngine.h : Made logger protected.
  17516. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17517. * src/PeerInteractionCommand.cc : Use Command::logger.
  17518. * src/HttpResponseCommand.cc : Use Command::logger.
  17519. * src/SegmentMan.h : Made logger private.
  17520. * src/TorrentMan.h : Made logger private.
  17521. * src/TorrentMan.cc : Use LogFactory.
  17522. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17523. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17524. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17525. Use LogFactory.
  17526. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17527. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17528. Use LogFactory.
  17529. * src/DownloadCommand.cc : Use Command::logger.
  17530. * src/PeerAbstractCommand.cc : Use Command::logger.
  17531. * src/PeerListenCommand.cc : Use Command::logger.
  17532. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17533. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17534. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17535. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17536. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17537. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17538. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17539. Use LogFactory.
  17540. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17541. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17542. Use LogFactory.
  17543. * src/main.cc (main): Use LogFactory.
  17544. * src/DiskAdaptor.h (logger): New variable.
  17545. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17546. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17547. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17548. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17549. parameter to a tracker request.
  17550. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17551. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17552. * src/main.cc (setSignalHander): New function.
  17553. (main): Added a handler for SIGTERM.
  17554. (handler): Updated message.
  17555. (torrentHandler): Updated message.
  17556. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17557. * src/TorrentConsoleDownloadEngine.cc
  17558. (onPartialDownloadingCompletes): Renamed as
  17559. onSelectiveDownloadingCompletes.
  17560. (onSelectiveDownloadingCompletes): Updated message.
  17561. To add DiskAdaptor which abstract DiskWriter family:
  17562. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17563. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17564. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17565. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17566. MultiDiskAdaptor.h.
  17567. (readFileEntry): Changed its arguments.
  17568. (setup): setupDiskWriter is merged into this function.
  17569. (setupDiskWriter): Removed.
  17570. (setFileFilter): New function.
  17571. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17572. made in readFileEntry.
  17573. (getFilePath): Removed.
  17574. (getTempFilePath): Removed.
  17575. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17576. (fixFilename): Removed.
  17577. (copySingleFile): Removed.
  17578. (splitMultiFile): Removed.
  17579. (deleteTempFile): Removed.
  17580. (setFileEntriesToDownload): Removed.
  17581. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17582. (isSelectiveDownloadingMode): New function.
  17583. (setAllMultiFileRequestedState): Removed.
  17584. (finishPartialDownloadingMode): Renamed as
  17585. finishSelectiveDownloadingMode.
  17586. (finishSelectiveDownloadingMode): New function.
  17587. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17588. (getSelectedTotalLength): New function.
  17589. (onDownloadComplete): Use diskAdaptor.
  17590. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17591. (Range): Removed.
  17592. (setMultiFileEntries): Renamed as setFileEntries.
  17593. (setFileEntries): New function.
  17594. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17595. (pieceLength): New variable.
  17596. * src/main.cc (printDownloadCompeleteMessage): New function.
  17597. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17598. (main): Renamed torrent-show-files to show-files.
  17599. Rewritten file contents listing.
  17600. * src/TorrentMan.h (FileEntry): Removed.
  17601. (multiFileTopDir): Removed.
  17602. (multiFileEntries): Removed.
  17603. (diskWriter): Removed.
  17604. (diskAdaptor): New variable.
  17605. * src/DefaultDiskWriter.h (totalLength): New variable.
  17606. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17607. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17608. diskWriter.
  17609. * src/TorrentConsoleDownloadEngine.h
  17610. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17611. (partialTotalLength): Renamed as selectedTotalLength.
  17612. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17613. openExistingFile, otherwise call initAndOpenFile.
  17614. (closeFile): fd > 0, not fd != 0.
  17615. * src/DirectDiskAdaptor.h: New class.
  17616. * src/DirectDiskAdaptor.cc: New class.
  17617. * src/MultiDiskAdaptor.h: New class.
  17618. * src/MultiDiskAdaptor.cc: New class.
  17619. * src/CopyDiskAdaptor.h: New class.
  17620. * src/CopyDiskAdaptor.cc: New class.
  17621. * src/DiskAdaptor.h: New class.
  17622. * src/DiskAdaptor.cc: New class.
  17623. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17624. (PREF_SHOW_FILES): New definition.
  17625. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17626. To add the ability to download multi torrent into respective files
  17627. directly:
  17628. * src/DiskWriter.h (openFile): New function.
  17629. (seek): Removed.
  17630. * src/MultiDiskWriter.h: New class.
  17631. * src/MultiDiskWriter.cc: New class.
  17632. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17633. protected.
  17634. (openFile): New function.
  17635. * src/AbstractDiskWriter.cc (openFile): New function.
  17636. * src/prefs.h (V_FALSE): New definition.
  17637. (PREF_DIRECT_FILE_MAPPING): New definition.
  17638. * src/TorrentMan.h (setupDiskWriter): New function.
  17639. (setAllMultiFileRequestedState): New function.
  17640. (onDownloadComplete): New function.
  17641. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17642. (setupDiskWriter): New function.
  17643. (getFilePath): Updated.
  17644. (getTempFilePath): Updated.
  17645. (getSegmentFilePath): Updated.
  17646. (fixFilename): Updated.
  17647. (deleteTempFile): Updated.
  17648. (setAllMultiFileRequestedState): New function.
  17649. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17650. (finishPartialDownloadingMode): Reset requested flags.
  17651. (onDownloadComplete): New function.
  17652. * src/main.cc: Added --direct-file-mapping option.
  17653. Use TorrentMan::setupDiskWriter().
  17654. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17655. onDownloadComplete().
  17656. To fix ETA bug:
  17657. * src/Util.h (difftvsec): New function.
  17658. * src/Util.cc (difftvsec): New function.
  17659. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17660. type of "elapsed" instead of long long int.
  17661. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17662. The updates of statistics takes place every 1 seconds.
  17663. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17664. (calculateSpeed): Changed its argument signature.
  17665. * src/PeerMessage.cc (toString): Fixed message.
  17666. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17667. To print ETA:
  17668. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17669. completion handling when dealing with
  17670. TorrentMan::isPartialDownloadingMode() == true.
  17671. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17672. New function.
  17673. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17674. (sessionDownloadLength): New variable.
  17675. (avgSpeed): New variable.
  17676. (eta): New variable.
  17677. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17678. new variables: eta, avgSpeed, startup.
  17679. (calculateSpeed): Calculate average speed and ETA.
  17680. (printStatistics): Added ETA.
  17681. * src/Util.h (secfmt): New function.
  17682. * src/Util.cc (secfmt): New function.
  17683. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17684. To detect "keep alive" flooding:
  17685. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17686. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17687. variable: keepAliveCount.
  17688. (detectMessageFlooding): Added "keep alive" flooding detection.
  17689. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17690. received.
  17691. To add the ability to download only specified files in multi-file
  17692. torrent:
  17693. * src/BitfieldMan.h (filterBitfield): New variable.
  17694. (filterEnabled): New variable.
  17695. (setFilterBit): New function.
  17696. (enableFilter): New function.
  17697. (disableFilter): New function.
  17698. (isFilterEnabled): New function.
  17699. (getFilteredTotalLength): New function.
  17700. (getCompletedLength): New function.
  17701. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17702. filterBitfield, filterEnabled.
  17703. (CopyConstructor): Added filterBitfield and filterEnabled.
  17704. (operator==): Added filterBitfield and filterEnabled.
  17705. (Destructor): Added filterBitfield.
  17706. (getMissingIndex): Use filterBitfield.
  17707. (getMissingUnusedIndex): Use filterBitfield.
  17708. (getFirstMissingUnusedIndex): Use filterBitfield.
  17709. (getFirstMissingUnusedIndex): Use filterBitfield.
  17710. (getAllMissingIndexes): Use filterBitfield.
  17711. (countMissingBlock): Use filterBitfield.
  17712. (countBlock): Use filterBitfield.
  17713. (setBitInternal): Added new argument on.
  17714. (setUseBit): Use setBitInternal.
  17715. (unsetUseBit): Use setBitInternal.
  17716. (setBit): Use setBitInternal.
  17717. (unsetBit): Use setBitInternal.
  17718. (isAllBitSet): Use filterBitfield.
  17719. (setFilterBit): New function.
  17720. (addFilter): New function.
  17721. (enableFilter): New function.
  17722. (disableFilter): New function.
  17723. (clearFilter): New function.
  17724. (isFilterEnabled): New function.
  17725. (getFilteredTotalLength): New function.
  17726. (getCompletedLength): New function.
  17727. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17728. Initalized newly added variables.
  17729. [FileEntry](offset): New variable.
  17730. [FileEntry](extracted): New variable.
  17731. [FileEntry](requested): New variable.
  17732. (readFileEntry): New function.
  17733. (option): New variable.
  17734. (splitMultiFile): Removed const qualifier.
  17735. (fixFilename): Removed const qualifier.
  17736. (readFileEntryFromMetaInfoFile): New function.
  17737. (finishPartialDownloadingMode): New function.
  17738. (isPartialDownloadingMode): New function.
  17739. (setFileEntriesToDownload): New function.
  17740. (getCompletedLength): New function.
  17741. (getPartialTotalLength): New function.
  17742. * src/TorrentMan.cc (readFileEntry): New function.
  17743. (setup): Use readFileEntry. If no-preallocation option is specified,
  17744. use DefaultDiskWriter.
  17745. (readFileEntryFromMetaInfoFile): New function.
  17746. (fixFilename): Removed const qualifier.
  17747. (splitMultiFile): Removed const qualifier.
  17748. (setFileEntriesToDownload): New function.
  17749. (isPartialDownloadingMode): New function.
  17750. (finishPartialDownloadingMode): New function.
  17751. (getCompletedLength): New function.
  17752. (getPartialTotalLength): New function.
  17753. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17754. New variable.
  17755. (partialTotalLength): New variable.
  17756. (downloadLength): New variable.
  17757. (totalLength): New variable.
  17758. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17759. Added log.
  17760. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17761. partialTotalLength, downloadLength, totalLength.
  17762. (calculate): Calculate downloadLength and totalLength.
  17763. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17764. * src/main.cc (addCommand): Changed argument signature.
  17765. (main): Added new variable: args. Added new option "torrent-show-files"
  17766. "no-preallocation". Usage is not updated yet.
  17767. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17768. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17769. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17770. Attempt to add the ability to listing file entries in a .torrent file.
  17771. This feature is not yet complete.
  17772. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17773. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17774. (getName): New function.
  17775. * src/TorrentMan.h (getMultiFileEntries): New function.
  17776. (getName): New function.
  17777. * src/main.cc (main): Use above 2 funtion.
  17778. * Release 0.3.2
  17779. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17780. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17781. (detectMessageFlooding): Updated threshold value.
  17782. (checkLongTimePeerChoking): Updated timeout value.
  17783. (getNewPieceAndSendInterest): Added debug log.
  17784. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17785. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17786. (getPeer): Updated.
  17787. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17788. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17789. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17790. is localhost.
  17791. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17792. * src/PendingMessage.cc (processMessage): Not to send piece message
  17793. if peer is not interested in the pieces localhost has.
  17794. * src/Peer.cc (shouldChoke): Updated.
  17795. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17796. * src/Util.cc (isPowerOf): New function.
  17797. * src/Util.h (isPowerOf): New function.
  17798. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17799. whether or not it is power of 2.
  17800. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17801. Added new class SendMessageQueue that includes PendingMessages and
  17802. RequestSlotMan.
  17803. * src/SendMessageQueue.h: New class.
  17804. * src/SendMessageQueue.cc: New class.
  17805. * src/PendingMessage.h: Added new member variable blockIndex and its
  17806. accessors.
  17807. (createRequestMessage): Updated.
  17808. * src/PendingMessage.cc (createRequestMessage): Updated.
  17809. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  17810. SendMessageQueue.
  17811. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  17812. (receiveMessage): Updated with SendMessageQueue.
  17813. (deletePendingPieceMessage): Removed.
  17814. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  17815. (sendInterest): Updated with SendMessageQueue.
  17816. (createRequestPendingMessage): Updated with SendMessageQueue.
  17817. (sendMessages): Updated with SendMessageQueue.
  17818. (onAbort): Updated with SendMessageQueue.
  17819. (keepAlive): Updated with SendMessageQueue.
  17820. (beforeSocketCheck): Updated SendMessageQueue.
  17821. * src/PeerInteractionCommand (sendMessages): Shuffle
  17822. missingBLockIndexes before using it.
  17823. Added its own timeout for peer connection.
  17824. * src/PeerAbstractCommand.h: Added member variable timeout and its
  17825. setter.
  17826. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  17827. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17828. Added setTimeout() call.
  17829. (executeInternal): Added setTimeout() call.
  17830. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  17831. Added timeout.
  17832. (isTimeoutDetected): Updated.
  17833. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  17834. option.
  17835. Added *simple* message flooding checker.
  17836. * src/PeerInteractionCommand.cc (executeInternal):
  17837. Added detectMessageFlooding() call.
  17838. (detectMessageFlooding): New function.
  17839. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  17840. (beforeSocketCheck): Added detectMessageFlooding() call.
  17841. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  17842. chokeUnchokeCount, haveCount, detectMessageFlooding().
  17843. Removed deletePendingPieceMessage(), getRequestSlot(),
  17844. deleteRequestSlot(), deleteAllRequestSlot().
  17845. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  17846. Added checkLongTimePeerChoking() call.
  17847. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  17848. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  17849. if duplicate == false.
  17850. The parameter "uploaded" and "downloaded" in the tracker request are
  17851. the size since the client sent the "started" event to the tracker.
  17852. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  17853. uploaded size to preDownloadedSize, preUploadedSize respectively.
  17854. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  17855. getSessionDownloadedSize(), getSessionUploadedSize().
  17856. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  17857. getSessionUploadedSize() instead of getDownloadedSize(),
  17858. getUploadedSize().
  17859. * src/PendingMessage.cc (processMessage): Do not send request message
  17860. if the peer is choking the client.
  17861. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  17862. less than interval.
  17863. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17864. * configure.in: Added gnutls support. Added several CPP macros.
  17865. * m4/openssl.m4: Added.
  17866. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17867. readData(), peekData(). Added gnutls support.
  17868. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17869. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17870. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17871. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17872. Instead, added a check for whether setup method has executed
  17873. successfully.
  17874. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17875. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17876. * src/Makefile.am: Updated.
  17877. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17878. using whether OpenSSL or gcrypt, depending on the result of configure
  17879. script.
  17880. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17881. messageDigest.h.
  17882. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17883. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17884. Fixed memory leak.
  17885. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17886. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17887. Removed instantiation of TrackerInitCommand. Instead,
  17888. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17889. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17890. ENABLE_SSL.
  17891. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17892. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17893. If a piece is already acquired by another command, delete the request
  17894. slots for the piece.
  17895. * src/TrackerUpdateCommand.cc (execute):
  17896. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17897. Added a check whether peer list is null.
  17898. Fixed the bug that causes sending completed event to the tracker
  17899. several times.
  17900. * src/TrackerInitCommand.cc (execute):
  17901. Fixed the bug that causes sending completed event to the tracker
  17902. several times.
  17903. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17904. by using messageDigest.h.
  17905. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17906. * PeerConnection.cc: Replaced log message "keep-alive" with
  17907. "keep alive".
  17908. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17909. localhost long time.
  17910. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17911. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17912. at most 100 failure entry from the list. If with duplicate = false,
  17913. MAX_PEER_LIST is not checked.
  17914. * PeerListenCommand.cc: Fixed the argument order of log message.
  17915. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17916. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17917. Added warn().
  17918. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17919. Implemented warn().
  17920. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17921. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17922. * Request.h: Added AFTER_COMPLETED event.
  17923. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17924. instead of downloaded size and progress(%) after download completes.
  17925. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17926. message to the peer if it is interested in what localhost has
  17927. downloaded.
  17928. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17929. destination instead of just renaming it.
  17930. * TorrentMan.cc: Added deleteTempFile().
  17931. * PeerAbstractCommand.cc: do not stop execution after download
  17932. completes. This makes localhost a seeder.
  17933. * Util.{h,cc}: Added fileCopy().
  17934. * PeerListenCommand.cc: do not stop execution after download completes.
  17935. This makes localhost a seeder.
  17936. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17937. Added TorrentMan::deleteTempFile() to torrentHandler.
  17938. Initialized the variable dir as ".".
  17939. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17940. Deleted renameSingleFile().
  17941. Added copySingleFile(), deleteTempFile().
  17942. * DownloadEngine.h: Added virtual function afterEachIteration().
  17943. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17944. in onEndOfRun() to afterEachIteration().
  17945. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17946. true.
  17947. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17948. In rangedFileCopy(), added try-catch block to properly close file
  17949. descriptors.
  17950. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17951. Added afterEachIteration(), isFilenameFixed().
  17952. * Peer.cc: Changed choking strategy.
  17953. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17954. * TrackerInitCommand.cc: Send completed event only once.
  17955. * DownloadEngine.cc: Added a call to afterEachIteration().
  17956. * TrackerUpdateCommand.cc: Do not stop execution after download
  17957. completes.
  17958. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17959. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17960. received from a tracker.
  17961. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17962. Decreased the number of failure peers to delete to 0(just comment out
  17963. the line).
  17964. * Release 0.3.1
  17965. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17966. * PeerInteractionCommand.cc: added a call to
  17967. TorrentMan::unadvertisePiece in Destructor.
  17968. * PeerInteractionCommand.cc: make have message sent immediately
  17969. if the size of pending message queue is zero.
  17970. * TorrentMan.cc: set the maximum size of peer list to 250.
  17971. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17972. to deque.
  17973. * Util.cc: fixed rangedFileCopy.
  17974. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17975. to Constructor. Also, moved digest cleanup to Destructor.
  17976. * MetaFileUtil.cc: fixed memory leak
  17977. * replaced std::vector with std::deque.
  17978. * AbstractCommand.cc: casted timeout value to long long int.
  17979. * ChunkedEncoding.cc: fixed memory leak.
  17980. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17981. * SleepCommand.cc: casted timeout value to long long int.
  17982. * Data.cc: fixed memory leak.
  17983. * Data.cc: fixed toLLInt().
  17984. * BitfieldMan.cc: fixed memory leak.
  17985. * TorrentMan.cc: initialized storeDir to ".".
  17986. * TorrentMan.cc: fixed memory leak.
  17987. * TorrentMan.cc: corrected file paths of splitted files.
  17988. * PeerAbstractCommand.cc: casted timeout to long long int.
  17989. * main.cc: added delete(req) and delete(te->diskWriter).
  17990. * RequestSlot.cc: casted timeout value to long long int.
  17991. * Request.cc: fixed memory leak.
  17992. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17993. have the piece.
  17994. * Peer.{h,cc}: added hasPiece(int index).
  17995. * main.cc: corrected addCommand.
  17996. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17997. * BitTorrent protocol support added.
  17998. * Release 0.3.0
  17999. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18000. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18001. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18002. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18003. decoding did not work properly.
  18004. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18005. * DownloadEngine.h: included sys/time.h
  18006. * DownloadEngine.cc: remove sys/time.h
  18007. * Makefile.am (SUBDIRS): Add intl.
  18008. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18009. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18010. * main.cc: correct help message for --http-auth-scheme.
  18011. * main.cc: changed e-mail address for bug reports.
  18012. * ja.po: added japanese translation.
  18013. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18014. * SimpleLogger.cc: flush log file instead of stdout.
  18015. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18016. * main.cc: Fixed command-line option: max-tries
  18017. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18018. does not equal to seg.sp.
  18019. * DownloadCommand.cc: If EOF is got from the server and the total size
  18020. of file is not zero, then throw DlRetryEx.
  18021. * main.cc: Set the minium value of min-segment-size to 1024.
  18022. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18023. fails because of a regression since 0.2.0 release.
  18024. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18025. * HttpConnection.cc:
  18026. * common.h: defined the user agent name as macro
  18027. * DownloadEngine.{h, cc}:
  18028. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18029. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18030. * main.cc: Download complete/abort message is now generated by main.
  18031. * Makefile.am (SUBDIRS): Add m4.
  18032. (ACLOCAL_AMFLAGS): New variable.
  18033. (EXTRA_DIST): New variable.
  18034. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18035. * gettext: added gettext functionality
  18036. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18037. * AbstractCommand.cc:
  18038. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18039. unregister its cuid from SegmentMan.
  18040. * DownloadEngine.cc: .aria2 file was written when a downloading
  18041. failed with errors.
  18042. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18043. Added "User-Agent" header to CONNECT proxy request.
  18044. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18045. properly.
  18046. * Logger.h:
  18047. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18048. * ChunkedEncoding.cc: Added #include directive for strings.h
  18049. * Release 0.2.1
  18050. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18051. * Util.{h,cc}: added startsWith().
  18052. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18053. Util::endsWith().
  18054. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18055. * common.h: added #include directive of limit.h.
  18056. * DownloadEngine.cc: added #include directive of sys/time.h and
  18057. algorithm.
  18058. * Exception.h: added #include directive of stdio.h.
  18059. * AbstractCommand.h: added #include directive of sys/time.h.
  18060. * DownloadCommand.h: added #include directive of sys/time.h.
  18061. * *.h: added #include directive of common.h to all base classes.
  18062. subclasses' one was removed.
  18063. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18064. does not define these macros.
  18065. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18066. * Release 0.2.0
  18067. * main.cc:
  18068. * HttpInitiateConnectionCommand.{h,cc}:
  18069. * prefs.h:
  18070. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18071. We can now use GET command in http proxy.
  18072. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18073. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18074. that splits slowest segment of SegmentMan::commands vector.
  18075. This is the default split algorithm of aria2.
  18076. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18077. that splits first segment of SegmentMan::commands vector.
  18078. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18079. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18080. * Segment.h:
  18081. * SegmentMan.cc: Added speed field to Segment.h
  18082. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18083. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18084. * message.h: Change file size related %d to %lld.
  18085. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18086. * FtpInitiateConnectionCommand.{h,cc}:
  18087. * FtpNegotiationCommand.{h,cc}:
  18088. * FtpDownloadCommand.{h,cc}:
  18089. * FtpConnection.{h,cc}: Added FTP support
  18090. * SimpleLogger.cc: Log message now includes time information.
  18091. * main.cc: The value of --http-auth-scheme option is chagned from
  18092. 'BASIC' to 'basic'
  18093. * main.cc: Added --timeout command-line option.
  18094. * main.cc: Added --min-segment-size command-line option.
  18095. * main.cc: Added --max-retries command-line option.
  18096. * prefs.h: option string constants are now defined in prefs.h
  18097. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18098. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18099. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18100. with version 0.1.0's one.
  18101. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18102. * configure.in: Added --enable-ssl option to configure script.
  18103. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18104. cannot permit absoluteURI as Request-URI.
  18105. * HttpConnection.cc: Added Referer support.
  18106. * main.cc: Added referer command-line option.
  18107. * main.cc: Added rety-wait command-line option.
  18108. * Exception.h: Fixed formating bug in Exception::setMsg()
  18109. * SocketCore.{h,cc}:
  18110. * Socket.{h, cc}:
  18111. * Request.cc:
  18112. * InitiateConnectionCommandFactory.cc:
  18113. * HttpRequestCommand.cc: Added HTTPS support.
  18114. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18115. for SocketCore.
  18116. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18117. size is wrong
  18118. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18119. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18120. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18121. * Release 0.1.0