ChangeLog 708 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893
  1. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Rewritten copy ctor of RequestSlot to use initialization list.
  3. * src/RequestSlot.h
  4. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Added Time global::wallclock to cache "current time" to reduce the
  6. call gettimeofday(). Global variables are now in namespace global.
  7. * src/AbstractCommand.cc
  8. * src/ActivePeerConnectionCommand.cc
  9. * src/AdaptiveURISelector.cc
  10. * src/BtLeecherStateChoke.cc
  11. * src/BtLeecherStateChoke.h
  12. * src/BtSeederStateChoke.cc
  13. * src/BtSeederStateChoke.h
  14. * src/BtStopDownloadCommand.cc
  15. * src/ConsoleStatCalc.cc
  16. * src/DHTBucket.cc
  17. * src/DHTGetPeersCommand.cc
  18. * src/DHTMessageTrackerEntry.cc
  19. * src/DHTNode.cc
  20. * src/DHTPeerAnnounceEntry.cc
  21. * src/DHTPeerAnnounceStorage.cc
  22. * src/DHTSetup.cc
  23. * src/DefaultBtAnnounce.cc
  24. * src/DefaultBtInteractive.cc
  25. * src/DefaultBtMessageDispatcher.cc
  26. * src/DefaultPeerStorage.cc
  27. * src/DefaultPieceStorage.cc
  28. * src/DownloadCommand.cc
  29. * src/DownloadEngine.cc
  30. * src/FileEntry.cc
  31. * src/HttpServerBodyCommand.cc
  32. * src/HttpServerCommand.cc
  33. * src/HttpServerResponseCommand.cc
  34. * src/LpdMessageDispatcher.cc
  35. * src/MultiUrlRequestInfo.cc
  36. * src/Peer.cc
  37. * src/Peer.h
  38. * src/PeerAbstractCommand.cc
  39. * src/PeerStat.h
  40. * src/RequestSlot.cc
  41. * src/RequestSlot.h
  42. * src/SegmentMan.cc
  43. * src/ServerStatMan.cc
  44. * src/SleepCommand.cc
  45. * src/SpeedCalc.cc
  46. * src/SpeedCalc.h
  47. * src/TimeA2.cc
  48. * src/TimeA2.h
  49. * src/TimeBasedCommand.cc
  50. * src/TimeSeedCriteria.h
  51. * src/UTMetadataRequestTracker.h
  52. * src/UTPexExtensionMessage.cc
  53. * src/wallclock.h
  54. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Fixed the bug that util::itos(INT64_MIN) fails.
  56. * src/util.cc
  57. * src/util.h
  58. * test/UtilTest.cc
  59. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  60. Fixed memory leak in SocketBuffer when _bufq is not empty when
  61. SocketBuffer is deleted. Added BufEntry constructor and deleted
  62. static factory functions.
  63. * src/SocketBuffer.cc
  64. * src/SocketBuffer.h
  65. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  67. queue maintenance is requested by RequestGroup to avoid to call
  68. the function unnecessarily.
  69. * src/FillRequestGroupCommand.cc
  70. * src/RequestGroup.cc
  71. * src/RequestGroup.h
  72. * src/RequestGroupMan.cc
  73. * src/RequestGroupMan.h
  74. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Don't use hash for Peer::id. Simple concatenation of ip address
  76. and port is enough.
  77. * src/Peer.cc
  78. * test/PeerTest.cc
  79. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  80. Enclosed log of DHTMessage::toString() with Logger::info().
  81. * src/DHTMessageDispatcherImpl.cc
  82. * src/DHTMessageReceiver.cc
  83. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Rewritten util::toHex().
  85. * src/util.cc
  86. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Removed SocketBuffer::feedAndSend(). Renamed
  88. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  89. * src/FtpConnection.cc
  90. * src/HttpConnection.cc
  91. * src/HttpServer.cc
  92. * src/MSEHandshake.cc
  93. * src/PeerConnection.cc
  94. * src/SocketBuffer.cc
  95. * src/SocketBuffer.h
  96. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Removed unused PeerConnection::sendMessage(). Updated doc.
  98. * src/PeerConnection.cc
  99. * src/PeerConnection.h
  100. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Reduced copying/std::string instantiation in sending/receiving
  102. BitTorrent messages.
  103. * src/BtBitfieldMessage.cc
  104. * src/BtBitfieldMessage.h
  105. * src/BtExtendedMessage.cc
  106. * src/BtExtendedMessage.h
  107. * src/BtHandshakeMessage.cc
  108. * src/BtHandshakeMessage.h
  109. * src/BtKeepAliveMessage.cc
  110. * src/BtKeepAliveMessage.h
  111. * src/BtPieceMessage.cc
  112. * src/BtPieceMessage.h
  113. * src/BtPortMessage.cc
  114. * src/BtPortMessage.h
  115. * src/BtUnchokeMessage.h
  116. * src/DefaultBtMessageReceiver.cc
  117. * src/IndexBtMessage.cc
  118. * src/IndexBtMessage.h
  119. * src/PeerConnection.cc
  120. * src/PeerConnection.h
  121. * src/RangeBtMessage.cc
  122. * src/RangeBtMessage.h
  123. * src/SimpleBtMessage.cc
  124. * src/SimpleBtMessage.h
  125. * src/SocketBuffer.cc
  126. * src/SocketBuffer.h
  127. * src/ZeroBtMessage.cc
  128. * src/ZeroBtMessage.h
  129. * test/BtAllowedFastMessageTest.cc
  130. * test/BtBitfieldMessageTest.cc
  131. * test/BtCancelMessageTest.cc
  132. * test/BtChokeMessageTest.cc
  133. * test/BtExtendedMessageTest.cc
  134. * test/BtHandshakeMessageTest.cc
  135. * test/BtHaveAllMessageTest.cc
  136. * test/BtHaveMessageTest.cc
  137. * test/BtHaveNoneMessageTest.cc
  138. * test/BtInterestedMessageTest.cc
  139. * test/BtKeepAliveMessageTest.cc
  140. * test/BtNotInterestedMessageTest.cc
  141. * test/BtPieceMessageTest.cc
  142. * test/BtPortMessageTest.cc
  143. * test/BtRejectMessageTest.cc
  144. * test/BtRequestMessageTest.cc
  145. * test/BtSuggestPieceMessageTest.cc
  146. * test/BtUnchokeMessageTest.cc
  147. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. Rewritten SocketBuffer. Old implementation uses single std::string
  149. to store data and erase sent data, which is costly. New
  150. implementation uses deque to hold each data to avoid to mutate
  151. string.
  152. * src/SocketBuffer.cc
  153. * src/SocketBuffer.h
  154. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Removed unused FileEntry::extracted
  156. * src/FileEntry.cc
  157. * src/FileEntry.h
  158. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. Wait until data arrives.
  160. * test/LpdMessageReceiverTest.cc
  161. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. In Metalink4, if size element contains invalid size, discard whole
  163. document. Added strict hash value check for metalink3/4.
  164. * src/MetalinkParserController.cc
  165. * src/MetalinkParserStateMachine.cc
  166. * src/MetalinkParserStateMachine.h
  167. * src/MetalinkParserStateV3Impl.cc
  168. * src/MetalinkParserStateV4Impl.cc
  169. * src/util.cc
  170. * src/util.h
  171. * test/MetalinkParserControllerTest.cc
  172. * test/MetalinkProcessorTest.cc
  173. * test/metalink4.xml
  174. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Added strict attribute validation for metalink4. When
  176. specification violation is found, discard the whole document.
  177. * src/ExpatMetalinkProcessor.cc
  178. * src/MetalinkParserStateMachine.cc
  179. * src/MetalinkParserStateMachine.h
  180. * src/MetalinkParserStateV4Impl.cc
  181. * src/XML2SAXMetalinkProcessor.cc
  182. * test/Makefile.am
  183. * test/MetalinkProcessorTest.cc
  184. * test/metalink4-attrs.xml: Removed
  185. * test/metalink4-dirtraversal.xml: Removed
  186. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  187. Added test for Metaurl transaction.
  188. * src/MetalinkParserController.cc
  189. * test/MetalinkParserControllerTest.cc
  190. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  191. Avoid costly BtMessage::toString() if info level log is not
  192. required.
  193. * src/DefaultBtInteractive.cc
  194. * src/Logger.h
  195. * src/SimpleBtMessage.cc
  196. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Reserved vector elements based on profiler results.
  198. * src/DefaultBtInteractive.cc
  199. * src/DefaultBtProgressInfoFile.cc
  200. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Avoid to calculate end() iterator in each loop. std::deque is
  202. particularly slow. Make sure that recalculate end iterator if
  203. element is erased during loop.
  204. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Use vector instead of deque for containers which is used for
  206. mostly read-only purpose.
  207. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Fixed typo
  209. * test/Makefile.am
  210. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  211. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  212. * test/Makefile.am
  213. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Small optimization: In updateTransferStatFor(), don't search peer
  215. ID twice.
  216. * src/DefaultPeerStorage.cc
  217. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  218. Use vector instead of deque for MetalinkEntry and MetalinkResource
  219. objects.
  220. * src/Metalink2RequestGroup.cc
  221. * src/Metalink2RequestGroup.h
  222. * src/MetalinkEntry.cc
  223. * src/MetalinkEntry.h
  224. * src/MetalinkHelper.cc
  225. * src/MetalinkHelper.h
  226. * src/Metalinker.cc
  227. * src/Metalinker.h
  228. * src/main.cc
  229. * test/MetalinkEntryTest.cc
  230. * test/MetalinkHelperTest.cc
  231. * test/MetalinkProcessorTest.cc
  232. * test/MetalinkerTest.cc
  233. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Fixed the bug that grouped FileEntry objects are not used but
  235. instead all FileEntry objects are used for each metaurl group.
  236. * src/Metalink2RequestGroup.cc
  237. * test/Metalink2RequestGroupTest.cc
  238. * test/metalink4-groupbymetaurl.xml
  239. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  240. Use vector instead of deque for ChunkChecksum.
  241. * src/ChunkChecksum.h
  242. * src/MetalinkParserController.cc
  243. * src/MetalinkParserController.h
  244. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  246. algorithm in Metalink properly
  247. * src/MetalinkParserController.cc
  248. * src/MetalinkParserController.h
  249. * src/messageDigest.cc
  250. * src/messageDigest.h
  251. * test/MetalinkProcessorTest.cc
  252. * test/metalink4.xml
  253. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Replaced null or control characters in file path with '_'. For
  255. MinGW32 build, additional characters which is not allowed in
  256. Windows kernel are also replaced. util::detectDirTraversal() now
  257. returns true if given string contains null or control characters.
  258. * src/DownloadContext.cc
  259. * src/DownloadContext.h
  260. * src/Metalink2RequestGroup.cc
  261. * src/MetalinkParserController.cc
  262. * src/bittorrent_helper.cc
  263. * src/util.cc
  264. * src/util.h
  265. * test/UtilTest.cc
  266. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  267. Discard metalink:file if its name attribute is empty string.
  268. Removed FileEntry instantiation in
  269. MetalinkParserController::setFileLengthOfEntry()
  270. * src/MetalinkParserController.cc
  271. * src/MetalinkParserStateV3Impl.cc
  272. * src/MetalinkParserStateV4Impl.cc
  273. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  274. Discard torrent file if path data in it contains directory
  275. traversal directives. Discard metalink:file element in Metalink3
  276. format if its name attribute contains directory traversal
  277. directives. Ignore name attribute of metalink:signature element
  278. in Metalink3 format if it contains directory traversal directives.
  279. * src/MetalinkParserStateV3Impl.cc
  280. * src/bittorrent_helper.cc
  281. * src/message.h
  282. * test/BittorrentHelperTest.cc
  283. * test/Makefile.am
  284. * test/MetalinkProcessorTest.cc
  285. * test/metalink3-dirtraversal.xml
  286. * test/test.xml
  287. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Removed useless comment
  289. * src/MetalinkParserStateV4Impl.cc
  290. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Supported name attribute of metalink::metaurl element and
  292. multi-file torrent with Metalink4. Files with same metaurl are
  293. grouped and downloaded in one RequestGroup.
  294. * src/BtDependency.cc
  295. * src/FileEntry.h
  296. * src/Metalink2RequestGroup.cc
  297. * src/Metalink2RequestGroup.h
  298. * src/MetalinkEntry.cc
  299. * src/MetalinkEntry.h
  300. * src/MetalinkHelper.cc
  301. * src/MetalinkHelper.h
  302. * src/MetalinkMetaurl.cc
  303. * src/MetalinkMetaurl.h
  304. * src/MetalinkParserController.cc
  305. * src/RequestGroup.cc
  306. * src/RequestGroup.h
  307. * src/bittorrent_helper.cc
  308. * test/BittorrentHelperTest.cc
  309. * test/BtDependencyTest.cc
  310. * test/MetalinkHelperTest.cc
  311. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  312. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  313. * src/MetalinkMetaurl.h
  314. * src/MetalinkParserController.cc
  315. * src/MetalinkParserController.h
  316. * src/MetalinkParserStateMachine.cc
  317. * src/MetalinkParserStateMachine.h
  318. * src/MetalinkParserStateV4Impl.cc
  319. * test/MetalinkProcessorTest.cc
  320. * test/metalink4-dirtraversal.xml
  321. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  323. element.
  324. * src/Makefile.am
  325. * src/Metalink2RequestGroup.cc
  326. * src/MetalinkEntry.cc
  327. * src/MetalinkEntry.h
  328. * src/MetalinkMetaurl.cc
  329. * src/MetalinkMetaurl.h
  330. * src/MetalinkParserController.cc
  331. * src/MetalinkParserController.h
  332. * src/MetalinkParserStateMachine.cc
  333. * src/MetalinkParserStateMachine.h
  334. * src/MetalinkParserStateV4Impl.cc
  335. * src/MetalinkParserStateV4Impl.h
  336. * test/MetalinkProcessorTest.cc
  337. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  338. Added Metalink4 support. Currently, name attribute of
  339. metalink::metaurl is ignored and multi-file torrent cannot be used
  340. with Metalink4.
  341. * doc/aria2c.1.txt
  342. * src/DownloadHandlerConstants.cc
  343. * src/ExpatMetalinkProcessor.cc
  344. * src/Makefile.am
  345. * src/Metalink2RequestGroup.cc
  346. * src/MetalinkEntry.cc
  347. * src/MetalinkEntry.h
  348. * src/MetalinkParserController.cc
  349. * src/MetalinkParserController.h
  350. * src/MetalinkParserState.h
  351. * src/MetalinkParserStateImpl.cc
  352. * src/MetalinkParserStateImpl.h
  353. * src/MetalinkParserStateMachine.cc
  354. * src/MetalinkParserStateMachine.h
  355. * src/MetalinkParserStateV3Impl.cc
  356. * src/MetalinkParserStateV3Impl.h
  357. * src/MetalinkParserStateV4Impl.cc
  358. * src/MetalinkParserStateV4Impl.h
  359. * src/MetalinkResource.cc
  360. * src/MetalinkResource.h
  361. * src/Metalinker.cc
  362. * src/RequestGroup.cc
  363. * src/RequestGroup.h
  364. * src/XML2SAXMetalinkProcessor.cc
  365. * src/messageDigest.cc
  366. * src/util.cc
  367. * src/util.h
  368. * test/Makefile.am
  369. * test/MetalinkEntryTest.cc
  370. * test/MetalinkParserControllerTest.cc
  371. * test/MetalinkProcessorTest.cc
  372. * test/MetalinkerTest.cc
  373. * test/UtilTest.cc
  374. * test/metalink4-attrs.xml
  375. * test/metalink4-dirtraversal.xml
  376. * test/metalink4.xml
  377. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  378. Added aiFlags argument to getInterfaceAddress(). Use
  379. AI_NUMERICHOST to find interface specified using
  380. --bt-lpd-interface option to avoid time-consuming address lookup.
  381. * src/BtSetup.cc
  382. * src/SocketCore.cc
  383. * src/SocketCore.h
  384. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  385. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  386. is bad in LpdMessageReceiver.
  387. * src/LpdMessage.h
  388. * src/LpdMessageReceiver.cc
  389. * src/LpdMessageReceiver.h
  390. * src/LpdReceiveMessageCommand.cc
  391. * test/LpdMessageReceiverTest.cc
  392. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  393. Added --bt-lpd-interface option to specify the interface to use
  394. for Local Peer Discovery. LpdMessageDispatcher object now has its
  395. own socket. LpdMessageReceiver's socket is binded to multicast
  396. address to only receive multicast packets.
  397. * src/BtSetup.cc
  398. * src/LpdMessageDispatcher.cc
  399. * src/LpdMessageDispatcher.h
  400. * src/LpdMessageReceiver.cc
  401. * src/LpdMessageReceiver.h
  402. * src/LpdReceiveMessageCommand.cc
  403. * src/LpdReceiveMessageCommand.h
  404. * src/OptionHandlerFactory.cc
  405. * src/SocketCore.cc
  406. * src/SocketCore.h
  407. * src/prefs.cc
  408. * src/prefs.h
  409. * src/usage_text.h
  410. * test/LpdMessageDispatcherTest.cc
  411. * test/LpdMessageReceiverTest.cc
  412. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Put the portion of code to get interface addresses in
  414. SocketCore::bindAddress() into newly added getInterfaceAddress().
  415. * src/SocketCore.cc
  416. * src/SocketCore.h
  417. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  418. Rewritten util::parseInt() and parseUInt()
  419. * src/util.cc
  420. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Fixed compile error with mingw32 cross compiler. Defined
  422. a2_sockopt_t as void* for the target systems other than mingw32.
  423. * src/SocketCore.cc
  424. * src/a2netcompat.h
  425. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Removed 'always true' condition
  427. * src/util.cc
  428. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Documented --bt-enable-lpd option in man page.
  430. * doc/aria2c.1.txt
  431. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Added Local Peer Discovery. It is disabled by default. Use
  433. --bt-enable-lpd to enable the function.
  434. * src/BtConstants.h
  435. * src/BtSetup.cc
  436. * src/LpdDispatchMessageCommand.cc
  437. * src/LpdDispatchMessageCommand.h
  438. * src/LpdMessage.h
  439. * src/LpdMessageDispatcher.cc
  440. * src/LpdMessageDispatcher.h
  441. * src/LpdMessageReceiver.cc
  442. * src/LpdMessageReceiver.h
  443. * src/LpdReceiveMessageCommand.cc
  444. * src/LpdReceiveMessageCommand.h
  445. * src/Makefile.am
  446. * src/OptionHandlerFactory.cc
  447. * src/Peer.cc
  448. * src/Peer.h
  449. * src/PeerInteractionCommand.cc
  450. * src/SocketCore.cc
  451. * src/SocketCore.h
  452. * src/prefs.cc
  453. * src/prefs.h
  454. * src/usage_text.h
  455. * src/util.cc
  456. * src/util.h
  457. * test/LpdMessageDispatcherTest.cc
  458. * test/LpdMessageReceiverTest.cc
  459. * test/Makefile.am
  460. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. User-defined custom request headers specified by --header option
  462. now override builtin headers if they have same name.
  463. * src/HttpRequest.cc
  464. * src/HttpRequest.h
  465. * test/HttpRequestTest.cc
  466. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  467. Rewirtten util::isNumber()
  468. * src/util.cc
  469. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  471. because without it localized error messages are not printed
  472. correctly.
  473. * src/Platform.cc
  474. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Added unit tests for util::getContentDispositionFilename() from
  476. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  477. tests are passed.
  478. * src/util.cc
  479. * test/UtilTest.cc
  480. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  482. util.cc
  483. * src/Platform.cc
  484. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  485. Support RFC2231 "Parameter Value Character Set and Language
  486. Information" in Content-Disposition header.
  487. * src/HttpResponse.cc
  488. * src/util.cc
  489. * src/util.h
  490. * test/UtilTest.cc
  491. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Print CXXFLAGS
  493. * configure.ac
  494. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Small optimization for A2_WOULDBLOCK(e)
  496. * src/SocketCore.cc
  497. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Removed test file
  499. * test/CookieStorageTest.cc
  500. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Check both EAGAIN and EWOULDBLOCK
  502. * src/SocketCore.cc
  503. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  504. Removed ret == 0 checking for SSL_read(), SSL_write() and
  505. SSL_peek() because the checks are done in the caller. In
  506. SocketBuffer::send(), throw exception if nothing could be written
  507. and socket error was not EWOULDBLOCK
  508. * src/SocketBuffer.cc
  509. * src/SocketCore.cc
  510. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Fixed error code handling so that it can handle Winsock2 error
  512. code.
  513. * src/SocketCore.cc
  514. * src/SocketCore.h
  515. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  516. Bump up version number to 1.9.0a
  517. * configure.ac
  518. * doc/aria2c.1.txt
  519. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Fixed the bug that aria2 doesn't handle return value if error
  521. occurred before download begins.
  522. * src/MultiUrlRequestInfo.cc
  523. * src/main.cc
  524. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. Removed SegmentManFactory class.
  526. * src/AbstractSegmentManFactory.h
  527. * src/DefaultSegmentManFactory.cc
  528. * src/DefaultSegmentManFactory.h
  529. * src/Makefile.am
  530. * src/RequestGroup.cc
  531. * src/RequestGroup.h
  532. * src/SegmentManFactory.h
  533. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Destroyed digest context after getting calculated hash.
  535. * src/Piece.cc
  536. * src/Piece.h
  537. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Removed BitfieldManFactory class.
  539. * src/BitfieldManFactory.cc
  540. * src/BitfieldManFactory.h
  541. * src/DefaultPieceStorage.cc
  542. * src/Makefile.am
  543. * src/PeerSessionResource.cc
  544. * src/Piece.cc
  545. * src/main.cc
  546. * test/DefaultPieceStorageTest.cc
  547. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Removed unused methods from BitfieldMan class. Moved
  549. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  550. class.
  551. * src/BitfieldMan.cc
  552. * src/BitfieldMan.h
  553. * src/BitfieldManFactory.cc
  554. * src/BitfieldManFactory.h
  555. * src/bitfield.h
  556. * src/main.cc
  557. * test/BitfieldManTest.cc
  558. * test/DefaultPieceStorageTest.cc
  559. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Moved getFirstNMissingIndex to bitfield.h and made it return the
  561. number of appended indexes.
  562. * src/BitfieldMan.cc
  563. * src/BitfieldMan.h
  564. * src/Piece.cc
  565. * src/Piece.h
  566. * src/bitfield.h
  567. * test/BitfieldManTest.cc
  568. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. Added more tests.
  570. * test/BitfieldManTest.cc
  571. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  572. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  573. unused block indexes at once instead of calling
  574. getFirstMissingUnusedIndex() multiple times. Made use of it in
  575. Piece class and DefaultBtRequestFactory class via Piece class.
  576. * src/BitfieldMan.cc
  577. * src/BitfieldMan.h
  578. * src/DefaultBtRequestFactory.cc
  579. * src/Piece.cc
  580. * src/Piece.h
  581. * test/BitfieldManTest.cc
  582. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Use std::make_pair(...)
  584. * src/DHTMessageTracker.cc
  585. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Use std::make_pair(...)
  587. * src/bittorrent_helper.cc
  588. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. urlencode(removeFragment(...)) in parseUrl(...)
  590. * src/Request.cc
  591. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  593. * src/AbstractCommand.cc
  594. * src/AdaptiveURISelector.cc
  595. * src/BtPieceMessage.cc
  596. * src/BtPortMessage.cc
  597. * src/CreateRequestCommand.cc
  598. * src/DHTAbstractNodeLookupTask.cc
  599. * src/DHTBucket.cc
  600. * src/DHTGetPeersCommand.cc
  601. * src/DHTMessageDispatcherImpl.cc
  602. * src/DHTMessageFactoryImpl.cc
  603. * src/DHTMessageTracker.cc
  604. * src/DHTPeerAnnounceStorage.cc
  605. * src/DHTRoutingTable.cc
  606. * src/DHTSetup.cc
  607. * src/DefaultBtAnnounce.cc
  608. * src/DefaultBtInteractive.cc
  609. * src/DefaultBtMessageDispatcher.cc
  610. * src/DefaultBtMessageReceiver.cc
  611. * src/DefaultBtProgressInfoFile.cc
  612. * src/DefaultBtRequestFactory.cc
  613. * src/DefaultPeerStorage.cc
  614. * src/DefaultPieceStorage.cc
  615. * src/DownloadCommand.cc
  616. * src/DownloadEngine.cc
  617. * src/EpollEventPoll.cc
  618. * src/FileAllocationCommand.cc
  619. * src/FileEntry.cc
  620. * src/FtpNegotiationCommand.cc
  621. * src/HandshakeExtensionMessage.cc
  622. * src/HttpListenCommand.cc
  623. * src/HttpServer.cc
  624. * src/HttpSkipResponseCommand.cc
  625. * src/IteratableChunkChecksumValidator.cc
  626. * src/Logger.h
  627. * src/MSEHandshake.cc
  628. * src/MetalinkPostDownloadHandler.cc
  629. * src/MultiDiskAdaptor.cc
  630. * src/PeerAbstractCommand.cc
  631. * src/PeerConnection.cc
  632. * src/PeerListenCommand.cc
  633. * src/PeerReceiveHandshakeCommand.cc
  634. * src/RequestGroup.cc
  635. * src/RequestGroupMan.cc
  636. * src/SegmentMan.cc
  637. * src/SelectEventPoll.cc
  638. * src/ServerStat.cc
  639. * src/SimpleBtMessage.cc
  640. * src/SocketCore.cc
  641. * src/TrackerWatcherCommand.cc
  642. * src/UTMetadataDataExtensionMessage.cc
  643. * src/UTMetadataRequestFactory.cc
  644. * src/UTMetadataRequestTracker.cc
  645. * src/XmlRpcMethod.cc
  646. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Changed log level from debug to info
  648. * src/BtDependency.cc
  649. * src/BtPostDownloadHandler.cc
  650. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Removed unused PeerSessionResource::_latency.
  652. * src/BtConstants.h
  653. * src/BtPieceMessage.cc
  654. * src/Peer.cc
  655. * src/Peer.h
  656. * src/PeerSessionResource.cc
  657. * src/PeerSessionResource.h
  658. * test/PeerSessionResourceTest.cc
  659. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Fixed the bug that --file-allocation=falloc doesn't work with
  661. single file download.
  662. * src/AbstractSingleDiskAdaptor.cc
  663. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  664. Release 1.8.2
  665. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  666. Added Portuguese translation. Updated Ukrainian and Spanish
  667. translation. Thanks to all translators.
  668. * po/LINGUAS
  669. * po/es.po
  670. * po/pt.po
  671. * po/uk.po
  672. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Remove fragment from redirected URI.
  674. * src/Request.cc
  675. * test/RequestTest.cc
  676. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Updated po templates.
  678. * po/aria2.pot
  679. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  680. Drop legacy ifdef for ares support and code cleanup.
  681. * src/AsyncNameResolver.cc
  682. * src/AsyncNameResolver.h
  683. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Call ares_library_init and ares_library_cleanup if they are
  685. available. Some code cleanups.
  686. * src/Platform.cc
  687. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  688. Call ares_process_fd() each time after epoll to handle timeout.
  689. * src/EpollEventPoll.cc
  690. * src/EpollEventPoll.h
  691. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  692. Suppressed type-cast compiler warning
  693. * src/CookieStorage.cc
  694. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  695. Fixed compile error on Mac OS X.
  696. * src/CookieStorage.h
  697. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Removed cookietest.txt from Makefile.am
  699. * test/Makefile.am
  700. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Updated version number in man page.
  702. * doc/aria2c.1.txt
  703. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Rewritten help message for --allow-overwrite option.
  705. * doc/aria2c.1.txt
  706. * src/usage_text.h
  707. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Added bittorrent key to the response of tellStatus XML-RPC method.
  709. The associated value of the key is a struct and contains data
  710. retrieved from .torrent file, such as name, announce-list,
  711. comment, etc.
  712. * doc/aria2c.1.txt
  713. * src/XmlRpcMethodImpl.cc
  714. * src/XmlRpcMethodImpl.h
  715. * test/XmlRpcMethodTest.cc
  716. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Removed parse(std::istream&) and parse(const std::string&) from
  718. CookieParser.
  719. * src/CookieParser.cc
  720. * src/CookieParser.h
  721. * test/CookieParserTest.cc
  722. * test/cookietest.txt: Removed
  723. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Fixed the bug that cookie for domain a.b.c is not sent to the host
  725. a.b.c if no other cookies are stored. Fixed the bug that
  726. Cookie::markOriginServerOnly() is not called when cookies are
  727. loaded from file/sqlite3 database.
  728. * src/Cookie.h
  729. * src/CookieStorage.cc
  730. * src/NsCookieParser.cc
  731. * src/Sqlite3MozCookieParser.cc
  732. * test/CookieStorageTest.cc
  733. * test/NsCookieParserTest.cc
  734. * test/Sqlite3MozCookieParserTest.cc
  735. * test/cookies.sqlite
  736. * test/nscookietest.txt
  737. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  738. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  739. both _pieceStorage and _segmentMan are initialized or they are
  740. not.
  741. * src/RequestGroup.cc
  742. * src/RequestGroup.h
  743. * test/BtDependencyTest.cc
  744. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  745. Bump up version number to 1.8.2
  746. * configure.ac
  747. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Replaced "." with A2STR::DOT_C
  749. * src/AbstractCommand.cc
  750. * src/Cookie.cc
  751. * src/DownloadContext.cc
  752. * src/FtpConnection.cc
  753. * src/RequestGroup.cc
  754. * src/util.cc
  755. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. Replaced isNumberAndDotsNotation() with isNumericHost().
  757. isNumericHost() can handle IPv6 address.
  758. * src/Cookie.cc
  759. * src/CookieStorage.cc
  760. * src/util.cc
  761. * src/util.h
  762. * test/CookieTest.cc
  763. * test/UtilTest.cc
  764. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Included A2STR.h
  766. * src/CookieStorage.cc
  767. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  768. Rewritten Cookie storage.
  769. * src/Cookie.cc
  770. * src/Cookie.h
  771. * src/CookieParser.cc
  772. * src/CookieStorage.cc
  773. * src/CookieStorage.h
  774. * src/a2functional.h
  775. * test/CookieParserTest.cc
  776. * test/CookieStorageTest.cc
  777. * test/CookieTest.cc
  778. * test/HttpResponseTest.cc
  779. * test/TestUtil.h
  780. * test/a2functionalTest.cc
  781. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Handle redirected URI which is not properly percent encoded.
  783. * src/Request.cc
  784. * test/RequestTest.cc
  785. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  786. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  787. not found' in the N times(N is where --max-file-not-found=N, N>0)
  788. in a row without single '200 OK' response.
  789. * src/RequestGroup.cc.
  790. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  792. readout by 80 characters in mingw32 build. Catch exception in
  793. DHTMessageReceiver::receiveMessage().
  794. * src/AbstractDiskWriter.cc
  795. * src/ConsoleStatCalc.cc
  796. * src/DHTMessageReceiver.cc
  797. * src/File.cc
  798. * src/RequestGroupMan.cc
  799. * src/a2io.h
  800. * test/FileTest.cc
  801. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Fixed compile error with intel compiler
  803. * src/XmlRpcMethodImpl.cc
  804. * src/XmlRpcMethodImpl.h
  805. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Release 1.8.1
  807. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Updated Swedish, Russian and Italian translations. Thanks to all
  809. translators.
  810. * po/it.po
  811. * po/ru.po
  812. * po/sv.po
  813. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Fixed broken OptionParser::findByName().
  815. * src/OptionParser.cc
  816. * test/OptionParserTest.cc
  817. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Fixed test error without BitTorrent support.
  819. * test/XmlRpcMethodTest.cc
  820. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Fixed compile error without GNUTLS/OpenSSL.
  822. * src/util.cc
  823. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Changed compression level to Z_DEFAULT_COMPRESSION.
  825. * src/GZipEncoder.cc
  826. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  827. Added missing command line options: --http-no-cache,
  828. --bt-save-metadata and --bt-metadata-only.
  829. * doc/xmlrpc/aria2rpc
  830. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  832. client accepts gzip content encoding.
  833. * src/A2STR.cc
  834. * src/A2STR.h
  835. * src/GZipEncoder.cc
  836. * src/GZipEncoder.h
  837. * src/HttpHeader.cc
  838. * src/HttpHeader.h
  839. * src/HttpServer.cc
  840. * src/HttpServer.h
  841. * src/HttpServerBodyCommand.cc
  842. * src/HttpServerCommand.cc
  843. * src/Makefile.am
  844. * src/XmlRpcResponse.cc
  845. * src/XmlRpcResponse.h
  846. * test/GZipEncoderTest.cc
  847. * test/Makefile.am
  848. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Added XML-RPC client sample code in Python.
  850. * doc/aria2c.1.txt
  851. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Updated po templates.
  853. * po/aria2.pot
  854. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Bump up version number to 1.8.1
  856. * configure.ac
  857. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  858. Added version number to man page. Updated copyright year in man
  859. page.
  860. * doc/aria2c.1.txt
  861. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  862. Rewritten toTagString
  863. * src/NameMatchOptionHandler.cc
  864. * test/OptionHandlerTest.cc
  865. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Added dir and files key to the response struct of aria2.tellStatus
  867. XML-RPC method. The value associated with files key is the list
  868. of files. Its element is the same struct used in aria2.getFiles
  869. XML-RPC method. Added uris key to the response struct of
  870. aria2.getFiles XML-RPC method. The value associated with uris key
  871. is the list of URIs. Its element is the same struct used in
  872. aria2.getUris XML-RPC method.
  873. * doc/aria2c.1.txt
  874. * src/XmlRpcMethodImpl.cc
  875. * test/XmlRpcMethodTest.cc
  876. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  877. Added aria2.getSessionInfo XML-RPC method. This method returns a
  878. struct containing Session ID, which is generated each time when
  879. aria2 is invoked.
  880. * doc/aria2c.1.txt
  881. * doc/xmlrpc/aria2rpc
  882. * src/DownloadEngine.cc
  883. * src/DownloadEngine.h
  884. * src/XmlRpcMethodFactory.cc
  885. * src/XmlRpcMethodImpl.cc
  886. * src/XmlRpcMethodImpl.h
  887. * test/XmlRpcMethodTest.cc
  888. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Moved generateRandomKey() from bittorrent_helper to util.
  890. * src/DHTBucket.cc
  891. * src/DHTNode.cc
  892. * src/bittorrent_helper.cc
  893. * src/bittorrent_helper.h
  894. * src/util.cc
  895. * src/util.h
  896. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  897. Updated doc about GID.
  898. * doc/aria2c.1.txt
  899. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  900. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  901. accepts a negative integer. 'offset' == -1 points last download
  902. in the waiting queue and 'offset' == -2 points the download before
  903. the last download, and so on. The downloads in the response are in
  904. reversed order.
  905. * doc/aria2c.1.txt
  906. * src/XmlRpcMethodImpl.cc
  907. * src/XmlRpcMethodImpl.h
  908. * test/XmlRpcMethodTest.cc
  909. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Added --human-readable option. This option, when true is given,
  911. prints sizes and speed in human readable format(e.g., 1.2Ki,
  912. 3.4Mi) in the console readout. The default value is true and it
  913. looks exactly the same as aria2-1.8.0. So the 'new feature'
  914. appears when false is given. In this case, sizes and speed are
  915. printed without in bytes. No Ki, Mi units conversion is used.
  916. This may be useful for a program to parse the output of aria2.
  917. * doc/aria2c.1.txt
  918. * src/ConsoleStatCalc.cc
  919. * src/ConsoleStatCalc.h
  920. * src/OptionHandlerFactory.cc
  921. * src/main.cc
  922. * src/prefs.cc
  923. * src/prefs.h
  924. * src/usage_text.h
  925. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  927. option accepts empty string "". When "" is given, it erases
  928. previously defined proxy.
  929. * doc/aria2c.1.txt
  930. * src/OptionHandlerImpl.h
  931. * src/usage_text.h
  932. * test/OptionHandlerTest.cc
  933. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. Code cleanup for proxy URI handling.
  935. * src/AbstractCommand.cc
  936. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  937. Added --bt-metadata-only option. If true is given to this option,
  938. aria2 downloads metadata only. The file(s) described in metadata
  939. will not be downloaded. This option has effect only when
  940. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  941. * doc/aria2c.1.txt
  942. * src/OptionHandlerFactory.cc
  943. * src/UTMetadataPostDownloadHandler.cc
  944. * src/download_helper.cc
  945. * src/prefs.cc
  946. * src/prefs.h
  947. * src/usage_text.h
  948. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. Fixed memory leak. Commands stored in std::deque<Command*> are not
  950. deleted when exception is thrown. Make sure that when passing
  951. std::deque<Command*> to function to store Commands, handle
  952. exception and delete these Commands.
  953. * src/AbstractCommand.cc
  954. * src/CheckIntegrityCommand.cc
  955. * src/FileAllocationCommand.cc
  956. * src/RequestGroup.cc
  957. * src/TrackerWatcherCommand.cc
  958. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  960. * src/A2STR.cc
  961. * src/A2STR.h
  962. * src/FtpNegotiationCommand.cc
  963. * src/HttpResponseCommand.cc
  964. * src/util.cc
  965. * src/util.h
  966. * test/UtilTest.cc
  967. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Treat --dir="" as --dir="."
  969. * src/FtpNegotiationCommand.cc
  970. * src/HttpResponseCommand.cc
  971. * src/Metalink2RequestGroup.cc
  972. * src/UTMetadataPostDownloadHandler.cc
  973. * src/bittorrent_helper.cc
  974. * src/download_helper.cc
  975. * src/util.cc
  976. * src/util.h
  977. * test/UtilTest.cc
  978. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  979. Code clean up.
  980. * src/main.cc
  981. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  982. Reset GID to 1 when they reach maximum value. Rewritten
  983. CUIDCounter::newID()
  984. * src/CUIDCounter.h
  985. * src/RequestGroup.cc
  986. * src/RequestGroup.h
  987. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Documented --http-no-cache option in man page.
  989. * doc/aria2c.1.txt
  990. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  991. Added --http-no-cache option. When true is given, aria2 sends
  992. Cache-Control: no-cache and Pragma: no-cache header to avoid
  993. cached content. If false is given , these headers are not sent
  994. and you can add Cache-Control header with a directive you like
  995. using --header option.
  996. * src/HttpRequest.cc
  997. * src/HttpRequest.h
  998. * src/HttpRequestCommand.cc
  999. * src/OptionHandlerFactory.cc
  1000. * src/download_helper.cc
  1001. * src/prefs.cc
  1002. * src/prefs.h
  1003. * src/usage_text.h
  1004. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. Removed Logger from OptionParser. When OptionParser is used to
  1006. parse options at bootstrap, LogFactory is not configured yet
  1007. properly. When LogFactory is used in OptionParser, it initializes
  1008. itself to return a logger which has no ability to write log to the
  1009. disk.
  1010. * src/OptionParser.cc
  1011. * src/OptionParser.h
  1012. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Added following sentance to the help message of --out option:
  1014. --out option is ignored when -Z is used.
  1015. * doc/aria2c.1.txt
  1016. * src/usage_text.h
  1017. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Added --bt-save-metadata option to -i list options.
  1019. * doc/aria2c.1.txt
  1020. * src/download_helper.cc
  1021. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1023. additional libraries.
  1024. * src/MultiUrlRequestInfo.cc
  1025. * src/NameResolver.cc
  1026. * src/SelectEventPoll.cc
  1027. * src/SelectEventPoll.h
  1028. * src/SocketCore.cc
  1029. * src/SocketCore.h
  1030. * src/a2netcompat.h
  1031. * src/daemon.cc
  1032. * src/main.cc
  1033. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Fixed typo.
  1035. * src/DHTMessageReceiver.cc
  1036. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Fixed the bug that causes segmentation fault if unknown option is
  1038. put in aria2.conf file. BUG#2928303
  1039. * src/OptionParser.cc
  1040. * src/OptionParser.h
  1041. * src/option_processing.cc
  1042. * test/OptionParserTest.cc
  1043. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Ignore port message with port=0.
  1045. * src/BtPortMessage.cc
  1046. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Run autoupdate
  1048. * configure.ac
  1049. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Updated autoconf/automake auxiliary files.
  1051. * INSTALL
  1052. * config.guess
  1053. * config.sub
  1054. * depcomp
  1055. * install-sh
  1056. * m4/intldir.m4
  1057. * missing
  1058. * mkinstalldirs
  1059. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Removed unused function.
  1061. * src/SharedHandle.h
  1062. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1063. Find pooled socket using all cached addresses.
  1064. * src/DNSCache.h
  1065. * src/DownloadEngine.cc
  1066. * src/DownloadEngine.h
  1067. * src/InitiateConnectionCommand.cc
  1068. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1069. Updated copyright year.
  1070. * src/version_usage.cc
  1071. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1072. Pool connection if _contentEncodingDecoder is used and server
  1073. supports persistent connection.
  1074. * src/HttpDownloadCommand.cc
  1075. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1076. Updated doc.
  1077. * src/DownloadCommand.cc
  1078. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Untabify. Fixed one line in copyright which is longer than 80
  1080. columns.
  1081. * src
  1082. * test
  1083. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1084. Release 1.8.0
  1085. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Updated po templates.
  1087. * po/aria2.pot
  1088. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Documented --bt-save-metadata option in man page.
  1090. * doc/aria2c.1.txt
  1091. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. Fixed usage of --bt-save-metadata option.
  1093. * src/usage_text.h
  1094. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Updated po templates.
  1096. * po/aria2.pot
  1097. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1099. causes name resolution error when none of network interface has
  1100. IPv4 address.
  1101. * src/main.cc
  1102. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Bump up version number to 1.8.0.
  1104. * configure.ac
  1105. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1106. Use info hash as a filename when saving BitTorrent metadata.
  1107. * src/UTMetadataPostDownloadHandler.cc
  1108. * test/UTMetadataPostDownloadHandlerTest.cc
  1109. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. Documented system.multicall XML-RPC method in man page.
  1111. * doc/aria2c.1.txt
  1112. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1113. Added signal handler for SIGHUP to save .aria2 file when terminal
  1114. is closed. The handler is the same one for SIGINT and SIGTERM.
  1115. * src/MultiUrlRequestInfo.cc
  1116. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Defined method name in XmlRpcMethod subclasses.
  1118. * src/XmlRpcMethodFactory.cc
  1119. * src/XmlRpcMethodImpl.cc
  1120. * src/XmlRpcMethodImpl.h
  1121. * test/XmlRpcMethodTest.cc
  1122. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. Added system.multicall XML-RPC method.
  1124. * src/XmlRpcMethod.cc
  1125. * src/XmlRpcMethod.h
  1126. * src/XmlRpcMethodFactory.cc
  1127. * src/XmlRpcMethodImpl.cc
  1128. * src/XmlRpcMethodImpl.h
  1129. * test/XmlRpcMethodTest.cc
  1130. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Check structure depth when decoding.
  1132. * src/bencode.cc
  1133. * src/bencode.h
  1134. * test/BencodeTest.cc
  1135. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Documented tellStopped XML-RPC method in man page.
  1137. * doc/aria2c.1.txt
  1138. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Added tellStopped XML-RPC method to aria2rpc.
  1140. * doc/xmlrpc/aria2rpc
  1141. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1142. Added tellStopped XML-RPC method. This method returns stopped
  1143. download in the specified range. It takes same parameters with
  1144. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1145. * src/XmlRpcMethodFactory.cc
  1146. * src/XmlRpcMethodImpl.cc
  1147. * src/XmlRpcMethodImpl.h
  1148. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1149. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1150. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1151. when conducting unit tests because they fail if networking
  1152. interface is not configured with IPv4 address.
  1153. * src/NameResolver.cc
  1154. * src/SocketCore.cc
  1155. * src/SocketCore.h
  1156. * src/a2netcompat.h
  1157. * test/AllTest.cc
  1158. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Fixed unit test error
  1160. * test/UTMetadataPostDownloadHandlerTest.cc
  1161. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Defined static string constants for efficiency.
  1163. * src/XmlRpcMethodImpl.cc
  1164. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Added --bt-save-metadata option. When true is given, it saves
  1166. metadata as .torrent file. This option has effect only when
  1167. BitTorrent Magnet URI is used. The filename is name in metadata
  1168. with suffix .torrent. The directory to be saved is the same
  1169. directory where download file is saved. If the same file already
  1170. exists, metdata is not saved.
  1171. * src/OptionHandlerFactory.cc
  1172. * src/UTMetadataPostDownloadHandler.cc
  1173. * src/UTMetadataPostDownloadHandler.h
  1174. * src/message.h
  1175. * src/prefs.cc
  1176. * src/prefs.h
  1177. * src/usage_text.h
  1178. * test/UTMetadataDataExtensionMessageTest.cc
  1179. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Added util::saveAs() function. Use it in Signature::save().
  1181. * src/Signature.cc
  1182. * src/util.cc
  1183. * src/util.h
  1184. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1185. Upcase info hash in Magnet URI.
  1186. * doc/aria2c.1.txt
  1187. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Refactored RequestGroupMan::changeReservedGroupPosition()
  1189. * src/RequestGroupMan.cc
  1190. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Updated the description for aria2.addTorrent XML-RPC method.
  1192. * doc/aria2c.1.txt
  1193. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Added changePosition to aria2rpc.
  1195. * doc/xmlrpc/aria2rpc
  1196. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Documented changePosition XML-RPC method in man page.
  1198. * doc/aria2c.1.txt
  1199. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1201. pos and how. This method changes the position of download denoted
  1202. by gid. If how is POS_SET, it moves the download to a position
  1203. relative to the beginning of the queue. If how is POS_CUR, it
  1204. moves the download to a position relative to the current
  1205. position. If how is POS_END, it moves the download to a position
  1206. relative to the end of the queue. If the destination position is
  1207. less than 0 or beyond the end of the queue, it moves the download
  1208. to the beginning or the end of the queue respectively. Returns
  1209. the destination position.
  1210. * src/RequestGroupMan.cc
  1211. * src/RequestGroupMan.h
  1212. * src/XmlRpcMethodFactory.cc
  1213. * src/XmlRpcMethodImpl.cc
  1214. * src/XmlRpcMethodImpl.h
  1215. * test/RequestGroupManTest.cc
  1216. * test/XmlRpcMethodTest.cc
  1217. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1218. Added getOption and getGlobalOption to aria2rpc.
  1219. * doc/xmlrpc/aria2rpc
  1220. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Documented getOption and getGlobalOption XML-RPC method in man
  1222. page
  1223. * doc/aria2c.1.txt
  1224. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Added getOption and getGlobalOption XML-RPC method. getOption
  1226. takes GID as a parameter and returns its options as struct.
  1227. getGlobalOption takes no parameter and returns global
  1228. options. Because global option is used as a template for the
  1229. option of newly added downloads, it includes options returned by
  1230. getOption.
  1231. * src/Option.h
  1232. * src/XmlRpcMethodFactory.cc
  1233. * src/XmlRpcMethodImpl.cc
  1234. * src/XmlRpcMethodImpl.h
  1235. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1236. Sort _optionHandlers in OptionParser by name in ascending order.
  1237. Use vector instead of deque for efficiency.
  1238. * src/OptionHandler.h
  1239. * src/OptionHandlerFactory.h
  1240. * src/OptionParser.cc
  1241. * src/OptionParser.h
  1242. * src/version_usage.cc
  1243. * test/OptionParserTest.cc
  1244. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Code cleanup
  1246. * src/XmlRpcMethod.cc
  1247. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Documented about followedBy and belongsTo in man page.
  1249. * doc/aria2c.1.txt
  1250. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1251. Added following 2 keys, followedBy and belongsTo, to the response
  1252. of tellStatus.
  1253. followedBy: List of GIDs which are generated by the consequence of
  1254. this download. For example, when aria2 downloaded Metalink file,
  1255. it generates downloads described in it(see *--follow-metalink*
  1256. option). This value is useful to track these auto generated
  1257. downloads. If there is no such downloads, this key will not be
  1258. included in the response.
  1259. belongsTo: GID of a parent download. Some downloads are a part of
  1260. another download. For example, if a file in Metalink has
  1261. BitTorrent resource, the download of .torrent is a part of that
  1262. file. If this download has no parent, this key will not be
  1263. included in the response.
  1264. * src/BtPostDownloadHandler.cc
  1265. * src/DownloadResult.h
  1266. * src/Metalink2RequestGroup.cc
  1267. * src/MetalinkPostDownloadHandler.cc
  1268. * src/RequestGroup.cc
  1269. * src/RequestGroup.h
  1270. * src/UTMetadataPostDownloadHandler.cc
  1271. * src/XmlRpcMethodImpl.cc
  1272. * src/XmlRpcMethodImpl.h
  1273. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Assigned BObject in BDE() to avoid segmentation fault when calling
  1275. methods of BDE::none().
  1276. * src/BDE.cc
  1277. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Show info hash in Magnet URI in upper case letters in -S output.
  1279. * src/bittorrent_helper.cc
  1280. * test/BittorrentHelperTest.cc
  1281. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Removed old useless comment
  1283. * src/MultiUrlRequestInfo.cc
  1284. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1286. not properly used in configure script and failed to detect gnutls.
  1287. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1288. and the initialization of pkg-config is done in first occurrence
  1289. of PKG_CHECK_MODULES which is not executed because it is inside of
  1290. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1291. * configure.ac
  1292. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Release 1.7.2
  1294. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1295. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1296. true even if all downloads haven't finished, especially when
  1297. PostDownloadHandler is involved. Changed the condition so that it
  1298. only returns true if both _requestGroups and _reservedGroups are
  1299. empty.
  1300. * src/RequestGroupMan.cc
  1301. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1302. Log listening port for BitTorrent/DHT in notice level.
  1303. * src/DHTConnectionImpl.cc
  1304. * src/PeerListenCommand.cc
  1305. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Updated po templates.
  1307. * po/aria2.pot
  1308. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Bump up version number to 1.7.2
  1310. * configure.ac
  1311. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Changed default value of --enable-dht from 'false' to 'true'.
  1313. * doc/aria2c.1.txt
  1314. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1315. Enabled DHT by default because of Magnet URI support. To disable
  1316. DHT, use --enable-dht=false
  1317. * src/OptionHandlerFactory.cc
  1318. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. Print Magnet URI in -S output.
  1320. * src/AnnounceList.cc
  1321. * src/bittorrent_helper.cc
  1322. * src/bittorrent_helper.h
  1323. * test/BittorrentHelperTest.cc
  1324. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Added --bt-prioritize-piece option to aria2rpc.
  1326. * doc/xmlrpc/aria2rpc
  1327. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Refer Magnet URI in --help. Made some cosmetic changes.
  1329. * src/version_usage.cc
  1330. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Updated -T and -M option.
  1332. * doc/aria2c.1.txt
  1333. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Fixed typo
  1335. * doc/aria2c.1.txt
  1336. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Fixed the bug that line separator is missing in horizontal bar.
  1338. * doc/xmlrpc/aria2mon
  1339. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. Updated usage text for --metalink-file option.
  1341. * src/usage_text.h
  1342. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1343. If '-' is given as an argument to --metalink-file option, aria2
  1344. reads Metalink file from stdin.
  1345. * src/OptionHandlerFactory.cc
  1346. * src/OptionHandlerImpl.h
  1347. * src/a2io.h
  1348. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1349. Fixed the bug that aria2 listens wrong port if --interface option
  1350. is used.
  1351. * src/SocketCore.cc
  1352. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. Fixed the bug that query parameter in magnet URI is not decoded.
  1354. * src/magnet.cc
  1355. * test/MagnetTest.cc
  1356. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Specified defaultSize as an argument for easy testing.
  1358. * src/util.cc
  1359. * src/util.h
  1360. * test/UtilTest.cc
  1361. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1362. Release 1.7.1
  1363. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. Bump up version number to 1.7.1
  1365. * configure.ac
  1366. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1367. Fixed the bug --bt-prioritize-piece=tail is not working.
  1368. * src/util.cc
  1369. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1370. Release 1.7.0
  1371. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Updated po templates.
  1373. * po/aria2.pot
  1374. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Updated help message for --bt-prioritize-piece. Some cosmetic
  1376. changes.
  1377. * doc/aria2c.1.txt
  1378. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1379. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1380. * src/usage_text.h
  1381. * src/util.cc
  1382. * test/UtilTest.cc
  1383. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Updated Russian, Ukrainian, German and French translations.
  1385. Thanks to all translators involved.
  1386. * po/de.po
  1387. * po/fr.po
  1388. * po/ru.po
  1389. * po/uk.po
  1390. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1391. Mentioned about pkg-config
  1392. * README
  1393. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Fixed typo. Referred --index-out option in BitTorrent notes.
  1395. * README
  1396. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1398. bind, try all addresses until success
  1399. * src/SocketCore.cc
  1400. * src/SocketCore.h
  1401. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1402. Updated po templates.
  1403. * po/aria2.pot
  1404. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Bump up version number to 1.7.0
  1406. * configure.ac
  1407. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1409. * src/DefaultPieceStorage.cc
  1410. * src/DefaultPieceStorage.h
  1411. * src/PieceStorage.h
  1412. * src/UnknownLengthPieceStorage.cc
  1413. * src/UnknownLengthPieceStorage.h
  1414. * test/MockPieceStorage.h
  1415. * test/ProtocolDetectorTest.cc
  1416. * test/XmlRpcMethodTest.cc
  1417. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1418. Documented in man page that if getifaddrs() is missing,
  1419. --interface option doesn't accept interface name.
  1420. * doc/aria2c.1.txt
  1421. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1422. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1423. * src/DefaultBtAnnounce.cc
  1424. * src/DefaultBtAnnounce.h
  1425. * test/DefaultBtAnnounceTest.cc
  1426. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1427. Fixed the bug that connection is always dropped if handshake
  1428. message in extension protocol don't have metadata_size.
  1429. src/HandshakeExtensionMessage.cc
  1430. * src/HandshakeExtensionMessage.cc
  1431. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1432. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1433. text saying DHT is recommended when Magnet URI is provided.
  1434. * doc/aria2c.1.txt
  1435. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1437. URI is supplied. Notify user that they should consider enabling
  1438. DHT if they use Magnet URI.
  1439. * src/RequestGroup.cc
  1440. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Added --disable-ipv6 option to disable IPv6.
  1442. * doc/aria2c.1.txt
  1443. * src/InitiateConnectionCommand.cc
  1444. * src/NameResolver.cc
  1445. * src/NameResolver.h
  1446. * src/OptionHandlerFactory.cc
  1447. * src/main.cc
  1448. * src/prefs.cc
  1449. * src/prefs.h
  1450. * src/usage_text.h
  1451. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1452. Updated usage text for --bt-prioritize-piece option.
  1453. * doc/aria2c.1.txt
  1454. * src/usage_text.h
  1455. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1457. given and PACKAGE is missing in the system or FEATURE cannot be
  1458. enabled, print error message and stop the script.
  1459. * configure.ac
  1460. * m4/aria2_arg.m4
  1461. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Halt metadata download immediately when metadata download is done.
  1463. Don't wait unresponsive tracker.
  1464. * src/ByteArrayDiskWriter.h
  1465. * src/DefaultBtInteractive.cc
  1466. * src/DefaultExtensionMessageFactory.cc
  1467. * src/DefaultExtensionMessageFactory.h
  1468. * src/PeerInteractionCommand.cc
  1469. * src/UTMetadataDataExtensionMessage.cc
  1470. * src/UTMetadataDataExtensionMessage.h
  1471. * src/UTMetadataRequestExtensionMessage.cc
  1472. * test/UTMetadataDataExtensionMessageTest.cc
  1473. * test/UTMetadataRequestExtensionMessageTest.cc
  1474. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. Documented --interface option in man page.
  1476. * doc/aria2c.1.txt
  1477. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Try resolved address in the order received from the resolver.
  1479. * src/DNSCache.h
  1480. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Added debug logs.
  1482. * src/SocketCore.cc
  1483. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Fixed type of tail to uint64_t
  1485. * src/util.cc
  1486. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1487. Added --interface option. This feature binds sockets to given
  1488. interface. You can specify interface name, IP address and
  1489. hostname.
  1490. * configure.ac
  1491. * src/OptionHandlerFactory.cc
  1492. * src/SocketCore.cc
  1493. * src/SocketCore.h
  1494. * src/main.cc
  1495. * src/message.h
  1496. * src/prefs.cc
  1497. * src/prefs.h
  1498. * src/usage_text.h
  1499. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Updated man page for bt-prioritize-piece option in -i list.
  1501. * doc/aria2c.1.txt
  1502. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Added bt-prioritize-piece option to -i list.
  1504. * src/download_helper.cc
  1505. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Removed --http-auth-scheme option from man page.
  1507. * doc/aria2c.1.txt
  1508. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1509. Removed --http-auth-scheme option since it doesn't do nothing.
  1510. * src/OptionHandlerFactory.cc
  1511. * src/prefs.cc
  1512. * src/prefs.h
  1513. * src/usage_text.h
  1514. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Adjusted the number of peer info which get_peers reply message can
  1516. carry.
  1517. * src/DHTGetPeersReplyMessage.cc
  1518. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1519. Added extension_message_test_helper.h to aria2c_SOURCES.
  1520. * test/Makefile.am
  1521. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Documented --bt-prioritize-piece option in man page.
  1523. * doc/aria2c.1.txt
  1524. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1525. Added option --bt-prioritize-piece. This option instruct aria2 to
  1526. try to download first and last pieces of each file first. The
  1527. argument can contain 2 keywords:head and tail. To include both
  1528. keywords, they must be separated by comma. These keywords can take
  1529. one parameter, SIZE. For example , if head=SIZE is specified,
  1530. pieces in the range of first SIZE bytes of each file get higher
  1531. priority. tail=SIZE means the range of last SIZE bytes of each
  1532. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1533. * src/DefaultPieceStorage.h
  1534. * src/Makefile.am
  1535. * src/OptionHandlerFactory.cc
  1536. * src/OptionHandlerImpl.h
  1537. * src/PriorityPieceSelector.cc
  1538. * src/PriorityPieceSelector.h
  1539. * src/RequestGroup.cc
  1540. * src/prefs.cc
  1541. * src/prefs.h
  1542. * src/usage_text.h
  1543. * src/util.cc
  1544. * src/util.h
  1545. * test/Makefile.am
  1546. * test/MockPieceSelector.h
  1547. * test/PriorityPieceSelectorTest.cc
  1548. * test/UtilTest.cc
  1549. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Fixed typo
  1551. * src/HttpRequest.h
  1552. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1553. In Magnet URI with tr parameter, put each announce URI in separate
  1554. tier.
  1555. * src/bittorrent_helper.cc
  1556. * test/BittorrentHelperTest.cc
  1557. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1558. Renamed ExtensionMessage::getBencodedData() as
  1559. ExtensionMessage::getPayload()
  1560. * src/BtExtendedMessage.cc
  1561. * src/ExtensionMessage.h
  1562. * src/HandshakeExtensionMessage.cc
  1563. * src/HandshakeExtensionMessage.h
  1564. * src/UTMetadataDataExtensionMessage.cc
  1565. * src/UTMetadataDataExtensionMessage.h
  1566. * src/UTMetadataRejectExtensionMessage.cc
  1567. * src/UTMetadataRejectExtensionMessage.h
  1568. * src/UTMetadataRequestExtensionMessage.cc
  1569. * src/UTMetadataRequestExtensionMessage.h
  1570. * src/UTPexExtensionMessage.cc
  1571. * src/UTPexExtensionMessage.h
  1572. * test/HandshakeExtensionMessageTest.cc
  1573. * test/MockExtensionMessage.h
  1574. * test/UTMetadataDataExtensionMessageTest.cc
  1575. * test/UTMetadataRejectExtensionMessageTest.cc
  1576. * test/UTMetadataRequestExtensionMessageTest.cc
  1577. * test/UTPexExtensionMessageTest.cc
  1578. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Updated man page for BitTorrent Magnet URI.
  1580. * doc/aria2c.1.txt
  1581. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1582. Call DownloadContext::setOwnerRequestGroup() in
  1583. RequestGroup::setDownloadContext().
  1584. * src/BtDependency.cc
  1585. * src/RequestGroup.cc
  1586. * src/RequestGroup.h
  1587. * src/download_helper.cc
  1588. * test/DefaultBtMessageDispatcherTest.cc
  1589. * test/DefaultExtensionMessageFactoryTest.cc
  1590. * test/HandshakeExtensionMessageTest.cc
  1591. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1593. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1594. from metadata, use new metadata2Torrent() function.
  1595. * src/BtDependency.cc
  1596. * src/UTMetadataPostDownloadHandler.cc
  1597. * src/bittorrent_helper.cc
  1598. * src/bittorrent_helper.h
  1599. * test/BittorrentHelperTest.cc
  1600. * test/BtDependencyTest.cc
  1601. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Use createRequestGroupForUri to create the download for torrent
  1603. file.
  1604. * src/Metalink2RequestGroup.cc
  1605. * test/Metalink2RequestGroupTest.cc
  1606. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1607. Fixed typo
  1608. * src/DownloadContext.h
  1609. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Use createRequestGroupForBitTorrent()
  1611. * src/BtPostDownloadHandler.cc
  1612. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1613. Added remove().
  1614. * src/Option.cc
  1615. * src/Option.h
  1616. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1617. Removed options which is only valid for URIs specified in
  1618. command-line. If they are left, because op is used as a template
  1619. for new RequestGroup(such as created in XML-RPC command,
  1620. BtPostDownloadHandler etc), they causes unintentional effect.
  1621. * src/main.cc
  1622. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Refer to option value of PREF_OUT only in download_helper.
  1624. * src/FtpNegotiationCommand.cc
  1625. * src/HttpResponseCommand.cc
  1626. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1627. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1628. * src/download_helper.cc
  1629. * src/download_helper.h
  1630. * src/XmlRpcMethodImpl.cc
  1631. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Updated man page for changeOption XML-RPC method.
  1633. * doc/aria2c.1.txt
  1634. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1635. Added --bt-max-peers option to changeOption XML-RPC method.
  1636. * src/XmlRpcMethod.cc
  1637. * src/XmlRpcMethodImpl.cc
  1638. * test/XmlRpcMethodTest.cc
  1639. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1641. * test/XmlRpcMethodTest.cc
  1642. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1643. Removed redundant DownloadContext::hasAttribute(...) calls.
  1644. * src/ConsoleStatCalc.cc
  1645. * src/RequestGroup.cc
  1646. * src/XmlRpcMethodImpl.cc
  1647. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1648. Changed the number of tracker request attempt from 5 to 2.
  1649. * src/TrackerWatcherCommand.cc
  1650. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1651. Use host and protocol in original URI, because URI selector
  1652. selects URI based on original URI, not redirected one.
  1653. * src/Request.cc
  1654. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Fixed the bug which causes segmentation fault with tellWaiting
  1656. XML-RPC method when BitTorrent download is waiting. The key of
  1657. BtRegistry is changed from info hash to GID, because it is
  1658. registered per RequestGroup, not info hash.
  1659. * src/BtRegistry.cc
  1660. * src/BtRegistry.h
  1661. * src/BtSetup.cc
  1662. * src/ConsoleStatCalc.cc
  1663. * src/InitiatorMSEHandshakeCommand.cc
  1664. * src/PeerInitiateConnectionCommand.cc
  1665. * src/PeerInteractionCommand.cc
  1666. * src/PeerInteractionCommand.h
  1667. * src/PeerReceiveHandshakeCommand.cc
  1668. * src/RequestGroup.cc
  1669. * src/XmlRpcMethodImpl.cc
  1670. * test/BtRegistryTest.cc
  1671. * test/XmlRpcMethodTest.cc
  1672. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Updated man page for changeOption XML-RPC method.
  1674. * doc/aria2c.1.txt
  1675. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1676. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1677. method.
  1678. * src/XmlRpcMethod.cc
  1679. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Documented about BitTorrent Magnet URI in man page.
  1681. * doc/aria2c.1.txt
  1682. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1684. inherited to generated RequestGroup.
  1685. * src/UTMetadataPostDownloadHandler.cc
  1686. * test/UTMetadataPostDownloadHandlerTest.cc
  1687. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Prepended "[METADATA]" before dn.
  1689. * src/bittorrent_helper.cc
  1690. * test/BittorrentHelperTest.cc
  1691. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1692. Rewritten Magnet URI parser.
  1693. * src/Makefile.am
  1694. * src/ProtocolDetector.cc
  1695. * src/bittorrent_helper.cc
  1696. * src/bittorrent_helper.h
  1697. * src/download_helper.cc
  1698. * src/magnet.cc
  1699. * src/magnet.h
  1700. * test/BittorrentHelperTest.cc
  1701. * test/MagnetTest.cc
  1702. * test/Makefile.am
  1703. * test/ProtocolDetectorTest.cc
  1704. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1705. Use hton64
  1706. * src/base32.cc
  1707. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Added Base32 encoded BitTorrent Magnet Link support.
  1709. * src/Makefile.am
  1710. * src/base32.cc
  1711. * src/base32.h
  1712. * src/bittorrent_helper.cc
  1713. * test/Base32Test.cc
  1714. * test/BittorrentHelperTest.cc
  1715. * test/Makefile.am
  1716. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1718. supported yet. Fixed typo in method name in RequestGroup. In
  1719. metadataGetMode, don't show "Your share ratio was ..." message.
  1720. * src/DefaultBtInteractive.cc
  1721. * src/DefaultBtInteractive.h
  1722. * src/DownloadHandlerFactory.cc
  1723. * src/DownloadHandlerFactory.h
  1724. * src/HandshakeExtensionMessage.cc
  1725. * src/Makefile.am
  1726. * src/Metalink2RequestGroup.cc
  1727. * src/PeerInteractionCommand.cc
  1728. * src/RequestGroup.cc
  1729. * src/RequestGroup.h
  1730. * src/UTMetadataPostDownloadHandler.cc
  1731. * src/UTMetadataPostDownloadHandler.h
  1732. * src/download_helper.cc
  1733. * test/HandshakeExtensionMessageTest.cc
  1734. * test/Makefile.am
  1735. * test/UTMetadataPostDownloadHandlerTest.cc
  1736. * test/UTMetadataRejectExtensionMessageTest.cc
  1737. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. In metadataGetMode, don't show SEEDING.
  1739. * src/ConsoleStatCalc.cc
  1740. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Fixed ut_metadata data handling. Implemented
  1742. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1743. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1744. metadata_size is received.
  1745. * src/DefaultExtensionMessageFactory.cc
  1746. * src/DefaultExtensionMessageFactory.h
  1747. * src/HandshakeExtensionMessage.cc
  1748. * src/HandshakeExtensionMessage.h
  1749. * src/UTMetadataDataExtensionMessage.cc
  1750. * src/UTMetadataDataExtensionMessage.h
  1751. * src/UTMetadataRequestExtensionMessage.cc
  1752. * src/UTMetadataRequestFactory.cc
  1753. * src/UTMetadataRequestFactory.h
  1754. * src/UTMetadataRequestTracker.cc
  1755. * src/UTMetadataRequestTracker.h
  1756. * test/DefaultExtensionMessageFactoryTest.cc
  1757. * test/HandshakeExtensionMessageTest.cc
  1758. * test/MockBtMessage.h
  1759. * test/UTMetadataDataExtensionMessageTest.cc
  1760. * test/UTMetadataRequestExtensionMessageTest.cc
  1761. * test/UTMetadataRequestFactoryTest.cc
  1762. * test/UTMetadataRequestTrackerTest.cc
  1763. * test/extension_message_test_helper.h
  1764. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Drop connection if ut_metadata reject message is received.
  1766. * src/UTMetadataRejectExtensionMessage.cc
  1767. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1768. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1769. get high enough in that mode.
  1770. * src/ActivePeerConnectionCommand.cc
  1771. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Added BitTorrent magnet link support to ProtocolDetector.
  1773. * src/ProtocolDetector.cc
  1774. * src/ProtocolDetector.h
  1775. * test/ProtocolDetectorTest.cc
  1776. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Don't inject validator into BtMessage in metadataGetMode because
  1778. most of the checks depends on the total length of download but it
  1779. is unknown. Delegate metadataGetMode to BtMessage.
  1780. * src/DefaultBtMessageFactory.cc
  1781. * src/DefaultBtMessageFactory.h
  1782. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1783. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1784. * src/DefaultPieceStorage.h
  1785. * src/PieceStorage.h
  1786. * src/UnknownLengthPieceStorage.h
  1787. * test/MockPieceStorage.h
  1788. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Added markTotalLengthIsKnown().
  1790. * src/DownloadContext.h
  1791. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1792. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1793. missing. If metadata is missing, always use DHT when it is ready.
  1794. * src/BtSetup.cc
  1795. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Added parseMagnetLink(). Hex encoded info hash is supported.
  1797. Base32 encoded info hash is not supported yet.
  1798. * src/bittorrent_helper.cc
  1799. * src/bittorrent_helper.h
  1800. * test/BittorrentHelperTest.cc
  1801. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Added FromHex()
  1803. * src/util.cc
  1804. * src/util.h
  1805. * test/UtilTest.cc
  1806. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Added _metadataGetMode member variable. It toggles the action when
  1808. messages are received: usually they almost do nothing if
  1809. _metadataGetMode is true.
  1810. * src/AbstractBtMessage.cc
  1811. * src/AbstractBtMessage.h
  1812. * src/BtAllowedFastMessage.cc
  1813. * src/BtBitfieldMessage.cc
  1814. * src/BtCancelMessage.cc
  1815. * src/BtChokeMessage.cc
  1816. * src/BtHaveAllMessage.cc
  1817. * src/BtHaveMessage.cc
  1818. * src/BtInterestedMessage.cc
  1819. * src/BtNotInterestedMessage.cc
  1820. * src/BtPieceMessage.cc
  1821. * src/BtRejectMessage.cc
  1822. * src/BtRequestMessage.cc
  1823. * src/BtUnchokeMessage.cc
  1824. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Added bencode::decode overload functions. They have extra argument
  1826. 'end', passed by reference. 'end' points to the beyond the last
  1827. position of data used in decoding process.
  1828. * src/bencode.cc
  1829. * src/bencode.h
  1830. * test/BencodeTest.cc
  1831. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. Initial support of Extension for Peers to Send Metadata
  1833. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1834. metadata from swarm.
  1835. * src/BtConstants.h
  1836. * src/DefaultBtInteractive.cc
  1837. * src/DefaultExtensionMessageFactory.cc
  1838. * src/DefaultExtensionMessageFactory.h
  1839. * src/ExtensionMessage.h
  1840. * src/ExtensionMessageRegistry.h
  1841. * src/HandshakeExtensionMessage.cc
  1842. * src/HandshakeExtensionMessage.h
  1843. * src/Makefile.am
  1844. * src/PeerConnection.h
  1845. * src/PeerInteractionCommand.cc
  1846. * src/UTMetadataDataExtensionMessage.cc
  1847. * src/UTMetadataDataExtensionMessage.h
  1848. * src/UTMetadataExtensionMessage.cc
  1849. * src/UTMetadataExtensionMessage.h
  1850. * src/UTMetadataRejectExtensionMessage.cc
  1851. * src/UTMetadataRejectExtensionMessage.h
  1852. * src/UTMetadataRequestExtensionMessage.cc
  1853. * src/UTMetadataRequestExtensionMessage.h
  1854. * src/bittorrent_helper.cc
  1855. * src/bittorrent_helper.h
  1856. * test/BittorrentHelperTest.cc
  1857. * test/DefaultExtensionMessageFactoryTest.cc
  1858. * test/HandshakeExtensionMessageTest.cc
  1859. * test/Makefile.am
  1860. * test/UTMetadataDataExtensionMessageTest.cc
  1861. * test/UTMetadataRejectExtensionMessageTest.cc
  1862. * test/UTMetadataRequestExtensionMessageTest.cc
  1863. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Cancel segment in prepareForRetry() because there is a chance that
  1865. the command has segments.
  1866. * src/CreateRequestCommand.cc
  1867. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1868. Fixed the bug that slow server is not knocked down in favor of
  1869. faster one.
  1870. * src/AbstractCommand.cc
  1871. * src/DefaultPieceStorage.cc
  1872. * src/DefaultPieceStorage.h
  1873. * src/PieceStorage.h
  1874. * src/UnknownLengthPieceStorage.cc
  1875. * src/UnknownLengthPieceStorage.h
  1876. * test/MockPieceStorage.h
  1877. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1878. Fixed the bug that Request object is not added to
  1879. _inFlightRequests in findFasterRequest().
  1880. * src/FileEntry.cc
  1881. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Changed the strategry of how to increase the number of outstanding
  1883. requests. Now the number is doubled if there are no outstanding
  1884. requests after receiving messages.
  1885. * src/BtConstants.h
  1886. * src/DefaultBtInteractive.cc
  1887. * src/DefaultBtInteractive.h
  1888. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Check socket for reading if there are outstanding requests.
  1890. * src/PeerInteractionCommand.cc
  1891. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1892. Moved frequently called methods to header file so they get
  1893. inlined.
  1894. * src/RequestSlot.cc
  1895. * src/RequestSlot.h
  1896. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1897. Copied in_addr instead of just casting from char* which might
  1898. violate strict aliasing rules.
  1899. * src/AsyncNameResolver.cc
  1900. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Use dynamic_pointer_cast
  1902. * test/BtPieceMessageTest.cc
  1903. * test/BtRequestMessageTest.cc
  1904. * test/DefaultBtRequestFactoryTest.cc
  1905. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1906. Added testSetUrl20()
  1907. * test/RequestTest.cc
  1908. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1909. Code cleanup
  1910. * src/bittorrent_helper.cc
  1911. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Use C++ style cast
  1913. * src/AsyncNameResolver.cc
  1914. * src/Base64.h
  1915. * src/BtBitfieldMessage.cc
  1916. * src/BtHandshakeMessage.cc
  1917. * src/DefaultBtMessageFactory.cc
  1918. * src/DefaultBtProgressInfoFile.cc
  1919. * src/EpollEventPoll.cc
  1920. * src/ExpatMetalinkProcessor.cc
  1921. * src/IteratableChecksumValidator.cc
  1922. * src/IteratableChunkChecksumValidator.cc
  1923. * src/MessageDigestHelper.cc
  1924. * src/Platform.cc
  1925. * src/RequestGroupMan.cc
  1926. * src/SingleFileAllocationIterator.cc
  1927. * src/Sqlite3MozCookieParser.cc
  1928. * src/XML2SAXMetalinkProcessor.cc
  1929. * src/Xml2XmlRpcRequestProcessor.cc
  1930. * src/util.cc
  1931. * src/util.h
  1932. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1933. Fixed integer potential alignment problem.
  1934. * src/bitfield.h
  1935. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1936. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1937. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1938. include file ordering.
  1939. * src/PeerListProcessor.h
  1940. * src/bittorrent_helper.cc
  1941. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1942. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1943. * src/Request.cc
  1944. * src/util.cc
  1945. * src/util.h
  1946. * test/RequestTest.cc
  1947. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Rewritten util::uitos()
  1949. * src/util.h
  1950. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1951. Code cleanup
  1952. * src/Request.cc
  1953. * src/Request.h
  1954. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Rewritten Request::parseUrl()
  1956. * src/Request.cc
  1957. * test/RequestTest.cc
  1958. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Removed unused macro SAFE_CHARS
  1960. * src/Request.cc
  1961. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1962. Updated doc
  1963. * src/DHTRoutingTableDeserializer.cc
  1964. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1965. Release 1.6.3
  1966. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Removed unused function.
  1968. * test/DHTPeerAnnounceStorageTest.cc
  1969. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Only decrement cols if cols > 0
  1971. * src/ConsoleStatCalc.cc
  1972. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1973. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1974. translations. Thanks to all translators.
  1975. * po/ca.po
  1976. * po/fr.po
  1977. * po/it.po
  1978. * po/ja.po
  1979. * po/pl.po
  1980. * po/ru.po
  1981. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1982. Updated translation template
  1983. * po
  1984. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1985. Fixed compile error without ssl library.
  1986. * src/util.cc
  1987. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1988. Logged received nodes in get_peers reply message.
  1989. * src/DHTAbstractNodeLookupTask.cc
  1990. * src/DHTAbstractNodeLookupTask.h
  1991. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1993. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1994. * src/DHTMessageDispatcherImpl.cc
  1995. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1996. Don't reuse URI if Request pool is not empty.
  1997. * src/CreateRequestCommand.cc
  1998. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2000. receive get_peers request for torrent which the client is now
  2001. downloading.
  2002. * src/BtSetup.cc
  2003. * src/DHTPeerAnnounceEntry.cc
  2004. * src/DHTPeerAnnounceEntry.h
  2005. * src/DHTPeerAnnounceStorage.cc
  2006. * src/DHTPeerAnnounceStorage.h
  2007. * src/RequestGroup.cc
  2008. * test/DHTPeerAnnounceEntryTest.cc
  2009. * test/DHTPeerAnnounceStorageTest.cc
  2010. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2011. Fixed the bug that in Windows environment new blank line is
  2012. inserted when console readout is updated.
  2013. * src/ConsoleStatCalc.cc
  2014. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2015. Throw exception if binding listening port is failed. Removed
  2016. RequestGroupMan::getInitialCommand(). Use
  2017. fillRequestGroupFromReserver() instead. Delete commands for
  2018. RequestGroup which has errors when it is being added.
  2019. * src/BtSetup.cc
  2020. * src/DownloadEngine.cc
  2021. * src/DownloadEngine.h
  2022. * src/DownloadEngineFactory.cc
  2023. * src/MultiUrlRequestInfo.cc
  2024. * src/RequestGroupMan.cc
  2025. * src/RequestGroupMan.h
  2026. * test/RequestGroupManTest.cc
  2027. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2028. Fixed the bug that when downloading more than one torrent,
  2029. listening port is not reported properly to tracker for 2nd or
  2030. later torrents.
  2031. * src/BtSetup.cc
  2032. * src/PeerListenCommand.cc
  2033. * src/PeerListenCommand.h
  2034. * src/RequestGroup.cc
  2035. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2036. Bump up version number to 1.6.3
  2037. * configure.ac
  2038. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2039. Removed Util.cc from POTFILES.in
  2040. * po/POTFILES.in
  2041. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2042. Updated man page for previous change.
  2043. * doc/aria2c.1.txt
  2044. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2045. If user name is embedded but password is missing in URI, first
  2046. resolve password using .netrc. If password is found in .netrc,
  2047. then use it as password. If not, use the password specified in
  2048. --ftp-passwd.
  2049. * src/AuthConfigFactory.cc
  2050. * src/Request.cc
  2051. * src/Request.h
  2052. * test/AuthConfigFactoryTest.cc
  2053. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. Fixed typo
  2055. * doc/aria2c.1.txt
  2056. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2057. Fixed typo
  2058. * src/usage_text.h
  2059. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2060. Added missing bitfield.cc
  2061. * src/bitfield.cc
  2062. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Renamed Util.{cc,h} as util.{cc,h}
  2064. * src/Util.cc
  2065. * src/Util.h
  2066. * src/util.cc
  2067. * src/util.h
  2068. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Moved static functions in Util class to namespace util.
  2070. * src
  2071. * test
  2072. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2074. Moved generateRandomKey to bittorrent_helper.cc.
  2075. * src/DHTBucket.cc
  2076. * src/DHTGetPeersMessage.cc
  2077. * src/DHTGetPeersReplyMessage.cc
  2078. * src/DHTMessage.cc
  2079. * src/DHTNode.cc
  2080. * src/DHTTokenTracker.cc
  2081. * src/DHTUtil.cc: Removed.
  2082. * src/DHTUtil.h: Removed.
  2083. * src/Makefile.am
  2084. * src/Util.cc
  2085. * src/Util.h
  2086. * src/bitfield.h
  2087. * src/bittorrent_helper.cc
  2088. * src/bittorrent_helper.h
  2089. * test/ARC4Test.cc
  2090. * test/BNodeTest.cc
  2091. * test/DHTAnnouncePeerMessageTest.cc
  2092. * test/DHTAnnouncePeerReplyMessageTest.cc
  2093. * test/DHTFindNodeMessageTest.cc
  2094. * test/DHTFindNodeReplyMessageTest.cc
  2095. * test/DHTGetPeersMessageTest.cc
  2096. * test/DHTGetPeersReplyMessageTest.cc
  2097. * test/DHTPingMessageTest.cc
  2098. * test/DHTPingReplyMessageTest.cc
  2099. * test/DHTTokenTrackerTest.cc
  2100. * test/DHTUtilTest.cc: Removed.
  2101. * test/Makefile.am
  2102. * test/UtilTest.cc
  2103. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Removed the call to trim() because trim() is called for each
  2105. element in split().
  2106. * src/CookieParser.cc
  2107. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2108. Replaced Util::slice() with split()
  2109. * src/AbstractCommand.cc
  2110. * src/CookieParser.cc
  2111. * src/File.cc
  2112. * src/HttpHeaderProcessor.cc
  2113. * src/HttpRequest.cc
  2114. * src/Metalink2RequestGroup.cc
  2115. * src/MetalinkParserController.cc
  2116. * src/Netrc.cc
  2117. * src/NsCookieParser.cc
  2118. * src/ParameterizedStringParser.cc
  2119. * src/ServerStatMan.cc
  2120. * src/UriListParser.cc
  2121. * src/Util.cc
  2122. * src/Util.h
  2123. * src/bittorrent_helper.cc
  2124. * test/UtilTest.cc
  2125. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. Use request->getDir() instead of "/" for embedded user/pass in
  2127. URI.
  2128. * src/AuthConfigFactory.cc
  2129. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2130. Fixed wrong insertion point for BasicCred.
  2131. * src/AuthConfigFactory.cc
  2132. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Allowed non-regular file in LocalFilePathOptionHandler
  2134. * src/OptionHandlerImpl.h
  2135. * src/message.h
  2136. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2138. * src/Netrc.cc
  2139. * src/Util.h
  2140. * test/NetrcTest.cc
  2141. * test/sample.netrc
  2142. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Fixed typo
  2144. * src/BtDependency.cc
  2145. * src/BtRejectMessage.cc
  2146. * src/FtpConnection.cc
  2147. * src/HttpHeaderProcessor.h
  2148. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Fixed lintian report in man page
  2150. * doc/aria2c.1.txt
  2151. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2152. Release 1.6.2
  2153. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Updated Ukrainian translation. Thanks to all translators.
  2155. * po/uk.po
  2156. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2157. Updated translation template
  2158. * po
  2159. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Bump up version number to 1.6.2
  2161. * configure.ac
  2162. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Updated licence message in -v output.
  2164. * src/version_usage.cc
  2165. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Replaced aria2 with aria2c in help message.
  2167. * src/version_usage.cc
  2168. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2170. * src/version_usage.cc
  2171. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2172. Quoted localedir
  2173. * src/Makefile.am
  2174. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2176. utime. Check header for utime.h.
  2177. * configure.ac
  2178. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2180. * configure.ac
  2181. * src/daemon.cc
  2182. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2183. Don't set localedir manually. Leave it to autoconf.
  2184. * configure.ac
  2185. * src/Makefile.am
  2186. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2187. Added --install to ACLOCAL_AMFLAGS.
  2188. Removed m4 from SUBDIRS.
  2189. Updated automake 1.11 and autoconf 2.64.
  2190. Replaced some obsolute macros with new one.
  2191. * Makefile.am
  2192. * configure.ac
  2193. * m4/aria2_arg.m4
  2194. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Removed Makefile.am in m4 directory.
  2196. * configure.ac
  2197. * m4/ChangeLog
  2198. * m4/Makefile.am
  2199. * m4/Makefile.in
  2200. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2201. Removed unused m4 macros.
  2202. * m4/intldir.m4
  2203. * m4/inttypes.m4
  2204. * m4/isc-posix.m4
  2205. * m4/libgnutls-extra.m4
  2206. * m4/ulonglong.m4
  2207. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Fixed the bug that causes segmentation fault if
  2209. req->getCurrentUrl() contains printf formatting characters such as
  2210. %d. The statement that causes this bug is useless and removed.
  2211. * src/AbstractCommand.cc
  2212. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2213. * Release 1.6.1
  2214. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Updated Simplified Chinese translation. Thanks to translators.
  2216. * po/zh_CN.po
  2217. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Updated translation template
  2219. * po
  2220. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2221. Bump up version number to 1.6.1
  2222. * configure.ac
  2223. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2224. Changed interval from 120 to 60 for dropping inactive peer.
  2225. * src/DefaultBtInteractive.cc
  2226. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Updated man page for --user-agent and --peer-id-prefix option.
  2228. * doc/aria2c.1.txt
  2229. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Code clean up
  2231. * src/BtPostDownloadHandler.cc
  2232. * src/ContentTypeRequestGroupCriteria.cc
  2233. * src/ContentTypeRequestGroupCriteria.h
  2234. * src/DownloadHandlerConstants.cc
  2235. * src/DownloadHandlerConstants.h
  2236. * src/DownloadHandlerFactory.cc
  2237. * src/MetalinkPostDownloadHandler.cc
  2238. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2239. Don't save control file when aria2 exists while checking piece
  2240. hash(behavior of -V option). If control file doesn't exist when
  2241. aria2 launched, the completed length in saved control file will be
  2242. 0 byte and this confuses user. disableSaveControlFile() is called
  2243. in RequestGroup::processCheckIntegrityEntry().
  2244. enableSaveControlFile() will be called after hash checking is
  2245. done. See CheckIntegrityCommand.
  2246. * src/CheckIntegrityCommand.cc
  2247. * src/RequestGroup.cc
  2248. * src/RequestGroup.h
  2249. * src/RequestGroupMan.cc
  2250. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2251. Included version number in Peer ID and client version. Peer ID
  2252. now starts with "aria2/VERSION-", where VERSION is
  2253. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2254. * src/DefaultBtInteractive.cc
  2255. * src/OptionHandlerFactory.cc
  2256. * src/bittorrent_helper.cc
  2257. * src/bittorrent_helper.h
  2258. * src/main.cc
  2259. * src/usage_text.h
  2260. * test/BittorrentHelperTest.cc
  2261. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Fixed memory leak.
  2263. * src/DownloadCommand.cc
  2264. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2265. Removed server, port, user and passwd key from options before
  2266. XMLRPC::Client.call since they are not options of aria2.
  2267. * doc/xmlrpc/aria2mon
  2268. * doc/xmlrpc/aria2rpc
  2269. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2270. Included version number in user-agent string.
  2271. * src/OptionHandlerFactory.cc
  2272. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2273. Fixed the bug that the option values changed by XML-RPC
  2274. method(changeOption and changeGlobalOption) are overwritten to the
  2275. previous value by the next these request which doesn't contain
  2276. that option value. Supporse max-download-limit is initially 0. You
  2277. changed this value to 100K by changeOption. Then you issue
  2278. changeOption request to change max-upload-limit to 50K. This
  2279. second request doesn't contain xml-download-limit, so it is back
  2280. to initial value, 0. Another improvement is that exception is
  2281. thrown when changeOption and changeGlobalOption request contains
  2282. option name which doesn't allowed in each request.
  2283. * src/DownloadEngine.h
  2284. * src/XmlRpcMethod.cc
  2285. * src/XmlRpcMethod.h
  2286. * src/XmlRpcMethodImpl.cc
  2287. * src/download_helper.cc
  2288. * src/download_helper.h
  2289. * test/XmlRpcMethodTest.cc
  2290. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2291. Added missing MetalinkParserStateImpl.{cc,h}
  2292. * src/MetalinkParserStateImpl.cc
  2293. * src/MetalinkParserStateImpl.h
  2294. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2295. Put all MetalinkParserState subclasses into
  2296. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2297. * src/FileMetalinkParserState.cc: Removed
  2298. * src/FileMetalinkParserState.h: Removed
  2299. * src/FilesMetalinkParserState.cc: Removed
  2300. * src/FilesMetalinkParserState.h: Removed
  2301. * src/FinMetalinkParserState.cc: Removed
  2302. * src/FinMetalinkParserState.h: Removed
  2303. * src/HashMetalinkParserState.cc: Removed
  2304. * src/HashMetalinkParserState.h: Removed
  2305. * src/InitialMetalinkParserState.cc: Removed
  2306. * src/InitialMetalinkParserState.h: Removed
  2307. * src/LanguageMetalinkParserState.cc: Removed
  2308. * src/LanguageMetalinkParserState.h: Removed
  2309. * src/Makefile.am
  2310. * src/MetalinkMetalinkParserState.cc: Removed
  2311. * src/MetalinkMetalinkParserState.h: Removed
  2312. * src/MetalinkParserState.h
  2313. * src/MetalinkParserStateMachine.cc
  2314. * src/MetalinkParserStateMachine.h
  2315. * src/OSMetalinkParserState.cc: Removed
  2316. * src/OSMetalinkParserState.h: Removed
  2317. * src/PieceHashMetalinkParserState.cc: Removed
  2318. * src/PieceHashMetalinkParserState.h: Removed
  2319. * src/PiecesMetalinkParserState.cc: Removed
  2320. * src/PiecesMetalinkParserState.h: Removed
  2321. * src/ResourcesMetalinkParserState.cc: Removed
  2322. * src/ResourcesMetalinkParserState.h: Removed
  2323. * src/SignatureMetalinkParserState.cc: Removed
  2324. * src/SignatureMetalinkParserState.h: Removed
  2325. * src/SizeMetalinkParserState.cc: Removed
  2326. * src/SizeMetalinkParserState.h: Removed
  2327. * src/SkipTagMetalinkParserState.cc: Removed
  2328. * src/SkipTagMetalinkParserState.h: Removed
  2329. * src/URLMetalinkParserState.cc: Removed
  2330. * src/URLMetalinkParserState.h: Removed
  2331. * src/VerificationMetalinkParserState.cc: Removed
  2332. * src/VerificationMetalinkParserState.h: Removed
  2333. * src/VersionMetalinkParserState.cc: Removed
  2334. * src/VersionMetalinkParserState.h: Removed
  2335. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2336. Move all functions in PeerMessageUtil to bittorrent_helper.
  2337. * src/BtBitfieldMessage.cc
  2338. * src/BtBitfieldMessageValidator.h
  2339. * src/BtExtendedMessage.cc
  2340. * src/BtHandshakeMessage.cc
  2341. * src/BtHandshakeMessageValidator.h
  2342. * src/BtPieceMessage.cc
  2343. * src/BtPieceMessageValidator.h
  2344. * src/BtPortMessage.cc
  2345. * src/DHTFindNodeReplyMessage.cc
  2346. * src/DHTGetPeersReplyMessage.cc
  2347. * src/DHTMessageFactoryImpl.cc
  2348. * src/DHTRoutingTableDeserializer.cc
  2349. * src/DHTRoutingTableSerializer.cc
  2350. * src/DHTTokenTracker.cc
  2351. * src/DefaultBtMessageFactory.cc
  2352. * src/IndexBtMessage.cc
  2353. * src/IndexBtMessage.h
  2354. * src/IndexBtMessageValidator.h
  2355. * src/Makefile.am
  2356. * src/PeerMessageUtil.cc: Removed.
  2357. * src/PeerMessageUtil.h: Removed.
  2358. * src/RangeBtMessage.cc
  2359. * src/RangeBtMessage.h
  2360. * src/RangeBtMessageValidator.h
  2361. * src/UTPexExtensionMessage.cc
  2362. * src/ZeroBtMessage.cc
  2363. * src/ZeroBtMessage.h
  2364. * src/bittorrent_helper.cc
  2365. * src/bittorrent_helper.h
  2366. * test/BittorrentHelperTest.cc
  2367. * test/BtAllowedFastMessageTest.cc
  2368. * test/BtBitfieldMessageTest.cc
  2369. * test/BtCancelMessageTest.cc
  2370. * test/BtChokeMessageTest.cc
  2371. * test/BtExtendedMessageTest.cc
  2372. * test/BtHandshakeMessageTest.cc
  2373. * test/BtHaveAllMessageTest.cc
  2374. * test/BtHaveMessageTest.cc
  2375. * test/BtHaveNoneMessageTest.cc
  2376. * test/BtInterestedMessageTest.cc
  2377. * test/BtNotInterestedMessageTest.cc
  2378. * test/BtPieceMessageTest.cc
  2379. * test/BtPortMessageTest.cc
  2380. * test/BtRejectMessageTest.cc
  2381. * test/BtRequestMessageTest.cc
  2382. * test/BtSuggestPieceMessageTest.cc
  2383. * test/BtUnchokeMessageTest.cc
  2384. * test/DHTFindNodeReplyMessageTest.cc
  2385. * test/DHTGetPeersReplyMessageTest.cc
  2386. * test/DHTMessageFactoryImplTest.cc
  2387. * test/DHTRoutingTableDeserializerTest.cc
  2388. * test/DHTRoutingTableSerializerTest.cc
  2389. * test/DefaultBtMessageFactoryTest.cc
  2390. * test/DefaultExtensionMessageFactoryTest.cc
  2391. * test/Makefile.am
  2392. * test/PeerListProcessorTest.cc
  2393. * test/PeerMessageUtilTest.cc: Removed.
  2394. * test/UTPexExtensionMessageTest.cc
  2395. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2396. Limit the size of values list when sending get_peers reply.
  2397. * src/DHTGetPeersReplyMessage.cc
  2398. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Updated banner
  2400. * doc/xmlrpc/aria2rpc
  2401. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Added missing help message for remove command.
  2403. * doc/xmlrpc/aria2rpc
  2404. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Generated configure and config.h.in
  2406. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2407. Add check for fork(), which is missing on MinGW
  2408. * src/daemon.cc
  2409. * configure.ac
  2410. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2411. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2412. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2413. Util::httpGMT().
  2414. * src/Util.cc
  2415. * src/Util.h
  2416. * test/UtilTest.cc
  2417. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2418. * Release 1.6.0
  2419. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2420. Fixed a path to xmlrpc/README.txt
  2421. * doc/Makefile.am
  2422. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2423. Added XML-RPC in -v Configuration output.
  2424. * src/FeatureConfig.cc
  2425. * src/FeatureConfig.h
  2426. * test/FeatureConfigTest.cc
  2427. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2428. Updated Bulgarian, Russian, Slovak and Japanese
  2429. translations. Thanks to all translators.
  2430. * po/bg.po
  2431. * po/ja.po
  2432. * po/ru.po
  2433. * po/sk.po
  2434. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Removed --retry-wait option from aria2rpc
  2436. * doc/xmlrpc/aria2rpc
  2437. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2438. Removed --retry-wait option from man page.
  2439. * doc/aria2c.1.txt
  2440. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2441. Removed --retry-wait option since the current architecture doesn't
  2442. allow sleep for particular URI.
  2443. * src/AbstractCommand.cc
  2444. * src/OptionHandlerFactory.cc
  2445. * src/download_helper.cc
  2446. * src/prefs.cc
  2447. * src/prefs.h
  2448. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2449. Removed Retry-After header support. Since the current architecture
  2450. doesn't allow sleep for particular URI.
  2451. * src/HttpSkipResponseCommand.cc
  2452. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2453. Updated the help message for --daemon option.
  2454. * doc/aria2c.1.txt
  2455. * src/usage_text.h
  2456. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Added our own daemon() function for systems which desn't have
  2458. daemon(3).
  2459. * configure.ac
  2460. * src/Makefile.am
  2461. * src/daemon.cc
  2462. * src/daemon.h
  2463. * src/option_processing.cc
  2464. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2465. Simplified File::getCurrentDir()
  2466. * src/File.cc
  2467. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2468. Use exit() instead of _exit
  2469. * src/RequestGroupMan.cc
  2470. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2471. Replaced "CATEGORY" with "TAGS".
  2472. * src/usage_text.h
  2473. * doc/aria2c.1.txt
  2474. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2475. Updated the help message for --help option.
  2476. * src/usage_text.h
  2477. * doc/aria2c.1.txt
  2478. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2479. Updated man page for added help tags.
  2480. * doc/aria2c.1.txt
  2481. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2482. Added help category #file. Added #file tag to the options related
  2483. to downloaded file.
  2484. * src/OptionHandlerFactory.cc
  2485. * src/help_tags.h
  2486. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2487. Added help categories: #cookie and #hook. Added #https tag to
  2488. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2489. * src/OptionHandlerFactory.cc
  2490. * src/help_tags.h
  2491. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Made MSG_NOT_FILE translatable.
  2493. * src/message.h
  2494. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Updated man page for --help option.
  2496. * doc/aria2c.1.txt
  2497. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2498. Updated doc.
  2499. * src/XmlRpcMethod.h
  2500. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. Help category now starts with "#" to distinguish a category from
  2502. keyword search. For example, "http" categroy is now "#http". You
  2503. can type "--help=#http" to get explanation of options related to
  2504. http. If '#' is omitted, then the argument is treated as a keyword
  2505. and aria2 searches options whose name includes the keyword and
  2506. print matched ones. For example, "--help=http" will show options
  2507. whose name includes "http".
  2508. * src/OptionHandlerFactory.cc
  2509. * src/help_tags.h
  2510. * src/usage_text.h
  2511. * src/version_usage.cc
  2512. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. Documented missing experimental tag and newly added xml-rpc tag in
  2514. man page.
  2515. * doc/aria2c.1.txt
  2516. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2517. Added xml-rpc help tag. Tagged xml-rpc related options with
  2518. xml-rpc tag.
  2519. * src/OptionHandlerFactory.cc
  2520. * src/help_tags.h
  2521. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2522. Updated message when a path is not a file. Updated common message
  2523. for wrong option.
  2524. * src/OptionHandlerException.cc
  2525. * src/message.h
  2526. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2527. Use File::isFile() instead of File::exists(). Updated message when
  2528. a path is not a file.
  2529. * src/OptionHandlerImpl.cc
  2530. * src/message.h
  2531. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2532. Fixed the bug that server performence profile is not updated when
  2533. aria2c was terminated by emergency shutdown.
  2534. * src/TrackerWatcherCommand.cc
  2535. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Use LocalFilePathOptionHandler for -T and -M option.
  2537. Updated message of MSG_FILE_NOT_EXIST.
  2538. * src/OptionHandlerFactory.cc
  2539. * src/message.h
  2540. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2541. Added LocalFilePathOptionHandler which check whether the specified
  2542. file path does exist or not.
  2543. * src/OptionHandlerImpl.cc
  2544. * src/message.h
  2545. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2546. Updated wiki page URI.
  2547. * README
  2548. * doc/aria2c.1.txt
  2549. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2550. Added README.txt for xmlrpc directory.
  2551. * doc/Makefile.am
  2552. * doc/xmlrpc/README.txt
  2553. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Bump up version number to 1.6.0.
  2555. * configure.ac
  2556. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Added XML-RPC client scripts written in ruby.
  2558. * doc/Makefile.am
  2559. * doc/xmlrpc/aria2mon
  2560. * doc/xmlrpc/aria2rpc
  2561. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2562. Added support for IPv6 literal address in URI. Now aria2 can
  2563. handle URI such as http://[::1]/
  2564. * src/HttpRequest.cc
  2565. * src/HttpRequest.h
  2566. * src/Request.cc
  2567. * src/Request.h
  2568. * test/HttpRequestTest.cc
  2569. * test/OptionHandlerTest.cc
  2570. * test/RequestTest.cc
  2571. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2572. Fixed the bug that HTTP request header for XML-RPC request is not
  2573. parsed properly.
  2574. * src/HttpHeader.cc
  2575. * src/HttpHeaderProcessor.cc
  2576. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Fixed the bug that XML-RPC authorization might be done before HTTP
  2578. request header is fully received.
  2579. * src/HttpServerCommand.cc
  2580. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Documented --xml-rpc-listen-all option in man page.
  2582. * doc/aria2c.1.txt
  2583. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Added --xml-rpc-listen-all option. If true is given to this
  2585. option, aria2 listens incoming XML-RPC requests on all network
  2586. interfaces. If false is given, listens only on local loopback
  2587. interface. The default value is false.
  2588. * src/HttpListenCommand.cc
  2589. * src/OptionHandlerFactory.cc
  2590. * src/SocketCore.cc
  2591. * src/SocketCore.h
  2592. * src/prefs.cc
  2593. * src/prefs.h
  2594. * src/usage_text.h
  2595. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2596. * Release 1.5.2
  2597. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. Updated Ukrainian and Russian translations. Thanks to all
  2599. translators.
  2600. * po/ru.po
  2601. * po/uk.po
  2602. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. Bump up version number to 1.5.2
  2604. * configure.ac
  2605. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2606. Get comment, comment.utf-8, created by and creation date from
  2607. .torrent file and print them in -S output.
  2608. * src/bittorrent_helper.cc
  2609. * src/bittorrent_helper.h
  2610. * test/BittorrentHelperTest.cc
  2611. * test/test.torrent
  2612. * test/utf8.torrent
  2613. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2614. Show exact file size along in -S option output.
  2615. * src/Util.h
  2616. * src/bittorrent_helper.cc
  2617. * test/UtilTest.cc
  2618. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2619. Avoided unnecessary memory allocation in
  2620. BitfieldMan::getCompletedLength().
  2621. * src/BitfieldMan.cc
  2622. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2623. Fixed the bug that download fails if
  2624. SocketCore::establishConnection() throws exception and aria2
  2625. doesn't try another address.
  2626. * src/AbstractCommand.cc
  2627. * src/InitiateConnectionCommand.cc
  2628. * src/message.h
  2629. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2630. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2631. detected properly.
  2632. * m4/sqlite3.m4
  2633. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2634. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2635. because it causes compile error if PARAMS macro is defined.
  2636. * src/XmlRpcElements.cc
  2637. * src/XmlRpcElements.h
  2638. * src/XmlRpcRequestParserStateImpl.cc
  2639. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. * Release 1.5.1
  2641. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2642. Bump up version number to 1.5.1
  2643. * configure.ac
  2644. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2645. Fixed compile error without BitTorrent support
  2646. * src/DefaultBtProgressInfoFile.cc
  2647. * src/DownloadEngine.cc
  2648. * src/DownloadEngine.h
  2649. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2650. Added missing '=' in Download Results
  2651. * src/RequestGroupMan.cc
  2652. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2653. Fixed compiler warning
  2654. * src/DefaultBtProgressInfoFile.cc
  2655. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2656. Fixed compiler warning on 32bit systems.
  2657. * src/DownloadCommand.cc
  2658. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2659. Call flush from ServerStatMan::save()
  2660. * src/ServerStatMan.cc
  2661. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2662. Check stream status after file is opened.
  2663. * src/CookieStorage.cc
  2664. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2665. Rewritten Signature::save()
  2666. * src/Signature.cc
  2667. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2668. Rewritten RequestGroupMan::saveServerStat()
  2669. * src/RequestGroupMan.cc
  2670. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2671. Rewritten stream error handling
  2672. * src/DHTAutoSaveCommand.cc
  2673. * src/DHTRoutingTableDeserializer.cc
  2674. * src/DHTRoutingTableSerializer.cc
  2675. * src/DHTSetup.cc
  2676. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2677. Check stream status after file is opened.
  2678. * src/DefaultBtProgressInfoFile.cc
  2679. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Rewritten stream error handling
  2681. * src/DefaultBtProgressInfoFile.cc
  2682. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2683. Make sure that stream is closed before renaming file. Unit test
  2684. fails on mingw32 in the previous implementation.
  2685. * src/CookieStorage.cc
  2686. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2687. Fixed the unit test error without sqlite3
  2688. * test/CookieStorageTest.cc
  2689. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2690. Fixed the undefined reference error
  2691. * test/HttpResponseTest.cc
  2692. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. * Release 1.5.0
  2694. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2695. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2696. Ukrainian translations. Thanks to all translators.
  2697. * po/ru.po
  2698. * po/it.po
  2699. * po/da.po
  2700. * po/bg.po
  2701. * po/ja.po
  2702. * po/uk.po
  2703. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2704. Added missing src/Logger.cc
  2705. * src/Logger.cc
  2706. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Rewritten Logger to avoiding constly virtual call.
  2708. * src/LogFactory.cc
  2709. * src/LogFactory.h
  2710. * src/Logger.h
  2711. * src/Makefile.am
  2712. * src/Makefile.in
  2713. * src/NullLogger.h: Removed.
  2714. * src/SimpleLogger.cc
  2715. * src/SimpleLogger.h
  2716. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2717. Updated doc
  2718. * src/main.cc
  2719. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2720. Updated debug log message
  2721. * src/AbstractCommand.cc
  2722. * src/message.h
  2723. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2724. Avoid to create zombie process when commands specified in
  2725. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2726. X and NetBSD.
  2727. * src/main.cc
  2728. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2729. Fixed typo
  2730. * src/usage_text.h
  2731. * doc/aria2c.1.txt
  2732. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Documented 'errorCode' of tellStatus in man page.
  2734. * doc/aria2c.1.txt
  2735. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2736. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2737. This key is only available for stopped/completed downloads and its
  2738. value is the error code defined in EXIT STATUS in man page.
  2739. * src/XmlRpcMethodImpl.cc
  2740. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2741. Fixed the bug that session download length is not updated when
  2742. PeerStat is not fastest one.
  2743. * src/SegmentMan.cc
  2744. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2745. Updated doc.
  2746. * doc/aria2c.1.txt
  2747. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2748. Updated doc.
  2749. * src/AbstractCommand.cc
  2750. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2751. Handle the case when DownloadContext has no FileEntry.
  2752. * src/XmlRpcMethodImpl.cc
  2753. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. Handle the situation where struct option.name is char *.
  2755. * configure.ac
  2756. * src/OptionParser.cc
  2757. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2758. Code cleanup
  2759. * src/AbstractCommand.cc
  2760. * src/DownloadCommand.cc
  2761. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2762. Use option of each download to create AuthConfig instead of global
  2763. option.
  2764. * src/AuthConfigFactory.cc
  2765. * src/AuthConfigFactory.h
  2766. * src/FtpNegotiationCommand.cc
  2767. * src/HttpRequest.cc
  2768. * src/HttpRequest.h
  2769. * src/HttpRequestCommand.cc
  2770. * src/HttpSkipResponseCommand.cc
  2771. * src/MultiUrlRequestInfo.cc
  2772. * test/AuthConfigFactoryTest.cc
  2773. * test/FtpConnectionTest.cc
  2774. * test/HttpRequestTest.cc
  2775. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2776. Don't call prepareForRetry(1) if all segments are ignored in
  2777. SegmentMan.
  2778. * src/AbstractCommand.cc
  2779. * src/BitfieldMan.cc
  2780. * src/BitfieldMan.h
  2781. * src/SegmentMan.cc
  2782. * src/SegmentMan.h
  2783. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2784. Removed FileEntry::getAssociatedUris()
  2785. * src/FileEntry.h
  2786. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2787. Updated doc: TODO1.5 -> TODO
  2788. * src/FileEntry.cc
  2789. * src/HttpResponseCommand.cc
  2790. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2792. involved.
  2793. * src/RequestGroup.cc
  2794. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2795. Eliminated duplicated filterBitfield initialization code.
  2796. * src/BitfieldMan.cc
  2797. * src/BitfieldMan.h
  2798. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2800. relatively naive approach, though). For DownloadFailureException,
  2801. we handle the case when req is null properly.
  2802. * src/AbstractCommand.cc
  2803. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. Added function returning suffix of control file to
  2805. DefaultBtProgressInfoFile.
  2806. * src/DefaultBtProgressInfoFile.cc
  2807. * src/DefaultBtProgressInfoFile.h
  2808. * src/RequestGroup.cc
  2809. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Documented getVersion in man page.
  2811. * doc/aria2c.1.txt
  2812. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Documented type of offset and num for tellWaiting xml-rpc method.
  2814. * doc/aria2c.1.txt
  2815. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Implemented getVersion xml-rpc method. This method returns struct
  2817. which has 2 key-value pairs: "version" key is associated to the
  2818. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2819. associated to the list of enabled features, such as "Async DNS",
  2820. "BitTorrent".
  2821. * src/FeatureConfig.h
  2822. * src/XmlRpcMethodFactory.cc
  2823. * src/XmlRpcMethodImpl.cc
  2824. * src/XmlRpcMethodImpl.h
  2825. * test/XmlRpcMethodTest.cc
  2826. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2828. for compatibility issue.
  2829. * src/SocketCore.cc
  2830. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2831. Fixed compile error with openSSL
  2832. * src/bittorrent_helper.cc
  2833. * src/messageDigest.h
  2834. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2835. Removed bad code: setting certificate type priority to key
  2836. exchange priority.
  2837. * src/SocketCore.cc
  2838. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Disconnect seeder if client is also in seed state.
  2840. * src/BtBitfieldMessage.cc
  2841. * src/BtHaveAllMessage.cc
  2842. * src/BtHaveMessage.cc
  2843. * src/message.h
  2844. * test/BtBitfieldMessageTest.cc
  2845. * test/BtHaveAllMessageTest.cc
  2846. * test/BtHaveMessageTest.cc
  2847. * test/MockPieceStorage.h
  2848. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2849. Keep CreateRequestCommand in queue when no segment is available so
  2850. that they can pick up pieces which slow BitTorrent peers are
  2851. downloading.
  2852. * src/AbstractCommand.cc
  2853. * src/CreateRequestCommand.cc
  2854. * src/CreateRequestCommand.h
  2855. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2856. --bt-stop-timeout now only checks download speed.
  2857. * src/BtStopDownloadCommand.cc
  2858. * src/BtStopDownloadCommand.h
  2859. * src/BtSetup.cc
  2860. * src/usage_text.h
  2861. * doc/aria2c.1.txt
  2862. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2863. Fixed compile error regarding BUFSIZE.
  2864. * src/DownloadCommand.cc
  2865. * src/DownloadCommand.h
  2866. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Documented tellWaiting xml-rpc method in man page.
  2868. * doc/aria2c.1.txt
  2869. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Bump up version number to 1.5.0
  2871. * configure.ac
  2872. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Removed resolved TODO1.5
  2874. * src/AbstractCommand.cc
  2875. * src/DownloadCommand.cc
  2876. * src/RequestGroup.cc
  2877. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2878. Release pooled and in-flight Request objectsand URIResult objects
  2879. in FileEntry after download completed.
  2880. * src/DownloadContext.cc
  2881. * src/DownloadContext.h
  2882. * src/FileEntry.cc
  2883. * src/FileEntry.h
  2884. * src/RequestGroup.cc
  2885. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Set manual and source attribute in aria2c.1.txt
  2887. * doc/aria2c.1.txt
  2888. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2889. Documented that the default value of --use-head is 'false' in man
  2890. page.
  2891. * doc/aria2c.1.txt
  2892. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2893. Added bt-stop-timeout option to -i list.
  2894. * doc/aria2c.1.txt
  2895. * src/download_helper.cc
  2896. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2897. Fixed typo
  2898. * doc/aria2c.1.txt
  2899. * src/usage_text.h
  2900. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2901. Removed peer-id-prefix option from -i list.
  2902. * doc/aria2c.1.txt
  2903. * src/download_helper.cc
  2904. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2905. Fixed typo
  2906. * doc/aria2c.1.txt
  2907. * src/usage_text.h
  2908. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Documented --bt-stop-timeout option in man page.
  2910. * doc/aria2c.1.txt
  2911. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2912. Updated README regarding multi-file torrent web-seeding.
  2913. * doc/README.txt
  2914. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2915. Updated man page regarding multi-file torrent web-seeding.
  2916. * doc/aria2c.1.txt
  2917. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Updated doc
  2919. * src/version_usage.cc
  2920. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. Winsock select() doesn't work if no socket is in FD_SET. To
  2922. overcome this problem, a dummy socket is added to FD_SET and it is
  2923. given to select().
  2924. * src/SelectEventPoll.cc
  2925. * src/SelectEventPoll.h
  2926. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2927. Disabled --use-head option by default because --use-head=true
  2928. causes problems on some web sites.
  2929. * src/OptionHandlerFactory.cc
  2930. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2931. Print URL List in -S option for torrent.
  2932. * src/bittorrent_helper.cc
  2933. * src/bittorrent_helper.h
  2934. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2935. Allocate buffer in ctor of DownloadCommand.
  2936. * src/DownloadCommand.cc
  2937. * src/DownloadCommand.h
  2938. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2939. Removed DiskAdaptor::onDownloadComplete()
  2940. * src/DirectDiskAdaptor.cc
  2941. * src/DirectDiskAdaptor.h
  2942. * src/DiskAdaptor.h
  2943. * src/MultiDiskAdaptor.cc
  2944. * src/MultiDiskAdaptor.h
  2945. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2946. Committed missing BtStopDownloadCommand.{cc,h}
  2947. * src/BtStopDownloadCommand.cc
  2948. * src/BtStopDownloadCommand.h
  2949. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2950. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2951. download if the download speed is 0 and the number of seeder is 0
  2952. in consecutive SEC seconds. By default, this function is disabled.
  2953. * src/BtSetup.cc
  2954. * src/Makefile.am
  2955. * src/OptionHandlerFactory.cc
  2956. * src/prefs.cc
  2957. * src/prefs.h
  2958. * src/usage_text.h
  2959. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2960. Removed the call to DiskAdaptor::onDownloadComplete() from
  2961. BtCheckIntegrityEntry and DefaultPieceStorage.
  2962. * src/BtCheckIntegrityEntry.cc
  2963. * src/DefaultPieceStorage.cc
  2964. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2965. Commented out throw statements when number of piece is 0 to
  2966. download 0 length torrent.
  2967. * src/bittorrent_helper.cc
  2968. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2969. Call RequestGroup::createNextCommandWithAdj() from
  2970. BtFileAllocationEntry if at least one FileEntry has URI. The
  2971. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2972. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2973. * src/BtFileAllocationEntry.cc
  2974. * src/FileEntry.h
  2975. * src/RequestGroup.cc
  2976. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2977. Generate peer ID after SimpleRandomizer is initialized.
  2978. * src/main.cc
  2979. * src/option_processing.cc
  2980. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2981. Removed unused method argument.
  2982. * src/CreateRequestCommand.cc
  2983. * src/RequestGroup.cc
  2984. * src/RequestGroup.h
  2985. * src/RequestGroupMan.cc
  2986. * src/TrackerWatcherCommand.cc
  2987. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2988. Made URI reusing function work.
  2989. * src/CreateRequestCommand.cc
  2990. * src/FileEntry.cc
  2991. * src/FileEntry.h
  2992. * test/FileEntryTest.cc
  2993. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2994. Add formerly fastest PeerStat's sessionDownloadLength to new
  2995. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2996. bytes in a session.
  2997. * src/PeerStat.cc
  2998. * src/SegmentMan.cc
  2999. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3000. If pipelining is enabled, we can always pool socket.
  3001. * src/HttpDownloadCommand.cc
  3002. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3003. In a single file download, file size becomes known just after
  3004. downloading, set total length to FileEntry object when download
  3005. completed.
  3006. * src/DownloadCommand.cc
  3007. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3008. Use std::vector::reserve() for fileEntries and pieceHashes in
  3009. bittorrent_helper
  3010. * src/bittorrent_helper.cc
  3011. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3012. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3013. Removed hidden option PREF_RESET_URI.
  3014. * src/AbstractCommand.cc
  3015. * src/OptionHandlerFactory.cc
  3016. * src/prefs.cc
  3017. * src/prefs.h
  3018. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3019. Removed unused variable/function.
  3020. * src/PeerStat.h
  3021. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3022. Show first URL in Download Results if file path is not available.
  3023. * src/FileEntry.h
  3024. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. Throw exception if file path doesn't exist in FTP URL.
  3026. * src/InitiateConnectionCommandFactory.cc
  3027. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3028. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3029. * src/BitfieldMan.cc
  3030. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3031. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3032. of PeerStat in SegmentMan. peerStats is used for calculating
  3033. download speed. Therefore all active PeerStats should be in
  3034. there. Another one is _fastestPeerStats and it only contains
  3035. fastest PeerStat for each hostname/protocol pair. They are used
  3036. for updating ServerStat.
  3037. * src/DownloadCommand.cc
  3038. * src/Request.h
  3039. * src/RequestGroupMan.cc
  3040. * src/SegmentMan.cc
  3041. * src/SegmentMan.h
  3042. * test/SegmentManTest.cc
  3043. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3044. Try all available addresses returned by DNS until it gets
  3045. connected in HTTP(S)/FTP download
  3046. * src/AbstractCommand.cc
  3047. * src/AbstractCommand.h
  3048. * src/AbstractProxyRequestCommand.cc
  3049. * src/AbstractProxyRequestCommand.h
  3050. * src/DNSCache.h
  3051. * src/DownloadEngine.cc
  3052. * src/DownloadEngine.h
  3053. * src/FtpInitiateConnectionCommand.cc
  3054. * src/FtpInitiateConnectionCommand.h
  3055. * src/FtpNegotiationCommand.cc
  3056. * src/FtpNegotiationCommand.h
  3057. * src/HttpInitiateConnectionCommand.cc
  3058. * src/HttpInitiateConnectionCommand.h
  3059. * src/HttpRequestCommand.cc
  3060. * src/HttpRequestCommand.h
  3061. * src/InitiateConnectionCommand.cc
  3062. * src/InitiateConnectionCommand.h
  3063. * test/DNSCacheTest.cc
  3064. * test/Makefile.am
  3065. * test/SimpleDNSCacheTest.cc
  3066. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3067. Updated doc
  3068. * src/download_helper.cc
  3069. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3070. Refactored fieldMan ctor.
  3071. * src/BitfieldMan.cc
  3072. * src/BitfieldMan.h
  3073. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3074. Don't print "No files to download." message if -S is given.
  3075. * src/main.cc
  3076. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3077. Set referer and method to newly created Request object.
  3078. * src/CreateRequestCommand.cc
  3079. * src/FileEntry.cc
  3080. * src/FileEntry.h
  3081. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3082. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3083. * src/AbstractCommand.cc
  3084. * src/AbstractCommand.h
  3085. * src/CreateRequestCommand.cc
  3086. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3087. Get proxy download working
  3088. * src/AbstractProxyRequestCommand.cc
  3089. * src/AbstractProxyRequestCommand.h
  3090. * src/AbstractProxyResponseCommand.cc
  3091. * src/AbstractProxyResponseCommand.h
  3092. * src/FtpInitiateConnectionCommand.cc
  3093. * src/FtpTunnelRequestCommand.cc
  3094. * src/FtpTunnelRequestCommand.h
  3095. * src/FtpTunnelResponseCommand.cc
  3096. * src/FtpTunnelResponseCommand.h
  3097. * src/HttpInitiateConnectionCommand.cc
  3098. * src/HttpProxyRequestCommand.cc
  3099. * src/HttpProxyRequestCommand.h
  3100. * src/HttpProxyResponseCommand.cc
  3101. * src/HttpProxyResponseCommand.h
  3102. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3103. Use SegmentMan::getSegment(cuid) for single file download.
  3104. * src/AbstractCommand.cc
  3105. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3106. Fixed bufSize calculation
  3107. * src/DownloadCommand.cc
  3108. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3109. Don't append "/" if base URI ends with "/".
  3110. * src/bittorrent_helper.cc
  3111. * test/url-list-multiFile.torrent
  3112. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3113. HTTP pipelining is now working. Fixed Segmention fault in
  3114. BitfieldMan's copy ctor.
  3115. * src/AbstractCommand.cc
  3116. * src/BitfieldMan.cc
  3117. * src/BitfieldMan.h
  3118. * src/DownloadCommand.cc
  3119. * src/HttpDownloadCommand.cc
  3120. * src/HttpRequest.cc
  3121. * src/SegmentMan.cc
  3122. * src/SegmentMan.h
  3123. * test/BitfieldManTest.cc
  3124. * test/SegmentManTest.cc
  3125. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3126. Removed ServerHost. Same functionality is implemented using
  3127. FileEntry's in-flight Request objects.
  3128. * src/AbstractCommand.cc
  3129. * src/BtDependency.cc
  3130. * src/CreateRequestCommand.cc
  3131. * src/FileEntry.cc
  3132. * src/FileEntry.h
  3133. * src/FtpNegotiationCommand.cc
  3134. * src/HttpResponseCommand.cc
  3135. * src/Makefile.am
  3136. * src/Metalink2RequestGroup.cc
  3137. * src/RequestGroup.cc
  3138. * src/RequestGroup.h
  3139. * src/ServerHost.cc: Removed
  3140. * src/ServerHost.h: Removed
  3141. * test/BtDependencyTest.cc
  3142. * test/FileEntryTest.cc
  3143. * test/RequestGroupTest.cc
  3144. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3145. Rewritten PeerStat handling. In the previous implementation,
  3146. faster command tries to find slower command. In this new
  3147. implementation, slower command tries to find faster command.
  3148. PeerStat is now created in each HTTP/FTP request to get download
  3149. rate correctly. If the download range is small, the download rate
  3150. tends to small and this will occur at the later stage of download.
  3151. * src/AbstractCommand.cc
  3152. * src/DownloadCommand.cc
  3153. * src/FileEntry.cc
  3154. * src/FileEntry.h
  3155. * src/Request.cc
  3156. * src/Request.h
  3157. * src/RequestGroup.h
  3158. * src/RequestGroupMan.cc
  3159. * src/SegmentMan.cc
  3160. * src/SegmentMan.h
  3161. * test/SegmentManTest.cc
  3162. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3163. Removed _uris from RequestGroup. All functions that refer to _uris
  3164. were moved to FileEntry. Exit status code are now defined in
  3165. DownloadResultCode.h.
  3166. * src/AbstractCommand.cc
  3167. * src/AdaptiveURISelector.cc
  3168. * src/AdaptiveURISelector.h
  3169. * src/AutoSaveCommand.cc
  3170. * src/BtPostDownloadHandler.cc
  3171. * src/CheckIntegrityDispatcherCommand.cc
  3172. * src/CookieStorage.cc
  3173. * src/DHTAutoSaveCommand.cc
  3174. * src/DHTBucketRefreshCommand.cc
  3175. * src/DHTEntryPointNameResolveCommand.cc
  3176. * src/DHTInteractionCommand.cc
  3177. * src/DHTPeerAnnounceCommand.cc
  3178. * src/DHTTokenUpdateCommand.cc
  3179. * src/DlAbortEx.h
  3180. * src/DlRetryEx.h
  3181. * src/DownloadCommand.cc
  3182. * src/DownloadContext.h
  3183. * src/DownloadFailureException.h
  3184. * src/DownloadResult.h
  3185. * src/DownloadResultCode.h
  3186. * src/FeedbackURISelector.cc
  3187. * src/FeedbackURISelector.h
  3188. * src/FileEntry.cc
  3189. * src/FileEntry.h
  3190. * src/FtpNegotiationCommand.cc
  3191. * src/HttpListenCommand.cc
  3192. * src/HttpResponseCommand.cc
  3193. * src/HttpServerResponseCommand.cc
  3194. * src/HttpSkipResponseCommand.cc
  3195. * src/InOrderURISelector.cc
  3196. * src/InOrderURISelector.h
  3197. * src/Makefile.am
  3198. * src/Makefile.in
  3199. * src/Metalink2RequestGroup.cc
  3200. * src/MultiUrlRequestInfo.cc
  3201. * src/MultiUrlRequestInfo.h
  3202. * src/OptionHandlerFactory.cc
  3203. * src/PeerListenCommand.cc
  3204. * src/RecoverableException.h
  3205. * src/RequestGroup.cc
  3206. * src/RequestGroup.h
  3207. * src/RequestGroupMan.cc
  3208. * src/RequestGroupMan.h
  3209. * src/TimedHaltCommand.cc
  3210. * src/TrackerWatcherCommand.cc
  3211. * src/URIResult.cc
  3212. * src/URIResult.h
  3213. * src/URISelector.h
  3214. * src/XmlRpcMethodImpl.cc
  3215. * src/bittorrent_helper.cc
  3216. * src/bittorrent_helper.h
  3217. * src/download_helper.cc
  3218. * src/main.cc
  3219. * src/option_processing.cc
  3220. * test/BtDependencyTest.cc
  3221. * test/BtPostDownloadHandlerTest.cc
  3222. * test/CookieStorageTest.cc
  3223. * test/DefaultBtMessageDispatcherTest.cc
  3224. * test/DownloadHandlerFactoryTest.cc
  3225. * test/DownloadHelperTest.cc
  3226. * test/FeedbackURISelectorTest.cc
  3227. * test/FileEntryTest.cc
  3228. * test/InOrderURISelectorTest.cc
  3229. * test/Metalink2RequestGroupTest.cc
  3230. * test/MetalinkPostDownloadHandlerTest.cc
  3231. * test/RequestGroupManTest.cc
  3232. * test/RequestGroupTest.cc
  3233. * test/XmlRpcMethodTest.cc
  3234. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3235. Removed MockBtContext.h
  3236. * test/Makefile.am
  3237. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3238. Removed _currentRequest from StreamCheckIntegrityEntry and
  3239. StreamFileAllocationEntry.
  3240. * src/AbstractCommand.cc
  3241. * src/HttpResponseCommand.cc
  3242. * src/RequestGroup.cc
  3243. * src/StreamCheckIntegrityEntry.cc
  3244. * src/StreamCheckIntegrityEntry.h
  3245. * src/StreamFileAllocationEntry.cc
  3246. * src/StreamFileAllocationEntry.h
  3247. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3248. Rewritten DownloadContext and removed SingleFileDownloadContext
  3249. and BtContext and its derived classes. BitTorrent specific
  3250. attributes are now set by DownloadContext::setAttribute() with key
  3251. bittorrent::BITTORRENT.
  3252. * src/AbstractBtMessage.cc
  3253. * src/AbstractBtMessage.h
  3254. * src/AbstractCommand.cc
  3255. * src/AbstractCommand.h
  3256. * src/AbstractProxyRequestCommand.cc
  3257. * src/AbstractProxyResponseCommand.cc
  3258. * src/ActivePeerConnectionCommand.cc
  3259. * src/ActivePeerConnectionCommand.h
  3260. * src/AnnounceList.cc
  3261. * src/BtCheckIntegrityEntry.cc
  3262. * src/BtConstants.h
  3263. * src/BtContext.h: Removed
  3264. * src/BtDependency.cc
  3265. * src/BtExtendedMessage.cc
  3266. * src/BtPieceMessage.cc
  3267. * src/BtPieceMessage.h
  3268. * src/BtPostDownloadHandler.cc
  3269. * src/BtRegistry.cc
  3270. * src/BtRegistry.h
  3271. * src/BtSetup.cc
  3272. * src/CheckIntegrityCommand.cc
  3273. * src/CheckIntegrityEntry.cc
  3274. * src/ChecksumCheckIntegrityEntry.cc
  3275. * src/ConsoleStatCalc.cc
  3276. * src/ContentTypeRequestGroupCriteria.cc
  3277. * src/DHTGetPeersCommand.cc
  3278. * src/DHTGetPeersCommand.h
  3279. * src/DHTPeerLookupTask.cc
  3280. * src/DHTPeerLookupTask.h
  3281. * src/DHTTaskFactory.h
  3282. * src/DHTTaskFactoryImpl.cc
  3283. * src/DHTTaskFactoryImpl.h
  3284. * src/DefaultBtAnnounce.cc
  3285. * src/DefaultBtAnnounce.h
  3286. * src/DefaultBtContext.cc: Removed
  3287. * src/DefaultBtContext.h: Removed
  3288. * src/DefaultBtInteractive.cc
  3289. * src/DefaultBtInteractive.h
  3290. * src/DefaultBtMessageDispatcher.cc
  3291. * src/DefaultBtMessageDispatcher.h
  3292. * src/DefaultBtMessageFactory.cc
  3293. * src/DefaultBtMessageFactory.h
  3294. * src/DefaultBtMessageReceiver.cc
  3295. * src/DefaultBtMessageReceiver.h
  3296. * src/DefaultBtProgressInfoFile.cc
  3297. * src/DefaultBtRequestFactory.cc
  3298. * src/DefaultBtRequestFactory.h
  3299. * src/DefaultExtensionMessageFactory.cc
  3300. * src/DefaultExtensionMessageFactory.h
  3301. * src/DefaultPeerStorage.cc
  3302. * src/DefaultPeerStorage.h
  3303. * src/DefaultPieceStorage.cc
  3304. * src/DefaultSegmentManFactory.cc
  3305. * src/DiskAdaptor.cc
  3306. * src/DiskAdaptor.h
  3307. * src/DownloadContext.cc
  3308. * src/DownloadContext.h
  3309. * src/DownloadEngine.cc
  3310. * src/DownloadEngineFactory.cc
  3311. * src/DownloadHandler.cc
  3312. * src/DownloadResult.h
  3313. * src/FileAllocationCommand.cc
  3314. * src/FileAllocationDispatcherCommand.cc
  3315. * src/FileAllocationEntry.cc
  3316. * src/FileEntry.h
  3317. * src/FillRequestGroupCommand.cc
  3318. * src/FtpDownloadCommand.cc
  3319. * src/FtpFinishDownloadCommand.cc
  3320. * src/FtpInitiateConnectionCommand.cc
  3321. * src/FtpNegotiationCommand.cc
  3322. * src/FtpTunnelRequestCommand.cc
  3323. * src/FtpTunnelResponseCommand.cc
  3324. * src/HandshakeExtensionMessage.cc
  3325. * src/HandshakeExtensionMessage.h
  3326. * src/HaveEraseCommand.cc
  3327. * src/HttpDownloadCommand.cc
  3328. * src/HttpInitiateConnectionCommand.cc
  3329. * src/HttpProxyRequestCommand.cc
  3330. * src/HttpProxyResponseCommand.cc
  3331. * src/HttpRequest.cc
  3332. * src/HttpRequest.h
  3333. * src/HttpRequestCommand.cc
  3334. * src/HttpResponseCommand.cc
  3335. * src/HttpServerBodyCommand.cc
  3336. * src/HttpServerCommand.cc
  3337. * src/HttpSkipResponseCommand.cc
  3338. * src/InitiateConnectionCommandFactory.cc
  3339. * src/InitiatorMSEHandshakeCommand.cc
  3340. * src/InitiatorMSEHandshakeCommand.h
  3341. * src/IteratableChecksumValidator.cc
  3342. * src/IteratableChecksumValidator.h
  3343. * src/IteratableChunkChecksumValidator.cc
  3344. * src/MSEHandshake.cc
  3345. * src/MSEHandshake.h
  3346. * src/Makefile.am
  3347. * src/Makefile.in
  3348. * src/Metalink2RequestGroup.cc
  3349. * src/MetalinkPostDownloadHandler.cc
  3350. * src/MultiDiskAdaptor.cc
  3351. * src/MultiDiskAdaptor.h
  3352. * src/MultiFileAllocationIterator.cc
  3353. * src/MultiUrlRequestInfo.cc
  3354. * src/PeerChokeCommand.cc
  3355. * src/PeerChokeCommand.h
  3356. * src/PeerInitiateConnectionCommand.cc
  3357. * src/PeerInitiateConnectionCommand.h
  3358. * src/PeerInteractionCommand.cc
  3359. * src/PeerInteractionCommand.h
  3360. * src/PeerReceiveHandshakeCommand.cc
  3361. * src/PieceHashCheckIntegrityEntry.cc
  3362. * src/RealtimeCommand.cc
  3363. * src/ReceiverMSEHandshakeCommand.cc
  3364. * src/RequestGroup.cc
  3365. * src/RequestGroup.h
  3366. * src/RequestGroupEntry.cc
  3367. * src/RequestGroupMan.cc
  3368. * src/SeedCheckCommand.cc
  3369. * src/SeedCheckCommand.h
  3370. * src/SegmentMan.cc
  3371. * src/ShareRatioSeedCriteria.h
  3372. * src/SingleFileDownloadContext.cc: Removed
  3373. * src/SingleFileDownloadContext.h: Removed
  3374. * src/SleepCommand.cc
  3375. * src/StreamCheckIntegrityEntry.cc
  3376. * src/TrackerWatcherCommand.cc
  3377. * src/TrackerWatcherCommand.h
  3378. * src/UnknownLengthPieceStorage.cc
  3379. * src/Util.cc
  3380. * src/Util.h
  3381. * src/XmlRpcMethodImpl.cc
  3382. * src/bittorrent_helper.cc
  3383. * src/bittorrent_helper.h
  3384. * src/download_helper.cc
  3385. * src/main.cc
  3386. * src/option_processing.cc
  3387. * test/BitfieldManTest.cc
  3388. * test/BittorrentHelperTest.cc
  3389. * test/BtCancelMessageTest.cc
  3390. * test/BtChokeMessageTest.cc
  3391. * test/BtDependencyTest.cc
  3392. * test/BtPieceMessageTest.cc
  3393. * test/BtPostDownloadHandlerTest.cc
  3394. * test/BtRegistryTest.cc
  3395. * test/BtRejectMessageTest.cc
  3396. * test/BtRequestMessageTest.cc
  3397. * test/DHTPeerAnnounceStorageTest.cc
  3398. * test/DefaultBtAnnounceTest.cc
  3399. * test/DefaultBtContextTest.cc: Removed
  3400. * test/DefaultBtMessageDispatcherTest.cc
  3401. * test/DefaultBtMessageFactoryTest.cc
  3402. * test/DefaultBtProgressInfoFileTest.cc
  3403. * test/DefaultBtRequestFactoryTest.cc
  3404. * test/DefaultExtensionMessageFactoryTest.cc
  3405. * test/DefaultPeerStorageTest.cc
  3406. * test/DefaultPieceStorageTest.cc
  3407. * test/DirectDiskAdaptorTest.cc
  3408. * test/DownloadContextTest.cc
  3409. * test/DownloadHandlerFactoryTest.cc
  3410. * test/DownloadHelperTest.cc
  3411. * test/HandshakeExtensionMessageTest.cc
  3412. * test/HttpRequestTest.cc
  3413. * test/HttpResponseTest.cc
  3414. * test/IteratableChecksumValidatorTest.cc
  3415. * test/IteratableChunkChecksumValidatorTest.cc
  3416. * test/MSEHandshakeTest.cc
  3417. * test/Makefile.am
  3418. * test/Makefile.in
  3419. * test/Metalink2RequestGroupTest.cc
  3420. * test/MetalinkPostDownloadHandlerTest.cc
  3421. * test/MockBtContext.h: Removed
  3422. * test/MockDHTTaskFactory.h
  3423. * test/MockDownloadContext.h: Removed
  3424. * test/MockPieceStorage.h
  3425. * test/MultiDiskAdaptorTest.cc
  3426. * test/MultiFileAllocationIteratorTest.cc
  3427. * test/RequestGroupManTest.cc
  3428. * test/RequestGroupTest.cc
  3429. * test/SegmentManTest.cc
  3430. * test/ShareRatioSeedCriteriaTest.cc
  3431. * test/SingleFileDownloadContextTest.cc: Removed
  3432. * test/UtilTest.cc
  3433. * test/XmlRpcMethodTest.cc
  3434. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3435. Added experimental support of WEB-Seeding for multi-file torrent.
  3436. Due to fundamental changes in file handling in HTTP/FTP code, many
  3437. functions are not working: PeerStat, ServerHost, proxy..etc
  3438. * src/AbstractCommand.cc
  3439. * src/AbstractCommand.h
  3440. * src/BitfieldMan.cc
  3441. * src/BitfieldMan.h
  3442. * src/CreateRequestCommand.cc
  3443. * src/CreateRequestCommand.h
  3444. * src/DefaultPieceStorage.cc
  3445. * src/DefaultPieceStorage.h
  3446. * src/DownloadCommand.cc
  3447. * src/DownloadCommand.h
  3448. * src/DownloadContext.cc
  3449. * src/DownloadContext.h
  3450. * src/FileEntry.cc
  3451. * src/FileEntry.h
  3452. * src/FtpDownloadCommand.cc
  3453. * src/FtpDownloadCommand.h
  3454. * src/FtpFinishDownloadCommand.cc
  3455. * src/FtpFinishDownloadCommand.h
  3456. * src/FtpInitiateConnectionCommand.cc
  3457. * src/FtpInitiateConnectionCommand.h
  3458. * src/FtpNegotiationCommand.cc
  3459. * src/FtpNegotiationCommand.h
  3460. * src/FtpTunnelResponseCommand.cc
  3461. * src/HttpDownloadCommand.cc
  3462. * src/HttpDownloadCommand.h
  3463. * src/HttpInitiateConnectionCommand.cc
  3464. * src/HttpInitiateConnectionCommand.h
  3465. * src/HttpProxyResponseCommand.cc
  3466. * src/HttpRequest.cc
  3467. * src/HttpRequest.h
  3468. * src/HttpRequestCommand.cc
  3469. * src/HttpRequestCommand.h
  3470. * src/HttpResponseCommand.cc
  3471. * src/HttpResponseCommand.h
  3472. * src/HttpSkipResponseCommand.cc
  3473. * src/HttpSkipResponseCommand.h
  3474. * src/InitiateConnectionCommand.cc
  3475. * src/InitiateConnectionCommand.h
  3476. * src/InitiateConnectionCommandFactory.cc
  3477. * src/InitiateConnectionCommandFactory.h
  3478. * src/Makefile.am
  3479. * src/PieceStorage.h
  3480. * src/RequestGroup.cc
  3481. * src/RequestGroup.h
  3482. * src/RequestGroupMan.cc
  3483. * src/SegmentMan.cc
  3484. * src/SegmentMan.h
  3485. * src/SingleFileDownloadContext.h
  3486. * src/StreamFileAllocationEntry.cc
  3487. * src/TrackerWatcherCommand.cc
  3488. * src/UnknownLengthPieceStorage.cc
  3489. * src/UnknownLengthPieceStorage.h
  3490. * src/array_fun.h
  3491. * src/bitfield.h
  3492. * src/download_helper.cc
  3493. * test/DownloadContextTest.cc
  3494. * test/Makefile.am
  3495. * test/MockDownloadContext.h
  3496. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3497. Added tellWaiting XML-RPC method.
  3498. * src/SingleFileDownloadContext.cc
  3499. * src/XmlRpcMethodFactory.cc
  3500. * src/XmlRpcMethodImpl.cc
  3501. * src/XmlRpcMethodImpl.h
  3502. * test/XmlRpcMethodTest.cc
  3503. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3504. Updated CookieStorageTest
  3505. * test/CookieStorageTest.cc
  3506. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3507. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3508. handle excepion inside these functions.
  3509. * src/LibgnutlsTLSContext.cc
  3510. * src/LibgnutlsTLSContext.h
  3511. * src/LibsslTLSContext.cc
  3512. * src/LibsslTLSContext.h
  3513. * src/MultiUrlRequestInfo.cc
  3514. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3515. Added comment
  3516. * src/RequestGroup.cc
  3517. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3518. In CookieStorage::load() and saveNsFormat(), handle exception
  3519. inside the functions. When saving Cookies, first write temporary
  3520. file and after successful writes, then renames it to final
  3521. destination.
  3522. * src/CookieStorage.cc
  3523. * src/CookieStorage.h
  3524. * src/MultiUrlRequestInfo.cc
  3525. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3526. The default value of --dir option is the absolute path to the
  3527. current directory. If getcwd() is failed, then it is ".", which is
  3528. the same value with old implementation. This change is necessary
  3529. because after daemon() call, the current working directory is
  3530. changed to /.
  3531. * src/File.cc
  3532. * src/File.h
  3533. * src/OptionHandlerFactory.cc
  3534. * src/option_processing.cc
  3535. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3536. Call daemon() with arguments(0,0), which means daemon() changes
  3537. current working directory to / and redirects stdin, stdout and
  3538. stderr to /dev/null.
  3539. * src/option_processing.cc
  3540. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3541. Small performance optimizations.
  3542. * src/RequestGroupMan.cc
  3543. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3544. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3545. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3546. * src/RequestGroupMan.cc
  3547. * src/RequestGroupMan.h
  3548. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3550. setNoWiat(true) if newly created command calls
  3551. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3552. * src/HttpListenCommand.cc
  3553. * src/HttpServerBodyCommand.cc
  3554. * src/HttpServerCommand.cc
  3555. * src/HttpServerResponseCommand.cc
  3556. * src/InitiateConnectionCommand.cc
  3557. * src/RequestGroup.cc
  3558. * src/StreamFileAllocationEntry.cc
  3559. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3560. Removed include vector
  3561. * src/BtRegistry.h
  3562. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3563. Rewritten BtRegistry
  3564. * src/BtRegistry.cc
  3565. * src/BtRegistry.h
  3566. * src/BtSetup.cc
  3567. * src/ConsoleStatCalc.cc
  3568. * src/PeerInteractionCommand.cc
  3569. * src/PeerReceiveHandshakeCommand.cc
  3570. * src/ReceiverMSEHandshakeCommand.cc
  3571. * src/RequestGroup.cc
  3572. * src/XmlRpcMethodImpl.cc
  3573. * test/BtRegistryTest.cc
  3574. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3575. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3576. * src/DefaultBtProgressInfoFile.cc
  3577. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3578. Throw an exception if position is less than 0.
  3579. * src/XmlRpcMethodImpl.cc
  3580. * test/XmlRpcMethodTest.cc
  3581. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3582. Use writeFilePath() in ConsoleStatCalc.cc
  3583. * src/ConsoleStatCalc.cc
  3584. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3585. Receive the return value as const reference from
  3586. DownloadContext::getFileEntries().
  3587. * src/DefaultPieceStorage.cc
  3588. * src/RequestGroupMan.cc
  3589. * src/XmlRpcMethodImpl.cc
  3590. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. DownloadContext now has _fileEntries so that
  3592. DownloadContext::getFileEntries() can returns its const reference.
  3593. * src/DefaultBtContext.cc
  3594. * src/DefaultBtContext.h
  3595. * src/DownloadContext.cc
  3596. * src/DownloadContext.h
  3597. * src/SingleFileDownloadContext.cc
  3598. * src/SingleFileDownloadContext.h
  3599. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3600. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3601. writeFilePath() function template from RequestGroupMan.cc to
  3602. FileEntry.h
  3603. * src/FileEntry.h
  3604. * src/RequestGroupMan.cc
  3605. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3606. Documented 'position' parameter is starting from 0 in man page.
  3607. * doc/aria2c.1.txt
  3608. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3609. Updated doc.
  3610. * src/MSEHandshake.cc
  3611. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3612. Removed _acceptFeatures and its accessor functions from
  3613. RequestGroup since they are not used practically.
  3614. * src/HttpRequestCommand.cc
  3615. * src/RequestGroup.cc
  3616. * src/RequestGroup.h
  3617. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3618. Removed member _maxTries from RequestGroup class to avoid
  3619. duplicate option value. Those classes who refer this variable
  3620. should use option value of PREF_MAX_TRIES directly.
  3621. * src/AbstractCommand.cc
  3622. * src/RequestGroup.cc
  3623. * src/RequestGroup.h
  3624. * src/TrackerWatcherCommand.cc
  3625. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3626. * Release 1.4.1
  3627. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3628. Fixed compiler warnings on netbsd
  3629. * src/DHTConnectionImpl.cc
  3630. * src/PeerListenCommand.cc
  3631. * src/PeerSessionResource.cc
  3632. * src/SegmentMan.cc
  3633. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3634. Updated Ukrainian translation. Thanks to all translators.
  3635. * po/uk.po
  3636. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3637. Bump up version number to 1.4.1.
  3638. * configure.ac
  3639. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3640. Added unit tests for strjoin, strconcat and strappend.
  3641. * test/a2functionalTest.cc
  3642. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3643. Rewritten strconcat and strappend using operator+ instead of
  3644. append().
  3645. * src/a2functional.h
  3646. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3647. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3648. is enabled.
  3649. * src/Makefile.am
  3650. * test/Makefile.am
  3651. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3652. Added countSeeder() function which counts seeder in the given
  3653. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3654. * src/ConsoleStatCalc.cc
  3655. * src/Peer.h
  3656. * src/XmlRpcMethodImpl.cc
  3657. * test/PeerTest.cc
  3658. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3659. Documented missing seeder in getPeers xml-rpc method.
  3660. Documented uploadLength and numSeeders.
  3661. * doc/aria2c.1.txt
  3662. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3663. Added uploadLength and numSeeders to the response of tellStatus
  3664. xml-rpc method. Assert that PeerStorage instance is not null
  3665. instead of checking if statement. It should be non-null in this
  3666. context.
  3667. * src/XmlRpcMethodImpl.cc
  3668. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3669. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3670. * src/XmlRpcResponse.cc
  3671. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3672. Avoid intermediate object during string concatenation.
  3673. * src/HttpRequest.cc
  3674. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3675. Added strjoin function template. Use it in pathJoin()
  3676. * src/Util.h
  3677. * src/a2functional.h
  3678. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3679. Avoid intermediate object during string concatenation. Replaced
  3680. post-increment unary operator with pre-increment one in for loop.
  3681. * src/AdaptiveURISelector.cc
  3682. * src/AnnounceList.cc
  3683. * src/AuthConfig.h
  3684. * src/BtBitfieldMessage.cc
  3685. * src/BtExtendedMessage.cc
  3686. * src/BtHandshakeMessage.cc
  3687. * src/BtPieceMessage.cc
  3688. * src/BtPortMessage.cc
  3689. * src/Cookie.cc
  3690. * src/DHTAnnouncePeerMessage.cc
  3691. * src/DHTAutoSaveCommand.cc
  3692. * src/DHTGetPeersReplyMessage.cc
  3693. * src/DHTNode.cc
  3694. * src/DHTQueryMessage.cc
  3695. * src/DHTResponseMessage.cc
  3696. * src/DHTUnknownMessage.cc
  3697. * src/DefaultBtAnnounce.cc
  3698. * src/DefaultBtContext.cc
  3699. * src/DefaultBtInteractive.cc
  3700. * src/DefaultBtProgressInfoFile.cc
  3701. * src/DefaultPeerStorage.cc
  3702. * src/DownloadEngine.cc
  3703. * src/FeatureConfig.cc
  3704. * src/File.cc
  3705. * src/FtpConnection.cc
  3706. * src/FtpNegotiationCommand.cc
  3707. * src/HandshakeExtensionMessage.cc
  3708. * src/HttpConnection.cc
  3709. * src/HttpRequest.cc
  3710. * src/HttpResponseCommand.cc
  3711. * src/HttpServer.cc
  3712. * src/IndexBtMessage.cc
  3713. * src/Metalink2RequestGroup.cc
  3714. * src/OptionHandlerImpl.h
  3715. * src/PStringBuildVisitor.cc
  3716. * src/Peer.cc
  3717. * src/PeerListenCommand.cc
  3718. * src/Piece.cc
  3719. * src/RangeBtMessage.cc
  3720. * src/Request.cc
  3721. * src/Request.h
  3722. * src/RequestGroup.cc
  3723. * src/RequestGroupMan.cc
  3724. * src/ServerStat.cc
  3725. * src/ServerStatMan.cc
  3726. * src/UTPexExtensionMessage.cc
  3727. * src/Util.cc
  3728. * src/a2functional.h
  3729. * src/download_helper.cc
  3730. * src/messageDigest.cc
  3731. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3732. Unchoke a peer randomly at first and second choke round in seed
  3733. state.
  3734. * src/BtSeederStateChoke.cc
  3735. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3736. Added (sock_t) to quiet compiler warnings in MinGW
  3737. * src/SocketCore.cc
  3738. * src/SocketCore.h
  3739. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3741. * src/EpollEventPoll.h
  3742. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3743. Added fork() emulation using CreateProcess() in MinGW
  3744. * src/RequestGroupMan.cc
  3745. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3746. * Release 1.4.0
  3747. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3748. Added utf8.torrent to EXTRA_DIST
  3749. * test/Makefile.am
  3750. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3751. Fixed docs of aria2.addMetalink xml-rpc method.
  3752. * doc/aria2c.1.txt
  3753. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3754. Added Slovak translation. Updated Ukrainian and Brazilian
  3755. Portuguese translation. Thanks to all translators.
  3756. * po/sk.po
  3757. * po/uk.po
  3758. * po/pt_BR.po
  3759. * po/LINGUAS
  3760. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3761. Added test case for XmlRpcProcessor to fail to parse malformed
  3762. document.
  3763. * test/XmlRpcRequestProcessorTest.cc
  3764. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Removed *.gmo files in po because they are generated on 'make
  3766. dist'
  3767. * po/*.gmo
  3768. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. Documented max-concurrent-downloads of changeGlobalOption method
  3770. in man page.
  3771. * doc/aria2c.1.txt
  3772. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3773. Added max-concurrent-downloads option to changeGlobalOption
  3774. xml-rpc method. Rewritten loop conditional in
  3775. RequestGroupMan::fillRequestGroupFromReserver().
  3776. * src/RequestGroupMan.cc
  3777. * src/RequestGroupMan.h
  3778. * src/XmlRpcMethod.cc
  3779. * src/XmlRpcMethodImpl.cc
  3780. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3781. Documented position parameter in man page.
  3782. * doc/aria2c.1.txt
  3783. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3784. Added 'position' parameter to addUri, addTorrent and addMetalink
  3785. xml-rpc method.
  3786. * src/RequestGroupMan.cc
  3787. * src/RequestGroupMan.h
  3788. * src/XmlRpcMethodImpl.cc
  3789. * test/XmlRpcMethodTest.cc
  3790. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3791. Removed Peer.cc from compile source list when --disable-bittorrent
  3792. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3793. takes Peer.
  3794. * src/DefaultPieceStorage.cc
  3795. * src/DefaultPieceStorage.h
  3796. * src/Makefile.am
  3797. * src/PieceStorage.h
  3798. * src/UnknownLengthPieceStorage.cc
  3799. * src/UnknownLengthPieceStorage.h
  3800. * test/MockPieceStorage.h
  3801. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3802. Implemented getter methods in header files to give them more
  3803. chance of optimization.
  3804. Return const reference for SharadHandle if possible.
  3805. * src/AbstractAuthResolver.cc
  3806. * src/AbstractAuthResolver.h
  3807. * src/AbstractBtMessage.cc
  3808. * src/AbstractBtMessage.h
  3809. * src/AbstractSingleDiskAdaptor.cc
  3810. * src/AbstractSingleDiskAdaptor.h
  3811. * src/AsyncNameResolver.cc
  3812. * src/AsyncNameResolver.h
  3813. * src/BNode.cc
  3814. * src/BNode.h
  3815. * src/BitfieldMan.cc
  3816. * src/BitfieldMan.h
  3817. * src/BtAbortOutstandingRequestEvent.h
  3818. * src/BtExtendedMessage.cc
  3819. * src/BtExtendedMessage.h
  3820. * src/BtSeederStateChoke.cc
  3821. * src/BtSeederStateChoke.h
  3822. * src/Cookie.cc
  3823. * src/Cookie.h
  3824. * src/DHTBucket.cc
  3825. * src/DHTBucket.h
  3826. * src/DHTConnectionImpl.cc
  3827. * src/DHTConnectionImpl.h
  3828. * src/DHTFindNodeReplyMessage.cc
  3829. * src/DHTFindNodeReplyMessage.h
  3830. * src/DHTGetPeersReplyMessage.cc
  3831. * src/DHTGetPeersReplyMessage.h
  3832. * src/DHTInteractionCommand.cc
  3833. * src/DHTMessage.cc
  3834. * src/DHTMessage.h
  3835. * src/DHTMessageDispatcherImpl.cc
  3836. * src/DHTMessageEntry.cc
  3837. * src/DHTMessageReceiver.cc
  3838. * src/DHTMessageReceiver.h
  3839. * src/DHTMessageTrackerEntry.cc
  3840. * src/DHTMessageTrackerEntry.h
  3841. * src/DHTPeerAnnounceEntry.cc
  3842. * src/DHTPeerAnnounceEntry.h
  3843. * src/DHTPeerLookupTask.cc
  3844. * src/DHTPeerLookupTask.h
  3845. * src/DHTRoutingTableDeserializer.cc
  3846. * src/DHTRoutingTableDeserializer.h
  3847. * src/DefaultBtAnnounce.cc
  3848. * src/DefaultBtAnnounce.h
  3849. * src/DefaultBtMessageDispatcher.cc
  3850. * src/DefaultBtMessageDispatcher.h
  3851. * src/DefaultBtRequestFactory.cc
  3852. * src/DefaultBtRequestFactory.h
  3853. * src/DiskAdaptor.cc
  3854. * src/DiskAdaptor.h
  3855. * src/DownloadContext.cc
  3856. * src/DownloadContext.h
  3857. * src/DownloadEngine.cc
  3858. * src/DownloadEngine.h
  3859. * src/EpollEventPoll.cc
  3860. * src/EpollEventPoll.h
  3861. * src/FtpConnection.cc
  3862. * src/FtpConnection.h
  3863. * src/HttpConnection.cc
  3864. * src/HttpConnection.h
  3865. * src/HttpHeader.cc
  3866. * src/HttpHeader.h
  3867. * src/HttpRequest.cc
  3868. * src/HttpRequest.h
  3869. * src/HttpResponse.cc
  3870. * src/HttpResponse.h
  3871. * src/LibsslTLSContext.cc
  3872. * src/LibsslTLSContext.h
  3873. * src/MSEHandshake.cc
  3874. * src/MSEHandshake.h
  3875. * src/MetalinkEntry.cc
  3876. * src/MetalinkEntry.h
  3877. * src/MetalinkParserController.cc
  3878. * src/MetalinkParserController.h
  3879. * src/MetalinkParserStateMachine.cc
  3880. * src/MetalinkParserStateMachine.h
  3881. * src/MultiDiskAdaptor.cc
  3882. * src/MultiDiskAdaptor.h
  3883. * src/NetrcAuthResolver.cc
  3884. * src/NetrcAuthResolver.h
  3885. * src/Peer.cc
  3886. * src/Peer.h
  3887. * src/PeerSessionResource.cc
  3888. * src/PeerSessionResource.h
  3889. * src/Piece.cc
  3890. * src/Piece.h
  3891. * src/PieceStatMan.cc
  3892. * src/PieceStatMan.h
  3893. * src/Request.cc
  3894. * src/Request.h
  3895. * src/RequestGroup.cc
  3896. * src/RequestGroup.h
  3897. * src/RequestGroupMan.cc
  3898. * src/RequestGroupMan.h
  3899. * src/RequestSlot.cc
  3900. * src/RequestSlot.h
  3901. * src/SegmentMan.cc
  3902. * src/SegmentMan.h
  3903. * src/SelectEventPoll.cc
  3904. * src/SelectEventPoll.h
  3905. * src/ServerStat.cc
  3906. * src/ServerStat.h
  3907. * src/Signature.cc
  3908. * src/Signature.h
  3909. * src/URIResult.cc
  3910. * src/URIResult.h
  3911. * src/UTPexExtensionMessage.cc
  3912. * src/UTPexExtensionMessage.h
  3913. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3914. Fixed compile error without BitTorrent and Metalink support.
  3915. * src/XmlRpcMethod.cc
  3916. * src/XmlRpcMethodFactory.cc
  3917. * src/XmlRpcMethodImpl.cc
  3918. * src/XmlRpcMethodImpl.h
  3919. * test/XmlRpcMethodTest.cc
  3920. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3921. Rewritten the help message for --allow-overwrite option.
  3922. * doc/aria2c.1.txt
  3923. * src/usage_text.h
  3924. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3925. Fixed typo
  3926. * doc/aria2c.1.txt
  3927. * src/usage_text.h
  3928. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3929. Updated README for 1.4.0 release. Use new table syntax of
  3930. asciidoc.
  3931. * README
  3932. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3933. Documented --xml-rpc-max-request-size option in man page.
  3934. * doc/aria2c.1.txt
  3935. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3936. Moved C_* constants from BtContext to DefaultBtContext.
  3937. * src/BtContext.cc: Removed.
  3938. * src/BtContext.h
  3939. * src/DefaultBtContext.cc
  3940. * src/DefaultBtContext.h
  3941. * src/Makefile.am
  3942. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3943. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3944. path key respectively when persing .torrent file.
  3945. * src/BtContext.cc
  3946. * src/BtContext.h
  3947. * src/DefaultBtContext.cc
  3948. * test/DefaultBtContextTest.cc
  3949. * test/utf8.torrent
  3950. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3951. Added --xml-rpc-max-request-size option to limit the size of
  3952. XML-RPC request.
  3953. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3954. Documented XML-RPC API in man page.
  3955. * doc/aria2c.1.txt
  3956. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3957. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3958. will break strict-aliasing rules
  3959. * src/PeerConnection.cc
  3960. * test/DHTRoutingTableSerializerTest.cc
  3961. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3962. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3963. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3964. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3965. PKG_CHECK_MODULES macro uses latter name.
  3966. * m4/sqlite3.m4
  3967. * src/Makefile.am
  3968. * test/Makefile.am
  3969. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3970. Fixed typo
  3971. * configure.ac
  3972. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3973. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3974. presence of libgnutls using pkg-config first. If it fails, fall
  3975. back to old macro libgnutls.m4.
  3976. * configure.ac
  3977. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3978. Use s itself instead of !s.bad()
  3979. * src/CookieStorage.cc
  3980. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3981. Documented --on-download-* option and --save-cookies option in man
  3982. page.
  3983. * doc/aria2c.1.txt
  3984. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3985. Set possible values for --load-cookie option to "/path/to/file".
  3986. * src/OptionHandlerFactory.cc
  3987. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3988. Added --save-cookies option.
  3989. * src/Cookie.cc
  3990. * src/Cookie.h
  3991. * src/CookieStorage.cc
  3992. * src/CookieStorage.h
  3993. * src/MultiUrlRequestInfo.cc
  3994. * src/OptionHandlerFactory.cc
  3995. * src/prefs.cc
  3996. * src/prefs.h
  3997. * src/usage_text.h
  3998. * test/CookieStorageTest.cc
  3999. * test/CookieTest.cc
  4000. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4001. Removed tellAll XML-RPC command because its reponse tends to be
  4002. big if stopped/waiting downloads pile up.
  4003. * src/XmlRpcMethodFactory.cc
  4004. * src/XmlRpcMethodImpl.cc
  4005. * src/XmlRpcMethodImpl.h
  4006. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4007. Added the ability to execute command when download starts and
  4008. stops. You can also specify command for particular cases such as
  4009. complete/error download. Added --on-download-start,
  4010. --on-download-stop, --on-download-complete and --on-download-error
  4011. option.
  4012. * src/OptionHandlerFactory.cc
  4013. * src/RequestGroupMan.cc
  4014. * src/prefs.cc
  4015. * src/prefs.h
  4016. * src/usage_text.h
  4017. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4018. Fixed test error
  4019. * test/BencodeTest.cc
  4020. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4021. Added unit tests.
  4022. * test/XmlRpcMethodTest.cc
  4023. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4024. Made exception message more verbose.
  4025. * src/bencode.cc
  4026. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4027. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4028. space in console readout. Also they are now shown in MiB/s if
  4029. speed > 1024KiB/s.
  4030. * src/ConsoleStatCalc.cc
  4031. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4032. Added SEED to console output, which represents the number of
  4033. seeders currently the client is connecting to.
  4034. * src/ConsoleStatCalc.cc
  4035. * src/ConsoleStatCalc.h
  4036. * src/DownloadEngine.cc
  4037. * src/NullStatCalc.h
  4038. * src/StatCalc.h
  4039. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4040. Added source filename(__FILE__) and line number(__LINE__) to
  4041. exception message.
  4042. * src/AbstractCommand.cc
  4043. * src/AbstractDiskWriter.cc
  4044. * src/AbstractProxyResponseCommand.cc
  4045. * src/BDE.h
  4046. * src/BtAllowedFastMessage.cc
  4047. * src/BtHandshakeMessageValidator.h
  4048. * src/BtHaveAllMessage.cc
  4049. * src/BtHaveNoneMessage.cc
  4050. * src/BtPieceMessage.cc
  4051. * src/BtRejectMessage.cc
  4052. * src/ChunkedDecoder.cc
  4053. * src/CookieStorage.cc
  4054. * src/DHTAnnouncePeerMessage.cc
  4055. * src/DHTEntryPointNameResolveCommand.cc
  4056. * src/DHTMessageFactoryImpl.cc
  4057. * src/DHTMessageTracker.cc
  4058. * src/DHTRoutingTableDeserializer.cc
  4059. * src/DHTRoutingTableSerializer.cc
  4060. * src/DHTSetup.cc
  4061. * src/DHTTokenTracker.cc
  4062. * src/DefaultBtAnnounce.cc
  4063. * src/DefaultBtContext.cc
  4064. * src/DefaultBtInteractive.cc
  4065. * src/DefaultBtMessageFactory.cc
  4066. * src/DefaultBtProgressInfoFile.cc
  4067. * src/DefaultExtensionMessageFactory.cc
  4068. * src/DlAbortEx.h
  4069. * src/DlRetryEx.h
  4070. * src/DownloadCommand.cc
  4071. * src/DownloadEngineFactory.cc
  4072. * src/DownloadFailureException.h
  4073. * src/Exception.cc
  4074. * src/Exception.h
  4075. * src/ExpatMetalinkProcessor.cc
  4076. * src/ExpatXmlRpcRequestProcessor.cc
  4077. * src/FallocFileAllocationIterator.cc
  4078. * src/FatalException.h
  4079. * src/FtpConnection.cc
  4080. * src/FtpFinishDownloadCommand.cc
  4081. * src/FtpInitiateConnectionCommand.cc
  4082. * src/FtpNegotiationCommand.cc
  4083. * src/GZipDecoder.cc
  4084. * src/HandshakeExtensionMessage.cc
  4085. * src/HttpConnection.cc
  4086. * src/HttpHeaderProcessor.cc
  4087. * src/HttpInitiateConnectionCommand.cc
  4088. * src/HttpResponse.cc
  4089. * src/HttpResponseCommand.cc
  4090. * src/HttpServer.cc
  4091. * src/HttpSkipResponseCommand.cc
  4092. * src/InitiateConnectionCommandFactory.cc
  4093. * src/IteratableChunkChecksumValidator.cc
  4094. * src/LibgcryptARC4Context.h
  4095. * src/LibgcryptARC4Decryptor.h
  4096. * src/LibgcryptARC4Encryptor.h
  4097. * src/LibgcryptDHKeyExchange.h
  4098. * src/LibgnutlsTLSContext.cc
  4099. * src/LibsslARC4Context.h
  4100. * src/LibsslARC4Decryptor.h
  4101. * src/LibsslARC4Encryptor.h
  4102. * src/LibsslDHKeyExchange.h
  4103. * src/LibsslTLSContext.cc
  4104. * src/MSEHandshake.cc
  4105. * src/MessageDigestHelper.cc
  4106. * src/MetalinkHelper.cc
  4107. * src/MultiDiskAdaptor.cc
  4108. * src/NameMatchOptionHandler.h
  4109. * src/NameResolver.cc
  4110. * src/Netrc.cc
  4111. * src/NsCookieParser.cc
  4112. * src/OptionHandlerException.cc
  4113. * src/OptionHandlerException.h
  4114. * src/OptionHandlerImpl.h
  4115. * src/OptionParser.cc
  4116. * src/ParameterizedStringParser.cc
  4117. * src/PeerAbstractCommand.cc
  4118. * src/PeerConnection.cc
  4119. * src/PeerMessageUtil.cc
  4120. * src/PeerReceiveHandshakeCommand.cc
  4121. * src/Platform.cc
  4122. * src/ReceiverMSEHandshakeCommand.cc
  4123. * src/RecoverableException.h
  4124. * src/RequestGroup.cc
  4125. * src/SimpleLogger.cc
  4126. * src/SocketCore.cc
  4127. * src/Sqlite3MozCookieParser.cc
  4128. * src/UTPexExtensionMessage.cc
  4129. * src/Util.cc
  4130. * src/XML2SAXMetalinkProcessor.cc
  4131. * src/Xml2XmlRpcRequestProcessor.cc
  4132. * src/XmlRpcMethodImpl.cc
  4133. * src/bencode.cc
  4134. * src/download_helper.cc
  4135. * src/messageDigest.h
  4136. * test/ExceptionTest.cc
  4137. * test/TestUtil.cc
  4138. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4139. Bump up version number to 1.4.0
  4140. * configure.ac
  4141. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4142. Added 2files.metalink to EXTRA_DIST
  4143. * test/Makefile.am
  4144. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4145. Added missing 2files.metalink
  4146. * test/2files.metalink
  4147. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4148. Show "[MEMORY]" prefix before filename in download summary if it
  4149. is downloaded into memory.
  4150. * src/DownloadResult.h
  4151. * src/RequestGroup.cc
  4152. * src/RequestGroupMan.cc
  4153. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4154. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4155. * src/ExpatXmlRpcRequestProcessor.cc
  4156. * src/Xml2XmlRpcRequestProcessor.cc
  4157. * src/message.h
  4158. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4159. Defined const BDEs to avoid duplicate instantiation.
  4160. Defined MSG_GID_NOT_PROVIDED.
  4161. * src/XmlRpcMethodImpl.cc
  4162. * src/message.h
  4163. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4164. Code cleanup
  4165. * src/Xml2XmlRpcRequestProcessor.cc
  4166. * src/Xml2XmlRpcRequestProcessor.h
  4167. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4168. Defined ENABLE_XML_RPC
  4169. * configure.ac
  4170. * configure
  4171. * config.h.in
  4172. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4173. Added ExpatXmlRpcRequestProcessor
  4174. * src/ExpatXmlRpcRequestProcessor.cc
  4175. * src/ExpatXmlRpcRequestProcessor.h
  4176. * src/Makefile.am
  4177. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4178. Added tests for addTorrent and addMetalink command.
  4179. * test/TestUtil.cc
  4180. * test/TestUtil.h
  4181. * test/XmlRpcMethodTest.cc
  4182. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4183. Corrected the description of --file-allocation option.
  4184. * doc/aria2c.1.txt
  4185. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4186. Added tellAll command.
  4187. * src/XmlRpcMethodFactory.cc
  4188. * src/XmlRpcMethodImpl.cc
  4189. * src/XmlRpcMethodImpl.h
  4190. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4191. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4192. * src/XmlRpcMethodImpl.cc
  4193. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4194. Added changeGlobalOption command. Currently,
  4195. max-overall-download-limit and max-overall-upload-limit option are
  4196. available.
  4197. * src/RequestGroupMan.h
  4198. * src/XmlRpcMethod.cc
  4199. * src/XmlRpcMethod.h
  4200. * src/XmlRpcMethodFactory.cc
  4201. * src/XmlRpcMethodImpl.cc
  4202. * src/XmlRpcMethodImpl.h
  4203. * test/XmlRpcMethodTest.cc
  4204. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4205. Added changeOption command. Currently, max-download-limit,
  4206. max-upload-limit option are available in this command.
  4207. * src/RequestGroup.h
  4208. * src/XmlRpcMethod.cc
  4209. * src/XmlRpcMethod.h
  4210. * src/XmlRpcMethodFactory.cc
  4211. * src/XmlRpcMethodImpl.cc
  4212. * src/XmlRpcMethodImpl.h
  4213. * test/XmlRpcMethodTest.cc
  4214. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4215. Added purgeDownloadResult command.
  4216. * src/RequestGroupMan.cc
  4217. * src/RequestGroupMan.h
  4218. * src/XmlRpcMethodFactory.cc
  4219. * src/XmlRpcMethodImpl.cc
  4220. * src/XmlRpcMethodImpl.h
  4221. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4222. Refactored.
  4223. * src/XmlRpcMethod.cc
  4224. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4225. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4226. XmlRpcResponse.
  4227. * src/HttpServerBodyCommand.cc
  4228. * src/Makefile.am
  4229. * src/XmlRpcMethod.cc
  4230. * src/XmlRpcMethod.h
  4231. * src/XmlRpcMethodImpl.cc
  4232. * src/XmlRpcResponse.cc
  4233. * src/XmlRpcResponse.h
  4234. * test/XmlRpcMethodTest.cc
  4235. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4236. In XML-RPC option struct, header and index-out option can take
  4237. array as value.
  4238. * src/XmlRpcMethod.cc
  4239. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4240. Removed unused option member from PeerConnection.
  4241. * src/InitiatorMSEHandshakeCommand.cc
  4242. * src/PeerConnection.cc
  4243. * src/PeerConnection.h
  4244. * src/PeerInteractionCommand.cc
  4245. * src/PeerReceiveHandshakeCommand.cc
  4246. * src/ReceiverMSEHandshakeCommand.cc
  4247. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4248. Added "seeder" key to getPeers response.
  4249. * src/XmlRpcMethodImpl.cc
  4250. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4251. Added addMetalink XML-RPC command.
  4252. * src/XmlRpcMethodFactory.cc
  4253. * src/XmlRpcMethodImpl.cc
  4254. * src/XmlRpcMethodImpl.h
  4255. * src/download_helper.cc
  4256. * src/download_helper.h
  4257. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4258. Fixed the bug that POU peers are never choked in seeding.
  4259. * src/BtSeederStateChoke.cc
  4260. * src/BtSeederStateChoke.h
  4261. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4262. Added web-seeding URI handling in addTorrent command.
  4263. * src/XmlRpcMethodImpl.cc
  4264. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4265. Added "length" key to getFiles response.
  4266. * src/XmlRpcMethodImpl.cc
  4267. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4268. Moved --no-netrc option from ftp option section to http/ftp option
  4269. section.
  4270. * doc/aria2c.1.txt
  4271. * src/OptionHandlerFactory.cc
  4272. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4273. Removed garbage "\" character before '
  4274. * doc/aria2c.1.txt
  4275. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4276. Removed garbage "\" character before http.
  4277. * doc/aria2c.1.txt
  4278. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4279. Documented additional options that can be specified in -i list.
  4280. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4281. and --xml-rpc-passwd. Removed --enable-http-server and
  4282. --http-server-listen-port.
  4283. * doc/aria2c.1.txt
  4284. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4285. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4286. * src/DefaultPeerStorage.cc
  4287. * src/DefaultPeerStorage.h
  4288. * src/PeerStorage.h
  4289. * src/XmlRpcMethodImpl.cc
  4290. * test/MockPeerStorage.h
  4291. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4292. Put a call to Socket::isReadable() in try block.
  4293. * src/HttpServerBodyCommand.cc
  4294. * src/HttpServerCommand.cc
  4295. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4297. exception , so it is now in try block.
  4298. * src/HttpServerResponseCommand.cc
  4299. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4300. Added "amChoking" and "peerChoking" key in getPeers response.
  4301. * src/XmlRpcMethodImpl.cc
  4302. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4303. Added test case for zero-length filter.
  4304. * test/BitfieldManTest.cc
  4305. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4306. getFiles command now returns file data for finished/stopped
  4307. downloads.
  4308. * src/XmlRpcMethodImpl.cc
  4309. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4310. DownloadResult now has the list of FileEntry. The download
  4311. summary displays the path of first selected file and the number of
  4312. remaining files for multi-file torrent.
  4313. * src/DownloadResult.h
  4314. * src/RequestGroup.cc
  4315. * src/RequestGroupMan.cc
  4316. * test/RequestGroupTest.cc
  4317. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4318. Fixed segmentation fault error when no file is selected in
  4319. multi-file torrent.
  4320. * src/BitfieldMan.cc
  4321. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4322. Escaped <,>,& character in XML-RPC response.
  4323. * src/XmlRpcMethod.cc
  4324. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4325. Throw DlAbortEx instead of FatalException during parsing options
  4326. because we don't want for aria2 to quit when bad option is passed
  4327. via XML-RPC.
  4328. * src/OptionHandlerException.cc
  4329. * src/OptionHandlerException.h
  4330. * src/OptionHandlerImpl.h
  4331. * src/OptionParser.cc
  4332. * src/OptionParser.h
  4333. * src/PStringSegment.cc
  4334. * src/ParameterizedStringParser.cc
  4335. * src/download_helper.cc
  4336. * test/ParameterizedStringParserTest.cc
  4337. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4338. Selecting files are now done in
  4339. DefaultBtContext::setFileFileter().
  4340. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4341. functions are removed because they are no longer used. Creating
  4342. filter in BitfieldMan is done in new funtion
  4343. PieceStorage::setupFileFilter()
  4344. * src/BtContext.cc
  4345. * src/BtContext.h
  4346. * src/DefaultBtContext.cc
  4347. * src/DefaultBtContext.h
  4348. * src/DefaultPieceStorage.cc
  4349. * src/DefaultPieceStorage.h
  4350. * src/DiskAdaptor.cc
  4351. * src/DiskAdaptor.h
  4352. * src/PieceStorage.h
  4353. * src/RequestGroup.cc
  4354. * src/UnknownLengthPieceStorage.h
  4355. * src/XmlRpcMethodImpl.cc
  4356. * test/DefaultBtContextTest.cc
  4357. * test/MockBtContext.h
  4358. * test/MockPieceStorage.h
  4359. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4360. Fixed compile error on Mac OS X
  4361. * src/HttpServer.cc
  4362. * src/XmlRpcMethod.h
  4363. * src/XmlRpcMethodImpl.cc
  4364. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4365. Use std::binary_search instead of std::find
  4366. * src/DefaultPieceStorage.cc
  4367. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4368. Removed unnecessary BDE() call; leave them to implicit conversion.
  4369. * src/XmlRpcMethodImpl.cc
  4370. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4371. Return connections and gid in string
  4372. * src/XmlRpcMethodImpl.cc
  4373. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4374. Renamed addURI as addUri
  4375. * src/XmlRpcMethodFactory.cc
  4376. * src/XmlRpcMethodImpl.cc
  4377. * src/XmlRpcMethodImpl.h
  4378. * test/XmlRpcMethodTest.cc
  4379. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4380. Renamed addTorrentFile as addTorrent
  4381. * src/XmlRpcMethodFactory.cc
  4382. * src/XmlRpcMethodImpl.cc
  4383. * src/XmlRpcMethodImpl.h
  4384. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4385. The information for files, URIs, peers are removed from the
  4386. reponse of TellaActive, TellStatus command because they tend to be
  4387. large. Instead they can be retrieved by the dedicated commands:
  4388. getFiles, getUris and getPeers respectively.
  4389. * src/XmlRpcMethodFactory.cc
  4390. * src/XmlRpcMethodImpl.cc
  4391. * src/XmlRpcMethodImpl.h
  4392. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4393. Removed --max-overall-upload-limit and
  4394. --max-overall-download-limit option from listRequestOptions.
  4395. * src/download_helper.cc
  4396. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4397. Log incoming host in HttpListenCommand.
  4398. * src/HttpListenCommand.cc
  4399. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4400. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4401. --xml-rpc-passwd option.
  4402. * src/HttpServer.cc
  4403. * src/HttpServer.h
  4404. * src/HttpServerCommand.cc
  4405. * src/OptionHandlerFactory.cc
  4406. * src/prefs.cc
  4407. * src/prefs.h
  4408. * src/usage_text.h
  4409. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4410. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4411. processing 0 length request.
  4412. * src/HttpServerBodyCommand.cc
  4413. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4414. Removed --enable-http-server and --http-server-listen-port
  4415. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4416. instead. The original feature for --enable-http-server that
  4417. reports download progress in HTML was officially removed. Persist
  4418. XML-RPC connection if client supports keep-alive.
  4419. * src/DownloadEngineFactory.cc
  4420. * src/HttpServerCommand.cc
  4421. * src/HttpServerResponseCommand.cc
  4422. * src/Makefile.am
  4423. * src/Makefile.in
  4424. * src/OptionHandlerFactory.cc
  4425. * src/RequestGroupMan.cc
  4426. * src/main.cc
  4427. * src/option_processing.cc
  4428. * src/prefs.cc
  4429. * src/prefs.h
  4430. * src/usage_text.h
  4431. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4432. Added "uris" key to the response of tellStatus command. Added
  4433. "connections" key to the response of tellStatus and tellActive
  4434. command.
  4435. * src/XmlRpcMethodImpl.cc
  4436. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4437. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4438. Added TellStatusXmlRpcMethod. Remove command can now remove
  4439. waiting RequestGroup.
  4440. * src/RequestGroupMan.cc
  4441. * src/RequestGroupMan.h
  4442. * src/XmlRpcMethodFactory.cc
  4443. * src/XmlRpcMethodImpl.cc
  4444. * src/XmlRpcMethodImpl.h
  4445. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4446. Initialized _peerId
  4447. * src/Peer.cc
  4448. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4449. Return fault structure for error. FailXmlRpcMethod is renamed as
  4450. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4451. in non-torrent download. Return single param value.
  4452. * src/XmlRpcMethod.cc
  4453. * src/XmlRpcMethodFactory.cc
  4454. * src/XmlRpcMethodImpl.cc
  4455. * src/XmlRpcMethodImpl.h
  4456. * test/XmlRpcMethodTest.cc
  4457. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4458. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4459. command.
  4460. * src/RequestGroup.cc
  4461. * src/RequestGroup.h
  4462. * src/RequestGroupMan.cc
  4463. * src/XmlRpcMethodImpl.cc
  4464. * test/RequestGroupTest.cc
  4465. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4466. Added more options that can be specified in -i list and xml-rpc
  4467. add* command.
  4468. * src/download_helper.h
  4469. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4470. The available options in -i list should be listed in
  4471. listRequestOptions().
  4472. * src/download_helper.cc
  4473. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4474. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4475. command.
  4476. * src/XmlRpcMethodImpl.cc
  4477. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4478. Now RequestGroup has its own copy of Option object. This will help
  4479. to give custom option for each RequestGroup.
  4480. addTorrentFile command now takes options.
  4481. * src/AbstractCommand.cc
  4482. * src/AbstractCommand.h
  4483. * src/AbstractProxyRequestCommand.cc
  4484. * src/ActivePeerConnectionCommand.cc
  4485. * src/ActivePeerConnectionCommand.h
  4486. * src/AdaptiveURISelector.cc
  4487. * src/BtCheckIntegrityEntry.cc
  4488. * src/BtDependency.cc
  4489. * src/BtDependency.h
  4490. * src/BtFileAllocationEntry.cc
  4491. * src/BtPostDownloadHandler.cc
  4492. * src/CheckIntegrityEntry.cc
  4493. * src/DownloadCommand.cc
  4494. * src/FtpDownloadCommand.cc
  4495. * src/FtpFinishDownloadCommand.cc
  4496. * src/FtpInitiateConnectionCommand.cc
  4497. * src/FtpNegotiationCommand.cc
  4498. * src/HttpInitiateConnectionCommand.cc
  4499. * src/HttpRequestCommand.cc
  4500. * src/HttpResponseCommand.cc
  4501. * src/HttpSkipResponseCommand.cc
  4502. * src/InitiateConnectionCommand.cc
  4503. * src/InitiateConnectionCommandFactory.cc
  4504. * src/InitiatorMSEHandshakeCommand.cc
  4505. * src/InitiatorMSEHandshakeCommand.h
  4506. * src/Metalink2RequestGroup.cc
  4507. * src/Metalink2RequestGroup.h
  4508. * src/MetalinkPostDownloadHandler.cc
  4509. * src/MultiUrlRequestInfo.cc
  4510. * src/MultiUrlRequestInfo.h
  4511. * src/PeerAbstractCommand.cc
  4512. * src/PeerInteractionCommand.cc
  4513. * src/PeerInteractionCommand.h
  4514. * src/PeerReceiveHandshakeCommand.cc
  4515. * src/PeerReceiveHandshakeCommand.h
  4516. * src/RequestGroup.cc
  4517. * src/RequestGroup.h
  4518. * src/TrackerWatcherCommand.cc
  4519. * src/TrackerWatcherCommand.h
  4520. * src/XmlRpcMethod.cc
  4521. * src/XmlRpcMethod.h
  4522. * src/XmlRpcMethodImpl.cc
  4523. * src/download_helper.cc
  4524. * src/download_helper.h
  4525. * src/main.cc
  4526. * test/BtDependencyTest.cc
  4527. * test/BtPostDownloadHandlerTest.cc
  4528. * test/DefaultBtMessageDispatcherTest.cc
  4529. * test/DownloadHandlerFactoryTest.cc
  4530. * test/DownloadHelperTest.cc
  4531. * test/Metalink2RequestGroupTest.cc
  4532. * test/MetalinkPostDownloadHandlerTest.cc
  4533. * test/RequestGroupManTest.cc
  4534. * test/RequestGroupTest.cc
  4535. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4536. Added tellActiveStatus xml-rpc command which reports download
  4537. status of active downloads.
  4538. * src/XmlRpcMethodFactory.cc
  4539. * src/XmlRpcMethodImpl.cc
  4540. * src/XmlRpcMethodImpl.h
  4541. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4542. Added addTorrentFile xml-rpc command which receives uploaded
  4543. torrent file and add download for it.
  4544. * src/RequestGroupMan.cc
  4545. * src/XmlRpcMethodFactory.cc
  4546. * src/XmlRpcMethodImpl.cc
  4547. * src/XmlRpcMethodImpl.h
  4548. * src/download_helper.cc
  4549. * src/download_helper.h
  4550. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4551. Added remove xml-rpc command which removes specified download.
  4552. There is a known issue: the removed unfinished downloads are
  4553. reported ERR when aria2 exits. They should be reported as INPR.
  4554. * src/RequestGroupMan.cc
  4555. * src/RequestGroupMan.h
  4556. * src/XmlRpcMethodFactory.cc
  4557. * src/XmlRpcMethodImpl.cc
  4558. * src/XmlRpcMethodImpl.h
  4559. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4560. If --enable-http-server is enabled, don't stop aria2 when all
  4561. download finished and don't quit when no files to download at
  4562. start up.
  4563. * src/RequestGroupMan.cc
  4564. * src/main.cc
  4565. * src/option_processing.cc
  4566. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4567. Added missing AM_CONDITIONAL
  4568. * configure.ac
  4569. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4570. Added xml-rpc functionality. Currently only addURI commad is
  4571. supported. To enable xml-rpc, run aria2 with
  4572. --enable-http-server. This option name is temporal and will be
  4573. changed. The feature that reports download progress in html format
  4574. is temporarily disabled.
  4575. * src/HttpServer.cc
  4576. * src/HttpServer.h
  4577. * src/HttpServerBodyCommand.cc
  4578. * src/HttpServerBodyCommand.h
  4579. * src/HttpServerCommand.cc
  4580. * src/HttpServerResponseCommand.cc
  4581. * src/Makefile.am
  4582. * src/OptionParser.cc
  4583. * src/OptionParser.h
  4584. * src/RequestGroupMan.cc
  4585. * src/RequestGroupMan.h
  4586. * src/XmlRpcMethod.cc
  4587. * src/XmlRpcMethod.h
  4588. * src/XmlRpcMethodFactory.cc
  4589. * src/XmlRpcMethodFactory.h
  4590. * src/XmlRpcMethodImpl.cc
  4591. * src/XmlRpcMethodImpl.h
  4592. * src/download_helper.cc
  4593. * src/download_helper.h
  4594. * test/Makefile.am
  4595. * test/XmlRpcMethodTest.cc
  4596. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4597. Added xml-rpc request parser. The supported value types are:
  4598. i4/int, string, double, struct, array, base64. Currently only
  4599. libxml2 version is provided.
  4600. * src/Xml2XmlRpcRequestProcessor.cc
  4601. * src/Xml2XmlRpcRequestProcessor.h
  4602. * src/XmlRpcElements.cc
  4603. * src/XmlRpcElements.h
  4604. * src/XmlRpcRequest.h
  4605. * src/XmlRpcRequestParserController.cc
  4606. * src/XmlRpcRequestParserController.h
  4607. * src/XmlRpcRequestParserState.h
  4608. * src/XmlRpcRequestParserStateImpl.cc
  4609. * src/XmlRpcRequestParserStateImpl.h
  4610. * src/XmlRpcRequestParserStateMachine.cc
  4611. * src/XmlRpcRequestParserStateMachine.h
  4612. * src/XmlRpcRequestProcessor.h
  4613. * test/XmlRpcRequestParserControllerTest.cc
  4614. * test/XmlRpcRequestProcessorTest.cc
  4615. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4616. * Release 1.3.3
  4617. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4618. Fixed compile error since r1202.
  4619. * src/ExpatMetalinkProcessor.cc
  4620. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4621. Updated Ukrainian, Russian and Simplified Chinese
  4622. translations. Thanks to all translators.
  4623. * po/ru.po
  4624. * po/uk.po
  4625. * po/zh_CN.po
  4626. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4627. Pass reference of Option object instead of pointer.
  4628. * src/download_helper.cc
  4629. * src/download_helper.h
  4630. * src/main.cc
  4631. * test/DownloadHelperTest.cc
  4632. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4633. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4634. from option directly. Instead, get them from RequestGroup.
  4635. * src/ActivePeerConnectionCommand.cc
  4636. * src/ActivePeerConnectionCommand.h
  4637. * src/PeerReceiveHandshakeCommand.cc
  4638. * src/RequestGroup.h
  4639. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4640. Removed unused uploadLimitCheck and uploadLimit from
  4641. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4642. PeerInteractionCommand.
  4643. * src/PeerAbstractCommand.cc
  4644. * src/PeerAbstractCommand.h
  4645. * src/PeerInteractionCommand.cc
  4646. * src/PeerInteractionCommand.h
  4647. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4648. Fixed broken file renaming feature since r1202.
  4649. * src/FtpNegotiationCommand.cc
  4650. * src/FtpNegotiationCommand.h
  4651. * src/HttpResponseCommand.cc
  4652. * src/RequestGroup.cc
  4653. * src/RequestGroup.h
  4654. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4655. Removed unused debug log
  4656. * src/SocketCore.cc
  4657. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4658. Generated configure and Makefile.in using autoconf 2.63 and
  4659. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4660. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4661. * configure.ac
  4662. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4663. Moved piece statistics stuff to new PieceStatMan class.
  4664. Refactored PieceSelector interface.
  4665. * src/DefaultPieceStorage.cc
  4666. * src/DefaultPieceStorage.h
  4667. * src/LongestSequencePieceSelector.cc
  4668. * src/LongestSequencePieceSelector.h
  4669. * src/Makefile.am
  4670. * src/PieceSelector.h
  4671. * src/PieceStatMan.cc
  4672. * src/PieceStatMan.h
  4673. * src/RarestPieceSelector.cc
  4674. * src/RarestPieceSelector.h
  4675. * src/RequestGroup.cc
  4676. * test/DefaultPieceStorageTest.cc
  4677. * test/InOrderPieceSelector.h
  4678. * test/Makefile.am
  4679. * test/PieceStatManTest.cc
  4680. * test/RarestPieceSelectorTest.cc
  4681. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4682. Added static member _protocolFamily to SocketCore. By default,
  4683. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4684. address. Sometime SocketCore::bind() and
  4685. SocketCore::establishConnection() use difference protocl family
  4686. and latter cannot connect to former. To avoid this situation, we
  4687. limit protocol family to AF_INET for unit tests.
  4688. * src/SocketCore.cc
  4689. * src/SocketCore.h
  4690. * test/AllTest.cc
  4691. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4692. Avoid std::bad_alloc for negative bencode string length.
  4693. * src/bencode.cc
  4694. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4695. Supported segmented downloading with chunked transfer encoding and
  4696. content-length.
  4697. * src/DownloadCommand.cc
  4698. * src/HttpResponseCommand.cc
  4699. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4700. Bump up version number to 1.3.3
  4701. * configure.ac
  4702. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4703. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4704. from 4096 to 65536 (for insanely large ftp login banners)
  4705. * src/FtpConnection.h
  4706. * test/FtpConnectionTest.cc
  4707. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4708. In DefaultBtContext::getActualBasePath(), return first
  4709. FileEntry::getPath() for single file torrent.
  4710. * src/DefaultBtContext.cc
  4711. * test/DefaultBtContextTest.cc
  4712. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4713. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4714. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4715. Removed _directIOAllowed member from DiskWriter.
  4716. * src/AbstractDiskWriter.cc
  4717. * src/AbstractDiskWriter.h
  4718. * src/AbstractSingleDiskAdaptor.cc
  4719. * src/AbstractSingleDiskAdaptor.h
  4720. * src/BinaryStream.h
  4721. * src/ByteArrayDiskWriter.h
  4722. * src/DefaultPieceStorage.cc
  4723. * src/DiskWriter.h
  4724. * src/MultiDiskAdaptor.cc
  4725. * src/MultiDiskAdaptor.h
  4726. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4727. Now the constructor of AbstractDiskWriter takes filename as an
  4728. argument and filename argument is removed from openFile(),
  4729. initAndOpenFile(), openExistingFile() interface. storeDir member
  4730. and its accessor functions are removed from DiskAdaptor because it
  4731. is not used anymore. size() member function of DefaultDiskWriter,
  4732. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4733. opening file.
  4734. * src/AbstractDiskWriter.cc
  4735. * src/AbstractDiskWriter.h
  4736. * src/AbstractSingleDiskAdaptor.cc
  4737. * src/AbstractSingleDiskAdaptor.h
  4738. * src/ByteArrayDiskWriter.cc
  4739. * src/ByteArrayDiskWriter.h
  4740. * src/ByteArrayDiskWriterFactory.cc
  4741. * src/ByteArrayDiskWriterFactory.h
  4742. * src/DefaultDiskWriter.cc
  4743. * src/DefaultDiskWriter.h
  4744. * src/DefaultDiskWriterFactory.cc
  4745. * src/DefaultDiskWriterFactory.h
  4746. * src/DefaultPieceStorage.cc
  4747. * src/DirectDiskAdaptor.cc
  4748. * src/DirectDiskAdaptor.h
  4749. * src/DiskAdaptor.h
  4750. * src/DiskWriter.h
  4751. * src/DiskWriterFactory.h
  4752. * src/MessageDigestHelper.cc
  4753. * src/MultiDiskAdaptor.cc
  4754. * src/RequestGroup.cc
  4755. * src/UnknownLengthPieceStorage.cc
  4756. * src/Util.cc
  4757. * test/DefaultDiskWriterTest.cc
  4758. * test/DirectDiskAdaptorTest.cc
  4759. * test/FallocFileAllocationIteratorTest.cc
  4760. * test/MessageDigestHelperTest.cc
  4761. * test/MetalinkProcessorTest.cc
  4762. * test/MultiDiskAdaptorTest.cc
  4763. * test/MultiFileAllocationIteratorTest.cc
  4764. * test/SingleFileAllocationIteratorTest.cc
  4765. * test/UtilTest.cc
  4766. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4767. Fixed the bug that aria2 aborts when --select-file is used. This
  4768. bug was introduced in r1199.
  4769. * src/MultiDiskAdaptor.cc
  4770. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4771. Code cleanup
  4772. * test/MockPieceStorage.cc
  4773. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4774. Fixed the bug that read-only file with wrong file size will cause
  4775. error because it cannot be truncated to the correct size. Now if
  4776. file size is different than the expected one, re-open file in
  4777. writable mode.
  4778. * src/AbstractSingleDiskAdaptor.cc
  4779. * src/AbstractSingleDiskAdaptor.h
  4780. * src/BtCheckIntegrityEntry.cc
  4781. * src/DiskAdaptor.h
  4782. * src/MultiDiskAdaptor.h
  4783. * src/RequestGroup.cc
  4784. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4785. Fixed the bug that with --check-integrity option aria2 reports
  4786. downloaded file size is 0 even if some parts of file is correctly
  4787. downloaded. This bug is reproducible for the download that a file
  4788. includes last piece is missing. This bug doesn't reveal for
  4789. single-torrent with file allocation on.
  4790. * src/IteratableChecksumValidator.cc
  4791. * test/IteratableChecksumValidatorTest.cc
  4792. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4793. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4794. * src/RequestGroupMan.cc
  4795. * src/AdaptiveURISelector.cc
  4796. * src/AdaptiveURISelector.h
  4797. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4798. * Release 1.3.2
  4799. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4800. Updated README
  4801. * README
  4802. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4803. Updated Ukrainian translations. Thanks to Alexander10.
  4804. * po/uk.po
  4805. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4806. Code cleanup
  4807. * src/MetalinkParserStateMachine.cc
  4808. * src/MetalinkParserStateMachine.h
  4809. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4810. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4811. and expat simultaneously, MetalinkProcessor is now not base class
  4812. and it is directly implemented in XML2SAXMetalinkProcessor and
  4813. ExpatMetalinkProcessor.
  4814. * src/ExpatMetalinkProcessor.cc
  4815. * src/ExpatMetalinkProcessor.h
  4816. * src/Makefile.am
  4817. * src/MetalinkHelper.cc
  4818. * src/MetalinkProcessor.h
  4819. * src/MetalinkProcessorFactory.cc: Removed.
  4820. * src/MetalinkProcessorFactory.h: Removed
  4821. * src/XML2SAXMetalinkProcessor.cc
  4822. * src/XML2SAXMetalinkProcessor.h
  4823. * test/MetalinkProcessorTest.cc
  4824. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4825. Bump up version number to 1.3.2
  4826. * configure.ac
  4827. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4828. Added missing file.
  4829. * test/Makefile.am
  4830. * test/url-list-singleFileEndsWithSlash.torrent
  4831. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4832. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4833. request.
  4834. * src/AnnounceList.cc
  4835. * src/AnnounceList.h
  4836. * src/BDE.cc: Added
  4837. * src/BDE.h: Added
  4838. * src/DHTAbstractMessage.cc
  4839. * src/DHTAbstractMessage.h
  4840. * src/DHTAnnouncePeerMessage.cc
  4841. * src/DHTAnnouncePeerMessage.h
  4842. * src/DHTAnnouncePeerReplyMessage.cc
  4843. * src/DHTAnnouncePeerReplyMessage.h
  4844. * src/DHTFindNodeMessage.cc
  4845. * src/DHTFindNodeMessage.h
  4846. * src/DHTFindNodeReplyMessage.cc
  4847. * src/DHTFindNodeReplyMessage.h
  4848. * src/DHTGetPeersMessage.cc
  4849. * src/DHTGetPeersMessage.h
  4850. * src/DHTGetPeersReplyMessage.cc
  4851. * src/DHTGetPeersReplyMessage.h
  4852. * src/DHTMessageFactory.h
  4853. * src/DHTMessageFactoryImpl.cc
  4854. * src/DHTMessageFactoryImpl.h
  4855. * src/DHTMessageReceiver.cc
  4856. * src/DHTMessageTracker.cc
  4857. * src/DHTMessageTracker.h
  4858. * src/DHTPingMessage.cc
  4859. * src/DHTPingMessage.h
  4860. * src/DHTPingReplyMessage.cc
  4861. * src/DHTPingReplyMessage.h
  4862. * src/DHTQueryMessage.cc
  4863. * src/DHTQueryMessage.h
  4864. * src/DHTResponseMessage.cc
  4865. * src/DHTResponseMessage.h
  4866. * src/DefaultBtAnnounce.cc
  4867. * src/DefaultBtContext.cc
  4868. * src/DefaultBtContext.h
  4869. * src/HandshakeExtensionMessage.cc
  4870. * src/Makefile.am
  4871. * src/PeerListProcessor.h
  4872. * src/UTPexExtensionMessage.cc
  4873. * src/bencode.cc
  4874. * src/bencode.h
  4875. * test/AnnounceListTest.cc
  4876. * test/BDETest.cc: Added
  4877. * test/BencodeTest.cc
  4878. * test/DHTAnnouncePeerMessageTest.cc
  4879. * test/DHTAnnouncePeerReplyMessageTest.cc
  4880. * test/DHTFindNodeMessageTest.cc
  4881. * test/DHTFindNodeReplyMessageTest.cc
  4882. * test/DHTGetPeersMessageTest.cc
  4883. * test/DHTGetPeersReplyMessageTest.cc
  4884. * test/DHTMessageFactoryImplTest.cc
  4885. * test/DHTMessageTrackerTest.cc
  4886. * test/DHTPingMessageTest.cc
  4887. * test/DHTPingReplyMessageTest.cc
  4888. * test/Makefile.am
  4889. * test/MockDHTMessageFactory.h
  4890. * test/PeerListProcessorTest.cc
  4891. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4892. Use url-list (web-seeding) only for single-file torrent. This is
  4893. basically the same behavior with Metalink file with torrent and
  4894. URIs.
  4895. * src/RequestGroup.cc
  4896. * src/DefaultBtContext.cc
  4897. * test/DefaultBtContextTest.cc
  4898. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4899. Rewritten expr
  4900. * src/array_fun.h
  4901. * test/array_funTest.cc
  4902. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4903. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4904. * src/DefaultBtMessageDispatcher.cc
  4905. * src/a2algo.h
  4906. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4907. Removed ExtendedMessagingAware. Instead of using inheritance,
  4908. added ExtensionMessageRegistry and it is passed to
  4909. DefaultExtensionMessageFactory.
  4910. * src/DefaultBtInteractive.cc
  4911. * src/DefaultBtInteractive.h
  4912. * src/DefaultExtensionMessageFactory.cc
  4913. * src/DefaultExtensionMessageFactory.h
  4914. * src/ExtendedMessagingAware.h: Removed.
  4915. * src/ExtensionMessageFactory.h
  4916. * src/ExtensionMessageRegistry.h: Added.
  4917. * src/Makefile.am
  4918. * src/PeerInteractionCommand.cc
  4919. * test/DefaultExtensionMessageFactoryTest.cc
  4920. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4921. Fixed typo in log messages
  4922. * src/MSEHandshake.cc
  4923. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4924. Fixed the bug that prevents torrent download from finishing. The
  4925. bug doesn't reveal for all torrents. The torrents affected this
  4926. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4927. of pieces.
  4928. * src/bitfield.h
  4929. * test/bitfieldTest.cc
  4930. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4931. Code cleanup
  4932. * src/PeerListProcessor.h
  4933. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4934. Removed RequestGroupAware
  4935. * src/AbstractCommand.cc
  4936. * src/AbstractCommand.h
  4937. * src/ActivePeerConnectionCommand.cc
  4938. * src/ActivePeerConnectionCommand.h
  4939. * src/DHTGetPeersCommand.cc
  4940. * src/DHTGetPeersCommand.h
  4941. * src/InitiatorMSEHandshakeCommand.cc
  4942. * src/InitiatorMSEHandshakeCommand.h
  4943. * src/Makefile.am
  4944. * src/PeerInitiateConnectionCommand.cc
  4945. * src/PeerInitiateConnectionCommand.h
  4946. * src/PeerInteractionCommand.cc
  4947. * src/PeerInteractionCommand.h
  4948. * src/RealtimeCommand.cc
  4949. * src/RealtimeCommand.h
  4950. * src/RequestGroupAware.cc: Removed
  4951. * src/RequestGroupAware.h: Removed
  4952. * src/SeedCheckCommand.cc
  4953. * src/SeedCheckCommand.h
  4954. * src/SleepCommand.cc
  4955. * src/TrackerWatcherCommand.cc
  4956. * src/TrackerWatcherCommand.h
  4957. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4958. Rewritten PeerListProcessor
  4959. * src/PeerListProcessor.h
  4960. * src/CompactPeerListProcessor.h: Removed
  4961. * src/CompactPeerListProcessor.cc: Removed
  4962. * src/DelegatingPeerListProcessor.cc: Removed.
  4963. * src/DefaultBtAnnounce.cc
  4964. * src/Makefile.am
  4965. * src/UTPexExtensionMessage.cc
  4966. * src/DefaultPeerListProcessor.h: Removed.
  4967. * src/DefaultPeerListProcessor.cc: Removed.
  4968. * src/DelegatingPeerListProcessor.h: Removed.
  4969. * test/Makefile.am
  4970. * test/PeerListProcessorTest.cc
  4971. * test/DefaultPeerListProcessorTest.cc: Removed.
  4972. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4973. Rewritten RequestGroupMan::calculateStat()
  4974. * src/RequestGroupMan.cc
  4975. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4976. Removed unnecessary virtual destructor for Request class.
  4977. * src/Request.cc
  4978. * src/Request.h
  4979. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4980. Avoid dynamic_pointer_cast.
  4981. * src/DHTGetPeersCommand.cc
  4982. * src/DHTGetPeersCommand.h
  4983. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4984. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4985. BtEvent.
  4986. * src/AbstractBtEventListener.h: Removed.
  4987. * src/AbstractBtMessage.cc
  4988. * src/AbstractBtMessage.h
  4989. * src/BtAbortOutstandingRequestEvent.h
  4990. * src/BtCancelSendingPieceEvent.h
  4991. * src/BtChokedEvent.h: Removed.
  4992. * src/BtChokingEvent.h
  4993. * src/BtEvent.h: Removed
  4994. * src/BtEventListener.h: Removed.
  4995. * src/BtMessage.h
  4996. * src/BtPieceMessage.cc
  4997. * src/BtPieceMessage.h
  4998. * src/BtRequestMessage.cc
  4999. * src/BtRequestMessage.h
  5000. * src/DefaultBtMessageDispatcher.cc
  5001. * src/Makefile.am
  5002. * src/a2functional.h
  5003. * test/BtPieceMessageTest.cc
  5004. * test/BtRequestMessageTest.cc
  5005. * test/DefaultBtMessageDispatcherTest.cc
  5006. * test/MockBtMessage.h
  5007. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5008. Code cleanup
  5009. * src/RequestGroupMan.cc
  5010. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5011. Code cleanup
  5012. * src/DownloadCommand.cc
  5013. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5014. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5015. byte.
  5016. * src/DownloadCommand.cc
  5017. * src/bitfield.h
  5018. * test/bitfieldTest.cc
  5019. Fixed the bug that causes infinite loop if broken web server
  5020. returns chunked response without last "0" chunk-size marker and
  5021. closes connection.
  5022. * src/DownloadCommand.cc
  5023. Instantiate properly configured HttpDownloadCommand for
  5024. non-resumable downlaods.
  5025. * src/HttpResponseCommand.cc
  5026. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5027. Rewritten array operation functions.
  5028. * src/BitfieldMan.cc
  5029. * src/array_fun.h
  5030. * test/array_funTest.cc
  5031. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. Removed unused variable 'query'
  5033. * src/Request.cc
  5034. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5035. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5036. accidentally set to false in r1162.
  5037. * configure.ac
  5038. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5039. Code cleanup
  5040. * src/BNode.cc
  5041. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5042. Increase prefixLength for the bucket which doesn't own local node
  5043. ID when splitting bucket.
  5044. * src/DHTBucket.cc
  5045. * test/DHTBucketTest.cc
  5046. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5047. * Release 1.3.1
  5048. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Bump up version number to 1.3.1
  5050. * configure.ac
  5051. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5052. Removed unused variable checkPoint. Also removed include directive
  5053. for TimeA2.h.
  5054. * src/SeedCheckCommand.h
  5055. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Fixed the bug that upload limit exceeds the value specified in
  5057. --seed-ratio option depending on the timing of the execution of
  5058. SeedCheckCommand.
  5059. * src/SeedCheckCommand.cc
  5060. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5061. Fixed the bug that removed peer's session upload/download length
  5062. are counted twice in _cachedTransferStat before it is
  5063. re-calculated. This affected the calculation of shara ratio,
  5064. resulting aria2 wrongly determines that specified share ratio is
  5065. reached. Also fixed the typo in calculateStatFor function name.
  5066. * src/BtSetup.cc
  5067. * src/DefaultPeerStorage.cc
  5068. * src/ShareRatioSeedCriteria.h
  5069. * test/ShareRatioSeedCriteriaTest.cc
  5070. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5071. * Release 1.3.0
  5072. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5073. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5074. Nynorsk translations. Thanks to all translators.
  5075. * po/es.po
  5076. * po/ja.po
  5077. * po/nn.po
  5078. * po/ru.po
  5079. * po/uk.po
  5080. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5081. Rewritten isInRange()
  5082. * src/DHTBucket.cc
  5083. * test/DHTBucketTest.cc
  5084. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5085. Fixed typo
  5086. * doc/aria2c.1.txt
  5087. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5088. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5089. malloc/realloc is not used.
  5090. * src/configure.ac
  5091. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5092. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5093. char* bitfield instead of stl container for efficiency.
  5094. PieceSelector::select now takes this
  5095. bitfield. RarestPieceSelector::select now also performs
  5096. efficiently for this change. bitfield namespace is introduced and
  5097. it has several helper functions to handle basic bitfield
  5098. operations such as test, count set bits, etc.
  5099. * src/BitfieldMan.cc
  5100. * src/BitfieldMan.h
  5101. * src/DefaultBtRequestFactory.cc
  5102. * src/DefaultPieceStorage.cc
  5103. * src/DefaultPieceStorage.h
  5104. * src/LongestSequencePieceSelector.cc
  5105. * src/LongestSequencePieceSelector.h
  5106. * src/Makefile.am
  5107. * src/Piece.cc
  5108. * src/Piece.h
  5109. * src/PieceSelector.h
  5110. * src/RarestPieceSelector.cc
  5111. * src/RarestPieceSelector.h
  5112. * src/Util.cc
  5113. * src/Util.h
  5114. * src/bitfield.h
  5115. * test/BitfieldManTest.cc
  5116. * test/LongestSequencePieceSelectorTest.cc
  5117. * test/Makefile.am
  5118. * test/RarestPieceSelectorTest.cc
  5119. * test/UtilTest.cc
  5120. * test/bitfieldTest.cc
  5121. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5122. Made accepted socket non-block.
  5123. * src/FtpNegotiationCommand.cc
  5124. * src/HttpListenCommand.cc
  5125. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5126. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5127. * src/AbstractSingleDiskAdaptor.cc
  5128. * src/DefaultPieceStorage.cc
  5129. * src/DiskAdaptor.h
  5130. * src/DiskAdaptor.h
  5131. * src/MultiFileAllocationIterator.cc
  5132. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5133. Run
  5134. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5135. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5136. it doesn't need to be called every time when
  5137. DefaultBtInteractive::doInteractionProcessing() is called.
  5138. * src/DefaultBtInteractive.cc
  5139. * src/DefaultBtInteractive.h
  5140. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5141. Documented 'falloc' in man page.
  5142. * doc/aria2c.1.txt
  5143. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5144. Updated doc
  5145. * src/usage_text.h
  5146. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5147. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5148. allocation mode uses posix_fallocate() system call to allocate
  5149. file on disk. If you are using newer file systems such as ext4
  5150. (with extents support), btrfs or xfs, 'falloc' is your best
  5151. choice. It allocates large(few GiB) files almost instantly. Don't
  5152. use 'falloc' with legacy file systems such as ext3 because it
  5153. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5154. until allocation finishes. 'falloc' may not be available if your
  5155. system doesn't have posix_fallocate() system call.
  5156. * configure.ac
  5157. * src/AbstractDiskWriter.cc
  5158. * src/AbstractDiskWriter.h
  5159. * src/AbstractSingleDiskAdaptor.cc
  5160. * src/BinaryStream.h
  5161. * src/BtCheckIntegrityEntry.cc
  5162. * src/ByteArrayDiskWriter.h
  5163. * src/CheckIntegrityEntry.cc
  5164. * src/CheckIntegrityEntry.h
  5165. * src/DefaultPieceStorage.cc
  5166. * src/DiskAdaptor.cc
  5167. * src/DiskAdaptor.h
  5168. * src/DiskWriter.h
  5169. * src/FallocFileAllocationIterator.cc
  5170. * src/FallocFileAllocationIterator.h
  5171. * src/FileAllocationEntry.cc
  5172. * src/FileAllocationEntry.h
  5173. * src/Makefile.am
  5174. * src/MultiFileAllocationIterator.cc
  5175. * src/MultiFileAllocationIterator.h
  5176. * src/OptionHandlerFactory.cc
  5177. * src/RequestGroup.cc
  5178. * src/StreamCheckIntegrityEntry.cc
  5179. * src/prefs.cc
  5180. * src/prefs.h
  5181. * src/usage_text.h
  5182. * test/FallocFileAllocationIteratorTest.cc
  5183. * test/Makefile.am
  5184. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5185. Removed duplicate enableDirectIO() call.
  5186. * src/MultiFileAllocationIterator.cc
  5187. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5188. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5189. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5190. cost of std::rotate().
  5191. * src/RarestPieceSelector.cc
  5192. * src/RarestPieceSelector.h
  5193. * test/RarestPieceSelectorTest.cc
  5194. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5195. Updated usage doc for --bt-tracker-interval option.
  5196. * src/usage_text.h
  5197. * doc/aria2c.1.txt
  5198. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5199. Documented --bt-tracker-interval option in man page.
  5200. * doc/aria2c.1.txt
  5201. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5202. Added an option to specify the interval between tracker requests.
  5203. If non-zero value is specified, aria2 uses it and ignores the
  5204. interval value in the response of tracker. If zero is specified,
  5205. aria2 determines the inteval value based on the tarcker response
  5206. and download progress.
  5207. * src/DefaultBtAnnounce.cc
  5208. * src/DefaultBtAnnounce.h
  5209. * src/OptionHandlerFactory.cc
  5210. * src/RequestGroup.cc
  5211. * src/prefs.cc
  5212. * src/prefs.h
  5213. * src/usage_text.h
  5214. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5215. Added operator+=, operator-=, operator-
  5216. * src/TransferStat.cc
  5217. * src/TransferStat.h
  5218. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5219. Refactored RarestPieceSelector to reduce CPU load, especially for
  5220. addPieceStats.
  5221. * src/RarestPieceSelector.cc
  5222. * src/RarestPieceSelector.h
  5223. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5224. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5225. getAllMissingBlockIndexes to reduce a call to
  5226. array_function_base::operator[].
  5227. * src/BitfieldMan.cc
  5228. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5229. Cached TransferStat/download speed to avoid to sum them up in each
  5230. call.
  5231. * src/DefaultPeerStorage.cc
  5232. * src/DefaultPeerStorage.h
  5233. * src/SegmentMan.cc
  5234. * src/SegmentMan.h
  5235. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5236. Typedefed cuid_t as int32_t in Command.h
  5237. * src/CUIDCounter.h
  5238. * src/Command.cc
  5239. * src/Command.h
  5240. * src/DownloadEngine.cc
  5241. * src/DownloadEngine.h
  5242. * src/PeerStat.h
  5243. * src/SegmentMan.cc
  5244. * src/SegmentMan.h
  5245. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5246. Reduced the number of calls to PeerStorage::calculateStat() and
  5247. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5248. transfer rate.
  5249. * src/DefaultBtInteractive.cc
  5250. * src/DefaultBtMessageDispatcher.cc
  5251. * src/DefaultPeerStorage.cc
  5252. * src/DefaultPeerStorage.h
  5253. * src/DownloadCommand.cc
  5254. * src/DownloadEngine.cc
  5255. * src/PeerStorage.h
  5256. * src/SegmentMan.cc
  5257. * src/SegmentMan.h
  5258. * test/MockPeerStorage.h
  5259. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5260. Prepended _dir+"/" after joining path elements in torrent file.
  5261. * src/DefaultBtContext.cc
  5262. * test/DefaultBtContextTest.cc
  5263. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5264. Added missing IndexBtMessageValidator.h
  5265. * src/Makefile.am
  5266. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5267. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5268. Chinese translations. Thank you for contributing our project.
  5269. * po/id.po
  5270. * po/it.po
  5271. * po/ru.po
  5272. * po/uk.po
  5273. * po/zh_CN.po
  5274. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5275. Updated README
  5276. * README
  5277. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5278. Bump up version number to 1.3.0
  5279. * configure.ac
  5280. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5281. Updated doc
  5282. * src/DefaultBtContext.h
  5283. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5284. Slice/joinPath for name of single torrent.
  5285. * src/DefaultBtContext.cc
  5286. * test/DefaultBtContextTest.cc
  5287. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5288. Updated man page: Documented --dry-run and --index-out
  5289. options. Changed the default value of --uri-selector and
  5290. --http-auth-challenge options. Removed --direct-file-mapping
  5291. option. Added example for --index-out
  5292. * doc/aria2c.1.txt
  5293. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5294. Updated TEXT_DRY_RUN
  5295. * src/usage_text.h
  5296. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5297. Changed the default value of --uri-selector option from 'inorder'
  5298. to 'feedback'
  5299. * src/OptionHandlerFactory.cc
  5300. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5301. Included current URI in exception message.
  5302. * src/AbstractCommand.cc
  5303. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5304. Renamed ServerStatURISelector as FeedbackURISelector.
  5305. * src/FeedbackURISelector.cc
  5306. * src/FeedbackURISelector.h
  5307. * src/Makefile.am
  5308. * src/RequestGroupMan.cc
  5309. * src/ServerStatURISelector.cc
  5310. * src/ServerStatURISelector.h
  5311. * test/FeedbackURISelectorTest.cc
  5312. * test/Makefile.am
  5313. * test/ServerStatURISelectorTest.cc
  5314. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5315. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5316. all URIs are tested and their timeout is not reached.
  5317. * src/AdaptiveURISelector.cc
  5318. * src/AdaptiveURISelector.h
  5319. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5320. Changed the default value of --http-auth-challenge option to false.
  5321. * src/OptionHandlerFactory.cc
  5322. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5323. Reuse URIs when all unused URIs run out.
  5324. * src/OptionHandlerFactory.cc
  5325. * src/RequestGroup.cc
  5326. * src/prefs.cc
  5327. * src/prefs.h
  5328. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5329. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5330. and BtRejectMessage are derived from RangeBtMessage class.
  5331. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5332. derived from IndexBtMessage class. BtChokeMessage,
  5333. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5334. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5335. ZeroBtMessage class.
  5336. * src/AbstractBtMessage.cc
  5337. * src/AbstractBtMessage.h
  5338. * src/BtAllowedFastMessage.cc
  5339. * src/BtAllowedFastMessage.h
  5340. * src/BtAllowedFastMessageValidator.h: Removed
  5341. * src/BtBitfieldMessage.cc
  5342. * src/BtBitfieldMessage.h
  5343. * src/BtCancelMessage.cc
  5344. * src/BtCancelMessage.h
  5345. * src/BtCancelMessageValidator.h: Removed
  5346. * src/BtChokeMessage.cc
  5347. * src/BtChokeMessage.h
  5348. * src/BtExtendedMessage.cc
  5349. * src/BtExtendedMessage.h
  5350. * src/BtHandshakeMessage.cc
  5351. * src/BtHandshakeMessage.h
  5352. * src/BtHaveAllMessage.cc
  5353. * src/BtHaveAllMessage.h
  5354. * src/BtHaveMessage.cc
  5355. * src/BtHaveMessage.h
  5356. * src/BtHaveMessageValidator.h: Removed
  5357. * src/BtHaveNoneMessage.cc
  5358. * src/BtHaveNoneMessage.h
  5359. * src/BtInterestedMessage.cc
  5360. * src/BtInterestedMessage.h
  5361. * src/BtKeepAliveMessage.cc
  5362. * src/BtKeepAliveMessage.h
  5363. * src/BtNotInterestedMessage.cc
  5364. * src/BtNotInterestedMessage.h
  5365. * src/BtPieceMessage.cc
  5366. * src/BtPieceMessage.h
  5367. * src/BtPortMessage.cc
  5368. * src/BtPortMessage.h
  5369. * src/BtRejectMessage.cc
  5370. * src/BtRejectMessage.h
  5371. * src/BtRejectMessageValidator.h: Removed
  5372. * src/BtRequestMessage.cc
  5373. * src/BtRequestMessage.h
  5374. * src/BtRequestMessageValidator.h: Removed
  5375. * src/BtSuggestPieceMessage.cc
  5376. * src/BtSuggestPieceMessage.h
  5377. * src/BtSuggestPieceMessageValidator.h: Removed
  5378. * src/BtUnchokeMessage.cc
  5379. * src/BtUnchokeMessage.h
  5380. * src/DefaultBtMessageFactory.cc
  5381. * src/IndexBtMessage.cc
  5382. * src/IndexBtMessage.h
  5383. * src/IndexBtMessageValidator.h
  5384. * src/Makefile.am
  5385. * src/PeerMessageUtil.cc
  5386. * src/PeerMessageUtil.h
  5387. * src/RangeBtMessage.cc
  5388. * src/RangeBtMessage.h
  5389. * src/RangeBtMessageValidator.h
  5390. * src/SimpleBtMessage.cc
  5391. * src/SimpleBtMessage.h
  5392. * src/ZeroBtMessage.cc
  5393. * src/ZeroBtMessage.h
  5394. * test/BtRequestMessageTest.cc
  5395. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5396. Reverted usage_text.h to r1093 to avoid to lose translated
  5397. messages.
  5398. * src/usage_text.h
  5399. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5400. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5401. declared as non-const previously is now const and defined in class
  5402. definition.
  5403. * src/AbstractBtMessage.cc
  5404. * src/AbstractBtMessage.h
  5405. * src/BtAllowedFastMessage.cc
  5406. * src/BtAllowedFastMessage.h
  5407. * src/BtBitfieldMessage.h
  5408. * src/BtCancelMessage.cc
  5409. * src/BtCancelMessage.h
  5410. * src/BtChokeMessage.cc
  5411. * src/BtChokeMessage.h
  5412. * src/BtExtendedMessage.cc
  5413. * src/BtExtendedMessage.h
  5414. * src/BtHandshakeMessage.cc
  5415. * src/BtHandshakeMessage.h
  5416. * src/BtHaveAllMessage.cc
  5417. * src/BtHaveAllMessage.h
  5418. * src/BtHaveMessage.cc
  5419. * src/BtHaveMessage.h
  5420. * src/BtHaveNoneMessage.cc
  5421. * src/BtHaveNoneMessage.h
  5422. * src/BtInterestedMessage.cc
  5423. * src/BtInterestedMessage.h
  5424. * src/BtKeepAliveMessage.cc
  5425. * src/BtKeepAliveMessage.h
  5426. * src/BtMessage.h
  5427. * src/BtNotInterestedMessage.cc
  5428. * src/BtNotInterestedMessage.h
  5429. * src/BtPieceMessage.h
  5430. * src/BtPortMessage.cc
  5431. * src/BtPortMessage.h
  5432. * src/BtRejectMessage.cc
  5433. * src/BtRejectMessage.h
  5434. * src/BtRequestMessage.cc
  5435. * src/BtRequestMessage.h
  5436. * src/BtSuggestPieceMessage.cc
  5437. * src/BtSuggestPieceMessage.h
  5438. * src/BtUnchokeMessage.cc
  5439. * src/BtUnchokeMessage.h
  5440. * src/SimpleBtMessage.cc
  5441. * src/SimpleBtMessage.h
  5442. * test/MockBtMessage.h
  5443. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5444. Use FileEntry::exists()
  5445. * src/MultiDiskAdaptor.cc
  5446. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5447. Added exists()
  5448. * src/FileEntry.cc
  5449. * src/FileEntry.h
  5450. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5451. Added missing prefix dir.
  5452. * src/download_helper.cc
  5453. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5454. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5455. * src/CopyDiskAdaptor.cc: Removed
  5456. * src/CopyDiskAdaptor.h: Removed
  5457. * src/DefaultPieceStorage.cc
  5458. * src/Makefile.am
  5459. * src/OptionHandlerFactory.cc
  5460. * src/prefs.cc
  5461. * src/prefs.h
  5462. * src/usage_text.h
  5463. * test/CopyDiskAdaptorTest.cc: Removed
  5464. * test/Makefile.am
  5465. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5466. Rewritten isSameFileBeingDownloaded()
  5467. * src/RequestGroupMan.cc
  5468. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5469. Removed getName() from DownloadContext. getName() is declared in
  5470. BtContext.
  5471. * src/BtContext.h
  5472. * src/DownloadContext.h
  5473. * src/SingleFileDownloadContext.cc
  5474. * src/SingleFileDownloadContext.h
  5475. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5476. in AbstractSingleDiskAdaptor.
  5477. * src/AbstractSingleDiskAdaptor.h
  5478. * src/DiskAdaptor.h
  5479. * src/MultiDiskAdaptor.h
  5480. * src/RequestGroup.cc
  5481. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5482. MultiDiskAdaptor.
  5483. * src/DefaultPieceStorage.cc
  5484. * src/MultiDiskAdaptor.cc
  5485. * src/MultiDiskAdaptor.h
  5486. * test/MultiDiskAdaptorTest.cc
  5487. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5488. FileEntry::getPath() contains store(top level) directory to
  5489. simplify path handling operation. In the previous implementation,
  5490. store directory is concatenated to FileEntry::getPath() in
  5491. DownloadContext.
  5492. * src/BtDependency.cc
  5493. * src/BtPostDownloadHandler.cc
  5494. * src/CopyDiskAdaptor.cc
  5495. * src/DefaultBtContext.cc
  5496. * src/DirectDiskAdaptor.cc
  5497. * src/FileEntry.cc
  5498. * src/FileEntry.h
  5499. * src/FtpNegotiationCommand.cc
  5500. * src/HttpResponse.cc
  5501. * src/HttpResponseCommand.cc
  5502. * src/Metalink2RequestGroup.cc
  5503. * src/MultiDiskAdaptor.cc
  5504. * src/MultiDiskAdaptor.h
  5505. * src/MultiFileAllocationIterator.cc
  5506. * src/RequestGroup.cc
  5507. * src/SingleFileDownloadContext.cc
  5508. * src/SingleFileDownloadContext.h
  5509. * src/download_helper.cc
  5510. * test/BtDependencyTest.cc
  5511. * test/CopyDiskAdaptorTest.cc
  5512. * test/DefaultBtContextTest.cc
  5513. * test/DefaultBtProgressInfoFileTest.cc
  5514. * test/DirectDiskAdaptorTest.cc
  5515. * test/DownloadHelperTest.cc
  5516. * test/FileEntryTest.cc
  5517. * test/MultiDiskAdaptorTest.cc
  5518. * test/MultiFileAllocationIteratorTest.cc
  5519. * test/RequestGroupTest.cc
  5520. * test/SingleFileDownloadContextTest.cc
  5521. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5522. Fixed compiler warning
  5523. * src/download_helper.cc
  5524. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5525. Throw exception if same infohash torrent is now downloading.
  5526. * src/RequestGroup.cc
  5527. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5528. Added --dry-run option. In this mode, aria2 just checks whether
  5529. the remote file is available and doesn't download data. This
  5530. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5531. are canceled in this mode.
  5532. * src/FtpNegotiationCommand.cc
  5533. * src/HttpResponseCommand.cc
  5534. * src/HttpResponseCommand.h
  5535. * src/OptionHandlerFactory.cc
  5536. * src/RequestGroup.cc
  5537. * src/RequestGroupMan.cc
  5538. * src/prefs.cc
  5539. * src/prefs.h
  5540. * src/usage_text.h
  5541. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5542. Fixed compiler waring
  5543. * test/UriListParserTest.cc
  5544. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5545. Parse options in -i list using OptionParser.
  5546. * src/UriListParser.cc
  5547. * src/UriListParser.h
  5548. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5549. Don't reset URI in retry to avoid additional round trips because
  5550. of redirects.
  5551. * src/AbstractCommand.cc
  5552. * src/OptionHandlerFactory.cc
  5553. * src/prefs.cc
  5554. * src/prefs.h
  5555. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5556. Declared hide() in OptionHandler.
  5557. * src/NameMatchOptionHandler.h
  5558. * src/OptionHandler.h
  5559. * src/OptionHandlerImpl.h
  5560. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5561. Updated doc
  5562. * src/Peer.h
  5563. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5564. Added log message in setStatusInternal()
  5565. * src/ServerStat.cc
  5566. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5567. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5568. effectively exclude failed server.
  5569. * src/AbstractCommand.cc
  5570. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5571. Added --index-out option to specify each file path for torrent.
  5572. Here index shown in --show-files option is used to specify which
  5573. file path should be altered. For example, to change the file path
  5574. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5575. option multiple times: --index-out=1=aria2.tar.bz2
  5576. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5577. available. This option can be specified in -i list.
  5578. * src/DefaultBtContext.cc
  5579. * src/DefaultBtContext.h
  5580. * src/MultiDiskAdaptor.cc
  5581. * src/MultiDiskAdaptor.h
  5582. * src/MultiFileAllocationIterator.cc
  5583. * src/OptionHandlerFactory.cc
  5584. * src/OptionHandlerImpl.h
  5585. * src/Util.cc
  5586. * src/Util.h
  5587. * src/download_helper.cc
  5588. * src/prefs.cc
  5589. * src/prefs.h
  5590. * src/usage_text.h
  5591. * test/DefaultBtContextTest.cc
  5592. * test/MultiDiskAdaptorTest.cc
  5593. * test/MultiFileAllocationIteratorTest.cc
  5594. * test/UtilTest.cc
  5595. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5596. Use Util::pathJoin()
  5597. * src/MetalinkParserController.cc
  5598. * test/test.xml
  5599. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5600. Use Util::pathJoin()
  5601. * src/DefaultBtContext.cc
  5602. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5603. Added Util::pathJoin()
  5604. * src/Util.h
  5605. * test/UtilTest.cc
  5606. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5607. Applied basename function to remove directory element in
  5608. content-disposition value.
  5609. Return empty string if content-disposition value is ".." or ".".
  5610. * src/Util.cc
  5611. * test/UtilTest.cc
  5612. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5613. Added --max-overall-download-limit in man page.
  5614. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5615. * doc/aria2c.1.txt
  5616. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5617. Added --max-overall-download-limit option. Now --max-upload-limit
  5618. option is not ignored when --max-overall-upload-limit option has
  5619. non-zero value. aria2 checks download(upload) speed in the order:
  5620. first checks overall speed limit and if it is not exceeded, then
  5621. checks speed limit per download. Thus you can specify both
  5622. value. For example, set --max-overall-download-limit=1M and
  5623. --max-download-limit=500K to prevent from one download from eating
  5624. all overall speed limit.
  5625. * src/DefaultBtInteractive.cc
  5626. * src/DefaultBtInteractive.h
  5627. * src/DefaultBtMessageDispatcher.cc
  5628. * src/DefaultBtMessageDispatcher.h
  5629. * src/DownloadCommand.cc
  5630. * src/DownloadCommand.h
  5631. * src/FtpNegotiationCommand.cc
  5632. * src/HttpResponseCommand.cc
  5633. * src/OptionHandlerFactory.cc
  5634. * src/PeerInteractionCommand.cc
  5635. * src/RequestGroup.cc
  5636. * src/RequestGroup.h
  5637. * src/RequestGroupMan.cc
  5638. * src/RequestGroupMan.h
  5639. * src/prefs.cc
  5640. * src/prefs.h
  5641. * src/usage_text.h
  5642. * test/DefaultBtMessageDispatcherTest.cc
  5643. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5644. Documented select-file option in Input File section.
  5645. Documented --http-auth-challenge option.
  5646. * doc/aria2c.1.txt
  5647. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5648. Now select-file can be specified in the uri list(-i list).
  5649. * src/BtContext.cc
  5650. * src/BtContext.h
  5651. * src/RequestGroup.cc
  5652. * src/Sequence.h
  5653. * src/download_helper.cc
  5654. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5655. Made the upper value of --max-concurrent-downloads options unlimited.
  5656. * src/OptionHandlerFactory.cc
  5657. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5658. Fixed the bug that disk writer is not created even if it shares
  5659. same piece with the preceding file if the length of previous file
  5660. is 0.
  5661. * src/MultiDiskAdaptor.cc
  5662. * test/MultiDiskAdaptorTest.cc
  5663. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5664. In BitTorrent, Open files in read-only mode for hash check. After
  5665. that, re-open file in read/write mode only when the download is
  5666. not finished.
  5667. * src/AbstractDiskWriter.cc
  5668. * src/AbstractDiskWriter.h
  5669. * src/AbstractSingleDiskAdaptor.cc
  5670. * src/AbstractSingleDiskAdaptor.h
  5671. * src/BtCheckIntegrityEntry.cc
  5672. * src/DiskAdaptor.h
  5673. * src/DiskWriter.h
  5674. * src/MultiDiskAdaptor.cc
  5675. * src/MultiDiskAdaptor.h
  5676. * src/RequestGroup.cc
  5677. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5678. Added --http-auth-challenge option. If it is set to true(by
  5679. default), aria2 sends HTTP authorization header only when it is
  5680. requested by the server. If false is set, then authorization
  5681. header is always sent to the server. This is useful for servers
  5682. that don't respond 401 code when authentication is required.
  5683. There is an exception: if username and password are embedded in
  5684. URI, authorization header is always sent to the server regardless
  5685. of this option.
  5686. * src/AuthConfigFactory.cc
  5687. * src/HttpSkipResponseCommand.cc
  5688. * src/OptionHandlerFactory.cc
  5689. * src/prefs.cc
  5690. * src/prefs.h
  5691. * src/usage_text.h
  5692. * test/AuthConfigFactoryTest.cc
  5693. * test/HttpRequestTest.cc
  5694. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5695. * Release 1.2.0
  5696. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5697. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5698. Thanks to all translators.
  5699. * po/es.po
  5700. * po/ja.po
  5701. * po/ru.po
  5702. * po/uk.po
  5703. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5704. Call deleteSocketForReadCheck() before socket is closed.
  5705. * src/HttpListenCommand.cc
  5706. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5707. Defined virtual destructor for BObject.
  5708. * src/bencode.h
  5709. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5710. Rewritten BDE to make it efficient.
  5711. * src/bencode.cc
  5712. * src/bencode.h
  5713. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5714. Removed function throw list.
  5715. * src/bencode.cc
  5716. * src/bencode.h
  5717. * test/BencodeTest.cc
  5718. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5719. Enclosed all URLs in double quotes in command-line examples.
  5720. * doc/aria2c.1.txt
  5721. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5722. Updated reference/see also section.
  5723. * README
  5724. * doc/aria2c.1.txt
  5725. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5726. Reorganized man page based on man man-pages.
  5727. * doc/aria2c.1.txt
  5728. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5729. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5730. because same documents are available in man page. Added
  5731. References section.
  5732. * README
  5733. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5734. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5735. PERFORMANCE PROFILE section.
  5736. * doc/aria2c.1.txt
  5737. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5738. Rewritten the section for configuration file.
  5739. * README
  5740. * doc/aria2c.1.txt
  5741. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5742. Fixed the segmentation fault during execution of choking algorithm
  5743. in leecher state because of broken compare operator
  5744. implementation.
  5745. * src/BtLeecherStateChoke.cc
  5746. * src/BtLeecherStateChoke.h
  5747. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5748. Open file in binary mode.
  5749. * src/CookieStorage.cc
  5750. * src/DHTSetup.cc
  5751. * src/DHTUtil.cc
  5752. * src/Netrc.cc
  5753. * src/NsCookieParser.cc
  5754. * src/ProtocolDetector.cc
  5755. * src/RequestGroupMan.cc
  5756. * src/Signature.cc
  5757. * src/bencode.cc
  5758. * src/download_helper.cc
  5759. * src/option_processing.cc
  5760. * test/CookieParserTest.cc
  5761. * test/DefaultBtProgressInfoFileTest.cc
  5762. * test/FileTest.cc
  5763. * test/GZipDecoderTest.cc
  5764. * test/RequestGroupManTest.cc
  5765. * test/SignatureTest.cc
  5766. * test/SingleFileAllocationIteratorTest.cc
  5767. * test/UriListParserTest.cc
  5768. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5769. Removed operator[] because it is ambiguous with built-in []
  5770. operator.
  5771. * src/array_fun.h
  5772. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5773. Fixed compile error
  5774. * src/OptionParser.cc
  5775. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5776. Added missing call to arrayWrapperConst
  5777. * test/array_funTest.cc
  5778. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5779. Use array_wrapper instead of array_ptr.
  5780. * src/DHTRoutingTableDeserializer.cc
  5781. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5782. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5783. * src/array_fun.h
  5784. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5785. Added array_wrapper template.
  5786. * src/array_fun.h
  5787. * test/array_funTest.cc
  5788. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5789. Use operator T* of array_ptr.
  5790. * src/OptionParser.cc
  5791. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5792. Use localhost instead of 127.0.0.1
  5793. * test/FtpConnectionTest.cc
  5794. * test/MSEHandshakeTest.cc
  5795. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5796. Added operator T*
  5797. * src/array_fun.h
  5798. * test/array_funTest.cc
  5799. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5800. Use dynamically allocated char array to detect memory access
  5801. violation.
  5802. * src/DHTRoutingTableDeserializer.cc
  5803. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5804. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5805. defined.
  5806. * src/PeerMessageUtil.cc
  5807. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5808. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5809. * configure.ac
  5810. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5811. Added a check to see struct sockaddr_in has sin_len member.
  5812. * configure.ac
  5813. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5814. Fixed buffer overrun.
  5815. * src/DHTRoutingTableDeserializer.cc
  5816. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5817. Added LL for long long int constant.
  5818. * test/FtpConnectionTest.cc
  5819. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5820. Casted to unsigned int to suppress compiler warning on netbsd.
  5821. * src/BtRuntime.h
  5822. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5823. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5824. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5825. type time_t.
  5826. * src/SimpleLogger.cc
  5827. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5828. Added test for FtpConnection::receiveSizeResponse().
  5829. * test/FtpConnectionTest.cc
  5830. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5831. Fix epoll error on the old kernel 2.6.8 or ealier.
  5832. * src/EpollEventPoll.cc
  5833. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5834. Use Util::parseLLInt instead of sscanf for portability. The
  5835. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5836. * src/FtpConnection.cc
  5837. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5838. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5839. block. It should not filter anything.
  5840. * src/BitfieldMan.cc
  5841. * src/ConsoleStatCalc.cc
  5842. * test/BitfieldManTest.cc
  5843. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5844. Fixed the bug that the boolean options that don't take arguments
  5845. don't work.
  5846. * src/OptionHandlerImpl.h
  5847. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5848. Fixed broken selected file BitTorrent download.
  5849. * src/MultiDiskAdaptor.cc
  5850. * test/MultiDiskAdaptorTest.cc
  5851. * test/MultiFileAllocationIteratorTest.cc
  5852. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5853. Fixed #define guard for EpollEventPoll
  5854. * src/EpollEventPoll.h
  5855. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5856. Wait 2 seconds. 1 second is sometimes not enough.
  5857. * test/TimeSeedCriteriaTest.cc
  5858. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5859. Use localhost instead of 127.0.0.1.
  5860. * test/DHTConnectionImplTest.cc
  5861. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5862. Suppressed compiler warning.
  5863. * src/AdaptiveURISelector.cc
  5864. * src/DefaultPieceStorage.cc
  5865. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5866. Defined virtual destructor.
  5867. * src/MetalinkParserState.h
  5868. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5869. Give NULL for second argument of getaddrinfo instead of "0".
  5870. * src/NameResolver.cc
  5871. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5872. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5873. included strptime doesn't parse data for this format.
  5874. * src/FtpConnection.cc
  5875. * test/FtpConnectionTest.cc
  5876. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5877. Removed tests giving -1 for unsigned argument.
  5878. * test/SingleFileDownloadContextTest.cc
  5879. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5880. Don't use sha256 in tests because it might not be supported by the
  5881. SSL library.
  5882. * test/MetalinkProcessorTest.cc
  5883. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5884. Removed tests giving -1 for unsigned argument.
  5885. * test/AlphaNumberDecoratorTest
  5886. * test/BitfieldManTest.cc
  5887. * test/DefaultBtContextTest.cc
  5888. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5889. Fixed compile error without libcares when epoll is available.
  5890. * src/EpollEventPoll.cc
  5891. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5892. Included fstream instead of iostream.
  5893. * test/SignatureTest.cc
  5894. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5895. Removed #include <algorithm>
  5896. * test/RequestGroupTest.cc
  5897. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5898. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5899. using RequestGroup::extractURIResult().
  5900. * src/AdaptiveURISelector.cc
  5901. * src/RequestGroup.cc
  5902. * src/RequestGroup.h
  5903. * test/RequestGroupTest.cc
  5904. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5905. Added tests for array_ptr.
  5906. * test/array_funTest.cc
  5907. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5908. Don't send ip parameter to a tracker if ip parameter is empty
  5909. string.
  5910. * src/DefaultBtAnnounce.cc
  5911. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5912. Adjusted line feed.
  5913. * src/version_usage.cc
  5914. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5915. Print tags, possible values when OptionHandlerException is caught.
  5916. * src/option_processing.cc
  5917. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5918. Changed the message for FatalException.
  5919. * src/OptionParser.cc
  5920. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5921. Documented --bt-external-ip option in man page. Updated man pages
  5922. for --proxy-method option.
  5923. * doc/aria2c.1.txt
  5924. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5925. Use GET method for FTP via HTTP proxy.
  5926. * src/FtpInitiateConnectionCommand.cc
  5927. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5928. Changed the default value of --proxy-method option from 'tunnel'
  5929. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5930. option.
  5931. * src/AbstractCommand.cc
  5932. * src/AbstractCommand.h
  5933. * src/FtpInitiateConnectionCommand.cc
  5934. * src/HttpDownloadCommand.cc
  5935. * src/HttpInitiateConnectionCommand.cc
  5936. * src/HttpInitiateConnectionCommand.h
  5937. * src/OptionHandlerFactory.cc
  5938. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5939. Initialized _logger
  5940. * src/SelectEventPoll.cc
  5941. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5942. Defined a copy constructor for the same type.
  5943. * src/SharedHandle.h
  5944. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5945. Added OptionParser::parseArg() which internally uses getopt_long
  5946. to parse command-line options. All command-line options are now
  5947. configured by OptionHandler. No manual editing of struct option*
  5948. is required any more.
  5949. * src/NameMatchOptionHandler.h
  5950. * src/OptionHandler.h
  5951. * src/OptionHandlerFactory.cc
  5952. * src/OptionHandlerImpl.h
  5953. * src/OptionParser.cc
  5954. * src/OptionParser.h
  5955. * src/array_fun.h
  5956. * src/main.cc
  5957. * src/option_processing.cc
  5958. * test/OptionHandlerTest.cc
  5959. * test/OptionParserTest.cc
  5960. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5961. Fixed configure error with --disable-epoll
  5962. * configure.ac
  5963. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5964. Fixed compile error when HAVE_EPOLL is not defined.
  5965. Fixed linker error on bigendian systems.
  5966. * src/SocketCore.cc
  5967. * src/SocketCore.h
  5968. * test/DefaultBtProgressInfoFileTest.cc
  5969. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5970. Added --bt-external-ip option. You can specify the external IP
  5971. address to report to a BitTorrent tracker. Although this function
  5972. is named 'external', it can accept any kind of IP addresses.
  5973. * src/DefaultBtAnnounce.cc
  5974. * src/OptionHandlerFactory.cc
  5975. * src/option_processing.cc
  5976. * src/prefs.cc
  5977. * src/prefs.h
  5978. * src/usage_text.h
  5979. * test/DefaultBtAnnounceTest.cc
  5980. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5981. Extracted the algorithm to find the longest incremental sequence
  5982. as max_sequence template.
  5983. * src/LongestSequencePieceSelector.cc
  5984. * src/a2algo.h
  5985. * test/Makefile.am
  5986. * test/a2algoTest.cc
  5987. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5988. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5989. * src/usage_text.h
  5990. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5991. Updated doc for --uri-selector, --http-server-listen-port and
  5992. --enable-http-server option. Documented --event-poll option.
  5993. * doc/aria2c.1.txt
  5994. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5995. Updated doc for --enable-http-server.
  5996. * src/usage_text.h
  5997. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5998. Documented --http-server-listen-port and --enable-http-server in
  5999. man page.
  6000. * doc/aria2c.1.txt
  6001. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6002. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6003. translations. Thanks to all translators.
  6004. * po/es.po
  6005. * po/id.po
  6006. * po/it.po
  6007. * po/ru.po
  6008. * po/uk.po
  6009. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6010. Bump up version number to 1.2.0
  6011. * configure.ac
  6012. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6013. BtContext::getAnnounceTiers() now returns const reference.
  6014. * src/BtContext.h
  6015. * src/DefaultBtContext.cc
  6016. * src/DefaultBtContext.h
  6017. * test/MockBtContext.h
  6018. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6019. Change the number of retries for tracker request based on the
  6020. number of available tracker in a torrent file.
  6021. * src/TrackerWatcherCommand.cc
  6022. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6023. Added _maxTries property to RequestGroup and assign the option
  6024. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6025. RequestGroup::getMaxTries() instead of
  6026. Option::getAsInt(PREF_MAX_TRIES).
  6027. * src/AbstractCommand.cc
  6028. * src/RequestGroup.cc
  6029. * src/RequestGroup.h
  6030. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6031. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6032. Mandriva. I modified the patch: make RequestGroup have the
  6033. timeout value and AdaptiveURISelector directly modifies that
  6034. value.
  6035. * src/AbstractCommand.cc
  6036. * src/AdaptiveURISelector.cc
  6037. * src/AdaptiveURISelector.h
  6038. * src/FtpNegotiationCommand.cc
  6039. * src/RequestGroup.cc
  6040. * src/RequestGroup.h
  6041. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6042. Fixed compiler warning
  6043. * test/IteratableChecksumValidatorTest.cc
  6044. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6045. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6046. integrated downloads. This PieceSelector subclass finds the
  6047. longest continuous sequence in the available missing pieces and
  6048. selects the last index of such sequence. This makes HTTP/FTP
  6049. connections less interrupted by the pieces obtained by BitTorrent
  6050. peers.
  6051. * src/DefaultPieceStorage.cc
  6052. * src/DefaultPieceStorage.h
  6053. * src/LongestSequencePieceSelector.cc
  6054. * src/LongestSequencePieceSelector.h
  6055. * src/Makefile.am
  6056. * src/PieceSelector.h
  6057. * src/RarestPieceSelector.h
  6058. * src/RequestGroup.cc
  6059. * test/BtDependencyTest.cc
  6060. * test/DefaultPieceStorageTest.cc
  6061. * test/IteratableChecksumValidatorTest.cc
  6062. * test/LongestSequencePieceSelectorTest.cc
  6063. * test/Makefile.am
  6064. * test/SegmentManTest.cc
  6065. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6066. Fixed the bug that the average speed is wrong in
  6067. http/ftp/BitTorrent integrated download. Only the download bytes
  6068. in BitTorrent were considered.
  6069. * src/RequestGroup.cc
  6070. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6071. Choose port for BitTorrent/DHT randomly from the specified range.
  6072. * src/DHTConnectionImpl.cc
  6073. * src/PeerListenCommand.cc
  6074. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6075. Send HTTP Authorization header only if it is requested by the
  6076. server(response 401). There are some exceptions. The authorization
  6077. header for proxy is always sent if it is available without request
  6078. by the server. If username/password is specified in the URI, it
  6079. is immediately sent to the server without request by the server.
  6080. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6081. SharedHandle<AuthConfig>().
  6082. NetrcAuthResolver::resolveAuthConfig() returns
  6083. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6084. * src/AbstractAuthResolver.cc
  6085. * src/AbstractProxyRequestCommand.cc
  6086. * src/AuthConfigFactory.cc
  6087. * src/AuthConfigFactory.h
  6088. * src/HttpConnection.cc
  6089. * src/HttpRequest.cc
  6090. * src/HttpRequest.h
  6091. * src/HttpResponse.cc
  6092. * src/HttpResponseCommand.cc
  6093. * src/HttpSkipResponseCommand.cc
  6094. * test/AuthConfigFactoryTest.cc
  6095. * test/HttpRequestTest.cc
  6096. * test/HttpResponseTest.cc
  6097. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6098. Remove leading "--" from help keyword and a substring after "="
  6099. from help keyword, so that one can query options by '-h--max-' or
  6100. '-hmax-peers=10'.
  6101. * src/option_processing.cc
  6102. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6103. Rewritten PStringVisitor and its implementation.
  6104. * src/PStringBuildVisitor.cc
  6105. * src/PStringBuildVisitor.h
  6106. * src/PStringDatum.h
  6107. * src/PStringNumLoop.h
  6108. * src/PStringSegment.cc
  6109. * src/PStringSegment.h
  6110. * src/PStringSelect.h
  6111. * src/PStringVisitor.h
  6112. * src/download_helper.cc
  6113. * test/PStringBuildVisitorTest.cc
  6114. * test/ParameterizedStringParserTest.cc
  6115. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6116. Persist connection between the built-in HTTP server and a client
  6117. if a client supports keep-alive. Fixed the bug that aria2 exits
  6118. when the HTTP server receives EOF from a client.
  6119. * src/HttpServer.cc
  6120. * src/HttpServer.h
  6121. * src/HttpServerCommand.cc
  6122. * src/HttpServerCommand.h
  6123. * src/HttpServerResponseCommand.cc
  6124. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6125. Added experimental built-in HTTP server. Currently, when a client
  6126. accesses to the server, it responds with the current download
  6127. progress. By default, it is disabled. To enable the server, give
  6128. --enable-http-server option. To change the default port number
  6129. for the server to listen to, use --http-server-listen-port option.
  6130. The response HTML is very simple and refreshes it self each 1
  6131. second. Because of this refresh, you see flicker in normal web
  6132. browser such as Firefox. I recommend to use console-based browser
  6133. such as elinks, w3m. To connect to the server, run 'elinks
  6134. http://localhost:6800/' while running aria2. Please replace port
  6135. number '6800'(which is default) with your preference.
  6136. * src/DownloadEngineFactory.cc
  6137. * src/HttpHeader.cc
  6138. * src/HttpHeader.h
  6139. * src/HttpHeaderProcessor.cc
  6140. * src/HttpHeaderProcessor.h
  6141. * src/HttpListenCommand.cc
  6142. * src/HttpListenCommand.h
  6143. * src/HttpServer.cc
  6144. * src/HttpServer.h
  6145. * src/HttpServerCommand.cc
  6146. * src/HttpServerCommand.h
  6147. * src/HttpServerResponseCommand.cc
  6148. * src/HttpServerResponseCommand.h
  6149. * src/Makefile.am
  6150. * src/OptionHandlerFactory.cc
  6151. * src/Util.cc
  6152. * src/Util.h
  6153. * src/help_tags.h
  6154. * src/option_processing.cc
  6155. * src/prefs.cc
  6156. * src/prefs.h
  6157. * src/usage_text.h
  6158. * test/HttpHeaderProcessorTest.cc
  6159. * test/UtilTest.cc
  6160. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6161. Removed.
  6162. * src/CheckIntegrityMan.cc
  6163. * src/FileAllocationMan.cc
  6164. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6165. Made (piece) hash check sequential for each RequestGroup because
  6166. simultaneous hash check is slower than sequential execution.
  6167. * src/CheckIntegrityCommand.cc
  6168. * src/CheckIntegrityDispatcherCommand.cc
  6169. * src/CheckIntegrityDispatcherCommand.h
  6170. * src/CheckIntegrityMan.h
  6171. * src/ConsoleStatCalc.cc
  6172. * src/DownloadCommand.cc
  6173. * src/DownloadEngine.cc
  6174. * src/DownloadEngine.h
  6175. * src/DownloadEngineFactory.cc
  6176. * src/Makefile.am
  6177. * src/Makefile.in
  6178. * src/RequestGroup.cc
  6179. * src/StatCalc.h
  6180. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6181. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6182. SequentialDispatcherCommand.
  6183. * src/FileAllocationDispatcherCommand.cc
  6184. * src/SequentialDispatcherCommand.h
  6185. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6186. Rewritten FileAllocationDispatcherCommand using brand new
  6187. SequentialDispatcherCommand.
  6188. * src/DownloadEngineFactory.cc
  6189. * src/FileAllocationCommand.cc
  6190. * src/FileAllocationDispatcherCommand.cc
  6191. * src/FileAllocationDispatcherCommand.h
  6192. * src/Makefile.am
  6193. * src/SequentialDispatcherCommand.h
  6194. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6195. Replaced FileAllocationMan with
  6196. SequentialPicker<FileAllocationEntry>.
  6197. * src/BtCheckIntegrityEntry.cc
  6198. * src/ConsoleStatCalc.cc
  6199. * src/DownloadEngine.cc
  6200. * src/DownloadEngine.h
  6201. * src/DownloadEngineFactory.cc
  6202. * src/FileAllocationCommand.cc
  6203. * src/FileAllocationDispatcherCommand.cc
  6204. * src/FileAllocationMan.h
  6205. * src/Makefile.am
  6206. * src/SequentialPicker.h
  6207. * src/StatCalc.h
  6208. * src/StreamCheckIntegrityEntry.cc
  6209. * test/Makefile.am
  6210. * test/SequentialPickerTest.cc
  6211. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6212. Added doc for adaptive URI selector.
  6213. * doc/aria2c.1.txt
  6214. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6215. Added doc for adaptive URI selector.
  6216. * src/usage_text.h
  6217. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6218. Added doc for --bt-max-peers option.
  6219. * doc/aria2c.1.txt
  6220. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6221. Added doc for --bt-hash-check-seed option.
  6222. * doc/aria2c.1.txt
  6223. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6224. Documented exit codes.
  6225. * doc/aria2c.1.txt
  6226. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6227. Added --bt-max-peers option to specify the maximum number of peers
  6228. per torrent. 0 means unlimited number of peers.
  6229. * src/ActivePeerConnectionCommand.cc
  6230. * src/BtRuntime.h
  6231. * src/DefaultPeerStorage.cc
  6232. * src/DefaultPeerStorage.h
  6233. * src/OptionHandlerFactory.cc
  6234. * src/RequestGroup.cc
  6235. * src/option_processing.cc
  6236. * src/prefs.cc
  6237. * src/prefs.h
  6238. * src/usage_text.h
  6239. * test/DefaultPeerStorageTest.cc
  6240. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6241. Added --bt-hash-check-seed option. If true is given to this
  6242. option, after hash check using --check-integrity option and file
  6243. is complete, continue to seed file. If you want to check file and
  6244. download it only when it is damaged or incomplete, set this option
  6245. to false. This option has effect only on BitTorrent download.
  6246. The default value is true(This is the same behavior with the
  6247. previous release).
  6248. * src/BtCheckIntegrityEntry.cc
  6249. * src/OptionHandlerFactory.cc
  6250. * src/option_processing.cc
  6251. * src/prefs.cc
  6252. * src/prefs.h
  6253. * src/usage_text.h
  6254. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6255. Updated copyright year.
  6256. * src/version_usage.cc
  6257. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6258. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6259. * doc/aria2c.1.txt
  6260. * src/usage_text.h
  6261. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6262. Made the max value of split option unlimited.
  6263. * doc/aria2c.1.txt
  6264. * src/OptionHandlerFactory.cc
  6265. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6266. Fixed compile warning/error.
  6267. * src/DownloadResult.h
  6268. * src/HttpDownloadCommand.cc
  6269. * src/ServerStat.cc
  6270. * test/RequestGroupTest.cc
  6271. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6272. Added --event-poll option to select the method for polling events.
  6273. The available methods are "select" and "epoll". "epoll" is
  6274. available on Linux only. The earlier release has the compile
  6275. option to choose from these methods.
  6276. * configure.ac
  6277. * src/RequestGroupMan.cc
  6278. * src/OptionHandlerFactory.cc
  6279. * src/EpollEventPoll.h
  6280. * src/StreamFileAllocationEntry.cc
  6281. * src/a2io.h
  6282. * src/SelectEventPoll.h
  6283. * src/option_processing.cc
  6284. * src/prefs.h
  6285. * src/EpollEventPoll.cc
  6286. * src/EventPoll.h
  6287. * src/SocketCore.h
  6288. * src/Makefile.am
  6289. * src/main.cc
  6290. * src/DownloadEngine.h
  6291. * src/SelectEventPoll.cc
  6292. * src/DownloadEngine.cc
  6293. * src/SocketCore.cc
  6294. * src/DownloadEngineFactory.cc
  6295. * src/Makefile.in
  6296. * src/prefs.cc
  6297. * src/usage_text.h
  6298. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6299. Included RecoverableException.h from main.cc
  6300. * src/main.cc
  6301. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6302. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6303. now returns last error encountered in the HTTP/FTP downloads as a
  6304. exit status value. If all downloads finished successfully, aria2
  6305. returns 0. The error code is defined in src/DownloadResult.h.
  6306. The error occurred in the download currently in progress is not
  6307. reported as a last error. If no error has encountered but there
  6308. are in progress or waiting downloads, aria2 returns 7.
  6309. * src/AbstractCommand.cc
  6310. * src/DlAbortEx.h
  6311. * src/DlRetryEx.h
  6312. * src/DownloadCommand.cc
  6313. * src/DownloadFailureException.h
  6314. * src/DownloadResult.h
  6315. * src/FtpNegotiationCommand.cc
  6316. * src/HttpSkipResponseCommand.cc
  6317. * src/Makefile.am
  6318. * src/MultiUrlRequestInfo.cc
  6319. * src/MultiUrlRequestInfo.h
  6320. * src/RecoverableException.h
  6321. * src/RequestGroup.cc
  6322. * src/RequestGroup.h
  6323. * src/RequestGroupMan.cc
  6324. * src/RequestGroupMan.h
  6325. * src/URIResult.cc
  6326. * src/URIResult.h
  6327. * src/main.cc
  6328. * src/option_processing.cc
  6329. * test/RequestGroupTest.cc
  6330. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6331. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6332. patch adds AdaptiveURISelector, which selects one of the bests
  6333. mirrors for first and reserved connections. For supplementary
  6334. ones, it returns mirrors which has not been tested yet, and if
  6335. each of them already tested, returns mirrors which has to be
  6336. tested again. Otherwise, it doesn't return anymore mirrors.
  6337. * src/AdaptiveURISelector.cc
  6338. * src/AdaptiveURISelector.h
  6339. * src/FtpNegotiationCommand.cc
  6340. * src/HttpResponseCommand.cc
  6341. * src/Makefile.am
  6342. * src/Makefile.in
  6343. * src/OptionHandlerFactory.cc
  6344. * src/RequestGroup.cc
  6345. * src/RequestGroup.h
  6346. * src/RequestGroupMan.cc
  6347. * src/ServerStat.cc
  6348. * src/ServerStat.h
  6349. * src/ServerStatMan.cc
  6350. * src/SpeedCalc.cc
  6351. * src/URISelector.h
  6352. * src/prefs.cc
  6353. * src/prefs.h
  6354. * test/RequestGroupManTest.cc
  6355. * test/ServerStatManTest.cc
  6356. * test/ServerStatTest.cc
  6357. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6358. Fixed unit test error.
  6359. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6360. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6361. * Release 1.1.2
  6362. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6363. Updated Russian translation. Thanks to the translators.
  6364. * po/ru.po
  6365. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6366. Added the description of --use-head option to man page.
  6367. * doc/aria2c.1.txt
  6368. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6369. Bump up version number to 1.1.2
  6370. * configure.ac
  6371. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6372. Added --use-head option to toggle whether HEAD method should be
  6373. used in the first HTTP request. By default aria2 uses HEAD method
  6374. as the first request. When the server doesn't recognize HEAD, then
  6375. give aria2 --use-head=false to force aria2 to use GET method
  6376. instead.
  6377. * src/OptionHandlerFactory.cc
  6378. * src/RequestGroupMan.cc
  6379. * src/option_processing.cc
  6380. * src/prefs.cc
  6381. * src/prefs.h
  6382. * src/usage_text.h
  6383. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6384. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6385. message is received before CHOKE message. The old implementation
  6386. doen't clear the use-bit of the piece when recieved REJECT
  6387. message.
  6388. * src/DefaultBtMessageDispatcher.cc
  6389. * test/DefaultBtMessageDispatcherTest.cc
  6390. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6391. * Release 1.1.1
  6392. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6393. Bump up version number to 1.1.1.
  6394. * configure.ac
  6395. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6396. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6397. is printed repeatedly.
  6398. * src/ConsoleStatCalc.cc
  6399. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6400. * Release 1.1.0
  6401. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6402. Added ifdef clause for conditional compilation.
  6403. * src/main.cc
  6404. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6405. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6406. translations. Thanks to all translators.
  6407. * po/ja.po
  6408. * po/ru.po
  6409. * po/uk.po
  6410. * po/zh_CN.po
  6411. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6412. Added the preceding ">>> " before the message "Printing the
  6413. contents of file..." to make the output more readable.
  6414. * src/main.cc
  6415. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6416. Added try-catch block in the loop in showFiles() to continue the
  6417. operation even if the exception occurred in one file.
  6418. * src/main.cc (showFiles)
  6419. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6420. Made messages in showFiles() translatable.
  6421. * po/aria2.pot
  6422. * src/main.cc
  6423. * src/message.h
  6424. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6425. Print the contents of Torrent/Metalink files are printed without
  6426. -T/-M options.
  6427. * src/main.cc
  6428. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6429. Escaped '--' with '\--'
  6430. * README
  6431. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6432. Updated "How to build" section in README. Mentioned about
  6433. --with-ca-bundle compile option.
  6434. * README
  6435. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6436. Bump up version number to 1.1.0.
  6437. * configure.ac
  6438. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6439. Added a note for --dht-listen-port option.
  6440. * doc/aria2c.1.txt
  6441. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6442. Update doc for --realtime-chunk-checksum option.
  6443. * doc/aria2c.1.txt
  6444. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6445. Update doc for --realtime-chunk-checksum option.
  6446. * src/usage_text.h
  6447. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6448. Updated French, Japanese, Russian and Ukrainian translations.
  6449. Thanks to all translators.
  6450. * po/fr.po
  6451. * po/ja.po
  6452. * po/ru.po
  6453. * po/uk.po
  6454. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6455. Renamed aria2c.pot to aria2.pot
  6456. * po/aria2.pot
  6457. * po/aria2c.pot: Removed.
  6458. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6459. Removed MetaEntry.h
  6460. * src/Makefile.am
  6461. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6462. Rename file by appending digits if a local file exists and its
  6463. file size is larger than that of remote file with --continue
  6464. option. The old implementation just throws exception in such case.
  6465. * src/RequestGroup.cc
  6466. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6467. Fixed the bug that download progress summary is not printed in the
  6468. interval specified by the option.
  6469. * src/ConsoleStatCalc.cc
  6470. * src/ConsoleStatCalc.h
  6471. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6472. Fixed compiler warning
  6473. * src/Cookie.cc
  6474. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6475. Fixed the cookie implementation based on RFC2965.
  6476. Now if a value in domain field is not started with dot, then
  6477. prepend dot. That means a cookie with domain=sf.net is sent to
  6478. wiki.sf.net.
  6479. * src/Cookie.cc
  6480. * test/CookieParserTest.cc
  6481. * test/CookieStorageTest.cc
  6482. * test/CookieTest.cc
  6483. * test/NsCookieParserTest.cc
  6484. * test/Sqlite3MozCookieParserTest.cc
  6485. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6486. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6487. is enabled and the server doesn't support keep-alive.
  6488. * src/AbstractCommand.cc
  6489. * src/DownloadCommand.cc
  6490. * src/HttpDownloadCommand.cc
  6491. * src/HttpDownloadCommand.h
  6492. * src/HttpResponseCommand.cc
  6493. * src/Request.cc
  6494. * src/Request.h
  6495. * test/RequestTest.cc
  6496. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6497. Removed Dictionary/List/Data and its related classes.
  6498. * src/BencodeVisitor.cc: Removed.
  6499. * src/BencodeVisitor.h: Removed.
  6500. * src/Data.cc: Removed.
  6501. * src/Data.h: Removed.
  6502. * src/Dictionary.cc: Removed.
  6503. * src/Dictionary.h: Removed.
  6504. * src/List.cc: Removed.
  6505. * src/List.h: Removed.
  6506. * src/Makefile.am
  6507. * src/MetaEntry.h: Removed.
  6508. * src/MetaEntryVisitor.h: Removed.
  6509. * src/MetaFileUtil.cc: Removed.
  6510. * src/MetaFileUtil.h: Removed.
  6511. * test/BencodeVisitorTest.cc: Removed.
  6512. * test/DataTest.cc: Removed.
  6513. * test/DictionaryTest.cc: Removed.
  6514. * test/ListTest.cc: Removed.
  6515. * test/Makefile.am
  6516. * test/MetaFileUtilTest.cc: Removed.
  6517. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6518. Removed include of MetaEntry.h
  6519. * test/DHTMessageTrackerEntryTest.cc
  6520. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6521. Use BDE instead of Dictionary/List/Data.
  6522. * src/AnnounceList.cc
  6523. * src/AnnounceList.h
  6524. * test/AnnounceListTest.cc
  6525. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6526. Use BDE instead of Dictionary/List/Data.
  6527. * src/DHTAbstractMessage.cc
  6528. * src/DHTAbstractMessage.h
  6529. * src/DHTAnnouncePeerMessage.cc
  6530. * src/DHTAnnouncePeerMessage.h
  6531. * src/DHTAnnouncePeerReplyMessage.cc
  6532. * src/DHTAnnouncePeerReplyMessage.h
  6533. * src/DHTFindNodeMessage.cc
  6534. * src/DHTFindNodeMessage.h
  6535. * src/DHTFindNodeReplyMessage.cc
  6536. * src/DHTFindNodeReplyMessage.h
  6537. * src/DHTGetPeersMessage.cc
  6538. * src/DHTGetPeersMessage.h
  6539. * src/DHTGetPeersReplyMessage.cc
  6540. * src/DHTGetPeersReplyMessage.h
  6541. * src/DHTMessageFactory.h
  6542. * src/DHTMessageFactoryImpl.cc
  6543. * src/DHTMessageFactoryImpl.h
  6544. * src/DHTMessageReceiver.cc
  6545. * src/DHTMessageTracker.cc
  6546. * src/DHTMessageTracker.h
  6547. * src/DHTPingMessage.cc
  6548. * src/DHTPingMessage.h
  6549. * src/DHTPingReplyMessage.cc
  6550. * src/DHTPingReplyMessage.h
  6551. * src/DHTQueryMessage.cc
  6552. * src/DHTQueryMessage.h
  6553. * src/DHTResponseMessage.cc
  6554. * src/DHTResponseMessage.h
  6555. * test/DHTAnnouncePeerMessageTest.cc
  6556. * test/DHTAnnouncePeerReplyMessageTest.cc
  6557. * test/DHTFindNodeMessageTest.cc
  6558. * test/DHTFindNodeReplyMessageTest.cc
  6559. * test/DHTGetPeersMessageTest.cc
  6560. * test/DHTGetPeersReplyMessageTest.cc
  6561. * test/DHTMessageFactoryImplTest.cc
  6562. * test/DHTMessageTrackerTest.cc
  6563. * test/DHTPingMessageTest.cc
  6564. * test/DHTPingReplyMessageTest.cc
  6565. * test/MockDHTMessageFactory.h
  6566. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6567. Added tests the case where length < 0 is specified.
  6568. * test/BencodeTest.cc
  6569. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6570. Fixed memory leak in decoderawstring()
  6571. * src/bencode.cc
  6572. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6573. Added missing #ifdef guard. Added uc() function for String and
  6574. removeKey() for Dict.
  6575. * src/bencode.cc
  6576. * src/bencode.h
  6577. * test/BencodeTest.cc
  6578. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6579. Use BDE instead of Dictionary/List/Data.
  6580. * src/HandshakeExtensionMessage.cc
  6581. * src/HandshakeExtensionMessage.h
  6582. * test/HandshakeExtensionMessageTest.cc
  6583. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6584. Added --max-overall-upload-limit option. This option limits the
  6585. overall upload speed. Stated in help message that the existing
  6586. --max-upload-limit option limits the upload speed per each
  6587. torrent. Man page is also updated.
  6588. * doc/aria2c.1.txt
  6589. * src/DefaultBtMessageDispatcher.cc
  6590. * src/DefaultBtMessageDispatcher.h
  6591. * src/OptionHandlerFactory.cc
  6592. * src/PeerInteractionCommand.cc
  6593. * src/option_processing.cc
  6594. * src/prefs.cc
  6595. * src/prefs.h
  6596. * src/usage_text.h
  6597. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6598. Use BDE instead of Dictionary/List/Data classes.
  6599. * src/CompactPeerListProcessor.cc
  6600. * src/CompactPeerListProcessor.h
  6601. * src/DefaultBtAnnounce.cc
  6602. * src/DefaultBtContext.cc
  6603. * src/DefaultBtContext.h
  6604. * src/DefaultPeerListProcessor.cc
  6605. * src/DefaultPeerListProcessor.h
  6606. * src/DelegatingPeerListProcessor.cc
  6607. * src/DelegatingPeerListProcessor.h
  6608. * src/PeerListProcessor.h
  6609. * src/UTPexExtensionMessage.cc
  6610. * src/Util.h
  6611. * src/message.h
  6612. * test/DefaultBtContextTest.cc
  6613. * test/DefaultPeerListProcessorTest.cc
  6614. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6615. Added bencode helper functions and BDE class.
  6616. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6617. * src/Makefile.am
  6618. * src/bencode.cc
  6619. * src/bencode.h
  6620. * test/BencodeTest.cc
  6621. * test/Makefile.am
  6622. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6623. Fixed the bug that bad URI is sent to the tracker when the announe
  6624. URI in torrent file includes query.
  6625. * src/DefaultBtAnnounce.cc
  6626. * test/DefaultBtAnnounceTest.cc
  6627. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6628. Added Option::blank().
  6629. Use !Option::blank(name) instead of Option::defined(name) for
  6630. the options that take filename.
  6631. * src/MultiUrlRequestInfo.cc
  6632. * src/Option.cc
  6633. * src/Option.h
  6634. * src/main.cc
  6635. * src/option_processing.cc
  6636. * test/OptionTest.cc
  6637. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6638. Documented the default value of --check-certificate option in man
  6639. page.
  6640. * doc/aria2c.1.txt
  6641. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6642. Enabled --check-certificate by default. Added compile
  6643. time(configure) option --with-ca-bundle to specify CA bundle.
  6644. Warn if --check-certificate=true and --ca-certificate is not
  6645. specified or loading CA certificate is failed.
  6646. * configure.ac
  6647. * src/MultiUrlRequestInfo.cc
  6648. * src/OptionHandlerFactory.cc
  6649. * src/message.h
  6650. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6651. Mentioned https tag in help option.
  6652. * doc/aria2c.1.txt
  6653. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6654. Added `https' tag to help option category. Added https tag to
  6655. --ca-certificate, --certificate, --check-certificate and
  6656. --private-key option.
  6657. * src/OptionHandlerFactory.cc
  6658. * src/help_tags.h
  6659. * src/option_processing.cc
  6660. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6661. Changed the package name from `aria2c' to `aria2' in order to fix
  6662. the packaging issue in Debian and Fedora. The name of the
  6663. executable is not changed.
  6664. * configure.ac
  6665. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6666. Fixed typos
  6667. * src/usage_text.h
  6668. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6669. Fixed typos and updated doc.
  6670. * README
  6671. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6672. Fixed typos
  6673. * doc/aria2c.1.txt
  6674. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6675. Fixed typos
  6676. * src/usage_text.h
  6677. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6678. Print a message when no files to download.
  6679. * src/download_helper.cc
  6680. * src/main.cc
  6681. * src/message.h
  6682. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6683. RFC3986 complied Percent-Encoding(urlencode).
  6684. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6685. ones.
  6686. * src/Request.cc
  6687. * src/Util.cc
  6688. * src/Util.h
  6689. * test/BtHandshakeMessageTest.cc
  6690. * test/DefaultBtAnnounceTest.cc
  6691. * test/DefaultBtContextTest.cc
  6692. * test/RequestTest.cc
  6693. * test/UtilTest.cc
  6694. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6695. Fixed the bug that prevents aria2 from downloading 0-length files
  6696. via HTTP/FTP.
  6697. * src/DefaultBtContext.cc
  6698. * src/DefaultBtContext.h
  6699. * src/DownloadContext.h
  6700. * src/FtpNegotiationCommand.cc
  6701. * src/HttpResponseCommand.cc
  6702. * src/HttpResponseCommand.h
  6703. * src/RequestGroup.cc
  6704. * src/SingleFileDownloadContext.cc
  6705. * src/SingleFileDownloadContext.h
  6706. * test/BtPostDownloadHandlerTest.cc
  6707. * test/MetalinkPostDownloadHandlerTest.cc
  6708. * test/MockBtContext.h
  6709. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6710. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6711. * src/option_processing.cc
  6712. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6713. Applied aria2-1.0.1-mingw.patch.
  6714. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6715. mingw.
  6716. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6717. * src/SocketCore.cc
  6718. * src/a2netcompat.h
  6719. * test/SocketCoreTest.cc
  6720. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6721. * Release 1.0.1
  6722. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6723. Updated Ukrainian and Norwegian Nynorsk translations.
  6724. Thanks to all translators.
  6725. * po/nn.po
  6726. * po/uk.po
  6727. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6728. Don't show download result when -S option is used.
  6729. * src/main.cc
  6730. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6731. Bump up version number to 1.0.1
  6732. * configure.ac
  6733. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6734. Closed files after the test cases in MultiDiskWriterTest::
  6735. testResetDiskWriterEntries(). This will fix the unit test error
  6736. in mingw32 build.
  6737. * test/MultiDiskWriterTest.cc
  6738. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6739. Use HEAD method to get file size from HTTP server for segmented
  6740. downloading.
  6741. The request to the BitTorrent Tracker always uses GET method because
  6742. the response of the tracker is small and it doesn't need segmented
  6743. download.
  6744. * src/FtpNegotiationCommand.cc
  6745. * src/HttpRequest.cc
  6746. * src/HttpResponseCommand.cc
  6747. * src/HttpSkipResponseCommand.cc
  6748. * src/RequestGroup.cc
  6749. * src/RequestGroup.h
  6750. * src/TrackerWatcherCommand.cc
  6751. * test/HttpRequestTest.cc
  6752. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6753. Fixed the bug that causes floating exception when -T option is used and
  6754. no URIs are given.
  6755. * src/download_helper.cc
  6756. * test/DownloadHelperTest.cc
  6757. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6758. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6759. errors in MinGW:
  6760. Closed file after saving server stats (RequestGroupMan.cc)
  6761. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6762. Ignored case & handled 2-digit years (strptime.c)
  6763. Added missing suseconds_t definition (a2time.h)
  6764. Fixed socket CLOSE() define (SocketCore.cc)
  6765. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6766. Changed utime() test values from x000 to x00000 as MinGW failed on
  6767. values less than timezone offset from Unix epoch
  6768. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6769. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6770. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6771. handle negative dates (CookieParserTest.cc)
  6772. * src/a2time.h
  6773. * src/FtpConnection.cc
  6774. * src/RequestGroupMan.cc
  6775. * src/SocketCore.cc
  6776. * src/strptime.c
  6777. * test/CookieParserTest.cc
  6778. * test/CopyDiskAdaptorTest.cc
  6779. * test/FileTest.cc
  6780. * test/FtpConnectionTest.cc
  6781. * test/MultiDiskAdaptorTest.cc
  6782. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6783. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6784. * doc/aria2c.1.txt
  6785. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6786. * Release 1.0.0
  6787. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6788. Added '~' to reserved characters.
  6789. * src/Util.cc
  6790. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6791. Do not urlencode Request::url in setUrl() because we want unmodified
  6792. URL using Request::getUrl()
  6793. * src/Request.cc
  6794. * src/Request.h
  6795. * test/RequestTest.cc
  6796. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6797. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6798. Thanks to all translators.
  6799. * po/bg.po
  6800. * po/fr.po
  6801. * po/ja.po
  6802. * po/ru.po
  6803. * po/uk.po
  6804. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6805. Bump up version number to 1.0.0
  6806. * configure.ac
  6807. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6808. Added nosqlite3 build to build_test.sh.
  6809. Renamed noxml as expat.
  6810. * build_test.sh
  6811. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6812. Updated INPUT FILE section.
  6813. * doc/aria2c.1.txt
  6814. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6815. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6816. on big endian systems because test .aria2 files are made for little
  6817. endian systems.
  6818. * test/DefaultBtProgressInfoFileTest.cc
  6819. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6820. Dropped ares support.
  6821. * README
  6822. * configure.ac
  6823. * m4/libares.m4: Removed.
  6824. * src/AsyncNameResolver.cc
  6825. * src/Makefile.am
  6826. * test/Makefile.am
  6827. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6828. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6829. Removed const qualifier from DiskWriter::size().
  6830. * src/AbstractDiskWriter.cc
  6831. * src/AbstractDiskWriter.h
  6832. * src/ByteArrayDiskWriter.cc
  6833. * src/ByteArrayDiskWriter.h
  6834. * src/DiskWriter.h
  6835. * test/ByteArrayDiskWriterTest.cc
  6836. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6837. Fixed the bug that causes segmentation fault/bus error during executing
  6838. choking algorithm while seeding. This is caused by improper
  6839. implementation of compare function which returns inconsistent results
  6840. depending on the timing of last unchoke.
  6841. * src/BtSeederStateChoke.cc
  6842. * src/BtSeederStateChoke.h
  6843. * src/DefaultPeerStorage.cc
  6844. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6845. Removed TODO
  6846. * TODO
  6847. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6848. Added a section that explains how to pass argument to options that
  6849. takes optional arguments with its short form.
  6850. * doc/aria2c.1.txt
  6851. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6852. Added -u for the short form of --max-upload-limit option.
  6853. * doc/aria2c.1.txt
  6854. * src/option_processing.cc
  6855. * src/usage_text.h
  6856. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6857. Added -V for the short form of --check-integrity option.
  6858. Now the argument of --check-integrity option is optional:
  6859. if it is omitted, it is evaluated as true.
  6860. * doc/aria2c.1.txt
  6861. * src/option_processing.cc
  6862. * src/usage_text.h
  6863. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6864. Made the default value of --ftp-pasv option set to true and it can take
  6865. true/false values.
  6866. * src/OptionHandlerFactory.cc
  6867. * src/option_processing.cc
  6868. * src/usage_text.h
  6869. * doc/aria2c.1.txt
  6870. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6871. Given custom random number generator to std::random_shuffle.
  6872. * src/AnnounceList.cc
  6873. * src/BtLeecherStateChoke.cc
  6874. * src/BtSeederStateChoke.cc
  6875. * src/DefaultBtRequestFactory.cc
  6876. * src/MetalinkEntry.cc
  6877. * src/RarestPieceSelector.cc
  6878. * src/SimpleRandomizer.cc
  6879. * src/SimpleRandomizer.h
  6880. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6881. Now the default value of --enable-direct-io is true.
  6882. * src/OptionHandlerFactory.cc
  6883. * doc/aria2c.1.txt
  6884. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6885. Erase peer before executing onReturningPeer and onErasingPeer
  6886. because choking algorithm called from onReturningPeer doesn't
  6887. like erasing peer in the active peer list.
  6888. * src/DefaultPeerStorage.cc
  6889. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6890. Instead of creating special filename in createDownloadResult() if
  6891. inMemoryDownload() is true, now it is done in getFilePath().
  6892. * src/RequestGroup.cc
  6893. * test/RequestGroupTest.cc
  6894. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6895. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6896. processed in memory. This is the fix for previous comment out.
  6897. * src/MemoryBufferPreDownloadHandler.cc
  6898. * src/RequestGroup.cc
  6899. * src/RequestGroup.h
  6900. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6901. Commented out the code which sets virtual directory path "[MEMORY]"
  6902. propagate directory to store to following RequestGroup.
  6903. * src/MemoryBufferPreDownloadHandler.cc
  6904. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6905. Bump up version number to 1.0.0b
  6906. * configure.ac
  6907. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6908. Added input_uris.txt to EXTRA_DIST
  6909. * test/Makefile.am
  6910. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6911. Removed PeerObject.h from Makefile.am
  6912. * src/Makefile.am
  6913. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6914. Avoid slow seeding
  6915. * src/PeerInteractionCommand.cc
  6916. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6917. Updated usage for -i option.
  6918. * src/usage_text.h (TEXT_INPUT_FILE)
  6919. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6920. Added INPUT FILE section to man page.
  6921. Escaped fake URLs.
  6922. * doc/aria2c.1.txt
  6923. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6924. Fixed wrong note position for -o option.
  6925. * doc/aria2c.1.txt
  6926. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6927. Fixed compile error without SSL/XML library.
  6928. * src/DefaultBtProgressInfoFile.cc
  6929. * src/DefaultBtProgressInfoFile.h
  6930. * src/FileMetalinkParserState.cc
  6931. * src/RequestGroup.h
  6932. * src/SocketCore.cc
  6933. * src/SocketCore.h
  6934. * src/VerificationMetalinkParserState.cc
  6935. * src/download_helper.h
  6936. * src/main.cc
  6937. * test/DefaultBtProgressInfoFileTest.cc
  6938. * test/DownloadHelperTest.cc
  6939. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6940. Rewritten URI handling functions. They are now provided as a testable
  6941. functions.
  6942. * src/Makefile.am
  6943. * src/RequestGroup.cc
  6944. * src/RequestGroup.h
  6945. * src/download_helper.cc
  6946. * src/download_helper.h
  6947. * src/main.cc
  6948. * test/DownloadHelperTest.cc
  6949. * test/Makefile.am
  6950. * test/input_uris.txt
  6951. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6952. Quickly terminate commands when ctrl-c is pressed.
  6953. * src/DownloadEngine.cc
  6954. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6955. Quickly terminate idle commands when download finished.
  6956. * src/AbstractCommand.cc
  6957. * src/DownloadCommand.cc
  6958. * src/DownloadEngine.cc
  6959. * src/DownloadEngine.h
  6960. * src/SleepCommand.cc
  6961. * src/SleepCommand.h
  6962. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6963. Added the ability to specify output filename and directory in input
  6964. file.
  6965. Additional parameters are added in the following line of URIs
  6966. with proceeding white space(s), 1 parameter in 1 line.
  6967. The parameter names are the same with the command-line option name
  6968. without proceeding "--". Not all the options are available here:
  6969. at the moment, 'dir' and 'out' options are avialable.
  6970. Please note that out option has no effect against Metalink or BitTorrent
  6971. downloads.
  6972. Example input file:
  6973. http://host/foo-1.1.tar.bz2
  6974. out=foo.tar.bz2
  6975. dir=/tmp/downloads
  6976. http://host/thundermonkey-2.0.tar.bz2
  6977. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6978. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6979. thundermonkey-2.0.tar.bz2 is saved as
  6980. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6981. * src/BtPostDownloadHandler.cc
  6982. * src/Metalink2RequestGroup.cc
  6983. * src/Metalink2RequestGroup.h
  6984. * src/MetalinkPostDownloadHandler.cc
  6985. * src/UriListParser.cc
  6986. * src/UriListParser.h
  6987. * src/main.cc
  6988. * test/Metalink2RequestGroupTest.cc
  6989. * test/UriListParserTest.cc
  6990. * test/filelist1.txt
  6991. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6992. Fixed error when SSL library is not found.
  6993. * configure.ac
  6994. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6995. Cross referenced among -s, -C and -j options.
  6996. Updated usage of -C and -s options.
  6997. * src/usage_text.h
  6998. * doc/aria2c.1.txt
  6999. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7000. Fixed bad cast in 32bit platforms.
  7001. * test/DefaultPieceStorageTest.cc
  7002. (DefaultPieceStorageTest::testGetCompletedLength)
  7003. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7004. Fixed unit test fails on 32bit platforms.
  7005. * test/CookieParserTest.cc
  7006. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7007. Show an average download speed in Download results.
  7008. * src/BtFileAllocationEntry.cc
  7009. * src/DefaultPieceStorage.cc
  7010. * src/DownloadContext.cc
  7011. * src/DownloadContext.h
  7012. * src/DownloadResult.h
  7013. * src/RequestGroup.cc
  7014. * src/RequestGroupMan.cc
  7015. * src/StreamFileAllocationEntry.cc
  7016. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7017. Fixed the bug that metalink file is not processed if Content-Type
  7018. field has a paramter.
  7019. * src/HttpResponse.cc
  7020. * src/HttpResponse.h
  7021. * test/HttpResponseTest.cc
  7022. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7023. Removed unused code.
  7024. * src/DefaultBtAnnounce.cc
  7025. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7026. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7027. the value larger than DefaultPieceStorage::getTotalLength() when
  7028. in flight pieces are involved.
  7029. * src/DefaultPieceStorage.cc
  7030. * test/DefaultPieceStorageTest.cc
  7031. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7032. Bump up version number to 1.0.0a.
  7033. * configure.ac
  7034. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7035. Updated configure.ac
  7036. * configure.ac
  7037. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7038. Added usege for proxy.
  7039. * doc/aria2c.1.txt
  7040. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7041. Added usage for --ca-certificate, --certificate, --private-key and
  7042. --check-certificate options.
  7043. * doc/aria2c.1.txt
  7044. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7045. Updated man page
  7046. * doc/aria2c.1.txt
  7047. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7048. Added --no-proxy option. It receives comman separated hostname or
  7049. domains to which proxy should not be used.
  7050. aria2 honors the environment variable no_proxy to override no-proxy
  7051. value in configuration file. The user can override the environment
  7052. variable no_proxy with --no-proxy command-line option.
  7053. * src/AbstractCommand.cc
  7054. * src/OptionHandlerFactory.cc
  7055. * src/option_processing.cc
  7056. * src/prefs.cc
  7057. * src/prefs.h
  7058. * src/usage_text.h
  7059. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7060. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7061. The CA certificates are specified in --ca-certificate option.
  7062. By default, the verification is disabled. Use --check-certificate
  7063. option to enable it.
  7064. * src/HttpRequestCommand.cc
  7065. * src/LibgnutlsTLSContext.cc
  7066. * src/LibgnutlsTLSContext.h
  7067. * src/LibsslTLSContext.cc
  7068. * src/LibsslTLSContext.h
  7069. * src/MultiUrlRequestInfo.cc
  7070. * src/OptionHandlerFactory.cc
  7071. * src/SocketCore.cc
  7072. * src/SocketCore.h
  7073. * src/a2functional.h
  7074. * src/message.h
  7075. * src/option_processing.cc
  7076. * src/prefs.cc
  7077. * src/prefs.h
  7078. * src/usage_text.h
  7079. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7080. Added client certificate authentication for SSL/TLS.
  7081. Currently a private key must be decrypted for use with aria2.
  7082. If a user accidentally gives encrypted file to aria2 then following
  7083. thing happens:
  7084. If encrypted private key is given to aria2, it behaves differently
  7085. depending on the ssl library it uses. If aria2 built with openssl then
  7086. openssl prompts the user for password. If aria2 build with gnutls then
  7087. aria2 exists with error at start up.
  7088. * src/DownloadEngineFactory.cc
  7089. * src/MultiUrlRequestInfo.cc
  7090. * src/OptionHandlerFactory.cc
  7091. * src/option_processing.cc
  7092. * src/prefs.cc
  7093. * src/prefs.h
  7094. * src/usage_text.h
  7095. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7096. Introduced TLSContext that holds TLS related data that can be shared
  7097. with multiple SSL connections.
  7098. * src/DownloadEngineFactory.cc
  7099. * src/LibgnutlsTLSContext.cc
  7100. * src/LibgnutlsTLSContext.h
  7101. * src/LibsslTLSContext.cc
  7102. * src/LibsslTLSContext.h
  7103. * src/Makefile.am
  7104. * src/SocketCore.cc
  7105. * src/SocketCore.h
  7106. * src/TLSContext.h
  7107. * src/message.h
  7108. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7109. Fixed the bug that the DiskWriter of the first FileEntry whose
  7110. `needsFileAllocation' property is false is not created
  7111. even if it shares a piece with next FileEntry which `requested' property
  7112. is true.
  7113. Fixed the bug that zero-length file is not created if pre file
  7114. allocation is not done.
  7115. * src/MultiDiskAdaptor.cc
  7116. * src/MultiDiskAdaptor.h
  7117. * test/MultiDiskAdaptorTest.cc
  7118. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Added the ability to pool proxy connection.
  7120. The conneciton in FTP with proxy-method=GET is not pooled.
  7121. Proxy-Connection header will not be sent when sending CONNECT method.
  7122. * src/DownloadEngine.cc
  7123. * src/DownloadEngine.h
  7124. * src/FtpFinishDownloadCommand.cc
  7125. * src/FtpInitiateConnectionCommand.cc
  7126. * src/FtpNegotiationCommand.cc
  7127. * src/HttpDownloadCommand.cc
  7128. * src/HttpInitiateConnectionCommand.cc
  7129. * src/HttpRequest.cc
  7130. * src/HttpRequest.h
  7131. * src/HttpResponse.cc
  7132. * src/HttpSkipResponseCommand.cc
  7133. * test/HttpRequestTest.cc
  7134. * test/HttpResponseTest.cc
  7135. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7136. Handle date before epoch.
  7137. To create *bad* Time object, call Time::null().
  7138. * src/CookieParser.cc
  7139. * src/FtpConnection.cc
  7140. * src/FtpConnection.h
  7141. * src/FtpNegotiationCommand.cc
  7142. * src/RequestGroup.cc
  7143. * src/TimeA2.cc
  7144. * src/TimeA2.h
  7145. * test/CookieParserTest.cc
  7146. * test/FtpConnectionTest.cc
  7147. * test/TimeTest.cc
  7148. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Added support for following envrionment variables: http_proxy,
  7150. https_proxy, ftp_proxy and all_proxy.
  7151. Each variable is equivalent to the aria2 option whose name is the
  7152. variable name with '_' replaced with '-'.
  7153. They overrides options specified in aria2.conf file.
  7154. The envrionment variables can be overrode using command-line option.
  7155. * src/option_processing.cc
  7156. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Renamed --http-proxy-method as --proxy-method.
  7158. * src/AbstractCommand.cc
  7159. * src/FtpInitiateConnectionCommand.cc
  7160. * src/HttpInitiateConnectionCommand.cc
  7161. * src/OptionHandlerFactory.cc
  7162. * src/option_processing.cc
  7163. * src/prefs.cc
  7164. * src/prefs.h
  7165. * src/usage_text.h
  7166. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7168. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7169. Above 3 options and --http-proxy option can handle proxy in URL format
  7170. like: http://user:passwd@host:port.
  7171. If a proxy requires user/password, they must be specified in a URL.
  7172. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7173. instead.
  7174. * src/AbstractCommand.cc
  7175. * src/AbstractCommand.h
  7176. * src/AbstractProxyRequestCommand.cc
  7177. * src/AbstractProxyRequestCommand.h
  7178. * src/AuthConfigFactory.cc
  7179. * src/AuthConfigFactory.h
  7180. * src/FtpFinishDownloadCommand.cc
  7181. * src/FtpInitiateConnectionCommand.cc
  7182. * src/FtpInitiateConnectionCommand.h
  7183. * src/FtpNegotiationCommand.cc
  7184. * src/FtpTunnelRequestCommand.cc
  7185. * src/FtpTunnelRequestCommand.h
  7186. * src/HttpDownloadCommand.cc
  7187. * src/HttpInitiateConnectionCommand.cc
  7188. * src/HttpInitiateConnectionCommand.h
  7189. * src/HttpProxyRequestCommand.cc
  7190. * src/HttpProxyRequestCommand.h
  7191. * src/HttpRequest.cc
  7192. * src/HttpRequest.h
  7193. * src/HttpRequestCommand.cc
  7194. * src/HttpRequestCommand.h
  7195. * src/HttpSkipResponseCommand.cc
  7196. * src/InitiateConnectionCommand.cc
  7197. * src/InitiateConnectionCommand.h
  7198. * src/OptionHandlerFactory.cc
  7199. * src/OptionHandlerImpl.h
  7200. * src/Request.cc
  7201. * src/option_processing.cc
  7202. * src/prefs.cc
  7203. * src/prefs.h
  7204. * src/usage_text.h
  7205. * test/AuthConfigFactoryTest.cc
  7206. * test/HttpRequestTest.cc
  7207. * test/OptionHandlerTest.cc
  7208. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7209. Execute choking algorithm when unchoked and interested peer is
  7210. disconected.
  7211. * src/DefaultPeerStorage.cc
  7212. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Added testcase for BtNotInterestedMessage from unchoked peer.
  7214. * test/BtNotInterestedMessageTest.cc
  7215. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Execute choking algorithm when BtInterestedMessage arrives from
  7217. unchoked peer.
  7218. * src/BtInterestedMessage.cc
  7219. * src/BtInterestedMessage.h
  7220. * src/DefaultBtMessageFactory.cc
  7221. * test/BtInterestedMessageTest.cc
  7222. * test/MockPeerStorage.h
  7223. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7224. AuthConfigFactory is now part of DownloadEngine.
  7225. * src/AbstractProxyRequestCommand.cc
  7226. * src/AuthConfigFactory.h
  7227. * src/DownloadEngine.cc
  7228. * src/DownloadEngine.h
  7229. * src/FtpConnection.cc
  7230. * src/FtpConnection.h
  7231. * src/FtpNegotiationCommand.cc
  7232. * src/HttpConnection.cc
  7233. * src/HttpRequest.cc
  7234. * src/HttpRequest.h
  7235. * src/HttpRequestCommand.cc
  7236. * src/HttpResponse.cc
  7237. * src/HttpResponseCommand.cc
  7238. * src/HttpSkipResponseCommand.cc
  7239. * src/MultiUrlRequestInfo.cc
  7240. * src/main.cc
  7241. * test/FtpConnectionTest.cc
  7242. * test/HttpRequestTest.cc
  7243. * test/HttpResponseTest.cc
  7244. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7245. Corrected catched exception type.
  7246. * src/ServerStatMan.cc
  7247. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. DNSCache is now part of DownloadEngine.
  7249. * src/DNSCache.h
  7250. * src/DownloadEngine.cc
  7251. * src/DownloadEngine.h
  7252. * src/InitiateConnectionCommand.cc
  7253. * src/MultiUrlRequestInfo.cc
  7254. * test/Makefile.am
  7255. * test/Makefile.in
  7256. * test/SimpleDNSCacheTest.cc
  7257. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7259. DownloadEngine.
  7260. * src/ActivePeerConnectionCommand.cc
  7261. * src/BtSetup.cc
  7262. * src/CUIDCounter.h
  7263. * src/DHTSetup.cc
  7264. * src/DownloadCommand.cc
  7265. * src/DownloadEngine.cc
  7266. * src/DownloadEngine.h
  7267. * src/DownloadEngineFactory.cc
  7268. * src/FileAllocationDispatcherCommand.cc
  7269. * src/InitiatorMSEHandshakeCommand.cc
  7270. * src/PeerInitiateConnectionCommand.cc
  7271. * src/PeerInteractionCommand.cc
  7272. * src/PeerListenCommand.cc
  7273. * src/RequestGroup.cc
  7274. * src/StreamFileAllocationEntry.cc
  7275. * src/TrackerWatcherCommand.cc
  7276. * src/main.cc
  7277. * test/RequestGroupManTest.cc
  7278. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Implemented commented code in BtSeederStateChoke
  7280. * src/BtSeederStateChoke.cc
  7281. * src/Peer.cc
  7282. * src/Peer.h
  7283. * src/PeerInteractionCommand.cc
  7284. * src/PeerSessionResource.cc
  7285. * src/PeerSessionResource.h
  7286. * test/MockBtMessageDispatcher.h
  7287. * test/PeerSessionResourceTest.cc
  7288. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7289. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7290. its object.
  7291. * src/AbstractBtMessage.cc
  7292. * src/ActivePeerConnectionCommand.cc
  7293. * src/ActivePeerConnectionCommand.h
  7294. * src/BtContextAwareCommand.cc
  7295. * src/BtContextAwareCommand.h
  7296. * src/BtExtendedMessage.cc
  7297. * src/BtExtendedMessage.h
  7298. * src/BtInterestedMessage.cc
  7299. * src/BtInterestedMessage.h
  7300. * src/BtNotInterestedMessage.cc
  7301. * src/BtNotInterestedMessage.h
  7302. * src/BtRegistry.cc
  7303. * src/BtRegistry.h
  7304. * src/BtSeederStateChoke.cc
  7305. * src/BtSetup.cc
  7306. * src/DHTGetPeersCommand.cc
  7307. * src/DHTGetPeersCommand.h
  7308. * src/DHTPeerAnnounceEntry.cc
  7309. * src/DHTPeerAnnounceEntry.h
  7310. * src/DHTPeerAnnounceStorage.cc
  7311. * src/DHTPeerAnnounceStorage.h
  7312. * src/DHTPeerLookupTask.cc
  7313. * src/DHTPeerLookupTask.h
  7314. * src/DHTSetup.cc
  7315. * src/DHTSetup.h
  7316. * src/DHTTaskFactory.h
  7317. * src/DHTTaskFactoryImpl.cc
  7318. * src/DHTTaskFactoryImpl.h
  7319. * src/DefaultBtAnnounce.cc
  7320. * src/DefaultBtInteractive.cc
  7321. * src/DefaultBtInteractive.h
  7322. * src/DefaultBtMessageDispatcher.cc
  7323. * src/DefaultBtMessageDispatcher.h
  7324. * src/DefaultBtMessageFactory.cc
  7325. * src/DefaultBtMessageFactory.h
  7326. * src/DefaultBtMessageReceiver.cc
  7327. * src/DefaultBtProgressInfoFile.cc
  7328. * src/DefaultBtProgressInfoFile.h
  7329. * src/DefaultBtRequestFactory.cc
  7330. * src/DefaultBtRequestFactory.h
  7331. * src/DefaultExtensionMessageFactory.cc
  7332. * src/DefaultExtensionMessageFactory.h
  7333. * src/DefaultPeerStorage.cc
  7334. * src/DefaultPeerStorage.h
  7335. * src/DownloadEngine.cc
  7336. * src/DownloadEngine.h
  7337. * src/InitiatorMSEHandshakeCommand.cc
  7338. * src/InitiatorMSEHandshakeCommand.h
  7339. * src/MSEHandshake.cc
  7340. * src/MSEHandshake.h
  7341. * src/Makefile.am
  7342. * src/Makefile.in
  7343. * src/PeerChokeCommand.cc
  7344. * src/PeerChokeCommand.h
  7345. * src/PeerInitiateConnectionCommand.cc
  7346. * src/PeerInitiateConnectionCommand.h
  7347. * src/PeerInteractionCommand.cc
  7348. * src/PeerInteractionCommand.h
  7349. * src/PeerObject.h
  7350. * src/PeerReceiveHandshakeCommand.cc
  7351. * src/PeerReceiveHandshakeCommand.h
  7352. * src/ReceiverMSEHandshakeCommand.cc
  7353. * src/RequestGroup.cc
  7354. * src/RequestGroup.h
  7355. * src/RequestGroupMan.cc
  7356. * src/RequestGroupMan.h
  7357. * src/SeedCheckCommand.cc
  7358. * src/SeedCheckCommand.h
  7359. * src/ShareRatioSeedCriteria.h
  7360. * src/SimpleBtMessage.cc
  7361. * src/TrackerWatcherCommand.cc
  7362. * src/TrackerWatcherCommand.h
  7363. * src/UTPexExtensionMessage.cc
  7364. * src/UTPexExtensionMessage.h
  7365. * test/BtCancelMessageTest.cc
  7366. * test/BtChokeMessageTest.cc
  7367. * test/BtExtendedMessageTest.cc
  7368. * test/BtInterestedMessageTest.cc
  7369. * test/BtNotInterestedMessageTest.cc
  7370. * test/BtPieceMessageTest.cc
  7371. * test/BtPortMessageTest.cc
  7372. * test/BtRegistryTest.cc
  7373. * test/BtRejectMessageTest.cc
  7374. * test/BtRequestMessageTest.cc
  7375. * test/DHTPeerAnnounceEntryTest.cc
  7376. * test/DHTPeerAnnounceStorageTest.cc
  7377. * test/DefaultBtMessageDispatcherTest.cc
  7378. * test/DefaultBtMessageFactoryTest.cc
  7379. * test/DefaultBtProgressInfoFileTest.cc
  7380. * test/DefaultBtRequestFactoryTest.cc
  7381. * test/DefaultExtensionMessageFactoryTest.cc
  7382. * test/MSEHandshakeTest.cc
  7383. * test/MockDHTTaskFactory.h
  7384. * test/ShareRatioSeedCriteriaTest.cc
  7385. * test/UTPexExtensionMessageTest.cc
  7386. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. Fixed compiler warning.
  7388. * test/UtilTest.cc
  7389. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Treat Cookie object as session cookie if expiry = 0 is given.
  7391. With this change, you can specify session scoped cookies in an external
  7392. file setting expiry value to 0.
  7393. * src/Cookie.cc
  7394. * src/Cookie.h
  7395. * test/CookieParserTest.cc
  7396. * test/CookieStorageTest.cc
  7397. * test/CookieTest.cc
  7398. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7399. Changed signature of DHTMessageFactory::createResponseMessage().
  7400. Removed unused validateIDMatch.
  7401. * src/DHTMessageFactory.h
  7402. * src/DHTMessageFactoryImpl.cc
  7403. * src/DHTMessageFactoryImpl.h
  7404. * src/DHTMessageTracker.cc
  7405. * test/DHTMessageFactoryImplTest.cc
  7406. * test/MockDHTMessageFactory.h
  7407. Dropped DHT message coming from same ID of localhost.
  7408. * src/DHTMessageReceiver.cc
  7409. Rejected adding node whose ID is the same as localhost's.
  7410. * src/DHTRoutingTable.cc
  7411. * test/BtPortMessageTest.cc
  7412. * test/DHTRoutingTableTest.cc
  7413. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Pool connection when redirection occurs with Content-Length = 0.
  7415. * src/HttpSkipResponseCommand.cc
  7416. * src/HttpSkipResponseCommand.h
  7417. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7418. Fixed the bug that causes time out when redirection occurs with
  7419. content-length 0.
  7420. * src/HttpResponseCommand.cc
  7421. * src/HttpSkipResponseCommand.cc
  7422. * src/HttpSkipResponseCommand.h
  7423. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7424. Now each status legends is shown only when it appears in Download
  7425. Result. If Download Result has no item, then status legend will not
  7426. be printed.
  7427. * src/RequestGroupMan.cc
  7428. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7429. Removed duplicate creation of OptionHandlers.
  7430. * src/option_processing.cc
  7431. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7432. Fixed the bug that causes segmentation fault when accessing files which
  7433. don't exist or are not included in --select-file option while
  7434. validating chunk checksum.
  7435. * src/MultiDiskAdaptor.cc
  7436. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Fixed compiler warning.
  7438. * test/UtilTest.cc
  7439. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7440. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7441. * src/IteratableChecksumValidator.cc
  7442. * src/IteratableChunkChecksumValidator.cc
  7443. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. * Release 0.16.2
  7445. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7446. Added Serbian translation. Updated Ukrainian translation.
  7447. Thanks to all translators.
  7448. * po/sr.po
  7449. * po/uk.po
  7450. * po/LINGUAS
  7451. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Bump up version number to 0.16.2
  7453. * configure.ac
  7454. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. Added length equality test to operator== to drop a piece message
  7456. whose length does not match to the requested one.
  7457. * src/RequestSlot.cc
  7458. * test/DefaultBtMessageDispatcherTest.cc
  7459. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7460. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7461. recieved.
  7462. In this fix, if a request larger than 16KiB length is received, aria2
  7463. disconnects the peer.
  7464. * src/BtConstants.h
  7465. * src/PeerMessageUtil.cc
  7466. * src/PeerMessageUtil.h
  7467. * test/BtRequestMessageTest.cc
  7468. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7469. * Release 0.16.1
  7470. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7471. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7472. * doc/aria2c.1.txt
  7473. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7474. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7475. Updated French, Simplified Chinese and Japanese translations.
  7476. Thanks to all translators.
  7477. en@quot and en@boldquot are also added.
  7478. * po/LINGUAS
  7479. * po/fr.po
  7480. * po/ja.po
  7481. * po/uk.po
  7482. * po/vi.po
  7483. * po/zh_CN.po
  7484. * po/zh_TW.po
  7485. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7486. Bump up version number to 0.16.1.
  7487. * configure.ac
  7488. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7489. Updated README.
  7490. * README
  7491. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7492. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7493. not to replace '--' with em dash character.
  7494. * doc/aria2c.1.txt
  7495. * doc/makeman
  7496. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7498. every SEC seconds.
  7499. * src/DownloadEngineFactory.cc
  7500. * src/OptionHandlerFactory.cc
  7501. * src/option_processing.cc
  7502. * src/usage_text.h
  7503. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Fixed compile warning on linux-amd64
  7505. * src/FtpConnection.cc
  7506. * src/IteratableChunkChecksumValidator.cc
  7507. * src/MultiDiskAdaptor.cc
  7508. Fixed the bug that unit test fails on linux-amd64
  7509. * test/UtilTest.cc
  7510. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7511. Added --dht-file-path option to change the path to dht.dat, which is a
  7512. serialized DHT routing table.
  7513. * src/OptionHandlerFactory.cc
  7514. * src/option_processing.cc
  7515. * src/usage_text.h
  7516. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. Fixed possible underflow.
  7518. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7519. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7520. Fixed the bug that last character in URI is not encoded.
  7521. * src/Request.cc
  7522. * test/RequestTest.cc
  7523. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. Fixed the bug that referer header field contains fragment.
  7525. Now Request class removes fragment part of URI and encodes it
  7526. in Request::setUri() and setReferer().
  7527. * src/Request.h
  7528. * src/Request.cc
  7529. * test/RequestTest.cc
  7530. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7531. Added missing m4 macros.
  7532. * m4/cppunit.m4
  7533. * m4/libgcrypt.m4
  7534. * m4/libgnutls-extra.m4
  7535. * m4/libgnutls.m4
  7536. * m4/libxml2.m4
  7537. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7538. Fixed compile error with gcc-4.4(snapshot)
  7539. * src/File.cc
  7540. * src/FtpConnection.cc
  7541. * src/OptionHandlerImpl.h
  7542. * src/Util.cc
  7543. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Removed assert()
  7545. * src/SocketBuffer.cc (SocketBuffer::send)
  7546. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. Changed the type of _numNewConnection to unsigned int.
  7548. * src/ActivePeerConnectionCommand.cc
  7549. * src/ActivePeerConnectionCommand.h
  7550. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. * Release 0.16.0
  7552. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7553. Updated doc
  7554. * README
  7555. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7556. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7557. translations. Thanks to all translators.
  7558. * po/bg.po
  7559. * po/de.po
  7560. * po/fr.po
  7561. * po/ja.po
  7562. * po/zh_CN.po
  7563. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7564. Bump up version number to 0.16.0.
  7565. * configure.ac
  7566. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7567. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7568. int32_t.
  7569. Changed the type of count to int32_t.
  7570. * src/Metalink2RequestGroup.cc
  7571. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Added test for Time::elapsed(time_t).
  7573. * test/TimeTest.cc
  7574. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7576. Util::difftv() should be used instead.
  7577. * src/TimeA2.cc
  7578. * src/TimeA2.h
  7579. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7580. Made socket for dht connections non-blocking
  7581. * src/DHTAbstractMessage.cc
  7582. * src/DHTAbstractMessage.h
  7583. * src/DHTConnection.h
  7584. * src/DHTConnectionImpl.cc
  7585. * src/DHTConnectionImpl.h
  7586. * src/DHTMessage.h
  7587. * src/DHTMessageDispatcherImpl.cc
  7588. * src/DHTMessageDispatcherImpl.h
  7589. * src/DHTUnknownMessage.cc
  7590. * src/DHTUnknownMessage.h
  7591. * src/SocketCore.cc
  7592. * src/SocketCore.h
  7593. * test/MockDHTMessage.h
  7594. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7595. Changed the type of offset to int.
  7596. * src/ParameterizedStringParser.cc
  7597. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7598. Made getAsInt() return int32_t
  7599. * src/Option.h
  7600. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7601. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7602. build.
  7603. * configure.ac
  7604. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7605. Use sqlite3_open if sqlite3_open_v2 is not available.
  7606. * src/Sqlite3MozCookieParser.cc
  7607. * src/Sqlite3MozCookieParser.h
  7608. * m4/sqlite3.m4
  7609. * test/Sqlite3MozCookieParserTest.cc
  7610. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7611. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7612. * src/BtPieceMessage.cc
  7613. * src/DHTPeerAnnounceStorage.cc
  7614. * src/DefaultPieceStorage.cc
  7615. * src/DownloadCommand.cc
  7616. * src/DownloadEngine.cc
  7617. * src/FtpConnection.cc
  7618. * src/PeerConnection.cc
  7619. * src/PeerMessageUtil.cc
  7620. * src/RequestGroup.cc
  7621. * src/RequestGroupMan.cc
  7622. * src/SimpleBtMessage.cc
  7623. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7625. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7626. * src/AbstractDiskWriter.cc
  7627. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7628. Don't set Request::supportsPersistentConnection() in HttpConnection
  7629. since this code is also used in AbstractProxyResponseCommand.
  7630. Moved those code to HttpResponse.
  7631. * src/HttpResponse.cc
  7632. * src/HttpResponse.h
  7633. * src/HttpConnection.cc
  7634. * src/HttpConnection.h
  7635. * src/HttpResponseCommand.cc
  7636. * test/HttpResponseTest.cc
  7637. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7638. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7639. The configuration is minimum: no torrent, no metalink, so there may be
  7640. other compile error on their code.
  7641. * src/a2netcompat.h
  7642. * src/File.cc
  7643. * src/File.h
  7644. * src/SocketCore.cc
  7645. * src/SocketCore.h
  7646. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7647. Made a socket of incoming peer non-blocking.
  7648. * src/PeerListenCommand.cc
  7649. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7651. whole message data is not sent in one send() call.
  7652. * src/BtPieceMessage.cc
  7653. * src/BtPieceMessage.h
  7654. * src/PeerConnection.cc
  7655. * src/PeerConnection.h
  7656. * src/SimpleBtMessage.cc
  7657. * src/SimpleBtMessage.h
  7658. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7659. Fixed the bug that aria2 downloads faster than max-download-limit when
  7660. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7661. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7662. , instead of sum of them.
  7663. * src/ActivePeerConnectionCommand.cc
  7664. * src/DefaultBtInteractive.cc
  7665. * src/DownloadCommand.cc
  7666. * src/PeerInteractionCommand.cc
  7667. * src/PeerReceiveHandshakeCommand.cc
  7668. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7669. Fixed the bug that HTTPS download fails.
  7670. * src/AbstractCommand.cc
  7671. * src/AbstractCommand.h
  7672. * src/DownloadCommand.cc
  7673. * src/FtpConnection.cc
  7674. * src/HttpConnection.cc
  7675. * src/HttpRequestCommand.cc
  7676. * src/HttpResponseCommand.cc
  7677. * src/HttpSkipResponseCommand.cc
  7678. * src/MSEHandshake.cc
  7679. * src/PeerConnection.cc
  7680. * src/SocketCore.cc
  7681. * src/SocketCore.h
  7682. Fixed the bug that aria2 doesn't download whole content body and cannot
  7683. reuse connection if chunked transfer encoding and gzip content encoding
  7684. are set.
  7685. * src/DownloadCommand.cc
  7686. * src/HttpSkipResponseCommand.cc
  7687. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7688. Updated man page.
  7689. * doc/aria2c.1.txt
  7690. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7691. When error occurred while aria2 was parsing an .aria2.conf file, print
  7692. the usage of the option that caused error.
  7693. * src/option_processing.cc
  7694. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7695. Fixed compile error on OptionHandlerException
  7696. * src/Makefile.am
  7697. * src/OptionHandlerException.cc
  7698. * src/OptionHandlerException.h
  7699. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. Moved message of the error to OptionHandlerException.h
  7701. * src/NameMatchOptionHandler.h
  7702. * src/OptionHandlerException.h
  7703. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. When error occurs while aria2 is parsing an command-line option, print
  7705. the usage of the option.
  7706. * src/Makefile.am
  7707. * src/NameMatchOptionHandler.h
  7708. * src/OptionHandlerException.h
  7709. * src/option_processing.cc
  7710. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Reverted previous change.
  7712. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7713. username is not in URI.
  7714. * src/HttpRequest.cc
  7715. * src/Request.cc
  7716. * test/HttpRequestTest.cc
  7717. * test/RequestTest.cc
  7718. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7719. Now colon is required for username and password in FTP URL, like:
  7720. ftp://username:password@host.
  7721. If colon is not there, aria2 don't parse it as a username. For example,
  7722. aria2 don't retrieve username from ftp://username@host.
  7723. This fix was made in order to login FTP server via non-transparent ftp
  7724. proxy.
  7725. * src/Request.cc
  7726. * test/RequestTest.cc
  7727. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Use netrc for HTTP.
  7729. Now FTP user/password is sent in Authorization header when
  7730. --ftp-via-http-proxy=get is given.
  7731. * src/AuthConfigFactory.cc
  7732. * src/HttpRequest.cc
  7733. * src/HttpRequest.h
  7734. * src/NetrcAuthResolver.cc
  7735. * src/NetrcAuthResolver.h
  7736. * src/OptionHandlerFactory.cc
  7737. * src/option_processing.cc
  7738. * src/prefs.cc
  7739. * src/prefs.h
  7740. * test/AuthConfigFactoryTest.cc
  7741. * test/HttpRequestTest.cc
  7742. * test/NetrcAuthResolverTest.cc
  7743. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7744. Issue PWD command first and get working directory and use it as a prefix
  7745. for CWD command.
  7746. * src/DownloadEngine.cc
  7747. * src/DownloadEngine.h
  7748. * src/FtpConnection.cc
  7749. * src/FtpConnection.h
  7750. * src/FtpFinishDownloadCommand.cc
  7751. * src/FtpInitiateConnectionCommand.cc
  7752. * src/FtpNegotiationCommand.cc
  7753. * src/FtpNegotiationCommand.h
  7754. * test/FtpConnectionTest.cc
  7755. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7756. Removed default user/pass for FTP user/pass, since it should not have
  7757. precedence over netrc configuration by default.
  7758. * src/OptionHandlerFactory.cc
  7759. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Added debug log for socket event.
  7761. * src/AbstractCommand.cc
  7762. * src/PeerAbstractCommand.cc
  7763. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7764. Log microseconds.
  7765. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7766. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7767. Replaced HelpItem.cc with OptionHandler.cc.
  7768. * po/POTFILES.in
  7769. Updated po files with 'make update-po'
  7770. * po/aria2c.pot
  7771. * po/*.po
  7772. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Removed possible values from the text.
  7774. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7775. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7776. Removed unused preferences:
  7777. PREF_NO_PREALLOCATION
  7778. PREF_STDOUT_LOG
  7779. PREF_TRACKER_MAX_TRIES
  7780. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7781. PREF_MIN_SEGMENT_SIZE
  7782. * src/option_processing.cc
  7783. * src/prefs.cc
  7784. * src/prefs.h
  7785. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7786. Integrated HelpItem into OptionParser to ease the workload for adding
  7787. new options. Removed default value from usage text.
  7788. * src/HelpItem.cc: Removed.
  7789. * src/HelpItem.h: Removed.
  7790. * src/HelpItemFactory.cc: Removed.
  7791. * src/HelpItemFactory.h: Removed.
  7792. * src/Makefile.am
  7793. * src/Makefile.in
  7794. * src/NameMatchOptionHandler.h
  7795. * src/OptionHandler.cc
  7796. * src/OptionHandler.h
  7797. * src/OptionHandlerFactory.cc
  7798. * src/OptionHandlerImpl.h
  7799. * src/OptionParser.cc
  7800. * src/OptionParser.h
  7801. * src/TagContainer.cc: Removed.
  7802. * src/TagContainer.h: Removed.
  7803. * src/TaggedItem.cc: Removed.
  7804. * src/TaggedItem.h: Removed.
  7805. * src/main.cc
  7806. * src/option_processing.cc
  7807. * src/usage_text.h
  7808. * src/version_usage.cc
  7809. * test/HelpItemTest.cc: Removed.
  7810. * test/Makefile.am
  7811. * test/Makefile.in
  7812. * test/OptionHandlerTest.cc
  7813. * test/OptionParserTest.cc
  7814. * test/TagContainerTest.cc: Removed.
  7815. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7816. Moved `TransferStat stat = ...' to inside the `if' clause.
  7817. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7818. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Fixed the bug that a block in a piece is requested when same block is
  7820. already requested to the same peer in end game mode.
  7821. * src/BtRequestFactory.h
  7822. * src/DefaultBtInteractive.cc
  7823. * src/DefaultBtRequestFactory.cc
  7824. * src/DefaultBtRequestFactory.h
  7825. * src/DefaultPieceStorage.cc
  7826. * src/DefaultPieceStorage.h
  7827. * src/PieceStorage.h
  7828. * src/UnknownLengthPieceStorage.cc
  7829. * src/UnknownLengthPieceStorage.h
  7830. * test/DefaultBtRequestFactoryTest.cc
  7831. * test/DefaultPieceStorageTest.cc
  7832. * test/MockBtRequestFactory.h
  7833. * test/MockPieceStorage.h
  7834. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7835. Removed _uploadLength and _downloadLength from PeerSessionResource
  7836. and use PeerStat::_sessionUploadLength and
  7837. PeerStat::_sessionDownloadLength.
  7838. * src/PeerSessionResource.cc
  7839. * src/PeerSessionResource.h
  7840. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7841. Fixed the bug that prefixLength of split bucket which doesn't include
  7842. local node ID is incremented.
  7843. * src/DHTBucket.cc
  7844. * src/DHTBucket.h
  7845. * test/DHTBucketTest.cc
  7846. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. Added cookies.sqlite to EXTRA_DIST
  7848. * test/Makefile.am
  7849. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7850. Added Turkish translation. Updated French, German, Russian and
  7851. Simplified Chinese translations. Thanks to all translators.
  7852. * po/LINGUAS
  7853. * po/de.po
  7854. * po/fr.po
  7855. * po/ru.po
  7856. * po/tr.po
  7857. * po/zh_CN.po
  7858. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Added deliminating text to the beginning of the log so that one can find
  7860. where the log starts easily.
  7861. * src/main.cc
  7862. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7864. to fix compile error when async DNS is not enabled by configuration.
  7865. * src/AbstractCommand.cc
  7866. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. If establishing conneciton to a server is failed, then mark error on
  7868. its ServerStat.
  7869. Added the cause of error to log when error event occurred.
  7870. Moved message string to message.h for translation.
  7871. * src/AbstractCommand.cc
  7872. * src/AbstractCommand.h
  7873. * src/FtpNegotiationCommand.cc
  7874. * src/HttpRequestCommand.cc
  7875. * src/PeerAbstractCommand.cc
  7876. * src/message.h
  7877. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7878. Added the function to get error message from socket.
  7879. * src/SocketCore.cc
  7880. * src/SocketCore.h
  7881. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7882. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7883. * src/RequestGroupMan.cc
  7884. * src/RequestGroupMan.h
  7885. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7886. If error event is received in epoll, then abort download immediately.
  7887. * src/AbstractCommand.cc
  7888. * src/Command.cc
  7889. * src/Command.h
  7890. * src/DownloadEngine.cc
  7891. * src/PeerAbstractCommand.cc
  7892. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7893. Added usage message for --uri-selector, --server-stat-of,
  7894. --server-stat-in, --server-stat-timeout options.
  7895. * src/HelpItemFactory.cc
  7896. * src/usage_text.h
  7897. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7898. Added upper limit of FTP response buffer. The current implementation
  7899. uses 4096bytes as a limit.
  7900. * src/FtpConnection.cc
  7901. * src/FtpConnection.h
  7902. * test/FtpConnectionTest.cc
  7903. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7904. Use non-blocking socket for TCP communication to avoid possible
  7905. blocking due to buffer full.
  7906. * src/AbstractProxyRequestCommand.cc
  7907. * src/FtpConnection.cc
  7908. * src/FtpConnection.h
  7909. * src/FtpNegotiationCommand.cc
  7910. * src/FtpNegotiationCommand.h
  7911. * src/HttpConnection.cc
  7912. * src/HttpConnection.h
  7913. * src/HttpRequestCommand.cc
  7914. * src/InitiatorMSEHandshakeCommand.cc
  7915. * src/InitiatorMSEHandshakeCommand.h
  7916. * src/MSEHandshake.cc
  7917. * src/MSEHandshake.h
  7918. * src/Makefile.am
  7919. * src/PeerConnection.cc
  7920. * src/PeerConnection.h
  7921. * src/PeerInteractionCommand.cc
  7922. * src/PeerListenCommand.cc
  7923. * src/ReceiverMSEHandshakeCommand.cc
  7924. * src/ReceiverMSEHandshakeCommand.h
  7925. * src/SocketBuffer.cc
  7926. * src/SocketBuffer.h
  7927. * src/SocketCore.cc
  7928. * src/SocketCore.h
  7929. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7930. Call setStatusRealtime() in constructor.
  7931. * src/RealtimeCommand.cc
  7932. * src/RealtimeCommand.h
  7933. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. Call Download::setNoWait(true) to execute newly created command without
  7935. a pause.
  7936. * src/AbstractCommand.cc
  7937. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7939. found' error from HTTP/FTP server NUM times without getting single
  7940. bytes of data, then force the download to fail.
  7941. Basically aria2 tris all URIs available. So if long list of URIs are
  7942. specified in Metalink, then aria2 will take a long time to fail
  7943. eventually if all URIs are outdated. This option eases this situation
  7944. to limit the number of servers to try.
  7945. * src/FtpNegotiationCommand.cc
  7946. * src/HelpItemFactory.cc
  7947. * src/HttpResponseCommand.cc
  7948. * src/OptionHandlerFactory.cc
  7949. * src/PeerStat.h
  7950. * src/RequestGroup.cc
  7951. * src/RequestGroup.h
  7952. * src/SegmentMan.cc
  7953. * src/SegmentMan.h
  7954. * src/option_processing.cc
  7955. * src/prefs.cc
  7956. * src/prefs.h
  7957. * src/usage_text.h
  7958. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7960. response even if more than one response is in it.
  7961. * src/FtpConnection.cc
  7962. * src/FtpConnection.h
  7963. * test/FtpConnectionTest.cc
  7964. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7965. Merged from stable-0.15
  7966. * m4/libcares.m4
  7967. Use pkg-config
  7968. * m4/sqlite3.m4
  7969. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Removed unnecessary if statement.
  7971. * src/DefaultPieceStorage.cc (initPieceStorage)
  7972. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7973. Added --connect-timeout option to specify connect timeout in seconds.
  7974. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7975. connecting to BitTorrent peer is not controlled by this option.
  7976. * src/AbstractProxyRequestCommand.cc
  7977. * src/FtpNegotiationCommand.cc
  7978. * src/HelpItemFactory.cc
  7979. * src/HttpRequestCommand.cc
  7980. * src/OptionHandlerFactory.cc
  7981. * src/option_processing.cc
  7982. * src/prefs.cc
  7983. * src/prefs.h
  7984. * src/usage_text.h
  7985. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7986. Added help message for -R option.
  7987. * src/HelpItemFactory.cc
  7988. * src/usage_text.h
  7989. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Added the message that the time is in local time zone.
  7991. * src/RequestGroup.cc
  7992. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Implemented the ability to get timestamp from remote FTP server using
  7994. MDTM command described in RFC3659.
  7995. * src/FtpConnection.cc
  7996. * src/FtpConnection.h
  7997. * src/FtpNegotiationCommand.cc
  7998. * src/FtpNegotiationCommand.h
  7999. * test/FtpConnectionTest.cc
  8000. * test/Makefile.am
  8001. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8002. Implemented the ability to get timestamp from remote HTTP server and
  8003. apply it to local file. To enable this feature, --remote-time option
  8004. is added. No usage text has been written yet.
  8005. If several servers returns difference timestamp, then aria2 uses latest
  8006. one.
  8007. * src/CopyDiskAdaptor.cc
  8008. * src/CopyDiskAdaptor.h
  8009. * src/DirectDiskAdaptor.cc
  8010. * src/DirectDiskAdaptor.h
  8011. * src/DiskAdaptor.h
  8012. * src/File.cc
  8013. * src/File.h
  8014. * src/HttpHeader.cc
  8015. * src/HttpHeader.h
  8016. * src/HttpResponse.cc
  8017. * src/HttpResponse.h
  8018. * src/HttpResponseCommand.cc
  8019. * src/HttpResponseCommand.h
  8020. * src/MultiDiskAdaptor.cc
  8021. * src/MultiDiskAdaptor.h
  8022. * src/OptionHandlerFactory.cc
  8023. * src/RequestGroup.cc
  8024. * src/RequestGroup.h
  8025. * src/RequestGroupMan.cc
  8026. * src/option_processing.cc
  8027. * src/prefs.cc
  8028. * src/prefs.h
  8029. * test/CopyDiskAdaptorTest.cc
  8030. * test/FileTest.cc
  8031. * test/Makefile.am
  8032. * test/Makefile.in
  8033. * test/MultiDiskAdaptorTest.cc
  8034. * test/TestUtil.cc
  8035. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8036. Fixed the bug that DiskWriterEntry is not created when its
  8037. FileEntry.isRequested() is false and it doesn't share a piece with
  8038. other FileEntries that are requested. This bug causes segmentation fault
  8039. in the end.
  8040. * src/MultiDiskAdaptor.cc
  8041. * src/MultiDiskAdaptor.h
  8042. * src/MultiFileAllocationIterator.cc
  8043. * test/MultiDiskAdaptorTest.cc
  8044. * test/MultiFileAllocationIteratorTest.cc
  8045. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8046. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8047. called if the number of file entries are greater than max open files.
  8048. * src/AbstractSingleDiskAdaptor.cc
  8049. * src/AbstractSingleDiskAdaptor.h
  8050. * src/DiskAdaptor.h
  8051. * src/MultiDiskAdaptor.cc
  8052. * src/MultiDiskAdaptor.h
  8053. * test/MultiDiskAdaptorTest.cc
  8054. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Added a constuctor that receives struct timeval.
  8056. Added operator<.
  8057. * src/TimeA2.cc
  8058. * src/TimeA2.h
  8059. * test/TimeTest.cc
  8060. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8062. * src/CookieParser.cc
  8063. * test/CookieParserTest.cc
  8064. * test/HttpResponseTest.cc
  8065. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8066. Implmented the functions to parse date.
  8067. * src/TimeA2.cc
  8068. * src/TimeA2.h
  8069. * test/TimeTest.cc
  8070. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8071. Added "Firefox3 Cookie" feature to FeatureConfig
  8072. * src/FeatureConfig.cc
  8073. * src/FeatureConfig.h
  8074. * test/FeatureConfigTest.cc
  8075. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. Bump up version number to 0.16.0b
  8077. * configure.ac
  8078. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. Use pkg-config if is is available.
  8080. * m4/openssl.m4
  8081. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8082. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8083. * src/BtAnnounce.h
  8084. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. If an error occurred with a URI, remove identical URI from remaining
  8086. URI list because it is likely that same error occurred in the end and it
  8087. is waste of time.
  8088. * src/AbstractCommand.cc
  8089. * src/RequestGroup.cc
  8090. * src/RequestGroup.h
  8091. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. Removed wrong comment.
  8093. * src/DefaultPeerStorage.cc
  8094. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8096. Added return value of getpid() to argument of srand() to achieve more
  8097. randomized value.
  8098. * src/SimpleRandomizer.cc
  8099. * src/SimpleRandomizer.h
  8100. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. Contact tracker frequently when the number of connections are 0 and
  8102. download is not finished yet.
  8103. * src/ActivePeerConnectionCommand.cc
  8104. * src/BtAnnounce.h
  8105. * src/DefaultBtAnnounce.cc
  8106. * src/DefaultBtAnnounce.h
  8107. * test/MockBtAnnounce.h
  8108. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8109. Moved threshold values to UTPexExtensionMessage.
  8110. * src/DefaultBtInteractive.cc
  8111. * src/Peer.cc
  8112. * src/Peer.h
  8113. * src/UTPexExtensionMessage.cc
  8114. * src/UTPexExtensionMessage.h
  8115. * test/UTPexExtensionMessageTest.cc
  8116. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8117. Added _incoming member to Peer class and made it true if the peer
  8118. initiated connection. Don't add those peer to UTPex message.
  8119. If extended handshake is received, assign _incoming to false.
  8120. * src/DefaultBtInteractive.cc
  8121. * src/HandshakeExtensionMessage.cc
  8122. * src/Peer.cc
  8123. * src/Peer.h
  8124. * src/PeerListenCommand.cc
  8125. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8126. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8127. Encoding Decoder. Removed size threshold for turning off on the fly
  8128. inflation because resulting file may or may not be inflated depending
  8129. on the file size and I think it is not expected by users.
  8130. This change fixes segmentation fault when Metalink file contains gzipped
  8131. file and its filesize is provided.
  8132. * src/HttpResponseCommand.cc
  8133. * src/HttpResponseCommand.h
  8134. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8135. Made Cookie immutable.
  8136. * src/Cookie.cc
  8137. * src/Cookie.h
  8138. * src/CookieParser.cc
  8139. * src/CookieParser.h
  8140. * src/CookieStorage.cc
  8141. * test/CookieParserTest.cc
  8142. * test/CookieStorageTest.cc
  8143. * test/NsCookieParserTest.cc
  8144. * test/Sqlite3MozCookieParserTest.cc
  8145. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8146. Removed CookieBox, CookieBoxFactory.
  8147. * src/CookieBox.cc
  8148. * src/CookieBox.h
  8149. * src/CookieBoxFactory.cc
  8150. * src/CookieBoxFactory.h
  8151. * src/Makefile.am
  8152. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Use CookieStorage class instead of CookieBox class.
  8154. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8155. * src/AbstractProxyRequestCommand.cc
  8156. * src/CookieStorage.cc
  8157. * src/DownloadEngine.cc
  8158. * src/DownloadEngine.h
  8159. * src/HttpConnection.cc
  8160. * src/HttpConnection.h
  8161. * src/HttpRequest.cc
  8162. * src/HttpRequest.h
  8163. * src/HttpRequestCommand.cc
  8164. * src/HttpResponse.cc
  8165. * src/HttpResponseCommand.cc
  8166. * src/HttpSkipResponseCommand.cc
  8167. * src/Makefile.am
  8168. * src/MultiUrlRequestInfo.cc
  8169. * src/Request.cc
  8170. * src/Request.h
  8171. * src/main.cc
  8172. * test/AllTest.cc
  8173. * test/CookieStorageTest.cc
  8174. * test/CookieTest.cc
  8175. * test/HttpRequestTest.cc
  8176. * test/HttpResponseTest.cc
  8177. * test/Makefile.am
  8178. * test/NsCookieParserTest.cc
  8179. * test/Sqlite3MozCookieParserTest.cc
  8180. * test/nscookietest.txt
  8181. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8182. Updated
  8183. * test/Cookies.sqlite
  8184. * test/nscookietest.txt
  8185. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Added tests for CookieStorage::load()
  8187. * test/CookieStorageTest.cc
  8188. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8189. Added CookieStorage class which is based on RFC2109 and manages cookies
  8190. more strictly than CookieBox and CookieBoxFactory class.
  8191. * src/CookieStorage.cc
  8192. * src/CookieStorage.h
  8193. * src/Cookie.cc
  8194. * src/Cookie.h
  8195. * test/CookieStorageTest.cc
  8196. * test/CookieTest.cc
  8197. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Fixed the bug that commands are created more than the number of pieces.
  8199. * src/RequestGroup.cc
  8200. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. Fixed infinite loop bug in FTP when SIZE command failed.
  8202. * src/FtpNegotiationCommand.cc
  8203. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8204. Removed DirectDiskAdaptorTest.h
  8205. * test/Makefile.am
  8206. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. Fixed chunk checksum validation cannot detect trailing garbage data.
  8208. BUG#2074141
  8209. * src/AbstractSingleDiskAdaptor.cc
  8210. * src/AbstractSingleDiskAdaptor.h
  8211. * src/CheckIntegrityEntry.cc
  8212. * src/CheckIntegrityEntry.h
  8213. * src/DiskAdaptor.h
  8214. * src/MultiDiskAdaptor.cc
  8215. * src/MultiDiskAdaptor.h
  8216. * src/RequestGroup.cc
  8217. * test/DirectDiskAdaptorTest.cc
  8218. * test/MultiDiskAdaptorTest.cc
  8219. * test/TestUtil.cc
  8220. * test/TestUtil.h
  8221. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. Bump up version number of dht.dat file to 3. In version 3 format, time
  8223. is stored in 64bit, network byte order.
  8224. New build can load old format(version 2) but it saves the file in new
  8225. format. It means once you used new build, your dht.dat becomes
  8226. incompatible with older build.
  8227. * src/DHTRoutingTableDeserializer.cc
  8228. * src/DHTRoutingTableSerializer.cc
  8229. * test/DHTRoutingTableSerializerTest.cc
  8230. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8231. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8232. * test/Makefile.am
  8233. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8234. Bump up version number of .aria2 control file to 0001.
  8235. New aria2 can still load version 0000 file but it saves the file in
  8236. version 0001 format. It means that new aria2 can resume download
  8237. started by old aria2 but the opposite is not true.
  8238. * src/DefaultBtProgressInfoFile.cc
  8239. * src/DefaultBtProgressInfoFile.h
  8240. * test/DefaultBtProgressInfoFileTest.cc
  8241. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Added ntoh64 and hton64 as inline functions.
  8243. * src/Util.cc
  8244. * test/UtilTest.cc
  8245. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8246. Added sqlite3 depenency and Firefox3 cookie support.
  8247. * README
  8248. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8249. State that firefox3 cookie is supported explicitly in the usage.
  8250. * src/usage_text.h
  8251. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Externalized message.
  8253. * src/RequestGroupMan.cc
  8254. * src/message.h
  8255. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Save temporary file first and rename to the destination on success.
  8257. Added test cases.
  8258. * src/RequestGroupMan.cc
  8259. * test/RequestGroupManTest.cc
  8260. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8261. Fixed the bug that the number of connected peer is exceeding the limit
  8262. (55 by default) in seeding mode.
  8263. Multiplied 0.8 to _maxUploadSpeedLimit.
  8264. * src/ActivePeerConnectionCommand.cc
  8265. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Clear table item.
  8267. * src/Dictionary.cc
  8268. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8269. Fixed error handling of lseek.
  8270. * src/AbstractDiskWriter.cc
  8271. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8272. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8273. style cookie file.
  8274. * src/usage_text.h
  8275. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8276. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8277. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8278. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8279. * src/Util.cc
  8280. * src/Util.h
  8281. * src/CookieParser.cc
  8282. * test/UtilTest.cc
  8283. * test/CookieParserTest.cc
  8284. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8285. Separate the implementation to load old mozilla format of cookie to
  8286. NsCookieParser class.
  8287. * src/CookieBoxFactory.cc
  8288. * src/CookieBoxFactory.h
  8289. * src/NsCookieParser.cc
  8290. * src/NsCookieParser.h
  8291. * test/NsCookieParserTest.cc
  8292. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8293. Made parse() const
  8294. * src/Sqlite3MozCookieParser.cc
  8295. * src/Sqlite3MozCookieParser.h
  8296. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. Added firefox3 cookie support based on the patch submitted by
  8298. tizianomueller.
  8299. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8300. this functionality.
  8301. * configure.ac
  8302. * m4/sqlite3.m4
  8303. * src/CookieBoxFactory.cc
  8304. * src/CookieBoxFactory.h
  8305. * src/Makefile.am
  8306. * src/Makefile.in
  8307. * src/Sqlite3MozCookieParser.cc
  8308. * src/Sqlite3MozCookieParser.h
  8309. * src/main.cc
  8310. * test/CookieBoxFactoryTest.cc
  8311. * test/Makefile.am
  8312. * test/Makefile.in
  8313. * test/Sqlite3MozCookieParserTest.cc
  8314. * test/badcookies.sqlite
  8315. * test/cookies.sqlite
  8316. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8317. Added Danish and Greek translations.
  8318. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8319. Great thanks to all translators.
  8320. * po/LINGUAS
  8321. * po/el.po
  8322. * po/da.po
  8323. * po/es.po
  8324. * po/ca.po
  8325. * po/nn.po
  8326. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Fixed man page: --follow-bittorrent should be --follow-torrent
  8328. * doc/aria2c.1.txt
  8329. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. Fixed: numCommand is less than the value specified in -C option.
  8331. * src/RequestGroup.cc
  8332. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Fixed occasional assertion failure in PieceSegment.
  8334. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8335. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8336. creation of duplicate segments and one of the segment was finished then
  8337. assertion failure was caused.
  8338. * src/SegmentMan.cc
  8339. * test/SegmentManTest.cc
  8340. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8341. Added options to load/save the server's performance/status to a file
  8342. and the timeout to drop their data.
  8343. --server-stat-of=FILE specifies the file to which performance data
  8344. is saved.
  8345. --server-stat-if=FILE specifies the file to read previously saved
  8346. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8347. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8348. TIMEOUT is specified in seconds and the default value is 24hours.
  8349. * src/MultiUrlRequestInfo.cc
  8350. * src/OptionHandlerFactory.cc
  8351. * src/RequestGroupMan.cc
  8352. * src/RequestGroupMan.h
  8353. * src/ServerStatMan.cc
  8354. * src/ServerStatMan.h
  8355. * src/option_processing.cc
  8356. * src/prefs.cc
  8357. * src/prefs.h
  8358. * test/ServerStatManTest.cc
  8359. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8360. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8361. * src/ServerStatMan.cc
  8362. * src/ServerStatMan.h
  8363. * test/ServerStatManTest.cc
  8364. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8365. Implemented ServerStatMan::load(...) function and its test case.
  8366. * src/ServerStat.cc
  8367. * src/ServerStat.h
  8368. * src/ServerStatMan.cc
  8369. * test/ServerStatManTest.cc
  8370. * test/ServerStatTest.cc
  8371. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8372. Use time_t instead of int32_t. Use int64_t where milli second is
  8373. expected.
  8374. * src/TimeA2.cc
  8375. * src/TimeA2.h
  8376. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. Implemented ServerStatMan::save(...) function and its test case.
  8378. * src/ServerStat.cc
  8379. * src/ServerStat.h
  8380. * src/ServerStatMan.cc
  8381. * src/ServerStatMan.h
  8382. * test/ServerStatManTest.cc
  8383. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8384. Now aria2 uses name attribute in Metalink as local filename in
  8385. BitTorrent downloads. BUG#2033999
  8386. * src/BtContext.h
  8387. * src/BtDependency.cc
  8388. * src/DefaultBtContext.cc
  8389. * src/DefaultBtContext.h
  8390. * src/SingleFileDownloadContext.cc
  8391. * src/SingleFileDownloadContext.h
  8392. * test/BtDependencyTest.cc
  8393. * test/DefaultBtContextTest.cc
  8394. * test/MockBtContext.h
  8395. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Added AC_C_BIGENDIAN
  8397. * src/configure.ac
  8398. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8399. Limited numCommand less than or equal to the number of piece.
  8400. * src/RequestGroup.cc
  8401. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8403. directive.
  8404. * test/DefaultPieceStorageTest.cc
  8405. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8406. Fixed memory leak in test code
  8407. * test/AnnounceListTest.cc
  8408. * test/DefaultPeerListProcessorTest.cc
  8409. * test/DefaultPeerStorageTest.cc
  8410. * test/MetaFileUtilTest.cc
  8411. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8412. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8413. * src/DefaultPieceStorage.cc
  8414. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. Initialized _directIOAllowed
  8416. * src/MultiDiskAdaptor.cc
  8417. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Fixed memory leak
  8419. * src/GZipDecoder.cc
  8420. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8421. Fixed memory leak
  8422. * src/MetalinkParserStateMachine.cc
  8423. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8424. Fixed memory leak
  8425. * src/Dictionary.cc
  8426. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Fixed memory leak
  8428. * src/IteratableChunkChecksumValidator.h
  8429. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8430. Fixed unmatched malloc/free.
  8431. * src/IteratableChunkChecksumValidator.cc
  8432. * src/IteratableChecksumValidator.cc
  8433. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8434. Removed max chunk size check. This change fixes BUG#2040169
  8435. * src/ChunkedDecoder.cc
  8436. * src/ChunkedDecoder.h
  8437. * test/ChunkedDecoderTest.cc
  8438. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8439. Implemented download speed based URI selection algorithm.
  8440. Introduced new option --uri-selector.
  8441. If --uri-selector=feedback is given, aria2 uses download speed observed
  8442. in the previous downloads and chooses fastest server in the URI list.
  8443. Currently at most 10 URIs are considered to introduce randomeness for
  8444. finding better servers. The speed is average download speed in the
  8445. downloads.
  8446. On the other hand, if --uri-selector=inorder is given, which is default,
  8447. URI is tried in order in URI list.
  8448. The usage text for the new option has not been written yet.
  8449. * src/AbstractCommand.cc
  8450. * src/DownloadCommand.cc
  8451. * src/DownloadEngine.cc
  8452. * src/DownloadEngineFactory.cc
  8453. * src/InOrderURISelector.cc
  8454. * src/InOrderURISelector.h
  8455. * src/OptionHandlerFactory.cc
  8456. * src/PeerStat.h
  8457. * src/RequestGroup.cc
  8458. * src/RequestGroup.h
  8459. * src/RequestGroupMan.cc
  8460. * src/RequestGroupMan.h
  8461. * src/SegmentMan.cc
  8462. * src/SegmentMan.h
  8463. * src/ServerStat.cc
  8464. * src/ServerStat.h
  8465. * src/ServerStatMan.cc
  8466. * src/ServerStatMan.h
  8467. * src/ServerStatURISelector.cc
  8468. * src/ServerStatURISelector.h
  8469. * src/URISelector.h
  8470. * src/option_processing.cc
  8471. * src/prefs.cc
  8472. * src/prefs.h
  8473. * test/InOrderURISelectorTest.cc
  8474. * test/RequestGroupManTest.cc
  8475. * test/ServerStatManTest.cc
  8476. * test/ServerStatURISelectorTest.cc
  8477. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. * Release 0.15.1+2
  8479. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8480. Bump up version number to 0.15.1+2
  8481. * configure.ac
  8482. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8484. * m4/aria2_arg.m4
  8485. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8486. * Release 0.15.1+1
  8487. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8488. Bump up version number to 0.15.1+1
  8489. * configure.ac
  8490. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8491. Fixed the bug that causes segmentaion fault when resuming download
  8492. using metalink without size tag. Reproducible only using HTTP URI.
  8493. * src/HttpResponseCommand.cc
  8494. * src/FtpNegotiationCommand.cc
  8495. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8496. * Release 0.15.1
  8497. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Updated Bulgarian and French translations, thanks to all translators.
  8499. * po/bg.po
  8500. * po/fr.po
  8501. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Bump up version number to 0.15.1
  8503. * configure.ac
  8504. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Avoid repeated call of gettimeofday() when calculating speed.
  8506. * src/SpeedCalc.cc
  8507. * src/SpeedCalc.h
  8508. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8509. Removed writable check when socket's send buffer is full in BitTorrent
  8510. downloads to lower CPU usage.
  8511. * src/PeerInteractionCommand.cc
  8512. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. Fixed broken gzip inflation.
  8514. Turn off segmented downloading if gzip content is smaller than or equal
  8515. to 1MiB and inflate the data on the fly, because HTTP response header
  8516. doesn't contain the length of inflated file we can't determin where
  8517. the chunk of data should be written.
  8518. On the other hand, if gzip content is larger than 1MB, then turn off
  8519. on the fly inflation, because some servers returns "content-type: gzip"
  8520. for *.tgz, *.gz files.
  8521. * src/DownloadCommand.cc
  8522. * src/HttpResponseCommand.cc
  8523. * src/HttpResponseCommand.h
  8524. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8525. Applied tizianomueller's patch to fix compile error.
  8526. * test/BitfieldManTest.cc
  8527. * test/BtRequestMessageTest.cc
  8528. * test/DefaultBtContextTest.cc
  8529. * test/DefaultDiskWriterTest.cc
  8530. * test/DefaultPieceStorageTest.cc
  8531. * test/HttpHeaderProcessorTest.cc
  8532. * test/HttpResponseTest.cc
  8533. * test/Metalink2RequestGroupTest.cc
  8534. * test/MetalinkParserControllerTest.cc
  8535. * test/MetalinkProcessorTest.cc
  8536. * test/PeerSessionResourceTest.cc
  8537. * test/UtilTest.cc
  8538. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8539. * Release 0.15.0
  8540. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8541. Reordered src files in POTFILES.in so that usage text appears first.
  8542. * po/POTFILES.in
  8543. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Bump up version number to 0.15.0
  8545. * configure.ac
  8546. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. Added Bulgarian translation.
  8548. Updated Catalan, Spanish, French and Japanese translations.
  8549. Thanks to all translators.
  8550. * po/LINGUAS
  8551. * po/bg.po
  8552. * po/ca.po
  8553. * po/es.po
  8554. * po/fr.po
  8555. * po/ja.po
  8556. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Updated feature list. Added libz for dependency section.
  8558. Added a description about unit testing using CppUnit.
  8559. * README
  8560. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. Added a test for libz. Quoted where it is necessary.
  8562. * build_test.sh
  8563. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8564. Added GZip to `Enabled Features' list.
  8565. * src/FeatureConfig.cc
  8566. * src/FeatureConfig.h
  8567. * test/FeatureConfigTest.cc
  8568. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8569. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8570. the transfer has not yet started.
  8571. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8572. * src/SegmentMan.cc
  8573. * src/SegmentMan.h
  8574. * test/SegmentManTest.cc
  8575. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8576. Cache last calculated average download/upload speed.
  8577. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8578. cached value.
  8579. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8580. * src/PeerStat.h
  8581. * src/SpeedCalc.cc
  8582. * src/SpeedCalc.h
  8583. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Call parseUrl directly.
  8585. * src/Request.cc (resetUrl)
  8586. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8587. Supported absolute/relative path in Location header field.
  8588. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8589. * src/HttpHeader.cc
  8590. * src/HttpHeader.h
  8591. * src/HttpResponse.cc
  8592. * src/HttpSkipResponseCommand.cc
  8593. * src/Request.cc
  8594. * test/HttpHeaderTest.cc
  8595. * test/HttpResponseTest.cc
  8596. * test/RequestTest.cc
  8597. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8598. Changed help text for --load-cookie option.
  8599. * doc/aria2c.1.txt
  8600. * src/usage_text.h
  8601. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8602. Regenerated test/Makefile.in to remove stale ChangeLog.
  8603. * test/Makefile.in
  8604. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Updated po files.
  8606. * po/aria2c.pot
  8607. * po/*.po
  8608. * po/*.gmo
  8609. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Bump up version number to 0.15.0b
  8611. * configure.ac
  8612. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8613. Externalize messages.
  8614. * src/RequestGroupMan.cc
  8615. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8616. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8617. Use File::exists() instead of File::isFile() to allow non-regular file
  8618. such as block special files.
  8619. * src/AbstractDiskWriter.cc
  8620. * src/MultiDiskWriter.cc
  8621. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8623. * src/gai_strerror.h
  8624. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8625. Fixed compile error. Thanks gknauf for the patch.
  8626. * src/asctime_r.c
  8627. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8628. Included asctime_r.h from a2time.h.
  8629. * src/a2time.h
  8630. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8631. Added a message "aria2 doesn't verify signature" to log message when
  8632. signature file is saved.
  8633. * src/RequestGroupMan.cc
  8634. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8635. Added the ability to save signature when download is completed if
  8636. signature is available. The filename of signature file is the path to
  8637. download file followed by ".sig". If it already exists, then signature
  8638. will not be saved.
  8639. * src/RequestGroupMan.cc
  8640. * src/Signature.cc
  8641. * test/SignatureTest.cc
  8642. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8643. Updated the descriptions for --bt-seed-unverified.
  8644. * doc/aria2c.1
  8645. * doc/aria2c.1.html
  8646. * doc/aria2c.1.txt
  8647. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8648. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8649. that this is not going to verify files using piece hashes.
  8650. * src/HelpItemFactory.cc
  8651. * src/OptionHandlerFactory.cc
  8652. * src/RequestGroup.cc
  8653. * src/option_processing.cc
  8654. * src/prefs.cc
  8655. * src/prefs.h
  8656. * src/usage_text.h
  8657. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Added the ability to retrieve signature from Metalink file.
  8659. A retrieved signature is stored in Signature class and it is held by
  8660. DownloadContext class. Note that aria2 doesn't verify signature.
  8661. * src/DownloadContext.cc
  8662. * src/DownloadContext.h
  8663. * src/Makefile.am
  8664. * src/Makefile.in
  8665. * src/Metalink2RequestGroup.cc
  8666. * src/MetalinkEntry.cc
  8667. * src/MetalinkEntry.h
  8668. * src/MetalinkParserController.cc
  8669. * src/MetalinkParserController.h
  8670. * src/MetalinkParserStateMachine.cc
  8671. * src/MetalinkParserStateMachine.h
  8672. * src/Signature.cc
  8673. * src/Signature.h
  8674. * src/SignatureMetalinkParserState.cc
  8675. * src/SignatureMetalinkParserState.h
  8676. * src/VerificationMetalinkParserState.cc
  8677. * src/VerificationMetalinkParserState.h
  8678. * test/Metalink2RequestGroupTest.cc
  8679. * test/MetalinkParserControllerTest.cc
  8680. * test/MetalinkProcessorTest.cc
  8681. * test/test.xml
  8682. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Close DiskAdaptor after renaming file.
  8684. * src/RequestGroup.cc
  8685. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8686. Corrected indentation
  8687. * src/DefaultBtProgressInfoFile.cc
  8688. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8689. Moved the calls of std::ios::exceptions() inside of try-catch block
  8690. because if an error occurred in constructor of std::fstream, then
  8691. exception is thrown immediately when std::ios::exceptions() is called
  8692. which results unhandled exception and aria2c aborts.
  8693. * src/DefaultBtProgressInfoFile.cc
  8694. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8695. Added the test for the previous change in DefaultBtContext.cc
  8696. * test/DefaultBtContextTest.cc
  8697. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8698. Fixed the bug that causes infinite loop when the number of pieces are
  8699. fewer than allowed fast set size which is 10 by default.
  8700. * src/DefaultBtContext.cc
  8701. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8702. Updated the descriptions for -j, -s. Added --bt-seed.
  8703. * doc/aria2c.1
  8704. * doc/aria2c.1.html
  8705. * doc/aria2c.1.txt
  8706. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8707. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8708. aria2 seeds previously downloaded files without validating piece hashs.
  8709. * src/HelpItemFactory.cc
  8710. * src/OptionHandlerFactory.cc
  8711. * src/RequestGroup.cc
  8712. * src/option_processing.cc
  8713. * src/prefs.cc
  8714. * src/prefs.h
  8715. * src/usage_text.h
  8716. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8717. Updated DESCRIPTION of man page.
  8718. * doc/aria2c.1
  8719. * doc/aria2c.1.html
  8720. * doc/aria2c.1.txt
  8721. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8723. Don't define `struct addrinfo' when __sun is defined.
  8724. * src/getaddrinfo.h
  8725. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8726. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8727. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8728. second argument is of type `struct _stati64'. Otherwise it is defined as
  8729. `struct stat'.
  8730. * src/AbstractDiskWriter.cc
  8731. * src/File.cc
  8732. * src/File.h
  8733. * src/a2io.h
  8734. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8735. Fixed the compile error in hurd-i386
  8736. See the original bug report:
  8737. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8738. * src/a2io.h
  8739. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8740. Code cleanup.
  8741. * src/PeerAbstractCommand.cc
  8742. * src/PeerAbstractCommand.h
  8743. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. Removed TransferEncoding.
  8745. * src/DownloadCommand.cc
  8746. * src/DownloadCommand.h
  8747. * src/HttpResponseCommand.cc
  8748. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Updated po files.
  8750. * po/aria2c.pot
  8751. * po/*.po
  8752. * po/*.gmo
  8753. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8754. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8755. * src/A2STR.cc
  8756. * src/A2STR.h
  8757. * src/ChunkedDecoder.cc
  8758. * src/ChunkedDecoder.h
  8759. * src/ChunkedEncoding.cc: Removed
  8760. * src/ChunkedEncoding.h: Removed
  8761. * src/DownloadCommand.cc
  8762. * src/DownloadCommand.h
  8763. * src/HttpDownloadCommand.cc
  8764. * src/HttpResponse.cc
  8765. * src/HttpResponse.h
  8766. * src/HttpResponseCommand.cc
  8767. * src/HttpSkipResponseCommand.cc
  8768. * src/HttpSkipResponseCommand.h
  8769. * src/Makefile.am
  8770. * src/TransferEncoding.h: Removed
  8771. * test/ChunkedDecoderTest.cc
  8772. * test/ChunkedEncodingTest.cc: Removed
  8773. * test/HttpResponseTest.cc
  8774. * test/Makefile.am
  8775. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Use append instead of insert.
  8777. * src/GZipDecoder.cc
  8778. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Updated doc
  8780. * src/Decoder.h
  8781. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. Updated usage text for -s option.
  8783. * src/usage_text.h
  8784. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8786. * src/Request.cc
  8787. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. Cleaned up configure.ac.
  8789. * configure.ac
  8790. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8791. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8792. AC_ARG_ENABLE.
  8793. * configure.ac
  8794. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8796. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8797. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8798. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8799. fly and writes decoded data to a local disk.
  8800. * README
  8801. * README.html
  8802. * configure.ac
  8803. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8804. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8805. * m4/libz.m4
  8806. * src/Decoder.h
  8807. * src/DownloadCommand.cc
  8808. * src/DownloadCommand.h
  8809. * src/Exception.h
  8810. * src/GZipDecoder.cc
  8811. * src/GZipDecoder.h
  8812. * src/HttpHeader.cc
  8813. * src/HttpHeader.h
  8814. * src/HttpRequest.cc
  8815. * src/HttpRequest.h
  8816. * src/HttpResponse.cc
  8817. * src/HttpResponse.h
  8818. * src/HttpResponseCommand.cc
  8819. * src/Makefile.am
  8820. * test/GZipDecoderTest.cc
  8821. * test/HttpRequestTest.cc
  8822. * test/HttpResponseTest.cc
  8823. * test/Makefile.am
  8824. * test/Makefile.in
  8825. * test/gzip_decode_test.gz
  8826. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Clarified usage of -j option.
  8828. * src/usage_text.h
  8829. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. Disabled getting size from the response of RETR.
  8831. If SIZE command failed, then disable resuming and segmented downloading.
  8832. * src/FtpConnection.cc
  8833. * src/FtpConnection.h
  8834. * src/FtpNegotiationCommand.cc
  8835. * src/FtpNegotiationCommand.h
  8836. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8837. Use digits to find first byte of file size, which makes the intention
  8838. of the code clearer.
  8839. * src/FtpConnection.cc
  8840. Don't call validateTotalLength() when size is 0.
  8841. * src/FtpNegotiationCommand.cc
  8842. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. Updated po files.
  8844. * po/aria2c.pot
  8845. * po/*.gmo
  8846. * po/*.po
  8847. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. Clarified usage text for --split option.
  8849. * src/usage_text.h
  8850. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8851. Bump up version number to 0.15.0dev. "dev" means "development"
  8852. version, which means I started the development of the next release!
  8853. * src/configure.ac
  8854. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8855. If FTP server returns negative response with REST raw command and
  8856. requested range is not 0, throw exception. If requested range is 0,
  8857. continue download a file from 0 byte.
  8858. * src/FtpNegotiationCommand.cc
  8859. * src/FtpNegotiationCommand.h
  8860. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Supported FTP server which don't recognize SIZE raw command.
  8862. If SIZE raw command is failed, aria2 will try to get file size
  8863. from the response of RETR raw command. If both attempts are failed,
  8864. then resuming and segmented downloading are disabled.
  8865. * src/FtpConnection.cc
  8866. * src/FtpConnection.h
  8867. * src/FtpNegotiationCommand.cc
  8868. * src/FtpNegotiationCommand.h
  8869. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. * Release 0.14.0+1
  8871. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8872. Bump up version number to 0.14.0+1
  8873. * src/configure.ac
  8874. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. Fixed the code that refers static member variable from non-static
  8876. context.
  8877. * src/DefaultPeerStorage.cc
  8878. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. * Release 0.14.0
  8880. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8881. Added build test script
  8882. * build_test.sh
  8883. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8884. Updated ja.po
  8885. * src/ja.po
  8886. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8887. Bump up version number to 0.14.0
  8888. * src/configure.ac
  8889. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8890. Updated ja.po and fr.po. Great thanks for french translators and
  8891. Sebastien WILLEMIJNS.
  8892. * po/fr.po
  8893. * po/ja.po
  8894. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8895. Added configure option to enable/disable epoll support.
  8896. * configure.ac
  8897. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. Updated man page.
  8899. * doc/aria2c.1.txt
  8900. * doc/aria2c.1
  8901. * doc/aria2c.1.html
  8902. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8903. Added missing default value '5' to the usage of --split option.
  8904. * src/HelpItemFactory.cc
  8905. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8906. Filled up pieces based on the number of missing blocks, rather than
  8907. simplay the number of piece * block length.
  8908. * src/BtRequestFactory.h
  8909. * src/DefaultBtInteractive.cc
  8910. * src/DefaultBtInteractive.h
  8911. * src/DefaultBtRequestFactory.cc
  8912. * src/DefaultBtRequestFactory.h
  8913. * src/Piece.cc
  8914. * src/Piece.h
  8915. * test/BitfieldManTest.cc
  8916. * test/DefaultBtRequestFactoryTest.cc
  8917. * test/MockBtRequestFactory.h
  8918. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. Made _epEvents a member variable.
  8920. * src/DownloadEngine.cc
  8921. * src/DownloadEngine.h
  8922. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8923. Cancel download if http redirect is bounded more than 20 times.
  8924. * src/AbstractCommand.cc
  8925. * src/HttpSkipResponseCommand.cc
  8926. * src/Request.cc
  8927. * src/Request.h
  8928. * test/RequestTest.cc
  8929. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8930. Fixed unhandled exception(removed keyword `new').
  8931. * src/SocketCore.cc (initEPOLL)
  8932. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Removed visit(const MetaEntry*)
  8934. * src/MetaEntryVisitor.h:
  8935. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8936. and made them virtual.
  8937. * src/BencodeVisitor.h
  8938. * src/BencodeVisitor.cc
  8939. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8940. Updated po files.
  8941. * po/aria2c.pot
  8942. * po/*.po
  8943. * po/*.gmo
  8944. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8945. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8946. the number of socket to watch out.
  8947. * src/PeerInteractionCommand.cc
  8948. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. When there is not enough space in disk when writing a chunk of data,
  8950. aria2 now prints the message to the console to warn user and aborts
  8951. its download. Not all downloads are canceled because some downloads
  8952. may use another disk or partition. BUG#1640332
  8953. * src/AbstractDiskWriter.cc
  8954. * src/PeerAbstractCommand.cc
  8955. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8956. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8957. setHaltRequested(true) to cancel download.
  8958. * src/PeerInteractionCommand.h
  8959. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8960. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8961. socket from int to sock_t as sockets are unsigned in Windows.
  8962. For AsyncNameResolver, DownloadEngine, I did additional modification
  8963. for the portion of the code changed according to epoll support.
  8964. I defined sock_t in a2netcompat.h to use sock_t without including
  8965. SocketCore.h.
  8966. * src/AsyncNameResolver.cc
  8967. * src/AsyncNameResolver.h
  8968. * src/DownloadEngine.cc
  8969. * src/DownloadEngine.h
  8970. * src/SocketCore.cc
  8971. * src/SocketCore.h
  8972. * src/a2netcompat.h
  8973. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8974. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8975. changes in the patch were applied.
  8976. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8977. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8978. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8979. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8981. a2io.h and common.h were modified.
  8982. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8983. MinGW.
  8984. * src/common.h: Changed off_t to 64 bit in MinGW.
  8985. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8986. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8987. only a2netcompat.h is modified.
  8988. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8989. directives.
  8990. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8991. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8992. only gai_strerror.h is modified.
  8993. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8994. winsock errors in MinGW.
  8995. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8996. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8997. follow sources are applied.
  8998. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8999. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9000. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9001. I included locale.h from Platform.cc.
  9002. * src/main.cc: Moved common setup/teardown code to Platform class.
  9003. * test/AllTest.cc: Use Platform class.
  9004. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9005. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9006. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9007. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9008. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9009. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9010. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9011. aria2-0.13.2+1-mingw-2.patch.
  9012. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9013. systems which don't have termious.h. I moved the directive inside of
  9014. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9015. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9016. anyway.
  9017. * src/asctime_r.h
  9018. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9019. I added 2nd argument to the prototype declaration.
  9020. * src/StringFormat.cc: Get rid of vasprintf.
  9021. * src/getaddrinfo.h: Fixed constants.
  9022. * configure.ac: Added the check for asctime_r function.
  9023. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9024. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9025. Added writable test for Socket when the sending message is in progress.
  9026. Usually the sending message is piece message. Without wriable check,
  9027. upload latency is dropped to more than 1sec.
  9028. * src/PeerInteractionCommand.cc
  9029. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9030. Create only requested files and files which shares a piece with
  9031. requested file in multi-torrent downloads. Directory structures are
  9032. also created in the same rule.
  9033. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9034. DiskWriterEntry as in the previous implementation.
  9035. * src/MultiDiskWriter.cc
  9036. * src/MultiFileAllocationIterator.cc
  9037. * src/MultiFileAllocationIterator.h
  9038. * test/MultiFileAllocationIteratorTest.cc
  9039. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Commented out -lprofiler
  9041. * src/Makefile.am
  9042. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9043. Bump up version number to 0.14.0b.
  9044. * src/configure.ac
  9045. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9046. Actively establish connection to peers in seeding, when peer cache
  9047. is not full and max upload speed limit is not reached.
  9048. * src/ActivePeerConnectionCommand.cc
  9049. * src/ActivePeerConnectionCommand.h
  9050. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9052. to make room more fleshy, recently found peers.
  9053. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9054. it.
  9055. * src/DefaultPeerStorage.cc
  9056. * test/DefaultPeerStorageTest.cc
  9057. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9058. Returns cached data only when the previous receiveHandshake() is called
  9059. with peek = true.
  9060. * src/PeerConnection.cc (receiveHandshake)
  9061. * src/PeerConnection.h (receiveHandshake)
  9062. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. Changed default value of -s option from 1 to 5.
  9064. Also max value of -s option is changed from 5 to 16.
  9065. * src/HelpItemFactory.cc
  9066. * src/OptionHandlerFactory.cc
  9067. * src/option_processing.cc
  9068. * src/usage_text.h
  9069. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9070. Changed -s options behavior. Now it means the number of connections
  9071. made simultaneously in each http/ftp download.
  9072. If 1 URL is specified, the behavior is the same with old implementation.
  9073. If -s N is given and more than N URLs are specified, first N URLs are
  9074. used and remaining URLs are used for backup. If less than N URLs are
  9075. specified, some of URLs are used more than once so that totally N
  9076. connections are made simultaneously.
  9077. * src/main.cc
  9078. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9079. Included missing iosfwd or ostream header.
  9080. * src/RequestGroupMan.cc
  9081. * src/TaggedItem.cc
  9082. * src/TaggedItem.h
  9083. * src/Util.cc
  9084. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9085. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9086. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9087. * src/HttpConnection.cc: Included missing sstream.
  9088. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9089. Added --bt-max-open-files option.
  9090. * src/DefaultPieceStorage.cc
  9091. * src/HelpItemFactory.cc
  9092. * src/MultiDiskAdaptor.cc
  9093. * src/MultiDiskAdaptor.h
  9094. * src/OptionHandlerFactory.cc
  9095. * src/option_processing.cc
  9096. * src/prefs.cc
  9097. * src/prefs.h
  9098. * src/usage_text.h
  9099. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Fixed the bug that aria2 aborts when a path to a directory is given
  9101. in command-line.
  9102. * src/ProtocolDetector.cc
  9103. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9104. Limited the number files opened in each BitTorrent download. The default
  9105. value is 100. The option to change this value will be added.
  9106. * src/MultiDiskAdaptor.cc
  9107. * src/MultiDiskAdaptor.h
  9108. * src/MultiFileAllocationIterator.cc
  9109. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. Fixed the bug that HTTP downloads don't start with old libraries.
  9111. * src/HttpHeaderProcessor.cc
  9112. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9113. Use empty() instead of size() > 0.
  9114. * src/HttpConnection.cc
  9115. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9116. Drop connection if the incoming peer ID is the same with localhost's
  9117. one. The previous implementation drops connection when incoming peer's
  9118. IP address is the same with localhost's one.
  9119. * src/PeerListenCommand.cc
  9120. * src/DefaultBtInteractive.cc
  9121. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9122. Returns cached data without checking whether socket is readable
  9123. if the cache is available.
  9124. * src/PeerConnection.cc (receiveHandshake)
  9125. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9126. Included stdint.h
  9127. * src/common.h
  9128. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9129. Removed duplicate HAVE_GETTIMEOFDAY
  9130. * src/Makefile.am
  9131. * src/Makefile.in
  9132. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. Use interval as a minInterval when minInterval is not supplied.
  9134. * src/DefaultBtAnnounce.cc
  9135. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9136. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9137. attempt is failed, then 2nd attempt get kicked out more quickly.
  9138. And it is now static const member of DefaultBtAnnounce.
  9139. * src/DefaultBtAnnounce.h
  9140. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9141. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9142. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9143. * src/ActivePeerConnectionCommand.cc
  9144. * src/BtConstants.h
  9145. * src/BtRuntime.h
  9146. * src/DHTGetPeersCommand.cc
  9147. * src/DefaultBtAnnounce.cc
  9148. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9149. BtRuntime::MAX_PEERS.
  9150. * src/DefaultPeerStorage.h
  9151. * src/InitiatorMSEHandshakeCommand.cc
  9152. * src/PeerInitiateConnectionCommand.cc
  9153. * src/PeerInteractionCommand.cc
  9154. * src/PeerReceiveHandshakeCommand.cc
  9155. * src/TrackerWatcherCommand.cc
  9156. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Always Connect to _numNewConnection
  9158. * src/ActivePeerConnectionCommand.cc
  9159. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9160. Made `begin' unsigned int.
  9161. * src/GrowSegment.h
  9162. * src/Piece.cc
  9163. * src/Piece.h
  9164. * src/PiecedSegment.cc
  9165. * src/PiecedSegment.h
  9166. * src/Segment.h
  9167. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9168. Calculate piece hash when data is arrived if the data is arrived in
  9169. order. This removes additional read operation for hash calculation.
  9170. If the data is arrived in out of order, the hash is calucated when the
  9171. piece is completed. This is the same behavior as the old implementation.
  9172. * src/BtPieceMessage.cc
  9173. * src/DefaultBtProgressInfoFile.cc
  9174. * src/DefaultPieceStorage.cc
  9175. * src/DownloadCommand.cc
  9176. * src/DownloadCommand.h
  9177. * src/DownloadEngine.cc
  9178. * src/GrowSegment.cc
  9179. * src/GrowSegment.h
  9180. * src/Piece.cc
  9181. * src/Piece.h
  9182. * src/PiecedSegment.cc
  9183. * src/PiecedSegment.h
  9184. * src/Segment.h
  9185. * test/PieceTest.cc
  9186. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9187. Try to keep the ordering of outgoing piece message.
  9188. * src/DefaultBtMessageDispatcher.cc
  9189. (DefaultBtMessageDispatcher::sendMessages)
  9190. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9191. Fixed busy loop when error/hup epoll events occur.
  9192. * src/AbstractCommand.cc
  9193. * src/PeerAbstractCommand.cc
  9194. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Added --bt-request-peer-speed-limit option, which was a constant
  9196. SLOW_SPEED_THRESHOLD.
  9197. * src/ActivePeerConnectionCommand.cc
  9198. * src/ActivePeerConnectionCommand.h
  9199. * src/BtConstants.h
  9200. * src/HelpItemFactory.cc
  9201. * src/OptionHandlerFactory.cc
  9202. * src/PeerReceiveHandshakeCommand.cc
  9203. * src/option_processing.cc
  9204. * src/prefs.cc
  9205. * src/prefs.h
  9206. * src/usage_text.h
  9207. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9208. Removed repeated call of getTopDirPath(). Instead, call it once and
  9209. cache the result.
  9210. * src/MultiDiskAdaptor.cc
  9211. * src/MultiDiskAdaptor.h
  9212. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9213. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9214. Fixed compile error on debian etch.
  9215. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9216. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9217. it is undefined.
  9218. * src/Util.cc (ULLONG_MAX)
  9219. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Added epoll support. Use epoll if it is available. If not, use select.
  9221. When async dns is enabled in compile time, epoll support is enabled
  9222. only when aria2 is built with c-ares. This condition statement is
  9223. defined in a2io.h.
  9224. Currently aria2 supports both c-ares and ares, but ares is maintained
  9225. for quite a while and debian already has c-ares package, ares support
  9226. will be dropped in the future version.
  9227. * configure.ac
  9228. * src/AbstractCommand.cc
  9229. * src/AsyncNameResolver.cc
  9230. * src/AsyncNameResolver.h
  9231. * src/Command.cc
  9232. * src/Command.h
  9233. * src/DownloadEngine.cc
  9234. * src/DownloadEngine.h
  9235. * src/PeerAbstractCommand.cc
  9236. * src/SocketCore.cc
  9237. * src/SocketCore.h
  9238. * src/a2io.h
  9239. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9240. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9241. directive.
  9242. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9243. Do not do write operation to /dev/null file.
  9244. * src/LogFactory.cc
  9245. * src/SimpleLogger.cc
  9246. Replaced vasprintf with vsnprintf
  9247. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9248. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9249. * src/BtRequestMessage.cc
  9250. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9251. for segmentation fault caused by previous commit.
  9252. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9253. Reduced the usage of gettimeofday().
  9254. * src/DefaultBtMessageDispatcher.cc
  9255. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9256. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9257. * src/RequestSlot.cc
  9258. * src/RequestSlot.h
  9259. (RequestSlot::isTimeout)
  9260. Made RequestSlot have a reference to Piece object to avoid find
  9261. Piece repeatedly.
  9262. * src/DefaultBtMessageDispatcher.cc
  9263. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9264. * src/RequestSlot.cc
  9265. * src/RequestSlot.h
  9266. (RequestSlot::getPiece)
  9267. * test/DefaultBtMessageDispatcherTest.cc
  9268. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9269. * src/TimeA2.cc
  9270. * src/TimeA2.h
  9271. (Time::difference): New function.
  9272. (Time::elapsed): Done optimization.
  9273. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9274. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9275. directive.
  9276. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9277. * src/option_processing.cc: Added missing `defined' keyword to #if
  9278. directive.
  9279. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9280. Bump up version number to 0.13.2+1
  9281. * src/configure.ac
  9282. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9283. Refactored broken outstanding piece handling.
  9284. * src/DefaultPieceStorage.cc
  9285. * src/DefaultPieceStorage.h
  9286. * src/Piece.cc
  9287. * src/Piece.h
  9288. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9289. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9290. name collision of static variable and predefined macro.
  9291. * src/BtContext.cc
  9292. * src/BtContext.h
  9293. * src/CookieBoxFactory.cc
  9294. * src/CookieBoxFactory.h
  9295. * src/CookieParser.cc
  9296. * src/CookieParser.h
  9297. * src/DefaultBtContext.cc
  9298. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. * src/RequestGroup.cc
  9300. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9301. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9302. * Release 0.13.2
  9303. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9305. * po/fr.po
  9306. * po/ja.po
  9307. * po/aria2c.pot
  9308. * po/*.po
  9309. * po/*.gmo
  9310. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9311. Bump up version number to 0.13.2
  9312. * src/configure.ac
  9313. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. Refactord.
  9315. * src/RequestGroupMan.cc
  9316. (removeStoppedGroup)
  9317. (fillRequestGroupFromReserver)
  9318. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9319. Fixed compile error on Ubuntu.
  9320. * src/BtPieceMessage.cc
  9321. * src/MessageDigestHelper.cc
  9322. * src/Util.cc
  9323. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9324. Fixed compile error when configured with --disable-bittorrent
  9325. * test/DownloadHandlerFactoryTest.cc
  9326. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. Done make update-po
  9328. * po/aria2c.pot
  9329. * po/*.po
  9330. * po/*.gmo
  9331. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Bump up version number to 0.13.2rc.
  9333. * src/configure.ac
  9334. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. Made option name bold. Updated SYNOPSIS to make it more readable.
  9336. * doc/aria2c.1.txt
  9337. * doc/aria2c.1
  9338. * doc/aria2c.1.html
  9339. * src/version_usage.cc
  9340. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. Refactored. Use std::string instead of size and char*.
  9342. * Data.cc
  9343. * Data.h
  9344. * test/Data.cc
  9345. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9346. Added trimSelf(). Rewritten trim() to use trimSelf().
  9347. * Util.cc
  9348. * Util.h
  9349. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9350. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9351. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9352. Fixed compile error when configured with --disable-metalink.
  9353. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9354. * test/FeatureConfigTest.cc
  9355. * test/DownloadHandlerFactoryTest.cc
  9356. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9357. Fixed compile error when configured with --without-gnutls
  9358. --without-openssl
  9359. * src/main.cc
  9360. * test/DefaultBtProgressInfoFileTest.cc
  9361. * test/SegmentManTest.cc
  9362. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9363. Fixed compile error with OpenSSL.
  9364. * src/IteratableChunkChecksumValidator.cc
  9365. * src/LibsslDHKeyExchange.h
  9366. * src/MessageDigestHelper.cc
  9367. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9368. Revert the default value of --max-concurrent-downloads to 5.
  9369. Revert the default value of --metalink-servers to 5.
  9370. Man pages was also updated.
  9371. * src/option_processing.cc
  9372. * doc/aria2c.1.txt
  9373. * doc/aria2c.1.html
  9374. * doc/aria2c.1
  9375. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. Returns const reference:
  9377. DownloadContext::getPieceHash, DownloadContext::getName,
  9378. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9379. BtContext::getInfoHashAsString,
  9380. * src/BtContext.h
  9381. * src/DefaultBtContext.cc
  9382. * src/DefaultBtContext.h
  9383. * src/DownloadContext.h
  9384. * src/SingleFileDownloadContext.h
  9385. * test/MockBtContext.h
  9386. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. * src/RequestGroup.h (getDir): Removed.
  9388. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9389. Returns const reference. The internal urlencode function was optimized
  9390. a little bit.
  9391. * src/Request.cc
  9392. * src/Request.h
  9393. * src/HttpRequest.cc
  9394. * src/HttpRequest.h
  9395. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Defined option name and possible values as std::string to reduce
  9397. temporary string object creation in runtime.
  9398. * src/HelpItemFactory.cc
  9399. * src/LogFactory.cc
  9400. * src/Option.cc
  9401. * src/OptionHandlerFactory.cc
  9402. * src/option_processing.cc
  9403. * src/prefs.cc
  9404. * src/prefs.h
  9405. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9406. Return const reference.
  9407. * src/DownloadHandlerConstants.cc
  9408. * src/DownloadHandlerConstants.h
  9409. (getMetalinkExtensions)
  9410. (getMetalinkContentTypes)
  9411. (getBtExtensions)
  9412. (getBtContentTypes)
  9413. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9414. * src/HttpHeader.cc (get): Rewritten.
  9415. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9416. Make HttpHeader::getFirst(...) return const reference.
  9417. * src/HttpHeader.cc
  9418. * src/HttpHeader.h
  9419. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9420. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9421. it with V_TRUE.
  9422. * src/DefaultPieceStorage.cc
  9423. * src/DownloadCommand.cc
  9424. * src/FtpNegotiationCommand.cc
  9425. * src/HttpRequest.cc
  9426. * src/InitiateConnectionCommand.cc
  9427. * src/RequestGroup.cc
  9428. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9429. Made Option::get(...) return const reference of std::string.
  9430. * src/Option.cc
  9431. * src/Option.h
  9432. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. Replaced std:copy with insert.
  9434. * src/DefaultBtMessageDispatcher.cc
  9435. * src/DefaultPieceStorage.cc
  9436. * src/DownloadEngineFactory.cc
  9437. * src/RequestGroup.cc
  9438. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9439. Included SocketCore.h to fix compiler warning.
  9440. * src/InitiateConnectionCommand.cc
  9441. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9442. Put piece selection strategy algorithm to RarestPieceSelector class,
  9443. Added a switch to choose whether randomized selection so that unit
  9444. tests emit same results in, possibly, win32.
  9445. * src/DefaultPieceStorage.cc
  9446. * src/DefaultPieceStorage.h
  9447. * src/RarestPieceSelector.cc
  9448. * src/RarestPieceSelector.h
  9449. * test/DefaultPieceStorageTest.cc
  9450. * test/RarestPieceSelectorTest.cc
  9451. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9452. Don't pool connection if HTTP proxy is enabled.
  9453. * src/FtpFinishDownloadCommand.cc
  9454. * src/FtpNegotiationCommand.cc
  9455. * src/HttpSkipResponseCommand.cc
  9456. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9458. * src/AbstractCommand.cc
  9459. * src/AbstractCommand.h
  9460. * src/ActivePeerConnectionCommand.cc
  9461. * src/FtpInitiateConnectionCommand.cc
  9462. * src/HttpInitiateConnectionCommand.cc
  9463. * src/InitiateConnectionCommandFactory.cc
  9464. * src/PeerAbstractCommand.cc
  9465. * src/PeerAbstractCommand.h
  9466. * src/PeerInitiateConnectionCommand.cc
  9467. * src/TrackerWatcherCommand.cc
  9468. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9469. Sort RequestSlot in ascending order and manipulate them using
  9470. lower_bound.
  9471. * src/DefaultBtMessageDispatcher.cc
  9472. * src/DefaultBtMessageDispatcher.h
  9473. (getMessageQueue): Added const qualifier.
  9474. (getRequestSlots): Added const qualifier.
  9475. (sendMessages): Use empty() instead of size().
  9476. (doCancelSendingPieceAction): Use HandleEvent object.
  9477. (doAbortOutstandingRequestAction): Rewritten.
  9478. (doChokedAction): Rewritten.
  9479. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9480. (isOutstandingRequest): Rewritten.
  9481. (getOutstandingRequest): Rewritten.
  9482. (removeOutstandingRequest): Rewritten.
  9483. (addOutstandingRequest): Rewritten.
  9484. * src/RequestSlot.cc
  9485. * src/RequestSlot.h
  9486. (operator=): Rewritten.
  9487. (operator!=): New function.
  9488. (operator<): New function.
  9489. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9490. * src/DefaultBtRequestFactory.cc
  9491. (doChokedAction): Rewritten.
  9492. (removeCompletedPiece): Rewritten.
  9493. (removeTargetPiece): Rewritten.
  9494. (createRequestMessages): Added the debug log.
  9495. (createRequestMessagesOnEndGame: Added the debug log.
  9496. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9497. Added the debug log message.
  9498. * src/BtPieceMessage.cc (doReceivedAction)
  9499. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9500. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9501. used lower_bound to process them rather than linear search.
  9502. * src/DHTPeerAnnounceStorage.cc
  9503. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9505. peer has at least one completed piece.
  9506. * src/Peer.cc
  9507. * src/Peer.h
  9508. * src/PeerInteractionCommand.cc
  9509. * src/PeerSessionResource.cc
  9510. * src/PeerSessionResource.h
  9511. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Removed unnecessary sorting
  9513. * src/DefaultPieceStorage (DefaultPieceStorage)
  9514. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Rewritten the portion of the code that mangaes allowed fast indexes.
  9516. * src/PeerSessionResource.cc
  9517. * src/PeerSessionResource.h
  9518. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9519. Removed the invalid string including '\r' from ru.po and
  9520. did make update-po.
  9521. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9522. Added --log-level and --summary-interval to man page.
  9523. * doc/aria2c.1.txt
  9524. * doc/aria2c.1.html
  9525. * doc/aria2c.1
  9526. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9527. Added --log-level option to specify log level. Log messages under
  9528. the specified level are not output. Default value is `debug'.
  9529. * src/HelpItemFactory.cc
  9530. * src/LogFactory.cc
  9531. * src/LogFactory.h
  9532. * src/Logger.h
  9533. * src/OptionHandlerFactory.cc
  9534. * src/SimpleLogger.cc
  9535. * src/SimpleLogger.h
  9536. * src/main.cc
  9537. * src/option_processing.cc
  9538. * src/prefs.h
  9539. * src/usage_text.h
  9540. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. Print download progress summary of all parallel downloads in specified
  9542. interval, default 60 secs. While aria2 could download several files
  9543. in parallel (see -j option), it displayed just first download progress,
  9544. and the other downloads are hidden from the users. This new feature
  9545. prints all downloads currently in-progress to the console so that you
  9546. can check the status of all downloads. The interval can be adjusted
  9547. by --summary-interval option.
  9548. The progress readout is now cut so that all fits in the one line of
  9549. console.
  9550. * src/ConsoleStatCalc.cc
  9551. * src/ConsoleStatCalc.h
  9552. * src/HelpItemFactory.cc
  9553. * src/OptionHandlerFactory.cc
  9554. * src/RequestGroupMan.cc
  9555. * src/RequestGroupMan.h
  9556. * src/main.cc
  9557. * src/option_processing.cc
  9558. * src/prefs.h
  9559. * src/usage_text.h
  9560. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9561. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9562. * src/DownloadEngine.cc (DownloadEngine)
  9563. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9564. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9565. defined.
  9566. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9567. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9568. Use erase+lower_bound+insert instead of sort.
  9569. * src/DefaultPieceStorage.cc (addPieceStats)
  9570. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9571. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9572. * src/A2STR.cc
  9573. * src/A2STR.h
  9574. * src/OptionParser.cc (parse)
  9575. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Defined fake filename `[tracker.announce]' as static const std::string.
  9577. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9578. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9579. Defined default filename `index.html' as static const std::string
  9580. * src/SingleFileDownloadContext.cc
  9581. * src/SingleFileDownloadContext.h
  9582. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Defined "[MEMORY]" as static const std::string.
  9584. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9585. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. Defined control file's version number as static const std::string.
  9587. * src/DefaultBtProgressInfoFile.cc
  9588. * src/DefaultBtProgressInfoFile.h
  9589. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9590. Use Request::METHOD_GET
  9591. * src/RequestGroup.cc (createNextCommandWithAdj)
  9592. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9593. Defined "OK", "ERR", "INPR" as static const std::string
  9594. * src/RequestGroupMan.cc (showDownloadResults)
  9595. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Defined default client used in extended handshake as static const
  9597. std::string
  9598. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9599. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9600. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9601. * src/HttpConnection.cc (eraseConfidentialInfo)
  9602. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9603. Defined default ftp user and password as static const std::string
  9604. * src/AuthConfigFactory.cc
  9605. * src/AuthConfigFactory.h
  9606. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Defined strings used in netrc as static const std::string
  9608. * src/Netrc.cc
  9609. * src/Netrc.h
  9610. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9611. Defined HTTP status as static const std::string
  9612. * src/AbstractProxyResponseCommand.cc
  9613. * src/HttpHeader.cc
  9614. * src/HttpHeader.h
  9615. * src/HttpResponse.cc
  9616. * src/HttpResponseCommand.cc
  9617. * src/HttpSkipResponseCommand.cc
  9618. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9619. Defined "\r\n", "A", "I" as static const std::string
  9620. * src/A2STR.cc
  9621. * src/A2STR.h
  9622. * src/FtpConnection.cc
  9623. * src/FtpConnection.h
  9624. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9625. Added COLON_C(".") and used it in Request::parseUrl()
  9626. * src/A2STR.cc
  9627. * src/A2STR.h
  9628. * src/Request.cc (parseUrl)
  9629. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9630. Changed the type of padName from `const std::string&' to `const char*'.
  9631. * src/MSEHandshake.cc (verifyPadLength)
  9632. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9633. Defined "sha1" as static const std::string.
  9634. * src/MetalinkParserController.cc
  9635. * src/MetalinkParserController.h
  9636. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9637. Defined message digest algorithm name as static const std::string
  9638. * src/DHTTokenTracker.cc
  9639. * src/DHTUtil.cc
  9640. * src/DefaultBtContext.cc
  9641. * src/MSEHandshake.cc
  9642. * src/MessageDigestHelper.cc
  9643. * src/Peer.cc
  9644. * src/messageDigest.cc
  9645. * src/messageDigest.h
  9646. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9647. Made string literals used in SAX parser static const std::string.
  9648. * src/FileMetalinkParserState.cc
  9649. * src/FileMetalinkParserState.h
  9650. * src/FilesMetalinkParserState.cc
  9651. * src/FilesMetalinkParserState.h
  9652. * src/InitialMetalinkParserState.cc
  9653. * src/InitialMetalinkParserState.h
  9654. * src/MetalinkMetalinkParserState.cc
  9655. * src/MetalinkMetalinkParserState.h
  9656. * src/PiecesMetalinkParserState.cc
  9657. * src/PiecesMetalinkParserState.h
  9658. * src/ResourcesMetalinkParserState.cc
  9659. * src/ResourcesMetalinkParserState.h
  9660. * src/VerificationMetalinkParserState.cc
  9661. * src/VerificationMetalinkParserState.h
  9662. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9664. * src/A2STR.cc
  9665. * src/A2STR.h
  9666. * src/File.cc
  9667. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9668. Defined static const std::string IP("ip"), PORT("port") and use them
  9669. instead of string literals.
  9670. * src/DefaultPeerListProcessor.cc
  9671. * src/DefaultPeerListProcessor.h
  9672. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9673. Made string literals for torrent file processing static const
  9674. std::string.
  9675. * src/BtContext.cc
  9676. * src/BtContext.h
  9677. * src/DefaultBtContext.cc
  9678. * src/DefaultBtContext.h
  9679. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9680. Made string literal for tracker response static const std::string
  9681. * src/BtAnnounce.cc
  9682. * src/BtAnnounce.h
  9683. * src/DefaultBtAnnounce.cc
  9684. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9685. Use DHTMessage::T instead of "t".
  9686. * src/DHTMessageTracker.cc (messageArrived)
  9687. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9688. Made keyName static const. Made trimmed charset static const
  9689. std::string.
  9690. * src/Util.cc (getContentDispositionFilename)
  9691. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9692. Made USER_AGENT const. Made "/" static const std::string.
  9693. * src/A2STR.cc
  9694. * src/A2STR.h
  9695. * src/HttpRequest.cc
  9696. * src/HttpRequest.h
  9697. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9698. Made string listeral to static const std::string:
  9699. "Content-Range", "Content-Length"
  9700. * src/HttpHeader.cc
  9701. * src/HttpHeader.h
  9702. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9703. Made string listeral to static const std::string.
  9704. * src/HttpConnection.cc
  9705. * src/HttpHeader.cc
  9706. * src/HttpHeader.h
  9707. * src/HttpResponse.cc
  9708. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9709. Made string listeral to static const std::string.
  9710. * src/A2STR.cc
  9711. * src/A2STR.h
  9712. * src/SimpleLogger.cc
  9713. * src/SimpleLogger.h
  9714. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9715. Made string literal to static const std::string.
  9716. Rewritten CookieParser::setField.
  9717. * src/A2STR.cc
  9718. * src/A2STR.h
  9719. * src/CookieBoxFactory.cc
  9720. * src/CookieBoxFactory.h
  9721. * src/CookieParser.cc
  9722. * src/CookieParser.h
  9723. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9724. Made string literal to static const std::string
  9725. * src/DHTAbstractMessage.cc
  9726. * src/DHTAnnouncePeerMessage.cc
  9727. * src/DHTAnnouncePeerMessage.h
  9728. * src/DHTAnnouncePeerReplyMessage.cc
  9729. * src/DHTAnnouncePeerReplyMessage.h
  9730. * src/DHTFindNodeMessage.cc
  9731. * src/DHTFindNodeMessage.h
  9732. * src/DHTFindNodeReplyMessage.cc
  9733. * src/DHTFindNodeReplyMessage.h
  9734. * src/DHTGetPeersMessage.cc
  9735. * src/DHTGetPeersMessage.h
  9736. * src/DHTGetPeersReplyMessage.cc
  9737. * src/DHTGetPeersReplyMessage.h
  9738. * src/DHTMessage.cc
  9739. * src/DHTMessage.h
  9740. * src/DHTMessageFactoryImpl.cc
  9741. * src/DHTMessageReceiver.cc
  9742. * src/DHTPingMessage.cc
  9743. * src/DHTPingMessage.h
  9744. * src/DHTPingReplyMessage.cc
  9745. * src/DHTPingReplyMessage.h
  9746. * src/DHTQueryMessage.cc
  9747. * src/DHTQueryMessage.h
  9748. * src/DHTResponseMessage.cc
  9749. * src/DHTResponseMessage.h
  9750. * src/DHTUnknownMessage.cc
  9751. * src/DHTUnknownMessage.h
  9752. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9753. Made string literal to static const std::string
  9754. * src/BtChokeMessage.cc (toString)
  9755. * src/BtHaveAllMessage.cc (toString)
  9756. * src/BtHaveNoneMessage.cc (toString)
  9757. * src/BtInterestedMessage.cc (toString)
  9758. * src/BtNotInterestedMessage.cc (toString)
  9759. * src/BtUnchokeMessage.cc (toString)
  9760. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9761. Replaced "" with static const variable A2STR::NIL.
  9762. Replaced string comparison against "" with std::string::empty().
  9763. Added PROTO_* to Request class and use them as a protocol string
  9764. constant.
  9765. Made "started", "stopped", "completed" static const variable in
  9766. AnnounceList class.
  9767. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9768. Updated translations. Great thanks to translators.
  9769. * po/ca.po
  9770. * po/de.po
  9771. * po/fr.po
  9772. * po/it.po
  9773. * po/ja.po
  9774. * po/ru.po
  9775. * po/zh_CN.po
  9776. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9777. Updated man page; categorized options and fixed typo.
  9778. * doc/aria2c.1.txt
  9779. * doc/aria2c.1.html
  9780. * doc/aria2c.1
  9781. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9782. Removed const ref
  9783. * src/MetalinkEntry.cc (AddProtocolPreference)
  9784. * src/RequestGroup.cc (FindServerHostByHostname)
  9785. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9786. Rewritten Accept-Features handling.
  9787. * src/HttpRequestCommand.cc (createHttpRequest)
  9788. * src/a2functional.h
  9789. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. Changed method signature:
  9791. DHTAbstractNodeLookupTask::toEntries
  9792. * src/DHTAbstractNodeLookupTask.cc
  9793. * src/DHTAbstractNodeLookupTask.h
  9794. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9795. Changed method signature:
  9796. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9797. * src/BtContext.h
  9798. * src/DefaultBtContext.cc
  9799. * src/DefaultBtContext.h
  9800. * src/DefaultBtInteractive.cc
  9801. * test/DefaultBtContextTest.cc
  9802. * test/MockBtContext.h
  9803. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9804. Changed method signature:
  9805. MultiFileAllocationIterator::makeDiskWriterEntries
  9806. * src/MultiFileAllocationIterator.cc
  9807. * src/MultiFileAllocationIterator.h
  9808. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9809. Changed method sinature:
  9810. MetalinkEntry::toFileEntry,
  9811. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9812. Metalinker::queryEntry
  9813. * src/Metalink2RequestGroup.cc
  9814. * src/MetalinkEntry.cc
  9815. * src/MetalinkEntry.h
  9816. * src/MetalinkHelper.cc
  9817. * src/MetalinkHelper.h
  9818. * src/Metalinker.cc
  9819. * src/Metalinker.h
  9820. * src/main.cc
  9821. * test/MetalinkHelperTest.cc
  9822. * test/MetalinkerTest.cc
  9823. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9824. Changed method sinature:
  9825. RequestGroup::getURIs
  9826. * src/RequestGroup.cc
  9827. * src/RequestGroup.h
  9828. * test/Metalink2RequestGroupTest.cc
  9829. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9830. Changed method signature:
  9831. PeerListProcessor::extractPeer
  9832. * src/CompactPeerListProcessor.cc
  9833. * src/CompactPeerListProcessor.h
  9834. * src/DefaultBtAnnounce.cc
  9835. * src/DefaultPeerListProcessor.cc
  9836. * src/DefaultPeerListProcessor.h
  9837. * src/DelegatingPeerListProcessor.cc
  9838. * src/DelegatingPeerListProcessor.h
  9839. * src/PeerListProcessor.h
  9840. * src/UTPexExtensionMessage.cc
  9841. * test/DefaultPeerListProcessorTest.cc
  9842. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9843. Changed method signature:
  9844. BtRequestFactory::createRequestMessages,
  9845. BtRequestFactory::createRequestMessagesOnEndGame
  9846. * src/BtRequestFactory.h
  9847. * src/DefaultBtInteractive.cc
  9848. * src/DefaultBtRequestFactory.cc
  9849. * src/DefaultBtRequestFactory.h
  9850. * test/DefaultBtRequestFactoryTest.cc
  9851. * test/MockBtRequestFactory.h
  9852. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9853. Changed method signature:
  9854. PieceStorage::getInFlightPieces
  9855. * src/DefaultBtProgressInfoFile.cc
  9856. * src/DefaultPieceStorage.cc
  9857. * src/DefaultPieceStorage.h
  9858. * src/PieceStorage.h
  9859. * src/UnknownLengthPieceStorage.cc
  9860. * src/UnknownLengthPieceStorage.h
  9861. * test/DefaultBtProgressInfoFileTest.cc
  9862. * test/MockPieceStorage.h
  9863. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9864. Changed method signature:
  9865. PostDownloadHandler::getNextRequestGroups
  9866. Metalink2RequestGroup::generate
  9867. RequestGroup::postDownloadProcessing
  9868. * src/BtPostDownloadHandler.cc
  9869. * src/BtPostDownloadHandler.h
  9870. * src/Metalink2RequestGroup.cc
  9871. * src/Metalink2RequestGroup.h
  9872. * src/MetalinkPostDownloadHandler.cc
  9873. * src/MetalinkPostDownloadHandler.h
  9874. * src/PostDownloadHandler.h
  9875. * src/RequestGroup.cc
  9876. * src/RequestGroup.h
  9877. * src/RequestGroupMan.cc
  9878. * src/main.cc
  9879. * test/BtPostDownloadHandlerTest.cc
  9880. * test/Metalink2RequestGroupTest.cc
  9881. * test/MetalinkPostDownloadHandlerTest.cc
  9882. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9883. Rewritten AccRequestGroup
  9884. * src/main.cc
  9885. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9886. Rewritten.
  9887. * src/TaggedItem.cc (toTagString)
  9888. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Rewritten Accept-Features handling.
  9890. * src/HttpRequestCommand.cc (createHttpRequest)
  9891. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. Rewritten accept types handling.
  9893. * HttpRequest.cc (createRequest)
  9894. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. Rewritten
  9896. * src/FeatureConfig.cc (featureSummary)
  9897. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9898. Changed method signature:
  9899. PeerStorage::getActivePeers
  9900. * src/DHTPeerAnnounceEntry.cc
  9901. * src/DefaultPeerStorage.cc
  9902. * src/DefaultPeerStorage.h
  9903. * src/PeerStorage.h
  9904. * test/DefaultPeerStorageTest.cc
  9905. * test/MockPeerStorage.h
  9906. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9907. Changed method signature:
  9908. DHTPeerAnnounceStorage::getPeers,
  9909. DHTPeerAnnounceEntry::getPeers
  9910. * src/DHTGetPeersMessage.cc
  9911. * src/DHTPeerAnnounceEntry.cc
  9912. * src/DHTPeerAnnounceEntry.h
  9913. * src/DHTPeerAnnounceStorage.cc
  9914. * src/DHTPeerAnnounceStorage.h
  9915. * test/DHTAnnouncePeerMessageTest.cc
  9916. * test/DHTPeerAnnounceEntryTest.cc
  9917. * test/DHTPeerAnnounceStorageTest.cc
  9918. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9919. Changed method signature:
  9920. NameResolver::resolve
  9921. * src/DHTEntryPointNameResolveCommand.cc
  9922. * src/InitiateConnectionCommand.cc
  9923. * src/NameResolver.cc
  9924. * src/NameResolver.h
  9925. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9926. Changed method signature:
  9927. PieceStorage::getAdvertisedPieceIndexes
  9928. * src/DefaultBtInteractive.cc
  9929. * src/DefaultPieceStorage.cc
  9930. * src/DefaultPieceStorage.h
  9931. * src/PieceStorage.h
  9932. * src/UnknownLengthPieceStorage.h
  9933. * test/MockPieceStorage.h
  9934. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9935. Changed method signature:
  9936. SegmentMan::getInFlightSegment
  9937. * src/AbstractCommand.cc
  9938. * src/SegmentMan.cc
  9939. * src/SegmentMan.h
  9940. * test/SegmentManTest.cc
  9941. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9942. Changed method signature:
  9943. DHTAbstractNodeLookupTask::getNodesFromMessage
  9944. * src/DHTAbstractNodeLookupTask.cc
  9945. * src/DHTAbstractNodeLookupTask.h
  9946. * src/DHTNodeLookupTask.cc
  9947. * src/DHTNodeLookupTask.h
  9948. * src/DHTPeerLookupTask.cc
  9949. * src/DHTPeerLookupTask.h
  9950. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9951. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9952. * src/AbstractCommand.cc
  9953. * src/BtCheckIntegrityEntry.cc
  9954. * src/BtCheckIntegrityEntry.h
  9955. * src/BtFileAllocationEntry.cc
  9956. * src/BtFileAllocationEntry.h
  9957. * src/BtSetup.cc
  9958. * src/BtSetup.h
  9959. * src/CheckIntegrityCommand.cc
  9960. * src/CheckIntegrityEntry.h
  9961. * src/ChecksumCheckIntegrityEntry.cc
  9962. * src/ChecksumCheckIntegrityEntry.h
  9963. * src/DHTSetup.cc
  9964. * src/DHTSetup.h
  9965. * src/DownloadEngine.cc
  9966. * src/FileAllocationCommand.cc
  9967. * src/FileAllocationEntry.h
  9968. * src/RequestGroup.cc
  9969. * src/RequestGroup.h
  9970. * src/RequestGroupMan.cc
  9971. * src/RequestGroupMan.h
  9972. * src/StreamCheckIntegrityEntry.cc
  9973. * src/StreamCheckIntegrityEntry.h
  9974. * src/StreamFileAllocationEntry.cc
  9975. * src/StreamFileAllocationEntry.h
  9976. * src/TrackerWatcherCommand.cc
  9977. * src/a2functional.h
  9978. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9979. Changed method signature:
  9980. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9981. DHTBucket::getGoodNodes,
  9982. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9983. * src/BNode.cc
  9984. * src/BNode.h
  9985. * src/DHTAbstractNodeLookupTask.cc
  9986. * src/DHTAutoSaveCommand.cc
  9987. * src/DHTBucket.cc
  9988. * src/DHTBucket.h
  9989. * src/DHTBucketRefreshTask.cc
  9990. * src/DHTFindNodeMessage.cc
  9991. * src/DHTGetPeersMessage.cc
  9992. * src/DHTRoutingTable.cc
  9993. * src/DHTRoutingTable.h
  9994. * test/BNodeTest.cc
  9995. * test/DHTBucketTest.cc
  9996. * test/DHTRoutingTableTest.cc
  9997. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9998. In piece selection functions, Pass std::deque<...> by reference rather
  9999. than returning it.
  10000. * src/BitfieldMan.cc
  10001. * src/BitfieldMan.h
  10002. * src/DefaultBtRequestFactory.cc
  10003. * src/DefaultPieceStorage.cc
  10004. * src/Piece.cc
  10005. * src/Piece.h
  10006. * test/BitfieldManTest.cc
  10007. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. Implemented rarest piece first piece selection strategy.
  10009. * src/AbstractBtMessage.cc
  10010. * src/AbstractBtMessage.h
  10011. * src/BitfieldMan.cc
  10012. * src/BitfieldMan.h
  10013. * src/BtBitfieldMessage.cc
  10014. * src/BtHaveAllMessage.cc
  10015. * src/BtHaveMessage.cc
  10016. * src/DefaultPieceStorage.cc
  10017. * src/DefaultPieceStorage.h
  10018. * src/PeerInteractionCommand.cc
  10019. * src/PieceStorage.h
  10020. * src/UnknownLengthPieceStorage.h
  10021. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10022. Rewritten readData and writeData.
  10023. * src/MultiDiskAdaptor.cc
  10024. * src/MultiDiskAdaptor.h
  10025. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10026. Move \n out of the message "Usage: ...".
  10027. * src/version_usage.cc
  10028. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10029. Bump up version number to 0.13.2b.
  10030. * configure.ac
  10031. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10032. Added const qualifier to argument Exception& e.
  10033. * src/Logger.h
  10034. * src/SimpleLogger.cc
  10035. * src/SimpleLogger.h
  10036. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10037. Pool connection when CWD, SIZE command fails.
  10038. * src/FtpNegotiationCommand.cc
  10039. * src/FtpNegotiationCommand.h
  10040. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10041. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10042. * src/HttpResponseCommand.cc
  10043. * src/HttpSkipResponseCommand.cc
  10044. * src/HttpSkipResponseCommand.h
  10045. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10046. Pool connection when a server returns 4xx, 5xx responses.
  10047. * src/HttpNullDownloadCommand.cc
  10048. * src/HttpNullDownloadCommand.h
  10049. * src/HttpResponse.cc
  10050. * src/HttpResponse.h
  10051. * src/HttpResponseCommand.cc
  10052. * src/HttpResponseCommand.h
  10053. * test/HttpResponseTest.cc
  10054. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10055. Print usage when no URL is specifed or bad command-line option is
  10056. specified.
  10057. * src/HelpItemFactory.cc
  10058. * src/help_tags.h
  10059. * src/option_processing.cc
  10060. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10061. Removed duplicate log message.
  10062. * src/AbstractCommand.cc (asyncResolveHostname)
  10063. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10065. Changed -j option's default value from 5 to 1.
  10066. Added new examples using protocol auto detection feature.
  10067. Removed -T, -M usage where it can be omitted.
  10068. * doc/aria2c.1.txt
  10069. * doc/aria2c.1.html
  10070. * doc/aria2c.1.txt
  10071. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10072. Updated command-line usage text, so that it tells users that they
  10073. can specify any number of torrent files and metalink files in
  10074. command-line.
  10075. * src/version_usage.cc
  10076. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10077. Changed the default value of -j option to 1.
  10078. * src/HelpItemFactory.cc
  10079. * src/option_processing.cc
  10080. * src/usage_text.h
  10081. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10082. Added the ability to reuse connection in FTP and it is enabled by
  10083. default. It can be disabled by --ftp-reuse-connection=false option.
  10084. * src/Command.cc
  10085. * src/DownloadCommand.cc
  10086. * src/FtpDownloadCommand.cc
  10087. * src/FtpDownloadCommand.h
  10088. * src/FtpFinishDownloadCommand.cc
  10089. * src/FtpFinishDownloadCommand.h
  10090. * src/FtpInitiateConnectionCommand.cc
  10091. * src/FtpNegotiationCommand.cc
  10092. * src/FtpNegotiationCommand.h
  10093. * src/HelpItemFactory.cc
  10094. * src/Makefile.am
  10095. * src/Makefile.in
  10096. * src/OptionHandlerFactory.cc
  10097. * src/option_processing.cc
  10098. * src/prefs.h
  10099. * src/usage_text.h
  10100. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Call Command::transitStatus() before calling Command::execute(),
  10102. so that the status change made in execute() is not cleared.
  10103. * src/DownloadEngine.cc
  10104. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10105. Removed forward declaration of SocketCore class.
  10106. * src/HttpDownloadCommand.h
  10107. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10108. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10109. in InitiateConnectionCommandFactory. They should be set only when
  10110. the protocol is HTTP or HTTPS.
  10111. * src/InitiateConnectionCommandFactory.cc
  10112. * src/RequestGroup.cc
  10113. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. Fixed infinite loop in checksum checking.
  10115. * src/IteratableChecksumValidator.cc
  10116. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10117. Set _supportsPersistentConnection to true by default.
  10118. * src/Request.cc
  10119. * src/RequestGroup.cc
  10120. * test/HttpRequestTest.cc
  10121. * test/RequestTest.cc
  10122. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10123. Added timeout to socket pool. The default timeout is 15 seconds,
  10124. which is the same value Apache uses.
  10125. * src/DownloadEngine.cc
  10126. * src/DownloadEngine.h
  10127. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10128. Fixed misuse of multimap::find()
  10129. * src/HttpHeader.cc
  10130. * test/HttpHeaderTest.cc
  10131. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10132. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10133. option.
  10134. The asynchronous DNS is not capable of IPv6 yet.
  10135. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10136. least for HTTP download.
  10137. * src/AbstractCommand.cc
  10138. * src/AbstractCommand.h
  10139. * src/AsyncNameResolver.cc
  10140. * src/AsyncNameResolver.h
  10141. * src/DHTEntryPointNameResolveCommand.cc
  10142. * src/DHTEntryPointNameResolveCommand.h
  10143. * src/DownloadEngine.cc
  10144. * src/DownloadEngine.h
  10145. * src/FtpInitiateConnectionCommand.cc
  10146. * src/FtpInitiateConnectionCommand.h
  10147. * src/HelpItemFactory.cc
  10148. * src/HttpInitiateConnectionCommand.cc
  10149. * src/HttpInitiateConnectionCommand.h
  10150. * src/InitiateConnectionCommand.cc
  10151. * src/InitiateConnectionCommand.h
  10152. * src/Makefile.am
  10153. * src/Makefile.in
  10154. * src/NameResolver.cc
  10155. * src/NameResolver.h
  10156. * src/OptionHandlerFactory.cc
  10157. * src/SocketCore.cc
  10158. * src/SocketCore.h
  10159. * src/Util.cc
  10160. * src/Util.h
  10161. * src/option_processing.cc
  10162. * src/prefs.h
  10163. * src/usage_text.h
  10164. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10165. Updated man page: --quiet, --header were added.
  10166. --metalink-servers and --enable-http-keep-alive option were updated.
  10167. * doc/aria2c.1
  10168. * doc/aria2c.1.html
  10169. * doc/aria2c.1.txt
  10170. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10171. Enable HTTP keep-alive by default.
  10172. * src/HelpItemFactory.cc
  10173. * src/option_processing.cc
  10174. * src/usage_text.h
  10175. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10176. Disable http keep-alive if the remote server is not HTTP/1.1.
  10177. * src/HttpConnection.cc
  10178. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10179. Receive content body of 302 response so that the connection can be
  10180. reused later when http keep-alive is enabled.
  10181. * src/HttpNullDownloadCommand.cc
  10182. * src/HttpNullDownloadCommand.h
  10183. * src/HttpResponseCommand.cc
  10184. * src/HttpResponseCommand.h
  10185. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10186. const SharedHandle<Request> -> const SharedHandle<Request>&
  10187. * src/FtpDowndloadCommand.cc
  10188. * src/FtpDowndloadCommand.h
  10189. * src/HttpDownloadCommand.cc
  10190. * src/HttpDownloadCommand.h
  10191. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10192. Fixed the bug that the control file(.aria2 file) is not renamed
  10193. according to tryAutoFileRenaming().
  10194. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10195. its control file exist, use them and continue download.
  10196. The old implementation didn't take into account of control file's
  10197. existence, so basically you couldn't continue download of renamed file.
  10198. * src/BtProgressInfoFile.h
  10199. * src/DefaultBtProgressInfoFile.cc
  10200. * src/DefaultBtProgressInfoFile.h
  10201. * src/NullProgressInfoFile.h
  10202. * src/RequestGroup.cc
  10203. * test/DefaultBtProgressInfoFileTest.cc
  10204. * test/MockBtProgressInfoFile.h
  10205. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10206. Change the default value of --metalink-servers option from `5' to `1'.
  10207. * src/HelpItemFactory.cc
  10208. * src/option_processing.cc
  10209. * src/usage_text.h
  10210. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10211. Reimplemented transparent metalink using Accept request header.
  10212. * src/HttpRequest.cc
  10213. * src/HttpRequest.h
  10214. * src/HttpRequestCommand.cc
  10215. * src/Metalink2RequestGroup.cc
  10216. * src/RequestGroup.cc
  10217. * src/RequestGroup.h
  10218. * test/HttpRequestTest.cc
  10219. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10220. Bump up version number to 0.13.2a
  10221. * configure.ac
  10222. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10223. Updated configure.ac using the result of autoscan.
  10224. * configure.ac
  10225. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10226. Fixed compilation error without gcrypt/openssl.
  10227. * src/DownloadCommand.cc
  10228. * src/DownloadCommand.h
  10229. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10230. Reorganized version information so that it can be displayed in a
  10231. standard terminal screen without scrolling.
  10232. Removed http, ftp from Configuration section, because they are always
  10233. enabled.
  10234. * src/FeatureConfig.cc
  10235. * src/FeatureConfig.h
  10236. * src/main.cc
  10237. * src/messageDigest.cc
  10238. * src/messageDigest.h
  10239. * src/version_usage.cc
  10240. * test/FeatureConfigTest.cc
  10241. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10242. Masked user ID in log.
  10243. * src/FtpConnection.cc (sendUser)
  10244. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10245. Removed query part from filename in HTTP download. The query part means
  10246. the substring after "?" in URL. Firefox seems do the same thing.
  10247. A query part is sometimes very long and not suitable to filename,
  10248. so I think it is better to remove it from filename.
  10249. * src/HttpRequest.cc
  10250. * src/HttpRequest.h
  10251. * src/Request.cc
  10252. * src/Request.h
  10253. * test/HttpRequestTest.cc
  10254. * test/RequestTest.cc
  10255. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10256. Rewritten Exception class. Throw exception object, not its pointer and
  10257. catch by reference, so that remove problematic delete operator for
  10258. catched exception.
  10259. * src/Exception.cc
  10260. * src/Exception.h
  10261. * test/ExceptionTest.cc
  10262. * src/*: All files throwing/catching exception.
  10263. * test/*: All files throwing/catching exception.
  10264. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10265. Now auto protocol detection is enabled without -Z option.
  10266. But there is a important difference between with/without -Z optoin.
  10267. For example, if you type:
  10268. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10269. then, aria2 interprets there are 3 request groups:
  10270. (1) http://host/file, http://mirror/file <-- multi-source download
  10271. (2) file1.torrent
  10272. (3) file2.metalink
  10273. On the other hand, if you invoke above command with -Z option, it is
  10274. interpreted as 4 request groups:
  10275. (1) http://host/file
  10276. (2) file1.torrent
  10277. (3) file2.metalink
  10278. (4) http://mirror/file
  10279. I think usually user don't mix multi-source URLs and torrent files, so
  10280. there is no big problem here.
  10281. * src/main.cc
  10282. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10283. Fixed the bug that causes segmentaion fault when reading XML containing
  10284. unescapsed character like '&'.
  10285. Also a modification was made which avoids adding unnecessary
  10286. characters stack and appending unused string.
  10287. * src/ExpatMetalinkProcessor.cc
  10288. * src/FileMetalinkParserState.h
  10289. * src/FilesMetalinkParserState.h
  10290. * src/FinMetalinkParserState.h
  10291. * src/HashMetalinkParserState.h
  10292. * src/InitialMetalinkParserState.h
  10293. * src/LanguageMetalinkParserState.h
  10294. * src/MetalinkMetalinkParserState.h
  10295. * src/MetalinkParserState.h
  10296. * src/MetalinkParserStateMachine.cc
  10297. * src/MetalinkParserStateMachine.h
  10298. * src/OSMetalinkParserState.h
  10299. * src/PieceHashMetalinkParserState.h
  10300. * src/PiecesMetalinkParserState.h
  10301. * src/ResourcesMetalinkParserState.h
  10302. * src/SizeMetalinkParserState.h
  10303. * src/SkipTagMetalinkParserState.h
  10304. * src/URLMetalinkParserState.h
  10305. * src/VerificationMetalinkParserState.h
  10306. * src/VersionMetalinkParserState.h
  10307. * src/XML2SAXMetalinkProcessor.cc
  10308. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10309. Added StringFormat class, which internally calls vasprintf.
  10310. operator<< is defined for this class, so it can be used with iostream
  10311. classes nicely. SimpleLogger and following functions are rewritten
  10312. using StringFormat class.
  10313. Besides, now Logger class's methods are non-const, many classes
  10314. that has a const Logger* as a member variable are modified to remove
  10315. const qualifier from the variable declaration.
  10316. * src/HelpItemFactory.cc
  10317. * src/Request.cc
  10318. * src/SimpleLogger.cc
  10319. * src/StringFormat.cc
  10320. * src/StringFormat.h
  10321. * src/Util.cc
  10322. * src/option_processing.cc
  10323. * src/version_usage.cc
  10324. * test/StringFormatTest.cc
  10325. * src/*.h: The classes that has const Logger* as a member variable.
  10326. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10327. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10328. failed. Also fixed memory link when exception is thrown there.
  10329. * src/main.cc (AccRequestGroup)
  10330. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10331. Added build-in "Accept-Features" support. For now only "metalink" is
  10332. used in this header field.
  10333. This "metalink" value is removed from the list when connecting URLs
  10334. fed by metalink file to avoid loop in "transparent" metlaink.
  10335. * src/HttpRequest.cc
  10336. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10337. header is also held in this variable. Also renamed setUserHeaders as
  10338. addHeader and it was rewritten to add header not just to clear the old
  10339. value.
  10340. * src/HttpRequestCommand.cc
  10341. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10342. from "Accept-Features" list.
  10343. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10344. default.
  10345. * src/RequestGroup.h
  10346. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10347. * src/a2functional.h: Included <string> because Concat class depends on
  10348. it.
  10349. * test/HttpRequestTest.cc
  10350. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10351. Added comment
  10352. * src/RequestGroup.cc (createNextCommand)
  10353. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10354. Capitalized METHOD_GET and METHOD_HEAD
  10355. * src/Request.cc
  10356. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10357. Added getDownloadResults() method
  10358. * src/RequestGroupMan.cc
  10359. * src/RequestGroupMan.h
  10360. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10361. Fixed the bug that aria2 exits when commands is empty() but
  10362. _routineCommands are not.
  10363. * src/DownloadEngine.cc
  10364. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10365. Use the default value pulled from Option object in HelpItemFactory.
  10366. except options whose defualt value is embedded in a usage text.
  10367. * src/HelpItemFactory.cc
  10368. * src/HelpItemFactory.h
  10369. * src/option_processing.cc
  10370. * src/version_usage.cc
  10371. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10372. Added --quiet option to make aria2 quiet (no console output).
  10373. --quiet option is tagged with ADVANCED.
  10374. * src/HelpItemFactory.cc
  10375. * src/LogFactory.cc
  10376. * src/LogFactory.h
  10377. * src/MultiUrlRequestInfo.cc
  10378. * src/MultiUrlRequestInfo.h
  10379. * src/NullStatCalc.h: New class. This class prints nothing.
  10380. * src/OptionHandlerFactory.cc
  10381. * src/main.cc
  10382. * src/option_processing.cc
  10383. * src/prefs.h
  10384. * src/usage_text.h
  10385. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10386. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10387. * src/HelpItemFactory.cc (createHelpItems):
  10388. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10389. Fixed compilation error in ExpatMetalinkProcessor.cc
  10390. * src/ExpatMetalinkProcessor.cc
  10391. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10392. Reuse socket if the origin server supports HTTP keep-alive and
  10393. --enable-http-keep-alive or --enable-http-pipelining is given.
  10394. The current implementation doesn't reuse the connections established
  10395. against proxy server.
  10396. * src/AbstractCommand.cc
  10397. * src/DownloadEngine.cc
  10398. * src/DownloadEngine.h
  10399. * src/HttpDownloadCommand.cc
  10400. * src/HttpInitiateConnectionCommand.cc
  10401. * src/HttpResponseCommand.cc
  10402. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10403. Rewritten HTTP keep-alive and pipelining routine.
  10404. * src/AbstractCommand.cc
  10405. * src/HttpConnection.cc
  10406. * src/HttpDownloadCommand.cc
  10407. * src/HttpRequest.cc
  10408. * src/HttpRequestCommand.cc
  10409. * src/HttpResponseCommand.cc
  10410. * src/Request.cc
  10411. * src/Request.h
  10412. * src/RequestGroup.cc
  10413. * test/HttpRequestTest.cc
  10414. * test/HttpResponseTest.cc
  10415. * test/RequestTest.cc
  10416. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10417. Added missing setUserHeaders call
  10418. * src/HttpRequestCommand.cc
  10419. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10420. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10421. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10422. waste of time because it is more likey false.
  10423. * src/FileAllocationDispatcherCommand.cc (execute)
  10424. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10425. Now HTTP status and version are a member variable of HttpHeader.
  10426. HTTP status is processed as a string, not integer.
  10427. * src/AbstractProxyResponseCommand.cc
  10428. * src/HttpConnection.cc
  10429. * src/HttpHeader.cc
  10430. * src/HttpHeader.h
  10431. * src/HttpHeaderProcessor.cc
  10432. * src/HttpHeaderProcessor.h
  10433. * src/HttpResponse.cc
  10434. * src/HttpResponse.h
  10435. * test/HttpHeaderProcessorTest.cc
  10436. * test/HttpResponseTest.cc
  10437. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. Added --header option. You can specify any number of additional HTTP headers
  10439. like:
  10440. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10441. Unlike other commad-line option, you can use --header option multiple times.
  10442. * src/HelpItemFactory.cc
  10443. * src/HttpRequest.{cc, h}
  10444. * src/HttpRequestCommand.cc
  10445. * src/OptionHandlerFactory.cc
  10446. * src/OptionHandlerImpl.h
  10447. * src/option_processing.cc
  10448. * src/prefs.h
  10449. * src/usage_text.h
  10450. * test/HttpRequestTest.cc (testUserHeaders)
  10451. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10452. Eliminates the time lag between sequential downloads and commands in
  10453. the same RequestGroup.
  10454. In old implementation, aria2 occasionally waits 1 seconds before
  10455. executing next command or RequestGroup.
  10456. This is really a waste of time, and new implementation eliminates
  10457. this unnecessary time lag.
  10458. * src/AbstractCommand.cc
  10459. * src/AutoSaveCommand.cc
  10460. * src/CheckIntegrityCommand.cc
  10461. * src/Command.{cc, h}
  10462. * src/DownloadEngine.{cc, h}
  10463. * src/DownloadEngineFactory.cc
  10464. * src/FileAllocationCommand.cc
  10465. * src/FileAllocationDispatcherCommand.cc
  10466. * src/FillRequestGroupCommand.cc
  10467. * src/FtpInitiateConnectionCommand.cc
  10468. * src/HaveEraseCommand.cc
  10469. * src/HttpInitiateConnectionCommand.cc
  10470. * src/HttpResponseCommand.cc
  10471. * src/RealtimeCommand.cc
  10472. * src/RequestGroup.cc
  10473. * src/RequestGroupMan.cc
  10474. * src/StreamFileAllocationEntry.cc
  10475. * src/TimeBasedCommand.{cc, h}
  10476. * src/TimedHaltCommand.cc
  10477. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10478. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10479. keyword explicit and SharedHandle's default constructor initializes
  10480. its internal obj to null, old implementation initializes it using
  10481. obj's default constructor.
  10482. To assign null, write SharedHandle<T> x(...); x.reset();
  10483. TODO: test/SharedHandleTest.cc needs more tests.
  10484. * src/SharedHandle.h
  10485. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10486. Fixed type in man page.
  10487. * doc/aria2c.1.txt
  10488. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10490. * src/SimpleLogger.{cc, h}
  10491. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10492. Implemented auto protocol detection.
  10493. Now you can do:
  10494. aria2c -Z http://host/file file1.torrent file2.metalink
  10495. (Note: -Z option is required for auto protcol detection.)
  10496. Then aria2c downloads 3 files simultaneously:
  10497. 1. http://host/file
  10498. 2. file1.torrent <-- read local torrent file
  10499. 3. file2.metalink <-- read local Metalink file.
  10500. Same thing goes with -i option. Assume your uris.txt contans:
  10501. http://host/file
  10502. file1.torrent
  10503. file2.metalink
  10504. Then you can do: aria2c -i uris.txt
  10505. (Note: -Z option is not needed if -i option is given.)
  10506. * src/main.cc
  10507. * src/ProtocolDetector.{cc, h}
  10508. * test/ProtocolDetectorTest.cc
  10509. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10510. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10511. installed
  10512. * src/ARC4Encryptor.h
  10513. * src/ARC4Decryptor.h
  10514. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10515. Renamed argument from 'errno' to 'err', since errno is confused with
  10516. errno defined in errno.h.
  10517. * src/LibgcryptARC4Decryptor.h
  10518. * src/LibgcryptARC4Context.h
  10519. * src/LibgcryptDHKeyExchange.h
  10520. * src/LibgcryptARC4Encryptor.h
  10521. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10522. Rewritten choking algorithm.
  10523. * src/PeerChokeCommand.{cc, h}
  10524. * src/BtInterestedMessage.cc
  10525. * src/PeerSessionResource.{cc, h}
  10526. * src/DefaultPeerStorage.{cc, h}
  10527. * src/BtNotInterestedMessage.cc
  10528. * src/DefaultBtMessageDispatcher.{cc, h}
  10529. * src/BtMessageDispatcher.h
  10530. * src/Peer.{cc, h}
  10531. * src/BtLeecherStateChoke.{cc, h}
  10532. * src/BtSetup.cc
  10533. * src/BtSeederStateChoke.{cc, h}
  10534. * src/PeerStorage.h
  10535. * test/MockPeerStorage.h
  10536. * test/MockBtMessageDispatcher.h
  10537. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. Fixed compilation error on x84-64 platform.
  10539. * src/AuthConfig.cc: Included ostream.
  10540. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Rewritten getBasename() and getDirname(), without standard library
  10542. basename(), dirname().
  10543. * src/File.cc
  10544. * test/FileTest.cc
  10545. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10546. Added Simplified Chinese translation. Also updated the following
  10547. translations: Polish, Dutch, German. Great thanks to all translators.
  10548. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10549. Suppress content-range error when 'Content-Range' response header
  10550. doesn't contains bytes-unit specifier 'bytes'
  10551. * src/HttpHeader.cc (getRange)
  10552. * test/HttpHeaderTest.cc
  10553. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10554. Fixed compilation error with g++-4.3
  10555. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10556. Added missing include files for MinGW
  10557. * test/HttpHeaderProcessorTest.cc
  10558. * test/DHTRoutingTableSerializerTest.cc
  10559. * test/DHTRoutingTableDeserializerTest.cc
  10560. * test/UriListParserTest.cc
  10561. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10562. Now download line is printed nicely with no garbage at the end of
  10563. line. I use ioctl to get the columns of terminal.
  10564. If stdout is redirected to another device, instead of carriage return,
  10565. end of line '\n' character is used. This is feature request#1909659
  10566. * src/ConsoleStatCalc.cc (calculateStat)
  10567. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. Included a2time.h
  10569. * src/DHTMessageDispatcher.h
  10570. * src/DHTMessageEntry.h
  10571. * src/DHTReplaceNodeTask.h
  10572. * src/DHTMessageTracker.h
  10573. * src/Util.h
  10574. * src/CookieBox.h
  10575. * src/SocketCore.h
  10576. * src/DefaultBtMessageDispatcher.h
  10577. * src/SocketCore.cc
  10578. * src/Util.cc
  10579. * src/DHTPingTask.h
  10580. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10581. Fixed high memory footprint when DHT is enabled.
  10582. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10583. queued than it is processed and the queue is getting longer. As a
  10584. consequence, momory usage is increased.
  10585. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10586. replacement cache in DHTBucket which is described in Kademlia paper.
  10587. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10588. DHTReplaceNodeTask.
  10589. * src/DHTBucket.{h, cc}
  10590. (cacheNode): New function.
  10591. (getCachedNodes): New function.
  10592. (dropNode): Push back cached node to _nodes.
  10593. * test/DHTBucketTest.cc
  10594. (testCacheNode): New test
  10595. (testDropNode): New test
  10596. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10597. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10598. the unused 4KB memory when ssl is not used.
  10599. * src/SocketCore.cc
  10600. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10601. Added summary log for peer announce storage.
  10602. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10603. Removed cast
  10604. * src/DefaultPeerStorage.cc (addPeer)
  10605. Log exception message
  10606. * src/DHTMessageTracker.cc (handleTimeout)
  10607. Fixed casting
  10608. * test/HttpRequestTest.cc
  10609. * test/MetalinkProcessorTest.cc
  10610. * test/PieceTest.cc
  10611. * test/MetalinkEntryTest.cc
  10612. * test/SequenceTest.cc
  10613. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10614. * src/ParameterizedStringParser.cc (createLoop):
  10615. Removed unused variable sstep.
  10616. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10617. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10618. * src/Util.{h, cc}
  10619. (parseUInt): New function.
  10620. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10621. The actual range is uint32_t.
  10622. * test/UtilTest.cc
  10623. * src/ParameterizedStringParser.cc:
  10624. Use Util::parseUInt() for loop variables.
  10625. * test/ParameterizedStringParserTest.cc
  10626. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10627. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10628. Rewritten the functions for binding port.
  10629. * src/DHTConnectionImpl.{h, cc}
  10630. * src/PeerListenCommand.{h, cc}
  10631. * src/DHTSetup.cc
  10632. * src/BtSetup.cc
  10633. * test/DHTConnectionImplTest.cc
  10634. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10635. type cleanup for allmost all remaining files.
  10636. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10637. Type clarification
  10638. * src/PeerSessionResource.{h, cc}
  10639. * src/DefaultPieceStorage.{h, cc}
  10640. * src/Peer.{h, cc}
  10641. * test/PeerSessionResourceTest.cc
  10642. Use div function
  10643. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10644. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10645. Type clarification
  10646. * src/DefaultPeerStorage.{h, cc}
  10647. * test/DefaultPeerStorageTest.cc
  10648. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10649. Type clarification: size_t for length or size, uint64_t for file
  10650. length, off_t for file offset.
  10651. * src/DefaultBtProgressInfoFile.cc
  10652. * src/DefaultBtContext.{h, cc}
  10653. * src/DefaultBtInteractive.cc
  10654. * src/DownloadCommand.{h, cc}
  10655. * src/IteratableChunkChecksumValidator.{h, cc}
  10656. * src/SegmentMan.{h, cc}
  10657. * src/SingleFileDownloadContext.{h, cc}
  10658. * src/IteratableChecksumValidator.{h, cc}
  10659. * src/BtContext.h
  10660. * src/IteratableValidator.h
  10661. * src/DownloadContext.h
  10662. * test/SingleFileDownloadContextTest.cc
  10663. * test/DefaultBtContextTest.cc
  10664. * test/MockBtContext.h
  10665. * test/Metalink2RequestGroupTest.cc
  10666. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10667. Type clarification: size_t for length or size, uint64_t for file
  10668. length, off_t for file offset.
  10669. * src/PiecedSegment.cc
  10670. * src/GrowSegment.h
  10671. * src/DefaultBtRequestFactory.h
  10672. * src/DefaultBtProgressInfoFile.cc
  10673. * src/UnknownLengthPieceStorage.h
  10674. * src/DefaultPieceStorage.cc
  10675. * src/UnknownLengthPieceStorage.cc
  10676. * src/DefaultBtInteractive.cc
  10677. * src/GrowSegment.cc
  10678. * src/BitfieldMan.h
  10679. * src/DownloadCommand.cc
  10680. * src/BtRequestFactory.h
  10681. * src/PiecedSegment.h
  10682. * src/DefaultPieceStorage.h
  10683. * src/Piece.cc
  10684. * src/DefaultBtRequestFactory.cc
  10685. * src/PieceStorage.h
  10686. * src/Segment.h
  10687. * src/Piece.h
  10688. * src/BitfieldMan.cc
  10689. * src/Util.cc
  10690. * test/DefaultBtProgressInfoFileTest.cc
  10691. * test/DefaultPieceStorageTest.cc
  10692. * test/MockPieceStorage.h
  10693. * test/BtRequestMessageTest.cc
  10694. * test/DefaultBtMessageDispatcherTest.cc
  10695. * test/BitfieldManTest.cc
  10696. * test/GrowSegmentTest.cc
  10697. * test/PieceTest.cc
  10698. * test/SegmentTest.cc
  10699. * test/SegmentManTest.cc
  10700. * test/DefaultBtRequestFactoryTest.cc
  10701. * test/MockBtRequestFactory.h
  10702. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10703. Fixed compilation error with --disable-nls
  10704. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10705. in gettext.h causes the problem.
  10706. * src/common.h
  10707. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10708. Removed subPiece related functions.
  10709. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10710. * src/DefaultPieceStorage.{h, cc}
  10711. * test/PieceTest.cc
  10712. * test/DefaultPieceStorageTest.cc
  10713. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10714. Use unsigned char for data store.
  10715. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10716. Bump up version number to 0.13.0+1
  10717. * configure.ac
  10718. * Release 0.13.0+1
  10719. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10720. Changed inactive connection timeout to 120.
  10721. To accept more mulually interested peers, disconnect peer when there
  10722. is no interest between us after certain time passed.
  10723. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10724. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10725. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10726. when compiled with async DNS support.
  10727. * src/DownloadEngine.cc
  10728. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10729. value '10' will be a little bit short when some DNS servers are
  10730. offline and several DNS servers are tried. It should be configured
  10731. by command-line option.
  10732. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10733. Merged Ross's mingw patch.
  10734. * src/DHTRoutingTableDeserializer.cc
  10735. * src/DHTRoutingTableSerializer.cc
  10736. * src/Platform.{h, cc}
  10737. * src/timegm.h
  10738. * src/gettimeofday.h
  10739. * src/getaddrinfo.h
  10740. * src/SocketCore.h
  10741. * src/common.h
  10742. * src/inet_aton.h
  10743. * src/DownloadEngine.h
  10744. * src/gai_strerror.h
  10745. * src/a2netcompat.h
  10746. * configure.ac
  10747. * configure
  10748. * aclocal.m4
  10749. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10750. Included missing iostream.
  10751. * test/AllTest.cc
  10752. * test/BtDependencyTest.cc
  10753. * test/BtExtendedMessageTest.cc
  10754. * test/DHTConnectionImplTest.cc
  10755. * test/DHTMessageFactoryImplTest.cc
  10756. * test/DHTMessageTrackerEntryTest.cc
  10757. * test/DHTNodeTest.cc
  10758. * test/DHTRoutingTableSerializerTest.cc
  10759. * test/DefaultBtAnnounceTest.cc
  10760. * test/DefaultBtContextTest.cc
  10761. * test/DefaultBtMessageFactoryTest.cc
  10762. * test/DefaultExtensionMessageFactoryTest.cc
  10763. * test/HandshakeExtensionMessageTest.cc
  10764. * test/HttpResponseTest.cc
  10765. * test/MetalinkProcessorTest.cc
  10766. * test/MultiFileAllocationIteratorTest.cc
  10767. * test/SocketCoreTest.cc
  10768. * test/UTPexExtensionMessageTest.cc
  10769. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10770. Reorganized includes.
  10771. * src/NameResolver.cc
  10772. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10773. Fixed compilation error without ares/c-ares
  10774. * src/NameResolver.h:
  10775. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10776. Added a test for large file.
  10777. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10778. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10779. Fixed the bug that file size is ignored if size > INT32_MAX
  10780. * src/SizeMetalinkParserState.cc (endElement):
  10781. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10782. Bump up version number to 0.13.0
  10783. * configure.ac
  10784. * Release 0.13.0
  10785. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10786. Updated Makfefile.am to make 'make dist' work.
  10787. Now packaged filename is aria2c-VERSION.tar.bz2.
  10788. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10789. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10790. Large file support is now configured by configure script.
  10791. * configure.ac
  10792. Removed unsused source files
  10793. * src/
  10794. * test/
  10795. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10796. Peer.h and BtContext.h respectively.
  10797. * src/Peer.h
  10798. * src/BtContext.h
  10799. Updated translations.
  10800. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10801. translations. Great thanks to all translators!;)
  10802. * po/*.{po, gmo}
  10803. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10804. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10805. statically declared sha1 MessageDigestContext.
  10806. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10807. initialization of short-lived MessageDigestContext.
  10808. * src/MessageDigestHelper.{h, cc}
  10809. * src/main.cc
  10810. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10811. the initialization of MessageDigestContext every time in validating
  10812. chunk checksum.
  10813. * src/DownloadCommand.{h, cc}
  10814. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10815. Add a file descriptor which connected to fast peer(latency<1500) to
  10816. select(). This change reduced CPU load.
  10817. * src/PeerInteractionCommand.cc
  10818. * src/DefaultBtInteractive.{h, cc}
  10819. * src/BtInteractive.h
  10820. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10821. Fixed the previous insufficient fix for possible busy loop.
  10822. * src/MSEHandshake.cc (identifyHandshakeType)
  10823. Removed unused functions.
  10824. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10825. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10826. Fixed possible busy loop if first 20 bytes are not received for a few
  10827. minutes.
  10828. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10829. * src/ReceiverMSEHandshakeCommand.cc
  10830. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10831. Fixed compilation error
  10832. * src/ExpatMetalinkProcessor.cc
  10833. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10834. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10835. * src/DHTBucket.cc
  10836. Removed unnecessary cast.
  10837. * src/HandshakeExtensionMessage.cc
  10838. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10839. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10840. is missing.
  10841. * src/OptionHandlerFactory.cc
  10842. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10843. Fixed the bug that HAVE message is not sent for a piece they are
  10844. downloaded fom http/ftp server before any BitTorrent handshake is done
  10845. with peers.
  10846. * src/DefaultBtInteractive.cc
  10847. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10848. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10849. * src/Makefile.am
  10850. * src/Makefile.in
  10851. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10852. Updated README. Added html version of README and man page.
  10853. * README
  10854. * README.html
  10855. * readme2html: Shell script to generate README.html from README using
  10856. asciidoc.
  10857. * doc/aria2c.1.html
  10858. * doc/makeman: Added the line to generate aria2c.1.html
  10859. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10860. Fixed offset calculation.
  10861. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10862. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10863. Rewritten itos and uitos using template. llitos and ullitos are
  10864. replaced with itos and uitos respectively.
  10865. * src/Util.{h, cc}
  10866. * test/UtilTest.cc
  10867. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10868. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10869. of the number of bytes required for storing public key and shared
  10870. secret.
  10871. * src/LibgcryptDHKeyExchange.h
  10872. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10873. * src/MSEHandshake.cc
  10874. * test/DHKeyExchangeTest.cc
  10875. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10876. Removed since they are not used.
  10877. * src/Xml2MetalinkProcessor.{h, cc}
  10878. * src/Socket.cc
  10879. * src/SegmentSplitter.{h, cc}
  10880. * test/Xml2MetalinkProcessorTest.cc
  10881. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10882. Fixed the bug that prevents aria2 from stopping other than by pressing
  10883. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10884. option. aria2 doesn't stop even after --seed-time is satisfied and
  10885. continues to output blank lines in the console.
  10886. * src/ReceiverMSEHandshakeCommand.cc
  10887. * src/PeerReceiveHandshakeCommand.cc
  10888. * src/PeerListenCommand.cc
  10889. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10890. Bump up version number to 0.13.0rc
  10891. * configure.ac
  10892. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10893. Updated man page and some usage text.
  10894. * doc/aria2c.1.txt
  10895. * src/usage_text.h
  10896. * po/*.{po, gmo}
  10897. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10898. Updated translations. Added Finnish and Hebrew translations.
  10899. Great thanks to all translators!
  10900. * po/*.{po, gmo}
  10901. * po/LINGUAS
  10902. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10903. Log more detailed information about each message.
  10904. * src/DHTQueryMessage.{h, cc}
  10905. * src/DHTGetPeersMessage.{h, cc}
  10906. * src/DHTFindNodeReplyMessage.{h, cc}
  10907. * src/DHTGetPeersReplyMessage.{h, cc}
  10908. * src/DHTAnnouncePeerMessage.{h, cc}
  10909. * src/DHTResponseMessage.{h, cc}
  10910. * src/DHTFindNodeMessage.{h, cc}
  10911. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10912. Use constants defined in prefs.h
  10913. * src/option_processing.cc
  10914. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10915. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10916. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10917. Make room for future enchancements for IPv6 addresses.
  10918. Bump up version number of dht.dat file format to 2.
  10919. Not compatible with previous version.
  10920. * src/DHTRoutingTableSerializer.cc
  10921. * src/DHTRoutingTableDeserializer.cc
  10922. * test/DHTRoutingTableSerializerTest.cc
  10923. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10924. Added handling for the return values from
  10925. PeerMessageUtil::createcompact().
  10926. * src/DefaultBtContext.cc (computeFastSet):
  10927. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10928. Fixed abort when peer's ip address is IPv4-mapped address.
  10929. * src/DefaultBtContext.cc (computeFastSet)
  10930. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10931. cannot handle IPv4-mapped addresses.
  10932. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10933. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10934. Proper return value handling for OpenSSL functions.
  10935. * src/LibsslDHKeyExchange.h
  10936. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10937. Random bytes generation using libgcrypt and OpenSSL.
  10938. * src/DHTUtil.{h, cc}
  10939. * test/DHTUtilTest.cc
  10940. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10941. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10942. received.
  10943. * src/DHTMessageReceiver.cc (receiveMessage)
  10944. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10945. Fixed the bug that a return code is always 0. BUG#1897704
  10946. If error occurred during the download or there exist unfinished
  10947. downloads, aria2 returns with code 1.
  10948. * src/RequestGroupMan.{h, cc}
  10949. * src/MultiUrlRequestInfo.{h, cc}
  10950. * src/main.cc
  10951. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10952. IPv6 support for SocketCore class.
  10953. TODO: In SocketCore::establishConnection(), this is insufficient to
  10954. determin the failure of connect() here because the socket is
  10955. non-blocking state. The next addresses should be tried after select().
  10956. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10957. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10958. instead which address family independent.
  10959. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10960. information in a compact peer format which is for IPv4 only.
  10961. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10962. this is a spec of BitTorrent protocol.
  10963. * src/SocketCore.{h, cc}
  10964. * src/PeerMessageUtil.cc
  10965. * test/SocketCoreTest.cc
  10966. * test/PeerMessageUtilTest.cc
  10967. * test/DHTConnectionImplTest.cc
  10968. Handle IPv4-mapped addresses.
  10969. * src/DHTNode.cc: Now identity is determined by node id.
  10970. * src/DHTMessageTrackerEntry.cc
  10971. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10972. should handle it.
  10973. * src/DHTRoutingTableDeserializer.cc
  10974. * src/DHTMessageFactoryImpl.cc
  10975. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10976. Change the unit of --stop option from a minute to a second.
  10977. * src/usage_text.h
  10978. * src/DownloadEngineFactory.cc
  10979. * src/OptionHandlerFactory.cc
  10980. * src/message.h
  10981. * src/TimedHaltCommand.cc
  10982. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10983. Make listening socket non-block mode.
  10984. * src/FtpConnection.cc
  10985. * src/FtpNegotiationCommand.{h, cc}
  10986. * src/PeerListenCommand.cc
  10987. Fixed the bug that cause slow ftp negotiation.
  10988. * src/FtpNegotiationCommand.{h, cc}
  10989. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10990. Added basic tag to --enable-dht, --dht-listen-port option.
  10991. * src/HelpItemFactory.cc (createHelpItems)
  10992. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10993. Updated text.
  10994. * src/usage_text.h
  10995. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10996. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10997. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10998. Determin _threadtholdSpeed in each constructor for
  10999. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11000. * src/ActivePeerConnectionCommand.{h, cc}
  11001. * src/PeerReceiveHandshakeCommand.{h, cc}
  11002. * src/BtSetup.cc
  11003. * src/BtConstants.h
  11004. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11005. Added --bt-min-crypto-level and --bt-require-crypto options.
  11006. * src/OptionHandlerFactory.cc
  11007. * src/MSEHandshake.cc
  11008. * src/HelpItemFactory.cc
  11009. * src/option_processing.cc
  11010. * src/ReceiverMSEHandshakeCommand.cc
  11011. * src/prefs.h
  11012. * src/DefaultBtAnnounce.cc
  11013. * src/InitiatorMSEHandshakeCommand.cc
  11014. * src/usage_text.h
  11015. * test/MSEHandshakeTest.cc
  11016. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Bump version number to 0.13.0b
  11018. * configure.ac
  11019. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11020. Updated doc.
  11021. * src/MessageDigestHelper.h:
  11022. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11023. Use raw message digest as a token instead of its hexadecimal
  11024. representation.
  11025. * src/DHTTokenTracker.cc (generateToken)
  11026. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11027. Added Message Stream Encryption(MSE) support.
  11028. Currently, aria2 accepts incoming connections with Obfuscation Header
  11029. and legacy BitTorrent Header and establishes connections with
  11030. Obfuscation Header first and if failed then retry with legacy
  11031. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11032. choose ARC4. The new option to change the default behavior is planned.
  11033. For tracker extension, "supportcrypto=1" is added statically.
  11034. * src/PeerInitiateConnectionCommand.{h, cc}
  11035. * src/PeerConnection.{h, cc}
  11036. * src/HandleRegistry.h
  11037. * src/SocketCore.h
  11038. * src/PeerReceiveHandshakeCommand.{h, cc}
  11039. * src/BtRegistry.{h, cc}
  11040. * src/PeerListenCommand.cc
  11041. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11042. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11043. * src/MSEHandshake.{h, cc}
  11044. * src/ARC4Encryptor.h
  11045. * src/ARC4Decryptor.h
  11046. * src/LibgcryptARC4Encryptor.h
  11047. * src/LibgcryptARC4Decryptor.h
  11048. * src/LibgcryptARC4Context.h
  11049. * src/LibsslARC4Encryptor.h
  11050. * src/LibsslARC4Decryptor.h
  11051. * src/LibsslARC4Context.h
  11052. * src/DHKeyExchange.h
  11053. * src/LibgcryptDHKeyExchange.h
  11054. * src/LibsslDHKeyExchange.h
  11055. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11056. * test/DefaultBtAnnounceTest.cc
  11057. * test/ARC4Test.cc
  11058. * test/DHKeyExchangeTest.cc
  11059. Removed prepareForRetry() because it is not used.
  11060. * src/PeerAbstractCommand.{h, cc}
  11061. * src/PeerInteractionCommand.{h, cc}
  11062. * src/PeerInitiateConnectionCommand.{h, cc}
  11063. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11064. Added the ability to load nodes from torrent file. These nodes are
  11065. added to the routing table when downloading that torrent.
  11066. * src/BtContext.h
  11067. * src/DefaultBtContext.{h, cc}
  11068. * src/DHTSetup.cc
  11069. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11070. hostname and port pair, and resolves all of them.
  11071. * src/NameResolver.{h, cc}: Added reset().
  11072. * src/RequestGroup.cc
  11073. * test/DefaultBtContextTest.cc
  11074. * test/MockBtContext.h
  11075. Removed assert() from DefaultBtContext and throw exception instead.
  11076. * src/DefaultBtContext.cc
  11077. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11078. Fixed segmentation fault bug when exiting if dht is disabled.
  11079. * src/RequestGroup.cc
  11080. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11081. Fixed typo in log message and define the message in message.h
  11082. * src/TimedHaltCommand.cc
  11083. * src/message.h
  11084. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11085. Included RecoverableException.h to fix compilation error.
  11086. * test/DHTMessageFactoryImplTest.cc
  11087. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11088. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11089. * test/DHTPingMessageTest.cc
  11090. * test/DHTGetPeersMessageTest.cc
  11091. * test/DHTFindNodeMessageTest.cc
  11092. * test/DHTAnnouncePeerMessageTest.cc
  11093. * test/MockDHTMessage.h
  11094. * test/MockDHTMessageFactory.h
  11095. * test/MockDHTMessageDispatcher.h: New class.
  11096. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11097. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11098. virtual.
  11099. * src/DHTMessageDispatcher.h
  11100. * src/DHTMessageDispatcherImpl.{h, cc}
  11101. * src/DHTSetup.cc
  11102. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11103. Adding handling of DHT error message. Just log error message and
  11104. throw exception.
  11105. * src/DHTMessageFactoryImpl.cc
  11106. * test/DHTMessageFactoryImplTest.cc
  11107. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11108. Added handling of dynamic cast failure.
  11109. * src/DHTNodeLookupTask.cc
  11110. * src/DHTPeerLookupTask.cc
  11111. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11112. Added the ability to stop aria2 itself when given time has passed
  11113. from start. Use --stop option to specify time in minutes.
  11114. When 0 is given, this feature is disabled.
  11115. * src/OptionHandlerFactory.cc
  11116. * src/TimeBasedCommand.h: Make _interval protected scope.
  11117. * src/HelpItemFactory.cc
  11118. * src/option_processing.cc
  11119. * src/prefs.h
  11120. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11121. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11122. Without this modification, the result list shows "ERR" when aria2 is
  11123. stopped by --stop option. It should be "INPR".
  11124. * src/DownloadEngine.{h, cc}
  11125. * src/DownloadEngineFactory.cc
  11126. * src/usage_text.h
  11127. * src/TimedHaltCommand.{h, cc}: New class.
  11128. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11129. Bootstrap through node added by port message.
  11130. Currently bootstrap is executed if the number of buckets in routing
  11131. table is 1.
  11132. * src/BtPortMessage.{h, cc}
  11133. * src/DefaultBtMessageFactory.{h, cc}
  11134. * src/PeerInteractionCommand.cc
  11135. * test/BtPortMessageTest.cc
  11136. * test/MockDHTTask.h
  11137. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11138. Extract the Peer class's member variables, which are only needed after
  11139. PeerInteractionCommand, into PeerSessionResource class.
  11140. This class is instantiated in PeerInteractionCommand class's ctor and
  11141. released in its dtor.
  11142. This will make Peer class lightweight and uses less memory for peers
  11143. which are not connected and wait in the queue.
  11144. * src/PeerChokeCommand.cc
  11145. * src/PeerSessionResource.{h, cc}
  11146. * src/PeerInteractionCommand.cc
  11147. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11148. * src/DefaultBtInteractive.cc
  11149. * src/BtPieceMessage.cc
  11150. * src/BtInterestedMessage.cc
  11151. * src/BtUnchokeMessage.cc
  11152. * src/DefaultPeerStorage.{h, cc}
  11153. * src/PeerInitiateConnectionCommand.cc
  11154. * src/ActivePeerConnectionCommand.cc
  11155. * src/BtNotInterestedMessage.cc
  11156. * src/DefaultBtMessageDispatcher.cc
  11157. * src/BtChokeMessage.cc
  11158. * src/BtRequestMessage.cc
  11159. * src/Peer.{h, cc}
  11160. * src/BtRegistry.h
  11161. * src/TrackerWatcherCommand.cc
  11162. * src/PeerReceiveHandshakeCommand.cc
  11163. * test/BtExtendedMessageTest.cc
  11164. * test/BtAllowedFastMessageTest.cc
  11165. * test/BtCancelMessageTest.cc
  11166. * test/DefaultPieceStorageTest.cc
  11167. * test/BtBitfieldMessageTest.cc
  11168. * test/BtHaveMessageTest.cc
  11169. * test/BtNotInterestedMessageTest.cc
  11170. * test/BtRequestMessageTest.cc
  11171. * test/PeerSessionResourceTest.cc
  11172. * test/DefaultBtMessageDispatcherTest.cc
  11173. * test/PeerTest.cc
  11174. * test/BtInterestedMessageTest.cc
  11175. * test/BtRejectMessageTest.cc
  11176. * test/BtChokeMessageTest.cc
  11177. * test/DefaultPeerStorageTest.cc
  11178. * test/BtHaveNoneMessageTest.cc
  11179. * test/BtHaveAllMessageTest.cc
  11180. * test/DefaultExtensionMessageFactoryTest.cc
  11181. * test/BtUnchokeMessageTest.cc
  11182. * test/DefaultBtMessageFactoryTest.cc
  11183. * test/HandshakeExtensionMessageTest.cc
  11184. * test/UTPexExtensionMessageTest.cc
  11185. * test/DefaultBtRequestFactoryTest.cc
  11186. * test/BtPieceMessageTest.cc
  11187. Removed typedef PeerStats.
  11188. * src/PeerStat.h
  11189. * src/SegmentMan.cc
  11190. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11191. Added std namespace to copy, remove_copy, back_inserter,
  11192. front_inserter.
  11193. * src/RequestGroupMan.cc
  11194. * src/DefaultPieceStorage.cc
  11195. * src/StreamFileAllocationEntry.cc
  11196. * src/BtFileAllocationEntry.cc
  11197. * src/RequestGroup.cc
  11198. * src/MetalinkEntry.cc
  11199. * src/DelegatingPeerListProcessor.cc
  11200. * src/DefaultBtRequestFactory.cc
  11201. * src/DefaultBtMessageDispatcher.cc
  11202. * src/version_usage.cc: Included <algorithm>
  11203. * src/main.cc
  11204. * src/MetalinkParserController.cc
  11205. * src/DefaultBtContext.cc
  11206. * src/DownloadEngineFactory.cc
  11207. * src/a2algo.h
  11208. Removed.
  11209. * test/StreamUriListParserTest.cc
  11210. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11211. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11212. ActivePeerConnectionCommand when it is given and
  11213. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11214. * src/ActivePeerConnectionCommand.{h, cc}
  11215. * src/BtSetup.cc
  11216. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11217. Only add socket to DownloadEngine's select routine when peer or
  11218. localhost is unchoked and interested. This lowers CPU usage a
  11219. little bit.
  11220. * src/PeerInteractionCommand.cc
  11221. * src/PeerAbstractCommand.{h, cc}
  11222. * src/BtInteractive.h
  11223. * src/DefaultBtInteractive.{h, cc}
  11224. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11225. Revert previous change because get_peers message is needed for
  11226. announce_peer anyway.
  11227. * src/DHTGetPeersCommand.cc
  11228. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11229. Request peers thought DHT only when download hasn't finished.
  11230. * src/DHTGetPeersCommand.cc
  11231. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11232. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11233. * src/DHTBucketRefreshTask.{h, cc}
  11234. * src/DHTSetup.cc
  11235. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11236. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11237. standard classes.
  11238. Included string.h where mem* function are used.
  11239. Added namespace aria2.
  11240. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11241. Create directory before saving DHT routing table.
  11242. Now ios::failure is now handled properly.
  11243. * src/DHTAutoSaveCommand.cc
  11244. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11245. Removed unnecessary cerr.
  11246. * src/DownloadEngine.cc
  11247. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11248. Catch exception inside DHTMessageReceiver::receiveMessage().
  11249. Log unknown message.
  11250. * src/DHTMessageReceiver.{h, cc}
  11251. * src/DHTMessageFactory.h
  11252. * src/DHTMessageFactoryImpl.{h, cc}
  11253. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11254. * src/DHTInteractionCommand.cc
  11255. * src/DHTUnknownMessage.{h, cc}
  11256. * test/DHTUnknownMessageTest.cc
  11257. * test/MockDHTMessageFactory.h
  11258. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11259. Commented out ip address comparison because a host can have multiple
  11260. ip addresses and it is hard to predict the hostname is resolved into
  11261. which one.
  11262. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11263. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11264. * po/Makefile.in: Removed since this is generated by configure.
  11265. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11266. Fixed compiler warning about redefinition of SIZE_MAX.
  11267. Use common.h instead of config.h directly here.
  11268. * src/Platform.{h, cc}
  11269. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11270. here.
  11271. * common.h
  11272. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11273. Updated gettext related files.
  11274. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11275. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11276. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11277. Added DHT functionality, compatible with mainline.
  11278. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11279. You may need to specify entry point to DHT network using
  11280. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11281. Use --dht-listen-port to specify port number. Make sure that your
  11282. firewall configuration can pass through UDP traffic to the port.
  11283. The routing table is saved in $HOME/.aria2/dht.dat.
  11284. * src/DHT*
  11285. * src/BNode.{h, cc}
  11286. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11287. particular torrent.
  11288. * src/Data.cc: Rewritten ctor.
  11289. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11290. --dht-entry-point.
  11291. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11292. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11293. ends, remove BtContext from DHTPeerAnnounceStorage.
  11294. * src/BtPortMessage.{h, cc}: Rewritten.
  11295. * src/message.h
  11296. * src/OptionHandlerImpl.cc
  11297. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11298. --dht-entry-point.
  11299. * src/Dictionary.{h, cc} (remove): New function.
  11300. * src/prefs.h
  11301. * src/DefaultBtMessageFactory.h
  11302. * src/BtHandshakeMessage.cc
  11303. * src/ActivePeerConnectionCommand.cc
  11304. * src/SocketCore.{h, cc}: Added datagram socket support.
  11305. * src/DefaultBtMessageFactory.cc
  11306. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11307. Create DHT commands.
  11308. * src/BtMessageFactory.h
  11309. * src/PeerMessageUtil.{h, cc}
  11310. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11311. Fixed the bug that log file is not written when configuration file doesn't exist.
  11312. This is caused by using Logger class before LogFactory is not configured.
  11313. BUG #1875079
  11314. * src/option_processing.cc
  11315. Warning message "configuration doesn't exist" is only printed when --conf is
  11316. given.
  11317. * src/option_processing.cc
  11318. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11319. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11320. ShaVisitor is now deprecated and slated to be removed.
  11321. * src/DefaultBtContext.cc
  11322. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11323. Externalize message to message.h
  11324. * src/Platform.cc
  11325. * src/message.h
  11326. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11327. Set default domain and default path to cookie.
  11328. * src/HttpResponse.cc
  11329. * src/CookieBox.{h, cc}
  11330. * src/CookieParser.{h, cc}
  11331. * test/CookieParserTest.cc
  11332. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11333. Added --no-conf and --conf-path command-line option.
  11334. --no-conf option disables loading aria2.conf file.
  11335. --conf-path option changes the configuration file path. The default
  11336. file path is $HOME/.aria2/aria2.conf
  11337. Added a warning message when the configuration file is not found.
  11338. * src/HelpItemFactory.cc
  11339. * src/option_processing.cc
  11340. * src/prefs.h
  11341. * src/usage_text.h
  11342. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11343. Added the message to inform users that other help categories are
  11344. available in -h option.
  11345. * src/version_usage.cc
  11346. * src/TagContainer.{h, cc}
  11347. * test/TagContainerTest.cc
  11348. * src/TaggedItem.{h, cc}
  11349. * test/TaggedItemTest.cc
  11350. * src/HelpItem.h
  11351. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11352. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11353. from PiecedSegment's ctor.
  11354. Previously Piece::getAllMissingBlockIndexes() is called from
  11355. PiecedSegment() but it is rather expensive since only first element is
  11356. used.
  11357. * src/PiecedSegment.cc
  11358. * src/Piece.{h, cc}
  11359. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11360. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11361. each time these functions are called.
  11362. * src/BitfieldMan.{h, cc}
  11363. * test/BitfieldManTest.cc
  11364. * src/array_fun.h
  11365. * test/array_funTest.cc
  11366. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11367. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11368. filtered. Removed unnecessary cast to int32_t.
  11369. * src/BitfieldMan.{h, cc}
  11370. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11371. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11372. payload length(4bytes) are received. This happens because lenbufLength
  11373. is not updated in this particular case and successive call of
  11374. receiveMessage() overwrites payload length with bytes recieved which
  11375. are payload body.
  11376. * src/PeerConnection.{h, cc}
  11377. * src/message.h
  11378. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11379. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11380. peer if there are peers that have same ipaddr and port.
  11381. I've experiened segmentation fault and "pure virtual function was
  11382. called" error.
  11383. * src/Peer.h
  11384. * test/PeerTest.cc
  11385. * src/DefaultPeerStorage.cc
  11386. * test/DefaultPeerStorageTest.cc
  11387. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11388. Removed a call to isPowerOf() because it is no longer necessary here
  11389. and a request block is not always power of 2.
  11390. BUG#1866924
  11391. * src/PeerMessageUtil.cc (checkLength)
  11392. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11393. Fixed the bug that always first found Segment is removed from
  11394. usedSegmentEntries. Removed unused functions.
  11395. * src/SegmentMan.{h, cc}
  11396. * test/SegmentManTest.cc
  11397. Fixed the bug that ServerHost is not removed.
  11398. * src/RequestGroup.cc
  11399. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11400. Fixed the bug that SegmentMan::completeSegment() is not called
  11401. even if Segment is complete when --lowest-speed-limit is enabled.
  11402. BUG#1864525
  11403. * src/DownloadCommand.{h, cc}
  11404. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11405. Fixed: hash algorithm 'sha1' is always used.
  11406. * src/DownloadCommand.cc (validatePieceHash)
  11407. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11408. Added --enable-peer-exchange command-line option.
  11409. * src/OptionHandlerFactory.cc
  11410. * src/HelpItemFactory.cc
  11411. * src/option_processing.cc
  11412. * src/usage_text.h
  11413. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11414. Move extension from BtRuntime to ExtensionMessageFactory, because
  11415. extension can be specified per peer, not per torrent.
  11416. * src/DefaultBtInteractive.cc
  11417. * src/BtRuntime.h
  11418. * src/ExtendedMessagingAware.h
  11419. * src/ExtensionMessageFactory.h
  11420. * src/DefaultExtensionMessageFactory.cc
  11421. * test/DefaultExtensionMessageFactoryTest.cc
  11422. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11423. Added categorized option help. Specify category using --help option.
  11424. Also added the ability to search options in forward match.
  11425. * src/HelpItem.{h, cc}
  11426. * test/HelpItemTest.cc
  11427. * src/HelpItemFactory.{h, cc}
  11428. * src/TagContainer.{h, cc}
  11429. * test/TagContainerTest.cc
  11430. * src/option_processing.cc
  11431. * src/prefs.h
  11432. * src/TaggedItem.{h, cc}
  11433. * test/TaggedItemTest.cc
  11434. * src/version_usage.cc
  11435. * src/help_tags.h
  11436. * src/usage_text.h
  11437. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11438. Fixed segmentation fault when bad torrent metainfo is parsed.
  11439. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11440. and then throw exception or skip it.
  11441. * src/DefaultBtContext.{h, cc}
  11442. * test/DefaultBtContextTest.cc
  11443. * src/AnnounceList.cc
  11444. * src/CompactPeerListProcessor.cc
  11445. * src/message.h
  11446. * src/DefaultBtAnnounce.{h, cc}
  11447. * test/DefaultBtAnnounceTest.cc
  11448. * src/BencodeVisitor.cc
  11449. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11450. Added missing "B"(=Byte). So now the message looks like this:
  11451. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11452. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11453. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11454. Show the seed ratio after torrent downloads.
  11455. For example, after torrent download completed and --seed-time and
  11456. --seed-ratio conditions are fulfilled, following message is printed
  11457. right after "Download complete: .....":
  11458. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11459. * src/RequestGroupMan.cc
  11460. * src/RequestGroup.{h, cc}
  11461. * src/message.h
  11462. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11463. Remove a defunct control file. A defunct control file means that while
  11464. it exists, but the corresponding download file is missing.
  11465. After its removal, a download restarts from the beginning.
  11466. * src/RequestGroup.cc
  11467. * src/message.h
  11468. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11469. Allocate bitfield in Peer when it is really used. More specifically,
  11470. bitfield in Peer is allocated after the connection is established and
  11471. deallocated when the connection is dropped.
  11472. Since 2 parameters(piece length and total length) was removed from the
  11473. constructor of Peer class, many test classes were modified accordingly.
  11474. See svn log for more detailed information.
  11475. * src/PeerInteractionCommand.cc
  11476. * src/CompactPeerListProcessor.cc
  11477. * src/Peer.cc
  11478. * src/DefaultPeerListProcessor.cc
  11479. * src/PeerListenCommand.cc
  11480. * src/PeerReceiveHandshakeCommand.cc
  11481. Fixed memory leak
  11482. * src/Piece.cc
  11483. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11484. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11485. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11486. command-line options.
  11487. * src/option_processing.cc
  11488. * src/ActivePeerConnectionCommand.cc
  11489. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11490. Send have message to peer if it already has the piece.
  11491. * src/BtHaveMessage.{h, cc}
  11492. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11493. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11494. port.
  11495. * src/DefaultPeerStorage.{h, cc}
  11496. * test/DefaultPeerStorageTest.cc
  11497. * src/HandshakeExtensionMessage.cc
  11498. * test/HandshakeExtensionMessageTest.cc
  11499. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11500. * src/PeerStorage.h
  11501. * test/MockPeerStorage.h
  11502. * src/PeerListenCommand.cc
  11503. * src/PeerReceiveHandshakeCommand.cc
  11504. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11505. Added --metalink-enable-unique-protocol option.
  11506. * src/Metalink2RequestGroup.cc
  11507. * src/option_processing.cc
  11508. * src/prefs.h
  11509. * src/version_usage.cc
  11510. * doc/aria2c.1.txt
  11511. * doc/aria2c.1
  11512. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11513. Allow a peer in incomingPeer to be added peers.
  11514. * src/DefaultPeerStorage.cc
  11515. * test/DefaultPeerStorageTest.cc
  11516. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11517. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11518. I could reproduce this bug in following procedure:
  11519. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11520. 2. Restart aria2.
  11521. 3. You see the download stopped around 99%.
  11522. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11523. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11524. If timeout is reached, then _nextCommand is unused and it may contains
  11525. segments and they won't be canceled. Actually, timeout is not needed
  11526. here because if the server dropped connection, then retry is made.
  11527. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11528. Added uTorrent compatible Peer Exchange.
  11529. * src/BencodeVisitor.{h, cc}
  11530. * test/BencodeVisitorTest.cc
  11531. * src/BtConstants.h
  11532. * src/BtContext.h: Added 'private' flag.
  11533. * src/BtExtendedMessage.{h, cc}
  11534. * test/BtExtendedMessageTest.cc
  11535. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11536. reserved field.
  11537. * test/BtHandshakeMessageTest.cc
  11538. * src/BtMessageFactory.h
  11539. * src/BtRegistry.h
  11540. * src/BtRuntime.h: This class holds default extension message IDs for
  11541. aria2. By default, aria2 uses ID 8 for ut_pex.
  11542. * src/DefaultBtContext.cc
  11543. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11544. When it is true, aria2 enables ut_pex. This value is set by
  11545. PeerInteractionCommand.
  11546. * src/DefaultBtMessageFactory.{h, cc}
  11547. * test/DefaultBtMessageFactoryTest.cc
  11548. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11549. handling to DefaultBtInteractive class.
  11550. * src/DefaultExtensionMessageFactory.{h, cc}
  11551. * test/DefaultExtensionMessageFactoryTest.cc
  11552. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11553. the container(peers and incomingPeers. The equality is determined by
  11554. Peer::id).
  11555. * test/DefaultPeerStorageTest.cc
  11556. * src/ExtensionMessage.h
  11557. * test/MockExtensionMessage.h
  11558. * src/ExtensionMessageFactory.h
  11559. * test/MockExtensionMessageFactory.h
  11560. * src/HandshakeExtensionMessage.{h, cc}
  11561. * test/HandshakeExtensionMessageTest.cc
  11562. * src/MetaEntry.h
  11563. * src/Peer.{h, cc}
  11564. * src/PeerInteractionCommand.cc
  11565. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11566. addIncomingPeer.
  11567. * src/PeerMessageUtil.{h, cc}
  11568. * src/PeerObject.h
  11569. * src/UTPexExtensionMessage.{h, cc}
  11570. * test/UTPexExtensionMessageTest.cc
  11571. * src/message.h
  11572. * src/prefs.h
  11573. Fixed the bug that returns incomplete data when it contains null
  11574. character. A convenient constructor was also added.
  11575. * src/Data.{h, cc}
  11576. Rewritten.
  11577. * src/CompactPeerListProcessor.cc
  11578. Fixed typos.
  11579. * src/message.h
  11580. * src/MetaFileUtil.cc
  11581. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11582. Added "Status Legend" label to the explanation text of 'stat' in
  11583. download result and moved it to the last. BUG#1848214
  11584. * src/RequestGroupMan.cc
  11585. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11586. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11587. * src/Makefie.am
  11588. * test/Makefile.am
  11589. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11590. Fixed the bug that prevents aria2 from loading cookie file when expire
  11591. value is greater than 2^31-1. BUG#1851066
  11592. * src/CookieBoxFactory.cc
  11593. * test/CookieBoxFactoryTest.cc
  11594. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11595. Fixed possible memory leak when an exception is thrown.
  11596. * src/XML2SAXMetalinkProcessor.cc
  11597. Added Expat support. If both libxml2 and Expat are installed, then
  11598. libxml2 is used by default.
  11599. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11600. ExpatMetalinkProcessor according to the configuration.
  11601. * src/ExpatMetalinkProcessor.{h, cc}
  11602. * src/main.cc: Removed libxml2 specific header and init/free function.
  11603. * src/MetalinkProcessorFactory.{h, cc}
  11604. * src/MetalinkHelper.cc
  11605. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11606. * src/MetalinkProcessor.h
  11607. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11608. MetalinkProcessorTest is used instead.
  11609. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11610. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11611. MetalinkProcessorFactory::newInstance().
  11612. * m4/libexpat.m4
  11613. * configure.ac: Added configuration options for libexpat.
  11614. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11615. Disabled -s option in metalink download.
  11616. * src/Metalink2RequestGroup.cc
  11617. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11618. If several protocols are available for a mirror in metalink file,
  11619. aria2 now use one of them. --metalink-preferred-protocol option was
  11620. added to specify the preference of protocol.
  11621. * src/AbstractCommand.cc
  11622. * src/OptionHandlerFactory.cc
  11623. * src/ServerHost.{h, cc}
  11624. * src/Metalink2RequestGroup.cc
  11625. * src/RequestGroup.{h, cc}
  11626. * test/RequestGroupTest.cc
  11627. * src/option_processing.cc
  11628. * src/prefs.h
  11629. * src/HttpResponseCommand.cc
  11630. * src/MetalinkResource.{h, cc}
  11631. * src/FtpNegotiationCommand.cc
  11632. * src/MetalinkEntry.{h, cc}
  11633. * src/MetalinkEntryTest.cc
  11634. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11635. Code cleanup and added debug log.
  11636. * src/PeerConnection.cc
  11637. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11638. Compiler error fix: applied the patch by Tiziano Mueller
  11639. * src/RequestGroup.cc
  11640. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11641. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11642. in stopped and completed event.
  11643. * src/AnnounceList.{h, cc}
  11644. * test/AnnounceListTest.cc
  11645. * src/DefaultBtAnnounce.cc
  11646. * test/DefaultBtAnnounceTest.cc
  11647. Sorted URLs.
  11648. * test/Metalink2RequestGroupTest.cc
  11649. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11650. Removed unnecessary string copy. Updated doc and corrected indentation.
  11651. * src/Base64.cc
  11652. Fixed compilation warnings
  11653. * test/DataTest.cc
  11654. * test/HttpRequestTest.cc
  11655. * test/MetaFileUtilTest.cc
  11656. * test/RequestTest.cc
  11657. * Release 0.12.0
  11658. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11659. Updated translations
  11660. * po/{de,fr,ja,nl,ru}.po
  11661. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11662. translations. Many thanks to translators.
  11663. * po/{ca,es,it,pt_BR,sv}.po
  11664. * po/LINGUAS
  11665. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11666. Added a notice about URL
  11667. * src/version_usage.cc
  11668. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11669. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11670. aria2 repeatedly sends stopped request when tracker returns error code.
  11671. * src/AnnounceList.cc
  11672. * test/AnnounceListTest.cc
  11673. * src/AnnounceTier.h
  11674. Added a message when ctrl-c is hit.
  11675. Now second ctrl-c is also handled in signal handler.
  11676. * src/RequestGroupMan.{h, cc}
  11677. * src/RequestGroup.{h, cc}
  11678. * src/MultiUrlRequestInfo.cc
  11679. * src/DownloadEngine.cc
  11680. * src/TrackerWatcherCommand.cc
  11681. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11682. Code cleanup
  11683. * src/Base64.cc (encode)
  11684. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11685. Changed Direct/IO enable/disable procesure in file allocation routine.
  11686. * src/SingleFileAllocationIterator.cc
  11687. (SingleFileAllocationIterator):
  11688. Disable directIO if offset is not multiple of 512.
  11689. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11690. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11691. Enable created SingleFileAllocationIterator's directIO.
  11692. * src/FileAllocationEntry.cc
  11693. (FileAllocationEntry): Enable directIO here.
  11694. (~FileAllocationEntry): Disable directIO here.
  11695. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11696. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11697. * src/Peer.{h, cc}
  11698. * src/DefaultPieceStorage.cc
  11699. * test/DefaultPieceStorageTest.cc
  11700. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11701. Rewritten direct I/O support routine
  11702. * src/SingleFileAllocationIterator.cc
  11703. * src/MultiDiskAdaptor.{h, cc}
  11704. * src/ByteArrayDiskWriter.h
  11705. * src/AbstractSingleDiskAdaptor.h
  11706. * src/AbstractDiskWriter.cc
  11707. * src/DefaultPieceStorage.cc
  11708. * src/DiskWriter.h
  11709. * src/BinaryStream.h
  11710. * src/IteratableChunkChecksumValidator.cc
  11711. * src/IteratableChecksumValidator.cc
  11712. * src/CheckIntegrityEntry.cc
  11713. * src/FileAllocationEntry.cc
  11714. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11715. Fixed typo
  11716. * src/version_usage.cc
  11717. Updated doc
  11718. * doc/aria2c.1.txt
  11719. * doc/aria2c.1
  11720. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11721. Fixed compile error without message digest support.
  11722. * src/FileMetalinkParserState.cc
  11723. * src/MetalinkParserController.{h, cc}
  11724. * test/XML2SAXMetalinkProcessorTest.cc
  11725. * test/MetalinkParserControllerTest.cc
  11726. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11727. Enable direct I/O support in checksum checking.
  11728. * src/IteratableChunkChecksumValidator.{h, cc}
  11729. * test/IteratableChunkChecksumValidatorTest.cc
  11730. * src/CheckIntegrityEntry.cc
  11731. * src/PieceHashCheckIntegrityEntry.cc
  11732. * src/IteratableChecksumValidator.{h, cc}
  11733. * src/BtCheckIntegrityEntry.cc: Added doc.
  11734. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11735. Added --allow-piece-length-change option.
  11736. * src/DefaultBtProgressInfoFile.cc
  11737. * test/DefaultBtProgressInfoFileTest.cc
  11738. * src/OptionHandlerFactory.cc
  11739. * src/option_processing.cc
  11740. * src/prefs.h
  11741. * src/version_usage.cc
  11742. * doc/aria2c.1.txt
  11743. * doc/aria2c.1
  11744. Fixed: duplicated result entry appears when exception is thrown in
  11745. RequestGroup::createInitiateConnectionCommand().
  11746. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11747. Add RequestGroup to _requestGroup after RequetGroup::
  11748. createInitiateConnectionCommand() succeeds.
  11749. Externalized message
  11750. * src/XML2SAXMetalinkProcessor.cc
  11751. * src/message.h
  11752. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11753. Forced download abort when received negative response from http/ftp
  11754. server.
  11755. * src/HttpResponseCommand.cc
  11756. * src/FtpNegotiationCommand.cc
  11757. * src/HttpResponse.cc
  11758. * src/FtpConnection.cc
  11759. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11760. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11761. the predecessor, Xml2MetalinkParser class.
  11762. I tested them against 94KB metalink file with 1234 chunk checksums.
  11763. The new one parsed it in 22msec, while it took 6000msec with old one.
  11764. * src/XML2SAXMetalinkProcessor.{h, cc}
  11765. * test/XML2SAXMetalinkProcessorTest.cc
  11766. * src/MetalinkParserController.{h, cc}
  11767. * test/MetalinkParserControllerTest.cc
  11768. * src/MetalinkParserState.h: Also added 16 subclasses.
  11769. * src/main.cc
  11770. * src/Metalink2RequestGroup.cc
  11771. * src/MetalinkHelper.cc
  11772. * src/MetalinkEntry.cc
  11773. * src/ChunkChecksum.h
  11774. Rewritten Base64 class for better performance.
  11775. * src/Base64.{h, cc}
  11776. * test/Base64Test.cc
  11777. * src/HttpRequest.cc
  11778. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11779. Fixed the bug#1841757: aria2 will connect to server to only get
  11780. file size.
  11781. * src/StreamFileAllocationEntry.cc
  11782. * src/option_processing.cc
  11783. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11784. downloads.
  11785. * src/FtpNegotiationCommand.cc
  11786. Suppressed wrong message when finding PreDownloadHandler
  11787. * src/RequestGroup.cc
  11788. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11789. Updated usage
  11790. * src/version_usage.cc
  11791. Updated man page
  11792. * doc/aria2c.1.txt
  11793. * doc/aria2c.1
  11794. Updated po files
  11795. * po/aria2c.pot
  11796. * po/*.po
  11797. * po/*.gmo
  11798. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11799. Eliminated g++-4.2 warning
  11800. * src/DownloadHandlerConstants.{h, cc}
  11801. * src/Util.cc
  11802. * test/MetaFileUtilTest.cc
  11803. * test/PStringBuildVisitorTest.cc
  11804. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11805. * src/RequestGroup.cc
  11806. * src/BtCheckIntegrityEntry.cc
  11807. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11808. Fixed a2io.h
  11809. * src/a2io.h
  11810. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11811. Added direct I/O support. The current implementation uses O_DIRECT,
  11812. which is not posix standard and is tested on linux 2.6.21.
  11813. Currently only file allocation uses direct I/O.
  11814. * src/SingleFileAllocationIterator.{h, cc}
  11815. * test/SingleFileAllocationIteratorTest.cc
  11816. * src/MultiFileAllocationIterator.{h, cc}
  11817. * test/MultiFileAllocationIteratorTest.cc
  11818. * src/BinaryStream.h
  11819. * src/DiskWriter.h
  11820. * src/AbstractDiskWriter.{h, cc}
  11821. * src/ByteArrayDiskWriter.h
  11822. * src/DiskAdaptor.h
  11823. * src/AbstractSingleDiskAdaptor.{h, cc}
  11824. * src/MultiDiskAdaptor.{h, cc}
  11825. * src/FileAllocationEntry.cc
  11826. * src/Util.{h, cc}
  11827. * src/OptionHandlerFactory.cc
  11828. * src/prefs.h
  11829. * src/version_usage.cc
  11830. * src/option_processing.cc
  11831. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11832. handleException.
  11833. * src/MultiFileAllocationIterator.cc
  11834. Added EINTR handling
  11835. * src/SocketCore.cc
  11836. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11837. Updated usage
  11838. * src/version_usage.cc
  11839. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11840. Applied Ross's patch for MinGW port.
  11841. * src/DownloadEngine.h
  11842. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11843. Set Content-Type to SingleFileDownloadContext when http response is
  11844. received.
  11845. * src/HttpResponseCommand.cc
  11846. * src/HttpResponse.{h, cc}
  11847. * test/HttpResponseTest.cc
  11848. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11849. Rewritten to add content-type support.
  11850. * src/DownloadHandler.{h, cc}
  11851. * src/BtPostDownloadHandler.{h, cc}
  11852. * test/BtPostDownloadHandlerTest.cc
  11853. * src/MetalinkPostDownloadHandler.{h, cc}
  11854. * test/MetalinkPostDownloadHandlerTest.cc
  11855. * src/PostDownloadHandler.{h, cc}
  11856. * src/DownloadHandlerConstants.{h, cc}
  11857. * src/RequestGroup.cc
  11858. * src/HttpResponseCommand.cc
  11859. * src/FtpNegotiationCommand.cc
  11860. * src/SingleFileDownloadContext.{h, cc}
  11861. * src/RequestGroup.h
  11862. * src/RequestGroupCriteria.h
  11863. * src/ContentTypeRequestGroupCriteria.h
  11864. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11865. If it is give, metalink/torrent file is not written to the disk, but
  11866. just is kept in memory. Parsing is occurred on memory.
  11867. * src/MetalinkHelper.{h, cc}
  11868. * src/MetalinkProcessor.h
  11869. * src/Xml2MetalinkProcessor.{h, cc}
  11870. * test/Xml2MetalinkProcessorTest.cc
  11871. * src/DownloadHandlerFactory.{h, cc}
  11872. * test/DownloadHandlerFactoryTest.cc
  11873. * src/PreDownloadHandler.{h, cc}
  11874. * src/OptionHandlerFactory.cc
  11875. * src/DefaultBtContext.{h, cc}
  11876. * test/DefaultBtContextTest.cc
  11877. * src/version_usage.cc
  11878. * src/Metalink2RequestGroup.{h, cc}
  11879. * src/RequestGroup.{h, cc}
  11880. * src/a2functional.h
  11881. * test/a2functionalTest.cc
  11882. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11883. * src/OptionHandlerImpl.h
  11884. * src/prefs.h
  11885. * src/Util.{h, cc}
  11886. * test/UtilTest.cc
  11887. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11888. memory usage.
  11889. * src/RequestGroupMan.{h, cc}
  11890. * src/DownloadEngine.cc
  11891. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11892. WeakHandle to SharedHandle because WeakHandle could be null.
  11893. * src/RequestGroup.{h, cc}
  11894. * src/DownloadEngineFactory.cc
  11895. * src/DownloadResult.h
  11896. Set totalLength after download finished
  11897. * src/UnknownLengthPieceStorage.{h, cc}
  11898. Keep torrent file specified in metalink in memory.
  11899. * src/Metalink2RequestGroup.cc
  11900. * src/BtDependency.cc
  11901. * src/TrueRequestGroupCriteria.h
  11902. Fixed the bug: seekg is used where seekp should be used.
  11903. * src/ByteArrayDiskWriter.cc
  11904. * test/ByteArraydiskWriterTest.cc
  11905. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11906. Fixed syntax error
  11907. * test/SequenceTest.cc
  11908. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11909. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11910. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11911. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11912. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11913. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11914. Added the check to see whether ares_host_callback accepts timeouts
  11915. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11916. * src/NameResolver.{h, cc}
  11917. * m4/libcares.m4
  11918. * configure.ac: Set C++ for language choice.
  11919. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11920. Fixed: compilation fails without c-ares/ares
  11921. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11922. Generate http/ftp commands only when download is incomplete.
  11923. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11924. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11925. Corrected typo. Examples are removed since they are available in man
  11926. page.
  11927. * src/version_usage.cc
  11928. Updated man page.
  11929. * doc/aria2c.1
  11930. * doc/aria2c.1.txt
  11931. * doc/makeman: Commented out sed command.
  11932. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11933. Throw DlAbortEx when a remote file is not found.
  11934. * src/HttpResponse.cc
  11935. * src/FtpNegotiationCommand.cc
  11936. * src/message.h
  11937. Overwrite an existing file if --allow-overwrite=true is given.
  11938. * src/RequestGroup.cc
  11939. Removed unused functions
  11940. * src/AbstractCommand.h
  11941. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11942. Removed 'extern' from 'extern typedef ...' in src/*.h
  11943. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11944. Updated usage
  11945. * src/version_usage.cc
  11946. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11947. Trim announce URL
  11948. * src/DefaultBtContext.cc
  11949. * test/ShaVisitorTest.cc
  11950. Trim argument s. Give trimed s to exception constructor.
  11951. * src/Util.cc (parseInt)(parseLLInt)
  11952. * test/UtilTest.cc
  11953. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11954. Set precision back to 1.
  11955. * src/ConsoleStatCalc.cc (calculateStat)
  11956. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11957. Replaced strtol with Util::parseInt
  11958. * src/ChunkedEncoding.cc
  11959. * src/HttpConnection.cc
  11960. * src/CookieBoxFactory.cc
  11961. * src/ParameterizedStringParser.cc
  11962. * src/Util.cc
  11963. * test/UtilTest.cc
  11964. * test/OptionHandlerTest.cc
  11965. * src/Request.cc
  11966. Throw exception when empty string is given. The message for exception
  11967. changed.
  11968. * src/Util.cc (parseInt)(parseLLInt)
  11969. * src/message.h
  11970. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11971. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11972. set to 1.
  11973. * src/ConsoleStatCalc.cc (calculateStat)
  11974. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11975. Preallocate non-requested file which is adjacent forward to requested
  11976. file('requested' files means the files given in --select-file option)
  11977. if they share a same piece.
  11978. This fixes long pause in the file system which doesn't support sparse
  11979. files like FAT32 while downloading.
  11980. * src/MultiFileAllocationIterator.{h, cc}
  11981. * test/MultiFileAllocationIteratorTest.cc
  11982. * src/FileEntry.{h, cc}
  11983. Removed unused _option.
  11984. * src/MultiDiskAdaptor.h
  11985. * test/MultiDiskAdaptorTest.cc
  11986. * src/DefaultPieceStorage.cc
  11987. Set the default value of --seed-ratio to 1.0.
  11988. If 0.0 is given, then seeding continues regardless of share ratio.
  11989. * src/version_usage.cc
  11990. * src/option_processing.cc
  11991. * src/BtSetup.cc
  11992. * doc/aria2c.1.txt
  11993. * doc/aria2c.1
  11994. Fixed: Selective download is not working in BitTorrent
  11995. * src/RequestGroup.cc
  11996. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11997. * src/PieceStorage.h
  11998. * test/MockPieceStorage.h
  11999. * src/UnknownLengthPieceStorage.h
  12000. * src/DefaultPieceStorage.{h, cc}
  12001. * src/Metalink2RequestGroup.cc
  12002. * src/RequestGroup.cc
  12003. * src/Sequence.h
  12004. * test/SequenceTest.cc
  12005. * src/IntSequence.h
  12006. * src/message.h
  12007. * src/Util.{h, cc}
  12008. * test/UtilTest.cc
  12009. Added new function 'parse' to catch exception thrown by subclass's
  12010. parseArg
  12011. * src/OptionHandler.h
  12012. * src/OptionParser.cc
  12013. * src/NameMatchOptionHandler.h
  12014. * src/OptionHandlerImpl.h
  12015. * test/OptionHandlerTest.cc
  12016. Added IntegerRangeOptionHandler. Used for --listen-port and
  12017. --select-file. Now --listen-port accepts range of port.
  12018. * src/OptionHandlerFactory.cc
  12019. * src/version_usage.cc
  12020. * src/OptionHandlerImpl.h
  12021. * src/option_processing.cc
  12022. * src/BtSetup.cc
  12023. * src/PeerListenCommand.{h, cc}
  12024. * doc/aria2c.1.txt
  12025. * doc/aria2c.1
  12026. Implemented operator< for Exception class to provide easy way to print
  12027. exception stack trace.
  12028. * src/Exception.{h, cc}
  12029. * src/main.cc
  12030. * src/option_processing.cc
  12031. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12032. * src/version_usage.cc
  12033. (showVersion): Reworked.
  12034. (showUsage): Added examples.
  12035. Removed Hint for total length and file name.
  12036. * src/Metalink2RequestGroup.cc
  12037. * src/RequestGroup.{h, cc}
  12038. * src/HttpResponseCommand.cc
  12039. * src/FtpNegotiationCommand.cc
  12040. Now --follow-torrent and --follow-metalink option work properly.
  12041. * src/RequestGroup.cc
  12042. Updated man page
  12043. * doc/aria2c.1.txt
  12044. * doc/aria2c.1
  12045. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12046. Removed.
  12047. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12048. Use Segment::operator==()
  12049. * src/HttpConnection.cc
  12050. * src/Segment.h
  12051. Updated usage
  12052. * src/version_usage.cc
  12053. Added EINTR treatment.
  12054. * src/SocketCore.cc
  12055. * src/AbstractDiskWriter.cc
  12056. Rewritten.
  12057. * src/Util.cc (rangedFileCopy)
  12058. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12059. Fixed typo.
  12060. * src/version_usage.cc
  12061. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12062. Implemented. Now -c option works fine.
  12063. * src/DefaultPieceStorage.cc (markPiecesDone)
  12064. * test/DefaultPieceStorageTest.cc
  12065. Removed.
  12066. * src/SegmentMan.{h, cc}
  12067. (markAllPiecesDone)
  12068. (markPieceDone)
  12069. Synchronized po files with
  12070. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12071. * src/fr.po
  12072. * src/ru.po
  12073. * src/de.po
  12074. * src/ja.po
  12075. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12076. Added ifdef and some modifications to compile without BitTorrent,
  12077. Metalink, MessageDigest
  12078. support.
  12079. * src/PieceHashCheckIntegrityEntry.cc
  12080. * src/MetalinkEntry.h
  12081. * src/version_usage.cc
  12082. * src/main.cc
  12083. * src/DownloadEngine.{h, cc}
  12084. * src/Metalink2RequestGroup.cc
  12085. * src/Peer.cc
  12086. * src/RequestGroup.cc
  12087. * src/MetalinkHelper.cc
  12088. * test/DefaultPieceStorageTest.cc
  12089. * test/MetalinkPostDownloadHandlerTest.cc
  12090. * test/Metalink2RequestGroupTest.cc
  12091. Hide TOTAL SPD when all downloads complete.
  12092. * src/ConsoleStatCalc.cc
  12093. Log target system information.
  12094. * src/main.cc
  12095. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12096. Now --metalink-location accepts a comma-deliminated list of locations.
  12097. * src/MetalinkEntry.{h, cc}
  12098. * test/MetalinkEntryTest.cc
  12099. * src/version_usage.cc
  12100. * src/Metalink2RequestGroup.cc
  12101. * src/Xml2MetalinkProcessor.cc
  12102. * test/Xml2MetalinkProcessorTest.cc
  12103. * doc/aria2c.1.txt
  12104. * doc/aria2c.1
  12105. * src/Util.cc (toUpper)(toLower): Rewritten.
  12106. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12107. Added the ability to detect duplicate download entry which is about to
  12108. download the same file other RequestGroup is downloading.
  12109. * src/RequestGroup.cc
  12110. * src/HttpResponseCommand.cc
  12111. * src/FtpNegotiationCommand.cc
  12112. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12113. Recalculates download progress when loading a control file,
  12114. if the piece length of DownloadContext is different from the one saved
  12115. in the control file. Currently in-flight pieces are ignored.
  12116. * src/DefaultBtProgressInfoFile.cc
  12117. * test/DefaultBtProgressInfoFileTest.cc
  12118. * src/Util.{h, cc}
  12119. * test/UtilTest.cc
  12120. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12121. Do not rotate tiers in announce-list.
  12122. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12123. AnnounceList::allTiersFailed() used instead to detect whether all
  12124. tiers are tried and failed.
  12125. * test/DefaultBtAnnounceTest.cc
  12126. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12127. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12128. * test/AnnounceListTest.cc
  12129. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12130. clause. Catch RecoverableException instead of DlRetryEx instead.
  12131. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12132. Implemented checksum validation feature(1 checksum for each file)
  12133. The validation takes place after the download.
  12134. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12135. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12136. * src/CheckIntegrityCommand.cc: Changed log message.
  12137. * src/Metalink2RequestGroup.cc: Set checksum to
  12138. SingleFileDownloadContext.
  12139. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12140. PieceHashCheckIntegrity class.
  12141. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12142. PieceHashCheckIntegrity class.
  12143. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12144. * src/IteratableValidator.h: New class.
  12145. * src/message.h
  12146. * src/CheckIntegrityEntry.{h, cc}
  12147. * src/IteratableChunkChecksumValidator.{h, cc}
  12148. * src/SingleFileDownloadContext.h
  12149. * src/DownloadCommand.cc
  12150. --allow-overwrite=true is no longer needed to check file integrity
  12151. before download in BitTorrent download.
  12152. * src/RequestGroup.cc (getInitialCommand)
  12153. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12154. throws exception.
  12155. * src/RequestGroupMan.cc (getInitialCommands)
  12156. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12157. urlencode the given url inside Request::parseUrl(...)
  12158. * src/Request.{h, cc}
  12159. * src/Util.{h, cc}
  12160. * test/RequestTest.cc
  12161. Removed #!metalink3! notation support because it is deleted from
  12162. the metalink specification.
  12163. * src/Request.{h, cc}
  12164. * test/RequestTest.cc
  12165. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12166. Don't connect server before checking file integrity at startup, if
  12167. filesize and output file path are known.
  12168. * src/AbstractCommand.cc
  12169. * src/StreamFileAllocationEntry.cc
  12170. * src/Metalink2RequestGroup.cc
  12171. * src/RequestGroup.{h, cc}
  12172. * src/HttpResponseCommand.cc
  12173. * src/FtpNegotiationCommand.cc
  12174. Added DownloadFailureException. If it is thrown, RequestGroup should
  12175. halt.
  12176. * src/AbstractCommand.cc
  12177. * src/DownloadFailureException.h
  12178. * src/RequestGroup.cc
  12179. Catch RecoverableException, instead of DlAbortEx.
  12180. * src/RequestGroupMan.cc
  12181. * src/FillRequestGroupCommand.cc
  12182. * src/MetaFileUtil.cc
  12183. * src/IteratableChunkChecksumValidator.cc
  12184. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12185. getGID())
  12186. * src/CheckIntegrityCommand.cc
  12187. * src/message.h
  12188. Print gid instead of idx.
  12189. * src/RequestGroupMan.cc
  12190. Removed exception throwers declaration.
  12191. * src/DirectDiskAdaptor.{h, cc}
  12192. * src/SocketCore.{h, cc}
  12193. * src/MultiDiskAdaptor.{h, cc}
  12194. * src/HttpConnection.{h, cc}
  12195. * src/HttpResponse.{h, cc}
  12196. * src/DiskAdaptor.{h, cc}
  12197. * src/CopyDiskAdaptor.{h, cc}
  12198. * src/MultiDiskAdaptor.{h, cc}
  12199. * src/HttpHeaderProcessor.{h, cc}
  12200. * src/AbstractSingleDiskAdaptor.{h, cc}
  12201. * src/Util.{h, cc}
  12202. * test/UtilTest.cc
  12203. * src/DefaultDiskWriter.{h, cc}
  12204. * src/FtpConnection.{h, cc}
  12205. * src/AbstractDiskWriter.{h, cc}
  12206. Removed duplicate code.
  12207. * src/StreamCheckIntegrityEntry.cc
  12208. Removed unnecessary include.
  12209. * src/DiskWriter.h
  12210. Included Exception.h
  12211. * src/option_processing.cc
  12212. Included 2 files and added doc
  12213. * src/TrackerWatcherCommand.cc
  12214. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12215. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12216. Changed CheckIntegrityEntry interface so that it can define
  12217. the action when all the chunk checksums are valid.
  12218. * src/CheckIntegrityEntry.h
  12219. * src/StreamCheckIntegrityEntry.{h, cc}
  12220. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12221. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12222. to exit rather than doing seeding. So, it would be good to toggle this
  12223. behavior.
  12224. * src/CheckIntegrityCommand.cc
  12225. * src/AbstractCommand.cc
  12226. * src/RequestGroup.cc
  12227. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12228. Reflect the download length of in-flight pieces.
  12229. It makes the download length readout more precise.
  12230. * src/DefaultPieceStorage.{h, cc}
  12231. * test/DefaultPieceStorageTest.cc
  12232. * src/a2functional.h
  12233. * test/a2functionalTest.cc
  12234. Lower CPU load when --max-download-limit is used.
  12235. There is up and down in speed indicator when enabling
  12236. http-pipelining but a download goes well. I think the problem is that
  12237. because http-pipelining is enabled, DownloadCommand is created for
  12238. each segment and in its constructor, PeerStat::downloadStart() is
  12239. called. In PeerStat::downloadStart(), speed calculation object is
  12240. reseted, which makes download speed zero.
  12241. * src/DownloadCommand.cc
  12242. Rewritten using accumulate.
  12243. * src/RequestGroupMan.cc (calculateStat)
  12244. Code clearnup.
  12245. * src/FtpNegotiationCommand.cc
  12246. * src/HttpResponseCommand.cc
  12247. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12248. Fixed: Can not resume: aria2 reports download already finished.
  12249. * src/AbstractCommand.{h, cc}
  12250. * src/HttpResponseCommand.cc
  12251. * src/FtpNegotiateCommand.cc
  12252. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12253. Now a file is stored in the directory specified in .metalnk file
  12254. (file[@name]).
  12255. * src/Metalink2RequestGroup.cc
  12256. Create the directory structure when opening the file if it doesn't
  12257. exist.
  12258. * src/AbstractDiskWriter.cc
  12259. * src/Util.{h, cc}
  12260. * src/File.h
  12261. * test/UtilTest.cc
  12262. Removed file name comparison
  12263. * src/Metalink2RequestGroup.cc
  12264. * src/HttpResponseCommand.cc
  12265. Rewritten using Util::mkdirs()
  12266. * src/FileEntry.cc (setupDir)
  12267. * test/FileEntryTest.cc
  12268. Updated doc
  12269. * src/SingleFileDownloadContext.h
  12270. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12271. Now SleepCommand dispatches nextCommand when halt is requested.
  12272. It avoids a possible long wait after hitting CTRL-C.
  12273. * src/SleepCommand.{h, cc}
  12274. * src/RequestGroupAware.{h, cc}
  12275. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12276. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12277. to open listen port, then remove the port number from the tracker
  12278. request.
  12279. * src/DefaultBtAnnounce.cc
  12280. * test/DefaultBtAnnounceTest.cc
  12281. * test/MockPieceStorage.h
  12282. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12283. them more testable.
  12284. * src/DefaultBtAnnounce.{h, cc}
  12285. * src/DefaultBtContext.{h, cc}
  12286. * src/Util.{h, cc}
  12287. * test/DefaultBtAnnounceTest.cc
  12288. * test/DefaultBtContextTest.cc
  12289. * test/UtilTest.cc
  12290. Added 'B' to upload bytes readout.
  12291. * src/ConsoleStatCalc.cc
  12292. Now the listen port for BitTorrent download is opened when it is
  12293. needed.
  12294. * src/DownloadEngineFactory.cc
  12295. * src/BtSetup.{h, cc}
  12296. * src/PeerListenCommand.{h, cc}
  12297. Now an exception thrown while parsing tracker response is now logged.
  12298. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12299. called, which means no retry is made in this case, assuming a tracker
  12300. has a problem.
  12301. * src/TrackerWatcherCommand.cc
  12302. Fixed: downloading a file whose length is unkown fails.
  12303. * src/DownloadCommand.cc
  12304. Simplified prepareForNextSegment()
  12305. * src/DownloadCommand.cc
  12306. Updated
  12307. * po/POTFILES.in
  12308. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12309. Re-implemented a file listing for Metalink, which was dropped while
  12310. http/ftp/torrent integration was being implemented.
  12311. * src/MetalinkHelper.{h, cc}: New class.
  12312. * test/MetalinkHelperTest.cc
  12313. * src/main.cc
  12314. * src/Metalink2RequestGroup.cc
  12315. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12316. Added the ability to display the detailed torrent file information.
  12317. Now -S option gives not only a file listing, but also total download
  12318. length, info hash, announce URI, piece length, the number of pieces,
  12319. and mode(single or multi-torrent).
  12320. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12321. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12322. KiB)
  12323. * test/UtilTest.cc
  12324. * src/main.cc
  12325. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12326. Added ftp://USER:PASSWD@Servername automatic parsing.
  12327. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12328. _password. Recognize username and password in URI.
  12329. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12330. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12331. * src/RequestFactory.{h, cc}: Removed.
  12332. * src/AuthConfigFactory.{h, cc}: New class.
  12333. * src/FtpConnection.cc: Use AuthConfigFactory.
  12334. * src/HttpRequest.cc: Use AuthConfigFactory.
  12335. * test/HttpRequestTest.cc: Updated.
  12336. * test/RequestTest.cc: Updated.
  12337. * test/AuthConfigFactoryTest.cc: New class.
  12338. * test/RequestFactoryTest.cc: Removed.
  12339. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12340. Use RequestGroup::allDownloadFinished() to decide whether the control
  12341. file should be removed or saved.
  12342. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12343. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12344. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12345. Use File::renameTo()
  12346. * src/DefaultBtProgressInfoFile.cc
  12347. Added --no-file-allocation-limit command-line option.
  12348. * src/version_usage.cc
  12349. * src/option_processing.cc
  12350. * src/OptionHandlerFactory.cc
  12351. * src/RequestGroup.{h, cc}
  12352. * src/BtCheckIntegrityEntry.cc
  12353. * src/StreamCheckIntegrityEntry.cc
  12354. * src/prefs.h
  12355. * doc/aria2c.1.txt
  12356. * doc/aria2c.1
  12357. Now prealloc is the default value for --file-allocation option.
  12358. * src/version_usage.cc
  12359. * src/option_processing.cc
  12360. * doc/aria2c.1.txt
  12361. * doc/aria2c.1
  12362. Don't URL-encode user-agent.
  12363. * src/HttpRequest.cc
  12364. Updated translations
  12365. * po/LINGUAS: Added nl for Dutch translation.
  12366. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12367. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12368. * po/POTFILES.in: Updated.
  12369. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12370. Added the ability to recognize url-list in a torrent file.
  12371. The retrieved URLs are attached to the corresponding FileEntry.
  12372. * src/DefaultBtContext.{h, cc}
  12373. * src/FileEntry.{h, cc}
  12374. * test/DefaultBtContextTest.cc
  12375. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12376. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12377. after the download finishes.
  12378. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12379. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12380. the data smaller than block length.
  12381. A block length can be specified by constructor's argument.
  12382. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12383. Get a missing piece in the range of given FileEntry. This function is
  12384. not used in the program yet.
  12385. * src/Util.h: Added some macros.
  12386. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12387. Added HTTP/1.1 keep alive and pipelining support.
  12388. See --enable-http-keep-alive and --enable-http-pipelining option.
  12389. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12390. Segment.
  12391. * src/HttpDownloadCommand.{h, cc}
  12392. * src/OptionHandlerFactory.cc
  12393. * src/HttpConnection.{h, cc}
  12394. * src/version_usage.cc
  12395. * src/HttpInitiateConnectionCommand.cc
  12396. * src/FtpInitiateConnectionCommand.cc
  12397. * src/Segment.h
  12398. * src/HttpRequestCommand.{h, cc}
  12399. * src/option_processing.cc
  12400. * src/prefs.h
  12401. * src/HttpResponseCommand.cc
  12402. * src/SegmentMan.{h, cc}
  12403. * src/FtpNegotiateCommand.cc
  12404. * src/HttpProxyResponseCommand.cc
  12405. * src/Request.cc
  12406. * src/HttpRequest.cc
  12407. * src/DownloadCommand.cc
  12408. * test/HttpRequestTest.cc
  12409. * test/RequestTest.cc
  12410. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12411. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12412. finished.
  12413. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12414. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12415. catching it inside the method.
  12416. When no file entry is found in a metalink without querying user
  12417. preferences, throw the exception with the error message that suggests
  12418. metalink file is probably broken.
  12419. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12420. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12421. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12422. processed.
  12423. * src/RequestGroupMan.cc (removeStoppedGroup)
  12424. Added debug message.
  12425. * src/BtPostDownloadHandler.cc
  12426. * src/MetalinkPostDownloadHandler.cc
  12427. * src/PostDownloadHandler.{h, cc}
  12428. * src/RequestGroup.cc
  12429. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12430. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12431. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12432. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12433. stops and there are any unfinished or in-progress downloads.
  12434. Added the legend of "stat".
  12435. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12436. Throw exception when chunck checksum verification fails.
  12437. * src/DownloadCommand.cc (validatePieceHash): New function.
  12438. * src/PiecedSegment.{h, cc} (clear): New function.
  12439. * src/GrowSegment.{h, cc} (clear): New function.
  12440. * src/Segment.h (clear): New function.
  12441. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12442. * test/SegmentTest.cc
  12443. * test/GrowSegmentTest.cc
  12444. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12445. Do not send referer when redirected.
  12446. * src/Request.cc (redirectUrl)
  12447. * test/RequestTest.cc
  12448. * test/HttpRequestTest.cc
  12449. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12450. Implemented BitTorrent/http/ftp integrated download.
  12451. I've rewritten lots of files and now some headers have forward
  12452. class declarations to reduce compile time.
  12453. The implementation is extremely alpha stage, I recommend to use this
  12454. for testing purpose only.
  12455. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12456. Fixed the compilation error on 64bit platform.
  12457. * test/HttpHeaderProcessorTest.cc
  12458. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12459. Merged Ross's patch that fixes compilation problem in MinGW
  12460. * test/DefaultBtProgressInfoFileTest.cc
  12461. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12462. Updated fr.po by sebone
  12463. * po/fr.po
  12464. Updated man page.
  12465. * doc/aria2c.1.txt
  12466. * Release 0.11.3
  12467. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12468. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12469. failure in Metalink.
  12470. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12471. Automatically save *.aria2 control file of http/ftp download in every
  12472. 60 seconds.
  12473. * src/AutoSaveCommand.{h, cc}: New class.
  12474. * src/TimeBasedCommand.{h, cc}: New class.
  12475. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12476. Disable parameterized URI support by default. Added -P option to
  12477. enable the feature.
  12478. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12479. * src/OptionHandlerFactory.cc
  12480. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12481. Updated Japanese translation.
  12482. * po/ja.po
  12483. Updated man page.
  12484. * doc/aria2c.1.txt
  12485. * Release 0.11.3-rc
  12486. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12487. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12488. it is successful, then renamed to *.aria2.
  12489. This prevents *.aria2 file from being truncated or corrupted when
  12490. file system becomes out of space.
  12491. * src/DefaultBtProgressInfoFile.cc (save)
  12492. * src/SegmentMan.cc (save)
  12493. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12494. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12495. Reduced the fragmentation of bitfield in http/ftp download.
  12496. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12497. * test/BitfieldManTest.cc
  12498. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12499. Added the ability to disable segmented download in .metalink.
  12500. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12501. 'url' tag.
  12502. * src/MetalinkEntry.{h, cc}
  12503. * src/RequestResource.{h, cc}
  12504. * src/MetalinkRequestInfo.cc
  12505. * src/Xml2MetalinkProcessor.cc
  12506. * test/Xml2MetalinkProcessorTest.cc
  12507. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12508. Added parameterized URI support.
  12509. * src/main.cc: -Z option added.
  12510. * src/OptionHandlerFactory.cc
  12511. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12512. * src/PStringDatum.h: New class.
  12513. * src/PStringSegment.{h,cc}: New class.
  12514. * src/PStringNumLoop.h: New class.
  12515. * src/PStringSelect.h: New class.
  12516. * src/NumberDecorator.h: New class.
  12517. * src/FixedWidthNumberDecorator.h: New class.
  12518. * src/AlphaNumberDecorator.h: New class.
  12519. * src/PStringVisitor.h: New class.
  12520. * src/PStringBuildVisitor.{h,cc}: New class.
  12521. * src/ParameterizedStringParser.{h,cc}: New class.
  12522. * src/Util.{h,cc}
  12523. (isNumber): New function.
  12524. (isLowercase): New function.
  12525. (isUppercase): New function.
  12526. (alphaToNum): New function.
  12527. * test/ParameterizedStringParserTest.cc: New class.
  12528. * test/AlphaNumberDecoratorTest.cc: New class.
  12529. * test/PStringBuildVisitorTest.cc: New class.
  12530. * test/UtilTest.cc
  12531. (testIsNumber): New function.
  12532. (testIsLowercase): New function.
  12533. (testIsUppercase): New function.
  12534. (testAlphaToNum): New function.
  12535. Added '\n' after the error message
  12536. * src/RequestInfo.h (printDownloadAbortMessage)
  12537. Added auto file renaming feature in http(s)/ftp download.
  12538. * src/main.cc: Added --auto-file-renaming command-line option.
  12539. * src/OptionHandlerFactory.cc
  12540. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12541. * src/RequestGroup.{h, cc}
  12542. (shouldCancelDownloadForSafety): Rewritten
  12543. (tryAutoFileRenaming): New function.
  12544. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12545. * src/HttpResponseCommand.cc
  12546. (executeInternal): Removed the call to RequestGroupMan::
  12547. isSameFileBeingDownloaded()
  12548. * src/FtpNegotiateCommand.cc
  12549. (recvSize): Removed the call to RequestGroupMan::
  12550. isSameFileBeingDownloaded()
  12551. * test/RequestGroupTest.cc: New class.
  12552. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12553. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12554. IO.
  12555. * src/DefaultBtProgressInfoFile.cc
  12556. * src/MetaFileUtil.cc
  12557. * src/SimpleLogger.cc
  12558. * src/SegmentMan.cc
  12559. * src/Util.cc
  12560. * src/Platform.cc
  12561. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12562. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12563. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12564. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12565. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12566. Fixed the bug that prevents file allocation is not done when
  12567. dowloading multi-torrent file.
  12568. * src/AbstractDiskWriter.cc (openFile)
  12569. Increase the maximum number of -j option from 15 to 45.
  12570. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12571. Added fr.po, thanks to Charles Landemaine.
  12572. * po/fr.po
  12573. * po/LINGUAS
  12574. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12575. gcc 3.4.4 support:
  12576. * src/DefaultBtContext.cc: int32_t -> int
  12577. * src/main.cc: int -> int32_t, int32_t -> int
  12578. * src/messageDigest.h: uint32_t -> unsigned int
  12579. * src/NameResolver.h: int32_t -> int
  12580. * src/PeerConnection.cc: int -> int32_t
  12581. * src/SpeedCalc.cc: int32_t -> int
  12582. * src/TrackerUpdateCommand.h: int -> int32_t
  12583. * src/Util.cc: int32_t -> int
  12584. * src/Util.h: int32_t -> int
  12585. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12586. * test/AnnounceListTest.cc: int -> int32_t
  12587. * test/ChunkedEncodingTest.cc: int -> int32_t
  12588. * test/DataTest.cc: int -> int32_t
  12589. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12590. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12591. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12592. * test/FeatureConfigTest.cc: int -> int32_t
  12593. * test/MetalinkEntryTest.cc: int -> int32_t
  12594. * test/MockBtRequestFactory.h: int -> int32_t
  12595. * test/MockPieceStorage.h: int -> int32_t
  12596. * test/OptionTest.cc: int -> int32_t
  12597. * test/RequestTest.cc: int -> int32_t
  12598. * test/SegmentManTest.cc: int -> int32_t
  12599. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12600. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12601. Move sleep functions to Util class:
  12602. * src/Util.cc
  12603. (sleep): New function.
  12604. (usleep): New function.
  12605. * src/DownloadCommand.cc: sleep -> Util::sleep
  12606. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12607. MinGW build enhancements. The following files are added:
  12608. * src/timegm.{c,h}
  12609. Changes to support the above new files:
  12610. * configure.ac
  12611. * src/Makefile.am
  12612. * src/a2time.h
  12613. * src/Util.cc:
  12614. * src/strptime.c: Added support for %Z option.
  12615. Fixed MinGW non-blocking bug.
  12616. * src/SocketCore.cc
  12617. * src/HttpRequestCommand.cc
  12618. Miscellenous build fixes/enhancements.
  12619. * configure.ac: Added summary report.
  12620. * src/Platform.h: Tweaked #include's.
  12621. * src/a2netcompat.h: Tweaked #include's.
  12622. * src/strptime.h: Tweaked #include's.
  12623. * src/gai_strerror.c: Tweaked #include's.
  12624. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12625. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12626. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12627. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12628. Increased the initial connection size in BitTorrent download to 40.
  12629. * src/BtRuntime.h
  12630. Added the usage message of --peer-id-prefix option.
  12631. * src/main.cc
  12632. * Release 0.11.2
  12633. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12634. MessageDigestHelper is introduced in order to simplify the use
  12635. of message digest. Removed repeated code.
  12636. The message digest algorithm is now specified by string, like "sha1",
  12637. "md5".
  12638. * src/messageDigest.{h, cc}
  12639. * src/MessageDigestHelper.{h, cc}: New class.
  12640. * src/DefaultPieceStorage.cc
  12641. * src/DefaultBtContext.{h, cc}
  12642. (computeFastSet): New function.
  12643. (setInfoHash): Added for unit testing.
  12644. (setNumPieces): Added for unit testing.
  12645. * src/DefaultBtInteractive.cc
  12646. * src/BtPieceMessage.cc
  12647. * src/Peer.cc
  12648. * src/Checksum.h
  12649. * src/message.h
  12650. * src/IteratableChecksumValidator.h
  12651. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12652. inside it.
  12653. * src/SegmentMan.{h, cc}
  12654. (checkIntegrity): Removed.
  12655. * src/IteratableChunkChecksumValidator.{h, cc}
  12656. * src/Util.h
  12657. (sha1Sum): Removed.
  12658. (simpleMessageDigest): Removed.
  12659. (fileChecksum): Removed.
  12660. (computeFastSet): Removed.
  12661. * src/ShaVisitor.cc
  12662. * src/ChunkChecksum.h
  12663. * src/DownloadCommand.cc
  12664. Removed messageDigest virtual functions.
  12665. * src/MultiDiskAdaptor.{h, cc}
  12666. * src/DiskAdaptor.h
  12667. * src/ByteArrayDiskWriter.h
  12668. * src/DiskWriter.h
  12669. * src/DiskAdaptorWriter.h
  12670. * src/AbstractSingleDiskAdaptor.{h, cc}
  12671. * src/AbstractDiskWriter.{h, cc}
  12672. Fixed comilation error when message digest is disabled.
  12673. * src/MetalinkEntry.{h, cc}
  12674. * src/MetalinkRequestInfo.cc
  12675. Removed srandom and random.
  12676. * src/SimpleRandomizer.h
  12677. Added size() virtual function to DiskAdaptor
  12678. * src/MultiDiskAdaptor.h
  12679. Fixed the bug that causes that files are not opened correctly in
  12680. multi-file torrent.
  12681. * src/TorrentRequestInfo.cc
  12682. * src/MultiDiskAdaptor.cc
  12683. Added SHA256 support
  12684. * src/messageDigest.cc
  12685. * src/Xml2MetalinkProcessor.cc
  12686. Show supported message digest algorithms
  12687. * src/main.cc
  12688. Updated contact info.
  12689. * src/main.cc
  12690. Applied Ross's patch
  12691. * src/a2netcompat.h
  12692. * src/main.cc
  12693. Fixed the bug that prevents a remote metalink from not being processed
  12694. even if '-o foo.metalink' is specified.
  12695. * src/MetalinkRequestInfo.cc
  12696. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12697. Merged Dan's patch:
  12698. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12699. Use va_copy to avoid core dump on amd64:
  12700. * src/SimpleLogger.cc
  12701. Updated contact info.
  12702. * src/main.cc
  12703. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12704. digest is not available.
  12705. * src/MetalinkEntry.h
  12706. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12707. Make a2netcompat.h include a2io.h to fix compilation error:
  12708. * src/a2netcompat.h
  12709. * src/SocketCore.cc: Removed include of a2io.h
  12710. * src/Util.cc: Removed include of a2io.h
  12711. Gather time related functions to a2time.h:
  12712. * src/a2time.h: New file.
  12713. * src/DefaultPeerStorage.cc
  12714. * src/SimpleLogger.cc
  12715. * src/Util.{h, cc}
  12716. * src/SimpleRandomizer.h
  12717. * src/TimeA2.{h,cc}
  12718. * src/DownloadCommand.cc
  12719. * src/main.cc
  12720. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12721. a2netcompat.h:
  12722. * src/NameResolver.cc
  12723. Fixed compilation error without openssl:
  12724. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12725. Added default block to suppress compiler warnings:
  12726. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12727. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12728. MinGW build enhancements. The following files are added:
  12729. * src/gai_strerror.{c,h}
  12730. * src/gettimeofday.{c,h}
  12731. Changes to support the above new files:
  12732. * configure.ac
  12733. * src/Makefile.am
  12734. * src/a2netcompat.h
  12735. * src/TimeA2.cc
  12736. * src/DefaultPeerStorage.cc
  12737. * src/NameResolver.cc: removed mingw_strerror() function.
  12738. * src/SocketCore.cc: removed mingw_strerror() function.
  12739. Miscellaneous MinGW build fixes.
  12740. * src/a2io.h: Use _lseeki64() instead of lseek()
  12741. * src/common.h
  12742. * src/DefaultFileAllocator.cc
  12743. * src/GlowFileAllocator.cc
  12744. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12745. * src/NameResolver.cc
  12746. (callback): Changed int32_t to int.
  12747. (resolve): Changed int32_t to int.
  12748. * src/Platform.cc
  12749. * src/Platform.h
  12750. * test/MultiDiskWriterTest.cc
  12751. * test/PeerMessageUtilTest.cc
  12752. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12753. Other enhancements and fixes.
  12754. * src/HttpRequestCommand.cc
  12755. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12756. * src/SocketCore.cc:
  12757. (error): New function to abstract errno/WSAGetLastError().
  12758. (errorMsg): New function to abstract errno/WSAGetLastError().
  12759. (initiateSecureConnection): Added more detailed error reporting.
  12760. * src/SocketCore.h: Added private variable blocking, to allow
  12761. proper handling of OpenSSL psuedo-errors.
  12762. * src/message.h
  12763. (EX_SSL_INIT_FAILURE)
  12764. (EX_SSL_IO_ERROR)
  12765. (EX_SSL_PROTOCOL_ERROR)
  12766. (EX_SSL_UNKNOWN_ERROR)
  12767. (EX_SSL_CONNECT_ERROR)
  12768. (EX_SOCKET_BLOCKING)
  12769. (EX_SOCKET_NONBLOCKING)
  12770. (EX_SOCKET_UNKNOWN_ERROR)
  12771. * src/Util.cc
  12772. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12773. reserved name.
  12774. (httpGMT): Fixed typo.
  12775. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12776. Merged Ross's win32 patch(manually)
  12777. In the course of merging, following files are added.
  12778. * src/strptime.{h,c}
  12779. * src/libgen.{h,c}
  12780. * src/inet_aton.{h,c}
  12781. * src/Platform.{h,cc}
  12782. * src/localtime_r.{h,c}
  12783. * src/getaddrinfo.{h,c}
  12784. I've gethered network related things, and put them to following file:
  12785. * src/a2netcompat.h
  12786. Also io related things are put to following file:
  12787. * src/a2io.h
  12788. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12789. * src/message.h
  12790. (MSG_ALLOCATION_COMPLETED)
  12791. (EX_TOO_LARGE_FILE)
  12792. (EX_SIZE_MISMATCH)
  12793. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12794. (EX_INVALID_CHUNK_CHECKSUM)
  12795. (EX_INVALID_RANGE_HEADER)
  12796. * src/FileAllocationCommand.cc
  12797. * src/HttpResponse.cc
  12798. * src/RequestGroup.cc
  12799. * src/MultiDiskAdaptor.cc
  12800. * src/OptionHandlerImpl.h
  12801. * src/HttpResponseCommand.cc
  12802. * src/FtpNegotiateCommand.cc
  12803. * src/IteratableChecksumValidator.cc
  12804. * src/SegmentMan.cc
  12805. * src/ChunkChecksumValidator.cc
  12806. Added Randomizer::getRandomNumber(long int)
  12807. * src/Randomizer.h (getRandomNumber)
  12808. * src/SimpleRandomizer.h (getRandomNumber)
  12809. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12810. * src/Util.cc (randomAlpha): Use this new function.
  12811. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12812. Converted int's to in32_t. long long int's are also converted to
  12813. int64_t
  12814. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12815. Fixed the bug that prevents cookies from being sent to the server
  12816. if the domain of cookie is FQDN and starts with ".".
  12817. * src/Cookie.cc (match)
  12818. To add the ability to change peer id.
  12819. * src/DefaultBtContext.h
  12820. (_peerIdPrefix): New variable
  12821. (setPeerIdPrefix): New function.
  12822. * src/torrentRequestInfo.cc
  12823. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12824. DefaultBtContext.
  12825. * src/main.cc (main): Added peer-id-prefix command-line option.
  12826. The usage message is not added yet.
  12827. * src/DefaultBtContext.cc
  12828. (generatePeerId): Use _peerIdPrefix.
  12829. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12830. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12831. Fixed the bug that prevents filename in content-disposition from
  12832. being retrieved when filename is not quoted.
  12833. * src/Util.cc (getContentDispositionFilename)
  12834. Fixed the bug that causes infinate loop and memory leak when file open
  12835. operation failed.
  12836. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12837. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12838. Fixed the bug that causes segfault when all URIs specified are
  12839. unsupported.
  12840. * src/RequestGroupMan.cc (getInitialCommands)
  12841. Check if RequestGroup::createNextCommand() returns empty list of
  12842. commands.
  12843. * src/RequestGroup.cc (createNextCommand)
  12844. Change log level from info to error so that users can notice that
  12845. an error occurred.
  12846. Fixed the bug that causes segfault when a zero-sized file is
  12847. downloaded.
  12848. * src/BitfieldMan.cc (isAllBitSet)
  12849. Return true if bitfieldLength is 0.
  12850. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12851. * src/main.cc
  12852. (showUsage): Added 3 usage examples for metalink download.
  12853. Replace MetalinkChunkChecksum with ChunkChecksum.
  12854. * src/MetalinkChunkChecksum.h: Removed.
  12855. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12856. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12857. * src/Xml2MetalinkProcessor.cc
  12858. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12859. * src/MetalinkRequestInfo.cc (execute)
  12860. * Release 0.11.1
  12861. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12862. Reads URIs from stdin when "-i -" is specified.
  12863. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12864. * src/UriListParser.h, src/UriListParser.cc: New class.
  12865. * src/StreamUriListParser.h: New class.
  12866. * src/FileUriListParser.h: New class.
  12867. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12868. instead of UriFileListParser.
  12869. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12870. Made console readout more readable.
  12871. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12872. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12873. Fix the bug that causes -s option not to work.
  12874. * src/main.cc (main)
  12875. * src/a2algo.h: New file.
  12876. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12877. Create directory structure specified in metalink file.
  12878. * src/RequestGroup.h, src/RequestGroup.cc
  12879. (initAndOpenFile): Create a directory to store files if it does not
  12880. exist.
  12881. (getDir): New function.
  12882. Added ETA and download speed for an individual file to readout.
  12883. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12884. * src/RequestGroup.h
  12885. (calculateDownloadSpeed): New function.
  12886. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12887. Made -S option work with metalink file and provided selective download
  12888. to metalink.
  12889. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12890. (filename): Removed.
  12891. (file): New variable.
  12892. (size): Removed.
  12893. (operator=): Updated.
  12894. (getPath): New function.
  12895. (getLength): New function.
  12896. (toFileEntry): New function.
  12897. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12898. (execute): Use toStream.
  12899. (showFileEntry): Removed.
  12900. * src/MetalinkRequestInfo.h
  12901. (targetFiles): New variable.
  12902. (setTargetFiles): New variable.
  12903. * src/MetalinkRequestInfo.cc
  12904. (execute): Added the ability to print file information included in
  12905. a metalink file.
  12906. Added selective download mode to metalink.
  12907. * src/main.cc
  12908. (showUsage): Updated to denote that -S and --select-file options are
  12909. applicable to metalink.
  12910. * src/FileEntry.h
  12911. (operator=): New function.
  12912. (getBasename): New function.
  12913. (getDirname): New function.
  12914. * src/Util.h, src/Util.cc
  12915. (toStream): New function.
  12916. * src/Xml2MetalinkProcessor.cc: Updated.
  12917. Made aria2 work with metalink with directory structure.
  12918. * src/File.h, src/File.cc
  12919. (getBasename): New function.
  12920. (getDirname): New function.
  12921. * src/RequestGroup.h, src/RequestGroup.cc
  12922. (_topDir): New variable.
  12923. (setTopDir): New function.
  12924. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12925. Rewrote HTTP header parsing with stringstream.
  12926. * src/HttpConnection.h, src/HttpConnection.cc
  12927. (HttpRequestEntry): New class.
  12928. (headerBuf): Removed.
  12929. (headerBufLength): Removed.
  12930. (outstandingHttpRequests): Now its element type is
  12931. HttpRequestEntryHandle.
  12932. (findEndOfHeader): Removed.
  12933. (receiveResponse): Rewritten.
  12934. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12935. Updated doc for -j option to notice that it should be used with -i
  12936. option.
  12937. * src/main.cc (showUsage)
  12938. Removed unused classes.
  12939. * src/RequestInfo.h
  12940. (FileInfo): Removed.
  12941. (checksum): Removed.
  12942. (fileInfo): Removed.
  12943. (setChecksum): Removed.
  12944. (getChecksum): Removed.
  12945. (getFileInfo): Removed.
  12946. Use ISO units.
  12947. * src/ConsoleDownloadEngine.cc
  12948. * src/TorrentConsoleDownloadEngine.cc
  12949. * src/Util.cc (abbrevSize)
  12950. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12951. Added the default listening ports to the help message.
  12952. * src/main.cc (showUsage)
  12953. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12954. Reduce the number of calls to gettimeofday to lower CPU load.
  12955. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12956. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12957. * src/Peer.h (calculateUploadSpeed): New function.
  12958. (calculateDownloadSpeed): New function.
  12959. * src/DefaultPeerStorage.cc
  12960. (CalculateStat): Added _now variable.
  12961. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12962. and Peer::calculateUploadSpeed(const struct timeval&)
  12963. Drop connection if no request or piece message is exchanged in
  12964. a certain interval.
  12965. * src/DefaultBtInteractive.h
  12966. (btRuntime): New variable.
  12967. (inactiveCheckPoint): New variable.
  12968. (checkActiveInteraction): New function.
  12969. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12970. request or piece message is received.
  12971. (checkActiveInteraction): New function.
  12972. (doInteractionProcessing): Call checkActiveInteraction.
  12973. Fixed the bug that causes remote Metalink and Torrent files are not
  12974. processed.
  12975. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12976. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12977. Changed format of log file.
  12978. * src/SimpleLogger.cc
  12979. * Release 0.11.0
  12980. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12981. * src/AbstractCommand.cc
  12982. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12983. MSG_MAX_TRY from error to info.
  12984. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12985. * src/message.h
  12986. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12987. (MSG_DOWNLOAD_ABORTED): Added %s.
  12988. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12989. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12990. * src/PeerAbstractCommand.cc
  12991. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12992. * src/Request.h
  12993. (cookieBox): Made ShardHandle.
  12994. * src/RequestGroup.h, src/RequestGroup.cc
  12995. (createNextCommandWithAdj): New function.
  12996. * src/FileAllocationCommand.cc
  12997. (executeInternal): Use createNextCommandWithAdj().
  12998. * src/CheckIntegrityCommand.cc
  12999. (executeInternal): Use createNextCommandWithAdj().
  13000. Added --load-cookies command-option.
  13001. * src/OptionHandlerFactory.cc
  13002. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13003. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13004. Now aria2 can handle cookie's expiration date.
  13005. * src/Cookie.h (expires): Changed its type to time_t.
  13006. * src/main.cc: Added --load-cookies command-line option.
  13007. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13008. * src/Util.h, src/Util.cc (httpGMT): New function.
  13009. * src/Request.cc (Request): Initialize cookieBox using
  13010. CookieBoxFactory.
  13011. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13012. * src/CookieParser.h, src/CookieParser.cc: New class.
  13013. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13014. * src/HttpResponseCommand.cc
  13015. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13016. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13017. download.
  13018. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13019. Added -j command-line option.
  13020. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13021. * src/main.cc
  13022. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13023. Rewritten using stringstream.
  13024. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13025. Rewritten using stringstream.
  13026. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13027. Make download size shown in MB, KB.
  13028. * src/ConsoleDownloadEngine.h (sendStatistics)
  13029. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13030. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13031. Accept incoming connections if download rate is low.
  13032. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13033. (_lowestSpeedLimit): New variable.
  13034. (setLowestSpeedLimit): New function.
  13035. (execute): Accept incoming connections if download rate is low.
  13036. MAX_PEERS is ignored in this case.
  13037. Disable PREF_OUT in multiple concurrent download:
  13038. * src/RequestGroup.h, src/RequestGroup.cc
  13039. (setUserDefinedFilename): New function.
  13040. * src/DownloadEngineFactory.cc
  13041. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13042. concurrent download.
  13043. * src/DefaultSegmentManFactory.cc
  13044. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13045. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13046. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13047. Added its overloaded method.
  13048. * src/RequestGroup.h
  13049. (_numConcurrentCommand): New variable.
  13050. (setNumConcurrentCommand): New function.
  13051. * src/RequestGroup.cc
  13052. Abort download if same file is being downloaded concurrently.
  13053. * src/RequestGroup.h, src/RequestGroupMan.cc
  13054. (isSameFileBeingDownloaded): New function.
  13055. * src/HttpResponseCommand.cc (executeInternal)
  13056. * src/FtpNegotiateCommand.cc (recvSize)
  13057. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13058. * main.cc: Added help message for -i option.
  13059. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13060. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13061. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13062. * src/MetalinkEntry.h
  13063. (checksum): Changed to ChecksumHandle
  13064. * src/MetalinkRequestInfo.cc
  13065. (checksum): Changed to ChecksumHandle
  13066. * src/File.cc
  13067. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13068. * src/common.h
  13069. (DIR_OPEN_MODE): New definition
  13070. * src/RequestGroup.cc
  13071. (prepareForNextAction): Added an argument.
  13072. * src/message.h
  13073. (MSG_GOOD_CHECKSUM): New definition
  13074. (MSG_BAD_CHECKSUM): New definition
  13075. * src/HttpResponseCommand.cc
  13076. (handleDefaultEncoding): Continue download sequence in new
  13077. non-segmented download.
  13078. * src/FileAllocationEntry.h
  13079. (_nextDownloadCommand): New variable.
  13080. * src/DownloadCommand.cc
  13081. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13082. available.
  13083. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13084. * src/IteratableChecksumValidator.h,
  13085. src/IteratableChecksumValidator.cc: New class.
  13086. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13087. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13088. Change file mode to 666:
  13089. * src/common.h (OPEN_MODE): New definition.
  13090. * src/File.cc
  13091. * src/Util.cc
  13092. * src/Directry.cc
  13093. * src/AbstractDiskWriter.cc
  13094. Change the level of log message "download aborted" to debug:
  13095. * src/PeerAbstractCommand.cc (execute)
  13096. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13097. * src/TrackerWatcherCommand.cc
  13098. (createCommand): Sleep some seconds after request failed.
  13099. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13100. then abort tracker request.
  13101. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13102. * Added the simultaneous download feature.
  13103. * src/main.cc: Print "Exception caught: " when exception is caught.
  13104. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13105. * src/ActivePeerConnectionCommand.cc
  13106. * src/PeerInteractionCommand.cc
  13107. * src/BtRuntime.h
  13108. (cuidCounter): Removed.
  13109. (getNewCuid): Removed.
  13110. * src/DownloadEngineFactory.cc
  13111. * src/PeerListenCommand.cc
  13112. * src/TrackerUpdateCommand.cc
  13113. * src/PeerInitiateConnectionCommand.cc
  13114. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13115. * src/PeerAbstractCommand.cc
  13116. (onAbort): Call PeerStorage::returnPeer()
  13117. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13118. (incomingPeers): New variable.
  13119. (addIncomingPeer): New function.
  13120. (returnPeer): New function.
  13121. (onErasingPeer): New function.
  13122. (addPeer): push_back -> push_front
  13123. (getActivePeers): Rewritten.
  13124. (calculateStat): Rewritten.
  13125. * src/PeerStorage.h
  13126. (TransferStat::copy): New function.
  13127. (TransferStat::TransferStat): New function.
  13128. (TransferStat::operator=): New function.
  13129. (addIncomingPeer): New function.
  13130. (returnPeer): New function.
  13131. * src/PeerListenCommand.cc
  13132. (execute): Use PeerStorage::addIncomingPeer() instead of
  13133. Peer::addPeer().
  13134. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13135. Connect to a peer actively when download speed is lower than specified
  13136. speed in torrent download:
  13137. * src/ActivePeerConnectionCommand.h: New class.
  13138. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13139. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13140. * src/main.cc: Fixed the bug that prevents download if .netrc
  13141. doesn't exist.
  13142. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13143. To cache resolved hostname:
  13144. * src/AbstractCommand.h, src/AbstractCommand.cc
  13145. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13146. Added dns cache.
  13147. * src/FtpInitiateConnectionCommand.cc
  13148. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13149. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13150. NameResolver working without ares.
  13151. * src/TorrentRequestInfo.cc
  13152. (execute): Don't cache dns in torrent download.
  13153. * src/HttpInitiateConnectionCommand.cc
  13154. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13155. * src/DNSCache.h: New class.
  13156. * src/UrlRequestInfo.cc
  13157. (execute): Use dns cache.
  13158. In http request, suppress port number in http request header if port
  13159. is 80 or 443:
  13160. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13161. request header if port is 80 or 443.
  13162. (createProxyRequest): Allways send port number.
  13163. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13164. To add the command-line option which disables netrc support:
  13165. * src/OptionHandlerFactory.cc
  13166. (createOptionHandlers): Added PREF_NO_NETRC.
  13167. * src/main.cc: Added -n option.
  13168. * src/prefs.h (PREF_NO_NETRC): New definition.
  13169. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13170. V_TRUE.
  13171. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13172. is V_FALSE. This may get configurable in the future release.
  13173. To clear peer's error status by time basis:
  13174. * src/PeerAbstractCommand.cc
  13175. (onAbort): Call Peer::startBadCondition().
  13176. * src/Peer.h, src/Peer.cc
  13177. (error): Removed.
  13178. (_badConditionStartTime): New variable.
  13179. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13180. (startBadCondition): New function.
  13181. (isGood): New function.
  13182. * src/DefaultPeerStorage.cc
  13183. (addPeer): Use Peer::isGood().
  13184. (FindFinePeer): Use Peer::isGood().
  13185. Always include port number in http request header:
  13186. * src/HttpRequest.cc (getHostText): Always include port number in
  13187. http request header.
  13188. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13189. To the ability to read options from a config file:
  13190. * src/main.cc: Command-line parameter validation is delegated to
  13191. OptionHandler class.
  13192. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13193. * src/Option.h, src/Option.cc (clear): New function.
  13194. * src/OptionParser.h, src/OptionParser.cc: New class.
  13195. * src/OptionHandler.h: New class.
  13196. * src/NameMatchOptionHandler.h: New class.
  13197. * src/OptionHandlerImpl.h: New classes.
  13198. * src/prefs.h: '_' -> '-'
  13199. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13200. (FTP_PASV): New definition.
  13201. * src/Util.h, src/Util.cc (getRealSize): New function.
  13202. To disable netrc support if .netrc file does not have correct
  13203. permissions:
  13204. * src/File.h, src/File.cc (mode): New function.
  13205. To prevent confidential information to be logged:
  13206. * src/HttpConnection.h, src/HttpConnection.cc
  13207. (eraseConfidentialInfo): New function.
  13208. (sendRequest): Call eraseConfidentialInfo().
  13209. (sendProxyRequest): Call eraseConfidentialInfo().
  13210. * src/main.cc: Validate permissions of .netrc file.
  13211. To add --user-agent command-line option:
  13212. * src/main.cc: Added new command line option: --user-agent
  13213. * src/prefs.h (PREF_USER_AGENT): New definition.
  13214. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13215. parameter to HttpRequest object.
  13216. * src/AbstractProxyRequestCommand.cc
  13217. (executeInternal): Set user-agent option parameter to HttpRequest
  13218. object.
  13219. Marged the patches from Dan Fandrich.
  13220. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13221. Use filename and size from Metalink file instead of sending HEAD
  13222. request:
  13223. * src/UrlRequestInfo.h
  13224. (_filename): New variable.
  13225. (_totalLength): New variable.
  13226. (setTotalLength): New variable.
  13227. (setFilename): New variable.
  13228. * src/MetalinkRequestInfo.cc
  13229. (execute): Set filename and size to UrlRequestInfo
  13230. * src/UrlRequestInfo.cc
  13231. (execute): Use filename and size from Metalink instead of seding
  13232. HEAD request to servers.
  13233. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13234. To add the ability to resume downloading a partially downloaded file
  13235. which is downloaded from the beginning:
  13236. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13237. takes this role.
  13238. * src/main.cc: Added -c option.
  13239. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13240. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13241. * src/prefs.h (PREF_CONTINUE): New definition.
  13242. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13243. * src/DefaultDiskWriter.cc
  13244. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13245. * src/AbstractDiskWriter.h
  13246. (glowFileAllocator): New variable.
  13247. * src/AbstractDiskWriter.cc
  13248. (openExistingFile): Now preallocate file space from the end of the
  13249. existing file if totalLength argument is specified and grater than 0.
  13250. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13251. to download exists in local, continue the download of the file.
  13252. --allow-overwrite=true is assumed in this context.
  13253. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13254. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13255. Throw exception if --check-integrity=true is specified but chunk
  13256. checksums are not provided:
  13257. * src/UrlRequestInfo.cc
  13258. Do not print URLs to stdout:
  13259. * src/UrlRequestInfo.cc
  13260. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13261. * src/Request.h: Use AuthResolver to get authentication information.
  13262. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13263. set to RequestFactory object.
  13264. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13265. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13266. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13267. create Request object.
  13268. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13269. To integrate Netrc into exsiting classes:
  13270. * src/Request.h
  13271. (_userDefinedAuthConfig): New variable.
  13272. (findNetrcAuthenticator): New function.
  13273. (segment): Removed.
  13274. (setUserDefinedAuthConfig): New function.
  13275. (resolveHttpAuthConfigItem): New function.
  13276. (resolveFtpAuthConfigItem): New function.
  13277. (resolveHttpProxyAuthConfigItem): New function.
  13278. * src/HttpRequest.h
  13279. (authConfig): Removed.
  13280. (proxyAuthConfig): Removed.
  13281. (setAuthConfig): Removed.
  13282. (setProxyAuthConfig): Removed.
  13283. * src/UrlRequest.h
  13284. (getHeadResult): Added a parameter: authConfigHandle
  13285. * src/common.h
  13286. (SingletonHolder.h): New include.
  13287. * src/main.cc
  13288. (Netrc.h): New include.
  13289. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13290. Added initial value of PREF_NETRC_PATH.
  13291. Added the initialization of netrc.
  13292. * src/AuthConfig.h: New class.
  13293. * src/prefs.h
  13294. (PREF_NETRC_PATH): New definition.
  13295. * src/HttpAuthConfig.h: Removed.
  13296. * src/Netrc.cc
  13297. (getRequiredNextToken): New function.
  13298. (skipMacdef): New function.
  13299. (parse): Rewritten.
  13300. * src/Netrc.h
  13301. (getRequiredNextToken): New function.
  13302. (skipMacdef): New function.
  13303. * src/Util.h, src/Util.cc
  13304. (getHomeDir): New function.
  13305. * src/TrackerWatcherComand.cc
  13306. (createRequestCommand): Use AuthConfig.
  13307. * src/FtpConnection.cc
  13308. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13309. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13310. * src/Request.cc
  13311. (findNetrcAuthenticator): New function.
  13312. (resolveHttpAuthConfigItem): New function.
  13313. (resolveFtpAuthConfigItem): New function.
  13314. (resolveHttpProxyAuthConfigItem): New function.
  13315. * src/UrlRequestInfo.cc: Use AuthConfig.
  13316. * src/HttpRequest.cc
  13317. (createRequest): Use authConfig.
  13318. (getProxyAuthString): Use authConfig.
  13319. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13320. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13321. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13322. To reduce overhead to find commands whose socket is either
  13323. readable or writable in the download engine loop:
  13324. * src/Command.h, src/Command.cc
  13325. (STATUS): New enum.
  13326. (status): New variable.
  13327. (statusMatch): New function.
  13328. (setStatusActive): New function.
  13329. (setStatusInactive): New function.
  13330. * src/DownloadEngine.h, src/DownloadEngine.cc
  13331. (executeCommand): New function.
  13332. (run): Simplified.
  13333. (waitData): Call Command::setStatusActive() when command's socket is
  13334. readable or writable.
  13335. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13336. To handle Segment as SegmentHandle:
  13337. * src/AbstractCommand.cc (execute): Rewritten.
  13338. * src/SegmentMan.h: Segment -> SegmentHandle
  13339. Introducded HttpResponse class, HttpRequest class to improve code
  13340. extensiveness and make it clear:
  13341. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13342. HttpResponse class.
  13343. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13344. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13345. * src/HttpConnection.cc: Contruction of http request were moved to
  13346. HttpRequest class.
  13347. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13348. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13349. * src/HttpAuthConfig.h: New class.
  13350. * src/Range.h: New class.
  13351. To make FtpTunnel{Request, Response}Command and
  13352. HttpProxy{Request, Response}Command derived from
  13353. AbstractProxy{Request, Response}Command:
  13354. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13355. Derived from AbstractProxyRequestCommand class.
  13356. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13357. Derived from AbstractProxyResponseCommand class.
  13358. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13359. Derived from AbstractProxyRequestCommand class.
  13360. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13361. Derived from AbstractProxyResponseCommand class.
  13362. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13363. : New class.
  13364. * src/AbstractProxyResponseCommand.h,
  13365. src/AbstractProxyResponseCommand.cc: New class.
  13366. To add netrc support:
  13367. * src/Netrc.h, src/Netrc.cc: New class.
  13368. * src/Util.h, src/Util.cc (split): New function.
  13369. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13370. "Content-Range" header instead of "Range" header.
  13371. * src/HttpHeader.h
  13372. (getStatus): Removed.
  13373. (setStatus): Removed.
  13374. * src/Segment.h
  13375. (getPositionToWrite): New function.
  13376. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13377. * src/HttpHeader.h
  13378. (Range.h): New include.
  13379. (status): New variable.
  13380. (HttpHeader): Initialized status with 0.
  13381. (getStatus): New function.
  13382. (setStatus): New function.
  13383. (getRange): New function.
  13384. (HttpHeaderHandle): New function.
  13385. * src/HttpHeader.cc
  13386. (getRange): New function.
  13387. * src/Request.h
  13388. (RequestWeakHandle): New definition.
  13389. * src/HttpConnection.h
  13390. (HttpConnectionHandle): New type definition.
  13391. * src/HttpConnection.cc
  13392. (receiveResponse): Set HTTP status to headers.
  13393. * src/main.cc
  13394. (showUsage): Fixed typo.
  13395. * src/Segment.h
  13396. (SegmentHandle): New type definition.
  13397. * src/BitfieldMan.h
  13398. (getMissingUnusedLength): New function.
  13399. * src/BitfieldMan.cc
  13400. (getMissingUnusedLength): New function.
  13401. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13402. To fix static initialization order problem:
  13403. * src/BitfieldManFactory.h
  13404. (defaultRandomizer): Removed.
  13405. (factory): New variable.
  13406. (getNewFactory): Removed.
  13407. (getFactoryInstance): New function.
  13408. (setDefaultRandomizer): Rewritten.
  13409. (getDefaultRandomizer): Rewritten.
  13410. * src/BitfieldManFactory.cc
  13411. (defaultRandomizer): Removed.
  13412. (factory): Initialized to 0.
  13413. (BitfieldManFactory): Initialized randomizer to 0.
  13414. * src/DefaultPieceStorage.cc
  13415. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13416. * src/Peer.cc
  13417. (Peer): getNewFactory() -> getFactoryInstance()
  13418. * src/SegmentMan.cc
  13419. (initBitfield): getNewFactory() -> getFactoryInstance()
  13420. * src/Piece.cc
  13421. (Piece): getNewFactory() -> getFactoryInstance()
  13422. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13423. To fix the bug that causes crash on Max OS X:
  13424. * src/SimpleRandomizer.h
  13425. (getInstance): Create new instance if the static variable is null.
  13426. * src/SimpleRandomizer.cc
  13427. (randomizer): Initialized to 0.
  13428. * src/BitfieldManFactory.h
  13429. (getNewFactory): Removed the call to setRandomizer().
  13430. To fix the miscalculation of the range of checksum:
  13431. * src/BitfieldMan.h
  13432. (isBitSetOffsetRange): New function.
  13433. * src/BitfieldMan.cc
  13434. (isBitSetOffsetRange): New function.
  13435. * src/SegmentMan.cc
  13436. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13437. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13438. * Release 0.10.1
  13439. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13440. To lower CPU usage in BitTorrent download when --max-upload-limit
  13441. command-line option specified:
  13442. * src/DefaultBtMessageDispatcher.cc
  13443. (sendMessages): Calculate uploading speed only when current message
  13444. is uploading data and is not sent yet.
  13445. * src/DefaultPeerStorage.h
  13446. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13447. * src/HttpResponseCommand.cc
  13448. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13449. This fixes compile error in Soralis 10.
  13450. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13451. To fix segfault in Metalink download:
  13452. * src/UrlRequestInfo.h
  13453. (filename): Removed.
  13454. (totalLength): Removed.
  13455. (setTotalLength): Removed.
  13456. (setFilename): Removed.
  13457. * src/MetalinkRequestInfo.cc
  13458. (execute): Do not set filename and totalLength to reqInfo.
  13459. Set chunk checksum to reqInfo if it is not null.
  13460. * src/HttpResponseCommand.cc
  13461. (executeInternal): Fixed filename in log.
  13462. (handleDefaultEncoding): Removed the call to initBitfield() and
  13463. markAllPiecesDone().
  13464. (handleOtherEncoding): Added HEAD method handling.
  13465. * src/FtpNegotiateCommand.cc
  13466. (executeInternal): Added SEQ_HEAD_OK handling.
  13467. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13468. return false.
  13469. * src/FtpNegotiateCommand.h
  13470. (SEQ_HEAD_OK): New definition.
  13471. * src/SegmentMan.cc
  13472. (initBitfield): Delete bitfield.
  13473. (isChunkChecksumValidationReady): Fixed the condition.
  13474. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13475. works fine.
  13476. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13477. * src/Xml2MetalinkProcessor.h
  13478. (xpathExists): New function.
  13479. * src/Xml2MetalinkProcessor.cc
  13480. (xpathExists): New function.
  13481. Not to send HEAD request if filename and size are available in Metalink
  13482. file:
  13483. * src/UrlRequestInfo.h
  13484. (filename): New variable.
  13485. (totalLength): New variable.
  13486. (setTotalLength): New function.
  13487. (setFilename): New function.
  13488. * src/MetalinkRequestInfo.cc
  13489. (execute): Set filename and size to UrlRequestInfo.
  13490. * src/MetalinkEntry.cc
  13491. (MetalinkEntry): Initialize size with 0.
  13492. * src/UrlRequestInfo.cc
  13493. (execute): Set filename and size to SegmentMan.
  13494. Not to download rest of the files after selected files are downloaded
  13495. in BitTorrent:
  13496. * src/PieceStorage.h
  13497. (allDownloadFinished): New function.
  13498. * src/DefaultBtAnnounce.cc
  13499. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13500. downloadFinished.
  13501. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13502. * src/DefaultPieceStorage.cc
  13503. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13504. Commented out the call to finishSelectiveDownloadingMode().
  13505. (downloadFinished): Call isFilteredAllBitSet() instead of
  13506. isAllBitSet().
  13507. (allDownloadFinished): New function.
  13508. * src/DefaultBtInteractive.cc
  13509. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13510. downloadFinished().
  13511. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13512. * src/TorrentDownloadEngine.cc
  13513. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13514. * src/BitfieldMan.h
  13515. (isFilteredAllBitSet): New function.
  13516. * src/ShareRatioSeedCriteria.h
  13517. (PieceStorage.h): New include.
  13518. (pieceStorage): New variable.
  13519. (evaluate):
  13520. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13521. * src/BitfieldMan.cc
  13522. (isFilteredAllBitSet): New function.
  13523. (isAllBitSet): Filter is not took into account.
  13524. Rename --force-truncate as --allow-overwrite:
  13525. * src/TorrentRequestInfo.cc
  13526. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13527. * src/main.cc
  13528. (showUsage): --force-truncate -> --allow-overwrite
  13529. * src/message.h
  13530. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13531. * src/prefs.h
  13532. (PREF_FORCE_TRUNCATE): Removed.
  13533. (PREF_ALLOW_OVERWRITE): New definition.
  13534. * src/SegmentMan.cc
  13535. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13536. * src/MetalinkRequestInfo.cc
  13537. (execute): Queueing message are now logged in info level.
  13538. * src/common.h
  13539. (LONG_LONG_MAX): Removed.
  13540. (LONG_LONG_MIN): Removed.
  13541. * src/HttpResponseCommand.cc
  13542. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13543. * src/FtpNegotiateCommand.cc
  13544. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13545. * src/main.cc
  13546. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13547. command-line option.
  13548. (main): Added --check-integriy and --realtime-chunk-checksum
  13549. command-line option.
  13550. --force-truncate -> --allow-overwrite
  13551. Set initial value of --check-integrity option to false.
  13552. Don't show usage when error occurs while persing command-line options.
  13553. Removed deprecated --upload-limit option.
  13554. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13555. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13556. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13557. * src/BtAllowedFastMessage.cc:
  13558. * src/BtBitfieldMessage.cc
  13559. * src/BtCancelMessage.cc
  13560. * src/BtChokeMessage.cc
  13561. * src/BtHaveAllMessage.cc
  13562. * src/BtHaveMessage.cc
  13563. * src/BtHaveNoneMessage.cc
  13564. * src/BtInterestedMessage.cc
  13565. * src/BtNotInterestedMessage.cc
  13566. * src/BtPieceMessage.cc
  13567. * src/BtPortMessage.cc
  13568. * src/BtRejectMessage.cc
  13569. * src/BtRequestMessage.cc
  13570. * src/BtSuggestPieceMessage.cc
  13571. * src/BtUnchokeMessage.cc
  13572. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13573. files are affected.
  13574. * src/ChunkChecksumValidator.cc
  13575. * src/SegmentMan.cc
  13576. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13577. To add chunk checksum validation:
  13578. * src/MetalinkEntry.h
  13579. (MetalinkChunkChecksum.h): New include.
  13580. (chunkChecksum): New variable.
  13581. * src/Request.h
  13582. (method): New variable.
  13583. (setMethod): New function.
  13584. (getMethod): New function.
  13585. (METHOD_GET): New static constant.
  13586. (METHOD_HEAD): New static constant.
  13587. * src/Xml2MetalinkProcessor.h
  13588. (getPieceHash): New function.
  13589. * src/PieceStorage.h
  13590. (markAllPiecesDone): New function.
  13591. (checkIntegrity): New function.
  13592. * src/FileAllocator.h
  13593. (NullFileAllocationMonitor.h): New include.
  13594. (FileAllocator): Initialize fileAllocationMonitor with new
  13595. NullFileAllocationMonitor().
  13596. * src/MultiDiskAdaptor.h
  13597. (messageDigest.h): Remove include.
  13598. (ctx): Removed.
  13599. (hashUpdate): Added ctx.
  13600. (MultiDiskAdaptor): Removed ctx.
  13601. (sha1Sum): Renamed as messageDigest.
  13602. (messageDigest): New function.
  13603. * src/UrlRequestInfo.h
  13604. (HeadResult): New class.
  13605. (digestAlgo): New variable.
  13606. (chunkChecksumLength): New variable.
  13607. (chunkChecksums): New variable.
  13608. (getHeadResult): New function.
  13609. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13610. (setDigestAlgo): New function.
  13611. (setChunkChecksumLength): New function.
  13612. (setChunkChecksums): New function.
  13613. * src/DefaultPieceStorage.cc
  13614. (DiskAdaptorWriter.h): New include.
  13615. (ChunkChecksumValidator.h): New include.
  13616. (markAllPiecesDone): New function.
  13617. (checkIntegrity): New function.
  13618. * src/DefaultBtContext.h
  13619. (getPieceHashes): New function.
  13620. * src/TorrentRequestInfo.cc
  13621. (execute): Try to validate chunk checksum if file already exists and
  13622. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13623. * src/messageDigest.h
  13624. (~MessageDigestContext): Added digestFree().
  13625. * src/MetalinkRequestInfo.cc
  13626. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13627. * src/DiskAdaptor.h
  13628. (messageDigest.h): New include.
  13629. (sha1Sum): Renamed as messageDigest.
  13630. (messageDigest): New function.
  13631. * src/DownloadCommand.h
  13632. (PeerStat.h): New include.
  13633. (maxDownloadSpeedLimit): New variable.
  13634. (startupIdleTime): New variable.
  13635. (lowestDownloadSpeedLimit): New variable.
  13636. (peerStat): New variable.
  13637. (setMaxDownloadSpeedLimit): New function.
  13638. (setStartupIdleTime): New function.
  13639. (setLowestDownloadSPeedLimit): New function.
  13640. * src/BtContext.h
  13641. (getPieceHashes): New function.
  13642. * src/main.cc
  13643. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13644. option to true for testing purpose.
  13645. * src/BtPieceMessage.cc
  13646. (checkPieceHash): Use messageDigest
  13647. * src/DownloadEngine.cc
  13648. (SetDescriptor): Removed.
  13649. (AccumulateActiveCommand): Removed.
  13650. (waitData): Rewritten.
  13651. (updateFdSet): Rewritten.
  13652. * src/MultiDiskAdaptor.cc
  13653. (hashUpdate): Added ctx.
  13654. (sha1Sum): Renamed as messageDigest.
  13655. (messageDigest): New function.
  13656. * src/BitfieldMan.h
  13657. (isBitRangeSet): New function.
  13658. (unsetBitRange): New function.
  13659. * src/ByteArrayDiskWriter.h
  13660. (sha1Sum): Renamed as messageDigest.
  13661. (messageDigest): New function.
  13662. * src/ConsoleDownloadEngine.cc
  13663. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13664. * src/DiskWriter.h
  13665. (messageDigest.h): New include.
  13666. (sha1Sum): Renamed as messageDigest.
  13667. (messageDigest): New function.
  13668. * src/ChunkChecksumValidator.h: New class.
  13669. * src/DiskAdaptorWriter.h: New class.
  13670. * src/prefs.h
  13671. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13672. (PREF_CHECK_INTEGRITY): New definition.
  13673. * src/HttpResponseCommand.cc
  13674. (handleDefaultEncoding): Added method "HEAD" handling.
  13675. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13676. (handleOtherEncoding):
  13677. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13678. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13679. startupIdleTime, lowestDownloadSpeedLimit to command.
  13680. * src/SegmentMan.h
  13681. (getSegmentEntryByIndex): New function.
  13682. (getSegmentEntryByCuid): New function.
  13683. (getSegmentEntryIteratorByCuid): New function.
  13684. (diskWriter): DiskWriter -> DiskWriterHandle
  13685. (pieceHashes): New variable.
  13686. (chunkHashLength): New variable.
  13687. (digestAlgo): New variable.
  13688. (FindPeerStat): Removed.
  13689. (getPeerStat): Rewritten.
  13690. (markAllPiecesDone): New function.
  13691. (checkIntegrity): New function.
  13692. (tryChunkChecksumValidation): New function.
  13693. (isChunkChecksumValidationReady): New function.
  13694. * src/BitfieldMan.cc
  13695. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13696. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13697. blocks to 0.
  13698. (isBitRangeSet): New function.
  13699. (unsetBitRange): New function.
  13700. * src/FtpNegotiateCommand.cc
  13701. (executeInternal): Set maxDownloadSpeedLimit,
  13702. startupIdleTime, lowestDownloadSpeedLimit to command.
  13703. (recvSize): Added method "HEAD" handling.
  13704. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13705. * src/AbstractSingleDiskAdaptor.cc
  13706. (sha1Sum): Renamed as messageDigest.
  13707. (messageDigest): New function.
  13708. * src/AbstractSingleDiskAdaptor.h
  13709. (sha1Sum): Renamed as messageDigest.
  13710. (messageDigest): New function.
  13711. * src/Util.h
  13712. (indexRange): New function.
  13713. * src/MetalinkEntry.cc
  13714. (MetalinkEntry): Initialized chunkChecksum to 0.
  13715. * src/ShaVisitor.cc
  13716. (~ShaVisitor): Removed the call to ctx.digestFree().
  13717. * src/SegmentMan.cc
  13718. (ChunkChecksumValidator.h): New include.
  13719. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13720. to DIGEST_ALGO_SHA1.
  13721. (~SegmentMan): Removed diskWriter.
  13722. (FindSegmentEntryByIndex): Removed.
  13723. (FindSegmentEntryByCuid): Removed.
  13724. (checkoutSegment): Rewritten.
  13725. (findSlowerSegmentEntry): Rewritten.
  13726. (getSegment): Rewritten.
  13727. (updateSegment): Rewritten.
  13728. (completeSegment): Rewritten.
  13729. (markAllPiecesDone): New function.
  13730. (checkIntegrity): New function.
  13731. (isChunkChecksumValidationReady): New function.
  13732. (tryChunkChecksumValidation): New function.
  13733. * src/Xml2MetalinkProcessor.cc
  13734. (getEntry): Get size and set it to entry.
  13735. Get chunk checksum and set it to entry.
  13736. (getPieceHash): New function.
  13737. * src/Util.cc
  13738. (sha1Sum): Removed ctx.digestFree()
  13739. (fileChecksum): Removed ctx.digestFree()
  13740. (indexRange): New function.
  13741. * src/Request.cc
  13742. (METHOD_GET): New variable.
  13743. (METHOD_HEAD): New variable.
  13744. (Request): Added method.
  13745. * src/UrlRequestInfo.cc
  13746. (FatalException.h): New include.
  13747. (message.h): New include.
  13748. (operator<<): Added operator<< for class HeadResult.
  13749. (getHeadResult): New function.
  13750. (execute): Get filename and size in separate download engine.
  13751. * src/ChunkChecksumValidator.cc: New class.
  13752. * src/DownloadCommand.cc:
  13753. (DownloadCommand): Added peerStat.
  13754. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13755. the value from Option.
  13756. The buffer size is now 16KB.
  13757. Use peerStat member instead of getting it from SegmentMan.
  13758. Use startupIdleTime member instead of gettingit from Option.
  13759. Added chunk checksum validation.
  13760. * src/AbstractDiskWriter.cc
  13761. (AbstractDiskWriter): Removed ctx.
  13762. (~AbstractDiskWriter): Removed ctx.digestFree()
  13763. (writeDataInternal): Returns the return value of write.
  13764. (readDataInternal): Returns the return value of read.
  13765. (sha1Sum): Renamed as messageDigest
  13766. (messageDigest): New function.
  13767. * src/AbstractDiwkWriter.h
  13768. (messageDigest.h): Removed include.
  13769. (ctx): Removed.
  13770. (sha1Sum): Renamed as messageDigest
  13771. (messageDigest): New function.
  13772. * src/DefaultPieceStorage.h
  13773. (markAllPiecesDone): New function.
  13774. (checkIntegrity): New function.
  13775. * src/NullFileAllocationMonitor.h: New class.
  13776. * src/MetalinkChunkChecksum.h: New class.
  13777. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13778. To decrease CPU usage in bittorrent download, calculation results in
  13779. BitfieldMan were cached and realtime fetching PeerObject was removed
  13780. with WeakHandle introduced. Option values are set to the objects
  13781. by setter before download begins.
  13782. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13783. * src/DefaultBtRequestFactory.h
  13784. (dispatcher): BtMessageDispatcherHandle ->
  13785. BtMessageDispatcherWeakHandle.
  13786. (messageFactory): New variable.
  13787. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13788. BtMessageDispatcherWeakHandle.
  13789. (setBtMessageFactory): New function.
  13790. * src/DefaultBtMessageDispatcher.cc:
  13791. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13792. from Option.
  13793. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13794. feating the value from Option.
  13795. Use messageFactory member.
  13796. * src/PeerInteractionCommand.cc
  13797. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13798. Add reverse dependencies to factory object.
  13799. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13800. dispatcher.
  13801. Set messageFactory to receiver.
  13802. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13803. btInteractive.
  13804. Set receiver to peerObject.
  13805. Set maxDownloadSpeedLimit to this.
  13806. (executeInternal): Use maxDownloadSpeedLimit member.
  13807. * src/BtChokeMessage.cc
  13808. (doReceivedAction): Use dispatcher, requestFactory member.
  13809. (onSendComplete): Use dispatcher member.
  13810. * src/PeerInteractionCommand.h
  13811. (maxDownloadSpeedLimit): New variable.
  13812. * src/DefaultBtMessageReceiver.h
  13813. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13814. (dispatcher):
  13815. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13816. (messageFactory): New variable.
  13817. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13818. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13819. (setDispatcher):
  13820. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13821. (setBtMessageFactory): New function.
  13822. * src/DefaultBtInteractive.cc
  13823. (initiateHandshake): Use messageFactory member.
  13824. (addBitfieldMessageToQueue): Use messageFactory member.
  13825. (addAllowedFastMessageToQueue): Use messageFactory member.
  13826. (decideChoking): Use messageFactory member.
  13827. (checkHave): Use messageFactory member.
  13828. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13829. (receiveMessages): Use maxDownloadSpeedLimit member.
  13830. (decideInterest): Use messageFactory member.
  13831. * src/BtRequestMessage.cc
  13832. (doReceivedAction): Use messageFactory, dispatcher member.
  13833. (onQueued): Use dispatcher member.
  13834. * src/BtPieceMessage.cc
  13835. (doReceivedAction): Use dispatcher member.
  13836. (send): Use peerConnection member.
  13837. (onWrongPiece): Use requestFactory member.
  13838. (handleChokingEvent): Use messageFactory, dispatcher member.
  13839. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13840. * src/BtMessageDispatcher.h
  13841. (BtMessageDispatcherWeakHandle): New type definition.
  13842. * src/SimpleBtMessage.cc
  13843. (send): Use peerConnection member.
  13844. * src/BtRejectMessage.cc
  13845. (doReceivedAction): Use dispatcher member.
  13846. * src/DefaultBtMessageDispatcher.h
  13847. (Option.h): Removed include.
  13848. (messageFactory): New variable.
  13849. (option): Removed.
  13850. (maxUploadSpeedLimit): New variable.
  13851. (requestTimeout): New variable.
  13852. (DefaultBtMessageDispatcher): Removed option.
  13853. Added maxUploadSpeedLimit, requestTimeout.
  13854. (setOption): Removed.
  13855. (getOption): Removed.
  13856. (setMaxUploadSpeedLimit): New function.
  13857. (setRequestTimeout): New function.
  13858. (setBtMessageFactory): New function.
  13859. * src/DefaultBtInteractive.h
  13860. (btMessageReceiver):
  13861. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13862. (dispatcher):
  13863. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13864. (btRequestFactory):
  13865. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13866. (peerConnection):
  13867. PeerConnectionHandle -> PeerConnectionWeakHandle
  13868. (messageFactory): New variable.
  13869. (option): Removed.
  13870. (keepAliveInterval): New variable.
  13871. (maxDownloadSpeedLimit): New variable.
  13872. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13873. (setBtMessageReceiver):
  13874. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13875. (setDispatcher):
  13876. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13877. (setBtRequestFactory):
  13878. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13879. (setPeerConnection):
  13880. PeerConnectionHandle -> PeerConnectionWeakHandle
  13881. (setOption): Removed.
  13882. (setKeepAliveInterval): New function.
  13883. (setMaxDownloadSpeedLimit): New function.
  13884. (setBtMessageFactory): New function.
  13885. * src/BitfieldMan.h
  13886. (cachedNumMissingBlock): New variable.
  13887. (cachedNumFilteredBlock): New variable.
  13888. (cachedCompletedLength): New variable.
  13889. (cachedFilteredComletedLength): New variable.
  13890. (cachedFilteredTotalLength): New variable.
  13891. (countMissingBlockNow): New function.
  13892. (countFilteredBlockNow): New function.
  13893. (getFilteredTotalLengthNow): New function.
  13894. (getCompletedLengthNow): New function.
  13895. (getFilteredCompletedLengthNow): New function.
  13896. (updateCache): New function.
  13897. * src/AbstractBtMessage.h
  13898. (BtMessageDispatcher.h): New include.
  13899. (PeerConnection.h): New include.
  13900. (BtRequestFactory.h): New include
  13901. (BtMessageFactory.h): New include.
  13902. (dispatcher): New variable.
  13903. (messageFactory): New variable.
  13904. (peerConnection: New variable.
  13905. (setBtMessageDispatcher): New function.
  13906. (setPeerConnection): New function.
  13907. (setBtMessageFactory): New function.
  13908. (setBtRequestFactory): New function.
  13909. * src/DefaultBtMessageFactory.cc
  13910. (setCommonProperty): Set dispatcher, requestFactory, this,
  13911. peerConnection to msg.
  13912. * src/BtRegistry.h
  13913. (BT_MESSAGE_RECEIVER): New macro.
  13914. * src/PeerConnection.h
  13915. (PeerConnectionWeakHandle): New type definition.
  13916. * src/BtMessageFactory.h
  13917. (BtMessageFactoryWeakHandle): New type definition.
  13918. * src/BitfieldMan.cc
  13919. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13920. cachedCompletedLength, cachedFilteredComletedLength,
  13921. cachedFilteredTotalLength.
  13922. Call updateCache().
  13923. (countMissingBlock): Return cachedNumMissingBlock.
  13924. (countMissingBlockNow): New function.
  13925. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13926. (countFilteredBlockNow): New function.
  13927. (setBit): Call updateCache().
  13928. (unsetBit): Call updateCache().
  13929. (setBitfield): Call updateCache().
  13930. (clearAllBit): Call updateCache().
  13931. (setAllBit): Use setBitInternal instead of setBit.
  13932. Call updateCache().
  13933. (addFilter): Call updateCache().
  13934. (enableFilter): Call updateCache().
  13935. (disableFilter): Call updateCache().
  13936. (clearFilter): Call updateCache().
  13937. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13938. (getFilteredTotalLengthNow): New function.
  13939. (getCompletedLength): Return cachedCompletedLength.
  13940. (getCompletedLengthNow): New function.
  13941. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13942. (getFilteredCompletedLengthNow): New function.
  13943. (updateCache): New function.
  13944. * src/BtMessageReceiver.h
  13945. (BtMessageReceiverWeakHandle): New type definition.
  13946. * src/DefaultBtMessageReceiver.cc
  13947. (receiveHandshake): Use messageFactory member.
  13948. (sendHandshake): Use messageFactory member.
  13949. (receiveMessage): Use messageFactory member.
  13950. * src/DefaultBtMessageFactory.h
  13951. (dispatcher): New variable.
  13952. (requestFactory): New variable.
  13953. (peerConnection): New variablle.
  13954. (setBtMessageDispatcher): New function.
  13955. (setBtRequestFactory): New function.
  13956. (setPeerConnection): New function.
  13957. * src/SharedHandle.h
  13958. (RefCount): New class.
  13959. (WeakHandle): New class.
  13960. * src/PeerObject.h
  13961. (BtMessageReceiver.h): New include.
  13962. (PeerObject): Added btMessageReceiver.
  13963. (btMessageReceiver): New variable.
  13964. * src/Util.cc
  13965. (countBit): Simplified.
  13966. * src/BtCancelMessage.cc
  13967. (doReceivedAction): Use dispatcher member.
  13968. * src/BtRequestFactory.h
  13969. (BtRequestFactoryWeakHandle): New type definition.
  13970. * src/PeerStorage.h
  13971. (downloadSpeed): int -> uint32_t
  13972. (uploadSpeed): int -> uint32_t
  13973. (sessionDownloadLength): long long int -> uint64_t
  13974. (sessionUploadLength): long long int -> uint64_t
  13975. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13976. To add RecoverableException, FatalException:
  13977. * src/AbstractCommand.cc
  13978. (onAbort): Exception -> RecoverableException
  13979. * src/PeerAbstractCommand.h
  13980. (RecoverableException.h): New include.
  13981. (onAbort): Exception -> RecoverableException.
  13982. * src/PeerInteractionCommand.cc
  13983. (onAbort): Exception -> RecoverableException.
  13984. * src/PeerAbstractCommand.cc
  13985. (execute): Exception -> RecoverableException.
  13986. (onAbort): Exception -> RecoverableException.
  13987. * src/TorrentRequestInfo.cc
  13988. (execute): Exception -> RecoverableException.
  13989. * src/MetalinkRequestInfo.cc
  13990. (execute): Exception -> RecoverableException.
  13991. * src/MetaFileUtil.cc: RecoverableException.
  13992. * src/AbstractCommand.h
  13993. (onAbort): Exception -> RecoverableException.
  13994. * src/DlRetryEx.h: Exception -> RecoverableException.
  13995. * src/DlAbortEx.h: Exception -> RecoverableException.
  13996. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13997. * src/Util.cc: Exception -> RecoverableException.
  13998. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13999. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14000. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14001. To make ID static const int
  14002. * src/BtInterestedMessage.h
  14003. (ID_t): Removed.
  14004. (ID): New variable.
  14005. (getId): Made non-const.
  14006. * src/BtPieceMessage.h
  14007. (ID_t): Removed.
  14008. (ID): New variable.
  14009. (getId): Made non-const.
  14010. * src/BtChokeMessage.h
  14011. (ID_t): Removed.
  14012. (ID): New variable.
  14013. (getId): Made non-const.
  14014. * src/BtHaveAllMessage.h
  14015. (ID_t): Removed.
  14016. (ID): New variable.
  14017. (getId): Made non-const.
  14018. * src/BtKeepAliveMessage.h
  14019. (ID_t): Removed.
  14020. (ID): New variable.
  14021. (getId): Made non-const.
  14022. * src/BtHandshakeMessage.h
  14023. (ID): New variable.
  14024. (getId): Made non-const.
  14025. * src/BtSuggestPieceMessage.h
  14026. (ID_t): Removed.
  14027. (ID): New variable.
  14028. (getId): Made non-const.
  14029. * src/BtPortMessage.h
  14030. (ID_t): Removed.
  14031. (ID): New variable.
  14032. (getId): Made non-const.
  14033. * src/AbstractBtMessage.h
  14034. (id): Removed.
  14035. (AbstractBtMessage): Removed id.
  14036. (getId): Removed.
  14037. * src/BtHaveMessage.h
  14038. (ID_t): Removed.
  14039. (ID): New variable.
  14040. (getId): Made non-const.
  14041. * src/BtAllowedFastMessage.h
  14042. (ID_t): Removed.
  14043. (ID): New variable.
  14044. (getId): Made non-const.
  14045. * src/BtCancelMessage.h
  14046. (ID_t): Removed.
  14047. (ID): New variable.
  14048. (getId): Made non-const.
  14049. * src/BtNotInterestedMessage.h
  14050. (ID_t): Removed.
  14051. (ID): New variable.
  14052. (getId): Made non-const.
  14053. * src/BtChokeMessage.h
  14054. (ID_t): Removed.
  14055. (ID): New variable.
  14056. (getId): Made non-const.
  14057. * src/BtRejectMessage.h
  14058. (ID_t): Removed.
  14059. (ID): New variable.
  14060. (getId): Made non-const.
  14061. * src/BtBitfieldMessage.h
  14062. (ID_t): Removed.
  14063. (ID): New variable.
  14064. (getId): Made non-const.
  14065. * src/BtUnchokeMessage.h
  14066. (ID_t): Removed.
  14067. (ID): New variable.
  14068. (getId): Made non-const.
  14069. * src/BtRequestMessage.h
  14070. (ID_t): Removed.
  14071. (ID): New variable.
  14072. (getId): Made non-const.
  14073. * src/BtHaveMessage.h
  14074. (ID_t): Removed.
  14075. (ID): New variable.
  14076. (getId): Made non-const.
  14077. To add --force-truncate command-line option and a check whether
  14078. the file already exists:
  14079. * src/DirectDiskAdaptor.h
  14080. (getFilePath): Made virtual public.
  14081. * src/MultiDiskAdaptor.h
  14082. (File.h): New include.
  14083. (DiskWriterEntry::fileEntry): Made private.
  14084. (DiskWriterEntry::fileExists): New function.
  14085. (DiskWriterEntry::getFileEntry): New function.
  14086. (fileExists): New function.
  14087. (getFilePath): New function.
  14088. * src/TorrentRequestInfo.cc
  14089. (FatalException.h): New include.
  14090. (message.h): New include.
  14091. (RecoverableException.h): New include.
  14092. (execute): Added a check whether file is already exists or not.
  14093. * src/DiskAdaptor.h
  14094. (fileExists): New function.
  14095. (getFilePath): New function.
  14096. * src/main.cc
  14097. (showUsage): Added an explanation of --force-truncate command-line
  14098. option.
  14099. (main): Added --force-truncate command-line option.
  14100. * src/Exception.h
  14101. (setMsg): buf[256] -> buf[1024]
  14102. * src/CopyDiskWriter.h
  14103. (getFilePath): Made public virtual.
  14104. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14105. (fileExists): New function.
  14106. * src/DownloadEngineFactory.cc
  14107. (newTorrentConsoleEngine): Don't open file here.
  14108. * src/message.h
  14109. (EX_FILE_ALREADY_EXISTS): New definition.
  14110. * src/prefs.h
  14111. (PREF_FOECE_TRUNCATE): New definition.
  14112. * src/HttpResponseCommand.cc
  14113. (handleDefaultEncoding): Added a check whether the file already exists.
  14114. * src/SegmentMan.h
  14115. (fileExists): New function.
  14116. (shouldCancelDownloadForSafety): New function.
  14117. * src/FtpNegotiateCommand.cc
  14118. (recvSize): Added a check whether the file already exists.
  14119. * src/AbstractSingleDiskAdaptor.cc
  14120. (File.h): New include.
  14121. (fileExists): New function.
  14122. * src/AbstractSingleDiskAdaptor.h
  14123. (getFilePath): Removed.
  14124. (fileExists): New function.
  14125. * src/SegmentMan.cc
  14126. (fileExists): New function.
  14127. (shouldCancelDownloadForSafety): New function.
  14128. To fix regression bug in torrent downloading:
  14129. * src/DefaultBtRequestFactory.cc
  14130. (doChokedAction): New function.
  14131. * src/DefaultBtRequestFactory.h
  14132. (doChokedAction): New function.
  14133. * src/DefaultBtMessageDispatcher.cc
  14134. (doChokedAction): Do not delete request if its target is in allowed
  14135. fast set.
  14136. * src/DefaultBtInteractive.cc
  14137. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14138. (sendKeepAlive): Send keep alive message even if the outgoing message
  14139. queue is not empty.
  14140. (decideInterest): Simplified the code.
  14141. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14142. it is already called when BtChokeMessage is received from a peer.
  14143. * src/BtRequestFactory.h
  14144. (doChokedAction): New function.
  14145. To clean up code:
  14146. * src/PeerInteractionCommand.h
  14147. (executeInternal): Added virtual keyword explicitly.
  14148. (prepareForRetry): Added virtual keyword explicitly.
  14149. (prepareForNextPeer): Added virtual keyword explicitly.
  14150. (onAbort): Added virtual keyword explicitly.
  14151. * src/RequestSlot.cc
  14152. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14153. * src/BtPieceMessage.cc
  14154. (doReceivedAction): Added a debug log of piece's bitfield.
  14155. * src/Piece.h
  14156. (getBitfieldLength): New function.
  14157. * src/ByteArrayDiskWriter.cc
  14158. (clear): Added buf = 0 to avoid double free corruption.
  14159. * src/FileAllocator.cc
  14160. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14161. Added cp.reset().
  14162. * src/BitfieldMan.h
  14163. (operator=): Rewritten.
  14164. * src/BitfieldMan.cc
  14165. (BitfieldMan): Initialized bitfield, useBitfield.
  14166. * src/PeerConnection.cc
  14167. (receiveMessage): Added a call to socket->readable() after getting
  14168. message length to avoid possible EOF.
  14169. * src/Util.cc
  14170. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14171. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14172. To add an ability to pre-allocate file space:
  14173. * src/DirectDiskAdaptor.h: Rewritten.
  14174. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14175. * src/MultiDiskAdaptor.h: Rewritten.
  14176. * src/DefaultPieceStorage.cc
  14177. (MultiDiskWriter.h): Removed include.
  14178. (PreAllocationDiskWriter.h): Removed include.
  14179. (FileAllocationMonitor.h): New include.
  14180. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14181. (initStorage): Rewritten.
  14182. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14183. * src/FileAllocator.h: New class.
  14184. * src/FileAllocator.cc: New class.
  14185. * src/FileAllocationMonitor.h: New class.
  14186. * src/FileAllocationMonitor.cc: New class.
  14187. * src/ConsoleFileAllocationMonitor.h: New class.
  14188. * src/ConsoleFileAllocationMonitor.cc: New class.
  14189. * src/AbstractSingleDiskAdaptor.h: New class.
  14190. * src/AbstractSingleDiskAdaptor.cc: New class.
  14191. * src/DiskAdaptor.h
  14192. (Directory.h): Removed include.
  14193. (DiskWriter.h): Removed include.
  14194. (FileEntry.h): Removed include.
  14195. (diskWriter): Removed.
  14196. (DiskAdaptor): Removed diskWriter.
  14197. (openFile): Made pure virtual.
  14198. (closeFile): Made pure virtual.
  14199. (openExistingFile): Made pure virtual.
  14200. (initAndOpenFile): Made pure virtual.
  14201. (writeData): Made pure virtual.
  14202. (readData): Made pure virtual.
  14203. (sha1Sum): Made pure virtual.
  14204. (getStoreDir): Returns const reference of storeDir.
  14205. (DiskAdaptorHandle): New type definition.
  14206. * src/main.cc
  14207. (ConsoleFileAllocationMonitor.h): New include.
  14208. (showUsage): Added default value description of -s option.
  14209. Added the description of --file-allocation option.
  14210. (main): Set default value of --file-allocation option to 'none'.
  14211. Added --file-allocation command-line option.
  14212. Setup FileAllocationMonitorFactory.
  14213. * src/FtpInitiateConnectionCommand.cc
  14214. (executeInternal): Removed diskWriter related processing, which was
  14215. moved to FtpNegotiationCommand.cc.
  14216. * src/DirectDiskAdaptor.cc
  14217. (getFilePath): Made non-const.
  14218. * src/CopyDiskAdaptor.h
  14219. (DiskAdaptor.h): Removed include.
  14220. (DiskWriter.h): Removed include.
  14221. (AbstractSingleDiskAdaptor.h): New include.
  14222. (getFilePath): Made non-const. Added virtual keyword.
  14223. (CopyDiskAdaptor): Removed diskWriter.
  14224. (getTempFile): Returns const reference.
  14225. (CopyDiskAdaptorHandle): New type definition.
  14226. * src/ByteArrayDiskWriter.cc
  14227. (clear): Simplified.
  14228. (initAndOpenFile): Rewritten.
  14229. (openFile): Call initAndOpenFile()
  14230. * src/MultiDiskAdaptor.cc: Rewritten.
  14231. * src/DownloadEngineFactory.cc
  14232. (FileAllocator.h): New include.
  14233. (FileAllocationMonitor.h): New include.
  14234. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14235. create DefaultDiskWriter with file allocator.
  14236. * src/DiskWriter.h
  14237. (initAndOpenFile): Added totalLength argument.
  14238. (openFile): Added totalLength argument.
  14239. * src/prefs.h
  14240. (PREF_FILE_ALLOCATION): New definition.
  14241. (V_PREALLOC): New definition.
  14242. (V_NONE): New definition.
  14243. * src/HttpResponseCommand.cc
  14244. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14245. size.
  14246. * src/FtpNegotiateCommand.cc
  14247. (Util.h): New include.
  14248. (recvSize): Open file here.
  14249. * src/Util.h
  14250. (ullitos): New function.
  14251. * src/CopyDiskWriter.h
  14252. (getFilePath): Made non-const.
  14253. * src/DefaultDiskWriter.h
  14254. (Option.h): New include.
  14255. (totalLength): Removed.
  14256. (DefaultDiskWriter): Removed totalLength.
  14257. (initAndOpenFile): Added totalLength argument.
  14258. (DefaultDiskWriterHandle): New type definition.
  14259. (createNewDiskWriter): New function.
  14260. * src/Util.cc
  14261. (ullitos): New function.
  14262. * src/DefaultDiskWriter.cc
  14263. (message.h): New include.
  14264. (FileAllocator.h): New include.
  14265. (prefs.h): New include.
  14266. (Util.h): New include.
  14267. (DefaultDiskWriter): Removed totalLength.
  14268. (initAndOpenFile): Added file allocation.
  14269. (createNewDiskWriter): New function. Just for temporary solution.
  14270. It will be rewritten later.
  14271. * src/DiskAdaptor.cc
  14272. (DiskAdaptor): Removed diskWriter.
  14273. * src/AbstractDiskWriter.cc
  14274. (LogFactory.h): New include.
  14275. (AbstractDiskWriter): Added fileAllocator, logger.
  14276. (openFile): Added totalLength argument.
  14277. * src/AbstractDiskWriter.h
  14278. (FileAllocator.h): New include.
  14279. (Logger.h): New include.
  14280. (fileAllocator): New variable.
  14281. (logger): New variable.
  14282. (openFile): Added totalLength argument. Added virtual keyword
  14283. explicitly.
  14284. (openExistingFile): Added totalLength argument. Added virtual keyword
  14285. explicitly.
  14286. (closeFile): Added virtual keyword explicitly.
  14287. (sha1Sum): Added virtual keyword explicitly.
  14288. (writeData): Added virtual keyword explicitly.
  14289. (readData): Added virtual keyword explicitly.
  14290. (setFileAllocator): New function.
  14291. * src/DefaultPieceStorage.h
  14292. (FileAllocator.h): New include.
  14293. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14294. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14295. * src/FileProgressMonitor.h: New class.
  14296. To compile aria2 on PC-BSD:
  14297. * src/DefaultBtContext.cc
  14298. (libgen.h): New include.
  14299. To fix memory leak:
  14300. * src/Exception.h
  14301. (~Exception): Delete cause. Fixed memory leak.
  14302. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14303. Rewritten a portion of bittorrent implementation:
  14304. * src/BtMessageValidator.h: New class.
  14305. * src/BtBitfieldMessageValidator.h: New class.
  14306. * src/BtHandshakeMessageValidator.h: New class.
  14307. * src/BtRequestMessageValidator.h: New class.
  14308. * src/BtSuggestPieceMessageValidator.h: New class.
  14309. * src/BtAllowedFastMessageValidator.h: New class.
  14310. * src/BtRejectMessageValidator.h: New class.
  14311. * src/BtCancelMessageValidator.h: New class.
  14312. * src/BtPieceMessageValidator.h: New class.
  14313. * src/BtHaveMessageValidator.h: New class.
  14314. * src/BtEventListener.h: New class.
  14315. * src/AbstractBtEventListener.h: New class.
  14316. * src/BtEvent.h: New class.
  14317. * src/BtChokingEvent.h: New class.
  14318. * src/BtChokedEvent.h: New class.
  14319. * src/BtCancelSendingPieceEvent.h: New class.
  14320. * src/BtAbortOutstandingRequestEvent.h: New class.
  14321. * src/Randomizer.h: New class.
  14322. * src/SimpleRandomizer.h: New class.
  14323. * src/BtMessage.h: New class.
  14324. * src/AbstractBtMessage.h: New class.
  14325. * src/SimpleBtMessage.h: New class.
  14326. * src/BtHaveMessage.h: New class.
  14327. * src/BtInterestedMessage.h: New class.
  14328. * src/BtAllowedFastMessage.h: New class.
  14329. * src/BtUnchokeMessage.h: New class.
  14330. * src/BtCancelMessage.h: New class.
  14331. * src/BtNotInterestedMessage.h: New class.
  14332. * src/BtChokeMessage.h: New class.
  14333. * src/BtHaveNoneMessage.h: New class.
  14334. * src/BtHandshakeMessage.h: New class.
  14335. * src/BtSuggestPieceMessage.h: New class.
  14336. * src/BtHaveMessage.h: New class.
  14337. * src/BtPieceMessage.h: New class.
  14338. * src/BtHaveAllMessage.h: New class.
  14339. * src/BtKeepAliveMessage.h: New class.
  14340. * src/BtPortMessage.h: New class.
  14341. * src/BtRejectMessage.h: New class.
  14342. * src/BtBitfieldMessage.h: New class.
  14343. * src/BtRequestMessage.h: New class.
  14344. * src/DefaultBtRequestFactory.h: New class.
  14345. * src/DefaultBtMessageReceiver.h: New class.
  14346. * src/BtInteractive.h: New class.
  14347. * src/BtMessageDispatcher.h: New class.
  14348. * src/DefaultBtMessageDispatcher.h: New class.
  14349. * src/DefaultBtInteractive.h: New class.
  14350. * src/BitfieldManFactory.h: New class.
  14351. * src/HandleRegistry.h: New class.
  14352. * src/BtMessageFactory.h: New class.
  14353. * src/BtMessageReceiver.h: New class.
  14354. * src/DefaultBtMessageFactory.h: New class.
  14355. * src/PeerObject.h: New class.
  14356. * src/BtRequestFactory.h: New class.
  14357. * src/SuggestPieceMessage.h: Removed.
  14358. * src/PortMessage.h: Removed.
  14359. * src/SuggestPieceMessage.h: Removed.
  14360. * src/KeepAliveMessage.h: Removed.
  14361. * src/HandshakeMessage.h: Removed.
  14362. * src/PeerInteraction.h: Removed.
  14363. * src/UnchokeMessage.h: Removed.
  14364. * src/PieceMessage.h: Removed.
  14365. * src/RequestMessage.h: Removed.
  14366. * src/InterestedMessage.h: Removed.
  14367. * src/HaveMessage.h: Removed.
  14368. * src/CancelMessage.h: Removed.
  14369. * src/RejectMessage.h: Removed.
  14370. * src/AllowedFastMessage.h: Removed.
  14371. * src/HaveNoneMessage.h: Removed.
  14372. * src/SimplePeerMessage.h: Removed.
  14373. * src/HaveAllMessage.h: Removed.
  14374. * src/BitfieldMessage.h: Removed.
  14375. * src/PeerMessageFactory.h: Removed.
  14376. * src/NotInterestedMessage.h: Removed.
  14377. * src/ChokeMessage.h: Removed.
  14378. * src/PeerMessage.h: Removed.
  14379. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14380. To know root cause of exception:
  14381. * src/Exception.h
  14382. (cause): New variable.
  14383. (Exception): Added a parameter.
  14384. (getMsg): Return const reference to msg.
  14385. (getCause): New function.
  14386. * src/DlRetryEx.h
  14387. (DlRetryEx): Added a parameter 'cause'.
  14388. Added an overloaded constructor.
  14389. (DlAbortEx): Added a parameter 'cause'.
  14390. Added an overloaded constructor.
  14391. * src/SimpleLogger.cc
  14392. (writeLog): Log nested exception messages recursively.
  14393. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14394. * src/DefaultBtProgressInfoFile.cc
  14395. (load): Fixed memory leak when the infohash doesn't match.
  14396. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14397. * src/DefaultPeerStorage.cc
  14398. (calculateStat): Simplified the code by combining 2 loops into 1.
  14399. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14400. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14401. for BitTorrent download:
  14402. * src/PeerAbstractCommand.cc
  14403. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14404. * src/main.cc:
  14405. (timeoutSpecified): Removed.
  14406. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14407. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14408. * src/TorrentRequestInfo.cc
  14409. (timeoutSpecified): Removed.
  14410. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14411. timeout value.
  14412. * src/prefs.h
  14413. (PREF_BT_TIMEOUT): New definition.
  14414. Delete unused variables:
  14415. * src/TorrentRequestInfo.cc
  14416. (requestInfo): Removed.
  14417. Move setSignalHander to Util::setGlobalSignalHandler:
  14418. * src/TorrentRequestInfo.cc:
  14419. setSignalHander -> Util::setGlobalSignalHandler
  14420. * src/main.cc
  14421. (setSignalHander): Removed.
  14422. (main): setSignalHander -> Util::setGlobalSignalHandler
  14423. * src/Util.h
  14424. (setGlobalSignalHandler): New function.
  14425. * src/Util.cc
  14426. (setGlobalSignalHandler): New function.
  14427. * src/UrlRequestInfo.cc:
  14428. setSignalHander -> Util::setGlobalSignalHandler
  14429. Reset peer status in order to exit gracefully:
  14430. * src/PeerAbstractCommand.cc
  14431. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14432. To fix the bug that causes the number of bytes uploaded is not saved
  14433. to .aria2 file:
  14434. * src/DefaultPeerStorage.h
  14435. (removedPeerSessionDownloadLength): New variable.
  14436. (removedPeerSessionUploadLength): New variable.
  14437. * src/DefaultPeerStorage.cc
  14438. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14439. removedPeerSessionUploadLength(0).
  14440. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14441. through all peers, and then add removedPeerSessionDownloadLength(
  14442. removedPeerSessionUploadLength) to it.
  14443. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14444. (to) the peer to removedPeerSessionDownloadLength
  14445. (removedPeerSessionUploadLength).
  14446. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14447. To add Metalink location option:
  14448. * src/MetalinkRequestInfo.cc
  14449. (execute): Call MetalinkEntry::setLocationPreference()
  14450. * src/main.cc
  14451. (showUsage): Added the help message for --metalink-location option.
  14452. (main): Added --metalink-location option.
  14453. * src/prefs.h
  14454. (PREF_METALINK_LOCATION): New definition.
  14455. * src/MetalinkEntry.cc
  14456. (AddLocationPreference): New function object.
  14457. (setLocationPreference): New function.
  14458. * src/Xml2MetalinkProcessor.cc
  14459. (getResource): Set location attribute to MetalinkResource
  14460. To show URLs to download
  14461. * src/UrlRequestInfo.h
  14462. (printUrls): New function.
  14463. To add multiple <file> Metalink support:
  14464. * src/MetalinkEntry.h
  14465. (MetalinkResources): Removed.
  14466. (setLocationPreference): New function.
  14467. (MetalinkEntryHandle): New type definition.
  14468. (MetalinkEntries): New type definition.
  14469. * src/Xml2MetalinkProcessor.h
  14470. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14471. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14472. (parseFile): Metalinker* -> MetalinkerHandle
  14473. * src/UrlRequestInfo.h
  14474. (execute): RequestInfo* -> RequestInfos
  14475. * src/MetalinkRequestInfo.cc
  14476. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14477. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14478. (execute): RequestInfo* -> RequestInfos
  14479. Added multiple <file> support. Print filename when it is queued.
  14480. * src/MetalinkRequestInfo.h
  14481. (execute): RequestInfo* -> RequestInfos
  14482. (getDownloadEngine): Removed.
  14483. * src/RequestInfo.h
  14484. (RequestInfoHandle): New type definition.
  14485. (RequestInfos): New type definition.
  14486. (execute): RequestInfo* -> RequestInfos
  14487. (getDownloadEngine): Removed.
  14488. * src/MetalinkResource.h
  14489. (MetalinkResourceHandle): New type definition.
  14490. (MetalinkResources): New type definition.
  14491. * src/MetalinkEntry.cc
  14492. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14493. because the element is now of type MetalinkResourceHandle.
  14494. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14495. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14496. (dropUnsupportedResource): Removed the deletion of the elements of
  14497. resources because the element is now of type MetalinkResourceHandle.
  14498. * src/Xml2MetalinkProcessor.cc
  14499. (parseFile): Metalinker* -> MetalinkerHandle
  14500. MetalinkEntry* -> MetalinkEntryHandle
  14501. Removed try-catch block.
  14502. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14503. MetalinkResource* -> MetalinkResourceHandle
  14504. Removed try-catch block.
  14505. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14506. Free result by using xmlXPathFreeObject()
  14507. * src/Metalinker.cc
  14508. (~Metalinker): Removed the deletion of entries.
  14509. MetalinkEntry* -> MetalinkEntryHandle
  14510. (queryEntry): Add multiple <file> Metalink support.
  14511. * src/Metalinker.h
  14512. (MetalinkEntries): Removed.
  14513. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14514. * src/MetalinkProcessor.h
  14515. (parseFile): Metalinker* -> MetalinkerHandle
  14516. Bug fixes:
  14517. * src/PeerChokeCommand.cc
  14518. (execute): cat01->cat02
  14519. * src/DefaultPieceStorage.cc
  14520. (DefaultPieceStorage): Added diskAdaptor(0)
  14521. * src/TrackerWatcherComand.cc:
  14522. (execute): Use btAnnounce->noMoreAnnounce()
  14523. to determin whether the function returns true or not.
  14524. * src/TrackerUpdateCommand.cc:
  14525. (execute): Use btAnnounce->noMoreAnnounce()
  14526. to determin whether the function returns true or not.
  14527. * src/FtpConnection.cc
  14528. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14529. This is the fix of the busy loop bug.
  14530. * src/DownloadCommand.cc
  14531. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14532. cached PeerStat.
  14533. The value of "name" entry in torrent file is now set by
  14534. *DiskAdaptor::setTopDir(...) methods.
  14535. * src/MultiDiskAdaptor.h
  14536. (topDir): New variable.
  14537. (setTopDir): New function.
  14538. (getTopDir): New function.
  14539. * src/MultiDiskAdaptor.cc
  14540. (getFilePath): Concat storDir, "/" and topDir.
  14541. (mkdir): Use getFilePath() to get the directory path for output.
  14542. * src/DefaultPieceStorage.cc
  14543. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14544. CopyDiskAdaptor.
  14545. * src/CopyDiskAdaptor.h
  14546. (topDir): New variable.
  14547. (setTopDir): New function.
  14548. (getTopDir): New function.
  14549. * src/CopyDiskAdaptor.cc
  14550. (fixFilename): Updated.
  14551. Misc
  14552. * src/UrlRequestInfo.h
  14553. (e): Removed.
  14554. (UrlRequestInfo): Removed e.
  14555. (getDownloadEngine): Removed.
  14556. * src/UrlRequestInfo.cc
  14557. (handler): Rewritten.
  14558. (printUrls): New function.
  14559. (execute): Call printUrls().
  14560. * src/HandshakeMessage.cc
  14561. (check): peerinteraction->getBtContext() -> btContext
  14562. * src/PeerInteraction.h
  14563. (getBtContext): Removed.
  14564. * src/TorrentRequestInfo.h
  14565. (execute): RequestInfo* -> RequestInfos
  14566. (getDownloadEngine): Removed.
  14567. * src/TorrentRequestInfo.cc
  14568. (haltRequested): Removed.
  14569. (btHaltRequested): New variable.
  14570. (torrentHandler): haltRequested -> btHaltRequested
  14571. (execute): RequestInfo* -> RequestInfos
  14572. * src/TorrentConsoleDownloadEngine.cc
  14573. (afterEachIteration): haltRequested -> btHaltRequested.
  14574. * src/ConsoleDownloadEngine.h
  14575. (initStatistics): Added virtual.
  14576. (calculateStatistics): Added virtual.
  14577. (onEndOfRun): Added virtual.
  14578. (afterEachIteration): Added virtual.
  14579. * src/ConsoleDownloadEngine.cc
  14580. (haltRequested): New variable.
  14581. (afterEachIteration): New function.
  14582. * src/main.cc
  14583. (requestInfo): Removed.
  14584. * src/SegmentMan.cc
  14585. (findSlowerSegmentEntry): Refactored.
  14586. * Release 0.9.0
  14587. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14588. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14589. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14590. * src/TorrentMan.h: Removed.
  14591. * src/TorrentMan.cc: Removed.
  14592. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14593. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14594. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14595. * src/PeerAbstractCommand.cc: Use btRuntime.
  14596. * src/BtContextAwareCommand.h: New class.
  14597. * src/FileEntry.h: Added accessor methods for following variables.
  14598. (path): Made private.
  14599. (length): Made private.
  14600. (offset): Made private.
  14601. (extracted): Made private.
  14602. (requested): Made private.
  14603. (FileEntries): New definition.
  14604. (FileEntryHandle): New definition.
  14605. * src/FileEntry.cc: New file.
  14606. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14607. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14608. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14609. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14610. * src/PieceStorage.h: New file.
  14611. * src/PeerInteractionCommand.h: Use btContext.
  14612. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14613. btRuntime.
  14614. * src/DefaultBtProgressInfoFile.h: New file.
  14615. * src/DefaultBtProgressInfoFile.cc: New file.
  14616. * src/File.cc
  14617. (Util.h): New include.
  14618. (mkdirs): New function.
  14619. * src/MultiDiskAdaptor.h
  14620. (mkdir): New function.
  14621. * src/PeerListProcessor.h
  14622. (Peers): Removed.
  14623. * src/PeerInteraction.h
  14624. (torrentMan): Removed.
  14625. (btContext): New variable.
  14626. (peerStorage): New variable.
  14627. (pieceStorage): New variable.
  14628. (btAnnounce): New variable.
  14629. (getTorrentMan): Removed.
  14630. (getBtContext): New function.
  14631. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14632. btAnnounce.
  14633. * src/HandshakeMessage.h
  14634. (TorrentMan.h): Removed.
  14635. * src/HandshakeMessage.cc: Use btContext.
  14636. * src/DefaultBtAnnounce.cc: New file.
  14637. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14638. * src/DefaultPieceStorage.cc: New file.
  14639. * src/DefaultBtContext.h: New file.
  14640. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14641. Use the accessor methods of FileEntry.
  14642. * src/CookieBox.cc: Updated to use Util::slice().
  14643. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14644. * src/common.h (SharedHandle.h): New include.
  14645. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14646. pieceStorage.
  14647. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14648. * src/DiskAdaptor.h
  14649. (topDir): Removed.
  14650. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14651. (setTopDir): Removed.
  14652. (getTopDir): Removed.
  14653. * src/BtContext.h: New file.
  14654. * src/DefaultPeerStorage.h: New file.
  14655. * src/PieceMessage.h (TorrentMan.h): Removed.
  14656. * src/RequestMessage.h (TorrentMan.h): Removed.
  14657. * src/TorrentDownloadEngine.h
  14658. (uploadLength): New variable.
  14659. (btContext): New variable.
  14660. (btRuntime): New variable.
  14661. (pieceStorage): New variable.
  14662. (peerStorage): New variable.
  14663. (btAnnounce): New variable.
  14664. (btProgressInfoFile): New variable.
  14665. (torrentMan): Removed.
  14666. (setBtContext): New function.
  14667. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14668. peerStorage, btAnnounce, btProgressInfoFile.
  14669. * src/Piece.h
  14670. (toString): New function.
  14671. (Pieces): New type definition.
  14672. * src/Peer.h
  14673. (active): New variable.
  14674. (Peer): Added active.
  14675. (activate): Set active to true.
  14676. (deactivate): Set active to false.
  14677. (isActive): New function.
  14678. (Peers): New type definition.
  14679. * src/DirectDiskAdaptor.cc
  14680. (getFilePath): Use the accessor methods of FileEntry.
  14681. * src/TorrentConsoleDownloadEngine.h
  14682. (afterEachIteration): New function.
  14683. * src/TorrentConsoleDownloadEngine.cc
  14684. (haltRequested): New variable.
  14685. (sendStatistics): Use pieceStorage, btRuntime.
  14686. (afterEachIteration): New function.
  14687. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14688. * src/Directry.h
  14689. (Directory): New function.
  14690. (DirectoryHandle): New type definition.
  14691. * src/BtProgressInfoFile.h: New file.
  14692. * src/RequestMessage.cc: Use pieceStorage.
  14693. * src/BtRuntime.h: New file.
  14694. * src/DefaultBtContext.cc: New file.
  14695. * src/BitfieldMan.h
  14696. (getCompletedLength): New function(private).
  14697. (getCompletedLength): New function.
  14698. (getFilteredCompletedLength): New function.
  14699. * src/BitfieldMan.h
  14700. (getCompletedLength): New function(private).
  14701. (getCompletedLength): New function.
  14702. (getFilteredCompletedLength): New function.
  14703. * src/MultiDiskAdaptor.cc
  14704. (mkdir): New function.
  14705. (openFile): Call mkdir().
  14706. (initAndOpenFile): Call mkdir().
  14707. * src/CancelMessage.h
  14708. (TorrentMan.h): Removed.
  14709. * src/RejectMessage.h
  14710. (TorrentMan.h): Removed.
  14711. * src/DownloadEngineFactory.cc
  14712. (DefaultPieceStorage.h): New include.
  14713. (DefaultPeerStorage.h): New include.
  14714. (DefaultBtAnnounce.h): New include.
  14715. (DefaultBtProgressInfoFile.h): New include.
  14716. (newTorrentConsoleEngine): Rewritten.
  14717. * src/ShareRatioSeedCriteria.h
  14718. (torrentMan): Removed.
  14719. (btContext): New variable.
  14720. (peerStorage): New variable.
  14721. (btRuntime): New variable.
  14722. (evaluate): Use btContext, btRuntime, peerStorage.
  14723. * src/AnnounceTier.h: New file.
  14724. * src/BtAnnounce.h: New file.
  14725. * src/BtRegistry.h: New file.
  14726. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14727. * src/PeerConnection.h (TorrentMan.h): Removed.
  14728. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14729. * src/Util.h
  14730. (slice): Added an argument.
  14731. * src/Util.cc
  14732. (slice): Added an argument to control whether trim is made or not.
  14733. * src/PeerStorage.h: New file.
  14734. * src/BtRegistry.cc: New file.
  14735. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14736. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14737. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14738. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14739. * src/TorrentRequestInfo.h
  14740. (e): Removed.
  14741. (showFileEntry): Added an argument.
  14742. (getDownloadEngine): Return 0.
  14743. * src/DefaultBtAnnounce.h: New file.
  14744. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14745. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14746. * src/PeerMessageFactory.h
  14747. (btContext): New variable.
  14748. (pieceStorage): New variable.
  14749. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14750. btAnnounce.
  14751. * src/DiskAdaptor.cc
  14752. (DiskAdaptor): Removed topDir.
  14753. (~DiskAdaptor): Removed topDir.
  14754. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14755. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14756. * src/File.h (mkdirs): New function.
  14757. * src/DefaultPeerStorage): New file.
  14758. * src/DownloadEngineFactory.h
  14759. (newTorrentConsoleEngine): Use btContext.
  14760. * src/BtContextAwareCommand.cc: New file.
  14761. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14762. * src/PeerMessage.h
  14763. (btContext): New variable.
  14764. (peerStorage): New variable.
  14765. (pieceStorage): New variable.
  14766. (setBtContext): New function.
  14767. * src/Directry.cc
  14768. (Directory): New function.
  14769. (createDir): Do nothing if name.size() == 0.
  14770. * src/AnnounceList.h
  14771. (AnnounceTier): Removed.
  14772. (AnnounceTiers): Removed.
  14773. * src/DefaultPieceStorage.h: New file.
  14774. * src/Piece.cc (toString): New function.
  14775. To fix typo:
  14776. * src/main.cc (showVersion): Fixed typo.
  14777. To fix compile warning:
  14778. * src/DelegatingPeerListProcessor.cc
  14779. (canHandle): Added "return false".
  14780. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14781. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14782. make the process of announce request testable.
  14783. * src/TrackerWatcherCommand.h
  14784. (TimeA2.h): Removed.
  14785. (interval): Removed.
  14786. (checkPoint): Removed.
  14787. (createRequestCommand): Added an argument 'url'.
  14788. (TrackerWatherCommand): Removed interval.
  14789. (createCommand): New function.
  14790. * src/DownloadEngineFactory.cc
  14791. (newTorrentConsoleEngine): Updated according to the changes in
  14792. TrackerWatherCommand.
  14793. * src/TorrentMan.cc
  14794. (DelegatingPeerListProcessor.h): New includes.
  14795. (TorrentMan): Added the initialization of announceInterval.
  14796. (isStoppedAnnounceReady): New function.
  14797. (isCompletedAnnounceReady): New function.
  14798. (isDefaultAnnounceReady): New function.
  14799. (isAnnounceReady): New function.
  14800. (getAnnounceUrl): New function.
  14801. (announceStart): New function.
  14802. (announceFailure): New function.
  14803. (announceSuccess): New function.
  14804. (isAllAnnounceFailed): New function.
  14805. (resetAnnounce): New function.
  14806. (processAnnounceResponse): New function.
  14807. (needMorePeerConnection): New function.
  14808. (noMoreAnnounce): New function.
  14809. * src/TrackerUpdateCommand.h
  14810. (getTrackerResponse): int->size_t
  14811. * src/TorrentMan.h
  14812. (isStoppedAnnounceReady): New function.
  14813. (isCompletedAnnounceReady): New function.
  14814. (isDefaultAnnounceReady): New function.
  14815. (announceInterval): New variable.
  14816. (isAnnounceReady): New function.
  14817. (getAnnounceUrl): New function.
  14818. (announceStart): New function.
  14819. (announceFailure): New function.
  14820. (announceSuccess): New function.
  14821. (isAllAnnounceFailed): New function.
  14822. (resetAnnounce): New function.
  14823. (processAnnounceResponse): New function.
  14824. (needMorePeerConnection): New function.
  14825. (noMoreAnnounce): New function.
  14826. * src/TrackerWatcherCommand.cc
  14827. (TrackerWatherCommand): Removed interval and checkPoint.
  14828. (execute): Rewritten.
  14829. (createCommand): New function.
  14830. (createRequestCommand): Rewritten.
  14831. * src/TrackerUpdateCommand.cc
  14832. (MetaFileUtil.h): Removed.
  14833. (DelegatingPeerListProcessor.h): Removed.
  14834. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14835. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14836. Request -> RequestHandle:
  14837. * src/HttpResponseCommand.h: Request->RequestHandle
  14838. * src/AbstractCommand.cc: Request->RequestHandle
  14839. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14840. * src/HttpRequestCommand.cc: Request->RequestHandle
  14841. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14842. * src/AbstractCommand.h: Request->RequestHandle
  14843. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14844. * src/HttpResponseCommand.cc: Request->RequestHandle
  14845. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14846. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14847. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14848. * src/HttpConnection.h: Request->RequestHandle
  14849. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14850. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14851. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14852. * src/DownloadCommand.h: Request->RequestHandle
  14853. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14854. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14855. * src/HttpRequestCommand.h: Request->RequestHandle
  14856. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14857. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14858. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14859. * src/HttpDownloadCommand.h: Request->RequestHandle
  14860. * src/FtpConnection.cc: Request->RequestHandle
  14861. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14862. * src/UrlRequestInfo.cc: Request->RequestHandle
  14863. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14864. * src/HttpConnection.h: Request->RequestHandle
  14865. * src/DownloadCommand.cc: Request->RequestHandle
  14866. * src/FtpConnection.h: Request->RequestHandle
  14867. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14868. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14869. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14870. * src/Request.h
  14871. (SharedHandle.h): New include.
  14872. (RequestHandle): New type definition.
  14873. (Requests): Redefined.
  14874. To add MULTITRACKER support:
  14875. * src/TrackerWatcherCommand.h
  14876. (createRequestCommand): New function.
  14877. * src/DownloadEngineFactory.cc
  14878. (newTorrentConsoleEngine): Removed req.
  14879. * src/prefs.h
  14880. (PREF_TRACKER_MAX_TRIES): New definition.
  14881. * src/TorrentMan.cc
  14882. (TorrentMan): Removed req. Added trackerNumTry.
  14883. (~TorrentMan): Removed req.
  14884. (setupInternal1): Added announceList.
  14885. * src/TorrentRequestInfo.cc
  14886. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14887. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14888. * src/main.cc
  14889. (main): Added PREF_TRACKER_MAX_TRIES.
  14890. * src/TorrentMan.h
  14891. (Request.h): Removed.
  14892. (AnnounceList.h): New include.
  14893. (trackerNumTry): New variable.
  14894. (req): Removed.
  14895. (announceList): New variable.
  14896. * src/TrackerWatcherCommand.cc
  14897. (execute): Rewritten.
  14898. (createRequestCommand): New function.
  14899. * src/TrackerUpdateCommand.cc
  14900. (execute): Updated with the use of AnnounceList.
  14901. * src/AnnounceList.cc: New class.
  14902. * src/AnnounceList.h: New class.
  14903. To fix typo:
  14904. * src/prefs.h
  14905. (PREF_MAX_TRIES): max_try->max_tries
  14906. To not to decode "+" as space in URL decode:
  14907. * src/Util.cc
  14908. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14909. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14910. To add timeout to async name resolution:
  14911. * src/AbstractCommand.h
  14912. (nameResolveFinished): New function. This is not elegant way. It needs
  14913. to be more refined.
  14914. (nameResolverCheck): New variable.
  14915. * src/AbstractCommand.cc
  14916. (AbstractCommand): Added nameResolverCheck.
  14917. (execute): Added the check whether the name resolution has finished.
  14918. (setNameResolverCheck): Set nameResolverCheck to true.
  14919. (disableNameResolverCheck): Set nameResolverCheck to false.
  14920. (nameResolverFinished): New function.
  14921. * src/FtpInitiateConnectionCommand.h
  14922. (nameResolverFinished): New function.
  14923. * src/FtpInitiateConnectionCommand.cc
  14924. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14925. * src/HttpInitiateConnectionCommand.h
  14926. (nameResolverFinished): New function.
  14927. * src/HttpInitiateConnectionCommand.cc
  14928. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14929. * src/prefs.h
  14930. (PREF_DNS_TIMEOUT): New definition.
  14931. * src/main.cc
  14932. (main): Added PREF_DNS_TIMEOUT.
  14933. To add the support for a non-compact response from a tracker:
  14934. * src/PeerListProcessor.h: New class.
  14935. * src/DefaultPeerListProcessor.h: New class.
  14936. * src/DefaultPeerListProcessor.cc: New class.
  14937. * src/CompactPeerListProcessor.h: New class.
  14938. * src/CompactPeerListProcessor.cc: New class.
  14939. * src/DelegatingPeerListProcessor.h: New class.
  14940. * src/DelegatingPeerListProcessor.cc: New class.
  14941. * src/TorrentMan.cc
  14942. (addPeer): New function(overload).
  14943. (addPeer): Delete unused peers only when new peer is added.
  14944. * src/TorrentMan.h
  14945. (PeerListProcessor.h): Included.
  14946. (Peers): Removed.
  14947. (addPeer): New function(overload).
  14948. * src/TrackerUpdateCommand.cc
  14949. (netinet/in.h): Removed.
  14950. (DelegatingPeerListProcessor.h): Included.
  14951. (execute): Updated to use DelegatingPeerListProcessor.
  14952. To fix the memory leak in TorrentMan::peers:
  14953. * src/PeerAbstractCommand.cc
  14954. (onAbort): Added peer->resetStatus().
  14955. * src/Peer.h
  14956. (resetStatus): Made public.
  14957. To improve the precision of the speed calculation:
  14958. * src/SpeedCalc.h
  14959. (nextInterval): New variable.
  14960. * src/SpeedCalc.cc
  14961. (reset): Added nextInterval.
  14962. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14963. (changeSw): Set nextInterval to 15 seconds relative to the current
  14964. instant time.
  14965. * src/main.cc
  14966. (showVersion): Updated.
  14967. (showUsage): Updated.
  14968. * Release 0.8.1
  14969. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14970. * src/main.cc
  14971. (showUsage): Commented out --min-segment-size option.
  14972. (main): Commented out --min-segment-size option.
  14973. * Release 0.8.0
  14974. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14975. * src/*.{h,cc}:
  14976. Added an exception to the license which allows linking with OpenSSL.
  14977. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14978. * src/AbstractCommand.cc
  14979. (execute): Check whether the download has finished before checking
  14980. socket status.
  14981. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14982. Do not exit even if no segment is available.
  14983. * src/prefs.h
  14984. (PREF_STARTUP_IDLE_TIME): New definition.
  14985. * src/PeerInteractionCommand.cc
  14986. (executeInternal): Removed max speed limit. Because it performs bad.
  14987. (receiveMessages): Added max speed limit. This was better than above,
  14988. but still a little bit to be desired. Sometimes the download speed
  14989. became much faster than I specified.
  14990. * src/SpeedCalc.h
  14991. (start): New variable.
  14992. (accumulatedLength): New variable.
  14993. (getAvgSpeed): New function.
  14994. * src/SpeedCalc.cc
  14995. (reset): Added start, accumulatedLength.
  14996. (update): Added calculation of an average speed.
  14997. (getAvgSpeed): New function.
  14998. * src/DownloadCommand.h
  14999. (sw): Removed.
  15000. * src/main.cc
  15001. (main): Added PREF_STARTUP_IDLE_TIME.
  15002. * src/PeerStat.h
  15003. (STATUS): Added REQUEST_IDLE.
  15004. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15005. (getAvgDownloadSpeed): New function
  15006. (requestIdle): New function.
  15007. * src/SegmentMan.h
  15008. (SegmentEntryHandle): New type definition.
  15009. (SegmentEntries): Now holds SegmentEntryHandle.
  15010. (findSlowerSegmentEntry): New funtion.
  15011. * src/SegmentMan.cc
  15012. (save): Updated according to the changes in SegmentEntries.
  15013. (read): Updated according to the changes in SegmentEntries.
  15014. (FindSegmentEntryByIndex): Updated according to the changes in
  15015. SegmentEntries.
  15016. (FindSegmentEntryByCuid): Updated according to the changes in
  15017. SegmentEntries.
  15018. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15019. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15020. Renamed uitr as itr.
  15021. (findSlowerSegmentEntry): New function.
  15022. (getSegment): Updated according to the changes in SegmentEntries.
  15023. Added the feature that cancels the segment with slow server and fast
  15024. one takes it over.
  15025. (cancelSegment): Updated according to the changes in SegmentEntries.
  15026. (getDownloadLength): Updated according to the changes in
  15027. SegmentEntries.
  15028. (init): Assigned 0 to bitfield after deleting it.
  15029. * src/DownloadCommand.cc
  15030. (STARTUP_IDLE_TIME): Removed.
  15031. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15032. * src/PeerChokeCommand.cc
  15033. (optUnchokingPeer): Updated according to the changes in Peer.
  15034. (ResetDelta): Removed.
  15035. (UploadFaster): Updated according to the changes in Peer.
  15036. (DownloadFaster): Updated according to the changes in Peer.
  15037. (execute): I clarify the meaning of "upload" and "download" here.
  15038. "upload" means the transfer from localhost to remote host.
  15039. "download" means the transfer from remote host to localhost.
  15040. Based on this rule, I swapped orderByUploadRate and
  15041. orderByDownloadRate.
  15042. * src/PeerInteractionCommand.cc
  15043. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15044. (executeInternal): Removed the argument of
  15045. peerInteraction->sendMessages().
  15046. (receiveMessages): Rewritten download speed limit.
  15047. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15048. * src/HttpResponseCommand.cc
  15049. (handleDefaultEncoding): If file size is unknown in torrent request,
  15050. do not call segmentMan->initBitfield() here.
  15051. Disabled persistent connection feature in torrent request.
  15052. * src/UrlRequestInfo.h
  15053. (UrlRequestInfo): Removed const qualifier from option.
  15054. * src/TorrentMan.h
  15055. (TransferStat): New class.
  15056. (deltaDownloadLength): Removed.
  15057. (deltaUploadLength): Removed.
  15058. (addDeltaDownloadLength): Removed.
  15059. (getDeltaDownloadLength): Removed.
  15060. (resetDeltaDownloadLength): Removed.
  15061. (addDeltaUploadLength): Removed.
  15062. (getDeltaUploadLength): Removed.
  15063. (resetDeltaUploadLength): Removed.
  15064. (addActivePeer): Added peer->activate().
  15065. (deleteActivePeer): Added peer->deactivate().
  15066. (calculateStat): New function.
  15067. * src/TorrentMan.cc
  15068. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15069. (calculateStat): New function.
  15070. * src/PeerInteraction.h
  15071. (uploadLimit): Removed.
  15072. (option): New variable.
  15073. (setUploadLimit): Removed.
  15074. (getUploadSpeed): Removed.
  15075. (sendMessages): Removed the argument "currentUploadSpeed".
  15076. * src/PeerInteraction.cc
  15077. (prefs.h): Included.
  15078. (PeerInteraction): Removed uploadLimit. Added option.
  15079. (sendMessages): Rewritten upload speed limit.
  15080. (sendHandshake): Removed the argument from sendMessages().
  15081. (sendBitfield): Removed the argument from sendMessages().
  15082. * src/PeerAbstractCommand.cc
  15083. (execute): Commented out the portion of upload limit.
  15084. (onAbort): Removed peer->resetStatus().
  15085. * src/TorrentRequestInfo.cc
  15086. (timeoutSpecified): Declared extern.
  15087. (execute): Set timeout to 180 if timeout is not specified by.
  15088. command-line.
  15089. * src/PieceMessage.cc
  15090. (receivedAction): Added peer->updateDownloadLength().
  15091. Removed peer->addPeerUpload().
  15092. Removed torrentMan->addDeltaDownloadLength().
  15093. (send): Added peer->updateUploadLength().
  15094. Removed peer->addPeerDownload().
  15095. Removed torrentMan->addDeltaUploadLength().
  15096. * src/main.cc
  15097. (timeoutSpecified): New variable.
  15098. (main): Set timeoutSpecified to false.
  15099. If the command-line option "--upload-limit" is specified, then
  15100. timeoutSpecified is set to true. This option will remain in the next
  15101. release, but be deprecated in the future release.
  15102. * src/TorrentRequestInfo.h
  15103. (TorrentRequestInfo): Removed const qualifier from op.
  15104. * src/PeerStat.h
  15105. (uploadSpeed): New variable.
  15106. (PeerStat): Added default value to cuid.
  15107. (calculateUploadSpeed): New function.
  15108. (updateUploadLength): New function.
  15109. (getMaxUploadSpeed): New function.
  15110. (getAvgUploadSpeed): New function.
  15111. (reset): Added uploadSpeed. Set status to IDLE.
  15112. * src/TorrentDownloadEngine.h
  15113. (cp): Declared as Time.
  15114. (sessionDownloadLengthArray): Removed.
  15115. (sessionUploadLengthArray): Removed.
  15116. (currentCp): Removed.
  15117. (lastCalcStat): New variable
  15118. (lastElapsed): Removed.
  15119. (sessionDownloadLength): Removed.
  15120. (calculateStat): New function.
  15121. * src/TorrentDownloadEngine.cc
  15122. (initStatistics): Removed lastElapsed, cp[],
  15123. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15124. currentCp, sessionDownloadLength.
  15125. Added cp.reset() and lastCalcStat.reset().
  15126. (calculateSpeed): Changed the name of the argument.
  15127. (calculateStatistics): Rewritten.
  15128. (calculateStat): New function.
  15129. * src/Peer.h
  15130. (PeerStat.h): Included.
  15131. (peerUpload): Removed.
  15132. (peerDownload): Removed.
  15133. (peerStat): New variable.
  15134. (sessionUploadLength): New variable.
  15135. (sessionDownloadLength): New variable.
  15136. (deltaUpload): Removed.
  15137. (deltaDownload): Removed.
  15138. (resetStatus): Made private.
  15139. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15140. Removed peerUpload, peerDownload.
  15141. (updateUploadLength): New function.
  15142. (addDeltaUpload): Removed.
  15143. (updateDownloadLength): New function.
  15144. (resetDeltaUpload): Removed.
  15145. (getDeltaUpload): Removed.
  15146. (addDeltaDownload): Removed.
  15147. (calculateUploadSpeed): New function.
  15148. (resetDeltaDownload): Removed.
  15149. (getDeltaDownload): Removed.
  15150. (calculateDownloadSpeed): New function.
  15151. (getSessionUploadLength): New function.
  15152. (getSessionDownloadLength): New function.
  15153. (activate): New function.
  15154. (deactivate): New function.
  15155. (addPeerUpload): Removed.
  15156. (setPeerUpload): Removed.
  15157. (getPeerUpload): Removed.
  15158. (addPeerDownload): Removed.
  15159. (setPeerDownload): Removed.
  15160. (getPeerDownload): Removed.
  15161. * src/Peer.cc
  15162. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15163. * src/MetalinkRequestInfo.h
  15164. (MetalinkRequestInfo): Removed const qualifier from op.
  15165. * src/RequestInfo.h
  15166. (op): Removed const qualifier.
  15167. (RequestInfo): Removed const qualifier from op.
  15168. * src/prefs.h
  15169. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15170. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15171. * src/PeerInteractionCommand.cc
  15172. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15173. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15174. * src/PeerInteraction.cc
  15175. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15176. * src/main.cc
  15177. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15178. Added the description of "--max-download-limit" option.
  15179. Removed the description of "--upload-limit" option.
  15180. Added the description of "--max-upload-limit" option.
  15181. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15182. Added "--max-download-limit" option and "--max-upload-limit" option.
  15183. Added the warning message if "--upload-limit" option is used.
  15184. * src/DownloadCommand.cc
  15185. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15186. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15187. To rewrite segment download mechanism for HTTP/FTP download.
  15188. Use BitfieldMan to manage segment download.
  15189. * src/HttpResponseCommand.h
  15190. (executeInternal): Pass the reference of segment.
  15191. * src/AbstractCommand.cc
  15192. (prepareForRetry): Call segmentMan->cancelSegment here.
  15193. (onAbort): Call segmentMan->cancelSegment here.
  15194. * src/HttpDownloadCommand.cc
  15195. (prepareForNextSegment): New function.
  15196. * src/DownloadEngineFactory.cc
  15197. (newConsoleEngine): Removed splitter.
  15198. (newTorrentConsoleEngine): Removed splitter.
  15199. * src/Request.h
  15200. (segment): Renamed from seg.
  15201. * src/FtpInitiateConnectionCommand.h
  15202. (executeInternal): Pass the reference of segment.
  15203. * src/AbstractCommand.h
  15204. (executeInternal): Pass the reference of segment.
  15205. * src/pref.h
  15206. (PREF_SEGMENT_SIZE): New definition.
  15207. * src/HttpProxyRequestCommand.h
  15208. (executeInternal): Pass the reference of segment.
  15209. * src/HttpResponseCommand.cc
  15210. (checkResponse): Allowed status 206 when a request range starts 0.
  15211. (handleDefaultEncoding): Rewritten the code related to Segment.
  15212. (handleOtherEncoding): Rewritten the code related to Segment.
  15213. * src/SegmentMan.h
  15214. (SegmentEntry): New class.
  15215. (SegmentEntries): New type definition.
  15216. (bitfield): New variable.
  15217. (usedSegmentEntries): New variable.
  15218. (onNullBitfield): New function.
  15219. (checkoutSegment): New function.
  15220. (segments): Removed.
  15221. (splitter): Removed.
  15222. (unregisterId): Removed.
  15223. (getSegment): New function(overload)
  15224. (getDownloadedSize): Removed.
  15225. (cancelSegment): New function.
  15226. (completeSegment): New function.
  15227. (initBitfield): New function.
  15228. (hasSegment): New function.
  15229. (getDownloadLength): New function.
  15230. * src/BitfieldMan.h
  15231. (getStartIndex): New function.
  15232. (getEndIndex): New function.
  15233. (getMissingUnusedIndex): New function(overload).
  15234. (getSparseMissingUnusedIndex): New function.
  15235. * src/BitfieldMan.cc
  15236. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15237. (getMissingUnusedIndex): New function(overload).
  15238. (Range): New class.
  15239. (getStartIndex): New function.
  15240. (getEndIndex): New function.
  15241. (getSparseMissingUnusedIndex): New function.
  15242. (isBitSetInternal): Return false if the given index is less than 0.
  15243. * src/HttpInitiateConnectionCommand.h
  15244. (executeInternal): Pass the reference of segment.
  15245. * src/FtpNegotiateCommand.h
  15246. (executeInternal): Pass the reference of segment.
  15247. * src/FtpNegotiateCommand.cc
  15248. (recvSize): Initialize bitfield here.
  15249. * src/FtpTunnelResponseCommand.h
  15250. (executeInternal): Pass the reference of segment.
  15251. * src/HttpConnection.cc
  15252. (createRequest): Rewritten range header processing.
  15253. * src/DownloadCommand.h
  15254. (executeInternal): Pass the reference of segment.
  15255. (prepareForRetry): Removed.
  15256. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15257. function.
  15258. * src/main.cc
  15259. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15260. * src/SegmentMan.cc
  15261. (SegmentMan): Added bitfield. Removed splitter.
  15262. (~SegmentMan): Added bitfield. Removed splitter.
  15263. (unregisterId): Removed.
  15264. (getSegment): Rewritten.
  15265. (updateSegment): Rewritten.
  15266. (save): Rewritten.
  15267. (read): Rewritten.
  15268. (finished): Rewritten.
  15269. (getDownloadedSize): Removed.
  15270. (initBitfield): New function.
  15271. (FindSegmentEntryByIndex): New function object.
  15272. (FindSegmentEntryByCuid): New function object.
  15273. (checkoutSegment): New function.
  15274. (onNullBitfield): New function.
  15275. (getSegment): New function(overload).
  15276. (CancelSegment): New function object.
  15277. (cancelSegment): New function.
  15278. (completeSegment): New function.
  15279. (hasSegment): New function.
  15280. (getDownloadLength): New function.
  15281. * src/FtpInitiateConnectionCommand.cc
  15282. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15283. * src/Segment.h: Rewritten.
  15284. * src/Segment.cc (operator<<): New function.
  15285. * src/HttpDownloadCommand.h
  15286. (prepareForNextSegment): New function.
  15287. * src/Request.cc
  15288. (resetUrl): Made segment null.
  15289. * src/DownloadEngine.cc
  15290. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15291. * src/HttpProxyRequestCommand.h
  15292. (executeInternal): Pass the reference of segment.
  15293. * src/DownloadCommand.cc
  15294. (executeInternal): Rewritten the code related to Segment.
  15295. (prepareForRetry): Removed.
  15296. (prepareForNextSegment): Rewritten.
  15297. * src/FtpTunnelResponseCommand.h
  15298. (executeInternal): Pass the reference of segment.
  15299. To add HTTP 1.1 persistent connection support(experimental)
  15300. * src/HttpRequestCommand.cc
  15301. (executeInternal): Disable keep alive if it is disabled by
  15302. configuration.
  15303. * src/Request.h
  15304. (keepAlive): New variable.
  15305. (isKeepAlive): New function.
  15306. (setKeepAlive): New function.
  15307. * src/pref.h
  15308. (PREF_HTTP_KEEP_ALIVE): New definition.
  15309. * src/HttpResponseCommand.cc
  15310. (executeInternal): Check the remote server supports keep alive.
  15311. * src/HttpConnection.cc
  15312. (createRequest): Send "Connection: close" only if keep alive is
  15313. disabled.
  15314. * src/main.cc
  15315. (main):
  15316. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15317. To add max download speed limit:
  15318. * src/pref.h
  15319. (PREF_MAX_SPEED_LIMIT): New definition.
  15320. * src/PeerInteractionCommand.cc
  15321. (executeInternal): Added max download speed limit. Not tested yet.
  15322. * src/SegmentMan.h
  15323. (PeerStats): New type definition.
  15324. (peerStats): New variable.
  15325. (registerPeerStat): New function.
  15326. (FindPeerStat): New function object.
  15327. (getPeerStat): New function.
  15328. (calculateDownloadSpeed): New function.
  15329. * src/SpeedCalc.h: New class.
  15330. * src/SpeedCalc.cc: New class.
  15331. * src/main.cc
  15332. (main):
  15333. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15334. download speed is not restricted).
  15335. * src/PeerStat.h: New class.
  15336. * src/SegmentMan.cc
  15337. (registerPeerStat): New function.
  15338. (calculateDownloadSpeed): New function.
  15339. * src/DownloadCommand.cc
  15340. (STARTUP_IDLE_TIME): New definition.
  15341. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15342. downloadStart.
  15343. (~DownloadCommand): Call peerStat->downloadStop.
  15344. (executeInternal): Added download speed limitter. Rewritten lowest
  15345. speed limitter.
  15346. * src/HttpConnection.cc
  15347. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15348. * src/AbstractCommand.cc
  15349. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15350. Added hostname to the error message.
  15351. * src/ConsoleDownloadEngine.cc
  15352. (calculateStatistics): Initialize psize with dlSize.
  15353. * src/PieceMessage.cc
  15354. (receivedAction): Do not call peerInteraction->abortPiece here.
  15355. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15356. * src/BitfieldMan.h
  15357. (clearAllUseBit): New function.
  15358. (setAllUseBit): New function.
  15359. * src/BitfieldMan.cc
  15360. (clearAllBit): Do not clear useBitfield here.
  15361. (clearAllUseBit): New function.
  15362. (setAllUseBit): New function.
  15363. * src/Piece.cc
  15364. (clearAllBlock): Call bitfield->clearAllUseBit().
  15365. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15366. To make filename URL-decoded:
  15367. * src/HttpResponseCommand.h: Updated doc.
  15368. * src/HttpResponseCommand.cc
  15369. (determinFilename): Made filename URL-decoded.
  15370. * src/FtpInitiateConnectionCommand.cc
  15371. (executeInternal): Made filename URL-decoded.
  15372. * src/Util.h (urldecode): New function.
  15373. * src/Util.cc (urldecode): New function.
  15374. To fix a bug that caused assertion failure in ares_strerror:
  15375. * src/NameResolver.cc (callback): Fixed the bug.
  15376. * Release 0.7.3
  15377. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15378. To add --seed-time and --seed-ratio command-line option:
  15379. * src/Option.h (getAsDouble): New function.
  15380. * src/Option.cc (getAsDouble): New function.
  15381. * src/SeedCheckCommand.h: New class.
  15382. * src/SeedCheckCommand.cc: New class.
  15383. * src/DownloadEngineFactory.cc
  15384. (SeedCheckCommand.h): Included.
  15385. (UnionSeedCriteria.h): Included.
  15386. (TimeSeedCriteria.h): Included.
  15387. (ShareRatioSeedCriteria.h): Included.
  15388. (newTorrentConsoleEngine): Added the processing of seed option.
  15389. * src/SeedCriteria.h: New class.
  15390. * src/ShareRatioSeedCriteria.h: New class.
  15391. * src/TimeSeedCriteria.h: New class.
  15392. * src/UnionSeedCriteria.h: New class.
  15393. * src/prefs.h
  15394. (PREF_SEED_TIME): New definition.
  15395. (PREF_SEED_RATIO): New definition.
  15396. * src/main.cc
  15397. (showUsage): Added --seed-time and --seed-ratio option.
  15398. (main): Added --seed-time and --seed-ratio option.
  15399. Made default log file name "/dev/null".
  15400. * src/SharedHandle.h
  15401. (SharedHandle): Copy constructor. Made it assignable from the
  15402. SharedHandle of the subclasses.
  15403. (operator=): Made it assignable from the SharedHandle of the
  15404. subclasses.
  15405. (getRefCount): New function.
  15406. To add notice log level and the switch to write log to stdout. This
  15407. switch is configurable per log level.
  15408. * src/Logger.h
  15409. (notice): New function.
  15410. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15411. constant.
  15412. * src/LogFactory.cc
  15413. (getInstance): The use of NullLogger was removed. A log message with
  15414. notice log level was made written to stdout along with log file.
  15415. * src/NullLogger.h
  15416. (notice): New function.
  15417. * src/SimpleLogger.h
  15418. (writeHeader): Added the 'file' argument.
  15419. (writeLog): Added the 'file' argument.
  15420. (writeFile): New function.
  15421. (stdoutField): New variable.
  15422. (SimpleLogger): Removed the default constructor.
  15423. (SimpleLogger): Made the default value of logfile 0.
  15424. (debug): Added 'virtual' keyword.
  15425. (info): Added 'virtual' keyword.
  15426. (warn): Added 'virtual' keyword.
  15427. (error): Added 'virtual' keyword.
  15428. (notice): New function.
  15429. (setStdout): New function.
  15430. * src/SimpleLogger.cc
  15431. (WRITE_LOG): Replaced writeLog with writeFile.
  15432. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15433. (SimpleLogger): Removed the default constructor.
  15434. (setStdout): New function.
  15435. (writeLog): Added the handling of NOTICE log level.
  15436. (writeFile): New function.
  15437. (notice): New function.
  15438. * src/TorrentMan.h: Updated doc.
  15439. * src/BitfieldMan.h: Updated doc.
  15440. * src/TrackerWatcherCommand.cc
  15441. (execute): Return true if error occurred in the request to the tracker
  15442. and halt is requested.
  15443. * src/TrackerUpdateCommand.cc
  15444. (execute): Return true if error occurred in the request to the tracker
  15445. and halt is requested.
  15446. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15447. DownloadEngine:
  15448. * src/TorrentConsoleDownloadEngine.h
  15449. (onSelectiveDownloadingCompletes): Removed.
  15450. * src/TorrentConsoleDownloadEngine.cc
  15451. (onSelectiveDownloadingCompletes): Removed.
  15452. * src/TorrentDownloadEngine.h
  15453. (onEndOfRun): Added 'virtual' keyword.
  15454. (afterEachIteration): Removed.
  15455. (onSelectiveDownloadingCompletes): Removed.
  15456. * src/TorrentDownloadEngine.cc
  15457. (onEndOfRun): Removed filenameFixed.
  15458. (afterEachIteration): Removed.
  15459. * src/TorrentMan.cc
  15460. (completePiece): Call onDownloadComplete here.
  15461. (onDownloadComplete): Added 2 log messages.
  15462. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15463. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15464. * src/NameResolver.h: Added the prototype declaration of callback().
  15465. To support c-ares library:
  15466. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15467. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15468. * src/FtpInitiateConnectionCommand.h:
  15469. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15470. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15471. * src/HttpInitiateConnectionCommand.h:
  15472. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15473. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15474. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15475. #1542285 by tizianomueller)
  15476. * src/HttpInitiateConnectionCommand.cc:
  15477. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15478. * src/FtpInitiateConnectionCommand.cc:
  15479. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15480. * src/DownloadEngine.h:
  15481. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15482. * src/DownloadEngine.cc:
  15483. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15484. To fix the bug that causes compilation failure with metalink-support
  15485. disabled(bug#1543587):
  15486. * src/main.cc: Fixed with the patch by tizianomueller.
  15487. * Release 0.7.2
  15488. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15489. * src/main.cc
  15490. (main): Added a message to inform users that aria2 is starting to
  15491. verify checksum.
  15492. * src/RequestInfo.cc
  15493. (printDownloadAbortMessage): Added a message to inform users that
  15494. transfer can be resumed.
  15495. * src/FeatureConfig.cc
  15496. (FEATURE_ASYNC_DNS): New definition.
  15497. (FeatureConfig): Added aysnc DNS entry.
  15498. To replace CommandUuid with Command* in SocketEntry and
  15499. NameResolverEntry:
  15500. * src/DownloadEngine.h
  15501. (CommandUuids): Removed.
  15502. (SocketEntry::commandUuid): Removed.
  15503. (SocketEntry::command): New variable.
  15504. (SocketEntry::SocketEntry): Updated.
  15505. (SocketEntry::operator==): Updated.
  15506. (NameResolverEntry::commandUuid): Removed.
  15507. (NameResolverEntry::command): New variable.
  15508. (NameResolverEntry::NameResolverEntry): Updated.
  15509. (NameResolverEntry::operator==): Updated.
  15510. (waitData): Changed the argument type.
  15511. (addSocketForReadCheck): Changed the argument type.
  15512. (deleteSocketForReadCheck): Changed the argument type.
  15513. (addSocketForWriteCheck): Changed the argument type.
  15514. (deleteSocketForWriteCheck): Changed the argument type.
  15515. (addNameResolverCheck): Changed the argument type.
  15516. (deleteNameResolverCheck): Changed the argument type.
  15517. * src/DownloadEngine.cc
  15518. (FindCommand): Removed.
  15519. (run): Removed activeUuid. Added activeCommands instead.
  15520. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15521. (AccumulateActiveCommand): New function object.
  15522. (waitData): Use AccumulateActiveCommand.
  15523. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15524. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15525. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15526. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15527. (addNameResolverCheck): Use Command instead of CommandUuid.
  15528. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15529. * src/AbstractCommand.cc
  15530. (disableReadCheckSocket): Updated according to the changes in
  15531. DownloadEngine.
  15532. (setReadCheckSocket): Updated according to the changes in
  15533. DownloadEngine.
  15534. (disableWriteCheckSocket): Updated according to the changes in
  15535. DownloadEngine.
  15536. (setWriteCheckSocket): Updated according to the changes in
  15537. DownloadEngine.
  15538. (setNameResolverCheck): Updated according to the changes in
  15539. DownloadEngine.
  15540. (disableNameResolverCheck): Updated according to the changes in
  15541. DownloadEngine.
  15542. * src/AbstractCommand.cc
  15543. (disableReadCheckSocket): Updated according to the changes in
  15544. DownloadEngine.
  15545. (setReadCheckSocket): Updated according to the changes in
  15546. DownloadEngine.
  15547. (disableWriteCheckSocket): Updated according to the changes in
  15548. DownloadEngine.
  15549. (setWriteCheckSocket): Updated according to the changes in
  15550. DownloadEngine.
  15551. * release 0.7.1
  15552. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15553. To handle the case where some BitTorrent tracker requires all letters
  15554. except for [A-Za-z0-9] is URL encoded.
  15555. * src/Util.h
  15556. (torrentUrlencode): New function.
  15557. * src/Util.cc
  15558. (ctype.h): Included.
  15559. (torrentUrlencode): New function.
  15560. * src/TrackerWatcherCommand.cc
  15561. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15562. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15563. To add asynchronous DNS support(libares):
  15564. * src/AbstractCommand.h
  15565. (setNameResolverCheck): New function.
  15566. (disableNameResolverCheck): New function
  15567. (resolveHostname): New function.
  15568. * src/AbstractCommand.cc
  15569. (setNameResolverCheck): New function.
  15570. (disableNameResolverCheck): New function
  15571. (resolveHostname): New function.
  15572. * src/FtpInitiateConnectionCommand.h
  15573. (nameResolver): New function.
  15574. * src/FtpInitiateConnectionCommand.cc
  15575. (Util.h): Included.
  15576. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15577. disableWriteCheckSocket.
  15578. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15579. (executeInternal): Added async DNS support.
  15580. * src/HttpInitiateConnectionCommand.h
  15581. (nameResolver): New function.
  15582. * src/HttpInitiateConnectionCommand.cc
  15583. (DlRetryEx.h): Included.
  15584. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15585. disableWriteCheckSocket.
  15586. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15587. (executeInternal): Added async DNS support.
  15588. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15589. by extern "C" declaration.
  15590. * src/NameResolver.cc: New class.
  15591. * src/Util.h:
  15592. (isNumberAndDotsNotation): New function
  15593. * src/Util.cc
  15594. (isNumberAndDotsNotation): New function.
  15595. * src/DownloadEngine.h
  15596. (NameResolver.h): Included.
  15597. (NameResolverEntry): New class.
  15598. (NameResolverEntries): New type definition.
  15599. (addNameResolverCheck): New function.
  15600. (deleteNameResolverCheck): New function.
  15601. * src/DownloadEngine.cc
  15602. (run): Initialize cp with 0.
  15603. (SetDescriptor::operator()): Added for NameResolverEntry.
  15604. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15605. (waitData): Check nameResolver entries.
  15606. (updateFdSet): Update fds in nameResolver entries.
  15607. (addNameResolverCheck): New function.
  15608. (deleteNameResolverCheck): new function.
  15609. * src/PeerInteractionCommand.cc
  15610. (executeInternal): Fixed wrong socket handling.
  15611. * src/main.cc
  15612. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15613. * src/Util.cc
  15614. (fileChecksum): Removed the call to ctx.digestReset().
  15615. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15616. * po/ru.po: Azamat sent me Russian translation.
  15617. * src/FtpNegotiateCommand.cc
  15618. (recvGreeting): Call disableWriteCheckSocket just after
  15619. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15620. (recvRetr): Recognized status code 125 as a acceptable response code.
  15621. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15622. case-insesitive filesystem(BUG#1531057).
  15623. * src/Time.h: Renamed as TimeA2.h.
  15624. * src/Time.cc: Renamed as TimeA2.cc.
  15625. * src/TimeA2.h: New class.
  15626. * src/TimeA2.cc: New class.
  15627. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15628. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15629. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15630. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15631. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15632. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15633. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15634. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15635. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15636. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15637. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15638. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15639. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15640. * release 0.7.0
  15641. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15642. * src/PeerChokeCommand.h
  15643. (PeerChokeCommand): Rearranged the arguments.
  15644. * src/PeerChokeCommand.cc
  15645. (PeerChokeCommand): Rearranged the arguments.
  15646. * src/MetalinkEntry.h
  15647. (Checksum.h): Included.
  15648. (md5): Removed.
  15649. (sha1): Removed.
  15650. (checksum): New variable.
  15651. (operator=): Updated.
  15652. (check): Removed.
  15653. * src/prefs.h
  15654. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15655. (PREF_FOLLOW_TORRENT): New definition.
  15656. (PREF_SELECT_FILE): New definition.
  15657. (PREF_FOLLOW_METALINK): New definition.
  15658. * src/MetalinkResource.h
  15659. (TYPE_HTTPS): Added to enum TYPE.
  15660. * src/TorrentMan.cc
  15661. (~TorrentMan): Rewritten.
  15662. * src/MultiDiskWriter.cc
  15663. (MultiDiskAdaptor): Updated according to the changes in
  15664. MessageDigestContext.
  15665. (~MultiDiskAdaptor): Updated according to the changes in
  15666. MessageDigestContext.
  15667. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15668. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15669. * src/Util.h
  15670. (fileChecksum): Updated according to the changes in
  15671. MessageDigestContext.
  15672. * src/Util.cc
  15673. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15674. (fileChecksum): Updated according to the changes in
  15675. MessageDigestContext.
  15676. * src/messageDigest.h: Rewritten.
  15677. * src/MetalinkEntry.cc
  15678. (check): Removed.
  15679. (Supported): Updated.
  15680. (dropUnsupportedResource): Fixed a memory leak.
  15681. * src/ShaVisitor.cc
  15682. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15683. (~ShaVisitor): Updated according to the changes in
  15684. MessageDigestContext.
  15685. (visit): Updated according to the changes in MessageDigestContext.
  15686. * src/main.cc
  15687. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15688. command-line option added.
  15689. * src/DownloadEngine.h
  15690. (SocketEntry): New class.
  15691. (SocketEntries): New definition.
  15692. (PairFind): Removed.
  15693. (SockCmdMap): Removed.
  15694. * src/DownloadEngine.cc
  15695. (DownloadEngine): Rewritten.
  15696. (~DownloadEngine): Rewritten.
  15697. (run): Renamed activeCommandUuids as activeUuids.
  15698. (SetDescriptor): Rewritten.
  15699. (AccumulateActiveCommandUuid): Removed.
  15700. (AccumulateActiveUuid): New function object.
  15701. (waitData): Rewritten.
  15702. (updateFdSet): Rewritten.
  15703. (addSocket): Rewritten.
  15704. (deleteSocket): Rewritten.
  15705. (addSocketForReadCheck): Rewritten.
  15706. (deleteSocketForReadCheck): Rewritten.
  15707. (addSocketForWriteCheck): Rewritten.
  15708. (deleteSocketForWriteCheck): Rewritten.
  15709. * src/Xml2MetalinkProcessor.cc
  15710. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15711. * src/DownloadCommand.cc
  15712. (executeInternal): Added the check routine for lowest speed limit.
  15713. * src/AbstractDiskWriter.cc
  15714. (AbstractDiskWriter): Updated according to the changes in
  15715. MessageDigestContext.
  15716. (~AbstractDiskWriter): Updated according to the changes in
  15717. MessageDigestContext.
  15718. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15719. * src/RequestInfo.h: New class.
  15720. * src/UrlRequestInfo.h: New class.
  15721. * src/UrlRequestInfo.cc: New class.
  15722. * src/TorrentRequestInfo.h: New class.
  15723. * src/TorrentRequestInfo.cc: New class.
  15724. * src/MetalinkRequestInfo.h: New class.
  15725. * src/MetalinkRequestInfo.cc: New class.
  15726. * src/Checksum.h: New class.
  15727. * src/DownloadEngineFactory.h: New class.
  15728. * src/DownloadEngineFactory.cc: New class.
  15729. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15730. * src/Option.h
  15731. (getAsBool): New function.
  15732. * src/Option.cc
  15733. (prefs.h): Included.
  15734. (defined): 0-length value is now recognized as undefined.
  15735. (getAsInt): Rewritten.
  15736. (getAsLLInt): Rewritten.
  15737. (getAsBool): New function.
  15738. * src/FeatureConfig.h: Rewritten.
  15739. * src/FeatureConfig.cc: Rewritten.
  15740. * src/prefs.h
  15741. (PREF_STDOUT_LOG): New definition.
  15742. (PREF_LOG): New definition.
  15743. (PREF_DIR): New definition.
  15744. (PREF_OUT): New definition.
  15745. (PREF_SPLIT): New definition.
  15746. (PREF_DAEMON): New definition.
  15747. (PREF_REFERER): New definition.
  15748. (PREF_TORRENT_FILE): New definition.
  15749. (PREF_LISTEN_PORT): New definition.
  15750. (PREF_METALINK_FILE): New definition.
  15751. (PREF_METALINK_VERSION): New definition.
  15752. (PREF_METALINK_LANGUAGE): New definition.
  15753. (PREF_METALINK_OS): New definition.
  15754. (PREF_METALINK_SERVERS): New definition.
  15755. * src/main.cc
  15756. (main): Following command-line parameters are now put into Option
  15757. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15758. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15759. metalinkLanguage, metalinkOs, metalinkServers
  15760. To fix the bug that aria2 can not handle http response header properly.
  15761. * src/HttpHeader.cc
  15762. (put): Made name lowercased.
  15763. (defined): Made name lowercased.
  15764. (getFirst): Made name lowercased.
  15765. (get): Made name lowercased.
  15766. (getFirstAsInt): Rewritten.
  15767. (getFirstAsLLInt): Rewritten.
  15768. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15769. * src/TorrentMan.h:
  15770. (advertisePiece): Updated doc.
  15771. (getAdvertisedPieceIndexes): Updated doc.
  15772. (removeAdvertisedPiece); New function.
  15773. * src/TorrentMan.cc
  15774. (FindElapsedHave): New function object.
  15775. (removeAdvertisedPiece): New function.
  15776. * src/HaveEraseCommand.h: New class.
  15777. * src/HaveEraseCommand.cc: New class.
  15778. * src/FeatureConfig.h: New class.
  15779. * src/FeatureConfig.cc: New class.
  15780. * src/Request.h
  15781. (defaultPorts): Removed.
  15782. * src/Request.cc
  15783. (FeatureConfig.h): Included.
  15784. (Request): Removed the statements related to defaultPorts.
  15785. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15786. A default port number is now retrieved from FeatureConfig.
  15787. * src/main.cc
  15788. (HaveEraseCommand.h): Included.
  15789. (showVersion): Added the output of feature list.
  15790. (main): Added HaveEraseCommand to command queue in BitTorrent
  15791. downloading.
  15792. * src/PeerInteractionCommand.h
  15793. (chokeCheckPoint): Commented out.
  15794. (periodicExecPoint): New variable.
  15795. * src/PeerInteractionCommand.cc
  15796. (executeInternal): Following methods are now called in at least every
  15797. 0.5 seconds to reduce CPU usage:
  15798. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15799. checkHave(), sendKeepAlive().
  15800. (checkLongTimePeerChoking): Commented out.
  15801. * src/BitfieldMan.h
  15802. (getNthBitIndex): Changed the method signature.
  15803. (getMissingIndexRandomly): Changed the method signature.
  15804. * src/BitfieldMan.cc
  15805. (getNthBitIndex): Rewritten
  15806. (getMissingIndexRandomly): Rewritten.
  15807. (hasMissingPiece): Rewritten.
  15808. (getMissingIndex): Refactored.
  15809. (getMissingUnusedIndex); Refactored.
  15810. (getMissingIndex): Refactored.
  15811. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15812. * src/PeerMessage.h
  15813. (Piece.h): Included.
  15814. (SharedHandle.h): Included.
  15815. (invalidate): New variable.
  15816. (uploading): New variable.
  15817. (isInvalidate): New function.
  15818. (isUploading): New function.
  15819. (onPush): New function.
  15820. (onChoked): New function.
  15821. (onCanceled): New function.
  15822. (onAbortPiece): New function.
  15823. (PeerMessageHandle): New type definition.
  15824. * src/PeerMessage.cc
  15825. (PeerMessage): Added the initialization for invalidate and uploading.
  15826. * src/CancelMessage.h
  15827. (CancelMessage): Rewritten.
  15828. * src/RejectMessage.h
  15829. (RejectMessage): Rewritten.
  15830. * src/Metalinker.h
  15831. (operator=): Defined.
  15832. * src/MetaEntry.h
  15833. (operator=): Defined.
  15834. * src/MetalinkResource.h
  15835. (operator=): Defined.
  15836. * src/AllowedFastMessage.h
  15837. (AllowedFastMessage): Rewritten.
  15838. * src/HandshakeMessage.h
  15839. (HandshakeMessage): New function(overload).
  15840. * src/HandshakeMessage.cc
  15841. (HandshakeMessage): Rewritten.
  15842. (init): New function.
  15843. * src/HaveMessage.h
  15844. (HaveMessage): Rewritten.
  15845. * src/Time.h
  15846. (operator=): Defined the function body here.
  15847. * src/Time.cc
  15848. (operator=): Removed.
  15849. * src/SocketCore.h
  15850. (operator==): Defined here.
  15851. (operator!=): Defined here.
  15852. (operator<): Defined here.
  15853. * src/SocketCore.cc
  15854. (operator==): Removed.
  15855. (operator<): Removed.
  15856. * src/BitfieldMan.h
  15857. (operator=): Defined the function body here.
  15858. * src/BitfieldMan.cc
  15859. (operator=): Removed.
  15860. * src/TorrentMan.h
  15861. (deleteErrorPeer): Removed.
  15862. (deleteUnusedPeer); New function.
  15863. * src/TorrentMan.cc
  15864. (addPeer): Call deleteUnusedPeer.
  15865. (deleteErrorPeer): Removed.
  15866. (deleteUnusedPeer): New function.
  15867. * src/PeerAbstractCommand.h
  15868. (setNoCheck): New function.
  15869. (noCheck): New variable.
  15870. * src/PeerAbstractCommand.cc
  15871. (PeerAbstractCommand): Added the initialization of noCheck.
  15872. (execute): Added a check for noCheck.
  15873. (setNoCheck): New function.
  15874. * src/Util.h
  15875. (stdio.h): Included.
  15876. * src/Util.cc
  15877. (unistd.h): Included.
  15878. * src/DefaultDiskWriter.cc
  15879. (unistd.h): Included.
  15880. * src/Peer.h
  15881. (operator==): Defined the function body here.
  15882. (operator!=): Defined the function body here.
  15883. * src/Peer.cc
  15884. (operator==): Removed.
  15885. (operator!=): Removed.
  15886. * src/Piece.h
  15887. (Piece): Defined the function body here(copy constructor).
  15888. (operator=): Defined the function body here.
  15889. (operator==): Defined the function body here.
  15890. * src/Piece.cc
  15891. (Piece): Removed(copy constructor).
  15892. (operator=): Removed.
  15893. (operator==): Removed.
  15894. * src/PeerMessageUtil.h
  15895. (ChokeMessage.h): Removed.
  15896. (UnchokeMessage.h): Removed.
  15897. (InterestedMessage.h): Removed.
  15898. (NotInterestedMessage.h): Removed.
  15899. (HaveMessage.h): Removed.
  15900. (BitfieldMessage.h): Removed.
  15901. (RequestMessage.h): Removed.
  15902. (CancelMessage.h): Removed.
  15903. (PieceMessage.h): Removed.
  15904. (HandshakeMessage.h): Removed.
  15905. (KeepAliveMessage.h): Removed.
  15906. (PortMessage.h): Removed.
  15907. (HaveAllMessage.h): Removed.
  15908. (HaveNoneMessage.h): Removed.
  15909. (PeerConnection.h): Removed.
  15910. (HandshakeMessage.h): Included.
  15911. * src/BitfieldMessage.h
  15912. (init): New function.
  15913. (BitfieldMessage): Rewritten.
  15914. (BitfieldMessage): New function(overload).
  15915. * src/RequestSlot.h
  15916. (operator=): Defined the function body here.
  15917. (operator==): Defined the function body here.
  15918. * src/RequestSlot.cc
  15919. (operator=): Removed.
  15920. (operator==): Removed.
  15921. To remove the dependency on the PeerMessage subclass from
  15922. PeerInteraction:
  15923. * src/PeerMessageFactory.h: New class.
  15924. * src/PeerMessageFactory.cc: New class.
  15925. * src/SimplePeerMessage.cc
  15926. (send): If invalidate is true then do nothing.
  15927. * src/PeerInteractionCommand.cc
  15928. (HandshakeMessage.h): Included.
  15929. (KeepAliveMessage.h): Included.
  15930. (ChokeMessage.h): Included.
  15931. (UnchokeMessage.h): Included.
  15932. (HaveMessage.h): Included.
  15933. (executeInternal): Call setNoCheck().
  15934. Removed setWriteCheckSocket(socket).
  15935. * src/PeerInteraction.h
  15936. (ChokeMessage.h): Removed.
  15937. (UnchokeMessage.h): Removed.
  15938. (InterestedMessage.h): Removed.
  15939. (NotInterestedMessage.h): Removed.
  15940. (HaveMessage.h): Removed.
  15941. (BitfieldMessage.h): Removed.
  15942. (RequestMessage.h): Removed.
  15943. (CancelMessage.h): Removed.
  15944. (PieceMessage.h): Removed.
  15945. (HandshakeMessage.h): Removed.
  15946. (KeepAliveMessage.h): Removed.
  15947. (PortMessage.h): Removed.
  15948. (HaveAllMessage.h): Removed.
  15949. (HaveNoneMessage.h): Removed.
  15950. (RejectMessage.h): Removed.
  15951. (AllowedFastMessage.h): Removed.
  15952. (SuggestPieceMessage.h): Removed.
  15953. (PeerMessageFactory.h): Included.
  15954. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15955. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15956. (PeerMessageFactory): New variable.
  15957. (createPeerMessage): Removed.
  15958. (createHandshakeMessage): Removed.
  15959. (setPeerMessageCommonProperty): Removed.
  15960. (addRequestSlot): New function.
  15961. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15962. (getPeerMessageFactory): New function.
  15963. (createRequestMessage): Removed.
  15964. (createCancelMessage): Removed.
  15965. (createPieceMessage): Removed.
  15966. (createHaveMessage): Removed.
  15967. (createChokeMessage): Removed.
  15968. (createUnchokeMessage): Removed.
  15969. (createInterestedMessage): Removed.
  15970. (createNotInterestedMessage): Removed.
  15971. (createBitfieldMessage): Removed.
  15972. (createKeepAliveMessage): Removed.
  15973. (createHaveAllMessage): Removed.
  15974. (createHaveNoneMessage): Removed.
  15975. (createRejectMessage): Removed.
  15976. (createAllowedFastMessage): Removed.
  15977. * src/PeerInteraction.cc
  15978. (PeerInteraction): Allocate PeerMessageFactory here.
  15979. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15980. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15981. PieceMessage::ID.
  15982. (addMessage): Simplified by using PeerMessage::onPush().
  15983. (addRequestSlot): New function.
  15984. (rejectAllPieceMessageInQueue): Simplified by using
  15985. PeerMessage::onChoked().
  15986. (rejectPieceMessageInQueue): Simplified by using
  15987. PeerMessage::onCanceled().
  15988. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15989. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15990. (createHandshakeMessage): Removed.
  15991. (createPeerMessage): Removed.
  15992. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15993. (setPeerMessageCommonProperty): Removed.
  15994. (createRequestMessage): Removed.
  15995. (createCancelMessage): Removed.
  15996. (createPieceMessage): Removed.
  15997. (createHaveMessage): Removed.
  15998. (createChokeMessage): Removed.
  15999. (createUnchokeMessage): Removed.
  16000. (createInterestedMessage): Removed.
  16001. (createNotInterestedMessage): Removed.
  16002. (createBitfieldMessage): Removed.
  16003. (createKeepAliveMessage): Removed.
  16004. (createHaveAllMessage): Removed.
  16005. (createHaveNoneMessage): Removed.
  16006. (createRejectMessage): Removed.
  16007. (createAllowedFastMessage): Removed.
  16008. * src/PieceMessage.h
  16009. (createRejectMessage): New function.
  16010. (PieceMessage): Rewritten.
  16011. (onChoked): New function.
  16012. (onCanceled): New function.
  16013. * src/PieceMessage.cc
  16014. (send): If invalidate is true then do nothing, just return.
  16015. (createRejectMessage): New function.
  16016. (onChoked): New function.
  16017. (onCanceled): New function.
  16018. * src/RequestMessage.h
  16019. (RequestMessage): Rewritten.
  16020. (onPush): New function.
  16021. (onAbortPiece): New function.
  16022. * src/RequestMessage.cc
  16023. (onPush): New function.
  16024. (onAbortPiece): New function.
  16025. Update fd_set when a socket is added or deleted in order to improve
  16026. performance:
  16027. * src/DownloadEngine.h
  16028. (rfdset): New variable.
  16029. (wfdset): New variable.
  16030. (updateFdSet): New function.
  16031. * src/DownloadEngine.cc
  16032. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16033. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16034. (waitData): Copy rfdset and wfdset.
  16035. (updateFdSet): New function.
  16036. (addSocket): Call updateFdSet.
  16037. (deleteSocket): Call updateFdSet.
  16038. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16039. To add the support for Metalink3.0 backward compatible links:
  16040. * src/Request.h
  16041. (SAFE_CHARS): Added '#'.
  16042. (METALINK_MARK): New definition.
  16043. * src/Request.cc
  16044. (parseUrl): Added the support for Metalink3.0 backward compatible
  16045. links.
  16046. etc
  16047. * src/PeerInteraction.cc
  16048. (MsgPushBack): Removed.
  16049. (sendMessages): Use STL copy and back_inserter.
  16050. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16051. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16052. * src/TorrentMan.h
  16053. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16054. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16055. * src/SharedHandle.h: New class.
  16056. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16057. * src/HttpResponseCommand.h
  16058. (HttpResponseCommand): Wrapped Socket.
  16059. * src/SocketCore.h
  16060. (operator==): New function.
  16061. (operator!=): New function.
  16062. (operator<): New function.
  16063. (getSockfd): New function.
  16064. (isOpen): New function.
  16065. (writeData): New function.
  16066. * src/SocketCore.cc
  16067. (operator==): New function.
  16068. (operator!=): New function.
  16069. (operator<): New function.
  16070. * src/AbstractCommand.h
  16071. (socket): Changed its type to SocketHandle.
  16072. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16073. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16074. (disableReadCheckSocket): New function.
  16075. (disableWriteCheckSocket): New function.
  16076. (readCheckTarget): Changed its type to SocketHandle.
  16077. (writeCheckTarget): Changed its type to SocketHandle.
  16078. (AbstractCommand): Replaced Socket with SocketHandle.
  16079. * src/AbstractCommand.cc
  16080. (AbstractCommand): Replaced Socket with SocketHandle.
  16081. (~AbstractCommand): Removed the deallocation for Socket object.
  16082. (disableReadCheckSocket): New function.
  16083. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16084. (disableWriteCheckSocket): New function.
  16085. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16086. * src/HttpDownloadCommand.cc
  16087. (DownloadCommand): Replaced Socket with SocketHandle.
  16088. * src/PeerAbstractCommand.h
  16089. (socket): Changed its type to SocketHandle.
  16090. (peer): Changed its type to PeerHandle.
  16091. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16092. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16093. (disableReadCheckSocket): New function.
  16094. (disableWriteCheckSocket): New function.
  16095. (readCheckTarget): Changed its type to SocketHandle.
  16096. (writeCheckTarget): Changed its type to SocketHandle.
  16097. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16098. Replaced Peer with PeerHandle.
  16099. * src/HttpRequestCommand.cc
  16100. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16101. Use disableReadCheckSocket.
  16102. * src/PeerInitiateConnectionCommand.h
  16103. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16104. * src/PeerChokeCommand.cc
  16105. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16106. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16107. (execute): Use PeerHandle.
  16108. * src/PeerConnection.h
  16109. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16110. (socket): Changed its type to SocketHandle.
  16111. (PeerConnection): Replaced Socket with SocketHandle.
  16112. * src/PeerConnection.cc
  16113. (PeerConnection): Replaced Socket with SocketHandle.
  16114. * src/PeerInteractionCommand.h
  16115. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16116. Replaced Peer with PeerHandle.
  16117. * src/PeerInteractionCommand.cc
  16118. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16119. Replaced Peer with PeerHandle.
  16120. (executeInternal): Use disableWriteCheckSocket.
  16121. Use HandshakeMessageHandle.
  16122. (receiveMessages): Use PeerMessageHandle.
  16123. (prepareForNextPeer): Use PeerHandle.
  16124. * src/HttpProxyRequestCommand.h
  16125. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16126. * src/HttpResponseCommand.cc
  16127. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16128. * src/TorrentMan.cc
  16129. (nullPeer): Added external reference.
  16130. (~TorrentMan): Removed the deallocation of the elements of peers.
  16131. (addPeer): Rewritten.
  16132. (isPeerAvailable): Use nullPeer.
  16133. (deleteOldpeers): Replaced with deleteErrorPeer.
  16134. (deleteErrorPeer): New function.
  16135. (getPeer): Use PeerHandle and nullPeer.
  16136. (hasMissingPiece): Replaced Peer with PeerHandle.
  16137. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16138. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16139. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16140. (getMissingPiece): Replaced Peer with PeerHandle.
  16141. * src/FtpNegotiateCommand.cc
  16142. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16143. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16144. (recvGreeting): Use disableWriteCheckSocket.
  16145. (recvPasv): Removed the allocation of Socket.
  16146. Use disableReadCheckSocket.
  16147. (sendRestPasv): Use disableWriteCheckSocket.
  16148. (recvRetr): Changed assertion.
  16149. * src/PeerInteraction.h
  16150. (SharedHandle.h): Included SharedHandle.h.
  16151. (PeerMessageHandle): New type definition.
  16152. (HandshakeMessageHandle): New type definition.
  16153. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16154. (peer): Changed its type to PeerHandle.
  16155. (createHandshakeMessage): Replaced HandshakeMessage with
  16156. HandshakeMessageHandle.
  16157. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16158. (PeerInteraction): Replaced Peer with PeerHandle.
  16159. Replaced Socket with SocketHandle.
  16160. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16161. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16162. (receiveHandshake): Replaced HandshakeMessage with
  16163. HandshakeMessageHandle.
  16164. * src/PeerInteraction.cc
  16165. (PeerInteraction): Replaced Peer with PeerHandle.
  16166. Replaced Socket with SocketHandle.
  16167. (~PeerInteraction): Removed the deallocation of the elements of
  16168. messageQueue.
  16169. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16170. (isSendingMessageInProgress): Replaced PeerMessage with
  16171. PeerMessageHandle.
  16172. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16173. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16174. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16175. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16176. (abortPiece): Use PeerMessageHandle.
  16177. (receiveHandshake): Replaced HandshakeMessage with
  16178. HandshakeMessageHandle. Removed try-catch block.
  16179. (createHandshakeMessage): Replaced HandshakeMessage with
  16180. HandshakeMessageHandle.
  16181. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16182. Removed try-catch block.
  16183. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16184. * src/HttpProxyResponseCommand.cc
  16185. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16186. * src/FtpTunnelResponseCommand.h
  16187. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16188. * src/HttpConnection.cc
  16189. (HttpConnection): Replaced Socket with SocketHandle.
  16190. * src/PeerAbstractCommand.cc
  16191. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16192. (~PeerAbstractCommand): Removed the deallocation of socket.
  16193. Use disableReadCheckSocket, disableWriteCheckSocket.
  16194. (disableReadCheckSocket): New function.
  16195. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16196. (disableWriteCheckSocket): New function.
  16197. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16198. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16199. * src/FtpTunnelRequestCommand.cc
  16200. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16201. (~FtpTunnelRequestCommand): Corrected indentation.
  16202. * src/DownloadCommand.h
  16203. (DownloadCommand): Replaced Socket with SocketHandle.
  16204. * src/PeerListenCommand.cc
  16205. (PeerListenCommand): Removed the initialization of socket.
  16206. (~PeerListenCommand): Removed the deallocation of socket.
  16207. (bindPort): Use SocketHandle.
  16208. (execute): Use SocketHandle and PeerHandle.
  16209. * src/FtpDowndloadCommand.cc
  16210. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16211. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16212. * src/main.cc
  16213. (main): Corrected indentation.
  16214. * src/HttpInitiateConnectionCommand.cc
  16215. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16216. (executeInternal): Removed the allocation of socket.
  16217. * src/HttpRequestCommand.h
  16218. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16219. * src/FtpNegotiationCommand.h
  16220. (dataSocket): Changed its type to SocketHandle.
  16221. (serverSocket): Changed its type to SocketHandle.
  16222. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16223. * src/TorrentMan.h
  16224. (MAX_PEER_UPDATE): Removed.
  16225. (MAX_PEERS): New definition.
  16226. (Peers): The element is now of type PeerHandle.
  16227. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16228. (getPeer): Replaced Peer with PeerHandle.
  16229. (deleteOldErrorPeers): Removed.
  16230. (deleteErrorPeer): New function.
  16231. (hasMissingPiece): Replaced Peer with PeerHandle.
  16232. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16233. (getMissingPiece): Replaced Peer with PeerHandle.
  16234. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16235. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16236. (addActivePeer): Replaced Peer with PeerHandle.
  16237. (deleteActivePeer): Replaced Peer with PeerHandle.
  16238. Added a check for the return value of find.
  16239. * src/FtpTunnelResponseCommand.cc
  16240. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16241. * src/FtpInitiateConnectionCommand.cc
  16242. (executeInternal): Removed the allocation of socket.
  16243. * src/DownloadEngine.h
  16244. (Sockets): An element is now of type SocketHandle.
  16245. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16246. (CommandUuids): New type definition.
  16247. (rsockets): Changed its type to SockCmdMap.
  16248. (wsockets): Changed its type to SockCmdMap.
  16249. (addSocket): Rewritten.
  16250. (deleteSocket): Rewritten.
  16251. (addSocketForReadCheck): Rewritten.
  16252. (deleteSocketForReadCheck): Rewritten.
  16253. (addSocketForWriteCheck): Rewritten.
  16254. (deleteSocketForWriteCheck): Rewritten.
  16255. (PairFind): New template class.
  16256. * src/HttpDownloadCommand.h
  16257. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16258. * src/FtpConnection.cc
  16259. (FtpConnection): Replaced Socket with SocketHandle.
  16260. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16261. block.
  16262. * src/InitiateConnectionCommandFactory.cc
  16263. (DlAbortEx.h): Included DlAbortEx.h.
  16264. (createInitiateConnectionCommand): Throw exception if the protocol of
  16265. requested URI is not supported.
  16266. * src/Peer.cc
  16267. (nullPeer): Changed its type to PeerHandle.
  16268. (operator==): New function.
  16269. (operator!=): New function.
  16270. * src/Peer.h
  16271. (SharedHandle.h): Included SharedHandle.h.
  16272. (operator==): New function.
  16273. (operator!=): New function.
  16274. (Peer): Added the default constructor.
  16275. Use resetStatus() to initialize member variables.
  16276. (nullPeer): Removed.
  16277. * src/TrackerUpdateCommand.cc
  16278. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16279. with MIN_PEERS.
  16280. * src/PeerListenCommand.h
  16281. (socket): Changed its type to SocketHandle.
  16282. * src/Command.h
  16283. (CommandUuid): New type definition.
  16284. (uuid): New variable.
  16285. (uuidGen): New variable.
  16286. (Command): Added the initialization of uuid.
  16287. (getUuid): New function.
  16288. * src/Socket.h
  16289. (Socket): Removed.
  16290. (SocketHandle): New type definition.
  16291. * src/DownloadEngine.h
  16292. (FindCommand): New function object.
  16293. (run): The portion of socket check was rewritten.
  16294. (SetDescriptor): New function object.
  16295. (AccumulateActiveCommandUuid): New function object.
  16296. (waitData): Rewritten.
  16297. (addSocket): Rewritten.
  16298. (deleteSocket): Rewritten.
  16299. (addSocketForReadCheck): Rewritten.
  16300. (addSocketForWriteCheck): Rewritten.
  16301. (deleteSocketForReadCheck): Rewritten.
  16302. (deleteSocketForWriteCheck): Rewritten.
  16303. * src/HttpProxyResponseCommand.h
  16304. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16305. * src/HttpConnection.h
  16306. (socket): Changed its type to SocketHandle.
  16307. (HttpConnection): Replaced Socket with SocketHandle.
  16308. * src/PeerInitiateConnectionCommand.cc
  16309. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16310. (executeInternal): Removed the allocation of socket.
  16311. (prepareForNextPeer): Use PeerHandle.
  16312. * src/PeerMessage.h
  16313. (peer): Changed its type to PeerHandle.
  16314. (getPeer): Replaced Peer with PeerHandle.
  16315. (setPeer): Replaced Peer with PeerHandle.
  16316. * src/DownloadCommand.cc
  16317. (DownloadCommand): Replaced Socket with SocketHandle.
  16318. * src/FtpConnection.h
  16319. (socket): Changed its type to SocketHandle.
  16320. (FtpConnection): Replaced Socket with SocketHandle.
  16321. (sendPort); Replaced Socket with SocketHandle.
  16322. * src/FtpDowndloadCommand.h
  16323. (ctrlSocket): Changed its type to SocketHandle.
  16324. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16325. * src/HttpProxyRequestCommand.cc
  16326. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16327. * src/FtpTunnelRequestCommand.h
  16328. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16329. etc
  16330. * src/PeerChokeCommand.h
  16331. (setAllPeerChoked): Removed.
  16332. (setAllPeerResetDelta): Removed.
  16333. * src/PeerChokeCommand.cc
  16334. (setAllPeerChoked): Removed.
  16335. (ChokePeer): New function object.
  16336. (setAllPeerResetDelta): Removed.
  16337. (ResetDelta): New function object.
  16338. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16339. (execute): Show download speed when the local node is a seeder.
  16340. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16341. using STL.
  16342. * src/TrackerWatcherCommand.h
  16343. (MIN_PEERS): Removed.
  16344. * src/TorrentMan.cc
  16345. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16346. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16347. To fix the bug that .aria2 file is not saved if downloading is stopped
  16348. by the errors:it results that aria2 can not resume downloading:
  16349. * src/main.cc
  16350. (normalDownload): Added the call to save().
  16351. (main): Added the deletion of the elements in 'reserved'.
  16352. To fix log:
  16353. * src/PeerInteraction.cc
  16354. (receiveHandshake): Fixed log.
  16355. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16356. To improve download performance in BitTorrent:
  16357. * src/TorrentMan.cc
  16358. (getPeer): Check the number of connections. Return nullPeer if
  16359. it is greater than MAX_PEER_UPDATE.
  16360. This code was originally here, but was removed in 0.5.1.
  16361. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16362. To improve the conditional compilation:
  16363. * src/MultiDiskWriter.h:
  16364. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16365. * src/MultiDiskWriter.cc:
  16366. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16367. * src/Util.h:
  16368. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16369. Added ENABLE_BITTORRENT around computeFastSet().
  16370. * src/Util.cc:
  16371. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16372. Added ENABLE_BITTORRENT around computeFastSet().
  16373. * src/messageDigest.h:
  16374. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16375. * src/ShaVisitor.h:
  16376. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16377. * src/ShaVisitor.cc:
  16378. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16379. * src/main.cc:
  16380. Added ENABLE_BITTORRENT around includes and blocks related to
  16381. BitTorrent.
  16382. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16383. digest support is not available.
  16384. * src/AbstractDiskWriter.h:
  16385. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16386. * src/AbstractDiskWriter.cc:
  16387. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16388. * src/MetalinkEntry.cc
  16389. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16390. support is not available.
  16391. To add command-line options for Metalink:
  16392. * src/main.cc:
  16393. Added metalink-version, metalink-language, metalink-os,
  16394. follow-metalink.
  16395. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16396. * src/main.cc: Use these definition.
  16397. * Release 0.6.0
  16398. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16399. To add Metalink support(http/ftp only):
  16400. * src/AbstractCommand.h
  16401. (tryReserved): New function.
  16402. * src/AbstractCommand.cc
  16403. (execute): Call tryReserved().
  16404. (tryReserved): New function.
  16405. * src/Request.h
  16406. (Requests): New type definition.
  16407. * src/SegmentMan.h
  16408. (reserved): New variable.
  16409. * src/Util.h
  16410. (fileChecksum): New function.
  16411. (toUpper): New function.
  16412. (toLower): New function.
  16413. * src/Util.cc
  16414. (messageDigest.h): Included.
  16415. (trim): Trim \r\n\t.
  16416. (fileChecksum): New function.
  16417. (toUpper): New function.
  16418. (toLower): New function.
  16419. * src/main.cc
  16420. (normalDownload): New function.
  16421. (main): Added 2 command-line options: metalink-file,
  16422. metalink-connection. Their usage has not been written yet.
  16423. * src/MetalinkProcessor.h: New class.
  16424. * src/Xml2MetalinkProcessor.h: New class.
  16425. * src/Xml2MetalinkProcessor.cc: New class.
  16426. * src/MetalinkEntry.h: New class.
  16427. * src/MetalinkEntry.cc: New class.
  16428. * src/MetalinkResource.h: New class.
  16429. * src/MetalinkResource.cc: New class.
  16430. To add md5 message digest checking:
  16431. * src/messageDigest.h: Rewritten.
  16432. * src/MultiDiskWriter.cc: Updated according to the changes in
  16433. messageDigest.h.
  16434. * src/ShaVisitor.cc: Updated according to the changes in
  16435. messageDigest.h.
  16436. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16437. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16438. messageDigest.h.
  16439. To fix a bug that causes segfault when the payload length in peer
  16440. message is less than 0:
  16441. * src/PeerConnection.cc:
  16442. (receiveMessage): Fixed the bug.
  16443. * src/PeerMessageUtil.cc
  16444. (checkLength): Throw an exception if length is less than or equals to
  16445. 0.
  16446. To add new interfaces to Base64 encoding/decoding:
  16447. * src/Base64.h
  16448. (part_encode): Changed the method signature.
  16449. (encode): New function(overload).
  16450. (decode): New function(overload).
  16451. * src/Base64.cc
  16452. (part_encode): Rewritten.
  16453. (encode): Rewritten.
  16454. (encode): New function(overload).
  16455. To prevent a peer to download same piece if there is an error in
  16456. checksum:
  16457. * src/PieceMessage.cc
  16458. (receivedAction): Call peerInteraction->abortPiece().
  16459. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16460. To fix the bug that causes same have message is sent many times to
  16461. a single peer.
  16462. * src/Time.cc
  16463. (isNewer): Use Util::difftv().
  16464. * src/Util.cc
  16465. (difftv): Added a cast to (long long int).
  16466. * src/TorrentMan.cc
  16467. (advertisePiece): Use push_front.
  16468. (getAdvertisedPieceIndexes): A performance improvement was made.
  16469. To fix the bug that sends tracker requests without a sleep interval
  16470. when the number of connections is less than 15.
  16471. * src/TrackerWatcherCommand.cc
  16472. (execute): Now the number of connections is not a factor to decide
  16473. whether or not a tracker request should be sent or not.
  16474. * src/Time.h
  16475. (setTimeInSec): New function.
  16476. * src/Time.cc
  16477. (setTimeInSec): New function.
  16478. etc.
  16479. * src/ChokeMessage.cc
  16480. (receivedAction): Removed peer->snubbing = false
  16481. * src/PeerConnection.h
  16482. (receiveHandshake): Updated doc.
  16483. * src/TorrentMan.h
  16484. (getAdvertisedPieceIndexes): Updated the method signature.
  16485. * src/TorrentMan.cc
  16486. (getAdvertisedPieceIndexes): Updated the method signature.
  16487. * src/Time.h
  16488. (getTimeInMicros): Added a cast to (long long int).
  16489. (getTimeInMillis): Added a cast to (long long int).
  16490. * Release 0.5.2
  16491. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16492. To make a listening socket non-block:
  16493. * src/SocketCore.h
  16494. (setNonBlockingMode): New function.
  16495. * src/SocketCore.cc
  16496. (setNonBlockingMode): New function.
  16497. (beginListen): Added a call to setNonBlockingMode().
  16498. (acceptConnection): Call setNonBlockingMode().
  16499. (setBlockingMode): Updated.
  16500. To handle tracker's NAT-checking:
  16501. * src/PeerConnection.cc
  16502. (receiveHandshake): 'msg' param is filled with received data and
  16503. its length is assigned to 'length' param, even if all handshake
  16504. message is not yet received.
  16505. * src/PeerInteractionCommand.cc
  16506. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16507. a new peer connects to localhost.
  16508. A call to peerInteraction->sendHandshake() was removed because
  16509. it is called from peerInteraction->receiveHandshake(true).
  16510. * src/PeerInteraction.h
  16511. (quickReplied): New variable.
  16512. (receiveHandshake): Added an argument.
  16513. * src/PeerInteraction.cc
  16514. (PeerInteraction): Added the initialization of quickReplied.
  16515. (receiveHandshake): Send handshake message as soon as the info hash
  16516. in a handshake message from a peer is correct.
  16517. To change the random part of peer id and key parameter:
  16518. * src/TorrentMan.h
  16519. (key): New variable.
  16520. * src/TorrentMan.cc
  16521. (setupInternal1): Use Util::randomAlpha() to generate random part
  16522. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16523. key is also generated by Util::randomAlpha() and it is now 8 character
  16524. long.
  16525. * src/Util.h
  16526. (randomAlpha): New function.
  16527. * src/Util.cc
  16528. (randomAlpha): New function.
  16529. * src/TrackerWatcherCommand.cc
  16530. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16531. Added no_peer_id=1.
  16532. Set snubbing flag to false when a choke message is received from a
  16533. snubbed peer.
  16534. * src/ChokeMessage.cc
  16535. (receivedAction): Set snubbing flag to false.
  16536. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16537. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16538. * src/SimpleLogger.h (writeHeader): New function.
  16539. * src/SimpleLogger.cc (writeHeader): New function.
  16540. (writeLog): Fixed the bug that causes segfaults if exception message
  16541. contains an unescaped "%" character.
  16542. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16543. when a tracker request fails.
  16544. * src/Request.cc (parseUrl): Query string is now handled properly.
  16545. * Release 0.5.1
  16546. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16547. To add Time class which represents a specific instant in time and
  16548. its precision is microseconds. Time checking procedures were rewritten
  16549. using this object.
  16550. * src/Time.h: New class.
  16551. * src/Time.cc: New class.
  16552. * src/AbstractCommand.h
  16553. (updateCheckPoint): Removed.
  16554. (isTimeoutDetected): Removed.
  16555. (checkPoint): Changed the type to Time.
  16556. (timeout): New variable.
  16557. (setTimeout): New function.
  16558. * src/AbstractCommand.cc
  16559. (AbstractCommand): Removed the initialization of checkPoint.
  16560. Added the initialization of timeout.
  16561. (updateCheckPoint): Removed.
  16562. (isTimeoutDetected): Removed.
  16563. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16564. * src/PeerChokeCommand.h
  16565. (checkPoint): Changed the type to Time.
  16566. * src/PeerChokeCommand.cc
  16567. (PeerChokeCommand): Removed the initialization of checkPoint.
  16568. (execute): Rewritten using Time object.
  16569. * src/TrackerWatcherCommand.h
  16570. (checkPoint): Changed the type to Time.
  16571. * src/TrackerWatcherCommand.cc
  16572. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16573. (execute): Rewritten.
  16574. * src/ConsoleDownloadEngine.h
  16575. (cp): Changed the type to Time.
  16576. (startup): Changed the type to Time.
  16577. * src/ConsoleDownloadEngine.cc
  16578. (initStatistics): Use cp.reset(), startup.reset().
  16579. (calculateStatistics): Rewritten using Time object.
  16580. * src/PeerAbstractCommand.h
  16581. (updateCheckPoint): Removed.
  16582. (isTimeoutDetected): Removed.
  16583. (checkPoint): Changed the type to Time.
  16584. * src/PeerAbstractCommand.cc
  16585. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16586. (updateCheckPoint): Removed.
  16587. (isTimeoutDetected): Removed.
  16588. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16589. * src/PeerInteractionCommand.cc
  16590. (PeerInteractionCommand): Removed the initializations of struct
  16591. timeval variables.
  16592. * src/PeerInteractionCommand.h
  16593. (keepAliveCheckPoint): Changed the type to Time.
  16594. (chokeCheckPoint): Changed the type to Time.
  16595. (freqCheckPoint): Changed the type to Time.
  16596. (haveCheckTime): Changed the type to Time.
  16597. * src/PeerInteractionCommand.cc
  16598. (executeInternal): Rewritten using Time object.
  16599. (detectMessageFlooding): Rewritten using Time object.
  16600. (checkLongTimePeerChoking): Rewritten using Time object.
  16601. (sendKeepAlive): Rewritten using Time object.
  16602. (checkHave): Rewritten using Time object.
  16603. * src/SleepCommand.h
  16604. (checkPoint): Changed the type to Time.
  16605. * src/SleepCommand.cc
  16606. (SleepCommand): Removed the initialization of checkPoint.
  16607. (execute): Rewritten using Time object.
  16608. * src/TorrentAutoSaveCommand.h
  16609. (checkPoint): Changed the type to Time.
  16610. * src/TorrentAutoSaveCommand.cc
  16611. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16612. (execute): Rewritten.
  16613. * src/DownloadCommand.h
  16614. (sw): Changed the type to Time.
  16615. * src/DownloadCommand.cc
  16616. (DownloadCommand): Removed the initialization of sw.
  16617. (executeInternal): Rewritten.
  16618. * src/RequestSlot.h
  16619. (dispatchedTime): Changed the type to Time.
  16620. * src/RequestSlot.cc
  16621. (RequestSlot): Removed the call to setDispatchedTime().
  16622. (setDispatchedTime): Rewirtten.
  16623. (isTimeout): Rewritten.
  16624. (getLatencyInMillis): Rewritten.
  16625. * src/TorrentDownloadEngine.h
  16626. (cp): Changed the type to Time[2].
  16627. (startup): Changed the type to Time.
  16628. * src/TorrentDownloadEngine.cc
  16629. (initStatistics): Rewritten.
  16630. (calculateStatistics): Rewritten.
  16631. * src/DownloadEngine.cc
  16632. (run): Rewritten.
  16633. To detect all attempts to connect to the tracker are failed:
  16634. * src/AbstractCommand.cc
  16635. (execute): Increment e->segmentMan->errors if a command aborted.
  16636. * src/SegmentMan.h
  16637. (errors): New variable.
  16638. * src/SegmentMan.cc
  16639. (SegmentMan): Added the initialization of errors.
  16640. (init): Added the initialization of errors.
  16641. * src/TrackerWatcherCommand.cc
  16642. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16643. request was failed.
  16644. To handle snubbed peers:
  16645. * src/PeerChokeCommand.cc
  16646. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16647. (execute): Snubbed peers don't get unchoked.
  16648. * src/PeerInteraction.h
  16649. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16650. * src/PeerInteraction.cc
  16651. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16652. back the requested 16k block in 60 seconds.
  16653. * src/PieceMessage.cc
  16654. (receivedAction): A peer's snubbed state is cleard if it sends
  16655. the requested 16k block in 60 seconds.
  16656. * src/Peer.h
  16657. (snubbing): New variable.
  16658. * src/Peer.cc
  16659. (resetStatus): Added snubbed = false.
  16660. To fix the bug that causes have message is not sent:
  16661. * src/PeerInteractionCommand.cc
  16662. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16663. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16664. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16665. * src/TorrentMan.h
  16666. (HaveEntry): New class.
  16667. (advertisePiece): Rewritten.
  16668. (getAdvertisedPieceIndexes): Rewritten.
  16669. (Haves): Changed the type.
  16670. (getAdvertisedPieceIndexes): Added an argument.
  16671. Others:
  16672. * src/TorrentMan.h
  16673. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16674. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16675. * src/TorrentMan.cc
  16676. (getPeer): Don't check the number of connections here.
  16677. (setupInternal1): Changed peerId.
  16678. * src/PeerInteractionCommand.h
  16679. (KEEP_ALIVE_INTERVAL): New definition.
  16680. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16681. * src/main.cc
  16682. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16683. * src/DownloadEngine.h: Removed unnecessary header includes.
  16684. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16685. To fix the bug that causes segfaults if a tracker returns a zero-length
  16686. list as "peers":
  16687. * src/TrackerUpdateCommand.cc
  16688. (execute): Added a check to see wether the type of peers is Data*.
  16689. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16690. * Release 0.5.0
  16691. To fix compile issue with gcc3:
  16692. * src/CancelMessage.h
  16693. (ID): Renamed as ID_t
  16694. (ID_t): New enum.
  16695. * src/RejectMessage.h
  16696. (ID): Renamed as ID_t
  16697. (ID_t): New enum.
  16698. * src/SuggestPieceMessage.h
  16699. (ID): Renamed as ID_t
  16700. (ID_t): New enum.
  16701. * src/AllowedFastMessage.h
  16702. (ID): Renamed as ID_t
  16703. (ID_t): New enum.
  16704. * src/PortMessage.h
  16705. (ID): Renamed as ID_t
  16706. (ID_t): New enum.
  16707. * src/HaveNoneMessage.h
  16708. (ID): Renamed as ID_t
  16709. (ID_t): New enum.
  16710. * src/KeepAliveMessage.h
  16711. (ID): Renamed as ID_t
  16712. (ID_t): New enum.
  16713. * src/HaveAllMessage.h
  16714. (ID): Renamed as ID_t
  16715. (ID_t): New enum.
  16716. * src/UnchokeMessage.h
  16717. (ID): Renamed as ID_t
  16718. (ID_t): New enum.
  16719. * src/BitfieldMessage.h
  16720. (ID): Renamed as ID_t
  16721. (ID_t): New enum.
  16722. * src/PieceMessage.h
  16723. (ID): Renamed as ID_t
  16724. (ID_t): New enum.
  16725. * src/RequestMessage.h
  16726. (ID): Renamed as ID_t
  16727. (ID_t): New enum.
  16728. * src/NotInterestedMessage.h
  16729. (ID): Renamed as ID_t
  16730. (ID_t): New enum.
  16731. * src/ChokeMessage.h
  16732. (ID): Renamed as ID_t
  16733. (ID_t): New enum.
  16734. * src/InterestedMessage.h
  16735. (ID): Renamed as ID_t
  16736. (ID_t): New enum.
  16737. * src/HaveMessage.h
  16738. (ID): Renamed as ID_t
  16739. (ID_t): New enum.
  16740. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16741. * src/PeerAbstractCommand.h
  16742. (beforeSocketCheck): Removed.
  16743. * src/PeerAbstractCommand.cc
  16744. Modified in order to call executeInternal() even if socket check
  16745. and upload limit check fail.
  16746. * src/PeerInteractionCommand.h
  16747. (keepAlive): Removed.
  16748. (sendKeepAlive): New function.
  16749. (checkHave): New function.
  16750. (beforeSocketCheck): Removed.
  16751. * src/PeerInteractionCommand.cc
  16752. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16753. calls to checkHave() and sendKeepAlive().
  16754. (keepAlive): Renamed to sendKeepAlive().
  16755. (sendKeepAlive): New function.
  16756. (beforeSocketCheck): Removed.
  16757. (checkHave): New function.
  16758. * src/BitfieldMan.cc
  16759. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16760. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16761. 0.
  16762. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16763. * src/TorrentMan.h
  16764. (UsedPieces): Removed.
  16765. (Pieces): New type definition.
  16766. * src/Piece.h: Updated doc.
  16767. * src/Peer.h
  16768. (totalLength): Removed.
  16769. * src/Peer.cc
  16770. (updateLatency): Fixed the latency calculation.
  16771. * src/TorrentMan.cc
  16772. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16773. than or equal to MAX_PEER_LIST_SIZE.
  16774. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16775. then return false.
  16776. (deleteOldErrorPeers): Rewritten.
  16777. (deleteUsedPiece): Fixed the miss use of STL remove.
  16778. * src/PeerInteraction.h
  16779. (Pieces): Removed.
  16780. (deleteTimeoutRequestSlot): Removed.
  16781. (deleteCompletedRequestSlot): Removed.
  16782. (checkRequestSlot): New function.
  16783. * src/PeerInteraction.cc
  16784. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16785. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16786. (checkRequestSlot): New function.
  16787. * src/DownloadEngine.cc
  16788. (run): Clear activeSockets before calling waitData().
  16789. (waitData): Removed a call to activeSockets.clear().
  16790. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16791. To attempt to handle EINTR:
  16792. * src/SocketCore.cc
  16793. (isReadable): Added EINTR handling.
  16794. (isWritable): Added EINTR handling.
  16795. To improve the performance:
  16796. * src/AbstractCommand.cc
  16797. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16798. * src/PeerInteractionCommand.h
  16799. (receiveMessage): Renamed as receiveMessages().
  16800. (receiveMessages): New function.
  16801. * src/PeerInteractionCommand.cc
  16802. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16803. () function. detectMessageFlooding() is moved here.
  16804. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16805. (). The flooding detection for have message is comment out.
  16806. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16807. Util::difftv().
  16808. (receiveMessage): Renamed as receiveMessages().
  16809. (receiveMessages): New function.
  16810. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16811. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16812. * src/SleepCommand.cc
  16813. (execute): Use Util::difftvsec() instead of Util::difftv().
  16814. * src/BitfieldMan.h
  16815. (getNthBitIndex): New function.
  16816. (hasMissingPiece): New function.
  16817. (getAllMissingIndexes): New function.
  16818. * src/BitfieldMan.cc
  16819. (countSetBit): Rewritten.
  16820. (getNthBitIndex): New function.
  16821. (getMissingIndexRandomly): Rewritten.
  16822. (hasMissingPiece): New function.
  16823. (getAllMissingIndexes): New function.
  16824. * src/TorrentMan.cc
  16825. (hasMissingPiece): New function.
  16826. (deleteUsedPiece): Rewritten using STL.
  16827. * src/PeerInteraction.cc
  16828. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16829. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16830. (addRequests): Updated the number of pending requests.
  16831. * src/PeerAbstractCommand.cc
  16832. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16833. (execute): Returns true if TorrentMan::isHalt() is true.
  16834. Corrected the condition of upload limit checking.
  16835. * src/Util.h
  16836. (countBit): New function.
  16837. * src/Util.cc
  16838. (nbits): New variable.
  16839. (countBit): New function.
  16840. * src/DownloadEngine.h
  16841. (SockCmdMap): New type definition.
  16842. (waitData): Added an argument.
  16843. (addSocket): Added an argument.
  16844. (addSocketForReadCheck): Added an argument.
  16845. (addSocketForWriteCheck): Added an argument.
  16846. * src/DownloadEngine.cc
  16847. (run): Executes only commands whose sockets are ready to read or write.
  16848. All commands are executed in every 1 second.
  16849. (waitData): Calls select() again if it returned
  16850. EINTR.
  16851. (addSocket): Saves socket and command object pair to the map.
  16852. (deleteSocket): Deletes socket and command object pair from the map.
  16853. (addSocketForReadCheck): Added an argument.
  16854. (addSocketForWriteCheck): Added an argument.
  16855. * src/DownloadCommand.cc
  16856. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16857. To send "event=stopped" to the tracker when the application finishes:
  16858. * src/PeerChokeCommand.h
  16859. (checkPoint): New variable.
  16860. * src/PeerChokeCommand.cc
  16861. (PeerChokeCommand): Added the initialization of checkPoint.
  16862. (execute): The interval check is now done by checkPoint, not
  16863. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16864. * src/TorrentMan.h
  16865. (halt): New function.
  16866. (hasMissingPiece): New function.
  16867. (isHalt): New function.
  16868. (setHalt): New function.
  16869. * src/TorrentMan.cc
  16870. (TorrentMan): Added the initialization of halt.
  16871. * src/TorrentAutoSaveCommand.h
  16872. (checkPoint): New variable.
  16873. * src/PeerListenCommand.cc
  16874. (execute): Returns true if TorrentMan::isHalt() is true.
  16875. * src/main.cc
  16876. (setSignalHander): Added flags argument.
  16877. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16878. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16879. Removed printDownloadAbortMessage() after torrent downloading loop.
  16880. * src/TorrentAutoSaveCommand.cc
  16881. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16882. (execute): Returns true if TorrentMan::isHalt() is true.
  16883. The interval check is now done by checkPoint, not SleepCommand.
  16884. * src/TrackerWatcherCommand.cc
  16885. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16886. event=stopped.
  16887. * src/TrackerUpdateCommand.cc
  16888. (prepareForRetry): Do not use SleepCommand here.
  16889. (execute): Returns true if TorrentMan::isHalt() is true.
  16890. Others:
  16891. * src/TorrentMan.cc
  16892. (getMissingPieceIndex): Updated log message.
  16893. * src/PeerInteraction.cc
  16894. (createPeerMessag): Updated log message.
  16895. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16896. To add the ability to download several pieces in mix in a command and
  16897. increase the number of request slots according to request-cancel
  16898. latency:
  16899. * src/PeerInteractionCommand.cc
  16900. (executeInternal): The number of messages to be received at a time
  16901. is increased from 10 to 50.
  16902. * src/LogFactory
  16903. (getInstance): Added NullLogger.
  16904. * src/NullLogger.h: New class.
  16905. * src/BitfieldMan.h
  16906. (getMissingIndex): New function.
  16907. * src/BitfieldMan.cc
  16908. (getMissingIndex): New function.
  16909. * src/TorrentMan.h
  16910. (checkOutPiece): New function.
  16911. (getMissingPieceIndex): New function.
  16912. (getMissingFastPieceIndex): New function.
  16913. (getMissingFastPiece): New function.
  16914. * src/TorrentMan.cc
  16915. (updatePiece): Rewritten using STL.
  16916. (syncPiece): Rewritten using STL.
  16917. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16918. checkOutPiece().
  16919. (getMissingPieceIndex): New function.
  16920. (getMissingFastPieceIndex): New function.
  16921. (getMissingFastPiece): New function.
  16922. (checkOutPiece): New function.
  16923. * src/PeerInteraction.h
  16924. (Pieces): New type definition.
  16925. (piece): Removed.
  16926. (pieces): New variable.
  16927. (getNewPieceAndSendInterest): Added the "piece" argument.
  16928. (abortPiece): Added the "piece" argument.
  16929. (abortAllPieces): New function.
  16930. (isInRequestSlot): New function.
  16931. (hasDownloadPiece): Added the "index" argument.
  16932. (setDownloadPiece): Removed.
  16933. (getDownloadPiece): Added the "index" argument.
  16934. (updatePiece): New function.
  16935. (createRequestMessage): Added the "index" argument.
  16936. * src/PeerInteraction.cc
  16937. (onChoked): Rewritten.
  16938. (abortPiece): Rewirtten.
  16939. (abortAllPieces): New function.
  16940. (deleteTimeoutRequestSlot): Rewritten.
  16941. Clarified code a little bit.
  16942. (deleteCompletedRequestSlot): Rewritten.
  16943. (isInRequestSlot): New function.
  16944. (syncPiece): Rewritten.
  16945. (updatePiece): New function.
  16946. (getNewPieceAndSendInterest): Rewritten.
  16947. (addRequests): Rewritten.
  16948. (getDownloadPiece): Rewritten.
  16949. (hasDownloadPiece): Rewritten.
  16950. (createRequestMessage): Added the "index" argument.
  16951. * src/common.h
  16952. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16953. (DIV_FLOOR): New definition.
  16954. * src/PieceMessage.cc
  16955. (receivedAction): Update request-piece latency here.
  16956. * src/RequestSlot.h
  16957. (getLatencyInMillis): New function.
  16958. * src/RequestSlot.cc
  16959. (isTimeout): Rewritten using getLatencyInMillis.
  16960. (getLatencyInMillis): New function.
  16961. * src/Piece.h
  16962. (operator==): New function.
  16963. (getMissingBlockIndex): New function.
  16964. * src/Piece.cc
  16965. (operator==): New function.
  16966. (getMissingBlockIndex): New function.
  16967. * src/Peer.h
  16968. (DEFAULT_LATENCY): New definition.
  16969. (latency): New variable.
  16970. (updateLatency): New function.
  16971. (getLatency): New function.
  16972. * src/Peer.cc
  16973. (resetStatus): Reset latecy.
  16974. (updateLatency): New function.
  16975. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16976. * src/SocketCore.cc
  16977. (isReadable): Added secure to the condition.
  16978. * src/HttpConnection.cc
  16979. (receiveResponse): Fixed a bug that causes no response header
  16980. exception.
  16981. * src/Peer.h
  16982. (getFastSet): Fixed the return value type.
  16983. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16984. To remove a wait from download loop:
  16985. * src/DownloadEngine.cc
  16986. (run): Comment out shortSleep.
  16987. To rewrite the message handling:
  16988. * src/SimplePeerMessage.h: New class.
  16989. * src/SimplePeerMessage.cc: New class.
  16990. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16991. (msg): New variable.
  16992. (create): New function.
  16993. (send): Removed.
  16994. (getMessage): New function.
  16995. (getMessageLength): New function.
  16996. * src/CancelMessage.cc
  16997. (create): New function.
  16998. (receivedAction): Replaced deleteRequestMessageInQueue with
  16999. rejectPieceMessageInQueue.
  17000. (send): Removed.
  17001. (getMessage): New function.
  17002. (getMessageLength): New function.
  17003. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17004. (msg): New variable.
  17005. (msgLength): New variable.
  17006. (~BitfieldMessage): Deleted msg.
  17007. (send): Removed.
  17008. (getMessage): New function.
  17009. (getMessageLength): New function.
  17010. * src/BitfieldMessage.cc
  17011. (create): New function.
  17012. (send): Removed.
  17013. (getMessage): New function.
  17014. (getMessageLength): New function.
  17015. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17016. (msg): New variable.
  17017. (sendPredicate): New function.
  17018. (onSendComplete): New function.
  17019. (send): Removed.
  17020. (getMessage): New function.
  17021. (getMessageLength): New function.
  17022. (create): New function.
  17023. * src/ChokeMessage.cc
  17024. (create): New function.
  17025. (send): Removed.
  17026. (sendPredicate): New function.
  17027. (getMessage): New function.
  17028. (getMessageLength): New function.
  17029. (onSendComplete): New function.
  17030. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17031. (msg): New variable.
  17032. (send): Removed.
  17033. (getMessage): New function.
  17034. (getMessageLength): New function.
  17035. * src/KeepAliveMessage.cc
  17036. (send): Removed.
  17037. (getMessage): New function.
  17038. (getMessageLength): New function.
  17039. * src/PortMessage.h
  17040. (create): New function.
  17041. (receivedAction): Updated log message.
  17042. * src/PortMessage.cc: New file.
  17043. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17044. (msg): New variable.
  17045. (sendPredicate): New function.
  17046. (onSendComplete): New function.
  17047. (create): New function.
  17048. (send): Removed.
  17049. (getMessage): New function.
  17050. (getMessageLength): New function.
  17051. * src/UnchokeMessage.cc
  17052. (create): New function.
  17053. (send): Removed.
  17054. (sendPredicate): New function.
  17055. (getMessage): New function.
  17056. (getMessageLength): New function.
  17057. (onSendComplete): New function.
  17058. * src/PieceMessage.h
  17059. (leftPieceDataLength): Removed.
  17060. (leftDataLength): New variable.
  17061. (headerSend): New variable.
  17062. (pendingCount): New variable.
  17063. (msgHeader): New variable.
  17064. (sendPieceData): New function.
  17065. (incrementPendingCount): New function.
  17066. (isPendingCountMax): New function.
  17067. (create): New function.
  17068. (getMessageHeader): New function.
  17069. (getMessageHeaderLength): New function.
  17070. * src/PieceMessage.cc
  17071. (create): New function.
  17072. (getMessageHeader): New function.
  17073. (getMessageHeaderLength): New function.
  17074. (send): Rewritten.
  17075. (sendPieceData): New function.
  17076. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17077. (msg): New variable.
  17078. (create): New function.
  17079. (getMessage): New function.
  17080. (getMessageLength): New function.
  17081. * src/HaveMessage.cc
  17082. (create): New function.
  17083. (send): Removed.
  17084. (sendPieceData): New function.
  17085. (getMessage): New function.
  17086. (getMessageLength): New function.
  17087. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17088. (msg): New variable.
  17089. (create): New function.
  17090. (send): Removed.
  17091. (getMessage): New function.
  17092. (getMessageLength): New function.
  17093. * src/RequestMessage.cc
  17094. (create): New function.
  17095. (receivedAction): Added the handling of fast extension.
  17096. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17097. (send): Removed.
  17098. (getMessage): New function.
  17099. (getMessageLength): New function.
  17100. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17101. (msg): New variable.
  17102. (sendPredicate): New function.
  17103. (onSendComplete): New function.
  17104. (create): New function.
  17105. (getMessage): New function.
  17106. (getMessageLength): New function.
  17107. * src/InterestedMessage.cc
  17108. (create): New function.
  17109. (send): Removed.
  17110. (sendPieceData): New function.
  17111. (getMessage): New function.
  17112. (getMessageLength): New function.
  17113. (onSendComplete): New function.
  17114. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17115. (msg): New variable.
  17116. (sendPieceData): New function.
  17117. (onSendComplete): New function.
  17118. (create): New function.
  17119. (send): Removed.
  17120. (getMessage): New function.
  17121. (getMessageLength): New function.
  17122. * src/NotInterestedMessage.cc
  17123. (create): New function.
  17124. (send): Removed.
  17125. (sendPredicate): New function.
  17126. (getMessage): New function.
  17127. (getMessageLength): New function.
  17128. (onSendComplete): New function.
  17129. * src/AllowedFastMessage.h: New class.
  17130. * src/AllowedFastMessage.cc: New class.
  17131. * src/RejectMessage.h: New class.
  17132. * src/RejectMessage.cc: New class.
  17133. * src/SuggestPieceMessage.h: New class.
  17134. * src/SuggestPieceMessage.cc: New class.
  17135. * src/HaveAllMessage.h: New class.
  17136. * src/HaveAllMessage.cc: New class.
  17137. * src/HaveNoneMessage.h: New class.
  17138. * src/HaveNoneMessage.cc: New class.
  17139. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17140. (msg): New variable.
  17141. (reserved): New variable.
  17142. (create): New function.
  17143. (getId): New function.
  17144. (receivedAction): New function.
  17145. (getMessage): New function.
  17146. (getMessageLength): New function.
  17147. (isFastExtensionSupported): New function.
  17148. * src/HandshakeMessage.cc
  17149. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17150. (create): New function.
  17151. (getMessage): New function.
  17152. (getMessageLength): New function.
  17153. (toString): Added the output of reserved field.
  17154. (check): Added const qualifier.
  17155. (isFastExtensionSupported): New function.
  17156. * src/PeerMessageUtil.h
  17157. (createChokeMessage): Removed.
  17158. (createUnchokeMessage): Removed.
  17159. (createInterestedMessage): Removed.
  17160. (createNotInterestedMessage): Removed.
  17161. (createHaveMessage): Removed.
  17162. (createBitfieldMessage): Removed.
  17163. (createRequestMessage): Removed.
  17164. (createCancelMessage): Removed.
  17165. (createPieceMessage): Removed.
  17166. (createPortMessage): Removed.
  17167. (createChokeMessage): Removed.
  17168. (createUnchokeMessage): Removed.
  17169. (createInterestedMessage): Removed.
  17170. (createNotInterestedMessage): Removed.
  17171. (createHaveMessage): Removed.
  17172. (createBitfieldMessage): Removed.
  17173. (createRequestMessage): Removed.
  17174. (createCancelMessage): Removed.
  17175. (createPieceMessage): Removed.
  17176. (createKeepAliveMessage): Removed.
  17177. (createHandshakeMessage): Removed.
  17178. (setIntParam): New function.
  17179. (createPeerMessageString): New function.
  17180. * src/PeerMessageUtil.cc
  17181. (createChokeMessage): Removed.
  17182. (createUnchokeMessage): Removed.
  17183. (createInterestedMessage): Removed.
  17184. (createNotInterestedMessage): Removed.
  17185. (createHaveMessage): Removed.
  17186. (createBitfieldMessage): Removed.
  17187. (createRequestMessage): Removed.
  17188. (createCancelMessage): Removed.
  17189. (createPieceMessage): Removed.
  17190. (createPortMessage): Removed.
  17191. (createRequestMessage): Removed.
  17192. (createCancelMessage): Removed.
  17193. (createPieceMessage): Removed.
  17194. (createHaveMessage): Removed.
  17195. (createChokeMessage): Removed.
  17196. (createUnchokeMessage): Removed.
  17197. (createInterestedMessage): Removed.
  17198. (createNotInterestedMessage): Removed.
  17199. (createBitfieldMessage): Removed.
  17200. (createKeepAliveMessage): Removed.
  17201. (createHandshakeMessage): Removed.
  17202. (setIntParam): New function.
  17203. (createPeerMessageString): New function.
  17204. * src/PeerConnection.h
  17205. (peer): Removed.
  17206. (torrentMan): Removed.
  17207. (createNLengthMessage): Removed.
  17208. (setIntParam): Removed.
  17209. (writeOutgoingMessageLog): Removed all overloaded functions.
  17210. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17211. (sendMessage): New function.
  17212. (sendHandshake): Removed.
  17213. (sendKeepAlive): Removed.
  17214. (sendChoke): Removed.
  17215. (sendUnchoke): Removed.
  17216. (sendInterested): Removed.
  17217. (sendNotInterested): Removed.
  17218. (sendHave): Removed.
  17219. (sendBitfield): Removed.
  17220. (sendRequest): Removed.
  17221. (sendPiece): Removed.
  17222. (sendPieceHeader): Removed.
  17223. (sendPieceData): Removed.
  17224. (sendCancel): Removed.
  17225. (getPeer): Removed.
  17226. * src/PeerConnection.cc
  17227. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17228. (sendHandshake): Removed.
  17229. (sendKeepAlive): Removed.
  17230. (createNLengthMessage): Removed.
  17231. (setIntParam): Removed.
  17232. (writeOutgoingMessageLog): Removed all overloaded functions.
  17233. (sendChoke): Removed.
  17234. (sendUnchoke): Removed.
  17235. (sendInterested): Removed.
  17236. (sendNotInterested): Removed.
  17237. (sendHave): Removed.
  17238. (sendBitfield): Removed.
  17239. (sendRequest): Removed.
  17240. (sendPiece): Removed.
  17241. (sendPieceHeader): Removed.
  17242. (sendPieceData): Removed.
  17243. (sendMessage): New function.
  17244. (sendCancel): Removed.
  17245. * src/PeerInteractionCommand.cc
  17246. (PeerInteractionCommand): Call setUploadLimit.
  17247. (executeInternal): Call setUploadLimit.
  17248. Added the handling of "inProgress" state of handshake message.
  17249. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17250. sendNow().
  17251. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17252. sendNow().
  17253. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17254. * src/TorrentMan.h
  17255. (PEER_ID_LENGTH): New definition.
  17256. (hasAllPieces): New function.
  17257. * src/TorrentMan.cc
  17258. (getMissingPiece): Added the handling of fast extension.
  17259. (cancelPiece): Call updatePiece().
  17260. (hasAllPieces): New function.
  17261. * src/PeerInteraction.h
  17262. (fastSet): New variable.
  17263. (getNewPieceAndSendInterest): Changed the return type to void.
  17264. (send): Renamed as sendMessages.
  17265. (deleteAllRequestSlot): Removed.
  17266. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17267. (cancelAllRequest): Removed all overloaded functions.
  17268. (deleteAllRequestSlot): Removed.
  17269. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17270. (rejectPieceMessageInQueue): New function.
  17271. (rejectAllPieceMessageInQueue): New function.
  17272. (onChoked): New function.
  17273. (isSendingMessageInProgress): New function.
  17274. (getCorrespondingRequestSlot): Changed its arguments.
  17275. (isInFastSet): New function.
  17276. (addFastSetIndex): New function.
  17277. (addRequests): New function.
  17278. (sendNow): Removed.
  17279. (trySendNow): Removed.
  17280. (sendBitfield): New function.
  17281. (sendAllowdFast): New function.
  17282. (createHaveAllMessage): New function.
  17283. (createHaveNoneMessage): New function.
  17284. (createRejectMessage): New function.
  17285. (createAllowedFastMessage): New function.
  17286. * src/PeerInteraction.cc
  17287. (send): Renamed as sendMessages.
  17288. (sendMessages): New function.
  17289. (MsgPushBack): New class.
  17290. (isSendingMessageInProgress): New function.
  17291. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17292. (rejectAllPieceMessageInQueue): New function.
  17293. Added the handling of fast extension.
  17294. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17295. (rejectPieceMessageInQueue): New function.
  17296. Added the handling of fast extension.
  17297. (deleteRequestSlot): Replaced for loop with std::find.
  17298. (onChoked): New function.
  17299. (deleteAllRequestSlot): Removed.
  17300. (abortPiece): Rewirtten.
  17301. (deleteTimeoutRequestSlot): Updated log messages.
  17302. (getCorrespondingRequestSlot): Changed its arguments.
  17303. (cancelAllRequest): Removed all overloaded functions.
  17304. (receiveHandshake): Added the check to see whether an incoming peer
  17305. supports fast extension.
  17306. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17307. PeerMessageUtil.
  17308. (createPeerMessage): Use create() of each message class instead of
  17309. PeerMessageUtil.
  17310. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17311. AllowedFastMessage were added.
  17312. (getNewPieceAndSendInterest): Changed its return value type to void.
  17313. Added the handling of fast extension.
  17314. (addRequests): New function.
  17315. (sendNow): Removed.
  17316. (sendHandshake): Rewritten.
  17317. (trySendNow): Removed.
  17318. (sendBitfield): New function.
  17319. (sendAllowdFast): New function.
  17320. (isInFastSet): New function.
  17321. (addFastSetIndex): New function.
  17322. (createRequestMessage): Use RequestMessage::create instead of
  17323. PeerMessageUtil.
  17324. (createCancelMessage): Use CancelMessage::create instead of
  17325. PeerMessageUtil.
  17326. (createPieceMessage): Use PieceMessage::create instead of
  17327. PeerMessageUtil.
  17328. (createHaveMessage): Use HaveMessage::create instead of
  17329. PeerMessageUtil.
  17330. (createChokeMessage): Use ChokeMessage::create instead of
  17331. PeerMessageUtil.
  17332. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17333. PeerMessageUtil.
  17334. (createInterestedMessage): Use InterestedMessage::create instead of
  17335. PeerMessageUtil.
  17336. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17337. of PeerMessageUtil.
  17338. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17339. PeerMessageUtil.
  17340. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17341. PeerMessageUtil.
  17342. (createHaveAllMessage): New function.
  17343. (createHaveNoneMessage): New function.
  17344. (createRejectMessage): New function.
  17345. (createAllowedFastMessage: New function.
  17346. * src/Util.h
  17347. (sha1Sum): New function.
  17348. (computeFastSet): New function.
  17349. * src/Util.cc
  17350. (sha1Sum): New function.
  17351. (computeFastSet): New function.
  17352. * src/Peer.h
  17353. (fastExtensionEnabled): New variable.
  17354. (fastSet): New variable.
  17355. (setAllBitfield): New function.
  17356. (setFastExtensionEnabled): New function.
  17357. (isFastExtensionEnabled): New function.
  17358. (addFastSetIndex): New function.
  17359. (getFastSet): New function.
  17360. (isInFastSet): New function.
  17361. (countFastSet): New function.
  17362. * src/Peer.cc
  17363. (isInFastSet): New function.
  17364. (addFastSetIndex): New function.
  17365. (setAllBitfield): New function.
  17366. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17367. sockets.
  17368. * src/PeerAbstractCommand.cc
  17369. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17370. and uploadLimit.
  17371. (execute): Changed the procedure of checking sockets. The upload speed
  17372. checking were added.
  17373. (setUploadLimit): New function.
  17374. (setUploadLimitCheck): New function.
  17375. * src/PeerAbstractCommand.h
  17376. (setUploadLimit): New function.
  17377. (setUploadLimitCheck): New function.
  17378. (uploadLimit): New variable.
  17379. (uploadLimitCheck): New variable.
  17380. To contact a tracker regularly:
  17381. * src/TrackerWatcherCommand.h (interval): New variable.
  17382. (checkPoint): New variable.
  17383. (TrackerWatcherCommand): Added interval argument.
  17384. * src/TrackerWatcherCommand.cc
  17385. (TrackerWatcherCommand): Initialized checkPoint.
  17386. (execute): Now a tracker is contacted in every specified period.
  17387. If peer list is not needed, send request with numwant=0.
  17388. * src/TrackerUpdateCommand.cc
  17389. (execute): Updated log messages.
  17390. * src/DownloadEngine.cc
  17391. (~DownloadEngine): Removed two asserts.
  17392. (waitData): Uncommented wfds. May be a bug fix.
  17393. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17394. * src/PeerInteractionCommand.h
  17395. (checkInactiveConnection): Removed.
  17396. * src/PeerInteractionCommand.cc
  17397. (executeInternal): Removed following function calls:
  17398. detectMessageFlooding(), checkLongTimePeerChoking and
  17399. checkInactiveConnection().
  17400. (checkInactiveConnection): Removed.
  17401. (detectMessageFlooding): Removed function call to
  17402. checkInactiveConnection().
  17403. * src/PeerMessageUtil.h
  17404. (createChokeMessage): New function. Overload.
  17405. (createUnchokeMessage): New function. Overload.
  17406. (createInterestedMessage): New function. Overload.
  17407. (createNotInterestedMessage): New function. Overload.
  17408. (createHaveMessage): New function. Overload.
  17409. (createBitfieldMessage): New function. Overload.
  17410. (createRequestMessage): New function. Overload.
  17411. (createCancelMessage): New function. Overload.
  17412. (createPieceMessage): New function. Overload.
  17413. (createKeepAliveMessage): New function. Overload.
  17414. * src/PeerMessageUtil.cc
  17415. (createChokeMessage): New function. Overload.
  17416. (createUnchokeMessage): New function. Overload.
  17417. (createInterestedMessage): New function. Overload.
  17418. (createNotInterestedMessage): New function. Overload.
  17419. (createHaveMessage): New function. Overload.
  17420. (createBitfieldMessage): New function. Overload.
  17421. (createRequestMessage): New function. Overload.
  17422. (createCancelMessage): New function. Overload.
  17423. (createPieceMessage): New function. Overload.
  17424. (createKeepAliveMessage): New function. Overload.
  17425. * src/SendMessageQueue.cc
  17426. (createRequestMessage): Use PeerMessageUtil.
  17427. (createCancelMessage): Use PeerMessageUtil.
  17428. (createPieceMessage): Use PeerMessageUtil.
  17429. (createHaveMessage): Use PeerMessageUtil.
  17430. (createChokeMessage): Use PeerMessageUtil.
  17431. (createUnchokeMessage): Use PeerMessageUtil.
  17432. (createInterestedMessage): Use PeerMessageUtil.
  17433. (createNotInterestedMessage): Use PeerMessageUtil.
  17434. (createBitfieldMessage): Use PeerMessageUtil.
  17435. (createKeepAliveMessage): Use PeerMessageUtil.
  17436. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17437. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17438. * src/PeerInteraction.h: New class.
  17439. * src/PeerInteraction.cc: New class.
  17440. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17441. Each peer message has its own class.
  17442. * src/PendingMessages.h: Removed.
  17443. * src/PendingMessages.cc: Removed. The sending process was moved to
  17444. each message class.
  17445. * src/RequestSlotMan.h: Removed.
  17446. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17447. SendMessageQueue.
  17448. * src/RequestMessage.h: New class.
  17449. * src/RequestMessage.cc: New class.
  17450. * src/CancelMessage.h: New class.
  17451. * src/CancelMessage.cc: New class.
  17452. * src/BitfieldMessage.h: New class.
  17453. * src/BitfieldMessage.cc: New class.
  17454. * src/ChokeMessage.h: New class.
  17455. * src/ChokeMessage.cc: New class.
  17456. * src/KeepAliveMessage.h: New class.
  17457. * src/KeepAliveMessage.cc: New class.
  17458. * src/PortMessage.h: New class.
  17459. * src/UnchokeMessage.h: New class.
  17460. * src/UnchokeMessage.cc: New class.
  17461. * src/PieceMessage.h: New class.
  17462. * src/PieceMessage.cc: New class.
  17463. * src/HaveMessage.h: New class.
  17464. * src/HaveMessage.cc: New class.
  17465. * src/BitfieldMessage.h: New class.
  17466. * src/BitfieldMessage.cc: New class.
  17467. * src/NotInterestedMessage.h: New class.
  17468. * src/NotInterestedMessage.cc: New class.
  17469. * src/InterestedMessage.h: New class.
  17470. * src/InterestedMessage.cc: New class.
  17471. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17472. (getSendMessageQueue): New function.
  17473. (setSendMessageQueue): New function.
  17474. * src/HandshakeMessage.cc: New class.
  17475. * src/PeerConnection.h (receiveMessage): Changed return value and
  17476. arguments.
  17477. (receiveHandshake): Changed return value and arguments.
  17478. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17479. here.
  17480. (receiveHandshake): Do not create handshake class here.
  17481. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17482. (piece): Removed.
  17483. (syncPiece): Removed.
  17484. (sendInterest): Removed.
  17485. (sendMessages): Removed.
  17486. (createRequestPendingMessage): Removed.
  17487. (checkPieceHash): Removed.
  17488. (erasePieceOnDisk): Removed.
  17489. (getNewPieceAndSendInterest): Removed.
  17490. (onGotNewPice): Removed.
  17491. (onGotWrongPiece): Removed.
  17492. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17493. Removed peerConnection, piece.
  17494. (~PeerInteractionCommand): Removed peerConnection.
  17495. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17496. (syncPiece): Moved to SendMessageQueue.
  17497. (decideChoking): Removed PendingMessage.
  17498. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17499. The action after receiving peer message was moved to each message
  17500. class.
  17501. (onGotNewPice): Moved to SendMessageQueue.
  17502. (onGotWrongPiece): Moved to SendMessageQueue.
  17503. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17504. (sendInterest): Moved to SendMessageQueue.
  17505. (createRequestPendingMessage): Removed.
  17506. (sendMessages): Moved to SendMessageQueue.
  17507. (onAbort): Use SendMessageQueue::abortPiece()
  17508. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17509. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17510. (checkPieceHash): Moved to SendMessageQueue.
  17511. (erasePieceOnDisk): Moved to SendMessageQueue.
  17512. * src/PeerMessageUtil.h
  17513. (createBitfieldMessage): Removed.
  17514. (createHaveMessage): Changed return value and arguments.
  17515. (createBitfieldMessage): Changed return value and arguments.
  17516. (createRequestCancelMessage): Removed.
  17517. (createPieceMessage): Changed return value and arguments.
  17518. (getShortIntParam): New function.
  17519. (checkIndex): Changed arguments.
  17520. (checkBegin): Changed arguments.
  17521. (checkLength): Changed arguments.
  17522. (checkPieceOffset): Removed.
  17523. (checkRange): New function.
  17524. (checkBitfield): Changed arguments.
  17525. (createPeerMessage): Removed.
  17526. (checkIntegrity): Removed.
  17527. (createHandshakeMessage): Changed arguments.
  17528. (createChokeMessage): New function.
  17529. (createUnchokeMessage): New function.
  17530. (createInterestedMessage): New function.
  17531. (createNotInterestedMessage): New function.
  17532. (createRequestMessage): New function.
  17533. (createCancelMessage): New function.
  17534. (createPortMessage): New function.
  17535. * src/PeerMessageUtil.cc
  17536. (createBitfieldMessage): Removed.
  17537. (createHaveMessage): Changed return value and arguments.
  17538. (createBitfieldMessage): Changed return value and arguments.
  17539. (createRequestCancelMessage): Removed.
  17540. (createPieceMessage): Changed return value and arguments.
  17541. (getShortIntParam): New function.
  17542. (checkIndex): Changed arguments.
  17543. (checkBegin): Changed arguments.
  17544. (checkLength): Changed arguments.
  17545. (checkPieceOffset): Removed.
  17546. (checkRange): New function.
  17547. (checkBitfield): Changed arguments.
  17548. (createPeerMessage): Removed.
  17549. (checkIntegrity): Removed.
  17550. (createHandshakeMessage): Changed arguments.
  17551. (createChokeMessage): New function.
  17552. (createUnchokeMessage): New function.
  17553. (createInterestedMessage): New function.
  17554. (createNotInterestedMessage): New function.
  17555. (createRequestMessage): New function.
  17556. (createCancelMessage): New function.
  17557. (createPortMessage): New function.
  17558. * src/PeerMessage.h
  17559. (id): Removed.
  17560. (index): Removed.
  17561. (begin): Removed.
  17562. (length): Removed.
  17563. (bitfield): Removed.
  17564. (bitfieldLength): Removed.
  17565. (block): Removed.
  17566. (blockLength): Removed.
  17567. (inProgress): New variable.
  17568. (cuid): New variable.
  17569. (peer): New variable.
  17570. (sendMessageQueue): New variable.
  17571. (logger): New variable.
  17572. (setBitfield): Removed.
  17573. (getBitfield): Removed.
  17574. (setBlock): Removed.
  17575. (getBlock): Removed.
  17576. (getBitfieldLength): Removed.
  17577. (getBlockLength): Removed.
  17578. (isInProgress): New function.
  17579. (toString): Made pure virtual.
  17580. (check): New function.
  17581. (send): New function.
  17582. (receivedAction): New function.
  17583. (getId): Made pure virtual.
  17584. (setId): Removed.
  17585. (getIndex): Removed.
  17586. (setIndex): Removed.
  17587. (getBegin): Removed.
  17588. (setBegin): Removed.
  17589. (getLength): Removed.
  17590. (setLength): Removed.
  17591. (getCuid): New function.
  17592. (setCuid): New function.
  17593. (getPeer): New function.
  17594. (setPeer): New function.
  17595. (getSendMessageQueue): New function.
  17596. (setSendMessageQueue): New function.
  17597. (ID): Removed.
  17598. * src/PeerMessage.cc
  17599. (setBitfield): Removed.
  17600. (setBlock): Removed.
  17601. (toString): Removed.
  17602. * src/TorrentMan.h
  17603. (getPieceLength): New function.
  17604. (getPieceLength): New function.
  17605. * src/SendMessageQueue.h
  17606. (REQUEST_TIME_OUT): New definition.
  17607. (RequestSlots): New definition.
  17608. (MessageQueue): New definition.
  17609. (requestSlotMan): Removed.
  17610. (pendingMessages): Removed.
  17611. (requestSlots): New variable.
  17612. (messageQueue): New variable.
  17613. (torrentMan): New variable.
  17614. (peerConnection): New variable.
  17615. (peer): New variable.
  17616. (piece): New variable.
  17617. (getNewPieceAndSendInterest): New function.
  17618. (createPeerMessage): New function.
  17619. (createHandshakeMessage): New function.
  17620. (send): Made private.
  17621. (setPeerMessageCommonProperty): New function.
  17622. (deleteAllRequestSlot): New function.
  17623. (deleteRequestMessageInQueue): New function.
  17624. (cancelAllRequest): Made private.
  17625. (cancelAllRequest): Made private.
  17626. (countRequestSlot): Made private.
  17627. (addPendingMessage): Removed.
  17628. (deletePendingPieceMessage): Removed.
  17629. (deletePendingRequestMessage): Removed.
  17630. (addMessage): New function.
  17631. (deletePieceMessageInQueue): New function.
  17632. (deleteTimeoutRequestSlot): Changed argument.
  17633. (deleteCompletedRequestSlot): Changed argument.
  17634. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17635. (getCorrespondingRequestSlot): New function.
  17636. (countPendingMessage): Removed.
  17637. (countMessageInQueue): New function.
  17638. (getTorrentMan): New function.
  17639. (getPeerConnection): New function.
  17640. (hasDownloadPiece): New function.
  17641. (getDownloadPiece): New function.
  17642. (setDownloadPiece): New function.
  17643. (syncPiece): New function.
  17644. (sendMessages): New function.
  17645. (sendNow): New function.
  17646. (trySendNow): New function.
  17647. (abortPiece): New function.
  17648. (sendHandshake): New function.
  17649. (receiveMessage): New function.
  17650. (receiveHandshake): New function.
  17651. (createRequestMessage): New function.
  17652. (createCancelMessage): New function.
  17653. (createPieceMessage): New function.
  17654. (createHaveMessage): New function.
  17655. (createChokeMessage): New function.
  17656. (createUnchokeMessage): New function.
  17657. (createInterestedMessage): New function.
  17658. (createNotInterestedMessage): New function.
  17659. (createBitfieldMessage): New function.
  17660. (createKeepAliveMessage): New function.
  17661. * src/SendMessageQueue.cc
  17662. (SendMessageQueue): Removed requestSlotMan.
  17663. Instantiated peerConnection here.
  17664. (~SendMessageQueue): Removed requestSlotMan.
  17665. Added deletion of peerConnection and the contents of messageQueue.
  17666. (send): Updated according to the change of messageQueue.
  17667. (addPendingMessage): Renamed to addMessage.
  17668. (addMessage): New function.
  17669. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17670. (deletePieceMessageInQueue): New function.
  17671. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17672. (deleteRequestMessageInQueue): New function.
  17673. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17674. here.
  17675. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17676. (...) was moved here.
  17677. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17678. moved here.
  17679. (deleteCompletedRequestSlot):
  17680. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17681. (getCorrespondingRequestSlot):
  17682. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17683. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17684. (countPendingMessage): Renamed to countMessageInQueue.
  17685. (countMessageInQueue): New function.
  17686. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17687. (receiveHandshake): New function.
  17688. (createHandshakeMessage): New function.
  17689. (receiveMessage): New function.
  17690. (createPeerMessage): New function.
  17691. (syncPiece): New function.
  17692. (getNewPieceAndSendInterest): New function.
  17693. (sendMessages): New function.
  17694. (sendNow): New function.
  17695. (trySendNow): New function.
  17696. (sendHandshake): New function.
  17697. (abortPiece): New function.
  17698. (getDownloadPiece): New function.
  17699. (getPeerMessageCommonProperty): New function.
  17700. (createRequestMessage): New function.
  17701. (createCancelMessage): New function.
  17702. (createPieceMessage): New function.
  17703. (createHaveMessage): New function.
  17704. (createChokeMessage): New function.
  17705. (createUnchokeMessage): New function.
  17706. (createInterestedMessage): New function.
  17707. (createNotInterestedMessage): New function.
  17708. (createBitfieldMessage): New function.
  17709. (createKeepAliveMessage): New function.
  17710. To add simple Content-Disposition support:
  17711. * src/HttpResponseCommand.h (determinFilename): New function.
  17712. * src/HttpResponseCommand.cc (executeInternal):
  17713. Use determinFilename(headers) instead of req->getFile() when comparing
  17714. filename.
  17715. (determinFilename): New function.
  17716. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17717. req->getFile().
  17718. (handleOtherEncoding): Use determinFilename(headers) instead of
  17719. req->getFile().
  17720. * src/Util.h (getContentDispositionFilename): New function.
  17721. * src/Util.cc (getContentDispositionFilename): New function.
  17722. * src/LogFactory.h (release): New function.
  17723. * src/LogFactory.cc (release): New function.
  17724. To fix a bug that causes out-of-bound exception when HTTP status
  17725. line is wrong:
  17726. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17727. size.
  17728. * src/common.h (Deleter): New class.
  17729. * src/SegmentMan.cc
  17730. (~SegmentMan): Added deletion of splitter and diskWriter.
  17731. * src/DownloadEngine.h
  17732. (Commands): Use deque.
  17733. (clearQueue): New function.
  17734. * src/DownloadEngine.cc
  17735. (~DownloadEngine): Added deletion of segmentMan.
  17736. (cleanQueue): New function.
  17737. * src/TorrentDownloadEngine.h
  17738. (TorrentDownloadEngine): The implementation was moved to
  17739. TorrentDownloadEngine.cc.
  17740. (~TorrentDownloadEngine): The implementation was moved to
  17741. TorrentDownloadEngine.cc.
  17742. * src/TorrentDownloadEngine.cc
  17743. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17744. * src/main.cc
  17745. (clearRequest): Removed.
  17746. (handler): Added deletion of e.
  17747. (torrentHandler): Added deletion of te.
  17748. (main): Do not share splitter.
  17749. Use Deleter instead of clearRequest.
  17750. Deletion of classes were updated.
  17751. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17752. * src/main.cc (main): Fixed typo.
  17753. * src/message.h: Fixed typo.
  17754. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17755. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17756. To add --select-file command-line option:
  17757. * src/Util.cc
  17758. (unfoldRange): New function.
  17759. (getNum): New function.
  17760. (unfoldSubRange): New function
  17761. * src/main.cc
  17762. (showUsage): Added help message.
  17763. (main): Added --select-file command-line option. Updated the layout of
  17764. file listing.
  17765. * src/common.h
  17766. (Integers): New definition.
  17767. * src/SocketCore.cc
  17768. (writeData): Removed timeout argument.
  17769. (readData): Removed timeout argument.
  17770. (peekData): Removed timeout argument.
  17771. * src/Socket.cc
  17772. (writeData): Removed timeout argument.
  17773. (readData): Removed timeout argument.
  17774. (peekData): Removed timeout argument.
  17775. * Release 0.4.1
  17776. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17777. To deploy upload rate based choking algorithm:
  17778. * src/PeerInteractionCommand.cc
  17779. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17780. peer currently used.
  17781. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17782. download completes. Simplified.
  17783. (receiveMessage): Updated.
  17784. * src/TorrentMan.h
  17785. (activePeers): New variable.
  17786. (addActivePeer): New function.
  17787. (getActivePeers): New function.
  17788. (deleteActivePeer): New function.
  17789. * src/TorrentMan.cc
  17790. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17791. * src/PeerAbstractCommand.cc
  17792. (onAbort): Use peer->resetStatus().
  17793. * src/main.cc
  17794. (PeerChokeCommand.h): Included.
  17795. (main): Added the instance of ChokingCommand to the command queue.
  17796. * src/Peer.h
  17797. (amChoking): Renamed from amChocking
  17798. (chokingRequired): New variable.
  17799. (optUnchoking): New variable.
  17800. (deltaUpload): New variable.
  17801. (deltaDownload): New variable.
  17802. (addDeltaUpload): New function.
  17803. (resetDeltaUpload): New function.
  17804. (addDeltaDownload): New function.
  17805. (resetDeltaDownload): New function.
  17806. (addPeerUpload): Added a call to addDeltaUpload.
  17807. (addPeerDownload): Added a call to addDeltaDownload.
  17808. * src/Peer.cc
  17809. (shouldBeChoking): Renamed from shouldChoke.
  17810. (resetStatus): New function.
  17811. * src/PeerChokeCommand.h: New class.
  17812. * src/PeerChokeCommand.cc: New class.
  17813. To add lazy upload speed limiter:
  17814. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17815. statistics calculation to TorrentDownloadEngine.
  17816. * src/TorrentConsoleDownloadEngine.cc
  17817. (sendStatistics): Renamed from printStatistics.
  17818. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17819. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17820. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17821. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17822. calculation.
  17823. (sendStatistics): New function as pure virtual function.
  17824. (getUploadSpeed): New function.
  17825. * src/TorrentDownloadEngine.cc
  17826. (initStatistics): New function.
  17827. (calculateSpeed): New function.
  17828. (calculateStatistics): New function.
  17829. * src/SendMessageQueue.h
  17830. (uploadLength): New variable.
  17831. (send): Added an argument.
  17832. (setUploadLimit): New function.
  17833. (getUploadLimit): New function.
  17834. * src/SendMessageQueue.cc
  17835. (send): Added upload speed limiter.
  17836. * src/prefs.h
  17837. (PREF_UPLOAD_LIMIT): New definition.
  17838. * src/PeerInteractionCommand.cc
  17839. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17840. * src/main.cc
  17841. (main): Added --upload-limit option
  17842. For bug fixes:
  17843. * src/main.cc
  17844. (showUsage): Corrected --listen-port help
  17845. Other changes:
  17846. * src/TorrentMan.cc
  17847. (getPeer): Return nullPeer if connection is grather than
  17848. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17849. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17850. To add some useful information to the exception message:
  17851. * src/SocketCore.cc : Updated messages.
  17852. * src/SegmentMan.cc :
  17853. * src/TorrentMan.cc : Updated messages.
  17854. * src/MultiDiskWriter.cc : Updated messages.
  17855. * src/Util.cc : Updated messages.
  17856. * src/AbstractDiskWriter.cc : Updated messages.
  17857. * src/PreAllocationDiskWriter.cc : Updated messages.
  17858. * src/message.cc : Added new messages. Updated some messages.
  17859. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17860. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17861. Updated threshold from 30 to 15.
  17862. * src/AbstractDiskWriter.h (filename): New variable.
  17863. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17864. (createFile): Assigned filename.
  17865. * src/main.cc: Updated the help message for http-auth-scheme.
  17866. * Release 0.4.0
  17867. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17868. To add TrackerUpdateCommand with which replaces
  17869. CompactTrackerResponseProcessor:
  17870. * src/TrackerWatcherCommand.h (req): Removed.
  17871. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17872. if the number of peer connections are less than 30.
  17873. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17874. * src/SegmentMan.h (diskWriter): New function.
  17875. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17876. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17877. (main): Use TrackerUpdateCommand.
  17878. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17879. (req): New variable.
  17880. (setTrackerResponseProcessor): Removed.
  17881. (getTrackerResponseProcessor): Removed.
  17882. (processTrackerResponse): Removed.
  17883. * src/DownloadEngine.h (diskWriter): Removed.
  17884. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17885. to torrentMan->processTrackerResponse().
  17886. To add Util::expandBuffer:
  17887. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17888. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17889. * src/Util.h (expandBuffer): New function.
  17890. To fix the bug that causes segmentation fault when "-l ." is specified
  17891. in command-line option:
  17892. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17893. (openFile): New function.
  17894. (closeFile): New function.
  17895. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17896. (~SimpleLogger): Call closeFile();
  17897. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17898. * src/main.cc (main): Added a check to see logger is configured
  17899. properly.
  17900. To enable HTTP authentication without specifying "--http-auth-scheme"
  17901. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17902. * src/HttpConnection.cc (createRequest): Send Authorization header
  17903. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17904. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17905. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17906. * src/Peer.cc (shouldChoke): Updated algorithm.
  17907. * src/message.h (EX_AUTH_FAILED): New definition.
  17908. (EX_FILE_OPEN): New definition.
  17909. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17910. if status == 401.
  17911. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17912. if req->isTorrent == true.
  17913. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17914. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17915. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17916. (createFile): Updated message.
  17917. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17918. To add a readout of estimated remaining time to normal HTTP/FTP
  17919. downloads:
  17920. * src/ConsoleDownloadEngine.h (startup): New variable.
  17921. (startupLength): New variable.
  17922. (isStartupLengthSet): New variable.
  17923. (avgSpeed): New variable.
  17924. (eta): New variable.
  17925. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17926. estimated remaining time.
  17927. (initStatistics): Initialized newly added variables.
  17928. (calculateStatistics): Calculate average speed and estimated remaining
  17929. time.
  17930. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17931. * src/TrackerDownloadCommand.h: Removed.
  17932. * src/TrackerDownloadCommand.cc: Removed.
  17933. * src/TrackerInitCommand.h: Removed.
  17934. * src/TrackerInitCommand.cc: Removed.
  17935. * src/TrackerUpdateCommand.h: Removed.
  17936. * src/TrackerUpdateCommand.cc: Removed.
  17937. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17938. url written in TrackerInitCommand was moved here. Do not create
  17939. tracker request command if torrentMan->trackers != 0.
  17940. * src/CompactTrackerResponseProcessor.h: New class.
  17941. * src/CompactTrackerResponseProcessor.cc: New class.
  17942. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17943. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17944. Decoupled TorrentDownloadEngine from this.
  17945. * src/SegmentMan.h (init): New function.
  17946. * src/SegmentMan.cc (init): New function.
  17947. * src/TorrentMan.h (responseProcessor): New variable.
  17948. (trackers): New variable.
  17949. (setTrackerResponseProcessor): New function.
  17950. (getTrackerResponseProcessor): New function.
  17951. (processTrackerResponse): New function.
  17952. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17953. (processTrackerResponse): New function.
  17954. * src/main.cc (main): Use ByteArrayDiskWriter and
  17955. CompactTrackerResponseProcessor.
  17956. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17957. processTrackerResponse().
  17958. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17959. readout.
  17960. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17961. which indicates download has completed.
  17962. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17963. (closeFile): fd >= 0, not fd > 0
  17964. * src/main.cc (main): Added short cut for show-files.
  17965. Added short cut for torrent-file.
  17966. Added new command-line option listen-port.
  17967. Updated i18n messages.
  17968. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17969. To add LogFactory which creates singleton logger:
  17970. * src/LogFactory.h: New class.
  17971. * src/LogFactory.cc: New class.
  17972. * src/Command.h (logger): New variable.
  17973. (Constructor): Use LogFactory.
  17974. * src/AbstractCommand.cc: Use Command::logger
  17975. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17976. Use LogFactory.
  17977. * src/SegmentSplitter.h : Made logger protected.
  17978. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17979. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17980. * src/DownloadEngine.h : Made logger protected.
  17981. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17982. * src/PeerInteractionCommand.cc : Use Command::logger.
  17983. * src/HttpResponseCommand.cc : Use Command::logger.
  17984. * src/SegmentMan.h : Made logger private.
  17985. * src/TorrentMan.h : Made logger private.
  17986. * src/TorrentMan.cc : Use LogFactory.
  17987. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17988. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17989. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17990. Use LogFactory.
  17991. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17992. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17993. Use LogFactory.
  17994. * src/DownloadCommand.cc : Use Command::logger.
  17995. * src/PeerAbstractCommand.cc : Use Command::logger.
  17996. * src/PeerListenCommand.cc : Use Command::logger.
  17997. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17998. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17999. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18000. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18001. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18002. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18003. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18004. Use LogFactory.
  18005. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18006. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18007. Use LogFactory.
  18008. * src/main.cc (main): Use LogFactory.
  18009. * src/DiskAdaptor.h (logger): New variable.
  18010. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18011. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18012. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18013. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18014. parameter to a tracker request.
  18015. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18016. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18017. * src/main.cc (setSignalHander): New function.
  18018. (main): Added a handler for SIGTERM.
  18019. (handler): Updated message.
  18020. (torrentHandler): Updated message.
  18021. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18022. * src/TorrentConsoleDownloadEngine.cc
  18023. (onPartialDownloadingCompletes): Renamed as
  18024. onSelectiveDownloadingCompletes.
  18025. (onSelectiveDownloadingCompletes): Updated message.
  18026. To add DiskAdaptor which abstract DiskWriter family:
  18027. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18028. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18029. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18030. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18031. MultiDiskAdaptor.h.
  18032. (readFileEntry): Changed its arguments.
  18033. (setup): setupDiskWriter is merged into this function.
  18034. (setupDiskWriter): Removed.
  18035. (setFileFilter): New function.
  18036. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18037. made in readFileEntry.
  18038. (getFilePath): Removed.
  18039. (getTempFilePath): Removed.
  18040. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18041. (fixFilename): Removed.
  18042. (copySingleFile): Removed.
  18043. (splitMultiFile): Removed.
  18044. (deleteTempFile): Removed.
  18045. (setFileEntriesToDownload): Removed.
  18046. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18047. (isSelectiveDownloadingMode): New function.
  18048. (setAllMultiFileRequestedState): Removed.
  18049. (finishPartialDownloadingMode): Renamed as
  18050. finishSelectiveDownloadingMode.
  18051. (finishSelectiveDownloadingMode): New function.
  18052. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18053. (getSelectedTotalLength): New function.
  18054. (onDownloadComplete): Use diskAdaptor.
  18055. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18056. (Range): Removed.
  18057. (setMultiFileEntries): Renamed as setFileEntries.
  18058. (setFileEntries): New function.
  18059. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18060. (pieceLength): New variable.
  18061. * src/main.cc (printDownloadCompeleteMessage): New function.
  18062. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18063. (main): Renamed torrent-show-files to show-files.
  18064. Rewritten file contents listing.
  18065. * src/TorrentMan.h (FileEntry): Removed.
  18066. (multiFileTopDir): Removed.
  18067. (multiFileEntries): Removed.
  18068. (diskWriter): Removed.
  18069. (diskAdaptor): New variable.
  18070. * src/DefaultDiskWriter.h (totalLength): New variable.
  18071. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18072. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18073. diskWriter.
  18074. * src/TorrentConsoleDownloadEngine.h
  18075. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18076. (partialTotalLength): Renamed as selectedTotalLength.
  18077. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18078. openExistingFile, otherwise call initAndOpenFile.
  18079. (closeFile): fd > 0, not fd != 0.
  18080. * src/DirectDiskAdaptor.h: New class.
  18081. * src/DirectDiskAdaptor.cc: New class.
  18082. * src/MultiDiskAdaptor.h: New class.
  18083. * src/MultiDiskAdaptor.cc: New class.
  18084. * src/CopyDiskAdaptor.h: New class.
  18085. * src/CopyDiskAdaptor.cc: New class.
  18086. * src/DiskAdaptor.h: New class.
  18087. * src/DiskAdaptor.cc: New class.
  18088. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18089. (PREF_SHOW_FILES): New definition.
  18090. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18091. To add the ability to download multi torrent into respective files
  18092. directly:
  18093. * src/DiskWriter.h (openFile): New function.
  18094. (seek): Removed.
  18095. * src/MultiDiskWriter.h: New class.
  18096. * src/MultiDiskWriter.cc: New class.
  18097. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18098. protected.
  18099. (openFile): New function.
  18100. * src/AbstractDiskWriter.cc (openFile): New function.
  18101. * src/prefs.h (V_FALSE): New definition.
  18102. (PREF_DIRECT_FILE_MAPPING): New definition.
  18103. * src/TorrentMan.h (setupDiskWriter): New function.
  18104. (setAllMultiFileRequestedState): New function.
  18105. (onDownloadComplete): New function.
  18106. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18107. (setupDiskWriter): New function.
  18108. (getFilePath): Updated.
  18109. (getTempFilePath): Updated.
  18110. (getSegmentFilePath): Updated.
  18111. (fixFilename): Updated.
  18112. (deleteTempFile): Updated.
  18113. (setAllMultiFileRequestedState): New function.
  18114. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18115. (finishPartialDownloadingMode): Reset requested flags.
  18116. (onDownloadComplete): New function.
  18117. * src/main.cc: Added --direct-file-mapping option.
  18118. Use TorrentMan::setupDiskWriter().
  18119. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18120. onDownloadComplete().
  18121. To fix ETA bug:
  18122. * src/Util.h (difftvsec): New function.
  18123. * src/Util.cc (difftvsec): New function.
  18124. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18125. type of "elapsed" instead of long long int.
  18126. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18127. The updates of statistics takes place every 1 seconds.
  18128. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18129. (calculateSpeed): Changed its argument signature.
  18130. * src/PeerMessage.cc (toString): Fixed message.
  18131. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18132. To print ETA:
  18133. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18134. completion handling when dealing with
  18135. TorrentMan::isPartialDownloadingMode() == true.
  18136. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18137. New function.
  18138. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18139. (sessionDownloadLength): New variable.
  18140. (avgSpeed): New variable.
  18141. (eta): New variable.
  18142. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18143. new variables: eta, avgSpeed, startup.
  18144. (calculateSpeed): Calculate average speed and ETA.
  18145. (printStatistics): Added ETA.
  18146. * src/Util.h (secfmt): New function.
  18147. * src/Util.cc (secfmt): New function.
  18148. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18149. To detect "keep alive" flooding:
  18150. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18151. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18152. variable: keepAliveCount.
  18153. (detectMessageFlooding): Added "keep alive" flooding detection.
  18154. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18155. received.
  18156. To add the ability to download only specified files in multi-file
  18157. torrent:
  18158. * src/BitfieldMan.h (filterBitfield): New variable.
  18159. (filterEnabled): New variable.
  18160. (setFilterBit): New function.
  18161. (enableFilter): New function.
  18162. (disableFilter): New function.
  18163. (isFilterEnabled): New function.
  18164. (getFilteredTotalLength): New function.
  18165. (getCompletedLength): New function.
  18166. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18167. filterBitfield, filterEnabled.
  18168. (CopyConstructor): Added filterBitfield and filterEnabled.
  18169. (operator==): Added filterBitfield and filterEnabled.
  18170. (Destructor): Added filterBitfield.
  18171. (getMissingIndex): Use filterBitfield.
  18172. (getMissingUnusedIndex): Use filterBitfield.
  18173. (getFirstMissingUnusedIndex): Use filterBitfield.
  18174. (getFirstMissingUnusedIndex): Use filterBitfield.
  18175. (getAllMissingIndexes): Use filterBitfield.
  18176. (countMissingBlock): Use filterBitfield.
  18177. (countBlock): Use filterBitfield.
  18178. (setBitInternal): Added new argument on.
  18179. (setUseBit): Use setBitInternal.
  18180. (unsetUseBit): Use setBitInternal.
  18181. (setBit): Use setBitInternal.
  18182. (unsetBit): Use setBitInternal.
  18183. (isAllBitSet): Use filterBitfield.
  18184. (setFilterBit): New function.
  18185. (addFilter): New function.
  18186. (enableFilter): New function.
  18187. (disableFilter): New function.
  18188. (clearFilter): New function.
  18189. (isFilterEnabled): New function.
  18190. (getFilteredTotalLength): New function.
  18191. (getCompletedLength): New function.
  18192. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18193. Initalized newly added variables.
  18194. [FileEntry](offset): New variable.
  18195. [FileEntry](extracted): New variable.
  18196. [FileEntry](requested): New variable.
  18197. (readFileEntry): New function.
  18198. (option): New variable.
  18199. (splitMultiFile): Removed const qualifier.
  18200. (fixFilename): Removed const qualifier.
  18201. (readFileEntryFromMetaInfoFile): New function.
  18202. (finishPartialDownloadingMode): New function.
  18203. (isPartialDownloadingMode): New function.
  18204. (setFileEntriesToDownload): New function.
  18205. (getCompletedLength): New function.
  18206. (getPartialTotalLength): New function.
  18207. * src/TorrentMan.cc (readFileEntry): New function.
  18208. (setup): Use readFileEntry. If no-preallocation option is specified,
  18209. use DefaultDiskWriter.
  18210. (readFileEntryFromMetaInfoFile): New function.
  18211. (fixFilename): Removed const qualifier.
  18212. (splitMultiFile): Removed const qualifier.
  18213. (setFileEntriesToDownload): New function.
  18214. (isPartialDownloadingMode): New function.
  18215. (finishPartialDownloadingMode): New function.
  18216. (getCompletedLength): New function.
  18217. (getPartialTotalLength): New function.
  18218. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18219. New variable.
  18220. (partialTotalLength): New variable.
  18221. (downloadLength): New variable.
  18222. (totalLength): New variable.
  18223. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18224. Added log.
  18225. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18226. partialTotalLength, downloadLength, totalLength.
  18227. (calculate): Calculate downloadLength and totalLength.
  18228. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18229. * src/main.cc (addCommand): Changed argument signature.
  18230. (main): Added new variable: args. Added new option "torrent-show-files"
  18231. "no-preallocation". Usage is not updated yet.
  18232. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18233. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18234. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18235. Attempt to add the ability to listing file entries in a .torrent file.
  18236. This feature is not yet complete.
  18237. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18238. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18239. (getName): New function.
  18240. * src/TorrentMan.h (getMultiFileEntries): New function.
  18241. (getName): New function.
  18242. * src/main.cc (main): Use above 2 funtion.
  18243. * Release 0.3.2
  18244. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18245. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18246. (detectMessageFlooding): Updated threshold value.
  18247. (checkLongTimePeerChoking): Updated timeout value.
  18248. (getNewPieceAndSendInterest): Added debug log.
  18249. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18250. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18251. (getPeer): Updated.
  18252. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18253. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18254. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18255. is localhost.
  18256. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18257. * src/PendingMessage.cc (processMessage): Not to send piece message
  18258. if peer is not interested in the pieces localhost has.
  18259. * src/Peer.cc (shouldChoke): Updated.
  18260. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18261. * src/Util.cc (isPowerOf): New function.
  18262. * src/Util.h (isPowerOf): New function.
  18263. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18264. whether or not it is power of 2.
  18265. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18266. Added new class SendMessageQueue that includes PendingMessages and
  18267. RequestSlotMan.
  18268. * src/SendMessageQueue.h: New class.
  18269. * src/SendMessageQueue.cc: New class.
  18270. * src/PendingMessage.h: Added new member variable blockIndex and its
  18271. accessors.
  18272. (createRequestMessage): Updated.
  18273. * src/PendingMessage.cc (createRequestMessage): Updated.
  18274. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18275. SendMessageQueue.
  18276. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18277. (receiveMessage): Updated with SendMessageQueue.
  18278. (deletePendingPieceMessage): Removed.
  18279. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18280. (sendInterest): Updated with SendMessageQueue.
  18281. (createRequestPendingMessage): Updated with SendMessageQueue.
  18282. (sendMessages): Updated with SendMessageQueue.
  18283. (onAbort): Updated with SendMessageQueue.
  18284. (keepAlive): Updated with SendMessageQueue.
  18285. (beforeSocketCheck): Updated SendMessageQueue.
  18286. * src/PeerInteractionCommand (sendMessages): Shuffle
  18287. missingBLockIndexes before using it.
  18288. Added its own timeout for peer connection.
  18289. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18290. setter.
  18291. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18292. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18293. Added setTimeout() call.
  18294. (executeInternal): Added setTimeout() call.
  18295. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18296. Added timeout.
  18297. (isTimeoutDetected): Updated.
  18298. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18299. option.
  18300. Added *simple* message flooding checker.
  18301. * src/PeerInteractionCommand.cc (executeInternal):
  18302. Added detectMessageFlooding() call.
  18303. (detectMessageFlooding): New function.
  18304. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18305. (beforeSocketCheck): Added detectMessageFlooding() call.
  18306. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18307. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18308. Removed deletePendingPieceMessage(), getRequestSlot(),
  18309. deleteRequestSlot(), deleteAllRequestSlot().
  18310. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18311. Added checkLongTimePeerChoking() call.
  18312. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18313. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18314. if duplicate == false.
  18315. The parameter "uploaded" and "downloaded" in the tracker request are
  18316. the size since the client sent the "started" event to the tracker.
  18317. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18318. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18319. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18320. getSessionDownloadedSize(), getSessionUploadedSize().
  18321. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18322. getSessionUploadedSize() instead of getDownloadedSize(),
  18323. getUploadedSize().
  18324. * src/PendingMessage.cc (processMessage): Do not send request message
  18325. if the peer is choking the client.
  18326. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18327. less than interval.
  18328. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18329. * configure.in: Added gnutls support. Added several CPP macros.
  18330. * m4/openssl.m4: Added.
  18331. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18332. readData(), peekData(). Added gnutls support.
  18333. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18334. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18335. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18336. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18337. Instead, added a check for whether setup method has executed
  18338. successfully.
  18339. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18340. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18341. * src/Makefile.am: Updated.
  18342. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18343. using whether OpenSSL or gcrypt, depending on the result of configure
  18344. script.
  18345. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18346. messageDigest.h.
  18347. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18348. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18349. Fixed memory leak.
  18350. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18351. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18352. Removed instantiation of TrackerInitCommand. Instead,
  18353. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18354. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18355. ENABLE_SSL.
  18356. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18357. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18358. If a piece is already acquired by another command, delete the request
  18359. slots for the piece.
  18360. * src/TrackerUpdateCommand.cc (execute):
  18361. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18362. Added a check whether peer list is null.
  18363. Fixed the bug that causes sending completed event to the tracker
  18364. several times.
  18365. * src/TrackerInitCommand.cc (execute):
  18366. Fixed the bug that causes sending completed event to the tracker
  18367. several times.
  18368. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18369. by using messageDigest.h.
  18370. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18371. * PeerConnection.cc: Replaced log message "keep-alive" with
  18372. "keep alive".
  18373. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18374. localhost long time.
  18375. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18376. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18377. at most 100 failure entry from the list. If with duplicate = false,
  18378. MAX_PEER_LIST is not checked.
  18379. * PeerListenCommand.cc: Fixed the argument order of log message.
  18380. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18381. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18382. Added warn().
  18383. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18384. Implemented warn().
  18385. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18386. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18387. * Request.h: Added AFTER_COMPLETED event.
  18388. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18389. instead of downloaded size and progress(%) after download completes.
  18390. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18391. message to the peer if it is interested in what localhost has
  18392. downloaded.
  18393. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18394. destination instead of just renaming it.
  18395. * TorrentMan.cc: Added deleteTempFile().
  18396. * PeerAbstractCommand.cc: do not stop execution after download
  18397. completes. This makes localhost a seeder.
  18398. * Util.{h,cc}: Added fileCopy().
  18399. * PeerListenCommand.cc: do not stop execution after download completes.
  18400. This makes localhost a seeder.
  18401. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18402. Added TorrentMan::deleteTempFile() to torrentHandler.
  18403. Initialized the variable dir as ".".
  18404. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18405. Deleted renameSingleFile().
  18406. Added copySingleFile(), deleteTempFile().
  18407. * DownloadEngine.h: Added virtual function afterEachIteration().
  18408. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18409. in onEndOfRun() to afterEachIteration().
  18410. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18411. true.
  18412. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18413. In rangedFileCopy(), added try-catch block to properly close file
  18414. descriptors.
  18415. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18416. Added afterEachIteration(), isFilenameFixed().
  18417. * Peer.cc: Changed choking strategy.
  18418. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18419. * TrackerInitCommand.cc: Send completed event only once.
  18420. * DownloadEngine.cc: Added a call to afterEachIteration().
  18421. * TrackerUpdateCommand.cc: Do not stop execution after download
  18422. completes.
  18423. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18424. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18425. received from a tracker.
  18426. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18427. Decreased the number of failure peers to delete to 0(just comment out
  18428. the line).
  18429. * Release 0.3.1
  18430. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18431. * PeerInteractionCommand.cc: added a call to
  18432. TorrentMan::unadvertisePiece in Destructor.
  18433. * PeerInteractionCommand.cc: make have message sent immediately
  18434. if the size of pending message queue is zero.
  18435. * TorrentMan.cc: set the maximum size of peer list to 250.
  18436. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18437. to deque.
  18438. * Util.cc: fixed rangedFileCopy.
  18439. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18440. to Constructor. Also, moved digest cleanup to Destructor.
  18441. * MetaFileUtil.cc: fixed memory leak
  18442. * replaced std::vector with std::deque.
  18443. * AbstractCommand.cc: casted timeout value to long long int.
  18444. * ChunkedEncoding.cc: fixed memory leak.
  18445. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18446. * SleepCommand.cc: casted timeout value to long long int.
  18447. * Data.cc: fixed memory leak.
  18448. * Data.cc: fixed toLLInt().
  18449. * BitfieldMan.cc: fixed memory leak.
  18450. * TorrentMan.cc: initialized storeDir to ".".
  18451. * TorrentMan.cc: fixed memory leak.
  18452. * TorrentMan.cc: corrected file paths of splitted files.
  18453. * PeerAbstractCommand.cc: casted timeout to long long int.
  18454. * main.cc: added delete(req) and delete(te->diskWriter).
  18455. * RequestSlot.cc: casted timeout value to long long int.
  18456. * Request.cc: fixed memory leak.
  18457. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18458. have the piece.
  18459. * Peer.{h,cc}: added hasPiece(int index).
  18460. * main.cc: corrected addCommand.
  18461. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18462. * BitTorrent protocol support added.
  18463. * Release 0.3.0
  18464. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18465. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18466. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18467. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18468. decoding did not work properly.
  18469. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18470. * DownloadEngine.h: included sys/time.h
  18471. * DownloadEngine.cc: remove sys/time.h
  18472. * Makefile.am (SUBDIRS): Add intl.
  18473. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18474. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18475. * main.cc: correct help message for --http-auth-scheme.
  18476. * main.cc: changed e-mail address for bug reports.
  18477. * ja.po: added japanese translation.
  18478. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18479. * SimpleLogger.cc: flush log file instead of stdout.
  18480. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18481. * main.cc: Fixed command-line option: max-tries
  18482. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18483. does not equal to seg.sp.
  18484. * DownloadCommand.cc: If EOF is got from the server and the total size
  18485. of file is not zero, then throw DlRetryEx.
  18486. * main.cc: Set the minium value of min-segment-size to 1024.
  18487. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18488. fails because of a regression since 0.2.0 release.
  18489. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18490. * HttpConnection.cc:
  18491. * common.h: defined the user agent name as macro
  18492. * DownloadEngine.{h, cc}:
  18493. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18494. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18495. * main.cc: Download complete/abort message is now generated by main.
  18496. * Makefile.am (SUBDIRS): Add m4.
  18497. (ACLOCAL_AMFLAGS): New variable.
  18498. (EXTRA_DIST): New variable.
  18499. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18500. * gettext: added gettext functionality
  18501. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18502. * AbstractCommand.cc:
  18503. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18504. unregister its cuid from SegmentMan.
  18505. * DownloadEngine.cc: .aria2 file was written when a downloading
  18506. failed with errors.
  18507. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18508. Added "User-Agent" header to CONNECT proxy request.
  18509. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18510. properly.
  18511. * Logger.h:
  18512. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18513. * ChunkedEncoding.cc: Added #include directive for strings.h
  18514. * Release 0.2.1
  18515. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18516. * Util.{h,cc}: added startsWith().
  18517. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18518. Util::endsWith().
  18519. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18520. * common.h: added #include directive of limit.h.
  18521. * DownloadEngine.cc: added #include directive of sys/time.h and
  18522. algorithm.
  18523. * Exception.h: added #include directive of stdio.h.
  18524. * AbstractCommand.h: added #include directive of sys/time.h.
  18525. * DownloadCommand.h: added #include directive of sys/time.h.
  18526. * *.h: added #include directive of common.h to all base classes.
  18527. subclasses' one was removed.
  18528. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18529. does not define these macros.
  18530. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18531. * Release 0.2.0
  18532. * main.cc:
  18533. * HttpInitiateConnectionCommand.{h,cc}:
  18534. * prefs.h:
  18535. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18536. We can now use GET command in http proxy.
  18537. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18538. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18539. that splits slowest segment of SegmentMan::commands vector.
  18540. This is the default split algorithm of aria2.
  18541. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18542. that splits first segment of SegmentMan::commands vector.
  18543. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18544. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18545. * Segment.h:
  18546. * SegmentMan.cc: Added speed field to Segment.h
  18547. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18548. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18549. * message.h: Change file size related %d to %lld.
  18550. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18551. * FtpInitiateConnectionCommand.{h,cc}:
  18552. * FtpNegotiationCommand.{h,cc}:
  18553. * FtpDownloadCommand.{h,cc}:
  18554. * FtpConnection.{h,cc}: Added FTP support
  18555. * SimpleLogger.cc: Log message now includes time information.
  18556. * main.cc: The value of --http-auth-scheme option is chagned from
  18557. 'BASIC' to 'basic'
  18558. * main.cc: Added --timeout command-line option.
  18559. * main.cc: Added --min-segment-size command-line option.
  18560. * main.cc: Added --max-retries command-line option.
  18561. * prefs.h: option string constants are now defined in prefs.h
  18562. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18563. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18564. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18565. with version 0.1.0's one.
  18566. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18567. * configure.in: Added --enable-ssl option to configure script.
  18568. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18569. cannot permit absoluteURI as Request-URI.
  18570. * HttpConnection.cc: Added Referer support.
  18571. * main.cc: Added referer command-line option.
  18572. * main.cc: Added rety-wait command-line option.
  18573. * Exception.h: Fixed formating bug in Exception::setMsg()
  18574. * SocketCore.{h,cc}:
  18575. * Socket.{h, cc}:
  18576. * Request.cc:
  18577. * InitiateConnectionCommandFactory.cc:
  18578. * HttpRequestCommand.cc: Added HTTPS support.
  18579. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18580. for SocketCore.
  18581. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18582. size is wrong
  18583. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18584. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18585. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18586. * Release 0.1.0