ChangeLog 747 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247
  1. 2010-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Updated doc
  3. * src/aria2c.1.txt
  4. 2010-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Added totalLength, completedLength, uploadLength, bitfield,
  6. downloadSpeed, uploadSpeed, infoHash, numSeeders, pieceLength,
  7. numPieces, connections and dir to the response of
  8. aria2.tellStopped XML-RPC method. aria2.tellWaiting now always
  9. returns numSeeders for BitTorrent download.
  10. * src/DownloadResult.h
  11. * src/RequestGroup.cc
  12. * src/RequestGroup.h
  13. * src/XmlRpcMethodImpl.cc
  14. * test/XmlRpcMethodTest.cc
  15. 2010-05-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Fixed the bug that connection pooling does not take into account
  17. proxy. This means that when connection A via proxy X is pooled,
  18. it will be wrongly reused in the download using proxy Y.
  19. * src/DownloadEngine.cc
  20. * src/DownloadEngine.h
  21. * src/FtpFinishDownloadCommand.cc
  22. * src/FtpInitiateConnectionCommand.cc
  23. * src/FtpNegotiationCommand.cc
  24. * src/HttpDownloadCommand.cc
  25. * src/HttpInitiateConnectionCommand.cc
  26. * src/HttpResponseCommand.cc
  27. * src/HttpSkipResponseCommand.cc
  28. 2010-05-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Fixed the bug that FTP download may fail when control connection
  30. is reused. This happens because FTP server can offer different
  31. root directory for different account. If pooled connections has
  32. different root directory, then download will fail.
  33. * src/DownloadEngine.cc
  34. * src/DownloadEngine.h
  35. * src/FtpConnection.cc
  36. * src/FtpConnection.h
  37. * src/FtpFinishDownloadCommand.cc
  38. * src/FtpInitiateConnectionCommand.cc
  39. * src/FtpNegotiationCommand.cc
  40. 2010-05-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Removed DownloadResult's ctor because it has many args.
  42. * src/DownloadResult.h
  43. * src/RequestGroup.cc
  44. * test/XmlRpcMethodTest.cc
  45. 2010-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Code cleanup.
  47. * src/RequestGroupMan.cc
  48. * src/UTMetadataPostDownloadHandler.cc
  49. * src/XmlRpcMethodImpl.cc
  50. 2010-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Store both whole checksum and piece hash in metalink file.
  52. Dispatch whole checksum verification only when piece hash is not
  53. set.
  54. * src/DownloadCommand.cc
  55. * src/Metalink2RequestGroup.cc
  56. * test/Metalink2RequestGroupTest.cc
  57. 2010-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  58. Left only IANA hash function textual name in messageDigest.cc.
  59. Assign only IANA hash function textual name to Checksum and
  60. ChunkChecksum. Fixed the value of MessageDigestContext::MD5.
  61. * src/Checksum.h
  62. * src/MetalinkParserController.cc
  63. * src/messageDigest.cc
  64. * src/messageDigest.h
  65. * test/IteratableChecksumValidatorTest.cc
  66. * test/IteratableChunkChecksumValidatorTest.cc
  67. * test/MessageDigestHelperTest.cc
  68. * test/Metalink2RequestGroupTest.cc
  69. * test/MetalinkProcessorTest.cc
  70. 2010-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  71. Fixed typo in log message
  72. * src/AbstractCommand.cc
  73. 2010-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Release 1.9.3
  75. 2010-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Return const reference.
  77. * src/DefaultPieceStorage.h
  78. * src/DownloadContext.h
  79. * src/FeatureConfig.cc
  80. * src/FeatureConfig.h
  81. * src/OptionParser.cc
  82. * src/OptionParser.h
  83. * src/SimpleRandomizer.cc
  84. * src/SimpleRandomizer.h
  85. 2010-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Bump up version number to 1.9.3.
  87. * configure.ac
  88. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  89. Return const reference.
  90. * src/LpdMessageReceiver.h
  91. * src/LpdReceiveMessageCommand.h
  92. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Removed useless pathJoin
  94. * src/MetalinkParserController.cc
  95. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Fixed the bug that name attribute of file element in Metalink file
  97. is not properly sanitized.
  98. * src/Metalink2RequestGroup.cc
  99. * src/MetalinkParserController.cc
  100. * test/Makefile.am
  101. * test/Metalink2RequestGroupTest.cc
  102. * test/metalink4-dosdirtraversal.xml
  103. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  104. Fixed the bug that if filename in Content-Disposition header
  105. includes ';', aria2 cuts filename after ';'.
  106. * src/util.cc
  107. * test/UtilTest.cc
  108. 2010-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Release 1.9.2
  110. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Fixed compiler warning on opensolaris.
  112. * src/StringFormat.h
  113. * src/XORCloser.h
  114. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Updated doc
  116. * test/array_funTest.cc
  117. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Fixed segmentation fault when running unit tests on opensolaris.
  119. * src/SocketCore.cc
  120. * src/bittorrent_helper.cc
  121. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  122. Updated Russian translation. Thanks to all translators.
  123. * po/ru.po
  124. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Updated po templates.
  126. * po/aria2.pot
  127. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Print warning when trying to add file descriptor >= FD_SET or < 0
  129. to fd_set for other than MinGW32 build. For MinGW32 build, print
  130. warning when trying to add file descriptor to fd_set when it
  131. already contains FD_SET file descriptors.
  132. * src/SelectEventPoll.cc
  133. * src/SocketCore.cc
  134. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  135. Updated doc for --event-poll option.
  136. * doc/aria2c.1.txt
  137. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  138. Bump up version number to 1.9.2
  139. * configure.ac
  140. * doc/aria2c.1.txt
  141. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Defined FD_SETSIZE 1024 for MinGW32.
  143. * src/a2netcompat.h
  144. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Fixed compile error on the system which lacks poll()
  146. * src/DownloadEngineFactory.cc
  147. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. In SocketCore::isReadable()/isWritable(), use poll() if it is
  149. available otherwise use select(). Removed epoll/port from there
  150. because poll() does the good enough job for single socket event
  151. notification.
  152. * src/SocketCore.cc
  153. * src/SocketCore.h
  154. * src/main.cc
  155. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Added kqueue support. We use poll() for
  157. SocketCore::isReadable()/isWritable() when kqueue is used.
  158. * configure.ac
  159. * src/DownloadEngineFactory.cc
  160. * src/KqueueEventPoll.cc
  161. * src/KqueueEventPoll.h
  162. * src/Makefile.am
  163. * src/Makefile.in
  164. * src/OptionHandlerFactory.cc
  165. * src/main.cc
  166. * src/prefs.cc
  167. * src/prefs.h
  168. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Added missing timespec.h to SRCS
  170. * src/Makefile.am
  171. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Fixed the bug that aria2.unpause fails with -s1.
  173. * src/FileEntry.cc
  174. * src/XmlRpcMethodImpl.cc
  175. 2010-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Added missing #ifdef HAVE_PORT_ASSOCIATE
  177. * src/DownloadEngineFactory.cc
  178. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Added opensolaris port_associate() support.
  180. * src/DownloadEngineFactory.cc
  181. * src/Makefile.am
  182. * src/OptionHandlerFactory.cc
  183. * src/PortEventPoll.cc
  184. * src/PortEventPoll.h
  185. * src/SocketCore.cc
  186. * src/SocketCore.h
  187. * src/configure.ac
  188. * src/main.cc
  189. * src/prefs.cc
  190. * src/prefs.h
  191. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Fixed the bug that _e is passed where e should be passed.
  193. * src/HttpListenCommand.cc
  194. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Increased _epEvents size if necessary.
  196. * src/EpollEventPoll.cc
  197. * src/EpollEventPoll.h
  198. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Removed EventRType template parameter
  200. * src/EpollEventPoll.cc
  201. * src/EpollEventPoll.h
  202. * src/Event.h
  203. * src/PollEventPoll.cc
  204. * src/PollEventPoll.h
  205. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Use Event in EpollEventPoll
  207. * src/EpollEventPoll.cc
  208. * src/EpollEventPoll.h
  209. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Externalized Event, CommandEvent, ADNSEvent, SocketEntry and
  211. AsyncNameResolverEntry class.
  212. * src/Event.h
  213. * src/Makefile.am
  214. * src/PollEventPoll.cc
  215. * src/PollEventPoll.h
  216. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Supported poll() for socket event notification. --event-poll can
  218. take value "poll". Fixed the bug that timeout for
  219. SocketCore::isReadable()/isWritable() is ignored when epoll is
  220. used.
  221. * src/OptionHandlerFactory.cc
  222. * src/a2io.h
  223. * src/prefs.h
  224. * src/SocketCore.h
  225. * src/Makefile.am
  226. * src/main.cc
  227. * src/PollEventPoll.h
  228. * src/SocketCore.cc
  229. * src/DownloadEngineFactory.cc
  230. * src/PollEventPoll.cc
  231. * src/prefs.cc
  232. * configure.ac
  233. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Reverted previous change to DownloadCommand.cc with additional
  235. commentary.
  236. * src/DownloadCommand.cc
  237. 2010-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Fixed compile error with openssl 1.1.0 and mingw32.
  239. * src/AsyncNameResolver.cc
  240. * src/LogFactory.cc
  241. * src/Logger.cc
  242. * src/Logger.h
  243. * src/SocketCore.cc
  244. * src/SocketCore.h
  245. * src/a2netcompat.h
  246. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Release 1.9.1
  248. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Bump up version number to 1.9.0
  250. * doc/aria2c.1.txt
  251. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  252. Updated Ukrainian, Russian, Simplified Chinese, German and Greek
  253. translation. Thanks to all translators.
  254. * po/de.po
  255. * po/el.po
  256. * po/ru.po
  257. * po/uk.po
  258. * po/zh_CN.po
  259. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Added AC_SEARCH_LIBS for inet_aton on opensolaris. opensolaris
  261. needs -lnsl for inet_aton.
  262. * configure.ac
  263. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Updated po templates.
  265. * po/aria2.pot
  266. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  267. Added aria2.pause, aria2.forcePause, aria2.pauseAll,
  268. aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC
  269. method to aria2rpc
  270. * doc/xmlrpc/aria2rpc
  271. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Use elapsed time between two mach_absolute_time() calls.
  273. Fixed compile error in Mac OS X.
  274. * src/clock_gettime_osx.cc
  275. * src/timespec.h
  276. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  277. Implemented clock_gettime() using mach_absolute_time in Mac OS X.
  278. * configure.ac
  279. * src/Makefile.am
  280. * src/a2time.h
  281. * src/clock_gettime_osx.cc
  282. * src/clock_gettime_osx.h
  283. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. Implemented clock_gettime() using timeGetTime in mingw.
  285. * configure.ac
  286. * src/Makefile.am
  287. * src/a2time.h
  288. * src/clock_gettime_mingw.cc
  289. * src/clock_gettime_mingw.h
  290. * src/timespec.h
  291. * test/Makefile.am
  292. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  293. Ensure that std::ofstream is destroyed before renaming.
  294. * src/SessionSerializer.cc
  295. * src/util.cc
  296. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Fixed the bug that user specified path is escaped using
  298. util::escapePath() where it should not.
  299. * src/DownloadContext.cc
  300. * src/DownloadContext.h
  301. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  302. Hold reference to PieceStorage when paused in order to provide
  303. progress information via XML-RPC.
  304. * src/RequestGroup.cc
  305. * src/RequestGroup.h
  306. * src/RequestGroupMan.cc
  307. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  308. Defined struct timespec if it is not available.
  309. * src/a2time.h
  310. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  311. Added missing serialize_session.meta4 to EXTRA_DIST
  312. * test/Makefile.am
  313. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  314. Fixed compile error without BitTorrent support.
  315. * src/Metalink2RequestGroup.cc
  316. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  317. Fixed compile error on Mac OS X
  318. * src/TimerA2.h
  319. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  320. Added warning for the system which lacks clock_gettime with
  321. CLOCK_MONOTONIC.
  322. * src/MultiUrlRequestInfo.cc
  323. * src/TimerA2.cc
  324. * src/TimerA2.h
  325. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Removed redundant method call for DownloadEngine.
  327. * src/DownloadCommand.cc
  328. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Fixed the bug that hash check hangs when aria2.pause is issued
  330. while aria2 is checking piece hashes. Fixed the bug that the
  331. download is paused after file allocation completion even if
  332. aria2.pause is issued during file allocation.
  333. * src/CheckIntegrityCommand.cc
  334. * src/FileAllocationCommand.cc
  335. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. Added nsl to search-libs for getaddrinfo on opensolaris
  337. * configure.ac
  338. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Fixed compile error on opensolaris
  340. * configure.ac
  341. * src/Logger.h
  342. * src/GZipEncoder.h
  343. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  344. Added aria2.pauseAll, aria2.forcePauseAll and aria2.unpauseAll
  345. XML-RPC method.
  346. * doc/aria2c.1.txt
  347. * src/XmlRpcMethodFactory.cc
  348. * src/XmlRpcMethodImpl.cc
  349. * src/XmlRpcMethodImpl.h
  350. * test/XmlRpcMethodTest.cc
  351. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Added aria2.forcePause XML-RPC command.
  353. * src/XmlRpcMethodFactory.cc
  354. * src/XmlRpcMethodImpl.cc
  355. * src/XmlRpcMethodImpl.h
  356. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Use global::wallclock
  358. * src/DHTBucket.cc
  359. * src/DHTMessageTrackerEntry.cc
  360. * src/DHTMessageTrackerEntry.h
  361. * src/DefaultBtInteractive.cc
  362. * src/Peer.cc
  363. * src/PeerAbstractCommand.cc
  364. * src/PeerStat.h
  365. * src/RequestSlot.h
  366. * src/TimeBasedCommand.cc
  367. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and
  369. usable to prevent from aria2 from being affected by system time
  370. change.
  371. 2010-04-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. Added aria2.pause and aria2.unpause XML-RPC method. aria2.pause
  373. pauses the download denoted by gid. gid is of type string. The
  374. status of paused download becomes "paused" and the download is
  375. placed on the first position of waiting queue. As long as the
  376. status is "paused", the download is not started. To change status
  377. to "waiting", use aria2.unpause method. This method returns GID of
  378. paused download. aria2.unpause changes the status of the download
  379. denoted by gid from "paused" to "waiting". This makes the download
  380. eligible to restart. gid is of type string. This method returns
  381. GID of unpaused download.
  382. * doc/aria2c.1.txt
  383. * src/DownloadContext.cc
  384. * src/FileEntry.cc
  385. * src/OptionHandlerFactory.cc
  386. * src/RequestGroup.cc
  387. * src/RequestGroup.h
  388. * src/RequestGroupMan.cc
  389. * src/XmlRpcMethodFactory.cc
  390. * src/XmlRpcMethodImpl.cc
  391. * src/XmlRpcMethodImpl.h
  392. * src/prefs.cc
  393. * src/prefs.h
  394. * src/usage_text.h
  395. 2010-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Added --save-session=FILE option. This option saves
  397. error/unfinished downloads to FILE on exit. You can pass this
  398. output file to aria2c with -i option on restart. Please note that
  399. downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC
  400. method are not saved.
  401. * src/BtPostDownloadHandler.cc
  402. * src/DownloadResult.h
  403. * src/Makefile.am
  404. * src/MetadataInfo.cc
  405. * src/MetadataInfo.h
  406. * src/Metalink2RequestGroup.cc
  407. * src/MetalinkPostDownloadHandler.cc
  408. * src/MultiUrlRequestInfo.cc
  409. * src/OptionHandlerFactory.cc
  410. * src/RequestGroup.cc
  411. * src/RequestGroup.h
  412. * src/SessionSerializer.cc
  413. * src/SessionSerializer.h
  414. * src/UTMetadataPostDownloadHandler.cc
  415. * src/download_helper.cc
  416. * src/download_helper.h
  417. * src/prefs.cc
  418. * src/prefs.h
  419. * src/usage_text.h
  420. * test/Makefile.am
  421. * test/SessionSerializerTest.cc
  422. * test/XmlRpcMethodTest.cc
  423. * test/serialize_session.meta4
  424. 2010-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  425. Fixed the bug that FTP data connection is not established via
  426. proxy when --ftp-proxy is defined and --ftp-pasv=true and
  427. --proxy-method=tunnel.
  428. * src/AbstractCommand.cc
  429. * src/AbstractCommand.h
  430. * src/FtpNegotiationCommand.cc
  431. * src/FtpNegotiationCommand.h
  432. * src/InitiateConnectionCommand.cc
  433. 2010-04-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Updated po templates.
  435. * po/aria2.pot
  436. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Bump up version number to 1.9.1
  438. * configure.ac
  439. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  440. Added shutdown and forceShutdown to aria2rpc
  441. * doc/xmlrpc/aria2rpc
  442. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. Changed error message.
  444. * src/XmlRpcMethod.cc
  445. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Added bt-tracker-timeout, bt-tracker-connect-timeout,
  447. always-resume, max-resume-failure-tries and http-accept-gzip to -i
  448. list options.
  449. * doc/aria2c.1.txt
  450. * doc/xmlrpc/aria2rpc
  451. * src/download_helper.cc
  452. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  453. Fixed the bug that web-seed URI is not percent-encoded.
  454. * src/a2functional.h
  455. * src/bittorrent_helper.cc
  456. * test/BittorrentHelperTest.cc
  457. * test/url-list-multiFile.torrent
  458. * test/url-list-singleFileEndsWithSlash.torrent
  459. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
  461. These methods, as their name implies, shutdown aria2. These
  462. methods are useful for Windows because it lacks signal mechanism.
  463. * doc/aria2c.1.txt
  464. * src/TimedHaltCommand.cc
  465. * src/XmlRpcMethodFactory.cc
  466. * src/XmlRpcMethodImpl.cc
  467. * src/XmlRpcMethodImpl.h
  468. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Added forceHalt argument to TimedHaltCommand.
  470. Added requestForceHalt() to DownloadEngine.
  471. * src/DownloadEngine.cc
  472. * src/DownloadEngine.h
  473. * src/TimedHaltCommand.cc
  474. * src/TimedHaltCommand.h
  475. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  476. Possible fix for chunked encoding with Content-Length.
  477. * src/HttpResponseCommand.cc
  478. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. Don't send "Accept: default, gzip" by default. This is because
  480. some server responds with "Content-Encoding: gzip" for files which
  481. itself is gzipped file and aria2 inflates them. This is a problem
  482. if user don't want to inflate the file. Apparently this is server
  483. configuration error, but I cannot do anything about this. So turn
  484. this off. Added --http-accept-gzip option. If true is given to
  485. this option, aria2 sends 'Accept: deflate, gzip' request header
  486. and inflates response if remote server responds with
  487. 'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
  488. indicates we removed extension tgz hack in order not to inflate
  489. files with tgz extensions.
  490. * doc/aria2c.1.txt
  491. * src/HttpRequest.cc
  492. * src/HttpRequest.h
  493. * src/HttpRequestCommand.cc
  494. * src/HttpResponseCommand.cc
  495. * src/OptionHandlerFactory.cc
  496. * src/prefs.cc
  497. * src/prefs.h
  498. * src/usage_text.h
  499. * test/HttpRequestTest.cc
  500. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Made aria2 not send
  502. "application/metalink4+xml,application/metalink+xml" in Accept
  503. header for web-seeding URIs and tracker request.
  504. * src/Metalink2RequestGroup.cc
  505. * src/TrackerWatcherCommand.cc
  506. * src/download_helper.cc
  507. * src/util.cc
  508. * src/util.h
  509. 2010-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Added download_helper.{cc,h} to SRCS
  511. * src/Makefile.am
  512. * test/Makefile.am
  513. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Added --dht-message-timeout option.
  515. * doc/aria2c.1.txt
  516. * src/DHTConstants.h
  517. * src/DHTMessageDispatcherImpl.cc
  518. * src/DHTMessageDispatcherImpl.h
  519. * src/DHTMessageTracker.cc
  520. * src/DHTMessageTracker.h
  521. * src/DHTReplaceNodeTask.h
  522. * src/DHTSetup.cc
  523. * src/DHTTaskFactoryImpl.cc
  524. * src/DHTTaskFactoryImpl.h
  525. * src/OptionHandlerFactory.cc
  526. * src/prefs.cc
  527. * src/prefs.h
  528. * src/usage_text.h
  529. * test/DHTMessageTrackerTest.cc
  530. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Added --bt-tracker-connect-timeout and --bt-tracker-timeout
  532. option.
  533. * doc/aria2c.1.txt
  534. * src/OptionHandlerFactory.cc
  535. * src/TrackerWatcherCommand.cc
  536. * src/prefs.cc
  537. * src/prefs.h
  538. * src/usage_text.h
  539. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  540. Documented that specifying --seed-time=0 disables seeding after
  541. download completed.
  542. * doc/aria2c.1.txt
  543. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  544. Code cleanup
  545. * src/BtSetup.cc
  546. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  547. Drop connection if same Peer ID has been already seen.
  548. * src/DefaultBtInteractive.cc
  549. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Fixed the bug that waiting download unintentionally starts when
  551. URIs are added to it using aria2.changeUri XML-RPC method. This
  552. also fixes the bug that causes segmentation fault when adding URIs
  553. to waiting download, which is a regression introduced by the
  554. previous change made to src/XmlRpcMethodImpl.cc
  555. * src/XmlRpcMethodImpl.cc
  556. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  557. Fixed compile error with g++-4.4 on FreeBSD.
  558. * src/util.h
  559. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Fixed the bug that added URI using aria2.changeUri XML-RPC method
  561. is not used immediately if there is no URIs remaining before
  562. calling aria2.changeUri and the number of connection is less than
  563. the value in -s(or -C for Metalink downloads).
  564. * src/XmlRpcMethodImpl.cc
  565. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Documented --always-resume and --max-resume-failure-tries option
  567. and exit status 8 in man page. Fixed typo.
  568. * doc/aria2c.1.txt
  569. * src/OptionHandlerFactory.cc
  570. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Added --always-resume and --max-resume-failure-tries option. If
  572. --always-resume=false is given, when all given URIs does not
  573. support resume or aria2 encounters N URIs which does not support
  574. resume
  575. (N is the value specified using --max-resume-failure-tries
  576. option), aria2 download file from scratch. The default behavior
  577. is --always-resume=true, which means if all URIs do not support
  578. resume, download fails. I think this is OK because user normally
  579. don't like to see that partially downloaded file is
  580. overwritten(this is particularly true if file size is big). This
  581. option is useful when aria2 is used as download backend and
  582. graceful falling back to overwritten behavior is preferable.
  583. Added exit status value 8, which means download failed because
  584. server did not support resume.
  585. * src/AbstractCommand.cc
  586. * src/DefaultPieceStorage.cc
  587. * src/DownloadCommand.cc
  588. * src/DownloadResultCode.h
  589. * src/FileEntry.h
  590. * src/FtpNegotiationCommand.cc
  591. * src/HttpResponse.cc
  592. * src/HttpResponseCommand.cc
  593. * src/OptionHandlerFactory.cc
  594. * src/RequestGroup.cc
  595. * src/RequestGroup.h
  596. * src/SegmentMan.cc
  597. * src/SegmentMan.h
  598. * src/prefs.cc
  599. * src/prefs.h
  600. * src/usage_text.h
  601. * test/DefaultPieceStorageTest.cc
  602. * test/SegmentManTest.cc
  603. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Added --remove-control-file option to -i list options.
  605. * doc/aria2c.1.txt
  606. * doc/xmlrpc/aria2rpc
  607. * src/download_helper.cc
  608. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  609. Added --remove-control-file option. This option removes control
  610. file(*.aria2 file) before download. Using with
  611. --allow-overwrite=true, download always starts from scratch. This
  612. will be useful for users behind proxy server which disables
  613. resume. For such proxy user, -C1 is also recommended for Metalink
  614. downloads to avoid establishing unnecessary connections.
  615. * doc/aria2c.1.txt
  616. * src/OptionHandlerFactory.cc
  617. * src/RequestGroup.cc
  618. * src/prefs.cc
  619. * src/prefs.h
  620. * src/usage_text.h
  621. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
  623. size of array at compile time.
  624. * src/array_fun.h
  625. * test/BitfieldManTest.cc
  626. * test/BtPortMessageTest.cc
  627. * test/DHTRoutingTableDeserializerTest.cc
  628. * test/DHTRoutingTableSerializerTest.cc
  629. * test/DownloadHelperTest.cc
  630. * test/LongestSequencePieceSelectorTest.cc
  631. * test/MultiDiskAdaptorTest.cc
  632. * test/OptionParserTest.cc
  633. * test/PriorityPieceSelectorTest.cc
  634. * test/array_funTest.cc
  635. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Added vbegin() and vend() for fixed sized array.
  637. * src/DownloadHandlerConstants.cc
  638. * src/FeatureConfig.cc
  639. * src/OptionHandlerFactory.cc
  640. * src/ServerStat.cc
  641. * src/TimeA2.cc
  642. * src/XmlRpcMethod.cc
  643. * src/array_fun.h
  644. * src/download_helper.cc
  645. * src/messageDigest.cc
  646. * src/util.cc
  647. * test/BittorrentHelperTest.cc
  648. * test/DHTRoutingTableDeserializerTest.cc
  649. * test/DHTRoutingTableSerializerTest.cc
  650. * test/DefaultBtAnnounceTest.cc
  651. * test/DefaultBtProgressInfoFileTest.cc
  652. * test/DownloadContextTest.cc
  653. * test/DownloadHelperTest.cc
  654. * test/FeatureConfigTest.cc
  655. * test/FeedbackURISelectorTest.cc
  656. * test/HttpRequestTest.cc
  657. * test/InOrderURISelectorTest.cc
  658. * test/MSEHandshakeTest.cc
  659. * test/MultiDiskAdaptorTest.cc
  660. * test/MultiFileAllocationIteratorTest.cc
  661. * test/PriorityPieceSelectorTest.cc
  662. * test/RequestGroupManTest.cc
  663. * test/UtilTest.cc
  664. * test/XmlRpcMethodTest.cc
  665. * test/a2algoTest.cc
  666. * test/array_funTest.cc
  667. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Simplified code using lastByteMask
  669. * src/BitfieldMan.cc
  670. * src/PieceStatMan.cc
  671. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Rewritten lastByteMask
  673. * src/bitfield.h
  674. 2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Redefined the maximum length of buffer used for HTTP header.
  676. * src/HttpHeaderProcessor.cc
  677. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Code cleanup
  679. * src/SleepCommand.cc
  680. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  681. Do exact match if IP address is specified in --no-proxy.
  682. * src/AbstractCommand.cc
  683. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Fixed the bug that socket is added to EventPoll object twice. This
  685. is because derived class FtpFinishDownloadCommand adds socket to
  686. EventPoll object while base class AbstractCommand does that
  687. already.
  688. * src/FtpFinishDownloadCommand.cc
  689. * src/FtpFinishDownloadCommand.h
  690. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Defined gid_t as int64_t.
  692. * src/BtDependency.cc
  693. * src/BtStopDownloadCommand.cc
  694. * src/FtpNegotiationCommand.cc
  695. * src/HttpResponseCommand.cc
  696. * src/RequestGroup.cc
  697. * src/RequestGroup.h
  698. * src/RequestGroupMan.cc
  699. * src/TrackerWatcherCommand.cc
  700. * src/XmlRpcMethodImpl.cc
  701. * src/message.h
  702. * test/XmlRpcMethodTest.cc
  703. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  705. translatable texts because it is used in log and debugging
  706. purpose.
  707. * src/AbstractCommand.cc
  708. * src/ActivePeerConnectionCommand.cc
  709. * src/BtPieceMessage.cc
  710. * src/CUIDCounter.h
  711. * src/CheckIntegrityCommand.cc
  712. * src/CheckIntegrityDispatcherCommand.cc
  713. * src/Command.h
  714. * src/CreateRequestCommand.cc
  715. * src/DHTEntryPointNameResolveCommand.cc
  716. * src/DefaultBtInteractive.cc
  717. * src/DefaultBtMessageDispatcher.cc
  718. * src/DownloadCommand.cc
  719. * src/FileAllocationCommand.cc
  720. * src/FileAllocationDispatcherCommand.cc
  721. * src/FtpConnection.cc
  722. * src/FtpInitiateConnectionCommand.cc
  723. * src/FtpNegotiationCommand.cc
  724. * src/HttpConnection.cc
  725. * src/HttpInitiateConnectionCommand.cc
  726. * src/HttpListenCommand.cc
  727. * src/HttpResponse.cc
  728. * src/HttpServerBodyCommand.cc
  729. * src/HttpServerCommand.cc
  730. * src/HttpServerResponseCommand.cc
  731. * src/InitiateConnectionCommand.cc
  732. * src/InitiatorMSEHandshakeCommand.cc
  733. * src/MSEHandshake.cc
  734. * src/PeerAbstractCommand.cc
  735. * src/PeerConnection.cc
  736. * src/PeerInitiateConnectionCommand.cc
  737. * src/PeerInteractionCommand.cc
  738. * src/PeerListenCommand.cc
  739. * src/PeerReceiveHandshakeCommand.cc
  740. * src/SegmentMan.cc
  741. * src/SimpleBtMessage.cc
  742. * src/TrackerWatcherCommand.cc
  743. * src/message.h
  744. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  745. Use gid_t type for gid.
  746. * src/BtRegistry.cc
  747. * src/BtRegistry.h
  748. * src/DownloadResult.h
  749. * src/RequestGroup.cc
  750. * src/RequestGroup.h
  751. * src/RequestGroupMan.cc
  752. * src/RequestGroupMan.h
  753. * src/XmlRpcMethodImpl.cc
  754. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Use cuid_t type for cuid.
  756. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Added v key in DHT message. aria2's DHT version is independent of
  758. the package version and we defined it as 1 at the moment. It is
  759. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  760. scheme is "A2"+2bytes DHT version number in network byte order.
  761. * src/DHTAbstractMessage.cc
  762. * src/DHTConstants.h
  763. * src/DHTMessage.cc
  764. * src/DHTMessage.h
  765. * src/DHTMessageFactoryImpl.cc
  766. * src/DHTQueryMessage.cc
  767. * src/DHTResponseMessage.cc
  768. * src/util.h
  769. * test/DHTAnnouncePeerMessageTest.cc
  770. * test/DHTAnnouncePeerReplyMessageTest.cc
  771. * test/DHTFindNodeMessageTest.cc
  772. * test/DHTFindNodeReplyMessageTest.cc
  773. * test/DHTGetPeersMessageTest.cc
  774. * test/DHTGetPeersReplyMessageTest.cc
  775. * test/DHTPingMessageTest.cc
  776. * test/DHTPingReplyMessageTest.cc
  777. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  779. method response is integer, while manual says it is string. When
  780. peer's port is not listening port, set '0' to port in
  781. aria2.getPeers response.
  782. * src/XmlRpcMethodImpl.cc
  783. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Lines starting "#" in -i list are treated as comments.
  785. Example:
  786. # this is comment
  787. http://example.org/file
  788. http://example.org/file2
  789. dir=/tmp
  790. # another comment
  791. out=myfile
  792. * doc/aria2c.1.txt
  793. * src/UriListParser.cc
  794. * test/filelist1.txt
  795. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Accept IPv4 network address with CIDR block in --no-proxy option
  797. and no_proxy environment variable. Current implementation does
  798. not resolve hostname in URI to compare network address. So it is
  799. only effecive if URI has numeric IP addresses.
  800. * doc/aria2c.1.txt
  801. * src/AbstractCommand.cc
  802. * src/OptionHandlerFactory.cc
  803. * src/bitfield.h
  804. * src/usage_text.h
  805. * src/util.cc
  806. * src/util.h
  807. * test/UtilTest.cc
  808. * test/bitfieldTest.cc
  809. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  810. Reduced interval for metadatagetmode to quickly gather metadata.
  811. * src/BtSetup.cc
  812. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Release 1.9.0
  814. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Updated po templates.
  816. * po/aria2.pot
  817. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Updated doc.
  819. * doc/aria2c.1.txt
  820. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Documented about Metalink4 and LPD in README
  822. * RADME
  823. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Few adjustment for timeouts in DHT. DHT message timeout is changed
  825. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  826. it adds another 5 seconds in each retry.
  827. * src/DHTConstants.h
  828. * src/DHTGetPeersCommand.cc
  829. * src/DHTGetPeersCommand.h
  830. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Changed log level from error to info for DHT message send error.
  832. * src/DHTMessageDispatcherImpl.cc
  833. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Inspect all xt in magnet to find urn:btih.
  835. * src/bittorrent_helper.cc
  836. * test/BittorrentHelperTest.cc
  837. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Use global option for DHTSetup.
  839. * src/DHTSetup.cc
  840. * src/DHTSetup.h
  841. * src/RequestGroup.cc
  842. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Added bt-enable-lpt, reuse-uri
  844. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  845. options.
  846. * doc/aria2c.1.txt
  847. * doc/xmlrpc/aria2rpc
  848. * src/download_helper.cc
  849. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  851. * src/BtSetup.cc
  852. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Resurrected --http-proxy-user and --http-proxy-passwd option.
  854. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  855. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  856. * doc/aria2c.1.txt
  857. * src/OptionHandlerFactory.cc
  858. * src/OptionHandlerImpl.h
  859. * src/prefs.cc
  860. * src/prefs.h
  861. * src/usage_text.h
  862. * test/OptionHandlerTest.cc
  863. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Updated Russian and Simplified Chinese translation. Thanks to all
  865. translators.
  866. * po/ru.po
  867. * po/zh_CN.po
  868. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Updated po templates.
  870. * po/aria2.pot
  871. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. For LPD sockets, bind IN_ADDRANY because binding multicast address
  873. fails under Windows.
  874. * src/LpdMessageReceiver.cc
  875. * test/LpdMessageDispatcherTest.cc
  876. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  877. Fixed the bug that error message is not propagated to Exception.
  878. * src/SocketCore.cc
  879. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Documented --bt-lpd-interface option in man page.
  881. * doc/aria2c.1.txt
  882. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Bump up version number to 1.9.0
  884. * configure.ac
  885. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Fixed the bug that FillRequestGroupCommand is not invoked when
  887. RequestGroupMan::createInitialCommand() creates no Command object.
  888. * src/FillRequestGroupCommand.cc
  889. * src/RequestGroupMan.cc
  890. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Added debug logs.
  892. * src/FileEntry.cc
  893. * src/SegmentMan.cc
  894. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Fixed unit test error with mingw32 build.
  896. * test/LpdMessageReceiverTest.cc
  897. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Updated automake-1.11.1
  899. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  900. Fixed compile error and unit test error without openssl and
  901. gnutls.
  902. * src/MetalinkParserController.cc
  903. * test/MetalinkProcessorTest.cc
  904. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  905. Fixed unitest fails if openssl doesn't support sha-256.
  906. * src/MetalinkParserStateV4Impl.cc
  907. * test/MetalinkProcessorTest.cc
  908. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Wait until message arrives(again)
  910. * test/LpdMessageReceiverTest.cc
  911. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. Added missing wallclock.h to SRCS.
  913. * src/Makefile.am
  914. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  915. Fixed compile error with --disable-bittorrent
  916. * test/Metalink2RequestGroupTest.cc
  917. * test/MetalinkParserControllerTest.cc
  918. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. Added --reuse-uri option. This option has existed quite long, but
  920. been hidden.
  921. * doc/aria2c.1.txt
  922. * src/OptionHandlerFactory.cc
  923. * src/usage_text.h
  924. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  925. Ignore filename parameter if it contains directory traversal
  926. directives.
  927. * src/util.cc
  928. * test/UtilTest.cc
  929. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  930. urldecode -> percentDecode
  931. * src/FtpConnection.cc
  932. * src/FtpNegotiationCommand.cc
  933. * src/HttpResponse.cc
  934. * src/Request.cc
  935. * src/magnet.cc
  936. * src/util.cc
  937. * src/util.h
  938. * test/UtilTest.cc
  939. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. urlencode -> percentEncode,
  941. torrentUrlencode -> torrentPercentEncode
  942. * src/BtHandshakeMessage.cc
  943. * src/BtHandshakeMessageValidator.h
  944. * src/DHTMessageFactoryImpl.cc
  945. * src/DefaultBtAnnounce.cc
  946. * src/HandshakeExtensionMessage.cc
  947. * src/HttpRequest.cc
  948. * src/XmlRpcMethodImpl.cc
  949. * src/bittorrent_helper.cc
  950. * src/util.cc
  951. * src/util.h
  952. * test/DHTAnnouncePeerMessageTest.cc
  953. * test/DHTGetPeersMessageTest.cc
  954. * test/DHTGetPeersReplyMessageTest.cc
  955. * test/UTPexExtensionMessageTest.cc
  956. * test/UtilTest.cc
  957. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Fixed the bug that filename is percent encoded where it must be
  959. percent decoded in sendMdtm().
  960. * src/FtpConnection.cc
  961. * test/FtpConnectionTest.cc
  962. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. url -> uri in Request class.
  964. * src/AbstractCommand.cc
  965. * src/AdaptiveURISelector.cc
  966. * src/DefaultBtAnnounce.cc
  967. * src/FeedbackURISelector.cc
  968. * src/FileEntry.cc
  969. * src/FileEntry.h
  970. * src/HttpRequest.h
  971. * src/HttpResponse.cc
  972. * src/InitiateConnectionCommandFactory.cc
  973. * src/Metalink2RequestGroup.cc
  974. * src/OptionHandlerImpl.h
  975. * src/ProtocolDetector.cc
  976. * src/Request.cc
  977. * src/Request.h
  978. * src/XmlRpcMethodImpl.cc
  979. * test/AuthConfigFactoryTest.cc
  980. * test/FtpConnectionTest.cc
  981. * test/HttpRequestTest.cc
  982. * test/HttpResponseTest.cc
  983. * test/RequestTest.cc
  984. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Added getServers XML-RPC method.
  986. * doc/aria2c.1.txt
  987. * src/FileEntry.h
  988. * src/XmlRpcMethodFactory.cc
  989. * src/XmlRpcMethodImpl.cc
  990. * src/XmlRpcMethodImpl.h
  991. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  992. Pool request when download finished.
  993. * src/DownloadCommand.cc
  994. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  996. 1-based.
  997. * doc/aria2c.1.txt
  998. * src/XmlRpcMethodImpl.cc
  999. * test/XmlRpcMethodTest.cc
  1000. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1001. Call RequestGroupMan::requestQueueCheck() when
  1002. max-concurrent-downloads option is changed or new downloads are
  1003. added/inserted into reserved list.
  1004. * src/RequestGroupMan.cc
  1005. * src/XmlRpcMethodImpl.cc
  1006. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Added aria2.forceRemove XML-RPC method.
  1008. * doc/aria2c.1.txt
  1009. * src/XmlRpcMethodFactory.cc
  1010. * src/XmlRpcMethodImpl.cc
  1011. * src/XmlRpcMethodImpl.h
  1012. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Added debug log.
  1014. * src/AbstractCommand.cc
  1015. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. Create CreateRequestCommand to the number of -s/-C when URIs are
  1017. added by XML-RPC.
  1018. * src/RequestGroup.cc
  1019. * src/RequestGroup.h
  1020. * src/XmlRpcMethodImpl.cc
  1021. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Added 'status' key to the response of getUri XML-RPC method.
  1023. * doc/aria2c.1.txt
  1024. * src/XmlRpcMethodImpl.cc
  1025. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Replaced Time::reset() call with assigning of global::wallclock.
  1027. * src/BtLeecherStateChoke.cc
  1028. * src/BtSeederStateChoke.cc
  1029. * src/PeerSessionResource.cc
  1030. * src/RequestSlot.cc
  1031. * src/ServerStat.cc
  1032. * src/SpeedCalc.cc
  1033. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Added changeUri XML-RPC method. This method removes/adds URIs
  1035. dynamically.
  1036. * doc/aria2c.1.txt
  1037. * src/AbstractCommand.cc
  1038. * src/DownloadContext.cc
  1039. * src/DownloadContext.h
  1040. * src/FileEntry.cc
  1041. * src/FileEntry.h
  1042. * src/Request.cc
  1043. * src/Request.h
  1044. * src/RequestGroup.cc
  1045. * src/RequestGroupMan.cc
  1046. * src/XmlRpcMethodFactory.cc
  1047. * src/XmlRpcMethodImpl.cc
  1048. * src/XmlRpcMethodImpl.h
  1049. * test/FileEntryTest.cc
  1050. * test/XmlRpcMethodTest.cc
  1051. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1052. Rewritten copy ctor of RequestSlot to use initialization list.
  1053. * src/RequestSlot.h
  1054. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1055. Added Time global::wallclock to cache "current time" to reduce the
  1056. call gettimeofday(). Global variables are now in namespace global.
  1057. * src/AbstractCommand.cc
  1058. * src/ActivePeerConnectionCommand.cc
  1059. * src/AdaptiveURISelector.cc
  1060. * src/BtLeecherStateChoke.cc
  1061. * src/BtLeecherStateChoke.h
  1062. * src/BtSeederStateChoke.cc
  1063. * src/BtSeederStateChoke.h
  1064. * src/BtStopDownloadCommand.cc
  1065. * src/ConsoleStatCalc.cc
  1066. * src/DHTBucket.cc
  1067. * src/DHTGetPeersCommand.cc
  1068. * src/DHTMessageTrackerEntry.cc
  1069. * src/DHTNode.cc
  1070. * src/DHTPeerAnnounceEntry.cc
  1071. * src/DHTPeerAnnounceStorage.cc
  1072. * src/DHTSetup.cc
  1073. * src/DefaultBtAnnounce.cc
  1074. * src/DefaultBtInteractive.cc
  1075. * src/DefaultBtMessageDispatcher.cc
  1076. * src/DefaultPeerStorage.cc
  1077. * src/DefaultPieceStorage.cc
  1078. * src/DownloadCommand.cc
  1079. * src/DownloadEngine.cc
  1080. * src/FileEntry.cc
  1081. * src/HttpServerBodyCommand.cc
  1082. * src/HttpServerCommand.cc
  1083. * src/HttpServerResponseCommand.cc
  1084. * src/LpdMessageDispatcher.cc
  1085. * src/MultiUrlRequestInfo.cc
  1086. * src/Peer.cc
  1087. * src/Peer.h
  1088. * src/PeerAbstractCommand.cc
  1089. * src/PeerStat.h
  1090. * src/RequestSlot.cc
  1091. * src/RequestSlot.h
  1092. * src/SegmentMan.cc
  1093. * src/ServerStatMan.cc
  1094. * src/SleepCommand.cc
  1095. * src/SpeedCalc.cc
  1096. * src/SpeedCalc.h
  1097. * src/TimeA2.cc
  1098. * src/TimeA2.h
  1099. * src/TimeBasedCommand.cc
  1100. * src/TimeSeedCriteria.h
  1101. * src/UTMetadataRequestTracker.h
  1102. * src/UTPexExtensionMessage.cc
  1103. * src/wallclock.h
  1104. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. Fixed the bug that util::itos(INT64_MIN) fails.
  1106. * src/util.cc
  1107. * src/util.h
  1108. * test/UtilTest.cc
  1109. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. Fixed memory leak in SocketBuffer when _bufq is not empty when
  1111. SocketBuffer is deleted. Added BufEntry constructor and deleted
  1112. static factory functions.
  1113. * src/SocketBuffer.cc
  1114. * src/SocketBuffer.h
  1115. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  1117. queue maintenance is requested by RequestGroup to avoid to call
  1118. the function unnecessarily.
  1119. * src/FillRequestGroupCommand.cc
  1120. * src/RequestGroup.cc
  1121. * src/RequestGroup.h
  1122. * src/RequestGroupMan.cc
  1123. * src/RequestGroupMan.h
  1124. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. Don't use hash for Peer::id. Simple concatenation of ip address
  1126. and port is enough.
  1127. * src/Peer.cc
  1128. * test/PeerTest.cc
  1129. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Enclosed log of DHTMessage::toString() with Logger::info().
  1131. * src/DHTMessageDispatcherImpl.cc
  1132. * src/DHTMessageReceiver.cc
  1133. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. Rewritten util::toHex().
  1135. * src/util.cc
  1136. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Removed SocketBuffer::feedAndSend(). Renamed
  1138. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  1139. * src/FtpConnection.cc
  1140. * src/HttpConnection.cc
  1141. * src/HttpServer.cc
  1142. * src/MSEHandshake.cc
  1143. * src/PeerConnection.cc
  1144. * src/SocketBuffer.cc
  1145. * src/SocketBuffer.h
  1146. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Removed unused PeerConnection::sendMessage(). Updated doc.
  1148. * src/PeerConnection.cc
  1149. * src/PeerConnection.h
  1150. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1151. Reduced copying/std::string instantiation in sending/receiving
  1152. BitTorrent messages.
  1153. * src/BtBitfieldMessage.cc
  1154. * src/BtBitfieldMessage.h
  1155. * src/BtExtendedMessage.cc
  1156. * src/BtExtendedMessage.h
  1157. * src/BtHandshakeMessage.cc
  1158. * src/BtHandshakeMessage.h
  1159. * src/BtKeepAliveMessage.cc
  1160. * src/BtKeepAliveMessage.h
  1161. * src/BtPieceMessage.cc
  1162. * src/BtPieceMessage.h
  1163. * src/BtPortMessage.cc
  1164. * src/BtPortMessage.h
  1165. * src/BtUnchokeMessage.h
  1166. * src/DefaultBtMessageReceiver.cc
  1167. * src/IndexBtMessage.cc
  1168. * src/IndexBtMessage.h
  1169. * src/PeerConnection.cc
  1170. * src/PeerConnection.h
  1171. * src/RangeBtMessage.cc
  1172. * src/RangeBtMessage.h
  1173. * src/SimpleBtMessage.cc
  1174. * src/SimpleBtMessage.h
  1175. * src/SocketBuffer.cc
  1176. * src/SocketBuffer.h
  1177. * src/ZeroBtMessage.cc
  1178. * src/ZeroBtMessage.h
  1179. * test/BtAllowedFastMessageTest.cc
  1180. * test/BtBitfieldMessageTest.cc
  1181. * test/BtCancelMessageTest.cc
  1182. * test/BtChokeMessageTest.cc
  1183. * test/BtExtendedMessageTest.cc
  1184. * test/BtHandshakeMessageTest.cc
  1185. * test/BtHaveAllMessageTest.cc
  1186. * test/BtHaveMessageTest.cc
  1187. * test/BtHaveNoneMessageTest.cc
  1188. * test/BtInterestedMessageTest.cc
  1189. * test/BtKeepAliveMessageTest.cc
  1190. * test/BtNotInterestedMessageTest.cc
  1191. * test/BtPieceMessageTest.cc
  1192. * test/BtPortMessageTest.cc
  1193. * test/BtRejectMessageTest.cc
  1194. * test/BtRequestMessageTest.cc
  1195. * test/BtSuggestPieceMessageTest.cc
  1196. * test/BtUnchokeMessageTest.cc
  1197. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Rewritten SocketBuffer. Old implementation uses single std::string
  1199. to store data and erase sent data, which is costly. New
  1200. implementation uses deque to hold each data to avoid to mutate
  1201. string.
  1202. * src/SocketBuffer.cc
  1203. * src/SocketBuffer.h
  1204. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1205. Removed unused FileEntry::extracted
  1206. * src/FileEntry.cc
  1207. * src/FileEntry.h
  1208. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Wait until data arrives.
  1210. * test/LpdMessageReceiverTest.cc
  1211. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. In Metalink4, if size element contains invalid size, discard whole
  1213. document. Added strict hash value check for metalink3/4.
  1214. * src/MetalinkParserController.cc
  1215. * src/MetalinkParserStateMachine.cc
  1216. * src/MetalinkParserStateMachine.h
  1217. * src/MetalinkParserStateV3Impl.cc
  1218. * src/MetalinkParserStateV4Impl.cc
  1219. * src/util.cc
  1220. * src/util.h
  1221. * test/MetalinkParserControllerTest.cc
  1222. * test/MetalinkProcessorTest.cc
  1223. * test/metalink4.xml
  1224. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Added strict attribute validation for metalink4. When
  1226. specification violation is found, discard the whole document.
  1227. * src/ExpatMetalinkProcessor.cc
  1228. * src/MetalinkParserStateMachine.cc
  1229. * src/MetalinkParserStateMachine.h
  1230. * src/MetalinkParserStateV4Impl.cc
  1231. * src/XML2SAXMetalinkProcessor.cc
  1232. * test/Makefile.am
  1233. * test/MetalinkProcessorTest.cc
  1234. * test/metalink4-attrs.xml: Removed
  1235. * test/metalink4-dirtraversal.xml: Removed
  1236. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Added test for Metaurl transaction.
  1238. * src/MetalinkParserController.cc
  1239. * test/MetalinkParserControllerTest.cc
  1240. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Avoid costly BtMessage::toString() if info level log is not
  1242. required.
  1243. * src/DefaultBtInteractive.cc
  1244. * src/Logger.h
  1245. * src/SimpleBtMessage.cc
  1246. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Reserved vector elements based on profiler results.
  1248. * src/DefaultBtInteractive.cc
  1249. * src/DefaultBtProgressInfoFile.cc
  1250. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1251. Avoid to calculate end() iterator in each loop. std::deque is
  1252. particularly slow. Make sure that recalculate end iterator if
  1253. element is erased during loop.
  1254. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Use vector instead of deque for containers which is used for
  1256. mostly read-only purpose.
  1257. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Fixed typo
  1259. * test/Makefile.am
  1260. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1261. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  1262. * test/Makefile.am
  1263. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1264. Small optimization: In updateTransferStatFor(), don't search peer
  1265. ID twice.
  1266. * src/DefaultPeerStorage.cc
  1267. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Use vector instead of deque for MetalinkEntry and MetalinkResource
  1269. objects.
  1270. * src/Metalink2RequestGroup.cc
  1271. * src/Metalink2RequestGroup.h
  1272. * src/MetalinkEntry.cc
  1273. * src/MetalinkEntry.h
  1274. * src/MetalinkHelper.cc
  1275. * src/MetalinkHelper.h
  1276. * src/Metalinker.cc
  1277. * src/Metalinker.h
  1278. * src/main.cc
  1279. * test/MetalinkEntryTest.cc
  1280. * test/MetalinkHelperTest.cc
  1281. * test/MetalinkProcessorTest.cc
  1282. * test/MetalinkerTest.cc
  1283. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Fixed the bug that grouped FileEntry objects are not used but
  1285. instead all FileEntry objects are used for each metaurl group.
  1286. * src/Metalink2RequestGroup.cc
  1287. * test/Metalink2RequestGroupTest.cc
  1288. * test/metalink4-groupbymetaurl.xml
  1289. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Use vector instead of deque for ChunkChecksum.
  1291. * src/ChunkChecksum.h
  1292. * src/MetalinkParserController.cc
  1293. * src/MetalinkParserController.h
  1294. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1295. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  1296. algorithm in Metalink properly
  1297. * src/MetalinkParserController.cc
  1298. * src/MetalinkParserController.h
  1299. * src/messageDigest.cc
  1300. * src/messageDigest.h
  1301. * test/MetalinkProcessorTest.cc
  1302. * test/metalink4.xml
  1303. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. Replaced null or control characters in file path with '_'. For
  1305. MinGW32 build, additional characters which is not allowed in
  1306. Windows kernel are also replaced. util::detectDirTraversal() now
  1307. returns true if given string contains null or control characters.
  1308. * src/DownloadContext.cc
  1309. * src/DownloadContext.h
  1310. * src/Metalink2RequestGroup.cc
  1311. * src/MetalinkParserController.cc
  1312. * src/bittorrent_helper.cc
  1313. * src/util.cc
  1314. * src/util.h
  1315. * test/UtilTest.cc
  1316. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Discard metalink:file if its name attribute is empty string.
  1318. Removed FileEntry instantiation in
  1319. MetalinkParserController::setFileLengthOfEntry()
  1320. * src/MetalinkParserController.cc
  1321. * src/MetalinkParserStateV3Impl.cc
  1322. * src/MetalinkParserStateV4Impl.cc
  1323. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Discard torrent file if path data in it contains directory
  1325. traversal directives. Discard metalink:file element in Metalink3
  1326. format if its name attribute contains directory traversal
  1327. directives. Ignore name attribute of metalink:signature element
  1328. in Metalink3 format if it contains directory traversal directives.
  1329. * src/MetalinkParserStateV3Impl.cc
  1330. * src/bittorrent_helper.cc
  1331. * src/message.h
  1332. * test/BittorrentHelperTest.cc
  1333. * test/Makefile.am
  1334. * test/MetalinkProcessorTest.cc
  1335. * test/metalink3-dirtraversal.xml
  1336. * test/test.xml
  1337. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1338. Removed useless comment
  1339. * src/MetalinkParserStateV4Impl.cc
  1340. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Supported name attribute of metalink::metaurl element and
  1342. multi-file torrent with Metalink4. Files with same metaurl are
  1343. grouped and downloaded in one RequestGroup.
  1344. * src/BtDependency.cc
  1345. * src/FileEntry.h
  1346. * src/Metalink2RequestGroup.cc
  1347. * src/Metalink2RequestGroup.h
  1348. * src/MetalinkEntry.cc
  1349. * src/MetalinkEntry.h
  1350. * src/MetalinkHelper.cc
  1351. * src/MetalinkHelper.h
  1352. * src/MetalinkMetaurl.cc
  1353. * src/MetalinkMetaurl.h
  1354. * src/MetalinkParserController.cc
  1355. * src/RequestGroup.cc
  1356. * src/RequestGroup.h
  1357. * src/bittorrent_helper.cc
  1358. * test/BittorrentHelperTest.cc
  1359. * test/BtDependencyTest.cc
  1360. * test/MetalinkHelperTest.cc
  1361. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1362. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  1363. * src/MetalinkMetaurl.h
  1364. * src/MetalinkParserController.cc
  1365. * src/MetalinkParserController.h
  1366. * src/MetalinkParserStateMachine.cc
  1367. * src/MetalinkParserStateMachine.h
  1368. * src/MetalinkParserStateV4Impl.cc
  1369. * test/MetalinkProcessorTest.cc
  1370. * test/metalink4-dirtraversal.xml
  1371. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  1373. element.
  1374. * src/Makefile.am
  1375. * src/Metalink2RequestGroup.cc
  1376. * src/MetalinkEntry.cc
  1377. * src/MetalinkEntry.h
  1378. * src/MetalinkMetaurl.cc
  1379. * src/MetalinkMetaurl.h
  1380. * src/MetalinkParserController.cc
  1381. * src/MetalinkParserController.h
  1382. * src/MetalinkParserStateMachine.cc
  1383. * src/MetalinkParserStateMachine.h
  1384. * src/MetalinkParserStateV4Impl.cc
  1385. * src/MetalinkParserStateV4Impl.h
  1386. * test/MetalinkProcessorTest.cc
  1387. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Added Metalink4 support. Currently, name attribute of
  1389. metalink::metaurl is ignored and multi-file torrent cannot be used
  1390. with Metalink4.
  1391. * doc/aria2c.1.txt
  1392. * src/DownloadHandlerConstants.cc
  1393. * src/ExpatMetalinkProcessor.cc
  1394. * src/Makefile.am
  1395. * src/Metalink2RequestGroup.cc
  1396. * src/MetalinkEntry.cc
  1397. * src/MetalinkEntry.h
  1398. * src/MetalinkParserController.cc
  1399. * src/MetalinkParserController.h
  1400. * src/MetalinkParserState.h
  1401. * src/MetalinkParserStateImpl.cc
  1402. * src/MetalinkParserStateImpl.h
  1403. * src/MetalinkParserStateMachine.cc
  1404. * src/MetalinkParserStateMachine.h
  1405. * src/MetalinkParserStateV3Impl.cc
  1406. * src/MetalinkParserStateV3Impl.h
  1407. * src/MetalinkParserStateV4Impl.cc
  1408. * src/MetalinkParserStateV4Impl.h
  1409. * src/MetalinkResource.cc
  1410. * src/MetalinkResource.h
  1411. * src/Metalinker.cc
  1412. * src/RequestGroup.cc
  1413. * src/RequestGroup.h
  1414. * src/XML2SAXMetalinkProcessor.cc
  1415. * src/messageDigest.cc
  1416. * src/util.cc
  1417. * src/util.h
  1418. * test/Makefile.am
  1419. * test/MetalinkEntryTest.cc
  1420. * test/MetalinkParserControllerTest.cc
  1421. * test/MetalinkProcessorTest.cc
  1422. * test/MetalinkerTest.cc
  1423. * test/UtilTest.cc
  1424. * test/metalink4-attrs.xml
  1425. * test/metalink4-dirtraversal.xml
  1426. * test/metalink4.xml
  1427. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Added aiFlags argument to getInterfaceAddress(). Use
  1429. AI_NUMERICHOST to find interface specified using
  1430. --bt-lpd-interface option to avoid time-consuming address lookup.
  1431. * src/BtSetup.cc
  1432. * src/SocketCore.cc
  1433. * src/SocketCore.h
  1434. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  1436. is bad in LpdMessageReceiver.
  1437. * src/LpdMessage.h
  1438. * src/LpdMessageReceiver.cc
  1439. * src/LpdMessageReceiver.h
  1440. * src/LpdReceiveMessageCommand.cc
  1441. * test/LpdMessageReceiverTest.cc
  1442. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Added --bt-lpd-interface option to specify the interface to use
  1444. for Local Peer Discovery. LpdMessageDispatcher object now has its
  1445. own socket. LpdMessageReceiver's socket is binded to multicast
  1446. address to only receive multicast packets.
  1447. * src/BtSetup.cc
  1448. * src/LpdMessageDispatcher.cc
  1449. * src/LpdMessageDispatcher.h
  1450. * src/LpdMessageReceiver.cc
  1451. * src/LpdMessageReceiver.h
  1452. * src/LpdReceiveMessageCommand.cc
  1453. * src/LpdReceiveMessageCommand.h
  1454. * src/OptionHandlerFactory.cc
  1455. * src/SocketCore.cc
  1456. * src/SocketCore.h
  1457. * src/prefs.cc
  1458. * src/prefs.h
  1459. * src/usage_text.h
  1460. * test/LpdMessageDispatcherTest.cc
  1461. * test/LpdMessageReceiverTest.cc
  1462. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Put the portion of code to get interface addresses in
  1464. SocketCore::bindAddress() into newly added getInterfaceAddress().
  1465. * src/SocketCore.cc
  1466. * src/SocketCore.h
  1467. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1468. Rewritten util::parseInt() and parseUInt()
  1469. * src/util.cc
  1470. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1471. Fixed compile error with mingw32 cross compiler. Defined
  1472. a2_sockopt_t as void* for the target systems other than mingw32.
  1473. * src/SocketCore.cc
  1474. * src/a2netcompat.h
  1475. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1476. Removed 'always true' condition
  1477. * src/util.cc
  1478. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Documented --bt-enable-lpd option in man page.
  1480. * doc/aria2c.1.txt
  1481. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Added Local Peer Discovery. It is disabled by default. Use
  1483. --bt-enable-lpd to enable the function.
  1484. * src/BtConstants.h
  1485. * src/BtSetup.cc
  1486. * src/LpdDispatchMessageCommand.cc
  1487. * src/LpdDispatchMessageCommand.h
  1488. * src/LpdMessage.h
  1489. * src/LpdMessageDispatcher.cc
  1490. * src/LpdMessageDispatcher.h
  1491. * src/LpdMessageReceiver.cc
  1492. * src/LpdMessageReceiver.h
  1493. * src/LpdReceiveMessageCommand.cc
  1494. * src/LpdReceiveMessageCommand.h
  1495. * src/Makefile.am
  1496. * src/OptionHandlerFactory.cc
  1497. * src/Peer.cc
  1498. * src/Peer.h
  1499. * src/PeerInteractionCommand.cc
  1500. * src/SocketCore.cc
  1501. * src/SocketCore.h
  1502. * src/prefs.cc
  1503. * src/prefs.h
  1504. * src/usage_text.h
  1505. * src/util.cc
  1506. * src/util.h
  1507. * test/LpdMessageDispatcherTest.cc
  1508. * test/LpdMessageReceiverTest.cc
  1509. * test/Makefile.am
  1510. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. User-defined custom request headers specified by --header option
  1512. now override builtin headers if they have same name.
  1513. * src/HttpRequest.cc
  1514. * src/HttpRequest.h
  1515. * test/HttpRequestTest.cc
  1516. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Rewirtten util::isNumber()
  1518. * src/util.cc
  1519. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  1521. because without it localized error messages are not printed
  1522. correctly.
  1523. * src/Platform.cc
  1524. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1525. Added unit tests for util::getContentDispositionFilename() from
  1526. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  1527. tests are passed.
  1528. * src/util.cc
  1529. * test/UtilTest.cc
  1530. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1531. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  1532. util.cc
  1533. * src/Platform.cc
  1534. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1535. Support RFC2231 "Parameter Value Character Set and Language
  1536. Information" in Content-Disposition header.
  1537. * src/HttpResponse.cc
  1538. * src/util.cc
  1539. * src/util.h
  1540. * test/UtilTest.cc
  1541. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Print CXXFLAGS
  1543. * configure.ac
  1544. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Small optimization for A2_WOULDBLOCK(e)
  1546. * src/SocketCore.cc
  1547. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1548. Removed test file
  1549. * test/CookieStorageTest.cc
  1550. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Check both EAGAIN and EWOULDBLOCK
  1552. * src/SocketCore.cc
  1553. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1554. Removed ret == 0 checking for SSL_read(), SSL_write() and
  1555. SSL_peek() because the checks are done in the caller. In
  1556. SocketBuffer::send(), throw exception if nothing could be written
  1557. and socket error was not EWOULDBLOCK
  1558. * src/SocketBuffer.cc
  1559. * src/SocketCore.cc
  1560. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. Fixed error code handling so that it can handle Winsock2 error
  1562. code.
  1563. * src/SocketCore.cc
  1564. * src/SocketCore.h
  1565. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1566. Bump up version number to 1.9.0a
  1567. * configure.ac
  1568. * doc/aria2c.1.txt
  1569. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1570. Fixed the bug that aria2 doesn't handle return value if error
  1571. occurred before download begins.
  1572. * src/MultiUrlRequestInfo.cc
  1573. * src/main.cc
  1574. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Removed SegmentManFactory class.
  1576. * src/AbstractSegmentManFactory.h
  1577. * src/DefaultSegmentManFactory.cc
  1578. * src/DefaultSegmentManFactory.h
  1579. * src/Makefile.am
  1580. * src/RequestGroup.cc
  1581. * src/RequestGroup.h
  1582. * src/SegmentManFactory.h
  1583. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Destroyed digest context after getting calculated hash.
  1585. * src/Piece.cc
  1586. * src/Piece.h
  1587. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Removed BitfieldManFactory class.
  1589. * src/BitfieldManFactory.cc
  1590. * src/BitfieldManFactory.h
  1591. * src/DefaultPieceStorage.cc
  1592. * src/Makefile.am
  1593. * src/PeerSessionResource.cc
  1594. * src/Piece.cc
  1595. * src/main.cc
  1596. * test/DefaultPieceStorageTest.cc
  1597. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Removed unused methods from BitfieldMan class. Moved
  1599. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  1600. class.
  1601. * src/BitfieldMan.cc
  1602. * src/BitfieldMan.h
  1603. * src/BitfieldManFactory.cc
  1604. * src/BitfieldManFactory.h
  1605. * src/bitfield.h
  1606. * src/main.cc
  1607. * test/BitfieldManTest.cc
  1608. * test/DefaultPieceStorageTest.cc
  1609. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Moved getFirstNMissingIndex to bitfield.h and made it return the
  1611. number of appended indexes.
  1612. * src/BitfieldMan.cc
  1613. * src/BitfieldMan.h
  1614. * src/Piece.cc
  1615. * src/Piece.h
  1616. * src/bitfield.h
  1617. * test/BitfieldManTest.cc
  1618. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Added more tests.
  1620. * test/BitfieldManTest.cc
  1621. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  1623. unused block indexes at once instead of calling
  1624. getFirstMissingUnusedIndex() multiple times. Made use of it in
  1625. Piece class and DefaultBtRequestFactory class via Piece class.
  1626. * src/BitfieldMan.cc
  1627. * src/BitfieldMan.h
  1628. * src/DefaultBtRequestFactory.cc
  1629. * src/Piece.cc
  1630. * src/Piece.h
  1631. * test/BitfieldManTest.cc
  1632. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1633. Use std::make_pair(...)
  1634. * src/DHTMessageTracker.cc
  1635. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Use std::make_pair(...)
  1637. * src/bittorrent_helper.cc
  1638. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. urlencode(removeFragment(...)) in parseUrl(...)
  1640. * src/Request.cc
  1641. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1642. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  1643. * src/AbstractCommand.cc
  1644. * src/AdaptiveURISelector.cc
  1645. * src/BtPieceMessage.cc
  1646. * src/BtPortMessage.cc
  1647. * src/CreateRequestCommand.cc
  1648. * src/DHTAbstractNodeLookupTask.cc
  1649. * src/DHTBucket.cc
  1650. * src/DHTGetPeersCommand.cc
  1651. * src/DHTMessageDispatcherImpl.cc
  1652. * src/DHTMessageFactoryImpl.cc
  1653. * src/DHTMessageTracker.cc
  1654. * src/DHTPeerAnnounceStorage.cc
  1655. * src/DHTRoutingTable.cc
  1656. * src/DHTSetup.cc
  1657. * src/DefaultBtAnnounce.cc
  1658. * src/DefaultBtInteractive.cc
  1659. * src/DefaultBtMessageDispatcher.cc
  1660. * src/DefaultBtMessageReceiver.cc
  1661. * src/DefaultBtProgressInfoFile.cc
  1662. * src/DefaultBtRequestFactory.cc
  1663. * src/DefaultPeerStorage.cc
  1664. * src/DefaultPieceStorage.cc
  1665. * src/DownloadCommand.cc
  1666. * src/DownloadEngine.cc
  1667. * src/EpollEventPoll.cc
  1668. * src/FileAllocationCommand.cc
  1669. * src/FileEntry.cc
  1670. * src/FtpNegotiationCommand.cc
  1671. * src/HandshakeExtensionMessage.cc
  1672. * src/HttpListenCommand.cc
  1673. * src/HttpServer.cc
  1674. * src/HttpSkipResponseCommand.cc
  1675. * src/IteratableChunkChecksumValidator.cc
  1676. * src/Logger.h
  1677. * src/MSEHandshake.cc
  1678. * src/MetalinkPostDownloadHandler.cc
  1679. * src/MultiDiskAdaptor.cc
  1680. * src/PeerAbstractCommand.cc
  1681. * src/PeerConnection.cc
  1682. * src/PeerListenCommand.cc
  1683. * src/PeerReceiveHandshakeCommand.cc
  1684. * src/RequestGroup.cc
  1685. * src/RequestGroupMan.cc
  1686. * src/SegmentMan.cc
  1687. * src/SelectEventPoll.cc
  1688. * src/ServerStat.cc
  1689. * src/SimpleBtMessage.cc
  1690. * src/SocketCore.cc
  1691. * src/TrackerWatcherCommand.cc
  1692. * src/UTMetadataDataExtensionMessage.cc
  1693. * src/UTMetadataRequestFactory.cc
  1694. * src/UTMetadataRequestTracker.cc
  1695. * src/XmlRpcMethod.cc
  1696. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1697. Changed log level from debug to info
  1698. * src/BtDependency.cc
  1699. * src/BtPostDownloadHandler.cc
  1700. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Removed unused PeerSessionResource::_latency.
  1702. * src/BtConstants.h
  1703. * src/BtPieceMessage.cc
  1704. * src/Peer.cc
  1705. * src/Peer.h
  1706. * src/PeerSessionResource.cc
  1707. * src/PeerSessionResource.h
  1708. * test/PeerSessionResourceTest.cc
  1709. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1710. Fixed the bug that --file-allocation=falloc doesn't work with
  1711. single file download.
  1712. * src/AbstractSingleDiskAdaptor.cc
  1713. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Release 1.8.2
  1715. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1716. Added Portuguese translation. Updated Ukrainian and Spanish
  1717. translation. Thanks to all translators.
  1718. * po/LINGUAS
  1719. * po/es.po
  1720. * po/pt.po
  1721. * po/uk.po
  1722. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1723. Remove fragment from redirected URI.
  1724. * src/Request.cc
  1725. * test/RequestTest.cc
  1726. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Updated po templates.
  1728. * po/aria2.pot
  1729. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Drop legacy ifdef for ares support and code cleanup.
  1731. * src/AsyncNameResolver.cc
  1732. * src/AsyncNameResolver.h
  1733. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Call ares_library_init and ares_library_cleanup if they are
  1735. available. Some code cleanups.
  1736. * src/Platform.cc
  1737. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Call ares_process_fd() each time after epoll to handle timeout.
  1739. * src/EpollEventPoll.cc
  1740. * src/EpollEventPoll.h
  1741. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1742. Suppressed type-cast compiler warning
  1743. * src/CookieStorage.cc
  1744. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1745. Fixed compile error on Mac OS X.
  1746. * src/CookieStorage.h
  1747. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. Removed cookietest.txt from Makefile.am
  1749. * test/Makefile.am
  1750. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1751. Updated version number in man page.
  1752. * doc/aria2c.1.txt
  1753. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1754. Rewritten help message for --allow-overwrite option.
  1755. * doc/aria2c.1.txt
  1756. * src/usage_text.h
  1757. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Added bittorrent key to the response of tellStatus XML-RPC method.
  1759. The associated value of the key is a struct and contains data
  1760. retrieved from .torrent file, such as name, announce-list,
  1761. comment, etc.
  1762. * doc/aria2c.1.txt
  1763. * src/XmlRpcMethodImpl.cc
  1764. * src/XmlRpcMethodImpl.h
  1765. * test/XmlRpcMethodTest.cc
  1766. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1767. Removed parse(std::istream&) and parse(const std::string&) from
  1768. CookieParser.
  1769. * src/CookieParser.cc
  1770. * src/CookieParser.h
  1771. * test/CookieParserTest.cc
  1772. * test/cookietest.txt: Removed
  1773. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Fixed the bug that cookie for domain a.b.c is not sent to the host
  1775. a.b.c if no other cookies are stored. Fixed the bug that
  1776. Cookie::markOriginServerOnly() is not called when cookies are
  1777. loaded from file/sqlite3 database.
  1778. * src/Cookie.h
  1779. * src/CookieStorage.cc
  1780. * src/NsCookieParser.cc
  1781. * src/Sqlite3MozCookieParser.cc
  1782. * test/CookieStorageTest.cc
  1783. * test/NsCookieParserTest.cc
  1784. * test/Sqlite3MozCookieParserTest.cc
  1785. * test/cookies.sqlite
  1786. * test/nscookietest.txt
  1787. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1788. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  1789. both _pieceStorage and _segmentMan are initialized or they are
  1790. not.
  1791. * src/RequestGroup.cc
  1792. * src/RequestGroup.h
  1793. * test/BtDependencyTest.cc
  1794. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Bump up version number to 1.8.2
  1796. * configure.ac
  1797. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1798. Replaced "." with A2STR::DOT_C
  1799. * src/AbstractCommand.cc
  1800. * src/Cookie.cc
  1801. * src/DownloadContext.cc
  1802. * src/FtpConnection.cc
  1803. * src/RequestGroup.cc
  1804. * src/util.cc
  1805. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1806. Replaced isNumberAndDotsNotation() with isNumericHost().
  1807. isNumericHost() can handle IPv6 address.
  1808. * src/Cookie.cc
  1809. * src/CookieStorage.cc
  1810. * src/util.cc
  1811. * src/util.h
  1812. * test/CookieTest.cc
  1813. * test/UtilTest.cc
  1814. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1815. Included A2STR.h
  1816. * src/CookieStorage.cc
  1817. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Rewritten Cookie storage.
  1819. * src/Cookie.cc
  1820. * src/Cookie.h
  1821. * src/CookieParser.cc
  1822. * src/CookieStorage.cc
  1823. * src/CookieStorage.h
  1824. * src/a2functional.h
  1825. * test/CookieParserTest.cc
  1826. * test/CookieStorageTest.cc
  1827. * test/CookieTest.cc
  1828. * test/HttpResponseTest.cc
  1829. * test/TestUtil.h
  1830. * test/a2functionalTest.cc
  1831. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. Handle redirected URI which is not properly percent encoded.
  1833. * src/Request.cc
  1834. * test/RequestTest.cc
  1835. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1837. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1838. in a row without single '200 OK' response.
  1839. * src/RequestGroup.cc.
  1840. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1842. readout by 80 characters in mingw32 build. Catch exception in
  1843. DHTMessageReceiver::receiveMessage().
  1844. * src/AbstractDiskWriter.cc
  1845. * src/ConsoleStatCalc.cc
  1846. * src/DHTMessageReceiver.cc
  1847. * src/File.cc
  1848. * src/RequestGroupMan.cc
  1849. * src/a2io.h
  1850. * test/FileTest.cc
  1851. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1852. Fixed compile error with intel compiler
  1853. * src/XmlRpcMethodImpl.cc
  1854. * src/XmlRpcMethodImpl.h
  1855. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. Release 1.8.1
  1857. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Updated Swedish, Russian and Italian translations. Thanks to all
  1859. translators.
  1860. * po/it.po
  1861. * po/ru.po
  1862. * po/sv.po
  1863. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Fixed broken OptionParser::findByName().
  1865. * src/OptionParser.cc
  1866. * test/OptionParserTest.cc
  1867. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1868. Fixed test error without BitTorrent support.
  1869. * test/XmlRpcMethodTest.cc
  1870. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Fixed compile error without GNUTLS/OpenSSL.
  1872. * src/util.cc
  1873. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. Changed compression level to Z_DEFAULT_COMPRESSION.
  1875. * src/GZipEncoder.cc
  1876. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Added missing command line options: --http-no-cache,
  1878. --bt-save-metadata and --bt-metadata-only.
  1879. * doc/xmlrpc/aria2rpc
  1880. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1881. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1882. client accepts gzip content encoding.
  1883. * src/A2STR.cc
  1884. * src/A2STR.h
  1885. * src/GZipEncoder.cc
  1886. * src/GZipEncoder.h
  1887. * src/HttpHeader.cc
  1888. * src/HttpHeader.h
  1889. * src/HttpServer.cc
  1890. * src/HttpServer.h
  1891. * src/HttpServerBodyCommand.cc
  1892. * src/HttpServerCommand.cc
  1893. * src/Makefile.am
  1894. * src/XmlRpcResponse.cc
  1895. * src/XmlRpcResponse.h
  1896. * test/GZipEncoderTest.cc
  1897. * test/Makefile.am
  1898. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Added XML-RPC client sample code in Python.
  1900. * doc/aria2c.1.txt
  1901. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1902. Updated po templates.
  1903. * po/aria2.pot
  1904. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1905. Bump up version number to 1.8.1
  1906. * configure.ac
  1907. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1908. Added version number to man page. Updated copyright year in man
  1909. page.
  1910. * doc/aria2c.1.txt
  1911. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Rewritten toTagString
  1913. * src/NameMatchOptionHandler.cc
  1914. * test/OptionHandlerTest.cc
  1915. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1916. Added dir and files key to the response struct of aria2.tellStatus
  1917. XML-RPC method. The value associated with files key is the list
  1918. of files. Its element is the same struct used in aria2.getFiles
  1919. XML-RPC method. Added uris key to the response struct of
  1920. aria2.getFiles XML-RPC method. The value associated with uris key
  1921. is the list of URIs. Its element is the same struct used in
  1922. aria2.getUris XML-RPC method.
  1923. * doc/aria2c.1.txt
  1924. * src/XmlRpcMethodImpl.cc
  1925. * test/XmlRpcMethodTest.cc
  1926. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1927. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1928. struct containing Session ID, which is generated each time when
  1929. aria2 is invoked.
  1930. * doc/aria2c.1.txt
  1931. * doc/xmlrpc/aria2rpc
  1932. * src/DownloadEngine.cc
  1933. * src/DownloadEngine.h
  1934. * src/XmlRpcMethodFactory.cc
  1935. * src/XmlRpcMethodImpl.cc
  1936. * src/XmlRpcMethodImpl.h
  1937. * test/XmlRpcMethodTest.cc
  1938. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1939. Moved generateRandomKey() from bittorrent_helper to util.
  1940. * src/DHTBucket.cc
  1941. * src/DHTNode.cc
  1942. * src/bittorrent_helper.cc
  1943. * src/bittorrent_helper.h
  1944. * src/util.cc
  1945. * src/util.h
  1946. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1947. Updated doc about GID.
  1948. * doc/aria2c.1.txt
  1949. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1950. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1951. accepts a negative integer. 'offset' == -1 points last download
  1952. in the waiting queue and 'offset' == -2 points the download before
  1953. the last download, and so on. The downloads in the response are in
  1954. reversed order.
  1955. * doc/aria2c.1.txt
  1956. * src/XmlRpcMethodImpl.cc
  1957. * src/XmlRpcMethodImpl.h
  1958. * test/XmlRpcMethodTest.cc
  1959. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1960. Added --human-readable option. This option, when true is given,
  1961. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1962. 3.4Mi) in the console readout. The default value is true and it
  1963. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1964. appears when false is given. In this case, sizes and speed are
  1965. printed without in bytes. No Ki, Mi units conversion is used.
  1966. This may be useful for a program to parse the output of aria2.
  1967. * doc/aria2c.1.txt
  1968. * src/ConsoleStatCalc.cc
  1969. * src/ConsoleStatCalc.h
  1970. * src/OptionHandlerFactory.cc
  1971. * src/main.cc
  1972. * src/prefs.cc
  1973. * src/prefs.h
  1974. * src/usage_text.h
  1975. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1977. option accepts empty string "". When "" is given, it erases
  1978. previously defined proxy.
  1979. * doc/aria2c.1.txt
  1980. * src/OptionHandlerImpl.h
  1981. * src/usage_text.h
  1982. * test/OptionHandlerTest.cc
  1983. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Code cleanup for proxy URI handling.
  1985. * src/AbstractCommand.cc
  1986. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1987. Added --bt-metadata-only option. If true is given to this option,
  1988. aria2 downloads metadata only. The file(s) described in metadata
  1989. will not be downloaded. This option has effect only when
  1990. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1991. * doc/aria2c.1.txt
  1992. * src/OptionHandlerFactory.cc
  1993. * src/UTMetadataPostDownloadHandler.cc
  1994. * src/download_helper.cc
  1995. * src/prefs.cc
  1996. * src/prefs.h
  1997. * src/usage_text.h
  1998. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Fixed memory leak. Commands stored in std::deque<Command*> are not
  2000. deleted when exception is thrown. Make sure that when passing
  2001. std::deque<Command*> to function to store Commands, handle
  2002. exception and delete these Commands.
  2003. * src/AbstractCommand.cc
  2004. * src/CheckIntegrityCommand.cc
  2005. * src/FileAllocationCommand.cc
  2006. * src/RequestGroup.cc
  2007. * src/TrackerWatcherCommand.cc
  2008. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2009. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  2010. * src/A2STR.cc
  2011. * src/A2STR.h
  2012. * src/FtpNegotiationCommand.cc
  2013. * src/HttpResponseCommand.cc
  2014. * src/util.cc
  2015. * src/util.h
  2016. * test/UtilTest.cc
  2017. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2018. Treat --dir="" as --dir="."
  2019. * src/FtpNegotiationCommand.cc
  2020. * src/HttpResponseCommand.cc
  2021. * src/Metalink2RequestGroup.cc
  2022. * src/UTMetadataPostDownloadHandler.cc
  2023. * src/bittorrent_helper.cc
  2024. * src/download_helper.cc
  2025. * src/util.cc
  2026. * src/util.h
  2027. * test/UtilTest.cc
  2028. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2029. Code clean up.
  2030. * src/main.cc
  2031. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2032. Reset GID to 1 when they reach maximum value. Rewritten
  2033. CUIDCounter::newID()
  2034. * src/CUIDCounter.h
  2035. * src/RequestGroup.cc
  2036. * src/RequestGroup.h
  2037. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2038. Documented --http-no-cache option in man page.
  2039. * doc/aria2c.1.txt
  2040. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2041. Added --http-no-cache option. When true is given, aria2 sends
  2042. Cache-Control: no-cache and Pragma: no-cache header to avoid
  2043. cached content. If false is given , these headers are not sent
  2044. and you can add Cache-Control header with a directive you like
  2045. using --header option.
  2046. * src/HttpRequest.cc
  2047. * src/HttpRequest.h
  2048. * src/HttpRequestCommand.cc
  2049. * src/OptionHandlerFactory.cc
  2050. * src/download_helper.cc
  2051. * src/prefs.cc
  2052. * src/prefs.h
  2053. * src/usage_text.h
  2054. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. Removed Logger from OptionParser. When OptionParser is used to
  2056. parse options at bootstrap, LogFactory is not configured yet
  2057. properly. When LogFactory is used in OptionParser, it initializes
  2058. itself to return a logger which has no ability to write log to the
  2059. disk.
  2060. * src/OptionParser.cc
  2061. * src/OptionParser.h
  2062. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Added following sentance to the help message of --out option:
  2064. --out option is ignored when -Z is used.
  2065. * doc/aria2c.1.txt
  2066. * src/usage_text.h
  2067. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2068. Added --bt-save-metadata option to -i list options.
  2069. * doc/aria2c.1.txt
  2070. * src/download_helper.cc
  2071. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  2073. additional libraries.
  2074. * src/MultiUrlRequestInfo.cc
  2075. * src/NameResolver.cc
  2076. * src/SelectEventPoll.cc
  2077. * src/SelectEventPoll.h
  2078. * src/SocketCore.cc
  2079. * src/SocketCore.h
  2080. * src/a2netcompat.h
  2081. * src/daemon.cc
  2082. * src/main.cc
  2083. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Fixed typo.
  2085. * src/DHTMessageReceiver.cc
  2086. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. Fixed the bug that causes segmentation fault if unknown option is
  2088. put in aria2.conf file. BUG#2928303
  2089. * src/OptionParser.cc
  2090. * src/OptionParser.h
  2091. * src/option_processing.cc
  2092. * test/OptionParserTest.cc
  2093. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2094. Ignore port message with port=0.
  2095. * src/BtPortMessage.cc
  2096. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Run autoupdate
  2098. * configure.ac
  2099. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2100. Updated autoconf/automake auxiliary files.
  2101. * INSTALL
  2102. * config.guess
  2103. * config.sub
  2104. * depcomp
  2105. * install-sh
  2106. * m4/intldir.m4
  2107. * missing
  2108. * mkinstalldirs
  2109. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Removed unused function.
  2111. * src/SharedHandle.h
  2112. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. Find pooled socket using all cached addresses.
  2114. * src/DNSCache.h
  2115. * src/DownloadEngine.cc
  2116. * src/DownloadEngine.h
  2117. * src/InitiateConnectionCommand.cc
  2118. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2119. Updated copyright year.
  2120. * src/version_usage.cc
  2121. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Pool connection if _contentEncodingDecoder is used and server
  2123. supports persistent connection.
  2124. * src/HttpDownloadCommand.cc
  2125. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. Updated doc.
  2127. * src/DownloadCommand.cc
  2128. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2129. Untabify. Fixed one line in copyright which is longer than 80
  2130. columns.
  2131. * src
  2132. * test
  2133. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Release 1.8.0
  2135. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. Updated po templates.
  2137. * po/aria2.pot
  2138. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2139. Documented --bt-save-metadata option in man page.
  2140. * doc/aria2c.1.txt
  2141. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Fixed usage of --bt-save-metadata option.
  2143. * src/usage_text.h
  2144. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Updated po templates.
  2146. * po/aria2.pot
  2147. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  2149. causes name resolution error when none of network interface has
  2150. IPv4 address.
  2151. * src/main.cc
  2152. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2153. Bump up version number to 1.8.0.
  2154. * configure.ac
  2155. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2156. Use info hash as a filename when saving BitTorrent metadata.
  2157. * src/UTMetadataPostDownloadHandler.cc
  2158. * test/UTMetadataPostDownloadHandlerTest.cc
  2159. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Documented system.multicall XML-RPC method in man page.
  2161. * doc/aria2c.1.txt
  2162. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Added signal handler for SIGHUP to save .aria2 file when terminal
  2164. is closed. The handler is the same one for SIGINT and SIGTERM.
  2165. * src/MultiUrlRequestInfo.cc
  2166. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2167. Defined method name in XmlRpcMethod subclasses.
  2168. * src/XmlRpcMethodFactory.cc
  2169. * src/XmlRpcMethodImpl.cc
  2170. * src/XmlRpcMethodImpl.h
  2171. * test/XmlRpcMethodTest.cc
  2172. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Added system.multicall XML-RPC method.
  2174. * src/XmlRpcMethod.cc
  2175. * src/XmlRpcMethod.h
  2176. * src/XmlRpcMethodFactory.cc
  2177. * src/XmlRpcMethodImpl.cc
  2178. * src/XmlRpcMethodImpl.h
  2179. * test/XmlRpcMethodTest.cc
  2180. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Check structure depth when decoding.
  2182. * src/bencode.cc
  2183. * src/bencode.h
  2184. * test/BencodeTest.cc
  2185. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2186. Documented tellStopped XML-RPC method in man page.
  2187. * doc/aria2c.1.txt
  2188. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2189. Added tellStopped XML-RPC method to aria2rpc.
  2190. * doc/xmlrpc/aria2rpc
  2191. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2192. Added tellStopped XML-RPC method. This method returns stopped
  2193. download in the specified range. It takes same parameters with
  2194. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  2195. * src/XmlRpcMethodFactory.cc
  2196. * src/XmlRpcMethodImpl.cc
  2197. * src/XmlRpcMethodImpl.h
  2198. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  2200. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  2201. when conducting unit tests because they fail if networking
  2202. interface is not configured with IPv4 address.
  2203. * src/NameResolver.cc
  2204. * src/SocketCore.cc
  2205. * src/SocketCore.h
  2206. * src/a2netcompat.h
  2207. * test/AllTest.cc
  2208. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. Fixed unit test error
  2210. * test/UTMetadataPostDownloadHandlerTest.cc
  2211. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Defined static string constants for efficiency.
  2213. * src/XmlRpcMethodImpl.cc
  2214. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Added --bt-save-metadata option. When true is given, it saves
  2216. metadata as .torrent file. This option has effect only when
  2217. BitTorrent Magnet URI is used. The filename is name in metadata
  2218. with suffix .torrent. The directory to be saved is the same
  2219. directory where download file is saved. If the same file already
  2220. exists, metdata is not saved.
  2221. * src/OptionHandlerFactory.cc
  2222. * src/UTMetadataPostDownloadHandler.cc
  2223. * src/UTMetadataPostDownloadHandler.h
  2224. * src/message.h
  2225. * src/prefs.cc
  2226. * src/prefs.h
  2227. * src/usage_text.h
  2228. * test/UTMetadataDataExtensionMessageTest.cc
  2229. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Added util::saveAs() function. Use it in Signature::save().
  2231. * src/Signature.cc
  2232. * src/util.cc
  2233. * src/util.h
  2234. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Upcase info hash in Magnet URI.
  2236. * doc/aria2c.1.txt
  2237. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2238. Refactored RequestGroupMan::changeReservedGroupPosition()
  2239. * src/RequestGroupMan.cc
  2240. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Updated the description for aria2.addTorrent XML-RPC method.
  2242. * doc/aria2c.1.txt
  2243. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Added changePosition to aria2rpc.
  2245. * doc/xmlrpc/aria2rpc
  2246. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Documented changePosition XML-RPC method in man page.
  2248. * doc/aria2c.1.txt
  2249. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  2251. pos and how. This method changes the position of download denoted
  2252. by gid. If how is POS_SET, it moves the download to a position
  2253. relative to the beginning of the queue. If how is POS_CUR, it
  2254. moves the download to a position relative to the current
  2255. position. If how is POS_END, it moves the download to a position
  2256. relative to the end of the queue. If the destination position is
  2257. less than 0 or beyond the end of the queue, it moves the download
  2258. to the beginning or the end of the queue respectively. Returns
  2259. the destination position.
  2260. * src/RequestGroupMan.cc
  2261. * src/RequestGroupMan.h
  2262. * src/XmlRpcMethodFactory.cc
  2263. * src/XmlRpcMethodImpl.cc
  2264. * src/XmlRpcMethodImpl.h
  2265. * test/RequestGroupManTest.cc
  2266. * test/XmlRpcMethodTest.cc
  2267. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2268. Added getOption and getGlobalOption to aria2rpc.
  2269. * doc/xmlrpc/aria2rpc
  2270. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Documented getOption and getGlobalOption XML-RPC method in man
  2272. page
  2273. * doc/aria2c.1.txt
  2274. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2275. Added getOption and getGlobalOption XML-RPC method. getOption
  2276. takes GID as a parameter and returns its options as struct.
  2277. getGlobalOption takes no parameter and returns global
  2278. options. Because global option is used as a template for the
  2279. option of newly added downloads, it includes options returned by
  2280. getOption.
  2281. * src/Option.h
  2282. * src/XmlRpcMethodFactory.cc
  2283. * src/XmlRpcMethodImpl.cc
  2284. * src/XmlRpcMethodImpl.h
  2285. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2286. Sort _optionHandlers in OptionParser by name in ascending order.
  2287. Use vector instead of deque for efficiency.
  2288. * src/OptionHandler.h
  2289. * src/OptionHandlerFactory.h
  2290. * src/OptionParser.cc
  2291. * src/OptionParser.h
  2292. * src/version_usage.cc
  2293. * test/OptionParserTest.cc
  2294. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2295. Code cleanup
  2296. * src/XmlRpcMethod.cc
  2297. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Documented about followedBy and belongsTo in man page.
  2299. * doc/aria2c.1.txt
  2300. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. Added following 2 keys, followedBy and belongsTo, to the response
  2302. of tellStatus.
  2303. followedBy: List of GIDs which are generated by the consequence of
  2304. this download. For example, when aria2 downloaded Metalink file,
  2305. it generates downloads described in it(see *--follow-metalink*
  2306. option). This value is useful to track these auto generated
  2307. downloads. If there is no such downloads, this key will not be
  2308. included in the response.
  2309. belongsTo: GID of a parent download. Some downloads are a part of
  2310. another download. For example, if a file in Metalink has
  2311. BitTorrent resource, the download of .torrent is a part of that
  2312. file. If this download has no parent, this key will not be
  2313. included in the response.
  2314. * src/BtPostDownloadHandler.cc
  2315. * src/DownloadResult.h
  2316. * src/Metalink2RequestGroup.cc
  2317. * src/MetalinkPostDownloadHandler.cc
  2318. * src/RequestGroup.cc
  2319. * src/RequestGroup.h
  2320. * src/UTMetadataPostDownloadHandler.cc
  2321. * src/XmlRpcMethodImpl.cc
  2322. * src/XmlRpcMethodImpl.h
  2323. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2324. Assigned BObject in BDE() to avoid segmentation fault when calling
  2325. methods of BDE::none().
  2326. * src/BDE.cc
  2327. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2328. Show info hash in Magnet URI in upper case letters in -S output.
  2329. * src/bittorrent_helper.cc
  2330. * test/BittorrentHelperTest.cc
  2331. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2332. Removed old useless comment
  2333. * src/MultiUrlRequestInfo.cc
  2334. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  2336. not properly used in configure script and failed to detect gnutls.
  2337. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  2338. and the initialization of pkg-config is done in first occurrence
  2339. of PKG_CHECK_MODULES which is not executed because it is inside of
  2340. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  2341. * configure.ac
  2342. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Release 1.7.2
  2344. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2345. Fixed the bug that RequestGroupMan::downloadFinished() returns
  2346. true even if all downloads haven't finished, especially when
  2347. PostDownloadHandler is involved. Changed the condition so that it
  2348. only returns true if both _requestGroups and _reservedGroups are
  2349. empty.
  2350. * src/RequestGroupMan.cc
  2351. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2352. Log listening port for BitTorrent/DHT in notice level.
  2353. * src/DHTConnectionImpl.cc
  2354. * src/PeerListenCommand.cc
  2355. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2356. Updated po templates.
  2357. * po/aria2.pot
  2358. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Bump up version number to 1.7.2
  2360. * configure.ac
  2361. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2362. Changed default value of --enable-dht from 'false' to 'true'.
  2363. * doc/aria2c.1.txt
  2364. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Enabled DHT by default because of Magnet URI support. To disable
  2366. DHT, use --enable-dht=false
  2367. * src/OptionHandlerFactory.cc
  2368. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2369. Print Magnet URI in -S output.
  2370. * src/AnnounceList.cc
  2371. * src/bittorrent_helper.cc
  2372. * src/bittorrent_helper.h
  2373. * test/BittorrentHelperTest.cc
  2374. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Added --bt-prioritize-piece option to aria2rpc.
  2376. * doc/xmlrpc/aria2rpc
  2377. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Refer Magnet URI in --help. Made some cosmetic changes.
  2379. * src/version_usage.cc
  2380. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Updated -T and -M option.
  2382. * doc/aria2c.1.txt
  2383. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Fixed typo
  2385. * doc/aria2c.1.txt
  2386. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Fixed the bug that line separator is missing in horizontal bar.
  2388. * doc/xmlrpc/aria2mon
  2389. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Updated usage text for --metalink-file option.
  2391. * src/usage_text.h
  2392. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2393. If '-' is given as an argument to --metalink-file option, aria2
  2394. reads Metalink file from stdin.
  2395. * src/OptionHandlerFactory.cc
  2396. * src/OptionHandlerImpl.h
  2397. * src/a2io.h
  2398. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Fixed the bug that aria2 listens wrong port if --interface option
  2400. is used.
  2401. * src/SocketCore.cc
  2402. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2403. Fixed the bug that query parameter in magnet URI is not decoded.
  2404. * src/magnet.cc
  2405. * test/MagnetTest.cc
  2406. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2407. Specified defaultSize as an argument for easy testing.
  2408. * src/util.cc
  2409. * src/util.h
  2410. * test/UtilTest.cc
  2411. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2412. Release 1.7.1
  2413. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2414. Bump up version number to 1.7.1
  2415. * configure.ac
  2416. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2417. Fixed the bug --bt-prioritize-piece=tail is not working.
  2418. * src/util.cc
  2419. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2420. Release 1.7.0
  2421. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2422. Updated po templates.
  2423. * po/aria2.pot
  2424. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Updated help message for --bt-prioritize-piece. Some cosmetic
  2426. changes.
  2427. * doc/aria2c.1.txt
  2428. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2429. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  2430. * src/usage_text.h
  2431. * src/util.cc
  2432. * test/UtilTest.cc
  2433. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2434. Updated Russian, Ukrainian, German and French translations.
  2435. Thanks to all translators involved.
  2436. * po/de.po
  2437. * po/fr.po
  2438. * po/ru.po
  2439. * po/uk.po
  2440. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2441. Mentioned about pkg-config
  2442. * README
  2443. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Fixed typo. Referred --index-out option in BitTorrent notes.
  2445. * README
  2446. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2447. Store all addresses found by getifaddrs() and getaddrinfo(). In
  2448. bind, try all addresses until success
  2449. * src/SocketCore.cc
  2450. * src/SocketCore.h
  2451. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Updated po templates.
  2453. * po/aria2.pot
  2454. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. Bump up version number to 1.7.0
  2456. * configure.ac
  2457. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2458. Fixed compile error if ENABLE_BITTORRENT is undefined.
  2459. * src/DefaultPieceStorage.cc
  2460. * src/DefaultPieceStorage.h
  2461. * src/PieceStorage.h
  2462. * src/UnknownLengthPieceStorage.cc
  2463. * src/UnknownLengthPieceStorage.h
  2464. * test/MockPieceStorage.h
  2465. * test/ProtocolDetectorTest.cc
  2466. * test/XmlRpcMethodTest.cc
  2467. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2468. Documented in man page that if getifaddrs() is missing,
  2469. --interface option doesn't accept interface name.
  2470. * doc/aria2c.1.txt
  2471. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  2473. * src/DefaultBtAnnounce.cc
  2474. * src/DefaultBtAnnounce.h
  2475. * test/DefaultBtAnnounceTest.cc
  2476. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2477. Fixed the bug that connection is always dropped if handshake
  2478. message in extension protocol don't have metadata_size.
  2479. src/HandshakeExtensionMessage.cc
  2480. * src/HandshakeExtensionMessage.cc
  2481. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2482. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  2483. text saying DHT is recommended when Magnet URI is provided.
  2484. * doc/aria2c.1.txt
  2485. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  2487. URI is supplied. Notify user that they should consider enabling
  2488. DHT if they use Magnet URI.
  2489. * src/RequestGroup.cc
  2490. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2491. Added --disable-ipv6 option to disable IPv6.
  2492. * doc/aria2c.1.txt
  2493. * src/InitiateConnectionCommand.cc
  2494. * src/NameResolver.cc
  2495. * src/NameResolver.h
  2496. * src/OptionHandlerFactory.cc
  2497. * src/main.cc
  2498. * src/prefs.cc
  2499. * src/prefs.h
  2500. * src/usage_text.h
  2501. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2502. Updated usage text for --bt-prioritize-piece option.
  2503. * doc/aria2c.1.txt
  2504. * src/usage_text.h
  2505. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2506. In configure script, if --with-PACKAGE and --enable-FEATURE are
  2507. given and PACKAGE is missing in the system or FEATURE cannot be
  2508. enabled, print error message and stop the script.
  2509. * configure.ac
  2510. * m4/aria2_arg.m4
  2511. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Halt metadata download immediately when metadata download is done.
  2513. Don't wait unresponsive tracker.
  2514. * src/ByteArrayDiskWriter.h
  2515. * src/DefaultBtInteractive.cc
  2516. * src/DefaultExtensionMessageFactory.cc
  2517. * src/DefaultExtensionMessageFactory.h
  2518. * src/PeerInteractionCommand.cc
  2519. * src/UTMetadataDataExtensionMessage.cc
  2520. * src/UTMetadataDataExtensionMessage.h
  2521. * src/UTMetadataRequestExtensionMessage.cc
  2522. * test/UTMetadataDataExtensionMessageTest.cc
  2523. * test/UTMetadataRequestExtensionMessageTest.cc
  2524. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Documented --interface option in man page.
  2526. * doc/aria2c.1.txt
  2527. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2528. Try resolved address in the order received from the resolver.
  2529. * src/DNSCache.h
  2530. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2531. Added debug logs.
  2532. * src/SocketCore.cc
  2533. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2534. Fixed type of tail to uint64_t
  2535. * src/util.cc
  2536. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. Added --interface option. This feature binds sockets to given
  2538. interface. You can specify interface name, IP address and
  2539. hostname.
  2540. * configure.ac
  2541. * src/OptionHandlerFactory.cc
  2542. * src/SocketCore.cc
  2543. * src/SocketCore.h
  2544. * src/main.cc
  2545. * src/message.h
  2546. * src/prefs.cc
  2547. * src/prefs.h
  2548. * src/usage_text.h
  2549. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2550. Updated man page for bt-prioritize-piece option in -i list.
  2551. * doc/aria2c.1.txt
  2552. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2553. Added bt-prioritize-piece option to -i list.
  2554. * src/download_helper.cc
  2555. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2556. Removed --http-auth-scheme option from man page.
  2557. * doc/aria2c.1.txt
  2558. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Removed --http-auth-scheme option since it doesn't do nothing.
  2560. * src/OptionHandlerFactory.cc
  2561. * src/prefs.cc
  2562. * src/prefs.h
  2563. * src/usage_text.h
  2564. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2565. Adjusted the number of peer info which get_peers reply message can
  2566. carry.
  2567. * src/DHTGetPeersReplyMessage.cc
  2568. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2569. Added extension_message_test_helper.h to aria2c_SOURCES.
  2570. * test/Makefile.am
  2571. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2572. Documented --bt-prioritize-piece option in man page.
  2573. * doc/aria2c.1.txt
  2574. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2575. Added option --bt-prioritize-piece. This option instruct aria2 to
  2576. try to download first and last pieces of each file first. The
  2577. argument can contain 2 keywords:head and tail. To include both
  2578. keywords, they must be separated by comma. These keywords can take
  2579. one parameter, SIZE. For example , if head=SIZE is specified,
  2580. pieces in the range of first SIZE bytes of each file get higher
  2581. priority. tail=SIZE means the range of last SIZE bytes of each
  2582. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  2583. * src/DefaultPieceStorage.h
  2584. * src/Makefile.am
  2585. * src/OptionHandlerFactory.cc
  2586. * src/OptionHandlerImpl.h
  2587. * src/PriorityPieceSelector.cc
  2588. * src/PriorityPieceSelector.h
  2589. * src/RequestGroup.cc
  2590. * src/prefs.cc
  2591. * src/prefs.h
  2592. * src/usage_text.h
  2593. * src/util.cc
  2594. * src/util.h
  2595. * test/Makefile.am
  2596. * test/MockPieceSelector.h
  2597. * test/PriorityPieceSelectorTest.cc
  2598. * test/UtilTest.cc
  2599. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Fixed typo
  2601. * src/HttpRequest.h
  2602. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. In Magnet URI with tr parameter, put each announce URI in separate
  2604. tier.
  2605. * src/bittorrent_helper.cc
  2606. * test/BittorrentHelperTest.cc
  2607. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2608. Renamed ExtensionMessage::getBencodedData() as
  2609. ExtensionMessage::getPayload()
  2610. * src/BtExtendedMessage.cc
  2611. * src/ExtensionMessage.h
  2612. * src/HandshakeExtensionMessage.cc
  2613. * src/HandshakeExtensionMessage.h
  2614. * src/UTMetadataDataExtensionMessage.cc
  2615. * src/UTMetadataDataExtensionMessage.h
  2616. * src/UTMetadataRejectExtensionMessage.cc
  2617. * src/UTMetadataRejectExtensionMessage.h
  2618. * src/UTMetadataRequestExtensionMessage.cc
  2619. * src/UTMetadataRequestExtensionMessage.h
  2620. * src/UTPexExtensionMessage.cc
  2621. * src/UTPexExtensionMessage.h
  2622. * test/HandshakeExtensionMessageTest.cc
  2623. * test/MockExtensionMessage.h
  2624. * test/UTMetadataDataExtensionMessageTest.cc
  2625. * test/UTMetadataRejectExtensionMessageTest.cc
  2626. * test/UTMetadataRequestExtensionMessageTest.cc
  2627. * test/UTPexExtensionMessageTest.cc
  2628. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Updated man page for BitTorrent Magnet URI.
  2630. * doc/aria2c.1.txt
  2631. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Call DownloadContext::setOwnerRequestGroup() in
  2633. RequestGroup::setDownloadContext().
  2634. * src/BtDependency.cc
  2635. * src/RequestGroup.cc
  2636. * src/RequestGroup.h
  2637. * src/download_helper.cc
  2638. * test/DefaultBtMessageDispatcherTest.cc
  2639. * test/DefaultExtensionMessageFactoryTest.cc
  2640. * test/HandshakeExtensionMessageTest.cc
  2641. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2642. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  2643. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  2644. from metadata, use new metadata2Torrent() function.
  2645. * src/BtDependency.cc
  2646. * src/UTMetadataPostDownloadHandler.cc
  2647. * src/bittorrent_helper.cc
  2648. * src/bittorrent_helper.h
  2649. * test/BittorrentHelperTest.cc
  2650. * test/BtDependencyTest.cc
  2651. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2652. Use createRequestGroupForUri to create the download for torrent
  2653. file.
  2654. * src/Metalink2RequestGroup.cc
  2655. * test/Metalink2RequestGroupTest.cc
  2656. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2657. Fixed typo
  2658. * src/DownloadContext.h
  2659. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2660. Use createRequestGroupForBitTorrent()
  2661. * src/BtPostDownloadHandler.cc
  2662. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2663. Added remove().
  2664. * src/Option.cc
  2665. * src/Option.h
  2666. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Removed options which is only valid for URIs specified in
  2668. command-line. If they are left, because op is used as a template
  2669. for new RequestGroup(such as created in XML-RPC command,
  2670. BtPostDownloadHandler etc), they causes unintentional effect.
  2671. * src/main.cc
  2672. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2673. Refer to option value of PREF_OUT only in download_helper.
  2674. * src/FtpNegotiationCommand.cc
  2675. * src/HttpResponseCommand.cc
  2676. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2677. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  2678. * src/download_helper.cc
  2679. * src/download_helper.h
  2680. * src/XmlRpcMethodImpl.cc
  2681. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2682. Updated man page for changeOption XML-RPC method.
  2683. * doc/aria2c.1.txt
  2684. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2685. Added --bt-max-peers option to changeOption XML-RPC method.
  2686. * src/XmlRpcMethod.cc
  2687. * src/XmlRpcMethodImpl.cc
  2688. * test/XmlRpcMethodTest.cc
  2689. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2690. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  2691. * test/XmlRpcMethodTest.cc
  2692. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. Removed redundant DownloadContext::hasAttribute(...) calls.
  2694. * src/ConsoleStatCalc.cc
  2695. * src/RequestGroup.cc
  2696. * src/XmlRpcMethodImpl.cc
  2697. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2698. Changed the number of tracker request attempt from 5 to 2.
  2699. * src/TrackerWatcherCommand.cc
  2700. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2701. Use host and protocol in original URI, because URI selector
  2702. selects URI based on original URI, not redirected one.
  2703. * src/Request.cc
  2704. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2705. Fixed the bug which causes segmentation fault with tellWaiting
  2706. XML-RPC method when BitTorrent download is waiting. The key of
  2707. BtRegistry is changed from info hash to GID, because it is
  2708. registered per RequestGroup, not info hash.
  2709. * src/BtRegistry.cc
  2710. * src/BtRegistry.h
  2711. * src/BtSetup.cc
  2712. * src/ConsoleStatCalc.cc
  2713. * src/InitiatorMSEHandshakeCommand.cc
  2714. * src/PeerInitiateConnectionCommand.cc
  2715. * src/PeerInteractionCommand.cc
  2716. * src/PeerInteractionCommand.h
  2717. * src/PeerReceiveHandshakeCommand.cc
  2718. * src/RequestGroup.cc
  2719. * src/XmlRpcMethodImpl.cc
  2720. * test/BtRegistryTest.cc
  2721. * test/XmlRpcMethodTest.cc
  2722. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2723. Updated man page for changeOption XML-RPC method.
  2724. * doc/aria2c.1.txt
  2725. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  2727. method.
  2728. * src/XmlRpcMethod.cc
  2729. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2730. Documented about BitTorrent Magnet URI in man page.
  2731. * doc/aria2c.1.txt
  2732. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Fixed the bug that trackers in BitTorrent Magnet URI are not
  2734. inherited to generated RequestGroup.
  2735. * src/UTMetadataPostDownloadHandler.cc
  2736. * test/UTMetadataPostDownloadHandlerTest.cc
  2737. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2738. Prepended "[METADATA]" before dn.
  2739. * src/bittorrent_helper.cc
  2740. * test/BittorrentHelperTest.cc
  2741. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2742. Rewritten Magnet URI parser.
  2743. * src/Makefile.am
  2744. * src/ProtocolDetector.cc
  2745. * src/bittorrent_helper.cc
  2746. * src/bittorrent_helper.h
  2747. * src/download_helper.cc
  2748. * src/magnet.cc
  2749. * src/magnet.h
  2750. * test/BittorrentHelperTest.cc
  2751. * test/MagnetTest.cc
  2752. * test/Makefile.am
  2753. * test/ProtocolDetectorTest.cc
  2754. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Use hton64
  2756. * src/base32.cc
  2757. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2758. Added Base32 encoded BitTorrent Magnet Link support.
  2759. * src/Makefile.am
  2760. * src/base32.cc
  2761. * src/base32.h
  2762. * src/bittorrent_helper.cc
  2763. * test/Base32Test.cc
  2764. * test/BittorrentHelperTest.cc
  2765. * test/Makefile.am
  2766. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2767. Added BitTorrent Magnet Link support. Base32 encoded link is not
  2768. supported yet. Fixed typo in method name in RequestGroup. In
  2769. metadataGetMode, don't show "Your share ratio was ..." message.
  2770. * src/DefaultBtInteractive.cc
  2771. * src/DefaultBtInteractive.h
  2772. * src/DownloadHandlerFactory.cc
  2773. * src/DownloadHandlerFactory.h
  2774. * src/HandshakeExtensionMessage.cc
  2775. * src/Makefile.am
  2776. * src/Metalink2RequestGroup.cc
  2777. * src/PeerInteractionCommand.cc
  2778. * src/RequestGroup.cc
  2779. * src/RequestGroup.h
  2780. * src/UTMetadataPostDownloadHandler.cc
  2781. * src/UTMetadataPostDownloadHandler.h
  2782. * src/download_helper.cc
  2783. * test/HandshakeExtensionMessageTest.cc
  2784. * test/Makefile.am
  2785. * test/UTMetadataPostDownloadHandlerTest.cc
  2786. * test/UTMetadataRejectExtensionMessageTest.cc
  2787. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. In metadataGetMode, don't show SEEDING.
  2789. * src/ConsoleStatCalc.cc
  2790. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Fixed ut_metadata data handling. Implemented
  2792. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  2793. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2794. metadata_size is received.
  2795. * src/DefaultExtensionMessageFactory.cc
  2796. * src/DefaultExtensionMessageFactory.h
  2797. * src/HandshakeExtensionMessage.cc
  2798. * src/HandshakeExtensionMessage.h
  2799. * src/UTMetadataDataExtensionMessage.cc
  2800. * src/UTMetadataDataExtensionMessage.h
  2801. * src/UTMetadataRequestExtensionMessage.cc
  2802. * src/UTMetadataRequestFactory.cc
  2803. * src/UTMetadataRequestFactory.h
  2804. * src/UTMetadataRequestTracker.cc
  2805. * src/UTMetadataRequestTracker.h
  2806. * test/DefaultExtensionMessageFactoryTest.cc
  2807. * test/HandshakeExtensionMessageTest.cc
  2808. * test/MockBtMessage.h
  2809. * test/UTMetadataDataExtensionMessageTest.cc
  2810. * test/UTMetadataRequestExtensionMessageTest.cc
  2811. * test/UTMetadataRequestFactoryTest.cc
  2812. * test/UTMetadataRequestTrackerTest.cc
  2813. * test/extension_message_test_helper.h
  2814. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2815. Drop connection if ut_metadata reject message is received.
  2816. * src/UTMetadataRejectExtensionMessage.cc
  2817. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2818. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2819. get high enough in that mode.
  2820. * src/ActivePeerConnectionCommand.cc
  2821. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Added BitTorrent magnet link support to ProtocolDetector.
  2823. * src/ProtocolDetector.cc
  2824. * src/ProtocolDetector.h
  2825. * test/ProtocolDetectorTest.cc
  2826. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. Don't inject validator into BtMessage in metadataGetMode because
  2828. most of the checks depends on the total length of download but it
  2829. is unknown. Delegate metadataGetMode to BtMessage.
  2830. * src/DefaultBtMessageFactory.cc
  2831. * src/DefaultBtMessageFactory.h
  2832. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2834. * src/DefaultPieceStorage.h
  2835. * src/PieceStorage.h
  2836. * src/UnknownLengthPieceStorage.h
  2837. * test/MockPieceStorage.h
  2838. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Added markTotalLengthIsKnown().
  2840. * src/DownloadContext.h
  2841. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2842. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2843. missing. If metadata is missing, always use DHT when it is ready.
  2844. * src/BtSetup.cc
  2845. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2846. Added parseMagnetLink(). Hex encoded info hash is supported.
  2847. Base32 encoded info hash is not supported yet.
  2848. * src/bittorrent_helper.cc
  2849. * src/bittorrent_helper.h
  2850. * test/BittorrentHelperTest.cc
  2851. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. Added FromHex()
  2853. * src/util.cc
  2854. * src/util.h
  2855. * test/UtilTest.cc
  2856. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. Added _metadataGetMode member variable. It toggles the action when
  2858. messages are received: usually they almost do nothing if
  2859. _metadataGetMode is true.
  2860. * src/AbstractBtMessage.cc
  2861. * src/AbstractBtMessage.h
  2862. * src/BtAllowedFastMessage.cc
  2863. * src/BtBitfieldMessage.cc
  2864. * src/BtCancelMessage.cc
  2865. * src/BtChokeMessage.cc
  2866. * src/BtHaveAllMessage.cc
  2867. * src/BtHaveMessage.cc
  2868. * src/BtInterestedMessage.cc
  2869. * src/BtNotInterestedMessage.cc
  2870. * src/BtPieceMessage.cc
  2871. * src/BtRejectMessage.cc
  2872. * src/BtRequestMessage.cc
  2873. * src/BtUnchokeMessage.cc
  2874. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2875. Added bencode::decode overload functions. They have extra argument
  2876. 'end', passed by reference. 'end' points to the beyond the last
  2877. position of data used in decoding process.
  2878. * src/bencode.cc
  2879. * src/bencode.h
  2880. * test/BencodeTest.cc
  2881. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2882. Initial support of Extension for Peers to Send Metadata
  2883. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2884. metadata from swarm.
  2885. * src/BtConstants.h
  2886. * src/DefaultBtInteractive.cc
  2887. * src/DefaultExtensionMessageFactory.cc
  2888. * src/DefaultExtensionMessageFactory.h
  2889. * src/ExtensionMessage.h
  2890. * src/ExtensionMessageRegistry.h
  2891. * src/HandshakeExtensionMessage.cc
  2892. * src/HandshakeExtensionMessage.h
  2893. * src/Makefile.am
  2894. * src/PeerConnection.h
  2895. * src/PeerInteractionCommand.cc
  2896. * src/UTMetadataDataExtensionMessage.cc
  2897. * src/UTMetadataDataExtensionMessage.h
  2898. * src/UTMetadataExtensionMessage.cc
  2899. * src/UTMetadataExtensionMessage.h
  2900. * src/UTMetadataRejectExtensionMessage.cc
  2901. * src/UTMetadataRejectExtensionMessage.h
  2902. * src/UTMetadataRequestExtensionMessage.cc
  2903. * src/UTMetadataRequestExtensionMessage.h
  2904. * src/bittorrent_helper.cc
  2905. * src/bittorrent_helper.h
  2906. * test/BittorrentHelperTest.cc
  2907. * test/DefaultExtensionMessageFactoryTest.cc
  2908. * test/HandshakeExtensionMessageTest.cc
  2909. * test/Makefile.am
  2910. * test/UTMetadataDataExtensionMessageTest.cc
  2911. * test/UTMetadataRejectExtensionMessageTest.cc
  2912. * test/UTMetadataRequestExtensionMessageTest.cc
  2913. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2914. Cancel segment in prepareForRetry() because there is a chance that
  2915. the command has segments.
  2916. * src/CreateRequestCommand.cc
  2917. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Fixed the bug that slow server is not knocked down in favor of
  2919. faster one.
  2920. * src/AbstractCommand.cc
  2921. * src/DefaultPieceStorage.cc
  2922. * src/DefaultPieceStorage.h
  2923. * src/PieceStorage.h
  2924. * src/UnknownLengthPieceStorage.cc
  2925. * src/UnknownLengthPieceStorage.h
  2926. * test/MockPieceStorage.h
  2927. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Fixed the bug that Request object is not added to
  2929. _inFlightRequests in findFasterRequest().
  2930. * src/FileEntry.cc
  2931. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2932. Changed the strategry of how to increase the number of outstanding
  2933. requests. Now the number is doubled if there are no outstanding
  2934. requests after receiving messages.
  2935. * src/BtConstants.h
  2936. * src/DefaultBtInteractive.cc
  2937. * src/DefaultBtInteractive.h
  2938. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2939. Check socket for reading if there are outstanding requests.
  2940. * src/PeerInteractionCommand.cc
  2941. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2942. Moved frequently called methods to header file so they get
  2943. inlined.
  2944. * src/RequestSlot.cc
  2945. * src/RequestSlot.h
  2946. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2947. Copied in_addr instead of just casting from char* which might
  2948. violate strict aliasing rules.
  2949. * src/AsyncNameResolver.cc
  2950. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2951. Use dynamic_pointer_cast
  2952. * test/BtPieceMessageTest.cc
  2953. * test/BtRequestMessageTest.cc
  2954. * test/DefaultBtRequestFactoryTest.cc
  2955. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Added testSetUrl20()
  2957. * test/RequestTest.cc
  2958. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2959. Code cleanup
  2960. * src/bittorrent_helper.cc
  2961. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. Use C++ style cast
  2963. * src/AsyncNameResolver.cc
  2964. * src/Base64.h
  2965. * src/BtBitfieldMessage.cc
  2966. * src/BtHandshakeMessage.cc
  2967. * src/DefaultBtMessageFactory.cc
  2968. * src/DefaultBtProgressInfoFile.cc
  2969. * src/EpollEventPoll.cc
  2970. * src/ExpatMetalinkProcessor.cc
  2971. * src/IteratableChecksumValidator.cc
  2972. * src/IteratableChunkChecksumValidator.cc
  2973. * src/MessageDigestHelper.cc
  2974. * src/Platform.cc
  2975. * src/RequestGroupMan.cc
  2976. * src/SingleFileAllocationIterator.cc
  2977. * src/Sqlite3MozCookieParser.cc
  2978. * src/XML2SAXMetalinkProcessor.cc
  2979. * src/Xml2XmlRpcRequestProcessor.cc
  2980. * src/util.cc
  2981. * src/util.h
  2982. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2983. Fixed integer potential alignment problem.
  2984. * src/bitfield.h
  2985. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2986. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2987. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2988. include file ordering.
  2989. * src/PeerListProcessor.h
  2990. * src/bittorrent_helper.cc
  2991. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2993. * src/Request.cc
  2994. * src/util.cc
  2995. * src/util.h
  2996. * test/RequestTest.cc
  2997. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2998. Rewritten util::uitos()
  2999. * src/util.h
  3000. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3001. Code cleanup
  3002. * src/Request.cc
  3003. * src/Request.h
  3004. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3005. Rewritten Request::parseUrl()
  3006. * src/Request.cc
  3007. * test/RequestTest.cc
  3008. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3009. Removed unused macro SAFE_CHARS
  3010. * src/Request.cc
  3011. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3012. Updated doc
  3013. * src/DHTRoutingTableDeserializer.cc
  3014. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Release 1.6.3
  3016. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. Removed unused function.
  3018. * test/DHTPeerAnnounceStorageTest.cc
  3019. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3020. Only decrement cols if cols > 0
  3021. * src/ConsoleStatCalc.cc
  3022. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3023. Updated Polish, Catalan, French, Italian, Russian and Japanese
  3024. translations. Thanks to all translators.
  3025. * po/ca.po
  3026. * po/fr.po
  3027. * po/it.po
  3028. * po/ja.po
  3029. * po/pl.po
  3030. * po/ru.po
  3031. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Updated translation template
  3033. * po
  3034. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. Fixed compile error without ssl library.
  3036. * src/util.cc
  3037. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3038. Logged received nodes in get_peers reply message.
  3039. * src/DHTAbstractNodeLookupTask.cc
  3040. * src/DHTAbstractNodeLookupTask.h
  3041. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3042. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  3043. error occurred in DHTMessageDispatcherImpl::sendMessage().
  3044. * src/DHTMessageDispatcherImpl.cc
  3045. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3046. Don't reuse URI if Request pool is not empty.
  3047. * src/CreateRequestCommand.cc
  3048. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3049. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  3050. receive get_peers request for torrent which the client is now
  3051. downloading.
  3052. * src/BtSetup.cc
  3053. * src/DHTPeerAnnounceEntry.cc
  3054. * src/DHTPeerAnnounceEntry.h
  3055. * src/DHTPeerAnnounceStorage.cc
  3056. * src/DHTPeerAnnounceStorage.h
  3057. * src/RequestGroup.cc
  3058. * test/DHTPeerAnnounceEntryTest.cc
  3059. * test/DHTPeerAnnounceStorageTest.cc
  3060. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3061. Fixed the bug that in Windows environment new blank line is
  3062. inserted when console readout is updated.
  3063. * src/ConsoleStatCalc.cc
  3064. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3065. Throw exception if binding listening port is failed. Removed
  3066. RequestGroupMan::getInitialCommand(). Use
  3067. fillRequestGroupFromReserver() instead. Delete commands for
  3068. RequestGroup which has errors when it is being added.
  3069. * src/BtSetup.cc
  3070. * src/DownloadEngine.cc
  3071. * src/DownloadEngine.h
  3072. * src/DownloadEngineFactory.cc
  3073. * src/MultiUrlRequestInfo.cc
  3074. * src/RequestGroupMan.cc
  3075. * src/RequestGroupMan.h
  3076. * test/RequestGroupManTest.cc
  3077. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3078. Fixed the bug that when downloading more than one torrent,
  3079. listening port is not reported properly to tracker for 2nd or
  3080. later torrents.
  3081. * src/BtSetup.cc
  3082. * src/PeerListenCommand.cc
  3083. * src/PeerListenCommand.h
  3084. * src/RequestGroup.cc
  3085. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3086. Bump up version number to 1.6.3
  3087. * configure.ac
  3088. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3089. Removed Util.cc from POTFILES.in
  3090. * po/POTFILES.in
  3091. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3092. Updated man page for previous change.
  3093. * doc/aria2c.1.txt
  3094. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3095. If user name is embedded but password is missing in URI, first
  3096. resolve password using .netrc. If password is found in .netrc,
  3097. then use it as password. If not, use the password specified in
  3098. --ftp-passwd.
  3099. * src/AuthConfigFactory.cc
  3100. * src/Request.cc
  3101. * src/Request.h
  3102. * test/AuthConfigFactoryTest.cc
  3103. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3104. Fixed typo
  3105. * doc/aria2c.1.txt
  3106. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3107. Fixed typo
  3108. * src/usage_text.h
  3109. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3110. Added missing bitfield.cc
  3111. * src/bitfield.cc
  3112. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3113. Renamed Util.{cc,h} as util.{cc,h}
  3114. * src/Util.cc
  3115. * src/Util.h
  3116. * src/util.cc
  3117. * src/util.h
  3118. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3119. Moved static functions in Util class to namespace util.
  3120. * src
  3121. * test
  3122. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3123. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  3124. Moved generateRandomKey to bittorrent_helper.cc.
  3125. * src/DHTBucket.cc
  3126. * src/DHTGetPeersMessage.cc
  3127. * src/DHTGetPeersReplyMessage.cc
  3128. * src/DHTMessage.cc
  3129. * src/DHTNode.cc
  3130. * src/DHTTokenTracker.cc
  3131. * src/DHTUtil.cc: Removed.
  3132. * src/DHTUtil.h: Removed.
  3133. * src/Makefile.am
  3134. * src/Util.cc
  3135. * src/Util.h
  3136. * src/bitfield.h
  3137. * src/bittorrent_helper.cc
  3138. * src/bittorrent_helper.h
  3139. * test/ARC4Test.cc
  3140. * test/BNodeTest.cc
  3141. * test/DHTAnnouncePeerMessageTest.cc
  3142. * test/DHTAnnouncePeerReplyMessageTest.cc
  3143. * test/DHTFindNodeMessageTest.cc
  3144. * test/DHTFindNodeReplyMessageTest.cc
  3145. * test/DHTGetPeersMessageTest.cc
  3146. * test/DHTGetPeersReplyMessageTest.cc
  3147. * test/DHTPingMessageTest.cc
  3148. * test/DHTPingReplyMessageTest.cc
  3149. * test/DHTTokenTrackerTest.cc
  3150. * test/DHTUtilTest.cc: Removed.
  3151. * test/Makefile.am
  3152. * test/UtilTest.cc
  3153. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3154. Removed the call to trim() because trim() is called for each
  3155. element in split().
  3156. * src/CookieParser.cc
  3157. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3158. Replaced Util::slice() with split()
  3159. * src/AbstractCommand.cc
  3160. * src/CookieParser.cc
  3161. * src/File.cc
  3162. * src/HttpHeaderProcessor.cc
  3163. * src/HttpRequest.cc
  3164. * src/Metalink2RequestGroup.cc
  3165. * src/MetalinkParserController.cc
  3166. * src/Netrc.cc
  3167. * src/NsCookieParser.cc
  3168. * src/ParameterizedStringParser.cc
  3169. * src/ServerStatMan.cc
  3170. * src/UriListParser.cc
  3171. * src/Util.cc
  3172. * src/Util.h
  3173. * src/bittorrent_helper.cc
  3174. * test/UtilTest.cc
  3175. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3176. Use request->getDir() instead of "/" for embedded user/pass in
  3177. URI.
  3178. * src/AuthConfigFactory.cc
  3179. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3180. Fixed wrong insertion point for BasicCred.
  3181. * src/AuthConfigFactory.cc
  3182. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3183. Allowed non-regular file in LocalFilePathOptionHandler
  3184. * src/OptionHandlerImpl.h
  3185. * src/message.h
  3186. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3187. Fixed the bug that Netrc::parse() cannot recognize comment line.
  3188. * src/Netrc.cc
  3189. * src/Util.h
  3190. * test/NetrcTest.cc
  3191. * test/sample.netrc
  3192. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3193. Fixed typo
  3194. * src/BtDependency.cc
  3195. * src/BtRejectMessage.cc
  3196. * src/FtpConnection.cc
  3197. * src/HttpHeaderProcessor.h
  3198. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. Fixed lintian report in man page
  3200. * doc/aria2c.1.txt
  3201. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3202. Release 1.6.2
  3203. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3204. Updated Ukrainian translation. Thanks to all translators.
  3205. * po/uk.po
  3206. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. Updated translation template
  3208. * po
  3209. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3210. Bump up version number to 1.6.2
  3211. * configure.ac
  3212. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3213. Updated licence message in -v output.
  3214. * src/version_usage.cc
  3215. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3216. Replaced aria2 with aria2c in help message.
  3217. * src/version_usage.cc
  3218. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3219. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  3220. * src/version_usage.cc
  3221. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3222. Quoted localedir
  3223. * src/Makefile.am
  3224. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3225. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  3226. utime. Check header for utime.h.
  3227. * configure.ac
  3228. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  3230. * configure.ac
  3231. * src/daemon.cc
  3232. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3233. Don't set localedir manually. Leave it to autoconf.
  3234. * configure.ac
  3235. * src/Makefile.am
  3236. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3237. Added --install to ACLOCAL_AMFLAGS.
  3238. Removed m4 from SUBDIRS.
  3239. Updated automake 1.11 and autoconf 2.64.
  3240. Replaced some obsolute macros with new one.
  3241. * Makefile.am
  3242. * configure.ac
  3243. * m4/aria2_arg.m4
  3244. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Removed Makefile.am in m4 directory.
  3246. * configure.ac
  3247. * m4/ChangeLog
  3248. * m4/Makefile.am
  3249. * m4/Makefile.in
  3250. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Removed unused m4 macros.
  3252. * m4/intldir.m4
  3253. * m4/inttypes.m4
  3254. * m4/isc-posix.m4
  3255. * m4/libgnutls-extra.m4
  3256. * m4/ulonglong.m4
  3257. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3258. Fixed the bug that causes segmentation fault if
  3259. req->getCurrentUrl() contains printf formatting characters such as
  3260. %d. The statement that causes this bug is useless and removed.
  3261. * src/AbstractCommand.cc
  3262. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3263. * Release 1.6.1
  3264. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3265. Updated Simplified Chinese translation. Thanks to translators.
  3266. * po/zh_CN.po
  3267. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3268. Updated translation template
  3269. * po
  3270. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3271. Bump up version number to 1.6.1
  3272. * configure.ac
  3273. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3274. Changed interval from 120 to 60 for dropping inactive peer.
  3275. * src/DefaultBtInteractive.cc
  3276. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3277. Updated man page for --user-agent and --peer-id-prefix option.
  3278. * doc/aria2c.1.txt
  3279. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3280. Code clean up
  3281. * src/BtPostDownloadHandler.cc
  3282. * src/ContentTypeRequestGroupCriteria.cc
  3283. * src/ContentTypeRequestGroupCriteria.h
  3284. * src/DownloadHandlerConstants.cc
  3285. * src/DownloadHandlerConstants.h
  3286. * src/DownloadHandlerFactory.cc
  3287. * src/MetalinkPostDownloadHandler.cc
  3288. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3289. Don't save control file when aria2 exists while checking piece
  3290. hash(behavior of -V option). If control file doesn't exist when
  3291. aria2 launched, the completed length in saved control file will be
  3292. 0 byte and this confuses user. disableSaveControlFile() is called
  3293. in RequestGroup::processCheckIntegrityEntry().
  3294. enableSaveControlFile() will be called after hash checking is
  3295. done. See CheckIntegrityCommand.
  3296. * src/CheckIntegrityCommand.cc
  3297. * src/RequestGroup.cc
  3298. * src/RequestGroup.h
  3299. * src/RequestGroupMan.cc
  3300. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3301. Included version number in Peer ID and client version. Peer ID
  3302. now starts with "aria2/VERSION-", where VERSION is
  3303. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  3304. * src/DefaultBtInteractive.cc
  3305. * src/OptionHandlerFactory.cc
  3306. * src/bittorrent_helper.cc
  3307. * src/bittorrent_helper.h
  3308. * src/main.cc
  3309. * src/usage_text.h
  3310. * test/BittorrentHelperTest.cc
  3311. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3312. Fixed memory leak.
  3313. * src/DownloadCommand.cc
  3314. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3315. Removed server, port, user and passwd key from options before
  3316. XMLRPC::Client.call since they are not options of aria2.
  3317. * doc/xmlrpc/aria2mon
  3318. * doc/xmlrpc/aria2rpc
  3319. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3320. Included version number in user-agent string.
  3321. * src/OptionHandlerFactory.cc
  3322. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3323. Fixed the bug that the option values changed by XML-RPC
  3324. method(changeOption and changeGlobalOption) are overwritten to the
  3325. previous value by the next these request which doesn't contain
  3326. that option value. Supporse max-download-limit is initially 0. You
  3327. changed this value to 100K by changeOption. Then you issue
  3328. changeOption request to change max-upload-limit to 50K. This
  3329. second request doesn't contain xml-download-limit, so it is back
  3330. to initial value, 0. Another improvement is that exception is
  3331. thrown when changeOption and changeGlobalOption request contains
  3332. option name which doesn't allowed in each request.
  3333. * src/DownloadEngine.h
  3334. * src/XmlRpcMethod.cc
  3335. * src/XmlRpcMethod.h
  3336. * src/XmlRpcMethodImpl.cc
  3337. * src/download_helper.cc
  3338. * src/download_helper.h
  3339. * test/XmlRpcMethodTest.cc
  3340. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3341. Added missing MetalinkParserStateImpl.{cc,h}
  3342. * src/MetalinkParserStateImpl.cc
  3343. * src/MetalinkParserStateImpl.h
  3344. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3345. Put all MetalinkParserState subclasses into
  3346. MetalinkParserStateImpl.cc. Use stack to track element structure.
  3347. * src/FileMetalinkParserState.cc: Removed
  3348. * src/FileMetalinkParserState.h: Removed
  3349. * src/FilesMetalinkParserState.cc: Removed
  3350. * src/FilesMetalinkParserState.h: Removed
  3351. * src/FinMetalinkParserState.cc: Removed
  3352. * src/FinMetalinkParserState.h: Removed
  3353. * src/HashMetalinkParserState.cc: Removed
  3354. * src/HashMetalinkParserState.h: Removed
  3355. * src/InitialMetalinkParserState.cc: Removed
  3356. * src/InitialMetalinkParserState.h: Removed
  3357. * src/LanguageMetalinkParserState.cc: Removed
  3358. * src/LanguageMetalinkParserState.h: Removed
  3359. * src/Makefile.am
  3360. * src/MetalinkMetalinkParserState.cc: Removed
  3361. * src/MetalinkMetalinkParserState.h: Removed
  3362. * src/MetalinkParserState.h
  3363. * src/MetalinkParserStateMachine.cc
  3364. * src/MetalinkParserStateMachine.h
  3365. * src/OSMetalinkParserState.cc: Removed
  3366. * src/OSMetalinkParserState.h: Removed
  3367. * src/PieceHashMetalinkParserState.cc: Removed
  3368. * src/PieceHashMetalinkParserState.h: Removed
  3369. * src/PiecesMetalinkParserState.cc: Removed
  3370. * src/PiecesMetalinkParserState.h: Removed
  3371. * src/ResourcesMetalinkParserState.cc: Removed
  3372. * src/ResourcesMetalinkParserState.h: Removed
  3373. * src/SignatureMetalinkParserState.cc: Removed
  3374. * src/SignatureMetalinkParserState.h: Removed
  3375. * src/SizeMetalinkParserState.cc: Removed
  3376. * src/SizeMetalinkParserState.h: Removed
  3377. * src/SkipTagMetalinkParserState.cc: Removed
  3378. * src/SkipTagMetalinkParserState.h: Removed
  3379. * src/URLMetalinkParserState.cc: Removed
  3380. * src/URLMetalinkParserState.h: Removed
  3381. * src/VerificationMetalinkParserState.cc: Removed
  3382. * src/VerificationMetalinkParserState.h: Removed
  3383. * src/VersionMetalinkParserState.cc: Removed
  3384. * src/VersionMetalinkParserState.h: Removed
  3385. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3386. Move all functions in PeerMessageUtil to bittorrent_helper.
  3387. * src/BtBitfieldMessage.cc
  3388. * src/BtBitfieldMessageValidator.h
  3389. * src/BtExtendedMessage.cc
  3390. * src/BtHandshakeMessage.cc
  3391. * src/BtHandshakeMessageValidator.h
  3392. * src/BtPieceMessage.cc
  3393. * src/BtPieceMessageValidator.h
  3394. * src/BtPortMessage.cc
  3395. * src/DHTFindNodeReplyMessage.cc
  3396. * src/DHTGetPeersReplyMessage.cc
  3397. * src/DHTMessageFactoryImpl.cc
  3398. * src/DHTRoutingTableDeserializer.cc
  3399. * src/DHTRoutingTableSerializer.cc
  3400. * src/DHTTokenTracker.cc
  3401. * src/DefaultBtMessageFactory.cc
  3402. * src/IndexBtMessage.cc
  3403. * src/IndexBtMessage.h
  3404. * src/IndexBtMessageValidator.h
  3405. * src/Makefile.am
  3406. * src/PeerMessageUtil.cc: Removed.
  3407. * src/PeerMessageUtil.h: Removed.
  3408. * src/RangeBtMessage.cc
  3409. * src/RangeBtMessage.h
  3410. * src/RangeBtMessageValidator.h
  3411. * src/UTPexExtensionMessage.cc
  3412. * src/ZeroBtMessage.cc
  3413. * src/ZeroBtMessage.h
  3414. * src/bittorrent_helper.cc
  3415. * src/bittorrent_helper.h
  3416. * test/BittorrentHelperTest.cc
  3417. * test/BtAllowedFastMessageTest.cc
  3418. * test/BtBitfieldMessageTest.cc
  3419. * test/BtCancelMessageTest.cc
  3420. * test/BtChokeMessageTest.cc
  3421. * test/BtExtendedMessageTest.cc
  3422. * test/BtHandshakeMessageTest.cc
  3423. * test/BtHaveAllMessageTest.cc
  3424. * test/BtHaveMessageTest.cc
  3425. * test/BtHaveNoneMessageTest.cc
  3426. * test/BtInterestedMessageTest.cc
  3427. * test/BtNotInterestedMessageTest.cc
  3428. * test/BtPieceMessageTest.cc
  3429. * test/BtPortMessageTest.cc
  3430. * test/BtRejectMessageTest.cc
  3431. * test/BtRequestMessageTest.cc
  3432. * test/BtSuggestPieceMessageTest.cc
  3433. * test/BtUnchokeMessageTest.cc
  3434. * test/DHTFindNodeReplyMessageTest.cc
  3435. * test/DHTGetPeersReplyMessageTest.cc
  3436. * test/DHTMessageFactoryImplTest.cc
  3437. * test/DHTRoutingTableDeserializerTest.cc
  3438. * test/DHTRoutingTableSerializerTest.cc
  3439. * test/DefaultBtMessageFactoryTest.cc
  3440. * test/DefaultExtensionMessageFactoryTest.cc
  3441. * test/Makefile.am
  3442. * test/PeerListProcessorTest.cc
  3443. * test/PeerMessageUtilTest.cc: Removed.
  3444. * test/UTPexExtensionMessageTest.cc
  3445. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3446. Limit the size of values list when sending get_peers reply.
  3447. * src/DHTGetPeersReplyMessage.cc
  3448. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Updated banner
  3450. * doc/xmlrpc/aria2rpc
  3451. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3452. Added missing help message for remove command.
  3453. * doc/xmlrpc/aria2rpc
  3454. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3455. Generated configure and config.h.in
  3456. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  3457. Add check for fork(), which is missing on MinGW
  3458. * src/daemon.cc
  3459. * configure.ac
  3460. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3461. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  3462. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  3463. Util::httpGMT().
  3464. * src/Util.cc
  3465. * src/Util.h
  3466. * test/UtilTest.cc
  3467. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3468. * Release 1.6.0
  3469. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3470. Fixed a path to xmlrpc/README.txt
  3471. * doc/Makefile.am
  3472. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3473. Added XML-RPC in -v Configuration output.
  3474. * src/FeatureConfig.cc
  3475. * src/FeatureConfig.h
  3476. * test/FeatureConfigTest.cc
  3477. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3478. Updated Bulgarian, Russian, Slovak and Japanese
  3479. translations. Thanks to all translators.
  3480. * po/bg.po
  3481. * po/ja.po
  3482. * po/ru.po
  3483. * po/sk.po
  3484. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3485. Removed --retry-wait option from aria2rpc
  3486. * doc/xmlrpc/aria2rpc
  3487. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3488. Removed --retry-wait option from man page.
  3489. * doc/aria2c.1.txt
  3490. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3491. Removed --retry-wait option since the current architecture doesn't
  3492. allow sleep for particular URI.
  3493. * src/AbstractCommand.cc
  3494. * src/OptionHandlerFactory.cc
  3495. * src/download_helper.cc
  3496. * src/prefs.cc
  3497. * src/prefs.h
  3498. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3499. Removed Retry-After header support. Since the current architecture
  3500. doesn't allow sleep for particular URI.
  3501. * src/HttpSkipResponseCommand.cc
  3502. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3503. Updated the help message for --daemon option.
  3504. * doc/aria2c.1.txt
  3505. * src/usage_text.h
  3506. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3507. Added our own daemon() function for systems which desn't have
  3508. daemon(3).
  3509. * configure.ac
  3510. * src/Makefile.am
  3511. * src/daemon.cc
  3512. * src/daemon.h
  3513. * src/option_processing.cc
  3514. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3515. Simplified File::getCurrentDir()
  3516. * src/File.cc
  3517. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3518. Use exit() instead of _exit
  3519. * src/RequestGroupMan.cc
  3520. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3521. Replaced "CATEGORY" with "TAGS".
  3522. * src/usage_text.h
  3523. * doc/aria2c.1.txt
  3524. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3525. Updated the help message for --help option.
  3526. * src/usage_text.h
  3527. * doc/aria2c.1.txt
  3528. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Updated man page for added help tags.
  3530. * doc/aria2c.1.txt
  3531. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3532. Added help category #file. Added #file tag to the options related
  3533. to downloaded file.
  3534. * src/OptionHandlerFactory.cc
  3535. * src/help_tags.h
  3536. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3537. Added help categories: #cookie and #hook. Added #https tag to
  3538. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  3539. * src/OptionHandlerFactory.cc
  3540. * src/help_tags.h
  3541. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3542. Made MSG_NOT_FILE translatable.
  3543. * src/message.h
  3544. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3545. Updated man page for --help option.
  3546. * doc/aria2c.1.txt
  3547. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3548. Updated doc.
  3549. * src/XmlRpcMethod.h
  3550. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3551. Help category now starts with "#" to distinguish a category from
  3552. keyword search. For example, "http" categroy is now "#http". You
  3553. can type "--help=#http" to get explanation of options related to
  3554. http. If '#' is omitted, then the argument is treated as a keyword
  3555. and aria2 searches options whose name includes the keyword and
  3556. print matched ones. For example, "--help=http" will show options
  3557. whose name includes "http".
  3558. * src/OptionHandlerFactory.cc
  3559. * src/help_tags.h
  3560. * src/usage_text.h
  3561. * src/version_usage.cc
  3562. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3563. Documented missing experimental tag and newly added xml-rpc tag in
  3564. man page.
  3565. * doc/aria2c.1.txt
  3566. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3567. Added xml-rpc help tag. Tagged xml-rpc related options with
  3568. xml-rpc tag.
  3569. * src/OptionHandlerFactory.cc
  3570. * src/help_tags.h
  3571. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3572. Updated message when a path is not a file. Updated common message
  3573. for wrong option.
  3574. * src/OptionHandlerException.cc
  3575. * src/message.h
  3576. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3577. Use File::isFile() instead of File::exists(). Updated message when
  3578. a path is not a file.
  3579. * src/OptionHandlerImpl.cc
  3580. * src/message.h
  3581. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3582. Fixed the bug that server performence profile is not updated when
  3583. aria2c was terminated by emergency shutdown.
  3584. * src/TrackerWatcherCommand.cc
  3585. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3586. Use LocalFilePathOptionHandler for -T and -M option.
  3587. Updated message of MSG_FILE_NOT_EXIST.
  3588. * src/OptionHandlerFactory.cc
  3589. * src/message.h
  3590. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Added LocalFilePathOptionHandler which check whether the specified
  3592. file path does exist or not.
  3593. * src/OptionHandlerImpl.cc
  3594. * src/message.h
  3595. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3596. Updated wiki page URI.
  3597. * README
  3598. * doc/aria2c.1.txt
  3599. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3600. Added README.txt for xmlrpc directory.
  3601. * doc/Makefile.am
  3602. * doc/xmlrpc/README.txt
  3603. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3604. Bump up version number to 1.6.0.
  3605. * configure.ac
  3606. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3607. Added XML-RPC client scripts written in ruby.
  3608. * doc/Makefile.am
  3609. * doc/xmlrpc/aria2mon
  3610. * doc/xmlrpc/aria2rpc
  3611. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3612. Added support for IPv6 literal address in URI. Now aria2 can
  3613. handle URI such as http://[::1]/
  3614. * src/HttpRequest.cc
  3615. * src/HttpRequest.h
  3616. * src/Request.cc
  3617. * src/Request.h
  3618. * test/HttpRequestTest.cc
  3619. * test/OptionHandlerTest.cc
  3620. * test/RequestTest.cc
  3621. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3622. Fixed the bug that HTTP request header for XML-RPC request is not
  3623. parsed properly.
  3624. * src/HttpHeader.cc
  3625. * src/HttpHeaderProcessor.cc
  3626. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3627. Fixed the bug that XML-RPC authorization might be done before HTTP
  3628. request header is fully received.
  3629. * src/HttpServerCommand.cc
  3630. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3631. Documented --xml-rpc-listen-all option in man page.
  3632. * doc/aria2c.1.txt
  3633. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3634. Added --xml-rpc-listen-all option. If true is given to this
  3635. option, aria2 listens incoming XML-RPC requests on all network
  3636. interfaces. If false is given, listens only on local loopback
  3637. interface. The default value is false.
  3638. * src/HttpListenCommand.cc
  3639. * src/OptionHandlerFactory.cc
  3640. * src/SocketCore.cc
  3641. * src/SocketCore.h
  3642. * src/prefs.cc
  3643. * src/prefs.h
  3644. * src/usage_text.h
  3645. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3646. * Release 1.5.2
  3647. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3648. Updated Ukrainian and Russian translations. Thanks to all
  3649. translators.
  3650. * po/ru.po
  3651. * po/uk.po
  3652. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3653. Bump up version number to 1.5.2
  3654. * configure.ac
  3655. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3656. Get comment, comment.utf-8, created by and creation date from
  3657. .torrent file and print them in -S output.
  3658. * src/bittorrent_helper.cc
  3659. * src/bittorrent_helper.h
  3660. * test/BittorrentHelperTest.cc
  3661. * test/test.torrent
  3662. * test/utf8.torrent
  3663. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Show exact file size along in -S option output.
  3665. * src/Util.h
  3666. * src/bittorrent_helper.cc
  3667. * test/UtilTest.cc
  3668. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3669. Avoided unnecessary memory allocation in
  3670. BitfieldMan::getCompletedLength().
  3671. * src/BitfieldMan.cc
  3672. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3673. Fixed the bug that download fails if
  3674. SocketCore::establishConnection() throws exception and aria2
  3675. doesn't try another address.
  3676. * src/AbstractCommand.cc
  3677. * src/InitiateConnectionCommand.cc
  3678. * src/message.h
  3679. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3680. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  3681. detected properly.
  3682. * m4/sqlite3.m4
  3683. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3684. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  3685. because it causes compile error if PARAMS macro is defined.
  3686. * src/XmlRpcElements.cc
  3687. * src/XmlRpcElements.h
  3688. * src/XmlRpcRequestParserStateImpl.cc
  3689. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3690. * Release 1.5.1
  3691. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3692. Bump up version number to 1.5.1
  3693. * configure.ac
  3694. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3695. Fixed compile error without BitTorrent support
  3696. * src/DefaultBtProgressInfoFile.cc
  3697. * src/DownloadEngine.cc
  3698. * src/DownloadEngine.h
  3699. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3700. Added missing '=' in Download Results
  3701. * src/RequestGroupMan.cc
  3702. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3703. Fixed compiler warning
  3704. * src/DefaultBtProgressInfoFile.cc
  3705. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. Fixed compiler warning on 32bit systems.
  3707. * src/DownloadCommand.cc
  3708. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3709. Call flush from ServerStatMan::save()
  3710. * src/ServerStatMan.cc
  3711. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3712. Check stream status after file is opened.
  3713. * src/CookieStorage.cc
  3714. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3715. Rewritten Signature::save()
  3716. * src/Signature.cc
  3717. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3718. Rewritten RequestGroupMan::saveServerStat()
  3719. * src/RequestGroupMan.cc
  3720. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3721. Rewritten stream error handling
  3722. * src/DHTAutoSaveCommand.cc
  3723. * src/DHTRoutingTableDeserializer.cc
  3724. * src/DHTRoutingTableSerializer.cc
  3725. * src/DHTSetup.cc
  3726. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3727. Check stream status after file is opened.
  3728. * src/DefaultBtProgressInfoFile.cc
  3729. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3730. Rewritten stream error handling
  3731. * src/DefaultBtProgressInfoFile.cc
  3732. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3733. Make sure that stream is closed before renaming file. Unit test
  3734. fails on mingw32 in the previous implementation.
  3735. * src/CookieStorage.cc
  3736. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3737. Fixed the unit test error without sqlite3
  3738. * test/CookieStorageTest.cc
  3739. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Fixed the undefined reference error
  3741. * test/HttpResponseTest.cc
  3742. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3743. * Release 1.5.0
  3744. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3745. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  3746. Ukrainian translations. Thanks to all translators.
  3747. * po/ru.po
  3748. * po/it.po
  3749. * po/da.po
  3750. * po/bg.po
  3751. * po/ja.po
  3752. * po/uk.po
  3753. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3754. Added missing src/Logger.cc
  3755. * src/Logger.cc
  3756. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3757. Rewritten Logger to avoiding constly virtual call.
  3758. * src/LogFactory.cc
  3759. * src/LogFactory.h
  3760. * src/Logger.h
  3761. * src/Makefile.am
  3762. * src/Makefile.in
  3763. * src/NullLogger.h: Removed.
  3764. * src/SimpleLogger.cc
  3765. * src/SimpleLogger.h
  3766. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3767. Updated doc
  3768. * src/main.cc
  3769. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3770. Updated debug log message
  3771. * src/AbstractCommand.cc
  3772. * src/message.h
  3773. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3774. Avoid to create zombie process when commands specified in
  3775. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  3776. X and NetBSD.
  3777. * src/main.cc
  3778. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3779. Fixed typo
  3780. * src/usage_text.h
  3781. * doc/aria2c.1.txt
  3782. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Documented 'errorCode' of tellStatus in man page.
  3784. * doc/aria2c.1.txt
  3785. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  3787. This key is only available for stopped/completed downloads and its
  3788. value is the error code defined in EXIT STATUS in man page.
  3789. * src/XmlRpcMethodImpl.cc
  3790. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3791. Fixed the bug that session download length is not updated when
  3792. PeerStat is not fastest one.
  3793. * src/SegmentMan.cc
  3794. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3795. Updated doc.
  3796. * doc/aria2c.1.txt
  3797. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3798. Updated doc.
  3799. * src/AbstractCommand.cc
  3800. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3801. Handle the case when DownloadContext has no FileEntry.
  3802. * src/XmlRpcMethodImpl.cc
  3803. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3804. Handle the situation where struct option.name is char *.
  3805. * configure.ac
  3806. * src/OptionParser.cc
  3807. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3808. Code cleanup
  3809. * src/AbstractCommand.cc
  3810. * src/DownloadCommand.cc
  3811. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3812. Use option of each download to create AuthConfig instead of global
  3813. option.
  3814. * src/AuthConfigFactory.cc
  3815. * src/AuthConfigFactory.h
  3816. * src/FtpNegotiationCommand.cc
  3817. * src/HttpRequest.cc
  3818. * src/HttpRequest.h
  3819. * src/HttpRequestCommand.cc
  3820. * src/HttpSkipResponseCommand.cc
  3821. * src/MultiUrlRequestInfo.cc
  3822. * test/AuthConfigFactoryTest.cc
  3823. * test/FtpConnectionTest.cc
  3824. * test/HttpRequestTest.cc
  3825. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3826. Don't call prepareForRetry(1) if all segments are ignored in
  3827. SegmentMan.
  3828. * src/AbstractCommand.cc
  3829. * src/BitfieldMan.cc
  3830. * src/BitfieldMan.h
  3831. * src/SegmentMan.cc
  3832. * src/SegmentMan.h
  3833. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3834. Removed FileEntry::getAssociatedUris()
  3835. * src/FileEntry.h
  3836. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3837. Updated doc: TODO1.5 -> TODO
  3838. * src/FileEntry.cc
  3839. * src/HttpResponseCommand.cc
  3840. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3842. involved.
  3843. * src/RequestGroup.cc
  3844. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3845. Eliminated duplicated filterBitfield initialization code.
  3846. * src/BitfieldMan.cc
  3847. * src/BitfieldMan.h
  3848. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3849. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3850. relatively naive approach, though). For DownloadFailureException,
  3851. we handle the case when req is null properly.
  3852. * src/AbstractCommand.cc
  3853. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3854. Added function returning suffix of control file to
  3855. DefaultBtProgressInfoFile.
  3856. * src/DefaultBtProgressInfoFile.cc
  3857. * src/DefaultBtProgressInfoFile.h
  3858. * src/RequestGroup.cc
  3859. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3860. Documented getVersion in man page.
  3861. * doc/aria2c.1.txt
  3862. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3863. Documented type of offset and num for tellWaiting xml-rpc method.
  3864. * doc/aria2c.1.txt
  3865. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3866. Implemented getVersion xml-rpc method. This method returns struct
  3867. which has 2 key-value pairs: "version" key is associated to the
  3868. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3869. associated to the list of enabled features, such as "Async DNS",
  3870. "BitTorrent".
  3871. * src/FeatureConfig.h
  3872. * src/XmlRpcMethodFactory.cc
  3873. * src/XmlRpcMethodImpl.cc
  3874. * src/XmlRpcMethodImpl.h
  3875. * test/XmlRpcMethodTest.cc
  3876. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3877. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3878. for compatibility issue.
  3879. * src/SocketCore.cc
  3880. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3881. Fixed compile error with openSSL
  3882. * src/bittorrent_helper.cc
  3883. * src/messageDigest.h
  3884. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3885. Removed bad code: setting certificate type priority to key
  3886. exchange priority.
  3887. * src/SocketCore.cc
  3888. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3889. Disconnect seeder if client is also in seed state.
  3890. * src/BtBitfieldMessage.cc
  3891. * src/BtHaveAllMessage.cc
  3892. * src/BtHaveMessage.cc
  3893. * src/message.h
  3894. * test/BtBitfieldMessageTest.cc
  3895. * test/BtHaveAllMessageTest.cc
  3896. * test/BtHaveMessageTest.cc
  3897. * test/MockPieceStorage.h
  3898. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3899. Keep CreateRequestCommand in queue when no segment is available so
  3900. that they can pick up pieces which slow BitTorrent peers are
  3901. downloading.
  3902. * src/AbstractCommand.cc
  3903. * src/CreateRequestCommand.cc
  3904. * src/CreateRequestCommand.h
  3905. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3906. --bt-stop-timeout now only checks download speed.
  3907. * src/BtStopDownloadCommand.cc
  3908. * src/BtStopDownloadCommand.h
  3909. * src/BtSetup.cc
  3910. * src/usage_text.h
  3911. * doc/aria2c.1.txt
  3912. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3913. Fixed compile error regarding BUFSIZE.
  3914. * src/DownloadCommand.cc
  3915. * src/DownloadCommand.h
  3916. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3917. Documented tellWaiting xml-rpc method in man page.
  3918. * doc/aria2c.1.txt
  3919. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. Bump up version number to 1.5.0
  3921. * configure.ac
  3922. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. Removed resolved TODO1.5
  3924. * src/AbstractCommand.cc
  3925. * src/DownloadCommand.cc
  3926. * src/RequestGroup.cc
  3927. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3928. Release pooled and in-flight Request objectsand URIResult objects
  3929. in FileEntry after download completed.
  3930. * src/DownloadContext.cc
  3931. * src/DownloadContext.h
  3932. * src/FileEntry.cc
  3933. * src/FileEntry.h
  3934. * src/RequestGroup.cc
  3935. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3936. Set manual and source attribute in aria2c.1.txt
  3937. * doc/aria2c.1.txt
  3938. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3939. Documented that the default value of --use-head is 'false' in man
  3940. page.
  3941. * doc/aria2c.1.txt
  3942. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3943. Added bt-stop-timeout option to -i list.
  3944. * doc/aria2c.1.txt
  3945. * src/download_helper.cc
  3946. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3947. Fixed typo
  3948. * doc/aria2c.1.txt
  3949. * src/usage_text.h
  3950. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3951. Removed peer-id-prefix option from -i list.
  3952. * doc/aria2c.1.txt
  3953. * src/download_helper.cc
  3954. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3955. Fixed typo
  3956. * doc/aria2c.1.txt
  3957. * src/usage_text.h
  3958. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3959. Documented --bt-stop-timeout option in man page.
  3960. * doc/aria2c.1.txt
  3961. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3962. Updated README regarding multi-file torrent web-seeding.
  3963. * doc/README.txt
  3964. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3965. Updated man page regarding multi-file torrent web-seeding.
  3966. * doc/aria2c.1.txt
  3967. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3968. Updated doc
  3969. * src/version_usage.cc
  3970. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3971. Winsock select() doesn't work if no socket is in FD_SET. To
  3972. overcome this problem, a dummy socket is added to FD_SET and it is
  3973. given to select().
  3974. * src/SelectEventPoll.cc
  3975. * src/SelectEventPoll.h
  3976. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. Disabled --use-head option by default because --use-head=true
  3978. causes problems on some web sites.
  3979. * src/OptionHandlerFactory.cc
  3980. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3981. Print URL List in -S option for torrent.
  3982. * src/bittorrent_helper.cc
  3983. * src/bittorrent_helper.h
  3984. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3985. Allocate buffer in ctor of DownloadCommand.
  3986. * src/DownloadCommand.cc
  3987. * src/DownloadCommand.h
  3988. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3989. Removed DiskAdaptor::onDownloadComplete()
  3990. * src/DirectDiskAdaptor.cc
  3991. * src/DirectDiskAdaptor.h
  3992. * src/DiskAdaptor.h
  3993. * src/MultiDiskAdaptor.cc
  3994. * src/MultiDiskAdaptor.h
  3995. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Committed missing BtStopDownloadCommand.{cc,h}
  3997. * src/BtStopDownloadCommand.cc
  3998. * src/BtStopDownloadCommand.h
  3999. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4000. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  4001. download if the download speed is 0 and the number of seeder is 0
  4002. in consecutive SEC seconds. By default, this function is disabled.
  4003. * src/BtSetup.cc
  4004. * src/Makefile.am
  4005. * src/OptionHandlerFactory.cc
  4006. * src/prefs.cc
  4007. * src/prefs.h
  4008. * src/usage_text.h
  4009. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4010. Removed the call to DiskAdaptor::onDownloadComplete() from
  4011. BtCheckIntegrityEntry and DefaultPieceStorage.
  4012. * src/BtCheckIntegrityEntry.cc
  4013. * src/DefaultPieceStorage.cc
  4014. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4015. Commented out throw statements when number of piece is 0 to
  4016. download 0 length torrent.
  4017. * src/bittorrent_helper.cc
  4018. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4019. Call RequestGroup::createNextCommandWithAdj() from
  4020. BtFileAllocationEntry if at least one FileEntry has URI. The
  4021. static function hasAssociatedUri in RequestGroup.cc is renamed as
  4022. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  4023. * src/BtFileAllocationEntry.cc
  4024. * src/FileEntry.h
  4025. * src/RequestGroup.cc
  4026. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4027. Generate peer ID after SimpleRandomizer is initialized.
  4028. * src/main.cc
  4029. * src/option_processing.cc
  4030. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4031. Removed unused method argument.
  4032. * src/CreateRequestCommand.cc
  4033. * src/RequestGroup.cc
  4034. * src/RequestGroup.h
  4035. * src/RequestGroupMan.cc
  4036. * src/TrackerWatcherCommand.cc
  4037. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4038. Made URI reusing function work.
  4039. * src/CreateRequestCommand.cc
  4040. * src/FileEntry.cc
  4041. * src/FileEntry.h
  4042. * test/FileEntryTest.cc
  4043. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4044. Add formerly fastest PeerStat's sessionDownloadLength to new
  4045. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  4046. bytes in a session.
  4047. * src/PeerStat.cc
  4048. * src/SegmentMan.cc
  4049. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4050. If pipelining is enabled, we can always pool socket.
  4051. * src/HttpDownloadCommand.cc
  4052. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4053. In a single file download, file size becomes known just after
  4054. downloading, set total length to FileEntry object when download
  4055. completed.
  4056. * src/DownloadCommand.cc
  4057. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4058. Use std::vector::reserve() for fileEntries and pieceHashes in
  4059. bittorrent_helper
  4060. * src/bittorrent_helper.cc
  4061. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4062. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  4063. Removed hidden option PREF_RESET_URI.
  4064. * src/AbstractCommand.cc
  4065. * src/OptionHandlerFactory.cc
  4066. * src/prefs.cc
  4067. * src/prefs.h
  4068. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4069. Removed unused variable/function.
  4070. * src/PeerStat.h
  4071. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4072. Show first URL in Download Results if file path is not available.
  4073. * src/FileEntry.h
  4074. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4075. Throw exception if file path doesn't exist in FTP URL.
  4076. * src/InitiateConnectionCommandFactory.cc
  4077. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4078. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  4079. * src/BitfieldMan.cc
  4080. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4081. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  4082. of PeerStat in SegmentMan. peerStats is used for calculating
  4083. download speed. Therefore all active PeerStats should be in
  4084. there. Another one is _fastestPeerStats and it only contains
  4085. fastest PeerStat for each hostname/protocol pair. They are used
  4086. for updating ServerStat.
  4087. * src/DownloadCommand.cc
  4088. * src/Request.h
  4089. * src/RequestGroupMan.cc
  4090. * src/SegmentMan.cc
  4091. * src/SegmentMan.h
  4092. * test/SegmentManTest.cc
  4093. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4094. Try all available addresses returned by DNS until it gets
  4095. connected in HTTP(S)/FTP download
  4096. * src/AbstractCommand.cc
  4097. * src/AbstractCommand.h
  4098. * src/AbstractProxyRequestCommand.cc
  4099. * src/AbstractProxyRequestCommand.h
  4100. * src/DNSCache.h
  4101. * src/DownloadEngine.cc
  4102. * src/DownloadEngine.h
  4103. * src/FtpInitiateConnectionCommand.cc
  4104. * src/FtpInitiateConnectionCommand.h
  4105. * src/FtpNegotiationCommand.cc
  4106. * src/FtpNegotiationCommand.h
  4107. * src/HttpInitiateConnectionCommand.cc
  4108. * src/HttpInitiateConnectionCommand.h
  4109. * src/HttpRequestCommand.cc
  4110. * src/HttpRequestCommand.h
  4111. * src/InitiateConnectionCommand.cc
  4112. * src/InitiateConnectionCommand.h
  4113. * test/DNSCacheTest.cc
  4114. * test/Makefile.am
  4115. * test/SimpleDNSCacheTest.cc
  4116. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4117. Updated doc
  4118. * src/download_helper.cc
  4119. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4120. Refactored fieldMan ctor.
  4121. * src/BitfieldMan.cc
  4122. * src/BitfieldMan.h
  4123. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4124. Don't print "No files to download." message if -S is given.
  4125. * src/main.cc
  4126. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4127. Set referer and method to newly created Request object.
  4128. * src/CreateRequestCommand.cc
  4129. * src/FileEntry.cc
  4130. * src/FileEntry.h
  4131. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4132. Removed ctor of AbstractCommand which doesn't take FileEntry.
  4133. * src/AbstractCommand.cc
  4134. * src/AbstractCommand.h
  4135. * src/CreateRequestCommand.cc
  4136. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4137. Get proxy download working
  4138. * src/AbstractProxyRequestCommand.cc
  4139. * src/AbstractProxyRequestCommand.h
  4140. * src/AbstractProxyResponseCommand.cc
  4141. * src/AbstractProxyResponseCommand.h
  4142. * src/FtpInitiateConnectionCommand.cc
  4143. * src/FtpTunnelRequestCommand.cc
  4144. * src/FtpTunnelRequestCommand.h
  4145. * src/FtpTunnelResponseCommand.cc
  4146. * src/FtpTunnelResponseCommand.h
  4147. * src/HttpInitiateConnectionCommand.cc
  4148. * src/HttpProxyRequestCommand.cc
  4149. * src/HttpProxyRequestCommand.h
  4150. * src/HttpProxyResponseCommand.cc
  4151. * src/HttpProxyResponseCommand.h
  4152. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4153. Use SegmentMan::getSegment(cuid) for single file download.
  4154. * src/AbstractCommand.cc
  4155. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4156. Fixed bufSize calculation
  4157. * src/DownloadCommand.cc
  4158. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4159. Don't append "/" if base URI ends with "/".
  4160. * src/bittorrent_helper.cc
  4161. * test/url-list-multiFile.torrent
  4162. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4163. HTTP pipelining is now working. Fixed Segmention fault in
  4164. BitfieldMan's copy ctor.
  4165. * src/AbstractCommand.cc
  4166. * src/BitfieldMan.cc
  4167. * src/BitfieldMan.h
  4168. * src/DownloadCommand.cc
  4169. * src/HttpDownloadCommand.cc
  4170. * src/HttpRequest.cc
  4171. * src/SegmentMan.cc
  4172. * src/SegmentMan.h
  4173. * test/BitfieldManTest.cc
  4174. * test/SegmentManTest.cc
  4175. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4176. Removed ServerHost. Same functionality is implemented using
  4177. FileEntry's in-flight Request objects.
  4178. * src/AbstractCommand.cc
  4179. * src/BtDependency.cc
  4180. * src/CreateRequestCommand.cc
  4181. * src/FileEntry.cc
  4182. * src/FileEntry.h
  4183. * src/FtpNegotiationCommand.cc
  4184. * src/HttpResponseCommand.cc
  4185. * src/Makefile.am
  4186. * src/Metalink2RequestGroup.cc
  4187. * src/RequestGroup.cc
  4188. * src/RequestGroup.h
  4189. * src/ServerHost.cc: Removed
  4190. * src/ServerHost.h: Removed
  4191. * test/BtDependencyTest.cc
  4192. * test/FileEntryTest.cc
  4193. * test/RequestGroupTest.cc
  4194. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4195. Rewritten PeerStat handling. In the previous implementation,
  4196. faster command tries to find slower command. In this new
  4197. implementation, slower command tries to find faster command.
  4198. PeerStat is now created in each HTTP/FTP request to get download
  4199. rate correctly. If the download range is small, the download rate
  4200. tends to small and this will occur at the later stage of download.
  4201. * src/AbstractCommand.cc
  4202. * src/DownloadCommand.cc
  4203. * src/FileEntry.cc
  4204. * src/FileEntry.h
  4205. * src/Request.cc
  4206. * src/Request.h
  4207. * src/RequestGroup.h
  4208. * src/RequestGroupMan.cc
  4209. * src/SegmentMan.cc
  4210. * src/SegmentMan.h
  4211. * test/SegmentManTest.cc
  4212. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4213. Removed _uris from RequestGroup. All functions that refer to _uris
  4214. were moved to FileEntry. Exit status code are now defined in
  4215. DownloadResultCode.h.
  4216. * src/AbstractCommand.cc
  4217. * src/AdaptiveURISelector.cc
  4218. * src/AdaptiveURISelector.h
  4219. * src/AutoSaveCommand.cc
  4220. * src/BtPostDownloadHandler.cc
  4221. * src/CheckIntegrityDispatcherCommand.cc
  4222. * src/CookieStorage.cc
  4223. * src/DHTAutoSaveCommand.cc
  4224. * src/DHTBucketRefreshCommand.cc
  4225. * src/DHTEntryPointNameResolveCommand.cc
  4226. * src/DHTInteractionCommand.cc
  4227. * src/DHTPeerAnnounceCommand.cc
  4228. * src/DHTTokenUpdateCommand.cc
  4229. * src/DlAbortEx.h
  4230. * src/DlRetryEx.h
  4231. * src/DownloadCommand.cc
  4232. * src/DownloadContext.h
  4233. * src/DownloadFailureException.h
  4234. * src/DownloadResult.h
  4235. * src/DownloadResultCode.h
  4236. * src/FeedbackURISelector.cc
  4237. * src/FeedbackURISelector.h
  4238. * src/FileEntry.cc
  4239. * src/FileEntry.h
  4240. * src/FtpNegotiationCommand.cc
  4241. * src/HttpListenCommand.cc
  4242. * src/HttpResponseCommand.cc
  4243. * src/HttpServerResponseCommand.cc
  4244. * src/HttpSkipResponseCommand.cc
  4245. * src/InOrderURISelector.cc
  4246. * src/InOrderURISelector.h
  4247. * src/Makefile.am
  4248. * src/Makefile.in
  4249. * src/Metalink2RequestGroup.cc
  4250. * src/MultiUrlRequestInfo.cc
  4251. * src/MultiUrlRequestInfo.h
  4252. * src/OptionHandlerFactory.cc
  4253. * src/PeerListenCommand.cc
  4254. * src/RecoverableException.h
  4255. * src/RequestGroup.cc
  4256. * src/RequestGroup.h
  4257. * src/RequestGroupMan.cc
  4258. * src/RequestGroupMan.h
  4259. * src/TimedHaltCommand.cc
  4260. * src/TrackerWatcherCommand.cc
  4261. * src/URIResult.cc
  4262. * src/URIResult.h
  4263. * src/URISelector.h
  4264. * src/XmlRpcMethodImpl.cc
  4265. * src/bittorrent_helper.cc
  4266. * src/bittorrent_helper.h
  4267. * src/download_helper.cc
  4268. * src/main.cc
  4269. * src/option_processing.cc
  4270. * test/BtDependencyTest.cc
  4271. * test/BtPostDownloadHandlerTest.cc
  4272. * test/CookieStorageTest.cc
  4273. * test/DefaultBtMessageDispatcherTest.cc
  4274. * test/DownloadHandlerFactoryTest.cc
  4275. * test/DownloadHelperTest.cc
  4276. * test/FeedbackURISelectorTest.cc
  4277. * test/FileEntryTest.cc
  4278. * test/InOrderURISelectorTest.cc
  4279. * test/Metalink2RequestGroupTest.cc
  4280. * test/MetalinkPostDownloadHandlerTest.cc
  4281. * test/RequestGroupManTest.cc
  4282. * test/RequestGroupTest.cc
  4283. * test/XmlRpcMethodTest.cc
  4284. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4285. Removed MockBtContext.h
  4286. * test/Makefile.am
  4287. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4288. Removed _currentRequest from StreamCheckIntegrityEntry and
  4289. StreamFileAllocationEntry.
  4290. * src/AbstractCommand.cc
  4291. * src/HttpResponseCommand.cc
  4292. * src/RequestGroup.cc
  4293. * src/StreamCheckIntegrityEntry.cc
  4294. * src/StreamCheckIntegrityEntry.h
  4295. * src/StreamFileAllocationEntry.cc
  4296. * src/StreamFileAllocationEntry.h
  4297. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4298. Rewritten DownloadContext and removed SingleFileDownloadContext
  4299. and BtContext and its derived classes. BitTorrent specific
  4300. attributes are now set by DownloadContext::setAttribute() with key
  4301. bittorrent::BITTORRENT.
  4302. * src/AbstractBtMessage.cc
  4303. * src/AbstractBtMessage.h
  4304. * src/AbstractCommand.cc
  4305. * src/AbstractCommand.h
  4306. * src/AbstractProxyRequestCommand.cc
  4307. * src/AbstractProxyResponseCommand.cc
  4308. * src/ActivePeerConnectionCommand.cc
  4309. * src/ActivePeerConnectionCommand.h
  4310. * src/AnnounceList.cc
  4311. * src/BtCheckIntegrityEntry.cc
  4312. * src/BtConstants.h
  4313. * src/BtContext.h: Removed
  4314. * src/BtDependency.cc
  4315. * src/BtExtendedMessage.cc
  4316. * src/BtPieceMessage.cc
  4317. * src/BtPieceMessage.h
  4318. * src/BtPostDownloadHandler.cc
  4319. * src/BtRegistry.cc
  4320. * src/BtRegistry.h
  4321. * src/BtSetup.cc
  4322. * src/CheckIntegrityCommand.cc
  4323. * src/CheckIntegrityEntry.cc
  4324. * src/ChecksumCheckIntegrityEntry.cc
  4325. * src/ConsoleStatCalc.cc
  4326. * src/ContentTypeRequestGroupCriteria.cc
  4327. * src/DHTGetPeersCommand.cc
  4328. * src/DHTGetPeersCommand.h
  4329. * src/DHTPeerLookupTask.cc
  4330. * src/DHTPeerLookupTask.h
  4331. * src/DHTTaskFactory.h
  4332. * src/DHTTaskFactoryImpl.cc
  4333. * src/DHTTaskFactoryImpl.h
  4334. * src/DefaultBtAnnounce.cc
  4335. * src/DefaultBtAnnounce.h
  4336. * src/DefaultBtContext.cc: Removed
  4337. * src/DefaultBtContext.h: Removed
  4338. * src/DefaultBtInteractive.cc
  4339. * src/DefaultBtInteractive.h
  4340. * src/DefaultBtMessageDispatcher.cc
  4341. * src/DefaultBtMessageDispatcher.h
  4342. * src/DefaultBtMessageFactory.cc
  4343. * src/DefaultBtMessageFactory.h
  4344. * src/DefaultBtMessageReceiver.cc
  4345. * src/DefaultBtMessageReceiver.h
  4346. * src/DefaultBtProgressInfoFile.cc
  4347. * src/DefaultBtRequestFactory.cc
  4348. * src/DefaultBtRequestFactory.h
  4349. * src/DefaultExtensionMessageFactory.cc
  4350. * src/DefaultExtensionMessageFactory.h
  4351. * src/DefaultPeerStorage.cc
  4352. * src/DefaultPeerStorage.h
  4353. * src/DefaultPieceStorage.cc
  4354. * src/DefaultSegmentManFactory.cc
  4355. * src/DiskAdaptor.cc
  4356. * src/DiskAdaptor.h
  4357. * src/DownloadContext.cc
  4358. * src/DownloadContext.h
  4359. * src/DownloadEngine.cc
  4360. * src/DownloadEngineFactory.cc
  4361. * src/DownloadHandler.cc
  4362. * src/DownloadResult.h
  4363. * src/FileAllocationCommand.cc
  4364. * src/FileAllocationDispatcherCommand.cc
  4365. * src/FileAllocationEntry.cc
  4366. * src/FileEntry.h
  4367. * src/FillRequestGroupCommand.cc
  4368. * src/FtpDownloadCommand.cc
  4369. * src/FtpFinishDownloadCommand.cc
  4370. * src/FtpInitiateConnectionCommand.cc
  4371. * src/FtpNegotiationCommand.cc
  4372. * src/FtpTunnelRequestCommand.cc
  4373. * src/FtpTunnelResponseCommand.cc
  4374. * src/HandshakeExtensionMessage.cc
  4375. * src/HandshakeExtensionMessage.h
  4376. * src/HaveEraseCommand.cc
  4377. * src/HttpDownloadCommand.cc
  4378. * src/HttpInitiateConnectionCommand.cc
  4379. * src/HttpProxyRequestCommand.cc
  4380. * src/HttpProxyResponseCommand.cc
  4381. * src/HttpRequest.cc
  4382. * src/HttpRequest.h
  4383. * src/HttpRequestCommand.cc
  4384. * src/HttpResponseCommand.cc
  4385. * src/HttpServerBodyCommand.cc
  4386. * src/HttpServerCommand.cc
  4387. * src/HttpSkipResponseCommand.cc
  4388. * src/InitiateConnectionCommandFactory.cc
  4389. * src/InitiatorMSEHandshakeCommand.cc
  4390. * src/InitiatorMSEHandshakeCommand.h
  4391. * src/IteratableChecksumValidator.cc
  4392. * src/IteratableChecksumValidator.h
  4393. * src/IteratableChunkChecksumValidator.cc
  4394. * src/MSEHandshake.cc
  4395. * src/MSEHandshake.h
  4396. * src/Makefile.am
  4397. * src/Makefile.in
  4398. * src/Metalink2RequestGroup.cc
  4399. * src/MetalinkPostDownloadHandler.cc
  4400. * src/MultiDiskAdaptor.cc
  4401. * src/MultiDiskAdaptor.h
  4402. * src/MultiFileAllocationIterator.cc
  4403. * src/MultiUrlRequestInfo.cc
  4404. * src/PeerChokeCommand.cc
  4405. * src/PeerChokeCommand.h
  4406. * src/PeerInitiateConnectionCommand.cc
  4407. * src/PeerInitiateConnectionCommand.h
  4408. * src/PeerInteractionCommand.cc
  4409. * src/PeerInteractionCommand.h
  4410. * src/PeerReceiveHandshakeCommand.cc
  4411. * src/PieceHashCheckIntegrityEntry.cc
  4412. * src/RealtimeCommand.cc
  4413. * src/ReceiverMSEHandshakeCommand.cc
  4414. * src/RequestGroup.cc
  4415. * src/RequestGroup.h
  4416. * src/RequestGroupEntry.cc
  4417. * src/RequestGroupMan.cc
  4418. * src/SeedCheckCommand.cc
  4419. * src/SeedCheckCommand.h
  4420. * src/SegmentMan.cc
  4421. * src/ShareRatioSeedCriteria.h
  4422. * src/SingleFileDownloadContext.cc: Removed
  4423. * src/SingleFileDownloadContext.h: Removed
  4424. * src/SleepCommand.cc
  4425. * src/StreamCheckIntegrityEntry.cc
  4426. * src/TrackerWatcherCommand.cc
  4427. * src/TrackerWatcherCommand.h
  4428. * src/UnknownLengthPieceStorage.cc
  4429. * src/Util.cc
  4430. * src/Util.h
  4431. * src/XmlRpcMethodImpl.cc
  4432. * src/bittorrent_helper.cc
  4433. * src/bittorrent_helper.h
  4434. * src/download_helper.cc
  4435. * src/main.cc
  4436. * src/option_processing.cc
  4437. * test/BitfieldManTest.cc
  4438. * test/BittorrentHelperTest.cc
  4439. * test/BtCancelMessageTest.cc
  4440. * test/BtChokeMessageTest.cc
  4441. * test/BtDependencyTest.cc
  4442. * test/BtPieceMessageTest.cc
  4443. * test/BtPostDownloadHandlerTest.cc
  4444. * test/BtRegistryTest.cc
  4445. * test/BtRejectMessageTest.cc
  4446. * test/BtRequestMessageTest.cc
  4447. * test/DHTPeerAnnounceStorageTest.cc
  4448. * test/DefaultBtAnnounceTest.cc
  4449. * test/DefaultBtContextTest.cc: Removed
  4450. * test/DefaultBtMessageDispatcherTest.cc
  4451. * test/DefaultBtMessageFactoryTest.cc
  4452. * test/DefaultBtProgressInfoFileTest.cc
  4453. * test/DefaultBtRequestFactoryTest.cc
  4454. * test/DefaultExtensionMessageFactoryTest.cc
  4455. * test/DefaultPeerStorageTest.cc
  4456. * test/DefaultPieceStorageTest.cc
  4457. * test/DirectDiskAdaptorTest.cc
  4458. * test/DownloadContextTest.cc
  4459. * test/DownloadHandlerFactoryTest.cc
  4460. * test/DownloadHelperTest.cc
  4461. * test/HandshakeExtensionMessageTest.cc
  4462. * test/HttpRequestTest.cc
  4463. * test/HttpResponseTest.cc
  4464. * test/IteratableChecksumValidatorTest.cc
  4465. * test/IteratableChunkChecksumValidatorTest.cc
  4466. * test/MSEHandshakeTest.cc
  4467. * test/Makefile.am
  4468. * test/Makefile.in
  4469. * test/Metalink2RequestGroupTest.cc
  4470. * test/MetalinkPostDownloadHandlerTest.cc
  4471. * test/MockBtContext.h: Removed
  4472. * test/MockDHTTaskFactory.h
  4473. * test/MockDownloadContext.h: Removed
  4474. * test/MockPieceStorage.h
  4475. * test/MultiDiskAdaptorTest.cc
  4476. * test/MultiFileAllocationIteratorTest.cc
  4477. * test/RequestGroupManTest.cc
  4478. * test/RequestGroupTest.cc
  4479. * test/SegmentManTest.cc
  4480. * test/ShareRatioSeedCriteriaTest.cc
  4481. * test/SingleFileDownloadContextTest.cc: Removed
  4482. * test/UtilTest.cc
  4483. * test/XmlRpcMethodTest.cc
  4484. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4485. Added experimental support of WEB-Seeding for multi-file torrent.
  4486. Due to fundamental changes in file handling in HTTP/FTP code, many
  4487. functions are not working: PeerStat, ServerHost, proxy..etc
  4488. * src/AbstractCommand.cc
  4489. * src/AbstractCommand.h
  4490. * src/BitfieldMan.cc
  4491. * src/BitfieldMan.h
  4492. * src/CreateRequestCommand.cc
  4493. * src/CreateRequestCommand.h
  4494. * src/DefaultPieceStorage.cc
  4495. * src/DefaultPieceStorage.h
  4496. * src/DownloadCommand.cc
  4497. * src/DownloadCommand.h
  4498. * src/DownloadContext.cc
  4499. * src/DownloadContext.h
  4500. * src/FileEntry.cc
  4501. * src/FileEntry.h
  4502. * src/FtpDownloadCommand.cc
  4503. * src/FtpDownloadCommand.h
  4504. * src/FtpFinishDownloadCommand.cc
  4505. * src/FtpFinishDownloadCommand.h
  4506. * src/FtpInitiateConnectionCommand.cc
  4507. * src/FtpInitiateConnectionCommand.h
  4508. * src/FtpNegotiationCommand.cc
  4509. * src/FtpNegotiationCommand.h
  4510. * src/FtpTunnelResponseCommand.cc
  4511. * src/HttpDownloadCommand.cc
  4512. * src/HttpDownloadCommand.h
  4513. * src/HttpInitiateConnectionCommand.cc
  4514. * src/HttpInitiateConnectionCommand.h
  4515. * src/HttpProxyResponseCommand.cc
  4516. * src/HttpRequest.cc
  4517. * src/HttpRequest.h
  4518. * src/HttpRequestCommand.cc
  4519. * src/HttpRequestCommand.h
  4520. * src/HttpResponseCommand.cc
  4521. * src/HttpResponseCommand.h
  4522. * src/HttpSkipResponseCommand.cc
  4523. * src/HttpSkipResponseCommand.h
  4524. * src/InitiateConnectionCommand.cc
  4525. * src/InitiateConnectionCommand.h
  4526. * src/InitiateConnectionCommandFactory.cc
  4527. * src/InitiateConnectionCommandFactory.h
  4528. * src/Makefile.am
  4529. * src/PieceStorage.h
  4530. * src/RequestGroup.cc
  4531. * src/RequestGroup.h
  4532. * src/RequestGroupMan.cc
  4533. * src/SegmentMan.cc
  4534. * src/SegmentMan.h
  4535. * src/SingleFileDownloadContext.h
  4536. * src/StreamFileAllocationEntry.cc
  4537. * src/TrackerWatcherCommand.cc
  4538. * src/UnknownLengthPieceStorage.cc
  4539. * src/UnknownLengthPieceStorage.h
  4540. * src/array_fun.h
  4541. * src/bitfield.h
  4542. * src/download_helper.cc
  4543. * test/DownloadContextTest.cc
  4544. * test/Makefile.am
  4545. * test/MockDownloadContext.h
  4546. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4547. Added tellWaiting XML-RPC method.
  4548. * src/SingleFileDownloadContext.cc
  4549. * src/XmlRpcMethodFactory.cc
  4550. * src/XmlRpcMethodImpl.cc
  4551. * src/XmlRpcMethodImpl.h
  4552. * test/XmlRpcMethodTest.cc
  4553. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4554. Updated CookieStorageTest
  4555. * test/CookieStorageTest.cc
  4556. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4557. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  4558. handle excepion inside these functions.
  4559. * src/LibgnutlsTLSContext.cc
  4560. * src/LibgnutlsTLSContext.h
  4561. * src/LibsslTLSContext.cc
  4562. * src/LibsslTLSContext.h
  4563. * src/MultiUrlRequestInfo.cc
  4564. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4565. Added comment
  4566. * src/RequestGroup.cc
  4567. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4568. In CookieStorage::load() and saveNsFormat(), handle exception
  4569. inside the functions. When saving Cookies, first write temporary
  4570. file and after successful writes, then renames it to final
  4571. destination.
  4572. * src/CookieStorage.cc
  4573. * src/CookieStorage.h
  4574. * src/MultiUrlRequestInfo.cc
  4575. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4576. The default value of --dir option is the absolute path to the
  4577. current directory. If getcwd() is failed, then it is ".", which is
  4578. the same value with old implementation. This change is necessary
  4579. because after daemon() call, the current working directory is
  4580. changed to /.
  4581. * src/File.cc
  4582. * src/File.h
  4583. * src/OptionHandlerFactory.cc
  4584. * src/option_processing.cc
  4585. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4586. Call daemon() with arguments(0,0), which means daemon() changes
  4587. current working directory to / and redirects stdin, stdout and
  4588. stderr to /dev/null.
  4589. * src/option_processing.cc
  4590. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4591. Small performance optimizations.
  4592. * src/RequestGroupMan.cc
  4593. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4594. Added _xmlRpc member variable to RequestGroupMan to reduce the
  4595. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  4596. * src/RequestGroupMan.cc
  4597. * src/RequestGroupMan.h
  4598. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4599. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  4600. setNoWiat(true) if newly created command calls
  4601. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  4602. * src/HttpListenCommand.cc
  4603. * src/HttpServerBodyCommand.cc
  4604. * src/HttpServerCommand.cc
  4605. * src/HttpServerResponseCommand.cc
  4606. * src/InitiateConnectionCommand.cc
  4607. * src/RequestGroup.cc
  4608. * src/StreamFileAllocationEntry.cc
  4609. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4610. Removed include vector
  4611. * src/BtRegistry.h
  4612. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4613. Rewritten BtRegistry
  4614. * src/BtRegistry.cc
  4615. * src/BtRegistry.h
  4616. * src/BtSetup.cc
  4617. * src/ConsoleStatCalc.cc
  4618. * src/PeerInteractionCommand.cc
  4619. * src/PeerReceiveHandshakeCommand.cc
  4620. * src/ReceiverMSEHandshakeCommand.cc
  4621. * src/RequestGroup.cc
  4622. * src/XmlRpcMethodImpl.cc
  4623. * test/BtRegistryTest.cc
  4624. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4625. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  4626. * src/DefaultBtProgressInfoFile.cc
  4627. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4628. Throw an exception if position is less than 0.
  4629. * src/XmlRpcMethodImpl.cc
  4630. * test/XmlRpcMethodTest.cc
  4631. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4632. Use writeFilePath() in ConsoleStatCalc.cc
  4633. * src/ConsoleStatCalc.cc
  4634. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4635. Receive the return value as const reference from
  4636. DownloadContext::getFileEntries().
  4637. * src/DefaultPieceStorage.cc
  4638. * src/RequestGroupMan.cc
  4639. * src/XmlRpcMethodImpl.cc
  4640. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4641. DownloadContext now has _fileEntries so that
  4642. DownloadContext::getFileEntries() can returns its const reference.
  4643. * src/DefaultBtContext.cc
  4644. * src/DefaultBtContext.h
  4645. * src/DownloadContext.cc
  4646. * src/DownloadContext.h
  4647. * src/SingleFileDownloadContext.cc
  4648. * src/SingleFileDownloadContext.h
  4649. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4650. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  4651. writeFilePath() function template from RequestGroupMan.cc to
  4652. FileEntry.h
  4653. * src/FileEntry.h
  4654. * src/RequestGroupMan.cc
  4655. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4656. Documented 'position' parameter is starting from 0 in man page.
  4657. * doc/aria2c.1.txt
  4658. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4659. Updated doc.
  4660. * src/MSEHandshake.cc
  4661. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4662. Removed _acceptFeatures and its accessor functions from
  4663. RequestGroup since they are not used practically.
  4664. * src/HttpRequestCommand.cc
  4665. * src/RequestGroup.cc
  4666. * src/RequestGroup.h
  4667. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4668. Removed member _maxTries from RequestGroup class to avoid
  4669. duplicate option value. Those classes who refer this variable
  4670. should use option value of PREF_MAX_TRIES directly.
  4671. * src/AbstractCommand.cc
  4672. * src/RequestGroup.cc
  4673. * src/RequestGroup.h
  4674. * src/TrackerWatcherCommand.cc
  4675. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4676. * Release 1.4.1
  4677. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4678. Fixed compiler warnings on netbsd
  4679. * src/DHTConnectionImpl.cc
  4680. * src/PeerListenCommand.cc
  4681. * src/PeerSessionResource.cc
  4682. * src/SegmentMan.cc
  4683. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4684. Updated Ukrainian translation. Thanks to all translators.
  4685. * po/uk.po
  4686. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4687. Bump up version number to 1.4.1.
  4688. * configure.ac
  4689. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4690. Added unit tests for strjoin, strconcat and strappend.
  4691. * test/a2functionalTest.cc
  4692. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4693. Rewritten strconcat and strappend using operator+ instead of
  4694. append().
  4695. * src/a2functional.h
  4696. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4697. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  4698. is enabled.
  4699. * src/Makefile.am
  4700. * test/Makefile.am
  4701. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4702. Added countSeeder() function which counts seeder in the given
  4703. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  4704. * src/ConsoleStatCalc.cc
  4705. * src/Peer.h
  4706. * src/XmlRpcMethodImpl.cc
  4707. * test/PeerTest.cc
  4708. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4709. Documented missing seeder in getPeers xml-rpc method.
  4710. Documented uploadLength and numSeeders.
  4711. * doc/aria2c.1.txt
  4712. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4713. Added uploadLength and numSeeders to the response of tellStatus
  4714. xml-rpc method. Assert that PeerStorage instance is not null
  4715. instead of checking if statement. It should be non-null in this
  4716. context.
  4717. * src/XmlRpcMethodImpl.cc
  4718. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4719. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  4720. * src/XmlRpcResponse.cc
  4721. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4722. Avoid intermediate object during string concatenation.
  4723. * src/HttpRequest.cc
  4724. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4725. Added strjoin function template. Use it in pathJoin()
  4726. * src/Util.h
  4727. * src/a2functional.h
  4728. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4729. Avoid intermediate object during string concatenation. Replaced
  4730. post-increment unary operator with pre-increment one in for loop.
  4731. * src/AdaptiveURISelector.cc
  4732. * src/AnnounceList.cc
  4733. * src/AuthConfig.h
  4734. * src/BtBitfieldMessage.cc
  4735. * src/BtExtendedMessage.cc
  4736. * src/BtHandshakeMessage.cc
  4737. * src/BtPieceMessage.cc
  4738. * src/BtPortMessage.cc
  4739. * src/Cookie.cc
  4740. * src/DHTAnnouncePeerMessage.cc
  4741. * src/DHTAutoSaveCommand.cc
  4742. * src/DHTGetPeersReplyMessage.cc
  4743. * src/DHTNode.cc
  4744. * src/DHTQueryMessage.cc
  4745. * src/DHTResponseMessage.cc
  4746. * src/DHTUnknownMessage.cc
  4747. * src/DefaultBtAnnounce.cc
  4748. * src/DefaultBtContext.cc
  4749. * src/DefaultBtInteractive.cc
  4750. * src/DefaultBtProgressInfoFile.cc
  4751. * src/DefaultPeerStorage.cc
  4752. * src/DownloadEngine.cc
  4753. * src/FeatureConfig.cc
  4754. * src/File.cc
  4755. * src/FtpConnection.cc
  4756. * src/FtpNegotiationCommand.cc
  4757. * src/HandshakeExtensionMessage.cc
  4758. * src/HttpConnection.cc
  4759. * src/HttpRequest.cc
  4760. * src/HttpResponseCommand.cc
  4761. * src/HttpServer.cc
  4762. * src/IndexBtMessage.cc
  4763. * src/Metalink2RequestGroup.cc
  4764. * src/OptionHandlerImpl.h
  4765. * src/PStringBuildVisitor.cc
  4766. * src/Peer.cc
  4767. * src/PeerListenCommand.cc
  4768. * src/Piece.cc
  4769. * src/RangeBtMessage.cc
  4770. * src/Request.cc
  4771. * src/Request.h
  4772. * src/RequestGroup.cc
  4773. * src/RequestGroupMan.cc
  4774. * src/ServerStat.cc
  4775. * src/ServerStatMan.cc
  4776. * src/UTPexExtensionMessage.cc
  4777. * src/Util.cc
  4778. * src/a2functional.h
  4779. * src/download_helper.cc
  4780. * src/messageDigest.cc
  4781. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4782. Unchoke a peer randomly at first and second choke round in seed
  4783. state.
  4784. * src/BtSeederStateChoke.cc
  4785. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  4786. Added (sock_t) to quiet compiler warnings in MinGW
  4787. * src/SocketCore.cc
  4788. * src/SocketCore.h
  4789. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4790. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  4791. * src/EpollEventPoll.h
  4792. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  4793. Added fork() emulation using CreateProcess() in MinGW
  4794. * src/RequestGroupMan.cc
  4795. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4796. * Release 1.4.0
  4797. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4798. Added utf8.torrent to EXTRA_DIST
  4799. * test/Makefile.am
  4800. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4801. Fixed docs of aria2.addMetalink xml-rpc method.
  4802. * doc/aria2c.1.txt
  4803. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4804. Added Slovak translation. Updated Ukrainian and Brazilian
  4805. Portuguese translation. Thanks to all translators.
  4806. * po/sk.po
  4807. * po/uk.po
  4808. * po/pt_BR.po
  4809. * po/LINGUAS
  4810. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4811. Added test case for XmlRpcProcessor to fail to parse malformed
  4812. document.
  4813. * test/XmlRpcRequestProcessorTest.cc
  4814. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4815. Removed *.gmo files in po because they are generated on 'make
  4816. dist'
  4817. * po/*.gmo
  4818. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4819. Documented max-concurrent-downloads of changeGlobalOption method
  4820. in man page.
  4821. * doc/aria2c.1.txt
  4822. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4823. Added max-concurrent-downloads option to changeGlobalOption
  4824. xml-rpc method. Rewritten loop conditional in
  4825. RequestGroupMan::fillRequestGroupFromReserver().
  4826. * src/RequestGroupMan.cc
  4827. * src/RequestGroupMan.h
  4828. * src/XmlRpcMethod.cc
  4829. * src/XmlRpcMethodImpl.cc
  4830. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4831. Documented position parameter in man page.
  4832. * doc/aria2c.1.txt
  4833. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4834. Added 'position' parameter to addUri, addTorrent and addMetalink
  4835. xml-rpc method.
  4836. * src/RequestGroupMan.cc
  4837. * src/RequestGroupMan.h
  4838. * src/XmlRpcMethodImpl.cc
  4839. * test/XmlRpcMethodTest.cc
  4840. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4841. Removed Peer.cc from compile source list when --disable-bittorrent
  4842. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4843. takes Peer.
  4844. * src/DefaultPieceStorage.cc
  4845. * src/DefaultPieceStorage.h
  4846. * src/Makefile.am
  4847. * src/PieceStorage.h
  4848. * src/UnknownLengthPieceStorage.cc
  4849. * src/UnknownLengthPieceStorage.h
  4850. * test/MockPieceStorage.h
  4851. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4852. Implemented getter methods in header files to give them more
  4853. chance of optimization.
  4854. Return const reference for SharadHandle if possible.
  4855. * src/AbstractAuthResolver.cc
  4856. * src/AbstractAuthResolver.h
  4857. * src/AbstractBtMessage.cc
  4858. * src/AbstractBtMessage.h
  4859. * src/AbstractSingleDiskAdaptor.cc
  4860. * src/AbstractSingleDiskAdaptor.h
  4861. * src/AsyncNameResolver.cc
  4862. * src/AsyncNameResolver.h
  4863. * src/BNode.cc
  4864. * src/BNode.h
  4865. * src/BitfieldMan.cc
  4866. * src/BitfieldMan.h
  4867. * src/BtAbortOutstandingRequestEvent.h
  4868. * src/BtExtendedMessage.cc
  4869. * src/BtExtendedMessage.h
  4870. * src/BtSeederStateChoke.cc
  4871. * src/BtSeederStateChoke.h
  4872. * src/Cookie.cc
  4873. * src/Cookie.h
  4874. * src/DHTBucket.cc
  4875. * src/DHTBucket.h
  4876. * src/DHTConnectionImpl.cc
  4877. * src/DHTConnectionImpl.h
  4878. * src/DHTFindNodeReplyMessage.cc
  4879. * src/DHTFindNodeReplyMessage.h
  4880. * src/DHTGetPeersReplyMessage.cc
  4881. * src/DHTGetPeersReplyMessage.h
  4882. * src/DHTInteractionCommand.cc
  4883. * src/DHTMessage.cc
  4884. * src/DHTMessage.h
  4885. * src/DHTMessageDispatcherImpl.cc
  4886. * src/DHTMessageEntry.cc
  4887. * src/DHTMessageReceiver.cc
  4888. * src/DHTMessageReceiver.h
  4889. * src/DHTMessageTrackerEntry.cc
  4890. * src/DHTMessageTrackerEntry.h
  4891. * src/DHTPeerAnnounceEntry.cc
  4892. * src/DHTPeerAnnounceEntry.h
  4893. * src/DHTPeerLookupTask.cc
  4894. * src/DHTPeerLookupTask.h
  4895. * src/DHTRoutingTableDeserializer.cc
  4896. * src/DHTRoutingTableDeserializer.h
  4897. * src/DefaultBtAnnounce.cc
  4898. * src/DefaultBtAnnounce.h
  4899. * src/DefaultBtMessageDispatcher.cc
  4900. * src/DefaultBtMessageDispatcher.h
  4901. * src/DefaultBtRequestFactory.cc
  4902. * src/DefaultBtRequestFactory.h
  4903. * src/DiskAdaptor.cc
  4904. * src/DiskAdaptor.h
  4905. * src/DownloadContext.cc
  4906. * src/DownloadContext.h
  4907. * src/DownloadEngine.cc
  4908. * src/DownloadEngine.h
  4909. * src/EpollEventPoll.cc
  4910. * src/EpollEventPoll.h
  4911. * src/FtpConnection.cc
  4912. * src/FtpConnection.h
  4913. * src/HttpConnection.cc
  4914. * src/HttpConnection.h
  4915. * src/HttpHeader.cc
  4916. * src/HttpHeader.h
  4917. * src/HttpRequest.cc
  4918. * src/HttpRequest.h
  4919. * src/HttpResponse.cc
  4920. * src/HttpResponse.h
  4921. * src/LibsslTLSContext.cc
  4922. * src/LibsslTLSContext.h
  4923. * src/MSEHandshake.cc
  4924. * src/MSEHandshake.h
  4925. * src/MetalinkEntry.cc
  4926. * src/MetalinkEntry.h
  4927. * src/MetalinkParserController.cc
  4928. * src/MetalinkParserController.h
  4929. * src/MetalinkParserStateMachine.cc
  4930. * src/MetalinkParserStateMachine.h
  4931. * src/MultiDiskAdaptor.cc
  4932. * src/MultiDiskAdaptor.h
  4933. * src/NetrcAuthResolver.cc
  4934. * src/NetrcAuthResolver.h
  4935. * src/Peer.cc
  4936. * src/Peer.h
  4937. * src/PeerSessionResource.cc
  4938. * src/PeerSessionResource.h
  4939. * src/Piece.cc
  4940. * src/Piece.h
  4941. * src/PieceStatMan.cc
  4942. * src/PieceStatMan.h
  4943. * src/Request.cc
  4944. * src/Request.h
  4945. * src/RequestGroup.cc
  4946. * src/RequestGroup.h
  4947. * src/RequestGroupMan.cc
  4948. * src/RequestGroupMan.h
  4949. * src/RequestSlot.cc
  4950. * src/RequestSlot.h
  4951. * src/SegmentMan.cc
  4952. * src/SegmentMan.h
  4953. * src/SelectEventPoll.cc
  4954. * src/SelectEventPoll.h
  4955. * src/ServerStat.cc
  4956. * src/ServerStat.h
  4957. * src/Signature.cc
  4958. * src/Signature.h
  4959. * src/URIResult.cc
  4960. * src/URIResult.h
  4961. * src/UTPexExtensionMessage.cc
  4962. * src/UTPexExtensionMessage.h
  4963. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4964. Fixed compile error without BitTorrent and Metalink support.
  4965. * src/XmlRpcMethod.cc
  4966. * src/XmlRpcMethodFactory.cc
  4967. * src/XmlRpcMethodImpl.cc
  4968. * src/XmlRpcMethodImpl.h
  4969. * test/XmlRpcMethodTest.cc
  4970. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4971. Rewritten the help message for --allow-overwrite option.
  4972. * doc/aria2c.1.txt
  4973. * src/usage_text.h
  4974. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4975. Fixed typo
  4976. * doc/aria2c.1.txt
  4977. * src/usage_text.h
  4978. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4979. Updated README for 1.4.0 release. Use new table syntax of
  4980. asciidoc.
  4981. * README
  4982. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4983. Documented --xml-rpc-max-request-size option in man page.
  4984. * doc/aria2c.1.txt
  4985. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4986. Moved C_* constants from BtContext to DefaultBtContext.
  4987. * src/BtContext.cc: Removed.
  4988. * src/BtContext.h
  4989. * src/DefaultBtContext.cc
  4990. * src/DefaultBtContext.h
  4991. * src/Makefile.am
  4992. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4993. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4994. path key respectively when persing .torrent file.
  4995. * src/BtContext.cc
  4996. * src/BtContext.h
  4997. * src/DefaultBtContext.cc
  4998. * test/DefaultBtContextTest.cc
  4999. * test/utf8.torrent
  5000. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5001. Added --xml-rpc-max-request-size option to limit the size of
  5002. XML-RPC request.
  5003. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5004. Documented XML-RPC API in man page.
  5005. * doc/aria2c.1.txt
  5006. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5007. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  5008. will break strict-aliasing rules
  5009. * src/PeerConnection.cc
  5010. * test/DHTRoutingTableSerializerTest.cc
  5011. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5012. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  5013. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  5014. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  5015. PKG_CHECK_MODULES macro uses latter name.
  5016. * m4/sqlite3.m4
  5017. * src/Makefile.am
  5018. * test/Makefile.am
  5019. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5020. Fixed typo
  5021. * configure.ac
  5022. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5023. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  5024. presence of libgnutls using pkg-config first. If it fails, fall
  5025. back to old macro libgnutls.m4.
  5026. * configure.ac
  5027. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5028. Use s itself instead of !s.bad()
  5029. * src/CookieStorage.cc
  5030. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5031. Documented --on-download-* option and --save-cookies option in man
  5032. page.
  5033. * doc/aria2c.1.txt
  5034. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5035. Set possible values for --load-cookie option to "/path/to/file".
  5036. * src/OptionHandlerFactory.cc
  5037. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5038. Added --save-cookies option.
  5039. * src/Cookie.cc
  5040. * src/Cookie.h
  5041. * src/CookieStorage.cc
  5042. * src/CookieStorage.h
  5043. * src/MultiUrlRequestInfo.cc
  5044. * src/OptionHandlerFactory.cc
  5045. * src/prefs.cc
  5046. * src/prefs.h
  5047. * src/usage_text.h
  5048. * test/CookieStorageTest.cc
  5049. * test/CookieTest.cc
  5050. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5051. Removed tellAll XML-RPC command because its reponse tends to be
  5052. big if stopped/waiting downloads pile up.
  5053. * src/XmlRpcMethodFactory.cc
  5054. * src/XmlRpcMethodImpl.cc
  5055. * src/XmlRpcMethodImpl.h
  5056. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5057. Added the ability to execute command when download starts and
  5058. stops. You can also specify command for particular cases such as
  5059. complete/error download. Added --on-download-start,
  5060. --on-download-stop, --on-download-complete and --on-download-error
  5061. option.
  5062. * src/OptionHandlerFactory.cc
  5063. * src/RequestGroupMan.cc
  5064. * src/prefs.cc
  5065. * src/prefs.h
  5066. * src/usage_text.h
  5067. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5068. Fixed test error
  5069. * test/BencodeTest.cc
  5070. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5071. Added unit tests.
  5072. * test/XmlRpcMethodTest.cc
  5073. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5074. Made exception message more verbose.
  5075. * src/bencode.cc
  5076. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5077. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  5078. space in console readout. Also they are now shown in MiB/s if
  5079. speed > 1024KiB/s.
  5080. * src/ConsoleStatCalc.cc
  5081. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5082. Added SEED to console output, which represents the number of
  5083. seeders currently the client is connecting to.
  5084. * src/ConsoleStatCalc.cc
  5085. * src/ConsoleStatCalc.h
  5086. * src/DownloadEngine.cc
  5087. * src/NullStatCalc.h
  5088. * src/StatCalc.h
  5089. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5090. Added source filename(__FILE__) and line number(__LINE__) to
  5091. exception message.
  5092. * src/AbstractCommand.cc
  5093. * src/AbstractDiskWriter.cc
  5094. * src/AbstractProxyResponseCommand.cc
  5095. * src/BDE.h
  5096. * src/BtAllowedFastMessage.cc
  5097. * src/BtHandshakeMessageValidator.h
  5098. * src/BtHaveAllMessage.cc
  5099. * src/BtHaveNoneMessage.cc
  5100. * src/BtPieceMessage.cc
  5101. * src/BtRejectMessage.cc
  5102. * src/ChunkedDecoder.cc
  5103. * src/CookieStorage.cc
  5104. * src/DHTAnnouncePeerMessage.cc
  5105. * src/DHTEntryPointNameResolveCommand.cc
  5106. * src/DHTMessageFactoryImpl.cc
  5107. * src/DHTMessageTracker.cc
  5108. * src/DHTRoutingTableDeserializer.cc
  5109. * src/DHTRoutingTableSerializer.cc
  5110. * src/DHTSetup.cc
  5111. * src/DHTTokenTracker.cc
  5112. * src/DefaultBtAnnounce.cc
  5113. * src/DefaultBtContext.cc
  5114. * src/DefaultBtInteractive.cc
  5115. * src/DefaultBtMessageFactory.cc
  5116. * src/DefaultBtProgressInfoFile.cc
  5117. * src/DefaultExtensionMessageFactory.cc
  5118. * src/DlAbortEx.h
  5119. * src/DlRetryEx.h
  5120. * src/DownloadCommand.cc
  5121. * src/DownloadEngineFactory.cc
  5122. * src/DownloadFailureException.h
  5123. * src/Exception.cc
  5124. * src/Exception.h
  5125. * src/ExpatMetalinkProcessor.cc
  5126. * src/ExpatXmlRpcRequestProcessor.cc
  5127. * src/FallocFileAllocationIterator.cc
  5128. * src/FatalException.h
  5129. * src/FtpConnection.cc
  5130. * src/FtpFinishDownloadCommand.cc
  5131. * src/FtpInitiateConnectionCommand.cc
  5132. * src/FtpNegotiationCommand.cc
  5133. * src/GZipDecoder.cc
  5134. * src/HandshakeExtensionMessage.cc
  5135. * src/HttpConnection.cc
  5136. * src/HttpHeaderProcessor.cc
  5137. * src/HttpInitiateConnectionCommand.cc
  5138. * src/HttpResponse.cc
  5139. * src/HttpResponseCommand.cc
  5140. * src/HttpServer.cc
  5141. * src/HttpSkipResponseCommand.cc
  5142. * src/InitiateConnectionCommandFactory.cc
  5143. * src/IteratableChunkChecksumValidator.cc
  5144. * src/LibgcryptARC4Context.h
  5145. * src/LibgcryptARC4Decryptor.h
  5146. * src/LibgcryptARC4Encryptor.h
  5147. * src/LibgcryptDHKeyExchange.h
  5148. * src/LibgnutlsTLSContext.cc
  5149. * src/LibsslARC4Context.h
  5150. * src/LibsslARC4Decryptor.h
  5151. * src/LibsslARC4Encryptor.h
  5152. * src/LibsslDHKeyExchange.h
  5153. * src/LibsslTLSContext.cc
  5154. * src/MSEHandshake.cc
  5155. * src/MessageDigestHelper.cc
  5156. * src/MetalinkHelper.cc
  5157. * src/MultiDiskAdaptor.cc
  5158. * src/NameMatchOptionHandler.h
  5159. * src/NameResolver.cc
  5160. * src/Netrc.cc
  5161. * src/NsCookieParser.cc
  5162. * src/OptionHandlerException.cc
  5163. * src/OptionHandlerException.h
  5164. * src/OptionHandlerImpl.h
  5165. * src/OptionParser.cc
  5166. * src/ParameterizedStringParser.cc
  5167. * src/PeerAbstractCommand.cc
  5168. * src/PeerConnection.cc
  5169. * src/PeerMessageUtil.cc
  5170. * src/PeerReceiveHandshakeCommand.cc
  5171. * src/Platform.cc
  5172. * src/ReceiverMSEHandshakeCommand.cc
  5173. * src/RecoverableException.h
  5174. * src/RequestGroup.cc
  5175. * src/SimpleLogger.cc
  5176. * src/SocketCore.cc
  5177. * src/Sqlite3MozCookieParser.cc
  5178. * src/UTPexExtensionMessage.cc
  5179. * src/Util.cc
  5180. * src/XML2SAXMetalinkProcessor.cc
  5181. * src/Xml2XmlRpcRequestProcessor.cc
  5182. * src/XmlRpcMethodImpl.cc
  5183. * src/bencode.cc
  5184. * src/download_helper.cc
  5185. * src/messageDigest.h
  5186. * test/ExceptionTest.cc
  5187. * test/TestUtil.cc
  5188. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5189. Bump up version number to 1.4.0
  5190. * configure.ac
  5191. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5192. Added 2files.metalink to EXTRA_DIST
  5193. * test/Makefile.am
  5194. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5195. Added missing 2files.metalink
  5196. * test/2files.metalink
  5197. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5198. Show "[MEMORY]" prefix before filename in download summary if it
  5199. is downloaded into memory.
  5200. * src/DownloadResult.h
  5201. * src/RequestGroup.cc
  5202. * src/RequestGroupMan.cc
  5203. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5204. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  5205. * src/ExpatXmlRpcRequestProcessor.cc
  5206. * src/Xml2XmlRpcRequestProcessor.cc
  5207. * src/message.h
  5208. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5209. Defined const BDEs to avoid duplicate instantiation.
  5210. Defined MSG_GID_NOT_PROVIDED.
  5211. * src/XmlRpcMethodImpl.cc
  5212. * src/message.h
  5213. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5214. Code cleanup
  5215. * src/Xml2XmlRpcRequestProcessor.cc
  5216. * src/Xml2XmlRpcRequestProcessor.h
  5217. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5218. Defined ENABLE_XML_RPC
  5219. * configure.ac
  5220. * configure
  5221. * config.h.in
  5222. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5223. Added ExpatXmlRpcRequestProcessor
  5224. * src/ExpatXmlRpcRequestProcessor.cc
  5225. * src/ExpatXmlRpcRequestProcessor.h
  5226. * src/Makefile.am
  5227. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5228. Added tests for addTorrent and addMetalink command.
  5229. * test/TestUtil.cc
  5230. * test/TestUtil.h
  5231. * test/XmlRpcMethodTest.cc
  5232. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5233. Corrected the description of --file-allocation option.
  5234. * doc/aria2c.1.txt
  5235. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5236. Added tellAll command.
  5237. * src/XmlRpcMethodFactory.cc
  5238. * src/XmlRpcMethodImpl.cc
  5239. * src/XmlRpcMethodImpl.h
  5240. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5241. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  5242. * src/XmlRpcMethodImpl.cc
  5243. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5244. Added changeGlobalOption command. Currently,
  5245. max-overall-download-limit and max-overall-upload-limit option are
  5246. available.
  5247. * src/RequestGroupMan.h
  5248. * src/XmlRpcMethod.cc
  5249. * src/XmlRpcMethod.h
  5250. * src/XmlRpcMethodFactory.cc
  5251. * src/XmlRpcMethodImpl.cc
  5252. * src/XmlRpcMethodImpl.h
  5253. * test/XmlRpcMethodTest.cc
  5254. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5255. Added changeOption command. Currently, max-download-limit,
  5256. max-upload-limit option are available in this command.
  5257. * src/RequestGroup.h
  5258. * src/XmlRpcMethod.cc
  5259. * src/XmlRpcMethod.h
  5260. * src/XmlRpcMethodFactory.cc
  5261. * src/XmlRpcMethodImpl.cc
  5262. * src/XmlRpcMethodImpl.h
  5263. * test/XmlRpcMethodTest.cc
  5264. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5265. Added purgeDownloadResult command.
  5266. * src/RequestGroupMan.cc
  5267. * src/RequestGroupMan.h
  5268. * src/XmlRpcMethodFactory.cc
  5269. * src/XmlRpcMethodImpl.cc
  5270. * src/XmlRpcMethodImpl.h
  5271. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5272. Refactored.
  5273. * src/XmlRpcMethod.cc
  5274. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5275. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  5276. XmlRpcResponse.
  5277. * src/HttpServerBodyCommand.cc
  5278. * src/Makefile.am
  5279. * src/XmlRpcMethod.cc
  5280. * src/XmlRpcMethod.h
  5281. * src/XmlRpcMethodImpl.cc
  5282. * src/XmlRpcResponse.cc
  5283. * src/XmlRpcResponse.h
  5284. * test/XmlRpcMethodTest.cc
  5285. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5286. In XML-RPC option struct, header and index-out option can take
  5287. array as value.
  5288. * src/XmlRpcMethod.cc
  5289. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5290. Removed unused option member from PeerConnection.
  5291. * src/InitiatorMSEHandshakeCommand.cc
  5292. * src/PeerConnection.cc
  5293. * src/PeerConnection.h
  5294. * src/PeerInteractionCommand.cc
  5295. * src/PeerReceiveHandshakeCommand.cc
  5296. * src/ReceiverMSEHandshakeCommand.cc
  5297. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5298. Added "seeder" key to getPeers response.
  5299. * src/XmlRpcMethodImpl.cc
  5300. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5301. Added addMetalink XML-RPC command.
  5302. * src/XmlRpcMethodFactory.cc
  5303. * src/XmlRpcMethodImpl.cc
  5304. * src/XmlRpcMethodImpl.h
  5305. * src/download_helper.cc
  5306. * src/download_helper.h
  5307. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5308. Fixed the bug that POU peers are never choked in seeding.
  5309. * src/BtSeederStateChoke.cc
  5310. * src/BtSeederStateChoke.h
  5311. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5312. Added web-seeding URI handling in addTorrent command.
  5313. * src/XmlRpcMethodImpl.cc
  5314. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5315. Added "length" key to getFiles response.
  5316. * src/XmlRpcMethodImpl.cc
  5317. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5318. Moved --no-netrc option from ftp option section to http/ftp option
  5319. section.
  5320. * doc/aria2c.1.txt
  5321. * src/OptionHandlerFactory.cc
  5322. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5323. Removed garbage "\" character before '
  5324. * doc/aria2c.1.txt
  5325. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5326. Removed garbage "\" character before http.
  5327. * doc/aria2c.1.txt
  5328. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5329. Documented additional options that can be specified in -i list.
  5330. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  5331. and --xml-rpc-passwd. Removed --enable-http-server and
  5332. --http-server-listen-port.
  5333. * doc/aria2c.1.txt
  5334. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5335. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  5336. * src/DefaultPeerStorage.cc
  5337. * src/DefaultPeerStorage.h
  5338. * src/PeerStorage.h
  5339. * src/XmlRpcMethodImpl.cc
  5340. * test/MockPeerStorage.h
  5341. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5342. Put a call to Socket::isReadable() in try block.
  5343. * src/HttpServerBodyCommand.cc
  5344. * src/HttpServerCommand.cc
  5345. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5346. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  5347. exception , so it is now in try block.
  5348. * src/HttpServerResponseCommand.cc
  5349. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5350. Added "amChoking" and "peerChoking" key in getPeers response.
  5351. * src/XmlRpcMethodImpl.cc
  5352. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5353. Added test case for zero-length filter.
  5354. * test/BitfieldManTest.cc
  5355. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5356. getFiles command now returns file data for finished/stopped
  5357. downloads.
  5358. * src/XmlRpcMethodImpl.cc
  5359. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5360. DownloadResult now has the list of FileEntry. The download
  5361. summary displays the path of first selected file and the number of
  5362. remaining files for multi-file torrent.
  5363. * src/DownloadResult.h
  5364. * src/RequestGroup.cc
  5365. * src/RequestGroupMan.cc
  5366. * test/RequestGroupTest.cc
  5367. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5368. Fixed segmentation fault error when no file is selected in
  5369. multi-file torrent.
  5370. * src/BitfieldMan.cc
  5371. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5372. Escaped <,>,& character in XML-RPC response.
  5373. * src/XmlRpcMethod.cc
  5374. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5375. Throw DlAbortEx instead of FatalException during parsing options
  5376. because we don't want for aria2 to quit when bad option is passed
  5377. via XML-RPC.
  5378. * src/OptionHandlerException.cc
  5379. * src/OptionHandlerException.h
  5380. * src/OptionHandlerImpl.h
  5381. * src/OptionParser.cc
  5382. * src/OptionParser.h
  5383. * src/PStringSegment.cc
  5384. * src/ParameterizedStringParser.cc
  5385. * src/download_helper.cc
  5386. * test/ParameterizedStringParserTest.cc
  5387. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5388. Selecting files are now done in
  5389. DefaultBtContext::setFileFileter().
  5390. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  5391. functions are removed because they are no longer used. Creating
  5392. filter in BitfieldMan is done in new funtion
  5393. PieceStorage::setupFileFilter()
  5394. * src/BtContext.cc
  5395. * src/BtContext.h
  5396. * src/DefaultBtContext.cc
  5397. * src/DefaultBtContext.h
  5398. * src/DefaultPieceStorage.cc
  5399. * src/DefaultPieceStorage.h
  5400. * src/DiskAdaptor.cc
  5401. * src/DiskAdaptor.h
  5402. * src/PieceStorage.h
  5403. * src/RequestGroup.cc
  5404. * src/UnknownLengthPieceStorage.h
  5405. * src/XmlRpcMethodImpl.cc
  5406. * test/DefaultBtContextTest.cc
  5407. * test/MockBtContext.h
  5408. * test/MockPieceStorage.h
  5409. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5410. Fixed compile error on Mac OS X
  5411. * src/HttpServer.cc
  5412. * src/XmlRpcMethod.h
  5413. * src/XmlRpcMethodImpl.cc
  5414. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5415. Use std::binary_search instead of std::find
  5416. * src/DefaultPieceStorage.cc
  5417. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5418. Removed unnecessary BDE() call; leave them to implicit conversion.
  5419. * src/XmlRpcMethodImpl.cc
  5420. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5421. Return connections and gid in string
  5422. * src/XmlRpcMethodImpl.cc
  5423. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5424. Renamed addURI as addUri
  5425. * src/XmlRpcMethodFactory.cc
  5426. * src/XmlRpcMethodImpl.cc
  5427. * src/XmlRpcMethodImpl.h
  5428. * test/XmlRpcMethodTest.cc
  5429. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5430. Renamed addTorrentFile as addTorrent
  5431. * src/XmlRpcMethodFactory.cc
  5432. * src/XmlRpcMethodImpl.cc
  5433. * src/XmlRpcMethodImpl.h
  5434. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5435. The information for files, URIs, peers are removed from the
  5436. reponse of TellaActive, TellStatus command because they tend to be
  5437. large. Instead they can be retrieved by the dedicated commands:
  5438. getFiles, getUris and getPeers respectively.
  5439. * src/XmlRpcMethodFactory.cc
  5440. * src/XmlRpcMethodImpl.cc
  5441. * src/XmlRpcMethodImpl.h
  5442. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5443. Removed --max-overall-upload-limit and
  5444. --max-overall-download-limit option from listRequestOptions.
  5445. * src/download_helper.cc
  5446. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5447. Log incoming host in HttpListenCommand.
  5448. * src/HttpListenCommand.cc
  5449. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5450. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  5451. --xml-rpc-passwd option.
  5452. * src/HttpServer.cc
  5453. * src/HttpServer.h
  5454. * src/HttpServerCommand.cc
  5455. * src/OptionHandlerFactory.cc
  5456. * src/prefs.cc
  5457. * src/prefs.h
  5458. * src/usage_text.h
  5459. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5460. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  5461. processing 0 length request.
  5462. * src/HttpServerBodyCommand.cc
  5463. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5464. Removed --enable-http-server and --http-server-listen-port
  5465. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  5466. instead. The original feature for --enable-http-server that
  5467. reports download progress in HTML was officially removed. Persist
  5468. XML-RPC connection if client supports keep-alive.
  5469. * src/DownloadEngineFactory.cc
  5470. * src/HttpServerCommand.cc
  5471. * src/HttpServerResponseCommand.cc
  5472. * src/Makefile.am
  5473. * src/Makefile.in
  5474. * src/OptionHandlerFactory.cc
  5475. * src/RequestGroupMan.cc
  5476. * src/main.cc
  5477. * src/option_processing.cc
  5478. * src/prefs.cc
  5479. * src/prefs.h
  5480. * src/usage_text.h
  5481. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5482. Added "uris" key to the response of tellStatus command. Added
  5483. "connections" key to the response of tellStatus and tellActive
  5484. command.
  5485. * src/XmlRpcMethodImpl.cc
  5486. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5487. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  5488. Added TellStatusXmlRpcMethod. Remove command can now remove
  5489. waiting RequestGroup.
  5490. * src/RequestGroupMan.cc
  5491. * src/RequestGroupMan.h
  5492. * src/XmlRpcMethodFactory.cc
  5493. * src/XmlRpcMethodImpl.cc
  5494. * src/XmlRpcMethodImpl.h
  5495. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5496. Initialized _peerId
  5497. * src/Peer.cc
  5498. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5499. Return fault structure for error. FailXmlRpcMethod is renamed as
  5500. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  5501. in non-torrent download. Return single param value.
  5502. * src/XmlRpcMethod.cc
  5503. * src/XmlRpcMethodFactory.cc
  5504. * src/XmlRpcMethodImpl.cc
  5505. * src/XmlRpcMethodImpl.h
  5506. * test/XmlRpcMethodTest.cc
  5507. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5508. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  5509. command.
  5510. * src/RequestGroup.cc
  5511. * src/RequestGroup.h
  5512. * src/RequestGroupMan.cc
  5513. * src/XmlRpcMethodImpl.cc
  5514. * test/RequestGroupTest.cc
  5515. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5516. Added more options that can be specified in -i list and xml-rpc
  5517. add* command.
  5518. * src/download_helper.h
  5519. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5520. The available options in -i list should be listed in
  5521. listRequestOptions().
  5522. * src/download_helper.cc
  5523. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5524. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  5525. command.
  5526. * src/XmlRpcMethodImpl.cc
  5527. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5528. Now RequestGroup has its own copy of Option object. This will help
  5529. to give custom option for each RequestGroup.
  5530. addTorrentFile command now takes options.
  5531. * src/AbstractCommand.cc
  5532. * src/AbstractCommand.h
  5533. * src/AbstractProxyRequestCommand.cc
  5534. * src/ActivePeerConnectionCommand.cc
  5535. * src/ActivePeerConnectionCommand.h
  5536. * src/AdaptiveURISelector.cc
  5537. * src/BtCheckIntegrityEntry.cc
  5538. * src/BtDependency.cc
  5539. * src/BtDependency.h
  5540. * src/BtFileAllocationEntry.cc
  5541. * src/BtPostDownloadHandler.cc
  5542. * src/CheckIntegrityEntry.cc
  5543. * src/DownloadCommand.cc
  5544. * src/FtpDownloadCommand.cc
  5545. * src/FtpFinishDownloadCommand.cc
  5546. * src/FtpInitiateConnectionCommand.cc
  5547. * src/FtpNegotiationCommand.cc
  5548. * src/HttpInitiateConnectionCommand.cc
  5549. * src/HttpRequestCommand.cc
  5550. * src/HttpResponseCommand.cc
  5551. * src/HttpSkipResponseCommand.cc
  5552. * src/InitiateConnectionCommand.cc
  5553. * src/InitiateConnectionCommandFactory.cc
  5554. * src/InitiatorMSEHandshakeCommand.cc
  5555. * src/InitiatorMSEHandshakeCommand.h
  5556. * src/Metalink2RequestGroup.cc
  5557. * src/Metalink2RequestGroup.h
  5558. * src/MetalinkPostDownloadHandler.cc
  5559. * src/MultiUrlRequestInfo.cc
  5560. * src/MultiUrlRequestInfo.h
  5561. * src/PeerAbstractCommand.cc
  5562. * src/PeerInteractionCommand.cc
  5563. * src/PeerInteractionCommand.h
  5564. * src/PeerReceiveHandshakeCommand.cc
  5565. * src/PeerReceiveHandshakeCommand.h
  5566. * src/RequestGroup.cc
  5567. * src/RequestGroup.h
  5568. * src/TrackerWatcherCommand.cc
  5569. * src/TrackerWatcherCommand.h
  5570. * src/XmlRpcMethod.cc
  5571. * src/XmlRpcMethod.h
  5572. * src/XmlRpcMethodImpl.cc
  5573. * src/download_helper.cc
  5574. * src/download_helper.h
  5575. * src/main.cc
  5576. * test/BtDependencyTest.cc
  5577. * test/BtPostDownloadHandlerTest.cc
  5578. * test/DefaultBtMessageDispatcherTest.cc
  5579. * test/DownloadHandlerFactoryTest.cc
  5580. * test/DownloadHelperTest.cc
  5581. * test/Metalink2RequestGroupTest.cc
  5582. * test/MetalinkPostDownloadHandlerTest.cc
  5583. * test/RequestGroupManTest.cc
  5584. * test/RequestGroupTest.cc
  5585. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5586. Added tellActiveStatus xml-rpc command which reports download
  5587. status of active downloads.
  5588. * src/XmlRpcMethodFactory.cc
  5589. * src/XmlRpcMethodImpl.cc
  5590. * src/XmlRpcMethodImpl.h
  5591. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5592. Added addTorrentFile xml-rpc command which receives uploaded
  5593. torrent file and add download for it.
  5594. * src/RequestGroupMan.cc
  5595. * src/XmlRpcMethodFactory.cc
  5596. * src/XmlRpcMethodImpl.cc
  5597. * src/XmlRpcMethodImpl.h
  5598. * src/download_helper.cc
  5599. * src/download_helper.h
  5600. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5601. Added remove xml-rpc command which removes specified download.
  5602. There is a known issue: the removed unfinished downloads are
  5603. reported ERR when aria2 exits. They should be reported as INPR.
  5604. * src/RequestGroupMan.cc
  5605. * src/RequestGroupMan.h
  5606. * src/XmlRpcMethodFactory.cc
  5607. * src/XmlRpcMethodImpl.cc
  5608. * src/XmlRpcMethodImpl.h
  5609. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5610. If --enable-http-server is enabled, don't stop aria2 when all
  5611. download finished and don't quit when no files to download at
  5612. start up.
  5613. * src/RequestGroupMan.cc
  5614. * src/main.cc
  5615. * src/option_processing.cc
  5616. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5617. Added missing AM_CONDITIONAL
  5618. * configure.ac
  5619. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5620. Added xml-rpc functionality. Currently only addURI commad is
  5621. supported. To enable xml-rpc, run aria2 with
  5622. --enable-http-server. This option name is temporal and will be
  5623. changed. The feature that reports download progress in html format
  5624. is temporarily disabled.
  5625. * src/HttpServer.cc
  5626. * src/HttpServer.h
  5627. * src/HttpServerBodyCommand.cc
  5628. * src/HttpServerBodyCommand.h
  5629. * src/HttpServerCommand.cc
  5630. * src/HttpServerResponseCommand.cc
  5631. * src/Makefile.am
  5632. * src/OptionParser.cc
  5633. * src/OptionParser.h
  5634. * src/RequestGroupMan.cc
  5635. * src/RequestGroupMan.h
  5636. * src/XmlRpcMethod.cc
  5637. * src/XmlRpcMethod.h
  5638. * src/XmlRpcMethodFactory.cc
  5639. * src/XmlRpcMethodFactory.h
  5640. * src/XmlRpcMethodImpl.cc
  5641. * src/XmlRpcMethodImpl.h
  5642. * src/download_helper.cc
  5643. * src/download_helper.h
  5644. * test/Makefile.am
  5645. * test/XmlRpcMethodTest.cc
  5646. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5647. Added xml-rpc request parser. The supported value types are:
  5648. i4/int, string, double, struct, array, base64. Currently only
  5649. libxml2 version is provided.
  5650. * src/Xml2XmlRpcRequestProcessor.cc
  5651. * src/Xml2XmlRpcRequestProcessor.h
  5652. * src/XmlRpcElements.cc
  5653. * src/XmlRpcElements.h
  5654. * src/XmlRpcRequest.h
  5655. * src/XmlRpcRequestParserController.cc
  5656. * src/XmlRpcRequestParserController.h
  5657. * src/XmlRpcRequestParserState.h
  5658. * src/XmlRpcRequestParserStateImpl.cc
  5659. * src/XmlRpcRequestParserStateImpl.h
  5660. * src/XmlRpcRequestParserStateMachine.cc
  5661. * src/XmlRpcRequestParserStateMachine.h
  5662. * src/XmlRpcRequestProcessor.h
  5663. * test/XmlRpcRequestParserControllerTest.cc
  5664. * test/XmlRpcRequestProcessorTest.cc
  5665. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. * Release 1.3.3
  5667. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5668. Fixed compile error since r1202.
  5669. * src/ExpatMetalinkProcessor.cc
  5670. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5671. Updated Ukrainian, Russian and Simplified Chinese
  5672. translations. Thanks to all translators.
  5673. * po/ru.po
  5674. * po/uk.po
  5675. * po/zh_CN.po
  5676. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5677. Pass reference of Option object instead of pointer.
  5678. * src/download_helper.cc
  5679. * src/download_helper.h
  5680. * src/main.cc
  5681. * test/DownloadHelperTest.cc
  5682. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5683. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  5684. from option directly. Instead, get them from RequestGroup.
  5685. * src/ActivePeerConnectionCommand.cc
  5686. * src/ActivePeerConnectionCommand.h
  5687. * src/PeerReceiveHandshakeCommand.cc
  5688. * src/RequestGroup.h
  5689. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5690. Removed unused uploadLimitCheck and uploadLimit from
  5691. PeerAbstractCommand. Removed unused maxDownloadLimit from
  5692. PeerInteractionCommand.
  5693. * src/PeerAbstractCommand.cc
  5694. * src/PeerAbstractCommand.h
  5695. * src/PeerInteractionCommand.cc
  5696. * src/PeerInteractionCommand.h
  5697. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5698. Fixed broken file renaming feature since r1202.
  5699. * src/FtpNegotiationCommand.cc
  5700. * src/FtpNegotiationCommand.h
  5701. * src/HttpResponseCommand.cc
  5702. * src/RequestGroup.cc
  5703. * src/RequestGroup.h
  5704. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5705. Removed unused debug log
  5706. * src/SocketCore.cc
  5707. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5708. Generated configure and Makefile.in using autoconf 2.63 and
  5709. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  5710. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  5711. * configure.ac
  5712. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5713. Moved piece statistics stuff to new PieceStatMan class.
  5714. Refactored PieceSelector interface.
  5715. * src/DefaultPieceStorage.cc
  5716. * src/DefaultPieceStorage.h
  5717. * src/LongestSequencePieceSelector.cc
  5718. * src/LongestSequencePieceSelector.h
  5719. * src/Makefile.am
  5720. * src/PieceSelector.h
  5721. * src/PieceStatMan.cc
  5722. * src/PieceStatMan.h
  5723. * src/RarestPieceSelector.cc
  5724. * src/RarestPieceSelector.h
  5725. * src/RequestGroup.cc
  5726. * test/DefaultPieceStorageTest.cc
  5727. * test/InOrderPieceSelector.h
  5728. * test/Makefile.am
  5729. * test/PieceStatManTest.cc
  5730. * test/RarestPieceSelectorTest.cc
  5731. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5732. Added static member _protocolFamily to SocketCore. By default,
  5733. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  5734. address. Sometime SocketCore::bind() and
  5735. SocketCore::establishConnection() use difference protocl family
  5736. and latter cannot connect to former. To avoid this situation, we
  5737. limit protocol family to AF_INET for unit tests.
  5738. * src/SocketCore.cc
  5739. * src/SocketCore.h
  5740. * test/AllTest.cc
  5741. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5742. Avoid std::bad_alloc for negative bencode string length.
  5743. * src/bencode.cc
  5744. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5745. Supported segmented downloading with chunked transfer encoding and
  5746. content-length.
  5747. * src/DownloadCommand.cc
  5748. * src/HttpResponseCommand.cc
  5749. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5750. Bump up version number to 1.3.3
  5751. * configure.ac
  5752. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5753. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  5754. from 4096 to 65536 (for insanely large ftp login banners)
  5755. * src/FtpConnection.h
  5756. * test/FtpConnectionTest.cc
  5757. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5758. In DefaultBtContext::getActualBasePath(), return first
  5759. FileEntry::getPath() for single file torrent.
  5760. * src/DefaultBtContext.cc
  5761. * test/DefaultBtContextTest.cc
  5762. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5763. Removed directIOAllowed() from BinaryStream, DiskWriter,
  5764. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  5765. Removed _directIOAllowed member from DiskWriter.
  5766. * src/AbstractDiskWriter.cc
  5767. * src/AbstractDiskWriter.h
  5768. * src/AbstractSingleDiskAdaptor.cc
  5769. * src/AbstractSingleDiskAdaptor.h
  5770. * src/BinaryStream.h
  5771. * src/ByteArrayDiskWriter.h
  5772. * src/DefaultPieceStorage.cc
  5773. * src/DiskWriter.h
  5774. * src/MultiDiskAdaptor.cc
  5775. * src/MultiDiskAdaptor.h
  5776. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5777. Now the constructor of AbstractDiskWriter takes filename as an
  5778. argument and filename argument is removed from openFile(),
  5779. initAndOpenFile(), openExistingFile() interface. storeDir member
  5780. and its accessor functions are removed from DiskAdaptor because it
  5781. is not used anymore. size() member function of DefaultDiskWriter,
  5782. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  5783. opening file.
  5784. * src/AbstractDiskWriter.cc
  5785. * src/AbstractDiskWriter.h
  5786. * src/AbstractSingleDiskAdaptor.cc
  5787. * src/AbstractSingleDiskAdaptor.h
  5788. * src/ByteArrayDiskWriter.cc
  5789. * src/ByteArrayDiskWriter.h
  5790. * src/ByteArrayDiskWriterFactory.cc
  5791. * src/ByteArrayDiskWriterFactory.h
  5792. * src/DefaultDiskWriter.cc
  5793. * src/DefaultDiskWriter.h
  5794. * src/DefaultDiskWriterFactory.cc
  5795. * src/DefaultDiskWriterFactory.h
  5796. * src/DefaultPieceStorage.cc
  5797. * src/DirectDiskAdaptor.cc
  5798. * src/DirectDiskAdaptor.h
  5799. * src/DiskAdaptor.h
  5800. * src/DiskWriter.h
  5801. * src/DiskWriterFactory.h
  5802. * src/MessageDigestHelper.cc
  5803. * src/MultiDiskAdaptor.cc
  5804. * src/RequestGroup.cc
  5805. * src/UnknownLengthPieceStorage.cc
  5806. * src/Util.cc
  5807. * test/DefaultDiskWriterTest.cc
  5808. * test/DirectDiskAdaptorTest.cc
  5809. * test/FallocFileAllocationIteratorTest.cc
  5810. * test/MessageDigestHelperTest.cc
  5811. * test/MetalinkProcessorTest.cc
  5812. * test/MultiDiskAdaptorTest.cc
  5813. * test/MultiFileAllocationIteratorTest.cc
  5814. * test/SingleFileAllocationIteratorTest.cc
  5815. * test/UtilTest.cc
  5816. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5817. Fixed the bug that aria2 aborts when --select-file is used. This
  5818. bug was introduced in r1199.
  5819. * src/MultiDiskAdaptor.cc
  5820. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5821. Code cleanup
  5822. * test/MockPieceStorage.cc
  5823. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5824. Fixed the bug that read-only file with wrong file size will cause
  5825. error because it cannot be truncated to the correct size. Now if
  5826. file size is different than the expected one, re-open file in
  5827. writable mode.
  5828. * src/AbstractSingleDiskAdaptor.cc
  5829. * src/AbstractSingleDiskAdaptor.h
  5830. * src/BtCheckIntegrityEntry.cc
  5831. * src/DiskAdaptor.h
  5832. * src/MultiDiskAdaptor.h
  5833. * src/RequestGroup.cc
  5834. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5835. Fixed the bug that with --check-integrity option aria2 reports
  5836. downloaded file size is 0 even if some parts of file is correctly
  5837. downloaded. This bug is reproducible for the download that a file
  5838. includes last piece is missing. This bug doesn't reveal for
  5839. single-torrent with file allocation on.
  5840. * src/IteratableChecksumValidator.cc
  5841. * test/IteratableChecksumValidatorTest.cc
  5842. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5843. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5844. * src/RequestGroupMan.cc
  5845. * src/AdaptiveURISelector.cc
  5846. * src/AdaptiveURISelector.h
  5847. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5848. * Release 1.3.2
  5849. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5850. Updated README
  5851. * README
  5852. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5853. Updated Ukrainian translations. Thanks to Alexander10.
  5854. * po/uk.po
  5855. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5856. Code cleanup
  5857. * src/MetalinkParserStateMachine.cc
  5858. * src/MetalinkParserStateMachine.h
  5859. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5860. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5861. and expat simultaneously, MetalinkProcessor is now not base class
  5862. and it is directly implemented in XML2SAXMetalinkProcessor and
  5863. ExpatMetalinkProcessor.
  5864. * src/ExpatMetalinkProcessor.cc
  5865. * src/ExpatMetalinkProcessor.h
  5866. * src/Makefile.am
  5867. * src/MetalinkHelper.cc
  5868. * src/MetalinkProcessor.h
  5869. * src/MetalinkProcessorFactory.cc: Removed.
  5870. * src/MetalinkProcessorFactory.h: Removed
  5871. * src/XML2SAXMetalinkProcessor.cc
  5872. * src/XML2SAXMetalinkProcessor.h
  5873. * test/MetalinkProcessorTest.cc
  5874. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5875. Bump up version number to 1.3.2
  5876. * configure.ac
  5877. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5878. Added missing file.
  5879. * test/Makefile.am
  5880. * test/url-list-singleFileEndsWithSlash.torrent
  5881. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5882. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5883. request.
  5884. * src/AnnounceList.cc
  5885. * src/AnnounceList.h
  5886. * src/BDE.cc: Added
  5887. * src/BDE.h: Added
  5888. * src/DHTAbstractMessage.cc
  5889. * src/DHTAbstractMessage.h
  5890. * src/DHTAnnouncePeerMessage.cc
  5891. * src/DHTAnnouncePeerMessage.h
  5892. * src/DHTAnnouncePeerReplyMessage.cc
  5893. * src/DHTAnnouncePeerReplyMessage.h
  5894. * src/DHTFindNodeMessage.cc
  5895. * src/DHTFindNodeMessage.h
  5896. * src/DHTFindNodeReplyMessage.cc
  5897. * src/DHTFindNodeReplyMessage.h
  5898. * src/DHTGetPeersMessage.cc
  5899. * src/DHTGetPeersMessage.h
  5900. * src/DHTGetPeersReplyMessage.cc
  5901. * src/DHTGetPeersReplyMessage.h
  5902. * src/DHTMessageFactory.h
  5903. * src/DHTMessageFactoryImpl.cc
  5904. * src/DHTMessageFactoryImpl.h
  5905. * src/DHTMessageReceiver.cc
  5906. * src/DHTMessageTracker.cc
  5907. * src/DHTMessageTracker.h
  5908. * src/DHTPingMessage.cc
  5909. * src/DHTPingMessage.h
  5910. * src/DHTPingReplyMessage.cc
  5911. * src/DHTPingReplyMessage.h
  5912. * src/DHTQueryMessage.cc
  5913. * src/DHTQueryMessage.h
  5914. * src/DHTResponseMessage.cc
  5915. * src/DHTResponseMessage.h
  5916. * src/DefaultBtAnnounce.cc
  5917. * src/DefaultBtContext.cc
  5918. * src/DefaultBtContext.h
  5919. * src/HandshakeExtensionMessage.cc
  5920. * src/Makefile.am
  5921. * src/PeerListProcessor.h
  5922. * src/UTPexExtensionMessage.cc
  5923. * src/bencode.cc
  5924. * src/bencode.h
  5925. * test/AnnounceListTest.cc
  5926. * test/BDETest.cc: Added
  5927. * test/BencodeTest.cc
  5928. * test/DHTAnnouncePeerMessageTest.cc
  5929. * test/DHTAnnouncePeerReplyMessageTest.cc
  5930. * test/DHTFindNodeMessageTest.cc
  5931. * test/DHTFindNodeReplyMessageTest.cc
  5932. * test/DHTGetPeersMessageTest.cc
  5933. * test/DHTGetPeersReplyMessageTest.cc
  5934. * test/DHTMessageFactoryImplTest.cc
  5935. * test/DHTMessageTrackerTest.cc
  5936. * test/DHTPingMessageTest.cc
  5937. * test/DHTPingReplyMessageTest.cc
  5938. * test/Makefile.am
  5939. * test/MockDHTMessageFactory.h
  5940. * test/PeerListProcessorTest.cc
  5941. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5942. Use url-list (web-seeding) only for single-file torrent. This is
  5943. basically the same behavior with Metalink file with torrent and
  5944. URIs.
  5945. * src/RequestGroup.cc
  5946. * src/DefaultBtContext.cc
  5947. * test/DefaultBtContextTest.cc
  5948. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5949. Rewritten expr
  5950. * src/array_fun.h
  5951. * test/array_funTest.cc
  5952. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5953. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5954. * src/DefaultBtMessageDispatcher.cc
  5955. * src/a2algo.h
  5956. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5957. Removed ExtendedMessagingAware. Instead of using inheritance,
  5958. added ExtensionMessageRegistry and it is passed to
  5959. DefaultExtensionMessageFactory.
  5960. * src/DefaultBtInteractive.cc
  5961. * src/DefaultBtInteractive.h
  5962. * src/DefaultExtensionMessageFactory.cc
  5963. * src/DefaultExtensionMessageFactory.h
  5964. * src/ExtendedMessagingAware.h: Removed.
  5965. * src/ExtensionMessageFactory.h
  5966. * src/ExtensionMessageRegistry.h: Added.
  5967. * src/Makefile.am
  5968. * src/PeerInteractionCommand.cc
  5969. * test/DefaultExtensionMessageFactoryTest.cc
  5970. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5971. Fixed typo in log messages
  5972. * src/MSEHandshake.cc
  5973. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5974. Fixed the bug that prevents torrent download from finishing. The
  5975. bug doesn't reveal for all torrents. The torrents affected this
  5976. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5977. of pieces.
  5978. * src/bitfield.h
  5979. * test/bitfieldTest.cc
  5980. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5981. Code cleanup
  5982. * src/PeerListProcessor.h
  5983. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5984. Removed RequestGroupAware
  5985. * src/AbstractCommand.cc
  5986. * src/AbstractCommand.h
  5987. * src/ActivePeerConnectionCommand.cc
  5988. * src/ActivePeerConnectionCommand.h
  5989. * src/DHTGetPeersCommand.cc
  5990. * src/DHTGetPeersCommand.h
  5991. * src/InitiatorMSEHandshakeCommand.cc
  5992. * src/InitiatorMSEHandshakeCommand.h
  5993. * src/Makefile.am
  5994. * src/PeerInitiateConnectionCommand.cc
  5995. * src/PeerInitiateConnectionCommand.h
  5996. * src/PeerInteractionCommand.cc
  5997. * src/PeerInteractionCommand.h
  5998. * src/RealtimeCommand.cc
  5999. * src/RealtimeCommand.h
  6000. * src/RequestGroupAware.cc: Removed
  6001. * src/RequestGroupAware.h: Removed
  6002. * src/SeedCheckCommand.cc
  6003. * src/SeedCheckCommand.h
  6004. * src/SleepCommand.cc
  6005. * src/TrackerWatcherCommand.cc
  6006. * src/TrackerWatcherCommand.h
  6007. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6008. Rewritten PeerListProcessor
  6009. * src/PeerListProcessor.h
  6010. * src/CompactPeerListProcessor.h: Removed
  6011. * src/CompactPeerListProcessor.cc: Removed
  6012. * src/DelegatingPeerListProcessor.cc: Removed.
  6013. * src/DefaultBtAnnounce.cc
  6014. * src/Makefile.am
  6015. * src/UTPexExtensionMessage.cc
  6016. * src/DefaultPeerListProcessor.h: Removed.
  6017. * src/DefaultPeerListProcessor.cc: Removed.
  6018. * src/DelegatingPeerListProcessor.h: Removed.
  6019. * test/Makefile.am
  6020. * test/PeerListProcessorTest.cc
  6021. * test/DefaultPeerListProcessorTest.cc: Removed.
  6022. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6023. Rewritten RequestGroupMan::calculateStat()
  6024. * src/RequestGroupMan.cc
  6025. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6026. Removed unnecessary virtual destructor for Request class.
  6027. * src/Request.cc
  6028. * src/Request.h
  6029. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6030. Avoid dynamic_pointer_cast.
  6031. * src/DHTGetPeersCommand.cc
  6032. * src/DHTGetPeersCommand.h
  6033. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6034. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  6035. BtEvent.
  6036. * src/AbstractBtEventListener.h: Removed.
  6037. * src/AbstractBtMessage.cc
  6038. * src/AbstractBtMessage.h
  6039. * src/BtAbortOutstandingRequestEvent.h
  6040. * src/BtCancelSendingPieceEvent.h
  6041. * src/BtChokedEvent.h: Removed.
  6042. * src/BtChokingEvent.h
  6043. * src/BtEvent.h: Removed
  6044. * src/BtEventListener.h: Removed.
  6045. * src/BtMessage.h
  6046. * src/BtPieceMessage.cc
  6047. * src/BtPieceMessage.h
  6048. * src/BtRequestMessage.cc
  6049. * src/BtRequestMessage.h
  6050. * src/DefaultBtMessageDispatcher.cc
  6051. * src/Makefile.am
  6052. * src/a2functional.h
  6053. * test/BtPieceMessageTest.cc
  6054. * test/BtRequestMessageTest.cc
  6055. * test/DefaultBtMessageDispatcherTest.cc
  6056. * test/MockBtMessage.h
  6057. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6058. Code cleanup
  6059. * src/RequestGroupMan.cc
  6060. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6061. Code cleanup
  6062. * src/DownloadCommand.cc
  6063. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6064. Fixed segmentation fault when GZipDecoder::decode() returns 0
  6065. byte.
  6066. * src/DownloadCommand.cc
  6067. * src/bitfield.h
  6068. * test/bitfieldTest.cc
  6069. Fixed the bug that causes infinite loop if broken web server
  6070. returns chunked response without last "0" chunk-size marker and
  6071. closes connection.
  6072. * src/DownloadCommand.cc
  6073. Instantiate properly configured HttpDownloadCommand for
  6074. non-resumable downlaods.
  6075. * src/HttpResponseCommand.cc
  6076. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6077. Rewritten array operation functions.
  6078. * src/BitfieldMan.cc
  6079. * src/array_fun.h
  6080. * test/array_funTest.cc
  6081. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6082. Removed unused variable 'query'
  6083. * src/Request.cc
  6084. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6085. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  6086. accidentally set to false in r1162.
  6087. * configure.ac
  6088. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6089. Code cleanup
  6090. * src/BNode.cc
  6091. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6092. Increase prefixLength for the bucket which doesn't own local node
  6093. ID when splitting bucket.
  6094. * src/DHTBucket.cc
  6095. * test/DHTBucketTest.cc
  6096. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6097. * Release 1.3.1
  6098. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6099. Bump up version number to 1.3.1
  6100. * configure.ac
  6101. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6102. Removed unused variable checkPoint. Also removed include directive
  6103. for TimeA2.h.
  6104. * src/SeedCheckCommand.h
  6105. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6106. Fixed the bug that upload limit exceeds the value specified in
  6107. --seed-ratio option depending on the timing of the execution of
  6108. SeedCheckCommand.
  6109. * src/SeedCheckCommand.cc
  6110. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6111. Fixed the bug that removed peer's session upload/download length
  6112. are counted twice in _cachedTransferStat before it is
  6113. re-calculated. This affected the calculation of shara ratio,
  6114. resulting aria2 wrongly determines that specified share ratio is
  6115. reached. Also fixed the typo in calculateStatFor function name.
  6116. * src/BtSetup.cc
  6117. * src/DefaultPeerStorage.cc
  6118. * src/ShareRatioSeedCriteria.h
  6119. * test/ShareRatioSeedCriteriaTest.cc
  6120. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6121. * Release 1.3.0
  6122. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6123. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  6124. Nynorsk translations. Thanks to all translators.
  6125. * po/es.po
  6126. * po/ja.po
  6127. * po/nn.po
  6128. * po/ru.po
  6129. * po/uk.po
  6130. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6131. Rewritten isInRange()
  6132. * src/DHTBucket.cc
  6133. * test/DHTBucketTest.cc
  6134. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6135. Fixed typo
  6136. * doc/aria2c.1.txt
  6137. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6138. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  6139. malloc/realloc is not used.
  6140. * src/configure.ac
  6141. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6142. BitfieldMan::getMissingIndexes family functions now takes unsigned
  6143. char* bitfield instead of stl container for efficiency.
  6144. PieceSelector::select now takes this
  6145. bitfield. RarestPieceSelector::select now also performs
  6146. efficiently for this change. bitfield namespace is introduced and
  6147. it has several helper functions to handle basic bitfield
  6148. operations such as test, count set bits, etc.
  6149. * src/BitfieldMan.cc
  6150. * src/BitfieldMan.h
  6151. * src/DefaultBtRequestFactory.cc
  6152. * src/DefaultPieceStorage.cc
  6153. * src/DefaultPieceStorage.h
  6154. * src/LongestSequencePieceSelector.cc
  6155. * src/LongestSequencePieceSelector.h
  6156. * src/Makefile.am
  6157. * src/Piece.cc
  6158. * src/Piece.h
  6159. * src/PieceSelector.h
  6160. * src/RarestPieceSelector.cc
  6161. * src/RarestPieceSelector.h
  6162. * src/Util.cc
  6163. * src/Util.h
  6164. * src/bitfield.h
  6165. * test/BitfieldManTest.cc
  6166. * test/LongestSequencePieceSelectorTest.cc
  6167. * test/Makefile.am
  6168. * test/RarestPieceSelectorTest.cc
  6169. * test/UtilTest.cc
  6170. * test/bitfieldTest.cc
  6171. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6172. Made accepted socket non-block.
  6173. * src/FtpNegotiationCommand.cc
  6174. * src/HttpListenCommand.cc
  6175. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6176. Guarded #ifdef HAVE_POSIX_FALLOCATE
  6177. * src/AbstractSingleDiskAdaptor.cc
  6178. * src/DefaultPieceStorage.cc
  6179. * src/DiskAdaptor.h
  6180. * src/DiskAdaptor.h
  6181. * src/MultiFileAllocationIterator.cc
  6182. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6183. Run
  6184. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  6185. in every 1 sec. The timeout of RequestSlot is 60s by default and
  6186. it doesn't need to be called every time when
  6187. DefaultBtInteractive::doInteractionProcessing() is called.
  6188. * src/DefaultBtInteractive.cc
  6189. * src/DefaultBtInteractive.h
  6190. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6191. Documented 'falloc' in man page.
  6192. * doc/aria2c.1.txt
  6193. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6194. Updated doc
  6195. * src/usage_text.h
  6196. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6197. Added 'falloc' parameter for --file-allocation option. 'falloc'
  6198. allocation mode uses posix_fallocate() system call to allocate
  6199. file on disk. If you are using newer file systems such as ext4
  6200. (with extents support), btrfs or xfs, 'falloc' is your best
  6201. choice. It allocates large(few GiB) files almost instantly. Don't
  6202. use 'falloc' with legacy file systems such as ext3 because it
  6203. takes almost same time as 'prealloc' and it blocks aria2 entirely
  6204. until allocation finishes. 'falloc' may not be available if your
  6205. system doesn't have posix_fallocate() system call.
  6206. * configure.ac
  6207. * src/AbstractDiskWriter.cc
  6208. * src/AbstractDiskWriter.h
  6209. * src/AbstractSingleDiskAdaptor.cc
  6210. * src/BinaryStream.h
  6211. * src/BtCheckIntegrityEntry.cc
  6212. * src/ByteArrayDiskWriter.h
  6213. * src/CheckIntegrityEntry.cc
  6214. * src/CheckIntegrityEntry.h
  6215. * src/DefaultPieceStorage.cc
  6216. * src/DiskAdaptor.cc
  6217. * src/DiskAdaptor.h
  6218. * src/DiskWriter.h
  6219. * src/FallocFileAllocationIterator.cc
  6220. * src/FallocFileAllocationIterator.h
  6221. * src/FileAllocationEntry.cc
  6222. * src/FileAllocationEntry.h
  6223. * src/Makefile.am
  6224. * src/MultiFileAllocationIterator.cc
  6225. * src/MultiFileAllocationIterator.h
  6226. * src/OptionHandlerFactory.cc
  6227. * src/RequestGroup.cc
  6228. * src/StreamCheckIntegrityEntry.cc
  6229. * src/prefs.cc
  6230. * src/prefs.h
  6231. * src/usage_text.h
  6232. * test/FallocFileAllocationIteratorTest.cc
  6233. * test/Makefile.am
  6234. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6235. Removed duplicate enableDirectIO() call.
  6236. * src/MultiFileAllocationIterator.cc
  6237. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6238. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  6239. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  6240. cost of std::rotate().
  6241. * src/RarestPieceSelector.cc
  6242. * src/RarestPieceSelector.h
  6243. * test/RarestPieceSelectorTest.cc
  6244. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6245. Updated usage doc for --bt-tracker-interval option.
  6246. * src/usage_text.h
  6247. * doc/aria2c.1.txt
  6248. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6249. Documented --bt-tracker-interval option in man page.
  6250. * doc/aria2c.1.txt
  6251. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6252. Added an option to specify the interval between tracker requests.
  6253. If non-zero value is specified, aria2 uses it and ignores the
  6254. interval value in the response of tracker. If zero is specified,
  6255. aria2 determines the inteval value based on the tarcker response
  6256. and download progress.
  6257. * src/DefaultBtAnnounce.cc
  6258. * src/DefaultBtAnnounce.h
  6259. * src/OptionHandlerFactory.cc
  6260. * src/RequestGroup.cc
  6261. * src/prefs.cc
  6262. * src/prefs.h
  6263. * src/usage_text.h
  6264. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6265. Added operator+=, operator-=, operator-
  6266. * src/TransferStat.cc
  6267. * src/TransferStat.h
  6268. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6269. Refactored RarestPieceSelector to reduce CPU load, especially for
  6270. addPieceStats.
  6271. * src/RarestPieceSelector.cc
  6272. * src/RarestPieceSelector.h
  6273. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6274. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  6275. getAllMissingBlockIndexes to reduce a call to
  6276. array_function_base::operator[].
  6277. * src/BitfieldMan.cc
  6278. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6279. Cached TransferStat/download speed to avoid to sum them up in each
  6280. call.
  6281. * src/DefaultPeerStorage.cc
  6282. * src/DefaultPeerStorage.h
  6283. * src/SegmentMan.cc
  6284. * src/SegmentMan.h
  6285. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6286. Typedefed cuid_t as int32_t in Command.h
  6287. * src/CUIDCounter.h
  6288. * src/Command.cc
  6289. * src/Command.h
  6290. * src/DownloadEngine.cc
  6291. * src/DownloadEngine.h
  6292. * src/PeerStat.h
  6293. * src/SegmentMan.cc
  6294. * src/SegmentMan.h
  6295. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6296. Reduced the number of calls to PeerStorage::calculateStat() and
  6297. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  6298. transfer rate.
  6299. * src/DefaultBtInteractive.cc
  6300. * src/DefaultBtMessageDispatcher.cc
  6301. * src/DefaultPeerStorage.cc
  6302. * src/DefaultPeerStorage.h
  6303. * src/DownloadCommand.cc
  6304. * src/DownloadEngine.cc
  6305. * src/PeerStorage.h
  6306. * src/SegmentMan.cc
  6307. * src/SegmentMan.h
  6308. * test/MockPeerStorage.h
  6309. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6310. Prepended _dir+"/" after joining path elements in torrent file.
  6311. * src/DefaultBtContext.cc
  6312. * test/DefaultBtContextTest.cc
  6313. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6314. Added missing IndexBtMessageValidator.h
  6315. * src/Makefile.am
  6316. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6317. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  6318. Chinese translations. Thank you for contributing our project.
  6319. * po/id.po
  6320. * po/it.po
  6321. * po/ru.po
  6322. * po/uk.po
  6323. * po/zh_CN.po
  6324. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6325. Updated README
  6326. * README
  6327. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6328. Bump up version number to 1.3.0
  6329. * configure.ac
  6330. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6331. Updated doc
  6332. * src/DefaultBtContext.h
  6333. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6334. Slice/joinPath for name of single torrent.
  6335. * src/DefaultBtContext.cc
  6336. * test/DefaultBtContextTest.cc
  6337. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6338. Updated man page: Documented --dry-run and --index-out
  6339. options. Changed the default value of --uri-selector and
  6340. --http-auth-challenge options. Removed --direct-file-mapping
  6341. option. Added example for --index-out
  6342. * doc/aria2c.1.txt
  6343. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6344. Updated TEXT_DRY_RUN
  6345. * src/usage_text.h
  6346. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6347. Changed the default value of --uri-selector option from 'inorder'
  6348. to 'feedback'
  6349. * src/OptionHandlerFactory.cc
  6350. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6351. Included current URI in exception message.
  6352. * src/AbstractCommand.cc
  6353. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6354. Renamed ServerStatURISelector as FeedbackURISelector.
  6355. * src/FeedbackURISelector.cc
  6356. * src/FeedbackURISelector.h
  6357. * src/Makefile.am
  6358. * src/RequestGroupMan.cc
  6359. * src/ServerStatURISelector.cc
  6360. * src/ServerStatURISelector.h
  6361. * test/FeedbackURISelectorTest.cc
  6362. * test/Makefile.am
  6363. * test/ServerStatURISelectorTest.cc
  6364. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6365. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  6366. all URIs are tested and their timeout is not reached.
  6367. * src/AdaptiveURISelector.cc
  6368. * src/AdaptiveURISelector.h
  6369. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6370. Changed the default value of --http-auth-challenge option to false.
  6371. * src/OptionHandlerFactory.cc
  6372. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6373. Reuse URIs when all unused URIs run out.
  6374. * src/OptionHandlerFactory.cc
  6375. * src/RequestGroup.cc
  6376. * src/prefs.cc
  6377. * src/prefs.h
  6378. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6379. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  6380. and BtRejectMessage are derived from RangeBtMessage class.
  6381. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  6382. derived from IndexBtMessage class. BtChokeMessage,
  6383. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  6384. BtNotInterestedMessage and BtUnchokeMessage are derived from
  6385. ZeroBtMessage class.
  6386. * src/AbstractBtMessage.cc
  6387. * src/AbstractBtMessage.h
  6388. * src/BtAllowedFastMessage.cc
  6389. * src/BtAllowedFastMessage.h
  6390. * src/BtAllowedFastMessageValidator.h: Removed
  6391. * src/BtBitfieldMessage.cc
  6392. * src/BtBitfieldMessage.h
  6393. * src/BtCancelMessage.cc
  6394. * src/BtCancelMessage.h
  6395. * src/BtCancelMessageValidator.h: Removed
  6396. * src/BtChokeMessage.cc
  6397. * src/BtChokeMessage.h
  6398. * src/BtExtendedMessage.cc
  6399. * src/BtExtendedMessage.h
  6400. * src/BtHandshakeMessage.cc
  6401. * src/BtHandshakeMessage.h
  6402. * src/BtHaveAllMessage.cc
  6403. * src/BtHaveAllMessage.h
  6404. * src/BtHaveMessage.cc
  6405. * src/BtHaveMessage.h
  6406. * src/BtHaveMessageValidator.h: Removed
  6407. * src/BtHaveNoneMessage.cc
  6408. * src/BtHaveNoneMessage.h
  6409. * src/BtInterestedMessage.cc
  6410. * src/BtInterestedMessage.h
  6411. * src/BtKeepAliveMessage.cc
  6412. * src/BtKeepAliveMessage.h
  6413. * src/BtNotInterestedMessage.cc
  6414. * src/BtNotInterestedMessage.h
  6415. * src/BtPieceMessage.cc
  6416. * src/BtPieceMessage.h
  6417. * src/BtPortMessage.cc
  6418. * src/BtPortMessage.h
  6419. * src/BtRejectMessage.cc
  6420. * src/BtRejectMessage.h
  6421. * src/BtRejectMessageValidator.h: Removed
  6422. * src/BtRequestMessage.cc
  6423. * src/BtRequestMessage.h
  6424. * src/BtRequestMessageValidator.h: Removed
  6425. * src/BtSuggestPieceMessage.cc
  6426. * src/BtSuggestPieceMessage.h
  6427. * src/BtSuggestPieceMessageValidator.h: Removed
  6428. * src/BtUnchokeMessage.cc
  6429. * src/BtUnchokeMessage.h
  6430. * src/DefaultBtMessageFactory.cc
  6431. * src/IndexBtMessage.cc
  6432. * src/IndexBtMessage.h
  6433. * src/IndexBtMessageValidator.h
  6434. * src/Makefile.am
  6435. * src/PeerMessageUtil.cc
  6436. * src/PeerMessageUtil.h
  6437. * src/RangeBtMessage.cc
  6438. * src/RangeBtMessage.h
  6439. * src/RangeBtMessageValidator.h
  6440. * src/SimpleBtMessage.cc
  6441. * src/SimpleBtMessage.h
  6442. * src/ZeroBtMessage.cc
  6443. * src/ZeroBtMessage.h
  6444. * test/BtRequestMessageTest.cc
  6445. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6446. Reverted usage_text.h to r1093 to avoid to lose translated
  6447. messages.
  6448. * src/usage_text.h
  6449. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6450. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  6451. declared as non-const previously is now const and defined in class
  6452. definition.
  6453. * src/AbstractBtMessage.cc
  6454. * src/AbstractBtMessage.h
  6455. * src/BtAllowedFastMessage.cc
  6456. * src/BtAllowedFastMessage.h
  6457. * src/BtBitfieldMessage.h
  6458. * src/BtCancelMessage.cc
  6459. * src/BtCancelMessage.h
  6460. * src/BtChokeMessage.cc
  6461. * src/BtChokeMessage.h
  6462. * src/BtExtendedMessage.cc
  6463. * src/BtExtendedMessage.h
  6464. * src/BtHandshakeMessage.cc
  6465. * src/BtHandshakeMessage.h
  6466. * src/BtHaveAllMessage.cc
  6467. * src/BtHaveAllMessage.h
  6468. * src/BtHaveMessage.cc
  6469. * src/BtHaveMessage.h
  6470. * src/BtHaveNoneMessage.cc
  6471. * src/BtHaveNoneMessage.h
  6472. * src/BtInterestedMessage.cc
  6473. * src/BtInterestedMessage.h
  6474. * src/BtKeepAliveMessage.cc
  6475. * src/BtKeepAliveMessage.h
  6476. * src/BtMessage.h
  6477. * src/BtNotInterestedMessage.cc
  6478. * src/BtNotInterestedMessage.h
  6479. * src/BtPieceMessage.h
  6480. * src/BtPortMessage.cc
  6481. * src/BtPortMessage.h
  6482. * src/BtRejectMessage.cc
  6483. * src/BtRejectMessage.h
  6484. * src/BtRequestMessage.cc
  6485. * src/BtRequestMessage.h
  6486. * src/BtSuggestPieceMessage.cc
  6487. * src/BtSuggestPieceMessage.h
  6488. * src/BtUnchokeMessage.cc
  6489. * src/BtUnchokeMessage.h
  6490. * src/SimpleBtMessage.cc
  6491. * src/SimpleBtMessage.h
  6492. * test/MockBtMessage.h
  6493. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6494. Use FileEntry::exists()
  6495. * src/MultiDiskAdaptor.cc
  6496. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6497. Added exists()
  6498. * src/FileEntry.cc
  6499. * src/FileEntry.h
  6500. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6501. Added missing prefix dir.
  6502. * src/download_helper.cc
  6503. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6504. Removed --direct-file-mapping option and CopyDiskAdaptor.
  6505. * src/CopyDiskAdaptor.cc: Removed
  6506. * src/CopyDiskAdaptor.h: Removed
  6507. * src/DefaultPieceStorage.cc
  6508. * src/Makefile.am
  6509. * src/OptionHandlerFactory.cc
  6510. * src/prefs.cc
  6511. * src/prefs.h
  6512. * src/usage_text.h
  6513. * test/CopyDiskAdaptorTest.cc: Removed
  6514. * test/Makefile.am
  6515. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6516. Rewritten isSameFileBeingDownloaded()
  6517. * src/RequestGroupMan.cc
  6518. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6519. Removed getName() from DownloadContext. getName() is declared in
  6520. BtContext.
  6521. * src/BtContext.h
  6522. * src/DownloadContext.h
  6523. * src/SingleFileDownloadContext.cc
  6524. * src/SingleFileDownloadContext.h
  6525. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  6526. in AbstractSingleDiskAdaptor.
  6527. * src/AbstractSingleDiskAdaptor.h
  6528. * src/DiskAdaptor.h
  6529. * src/MultiDiskAdaptor.h
  6530. * src/RequestGroup.cc
  6531. Removed setTopDir() and getTopDir() and getTopDirPath() from
  6532. MultiDiskAdaptor.
  6533. * src/DefaultPieceStorage.cc
  6534. * src/MultiDiskAdaptor.cc
  6535. * src/MultiDiskAdaptor.h
  6536. * test/MultiDiskAdaptorTest.cc
  6537. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6538. FileEntry::getPath() contains store(top level) directory to
  6539. simplify path handling operation. In the previous implementation,
  6540. store directory is concatenated to FileEntry::getPath() in
  6541. DownloadContext.
  6542. * src/BtDependency.cc
  6543. * src/BtPostDownloadHandler.cc
  6544. * src/CopyDiskAdaptor.cc
  6545. * src/DefaultBtContext.cc
  6546. * src/DirectDiskAdaptor.cc
  6547. * src/FileEntry.cc
  6548. * src/FileEntry.h
  6549. * src/FtpNegotiationCommand.cc
  6550. * src/HttpResponse.cc
  6551. * src/HttpResponseCommand.cc
  6552. * src/Metalink2RequestGroup.cc
  6553. * src/MultiDiskAdaptor.cc
  6554. * src/MultiDiskAdaptor.h
  6555. * src/MultiFileAllocationIterator.cc
  6556. * src/RequestGroup.cc
  6557. * src/SingleFileDownloadContext.cc
  6558. * src/SingleFileDownloadContext.h
  6559. * src/download_helper.cc
  6560. * test/BtDependencyTest.cc
  6561. * test/CopyDiskAdaptorTest.cc
  6562. * test/DefaultBtContextTest.cc
  6563. * test/DefaultBtProgressInfoFileTest.cc
  6564. * test/DirectDiskAdaptorTest.cc
  6565. * test/DownloadHelperTest.cc
  6566. * test/FileEntryTest.cc
  6567. * test/MultiDiskAdaptorTest.cc
  6568. * test/MultiFileAllocationIteratorTest.cc
  6569. * test/RequestGroupTest.cc
  6570. * test/SingleFileDownloadContextTest.cc
  6571. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6572. Fixed compiler warning
  6573. * src/download_helper.cc
  6574. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6575. Throw exception if same infohash torrent is now downloading.
  6576. * src/RequestGroup.cc
  6577. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6578. Added --dry-run option. In this mode, aria2 just checks whether
  6579. the remote file is available and doesn't download data. This
  6580. option has effect on HTTP/FTP downloads and BitTorrent downloads
  6581. are canceled in this mode.
  6582. * src/FtpNegotiationCommand.cc
  6583. * src/HttpResponseCommand.cc
  6584. * src/HttpResponseCommand.h
  6585. * src/OptionHandlerFactory.cc
  6586. * src/RequestGroup.cc
  6587. * src/RequestGroupMan.cc
  6588. * src/prefs.cc
  6589. * src/prefs.h
  6590. * src/usage_text.h
  6591. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6592. Fixed compiler waring
  6593. * test/UriListParserTest.cc
  6594. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6595. Parse options in -i list using OptionParser.
  6596. * src/UriListParser.cc
  6597. * src/UriListParser.h
  6598. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6599. Don't reset URI in retry to avoid additional round trips because
  6600. of redirects.
  6601. * src/AbstractCommand.cc
  6602. * src/OptionHandlerFactory.cc
  6603. * src/prefs.cc
  6604. * src/prefs.h
  6605. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6606. Declared hide() in OptionHandler.
  6607. * src/NameMatchOptionHandler.h
  6608. * src/OptionHandler.h
  6609. * src/OptionHandlerImpl.h
  6610. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6611. Updated doc
  6612. * src/Peer.h
  6613. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6614. Added log message in setStatusInternal()
  6615. * src/ServerStat.cc
  6616. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6617. Call ServerStat::setError() in AbstractCommand::onAbort() to
  6618. effectively exclude failed server.
  6619. * src/AbstractCommand.cc
  6620. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6621. Added --index-out option to specify each file path for torrent.
  6622. Here index shown in --show-files option is used to specify which
  6623. file path should be altered. For example, to change the file path
  6624. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  6625. option multiple times: --index-out=1=aria2.tar.bz2
  6626. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  6627. available. This option can be specified in -i list.
  6628. * src/DefaultBtContext.cc
  6629. * src/DefaultBtContext.h
  6630. * src/MultiDiskAdaptor.cc
  6631. * src/MultiDiskAdaptor.h
  6632. * src/MultiFileAllocationIterator.cc
  6633. * src/OptionHandlerFactory.cc
  6634. * src/OptionHandlerImpl.h
  6635. * src/Util.cc
  6636. * src/Util.h
  6637. * src/download_helper.cc
  6638. * src/prefs.cc
  6639. * src/prefs.h
  6640. * src/usage_text.h
  6641. * test/DefaultBtContextTest.cc
  6642. * test/MultiDiskAdaptorTest.cc
  6643. * test/MultiFileAllocationIteratorTest.cc
  6644. * test/UtilTest.cc
  6645. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6646. Use Util::pathJoin()
  6647. * src/MetalinkParserController.cc
  6648. * test/test.xml
  6649. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6650. Use Util::pathJoin()
  6651. * src/DefaultBtContext.cc
  6652. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6653. Added Util::pathJoin()
  6654. * src/Util.h
  6655. * test/UtilTest.cc
  6656. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6657. Applied basename function to remove directory element in
  6658. content-disposition value.
  6659. Return empty string if content-disposition value is ".." or ".".
  6660. * src/Util.cc
  6661. * test/UtilTest.cc
  6662. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6663. Added --max-overall-download-limit in man page.
  6664. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  6665. * doc/aria2c.1.txt
  6666. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6667. Added --max-overall-download-limit option. Now --max-upload-limit
  6668. option is not ignored when --max-overall-upload-limit option has
  6669. non-zero value. aria2 checks download(upload) speed in the order:
  6670. first checks overall speed limit and if it is not exceeded, then
  6671. checks speed limit per download. Thus you can specify both
  6672. value. For example, set --max-overall-download-limit=1M and
  6673. --max-download-limit=500K to prevent from one download from eating
  6674. all overall speed limit.
  6675. * src/DefaultBtInteractive.cc
  6676. * src/DefaultBtInteractive.h
  6677. * src/DefaultBtMessageDispatcher.cc
  6678. * src/DefaultBtMessageDispatcher.h
  6679. * src/DownloadCommand.cc
  6680. * src/DownloadCommand.h
  6681. * src/FtpNegotiationCommand.cc
  6682. * src/HttpResponseCommand.cc
  6683. * src/OptionHandlerFactory.cc
  6684. * src/PeerInteractionCommand.cc
  6685. * src/RequestGroup.cc
  6686. * src/RequestGroup.h
  6687. * src/RequestGroupMan.cc
  6688. * src/RequestGroupMan.h
  6689. * src/prefs.cc
  6690. * src/prefs.h
  6691. * src/usage_text.h
  6692. * test/DefaultBtMessageDispatcherTest.cc
  6693. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6694. Documented select-file option in Input File section.
  6695. Documented --http-auth-challenge option.
  6696. * doc/aria2c.1.txt
  6697. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6698. Now select-file can be specified in the uri list(-i list).
  6699. * src/BtContext.cc
  6700. * src/BtContext.h
  6701. * src/RequestGroup.cc
  6702. * src/Sequence.h
  6703. * src/download_helper.cc
  6704. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6705. Made the upper value of --max-concurrent-downloads options unlimited.
  6706. * src/OptionHandlerFactory.cc
  6707. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6708. Fixed the bug that disk writer is not created even if it shares
  6709. same piece with the preceding file if the length of previous file
  6710. is 0.
  6711. * src/MultiDiskAdaptor.cc
  6712. * test/MultiDiskAdaptorTest.cc
  6713. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6714. In BitTorrent, Open files in read-only mode for hash check. After
  6715. that, re-open file in read/write mode only when the download is
  6716. not finished.
  6717. * src/AbstractDiskWriter.cc
  6718. * src/AbstractDiskWriter.h
  6719. * src/AbstractSingleDiskAdaptor.cc
  6720. * src/AbstractSingleDiskAdaptor.h
  6721. * src/BtCheckIntegrityEntry.cc
  6722. * src/DiskAdaptor.h
  6723. * src/DiskWriter.h
  6724. * src/MultiDiskAdaptor.cc
  6725. * src/MultiDiskAdaptor.h
  6726. * src/RequestGroup.cc
  6727. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6728. Added --http-auth-challenge option. If it is set to true(by
  6729. default), aria2 sends HTTP authorization header only when it is
  6730. requested by the server. If false is set, then authorization
  6731. header is always sent to the server. This is useful for servers
  6732. that don't respond 401 code when authentication is required.
  6733. There is an exception: if username and password are embedded in
  6734. URI, authorization header is always sent to the server regardless
  6735. of this option.
  6736. * src/AuthConfigFactory.cc
  6737. * src/HttpSkipResponseCommand.cc
  6738. * src/OptionHandlerFactory.cc
  6739. * src/prefs.cc
  6740. * src/prefs.h
  6741. * src/usage_text.h
  6742. * test/AuthConfigFactoryTest.cc
  6743. * test/HttpRequestTest.cc
  6744. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6745. * Release 1.2.0
  6746. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6747. Updated Spanish, Ukrainian, Russian and Japanese translations.
  6748. Thanks to all translators.
  6749. * po/es.po
  6750. * po/ja.po
  6751. * po/ru.po
  6752. * po/uk.po
  6753. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6754. Call deleteSocketForReadCheck() before socket is closed.
  6755. * src/HttpListenCommand.cc
  6756. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6757. Defined virtual destructor for BObject.
  6758. * src/bencode.h
  6759. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6760. Rewritten BDE to make it efficient.
  6761. * src/bencode.cc
  6762. * src/bencode.h
  6763. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6764. Removed function throw list.
  6765. * src/bencode.cc
  6766. * src/bencode.h
  6767. * test/BencodeTest.cc
  6768. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6769. Enclosed all URLs in double quotes in command-line examples.
  6770. * doc/aria2c.1.txt
  6771. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6772. Updated reference/see also section.
  6773. * README
  6774. * doc/aria2c.1.txt
  6775. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6776. Reorganized man page based on man man-pages.
  6777. * doc/aria2c.1.txt
  6778. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6779. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  6780. because same documents are available in man page. Added
  6781. References section.
  6782. * README
  6783. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6784. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  6785. PERFORMANCE PROFILE section.
  6786. * doc/aria2c.1.txt
  6787. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6788. Rewritten the section for configuration file.
  6789. * README
  6790. * doc/aria2c.1.txt
  6791. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6792. Fixed the segmentation fault during execution of choking algorithm
  6793. in leecher state because of broken compare operator
  6794. implementation.
  6795. * src/BtLeecherStateChoke.cc
  6796. * src/BtLeecherStateChoke.h
  6797. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6798. Open file in binary mode.
  6799. * src/CookieStorage.cc
  6800. * src/DHTSetup.cc
  6801. * src/DHTUtil.cc
  6802. * src/Netrc.cc
  6803. * src/NsCookieParser.cc
  6804. * src/ProtocolDetector.cc
  6805. * src/RequestGroupMan.cc
  6806. * src/Signature.cc
  6807. * src/bencode.cc
  6808. * src/download_helper.cc
  6809. * src/option_processing.cc
  6810. * test/CookieParserTest.cc
  6811. * test/DefaultBtProgressInfoFileTest.cc
  6812. * test/FileTest.cc
  6813. * test/GZipDecoderTest.cc
  6814. * test/RequestGroupManTest.cc
  6815. * test/SignatureTest.cc
  6816. * test/SingleFileAllocationIteratorTest.cc
  6817. * test/UriListParserTest.cc
  6818. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6819. Removed operator[] because it is ambiguous with built-in []
  6820. operator.
  6821. * src/array_fun.h
  6822. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6823. Fixed compile error
  6824. * src/OptionParser.cc
  6825. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6826. Added missing call to arrayWrapperConst
  6827. * test/array_funTest.cc
  6828. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6829. Use array_wrapper instead of array_ptr.
  6830. * src/DHTRoutingTableDeserializer.cc
  6831. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6832. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6833. * src/array_fun.h
  6834. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6835. Added array_wrapper template.
  6836. * src/array_fun.h
  6837. * test/array_funTest.cc
  6838. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6839. Use operator T* of array_ptr.
  6840. * src/OptionParser.cc
  6841. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6842. Use localhost instead of 127.0.0.1
  6843. * test/FtpConnectionTest.cc
  6844. * test/MSEHandshakeTest.cc
  6845. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6846. Added operator T*
  6847. * src/array_fun.h
  6848. * test/array_funTest.cc
  6849. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6850. Use dynamically allocated char array to detect memory access
  6851. violation.
  6852. * src/DHTRoutingTableDeserializer.cc
  6853. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6854. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6855. defined.
  6856. * src/PeerMessageUtil.cc
  6857. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6858. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6859. * configure.ac
  6860. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6861. Added a check to see struct sockaddr_in has sin_len member.
  6862. * configure.ac
  6863. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6864. Fixed buffer overrun.
  6865. * src/DHTRoutingTableDeserializer.cc
  6866. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6867. Added LL for long long int constant.
  6868. * test/FtpConnectionTest.cc
  6869. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6870. Casted to unsigned int to suppress compiler warning on netbsd.
  6871. * src/BtRuntime.h
  6872. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6873. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6874. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6875. type time_t.
  6876. * src/SimpleLogger.cc
  6877. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6878. Added test for FtpConnection::receiveSizeResponse().
  6879. * test/FtpConnectionTest.cc
  6880. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6881. Fix epoll error on the old kernel 2.6.8 or ealier.
  6882. * src/EpollEventPoll.cc
  6883. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6884. Use Util::parseLLInt instead of sscanf for portability. The
  6885. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6886. * src/FtpConnection.cc
  6887. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6888. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6889. block. It should not filter anything.
  6890. * src/BitfieldMan.cc
  6891. * src/ConsoleStatCalc.cc
  6892. * test/BitfieldManTest.cc
  6893. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6894. Fixed the bug that the boolean options that don't take arguments
  6895. don't work.
  6896. * src/OptionHandlerImpl.h
  6897. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6898. Fixed broken selected file BitTorrent download.
  6899. * src/MultiDiskAdaptor.cc
  6900. * test/MultiDiskAdaptorTest.cc
  6901. * test/MultiFileAllocationIteratorTest.cc
  6902. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6903. Fixed #define guard for EpollEventPoll
  6904. * src/EpollEventPoll.h
  6905. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6906. Wait 2 seconds. 1 second is sometimes not enough.
  6907. * test/TimeSeedCriteriaTest.cc
  6908. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6909. Use localhost instead of 127.0.0.1.
  6910. * test/DHTConnectionImplTest.cc
  6911. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6912. Suppressed compiler warning.
  6913. * src/AdaptiveURISelector.cc
  6914. * src/DefaultPieceStorage.cc
  6915. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6916. Defined virtual destructor.
  6917. * src/MetalinkParserState.h
  6918. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6919. Give NULL for second argument of getaddrinfo instead of "0".
  6920. * src/NameResolver.cc
  6921. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6922. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6923. included strptime doesn't parse data for this format.
  6924. * src/FtpConnection.cc
  6925. * test/FtpConnectionTest.cc
  6926. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6927. Removed tests giving -1 for unsigned argument.
  6928. * test/SingleFileDownloadContextTest.cc
  6929. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6930. Don't use sha256 in tests because it might not be supported by the
  6931. SSL library.
  6932. * test/MetalinkProcessorTest.cc
  6933. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6934. Removed tests giving -1 for unsigned argument.
  6935. * test/AlphaNumberDecoratorTest
  6936. * test/BitfieldManTest.cc
  6937. * test/DefaultBtContextTest.cc
  6938. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6939. Fixed compile error without libcares when epoll is available.
  6940. * src/EpollEventPoll.cc
  6941. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6942. Included fstream instead of iostream.
  6943. * test/SignatureTest.cc
  6944. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6945. Removed #include <algorithm>
  6946. * test/RequestGroupTest.cc
  6947. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6948. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6949. using RequestGroup::extractURIResult().
  6950. * src/AdaptiveURISelector.cc
  6951. * src/RequestGroup.cc
  6952. * src/RequestGroup.h
  6953. * test/RequestGroupTest.cc
  6954. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6955. Added tests for array_ptr.
  6956. * test/array_funTest.cc
  6957. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6958. Don't send ip parameter to a tracker if ip parameter is empty
  6959. string.
  6960. * src/DefaultBtAnnounce.cc
  6961. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6962. Adjusted line feed.
  6963. * src/version_usage.cc
  6964. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6965. Print tags, possible values when OptionHandlerException is caught.
  6966. * src/option_processing.cc
  6967. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6968. Changed the message for FatalException.
  6969. * src/OptionParser.cc
  6970. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6971. Documented --bt-external-ip option in man page. Updated man pages
  6972. for --proxy-method option.
  6973. * doc/aria2c.1.txt
  6974. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6975. Use GET method for FTP via HTTP proxy.
  6976. * src/FtpInitiateConnectionCommand.cc
  6977. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6978. Changed the default value of --proxy-method option from 'tunnel'
  6979. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6980. option.
  6981. * src/AbstractCommand.cc
  6982. * src/AbstractCommand.h
  6983. * src/FtpInitiateConnectionCommand.cc
  6984. * src/HttpDownloadCommand.cc
  6985. * src/HttpInitiateConnectionCommand.cc
  6986. * src/HttpInitiateConnectionCommand.h
  6987. * src/OptionHandlerFactory.cc
  6988. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6989. Initialized _logger
  6990. * src/SelectEventPoll.cc
  6991. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6992. Defined a copy constructor for the same type.
  6993. * src/SharedHandle.h
  6994. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6995. Added OptionParser::parseArg() which internally uses getopt_long
  6996. to parse command-line options. All command-line options are now
  6997. configured by OptionHandler. No manual editing of struct option*
  6998. is required any more.
  6999. * src/NameMatchOptionHandler.h
  7000. * src/OptionHandler.h
  7001. * src/OptionHandlerFactory.cc
  7002. * src/OptionHandlerImpl.h
  7003. * src/OptionParser.cc
  7004. * src/OptionParser.h
  7005. * src/array_fun.h
  7006. * src/main.cc
  7007. * src/option_processing.cc
  7008. * test/OptionHandlerTest.cc
  7009. * test/OptionParserTest.cc
  7010. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7011. Fixed configure error with --disable-epoll
  7012. * configure.ac
  7013. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7014. Fixed compile error when HAVE_EPOLL is not defined.
  7015. Fixed linker error on bigendian systems.
  7016. * src/SocketCore.cc
  7017. * src/SocketCore.h
  7018. * test/DefaultBtProgressInfoFileTest.cc
  7019. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7020. Added --bt-external-ip option. You can specify the external IP
  7021. address to report to a BitTorrent tracker. Although this function
  7022. is named 'external', it can accept any kind of IP addresses.
  7023. * src/DefaultBtAnnounce.cc
  7024. * src/OptionHandlerFactory.cc
  7025. * src/option_processing.cc
  7026. * src/prefs.cc
  7027. * src/prefs.h
  7028. * src/usage_text.h
  7029. * test/DefaultBtAnnounceTest.cc
  7030. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7031. Extracted the algorithm to find the longest incremental sequence
  7032. as max_sequence template.
  7033. * src/LongestSequencePieceSelector.cc
  7034. * src/a2algo.h
  7035. * test/Makefile.am
  7036. * test/a2algoTest.cc
  7037. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7038. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  7039. * src/usage_text.h
  7040. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7041. Updated doc for --uri-selector, --http-server-listen-port and
  7042. --enable-http-server option. Documented --event-poll option.
  7043. * doc/aria2c.1.txt
  7044. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7045. Updated doc for --enable-http-server.
  7046. * src/usage_text.h
  7047. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7048. Documented --http-server-listen-port and --enable-http-server in
  7049. man page.
  7050. * doc/aria2c.1.txt
  7051. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7052. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  7053. translations. Thanks to all translators.
  7054. * po/es.po
  7055. * po/id.po
  7056. * po/it.po
  7057. * po/ru.po
  7058. * po/uk.po
  7059. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7060. Bump up version number to 1.2.0
  7061. * configure.ac
  7062. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7063. BtContext::getAnnounceTiers() now returns const reference.
  7064. * src/BtContext.h
  7065. * src/DefaultBtContext.cc
  7066. * src/DefaultBtContext.h
  7067. * test/MockBtContext.h
  7068. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7069. Change the number of retries for tracker request based on the
  7070. number of available tracker in a torrent file.
  7071. * src/TrackerWatcherCommand.cc
  7072. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7073. Added _maxTries property to RequestGroup and assign the option
  7074. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  7075. RequestGroup::getMaxTries() instead of
  7076. Option::getAsInt(PREF_MAX_TRIES).
  7077. * src/AbstractCommand.cc
  7078. * src/RequestGroup.cc
  7079. * src/RequestGroup.h
  7080. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7081. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  7082. Mandriva. I modified the patch: make RequestGroup have the
  7083. timeout value and AdaptiveURISelector directly modifies that
  7084. value.
  7085. * src/AbstractCommand.cc
  7086. * src/AdaptiveURISelector.cc
  7087. * src/AdaptiveURISelector.h
  7088. * src/FtpNegotiationCommand.cc
  7089. * src/RequestGroup.cc
  7090. * src/RequestGroup.h
  7091. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7092. Fixed compiler warning
  7093. * test/IteratableChecksumValidatorTest.cc
  7094. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7095. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  7096. integrated downloads. This PieceSelector subclass finds the
  7097. longest continuous sequence in the available missing pieces and
  7098. selects the last index of such sequence. This makes HTTP/FTP
  7099. connections less interrupted by the pieces obtained by BitTorrent
  7100. peers.
  7101. * src/DefaultPieceStorage.cc
  7102. * src/DefaultPieceStorage.h
  7103. * src/LongestSequencePieceSelector.cc
  7104. * src/LongestSequencePieceSelector.h
  7105. * src/Makefile.am
  7106. * src/PieceSelector.h
  7107. * src/RarestPieceSelector.h
  7108. * src/RequestGroup.cc
  7109. * test/BtDependencyTest.cc
  7110. * test/DefaultPieceStorageTest.cc
  7111. * test/IteratableChecksumValidatorTest.cc
  7112. * test/LongestSequencePieceSelectorTest.cc
  7113. * test/Makefile.am
  7114. * test/SegmentManTest.cc
  7115. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7116. Fixed the bug that the average speed is wrong in
  7117. http/ftp/BitTorrent integrated download. Only the download bytes
  7118. in BitTorrent were considered.
  7119. * src/RequestGroup.cc
  7120. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7121. Choose port for BitTorrent/DHT randomly from the specified range.
  7122. * src/DHTConnectionImpl.cc
  7123. * src/PeerListenCommand.cc
  7124. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7125. Send HTTP Authorization header only if it is requested by the
  7126. server(response 401). There are some exceptions. The authorization
  7127. header for proxy is always sent if it is available without request
  7128. by the server. If username/password is specified in the URI, it
  7129. is immediately sent to the server without request by the server.
  7130. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  7131. SharedHandle<AuthConfig>().
  7132. NetrcAuthResolver::resolveAuthConfig() returns
  7133. SharedHandle<AuthConfig>() if no AuthConfig is available.
  7134. * src/AbstractAuthResolver.cc
  7135. * src/AbstractProxyRequestCommand.cc
  7136. * src/AuthConfigFactory.cc
  7137. * src/AuthConfigFactory.h
  7138. * src/HttpConnection.cc
  7139. * src/HttpRequest.cc
  7140. * src/HttpRequest.h
  7141. * src/HttpResponse.cc
  7142. * src/HttpResponseCommand.cc
  7143. * src/HttpSkipResponseCommand.cc
  7144. * test/AuthConfigFactoryTest.cc
  7145. * test/HttpRequestTest.cc
  7146. * test/HttpResponseTest.cc
  7147. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7148. Remove leading "--" from help keyword and a substring after "="
  7149. from help keyword, so that one can query options by '-h--max-' or
  7150. '-hmax-peers=10'.
  7151. * src/option_processing.cc
  7152. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7153. Rewritten PStringVisitor and its implementation.
  7154. * src/PStringBuildVisitor.cc
  7155. * src/PStringBuildVisitor.h
  7156. * src/PStringDatum.h
  7157. * src/PStringNumLoop.h
  7158. * src/PStringSegment.cc
  7159. * src/PStringSegment.h
  7160. * src/PStringSelect.h
  7161. * src/PStringVisitor.h
  7162. * src/download_helper.cc
  7163. * test/PStringBuildVisitorTest.cc
  7164. * test/ParameterizedStringParserTest.cc
  7165. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7166. Persist connection between the built-in HTTP server and a client
  7167. if a client supports keep-alive. Fixed the bug that aria2 exits
  7168. when the HTTP server receives EOF from a client.
  7169. * src/HttpServer.cc
  7170. * src/HttpServer.h
  7171. * src/HttpServerCommand.cc
  7172. * src/HttpServerCommand.h
  7173. * src/HttpServerResponseCommand.cc
  7174. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7175. Added experimental built-in HTTP server. Currently, when a client
  7176. accesses to the server, it responds with the current download
  7177. progress. By default, it is disabled. To enable the server, give
  7178. --enable-http-server option. To change the default port number
  7179. for the server to listen to, use --http-server-listen-port option.
  7180. The response HTML is very simple and refreshes it self each 1
  7181. second. Because of this refresh, you see flicker in normal web
  7182. browser such as Firefox. I recommend to use console-based browser
  7183. such as elinks, w3m. To connect to the server, run 'elinks
  7184. http://localhost:6800/' while running aria2. Please replace port
  7185. number '6800'(which is default) with your preference.
  7186. * src/DownloadEngineFactory.cc
  7187. * src/HttpHeader.cc
  7188. * src/HttpHeader.h
  7189. * src/HttpHeaderProcessor.cc
  7190. * src/HttpHeaderProcessor.h
  7191. * src/HttpListenCommand.cc
  7192. * src/HttpListenCommand.h
  7193. * src/HttpServer.cc
  7194. * src/HttpServer.h
  7195. * src/HttpServerCommand.cc
  7196. * src/HttpServerCommand.h
  7197. * src/HttpServerResponseCommand.cc
  7198. * src/HttpServerResponseCommand.h
  7199. * src/Makefile.am
  7200. * src/OptionHandlerFactory.cc
  7201. * src/Util.cc
  7202. * src/Util.h
  7203. * src/help_tags.h
  7204. * src/option_processing.cc
  7205. * src/prefs.cc
  7206. * src/prefs.h
  7207. * src/usage_text.h
  7208. * test/HttpHeaderProcessorTest.cc
  7209. * test/UtilTest.cc
  7210. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7211. Removed.
  7212. * src/CheckIntegrityMan.cc
  7213. * src/FileAllocationMan.cc
  7214. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7215. Made (piece) hash check sequential for each RequestGroup because
  7216. simultaneous hash check is slower than sequential execution.
  7217. * src/CheckIntegrityCommand.cc
  7218. * src/CheckIntegrityDispatcherCommand.cc
  7219. * src/CheckIntegrityDispatcherCommand.h
  7220. * src/CheckIntegrityMan.h
  7221. * src/ConsoleStatCalc.cc
  7222. * src/DownloadCommand.cc
  7223. * src/DownloadEngine.cc
  7224. * src/DownloadEngine.h
  7225. * src/DownloadEngineFactory.cc
  7226. * src/Makefile.am
  7227. * src/Makefile.in
  7228. * src/RequestGroup.cc
  7229. * src/StatCalc.h
  7230. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7231. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  7232. SequentialDispatcherCommand.
  7233. * src/FileAllocationDispatcherCommand.cc
  7234. * src/SequentialDispatcherCommand.h
  7235. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7236. Rewritten FileAllocationDispatcherCommand using brand new
  7237. SequentialDispatcherCommand.
  7238. * src/DownloadEngineFactory.cc
  7239. * src/FileAllocationCommand.cc
  7240. * src/FileAllocationDispatcherCommand.cc
  7241. * src/FileAllocationDispatcherCommand.h
  7242. * src/Makefile.am
  7243. * src/SequentialDispatcherCommand.h
  7244. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7245. Replaced FileAllocationMan with
  7246. SequentialPicker<FileAllocationEntry>.
  7247. * src/BtCheckIntegrityEntry.cc
  7248. * src/ConsoleStatCalc.cc
  7249. * src/DownloadEngine.cc
  7250. * src/DownloadEngine.h
  7251. * src/DownloadEngineFactory.cc
  7252. * src/FileAllocationCommand.cc
  7253. * src/FileAllocationDispatcherCommand.cc
  7254. * src/FileAllocationMan.h
  7255. * src/Makefile.am
  7256. * src/SequentialPicker.h
  7257. * src/StatCalc.h
  7258. * src/StreamCheckIntegrityEntry.cc
  7259. * test/Makefile.am
  7260. * test/SequentialPickerTest.cc
  7261. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7262. Added doc for adaptive URI selector.
  7263. * doc/aria2c.1.txt
  7264. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7265. Added doc for adaptive URI selector.
  7266. * src/usage_text.h
  7267. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7268. Added doc for --bt-max-peers option.
  7269. * doc/aria2c.1.txt
  7270. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7271. Added doc for --bt-hash-check-seed option.
  7272. * doc/aria2c.1.txt
  7273. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7274. Documented exit codes.
  7275. * doc/aria2c.1.txt
  7276. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7277. Added --bt-max-peers option to specify the maximum number of peers
  7278. per torrent. 0 means unlimited number of peers.
  7279. * src/ActivePeerConnectionCommand.cc
  7280. * src/BtRuntime.h
  7281. * src/DefaultPeerStorage.cc
  7282. * src/DefaultPeerStorage.h
  7283. * src/OptionHandlerFactory.cc
  7284. * src/RequestGroup.cc
  7285. * src/option_processing.cc
  7286. * src/prefs.cc
  7287. * src/prefs.h
  7288. * src/usage_text.h
  7289. * test/DefaultPeerStorageTest.cc
  7290. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7291. Added --bt-hash-check-seed option. If true is given to this
  7292. option, after hash check using --check-integrity option and file
  7293. is complete, continue to seed file. If you want to check file and
  7294. download it only when it is damaged or incomplete, set this option
  7295. to false. This option has effect only on BitTorrent download.
  7296. The default value is true(This is the same behavior with the
  7297. previous release).
  7298. * src/BtCheckIntegrityEntry.cc
  7299. * src/OptionHandlerFactory.cc
  7300. * src/option_processing.cc
  7301. * src/prefs.cc
  7302. * src/prefs.h
  7303. * src/usage_text.h
  7304. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7305. Updated copyright year.
  7306. * src/version_usage.cc
  7307. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7308. Rewritten the usage text for --bt-request-peer-speed-limit option.
  7309. * doc/aria2c.1.txt
  7310. * src/usage_text.h
  7311. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7312. Made the max value of split option unlimited.
  7313. * doc/aria2c.1.txt
  7314. * src/OptionHandlerFactory.cc
  7315. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7316. Fixed compile warning/error.
  7317. * src/DownloadResult.h
  7318. * src/HttpDownloadCommand.cc
  7319. * src/ServerStat.cc
  7320. * test/RequestGroupTest.cc
  7321. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7322. Added --event-poll option to select the method for polling events.
  7323. The available methods are "select" and "epoll". "epoll" is
  7324. available on Linux only. The earlier release has the compile
  7325. option to choose from these methods.
  7326. * configure.ac
  7327. * src/RequestGroupMan.cc
  7328. * src/OptionHandlerFactory.cc
  7329. * src/EpollEventPoll.h
  7330. * src/StreamFileAllocationEntry.cc
  7331. * src/a2io.h
  7332. * src/SelectEventPoll.h
  7333. * src/option_processing.cc
  7334. * src/prefs.h
  7335. * src/EpollEventPoll.cc
  7336. * src/EventPoll.h
  7337. * src/SocketCore.h
  7338. * src/Makefile.am
  7339. * src/main.cc
  7340. * src/DownloadEngine.h
  7341. * src/SelectEventPoll.cc
  7342. * src/DownloadEngine.cc
  7343. * src/SocketCore.cc
  7344. * src/DownloadEngineFactory.cc
  7345. * src/Makefile.in
  7346. * src/prefs.cc
  7347. * src/usage_text.h
  7348. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7349. Included RecoverableException.h from main.cc
  7350. * src/main.cc
  7351. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7352. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  7353. now returns last error encountered in the HTTP/FTP downloads as a
  7354. exit status value. If all downloads finished successfully, aria2
  7355. returns 0. The error code is defined in src/DownloadResult.h.
  7356. The error occurred in the download currently in progress is not
  7357. reported as a last error. If no error has encountered but there
  7358. are in progress or waiting downloads, aria2 returns 7.
  7359. * src/AbstractCommand.cc
  7360. * src/DlAbortEx.h
  7361. * src/DlRetryEx.h
  7362. * src/DownloadCommand.cc
  7363. * src/DownloadFailureException.h
  7364. * src/DownloadResult.h
  7365. * src/FtpNegotiationCommand.cc
  7366. * src/HttpSkipResponseCommand.cc
  7367. * src/Makefile.am
  7368. * src/MultiUrlRequestInfo.cc
  7369. * src/MultiUrlRequestInfo.h
  7370. * src/RecoverableException.h
  7371. * src/RequestGroup.cc
  7372. * src/RequestGroup.h
  7373. * src/RequestGroupMan.cc
  7374. * src/RequestGroupMan.h
  7375. * src/URIResult.cc
  7376. * src/URIResult.h
  7377. * src/main.cc
  7378. * src/option_processing.cc
  7379. * test/RequestGroupTest.cc
  7380. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7381. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  7382. patch adds AdaptiveURISelector, which selects one of the bests
  7383. mirrors for first and reserved connections. For supplementary
  7384. ones, it returns mirrors which has not been tested yet, and if
  7385. each of them already tested, returns mirrors which has to be
  7386. tested again. Otherwise, it doesn't return anymore mirrors.
  7387. * src/AdaptiveURISelector.cc
  7388. * src/AdaptiveURISelector.h
  7389. * src/FtpNegotiationCommand.cc
  7390. * src/HttpResponseCommand.cc
  7391. * src/Makefile.am
  7392. * src/Makefile.in
  7393. * src/OptionHandlerFactory.cc
  7394. * src/RequestGroup.cc
  7395. * src/RequestGroup.h
  7396. * src/RequestGroupMan.cc
  7397. * src/ServerStat.cc
  7398. * src/ServerStat.h
  7399. * src/ServerStatMan.cc
  7400. * src/SpeedCalc.cc
  7401. * src/URISelector.h
  7402. * src/prefs.cc
  7403. * src/prefs.h
  7404. * test/RequestGroupManTest.cc
  7405. * test/ServerStatManTest.cc
  7406. * test/ServerStatTest.cc
  7407. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7408. Fixed unit test error.
  7409. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  7410. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7411. * Release 1.1.2
  7412. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7413. Updated Russian translation. Thanks to the translators.
  7414. * po/ru.po
  7415. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7416. Added the description of --use-head option to man page.
  7417. * doc/aria2c.1.txt
  7418. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7419. Bump up version number to 1.1.2
  7420. * configure.ac
  7421. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7422. Added --use-head option to toggle whether HEAD method should be
  7423. used in the first HTTP request. By default aria2 uses HEAD method
  7424. as the first request. When the server doesn't recognize HEAD, then
  7425. give aria2 --use-head=false to force aria2 to use GET method
  7426. instead.
  7427. * src/OptionHandlerFactory.cc
  7428. * src/RequestGroupMan.cc
  7429. * src/option_processing.cc
  7430. * src/prefs.cc
  7431. * src/prefs.h
  7432. * src/usage_text.h
  7433. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7434. Fixed the bug that BitTorrent download doesn't finish when REJECT
  7435. message is received before CHOKE message. The old implementation
  7436. doen't clear the use-bit of the piece when recieved REJECT
  7437. message.
  7438. * src/DefaultBtMessageDispatcher.cc
  7439. * test/DefaultBtMessageDispatcherTest.cc
  7440. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7441. * Release 1.1.1
  7442. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7443. Bump up version number to 1.1.1.
  7444. * configure.ac
  7445. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7446. Fixed the bug that --summary-interval=0 doesn't work. The summary
  7447. is printed repeatedly.
  7448. * src/ConsoleStatCalc.cc
  7449. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7450. * Release 1.1.0
  7451. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7452. Added ifdef clause for conditional compilation.
  7453. * src/main.cc
  7454. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7455. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  7456. translations. Thanks to all translators.
  7457. * po/ja.po
  7458. * po/ru.po
  7459. * po/uk.po
  7460. * po/zh_CN.po
  7461. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7462. Added the preceding ">>> " before the message "Printing the
  7463. contents of file..." to make the output more readable.
  7464. * src/main.cc
  7465. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7466. Added try-catch block in the loop in showFiles() to continue the
  7467. operation even if the exception occurred in one file.
  7468. * src/main.cc (showFiles)
  7469. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7470. Made messages in showFiles() translatable.
  7471. * po/aria2.pot
  7472. * src/main.cc
  7473. * src/message.h
  7474. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7475. Print the contents of Torrent/Metalink files are printed without
  7476. -T/-M options.
  7477. * src/main.cc
  7478. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7479. Escaped '--' with '\--'
  7480. * README
  7481. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7482. Updated "How to build" section in README. Mentioned about
  7483. --with-ca-bundle compile option.
  7484. * README
  7485. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7486. Bump up version number to 1.1.0.
  7487. * configure.ac
  7488. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7489. Added a note for --dht-listen-port option.
  7490. * doc/aria2c.1.txt
  7491. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7492. Update doc for --realtime-chunk-checksum option.
  7493. * doc/aria2c.1.txt
  7494. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7495. Update doc for --realtime-chunk-checksum option.
  7496. * src/usage_text.h
  7497. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7498. Updated French, Japanese, Russian and Ukrainian translations.
  7499. Thanks to all translators.
  7500. * po/fr.po
  7501. * po/ja.po
  7502. * po/ru.po
  7503. * po/uk.po
  7504. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7505. Renamed aria2c.pot to aria2.pot
  7506. * po/aria2.pot
  7507. * po/aria2c.pot: Removed.
  7508. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7509. Removed MetaEntry.h
  7510. * src/Makefile.am
  7511. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7512. Rename file by appending digits if a local file exists and its
  7513. file size is larger than that of remote file with --continue
  7514. option. The old implementation just throws exception in such case.
  7515. * src/RequestGroup.cc
  7516. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7517. Fixed the bug that download progress summary is not printed in the
  7518. interval specified by the option.
  7519. * src/ConsoleStatCalc.cc
  7520. * src/ConsoleStatCalc.h
  7521. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7522. Fixed compiler warning
  7523. * src/Cookie.cc
  7524. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7525. Fixed the cookie implementation based on RFC2965.
  7526. Now if a value in domain field is not started with dot, then
  7527. prepend dot. That means a cookie with domain=sf.net is sent to
  7528. wiki.sf.net.
  7529. * src/Cookie.cc
  7530. * test/CookieParserTest.cc
  7531. * test/CookieStorageTest.cc
  7532. * test/CookieTest.cc
  7533. * test/NsCookieParserTest.cc
  7534. * test/Sqlite3MozCookieParserTest.cc
  7535. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7536. Fixed the bug that causes corrupted downloads if HTTP pipelining
  7537. is enabled and the server doesn't support keep-alive.
  7538. * src/AbstractCommand.cc
  7539. * src/DownloadCommand.cc
  7540. * src/HttpDownloadCommand.cc
  7541. * src/HttpDownloadCommand.h
  7542. * src/HttpResponseCommand.cc
  7543. * src/Request.cc
  7544. * src/Request.h
  7545. * test/RequestTest.cc
  7546. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7547. Removed Dictionary/List/Data and its related classes.
  7548. * src/BencodeVisitor.cc: Removed.
  7549. * src/BencodeVisitor.h: Removed.
  7550. * src/Data.cc: Removed.
  7551. * src/Data.h: Removed.
  7552. * src/Dictionary.cc: Removed.
  7553. * src/Dictionary.h: Removed.
  7554. * src/List.cc: Removed.
  7555. * src/List.h: Removed.
  7556. * src/Makefile.am
  7557. * src/MetaEntry.h: Removed.
  7558. * src/MetaEntryVisitor.h: Removed.
  7559. * src/MetaFileUtil.cc: Removed.
  7560. * src/MetaFileUtil.h: Removed.
  7561. * test/BencodeVisitorTest.cc: Removed.
  7562. * test/DataTest.cc: Removed.
  7563. * test/DictionaryTest.cc: Removed.
  7564. * test/ListTest.cc: Removed.
  7565. * test/Makefile.am
  7566. * test/MetaFileUtilTest.cc: Removed.
  7567. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7568. Removed include of MetaEntry.h
  7569. * test/DHTMessageTrackerEntryTest.cc
  7570. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7571. Use BDE instead of Dictionary/List/Data.
  7572. * src/AnnounceList.cc
  7573. * src/AnnounceList.h
  7574. * test/AnnounceListTest.cc
  7575. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7576. Use BDE instead of Dictionary/List/Data.
  7577. * src/DHTAbstractMessage.cc
  7578. * src/DHTAbstractMessage.h
  7579. * src/DHTAnnouncePeerMessage.cc
  7580. * src/DHTAnnouncePeerMessage.h
  7581. * src/DHTAnnouncePeerReplyMessage.cc
  7582. * src/DHTAnnouncePeerReplyMessage.h
  7583. * src/DHTFindNodeMessage.cc
  7584. * src/DHTFindNodeMessage.h
  7585. * src/DHTFindNodeReplyMessage.cc
  7586. * src/DHTFindNodeReplyMessage.h
  7587. * src/DHTGetPeersMessage.cc
  7588. * src/DHTGetPeersMessage.h
  7589. * src/DHTGetPeersReplyMessage.cc
  7590. * src/DHTGetPeersReplyMessage.h
  7591. * src/DHTMessageFactory.h
  7592. * src/DHTMessageFactoryImpl.cc
  7593. * src/DHTMessageFactoryImpl.h
  7594. * src/DHTMessageReceiver.cc
  7595. * src/DHTMessageTracker.cc
  7596. * src/DHTMessageTracker.h
  7597. * src/DHTPingMessage.cc
  7598. * src/DHTPingMessage.h
  7599. * src/DHTPingReplyMessage.cc
  7600. * src/DHTPingReplyMessage.h
  7601. * src/DHTQueryMessage.cc
  7602. * src/DHTQueryMessage.h
  7603. * src/DHTResponseMessage.cc
  7604. * src/DHTResponseMessage.h
  7605. * test/DHTAnnouncePeerMessageTest.cc
  7606. * test/DHTAnnouncePeerReplyMessageTest.cc
  7607. * test/DHTFindNodeMessageTest.cc
  7608. * test/DHTFindNodeReplyMessageTest.cc
  7609. * test/DHTGetPeersMessageTest.cc
  7610. * test/DHTGetPeersReplyMessageTest.cc
  7611. * test/DHTMessageFactoryImplTest.cc
  7612. * test/DHTMessageTrackerTest.cc
  7613. * test/DHTPingMessageTest.cc
  7614. * test/DHTPingReplyMessageTest.cc
  7615. * test/MockDHTMessageFactory.h
  7616. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7617. Added tests the case where length < 0 is specified.
  7618. * test/BencodeTest.cc
  7619. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7620. Fixed memory leak in decoderawstring()
  7621. * src/bencode.cc
  7622. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7623. Added missing #ifdef guard. Added uc() function for String and
  7624. removeKey() for Dict.
  7625. * src/bencode.cc
  7626. * src/bencode.h
  7627. * test/BencodeTest.cc
  7628. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7629. Use BDE instead of Dictionary/List/Data.
  7630. * src/HandshakeExtensionMessage.cc
  7631. * src/HandshakeExtensionMessage.h
  7632. * test/HandshakeExtensionMessageTest.cc
  7633. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7634. Added --max-overall-upload-limit option. This option limits the
  7635. overall upload speed. Stated in help message that the existing
  7636. --max-upload-limit option limits the upload speed per each
  7637. torrent. Man page is also updated.
  7638. * doc/aria2c.1.txt
  7639. * src/DefaultBtMessageDispatcher.cc
  7640. * src/DefaultBtMessageDispatcher.h
  7641. * src/OptionHandlerFactory.cc
  7642. * src/PeerInteractionCommand.cc
  7643. * src/option_processing.cc
  7644. * src/prefs.cc
  7645. * src/prefs.h
  7646. * src/usage_text.h
  7647. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7648. Use BDE instead of Dictionary/List/Data classes.
  7649. * src/CompactPeerListProcessor.cc
  7650. * src/CompactPeerListProcessor.h
  7651. * src/DefaultBtAnnounce.cc
  7652. * src/DefaultBtContext.cc
  7653. * src/DefaultBtContext.h
  7654. * src/DefaultPeerListProcessor.cc
  7655. * src/DefaultPeerListProcessor.h
  7656. * src/DelegatingPeerListProcessor.cc
  7657. * src/DelegatingPeerListProcessor.h
  7658. * src/PeerListProcessor.h
  7659. * src/UTPexExtensionMessage.cc
  7660. * src/Util.h
  7661. * src/message.h
  7662. * test/DefaultBtContextTest.cc
  7663. * test/DefaultPeerListProcessorTest.cc
  7664. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7665. Added bencode helper functions and BDE class.
  7666. They will replace MetaFileUtil and Dictionary/List/Data classes.
  7667. * src/Makefile.am
  7668. * src/bencode.cc
  7669. * src/bencode.h
  7670. * test/BencodeTest.cc
  7671. * test/Makefile.am
  7672. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7673. Fixed the bug that bad URI is sent to the tracker when the announe
  7674. URI in torrent file includes query.
  7675. * src/DefaultBtAnnounce.cc
  7676. * test/DefaultBtAnnounceTest.cc
  7677. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7678. Added Option::blank().
  7679. Use !Option::blank(name) instead of Option::defined(name) for
  7680. the options that take filename.
  7681. * src/MultiUrlRequestInfo.cc
  7682. * src/Option.cc
  7683. * src/Option.h
  7684. * src/main.cc
  7685. * src/option_processing.cc
  7686. * test/OptionTest.cc
  7687. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7688. Documented the default value of --check-certificate option in man
  7689. page.
  7690. * doc/aria2c.1.txt
  7691. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7692. Enabled --check-certificate by default. Added compile
  7693. time(configure) option --with-ca-bundle to specify CA bundle.
  7694. Warn if --check-certificate=true and --ca-certificate is not
  7695. specified or loading CA certificate is failed.
  7696. * configure.ac
  7697. * src/MultiUrlRequestInfo.cc
  7698. * src/OptionHandlerFactory.cc
  7699. * src/message.h
  7700. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7701. Mentioned https tag in help option.
  7702. * doc/aria2c.1.txt
  7703. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7704. Added `https' tag to help option category. Added https tag to
  7705. --ca-certificate, --certificate, --check-certificate and
  7706. --private-key option.
  7707. * src/OptionHandlerFactory.cc
  7708. * src/help_tags.h
  7709. * src/option_processing.cc
  7710. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7711. Changed the package name from `aria2c' to `aria2' in order to fix
  7712. the packaging issue in Debian and Fedora. The name of the
  7713. executable is not changed.
  7714. * configure.ac
  7715. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7716. Fixed typos
  7717. * src/usage_text.h
  7718. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7719. Fixed typos and updated doc.
  7720. * README
  7721. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7722. Fixed typos
  7723. * doc/aria2c.1.txt
  7724. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7725. Fixed typos
  7726. * src/usage_text.h
  7727. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7728. Print a message when no files to download.
  7729. * src/download_helper.cc
  7730. * src/main.cc
  7731. * src/message.h
  7732. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7733. RFC3986 complied Percent-Encoding(urlencode).
  7734. Use uppercase hexadecimal digits for encoded text instead of lowercase
  7735. ones.
  7736. * src/Request.cc
  7737. * src/Util.cc
  7738. * src/Util.h
  7739. * test/BtHandshakeMessageTest.cc
  7740. * test/DefaultBtAnnounceTest.cc
  7741. * test/DefaultBtContextTest.cc
  7742. * test/RequestTest.cc
  7743. * test/UtilTest.cc
  7744. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7745. Fixed the bug that prevents aria2 from downloading 0-length files
  7746. via HTTP/FTP.
  7747. * src/DefaultBtContext.cc
  7748. * src/DefaultBtContext.h
  7749. * src/DownloadContext.h
  7750. * src/FtpNegotiationCommand.cc
  7751. * src/HttpResponseCommand.cc
  7752. * src/HttpResponseCommand.h
  7753. * src/RequestGroup.cc
  7754. * src/SingleFileDownloadContext.cc
  7755. * src/SingleFileDownloadContext.h
  7756. * test/BtPostDownloadHandlerTest.cc
  7757. * test/MetalinkPostDownloadHandlerTest.cc
  7758. * test/MockBtContext.h
  7759. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7760. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  7761. * src/option_processing.cc
  7762. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7763. Applied aria2-1.0.1-mingw.patch.
  7764. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  7765. mingw.
  7766. Collected 4th and 5th argument types for getsockopt and setsockopt.
  7767. * src/SocketCore.cc
  7768. * src/a2netcompat.h
  7769. * test/SocketCoreTest.cc
  7770. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7771. * Release 1.0.1
  7772. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7773. Updated Ukrainian and Norwegian Nynorsk translations.
  7774. Thanks to all translators.
  7775. * po/nn.po
  7776. * po/uk.po
  7777. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7778. Don't show download result when -S option is used.
  7779. * src/main.cc
  7780. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7781. Bump up version number to 1.0.1
  7782. * configure.ac
  7783. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7784. Closed files after the test cases in MultiDiskWriterTest::
  7785. testResetDiskWriterEntries(). This will fix the unit test error
  7786. in mingw32 build.
  7787. * test/MultiDiskWriterTest.cc
  7788. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7789. Use HEAD method to get file size from HTTP server for segmented
  7790. downloading.
  7791. The request to the BitTorrent Tracker always uses GET method because
  7792. the response of the tracker is small and it doesn't need segmented
  7793. download.
  7794. * src/FtpNegotiationCommand.cc
  7795. * src/HttpRequest.cc
  7796. * src/HttpResponseCommand.cc
  7797. * src/HttpSkipResponseCommand.cc
  7798. * src/RequestGroup.cc
  7799. * src/RequestGroup.h
  7800. * src/TrackerWatcherCommand.cc
  7801. * test/HttpRequestTest.cc
  7802. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7803. Fixed the bug that causes floating exception when -T option is used and
  7804. no URIs are given.
  7805. * src/download_helper.cc
  7806. * test/DownloadHelperTest.cc
  7807. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7808. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7809. errors in MinGW:
  7810. Closed file after saving server stats (RequestGroupMan.cc)
  7811. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7812. Ignored case & handled 2-digit years (strptime.c)
  7813. Added missing suseconds_t definition (a2time.h)
  7814. Fixed socket CLOSE() define (SocketCore.cc)
  7815. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7816. Changed utime() test values from x000 to x00000 as MinGW failed on
  7817. values less than timezone offset from Unix epoch
  7818. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7819. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7820. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7821. handle negative dates (CookieParserTest.cc)
  7822. * src/a2time.h
  7823. * src/FtpConnection.cc
  7824. * src/RequestGroupMan.cc
  7825. * src/SocketCore.cc
  7826. * src/strptime.c
  7827. * test/CookieParserTest.cc
  7828. * test/CopyDiskAdaptorTest.cc
  7829. * test/FileTest.cc
  7830. * test/FtpConnectionTest.cc
  7831. * test/MultiDiskAdaptorTest.cc
  7832. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7833. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7834. * doc/aria2c.1.txt
  7835. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7836. * Release 1.0.0
  7837. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7838. Added '~' to reserved characters.
  7839. * src/Util.cc
  7840. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7841. Do not urlencode Request::url in setUrl() because we want unmodified
  7842. URL using Request::getUrl()
  7843. * src/Request.cc
  7844. * src/Request.h
  7845. * test/RequestTest.cc
  7846. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7847. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7848. Thanks to all translators.
  7849. * po/bg.po
  7850. * po/fr.po
  7851. * po/ja.po
  7852. * po/ru.po
  7853. * po/uk.po
  7854. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7855. Bump up version number to 1.0.0
  7856. * configure.ac
  7857. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7858. Added nosqlite3 build to build_test.sh.
  7859. Renamed noxml as expat.
  7860. * build_test.sh
  7861. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7862. Updated INPUT FILE section.
  7863. * doc/aria2c.1.txt
  7864. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7865. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7866. on big endian systems because test .aria2 files are made for little
  7867. endian systems.
  7868. * test/DefaultBtProgressInfoFileTest.cc
  7869. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7870. Dropped ares support.
  7871. * README
  7872. * configure.ac
  7873. * m4/libares.m4: Removed.
  7874. * src/AsyncNameResolver.cc
  7875. * src/Makefile.am
  7876. * test/Makefile.am
  7877. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7878. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7879. Removed const qualifier from DiskWriter::size().
  7880. * src/AbstractDiskWriter.cc
  7881. * src/AbstractDiskWriter.h
  7882. * src/ByteArrayDiskWriter.cc
  7883. * src/ByteArrayDiskWriter.h
  7884. * src/DiskWriter.h
  7885. * test/ByteArrayDiskWriterTest.cc
  7886. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7887. Fixed the bug that causes segmentation fault/bus error during executing
  7888. choking algorithm while seeding. This is caused by improper
  7889. implementation of compare function which returns inconsistent results
  7890. depending on the timing of last unchoke.
  7891. * src/BtSeederStateChoke.cc
  7892. * src/BtSeederStateChoke.h
  7893. * src/DefaultPeerStorage.cc
  7894. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7895. Removed TODO
  7896. * TODO
  7897. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7898. Added a section that explains how to pass argument to options that
  7899. takes optional arguments with its short form.
  7900. * doc/aria2c.1.txt
  7901. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7902. Added -u for the short form of --max-upload-limit option.
  7903. * doc/aria2c.1.txt
  7904. * src/option_processing.cc
  7905. * src/usage_text.h
  7906. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7907. Added -V for the short form of --check-integrity option.
  7908. Now the argument of --check-integrity option is optional:
  7909. if it is omitted, it is evaluated as true.
  7910. * doc/aria2c.1.txt
  7911. * src/option_processing.cc
  7912. * src/usage_text.h
  7913. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7914. Made the default value of --ftp-pasv option set to true and it can take
  7915. true/false values.
  7916. * src/OptionHandlerFactory.cc
  7917. * src/option_processing.cc
  7918. * src/usage_text.h
  7919. * doc/aria2c.1.txt
  7920. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7921. Given custom random number generator to std::random_shuffle.
  7922. * src/AnnounceList.cc
  7923. * src/BtLeecherStateChoke.cc
  7924. * src/BtSeederStateChoke.cc
  7925. * src/DefaultBtRequestFactory.cc
  7926. * src/MetalinkEntry.cc
  7927. * src/RarestPieceSelector.cc
  7928. * src/SimpleRandomizer.cc
  7929. * src/SimpleRandomizer.h
  7930. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7931. Now the default value of --enable-direct-io is true.
  7932. * src/OptionHandlerFactory.cc
  7933. * doc/aria2c.1.txt
  7934. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7935. Erase peer before executing onReturningPeer and onErasingPeer
  7936. because choking algorithm called from onReturningPeer doesn't
  7937. like erasing peer in the active peer list.
  7938. * src/DefaultPeerStorage.cc
  7939. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7940. Instead of creating special filename in createDownloadResult() if
  7941. inMemoryDownload() is true, now it is done in getFilePath().
  7942. * src/RequestGroup.cc
  7943. * test/RequestGroupTest.cc
  7944. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7945. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7946. processed in memory. This is the fix for previous comment out.
  7947. * src/MemoryBufferPreDownloadHandler.cc
  7948. * src/RequestGroup.cc
  7949. * src/RequestGroup.h
  7950. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7951. Commented out the code which sets virtual directory path "[MEMORY]"
  7952. propagate directory to store to following RequestGroup.
  7953. * src/MemoryBufferPreDownloadHandler.cc
  7954. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7955. Bump up version number to 1.0.0b
  7956. * configure.ac
  7957. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7958. Added input_uris.txt to EXTRA_DIST
  7959. * test/Makefile.am
  7960. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7961. Removed PeerObject.h from Makefile.am
  7962. * src/Makefile.am
  7963. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7964. Avoid slow seeding
  7965. * src/PeerInteractionCommand.cc
  7966. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7967. Updated usage for -i option.
  7968. * src/usage_text.h (TEXT_INPUT_FILE)
  7969. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7970. Added INPUT FILE section to man page.
  7971. Escaped fake URLs.
  7972. * doc/aria2c.1.txt
  7973. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7974. Fixed wrong note position for -o option.
  7975. * doc/aria2c.1.txt
  7976. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7977. Fixed compile error without SSL/XML library.
  7978. * src/DefaultBtProgressInfoFile.cc
  7979. * src/DefaultBtProgressInfoFile.h
  7980. * src/FileMetalinkParserState.cc
  7981. * src/RequestGroup.h
  7982. * src/SocketCore.cc
  7983. * src/SocketCore.h
  7984. * src/VerificationMetalinkParserState.cc
  7985. * src/download_helper.h
  7986. * src/main.cc
  7987. * test/DefaultBtProgressInfoFileTest.cc
  7988. * test/DownloadHelperTest.cc
  7989. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7990. Rewritten URI handling functions. They are now provided as a testable
  7991. functions.
  7992. * src/Makefile.am
  7993. * src/RequestGroup.cc
  7994. * src/RequestGroup.h
  7995. * src/download_helper.cc
  7996. * src/download_helper.h
  7997. * src/main.cc
  7998. * test/DownloadHelperTest.cc
  7999. * test/Makefile.am
  8000. * test/input_uris.txt
  8001. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8002. Quickly terminate commands when ctrl-c is pressed.
  8003. * src/DownloadEngine.cc
  8004. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8005. Quickly terminate idle commands when download finished.
  8006. * src/AbstractCommand.cc
  8007. * src/DownloadCommand.cc
  8008. * src/DownloadEngine.cc
  8009. * src/DownloadEngine.h
  8010. * src/SleepCommand.cc
  8011. * src/SleepCommand.h
  8012. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8013. Added the ability to specify output filename and directory in input
  8014. file.
  8015. Additional parameters are added in the following line of URIs
  8016. with proceeding white space(s), 1 parameter in 1 line.
  8017. The parameter names are the same with the command-line option name
  8018. without proceeding "--". Not all the options are available here:
  8019. at the moment, 'dir' and 'out' options are avialable.
  8020. Please note that out option has no effect against Metalink or BitTorrent
  8021. downloads.
  8022. Example input file:
  8023. http://host/foo-1.1.tar.bz2
  8024. out=foo.tar.bz2
  8025. dir=/tmp/downloads
  8026. http://host/thundermonkey-2.0.tar.bz2
  8027. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  8028. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  8029. thundermonkey-2.0.tar.bz2 is saved as
  8030. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  8031. * src/BtPostDownloadHandler.cc
  8032. * src/Metalink2RequestGroup.cc
  8033. * src/Metalink2RequestGroup.h
  8034. * src/MetalinkPostDownloadHandler.cc
  8035. * src/UriListParser.cc
  8036. * src/UriListParser.h
  8037. * src/main.cc
  8038. * test/Metalink2RequestGroupTest.cc
  8039. * test/UriListParserTest.cc
  8040. * test/filelist1.txt
  8041. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8042. Fixed error when SSL library is not found.
  8043. * configure.ac
  8044. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8045. Cross referenced among -s, -C and -j options.
  8046. Updated usage of -C and -s options.
  8047. * src/usage_text.h
  8048. * doc/aria2c.1.txt
  8049. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8050. Fixed bad cast in 32bit platforms.
  8051. * test/DefaultPieceStorageTest.cc
  8052. (DefaultPieceStorageTest::testGetCompletedLength)
  8053. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8054. Fixed unit test fails on 32bit platforms.
  8055. * test/CookieParserTest.cc
  8056. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8057. Show an average download speed in Download results.
  8058. * src/BtFileAllocationEntry.cc
  8059. * src/DefaultPieceStorage.cc
  8060. * src/DownloadContext.cc
  8061. * src/DownloadContext.h
  8062. * src/DownloadResult.h
  8063. * src/RequestGroup.cc
  8064. * src/RequestGroupMan.cc
  8065. * src/StreamFileAllocationEntry.cc
  8066. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8067. Fixed the bug that metalink file is not processed if Content-Type
  8068. field has a paramter.
  8069. * src/HttpResponse.cc
  8070. * src/HttpResponse.h
  8071. * test/HttpResponseTest.cc
  8072. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8073. Removed unused code.
  8074. * src/DefaultBtAnnounce.cc
  8075. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8076. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  8077. the value larger than DefaultPieceStorage::getTotalLength() when
  8078. in flight pieces are involved.
  8079. * src/DefaultPieceStorage.cc
  8080. * test/DefaultPieceStorageTest.cc
  8081. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8082. Bump up version number to 1.0.0a.
  8083. * configure.ac
  8084. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8085. Updated configure.ac
  8086. * configure.ac
  8087. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8088. Added usege for proxy.
  8089. * doc/aria2c.1.txt
  8090. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8091. Added usage for --ca-certificate, --certificate, --private-key and
  8092. --check-certificate options.
  8093. * doc/aria2c.1.txt
  8094. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8095. Updated man page
  8096. * doc/aria2c.1.txt
  8097. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8098. Added --no-proxy option. It receives comman separated hostname or
  8099. domains to which proxy should not be used.
  8100. aria2 honors the environment variable no_proxy to override no-proxy
  8101. value in configuration file. The user can override the environment
  8102. variable no_proxy with --no-proxy command-line option.
  8103. * src/AbstractCommand.cc
  8104. * src/OptionHandlerFactory.cc
  8105. * src/option_processing.cc
  8106. * src/prefs.cc
  8107. * src/prefs.h
  8108. * src/usage_text.h
  8109. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8110. Added the ability to verify peer in SSL/TLS using given CA certificates.
  8111. The CA certificates are specified in --ca-certificate option.
  8112. By default, the verification is disabled. Use --check-certificate
  8113. option to enable it.
  8114. * src/HttpRequestCommand.cc
  8115. * src/LibgnutlsTLSContext.cc
  8116. * src/LibgnutlsTLSContext.h
  8117. * src/LibsslTLSContext.cc
  8118. * src/LibsslTLSContext.h
  8119. * src/MultiUrlRequestInfo.cc
  8120. * src/OptionHandlerFactory.cc
  8121. * src/SocketCore.cc
  8122. * src/SocketCore.h
  8123. * src/a2functional.h
  8124. * src/message.h
  8125. * src/option_processing.cc
  8126. * src/prefs.cc
  8127. * src/prefs.h
  8128. * src/usage_text.h
  8129. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8130. Added client certificate authentication for SSL/TLS.
  8131. Currently a private key must be decrypted for use with aria2.
  8132. If a user accidentally gives encrypted file to aria2 then following
  8133. thing happens:
  8134. If encrypted private key is given to aria2, it behaves differently
  8135. depending on the ssl library it uses. If aria2 built with openssl then
  8136. openssl prompts the user for password. If aria2 build with gnutls then
  8137. aria2 exists with error at start up.
  8138. * src/DownloadEngineFactory.cc
  8139. * src/MultiUrlRequestInfo.cc
  8140. * src/OptionHandlerFactory.cc
  8141. * src/option_processing.cc
  8142. * src/prefs.cc
  8143. * src/prefs.h
  8144. * src/usage_text.h
  8145. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8146. Introduced TLSContext that holds TLS related data that can be shared
  8147. with multiple SSL connections.
  8148. * src/DownloadEngineFactory.cc
  8149. * src/LibgnutlsTLSContext.cc
  8150. * src/LibgnutlsTLSContext.h
  8151. * src/LibsslTLSContext.cc
  8152. * src/LibsslTLSContext.h
  8153. * src/Makefile.am
  8154. * src/SocketCore.cc
  8155. * src/SocketCore.h
  8156. * src/TLSContext.h
  8157. * src/message.h
  8158. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8159. Fixed the bug that the DiskWriter of the first FileEntry whose
  8160. `needsFileAllocation' property is false is not created
  8161. even if it shares a piece with next FileEntry which `requested' property
  8162. is true.
  8163. Fixed the bug that zero-length file is not created if pre file
  8164. allocation is not done.
  8165. * src/MultiDiskAdaptor.cc
  8166. * src/MultiDiskAdaptor.h
  8167. * test/MultiDiskAdaptorTest.cc
  8168. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8169. Added the ability to pool proxy connection.
  8170. The conneciton in FTP with proxy-method=GET is not pooled.
  8171. Proxy-Connection header will not be sent when sending CONNECT method.
  8172. * src/DownloadEngine.cc
  8173. * src/DownloadEngine.h
  8174. * src/FtpFinishDownloadCommand.cc
  8175. * src/FtpInitiateConnectionCommand.cc
  8176. * src/FtpNegotiationCommand.cc
  8177. * src/HttpDownloadCommand.cc
  8178. * src/HttpInitiateConnectionCommand.cc
  8179. * src/HttpRequest.cc
  8180. * src/HttpRequest.h
  8181. * src/HttpResponse.cc
  8182. * src/HttpSkipResponseCommand.cc
  8183. * test/HttpRequestTest.cc
  8184. * test/HttpResponseTest.cc
  8185. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Handle date before epoch.
  8187. To create *bad* Time object, call Time::null().
  8188. * src/CookieParser.cc
  8189. * src/FtpConnection.cc
  8190. * src/FtpConnection.h
  8191. * src/FtpNegotiationCommand.cc
  8192. * src/RequestGroup.cc
  8193. * src/TimeA2.cc
  8194. * src/TimeA2.h
  8195. * test/CookieParserTest.cc
  8196. * test/FtpConnectionTest.cc
  8197. * test/TimeTest.cc
  8198. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8199. Added support for following envrionment variables: http_proxy,
  8200. https_proxy, ftp_proxy and all_proxy.
  8201. Each variable is equivalent to the aria2 option whose name is the
  8202. variable name with '_' replaced with '-'.
  8203. They overrides options specified in aria2.conf file.
  8204. The envrionment variables can be overrode using command-line option.
  8205. * src/option_processing.cc
  8206. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. Renamed --http-proxy-method as --proxy-method.
  8208. * src/AbstractCommand.cc
  8209. * src/FtpInitiateConnectionCommand.cc
  8210. * src/HttpInitiateConnectionCommand.cc
  8211. * src/OptionHandlerFactory.cc
  8212. * src/option_processing.cc
  8213. * src/prefs.cc
  8214. * src/prefs.h
  8215. * src/usage_text.h
  8216. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8217. Deprecated --http-proxy-user and --http-proxy-passwd options.
  8218. Added --https-proxy, --ftp-proxy and --all-proxy options.
  8219. Above 3 options and --http-proxy option can handle proxy in URL format
  8220. like: http://user:passwd@host:port.
  8221. If a proxy requires user/password, they must be specified in a URL.
  8222. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  8223. instead.
  8224. * src/AbstractCommand.cc
  8225. * src/AbstractCommand.h
  8226. * src/AbstractProxyRequestCommand.cc
  8227. * src/AbstractProxyRequestCommand.h
  8228. * src/AuthConfigFactory.cc
  8229. * src/AuthConfigFactory.h
  8230. * src/FtpFinishDownloadCommand.cc
  8231. * src/FtpInitiateConnectionCommand.cc
  8232. * src/FtpInitiateConnectionCommand.h
  8233. * src/FtpNegotiationCommand.cc
  8234. * src/FtpTunnelRequestCommand.cc
  8235. * src/FtpTunnelRequestCommand.h
  8236. * src/HttpDownloadCommand.cc
  8237. * src/HttpInitiateConnectionCommand.cc
  8238. * src/HttpInitiateConnectionCommand.h
  8239. * src/HttpProxyRequestCommand.cc
  8240. * src/HttpProxyRequestCommand.h
  8241. * src/HttpRequest.cc
  8242. * src/HttpRequest.h
  8243. * src/HttpRequestCommand.cc
  8244. * src/HttpRequestCommand.h
  8245. * src/HttpSkipResponseCommand.cc
  8246. * src/InitiateConnectionCommand.cc
  8247. * src/InitiateConnectionCommand.h
  8248. * src/OptionHandlerFactory.cc
  8249. * src/OptionHandlerImpl.h
  8250. * src/Request.cc
  8251. * src/option_processing.cc
  8252. * src/prefs.cc
  8253. * src/prefs.h
  8254. * src/usage_text.h
  8255. * test/AuthConfigFactoryTest.cc
  8256. * test/HttpRequestTest.cc
  8257. * test/OptionHandlerTest.cc
  8258. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Execute choking algorithm when unchoked and interested peer is
  8260. disconected.
  8261. * src/DefaultPeerStorage.cc
  8262. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8263. Added testcase for BtNotInterestedMessage from unchoked peer.
  8264. * test/BtNotInterestedMessageTest.cc
  8265. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Execute choking algorithm when BtInterestedMessage arrives from
  8267. unchoked peer.
  8268. * src/BtInterestedMessage.cc
  8269. * src/BtInterestedMessage.h
  8270. * src/DefaultBtMessageFactory.cc
  8271. * test/BtInterestedMessageTest.cc
  8272. * test/MockPeerStorage.h
  8273. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. AuthConfigFactory is now part of DownloadEngine.
  8275. * src/AbstractProxyRequestCommand.cc
  8276. * src/AuthConfigFactory.h
  8277. * src/DownloadEngine.cc
  8278. * src/DownloadEngine.h
  8279. * src/FtpConnection.cc
  8280. * src/FtpConnection.h
  8281. * src/FtpNegotiationCommand.cc
  8282. * src/HttpConnection.cc
  8283. * src/HttpRequest.cc
  8284. * src/HttpRequest.h
  8285. * src/HttpRequestCommand.cc
  8286. * src/HttpResponse.cc
  8287. * src/HttpResponseCommand.cc
  8288. * src/HttpSkipResponseCommand.cc
  8289. * src/MultiUrlRequestInfo.cc
  8290. * src/main.cc
  8291. * test/FtpConnectionTest.cc
  8292. * test/HttpRequestTest.cc
  8293. * test/HttpResponseTest.cc
  8294. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8295. Corrected catched exception type.
  8296. * src/ServerStatMan.cc
  8297. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. DNSCache is now part of DownloadEngine.
  8299. * src/DNSCache.h
  8300. * src/DownloadEngine.cc
  8301. * src/DownloadEngine.h
  8302. * src/InitiateConnectionCommand.cc
  8303. * src/MultiUrlRequestInfo.cc
  8304. * test/Makefile.am
  8305. * test/Makefile.in
  8306. * test/SimpleDNSCacheTest.cc
  8307. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8308. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  8309. DownloadEngine.
  8310. * src/ActivePeerConnectionCommand.cc
  8311. * src/BtSetup.cc
  8312. * src/CUIDCounter.h
  8313. * src/DHTSetup.cc
  8314. * src/DownloadCommand.cc
  8315. * src/DownloadEngine.cc
  8316. * src/DownloadEngine.h
  8317. * src/DownloadEngineFactory.cc
  8318. * src/FileAllocationDispatcherCommand.cc
  8319. * src/InitiatorMSEHandshakeCommand.cc
  8320. * src/PeerInitiateConnectionCommand.cc
  8321. * src/PeerInteractionCommand.cc
  8322. * src/PeerListenCommand.cc
  8323. * src/RequestGroup.cc
  8324. * src/StreamFileAllocationEntry.cc
  8325. * src/TrackerWatcherCommand.cc
  8326. * src/main.cc
  8327. * test/RequestGroupManTest.cc
  8328. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8329. Implemented commented code in BtSeederStateChoke
  8330. * src/BtSeederStateChoke.cc
  8331. * src/Peer.cc
  8332. * src/Peer.h
  8333. * src/PeerInteractionCommand.cc
  8334. * src/PeerSessionResource.cc
  8335. * src/PeerSessionResource.h
  8336. * test/MockBtMessageDispatcher.h
  8337. * test/PeerSessionResourceTest.cc
  8338. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8339. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  8340. its object.
  8341. * src/AbstractBtMessage.cc
  8342. * src/ActivePeerConnectionCommand.cc
  8343. * src/ActivePeerConnectionCommand.h
  8344. * src/BtContextAwareCommand.cc
  8345. * src/BtContextAwareCommand.h
  8346. * src/BtExtendedMessage.cc
  8347. * src/BtExtendedMessage.h
  8348. * src/BtInterestedMessage.cc
  8349. * src/BtInterestedMessage.h
  8350. * src/BtNotInterestedMessage.cc
  8351. * src/BtNotInterestedMessage.h
  8352. * src/BtRegistry.cc
  8353. * src/BtRegistry.h
  8354. * src/BtSeederStateChoke.cc
  8355. * src/BtSetup.cc
  8356. * src/DHTGetPeersCommand.cc
  8357. * src/DHTGetPeersCommand.h
  8358. * src/DHTPeerAnnounceEntry.cc
  8359. * src/DHTPeerAnnounceEntry.h
  8360. * src/DHTPeerAnnounceStorage.cc
  8361. * src/DHTPeerAnnounceStorage.h
  8362. * src/DHTPeerLookupTask.cc
  8363. * src/DHTPeerLookupTask.h
  8364. * src/DHTSetup.cc
  8365. * src/DHTSetup.h
  8366. * src/DHTTaskFactory.h
  8367. * src/DHTTaskFactoryImpl.cc
  8368. * src/DHTTaskFactoryImpl.h
  8369. * src/DefaultBtAnnounce.cc
  8370. * src/DefaultBtInteractive.cc
  8371. * src/DefaultBtInteractive.h
  8372. * src/DefaultBtMessageDispatcher.cc
  8373. * src/DefaultBtMessageDispatcher.h
  8374. * src/DefaultBtMessageFactory.cc
  8375. * src/DefaultBtMessageFactory.h
  8376. * src/DefaultBtMessageReceiver.cc
  8377. * src/DefaultBtProgressInfoFile.cc
  8378. * src/DefaultBtProgressInfoFile.h
  8379. * src/DefaultBtRequestFactory.cc
  8380. * src/DefaultBtRequestFactory.h
  8381. * src/DefaultExtensionMessageFactory.cc
  8382. * src/DefaultExtensionMessageFactory.h
  8383. * src/DefaultPeerStorage.cc
  8384. * src/DefaultPeerStorage.h
  8385. * src/DownloadEngine.cc
  8386. * src/DownloadEngine.h
  8387. * src/InitiatorMSEHandshakeCommand.cc
  8388. * src/InitiatorMSEHandshakeCommand.h
  8389. * src/MSEHandshake.cc
  8390. * src/MSEHandshake.h
  8391. * src/Makefile.am
  8392. * src/Makefile.in
  8393. * src/PeerChokeCommand.cc
  8394. * src/PeerChokeCommand.h
  8395. * src/PeerInitiateConnectionCommand.cc
  8396. * src/PeerInitiateConnectionCommand.h
  8397. * src/PeerInteractionCommand.cc
  8398. * src/PeerInteractionCommand.h
  8399. * src/PeerObject.h
  8400. * src/PeerReceiveHandshakeCommand.cc
  8401. * src/PeerReceiveHandshakeCommand.h
  8402. * src/ReceiverMSEHandshakeCommand.cc
  8403. * src/RequestGroup.cc
  8404. * src/RequestGroup.h
  8405. * src/RequestGroupMan.cc
  8406. * src/RequestGroupMan.h
  8407. * src/SeedCheckCommand.cc
  8408. * src/SeedCheckCommand.h
  8409. * src/ShareRatioSeedCriteria.h
  8410. * src/SimpleBtMessage.cc
  8411. * src/TrackerWatcherCommand.cc
  8412. * src/TrackerWatcherCommand.h
  8413. * src/UTPexExtensionMessage.cc
  8414. * src/UTPexExtensionMessage.h
  8415. * test/BtCancelMessageTest.cc
  8416. * test/BtChokeMessageTest.cc
  8417. * test/BtExtendedMessageTest.cc
  8418. * test/BtInterestedMessageTest.cc
  8419. * test/BtNotInterestedMessageTest.cc
  8420. * test/BtPieceMessageTest.cc
  8421. * test/BtPortMessageTest.cc
  8422. * test/BtRegistryTest.cc
  8423. * test/BtRejectMessageTest.cc
  8424. * test/BtRequestMessageTest.cc
  8425. * test/DHTPeerAnnounceEntryTest.cc
  8426. * test/DHTPeerAnnounceStorageTest.cc
  8427. * test/DefaultBtMessageDispatcherTest.cc
  8428. * test/DefaultBtMessageFactoryTest.cc
  8429. * test/DefaultBtProgressInfoFileTest.cc
  8430. * test/DefaultBtRequestFactoryTest.cc
  8431. * test/DefaultExtensionMessageFactoryTest.cc
  8432. * test/MSEHandshakeTest.cc
  8433. * test/MockDHTTaskFactory.h
  8434. * test/ShareRatioSeedCriteriaTest.cc
  8435. * test/UTPexExtensionMessageTest.cc
  8436. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8437. Fixed compiler warning.
  8438. * test/UtilTest.cc
  8439. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8440. Treat Cookie object as session cookie if expiry = 0 is given.
  8441. With this change, you can specify session scoped cookies in an external
  8442. file setting expiry value to 0.
  8443. * src/Cookie.cc
  8444. * src/Cookie.h
  8445. * test/CookieParserTest.cc
  8446. * test/CookieStorageTest.cc
  8447. * test/CookieTest.cc
  8448. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Changed signature of DHTMessageFactory::createResponseMessage().
  8450. Removed unused validateIDMatch.
  8451. * src/DHTMessageFactory.h
  8452. * src/DHTMessageFactoryImpl.cc
  8453. * src/DHTMessageFactoryImpl.h
  8454. * src/DHTMessageTracker.cc
  8455. * test/DHTMessageFactoryImplTest.cc
  8456. * test/MockDHTMessageFactory.h
  8457. Dropped DHT message coming from same ID of localhost.
  8458. * src/DHTMessageReceiver.cc
  8459. Rejected adding node whose ID is the same as localhost's.
  8460. * src/DHTRoutingTable.cc
  8461. * test/BtPortMessageTest.cc
  8462. * test/DHTRoutingTableTest.cc
  8463. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Pool connection when redirection occurs with Content-Length = 0.
  8465. * src/HttpSkipResponseCommand.cc
  8466. * src/HttpSkipResponseCommand.h
  8467. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8468. Fixed the bug that causes time out when redirection occurs with
  8469. content-length 0.
  8470. * src/HttpResponseCommand.cc
  8471. * src/HttpSkipResponseCommand.cc
  8472. * src/HttpSkipResponseCommand.h
  8473. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8474. Now each status legends is shown only when it appears in Download
  8475. Result. If Download Result has no item, then status legend will not
  8476. be printed.
  8477. * src/RequestGroupMan.cc
  8478. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Removed duplicate creation of OptionHandlers.
  8480. * src/option_processing.cc
  8481. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Fixed the bug that causes segmentation fault when accessing files which
  8483. don't exist or are not included in --select-file option while
  8484. validating chunk checksum.
  8485. * src/MultiDiskAdaptor.cc
  8486. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Fixed compiler warning.
  8488. * test/UtilTest.cc
  8489. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Included cstdlib. This fixed the compile error with g++-4.3.2.
  8491. * src/IteratableChecksumValidator.cc
  8492. * src/IteratableChunkChecksumValidator.cc
  8493. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8494. * Release 0.16.2
  8495. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8496. Added Serbian translation. Updated Ukrainian translation.
  8497. Thanks to all translators.
  8498. * po/sr.po
  8499. * po/uk.po
  8500. * po/LINGUAS
  8501. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Bump up version number to 0.16.2
  8503. * configure.ac
  8504. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Added length equality test to operator== to drop a piece message
  8506. whose length does not match to the requested one.
  8507. * src/RequestSlot.cc
  8508. * test/DefaultBtMessageDispatcherTest.cc
  8509. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8510. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  8511. recieved.
  8512. In this fix, if a request larger than 16KiB length is received, aria2
  8513. disconnects the peer.
  8514. * src/BtConstants.h
  8515. * src/PeerMessageUtil.cc
  8516. * src/PeerMessageUtil.h
  8517. * test/BtRequestMessageTest.cc
  8518. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8519. * Release 0.16.1
  8520. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8521. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  8522. * doc/aria2c.1.txt
  8523. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8524. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  8525. Updated French, Simplified Chinese and Japanese translations.
  8526. Thanks to all translators.
  8527. en@quot and en@boldquot are also added.
  8528. * po/LINGUAS
  8529. * po/fr.po
  8530. * po/ja.po
  8531. * po/uk.po
  8532. * po/vi.po
  8533. * po/zh_CN.po
  8534. * po/zh_TW.po
  8535. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8536. Bump up version number to 0.16.1.
  8537. * configure.ac
  8538. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8539. Updated README.
  8540. * README
  8541. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  8543. not to replace '--' with em dash character.
  8544. * doc/aria2c.1.txt
  8545. * doc/makeman
  8546. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  8548. every SEC seconds.
  8549. * src/DownloadEngineFactory.cc
  8550. * src/OptionHandlerFactory.cc
  8551. * src/option_processing.cc
  8552. * src/usage_text.h
  8553. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Fixed compile warning on linux-amd64
  8555. * src/FtpConnection.cc
  8556. * src/IteratableChunkChecksumValidator.cc
  8557. * src/MultiDiskAdaptor.cc
  8558. Fixed the bug that unit test fails on linux-amd64
  8559. * test/UtilTest.cc
  8560. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. Added --dht-file-path option to change the path to dht.dat, which is a
  8562. serialized DHT routing table.
  8563. * src/OptionHandlerFactory.cc
  8564. * src/option_processing.cc
  8565. * src/usage_text.h
  8566. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8567. Fixed possible underflow.
  8568. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  8569. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8570. Fixed the bug that last character in URI is not encoded.
  8571. * src/Request.cc
  8572. * test/RequestTest.cc
  8573. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8574. Fixed the bug that referer header field contains fragment.
  8575. Now Request class removes fragment part of URI and encodes it
  8576. in Request::setUri() and setReferer().
  8577. * src/Request.h
  8578. * src/Request.cc
  8579. * test/RequestTest.cc
  8580. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8581. Added missing m4 macros.
  8582. * m4/cppunit.m4
  8583. * m4/libgcrypt.m4
  8584. * m4/libgnutls-extra.m4
  8585. * m4/libgnutls.m4
  8586. * m4/libxml2.m4
  8587. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8588. Fixed compile error with gcc-4.4(snapshot)
  8589. * src/File.cc
  8590. * src/FtpConnection.cc
  8591. * src/OptionHandlerImpl.h
  8592. * src/Util.cc
  8593. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8594. Removed assert()
  8595. * src/SocketBuffer.cc (SocketBuffer::send)
  8596. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8597. Changed the type of _numNewConnection to unsigned int.
  8598. * src/ActivePeerConnectionCommand.cc
  8599. * src/ActivePeerConnectionCommand.h
  8600. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8601. * Release 0.16.0
  8602. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8603. Updated doc
  8604. * README
  8605. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8606. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  8607. translations. Thanks to all translators.
  8608. * po/bg.po
  8609. * po/de.po
  8610. * po/fr.po
  8611. * po/ja.po
  8612. * po/zh_CN.po
  8613. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8614. Bump up version number to 0.16.0.
  8615. * configure.ac
  8616. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8617. Casted entry->maxConnections to int32_t for std::min<T> with T =
  8618. int32_t.
  8619. Changed the type of count to int32_t.
  8620. * src/Metalink2RequestGroup.cc
  8621. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Added test for Time::elapsed(time_t).
  8623. * test/TimeTest.cc
  8624. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8625. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  8626. Util::difftv() should be used instead.
  8627. * src/TimeA2.cc
  8628. * src/TimeA2.h
  8629. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. Made socket for dht connections non-blocking
  8631. * src/DHTAbstractMessage.cc
  8632. * src/DHTAbstractMessage.h
  8633. * src/DHTConnection.h
  8634. * src/DHTConnectionImpl.cc
  8635. * src/DHTConnectionImpl.h
  8636. * src/DHTMessage.h
  8637. * src/DHTMessageDispatcherImpl.cc
  8638. * src/DHTMessageDispatcherImpl.h
  8639. * src/DHTUnknownMessage.cc
  8640. * src/DHTUnknownMessage.h
  8641. * src/SocketCore.cc
  8642. * src/SocketCore.h
  8643. * test/MockDHTMessage.h
  8644. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. Changed the type of offset to int.
  8646. * src/ParameterizedStringParser.cc
  8647. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8648. Made getAsInt() return int32_t
  8649. * src/Option.h
  8650. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8651. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  8652. build.
  8653. * configure.ac
  8654. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Use sqlite3_open if sqlite3_open_v2 is not available.
  8656. * src/Sqlite3MozCookieParser.cc
  8657. * src/Sqlite3MozCookieParser.h
  8658. * m4/sqlite3.m4
  8659. * test/Sqlite3MozCookieParserTest.cc
  8660. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  8662. * src/BtPieceMessage.cc
  8663. * src/DHTPeerAnnounceStorage.cc
  8664. * src/DefaultPieceStorage.cc
  8665. * src/DownloadCommand.cc
  8666. * src/DownloadEngine.cc
  8667. * src/FtpConnection.cc
  8668. * src/PeerConnection.cc
  8669. * src/PeerMessageUtil.cc
  8670. * src/RequestGroup.cc
  8671. * src/RequestGroupMan.cc
  8672. * src/SimpleBtMessage.cc
  8673. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  8675. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  8676. * src/AbstractDiskWriter.cc
  8677. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. Don't set Request::supportsPersistentConnection() in HttpConnection
  8679. since this code is also used in AbstractProxyResponseCommand.
  8680. Moved those code to HttpResponse.
  8681. * src/HttpResponse.cc
  8682. * src/HttpResponse.h
  8683. * src/HttpConnection.cc
  8684. * src/HttpConnection.h
  8685. * src/HttpResponseCommand.cc
  8686. * test/HttpResponseTest.cc
  8687. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  8689. The configuration is minimum: no torrent, no metalink, so there may be
  8690. other compile error on their code.
  8691. * src/a2netcompat.h
  8692. * src/File.cc
  8693. * src/File.h
  8694. * src/SocketCore.cc
  8695. * src/SocketCore.h
  8696. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Made a socket of incoming peer non-blocking.
  8698. * src/PeerListenCommand.cc
  8699. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8700. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  8701. whole message data is not sent in one send() call.
  8702. * src/BtPieceMessage.cc
  8703. * src/BtPieceMessage.h
  8704. * src/PeerConnection.cc
  8705. * src/PeerConnection.h
  8706. * src/SimpleBtMessage.cc
  8707. * src/SimpleBtMessage.h
  8708. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8709. Fixed the bug that aria2 downloads faster than max-download-limit when
  8710. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  8711. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  8712. , instead of sum of them.
  8713. * src/ActivePeerConnectionCommand.cc
  8714. * src/DefaultBtInteractive.cc
  8715. * src/DownloadCommand.cc
  8716. * src/PeerInteractionCommand.cc
  8717. * src/PeerReceiveHandshakeCommand.cc
  8718. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. Fixed the bug that HTTPS download fails.
  8720. * src/AbstractCommand.cc
  8721. * src/AbstractCommand.h
  8722. * src/DownloadCommand.cc
  8723. * src/FtpConnection.cc
  8724. * src/HttpConnection.cc
  8725. * src/HttpRequestCommand.cc
  8726. * src/HttpResponseCommand.cc
  8727. * src/HttpSkipResponseCommand.cc
  8728. * src/MSEHandshake.cc
  8729. * src/PeerConnection.cc
  8730. * src/SocketCore.cc
  8731. * src/SocketCore.h
  8732. Fixed the bug that aria2 doesn't download whole content body and cannot
  8733. reuse connection if chunked transfer encoding and gzip content encoding
  8734. are set.
  8735. * src/DownloadCommand.cc
  8736. * src/HttpSkipResponseCommand.cc
  8737. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. Updated man page.
  8739. * doc/aria2c.1.txt
  8740. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. When error occurred while aria2 was parsing an .aria2.conf file, print
  8742. the usage of the option that caused error.
  8743. * src/option_processing.cc
  8744. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8745. Fixed compile error on OptionHandlerException
  8746. * src/Makefile.am
  8747. * src/OptionHandlerException.cc
  8748. * src/OptionHandlerException.h
  8749. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8750. Moved message of the error to OptionHandlerException.h
  8751. * src/NameMatchOptionHandler.h
  8752. * src/OptionHandlerException.h
  8753. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8754. When error occurs while aria2 is parsing an command-line option, print
  8755. the usage of the option.
  8756. * src/Makefile.am
  8757. * src/NameMatchOptionHandler.h
  8758. * src/OptionHandlerException.h
  8759. * src/option_processing.cc
  8760. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8761. Reverted previous change.
  8762. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  8763. username is not in URI.
  8764. * src/HttpRequest.cc
  8765. * src/Request.cc
  8766. * test/HttpRequestTest.cc
  8767. * test/RequestTest.cc
  8768. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8769. Now colon is required for username and password in FTP URL, like:
  8770. ftp://username:password@host.
  8771. If colon is not there, aria2 don't parse it as a username. For example,
  8772. aria2 don't retrieve username from ftp://username@host.
  8773. This fix was made in order to login FTP server via non-transparent ftp
  8774. proxy.
  8775. * src/Request.cc
  8776. * test/RequestTest.cc
  8777. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8778. Use netrc for HTTP.
  8779. Now FTP user/password is sent in Authorization header when
  8780. --ftp-via-http-proxy=get is given.
  8781. * src/AuthConfigFactory.cc
  8782. * src/HttpRequest.cc
  8783. * src/HttpRequest.h
  8784. * src/NetrcAuthResolver.cc
  8785. * src/NetrcAuthResolver.h
  8786. * src/OptionHandlerFactory.cc
  8787. * src/option_processing.cc
  8788. * src/prefs.cc
  8789. * src/prefs.h
  8790. * test/AuthConfigFactoryTest.cc
  8791. * test/HttpRequestTest.cc
  8792. * test/NetrcAuthResolverTest.cc
  8793. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8794. Issue PWD command first and get working directory and use it as a prefix
  8795. for CWD command.
  8796. * src/DownloadEngine.cc
  8797. * src/DownloadEngine.h
  8798. * src/FtpConnection.cc
  8799. * src/FtpConnection.h
  8800. * src/FtpFinishDownloadCommand.cc
  8801. * src/FtpInitiateConnectionCommand.cc
  8802. * src/FtpNegotiationCommand.cc
  8803. * src/FtpNegotiationCommand.h
  8804. * test/FtpConnectionTest.cc
  8805. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8806. Removed default user/pass for FTP user/pass, since it should not have
  8807. precedence over netrc configuration by default.
  8808. * src/OptionHandlerFactory.cc
  8809. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. Added debug log for socket event.
  8811. * src/AbstractCommand.cc
  8812. * src/PeerAbstractCommand.cc
  8813. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. Log microseconds.
  8815. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8816. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8817. Replaced HelpItem.cc with OptionHandler.cc.
  8818. * po/POTFILES.in
  8819. Updated po files with 'make update-po'
  8820. * po/aria2c.pot
  8821. * po/*.po
  8822. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8823. Removed possible values from the text.
  8824. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8825. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Removed unused preferences:
  8827. PREF_NO_PREALLOCATION
  8828. PREF_STDOUT_LOG
  8829. PREF_TRACKER_MAX_TRIES
  8830. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8831. PREF_MIN_SEGMENT_SIZE
  8832. * src/option_processing.cc
  8833. * src/prefs.cc
  8834. * src/prefs.h
  8835. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. Integrated HelpItem into OptionParser to ease the workload for adding
  8837. new options. Removed default value from usage text.
  8838. * src/HelpItem.cc: Removed.
  8839. * src/HelpItem.h: Removed.
  8840. * src/HelpItemFactory.cc: Removed.
  8841. * src/HelpItemFactory.h: Removed.
  8842. * src/Makefile.am
  8843. * src/Makefile.in
  8844. * src/NameMatchOptionHandler.h
  8845. * src/OptionHandler.cc
  8846. * src/OptionHandler.h
  8847. * src/OptionHandlerFactory.cc
  8848. * src/OptionHandlerImpl.h
  8849. * src/OptionParser.cc
  8850. * src/OptionParser.h
  8851. * src/TagContainer.cc: Removed.
  8852. * src/TagContainer.h: Removed.
  8853. * src/TaggedItem.cc: Removed.
  8854. * src/TaggedItem.h: Removed.
  8855. * src/main.cc
  8856. * src/option_processing.cc
  8857. * src/usage_text.h
  8858. * src/version_usage.cc
  8859. * test/HelpItemTest.cc: Removed.
  8860. * test/Makefile.am
  8861. * test/Makefile.in
  8862. * test/OptionHandlerTest.cc
  8863. * test/OptionParserTest.cc
  8864. * test/TagContainerTest.cc: Removed.
  8865. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. Moved `TransferStat stat = ...' to inside the `if' clause.
  8867. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8868. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8869. Fixed the bug that a block in a piece is requested when same block is
  8870. already requested to the same peer in end game mode.
  8871. * src/BtRequestFactory.h
  8872. * src/DefaultBtInteractive.cc
  8873. * src/DefaultBtRequestFactory.cc
  8874. * src/DefaultBtRequestFactory.h
  8875. * src/DefaultPieceStorage.cc
  8876. * src/DefaultPieceStorage.h
  8877. * src/PieceStorage.h
  8878. * src/UnknownLengthPieceStorage.cc
  8879. * src/UnknownLengthPieceStorage.h
  8880. * test/DefaultBtRequestFactoryTest.cc
  8881. * test/DefaultPieceStorageTest.cc
  8882. * test/MockBtRequestFactory.h
  8883. * test/MockPieceStorage.h
  8884. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8885. Removed _uploadLength and _downloadLength from PeerSessionResource
  8886. and use PeerStat::_sessionUploadLength and
  8887. PeerStat::_sessionDownloadLength.
  8888. * src/PeerSessionResource.cc
  8889. * src/PeerSessionResource.h
  8890. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8891. Fixed the bug that prefixLength of split bucket which doesn't include
  8892. local node ID is incremented.
  8893. * src/DHTBucket.cc
  8894. * src/DHTBucket.h
  8895. * test/DHTBucketTest.cc
  8896. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. Added cookies.sqlite to EXTRA_DIST
  8898. * test/Makefile.am
  8899. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8900. Added Turkish translation. Updated French, German, Russian and
  8901. Simplified Chinese translations. Thanks to all translators.
  8902. * po/LINGUAS
  8903. * po/de.po
  8904. * po/fr.po
  8905. * po/ru.po
  8906. * po/tr.po
  8907. * po/zh_CN.po
  8908. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8909. Added deliminating text to the beginning of the log so that one can find
  8910. where the log starts easily.
  8911. * src/main.cc
  8912. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8914. to fix compile error when async DNS is not enabled by configuration.
  8915. * src/AbstractCommand.cc
  8916. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8917. If establishing conneciton to a server is failed, then mark error on
  8918. its ServerStat.
  8919. Added the cause of error to log when error event occurred.
  8920. Moved message string to message.h for translation.
  8921. * src/AbstractCommand.cc
  8922. * src/AbstractCommand.h
  8923. * src/FtpNegotiationCommand.cc
  8924. * src/HttpRequestCommand.cc
  8925. * src/PeerAbstractCommand.cc
  8926. * src/message.h
  8927. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8928. Added the function to get error message from socket.
  8929. * src/SocketCore.cc
  8930. * src/SocketCore.h
  8931. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8932. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8933. * src/RequestGroupMan.cc
  8934. * src/RequestGroupMan.h
  8935. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8936. If error event is received in epoll, then abort download immediately.
  8937. * src/AbstractCommand.cc
  8938. * src/Command.cc
  8939. * src/Command.h
  8940. * src/DownloadEngine.cc
  8941. * src/PeerAbstractCommand.cc
  8942. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8943. Added usage message for --uri-selector, --server-stat-of,
  8944. --server-stat-in, --server-stat-timeout options.
  8945. * src/HelpItemFactory.cc
  8946. * src/usage_text.h
  8947. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Added upper limit of FTP response buffer. The current implementation
  8949. uses 4096bytes as a limit.
  8950. * src/FtpConnection.cc
  8951. * src/FtpConnection.h
  8952. * test/FtpConnectionTest.cc
  8953. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8954. Use non-blocking socket for TCP communication to avoid possible
  8955. blocking due to buffer full.
  8956. * src/AbstractProxyRequestCommand.cc
  8957. * src/FtpConnection.cc
  8958. * src/FtpConnection.h
  8959. * src/FtpNegotiationCommand.cc
  8960. * src/FtpNegotiationCommand.h
  8961. * src/HttpConnection.cc
  8962. * src/HttpConnection.h
  8963. * src/HttpRequestCommand.cc
  8964. * src/InitiatorMSEHandshakeCommand.cc
  8965. * src/InitiatorMSEHandshakeCommand.h
  8966. * src/MSEHandshake.cc
  8967. * src/MSEHandshake.h
  8968. * src/Makefile.am
  8969. * src/PeerConnection.cc
  8970. * src/PeerConnection.h
  8971. * src/PeerInteractionCommand.cc
  8972. * src/PeerListenCommand.cc
  8973. * src/ReceiverMSEHandshakeCommand.cc
  8974. * src/ReceiverMSEHandshakeCommand.h
  8975. * src/SocketBuffer.cc
  8976. * src/SocketBuffer.h
  8977. * src/SocketCore.cc
  8978. * src/SocketCore.h
  8979. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Call setStatusRealtime() in constructor.
  8981. * src/RealtimeCommand.cc
  8982. * src/RealtimeCommand.h
  8983. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8984. Call Download::setNoWait(true) to execute newly created command without
  8985. a pause.
  8986. * src/AbstractCommand.cc
  8987. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8988. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8989. found' error from HTTP/FTP server NUM times without getting single
  8990. bytes of data, then force the download to fail.
  8991. Basically aria2 tris all URIs available. So if long list of URIs are
  8992. specified in Metalink, then aria2 will take a long time to fail
  8993. eventually if all URIs are outdated. This option eases this situation
  8994. to limit the number of servers to try.
  8995. * src/FtpNegotiationCommand.cc
  8996. * src/HelpItemFactory.cc
  8997. * src/HttpResponseCommand.cc
  8998. * src/OptionHandlerFactory.cc
  8999. * src/PeerStat.h
  9000. * src/RequestGroup.cc
  9001. * src/RequestGroup.h
  9002. * src/SegmentMan.cc
  9003. * src/SegmentMan.h
  9004. * src/option_processing.cc
  9005. * src/prefs.cc
  9006. * src/prefs.h
  9007. * src/usage_text.h
  9008. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9009. Fixed the bug that bulkReceiveResponse() reads all received data as a
  9010. response even if more than one response is in it.
  9011. * src/FtpConnection.cc
  9012. * src/FtpConnection.h
  9013. * test/FtpConnectionTest.cc
  9014. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9015. Merged from stable-0.15
  9016. * m4/libcares.m4
  9017. Use pkg-config
  9018. * m4/sqlite3.m4
  9019. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9020. Removed unnecessary if statement.
  9021. * src/DefaultPieceStorage.cc (initPieceStorage)
  9022. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9023. Added --connect-timeout option to specify connect timeout in seconds.
  9024. This option is in effect for HTTP/FTP/proxy server. The timeout for
  9025. connecting to BitTorrent peer is not controlled by this option.
  9026. * src/AbstractProxyRequestCommand.cc
  9027. * src/FtpNegotiationCommand.cc
  9028. * src/HelpItemFactory.cc
  9029. * src/HttpRequestCommand.cc
  9030. * src/OptionHandlerFactory.cc
  9031. * src/option_processing.cc
  9032. * src/prefs.cc
  9033. * src/prefs.h
  9034. * src/usage_text.h
  9035. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9036. Added help message for -R option.
  9037. * src/HelpItemFactory.cc
  9038. * src/usage_text.h
  9039. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Added the message that the time is in local time zone.
  9041. * src/RequestGroup.cc
  9042. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9043. Implemented the ability to get timestamp from remote FTP server using
  9044. MDTM command described in RFC3659.
  9045. * src/FtpConnection.cc
  9046. * src/FtpConnection.h
  9047. * src/FtpNegotiationCommand.cc
  9048. * src/FtpNegotiationCommand.h
  9049. * test/FtpConnectionTest.cc
  9050. * test/Makefile.am
  9051. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9052. Implemented the ability to get timestamp from remote HTTP server and
  9053. apply it to local file. To enable this feature, --remote-time option
  9054. is added. No usage text has been written yet.
  9055. If several servers returns difference timestamp, then aria2 uses latest
  9056. one.
  9057. * src/CopyDiskAdaptor.cc
  9058. * src/CopyDiskAdaptor.h
  9059. * src/DirectDiskAdaptor.cc
  9060. * src/DirectDiskAdaptor.h
  9061. * src/DiskAdaptor.h
  9062. * src/File.cc
  9063. * src/File.h
  9064. * src/HttpHeader.cc
  9065. * src/HttpHeader.h
  9066. * src/HttpResponse.cc
  9067. * src/HttpResponse.h
  9068. * src/HttpResponseCommand.cc
  9069. * src/HttpResponseCommand.h
  9070. * src/MultiDiskAdaptor.cc
  9071. * src/MultiDiskAdaptor.h
  9072. * src/OptionHandlerFactory.cc
  9073. * src/RequestGroup.cc
  9074. * src/RequestGroup.h
  9075. * src/RequestGroupMan.cc
  9076. * src/option_processing.cc
  9077. * src/prefs.cc
  9078. * src/prefs.h
  9079. * test/CopyDiskAdaptorTest.cc
  9080. * test/FileTest.cc
  9081. * test/Makefile.am
  9082. * test/Makefile.in
  9083. * test/MultiDiskAdaptorTest.cc
  9084. * test/TestUtil.cc
  9085. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Fixed the bug that DiskWriterEntry is not created when its
  9087. FileEntry.isRequested() is false and it doesn't share a piece with
  9088. other FileEntries that are requested. This bug causes segmentation fault
  9089. in the end.
  9090. * src/MultiDiskAdaptor.cc
  9091. * src/MultiDiskAdaptor.h
  9092. * src/MultiFileAllocationIterator.cc
  9093. * test/MultiDiskAdaptorTest.cc
  9094. * test/MultiFileAllocationIteratorTest.cc
  9095. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9096. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  9097. called if the number of file entries are greater than max open files.
  9098. * src/AbstractSingleDiskAdaptor.cc
  9099. * src/AbstractSingleDiskAdaptor.h
  9100. * src/DiskAdaptor.h
  9101. * src/MultiDiskAdaptor.cc
  9102. * src/MultiDiskAdaptor.h
  9103. * test/MultiDiskAdaptorTest.cc
  9104. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9105. Added a constuctor that receives struct timeval.
  9106. Added operator<.
  9107. * src/TimeA2.cc
  9108. * src/TimeA2.h
  9109. * test/TimeTest.cc
  9110. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9111. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  9112. * src/CookieParser.cc
  9113. * test/CookieParserTest.cc
  9114. * test/HttpResponseTest.cc
  9115. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9116. Implmented the functions to parse date.
  9117. * src/TimeA2.cc
  9118. * src/TimeA2.h
  9119. * test/TimeTest.cc
  9120. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. Added "Firefox3 Cookie" feature to FeatureConfig
  9122. * src/FeatureConfig.cc
  9123. * src/FeatureConfig.h
  9124. * test/FeatureConfigTest.cc
  9125. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9126. Bump up version number to 0.16.0b
  9127. * configure.ac
  9128. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9129. Use pkg-config if is is available.
  9130. * m4/openssl.m4
  9131. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9132. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  9133. * src/BtAnnounce.h
  9134. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9135. If an error occurred with a URI, remove identical URI from remaining
  9136. URI list because it is likely that same error occurred in the end and it
  9137. is waste of time.
  9138. * src/AbstractCommand.cc
  9139. * src/RequestGroup.cc
  9140. * src/RequestGroup.h
  9141. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9142. Removed wrong comment.
  9143. * src/DefaultPeerStorage.cc
  9144. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9145. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  9146. Added return value of getpid() to argument of srand() to achieve more
  9147. randomized value.
  9148. * src/SimpleRandomizer.cc
  9149. * src/SimpleRandomizer.h
  9150. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Contact tracker frequently when the number of connections are 0 and
  9152. download is not finished yet.
  9153. * src/ActivePeerConnectionCommand.cc
  9154. * src/BtAnnounce.h
  9155. * src/DefaultBtAnnounce.cc
  9156. * src/DefaultBtAnnounce.h
  9157. * test/MockBtAnnounce.h
  9158. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9159. Moved threshold values to UTPexExtensionMessage.
  9160. * src/DefaultBtInteractive.cc
  9161. * src/Peer.cc
  9162. * src/Peer.h
  9163. * src/UTPexExtensionMessage.cc
  9164. * src/UTPexExtensionMessage.h
  9165. * test/UTPexExtensionMessageTest.cc
  9166. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Added _incoming member to Peer class and made it true if the peer
  9168. initiated connection. Don't add those peer to UTPex message.
  9169. If extended handshake is received, assign _incoming to false.
  9170. * src/DefaultBtInteractive.cc
  9171. * src/HandshakeExtensionMessage.cc
  9172. * src/Peer.cc
  9173. * src/Peer.h
  9174. * src/PeerListenCommand.cc
  9175. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  9177. Encoding Decoder. Removed size threshold for turning off on the fly
  9178. inflation because resulting file may or may not be inflated depending
  9179. on the file size and I think it is not expected by users.
  9180. This change fixes segmentation fault when Metalink file contains gzipped
  9181. file and its filesize is provided.
  9182. * src/HttpResponseCommand.cc
  9183. * src/HttpResponseCommand.h
  9184. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9185. Made Cookie immutable.
  9186. * src/Cookie.cc
  9187. * src/Cookie.h
  9188. * src/CookieParser.cc
  9189. * src/CookieParser.h
  9190. * src/CookieStorage.cc
  9191. * test/CookieParserTest.cc
  9192. * test/CookieStorageTest.cc
  9193. * test/NsCookieParserTest.cc
  9194. * test/Sqlite3MozCookieParserTest.cc
  9195. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9196. Removed CookieBox, CookieBoxFactory.
  9197. * src/CookieBox.cc
  9198. * src/CookieBox.h
  9199. * src/CookieBoxFactory.cc
  9200. * src/CookieBoxFactory.h
  9201. * src/Makefile.am
  9202. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. Use CookieStorage class instead of CookieBox class.
  9204. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  9205. * src/AbstractProxyRequestCommand.cc
  9206. * src/CookieStorage.cc
  9207. * src/DownloadEngine.cc
  9208. * src/DownloadEngine.h
  9209. * src/HttpConnection.cc
  9210. * src/HttpConnection.h
  9211. * src/HttpRequest.cc
  9212. * src/HttpRequest.h
  9213. * src/HttpRequestCommand.cc
  9214. * src/HttpResponse.cc
  9215. * src/HttpResponseCommand.cc
  9216. * src/HttpSkipResponseCommand.cc
  9217. * src/Makefile.am
  9218. * src/MultiUrlRequestInfo.cc
  9219. * src/Request.cc
  9220. * src/Request.h
  9221. * src/main.cc
  9222. * test/AllTest.cc
  9223. * test/CookieStorageTest.cc
  9224. * test/CookieTest.cc
  9225. * test/HttpRequestTest.cc
  9226. * test/HttpResponseTest.cc
  9227. * test/Makefile.am
  9228. * test/NsCookieParserTest.cc
  9229. * test/Sqlite3MozCookieParserTest.cc
  9230. * test/nscookietest.txt
  9231. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9232. Updated
  9233. * test/Cookies.sqlite
  9234. * test/nscookietest.txt
  9235. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9236. Added tests for CookieStorage::load()
  9237. * test/CookieStorageTest.cc
  9238. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9239. Added CookieStorage class which is based on RFC2109 and manages cookies
  9240. more strictly than CookieBox and CookieBoxFactory class.
  9241. * src/CookieStorage.cc
  9242. * src/CookieStorage.h
  9243. * src/Cookie.cc
  9244. * src/Cookie.h
  9245. * test/CookieStorageTest.cc
  9246. * test/CookieTest.cc
  9247. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9248. Fixed the bug that commands are created more than the number of pieces.
  9249. * src/RequestGroup.cc
  9250. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9251. Fixed infinite loop bug in FTP when SIZE command failed.
  9252. * src/FtpNegotiationCommand.cc
  9253. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9254. Removed DirectDiskAdaptorTest.h
  9255. * test/Makefile.am
  9256. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Fixed chunk checksum validation cannot detect trailing garbage data.
  9258. BUG#2074141
  9259. * src/AbstractSingleDiskAdaptor.cc
  9260. * src/AbstractSingleDiskAdaptor.h
  9261. * src/CheckIntegrityEntry.cc
  9262. * src/CheckIntegrityEntry.h
  9263. * src/DiskAdaptor.h
  9264. * src/MultiDiskAdaptor.cc
  9265. * src/MultiDiskAdaptor.h
  9266. * src/RequestGroup.cc
  9267. * test/DirectDiskAdaptorTest.cc
  9268. * test/MultiDiskAdaptorTest.cc
  9269. * test/TestUtil.cc
  9270. * test/TestUtil.h
  9271. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Bump up version number of dht.dat file to 3. In version 3 format, time
  9273. is stored in 64bit, network byte order.
  9274. New build can load old format(version 2) but it saves the file in new
  9275. format. It means once you used new build, your dht.dat becomes
  9276. incompatible with older build.
  9277. * src/DHTRoutingTableDeserializer.cc
  9278. * src/DHTRoutingTableSerializer.cc
  9279. * test/DHTRoutingTableSerializerTest.cc
  9280. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9281. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  9282. * test/Makefile.am
  9283. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Bump up version number of .aria2 control file to 0001.
  9285. New aria2 can still load version 0000 file but it saves the file in
  9286. version 0001 format. It means that new aria2 can resume download
  9287. started by old aria2 but the opposite is not true.
  9288. * src/DefaultBtProgressInfoFile.cc
  9289. * src/DefaultBtProgressInfoFile.h
  9290. * test/DefaultBtProgressInfoFileTest.cc
  9291. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9292. Added ntoh64 and hton64 as inline functions.
  9293. * src/Util.cc
  9294. * test/UtilTest.cc
  9295. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Added sqlite3 depenency and Firefox3 cookie support.
  9297. * README
  9298. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. State that firefox3 cookie is supported explicitly in the usage.
  9300. * src/usage_text.h
  9301. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9302. Externalized message.
  9303. * src/RequestGroupMan.cc
  9304. * src/message.h
  9305. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9306. Save temporary file first and rename to the destination on success.
  9307. Added test cases.
  9308. * src/RequestGroupMan.cc
  9309. * test/RequestGroupManTest.cc
  9310. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9311. Fixed the bug that the number of connected peer is exceeding the limit
  9312. (55 by default) in seeding mode.
  9313. Multiplied 0.8 to _maxUploadSpeedLimit.
  9314. * src/ActivePeerConnectionCommand.cc
  9315. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9316. Clear table item.
  9317. * src/Dictionary.cc
  9318. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9319. Fixed error handling of lseek.
  9320. * src/AbstractDiskWriter.cc
  9321. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9322. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  9323. style cookie file.
  9324. * src/usage_text.h
  9325. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9326. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  9327. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  9328. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  9329. * src/Util.cc
  9330. * src/Util.h
  9331. * src/CookieParser.cc
  9332. * test/UtilTest.cc
  9333. * test/CookieParserTest.cc
  9334. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. Separate the implementation to load old mozilla format of cookie to
  9336. NsCookieParser class.
  9337. * src/CookieBoxFactory.cc
  9338. * src/CookieBoxFactory.h
  9339. * src/NsCookieParser.cc
  9340. * src/NsCookieParser.h
  9341. * test/NsCookieParserTest.cc
  9342. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Made parse() const
  9344. * src/Sqlite3MozCookieParser.cc
  9345. * src/Sqlite3MozCookieParser.h
  9346. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. Added firefox3 cookie support based on the patch submitted by
  9348. tizianomueller.
  9349. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  9350. this functionality.
  9351. * configure.ac
  9352. * m4/sqlite3.m4
  9353. * src/CookieBoxFactory.cc
  9354. * src/CookieBoxFactory.h
  9355. * src/Makefile.am
  9356. * src/Makefile.in
  9357. * src/Sqlite3MozCookieParser.cc
  9358. * src/Sqlite3MozCookieParser.h
  9359. * src/main.cc
  9360. * test/CookieBoxFactoryTest.cc
  9361. * test/Makefile.am
  9362. * test/Makefile.in
  9363. * test/Sqlite3MozCookieParserTest.cc
  9364. * test/badcookies.sqlite
  9365. * test/cookies.sqlite
  9366. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9367. Added Danish and Greek translations.
  9368. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  9369. Great thanks to all translators.
  9370. * po/LINGUAS
  9371. * po/el.po
  9372. * po/da.po
  9373. * po/es.po
  9374. * po/ca.po
  9375. * po/nn.po
  9376. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9377. Fixed man page: --follow-bittorrent should be --follow-torrent
  9378. * doc/aria2c.1.txt
  9379. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9380. Fixed: numCommand is less than the value specified in -C option.
  9381. * src/RequestGroup.cc
  9382. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9383. Fixed occasional assertion failure in PieceSegment.
  9384. Calling PieceStorage::getMissingPiece(size_t) was missing after
  9385. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  9386. creation of duplicate segments and one of the segment was finished then
  9387. assertion failure was caused.
  9388. * src/SegmentMan.cc
  9389. * test/SegmentManTest.cc
  9390. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9391. Added options to load/save the server's performance/status to a file
  9392. and the timeout to drop their data.
  9393. --server-stat-of=FILE specifies the file to which performance data
  9394. is saved.
  9395. --server-stat-if=FILE specifies the file to read previously saved
  9396. by --server-stat-of option. Might be used with --uri-selector=feedback.
  9397. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  9398. TIMEOUT is specified in seconds and the default value is 24hours.
  9399. * src/MultiUrlRequestInfo.cc
  9400. * src/OptionHandlerFactory.cc
  9401. * src/RequestGroupMan.cc
  9402. * src/RequestGroupMan.h
  9403. * src/ServerStatMan.cc
  9404. * src/ServerStatMan.h
  9405. * src/option_processing.cc
  9406. * src/prefs.cc
  9407. * src/prefs.h
  9408. * test/ServerStatManTest.cc
  9409. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9410. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  9411. * src/ServerStatMan.cc
  9412. * src/ServerStatMan.h
  9413. * test/ServerStatManTest.cc
  9414. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9415. Implemented ServerStatMan::load(...) function and its test case.
  9416. * src/ServerStat.cc
  9417. * src/ServerStat.h
  9418. * src/ServerStatMan.cc
  9419. * test/ServerStatManTest.cc
  9420. * test/ServerStatTest.cc
  9421. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. Use time_t instead of int32_t. Use int64_t where milli second is
  9423. expected.
  9424. * src/TimeA2.cc
  9425. * src/TimeA2.h
  9426. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9427. Implemented ServerStatMan::save(...) function and its test case.
  9428. * src/ServerStat.cc
  9429. * src/ServerStat.h
  9430. * src/ServerStatMan.cc
  9431. * src/ServerStatMan.h
  9432. * test/ServerStatManTest.cc
  9433. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9434. Now aria2 uses name attribute in Metalink as local filename in
  9435. BitTorrent downloads. BUG#2033999
  9436. * src/BtContext.h
  9437. * src/BtDependency.cc
  9438. * src/DefaultBtContext.cc
  9439. * src/DefaultBtContext.h
  9440. * src/SingleFileDownloadContext.cc
  9441. * src/SingleFileDownloadContext.h
  9442. * test/BtDependencyTest.cc
  9443. * test/DefaultBtContextTest.cc
  9444. * test/MockBtContext.h
  9445. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9446. Added AC_C_BIGENDIAN
  9447. * src/configure.ac
  9448. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9449. Limited numCommand less than or equal to the number of piece.
  9450. * src/RequestGroup.cc
  9451. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9452. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  9453. directive.
  9454. * test/DefaultPieceStorageTest.cc
  9455. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9456. Fixed memory leak in test code
  9457. * test/AnnounceListTest.cc
  9458. * test/DefaultPeerListProcessorTest.cc
  9459. * test/DefaultPeerStorageTest.cc
  9460. * test/MetaFileUtilTest.cc
  9461. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9462. Fixed wrong argument passing to BitfieldMan::isBitSet()
  9463. * src/DefaultPieceStorage.cc
  9464. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9465. Initialized _directIOAllowed
  9466. * src/MultiDiskAdaptor.cc
  9467. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9468. Fixed memory leak
  9469. * src/GZipDecoder.cc
  9470. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. Fixed memory leak
  9472. * src/MetalinkParserStateMachine.cc
  9473. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. Fixed memory leak
  9475. * src/Dictionary.cc
  9476. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9477. Fixed memory leak
  9478. * src/IteratableChunkChecksumValidator.h
  9479. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9480. Fixed unmatched malloc/free.
  9481. * src/IteratableChunkChecksumValidator.cc
  9482. * src/IteratableChecksumValidator.cc
  9483. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9484. Removed max chunk size check. This change fixes BUG#2040169
  9485. * src/ChunkedDecoder.cc
  9486. * src/ChunkedDecoder.h
  9487. * test/ChunkedDecoderTest.cc
  9488. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. Implemented download speed based URI selection algorithm.
  9490. Introduced new option --uri-selector.
  9491. If --uri-selector=feedback is given, aria2 uses download speed observed
  9492. in the previous downloads and chooses fastest server in the URI list.
  9493. Currently at most 10 URIs are considered to introduce randomeness for
  9494. finding better servers. The speed is average download speed in the
  9495. downloads.
  9496. On the other hand, if --uri-selector=inorder is given, which is default,
  9497. URI is tried in order in URI list.
  9498. The usage text for the new option has not been written yet.
  9499. * src/AbstractCommand.cc
  9500. * src/DownloadCommand.cc
  9501. * src/DownloadEngine.cc
  9502. * src/DownloadEngineFactory.cc
  9503. * src/InOrderURISelector.cc
  9504. * src/InOrderURISelector.h
  9505. * src/OptionHandlerFactory.cc
  9506. * src/PeerStat.h
  9507. * src/RequestGroup.cc
  9508. * src/RequestGroup.h
  9509. * src/RequestGroupMan.cc
  9510. * src/RequestGroupMan.h
  9511. * src/SegmentMan.cc
  9512. * src/SegmentMan.h
  9513. * src/ServerStat.cc
  9514. * src/ServerStat.h
  9515. * src/ServerStatMan.cc
  9516. * src/ServerStatMan.h
  9517. * src/ServerStatURISelector.cc
  9518. * src/ServerStatURISelector.h
  9519. * src/URISelector.h
  9520. * src/option_processing.cc
  9521. * src/prefs.cc
  9522. * src/prefs.h
  9523. * test/InOrderURISelectorTest.cc
  9524. * test/RequestGroupManTest.cc
  9525. * test/ServerStatManTest.cc
  9526. * test/ServerStatURISelectorTest.cc
  9527. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9528. * Release 0.15.1+2
  9529. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9530. Bump up version number to 0.15.1+2
  9531. * configure.ac
  9532. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  9534. * m4/aria2_arg.m4
  9535. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9536. * Release 0.15.1+1
  9537. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. Bump up version number to 0.15.1+1
  9539. * configure.ac
  9540. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. Fixed the bug that causes segmentaion fault when resuming download
  9542. using metalink without size tag. Reproducible only using HTTP URI.
  9543. * src/HttpResponseCommand.cc
  9544. * src/FtpNegotiationCommand.cc
  9545. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9546. * Release 0.15.1
  9547. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9548. Updated Bulgarian and French translations, thanks to all translators.
  9549. * po/bg.po
  9550. * po/fr.po
  9551. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Bump up version number to 0.15.1
  9553. * configure.ac
  9554. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9555. Avoid repeated call of gettimeofday() when calculating speed.
  9556. * src/SpeedCalc.cc
  9557. * src/SpeedCalc.h
  9558. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9559. Removed writable check when socket's send buffer is full in BitTorrent
  9560. downloads to lower CPU usage.
  9561. * src/PeerInteractionCommand.cc
  9562. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. Fixed broken gzip inflation.
  9564. Turn off segmented downloading if gzip content is smaller than or equal
  9565. to 1MiB and inflate the data on the fly, because HTTP response header
  9566. doesn't contain the length of inflated file we can't determin where
  9567. the chunk of data should be written.
  9568. On the other hand, if gzip content is larger than 1MB, then turn off
  9569. on the fly inflation, because some servers returns "content-type: gzip"
  9570. for *.tgz, *.gz files.
  9571. * src/DownloadCommand.cc
  9572. * src/HttpResponseCommand.cc
  9573. * src/HttpResponseCommand.h
  9574. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9575. Applied tizianomueller's patch to fix compile error.
  9576. * test/BitfieldManTest.cc
  9577. * test/BtRequestMessageTest.cc
  9578. * test/DefaultBtContextTest.cc
  9579. * test/DefaultDiskWriterTest.cc
  9580. * test/DefaultPieceStorageTest.cc
  9581. * test/HttpHeaderProcessorTest.cc
  9582. * test/HttpResponseTest.cc
  9583. * test/Metalink2RequestGroupTest.cc
  9584. * test/MetalinkParserControllerTest.cc
  9585. * test/MetalinkProcessorTest.cc
  9586. * test/PeerSessionResourceTest.cc
  9587. * test/UtilTest.cc
  9588. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9589. * Release 0.15.0
  9590. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9591. Reordered src files in POTFILES.in so that usage text appears first.
  9592. * po/POTFILES.in
  9593. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9594. Bump up version number to 0.15.0
  9595. * configure.ac
  9596. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9597. Added Bulgarian translation.
  9598. Updated Catalan, Spanish, French and Japanese translations.
  9599. Thanks to all translators.
  9600. * po/LINGUAS
  9601. * po/bg.po
  9602. * po/ca.po
  9603. * po/es.po
  9604. * po/fr.po
  9605. * po/ja.po
  9606. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Updated feature list. Added libz for dependency section.
  9608. Added a description about unit testing using CppUnit.
  9609. * README
  9610. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9611. Added a test for libz. Quoted where it is necessary.
  9612. * build_test.sh
  9613. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9614. Added GZip to `Enabled Features' list.
  9615. * src/FeatureConfig.cc
  9616. * src/FeatureConfig.h
  9617. * test/FeatureConfigTest.cc
  9618. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9619. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  9620. the transfer has not yet started.
  9621. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  9622. * src/SegmentMan.cc
  9623. * src/SegmentMan.h
  9624. * test/SegmentManTest.cc
  9625. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9626. Cache last calculated average download/upload speed.
  9627. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  9628. cached value.
  9629. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  9630. * src/PeerStat.h
  9631. * src/SpeedCalc.cc
  9632. * src/SpeedCalc.h
  9633. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9634. Call parseUrl directly.
  9635. * src/Request.cc (resetUrl)
  9636. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9637. Supported absolute/relative path in Location header field.
  9638. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  9639. * src/HttpHeader.cc
  9640. * src/HttpHeader.h
  9641. * src/HttpResponse.cc
  9642. * src/HttpSkipResponseCommand.cc
  9643. * src/Request.cc
  9644. * test/HttpHeaderTest.cc
  9645. * test/HttpResponseTest.cc
  9646. * test/RequestTest.cc
  9647. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9648. Changed help text for --load-cookie option.
  9649. * doc/aria2c.1.txt
  9650. * src/usage_text.h
  9651. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9652. Regenerated test/Makefile.in to remove stale ChangeLog.
  9653. * test/Makefile.in
  9654. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9655. Updated po files.
  9656. * po/aria2c.pot
  9657. * po/*.po
  9658. * po/*.gmo
  9659. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9660. Bump up version number to 0.15.0b
  9661. * configure.ac
  9662. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Externalize messages.
  9664. * src/RequestGroupMan.cc
  9665. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  9666. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9667. Use File::exists() instead of File::isFile() to allow non-regular file
  9668. such as block special files.
  9669. * src/AbstractDiskWriter.cc
  9670. * src/MultiDiskWriter.cc
  9671. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9672. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  9673. * src/gai_strerror.h
  9674. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9675. Fixed compile error. Thanks gknauf for the patch.
  9676. * src/asctime_r.c
  9677. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9678. Included asctime_r.h from a2time.h.
  9679. * src/a2time.h
  9680. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9681. Added a message "aria2 doesn't verify signature" to log message when
  9682. signature file is saved.
  9683. * src/RequestGroupMan.cc
  9684. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9685. Added the ability to save signature when download is completed if
  9686. signature is available. The filename of signature file is the path to
  9687. download file followed by ".sig". If it already exists, then signature
  9688. will not be saved.
  9689. * src/RequestGroupMan.cc
  9690. * src/Signature.cc
  9691. * test/SignatureTest.cc
  9692. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9693. Updated the descriptions for --bt-seed-unverified.
  9694. * doc/aria2c.1
  9695. * doc/aria2c.1.html
  9696. * doc/aria2c.1.txt
  9697. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9698. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  9699. that this is not going to verify files using piece hashes.
  9700. * src/HelpItemFactory.cc
  9701. * src/OptionHandlerFactory.cc
  9702. * src/RequestGroup.cc
  9703. * src/option_processing.cc
  9704. * src/prefs.cc
  9705. * src/prefs.h
  9706. * src/usage_text.h
  9707. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9708. Added the ability to retrieve signature from Metalink file.
  9709. A retrieved signature is stored in Signature class and it is held by
  9710. DownloadContext class. Note that aria2 doesn't verify signature.
  9711. * src/DownloadContext.cc
  9712. * src/DownloadContext.h
  9713. * src/Makefile.am
  9714. * src/Makefile.in
  9715. * src/Metalink2RequestGroup.cc
  9716. * src/MetalinkEntry.cc
  9717. * src/MetalinkEntry.h
  9718. * src/MetalinkParserController.cc
  9719. * src/MetalinkParserController.h
  9720. * src/MetalinkParserStateMachine.cc
  9721. * src/MetalinkParserStateMachine.h
  9722. * src/Signature.cc
  9723. * src/Signature.h
  9724. * src/SignatureMetalinkParserState.cc
  9725. * src/SignatureMetalinkParserState.h
  9726. * src/VerificationMetalinkParserState.cc
  9727. * src/VerificationMetalinkParserState.h
  9728. * test/Metalink2RequestGroupTest.cc
  9729. * test/MetalinkParserControllerTest.cc
  9730. * test/MetalinkProcessorTest.cc
  9731. * test/test.xml
  9732. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9733. Close DiskAdaptor after renaming file.
  9734. * src/RequestGroup.cc
  9735. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9736. Corrected indentation
  9737. * src/DefaultBtProgressInfoFile.cc
  9738. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9739. Moved the calls of std::ios::exceptions() inside of try-catch block
  9740. because if an error occurred in constructor of std::fstream, then
  9741. exception is thrown immediately when std::ios::exceptions() is called
  9742. which results unhandled exception and aria2c aborts.
  9743. * src/DefaultBtProgressInfoFile.cc
  9744. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9745. Added the test for the previous change in DefaultBtContext.cc
  9746. * test/DefaultBtContextTest.cc
  9747. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9748. Fixed the bug that causes infinite loop when the number of pieces are
  9749. fewer than allowed fast set size which is 10 by default.
  9750. * src/DefaultBtContext.cc
  9751. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9752. Updated the descriptions for -j, -s. Added --bt-seed.
  9753. * doc/aria2c.1
  9754. * doc/aria2c.1.html
  9755. * doc/aria2c.1.txt
  9756. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  9758. aria2 seeds previously downloaded files without validating piece hashs.
  9759. * src/HelpItemFactory.cc
  9760. * src/OptionHandlerFactory.cc
  9761. * src/RequestGroup.cc
  9762. * src/option_processing.cc
  9763. * src/prefs.cc
  9764. * src/prefs.h
  9765. * src/usage_text.h
  9766. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9767. Updated DESCRIPTION of man page.
  9768. * doc/aria2c.1
  9769. * doc/aria2c.1.html
  9770. * doc/aria2c.1.txt
  9771. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  9773. Don't define `struct addrinfo' when __sun is defined.
  9774. * src/getaddrinfo.h
  9775. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9776. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  9777. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  9778. second argument is of type `struct _stati64'. Otherwise it is defined as
  9779. `struct stat'.
  9780. * src/AbstractDiskWriter.cc
  9781. * src/File.cc
  9782. * src/File.h
  9783. * src/a2io.h
  9784. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9785. Fixed the compile error in hurd-i386
  9786. See the original bug report:
  9787. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  9788. * src/a2io.h
  9789. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. Code cleanup.
  9791. * src/PeerAbstractCommand.cc
  9792. * src/PeerAbstractCommand.h
  9793. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9794. Removed TransferEncoding.
  9795. * src/DownloadCommand.cc
  9796. * src/DownloadCommand.h
  9797. * src/HttpResponseCommand.cc
  9798. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9799. Updated po files.
  9800. * po/aria2c.pot
  9801. * po/*.po
  9802. * po/*.gmo
  9803. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9804. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9805. * src/A2STR.cc
  9806. * src/A2STR.h
  9807. * src/ChunkedDecoder.cc
  9808. * src/ChunkedDecoder.h
  9809. * src/ChunkedEncoding.cc: Removed
  9810. * src/ChunkedEncoding.h: Removed
  9811. * src/DownloadCommand.cc
  9812. * src/DownloadCommand.h
  9813. * src/HttpDownloadCommand.cc
  9814. * src/HttpResponse.cc
  9815. * src/HttpResponse.h
  9816. * src/HttpResponseCommand.cc
  9817. * src/HttpSkipResponseCommand.cc
  9818. * src/HttpSkipResponseCommand.h
  9819. * src/Makefile.am
  9820. * src/TransferEncoding.h: Removed
  9821. * test/ChunkedDecoderTest.cc
  9822. * test/ChunkedEncodingTest.cc: Removed
  9823. * test/HttpResponseTest.cc
  9824. * test/Makefile.am
  9825. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9826. Use append instead of insert.
  9827. * src/GZipDecoder.cc
  9828. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Updated doc
  9830. * src/Decoder.h
  9831. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. Updated usage text for -s option.
  9833. * src/usage_text.h
  9834. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9835. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9836. * src/Request.cc
  9837. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9838. Cleaned up configure.ac.
  9839. * configure.ac
  9840. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9841. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9842. AC_ARG_ENABLE.
  9843. * configure.ac
  9844. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9846. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9847. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9848. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9849. fly and writes decoded data to a local disk.
  9850. * README
  9851. * README.html
  9852. * configure.ac
  9853. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9854. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9855. * m4/libz.m4
  9856. * src/Decoder.h
  9857. * src/DownloadCommand.cc
  9858. * src/DownloadCommand.h
  9859. * src/Exception.h
  9860. * src/GZipDecoder.cc
  9861. * src/GZipDecoder.h
  9862. * src/HttpHeader.cc
  9863. * src/HttpHeader.h
  9864. * src/HttpRequest.cc
  9865. * src/HttpRequest.h
  9866. * src/HttpResponse.cc
  9867. * src/HttpResponse.h
  9868. * src/HttpResponseCommand.cc
  9869. * src/Makefile.am
  9870. * test/GZipDecoderTest.cc
  9871. * test/HttpRequestTest.cc
  9872. * test/HttpResponseTest.cc
  9873. * test/Makefile.am
  9874. * test/Makefile.in
  9875. * test/gzip_decode_test.gz
  9876. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9877. Clarified usage of -j option.
  9878. * src/usage_text.h
  9879. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. Disabled getting size from the response of RETR.
  9881. If SIZE command failed, then disable resuming and segmented downloading.
  9882. * src/FtpConnection.cc
  9883. * src/FtpConnection.h
  9884. * src/FtpNegotiationCommand.cc
  9885. * src/FtpNegotiationCommand.h
  9886. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9887. Use digits to find first byte of file size, which makes the intention
  9888. of the code clearer.
  9889. * src/FtpConnection.cc
  9890. Don't call validateTotalLength() when size is 0.
  9891. * src/FtpNegotiationCommand.cc
  9892. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9893. Updated po files.
  9894. * po/aria2c.pot
  9895. * po/*.gmo
  9896. * po/*.po
  9897. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9898. Clarified usage text for --split option.
  9899. * src/usage_text.h
  9900. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. Bump up version number to 0.15.0dev. "dev" means "development"
  9902. version, which means I started the development of the next release!
  9903. * src/configure.ac
  9904. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9905. If FTP server returns negative response with REST raw command and
  9906. requested range is not 0, throw exception. If requested range is 0,
  9907. continue download a file from 0 byte.
  9908. * src/FtpNegotiationCommand.cc
  9909. * src/FtpNegotiationCommand.h
  9910. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9911. Supported FTP server which don't recognize SIZE raw command.
  9912. If SIZE raw command is failed, aria2 will try to get file size
  9913. from the response of RETR raw command. If both attempts are failed,
  9914. then resuming and segmented downloading are disabled.
  9915. * src/FtpConnection.cc
  9916. * src/FtpConnection.h
  9917. * src/FtpNegotiationCommand.cc
  9918. * src/FtpNegotiationCommand.h
  9919. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9920. * Release 0.14.0+1
  9921. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9922. Bump up version number to 0.14.0+1
  9923. * src/configure.ac
  9924. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9925. Fixed the code that refers static member variable from non-static
  9926. context.
  9927. * src/DefaultPeerStorage.cc
  9928. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9929. * Release 0.14.0
  9930. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Added build test script
  9932. * build_test.sh
  9933. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9934. Updated ja.po
  9935. * src/ja.po
  9936. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9937. Bump up version number to 0.14.0
  9938. * src/configure.ac
  9939. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9940. Updated ja.po and fr.po. Great thanks for french translators and
  9941. Sebastien WILLEMIJNS.
  9942. * po/fr.po
  9943. * po/ja.po
  9944. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9945. Added configure option to enable/disable epoll support.
  9946. * configure.ac
  9947. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9948. Updated man page.
  9949. * doc/aria2c.1.txt
  9950. * doc/aria2c.1
  9951. * doc/aria2c.1.html
  9952. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9953. Added missing default value '5' to the usage of --split option.
  9954. * src/HelpItemFactory.cc
  9955. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9956. Filled up pieces based on the number of missing blocks, rather than
  9957. simplay the number of piece * block length.
  9958. * src/BtRequestFactory.h
  9959. * src/DefaultBtInteractive.cc
  9960. * src/DefaultBtInteractive.h
  9961. * src/DefaultBtRequestFactory.cc
  9962. * src/DefaultBtRequestFactory.h
  9963. * src/Piece.cc
  9964. * src/Piece.h
  9965. * test/BitfieldManTest.cc
  9966. * test/DefaultBtRequestFactoryTest.cc
  9967. * test/MockBtRequestFactory.h
  9968. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9969. Made _epEvents a member variable.
  9970. * src/DownloadEngine.cc
  9971. * src/DownloadEngine.h
  9972. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9973. Cancel download if http redirect is bounded more than 20 times.
  9974. * src/AbstractCommand.cc
  9975. * src/HttpSkipResponseCommand.cc
  9976. * src/Request.cc
  9977. * src/Request.h
  9978. * test/RequestTest.cc
  9979. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9980. Fixed unhandled exception(removed keyword `new').
  9981. * src/SocketCore.cc (initEPOLL)
  9982. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9983. Removed visit(const MetaEntry*)
  9984. * src/MetaEntryVisitor.h:
  9985. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9986. and made them virtual.
  9987. * src/BencodeVisitor.h
  9988. * src/BencodeVisitor.cc
  9989. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9990. Updated po files.
  9991. * po/aria2c.pot
  9992. * po/*.po
  9993. * po/*.gmo
  9994. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9995. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9996. the number of socket to watch out.
  9997. * src/PeerInteractionCommand.cc
  9998. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9999. When there is not enough space in disk when writing a chunk of data,
  10000. aria2 now prints the message to the console to warn user and aborts
  10001. its download. Not all downloads are canceled because some downloads
  10002. may use another disk or partition. BUG#1640332
  10003. * src/AbstractDiskWriter.cc
  10004. * src/PeerAbstractCommand.cc
  10005. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  10006. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  10007. setHaltRequested(true) to cancel download.
  10008. * src/PeerInteractionCommand.h
  10009. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10010. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  10011. socket from int to sock_t as sockets are unsigned in Windows.
  10012. For AsyncNameResolver, DownloadEngine, I did additional modification
  10013. for the portion of the code changed according to epoll support.
  10014. I defined sock_t in a2netcompat.h to use sock_t without including
  10015. SocketCore.h.
  10016. * src/AsyncNameResolver.cc
  10017. * src/AsyncNameResolver.h
  10018. * src/DownloadEngine.cc
  10019. * src/DownloadEngine.h
  10020. * src/SocketCore.cc
  10021. * src/SocketCore.h
  10022. * src/a2netcompat.h
  10023. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10024. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  10025. changes in the patch were applied.
  10026. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  10027. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  10028. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  10029. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10030. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  10031. a2io.h and common.h were modified.
  10032. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  10033. MinGW.
  10034. * src/common.h: Changed off_t to 64 bit in MinGW.
  10035. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10036. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  10037. only a2netcompat.h is modified.
  10038. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  10039. directives.
  10040. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10041. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  10042. only gai_strerror.h is modified.
  10043. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  10044. winsock errors in MinGW.
  10045. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10046. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  10047. follow sources are applied.
  10048. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  10049. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  10050. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  10051. I included locale.h from Platform.cc.
  10052. * src/main.cc: Moved common setup/teardown code to Platform class.
  10053. * test/AllTest.cc: Use Platform class.
  10054. Set locale to C in AllTest.cc to prevent the messages to be localized.
  10055. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10056. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  10057. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  10058. * test/HttpRequestTest.cc: Casted to off_t where it should.
  10059. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10060. Applied Ross's aria2-0.13.2+1-mingw.patch and
  10061. aria2-0.13.2+1-mingw-2.patch.
  10062. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  10063. systems which don't have termious.h. I moved the directive inside of
  10064. if(isTTY) { ... clause so that line is wiped out without termious.h.
  10065. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  10066. anyway.
  10067. * src/asctime_r.h
  10068. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  10069. I added 2nd argument to the prototype declaration.
  10070. * src/StringFormat.cc: Get rid of vasprintf.
  10071. * src/getaddrinfo.h: Fixed constants.
  10072. * configure.ac: Added the check for asctime_r function.
  10073. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  10074. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10075. Added writable test for Socket when the sending message is in progress.
  10076. Usually the sending message is piece message. Without wriable check,
  10077. upload latency is dropped to more than 1sec.
  10078. * src/PeerInteractionCommand.cc
  10079. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10080. Create only requested files and files which shares a piece with
  10081. requested file in multi-torrent downloads. Directory structures are
  10082. also created in the same rule.
  10083. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  10084. DiskWriterEntry as in the previous implementation.
  10085. * src/MultiDiskWriter.cc
  10086. * src/MultiFileAllocationIterator.cc
  10087. * src/MultiFileAllocationIterator.h
  10088. * test/MultiFileAllocationIteratorTest.cc
  10089. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10090. Commented out -lprofiler
  10091. * src/Makefile.am
  10092. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10093. Bump up version number to 0.14.0b.
  10094. * src/configure.ac
  10095. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10096. Actively establish connection to peers in seeding, when peer cache
  10097. is not full and max upload speed limit is not reached.
  10098. * src/ActivePeerConnectionCommand.cc
  10099. * src/ActivePeerConnectionCommand.h
  10100. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  10102. to make room more fleshy, recently found peers.
  10103. Peer::_badConditionStartTime is not used anymore. Consider to remove
  10104. it.
  10105. * src/DefaultPeerStorage.cc
  10106. * test/DefaultPeerStorageTest.cc
  10107. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10108. Returns cached data only when the previous receiveHandshake() is called
  10109. with peek = true.
  10110. * src/PeerConnection.cc (receiveHandshake)
  10111. * src/PeerConnection.h (receiveHandshake)
  10112. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10113. Changed default value of -s option from 1 to 5.
  10114. Also max value of -s option is changed from 5 to 16.
  10115. * src/HelpItemFactory.cc
  10116. * src/OptionHandlerFactory.cc
  10117. * src/option_processing.cc
  10118. * src/usage_text.h
  10119. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. Changed -s options behavior. Now it means the number of connections
  10121. made simultaneously in each http/ftp download.
  10122. If 1 URL is specified, the behavior is the same with old implementation.
  10123. If -s N is given and more than N URLs are specified, first N URLs are
  10124. used and remaining URLs are used for backup. If less than N URLs are
  10125. specified, some of URLs are used more than once so that totally N
  10126. connections are made simultaneously.
  10127. * src/main.cc
  10128. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10129. Included missing iosfwd or ostream header.
  10130. * src/RequestGroupMan.cc
  10131. * src/TaggedItem.cc
  10132. * src/TaggedItem.h
  10133. * src/Util.cc
  10134. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10135. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  10136. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  10137. * src/HttpConnection.cc: Included missing sstream.
  10138. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. Added --bt-max-open-files option.
  10140. * src/DefaultPieceStorage.cc
  10141. * src/HelpItemFactory.cc
  10142. * src/MultiDiskAdaptor.cc
  10143. * src/MultiDiskAdaptor.h
  10144. * src/OptionHandlerFactory.cc
  10145. * src/option_processing.cc
  10146. * src/prefs.cc
  10147. * src/prefs.h
  10148. * src/usage_text.h
  10149. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10150. Fixed the bug that aria2 aborts when a path to a directory is given
  10151. in command-line.
  10152. * src/ProtocolDetector.cc
  10153. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10154. Limited the number files opened in each BitTorrent download. The default
  10155. value is 100. The option to change this value will be added.
  10156. * src/MultiDiskAdaptor.cc
  10157. * src/MultiDiskAdaptor.h
  10158. * src/MultiFileAllocationIterator.cc
  10159. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10160. Fixed the bug that HTTP downloads don't start with old libraries.
  10161. * src/HttpHeaderProcessor.cc
  10162. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. Use empty() instead of size() > 0.
  10164. * src/HttpConnection.cc
  10165. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10166. Drop connection if the incoming peer ID is the same with localhost's
  10167. one. The previous implementation drops connection when incoming peer's
  10168. IP address is the same with localhost's one.
  10169. * src/PeerListenCommand.cc
  10170. * src/DefaultBtInteractive.cc
  10171. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10172. Returns cached data without checking whether socket is readable
  10173. if the cache is available.
  10174. * src/PeerConnection.cc (receiveHandshake)
  10175. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10176. Included stdint.h
  10177. * src/common.h
  10178. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10179. Removed duplicate HAVE_GETTIMEOFDAY
  10180. * src/Makefile.am
  10181. * src/Makefile.in
  10182. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10183. Use interval as a minInterval when minInterval is not supplied.
  10184. * src/DefaultBtAnnounce.cc
  10185. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10186. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  10187. attempt is failed, then 2nd attempt get kicked out more quickly.
  10188. And it is now static const member of DefaultBtAnnounce.
  10189. * src/DefaultBtAnnounce.h
  10190. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10191. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  10192. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  10193. * src/ActivePeerConnectionCommand.cc
  10194. * src/BtConstants.h
  10195. * src/BtRuntime.h
  10196. * src/DHTGetPeersCommand.cc
  10197. * src/DefaultBtAnnounce.cc
  10198. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  10199. BtRuntime::MAX_PEERS.
  10200. * src/DefaultPeerStorage.h
  10201. * src/InitiatorMSEHandshakeCommand.cc
  10202. * src/PeerInitiateConnectionCommand.cc
  10203. * src/PeerInteractionCommand.cc
  10204. * src/PeerReceiveHandshakeCommand.cc
  10205. * src/TrackerWatcherCommand.cc
  10206. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10207. Always Connect to _numNewConnection
  10208. * src/ActivePeerConnectionCommand.cc
  10209. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10210. Made `begin' unsigned int.
  10211. * src/GrowSegment.h
  10212. * src/Piece.cc
  10213. * src/Piece.h
  10214. * src/PiecedSegment.cc
  10215. * src/PiecedSegment.h
  10216. * src/Segment.h
  10217. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10218. Calculate piece hash when data is arrived if the data is arrived in
  10219. order. This removes additional read operation for hash calculation.
  10220. If the data is arrived in out of order, the hash is calucated when the
  10221. piece is completed. This is the same behavior as the old implementation.
  10222. * src/BtPieceMessage.cc
  10223. * src/DefaultBtProgressInfoFile.cc
  10224. * src/DefaultPieceStorage.cc
  10225. * src/DownloadCommand.cc
  10226. * src/DownloadCommand.h
  10227. * src/DownloadEngine.cc
  10228. * src/GrowSegment.cc
  10229. * src/GrowSegment.h
  10230. * src/Piece.cc
  10231. * src/Piece.h
  10232. * src/PiecedSegment.cc
  10233. * src/PiecedSegment.h
  10234. * src/Segment.h
  10235. * test/PieceTest.cc
  10236. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10237. Try to keep the ordering of outgoing piece message.
  10238. * src/DefaultBtMessageDispatcher.cc
  10239. (DefaultBtMessageDispatcher::sendMessages)
  10240. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10241. Fixed busy loop when error/hup epoll events occur.
  10242. * src/AbstractCommand.cc
  10243. * src/PeerAbstractCommand.cc
  10244. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10245. Added --bt-request-peer-speed-limit option, which was a constant
  10246. SLOW_SPEED_THRESHOLD.
  10247. * src/ActivePeerConnectionCommand.cc
  10248. * src/ActivePeerConnectionCommand.h
  10249. * src/BtConstants.h
  10250. * src/HelpItemFactory.cc
  10251. * src/OptionHandlerFactory.cc
  10252. * src/PeerReceiveHandshakeCommand.cc
  10253. * src/option_processing.cc
  10254. * src/prefs.cc
  10255. * src/prefs.h
  10256. * src/usage_text.h
  10257. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10258. Removed repeated call of getTopDirPath(). Instead, call it once and
  10259. cache the result.
  10260. * src/MultiDiskAdaptor.cc
  10261. * src/MultiDiskAdaptor.h
  10262. (mkdir, openFile, initAndOpenFile, openExistingFile)
  10263. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10264. Fixed compile error on debian etch.
  10265. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  10266. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  10267. it is undefined.
  10268. * src/Util.cc (ULLONG_MAX)
  10269. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10270. Added epoll support. Use epoll if it is available. If not, use select.
  10271. When async dns is enabled in compile time, epoll support is enabled
  10272. only when aria2 is built with c-ares. This condition statement is
  10273. defined in a2io.h.
  10274. Currently aria2 supports both c-ares and ares, but ares is maintained
  10275. for quite a while and debian already has c-ares package, ares support
  10276. will be dropped in the future version.
  10277. * configure.ac
  10278. * src/AbstractCommand.cc
  10279. * src/AsyncNameResolver.cc
  10280. * src/AsyncNameResolver.h
  10281. * src/Command.cc
  10282. * src/Command.h
  10283. * src/DownloadEngine.cc
  10284. * src/DownloadEngine.h
  10285. * src/PeerAbstractCommand.cc
  10286. * src/SocketCore.cc
  10287. * src/SocketCore.h
  10288. * src/a2io.h
  10289. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10290. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  10291. directive.
  10292. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10293. Do not do write operation to /dev/null file.
  10294. * src/LogFactory.cc
  10295. * src/SimpleLogger.cc
  10296. Replaced vasprintf with vsnprintf
  10297. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  10298. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10299. * src/BtRequestMessage.cc
  10300. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  10301. for segmentation fault caused by previous commit.
  10302. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10303. Reduced the usage of gettimeofday().
  10304. * src/DefaultBtMessageDispatcher.cc
  10305. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  10306. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10307. * src/RequestSlot.cc
  10308. * src/RequestSlot.h
  10309. (RequestSlot::isTimeout)
  10310. Made RequestSlot have a reference to Piece object to avoid find
  10311. Piece repeatedly.
  10312. * src/DefaultBtMessageDispatcher.cc
  10313. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10314. * src/RequestSlot.cc
  10315. * src/RequestSlot.h
  10316. (RequestSlot::getPiece)
  10317. * test/DefaultBtMessageDispatcherTest.cc
  10318. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10319. * src/TimeA2.cc
  10320. * src/TimeA2.h
  10321. (Time::difference): New function.
  10322. (Time::elapsed): Done optimization.
  10323. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  10325. directive.
  10326. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10327. * src/option_processing.cc: Added missing `defined' keyword to #if
  10328. directive.
  10329. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10330. Bump up version number to 0.13.2+1
  10331. * src/configure.ac
  10332. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10333. Refactored broken outstanding piece handling.
  10334. * src/DefaultPieceStorage.cc
  10335. * src/DefaultPieceStorage.h
  10336. * src/Piece.cc
  10337. * src/Piece.h
  10338. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10339. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  10340. name collision of static variable and predefined macro.
  10341. * src/BtContext.cc
  10342. * src/BtContext.h
  10343. * src/CookieBoxFactory.cc
  10344. * src/CookieBoxFactory.h
  10345. * src/CookieParser.cc
  10346. * src/CookieParser.h
  10347. * src/DefaultBtContext.cc
  10348. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10349. * src/RequestGroup.cc
  10350. (RequestGroup::createInitialCommand): Use empty() instead of size().
  10351. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10352. * Release 0.13.2
  10353. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10354. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  10355. * po/fr.po
  10356. * po/ja.po
  10357. * po/aria2c.pot
  10358. * po/*.po
  10359. * po/*.gmo
  10360. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10361. Bump up version number to 0.13.2
  10362. * src/configure.ac
  10363. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10364. Refactord.
  10365. * src/RequestGroupMan.cc
  10366. (removeStoppedGroup)
  10367. (fillRequestGroupFromReserver)
  10368. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10369. Fixed compile error on Ubuntu.
  10370. * src/BtPieceMessage.cc
  10371. * src/MessageDigestHelper.cc
  10372. * src/Util.cc
  10373. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10374. Fixed compile error when configured with --disable-bittorrent
  10375. * test/DownloadHandlerFactoryTest.cc
  10376. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10377. Done make update-po
  10378. * po/aria2c.pot
  10379. * po/*.po
  10380. * po/*.gmo
  10381. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10382. Bump up version number to 0.13.2rc.
  10383. * src/configure.ac
  10384. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10385. Made option name bold. Updated SYNOPSIS to make it more readable.
  10386. * doc/aria2c.1.txt
  10387. * doc/aria2c.1
  10388. * doc/aria2c.1.html
  10389. * src/version_usage.cc
  10390. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10391. Refactored. Use std::string instead of size and char*.
  10392. * Data.cc
  10393. * Data.h
  10394. * test/Data.cc
  10395. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10396. Added trimSelf(). Rewritten trim() to use trimSelf().
  10397. * Util.cc
  10398. * Util.h
  10399. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. * src/ChunkChecksum.h (getChecksum): Return const reference.
  10401. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. Fixed compile error when configured with --disable-metalink.
  10403. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  10404. * test/FeatureConfigTest.cc
  10405. * test/DownloadHandlerFactoryTest.cc
  10406. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10407. Fixed compile error when configured with --without-gnutls
  10408. --without-openssl
  10409. * src/main.cc
  10410. * test/DefaultBtProgressInfoFileTest.cc
  10411. * test/SegmentManTest.cc
  10412. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10413. Fixed compile error with OpenSSL.
  10414. * src/IteratableChunkChecksumValidator.cc
  10415. * src/LibsslDHKeyExchange.h
  10416. * src/MessageDigestHelper.cc
  10417. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10418. Revert the default value of --max-concurrent-downloads to 5.
  10419. Revert the default value of --metalink-servers to 5.
  10420. Man pages was also updated.
  10421. * src/option_processing.cc
  10422. * doc/aria2c.1.txt
  10423. * doc/aria2c.1.html
  10424. * doc/aria2c.1
  10425. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10426. Returns const reference:
  10427. DownloadContext::getPieceHash, DownloadContext::getName,
  10428. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  10429. BtContext::getInfoHashAsString,
  10430. * src/BtContext.h
  10431. * src/DefaultBtContext.cc
  10432. * src/DefaultBtContext.h
  10433. * src/DownloadContext.h
  10434. * src/SingleFileDownloadContext.h
  10435. * test/MockBtContext.h
  10436. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10437. * src/RequestGroup.h (getDir): Removed.
  10438. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10439. Returns const reference. The internal urlencode function was optimized
  10440. a little bit.
  10441. * src/Request.cc
  10442. * src/Request.h
  10443. * src/HttpRequest.cc
  10444. * src/HttpRequest.h
  10445. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10446. Defined option name and possible values as std::string to reduce
  10447. temporary string object creation in runtime.
  10448. * src/HelpItemFactory.cc
  10449. * src/LogFactory.cc
  10450. * src/Option.cc
  10451. * src/OptionHandlerFactory.cc
  10452. * src/option_processing.cc
  10453. * src/prefs.cc
  10454. * src/prefs.h
  10455. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10456. Return const reference.
  10457. * src/DownloadHandlerConstants.cc
  10458. * src/DownloadHandlerConstants.h
  10459. (getMetalinkExtensions)
  10460. (getMetalinkContentTypes)
  10461. (getBtExtensions)
  10462. (getBtContentTypes)
  10463. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10464. * src/HttpHeader.cc (get): Rewritten.
  10465. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10466. Make HttpHeader::getFirst(...) return const reference.
  10467. * src/HttpHeader.cc
  10468. * src/HttpHeader.h
  10469. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10470. Use Option::getAsBool(...) instead of Option::get(...) and compare
  10471. it with V_TRUE.
  10472. * src/DefaultPieceStorage.cc
  10473. * src/DownloadCommand.cc
  10474. * src/FtpNegotiationCommand.cc
  10475. * src/HttpRequest.cc
  10476. * src/InitiateConnectionCommand.cc
  10477. * src/RequestGroup.cc
  10478. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10479. Made Option::get(...) return const reference of std::string.
  10480. * src/Option.cc
  10481. * src/Option.h
  10482. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10483. Replaced std:copy with insert.
  10484. * src/DefaultBtMessageDispatcher.cc
  10485. * src/DefaultPieceStorage.cc
  10486. * src/DownloadEngineFactory.cc
  10487. * src/RequestGroup.cc
  10488. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. Included SocketCore.h to fix compiler warning.
  10490. * src/InitiateConnectionCommand.cc
  10491. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10492. Put piece selection strategy algorithm to RarestPieceSelector class,
  10493. Added a switch to choose whether randomized selection so that unit
  10494. tests emit same results in, possibly, win32.
  10495. * src/DefaultPieceStorage.cc
  10496. * src/DefaultPieceStorage.h
  10497. * src/RarestPieceSelector.cc
  10498. * src/RarestPieceSelector.h
  10499. * test/DefaultPieceStorageTest.cc
  10500. * test/RarestPieceSelectorTest.cc
  10501. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10502. Don't pool connection if HTTP proxy is enabled.
  10503. * src/FtpFinishDownloadCommand.cc
  10504. * src/FtpNegotiationCommand.cc
  10505. * src/HttpSkipResponseCommand.cc
  10506. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10507. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  10508. * src/AbstractCommand.cc
  10509. * src/AbstractCommand.h
  10510. * src/ActivePeerConnectionCommand.cc
  10511. * src/FtpInitiateConnectionCommand.cc
  10512. * src/HttpInitiateConnectionCommand.cc
  10513. * src/InitiateConnectionCommandFactory.cc
  10514. * src/PeerAbstractCommand.cc
  10515. * src/PeerAbstractCommand.h
  10516. * src/PeerInitiateConnectionCommand.cc
  10517. * src/TrackerWatcherCommand.cc
  10518. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10519. Sort RequestSlot in ascending order and manipulate them using
  10520. lower_bound.
  10521. * src/DefaultBtMessageDispatcher.cc
  10522. * src/DefaultBtMessageDispatcher.h
  10523. (getMessageQueue): Added const qualifier.
  10524. (getRequestSlots): Added const qualifier.
  10525. (sendMessages): Use empty() instead of size().
  10526. (doCancelSendingPieceAction): Use HandleEvent object.
  10527. (doAbortOutstandingRequestAction): Rewritten.
  10528. (doChokedAction): Rewritten.
  10529. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  10530. (isOutstandingRequest): Rewritten.
  10531. (getOutstandingRequest): Rewritten.
  10532. (removeOutstandingRequest): Rewritten.
  10533. (addOutstandingRequest): Rewritten.
  10534. * src/RequestSlot.cc
  10535. * src/RequestSlot.h
  10536. (operator=): Rewritten.
  10537. (operator!=): New function.
  10538. (operator<): New function.
  10539. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10540. * src/DefaultBtRequestFactory.cc
  10541. (doChokedAction): Rewritten.
  10542. (removeCompletedPiece): Rewritten.
  10543. (removeTargetPiece): Rewritten.
  10544. (createRequestMessages): Added the debug log.
  10545. (createRequestMessagesOnEndGame: Added the debug log.
  10546. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10547. Added the debug log message.
  10548. * src/BtPieceMessage.cc (doReceivedAction)
  10549. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10550. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  10551. used lower_bound to process them rather than linear search.
  10552. * src/DHTPeerAnnounceStorage.cc
  10553. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10554. Call subtractPieceStats from ~PeerInteractionCommand only when the
  10555. peer has at least one completed piece.
  10556. * src/Peer.cc
  10557. * src/Peer.h
  10558. * src/PeerInteractionCommand.cc
  10559. * src/PeerSessionResource.cc
  10560. * src/PeerSessionResource.h
  10561. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10562. Removed unnecessary sorting
  10563. * src/DefaultPieceStorage (DefaultPieceStorage)
  10564. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10565. Rewritten the portion of the code that mangaes allowed fast indexes.
  10566. * src/PeerSessionResource.cc
  10567. * src/PeerSessionResource.h
  10568. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10569. Removed the invalid string including '\r' from ru.po and
  10570. did make update-po.
  10571. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10572. Added --log-level and --summary-interval to man page.
  10573. * doc/aria2c.1.txt
  10574. * doc/aria2c.1.html
  10575. * doc/aria2c.1
  10576. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10577. Added --log-level option to specify log level. Log messages under
  10578. the specified level are not output. Default value is `debug'.
  10579. * src/HelpItemFactory.cc
  10580. * src/LogFactory.cc
  10581. * src/LogFactory.h
  10582. * src/Logger.h
  10583. * src/OptionHandlerFactory.cc
  10584. * src/SimpleLogger.cc
  10585. * src/SimpleLogger.h
  10586. * src/main.cc
  10587. * src/option_processing.cc
  10588. * src/prefs.h
  10589. * src/usage_text.h
  10590. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. Print download progress summary of all parallel downloads in specified
  10592. interval, default 60 secs. While aria2 could download several files
  10593. in parallel (see -j option), it displayed just first download progress,
  10594. and the other downloads are hidden from the users. This new feature
  10595. prints all downloads currently in-progress to the console so that you
  10596. can check the status of all downloads. The interval can be adjusted
  10597. by --summary-interval option.
  10598. The progress readout is now cut so that all fits in the one line of
  10599. console.
  10600. * src/ConsoleStatCalc.cc
  10601. * src/ConsoleStatCalc.h
  10602. * src/HelpItemFactory.cc
  10603. * src/OptionHandlerFactory.cc
  10604. * src/RequestGroupMan.cc
  10605. * src/RequestGroupMan.h
  10606. * src/main.cc
  10607. * src/option_processing.cc
  10608. * src/prefs.h
  10609. * src/usage_text.h
  10610. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10611. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  10612. * src/DownloadEngine.cc (DownloadEngine)
  10613. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10614. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  10615. defined.
  10616. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  10617. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10618. Use erase+lower_bound+insert instead of sort.
  10619. * src/DefaultPieceStorage.cc (addPieceStats)
  10620. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10621. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  10622. * src/A2STR.cc
  10623. * src/A2STR.h
  10624. * src/OptionParser.cc (parse)
  10625. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10626. Defined fake filename `[tracker.announce]' as static const std::string.
  10627. * src/TrackerWatcherCommand.cc (createRequestGroup)
  10628. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10629. Defined default filename `index.html' as static const std::string
  10630. * src/SingleFileDownloadContext.cc
  10631. * src/SingleFileDownloadContext.h
  10632. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10633. Defined "[MEMORY]" as static const std::string.
  10634. * src/MemoryBufferPreDownloadHandler.cc (execute)
  10635. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10636. Defined control file's version number as static const std::string.
  10637. * src/DefaultBtProgressInfoFile.cc
  10638. * src/DefaultBtProgressInfoFile.h
  10639. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10640. Use Request::METHOD_GET
  10641. * src/RequestGroup.cc (createNextCommandWithAdj)
  10642. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10643. Defined "OK", "ERR", "INPR" as static const std::string
  10644. * src/RequestGroupMan.cc (showDownloadResults)
  10645. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10646. Defined default client used in extended handshake as static const
  10647. std::string
  10648. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  10649. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10650. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  10651. * src/HttpConnection.cc (eraseConfidentialInfo)
  10652. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10653. Defined default ftp user and password as static const std::string
  10654. * src/AuthConfigFactory.cc
  10655. * src/AuthConfigFactory.h
  10656. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10657. Defined strings used in netrc as static const std::string
  10658. * src/Netrc.cc
  10659. * src/Netrc.h
  10660. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10661. Defined HTTP status as static const std::string
  10662. * src/AbstractProxyResponseCommand.cc
  10663. * src/HttpHeader.cc
  10664. * src/HttpHeader.h
  10665. * src/HttpResponse.cc
  10666. * src/HttpResponseCommand.cc
  10667. * src/HttpSkipResponseCommand.cc
  10668. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10669. Defined "\r\n", "A", "I" as static const std::string
  10670. * src/A2STR.cc
  10671. * src/A2STR.h
  10672. * src/FtpConnection.cc
  10673. * src/FtpConnection.h
  10674. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10675. Added COLON_C(".") and used it in Request::parseUrl()
  10676. * src/A2STR.cc
  10677. * src/A2STR.h
  10678. * src/Request.cc (parseUrl)
  10679. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10680. Changed the type of padName from `const std::string&' to `const char*'.
  10681. * src/MSEHandshake.cc (verifyPadLength)
  10682. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10683. Defined "sha1" as static const std::string.
  10684. * src/MetalinkParserController.cc
  10685. * src/MetalinkParserController.h
  10686. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10687. Defined message digest algorithm name as static const std::string
  10688. * src/DHTTokenTracker.cc
  10689. * src/DHTUtil.cc
  10690. * src/DefaultBtContext.cc
  10691. * src/MSEHandshake.cc
  10692. * src/MessageDigestHelper.cc
  10693. * src/Peer.cc
  10694. * src/messageDigest.cc
  10695. * src/messageDigest.h
  10696. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10697. Made string literals used in SAX parser static const std::string.
  10698. * src/FileMetalinkParserState.cc
  10699. * src/FileMetalinkParserState.h
  10700. * src/FilesMetalinkParserState.cc
  10701. * src/FilesMetalinkParserState.h
  10702. * src/InitialMetalinkParserState.cc
  10703. * src/InitialMetalinkParserState.h
  10704. * src/MetalinkMetalinkParserState.cc
  10705. * src/MetalinkMetalinkParserState.h
  10706. * src/PiecesMetalinkParserState.cc
  10707. * src/PiecesMetalinkParserState.h
  10708. * src/ResourcesMetalinkParserState.cc
  10709. * src/ResourcesMetalinkParserState.h
  10710. * src/VerificationMetalinkParserState.cc
  10711. * src/VerificationMetalinkParserState.h
  10712. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10713. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  10714. * src/A2STR.cc
  10715. * src/A2STR.h
  10716. * src/File.cc
  10717. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. Defined static const std::string IP("ip"), PORT("port") and use them
  10719. instead of string literals.
  10720. * src/DefaultPeerListProcessor.cc
  10721. * src/DefaultPeerListProcessor.h
  10722. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10723. Made string literals for torrent file processing static const
  10724. std::string.
  10725. * src/BtContext.cc
  10726. * src/BtContext.h
  10727. * src/DefaultBtContext.cc
  10728. * src/DefaultBtContext.h
  10729. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10730. Made string literal for tracker response static const std::string
  10731. * src/BtAnnounce.cc
  10732. * src/BtAnnounce.h
  10733. * src/DefaultBtAnnounce.cc
  10734. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10735. Use DHTMessage::T instead of "t".
  10736. * src/DHTMessageTracker.cc (messageArrived)
  10737. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10738. Made keyName static const. Made trimmed charset static const
  10739. std::string.
  10740. * src/Util.cc (getContentDispositionFilename)
  10741. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10742. Made USER_AGENT const. Made "/" static const std::string.
  10743. * src/A2STR.cc
  10744. * src/A2STR.h
  10745. * src/HttpRequest.cc
  10746. * src/HttpRequest.h
  10747. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10748. Made string listeral to static const std::string:
  10749. "Content-Range", "Content-Length"
  10750. * src/HttpHeader.cc
  10751. * src/HttpHeader.h
  10752. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10753. Made string listeral to static const std::string.
  10754. * src/HttpConnection.cc
  10755. * src/HttpHeader.cc
  10756. * src/HttpHeader.h
  10757. * src/HttpResponse.cc
  10758. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10759. Made string listeral to static const std::string.
  10760. * src/A2STR.cc
  10761. * src/A2STR.h
  10762. * src/SimpleLogger.cc
  10763. * src/SimpleLogger.h
  10764. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10765. Made string literal to static const std::string.
  10766. Rewritten CookieParser::setField.
  10767. * src/A2STR.cc
  10768. * src/A2STR.h
  10769. * src/CookieBoxFactory.cc
  10770. * src/CookieBoxFactory.h
  10771. * src/CookieParser.cc
  10772. * src/CookieParser.h
  10773. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10774. Made string literal to static const std::string
  10775. * src/DHTAbstractMessage.cc
  10776. * src/DHTAnnouncePeerMessage.cc
  10777. * src/DHTAnnouncePeerMessage.h
  10778. * src/DHTAnnouncePeerReplyMessage.cc
  10779. * src/DHTAnnouncePeerReplyMessage.h
  10780. * src/DHTFindNodeMessage.cc
  10781. * src/DHTFindNodeMessage.h
  10782. * src/DHTFindNodeReplyMessage.cc
  10783. * src/DHTFindNodeReplyMessage.h
  10784. * src/DHTGetPeersMessage.cc
  10785. * src/DHTGetPeersMessage.h
  10786. * src/DHTGetPeersReplyMessage.cc
  10787. * src/DHTGetPeersReplyMessage.h
  10788. * src/DHTMessage.cc
  10789. * src/DHTMessage.h
  10790. * src/DHTMessageFactoryImpl.cc
  10791. * src/DHTMessageReceiver.cc
  10792. * src/DHTPingMessage.cc
  10793. * src/DHTPingMessage.h
  10794. * src/DHTPingReplyMessage.cc
  10795. * src/DHTPingReplyMessage.h
  10796. * src/DHTQueryMessage.cc
  10797. * src/DHTQueryMessage.h
  10798. * src/DHTResponseMessage.cc
  10799. * src/DHTResponseMessage.h
  10800. * src/DHTUnknownMessage.cc
  10801. * src/DHTUnknownMessage.h
  10802. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10803. Made string literal to static const std::string
  10804. * src/BtChokeMessage.cc (toString)
  10805. * src/BtHaveAllMessage.cc (toString)
  10806. * src/BtHaveNoneMessage.cc (toString)
  10807. * src/BtInterestedMessage.cc (toString)
  10808. * src/BtNotInterestedMessage.cc (toString)
  10809. * src/BtUnchokeMessage.cc (toString)
  10810. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10811. Replaced "" with static const variable A2STR::NIL.
  10812. Replaced string comparison against "" with std::string::empty().
  10813. Added PROTO_* to Request class and use them as a protocol string
  10814. constant.
  10815. Made "started", "stopped", "completed" static const variable in
  10816. AnnounceList class.
  10817. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10818. Updated translations. Great thanks to translators.
  10819. * po/ca.po
  10820. * po/de.po
  10821. * po/fr.po
  10822. * po/it.po
  10823. * po/ja.po
  10824. * po/ru.po
  10825. * po/zh_CN.po
  10826. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10827. Updated man page; categorized options and fixed typo.
  10828. * doc/aria2c.1.txt
  10829. * doc/aria2c.1.html
  10830. * doc/aria2c.1
  10831. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10832. Removed const ref
  10833. * src/MetalinkEntry.cc (AddProtocolPreference)
  10834. * src/RequestGroup.cc (FindServerHostByHostname)
  10835. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10836. Rewritten Accept-Features handling.
  10837. * src/HttpRequestCommand.cc (createHttpRequest)
  10838. * src/a2functional.h
  10839. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10840. Changed method signature:
  10841. DHTAbstractNodeLookupTask::toEntries
  10842. * src/DHTAbstractNodeLookupTask.cc
  10843. * src/DHTAbstractNodeLookupTask.h
  10844. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10845. Changed method signature:
  10846. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10847. * src/BtContext.h
  10848. * src/DefaultBtContext.cc
  10849. * src/DefaultBtContext.h
  10850. * src/DefaultBtInteractive.cc
  10851. * test/DefaultBtContextTest.cc
  10852. * test/MockBtContext.h
  10853. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10854. Changed method signature:
  10855. MultiFileAllocationIterator::makeDiskWriterEntries
  10856. * src/MultiFileAllocationIterator.cc
  10857. * src/MultiFileAllocationIterator.h
  10858. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10859. Changed method sinature:
  10860. MetalinkEntry::toFileEntry,
  10861. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10862. Metalinker::queryEntry
  10863. * src/Metalink2RequestGroup.cc
  10864. * src/MetalinkEntry.cc
  10865. * src/MetalinkEntry.h
  10866. * src/MetalinkHelper.cc
  10867. * src/MetalinkHelper.h
  10868. * src/Metalinker.cc
  10869. * src/Metalinker.h
  10870. * src/main.cc
  10871. * test/MetalinkHelperTest.cc
  10872. * test/MetalinkerTest.cc
  10873. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10874. Changed method sinature:
  10875. RequestGroup::getURIs
  10876. * src/RequestGroup.cc
  10877. * src/RequestGroup.h
  10878. * test/Metalink2RequestGroupTest.cc
  10879. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10880. Changed method signature:
  10881. PeerListProcessor::extractPeer
  10882. * src/CompactPeerListProcessor.cc
  10883. * src/CompactPeerListProcessor.h
  10884. * src/DefaultBtAnnounce.cc
  10885. * src/DefaultPeerListProcessor.cc
  10886. * src/DefaultPeerListProcessor.h
  10887. * src/DelegatingPeerListProcessor.cc
  10888. * src/DelegatingPeerListProcessor.h
  10889. * src/PeerListProcessor.h
  10890. * src/UTPexExtensionMessage.cc
  10891. * test/DefaultPeerListProcessorTest.cc
  10892. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10893. Changed method signature:
  10894. BtRequestFactory::createRequestMessages,
  10895. BtRequestFactory::createRequestMessagesOnEndGame
  10896. * src/BtRequestFactory.h
  10897. * src/DefaultBtInteractive.cc
  10898. * src/DefaultBtRequestFactory.cc
  10899. * src/DefaultBtRequestFactory.h
  10900. * test/DefaultBtRequestFactoryTest.cc
  10901. * test/MockBtRequestFactory.h
  10902. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10903. Changed method signature:
  10904. PieceStorage::getInFlightPieces
  10905. * src/DefaultBtProgressInfoFile.cc
  10906. * src/DefaultPieceStorage.cc
  10907. * src/DefaultPieceStorage.h
  10908. * src/PieceStorage.h
  10909. * src/UnknownLengthPieceStorage.cc
  10910. * src/UnknownLengthPieceStorage.h
  10911. * test/DefaultBtProgressInfoFileTest.cc
  10912. * test/MockPieceStorage.h
  10913. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10914. Changed method signature:
  10915. PostDownloadHandler::getNextRequestGroups
  10916. Metalink2RequestGroup::generate
  10917. RequestGroup::postDownloadProcessing
  10918. * src/BtPostDownloadHandler.cc
  10919. * src/BtPostDownloadHandler.h
  10920. * src/Metalink2RequestGroup.cc
  10921. * src/Metalink2RequestGroup.h
  10922. * src/MetalinkPostDownloadHandler.cc
  10923. * src/MetalinkPostDownloadHandler.h
  10924. * src/PostDownloadHandler.h
  10925. * src/RequestGroup.cc
  10926. * src/RequestGroup.h
  10927. * src/RequestGroupMan.cc
  10928. * src/main.cc
  10929. * test/BtPostDownloadHandlerTest.cc
  10930. * test/Metalink2RequestGroupTest.cc
  10931. * test/MetalinkPostDownloadHandlerTest.cc
  10932. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10933. Rewritten AccRequestGroup
  10934. * src/main.cc
  10935. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10936. Rewritten.
  10937. * src/TaggedItem.cc (toTagString)
  10938. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10939. Rewritten Accept-Features handling.
  10940. * src/HttpRequestCommand.cc (createHttpRequest)
  10941. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10942. Rewritten accept types handling.
  10943. * HttpRequest.cc (createRequest)
  10944. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10945. Rewritten
  10946. * src/FeatureConfig.cc (featureSummary)
  10947. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10948. Changed method signature:
  10949. PeerStorage::getActivePeers
  10950. * src/DHTPeerAnnounceEntry.cc
  10951. * src/DefaultPeerStorage.cc
  10952. * src/DefaultPeerStorage.h
  10953. * src/PeerStorage.h
  10954. * test/DefaultPeerStorageTest.cc
  10955. * test/MockPeerStorage.h
  10956. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10957. Changed method signature:
  10958. DHTPeerAnnounceStorage::getPeers,
  10959. DHTPeerAnnounceEntry::getPeers
  10960. * src/DHTGetPeersMessage.cc
  10961. * src/DHTPeerAnnounceEntry.cc
  10962. * src/DHTPeerAnnounceEntry.h
  10963. * src/DHTPeerAnnounceStorage.cc
  10964. * src/DHTPeerAnnounceStorage.h
  10965. * test/DHTAnnouncePeerMessageTest.cc
  10966. * test/DHTPeerAnnounceEntryTest.cc
  10967. * test/DHTPeerAnnounceStorageTest.cc
  10968. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10969. Changed method signature:
  10970. NameResolver::resolve
  10971. * src/DHTEntryPointNameResolveCommand.cc
  10972. * src/InitiateConnectionCommand.cc
  10973. * src/NameResolver.cc
  10974. * src/NameResolver.h
  10975. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10976. Changed method signature:
  10977. PieceStorage::getAdvertisedPieceIndexes
  10978. * src/DefaultBtInteractive.cc
  10979. * src/DefaultPieceStorage.cc
  10980. * src/DefaultPieceStorage.h
  10981. * src/PieceStorage.h
  10982. * src/UnknownLengthPieceStorage.h
  10983. * test/MockPieceStorage.h
  10984. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10985. Changed method signature:
  10986. SegmentMan::getInFlightSegment
  10987. * src/AbstractCommand.cc
  10988. * src/SegmentMan.cc
  10989. * src/SegmentMan.h
  10990. * test/SegmentManTest.cc
  10991. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10992. Changed method signature:
  10993. DHTAbstractNodeLookupTask::getNodesFromMessage
  10994. * src/DHTAbstractNodeLookupTask.cc
  10995. * src/DHTAbstractNodeLookupTask.h
  10996. * src/DHTNodeLookupTask.cc
  10997. * src/DHTNodeLookupTask.h
  10998. * src/DHTPeerLookupTask.cc
  10999. * src/DHTPeerLookupTask.h
  11000. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11001. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  11002. * src/AbstractCommand.cc
  11003. * src/BtCheckIntegrityEntry.cc
  11004. * src/BtCheckIntegrityEntry.h
  11005. * src/BtFileAllocationEntry.cc
  11006. * src/BtFileAllocationEntry.h
  11007. * src/BtSetup.cc
  11008. * src/BtSetup.h
  11009. * src/CheckIntegrityCommand.cc
  11010. * src/CheckIntegrityEntry.h
  11011. * src/ChecksumCheckIntegrityEntry.cc
  11012. * src/ChecksumCheckIntegrityEntry.h
  11013. * src/DHTSetup.cc
  11014. * src/DHTSetup.h
  11015. * src/DownloadEngine.cc
  11016. * src/FileAllocationCommand.cc
  11017. * src/FileAllocationEntry.h
  11018. * src/RequestGroup.cc
  11019. * src/RequestGroup.h
  11020. * src/RequestGroupMan.cc
  11021. * src/RequestGroupMan.h
  11022. * src/StreamCheckIntegrityEntry.cc
  11023. * src/StreamCheckIntegrityEntry.h
  11024. * src/StreamFileAllocationEntry.cc
  11025. * src/StreamFileAllocationEntry.h
  11026. * src/TrackerWatcherCommand.cc
  11027. * src/a2functional.h
  11028. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11029. Changed method signature:
  11030. BNode::findClosestKNodes, BNode:: enumerateBucket,
  11031. DHTBucket::getGoodNodes,
  11032. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  11033. * src/BNode.cc
  11034. * src/BNode.h
  11035. * src/DHTAbstractNodeLookupTask.cc
  11036. * src/DHTAutoSaveCommand.cc
  11037. * src/DHTBucket.cc
  11038. * src/DHTBucket.h
  11039. * src/DHTBucketRefreshTask.cc
  11040. * src/DHTFindNodeMessage.cc
  11041. * src/DHTGetPeersMessage.cc
  11042. * src/DHTRoutingTable.cc
  11043. * src/DHTRoutingTable.h
  11044. * test/BNodeTest.cc
  11045. * test/DHTBucketTest.cc
  11046. * test/DHTRoutingTableTest.cc
  11047. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11048. In piece selection functions, Pass std::deque<...> by reference rather
  11049. than returning it.
  11050. * src/BitfieldMan.cc
  11051. * src/BitfieldMan.h
  11052. * src/DefaultBtRequestFactory.cc
  11053. * src/DefaultPieceStorage.cc
  11054. * src/Piece.cc
  11055. * src/Piece.h
  11056. * test/BitfieldManTest.cc
  11057. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11058. Implemented rarest piece first piece selection strategy.
  11059. * src/AbstractBtMessage.cc
  11060. * src/AbstractBtMessage.h
  11061. * src/BitfieldMan.cc
  11062. * src/BitfieldMan.h
  11063. * src/BtBitfieldMessage.cc
  11064. * src/BtHaveAllMessage.cc
  11065. * src/BtHaveMessage.cc
  11066. * src/DefaultPieceStorage.cc
  11067. * src/DefaultPieceStorage.h
  11068. * src/PeerInteractionCommand.cc
  11069. * src/PieceStorage.h
  11070. * src/UnknownLengthPieceStorage.h
  11071. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11072. Rewritten readData and writeData.
  11073. * src/MultiDiskAdaptor.cc
  11074. * src/MultiDiskAdaptor.h
  11075. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11076. Move \n out of the message "Usage: ...".
  11077. * src/version_usage.cc
  11078. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11079. Bump up version number to 0.13.2b.
  11080. * configure.ac
  11081. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11082. Added const qualifier to argument Exception& e.
  11083. * src/Logger.h
  11084. * src/SimpleLogger.cc
  11085. * src/SimpleLogger.h
  11086. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11087. Pool connection when CWD, SIZE command fails.
  11088. * src/FtpNegotiationCommand.cc
  11089. * src/FtpNegotiationCommand.h
  11090. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11091. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  11092. * src/HttpResponseCommand.cc
  11093. * src/HttpSkipResponseCommand.cc
  11094. * src/HttpSkipResponseCommand.h
  11095. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11096. Pool connection when a server returns 4xx, 5xx responses.
  11097. * src/HttpNullDownloadCommand.cc
  11098. * src/HttpNullDownloadCommand.h
  11099. * src/HttpResponse.cc
  11100. * src/HttpResponse.h
  11101. * src/HttpResponseCommand.cc
  11102. * src/HttpResponseCommand.h
  11103. * test/HttpResponseTest.cc
  11104. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11105. Print usage when no URL is specifed or bad command-line option is
  11106. specified.
  11107. * src/HelpItemFactory.cc
  11108. * src/help_tags.h
  11109. * src/option_processing.cc
  11110. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11111. Removed duplicate log message.
  11112. * src/AbstractCommand.cc (asyncResolveHostname)
  11113. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11114. Updated man page: --async-dns and --ftp-reuse-connection were added.
  11115. Changed -j option's default value from 5 to 1.
  11116. Added new examples using protocol auto detection feature.
  11117. Removed -T, -M usage where it can be omitted.
  11118. * doc/aria2c.1.txt
  11119. * doc/aria2c.1.html
  11120. * doc/aria2c.1.txt
  11121. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11122. Updated command-line usage text, so that it tells users that they
  11123. can specify any number of torrent files and metalink files in
  11124. command-line.
  11125. * src/version_usage.cc
  11126. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11127. Changed the default value of -j option to 1.
  11128. * src/HelpItemFactory.cc
  11129. * src/option_processing.cc
  11130. * src/usage_text.h
  11131. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11132. Added the ability to reuse connection in FTP and it is enabled by
  11133. default. It can be disabled by --ftp-reuse-connection=false option.
  11134. * src/Command.cc
  11135. * src/DownloadCommand.cc
  11136. * src/FtpDownloadCommand.cc
  11137. * src/FtpDownloadCommand.h
  11138. * src/FtpFinishDownloadCommand.cc
  11139. * src/FtpFinishDownloadCommand.h
  11140. * src/FtpInitiateConnectionCommand.cc
  11141. * src/FtpNegotiationCommand.cc
  11142. * src/FtpNegotiationCommand.h
  11143. * src/HelpItemFactory.cc
  11144. * src/Makefile.am
  11145. * src/Makefile.in
  11146. * src/OptionHandlerFactory.cc
  11147. * src/option_processing.cc
  11148. * src/prefs.h
  11149. * src/usage_text.h
  11150. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11151. Call Command::transitStatus() before calling Command::execute(),
  11152. so that the status change made in execute() is not cleared.
  11153. * src/DownloadEngine.cc
  11154. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11155. Removed forward declaration of SocketCore class.
  11156. * src/HttpDownloadCommand.h
  11157. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11158. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  11159. in InitiateConnectionCommandFactory. They should be set only when
  11160. the protocol is HTTP or HTTPS.
  11161. * src/InitiateConnectionCommandFactory.cc
  11162. * src/RequestGroup.cc
  11163. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11164. Fixed infinite loop in checksum checking.
  11165. * src/IteratableChecksumValidator.cc
  11166. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11167. Set _supportsPersistentConnection to true by default.
  11168. * src/Request.cc
  11169. * src/RequestGroup.cc
  11170. * test/HttpRequestTest.cc
  11171. * test/RequestTest.cc
  11172. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Added timeout to socket pool. The default timeout is 15 seconds,
  11174. which is the same value Apache uses.
  11175. * src/DownloadEngine.cc
  11176. * src/DownloadEngine.h
  11177. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11178. Fixed misuse of multimap::find()
  11179. * src/HttpHeader.cc
  11180. * test/HttpHeaderTest.cc
  11181. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11182. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  11183. option.
  11184. The asynchronous DNS is not capable of IPv6 yet.
  11185. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  11186. least for HTTP download.
  11187. * src/AbstractCommand.cc
  11188. * src/AbstractCommand.h
  11189. * src/AsyncNameResolver.cc
  11190. * src/AsyncNameResolver.h
  11191. * src/DHTEntryPointNameResolveCommand.cc
  11192. * src/DHTEntryPointNameResolveCommand.h
  11193. * src/DownloadEngine.cc
  11194. * src/DownloadEngine.h
  11195. * src/FtpInitiateConnectionCommand.cc
  11196. * src/FtpInitiateConnectionCommand.h
  11197. * src/HelpItemFactory.cc
  11198. * src/HttpInitiateConnectionCommand.cc
  11199. * src/HttpInitiateConnectionCommand.h
  11200. * src/InitiateConnectionCommand.cc
  11201. * src/InitiateConnectionCommand.h
  11202. * src/Makefile.am
  11203. * src/Makefile.in
  11204. * src/NameResolver.cc
  11205. * src/NameResolver.h
  11206. * src/OptionHandlerFactory.cc
  11207. * src/SocketCore.cc
  11208. * src/SocketCore.h
  11209. * src/Util.cc
  11210. * src/Util.h
  11211. * src/option_processing.cc
  11212. * src/prefs.h
  11213. * src/usage_text.h
  11214. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11215. Updated man page: --quiet, --header were added.
  11216. --metalink-servers and --enable-http-keep-alive option were updated.
  11217. * doc/aria2c.1
  11218. * doc/aria2c.1.html
  11219. * doc/aria2c.1.txt
  11220. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11221. Enable HTTP keep-alive by default.
  11222. * src/HelpItemFactory.cc
  11223. * src/option_processing.cc
  11224. * src/usage_text.h
  11225. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11226. Disable http keep-alive if the remote server is not HTTP/1.1.
  11227. * src/HttpConnection.cc
  11228. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11229. Receive content body of 302 response so that the connection can be
  11230. reused later when http keep-alive is enabled.
  11231. * src/HttpNullDownloadCommand.cc
  11232. * src/HttpNullDownloadCommand.h
  11233. * src/HttpResponseCommand.cc
  11234. * src/HttpResponseCommand.h
  11235. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11236. const SharedHandle<Request> -> const SharedHandle<Request>&
  11237. * src/FtpDowndloadCommand.cc
  11238. * src/FtpDowndloadCommand.h
  11239. * src/HttpDownloadCommand.cc
  11240. * src/HttpDownloadCommand.h
  11241. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11242. Fixed the bug that the control file(.aria2 file) is not renamed
  11243. according to tryAutoFileRenaming().
  11244. tryAutoFileRenaming() was rewritten so that if both renamed file and
  11245. its control file exist, use them and continue download.
  11246. The old implementation didn't take into account of control file's
  11247. existence, so basically you couldn't continue download of renamed file.
  11248. * src/BtProgressInfoFile.h
  11249. * src/DefaultBtProgressInfoFile.cc
  11250. * src/DefaultBtProgressInfoFile.h
  11251. * src/NullProgressInfoFile.h
  11252. * src/RequestGroup.cc
  11253. * test/DefaultBtProgressInfoFileTest.cc
  11254. * test/MockBtProgressInfoFile.h
  11255. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11256. Change the default value of --metalink-servers option from `5' to `1'.
  11257. * src/HelpItemFactory.cc
  11258. * src/option_processing.cc
  11259. * src/usage_text.h
  11260. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11261. Reimplemented transparent metalink using Accept request header.
  11262. * src/HttpRequest.cc
  11263. * src/HttpRequest.h
  11264. * src/HttpRequestCommand.cc
  11265. * src/Metalink2RequestGroup.cc
  11266. * src/RequestGroup.cc
  11267. * src/RequestGroup.h
  11268. * test/HttpRequestTest.cc
  11269. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11270. Bump up version number to 0.13.2a
  11271. * configure.ac
  11272. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11273. Updated configure.ac using the result of autoscan.
  11274. * configure.ac
  11275. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11276. Fixed compilation error without gcrypt/openssl.
  11277. * src/DownloadCommand.cc
  11278. * src/DownloadCommand.h
  11279. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11280. Reorganized version information so that it can be displayed in a
  11281. standard terminal screen without scrolling.
  11282. Removed http, ftp from Configuration section, because they are always
  11283. enabled.
  11284. * src/FeatureConfig.cc
  11285. * src/FeatureConfig.h
  11286. * src/main.cc
  11287. * src/messageDigest.cc
  11288. * src/messageDigest.h
  11289. * src/version_usage.cc
  11290. * test/FeatureConfigTest.cc
  11291. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11292. Masked user ID in log.
  11293. * src/FtpConnection.cc (sendUser)
  11294. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11295. Removed query part from filename in HTTP download. The query part means
  11296. the substring after "?" in URL. Firefox seems do the same thing.
  11297. A query part is sometimes very long and not suitable to filename,
  11298. so I think it is better to remove it from filename.
  11299. * src/HttpRequest.cc
  11300. * src/HttpRequest.h
  11301. * src/Request.cc
  11302. * src/Request.h
  11303. * test/HttpRequestTest.cc
  11304. * test/RequestTest.cc
  11305. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11306. Rewritten Exception class. Throw exception object, not its pointer and
  11307. catch by reference, so that remove problematic delete operator for
  11308. catched exception.
  11309. * src/Exception.cc
  11310. * src/Exception.h
  11311. * test/ExceptionTest.cc
  11312. * src/*: All files throwing/catching exception.
  11313. * test/*: All files throwing/catching exception.
  11314. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11315. Now auto protocol detection is enabled without -Z option.
  11316. But there is a important difference between with/without -Z optoin.
  11317. For example, if you type:
  11318. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  11319. then, aria2 interprets there are 3 request groups:
  11320. (1) http://host/file, http://mirror/file <-- multi-source download
  11321. (2) file1.torrent
  11322. (3) file2.metalink
  11323. On the other hand, if you invoke above command with -Z option, it is
  11324. interpreted as 4 request groups:
  11325. (1) http://host/file
  11326. (2) file1.torrent
  11327. (3) file2.metalink
  11328. (4) http://mirror/file
  11329. I think usually user don't mix multi-source URLs and torrent files, so
  11330. there is no big problem here.
  11331. * src/main.cc
  11332. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11333. Fixed the bug that causes segmentaion fault when reading XML containing
  11334. unescapsed character like '&'.
  11335. Also a modification was made which avoids adding unnecessary
  11336. characters stack and appending unused string.
  11337. * src/ExpatMetalinkProcessor.cc
  11338. * src/FileMetalinkParserState.h
  11339. * src/FilesMetalinkParserState.h
  11340. * src/FinMetalinkParserState.h
  11341. * src/HashMetalinkParserState.h
  11342. * src/InitialMetalinkParserState.h
  11343. * src/LanguageMetalinkParserState.h
  11344. * src/MetalinkMetalinkParserState.h
  11345. * src/MetalinkParserState.h
  11346. * src/MetalinkParserStateMachine.cc
  11347. * src/MetalinkParserStateMachine.h
  11348. * src/OSMetalinkParserState.h
  11349. * src/PieceHashMetalinkParserState.h
  11350. * src/PiecesMetalinkParserState.h
  11351. * src/ResourcesMetalinkParserState.h
  11352. * src/SizeMetalinkParserState.h
  11353. * src/SkipTagMetalinkParserState.h
  11354. * src/URLMetalinkParserState.h
  11355. * src/VerificationMetalinkParserState.h
  11356. * src/VersionMetalinkParserState.h
  11357. * src/XML2SAXMetalinkProcessor.cc
  11358. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11359. Added StringFormat class, which internally calls vasprintf.
  11360. operator<< is defined for this class, so it can be used with iostream
  11361. classes nicely. SimpleLogger and following functions are rewritten
  11362. using StringFormat class.
  11363. Besides, now Logger class's methods are non-const, many classes
  11364. that has a const Logger* as a member variable are modified to remove
  11365. const qualifier from the variable declaration.
  11366. * src/HelpItemFactory.cc
  11367. * src/Request.cc
  11368. * src/SimpleLogger.cc
  11369. * src/StringFormat.cc
  11370. * src/StringFormat.h
  11371. * src/Util.cc
  11372. * src/option_processing.cc
  11373. * src/version_usage.cc
  11374. * test/StringFormatTest.cc
  11375. * src/*.h: The classes that has const Logger* as a member variable.
  11376. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11377. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  11378. failed. Also fixed memory link when exception is thrown there.
  11379. * src/main.cc (AccRequestGroup)
  11380. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11381. Added build-in "Accept-Features" support. For now only "metalink" is
  11382. used in this header field.
  11383. This "metalink" value is removed from the list when connecting URLs
  11384. fed by metalink file to avoid loop in "transparent" metlaink.
  11385. * src/HttpRequest.cc
  11386. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  11387. header is also held in this variable. Also renamed setUserHeaders as
  11388. addHeader and it was rewritten to add header not just to clear the old
  11389. value.
  11390. * src/HttpRequestCommand.cc
  11391. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  11392. from "Accept-Features" list.
  11393. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  11394. default.
  11395. * src/RequestGroup.h
  11396. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  11397. * src/a2functional.h: Included <string> because Concat class depends on
  11398. it.
  11399. * test/HttpRequestTest.cc
  11400. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11401. Added comment
  11402. * src/RequestGroup.cc (createNextCommand)
  11403. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11404. Capitalized METHOD_GET and METHOD_HEAD
  11405. * src/Request.cc
  11406. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11407. Added getDownloadResults() method
  11408. * src/RequestGroupMan.cc
  11409. * src/RequestGroupMan.h
  11410. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11411. Fixed the bug that aria2 exits when commands is empty() but
  11412. _routineCommands are not.
  11413. * src/DownloadEngine.cc
  11414. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11415. Use the default value pulled from Option object in HelpItemFactory.
  11416. except options whose defualt value is embedded in a usage text.
  11417. * src/HelpItemFactory.cc
  11418. * src/HelpItemFactory.h
  11419. * src/option_processing.cc
  11420. * src/version_usage.cc
  11421. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11422. Added --quiet option to make aria2 quiet (no console output).
  11423. --quiet option is tagged with ADVANCED.
  11424. * src/HelpItemFactory.cc
  11425. * src/LogFactory.cc
  11426. * src/LogFactory.h
  11427. * src/MultiUrlRequestInfo.cc
  11428. * src/MultiUrlRequestInfo.h
  11429. * src/NullStatCalc.h: New class. This class prints nothing.
  11430. * src/OptionHandlerFactory.cc
  11431. * src/main.cc
  11432. * src/option_processing.cc
  11433. * src/prefs.h
  11434. * src/usage_text.h
  11435. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11436. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  11437. * src/HelpItemFactory.cc (createHelpItems):
  11438. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11439. Fixed compilation error in ExpatMetalinkProcessor.cc
  11440. * src/ExpatMetalinkProcessor.cc
  11441. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11442. Reuse socket if the origin server supports HTTP keep-alive and
  11443. --enable-http-keep-alive or --enable-http-pipelining is given.
  11444. The current implementation doesn't reuse the connections established
  11445. against proxy server.
  11446. * src/AbstractCommand.cc
  11447. * src/DownloadEngine.cc
  11448. * src/DownloadEngine.h
  11449. * src/HttpDownloadCommand.cc
  11450. * src/HttpInitiateConnectionCommand.cc
  11451. * src/HttpResponseCommand.cc
  11452. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11453. Rewritten HTTP keep-alive and pipelining routine.
  11454. * src/AbstractCommand.cc
  11455. * src/HttpConnection.cc
  11456. * src/HttpDownloadCommand.cc
  11457. * src/HttpRequest.cc
  11458. * src/HttpRequestCommand.cc
  11459. * src/HttpResponseCommand.cc
  11460. * src/Request.cc
  11461. * src/Request.h
  11462. * src/RequestGroup.cc
  11463. * test/HttpRequestTest.cc
  11464. * test/HttpResponseTest.cc
  11465. * test/RequestTest.cc
  11466. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11467. Added missing setUserHeaders call
  11468. * src/HttpRequestCommand.cc
  11469. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11470. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  11471. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  11472. waste of time because it is more likey false.
  11473. * src/FileAllocationDispatcherCommand.cc (execute)
  11474. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11475. Now HTTP status and version are a member variable of HttpHeader.
  11476. HTTP status is processed as a string, not integer.
  11477. * src/AbstractProxyResponseCommand.cc
  11478. * src/HttpConnection.cc
  11479. * src/HttpHeader.cc
  11480. * src/HttpHeader.h
  11481. * src/HttpHeaderProcessor.cc
  11482. * src/HttpHeaderProcessor.h
  11483. * src/HttpResponse.cc
  11484. * src/HttpResponse.h
  11485. * test/HttpHeaderProcessorTest.cc
  11486. * test/HttpResponseTest.cc
  11487. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11488. Added --header option. You can specify any number of additional HTTP headers
  11489. like:
  11490. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  11491. Unlike other commad-line option, you can use --header option multiple times.
  11492. * src/HelpItemFactory.cc
  11493. * src/HttpRequest.{cc, h}
  11494. * src/HttpRequestCommand.cc
  11495. * src/OptionHandlerFactory.cc
  11496. * src/OptionHandlerImpl.h
  11497. * src/option_processing.cc
  11498. * src/prefs.h
  11499. * src/usage_text.h
  11500. * test/HttpRequestTest.cc (testUserHeaders)
  11501. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11502. Eliminates the time lag between sequential downloads and commands in
  11503. the same RequestGroup.
  11504. In old implementation, aria2 occasionally waits 1 seconds before
  11505. executing next command or RequestGroup.
  11506. This is really a waste of time, and new implementation eliminates
  11507. this unnecessary time lag.
  11508. * src/AbstractCommand.cc
  11509. * src/AutoSaveCommand.cc
  11510. * src/CheckIntegrityCommand.cc
  11511. * src/Command.{cc, h}
  11512. * src/DownloadEngine.{cc, h}
  11513. * src/DownloadEngineFactory.cc
  11514. * src/FileAllocationCommand.cc
  11515. * src/FileAllocationDispatcherCommand.cc
  11516. * src/FillRequestGroupCommand.cc
  11517. * src/FtpInitiateConnectionCommand.cc
  11518. * src/HaveEraseCommand.cc
  11519. * src/HttpInitiateConnectionCommand.cc
  11520. * src/HttpResponseCommand.cc
  11521. * src/RealtimeCommand.cc
  11522. * src/RequestGroup.cc
  11523. * src/RequestGroupMan.cc
  11524. * src/StreamFileAllocationEntry.cc
  11525. * src/TimeBasedCommand.{cc, h}
  11526. * src/TimedHaltCommand.cc
  11527. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11528. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  11529. keyword explicit and SharedHandle's default constructor initializes
  11530. its internal obj to null, old implementation initializes it using
  11531. obj's default constructor.
  11532. To assign null, write SharedHandle<T> x(...); x.reset();
  11533. TODO: test/SharedHandleTest.cc needs more tests.
  11534. * src/SharedHandle.h
  11535. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11536. Fixed type in man page.
  11537. * doc/aria2c.1.txt
  11538. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11539. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  11540. * src/SimpleLogger.{cc, h}
  11541. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11542. Implemented auto protocol detection.
  11543. Now you can do:
  11544. aria2c -Z http://host/file file1.torrent file2.metalink
  11545. (Note: -Z option is required for auto protcol detection.)
  11546. Then aria2c downloads 3 files simultaneously:
  11547. 1. http://host/file
  11548. 2. file1.torrent <-- read local torrent file
  11549. 3. file2.metalink <-- read local Metalink file.
  11550. Same thing goes with -i option. Assume your uris.txt contans:
  11551. http://host/file
  11552. file1.torrent
  11553. file2.metalink
  11554. Then you can do: aria2c -i uris.txt
  11555. (Note: -Z option is not needed if -i option is given.)
  11556. * src/main.cc
  11557. * src/ProtocolDetector.{cc, h}
  11558. * test/ProtocolDetectorTest.cc
  11559. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11560. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  11561. installed
  11562. * src/ARC4Encryptor.h
  11563. * src/ARC4Decryptor.h
  11564. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11565. Renamed argument from 'errno' to 'err', since errno is confused with
  11566. errno defined in errno.h.
  11567. * src/LibgcryptARC4Decryptor.h
  11568. * src/LibgcryptARC4Context.h
  11569. * src/LibgcryptDHKeyExchange.h
  11570. * src/LibgcryptARC4Encryptor.h
  11571. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11572. Rewritten choking algorithm.
  11573. * src/PeerChokeCommand.{cc, h}
  11574. * src/BtInterestedMessage.cc
  11575. * src/PeerSessionResource.{cc, h}
  11576. * src/DefaultPeerStorage.{cc, h}
  11577. * src/BtNotInterestedMessage.cc
  11578. * src/DefaultBtMessageDispatcher.{cc, h}
  11579. * src/BtMessageDispatcher.h
  11580. * src/Peer.{cc, h}
  11581. * src/BtLeecherStateChoke.{cc, h}
  11582. * src/BtSetup.cc
  11583. * src/BtSeederStateChoke.{cc, h}
  11584. * src/PeerStorage.h
  11585. * test/MockPeerStorage.h
  11586. * test/MockBtMessageDispatcher.h
  11587. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11588. Fixed compilation error on x84-64 platform.
  11589. * src/AuthConfig.cc: Included ostream.
  11590. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11591. Rewritten getBasename() and getDirname(), without standard library
  11592. basename(), dirname().
  11593. * src/File.cc
  11594. * test/FileTest.cc
  11595. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11596. Added Simplified Chinese translation. Also updated the following
  11597. translations: Polish, Dutch, German. Great thanks to all translators.
  11598. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11599. Suppress content-range error when 'Content-Range' response header
  11600. doesn't contains bytes-unit specifier 'bytes'
  11601. * src/HttpHeader.cc (getRange)
  11602. * test/HttpHeaderTest.cc
  11603. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11604. Fixed compilation error with g++-4.3
  11605. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11606. Added missing include files for MinGW
  11607. * test/HttpHeaderProcessorTest.cc
  11608. * test/DHTRoutingTableSerializerTest.cc
  11609. * test/DHTRoutingTableDeserializerTest.cc
  11610. * test/UriListParserTest.cc
  11611. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11612. Now download line is printed nicely with no garbage at the end of
  11613. line. I use ioctl to get the columns of terminal.
  11614. If stdout is redirected to another device, instead of carriage return,
  11615. end of line '\n' character is used. This is feature request#1909659
  11616. * src/ConsoleStatCalc.cc (calculateStat)
  11617. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11618. Included a2time.h
  11619. * src/DHTMessageDispatcher.h
  11620. * src/DHTMessageEntry.h
  11621. * src/DHTReplaceNodeTask.h
  11622. * src/DHTMessageTracker.h
  11623. * src/Util.h
  11624. * src/CookieBox.h
  11625. * src/SocketCore.h
  11626. * src/DefaultBtMessageDispatcher.h
  11627. * src/SocketCore.cc
  11628. * src/Util.cc
  11629. * src/DHTPingTask.h
  11630. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11631. Fixed high memory footprint when DHT is enabled.
  11632. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  11633. queued than it is processed and the queue is getting longer. As a
  11634. consequence, momory usage is increased.
  11635. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  11636. replacement cache in DHTBucket which is described in Kademlia paper.
  11637. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  11638. DHTReplaceNodeTask.
  11639. * src/DHTBucket.{h, cc}
  11640. (cacheNode): New function.
  11641. (getCachedNodes): New function.
  11642. (dropNode): Push back cached node to _nodes.
  11643. * test/DHTBucketTest.cc
  11644. (testCacheNode): New test
  11645. (testDropNode): New test
  11646. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11647. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  11648. the unused 4KB memory when ssl is not used.
  11649. * src/SocketCore.cc
  11650. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11651. Added summary log for peer announce storage.
  11652. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  11653. Removed cast
  11654. * src/DefaultPeerStorage.cc (addPeer)
  11655. Log exception message
  11656. * src/DHTMessageTracker.cc (handleTimeout)
  11657. Fixed casting
  11658. * test/HttpRequestTest.cc
  11659. * test/MetalinkProcessorTest.cc
  11660. * test/PieceTest.cc
  11661. * test/MetalinkEntryTest.cc
  11662. * test/SequenceTest.cc
  11663. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11664. * src/ParameterizedStringParser.cc (createLoop):
  11665. Removed unused variable sstep.
  11666. * src/AlphaNumberDecorator.h (decode): Rewritten.
  11667. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11668. * src/Util.{h, cc}
  11669. (parseUInt): New function.
  11670. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  11671. The actual range is uint32_t.
  11672. * test/UtilTest.cc
  11673. * src/ParameterizedStringParser.cc:
  11674. Use Util::parseUInt() for loop variables.
  11675. * test/ParameterizedStringParserTest.cc
  11676. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  11677. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11678. Rewritten the functions for binding port.
  11679. * src/DHTConnectionImpl.{h, cc}
  11680. * src/PeerListenCommand.{h, cc}
  11681. * src/DHTSetup.cc
  11682. * src/BtSetup.cc
  11683. * test/DHTConnectionImplTest.cc
  11684. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11685. type cleanup for allmost all remaining files.
  11686. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11687. Type clarification
  11688. * src/PeerSessionResource.{h, cc}
  11689. * src/DefaultPieceStorage.{h, cc}
  11690. * src/Peer.{h, cc}
  11691. * test/PeerSessionResourceTest.cc
  11692. Use div function
  11693. * src/BtPieceMessage.cc (erasePieceOnDisk)
  11694. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11695. Type clarification
  11696. * src/DefaultPeerStorage.{h, cc}
  11697. * test/DefaultPeerStorageTest.cc
  11698. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11699. Type clarification: size_t for length or size, uint64_t for file
  11700. length, off_t for file offset.
  11701. * src/DefaultBtProgressInfoFile.cc
  11702. * src/DefaultBtContext.{h, cc}
  11703. * src/DefaultBtInteractive.cc
  11704. * src/DownloadCommand.{h, cc}
  11705. * src/IteratableChunkChecksumValidator.{h, cc}
  11706. * src/SegmentMan.{h, cc}
  11707. * src/SingleFileDownloadContext.{h, cc}
  11708. * src/IteratableChecksumValidator.{h, cc}
  11709. * src/BtContext.h
  11710. * src/IteratableValidator.h
  11711. * src/DownloadContext.h
  11712. * test/SingleFileDownloadContextTest.cc
  11713. * test/DefaultBtContextTest.cc
  11714. * test/MockBtContext.h
  11715. * test/Metalink2RequestGroupTest.cc
  11716. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11717. Type clarification: size_t for length or size, uint64_t for file
  11718. length, off_t for file offset.
  11719. * src/PiecedSegment.cc
  11720. * src/GrowSegment.h
  11721. * src/DefaultBtRequestFactory.h
  11722. * src/DefaultBtProgressInfoFile.cc
  11723. * src/UnknownLengthPieceStorage.h
  11724. * src/DefaultPieceStorage.cc
  11725. * src/UnknownLengthPieceStorage.cc
  11726. * src/DefaultBtInteractive.cc
  11727. * src/GrowSegment.cc
  11728. * src/BitfieldMan.h
  11729. * src/DownloadCommand.cc
  11730. * src/BtRequestFactory.h
  11731. * src/PiecedSegment.h
  11732. * src/DefaultPieceStorage.h
  11733. * src/Piece.cc
  11734. * src/DefaultBtRequestFactory.cc
  11735. * src/PieceStorage.h
  11736. * src/Segment.h
  11737. * src/Piece.h
  11738. * src/BitfieldMan.cc
  11739. * src/Util.cc
  11740. * test/DefaultBtProgressInfoFileTest.cc
  11741. * test/DefaultPieceStorageTest.cc
  11742. * test/MockPieceStorage.h
  11743. * test/BtRequestMessageTest.cc
  11744. * test/DefaultBtMessageDispatcherTest.cc
  11745. * test/BitfieldManTest.cc
  11746. * test/GrowSegmentTest.cc
  11747. * test/PieceTest.cc
  11748. * test/SegmentTest.cc
  11749. * test/SegmentManTest.cc
  11750. * test/DefaultBtRequestFactoryTest.cc
  11751. * test/MockBtRequestFactory.h
  11752. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11753. Fixed compilation error with --disable-nls
  11754. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  11755. in gettext.h causes the problem.
  11756. * src/common.h
  11757. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11758. Removed subPiece related functions.
  11759. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  11760. * src/DefaultPieceStorage.{h, cc}
  11761. * test/PieceTest.cc
  11762. * test/DefaultPieceStorageTest.cc
  11763. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11764. Use unsigned char for data store.
  11765. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11766. Bump up version number to 0.13.0+1
  11767. * configure.ac
  11768. * Release 0.13.0+1
  11769. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11770. Changed inactive connection timeout to 120.
  11771. To accept more mulually interested peers, disconnect peer when there
  11772. is no interest between us after certain time passed.
  11773. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  11774. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11775. Fixed the bug that aria2 only uses first dns server in resolv.conf
  11776. when compiled with async DNS support.
  11777. * src/DownloadEngine.cc
  11778. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  11779. value '10' will be a little bit short when some DNS servers are
  11780. offline and several DNS servers are tried. It should be configured
  11781. by command-line option.
  11782. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11783. Merged Ross's mingw patch.
  11784. * src/DHTRoutingTableDeserializer.cc
  11785. * src/DHTRoutingTableSerializer.cc
  11786. * src/Platform.{h, cc}
  11787. * src/timegm.h
  11788. * src/gettimeofday.h
  11789. * src/getaddrinfo.h
  11790. * src/SocketCore.h
  11791. * src/common.h
  11792. * src/inet_aton.h
  11793. * src/DownloadEngine.h
  11794. * src/gai_strerror.h
  11795. * src/a2netcompat.h
  11796. * configure.ac
  11797. * configure
  11798. * aclocal.m4
  11799. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11800. Included missing iostream.
  11801. * test/AllTest.cc
  11802. * test/BtDependencyTest.cc
  11803. * test/BtExtendedMessageTest.cc
  11804. * test/DHTConnectionImplTest.cc
  11805. * test/DHTMessageFactoryImplTest.cc
  11806. * test/DHTMessageTrackerEntryTest.cc
  11807. * test/DHTNodeTest.cc
  11808. * test/DHTRoutingTableSerializerTest.cc
  11809. * test/DefaultBtAnnounceTest.cc
  11810. * test/DefaultBtContextTest.cc
  11811. * test/DefaultBtMessageFactoryTest.cc
  11812. * test/DefaultExtensionMessageFactoryTest.cc
  11813. * test/HandshakeExtensionMessageTest.cc
  11814. * test/HttpResponseTest.cc
  11815. * test/MetalinkProcessorTest.cc
  11816. * test/MultiFileAllocationIteratorTest.cc
  11817. * test/SocketCoreTest.cc
  11818. * test/UTPexExtensionMessageTest.cc
  11819. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11820. Reorganized includes.
  11821. * src/NameResolver.cc
  11822. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11823. Fixed compilation error without ares/c-ares
  11824. * src/NameResolver.h:
  11825. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11826. Added a test for large file.
  11827. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11828. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11829. Fixed the bug that file size is ignored if size > INT32_MAX
  11830. * src/SizeMetalinkParserState.cc (endElement):
  11831. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11832. Bump up version number to 0.13.0
  11833. * configure.ac
  11834. * Release 0.13.0
  11835. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11836. Updated Makfefile.am to make 'make dist' work.
  11837. Now packaged filename is aria2c-VERSION.tar.bz2.
  11838. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11839. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11840. Large file support is now configured by configure script.
  11841. * configure.ac
  11842. Removed unsused source files
  11843. * src/
  11844. * test/
  11845. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11846. Peer.h and BtContext.h respectively.
  11847. * src/Peer.h
  11848. * src/BtContext.h
  11849. Updated translations.
  11850. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11851. translations. Great thanks to all translators!;)
  11852. * po/*.{po, gmo}
  11853. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11854. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11855. statically declared sha1 MessageDigestContext.
  11856. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11857. initialization of short-lived MessageDigestContext.
  11858. * src/MessageDigestHelper.{h, cc}
  11859. * src/main.cc
  11860. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11861. the initialization of MessageDigestContext every time in validating
  11862. chunk checksum.
  11863. * src/DownloadCommand.{h, cc}
  11864. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11865. Add a file descriptor which connected to fast peer(latency<1500) to
  11866. select(). This change reduced CPU load.
  11867. * src/PeerInteractionCommand.cc
  11868. * src/DefaultBtInteractive.{h, cc}
  11869. * src/BtInteractive.h
  11870. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11871. Fixed the previous insufficient fix for possible busy loop.
  11872. * src/MSEHandshake.cc (identifyHandshakeType)
  11873. Removed unused functions.
  11874. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11875. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11876. Fixed possible busy loop if first 20 bytes are not received for a few
  11877. minutes.
  11878. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11879. * src/ReceiverMSEHandshakeCommand.cc
  11880. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11881. Fixed compilation error
  11882. * src/ExpatMetalinkProcessor.cc
  11883. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11884. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11885. * src/DHTBucket.cc
  11886. Removed unnecessary cast.
  11887. * src/HandshakeExtensionMessage.cc
  11888. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11889. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11890. is missing.
  11891. * src/OptionHandlerFactory.cc
  11892. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11893. Fixed the bug that HAVE message is not sent for a piece they are
  11894. downloaded fom http/ftp server before any BitTorrent handshake is done
  11895. with peers.
  11896. * src/DefaultBtInteractive.cc
  11897. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11898. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11899. * src/Makefile.am
  11900. * src/Makefile.in
  11901. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11902. Updated README. Added html version of README and man page.
  11903. * README
  11904. * README.html
  11905. * readme2html: Shell script to generate README.html from README using
  11906. asciidoc.
  11907. * doc/aria2c.1.html
  11908. * doc/makeman: Added the line to generate aria2c.1.html
  11909. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11910. Fixed offset calculation.
  11911. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11912. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11913. Rewritten itos and uitos using template. llitos and ullitos are
  11914. replaced with itos and uitos respectively.
  11915. * src/Util.{h, cc}
  11916. * test/UtilTest.cc
  11917. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11918. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11919. of the number of bytes required for storing public key and shared
  11920. secret.
  11921. * src/LibgcryptDHKeyExchange.h
  11922. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11923. * src/MSEHandshake.cc
  11924. * test/DHKeyExchangeTest.cc
  11925. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11926. Removed since they are not used.
  11927. * src/Xml2MetalinkProcessor.{h, cc}
  11928. * src/Socket.cc
  11929. * src/SegmentSplitter.{h, cc}
  11930. * test/Xml2MetalinkProcessorTest.cc
  11931. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11932. Fixed the bug that prevents aria2 from stopping other than by pressing
  11933. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11934. option. aria2 doesn't stop even after --seed-time is satisfied and
  11935. continues to output blank lines in the console.
  11936. * src/ReceiverMSEHandshakeCommand.cc
  11937. * src/PeerReceiveHandshakeCommand.cc
  11938. * src/PeerListenCommand.cc
  11939. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11940. Bump up version number to 0.13.0rc
  11941. * configure.ac
  11942. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11943. Updated man page and some usage text.
  11944. * doc/aria2c.1.txt
  11945. * src/usage_text.h
  11946. * po/*.{po, gmo}
  11947. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11948. Updated translations. Added Finnish and Hebrew translations.
  11949. Great thanks to all translators!
  11950. * po/*.{po, gmo}
  11951. * po/LINGUAS
  11952. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11953. Log more detailed information about each message.
  11954. * src/DHTQueryMessage.{h, cc}
  11955. * src/DHTGetPeersMessage.{h, cc}
  11956. * src/DHTFindNodeReplyMessage.{h, cc}
  11957. * src/DHTGetPeersReplyMessage.{h, cc}
  11958. * src/DHTAnnouncePeerMessage.{h, cc}
  11959. * src/DHTResponseMessage.{h, cc}
  11960. * src/DHTFindNodeMessage.{h, cc}
  11961. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11962. Use constants defined in prefs.h
  11963. * src/option_processing.cc
  11964. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11965. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11966. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11967. Make room for future enchancements for IPv6 addresses.
  11968. Bump up version number of dht.dat file format to 2.
  11969. Not compatible with previous version.
  11970. * src/DHTRoutingTableSerializer.cc
  11971. * src/DHTRoutingTableDeserializer.cc
  11972. * test/DHTRoutingTableSerializerTest.cc
  11973. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11974. Added handling for the return values from
  11975. PeerMessageUtil::createcompact().
  11976. * src/DefaultBtContext.cc (computeFastSet):
  11977. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11978. Fixed abort when peer's ip address is IPv4-mapped address.
  11979. * src/DefaultBtContext.cc (computeFastSet)
  11980. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11981. cannot handle IPv4-mapped addresses.
  11982. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11983. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11984. Proper return value handling for OpenSSL functions.
  11985. * src/LibsslDHKeyExchange.h
  11986. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11987. Random bytes generation using libgcrypt and OpenSSL.
  11988. * src/DHTUtil.{h, cc}
  11989. * test/DHTUtilTest.cc
  11990. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11991. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11992. received.
  11993. * src/DHTMessageReceiver.cc (receiveMessage)
  11994. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11995. Fixed the bug that a return code is always 0. BUG#1897704
  11996. If error occurred during the download or there exist unfinished
  11997. downloads, aria2 returns with code 1.
  11998. * src/RequestGroupMan.{h, cc}
  11999. * src/MultiUrlRequestInfo.{h, cc}
  12000. * src/main.cc
  12001. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12002. IPv6 support for SocketCore class.
  12003. TODO: In SocketCore::establishConnection(), this is insufficient to
  12004. determin the failure of connect() here because the socket is
  12005. non-blocking state. The next addresses should be tried after select().
  12006. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  12007. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  12008. instead which address family independent.
  12009. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  12010. information in a compact peer format which is for IPv4 only.
  12011. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  12012. this is a spec of BitTorrent protocol.
  12013. * src/SocketCore.{h, cc}
  12014. * src/PeerMessageUtil.cc
  12015. * test/SocketCoreTest.cc
  12016. * test/PeerMessageUtilTest.cc
  12017. * test/DHTConnectionImplTest.cc
  12018. Handle IPv4-mapped addresses.
  12019. * src/DHTNode.cc: Now identity is determined by node id.
  12020. * src/DHTMessageTrackerEntry.cc
  12021. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  12022. should handle it.
  12023. * src/DHTRoutingTableDeserializer.cc
  12024. * src/DHTMessageFactoryImpl.cc
  12025. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12026. Change the unit of --stop option from a minute to a second.
  12027. * src/usage_text.h
  12028. * src/DownloadEngineFactory.cc
  12029. * src/OptionHandlerFactory.cc
  12030. * src/message.h
  12031. * src/TimedHaltCommand.cc
  12032. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12033. Make listening socket non-block mode.
  12034. * src/FtpConnection.cc
  12035. * src/FtpNegotiationCommand.{h, cc}
  12036. * src/PeerListenCommand.cc
  12037. Fixed the bug that cause slow ftp negotiation.
  12038. * src/FtpNegotiationCommand.{h, cc}
  12039. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12040. Added basic tag to --enable-dht, --dht-listen-port option.
  12041. * src/HelpItemFactory.cc (createHelpItems)
  12042. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12043. Updated text.
  12044. * src/usage_text.h
  12045. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12046. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  12047. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12048. Determin _threadtholdSpeed in each constructor for
  12049. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  12050. * src/ActivePeerConnectionCommand.{h, cc}
  12051. * src/PeerReceiveHandshakeCommand.{h, cc}
  12052. * src/BtSetup.cc
  12053. * src/BtConstants.h
  12054. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12055. Added --bt-min-crypto-level and --bt-require-crypto options.
  12056. * src/OptionHandlerFactory.cc
  12057. * src/MSEHandshake.cc
  12058. * src/HelpItemFactory.cc
  12059. * src/option_processing.cc
  12060. * src/ReceiverMSEHandshakeCommand.cc
  12061. * src/prefs.h
  12062. * src/DefaultBtAnnounce.cc
  12063. * src/InitiatorMSEHandshakeCommand.cc
  12064. * src/usage_text.h
  12065. * test/MSEHandshakeTest.cc
  12066. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12067. Bump version number to 0.13.0b
  12068. * configure.ac
  12069. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12070. Updated doc.
  12071. * src/MessageDigestHelper.h:
  12072. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12073. Use raw message digest as a token instead of its hexadecimal
  12074. representation.
  12075. * src/DHTTokenTracker.cc (generateToken)
  12076. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12077. Added Message Stream Encryption(MSE) support.
  12078. Currently, aria2 accepts incoming connections with Obfuscation Header
  12079. and legacy BitTorrent Header and establishes connections with
  12080. Obfuscation Header first and if failed then retry with legacy
  12081. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  12082. choose ARC4. The new option to change the default behavior is planned.
  12083. For tracker extension, "supportcrypto=1" is added statically.
  12084. * src/PeerInitiateConnectionCommand.{h, cc}
  12085. * src/PeerConnection.{h, cc}
  12086. * src/HandleRegistry.h
  12087. * src/SocketCore.h
  12088. * src/PeerReceiveHandshakeCommand.{h, cc}
  12089. * src/BtRegistry.{h, cc}
  12090. * src/PeerListenCommand.cc
  12091. * src/InitiatorMSEHandshakeCommand.{h, cc}
  12092. * src/ReceiverMSEHandshakeCommand.{h, cc}
  12093. * src/MSEHandshake.{h, cc}
  12094. * src/ARC4Encryptor.h
  12095. * src/ARC4Decryptor.h
  12096. * src/LibgcryptARC4Encryptor.h
  12097. * src/LibgcryptARC4Decryptor.h
  12098. * src/LibgcryptARC4Context.h
  12099. * src/LibsslARC4Encryptor.h
  12100. * src/LibsslARC4Decryptor.h
  12101. * src/LibsslARC4Context.h
  12102. * src/DHKeyExchange.h
  12103. * src/LibgcryptDHKeyExchange.h
  12104. * src/LibsslDHKeyExchange.h
  12105. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  12106. * test/DefaultBtAnnounceTest.cc
  12107. * test/ARC4Test.cc
  12108. * test/DHKeyExchangeTest.cc
  12109. Removed prepareForRetry() because it is not used.
  12110. * src/PeerAbstractCommand.{h, cc}
  12111. * src/PeerInteractionCommand.{h, cc}
  12112. * src/PeerInitiateConnectionCommand.{h, cc}
  12113. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12114. Added the ability to load nodes from torrent file. These nodes are
  12115. added to the routing table when downloading that torrent.
  12116. * src/BtContext.h
  12117. * src/DefaultBtContext.{h, cc}
  12118. * src/DHTSetup.cc
  12119. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  12120. hostname and port pair, and resolves all of them.
  12121. * src/NameResolver.{h, cc}: Added reset().
  12122. * src/RequestGroup.cc
  12123. * test/DefaultBtContextTest.cc
  12124. * test/MockBtContext.h
  12125. Removed assert() from DefaultBtContext and throw exception instead.
  12126. * src/DefaultBtContext.cc
  12127. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12128. Fixed segmentation fault bug when exiting if dht is disabled.
  12129. * src/RequestGroup.cc
  12130. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12131. Fixed typo in log message and define the message in message.h
  12132. * src/TimedHaltCommand.cc
  12133. * src/message.h
  12134. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12135. Included RecoverableException.h to fix compilation error.
  12136. * test/DHTMessageFactoryImplTest.cc
  12137. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12138. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  12139. * test/DHTPingMessageTest.cc
  12140. * test/DHTGetPeersMessageTest.cc
  12141. * test/DHTFindNodeMessageTest.cc
  12142. * test/DHTAnnouncePeerMessageTest.cc
  12143. * test/MockDHTMessage.h
  12144. * test/MockDHTMessageFactory.h
  12145. * test/MockDHTMessageDispatcher.h: New class.
  12146. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12147. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  12148. virtual.
  12149. * src/DHTMessageDispatcher.h
  12150. * src/DHTMessageDispatcherImpl.{h, cc}
  12151. * src/DHTSetup.cc
  12152. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12153. Adding handling of DHT error message. Just log error message and
  12154. throw exception.
  12155. * src/DHTMessageFactoryImpl.cc
  12156. * test/DHTMessageFactoryImplTest.cc
  12157. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12158. Added handling of dynamic cast failure.
  12159. * src/DHTNodeLookupTask.cc
  12160. * src/DHTPeerLookupTask.cc
  12161. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12162. Added the ability to stop aria2 itself when given time has passed
  12163. from start. Use --stop option to specify time in minutes.
  12164. When 0 is given, this feature is disabled.
  12165. * src/OptionHandlerFactory.cc
  12166. * src/TimeBasedCommand.h: Make _interval protected scope.
  12167. * src/HelpItemFactory.cc
  12168. * src/option_processing.cc
  12169. * src/prefs.h
  12170. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  12171. before calling RequestGroupMan::fillRequestGroupFromReserver().
  12172. Without this modification, the result list shows "ERR" when aria2 is
  12173. stopped by --stop option. It should be "INPR".
  12174. * src/DownloadEngine.{h, cc}
  12175. * src/DownloadEngineFactory.cc
  12176. * src/usage_text.h
  12177. * src/TimedHaltCommand.{h, cc}: New class.
  12178. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12179. Bootstrap through node added by port message.
  12180. Currently bootstrap is executed if the number of buckets in routing
  12181. table is 1.
  12182. * src/BtPortMessage.{h, cc}
  12183. * src/DefaultBtMessageFactory.{h, cc}
  12184. * src/PeerInteractionCommand.cc
  12185. * test/BtPortMessageTest.cc
  12186. * test/MockDHTTask.h
  12187. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12188. Extract the Peer class's member variables, which are only needed after
  12189. PeerInteractionCommand, into PeerSessionResource class.
  12190. This class is instantiated in PeerInteractionCommand class's ctor and
  12191. released in its dtor.
  12192. This will make Peer class lightweight and uses less memory for peers
  12193. which are not connected and wait in the queue.
  12194. * src/PeerChokeCommand.cc
  12195. * src/PeerSessionResource.{h, cc}
  12196. * src/PeerInteractionCommand.cc
  12197. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  12198. * src/DefaultBtInteractive.cc
  12199. * src/BtPieceMessage.cc
  12200. * src/BtInterestedMessage.cc
  12201. * src/BtUnchokeMessage.cc
  12202. * src/DefaultPeerStorage.{h, cc}
  12203. * src/PeerInitiateConnectionCommand.cc
  12204. * src/ActivePeerConnectionCommand.cc
  12205. * src/BtNotInterestedMessage.cc
  12206. * src/DefaultBtMessageDispatcher.cc
  12207. * src/BtChokeMessage.cc
  12208. * src/BtRequestMessage.cc
  12209. * src/Peer.{h, cc}
  12210. * src/BtRegistry.h
  12211. * src/TrackerWatcherCommand.cc
  12212. * src/PeerReceiveHandshakeCommand.cc
  12213. * test/BtExtendedMessageTest.cc
  12214. * test/BtAllowedFastMessageTest.cc
  12215. * test/BtCancelMessageTest.cc
  12216. * test/DefaultPieceStorageTest.cc
  12217. * test/BtBitfieldMessageTest.cc
  12218. * test/BtHaveMessageTest.cc
  12219. * test/BtNotInterestedMessageTest.cc
  12220. * test/BtRequestMessageTest.cc
  12221. * test/PeerSessionResourceTest.cc
  12222. * test/DefaultBtMessageDispatcherTest.cc
  12223. * test/PeerTest.cc
  12224. * test/BtInterestedMessageTest.cc
  12225. * test/BtRejectMessageTest.cc
  12226. * test/BtChokeMessageTest.cc
  12227. * test/DefaultPeerStorageTest.cc
  12228. * test/BtHaveNoneMessageTest.cc
  12229. * test/BtHaveAllMessageTest.cc
  12230. * test/DefaultExtensionMessageFactoryTest.cc
  12231. * test/BtUnchokeMessageTest.cc
  12232. * test/DefaultBtMessageFactoryTest.cc
  12233. * test/HandshakeExtensionMessageTest.cc
  12234. * test/UTPexExtensionMessageTest.cc
  12235. * test/DefaultBtRequestFactoryTest.cc
  12236. * test/BtPieceMessageTest.cc
  12237. Removed typedef PeerStats.
  12238. * src/PeerStat.h
  12239. * src/SegmentMan.cc
  12240. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12241. Added std namespace to copy, remove_copy, back_inserter,
  12242. front_inserter.
  12243. * src/RequestGroupMan.cc
  12244. * src/DefaultPieceStorage.cc
  12245. * src/StreamFileAllocationEntry.cc
  12246. * src/BtFileAllocationEntry.cc
  12247. * src/RequestGroup.cc
  12248. * src/MetalinkEntry.cc
  12249. * src/DelegatingPeerListProcessor.cc
  12250. * src/DefaultBtRequestFactory.cc
  12251. * src/DefaultBtMessageDispatcher.cc
  12252. * src/version_usage.cc: Included <algorithm>
  12253. * src/main.cc
  12254. * src/MetalinkParserController.cc
  12255. * src/DefaultBtContext.cc
  12256. * src/DownloadEngineFactory.cc
  12257. * src/a2algo.h
  12258. Removed.
  12259. * test/StreamUriListParserTest.cc
  12260. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12261. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  12262. ActivePeerConnectionCommand when it is given and
  12263. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  12264. * src/ActivePeerConnectionCommand.{h, cc}
  12265. * src/BtSetup.cc
  12266. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12267. Only add socket to DownloadEngine's select routine when peer or
  12268. localhost is unchoked and interested. This lowers CPU usage a
  12269. little bit.
  12270. * src/PeerInteractionCommand.cc
  12271. * src/PeerAbstractCommand.{h, cc}
  12272. * src/BtInteractive.h
  12273. * src/DefaultBtInteractive.{h, cc}
  12274. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12275. Revert previous change because get_peers message is needed for
  12276. announce_peer anyway.
  12277. * src/DHTGetPeersCommand.cc
  12278. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12279. Request peers thought DHT only when download hasn't finished.
  12280. * src/DHTGetPeersCommand.cc
  12281. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12282. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  12283. * src/DHTBucketRefreshTask.{h, cc}
  12284. * src/DHTSetup.cc
  12285. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12286. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  12287. standard classes.
  12288. Included string.h where mem* function are used.
  12289. Added namespace aria2.
  12290. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12291. Create directory before saving DHT routing table.
  12292. Now ios::failure is now handled properly.
  12293. * src/DHTAutoSaveCommand.cc
  12294. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12295. Removed unnecessary cerr.
  12296. * src/DownloadEngine.cc
  12297. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12298. Catch exception inside DHTMessageReceiver::receiveMessage().
  12299. Log unknown message.
  12300. * src/DHTMessageReceiver.{h, cc}
  12301. * src/DHTMessageFactory.h
  12302. * src/DHTMessageFactoryImpl.{h, cc}
  12303. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  12304. * src/DHTInteractionCommand.cc
  12305. * src/DHTUnknownMessage.{h, cc}
  12306. * test/DHTUnknownMessageTest.cc
  12307. * test/MockDHTMessageFactory.h
  12308. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12309. Commented out ip address comparison because a host can have multiple
  12310. ip addresses and it is hard to predict the hostname is resolved into
  12311. which one.
  12312. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  12313. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12314. * po/Makefile.in: Removed since this is generated by configure.
  12315. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12316. Fixed compiler warning about redefinition of SIZE_MAX.
  12317. Use common.h instead of config.h directly here.
  12318. * src/Platform.{h, cc}
  12319. The check of ENABLE_NLS is made in gettext.h, so it is not required
  12320. here.
  12321. * common.h
  12322. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  12323. Updated gettext related files.
  12324. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  12325. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  12326. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12327. Added DHT functionality, compatible with mainline.
  12328. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  12329. You may need to specify entry point to DHT network using
  12330. --dht-entry-point. DHT uses UDP port to listen incoming message.
  12331. Use --dht-listen-port to specify port number. Make sure that your
  12332. firewall configuration can pass through UDP traffic to the port.
  12333. The routing table is saved in $HOME/.aria2/dht.dat.
  12334. * src/DHT*
  12335. * src/BNode.{h, cc}
  12336. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  12337. particular torrent.
  12338. * src/Data.cc: Rewritten ctor.
  12339. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  12340. --dht-entry-point.
  12341. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  12342. * src/RequestGroup.cc: Initialize DHT functionality. When download
  12343. ends, remove BtContext from DHTPeerAnnounceStorage.
  12344. * src/BtPortMessage.{h, cc}: Rewritten.
  12345. * src/message.h
  12346. * src/OptionHandlerImpl.cc
  12347. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  12348. --dht-entry-point.
  12349. * src/Dictionary.{h, cc} (remove): New function.
  12350. * src/prefs.h
  12351. * src/DefaultBtMessageFactory.h
  12352. * src/BtHandshakeMessage.cc
  12353. * src/ActivePeerConnectionCommand.cc
  12354. * src/SocketCore.{h, cc}: Added datagram socket support.
  12355. * src/DefaultBtMessageFactory.cc
  12356. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  12357. Create DHT commands.
  12358. * src/BtMessageFactory.h
  12359. * src/PeerMessageUtil.{h, cc}
  12360. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12361. Fixed the bug that log file is not written when configuration file doesn't exist.
  12362. This is caused by using Logger class before LogFactory is not configured.
  12363. BUG #1875079
  12364. * src/option_processing.cc
  12365. Warning message "configuration doesn't exist" is only printed when --conf is
  12366. given.
  12367. * src/option_processing.cc
  12368. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12369. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  12370. ShaVisitor is now deprecated and slated to be removed.
  12371. * src/DefaultBtContext.cc
  12372. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12373. Externalize message to message.h
  12374. * src/Platform.cc
  12375. * src/message.h
  12376. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12377. Set default domain and default path to cookie.
  12378. * src/HttpResponse.cc
  12379. * src/CookieBox.{h, cc}
  12380. * src/CookieParser.{h, cc}
  12381. * test/CookieParserTest.cc
  12382. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12383. Added --no-conf and --conf-path command-line option.
  12384. --no-conf option disables loading aria2.conf file.
  12385. --conf-path option changes the configuration file path. The default
  12386. file path is $HOME/.aria2/aria2.conf
  12387. Added a warning message when the configuration file is not found.
  12388. * src/HelpItemFactory.cc
  12389. * src/option_processing.cc
  12390. * src/prefs.h
  12391. * src/usage_text.h
  12392. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12393. Added the message to inform users that other help categories are
  12394. available in -h option.
  12395. * src/version_usage.cc
  12396. * src/TagContainer.{h, cc}
  12397. * test/TagContainerTest.cc
  12398. * src/TaggedItem.{h, cc}
  12399. * test/TaggedItemTest.cc
  12400. * src/HelpItem.h
  12401. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12402. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  12403. from PiecedSegment's ctor.
  12404. Previously Piece::getAllMissingBlockIndexes() is called from
  12405. PiecedSegment() but it is rather expensive since only first element is
  12406. used.
  12407. * src/PiecedSegment.cc
  12408. * src/Piece.{h, cc}
  12409. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12410. Rewritten get*Missing*Index functions. Now no need to allocate memory
  12411. each time these functions are called.
  12412. * src/BitfieldMan.{h, cc}
  12413. * test/BitfieldManTest.cc
  12414. * src/array_fun.h
  12415. * test/array_funTest.cc
  12416. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  12417. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  12418. filtered. Removed unnecessary cast to int32_t.
  12419. * src/BitfieldMan.{h, cc}
  12420. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12421. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  12422. payload length(4bytes) are received. This happens because lenbufLength
  12423. is not updated in this particular case and successive call of
  12424. receiveMessage() overwrites payload length with bytes recieved which
  12425. are payload body.
  12426. * src/PeerConnection.{h, cc}
  12427. * src/message.h
  12428. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12429. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  12430. peer if there are peers that have same ipaddr and port.
  12431. I've experiened segmentation fault and "pure virtual function was
  12432. called" error.
  12433. * src/Peer.h
  12434. * test/PeerTest.cc
  12435. * src/DefaultPeerStorage.cc
  12436. * test/DefaultPeerStorageTest.cc
  12437. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12438. Removed a call to isPowerOf() because it is no longer necessary here
  12439. and a request block is not always power of 2.
  12440. BUG#1866924
  12441. * src/PeerMessageUtil.cc (checkLength)
  12442. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12443. Fixed the bug that always first found Segment is removed from
  12444. usedSegmentEntries. Removed unused functions.
  12445. * src/SegmentMan.{h, cc}
  12446. * test/SegmentManTest.cc
  12447. Fixed the bug that ServerHost is not removed.
  12448. * src/RequestGroup.cc
  12449. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12450. Fixed the bug that SegmentMan::completeSegment() is not called
  12451. even if Segment is complete when --lowest-speed-limit is enabled.
  12452. BUG#1864525
  12453. * src/DownloadCommand.{h, cc}
  12454. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12455. Fixed: hash algorithm 'sha1' is always used.
  12456. * src/DownloadCommand.cc (validatePieceHash)
  12457. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12458. Added --enable-peer-exchange command-line option.
  12459. * src/OptionHandlerFactory.cc
  12460. * src/HelpItemFactory.cc
  12461. * src/option_processing.cc
  12462. * src/usage_text.h
  12463. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12464. Move extension from BtRuntime to ExtensionMessageFactory, because
  12465. extension can be specified per peer, not per torrent.
  12466. * src/DefaultBtInteractive.cc
  12467. * src/BtRuntime.h
  12468. * src/ExtendedMessagingAware.h
  12469. * src/ExtensionMessageFactory.h
  12470. * src/DefaultExtensionMessageFactory.cc
  12471. * test/DefaultExtensionMessageFactoryTest.cc
  12472. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12473. Added categorized option help. Specify category using --help option.
  12474. Also added the ability to search options in forward match.
  12475. * src/HelpItem.{h, cc}
  12476. * test/HelpItemTest.cc
  12477. * src/HelpItemFactory.{h, cc}
  12478. * src/TagContainer.{h, cc}
  12479. * test/TagContainerTest.cc
  12480. * src/option_processing.cc
  12481. * src/prefs.h
  12482. * src/TaggedItem.{h, cc}
  12483. * test/TaggedItemTest.cc
  12484. * src/version_usage.cc
  12485. * src/help_tags.h
  12486. * src/usage_text.h
  12487. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12488. Fixed segmentation fault when bad torrent metainfo is parsed.
  12489. Added dynamic_cast properly to detect the misconfiguration of metainfo
  12490. and then throw exception or skip it.
  12491. * src/DefaultBtContext.{h, cc}
  12492. * test/DefaultBtContextTest.cc
  12493. * src/AnnounceList.cc
  12494. * src/CompactPeerListProcessor.cc
  12495. * src/message.h
  12496. * src/DefaultBtAnnounce.{h, cc}
  12497. * test/DefaultBtAnnounceTest.cc
  12498. * src/BencodeVisitor.cc
  12499. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12500. Added missing "B"(=Byte). So now the message looks like this:
  12501. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  12502. * src/message.h (MSG_SHARE_RATIO_REPORT)
  12503. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12504. Show the seed ratio after torrent downloads.
  12505. For example, after torrent download completed and --seed-time and
  12506. --seed-ratio conditions are fulfilled, following message is printed
  12507. right after "Download complete: .....":
  12508. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  12509. * src/RequestGroupMan.cc
  12510. * src/RequestGroup.{h, cc}
  12511. * src/message.h
  12512. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12513. Remove a defunct control file. A defunct control file means that while
  12514. it exists, but the corresponding download file is missing.
  12515. After its removal, a download restarts from the beginning.
  12516. * src/RequestGroup.cc
  12517. * src/message.h
  12518. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12519. Allocate bitfield in Peer when it is really used. More specifically,
  12520. bitfield in Peer is allocated after the connection is established and
  12521. deallocated when the connection is dropped.
  12522. Since 2 parameters(piece length and total length) was removed from the
  12523. constructor of Peer class, many test classes were modified accordingly.
  12524. See svn log for more detailed information.
  12525. * src/PeerInteractionCommand.cc
  12526. * src/CompactPeerListProcessor.cc
  12527. * src/Peer.cc
  12528. * src/DefaultPeerListProcessor.cc
  12529. * src/PeerListenCommand.cc
  12530. * src/PeerReceiveHandshakeCommand.cc
  12531. Fixed memory leak
  12532. * src/Piece.cc
  12533. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12534. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  12535. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  12536. command-line options.
  12537. * src/option_processing.cc
  12538. * src/ActivePeerConnectionCommand.cc
  12539. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12540. Send have message to peer if it already has the piece.
  12541. * src/BtHaveMessage.{h, cc}
  12542. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12543. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  12544. port.
  12545. * src/DefaultPeerStorage.{h, cc}
  12546. * test/DefaultPeerStorageTest.cc
  12547. * src/HandshakeExtensionMessage.cc
  12548. * test/HandshakeExtensionMessageTest.cc
  12549. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  12550. * src/PeerStorage.h
  12551. * test/MockPeerStorage.h
  12552. * src/PeerListenCommand.cc
  12553. * src/PeerReceiveHandshakeCommand.cc
  12554. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12555. Added --metalink-enable-unique-protocol option.
  12556. * src/Metalink2RequestGroup.cc
  12557. * src/option_processing.cc
  12558. * src/prefs.h
  12559. * src/version_usage.cc
  12560. * doc/aria2c.1.txt
  12561. * doc/aria2c.1
  12562. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12563. Allow a peer in incomingPeer to be added peers.
  12564. * src/DefaultPeerStorage.cc
  12565. * test/DefaultPeerStorageTest.cc
  12566. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12567. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  12568. I could reproduce this bug in following procedure:
  12569. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  12570. 2. Restart aria2.
  12571. 3. You see the download stopped around 99%.
  12572. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12573. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  12574. If timeout is reached, then _nextCommand is unused and it may contains
  12575. segments and they won't be canceled. Actually, timeout is not needed
  12576. here because if the server dropped connection, then retry is made.
  12577. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12578. Added uTorrent compatible Peer Exchange.
  12579. * src/BencodeVisitor.{h, cc}
  12580. * test/BencodeVisitorTest.cc
  12581. * src/BtConstants.h
  12582. * src/BtContext.h: Added 'private' flag.
  12583. * src/BtExtendedMessage.{h, cc}
  12584. * test/BtExtendedMessageTest.cc
  12585. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  12586. reserved field.
  12587. * test/BtHandshakeMessageTest.cc
  12588. * src/BtMessageFactory.h
  12589. * src/BtRegistry.h
  12590. * src/BtRuntime.h: This class holds default extension message IDs for
  12591. aria2. By default, aria2 uses ID 8 for ut_pex.
  12592. * src/DefaultBtContext.cc
  12593. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  12594. When it is true, aria2 enables ut_pex. This value is set by
  12595. PeerInteractionCommand.
  12596. * src/DefaultBtMessageFactory.{h, cc}
  12597. * test/DefaultBtMessageFactoryTest.cc
  12598. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  12599. handling to DefaultBtInteractive class.
  12600. * src/DefaultExtensionMessageFactory.{h, cc}
  12601. * test/DefaultExtensionMessageFactoryTest.cc
  12602. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  12603. the container(peers and incomingPeers. The equality is determined by
  12604. Peer::id).
  12605. * test/DefaultPeerStorageTest.cc
  12606. * src/ExtensionMessage.h
  12607. * test/MockExtensionMessage.h
  12608. * src/ExtensionMessageFactory.h
  12609. * test/MockExtensionMessageFactory.h
  12610. * src/HandshakeExtensionMessage.{h, cc}
  12611. * test/HandshakeExtensionMessageTest.cc
  12612. * src/MetaEntry.h
  12613. * src/Peer.{h, cc}
  12614. * src/PeerInteractionCommand.cc
  12615. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  12616. addIncomingPeer.
  12617. * src/PeerMessageUtil.{h, cc}
  12618. * src/PeerObject.h
  12619. * src/UTPexExtensionMessage.{h, cc}
  12620. * test/UTPexExtensionMessageTest.cc
  12621. * src/message.h
  12622. * src/prefs.h
  12623. Fixed the bug that returns incomplete data when it contains null
  12624. character. A convenient constructor was also added.
  12625. * src/Data.{h, cc}
  12626. Rewritten.
  12627. * src/CompactPeerListProcessor.cc
  12628. Fixed typos.
  12629. * src/message.h
  12630. * src/MetaFileUtil.cc
  12631. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12632. Added "Status Legend" label to the explanation text of 'stat' in
  12633. download result and moved it to the last. BUG#1848214
  12634. * src/RequestGroupMan.cc
  12635. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12636. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  12637. * src/Makefie.am
  12638. * test/Makefile.am
  12639. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12640. Fixed the bug that prevents aria2 from loading cookie file when expire
  12641. value is greater than 2^31-1. BUG#1851066
  12642. * src/CookieBoxFactory.cc
  12643. * test/CookieBoxFactoryTest.cc
  12644. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12645. Fixed possible memory leak when an exception is thrown.
  12646. * src/XML2SAXMetalinkProcessor.cc
  12647. Added Expat support. If both libxml2 and Expat are installed, then
  12648. libxml2 is used by default.
  12649. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  12650. ExpatMetalinkProcessor according to the configuration.
  12651. * src/ExpatMetalinkProcessor.{h, cc}
  12652. * src/main.cc: Removed libxml2 specific header and init/free function.
  12653. * src/MetalinkProcessorFactory.{h, cc}
  12654. * src/MetalinkHelper.cc
  12655. * src/Metalinker.h: Removed unnecessary libxml2 header.
  12656. * src/MetalinkProcessor.h
  12657. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  12658. MetalinkProcessorTest is used instead.
  12659. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  12660. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  12661. MetalinkProcessorFactory::newInstance().
  12662. * m4/libexpat.m4
  12663. * configure.ac: Added configuration options for libexpat.
  12664. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12665. Disabled -s option in metalink download.
  12666. * src/Metalink2RequestGroup.cc
  12667. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12668. If several protocols are available for a mirror in metalink file,
  12669. aria2 now use one of them. --metalink-preferred-protocol option was
  12670. added to specify the preference of protocol.
  12671. * src/AbstractCommand.cc
  12672. * src/OptionHandlerFactory.cc
  12673. * src/ServerHost.{h, cc}
  12674. * src/Metalink2RequestGroup.cc
  12675. * src/RequestGroup.{h, cc}
  12676. * test/RequestGroupTest.cc
  12677. * src/option_processing.cc
  12678. * src/prefs.h
  12679. * src/HttpResponseCommand.cc
  12680. * src/MetalinkResource.{h, cc}
  12681. * src/FtpNegotiationCommand.cc
  12682. * src/MetalinkEntry.{h, cc}
  12683. * src/MetalinkEntryTest.cc
  12684. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12685. Code cleanup and added debug log.
  12686. * src/PeerConnection.cc
  12687. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12688. Compiler error fix: applied the patch by Tiziano Mueller
  12689. * src/RequestGroup.cc
  12690. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12691. Fixed the bug: only first announce URL is tried in AnnounceTier,
  12692. in stopped and completed event.
  12693. * src/AnnounceList.{h, cc}
  12694. * test/AnnounceListTest.cc
  12695. * src/DefaultBtAnnounce.cc
  12696. * test/DefaultBtAnnounceTest.cc
  12697. Sorted URLs.
  12698. * test/Metalink2RequestGroupTest.cc
  12699. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12700. Removed unnecessary string copy. Updated doc and corrected indentation.
  12701. * src/Base64.cc
  12702. Fixed compilation warnings
  12703. * test/DataTest.cc
  12704. * test/HttpRequestTest.cc
  12705. * test/MetaFileUtilTest.cc
  12706. * test/RequestTest.cc
  12707. * Release 0.12.0
  12708. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12709. Updated translations
  12710. * po/{de,fr,ja,nl,ru}.po
  12711. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  12712. translations. Many thanks to translators.
  12713. * po/{ca,es,it,pt_BR,sv}.po
  12714. * po/LINGUAS
  12715. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12716. Added a notice about URL
  12717. * src/version_usage.cc
  12718. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  12719. Fixed the bug#1845750; CTRL+C does not stop torrent.
  12720. aria2 repeatedly sends stopped request when tracker returns error code.
  12721. * src/AnnounceList.cc
  12722. * test/AnnounceListTest.cc
  12723. * src/AnnounceTier.h
  12724. Added a message when ctrl-c is hit.
  12725. Now second ctrl-c is also handled in signal handler.
  12726. * src/RequestGroupMan.{h, cc}
  12727. * src/RequestGroup.{h, cc}
  12728. * src/MultiUrlRequestInfo.cc
  12729. * src/DownloadEngine.cc
  12730. * src/TrackerWatcherCommand.cc
  12731. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12732. Code cleanup
  12733. * src/Base64.cc (encode)
  12734. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12735. Changed Direct/IO enable/disable procesure in file allocation routine.
  12736. * src/SingleFileAllocationIterator.cc
  12737. (SingleFileAllocationIterator):
  12738. Disable directIO if offset is not multiple of 512.
  12739. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  12740. * src/MultiFileAllocationIterator.cc (allocateChunk):
  12741. Enable created SingleFileAllocationIterator's directIO.
  12742. * src/FileAllocationEntry.cc
  12743. (FileAllocationEntry): Enable directIO here.
  12744. (~FileAllocationEntry): Disable directIO here.
  12745. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12746. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  12747. * src/Peer.{h, cc}
  12748. * src/DefaultPieceStorage.cc
  12749. * test/DefaultPieceStorageTest.cc
  12750. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12751. Rewritten direct I/O support routine
  12752. * src/SingleFileAllocationIterator.cc
  12753. * src/MultiDiskAdaptor.{h, cc}
  12754. * src/ByteArrayDiskWriter.h
  12755. * src/AbstractSingleDiskAdaptor.h
  12756. * src/AbstractDiskWriter.cc
  12757. * src/DefaultPieceStorage.cc
  12758. * src/DiskWriter.h
  12759. * src/BinaryStream.h
  12760. * src/IteratableChunkChecksumValidator.cc
  12761. * src/IteratableChecksumValidator.cc
  12762. * src/CheckIntegrityEntry.cc
  12763. * src/FileAllocationEntry.cc
  12764. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12765. Fixed typo
  12766. * src/version_usage.cc
  12767. Updated doc
  12768. * doc/aria2c.1.txt
  12769. * doc/aria2c.1
  12770. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12771. Fixed compile error without message digest support.
  12772. * src/FileMetalinkParserState.cc
  12773. * src/MetalinkParserController.{h, cc}
  12774. * test/XML2SAXMetalinkProcessorTest.cc
  12775. * test/MetalinkParserControllerTest.cc
  12776. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12777. Enable direct I/O support in checksum checking.
  12778. * src/IteratableChunkChecksumValidator.{h, cc}
  12779. * test/IteratableChunkChecksumValidatorTest.cc
  12780. * src/CheckIntegrityEntry.cc
  12781. * src/PieceHashCheckIntegrityEntry.cc
  12782. * src/IteratableChecksumValidator.{h, cc}
  12783. * src/BtCheckIntegrityEntry.cc: Added doc.
  12784. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12785. Added --allow-piece-length-change option.
  12786. * src/DefaultBtProgressInfoFile.cc
  12787. * test/DefaultBtProgressInfoFileTest.cc
  12788. * src/OptionHandlerFactory.cc
  12789. * src/option_processing.cc
  12790. * src/prefs.h
  12791. * src/version_usage.cc
  12792. * doc/aria2c.1.txt
  12793. * doc/aria2c.1
  12794. Fixed: duplicated result entry appears when exception is thrown in
  12795. RequestGroup::createInitiateConnectionCommand().
  12796. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12797. Add RequestGroup to _requestGroup after RequetGroup::
  12798. createInitiateConnectionCommand() succeeds.
  12799. Externalized message
  12800. * src/XML2SAXMetalinkProcessor.cc
  12801. * src/message.h
  12802. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12803. Forced download abort when received negative response from http/ftp
  12804. server.
  12805. * src/HttpResponseCommand.cc
  12806. * src/FtpNegotiationCommand.cc
  12807. * src/HttpResponse.cc
  12808. * src/FtpConnection.cc
  12809. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12810. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12811. the predecessor, Xml2MetalinkParser class.
  12812. I tested them against 94KB metalink file with 1234 chunk checksums.
  12813. The new one parsed it in 22msec, while it took 6000msec with old one.
  12814. * src/XML2SAXMetalinkProcessor.{h, cc}
  12815. * test/XML2SAXMetalinkProcessorTest.cc
  12816. * src/MetalinkParserController.{h, cc}
  12817. * test/MetalinkParserControllerTest.cc
  12818. * src/MetalinkParserState.h: Also added 16 subclasses.
  12819. * src/main.cc
  12820. * src/Metalink2RequestGroup.cc
  12821. * src/MetalinkHelper.cc
  12822. * src/MetalinkEntry.cc
  12823. * src/ChunkChecksum.h
  12824. Rewritten Base64 class for better performance.
  12825. * src/Base64.{h, cc}
  12826. * test/Base64Test.cc
  12827. * src/HttpRequest.cc
  12828. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12829. Fixed the bug#1841757: aria2 will connect to server to only get
  12830. file size.
  12831. * src/StreamFileAllocationEntry.cc
  12832. * src/option_processing.cc
  12833. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12834. downloads.
  12835. * src/FtpNegotiationCommand.cc
  12836. Suppressed wrong message when finding PreDownloadHandler
  12837. * src/RequestGroup.cc
  12838. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12839. Updated usage
  12840. * src/version_usage.cc
  12841. Updated man page
  12842. * doc/aria2c.1.txt
  12843. * doc/aria2c.1
  12844. Updated po files
  12845. * po/aria2c.pot
  12846. * po/*.po
  12847. * po/*.gmo
  12848. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12849. Eliminated g++-4.2 warning
  12850. * src/DownloadHandlerConstants.{h, cc}
  12851. * src/Util.cc
  12852. * test/MetaFileUtilTest.cc
  12853. * test/PStringBuildVisitorTest.cc
  12854. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12855. * src/RequestGroup.cc
  12856. * src/BtCheckIntegrityEntry.cc
  12857. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12858. Fixed a2io.h
  12859. * src/a2io.h
  12860. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12861. Added direct I/O support. The current implementation uses O_DIRECT,
  12862. which is not posix standard and is tested on linux 2.6.21.
  12863. Currently only file allocation uses direct I/O.
  12864. * src/SingleFileAllocationIterator.{h, cc}
  12865. * test/SingleFileAllocationIteratorTest.cc
  12866. * src/MultiFileAllocationIterator.{h, cc}
  12867. * test/MultiFileAllocationIteratorTest.cc
  12868. * src/BinaryStream.h
  12869. * src/DiskWriter.h
  12870. * src/AbstractDiskWriter.{h, cc}
  12871. * src/ByteArrayDiskWriter.h
  12872. * src/DiskAdaptor.h
  12873. * src/AbstractSingleDiskAdaptor.{h, cc}
  12874. * src/MultiDiskAdaptor.{h, cc}
  12875. * src/FileAllocationEntry.cc
  12876. * src/Util.{h, cc}
  12877. * src/OptionHandlerFactory.cc
  12878. * src/prefs.h
  12879. * src/version_usage.cc
  12880. * src/option_processing.cc
  12881. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12882. handleException.
  12883. * src/MultiFileAllocationIterator.cc
  12884. Added EINTR handling
  12885. * src/SocketCore.cc
  12886. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12887. Updated usage
  12888. * src/version_usage.cc
  12889. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12890. Applied Ross's patch for MinGW port.
  12891. * src/DownloadEngine.h
  12892. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12893. Set Content-Type to SingleFileDownloadContext when http response is
  12894. received.
  12895. * src/HttpResponseCommand.cc
  12896. * src/HttpResponse.{h, cc}
  12897. * test/HttpResponseTest.cc
  12898. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12899. Rewritten to add content-type support.
  12900. * src/DownloadHandler.{h, cc}
  12901. * src/BtPostDownloadHandler.{h, cc}
  12902. * test/BtPostDownloadHandlerTest.cc
  12903. * src/MetalinkPostDownloadHandler.{h, cc}
  12904. * test/MetalinkPostDownloadHandlerTest.cc
  12905. * src/PostDownloadHandler.{h, cc}
  12906. * src/DownloadHandlerConstants.{h, cc}
  12907. * src/RequestGroup.cc
  12908. * src/HttpResponseCommand.cc
  12909. * src/FtpNegotiationCommand.cc
  12910. * src/SingleFileDownloadContext.{h, cc}
  12911. * src/RequestGroup.h
  12912. * src/RequestGroupCriteria.h
  12913. * src/ContentTypeRequestGroupCriteria.h
  12914. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12915. If it is give, metalink/torrent file is not written to the disk, but
  12916. just is kept in memory. Parsing is occurred on memory.
  12917. * src/MetalinkHelper.{h, cc}
  12918. * src/MetalinkProcessor.h
  12919. * src/Xml2MetalinkProcessor.{h, cc}
  12920. * test/Xml2MetalinkProcessorTest.cc
  12921. * src/DownloadHandlerFactory.{h, cc}
  12922. * test/DownloadHandlerFactoryTest.cc
  12923. * src/PreDownloadHandler.{h, cc}
  12924. * src/OptionHandlerFactory.cc
  12925. * src/DefaultBtContext.{h, cc}
  12926. * test/DefaultBtContextTest.cc
  12927. * src/version_usage.cc
  12928. * src/Metalink2RequestGroup.{h, cc}
  12929. * src/RequestGroup.{h, cc}
  12930. * src/a2functional.h
  12931. * test/a2functionalTest.cc
  12932. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12933. * src/OptionHandlerImpl.h
  12934. * src/prefs.h
  12935. * src/Util.{h, cc}
  12936. * test/UtilTest.cc
  12937. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12938. memory usage.
  12939. * src/RequestGroupMan.{h, cc}
  12940. * src/DownloadEngine.cc
  12941. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12942. WeakHandle to SharedHandle because WeakHandle could be null.
  12943. * src/RequestGroup.{h, cc}
  12944. * src/DownloadEngineFactory.cc
  12945. * src/DownloadResult.h
  12946. Set totalLength after download finished
  12947. * src/UnknownLengthPieceStorage.{h, cc}
  12948. Keep torrent file specified in metalink in memory.
  12949. * src/Metalink2RequestGroup.cc
  12950. * src/BtDependency.cc
  12951. * src/TrueRequestGroupCriteria.h
  12952. Fixed the bug: seekg is used where seekp should be used.
  12953. * src/ByteArrayDiskWriter.cc
  12954. * test/ByteArraydiskWriterTest.cc
  12955. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12956. Fixed syntax error
  12957. * test/SequenceTest.cc
  12958. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12959. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12960. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12961. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12962. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12963. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12964. Added the check to see whether ares_host_callback accepts timeouts
  12965. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12966. * src/NameResolver.{h, cc}
  12967. * m4/libcares.m4
  12968. * configure.ac: Set C++ for language choice.
  12969. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12970. Fixed: compilation fails without c-ares/ares
  12971. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12972. Generate http/ftp commands only when download is incomplete.
  12973. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12974. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12975. Corrected typo. Examples are removed since they are available in man
  12976. page.
  12977. * src/version_usage.cc
  12978. Updated man page.
  12979. * doc/aria2c.1
  12980. * doc/aria2c.1.txt
  12981. * doc/makeman: Commented out sed command.
  12982. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12983. Throw DlAbortEx when a remote file is not found.
  12984. * src/HttpResponse.cc
  12985. * src/FtpNegotiationCommand.cc
  12986. * src/message.h
  12987. Overwrite an existing file if --allow-overwrite=true is given.
  12988. * src/RequestGroup.cc
  12989. Removed unused functions
  12990. * src/AbstractCommand.h
  12991. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12992. Removed 'extern' from 'extern typedef ...' in src/*.h
  12993. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12994. Updated usage
  12995. * src/version_usage.cc
  12996. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12997. Trim announce URL
  12998. * src/DefaultBtContext.cc
  12999. * test/ShaVisitorTest.cc
  13000. Trim argument s. Give trimed s to exception constructor.
  13001. * src/Util.cc (parseInt)(parseLLInt)
  13002. * test/UtilTest.cc
  13003. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13004. Set precision back to 1.
  13005. * src/ConsoleStatCalc.cc (calculateStat)
  13006. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13007. Replaced strtol with Util::parseInt
  13008. * src/ChunkedEncoding.cc
  13009. * src/HttpConnection.cc
  13010. * src/CookieBoxFactory.cc
  13011. * src/ParameterizedStringParser.cc
  13012. * src/Util.cc
  13013. * test/UtilTest.cc
  13014. * test/OptionHandlerTest.cc
  13015. * src/Request.cc
  13016. Throw exception when empty string is given. The message for exception
  13017. changed.
  13018. * src/Util.cc (parseInt)(parseLLInt)
  13019. * src/message.h
  13020. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13021. Set precision to 2 because share ratio is rounded into 1.0 if precision
  13022. set to 1.
  13023. * src/ConsoleStatCalc.cc (calculateStat)
  13024. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13025. Preallocate non-requested file which is adjacent forward to requested
  13026. file('requested' files means the files given in --select-file option)
  13027. if they share a same piece.
  13028. This fixes long pause in the file system which doesn't support sparse
  13029. files like FAT32 while downloading.
  13030. * src/MultiFileAllocationIterator.{h, cc}
  13031. * test/MultiFileAllocationIteratorTest.cc
  13032. * src/FileEntry.{h, cc}
  13033. Removed unused _option.
  13034. * src/MultiDiskAdaptor.h
  13035. * test/MultiDiskAdaptorTest.cc
  13036. * src/DefaultPieceStorage.cc
  13037. Set the default value of --seed-ratio to 1.0.
  13038. If 0.0 is given, then seeding continues regardless of share ratio.
  13039. * src/version_usage.cc
  13040. * src/option_processing.cc
  13041. * src/BtSetup.cc
  13042. * doc/aria2c.1.txt
  13043. * doc/aria2c.1
  13044. Fixed: Selective download is not working in BitTorrent
  13045. * src/RequestGroup.cc
  13046. Introduced Sequence class. Use this instead of Util::unfoldRange()
  13047. * src/PieceStorage.h
  13048. * test/MockPieceStorage.h
  13049. * src/UnknownLengthPieceStorage.h
  13050. * src/DefaultPieceStorage.{h, cc}
  13051. * src/Metalink2RequestGroup.cc
  13052. * src/RequestGroup.cc
  13053. * src/Sequence.h
  13054. * test/SequenceTest.cc
  13055. * src/IntSequence.h
  13056. * src/message.h
  13057. * src/Util.{h, cc}
  13058. * test/UtilTest.cc
  13059. Added new function 'parse' to catch exception thrown by subclass's
  13060. parseArg
  13061. * src/OptionHandler.h
  13062. * src/OptionParser.cc
  13063. * src/NameMatchOptionHandler.h
  13064. * src/OptionHandlerImpl.h
  13065. * test/OptionHandlerTest.cc
  13066. Added IntegerRangeOptionHandler. Used for --listen-port and
  13067. --select-file. Now --listen-port accepts range of port.
  13068. * src/OptionHandlerFactory.cc
  13069. * src/version_usage.cc
  13070. * src/OptionHandlerImpl.h
  13071. * src/option_processing.cc
  13072. * src/BtSetup.cc
  13073. * src/PeerListenCommand.{h, cc}
  13074. * doc/aria2c.1.txt
  13075. * doc/aria2c.1
  13076. Implemented operator< for Exception class to provide easy way to print
  13077. exception stack trace.
  13078. * src/Exception.{h, cc}
  13079. * src/main.cc
  13080. * src/option_processing.cc
  13081. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13082. * src/version_usage.cc
  13083. (showVersion): Reworked.
  13084. (showUsage): Added examples.
  13085. Removed Hint for total length and file name.
  13086. * src/Metalink2RequestGroup.cc
  13087. * src/RequestGroup.{h, cc}
  13088. * src/HttpResponseCommand.cc
  13089. * src/FtpNegotiationCommand.cc
  13090. Now --follow-torrent and --follow-metalink option work properly.
  13091. * src/RequestGroup.cc
  13092. Updated man page
  13093. * doc/aria2c.1.txt
  13094. * doc/aria2c.1
  13095. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13096. Removed.
  13097. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  13098. Use Segment::operator==()
  13099. * src/HttpConnection.cc
  13100. * src/Segment.h
  13101. Updated usage
  13102. * src/version_usage.cc
  13103. Added EINTR treatment.
  13104. * src/SocketCore.cc
  13105. * src/AbstractDiskWriter.cc
  13106. Rewritten.
  13107. * src/Util.cc (rangedFileCopy)
  13108. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13109. Fixed typo.
  13110. * src/version_usage.cc
  13111. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13112. Implemented. Now -c option works fine.
  13113. * src/DefaultPieceStorage.cc (markPiecesDone)
  13114. * test/DefaultPieceStorageTest.cc
  13115. Removed.
  13116. * src/SegmentMan.{h, cc}
  13117. (markAllPiecesDone)
  13118. (markPieceDone)
  13119. Synchronized po files with
  13120. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  13121. * src/fr.po
  13122. * src/ru.po
  13123. * src/de.po
  13124. * src/ja.po
  13125. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13126. Added ifdef and some modifications to compile without BitTorrent,
  13127. Metalink, MessageDigest
  13128. support.
  13129. * src/PieceHashCheckIntegrityEntry.cc
  13130. * src/MetalinkEntry.h
  13131. * src/version_usage.cc
  13132. * src/main.cc
  13133. * src/DownloadEngine.{h, cc}
  13134. * src/Metalink2RequestGroup.cc
  13135. * src/Peer.cc
  13136. * src/RequestGroup.cc
  13137. * src/MetalinkHelper.cc
  13138. * test/DefaultPieceStorageTest.cc
  13139. * test/MetalinkPostDownloadHandlerTest.cc
  13140. * test/Metalink2RequestGroupTest.cc
  13141. Hide TOTAL SPD when all downloads complete.
  13142. * src/ConsoleStatCalc.cc
  13143. Log target system information.
  13144. * src/main.cc
  13145. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13146. Now --metalink-location accepts a comma-deliminated list of locations.
  13147. * src/MetalinkEntry.{h, cc}
  13148. * test/MetalinkEntryTest.cc
  13149. * src/version_usage.cc
  13150. * src/Metalink2RequestGroup.cc
  13151. * src/Xml2MetalinkProcessor.cc
  13152. * test/Xml2MetalinkProcessorTest.cc
  13153. * doc/aria2c.1.txt
  13154. * doc/aria2c.1
  13155. * src/Util.cc (toUpper)(toLower): Rewritten.
  13156. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13157. Added the ability to detect duplicate download entry which is about to
  13158. download the same file other RequestGroup is downloading.
  13159. * src/RequestGroup.cc
  13160. * src/HttpResponseCommand.cc
  13161. * src/FtpNegotiationCommand.cc
  13162. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13163. Recalculates download progress when loading a control file,
  13164. if the piece length of DownloadContext is different from the one saved
  13165. in the control file. Currently in-flight pieces are ignored.
  13166. * src/DefaultBtProgressInfoFile.cc
  13167. * test/DefaultBtProgressInfoFileTest.cc
  13168. * src/Util.{h, cc}
  13169. * test/UtilTest.cc
  13170. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13171. Do not rotate tiers in announce-list.
  13172. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  13173. AnnounceList::allTiersFailed() used instead to detect whether all
  13174. tiers are tried and failed.
  13175. * test/DefaultBtAnnounceTest.cc
  13176. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  13177. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  13178. * test/AnnounceListTest.cc
  13179. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  13180. clause. Catch RecoverableException instead of DlRetryEx instead.
  13181. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13182. Implemented checksum validation feature(1 checksum for each file)
  13183. The validation takes place after the download.
  13184. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  13185. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  13186. * src/CheckIntegrityCommand.cc: Changed log message.
  13187. * src/Metalink2RequestGroup.cc: Set checksum to
  13188. SingleFileDownloadContext.
  13189. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  13190. PieceHashCheckIntegrity class.
  13191. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  13192. PieceHashCheckIntegrity class.
  13193. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  13194. * src/IteratableValidator.h: New class.
  13195. * src/message.h
  13196. * src/CheckIntegrityEntry.{h, cc}
  13197. * src/IteratableChunkChecksumValidator.{h, cc}
  13198. * src/SingleFileDownloadContext.h
  13199. * src/DownloadCommand.cc
  13200. --allow-overwrite=true is no longer needed to check file integrity
  13201. before download in BitTorrent download.
  13202. * src/RequestGroup.cc (getInitialCommand)
  13203. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  13204. throws exception.
  13205. * src/RequestGroupMan.cc (getInitialCommands)
  13206. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13207. urlencode the given url inside Request::parseUrl(...)
  13208. * src/Request.{h, cc}
  13209. * src/Util.{h, cc}
  13210. * test/RequestTest.cc
  13211. Removed #!metalink3! notation support because it is deleted from
  13212. the metalink specification.
  13213. * src/Request.{h, cc}
  13214. * test/RequestTest.cc
  13215. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13216. Don't connect server before checking file integrity at startup, if
  13217. filesize and output file path are known.
  13218. * src/AbstractCommand.cc
  13219. * src/StreamFileAllocationEntry.cc
  13220. * src/Metalink2RequestGroup.cc
  13221. * src/RequestGroup.{h, cc}
  13222. * src/HttpResponseCommand.cc
  13223. * src/FtpNegotiationCommand.cc
  13224. Added DownloadFailureException. If it is thrown, RequestGroup should
  13225. halt.
  13226. * src/AbstractCommand.cc
  13227. * src/DownloadFailureException.h
  13228. * src/RequestGroup.cc
  13229. Catch RecoverableException, instead of DlAbortEx.
  13230. * src/RequestGroupMan.cc
  13231. * src/FillRequestGroupCommand.cc
  13232. * src/MetaFileUtil.cc
  13233. * src/IteratableChunkChecksumValidator.cc
  13234. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  13235. getGID())
  13236. * src/CheckIntegrityCommand.cc
  13237. * src/message.h
  13238. Print gid instead of idx.
  13239. * src/RequestGroupMan.cc
  13240. Removed exception throwers declaration.
  13241. * src/DirectDiskAdaptor.{h, cc}
  13242. * src/SocketCore.{h, cc}
  13243. * src/MultiDiskAdaptor.{h, cc}
  13244. * src/HttpConnection.{h, cc}
  13245. * src/HttpResponse.{h, cc}
  13246. * src/DiskAdaptor.{h, cc}
  13247. * src/CopyDiskAdaptor.{h, cc}
  13248. * src/MultiDiskAdaptor.{h, cc}
  13249. * src/HttpHeaderProcessor.{h, cc}
  13250. * src/AbstractSingleDiskAdaptor.{h, cc}
  13251. * src/Util.{h, cc}
  13252. * test/UtilTest.cc
  13253. * src/DefaultDiskWriter.{h, cc}
  13254. * src/FtpConnection.{h, cc}
  13255. * src/AbstractDiskWriter.{h, cc}
  13256. Removed duplicate code.
  13257. * src/StreamCheckIntegrityEntry.cc
  13258. Removed unnecessary include.
  13259. * src/DiskWriter.h
  13260. Included Exception.h
  13261. * src/option_processing.cc
  13262. Included 2 files and added doc
  13263. * src/TrackerWatcherCommand.cc
  13264. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  13265. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13266. Changed CheckIntegrityEntry interface so that it can define
  13267. the action when all the chunk checksums are valid.
  13268. * src/CheckIntegrityEntry.h
  13269. * src/StreamCheckIntegrityEntry.{h, cc}
  13270. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  13271. are valid, then aira2 goes to seeding mode. Sometimes it is better
  13272. to exit rather than doing seeding. So, it would be good to toggle this
  13273. behavior.
  13274. * src/CheckIntegrityCommand.cc
  13275. * src/AbstractCommand.cc
  13276. * src/RequestGroup.cc
  13277. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13278. Reflect the download length of in-flight pieces.
  13279. It makes the download length readout more precise.
  13280. * src/DefaultPieceStorage.{h, cc}
  13281. * test/DefaultPieceStorageTest.cc
  13282. * src/a2functional.h
  13283. * test/a2functionalTest.cc
  13284. Lower CPU load when --max-download-limit is used.
  13285. There is up and down in speed indicator when enabling
  13286. http-pipelining but a download goes well. I think the problem is that
  13287. because http-pipelining is enabled, DownloadCommand is created for
  13288. each segment and in its constructor, PeerStat::downloadStart() is
  13289. called. In PeerStat::downloadStart(), speed calculation object is
  13290. reseted, which makes download speed zero.
  13291. * src/DownloadCommand.cc
  13292. Rewritten using accumulate.
  13293. * src/RequestGroupMan.cc (calculateStat)
  13294. Code clearnup.
  13295. * src/FtpNegotiationCommand.cc
  13296. * src/HttpResponseCommand.cc
  13297. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13298. Fixed: Can not resume: aria2 reports download already finished.
  13299. * src/AbstractCommand.{h, cc}
  13300. * src/HttpResponseCommand.cc
  13301. * src/FtpNegotiateCommand.cc
  13302. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13303. Now a file is stored in the directory specified in .metalnk file
  13304. (file[@name]).
  13305. * src/Metalink2RequestGroup.cc
  13306. Create the directory structure when opening the file if it doesn't
  13307. exist.
  13308. * src/AbstractDiskWriter.cc
  13309. * src/Util.{h, cc}
  13310. * src/File.h
  13311. * test/UtilTest.cc
  13312. Removed file name comparison
  13313. * src/Metalink2RequestGroup.cc
  13314. * src/HttpResponseCommand.cc
  13315. Rewritten using Util::mkdirs()
  13316. * src/FileEntry.cc (setupDir)
  13317. * test/FileEntryTest.cc
  13318. Updated doc
  13319. * src/SingleFileDownloadContext.h
  13320. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13321. Now SleepCommand dispatches nextCommand when halt is requested.
  13322. It avoids a possible long wait after hitting CTRL-C.
  13323. * src/SleepCommand.{h, cc}
  13324. * src/RequestGroupAware.{h, cc}
  13325. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13326. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  13327. to open listen port, then remove the port number from the tracker
  13328. request.
  13329. * src/DefaultBtAnnounce.cc
  13330. * test/DefaultBtAnnounceTest.cc
  13331. * test/MockPieceStorage.h
  13332. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  13333. them more testable.
  13334. * src/DefaultBtAnnounce.{h, cc}
  13335. * src/DefaultBtContext.{h, cc}
  13336. * src/Util.{h, cc}
  13337. * test/DefaultBtAnnounceTest.cc
  13338. * test/DefaultBtContextTest.cc
  13339. * test/UtilTest.cc
  13340. Added 'B' to upload bytes readout.
  13341. * src/ConsoleStatCalc.cc
  13342. Now the listen port for BitTorrent download is opened when it is
  13343. needed.
  13344. * src/DownloadEngineFactory.cc
  13345. * src/BtSetup.{h, cc}
  13346. * src/PeerListenCommand.{h, cc}
  13347. Now an exception thrown while parsing tracker response is now logged.
  13348. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  13349. called, which means no retry is made in this case, assuming a tracker
  13350. has a problem.
  13351. * src/TrackerWatcherCommand.cc
  13352. Fixed: downloading a file whose length is unkown fails.
  13353. * src/DownloadCommand.cc
  13354. Simplified prepareForNextSegment()
  13355. * src/DownloadCommand.cc
  13356. Updated
  13357. * po/POTFILES.in
  13358. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13359. Re-implemented a file listing for Metalink, which was dropped while
  13360. http/ftp/torrent integration was being implemented.
  13361. * src/MetalinkHelper.{h, cc}: New class.
  13362. * test/MetalinkHelperTest.cc
  13363. * src/main.cc
  13364. * src/Metalink2RequestGroup.cc
  13365. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13366. Added the ability to display the detailed torrent file information.
  13367. Now -S option gives not only a file listing, but also total download
  13368. length, info hash, announce URI, piece length, the number of pieces,
  13369. and mode(single or multi-torrent).
  13370. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  13371. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  13372. KiB)
  13373. * test/UtilTest.cc
  13374. * src/main.cc
  13375. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13376. Added ftp://USER:PASSWD@Servername automatic parsing.
  13377. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  13378. _password. Recognize username and password in URI.
  13379. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  13380. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  13381. * src/RequestFactory.{h, cc}: Removed.
  13382. * src/AuthConfigFactory.{h, cc}: New class.
  13383. * src/FtpConnection.cc: Use AuthConfigFactory.
  13384. * src/HttpRequest.cc: Use AuthConfigFactory.
  13385. * test/HttpRequestTest.cc: Updated.
  13386. * test/RequestTest.cc: Updated.
  13387. * test/AuthConfigFactoryTest.cc: New class.
  13388. * test/RequestFactoryTest.cc: Removed.
  13389. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13390. Use RequestGroup::allDownloadFinished() to decide whether the control
  13391. file should be removed or saved.
  13392. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  13393. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  13394. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13395. Use File::renameTo()
  13396. * src/DefaultBtProgressInfoFile.cc
  13397. Added --no-file-allocation-limit command-line option.
  13398. * src/version_usage.cc
  13399. * src/option_processing.cc
  13400. * src/OptionHandlerFactory.cc
  13401. * src/RequestGroup.{h, cc}
  13402. * src/BtCheckIntegrityEntry.cc
  13403. * src/StreamCheckIntegrityEntry.cc
  13404. * src/prefs.h
  13405. * doc/aria2c.1.txt
  13406. * doc/aria2c.1
  13407. Now prealloc is the default value for --file-allocation option.
  13408. * src/version_usage.cc
  13409. * src/option_processing.cc
  13410. * doc/aria2c.1.txt
  13411. * doc/aria2c.1
  13412. Don't URL-encode user-agent.
  13413. * src/HttpRequest.cc
  13414. Updated translations
  13415. * po/LINGUAS: Added nl for Dutch translation.
  13416. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  13417. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  13418. * po/POTFILES.in: Updated.
  13419. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13420. Added the ability to recognize url-list in a torrent file.
  13421. The retrieved URLs are attached to the corresponding FileEntry.
  13422. * src/DefaultBtContext.{h, cc}
  13423. * src/FileEntry.{h, cc}
  13424. * test/DefaultBtContextTest.cc
  13425. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13426. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  13427. after the download finishes.
  13428. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13429. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  13430. the data smaller than block length.
  13431. A block length can be specified by constructor's argument.
  13432. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  13433. Get a missing piece in the range of given FileEntry. This function is
  13434. not used in the program yet.
  13435. * src/Util.h: Added some macros.
  13436. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13437. Added HTTP/1.1 keep alive and pipelining support.
  13438. See --enable-http-keep-alive and --enable-http-pipelining option.
  13439. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  13440. Segment.
  13441. * src/HttpDownloadCommand.{h, cc}
  13442. * src/OptionHandlerFactory.cc
  13443. * src/HttpConnection.{h, cc}
  13444. * src/version_usage.cc
  13445. * src/HttpInitiateConnectionCommand.cc
  13446. * src/FtpInitiateConnectionCommand.cc
  13447. * src/Segment.h
  13448. * src/HttpRequestCommand.{h, cc}
  13449. * src/option_processing.cc
  13450. * src/prefs.h
  13451. * src/HttpResponseCommand.cc
  13452. * src/SegmentMan.{h, cc}
  13453. * src/FtpNegotiateCommand.cc
  13454. * src/HttpProxyResponseCommand.cc
  13455. * src/Request.cc
  13456. * src/HttpRequest.cc
  13457. * src/DownloadCommand.cc
  13458. * test/HttpRequestTest.cc
  13459. * test/RequestTest.cc
  13460. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13461. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  13462. finished.
  13463. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13464. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  13465. catching it inside the method.
  13466. When no file entry is found in a metalink without querying user
  13467. preferences, throw the exception with the error message that suggests
  13468. metalink file is probably broken.
  13469. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  13470. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13471. Fixed the bug that prevents remote Metalink/Torrent file from begin
  13472. processed.
  13473. * src/RequestGroupMan.cc (removeStoppedGroup)
  13474. Added debug message.
  13475. * src/BtPostDownloadHandler.cc
  13476. * src/MetalinkPostDownloadHandler.cc
  13477. * src/PostDownloadHandler.{h, cc}
  13478. * src/RequestGroup.cc
  13479. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13480. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  13481. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13482. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  13483. stops and there are any unfinished or in-progress downloads.
  13484. Added the legend of "stat".
  13485. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13486. Throw exception when chunck checksum verification fails.
  13487. * src/DownloadCommand.cc (validatePieceHash): New function.
  13488. * src/PiecedSegment.{h, cc} (clear): New function.
  13489. * src/GrowSegment.{h, cc} (clear): New function.
  13490. * src/Segment.h (clear): New function.
  13491. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  13492. * test/SegmentTest.cc
  13493. * test/GrowSegmentTest.cc
  13494. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13495. Do not send referer when redirected.
  13496. * src/Request.cc (redirectUrl)
  13497. * test/RequestTest.cc
  13498. * test/HttpRequestTest.cc
  13499. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13500. Implemented BitTorrent/http/ftp integrated download.
  13501. I've rewritten lots of files and now some headers have forward
  13502. class declarations to reduce compile time.
  13503. The implementation is extremely alpha stage, I recommend to use this
  13504. for testing purpose only.
  13505. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13506. Fixed the compilation error on 64bit platform.
  13507. * test/HttpHeaderProcessorTest.cc
  13508. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13509. Merged Ross's patch that fixes compilation problem in MinGW
  13510. * test/DefaultBtProgressInfoFileTest.cc
  13511. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13512. Updated fr.po by sebone
  13513. * po/fr.po
  13514. Updated man page.
  13515. * doc/aria2c.1.txt
  13516. * Release 0.11.3
  13517. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13518. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  13519. failure in Metalink.
  13520. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13521. Automatically save *.aria2 control file of http/ftp download in every
  13522. 60 seconds.
  13523. * src/AutoSaveCommand.{h, cc}: New class.
  13524. * src/TimeBasedCommand.{h, cc}: New class.
  13525. * src/DownloadEngineFactory.cc (newConsoleEngine)
  13526. Disable parameterized URI support by default. Added -P option to
  13527. enable the feature.
  13528. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  13529. * src/OptionHandlerFactory.cc
  13530. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  13531. Updated Japanese translation.
  13532. * po/ja.po
  13533. Updated man page.
  13534. * doc/aria2c.1.txt
  13535. * Release 0.11.3-rc
  13536. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13537. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  13538. it is successful, then renamed to *.aria2.
  13539. This prevents *.aria2 file from being truncated or corrupted when
  13540. file system becomes out of space.
  13541. * src/DefaultBtProgressInfoFile.cc (save)
  13542. * src/SegmentMan.cc (save)
  13543. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  13544. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13545. Reduced the fragmentation of bitfield in http/ftp download.
  13546. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  13547. * test/BitfieldManTest.cc
  13548. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13549. Added the ability to disable segmented download in .metalink.
  13550. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  13551. 'url' tag.
  13552. * src/MetalinkEntry.{h, cc}
  13553. * src/RequestResource.{h, cc}
  13554. * src/MetalinkRequestInfo.cc
  13555. * src/Xml2MetalinkProcessor.cc
  13556. * test/Xml2MetalinkProcessorTest.cc
  13557. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13558. Added parameterized URI support.
  13559. * src/main.cc: -Z option added.
  13560. * src/OptionHandlerFactory.cc
  13561. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  13562. * src/PStringDatum.h: New class.
  13563. * src/PStringSegment.{h,cc}: New class.
  13564. * src/PStringNumLoop.h: New class.
  13565. * src/PStringSelect.h: New class.
  13566. * src/NumberDecorator.h: New class.
  13567. * src/FixedWidthNumberDecorator.h: New class.
  13568. * src/AlphaNumberDecorator.h: New class.
  13569. * src/PStringVisitor.h: New class.
  13570. * src/PStringBuildVisitor.{h,cc}: New class.
  13571. * src/ParameterizedStringParser.{h,cc}: New class.
  13572. * src/Util.{h,cc}
  13573. (isNumber): New function.
  13574. (isLowercase): New function.
  13575. (isUppercase): New function.
  13576. (alphaToNum): New function.
  13577. * test/ParameterizedStringParserTest.cc: New class.
  13578. * test/AlphaNumberDecoratorTest.cc: New class.
  13579. * test/PStringBuildVisitorTest.cc: New class.
  13580. * test/UtilTest.cc
  13581. (testIsNumber): New function.
  13582. (testIsLowercase): New function.
  13583. (testIsUppercase): New function.
  13584. (testAlphaToNum): New function.
  13585. Added '\n' after the error message
  13586. * src/RequestInfo.h (printDownloadAbortMessage)
  13587. Added auto file renaming feature in http(s)/ftp download.
  13588. * src/main.cc: Added --auto-file-renaming command-line option.
  13589. * src/OptionHandlerFactory.cc
  13590. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  13591. * src/RequestGroup.{h, cc}
  13592. (shouldCancelDownloadForSafety): Rewritten
  13593. (tryAutoFileRenaming): New function.
  13594. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  13595. * src/HttpResponseCommand.cc
  13596. (executeInternal): Removed the call to RequestGroupMan::
  13597. isSameFileBeingDownloaded()
  13598. * src/FtpNegotiateCommand.cc
  13599. (recvSize): Removed the call to RequestGroupMan::
  13600. isSameFileBeingDownloaded()
  13601. * test/RequestGroupTest.cc: New class.
  13602. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13603. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  13604. IO.
  13605. * src/DefaultBtProgressInfoFile.cc
  13606. * src/MetaFileUtil.cc
  13607. * src/SimpleLogger.cc
  13608. * src/SegmentMan.cc
  13609. * src/Util.cc
  13610. * src/Platform.cc
  13611. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13612. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  13613. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13614. Avoid sparse files if possible, because VFAT32 doesn't support it.
  13615. * src/DefaultDiskWriter.cc (initAndOpenFile)
  13616. Fixed the bug that prevents file allocation is not done when
  13617. dowloading multi-torrent file.
  13618. * src/AbstractDiskWriter.cc (openFile)
  13619. Increase the maximum number of -j option from 15 to 45.
  13620. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13621. Added fr.po, thanks to Charles Landemaine.
  13622. * po/fr.po
  13623. * po/LINGUAS
  13624. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13625. gcc 3.4.4 support:
  13626. * src/DefaultBtContext.cc: int32_t -> int
  13627. * src/main.cc: int -> int32_t, int32_t -> int
  13628. * src/messageDigest.h: uint32_t -> unsigned int
  13629. * src/NameResolver.h: int32_t -> int
  13630. * src/PeerConnection.cc: int -> int32_t
  13631. * src/SpeedCalc.cc: int32_t -> int
  13632. * src/TrackerUpdateCommand.h: int -> int32_t
  13633. * src/Util.cc: int32_t -> int
  13634. * src/Util.h: int32_t -> int
  13635. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  13636. * test/AnnounceListTest.cc: int -> int32_t
  13637. * test/ChunkedEncodingTest.cc: int -> int32_t
  13638. * test/DataTest.cc: int -> int32_t
  13639. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  13640. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  13641. * test/DefaultPieceStorageTest.cc: int -> int32_t
  13642. * test/FeatureConfigTest.cc: int -> int32_t
  13643. * test/MetalinkEntryTest.cc: int -> int32_t
  13644. * test/MockBtRequestFactory.h: int -> int32_t
  13645. * test/MockPieceStorage.h: int -> int32_t
  13646. * test/OptionTest.cc: int -> int32_t
  13647. * test/RequestTest.cc: int -> int32_t
  13648. * test/SegmentManTest.cc: int -> int32_t
  13649. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  13650. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13651. Move sleep functions to Util class:
  13652. * src/Util.cc
  13653. (sleep): New function.
  13654. (usleep): New function.
  13655. * src/DownloadCommand.cc: sleep -> Util::sleep
  13656. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  13657. MinGW build enhancements. The following files are added:
  13658. * src/timegm.{c,h}
  13659. Changes to support the above new files:
  13660. * configure.ac
  13661. * src/Makefile.am
  13662. * src/a2time.h
  13663. * src/Util.cc:
  13664. * src/strptime.c: Added support for %Z option.
  13665. Fixed MinGW non-blocking bug.
  13666. * src/SocketCore.cc
  13667. * src/HttpRequestCommand.cc
  13668. Miscellenous build fixes/enhancements.
  13669. * configure.ac: Added summary report.
  13670. * src/Platform.h: Tweaked #include's.
  13671. * src/a2netcompat.h: Tweaked #include's.
  13672. * src/strptime.h: Tweaked #include's.
  13673. * src/gai_strerror.c: Tweaked #include's.
  13674. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  13675. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  13676. * src/gettimeofday.h: Added HAVE_CONFIG_H
  13677. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13678. Increased the initial connection size in BitTorrent download to 40.
  13679. * src/BtRuntime.h
  13680. Added the usage message of --peer-id-prefix option.
  13681. * src/main.cc
  13682. * Release 0.11.2
  13683. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13684. MessageDigestHelper is introduced in order to simplify the use
  13685. of message digest. Removed repeated code.
  13686. The message digest algorithm is now specified by string, like "sha1",
  13687. "md5".
  13688. * src/messageDigest.{h, cc}
  13689. * src/MessageDigestHelper.{h, cc}: New class.
  13690. * src/DefaultPieceStorage.cc
  13691. * src/DefaultBtContext.{h, cc}
  13692. (computeFastSet): New function.
  13693. (setInfoHash): Added for unit testing.
  13694. (setNumPieces): Added for unit testing.
  13695. * src/DefaultBtInteractive.cc
  13696. * src/BtPieceMessage.cc
  13697. * src/Peer.cc
  13698. * src/Checksum.h
  13699. * src/message.h
  13700. * src/IteratableChecksumValidator.h
  13701. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  13702. inside it.
  13703. * src/SegmentMan.{h, cc}
  13704. (checkIntegrity): Removed.
  13705. * src/IteratableChunkChecksumValidator.{h, cc}
  13706. * src/Util.h
  13707. (sha1Sum): Removed.
  13708. (simpleMessageDigest): Removed.
  13709. (fileChecksum): Removed.
  13710. (computeFastSet): Removed.
  13711. * src/ShaVisitor.cc
  13712. * src/ChunkChecksum.h
  13713. * src/DownloadCommand.cc
  13714. Removed messageDigest virtual functions.
  13715. * src/MultiDiskAdaptor.{h, cc}
  13716. * src/DiskAdaptor.h
  13717. * src/ByteArrayDiskWriter.h
  13718. * src/DiskWriter.h
  13719. * src/DiskAdaptorWriter.h
  13720. * src/AbstractSingleDiskAdaptor.{h, cc}
  13721. * src/AbstractDiskWriter.{h, cc}
  13722. Fixed comilation error when message digest is disabled.
  13723. * src/MetalinkEntry.{h, cc}
  13724. * src/MetalinkRequestInfo.cc
  13725. Removed srandom and random.
  13726. * src/SimpleRandomizer.h
  13727. Added size() virtual function to DiskAdaptor
  13728. * src/MultiDiskAdaptor.h
  13729. Fixed the bug that causes that files are not opened correctly in
  13730. multi-file torrent.
  13731. * src/TorrentRequestInfo.cc
  13732. * src/MultiDiskAdaptor.cc
  13733. Added SHA256 support
  13734. * src/messageDigest.cc
  13735. * src/Xml2MetalinkProcessor.cc
  13736. Show supported message digest algorithms
  13737. * src/main.cc
  13738. Updated contact info.
  13739. * src/main.cc
  13740. Applied Ross's patch
  13741. * src/a2netcompat.h
  13742. * src/main.cc
  13743. Fixed the bug that prevents a remote metalink from not being processed
  13744. even if '-o foo.metalink' is specified.
  13745. * src/MetalinkRequestInfo.cc
  13746. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13747. Merged Dan's patch:
  13748. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  13749. Use va_copy to avoid core dump on amd64:
  13750. * src/SimpleLogger.cc
  13751. Updated contact info.
  13752. * src/main.cc
  13753. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  13754. digest is not available.
  13755. * src/MetalinkEntry.h
  13756. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13757. Make a2netcompat.h include a2io.h to fix compilation error:
  13758. * src/a2netcompat.h
  13759. * src/SocketCore.cc: Removed include of a2io.h
  13760. * src/Util.cc: Removed include of a2io.h
  13761. Gather time related functions to a2time.h:
  13762. * src/a2time.h: New file.
  13763. * src/DefaultPeerStorage.cc
  13764. * src/SimpleLogger.cc
  13765. * src/Util.{h, cc}
  13766. * src/SimpleRandomizer.h
  13767. * src/TimeA2.{h,cc}
  13768. * src/DownloadCommand.cc
  13769. * src/main.cc
  13770. Removed #ifdef __MINGW32__ since gai_strerror is included in
  13771. a2netcompat.h:
  13772. * src/NameResolver.cc
  13773. Fixed compilation error without openssl:
  13774. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  13775. Added default block to suppress compiler warnings:
  13776. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  13777. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  13778. MinGW build enhancements. The following files are added:
  13779. * src/gai_strerror.{c,h}
  13780. * src/gettimeofday.{c,h}
  13781. Changes to support the above new files:
  13782. * configure.ac
  13783. * src/Makefile.am
  13784. * src/a2netcompat.h
  13785. * src/TimeA2.cc
  13786. * src/DefaultPeerStorage.cc
  13787. * src/NameResolver.cc: removed mingw_strerror() function.
  13788. * src/SocketCore.cc: removed mingw_strerror() function.
  13789. Miscellaneous MinGW build fixes.
  13790. * src/a2io.h: Use _lseeki64() instead of lseek()
  13791. * src/common.h
  13792. * src/DefaultFileAllocator.cc
  13793. * src/GlowFileAllocator.cc
  13794. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13795. * src/NameResolver.cc
  13796. (callback): Changed int32_t to int.
  13797. (resolve): Changed int32_t to int.
  13798. * src/Platform.cc
  13799. * src/Platform.h
  13800. * test/MultiDiskWriterTest.cc
  13801. * test/PeerMessageUtilTest.cc
  13802. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13803. Other enhancements and fixes.
  13804. * src/HttpRequestCommand.cc
  13805. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13806. * src/SocketCore.cc:
  13807. (error): New function to abstract errno/WSAGetLastError().
  13808. (errorMsg): New function to abstract errno/WSAGetLastError().
  13809. (initiateSecureConnection): Added more detailed error reporting.
  13810. * src/SocketCore.h: Added private variable blocking, to allow
  13811. proper handling of OpenSSL psuedo-errors.
  13812. * src/message.h
  13813. (EX_SSL_INIT_FAILURE)
  13814. (EX_SSL_IO_ERROR)
  13815. (EX_SSL_PROTOCOL_ERROR)
  13816. (EX_SSL_UNKNOWN_ERROR)
  13817. (EX_SSL_CONNECT_ERROR)
  13818. (EX_SOCKET_BLOCKING)
  13819. (EX_SOCKET_NONBLOCKING)
  13820. (EX_SOCKET_UNKNOWN_ERROR)
  13821. * src/Util.cc
  13822. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13823. reserved name.
  13824. (httpGMT): Fixed typo.
  13825. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13826. Merged Ross's win32 patch(manually)
  13827. In the course of merging, following files are added.
  13828. * src/strptime.{h,c}
  13829. * src/libgen.{h,c}
  13830. * src/inet_aton.{h,c}
  13831. * src/Platform.{h,cc}
  13832. * src/localtime_r.{h,c}
  13833. * src/getaddrinfo.{h,c}
  13834. I've gethered network related things, and put them to following file:
  13835. * src/a2netcompat.h
  13836. Also io related things are put to following file:
  13837. * src/a2io.h
  13838. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13839. * src/message.h
  13840. (MSG_ALLOCATION_COMPLETED)
  13841. (EX_TOO_LARGE_FILE)
  13842. (EX_SIZE_MISMATCH)
  13843. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13844. (EX_INVALID_CHUNK_CHECKSUM)
  13845. (EX_INVALID_RANGE_HEADER)
  13846. * src/FileAllocationCommand.cc
  13847. * src/HttpResponse.cc
  13848. * src/RequestGroup.cc
  13849. * src/MultiDiskAdaptor.cc
  13850. * src/OptionHandlerImpl.h
  13851. * src/HttpResponseCommand.cc
  13852. * src/FtpNegotiateCommand.cc
  13853. * src/IteratableChecksumValidator.cc
  13854. * src/SegmentMan.cc
  13855. * src/ChunkChecksumValidator.cc
  13856. Added Randomizer::getRandomNumber(long int)
  13857. * src/Randomizer.h (getRandomNumber)
  13858. * src/SimpleRandomizer.h (getRandomNumber)
  13859. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13860. * src/Util.cc (randomAlpha): Use this new function.
  13861. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13862. Converted int's to in32_t. long long int's are also converted to
  13863. int64_t
  13864. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13865. Fixed the bug that prevents cookies from being sent to the server
  13866. if the domain of cookie is FQDN and starts with ".".
  13867. * src/Cookie.cc (match)
  13868. To add the ability to change peer id.
  13869. * src/DefaultBtContext.h
  13870. (_peerIdPrefix): New variable
  13871. (setPeerIdPrefix): New function.
  13872. * src/torrentRequestInfo.cc
  13873. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13874. DefaultBtContext.
  13875. * src/main.cc (main): Added peer-id-prefix command-line option.
  13876. The usage message is not added yet.
  13877. * src/DefaultBtContext.cc
  13878. (generatePeerId): Use _peerIdPrefix.
  13879. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13880. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13881. Fixed the bug that prevents filename in content-disposition from
  13882. being retrieved when filename is not quoted.
  13883. * src/Util.cc (getContentDispositionFilename)
  13884. Fixed the bug that causes infinate loop and memory leak when file open
  13885. operation failed.
  13886. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13887. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13888. Fixed the bug that causes segfault when all URIs specified are
  13889. unsupported.
  13890. * src/RequestGroupMan.cc (getInitialCommands)
  13891. Check if RequestGroup::createNextCommand() returns empty list of
  13892. commands.
  13893. * src/RequestGroup.cc (createNextCommand)
  13894. Change log level from info to error so that users can notice that
  13895. an error occurred.
  13896. Fixed the bug that causes segfault when a zero-sized file is
  13897. downloaded.
  13898. * src/BitfieldMan.cc (isAllBitSet)
  13899. Return true if bitfieldLength is 0.
  13900. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13901. * src/main.cc
  13902. (showUsage): Added 3 usage examples for metalink download.
  13903. Replace MetalinkChunkChecksum with ChunkChecksum.
  13904. * src/MetalinkChunkChecksum.h: Removed.
  13905. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13906. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13907. * src/Xml2MetalinkProcessor.cc
  13908. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13909. * src/MetalinkRequestInfo.cc (execute)
  13910. * Release 0.11.1
  13911. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13912. Reads URIs from stdin when "-i -" is specified.
  13913. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13914. * src/UriListParser.h, src/UriListParser.cc: New class.
  13915. * src/StreamUriListParser.h: New class.
  13916. * src/FileUriListParser.h: New class.
  13917. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13918. instead of UriFileListParser.
  13919. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13920. Made console readout more readable.
  13921. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13922. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13923. Fix the bug that causes -s option not to work.
  13924. * src/main.cc (main)
  13925. * src/a2algo.h: New file.
  13926. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13927. Create directory structure specified in metalink file.
  13928. * src/RequestGroup.h, src/RequestGroup.cc
  13929. (initAndOpenFile): Create a directory to store files if it does not
  13930. exist.
  13931. (getDir): New function.
  13932. Added ETA and download speed for an individual file to readout.
  13933. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13934. * src/RequestGroup.h
  13935. (calculateDownloadSpeed): New function.
  13936. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13937. Made -S option work with metalink file and provided selective download
  13938. to metalink.
  13939. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13940. (filename): Removed.
  13941. (file): New variable.
  13942. (size): Removed.
  13943. (operator=): Updated.
  13944. (getPath): New function.
  13945. (getLength): New function.
  13946. (toFileEntry): New function.
  13947. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13948. (execute): Use toStream.
  13949. (showFileEntry): Removed.
  13950. * src/MetalinkRequestInfo.h
  13951. (targetFiles): New variable.
  13952. (setTargetFiles): New variable.
  13953. * src/MetalinkRequestInfo.cc
  13954. (execute): Added the ability to print file information included in
  13955. a metalink file.
  13956. Added selective download mode to metalink.
  13957. * src/main.cc
  13958. (showUsage): Updated to denote that -S and --select-file options are
  13959. applicable to metalink.
  13960. * src/FileEntry.h
  13961. (operator=): New function.
  13962. (getBasename): New function.
  13963. (getDirname): New function.
  13964. * src/Util.h, src/Util.cc
  13965. (toStream): New function.
  13966. * src/Xml2MetalinkProcessor.cc: Updated.
  13967. Made aria2 work with metalink with directory structure.
  13968. * src/File.h, src/File.cc
  13969. (getBasename): New function.
  13970. (getDirname): New function.
  13971. * src/RequestGroup.h, src/RequestGroup.cc
  13972. (_topDir): New variable.
  13973. (setTopDir): New function.
  13974. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13975. Rewrote HTTP header parsing with stringstream.
  13976. * src/HttpConnection.h, src/HttpConnection.cc
  13977. (HttpRequestEntry): New class.
  13978. (headerBuf): Removed.
  13979. (headerBufLength): Removed.
  13980. (outstandingHttpRequests): Now its element type is
  13981. HttpRequestEntryHandle.
  13982. (findEndOfHeader): Removed.
  13983. (receiveResponse): Rewritten.
  13984. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13985. Updated doc for -j option to notice that it should be used with -i
  13986. option.
  13987. * src/main.cc (showUsage)
  13988. Removed unused classes.
  13989. * src/RequestInfo.h
  13990. (FileInfo): Removed.
  13991. (checksum): Removed.
  13992. (fileInfo): Removed.
  13993. (setChecksum): Removed.
  13994. (getChecksum): Removed.
  13995. (getFileInfo): Removed.
  13996. Use ISO units.
  13997. * src/ConsoleDownloadEngine.cc
  13998. * src/TorrentConsoleDownloadEngine.cc
  13999. * src/Util.cc (abbrevSize)
  14000. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14001. Added the default listening ports to the help message.
  14002. * src/main.cc (showUsage)
  14003. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14004. Reduce the number of calls to gettimeofday to lower CPU load.
  14005. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  14006. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  14007. * src/Peer.h (calculateUploadSpeed): New function.
  14008. (calculateDownloadSpeed): New function.
  14009. * src/DefaultPeerStorage.cc
  14010. (CalculateStat): Added _now variable.
  14011. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  14012. and Peer::calculateUploadSpeed(const struct timeval&)
  14013. Drop connection if no request or piece message is exchanged in
  14014. a certain interval.
  14015. * src/DefaultBtInteractive.h
  14016. (btRuntime): New variable.
  14017. (inactiveCheckPoint): New variable.
  14018. (checkActiveInteraction): New function.
  14019. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  14020. request or piece message is received.
  14021. (checkActiveInteraction): New function.
  14022. (doInteractionProcessing): Call checkActiveInteraction.
  14023. Fixed the bug that causes remote Metalink and Torrent files are not
  14024. processed.
  14025. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  14026. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14027. Changed format of log file.
  14028. * src/SimpleLogger.cc
  14029. * Release 0.11.0
  14030. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14031. * src/AbstractCommand.cc
  14032. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  14033. MSG_MAX_TRY from error to info.
  14034. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  14035. * src/message.h
  14036. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  14037. (MSG_DOWNLOAD_ABORTED): Added %s.
  14038. (MSG_RESTARTING_DOWNLOAD): Added %s.
  14039. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  14040. * src/PeerAbstractCommand.cc
  14041. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  14042. * src/Request.h
  14043. (cookieBox): Made ShardHandle.
  14044. * src/RequestGroup.h, src/RequestGroup.cc
  14045. (createNextCommandWithAdj): New function.
  14046. * src/FileAllocationCommand.cc
  14047. (executeInternal): Use createNextCommandWithAdj().
  14048. * src/CheckIntegrityCommand.cc
  14049. (executeInternal): Use createNextCommandWithAdj().
  14050. Added --load-cookies command-option.
  14051. * src/OptionHandlerFactory.cc
  14052. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  14053. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  14054. Now aria2 can handle cookie's expiration date.
  14055. * src/Cookie.h (expires): Changed its type to time_t.
  14056. * src/main.cc: Added --load-cookies command-line option.
  14057. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  14058. * src/Util.h, src/Util.cc (httpGMT): New function.
  14059. * src/Request.cc (Request): Initialize cookieBox using
  14060. CookieBoxFactory.
  14061. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  14062. * src/CookieParser.h, src/CookieParser.cc: New class.
  14063. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  14064. * src/HttpResponseCommand.cc
  14065. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  14066. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  14067. download.
  14068. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14069. Added -j command-line option.
  14070. * src/OptionHandlerFactory.cc (createOptionHandlers)
  14071. * src/main.cc
  14072. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  14073. Rewritten using stringstream.
  14074. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  14075. Rewritten using stringstream.
  14076. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14077. Make download size shown in MB, KB.
  14078. * src/ConsoleDownloadEngine.h (sendStatistics)
  14079. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  14080. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14081. Accept incoming connections if download rate is low.
  14082. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  14083. (_lowestSpeedLimit): New variable.
  14084. (setLowestSpeedLimit): New function.
  14085. (execute): Accept incoming connections if download rate is low.
  14086. MAX_PEERS is ignored in this case.
  14087. Disable PREF_OUT in multiple concurrent download:
  14088. * src/RequestGroup.h, src/RequestGroup.cc
  14089. (setUserDefinedFilename): New function.
  14090. * src/DownloadEngineFactory.cc
  14091. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  14092. concurrent download.
  14093. * src/DefaultSegmentManFactory.cc
  14094. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  14095. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14096. RequestGroup::getNextCommand() was renamed to createNextCommand().
  14097. Added its overloaded method.
  14098. * src/RequestGroup.h
  14099. (_numConcurrentCommand): New variable.
  14100. (setNumConcurrentCommand): New function.
  14101. * src/RequestGroup.cc
  14102. Abort download if same file is being downloaded concurrently.
  14103. * src/RequestGroup.h, src/RequestGroupMan.cc
  14104. (isSameFileBeingDownloaded): New function.
  14105. * src/HttpResponseCommand.cc (executeInternal)
  14106. * src/FtpNegotiateCommand.cc (recvSize)
  14107. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  14108. * main.cc: Added help message for -i option.
  14109. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14110. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  14111. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  14112. * src/MetalinkEntry.h
  14113. (checksum): Changed to ChecksumHandle
  14114. * src/MetalinkRequestInfo.cc
  14115. (checksum): Changed to ChecksumHandle
  14116. * src/File.cc
  14117. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  14118. * src/common.h
  14119. (DIR_OPEN_MODE): New definition
  14120. * src/RequestGroup.cc
  14121. (prepareForNextAction): Added an argument.
  14122. * src/message.h
  14123. (MSG_GOOD_CHECKSUM): New definition
  14124. (MSG_BAD_CHECKSUM): New definition
  14125. * src/HttpResponseCommand.cc
  14126. (handleDefaultEncoding): Continue download sequence in new
  14127. non-segmented download.
  14128. * src/FileAllocationEntry.h
  14129. (_nextDownloadCommand): New variable.
  14130. * src/DownloadCommand.cc
  14131. (prepareForNextSegment): Create ChecksumCommand if checksum is
  14132. available.
  14133. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  14134. * src/IteratableChecksumValidator.h,
  14135. src/IteratableChecksumValidator.cc: New class.
  14136. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  14137. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14138. Change file mode to 666:
  14139. * src/common.h (OPEN_MODE): New definition.
  14140. * src/File.cc
  14141. * src/Util.cc
  14142. * src/Directry.cc
  14143. * src/AbstractDiskWriter.cc
  14144. Change the level of log message "download aborted" to debug:
  14145. * src/PeerAbstractCommand.cc (execute)
  14146. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  14147. * src/TrackerWatcherCommand.cc
  14148. (createCommand): Sleep some seconds after request failed.
  14149. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  14150. then abort tracker request.
  14151. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14152. * Added the simultaneous download feature.
  14153. * src/main.cc: Print "Exception caught: " when exception is caught.
  14154. Use CUIDCounter instead of BtRuntime::getNewCuid():
  14155. * src/ActivePeerConnectionCommand.cc
  14156. * src/PeerInteractionCommand.cc
  14157. * src/BtRuntime.h
  14158. (cuidCounter): Removed.
  14159. (getNewCuid): Removed.
  14160. * src/DownloadEngineFactory.cc
  14161. * src/PeerListenCommand.cc
  14162. * src/TrackerUpdateCommand.cc
  14163. * src/PeerInitiateConnectionCommand.cc
  14164. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14165. * src/PeerAbstractCommand.cc
  14166. (onAbort): Call PeerStorage::returnPeer()
  14167. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  14168. (incomingPeers): New variable.
  14169. (addIncomingPeer): New function.
  14170. (returnPeer): New function.
  14171. (onErasingPeer): New function.
  14172. (addPeer): push_back -> push_front
  14173. (getActivePeers): Rewritten.
  14174. (calculateStat): Rewritten.
  14175. * src/PeerStorage.h
  14176. (TransferStat::copy): New function.
  14177. (TransferStat::TransferStat): New function.
  14178. (TransferStat::operator=): New function.
  14179. (addIncomingPeer): New function.
  14180. (returnPeer): New function.
  14181. * src/PeerListenCommand.cc
  14182. (execute): Use PeerStorage::addIncomingPeer() instead of
  14183. Peer::addPeer().
  14184. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14185. Connect to a peer actively when download speed is lower than specified
  14186. speed in torrent download:
  14187. * src/ActivePeerConnectionCommand.h: New class.
  14188. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14189. * src/HttpRequest.cc (createRequest): url-encode user-agent
  14190. * src/main.cc: Fixed the bug that prevents download if .netrc
  14191. doesn't exist.
  14192. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14193. To cache resolved hostname:
  14194. * src/AbstractCommand.h, src/AbstractCommand.cc
  14195. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  14196. Added dns cache.
  14197. * src/FtpInitiateConnectionCommand.cc
  14198. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  14199. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  14200. NameResolver working without ares.
  14201. * src/TorrentRequestInfo.cc
  14202. (execute): Don't cache dns in torrent download.
  14203. * src/HttpInitiateConnectionCommand.cc
  14204. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  14205. * src/DNSCache.h: New class.
  14206. * src/UrlRequestInfo.cc
  14207. (execute): Use dns cache.
  14208. In http request, suppress port number in http request header if port
  14209. is 80 or 443:
  14210. * src/HttpRequest.cc (getHostText): Suppress port number in http
  14211. request header if port is 80 or 443.
  14212. (createProxyRequest): Allways send port number.
  14213. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14214. To add the command-line option which disables netrc support:
  14215. * src/OptionHandlerFactory.cc
  14216. (createOptionHandlers): Added PREF_NO_NETRC.
  14217. * src/main.cc: Added -n option.
  14218. * src/prefs.h (PREF_NO_NETRC): New definition.
  14219. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  14220. V_TRUE.
  14221. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  14222. is V_FALSE. This may get configurable in the future release.
  14223. To clear peer's error status by time basis:
  14224. * src/PeerAbstractCommand.cc
  14225. (onAbort): Call Peer::startBadCondition().
  14226. * src/Peer.h, src/Peer.cc
  14227. (error): Removed.
  14228. (_badConditionStartTime): New variable.
  14229. (_badConditionInterval): New variable. Initialized to 10 seconds.
  14230. (startBadCondition): New function.
  14231. (isGood): New function.
  14232. * src/DefaultPeerStorage.cc
  14233. (addPeer): Use Peer::isGood().
  14234. (FindFinePeer): Use Peer::isGood().
  14235. Always include port number in http request header:
  14236. * src/HttpRequest.cc (getHostText): Always include port number in
  14237. http request header.
  14238. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14239. To the ability to read options from a config file:
  14240. * src/main.cc: Command-line parameter validation is delegated to
  14241. OptionHandler class.
  14242. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  14243. * src/Option.h, src/Option.cc (clear): New function.
  14244. * src/OptionParser.h, src/OptionParser.cc: New class.
  14245. * src/OptionHandler.h: New class.
  14246. * src/NameMatchOptionHandler.h: New class.
  14247. * src/OptionHandlerImpl.h: New classes.
  14248. * src/prefs.h: '_' -> '-'
  14249. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  14250. (FTP_PASV): New definition.
  14251. * src/Util.h, src/Util.cc (getRealSize): New function.
  14252. To disable netrc support if .netrc file does not have correct
  14253. permissions:
  14254. * src/File.h, src/File.cc (mode): New function.
  14255. To prevent confidential information to be logged:
  14256. * src/HttpConnection.h, src/HttpConnection.cc
  14257. (eraseConfidentialInfo): New function.
  14258. (sendRequest): Call eraseConfidentialInfo().
  14259. (sendProxyRequest): Call eraseConfidentialInfo().
  14260. * src/main.cc: Validate permissions of .netrc file.
  14261. To add --user-agent command-line option:
  14262. * src/main.cc: Added new command line option: --user-agent
  14263. * src/prefs.h (PREF_USER_AGENT): New definition.
  14264. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  14265. parameter to HttpRequest object.
  14266. * src/AbstractProxyRequestCommand.cc
  14267. (executeInternal): Set user-agent option parameter to HttpRequest
  14268. object.
  14269. Marged the patches from Dan Fandrich.
  14270. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14271. Use filename and size from Metalink file instead of sending HEAD
  14272. request:
  14273. * src/UrlRequestInfo.h
  14274. (_filename): New variable.
  14275. (_totalLength): New variable.
  14276. (setTotalLength): New variable.
  14277. (setFilename): New variable.
  14278. * src/MetalinkRequestInfo.cc
  14279. (execute): Set filename and size to UrlRequestInfo
  14280. * src/UrlRequestInfo.cc
  14281. (execute): Use filename and size from Metalink instead of seding
  14282. HEAD request to servers.
  14283. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14284. To add the ability to resume downloading a partially downloaded file
  14285. which is downloaded from the beginning:
  14286. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  14287. takes this role.
  14288. * src/main.cc: Added -c option.
  14289. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  14290. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  14291. * src/prefs.h (PREF_CONTINUE): New definition.
  14292. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  14293. * src/DefaultDiskWriter.cc
  14294. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  14295. * src/AbstractDiskWriter.h
  14296. (glowFileAllocator): New variable.
  14297. * src/AbstractDiskWriter.cc
  14298. (openExistingFile): Now preallocate file space from the end of the
  14299. existing file if totalLength argument is specified and grater than 0.
  14300. * src/UrlRequestInfo.cc: If -c option is specified and the file
  14301. to download exists in local, continue the download of the file.
  14302. --allow-overwrite=true is assumed in this context.
  14303. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  14304. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  14305. Throw exception if --check-integrity=true is specified but chunk
  14306. checksums are not provided:
  14307. * src/UrlRequestInfo.cc
  14308. Do not print URLs to stdout:
  14309. * src/UrlRequestInfo.cc
  14310. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14311. * src/Request.h: Use AuthResolver to get authentication information.
  14312. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  14313. set to RequestFactory object.
  14314. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  14315. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  14316. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  14317. create Request object.
  14318. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  14319. To integrate Netrc into exsiting classes:
  14320. * src/Request.h
  14321. (_userDefinedAuthConfig): New variable.
  14322. (findNetrcAuthenticator): New function.
  14323. (segment): Removed.
  14324. (setUserDefinedAuthConfig): New function.
  14325. (resolveHttpAuthConfigItem): New function.
  14326. (resolveFtpAuthConfigItem): New function.
  14327. (resolveHttpProxyAuthConfigItem): New function.
  14328. * src/HttpRequest.h
  14329. (authConfig): Removed.
  14330. (proxyAuthConfig): Removed.
  14331. (setAuthConfig): Removed.
  14332. (setProxyAuthConfig): Removed.
  14333. * src/UrlRequest.h
  14334. (getHeadResult): Added a parameter: authConfigHandle
  14335. * src/common.h
  14336. (SingletonHolder.h): New include.
  14337. * src/main.cc
  14338. (Netrc.h): New include.
  14339. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  14340. Added initial value of PREF_NETRC_PATH.
  14341. Added the initialization of netrc.
  14342. * src/AuthConfig.h: New class.
  14343. * src/prefs.h
  14344. (PREF_NETRC_PATH): New definition.
  14345. * src/HttpAuthConfig.h: Removed.
  14346. * src/Netrc.cc
  14347. (getRequiredNextToken): New function.
  14348. (skipMacdef): New function.
  14349. (parse): Rewritten.
  14350. * src/Netrc.h
  14351. (getRequiredNextToken): New function.
  14352. (skipMacdef): New function.
  14353. * src/Util.h, src/Util.cc
  14354. (getHomeDir): New function.
  14355. * src/TrackerWatcherComand.cc
  14356. (createRequestCommand): Use AuthConfig.
  14357. * src/FtpConnection.cc
  14358. (sendUser): Use Request::resolveFtpAuthConfigItem().
  14359. (sendPass): Use Request::resolveFtpAuthConfigItem().
  14360. * src/Request.cc
  14361. (findNetrcAuthenticator): New function.
  14362. (resolveHttpAuthConfigItem): New function.
  14363. (resolveFtpAuthConfigItem): New function.
  14364. (resolveHttpProxyAuthConfigItem): New function.
  14365. * src/UrlRequestInfo.cc: Use AuthConfig.
  14366. * src/HttpRequest.cc
  14367. (createRequest): Use authConfig.
  14368. (getProxyAuthString): Use authConfig.
  14369. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  14370. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  14371. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14372. To reduce overhead to find commands whose socket is either
  14373. readable or writable in the download engine loop:
  14374. * src/Command.h, src/Command.cc
  14375. (STATUS): New enum.
  14376. (status): New variable.
  14377. (statusMatch): New function.
  14378. (setStatusActive): New function.
  14379. (setStatusInactive): New function.
  14380. * src/DownloadEngine.h, src/DownloadEngine.cc
  14381. (executeCommand): New function.
  14382. (run): Simplified.
  14383. (waitData): Call Command::setStatusActive() when command's socket is
  14384. readable or writable.
  14385. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14386. To handle Segment as SegmentHandle:
  14387. * src/AbstractCommand.cc (execute): Rewritten.
  14388. * src/SegmentMan.h: Segment -> SegmentHandle
  14389. Introducded HttpResponse class, HttpRequest class to improve code
  14390. extensiveness and make it clear:
  14391. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  14392. HttpResponse class.
  14393. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  14394. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  14395. * src/HttpConnection.cc: Contruction of http request were moved to
  14396. HttpRequest class.
  14397. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  14398. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  14399. * src/HttpAuthConfig.h: New class.
  14400. * src/Range.h: New class.
  14401. To make FtpTunnel{Request, Response}Command and
  14402. HttpProxy{Request, Response}Command derived from
  14403. AbstractProxy{Request, Response}Command:
  14404. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  14405. Derived from AbstractProxyRequestCommand class.
  14406. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  14407. Derived from AbstractProxyResponseCommand class.
  14408. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  14409. Derived from AbstractProxyRequestCommand class.
  14410. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  14411. Derived from AbstractProxyResponseCommand class.
  14412. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  14413. : New class.
  14414. * src/AbstractProxyResponseCommand.h,
  14415. src/AbstractProxyResponseCommand.cc: New class.
  14416. To add netrc support:
  14417. * src/Netrc.h, src/Netrc.cc: New class.
  14418. * src/Util.h, src/Util.cc (split): New function.
  14419. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  14420. "Content-Range" header instead of "Range" header.
  14421. * src/HttpHeader.h
  14422. (getStatus): Removed.
  14423. (setStatus): Removed.
  14424. * src/Segment.h
  14425. (getPositionToWrite): New function.
  14426. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14427. * src/HttpHeader.h
  14428. (Range.h): New include.
  14429. (status): New variable.
  14430. (HttpHeader): Initialized status with 0.
  14431. (getStatus): New function.
  14432. (setStatus): New function.
  14433. (getRange): New function.
  14434. (HttpHeaderHandle): New function.
  14435. * src/HttpHeader.cc
  14436. (getRange): New function.
  14437. * src/Request.h
  14438. (RequestWeakHandle): New definition.
  14439. * src/HttpConnection.h
  14440. (HttpConnectionHandle): New type definition.
  14441. * src/HttpConnection.cc
  14442. (receiveResponse): Set HTTP status to headers.
  14443. * src/main.cc
  14444. (showUsage): Fixed typo.
  14445. * src/Segment.h
  14446. (SegmentHandle): New type definition.
  14447. * src/BitfieldMan.h
  14448. (getMissingUnusedLength): New function.
  14449. * src/BitfieldMan.cc
  14450. (getMissingUnusedLength): New function.
  14451. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14452. To fix static initialization order problem:
  14453. * src/BitfieldManFactory.h
  14454. (defaultRandomizer): Removed.
  14455. (factory): New variable.
  14456. (getNewFactory): Removed.
  14457. (getFactoryInstance): New function.
  14458. (setDefaultRandomizer): Rewritten.
  14459. (getDefaultRandomizer): Rewritten.
  14460. * src/BitfieldManFactory.cc
  14461. (defaultRandomizer): Removed.
  14462. (factory): Initialized to 0.
  14463. (BitfieldManFactory): Initialized randomizer to 0.
  14464. * src/DefaultPieceStorage.cc
  14465. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  14466. * src/Peer.cc
  14467. (Peer): getNewFactory() -> getFactoryInstance()
  14468. * src/SegmentMan.cc
  14469. (initBitfield): getNewFactory() -> getFactoryInstance()
  14470. * src/Piece.cc
  14471. (Piece): getNewFactory() -> getFactoryInstance()
  14472. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14473. To fix the bug that causes crash on Max OS X:
  14474. * src/SimpleRandomizer.h
  14475. (getInstance): Create new instance if the static variable is null.
  14476. * src/SimpleRandomizer.cc
  14477. (randomizer): Initialized to 0.
  14478. * src/BitfieldManFactory.h
  14479. (getNewFactory): Removed the call to setRandomizer().
  14480. To fix the miscalculation of the range of checksum:
  14481. * src/BitfieldMan.h
  14482. (isBitSetOffsetRange): New function.
  14483. * src/BitfieldMan.cc
  14484. (isBitSetOffsetRange): New function.
  14485. * src/SegmentMan.cc
  14486. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  14487. Use bitfield->getBlockLength() instead of segment.segmentLength.
  14488. * Release 0.10.1
  14489. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14490. To lower CPU usage in BitTorrent download when --max-upload-limit
  14491. command-line option specified:
  14492. * src/DefaultBtMessageDispatcher.cc
  14493. (sendMessages): Calculate uploading speed only when current message
  14494. is uploading data and is not sent yet.
  14495. * src/DefaultPeerStorage.h
  14496. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  14497. * src/HttpResponseCommand.cc
  14498. (handleDefaultEncoding): Added the cast to int32_t to itos.
  14499. This fixes compile error in Soralis 10.
  14500. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14501. To fix segfault in Metalink download:
  14502. * src/UrlRequestInfo.h
  14503. (filename): Removed.
  14504. (totalLength): Removed.
  14505. (setTotalLength): Removed.
  14506. (setFilename): Removed.
  14507. * src/MetalinkRequestInfo.cc
  14508. (execute): Do not set filename and totalLength to reqInfo.
  14509. Set chunk checksum to reqInfo if it is not null.
  14510. * src/HttpResponseCommand.cc
  14511. (executeInternal): Fixed filename in log.
  14512. (handleDefaultEncoding): Removed the call to initBitfield() and
  14513. markAllPiecesDone().
  14514. (handleOtherEncoding): Added HEAD method handling.
  14515. * src/FtpNegotiateCommand.cc
  14516. (executeInternal): Added SEQ_HEAD_OK handling.
  14517. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  14518. return false.
  14519. * src/FtpNegotiateCommand.h
  14520. (SEQ_HEAD_OK): New definition.
  14521. * src/SegmentMan.cc
  14522. (initBitfield): Delete bitfield.
  14523. (isChunkChecksumValidationReady): Fixed the condition.
  14524. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  14525. works fine.
  14526. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14527. * src/Xml2MetalinkProcessor.h
  14528. (xpathExists): New function.
  14529. * src/Xml2MetalinkProcessor.cc
  14530. (xpathExists): New function.
  14531. Not to send HEAD request if filename and size are available in Metalink
  14532. file:
  14533. * src/UrlRequestInfo.h
  14534. (filename): New variable.
  14535. (totalLength): New variable.
  14536. (setTotalLength): New function.
  14537. (setFilename): New function.
  14538. * src/MetalinkRequestInfo.cc
  14539. (execute): Set filename and size to UrlRequestInfo.
  14540. * src/MetalinkEntry.cc
  14541. (MetalinkEntry): Initialize size with 0.
  14542. * src/UrlRequestInfo.cc
  14543. (execute): Set filename and size to SegmentMan.
  14544. Not to download rest of the files after selected files are downloaded
  14545. in BitTorrent:
  14546. * src/PieceStorage.h
  14547. (allDownloadFinished): New function.
  14548. * src/DefaultBtAnnounce.cc
  14549. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  14550. downloadFinished.
  14551. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  14552. * src/DefaultPieceStorage.cc
  14553. (completePiece): Use allDownloadFinished instead of downloadFinished.
  14554. Commented out the call to finishSelectiveDownloadingMode().
  14555. (downloadFinished): Call isFilteredAllBitSet() instead of
  14556. isAllBitSet().
  14557. (allDownloadFinished): New function.
  14558. * src/DefaultBtInteractive.cc
  14559. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  14560. downloadFinished().
  14561. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  14562. * src/TorrentDownloadEngine.cc
  14563. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  14564. * src/BitfieldMan.h
  14565. (isFilteredAllBitSet): New function.
  14566. * src/ShareRatioSeedCriteria.h
  14567. (PieceStorage.h): New include.
  14568. (pieceStorage): New variable.
  14569. (evaluate):
  14570. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  14571. * src/BitfieldMan.cc
  14572. (isFilteredAllBitSet): New function.
  14573. (isAllBitSet): Filter is not took into account.
  14574. Rename --force-truncate as --allow-overwrite:
  14575. * src/TorrentRequestInfo.cc
  14576. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  14577. * src/main.cc
  14578. (showUsage): --force-truncate -> --allow-overwrite
  14579. * src/message.h
  14580. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  14581. * src/prefs.h
  14582. (PREF_FORCE_TRUNCATE): Removed.
  14583. (PREF_ALLOW_OVERWRITE): New definition.
  14584. * src/SegmentMan.cc
  14585. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  14586. * src/MetalinkRequestInfo.cc
  14587. (execute): Queueing message are now logged in info level.
  14588. * src/common.h
  14589. (LONG_LONG_MAX): Removed.
  14590. (LONG_LONG_MIN): Removed.
  14591. * src/HttpResponseCommand.cc
  14592. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  14593. * src/FtpNegotiateCommand.cc
  14594. (recvSize): LONG_LONG_MAX -> INT64_MAX
  14595. * src/main.cc
  14596. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  14597. command-line option.
  14598. (main): Added --check-integriy and --realtime-chunk-checksum
  14599. command-line option.
  14600. --force-truncate -> --allow-overwrite
  14601. Set initial value of --check-integrity option to false.
  14602. Don't show usage when error occurs while persing command-line options.
  14603. Removed deprecated --upload-limit option.
  14604. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14605. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  14606. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  14607. * src/BtAllowedFastMessage.cc:
  14608. * src/BtBitfieldMessage.cc
  14609. * src/BtCancelMessage.cc
  14610. * src/BtChokeMessage.cc
  14611. * src/BtHaveAllMessage.cc
  14612. * src/BtHaveMessage.cc
  14613. * src/BtHaveNoneMessage.cc
  14614. * src/BtInterestedMessage.cc
  14615. * src/BtNotInterestedMessage.cc
  14616. * src/BtPieceMessage.cc
  14617. * src/BtPortMessage.cc
  14618. * src/BtRejectMessage.cc
  14619. * src/BtRequestMessage.cc
  14620. * src/BtSuggestPieceMessage.cc
  14621. * src/BtUnchokeMessage.cc
  14622. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  14623. files are affected.
  14624. * src/ChunkChecksumValidator.cc
  14625. * src/SegmentMan.cc
  14626. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14627. To add chunk checksum validation:
  14628. * src/MetalinkEntry.h
  14629. (MetalinkChunkChecksum.h): New include.
  14630. (chunkChecksum): New variable.
  14631. * src/Request.h
  14632. (method): New variable.
  14633. (setMethod): New function.
  14634. (getMethod): New function.
  14635. (METHOD_GET): New static constant.
  14636. (METHOD_HEAD): New static constant.
  14637. * src/Xml2MetalinkProcessor.h
  14638. (getPieceHash): New function.
  14639. * src/PieceStorage.h
  14640. (markAllPiecesDone): New function.
  14641. (checkIntegrity): New function.
  14642. * src/FileAllocator.h
  14643. (NullFileAllocationMonitor.h): New include.
  14644. (FileAllocator): Initialize fileAllocationMonitor with new
  14645. NullFileAllocationMonitor().
  14646. * src/MultiDiskAdaptor.h
  14647. (messageDigest.h): Remove include.
  14648. (ctx): Removed.
  14649. (hashUpdate): Added ctx.
  14650. (MultiDiskAdaptor): Removed ctx.
  14651. (sha1Sum): Renamed as messageDigest.
  14652. (messageDigest): New function.
  14653. * src/UrlRequestInfo.h
  14654. (HeadResult): New class.
  14655. (digestAlgo): New variable.
  14656. (chunkChecksumLength): New variable.
  14657. (chunkChecksums): New variable.
  14658. (getHeadResult): New function.
  14659. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  14660. (setDigestAlgo): New function.
  14661. (setChunkChecksumLength): New function.
  14662. (setChunkChecksums): New function.
  14663. * src/DefaultPieceStorage.cc
  14664. (DiskAdaptorWriter.h): New include.
  14665. (ChunkChecksumValidator.h): New include.
  14666. (markAllPiecesDone): New function.
  14667. (checkIntegrity): New function.
  14668. * src/DefaultBtContext.h
  14669. (getPieceHashes): New function.
  14670. * src/TorrentRequestInfo.cc
  14671. (execute): Try to validate chunk checksum if file already exists and
  14672. .aria2 file doesn't there and user allows aria2 to overwrite it.
  14673. * src/messageDigest.h
  14674. (~MessageDigestContext): Added digestFree().
  14675. * src/MetalinkRequestInfo.cc
  14676. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  14677. * src/DiskAdaptor.h
  14678. (messageDigest.h): New include.
  14679. (sha1Sum): Renamed as messageDigest.
  14680. (messageDigest): New function.
  14681. * src/DownloadCommand.h
  14682. (PeerStat.h): New include.
  14683. (maxDownloadSpeedLimit): New variable.
  14684. (startupIdleTime): New variable.
  14685. (lowestDownloadSpeedLimit): New variable.
  14686. (peerStat): New variable.
  14687. (setMaxDownloadSpeedLimit): New function.
  14688. (setStartupIdleTime): New function.
  14689. (setLowestDownloadSPeedLimit): New function.
  14690. * src/BtContext.h
  14691. (getPieceHashes): New function.
  14692. * src/main.cc
  14693. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  14694. option to true for testing purpose.
  14695. * src/BtPieceMessage.cc
  14696. (checkPieceHash): Use messageDigest
  14697. * src/DownloadEngine.cc
  14698. (SetDescriptor): Removed.
  14699. (AccumulateActiveCommand): Removed.
  14700. (waitData): Rewritten.
  14701. (updateFdSet): Rewritten.
  14702. * src/MultiDiskAdaptor.cc
  14703. (hashUpdate): Added ctx.
  14704. (sha1Sum): Renamed as messageDigest.
  14705. (messageDigest): New function.
  14706. * src/BitfieldMan.h
  14707. (isBitRangeSet): New function.
  14708. (unsetBitRange): New function.
  14709. * src/ByteArrayDiskWriter.h
  14710. (sha1Sum): Renamed as messageDigest.
  14711. (messageDigest): New function.
  14712. * src/ConsoleDownloadEngine.cc
  14713. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  14714. * src/DiskWriter.h
  14715. (messageDigest.h): New include.
  14716. (sha1Sum): Renamed as messageDigest.
  14717. (messageDigest): New function.
  14718. * src/ChunkChecksumValidator.h: New class.
  14719. * src/DiskAdaptorWriter.h: New class.
  14720. * src/prefs.h
  14721. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  14722. (PREF_CHECK_INTEGRITY): New definition.
  14723. * src/HttpResponseCommand.cc
  14724. (handleDefaultEncoding): Added method "HEAD" handling.
  14725. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14726. (handleOtherEncoding):
  14727. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  14728. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  14729. startupIdleTime, lowestDownloadSpeedLimit to command.
  14730. * src/SegmentMan.h
  14731. (getSegmentEntryByIndex): New function.
  14732. (getSegmentEntryByCuid): New function.
  14733. (getSegmentEntryIteratorByCuid): New function.
  14734. (diskWriter): DiskWriter -> DiskWriterHandle
  14735. (pieceHashes): New variable.
  14736. (chunkHashLength): New variable.
  14737. (digestAlgo): New variable.
  14738. (FindPeerStat): Removed.
  14739. (getPeerStat): Rewritten.
  14740. (markAllPiecesDone): New function.
  14741. (checkIntegrity): New function.
  14742. (tryChunkChecksumValidation): New function.
  14743. (isChunkChecksumValidationReady): New function.
  14744. * src/BitfieldMan.cc
  14745. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  14746. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  14747. blocks to 0.
  14748. (isBitRangeSet): New function.
  14749. (unsetBitRange): New function.
  14750. * src/FtpNegotiateCommand.cc
  14751. (executeInternal): Set maxDownloadSpeedLimit,
  14752. startupIdleTime, lowestDownloadSpeedLimit to command.
  14753. (recvSize): Added method "HEAD" handling.
  14754. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14755. * src/AbstractSingleDiskAdaptor.cc
  14756. (sha1Sum): Renamed as messageDigest.
  14757. (messageDigest): New function.
  14758. * src/AbstractSingleDiskAdaptor.h
  14759. (sha1Sum): Renamed as messageDigest.
  14760. (messageDigest): New function.
  14761. * src/Util.h
  14762. (indexRange): New function.
  14763. * src/MetalinkEntry.cc
  14764. (MetalinkEntry): Initialized chunkChecksum to 0.
  14765. * src/ShaVisitor.cc
  14766. (~ShaVisitor): Removed the call to ctx.digestFree().
  14767. * src/SegmentMan.cc
  14768. (ChunkChecksumValidator.h): New include.
  14769. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  14770. to DIGEST_ALGO_SHA1.
  14771. (~SegmentMan): Removed diskWriter.
  14772. (FindSegmentEntryByIndex): Removed.
  14773. (FindSegmentEntryByCuid): Removed.
  14774. (checkoutSegment): Rewritten.
  14775. (findSlowerSegmentEntry): Rewritten.
  14776. (getSegment): Rewritten.
  14777. (updateSegment): Rewritten.
  14778. (completeSegment): Rewritten.
  14779. (markAllPiecesDone): New function.
  14780. (checkIntegrity): New function.
  14781. (isChunkChecksumValidationReady): New function.
  14782. (tryChunkChecksumValidation): New function.
  14783. * src/Xml2MetalinkProcessor.cc
  14784. (getEntry): Get size and set it to entry.
  14785. Get chunk checksum and set it to entry.
  14786. (getPieceHash): New function.
  14787. * src/Util.cc
  14788. (sha1Sum): Removed ctx.digestFree()
  14789. (fileChecksum): Removed ctx.digestFree()
  14790. (indexRange): New function.
  14791. * src/Request.cc
  14792. (METHOD_GET): New variable.
  14793. (METHOD_HEAD): New variable.
  14794. (Request): Added method.
  14795. * src/UrlRequestInfo.cc
  14796. (FatalException.h): New include.
  14797. (message.h): New include.
  14798. (operator<<): Added operator<< for class HeadResult.
  14799. (getHeadResult): New function.
  14800. (execute): Get filename and size in separate download engine.
  14801. * src/ChunkChecksumValidator.cc: New class.
  14802. * src/DownloadCommand.cc:
  14803. (DownloadCommand): Added peerStat.
  14804. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14805. the value from Option.
  14806. The buffer size is now 16KB.
  14807. Use peerStat member instead of getting it from SegmentMan.
  14808. Use startupIdleTime member instead of gettingit from Option.
  14809. Added chunk checksum validation.
  14810. * src/AbstractDiskWriter.cc
  14811. (AbstractDiskWriter): Removed ctx.
  14812. (~AbstractDiskWriter): Removed ctx.digestFree()
  14813. (writeDataInternal): Returns the return value of write.
  14814. (readDataInternal): Returns the return value of read.
  14815. (sha1Sum): Renamed as messageDigest
  14816. (messageDigest): New function.
  14817. * src/AbstractDiwkWriter.h
  14818. (messageDigest.h): Removed include.
  14819. (ctx): Removed.
  14820. (sha1Sum): Renamed as messageDigest
  14821. (messageDigest): New function.
  14822. * src/DefaultPieceStorage.h
  14823. (markAllPiecesDone): New function.
  14824. (checkIntegrity): New function.
  14825. * src/NullFileAllocationMonitor.h: New class.
  14826. * src/MetalinkChunkChecksum.h: New class.
  14827. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14828. To decrease CPU usage in bittorrent download, calculation results in
  14829. BitfieldMan were cached and realtime fetching PeerObject was removed
  14830. with WeakHandle introduced. Option values are set to the objects
  14831. by setter before download begins.
  14832. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14833. * src/DefaultBtRequestFactory.h
  14834. (dispatcher): BtMessageDispatcherHandle ->
  14835. BtMessageDispatcherWeakHandle.
  14836. (messageFactory): New variable.
  14837. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14838. BtMessageDispatcherWeakHandle.
  14839. (setBtMessageFactory): New function.
  14840. * src/DefaultBtMessageDispatcher.cc:
  14841. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14842. from Option.
  14843. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14844. feating the value from Option.
  14845. Use messageFactory member.
  14846. * src/PeerInteractionCommand.cc
  14847. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14848. Add reverse dependencies to factory object.
  14849. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14850. dispatcher.
  14851. Set messageFactory to receiver.
  14852. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14853. btInteractive.
  14854. Set receiver to peerObject.
  14855. Set maxDownloadSpeedLimit to this.
  14856. (executeInternal): Use maxDownloadSpeedLimit member.
  14857. * src/BtChokeMessage.cc
  14858. (doReceivedAction): Use dispatcher, requestFactory member.
  14859. (onSendComplete): Use dispatcher member.
  14860. * src/PeerInteractionCommand.h
  14861. (maxDownloadSpeedLimit): New variable.
  14862. * src/DefaultBtMessageReceiver.h
  14863. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14864. (dispatcher):
  14865. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14866. (messageFactory): New variable.
  14867. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14868. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14869. (setDispatcher):
  14870. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14871. (setBtMessageFactory): New function.
  14872. * src/DefaultBtInteractive.cc
  14873. (initiateHandshake): Use messageFactory member.
  14874. (addBitfieldMessageToQueue): Use messageFactory member.
  14875. (addAllowedFastMessageToQueue): Use messageFactory member.
  14876. (decideChoking): Use messageFactory member.
  14877. (checkHave): Use messageFactory member.
  14878. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14879. (receiveMessages): Use maxDownloadSpeedLimit member.
  14880. (decideInterest): Use messageFactory member.
  14881. * src/BtRequestMessage.cc
  14882. (doReceivedAction): Use messageFactory, dispatcher member.
  14883. (onQueued): Use dispatcher member.
  14884. * src/BtPieceMessage.cc
  14885. (doReceivedAction): Use dispatcher member.
  14886. (send): Use peerConnection member.
  14887. (onWrongPiece): Use requestFactory member.
  14888. (handleChokingEvent): Use messageFactory, dispatcher member.
  14889. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14890. * src/BtMessageDispatcher.h
  14891. (BtMessageDispatcherWeakHandle): New type definition.
  14892. * src/SimpleBtMessage.cc
  14893. (send): Use peerConnection member.
  14894. * src/BtRejectMessage.cc
  14895. (doReceivedAction): Use dispatcher member.
  14896. * src/DefaultBtMessageDispatcher.h
  14897. (Option.h): Removed include.
  14898. (messageFactory): New variable.
  14899. (option): Removed.
  14900. (maxUploadSpeedLimit): New variable.
  14901. (requestTimeout): New variable.
  14902. (DefaultBtMessageDispatcher): Removed option.
  14903. Added maxUploadSpeedLimit, requestTimeout.
  14904. (setOption): Removed.
  14905. (getOption): Removed.
  14906. (setMaxUploadSpeedLimit): New function.
  14907. (setRequestTimeout): New function.
  14908. (setBtMessageFactory): New function.
  14909. * src/DefaultBtInteractive.h
  14910. (btMessageReceiver):
  14911. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14912. (dispatcher):
  14913. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14914. (btRequestFactory):
  14915. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14916. (peerConnection):
  14917. PeerConnectionHandle -> PeerConnectionWeakHandle
  14918. (messageFactory): New variable.
  14919. (option): Removed.
  14920. (keepAliveInterval): New variable.
  14921. (maxDownloadSpeedLimit): New variable.
  14922. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14923. (setBtMessageReceiver):
  14924. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14925. (setDispatcher):
  14926. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14927. (setBtRequestFactory):
  14928. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14929. (setPeerConnection):
  14930. PeerConnectionHandle -> PeerConnectionWeakHandle
  14931. (setOption): Removed.
  14932. (setKeepAliveInterval): New function.
  14933. (setMaxDownloadSpeedLimit): New function.
  14934. (setBtMessageFactory): New function.
  14935. * src/BitfieldMan.h
  14936. (cachedNumMissingBlock): New variable.
  14937. (cachedNumFilteredBlock): New variable.
  14938. (cachedCompletedLength): New variable.
  14939. (cachedFilteredComletedLength): New variable.
  14940. (cachedFilteredTotalLength): New variable.
  14941. (countMissingBlockNow): New function.
  14942. (countFilteredBlockNow): New function.
  14943. (getFilteredTotalLengthNow): New function.
  14944. (getCompletedLengthNow): New function.
  14945. (getFilteredCompletedLengthNow): New function.
  14946. (updateCache): New function.
  14947. * src/AbstractBtMessage.h
  14948. (BtMessageDispatcher.h): New include.
  14949. (PeerConnection.h): New include.
  14950. (BtRequestFactory.h): New include
  14951. (BtMessageFactory.h): New include.
  14952. (dispatcher): New variable.
  14953. (messageFactory): New variable.
  14954. (peerConnection: New variable.
  14955. (setBtMessageDispatcher): New function.
  14956. (setPeerConnection): New function.
  14957. (setBtMessageFactory): New function.
  14958. (setBtRequestFactory): New function.
  14959. * src/DefaultBtMessageFactory.cc
  14960. (setCommonProperty): Set dispatcher, requestFactory, this,
  14961. peerConnection to msg.
  14962. * src/BtRegistry.h
  14963. (BT_MESSAGE_RECEIVER): New macro.
  14964. * src/PeerConnection.h
  14965. (PeerConnectionWeakHandle): New type definition.
  14966. * src/BtMessageFactory.h
  14967. (BtMessageFactoryWeakHandle): New type definition.
  14968. * src/BitfieldMan.cc
  14969. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14970. cachedCompletedLength, cachedFilteredComletedLength,
  14971. cachedFilteredTotalLength.
  14972. Call updateCache().
  14973. (countMissingBlock): Return cachedNumMissingBlock.
  14974. (countMissingBlockNow): New function.
  14975. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14976. (countFilteredBlockNow): New function.
  14977. (setBit): Call updateCache().
  14978. (unsetBit): Call updateCache().
  14979. (setBitfield): Call updateCache().
  14980. (clearAllBit): Call updateCache().
  14981. (setAllBit): Use setBitInternal instead of setBit.
  14982. Call updateCache().
  14983. (addFilter): Call updateCache().
  14984. (enableFilter): Call updateCache().
  14985. (disableFilter): Call updateCache().
  14986. (clearFilter): Call updateCache().
  14987. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14988. (getFilteredTotalLengthNow): New function.
  14989. (getCompletedLength): Return cachedCompletedLength.
  14990. (getCompletedLengthNow): New function.
  14991. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14992. (getFilteredCompletedLengthNow): New function.
  14993. (updateCache): New function.
  14994. * src/BtMessageReceiver.h
  14995. (BtMessageReceiverWeakHandle): New type definition.
  14996. * src/DefaultBtMessageReceiver.cc
  14997. (receiveHandshake): Use messageFactory member.
  14998. (sendHandshake): Use messageFactory member.
  14999. (receiveMessage): Use messageFactory member.
  15000. * src/DefaultBtMessageFactory.h
  15001. (dispatcher): New variable.
  15002. (requestFactory): New variable.
  15003. (peerConnection): New variablle.
  15004. (setBtMessageDispatcher): New function.
  15005. (setBtRequestFactory): New function.
  15006. (setPeerConnection): New function.
  15007. * src/SharedHandle.h
  15008. (RefCount): New class.
  15009. (WeakHandle): New class.
  15010. * src/PeerObject.h
  15011. (BtMessageReceiver.h): New include.
  15012. (PeerObject): Added btMessageReceiver.
  15013. (btMessageReceiver): New variable.
  15014. * src/Util.cc
  15015. (countBit): Simplified.
  15016. * src/BtCancelMessage.cc
  15017. (doReceivedAction): Use dispatcher member.
  15018. * src/BtRequestFactory.h
  15019. (BtRequestFactoryWeakHandle): New type definition.
  15020. * src/PeerStorage.h
  15021. (downloadSpeed): int -> uint32_t
  15022. (uploadSpeed): int -> uint32_t
  15023. (sessionDownloadLength): long long int -> uint64_t
  15024. (sessionUploadLength): long long int -> uint64_t
  15025. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15026. To add RecoverableException, FatalException:
  15027. * src/AbstractCommand.cc
  15028. (onAbort): Exception -> RecoverableException
  15029. * src/PeerAbstractCommand.h
  15030. (RecoverableException.h): New include.
  15031. (onAbort): Exception -> RecoverableException.
  15032. * src/PeerInteractionCommand.cc
  15033. (onAbort): Exception -> RecoverableException.
  15034. * src/PeerAbstractCommand.cc
  15035. (execute): Exception -> RecoverableException.
  15036. (onAbort): Exception -> RecoverableException.
  15037. * src/TorrentRequestInfo.cc
  15038. (execute): Exception -> RecoverableException.
  15039. * src/MetalinkRequestInfo.cc
  15040. (execute): Exception -> RecoverableException.
  15041. * src/MetaFileUtil.cc: RecoverableException.
  15042. * src/AbstractCommand.h
  15043. (onAbort): Exception -> RecoverableException.
  15044. * src/DlRetryEx.h: Exception -> RecoverableException.
  15045. * src/DlAbortEx.h: Exception -> RecoverableException.
  15046. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  15047. * src/Util.cc: Exception -> RecoverableException.
  15048. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  15049. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  15050. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  15051. To make ID static const int
  15052. * src/BtInterestedMessage.h
  15053. (ID_t): Removed.
  15054. (ID): New variable.
  15055. (getId): Made non-const.
  15056. * src/BtPieceMessage.h
  15057. (ID_t): Removed.
  15058. (ID): New variable.
  15059. (getId): Made non-const.
  15060. * src/BtChokeMessage.h
  15061. (ID_t): Removed.
  15062. (ID): New variable.
  15063. (getId): Made non-const.
  15064. * src/BtHaveAllMessage.h
  15065. (ID_t): Removed.
  15066. (ID): New variable.
  15067. (getId): Made non-const.
  15068. * src/BtKeepAliveMessage.h
  15069. (ID_t): Removed.
  15070. (ID): New variable.
  15071. (getId): Made non-const.
  15072. * src/BtHandshakeMessage.h
  15073. (ID): New variable.
  15074. (getId): Made non-const.
  15075. * src/BtSuggestPieceMessage.h
  15076. (ID_t): Removed.
  15077. (ID): New variable.
  15078. (getId): Made non-const.
  15079. * src/BtPortMessage.h
  15080. (ID_t): Removed.
  15081. (ID): New variable.
  15082. (getId): Made non-const.
  15083. * src/AbstractBtMessage.h
  15084. (id): Removed.
  15085. (AbstractBtMessage): Removed id.
  15086. (getId): Removed.
  15087. * src/BtHaveMessage.h
  15088. (ID_t): Removed.
  15089. (ID): New variable.
  15090. (getId): Made non-const.
  15091. * src/BtAllowedFastMessage.h
  15092. (ID_t): Removed.
  15093. (ID): New variable.
  15094. (getId): Made non-const.
  15095. * src/BtCancelMessage.h
  15096. (ID_t): Removed.
  15097. (ID): New variable.
  15098. (getId): Made non-const.
  15099. * src/BtNotInterestedMessage.h
  15100. (ID_t): Removed.
  15101. (ID): New variable.
  15102. (getId): Made non-const.
  15103. * src/BtChokeMessage.h
  15104. (ID_t): Removed.
  15105. (ID): New variable.
  15106. (getId): Made non-const.
  15107. * src/BtRejectMessage.h
  15108. (ID_t): Removed.
  15109. (ID): New variable.
  15110. (getId): Made non-const.
  15111. * src/BtBitfieldMessage.h
  15112. (ID_t): Removed.
  15113. (ID): New variable.
  15114. (getId): Made non-const.
  15115. * src/BtUnchokeMessage.h
  15116. (ID_t): Removed.
  15117. (ID): New variable.
  15118. (getId): Made non-const.
  15119. * src/BtRequestMessage.h
  15120. (ID_t): Removed.
  15121. (ID): New variable.
  15122. (getId): Made non-const.
  15123. * src/BtHaveMessage.h
  15124. (ID_t): Removed.
  15125. (ID): New variable.
  15126. (getId): Made non-const.
  15127. To add --force-truncate command-line option and a check whether
  15128. the file already exists:
  15129. * src/DirectDiskAdaptor.h
  15130. (getFilePath): Made virtual public.
  15131. * src/MultiDiskAdaptor.h
  15132. (File.h): New include.
  15133. (DiskWriterEntry::fileEntry): Made private.
  15134. (DiskWriterEntry::fileExists): New function.
  15135. (DiskWriterEntry::getFileEntry): New function.
  15136. (fileExists): New function.
  15137. (getFilePath): New function.
  15138. * src/TorrentRequestInfo.cc
  15139. (FatalException.h): New include.
  15140. (message.h): New include.
  15141. (RecoverableException.h): New include.
  15142. (execute): Added a check whether file is already exists or not.
  15143. * src/DiskAdaptor.h
  15144. (fileExists): New function.
  15145. (getFilePath): New function.
  15146. * src/main.cc
  15147. (showUsage): Added an explanation of --force-truncate command-line
  15148. option.
  15149. (main): Added --force-truncate command-line option.
  15150. * src/Exception.h
  15151. (setMsg): buf[256] -> buf[1024]
  15152. * src/CopyDiskWriter.h
  15153. (getFilePath): Made public virtual.
  15154. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  15155. (fileExists): New function.
  15156. * src/DownloadEngineFactory.cc
  15157. (newTorrentConsoleEngine): Don't open file here.
  15158. * src/message.h
  15159. (EX_FILE_ALREADY_EXISTS): New definition.
  15160. * src/prefs.h
  15161. (PREF_FOECE_TRUNCATE): New definition.
  15162. * src/HttpResponseCommand.cc
  15163. (handleDefaultEncoding): Added a check whether the file already exists.
  15164. * src/SegmentMan.h
  15165. (fileExists): New function.
  15166. (shouldCancelDownloadForSafety): New function.
  15167. * src/FtpNegotiateCommand.cc
  15168. (recvSize): Added a check whether the file already exists.
  15169. * src/AbstractSingleDiskAdaptor.cc
  15170. (File.h): New include.
  15171. (fileExists): New function.
  15172. * src/AbstractSingleDiskAdaptor.h
  15173. (getFilePath): Removed.
  15174. (fileExists): New function.
  15175. * src/SegmentMan.cc
  15176. (fileExists): New function.
  15177. (shouldCancelDownloadForSafety): New function.
  15178. To fix regression bug in torrent downloading:
  15179. * src/DefaultBtRequestFactory.cc
  15180. (doChokedAction): New function.
  15181. * src/DefaultBtRequestFactory.h
  15182. (doChokedAction): New function.
  15183. * src/DefaultBtMessageDispatcher.cc
  15184. (doChokedAction): Do not delete request if its target is in allowed
  15185. fast set.
  15186. * src/DefaultBtInteractive.cc
  15187. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  15188. (sendKeepAlive): Send keep alive message even if the outgoing message
  15189. queue is not empty.
  15190. (decideInterest): Simplified the code.
  15191. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  15192. it is already called when BtChokeMessage is received from a peer.
  15193. * src/BtRequestFactory.h
  15194. (doChokedAction): New function.
  15195. To clean up code:
  15196. * src/PeerInteractionCommand.h
  15197. (executeInternal): Added virtual keyword explicitly.
  15198. (prepareForRetry): Added virtual keyword explicitly.
  15199. (prepareForNextPeer): Added virtual keyword explicitly.
  15200. (onAbort): Added virtual keyword explicitly.
  15201. * src/RequestSlot.cc
  15202. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  15203. * src/BtPieceMessage.cc
  15204. (doReceivedAction): Added a debug log of piece's bitfield.
  15205. * src/Piece.h
  15206. (getBitfieldLength): New function.
  15207. * src/ByteArrayDiskWriter.cc
  15208. (clear): Added buf = 0 to avoid double free corruption.
  15209. * src/FileAllocator.cc
  15210. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  15211. Added cp.reset().
  15212. * src/BitfieldMan.h
  15213. (operator=): Rewritten.
  15214. * src/BitfieldMan.cc
  15215. (BitfieldMan): Initialized bitfield, useBitfield.
  15216. * src/PeerConnection.cc
  15217. (receiveMessage): Added a call to socket->readable() after getting
  15218. message length to avoid possible EOF.
  15219. * src/Util.cc
  15220. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  15221. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15222. To add an ability to pre-allocate file space:
  15223. * src/DirectDiskAdaptor.h: Rewritten.
  15224. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  15225. * src/MultiDiskAdaptor.h: Rewritten.
  15226. * src/DefaultPieceStorage.cc
  15227. (MultiDiskWriter.h): Removed include.
  15228. (PreAllocationDiskWriter.h): Removed include.
  15229. (FileAllocationMonitor.h): New include.
  15230. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  15231. (initStorage): Rewritten.
  15232. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15233. * src/FileAllocator.h: New class.
  15234. * src/FileAllocator.cc: New class.
  15235. * src/FileAllocationMonitor.h: New class.
  15236. * src/FileAllocationMonitor.cc: New class.
  15237. * src/ConsoleFileAllocationMonitor.h: New class.
  15238. * src/ConsoleFileAllocationMonitor.cc: New class.
  15239. * src/AbstractSingleDiskAdaptor.h: New class.
  15240. * src/AbstractSingleDiskAdaptor.cc: New class.
  15241. * src/DiskAdaptor.h
  15242. (Directory.h): Removed include.
  15243. (DiskWriter.h): Removed include.
  15244. (FileEntry.h): Removed include.
  15245. (diskWriter): Removed.
  15246. (DiskAdaptor): Removed diskWriter.
  15247. (openFile): Made pure virtual.
  15248. (closeFile): Made pure virtual.
  15249. (openExistingFile): Made pure virtual.
  15250. (initAndOpenFile): Made pure virtual.
  15251. (writeData): Made pure virtual.
  15252. (readData): Made pure virtual.
  15253. (sha1Sum): Made pure virtual.
  15254. (getStoreDir): Returns const reference of storeDir.
  15255. (DiskAdaptorHandle): New type definition.
  15256. * src/main.cc
  15257. (ConsoleFileAllocationMonitor.h): New include.
  15258. (showUsage): Added default value description of -s option.
  15259. Added the description of --file-allocation option.
  15260. (main): Set default value of --file-allocation option to 'none'.
  15261. Added --file-allocation command-line option.
  15262. Setup FileAllocationMonitorFactory.
  15263. * src/FtpInitiateConnectionCommand.cc
  15264. (executeInternal): Removed diskWriter related processing, which was
  15265. moved to FtpNegotiationCommand.cc.
  15266. * src/DirectDiskAdaptor.cc
  15267. (getFilePath): Made non-const.
  15268. * src/CopyDiskAdaptor.h
  15269. (DiskAdaptor.h): Removed include.
  15270. (DiskWriter.h): Removed include.
  15271. (AbstractSingleDiskAdaptor.h): New include.
  15272. (getFilePath): Made non-const. Added virtual keyword.
  15273. (CopyDiskAdaptor): Removed diskWriter.
  15274. (getTempFile): Returns const reference.
  15275. (CopyDiskAdaptorHandle): New type definition.
  15276. * src/ByteArrayDiskWriter.cc
  15277. (clear): Simplified.
  15278. (initAndOpenFile): Rewritten.
  15279. (openFile): Call initAndOpenFile()
  15280. * src/MultiDiskAdaptor.cc: Rewritten.
  15281. * src/DownloadEngineFactory.cc
  15282. (FileAllocator.h): New include.
  15283. (FileAllocationMonitor.h): New include.
  15284. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  15285. create DefaultDiskWriter with file allocator.
  15286. * src/DiskWriter.h
  15287. (initAndOpenFile): Added totalLength argument.
  15288. (openFile): Added totalLength argument.
  15289. * src/prefs.h
  15290. (PREF_FILE_ALLOCATION): New definition.
  15291. (V_PREALLOC): New definition.
  15292. (V_NONE): New definition.
  15293. * src/HttpResponseCommand.cc
  15294. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  15295. size.
  15296. * src/FtpNegotiateCommand.cc
  15297. (Util.h): New include.
  15298. (recvSize): Open file here.
  15299. * src/Util.h
  15300. (ullitos): New function.
  15301. * src/CopyDiskWriter.h
  15302. (getFilePath): Made non-const.
  15303. * src/DefaultDiskWriter.h
  15304. (Option.h): New include.
  15305. (totalLength): Removed.
  15306. (DefaultDiskWriter): Removed totalLength.
  15307. (initAndOpenFile): Added totalLength argument.
  15308. (DefaultDiskWriterHandle): New type definition.
  15309. (createNewDiskWriter): New function.
  15310. * src/Util.cc
  15311. (ullitos): New function.
  15312. * src/DefaultDiskWriter.cc
  15313. (message.h): New include.
  15314. (FileAllocator.h): New include.
  15315. (prefs.h): New include.
  15316. (Util.h): New include.
  15317. (DefaultDiskWriter): Removed totalLength.
  15318. (initAndOpenFile): Added file allocation.
  15319. (createNewDiskWriter): New function. Just for temporary solution.
  15320. It will be rewritten later.
  15321. * src/DiskAdaptor.cc
  15322. (DiskAdaptor): Removed diskWriter.
  15323. * src/AbstractDiskWriter.cc
  15324. (LogFactory.h): New include.
  15325. (AbstractDiskWriter): Added fileAllocator, logger.
  15326. (openFile): Added totalLength argument.
  15327. * src/AbstractDiskWriter.h
  15328. (FileAllocator.h): New include.
  15329. (Logger.h): New include.
  15330. (fileAllocator): New variable.
  15331. (logger): New variable.
  15332. (openFile): Added totalLength argument. Added virtual keyword
  15333. explicitly.
  15334. (openExistingFile): Added totalLength argument. Added virtual keyword
  15335. explicitly.
  15336. (closeFile): Added virtual keyword explicitly.
  15337. (sha1Sum): Added virtual keyword explicitly.
  15338. (writeData): Added virtual keyword explicitly.
  15339. (readData): Added virtual keyword explicitly.
  15340. (setFileAllocator): New function.
  15341. * src/DefaultPieceStorage.h
  15342. (FileAllocator.h): New include.
  15343. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15344. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15345. * src/FileProgressMonitor.h: New class.
  15346. To compile aria2 on PC-BSD:
  15347. * src/DefaultBtContext.cc
  15348. (libgen.h): New include.
  15349. To fix memory leak:
  15350. * src/Exception.h
  15351. (~Exception): Delete cause. Fixed memory leak.
  15352. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15353. Rewritten a portion of bittorrent implementation:
  15354. * src/BtMessageValidator.h: New class.
  15355. * src/BtBitfieldMessageValidator.h: New class.
  15356. * src/BtHandshakeMessageValidator.h: New class.
  15357. * src/BtRequestMessageValidator.h: New class.
  15358. * src/BtSuggestPieceMessageValidator.h: New class.
  15359. * src/BtAllowedFastMessageValidator.h: New class.
  15360. * src/BtRejectMessageValidator.h: New class.
  15361. * src/BtCancelMessageValidator.h: New class.
  15362. * src/BtPieceMessageValidator.h: New class.
  15363. * src/BtHaveMessageValidator.h: New class.
  15364. * src/BtEventListener.h: New class.
  15365. * src/AbstractBtEventListener.h: New class.
  15366. * src/BtEvent.h: New class.
  15367. * src/BtChokingEvent.h: New class.
  15368. * src/BtChokedEvent.h: New class.
  15369. * src/BtCancelSendingPieceEvent.h: New class.
  15370. * src/BtAbortOutstandingRequestEvent.h: New class.
  15371. * src/Randomizer.h: New class.
  15372. * src/SimpleRandomizer.h: New class.
  15373. * src/BtMessage.h: New class.
  15374. * src/AbstractBtMessage.h: New class.
  15375. * src/SimpleBtMessage.h: New class.
  15376. * src/BtHaveMessage.h: New class.
  15377. * src/BtInterestedMessage.h: New class.
  15378. * src/BtAllowedFastMessage.h: New class.
  15379. * src/BtUnchokeMessage.h: New class.
  15380. * src/BtCancelMessage.h: New class.
  15381. * src/BtNotInterestedMessage.h: New class.
  15382. * src/BtChokeMessage.h: New class.
  15383. * src/BtHaveNoneMessage.h: New class.
  15384. * src/BtHandshakeMessage.h: New class.
  15385. * src/BtSuggestPieceMessage.h: New class.
  15386. * src/BtHaveMessage.h: New class.
  15387. * src/BtPieceMessage.h: New class.
  15388. * src/BtHaveAllMessage.h: New class.
  15389. * src/BtKeepAliveMessage.h: New class.
  15390. * src/BtPortMessage.h: New class.
  15391. * src/BtRejectMessage.h: New class.
  15392. * src/BtBitfieldMessage.h: New class.
  15393. * src/BtRequestMessage.h: New class.
  15394. * src/DefaultBtRequestFactory.h: New class.
  15395. * src/DefaultBtMessageReceiver.h: New class.
  15396. * src/BtInteractive.h: New class.
  15397. * src/BtMessageDispatcher.h: New class.
  15398. * src/DefaultBtMessageDispatcher.h: New class.
  15399. * src/DefaultBtInteractive.h: New class.
  15400. * src/BitfieldManFactory.h: New class.
  15401. * src/HandleRegistry.h: New class.
  15402. * src/BtMessageFactory.h: New class.
  15403. * src/BtMessageReceiver.h: New class.
  15404. * src/DefaultBtMessageFactory.h: New class.
  15405. * src/PeerObject.h: New class.
  15406. * src/BtRequestFactory.h: New class.
  15407. * src/SuggestPieceMessage.h: Removed.
  15408. * src/PortMessage.h: Removed.
  15409. * src/SuggestPieceMessage.h: Removed.
  15410. * src/KeepAliveMessage.h: Removed.
  15411. * src/HandshakeMessage.h: Removed.
  15412. * src/PeerInteraction.h: Removed.
  15413. * src/UnchokeMessage.h: Removed.
  15414. * src/PieceMessage.h: Removed.
  15415. * src/RequestMessage.h: Removed.
  15416. * src/InterestedMessage.h: Removed.
  15417. * src/HaveMessage.h: Removed.
  15418. * src/CancelMessage.h: Removed.
  15419. * src/RejectMessage.h: Removed.
  15420. * src/AllowedFastMessage.h: Removed.
  15421. * src/HaveNoneMessage.h: Removed.
  15422. * src/SimplePeerMessage.h: Removed.
  15423. * src/HaveAllMessage.h: Removed.
  15424. * src/BitfieldMessage.h: Removed.
  15425. * src/PeerMessageFactory.h: Removed.
  15426. * src/NotInterestedMessage.h: Removed.
  15427. * src/ChokeMessage.h: Removed.
  15428. * src/PeerMessage.h: Removed.
  15429. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15430. To know root cause of exception:
  15431. * src/Exception.h
  15432. (cause): New variable.
  15433. (Exception): Added a parameter.
  15434. (getMsg): Return const reference to msg.
  15435. (getCause): New function.
  15436. * src/DlRetryEx.h
  15437. (DlRetryEx): Added a parameter 'cause'.
  15438. Added an overloaded constructor.
  15439. (DlAbortEx): Added a parameter 'cause'.
  15440. Added an overloaded constructor.
  15441. * src/SimpleLogger.cc
  15442. (writeLog): Log nested exception messages recursively.
  15443. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15444. * src/DefaultBtProgressInfoFile.cc
  15445. (load): Fixed memory leak when the infohash doesn't match.
  15446. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15447. * src/DefaultPeerStorage.cc
  15448. (calculateStat): Simplified the code by combining 2 loops into 1.
  15449. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15450. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  15451. for BitTorrent download:
  15452. * src/PeerAbstractCommand.cc
  15453. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  15454. * src/main.cc:
  15455. (timeoutSpecified): Removed.
  15456. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  15457. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  15458. * src/TorrentRequestInfo.cc
  15459. (timeoutSpecified): Removed.
  15460. (torrentHandler): Removed timeoutSpecified and the adjustment of
  15461. timeout value.
  15462. * src/prefs.h
  15463. (PREF_BT_TIMEOUT): New definition.
  15464. Delete unused variables:
  15465. * src/TorrentRequestInfo.cc
  15466. (requestInfo): Removed.
  15467. Move setSignalHander to Util::setGlobalSignalHandler:
  15468. * src/TorrentRequestInfo.cc:
  15469. setSignalHander -> Util::setGlobalSignalHandler
  15470. * src/main.cc
  15471. (setSignalHander): Removed.
  15472. (main): setSignalHander -> Util::setGlobalSignalHandler
  15473. * src/Util.h
  15474. (setGlobalSignalHandler): New function.
  15475. * src/Util.cc
  15476. (setGlobalSignalHandler): New function.
  15477. * src/UrlRequestInfo.cc:
  15478. setSignalHander -> Util::setGlobalSignalHandler
  15479. Reset peer status in order to exit gracefully:
  15480. * src/PeerAbstractCommand.cc
  15481. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  15482. To fix the bug that causes the number of bytes uploaded is not saved
  15483. to .aria2 file:
  15484. * src/DefaultPeerStorage.h
  15485. (removedPeerSessionDownloadLength): New variable.
  15486. (removedPeerSessionUploadLength): New variable.
  15487. * src/DefaultPeerStorage.cc
  15488. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  15489. removedPeerSessionUploadLength(0).
  15490. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  15491. through all peers, and then add removedPeerSessionDownloadLength(
  15492. removedPeerSessionUploadLength) to it.
  15493. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  15494. (to) the peer to removedPeerSessionDownloadLength
  15495. (removedPeerSessionUploadLength).
  15496. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15497. To add Metalink location option:
  15498. * src/MetalinkRequestInfo.cc
  15499. (execute): Call MetalinkEntry::setLocationPreference()
  15500. * src/main.cc
  15501. (showUsage): Added the help message for --metalink-location option.
  15502. (main): Added --metalink-location option.
  15503. * src/prefs.h
  15504. (PREF_METALINK_LOCATION): New definition.
  15505. * src/MetalinkEntry.cc
  15506. (AddLocationPreference): New function object.
  15507. (setLocationPreference): New function.
  15508. * src/Xml2MetalinkProcessor.cc
  15509. (getResource): Set location attribute to MetalinkResource
  15510. To show URLs to download
  15511. * src/UrlRequestInfo.h
  15512. (printUrls): New function.
  15513. To add multiple <file> Metalink support:
  15514. * src/MetalinkEntry.h
  15515. (MetalinkResources): Removed.
  15516. (setLocationPreference): New function.
  15517. (MetalinkEntryHandle): New type definition.
  15518. (MetalinkEntries): New type definition.
  15519. * src/Xml2MetalinkProcessor.h
  15520. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15521. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15522. (parseFile): Metalinker* -> MetalinkerHandle
  15523. * src/UrlRequestInfo.h
  15524. (execute): RequestInfo* -> RequestInfos
  15525. * src/MetalinkRequestInfo.cc
  15526. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  15527. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  15528. (execute): RequestInfo* -> RequestInfos
  15529. Added multiple <file> support. Print filename when it is queued.
  15530. * src/MetalinkRequestInfo.h
  15531. (execute): RequestInfo* -> RequestInfos
  15532. (getDownloadEngine): Removed.
  15533. * src/RequestInfo.h
  15534. (RequestInfoHandle): New type definition.
  15535. (RequestInfos): New type definition.
  15536. (execute): RequestInfo* -> RequestInfos
  15537. (getDownloadEngine): Removed.
  15538. * src/MetalinkResource.h
  15539. (MetalinkResourceHandle): New type definition.
  15540. (MetalinkResources): New type definition.
  15541. * src/MetalinkEntry.cc
  15542. (~MetalinkEntry): Removed the deletion of the elements of resources,
  15543. because the element is now of type MetalinkResourceHandle.
  15544. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  15545. (Supported): MetalinkResource* -> MetalinkResourceHandle
  15546. (dropUnsupportedResource): Removed the deletion of the elements of
  15547. resources because the element is now of type MetalinkResourceHandle.
  15548. * src/Xml2MetalinkProcessor.cc
  15549. (parseFile): Metalinker* -> MetalinkerHandle
  15550. MetalinkEntry* -> MetalinkEntryHandle
  15551. Removed try-catch block.
  15552. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15553. MetalinkResource* -> MetalinkResourceHandle
  15554. Removed try-catch block.
  15555. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15556. Free result by using xmlXPathFreeObject()
  15557. * src/Metalinker.cc
  15558. (~Metalinker): Removed the deletion of entries.
  15559. MetalinkEntry* -> MetalinkEntryHandle
  15560. (queryEntry): Add multiple <file> Metalink support.
  15561. * src/Metalinker.h
  15562. (MetalinkEntries): Removed.
  15563. (queryEntry): MetalinkEntry* -> MetalinkEntries
  15564. * src/MetalinkProcessor.h
  15565. (parseFile): Metalinker* -> MetalinkerHandle
  15566. Bug fixes:
  15567. * src/PeerChokeCommand.cc
  15568. (execute): cat01->cat02
  15569. * src/DefaultPieceStorage.cc
  15570. (DefaultPieceStorage): Added diskAdaptor(0)
  15571. * src/TrackerWatcherComand.cc:
  15572. (execute): Use btAnnounce->noMoreAnnounce()
  15573. to determin whether the function returns true or not.
  15574. * src/TrackerUpdateCommand.cc:
  15575. (execute): Use btAnnounce->noMoreAnnounce()
  15576. to determin whether the function returns true or not.
  15577. * src/FtpConnection.cc
  15578. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  15579. This is the fix of the busy loop bug.
  15580. * src/DownloadCommand.cc
  15581. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  15582. cached PeerStat.
  15583. The value of "name" entry in torrent file is now set by
  15584. *DiskAdaptor::setTopDir(...) methods.
  15585. * src/MultiDiskAdaptor.h
  15586. (topDir): New variable.
  15587. (setTopDir): New function.
  15588. (getTopDir): New function.
  15589. * src/MultiDiskAdaptor.cc
  15590. (getFilePath): Concat storDir, "/" and topDir.
  15591. (mkdir): Use getFilePath() to get the directory path for output.
  15592. * src/DefaultPieceStorage.cc
  15593. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  15594. CopyDiskAdaptor.
  15595. * src/CopyDiskAdaptor.h
  15596. (topDir): New variable.
  15597. (setTopDir): New function.
  15598. (getTopDir): New function.
  15599. * src/CopyDiskAdaptor.cc
  15600. (fixFilename): Updated.
  15601. Misc
  15602. * src/UrlRequestInfo.h
  15603. (e): Removed.
  15604. (UrlRequestInfo): Removed e.
  15605. (getDownloadEngine): Removed.
  15606. * src/UrlRequestInfo.cc
  15607. (handler): Rewritten.
  15608. (printUrls): New function.
  15609. (execute): Call printUrls().
  15610. * src/HandshakeMessage.cc
  15611. (check): peerinteraction->getBtContext() -> btContext
  15612. * src/PeerInteraction.h
  15613. (getBtContext): Removed.
  15614. * src/TorrentRequestInfo.h
  15615. (execute): RequestInfo* -> RequestInfos
  15616. (getDownloadEngine): Removed.
  15617. * src/TorrentRequestInfo.cc
  15618. (haltRequested): Removed.
  15619. (btHaltRequested): New variable.
  15620. (torrentHandler): haltRequested -> btHaltRequested
  15621. (execute): RequestInfo* -> RequestInfos
  15622. * src/TorrentConsoleDownloadEngine.cc
  15623. (afterEachIteration): haltRequested -> btHaltRequested.
  15624. * src/ConsoleDownloadEngine.h
  15625. (initStatistics): Added virtual.
  15626. (calculateStatistics): Added virtual.
  15627. (onEndOfRun): Added virtual.
  15628. (afterEachIteration): Added virtual.
  15629. * src/ConsoleDownloadEngine.cc
  15630. (haltRequested): New variable.
  15631. (afterEachIteration): New function.
  15632. * src/main.cc
  15633. (requestInfo): Removed.
  15634. * src/SegmentMan.cc
  15635. (findSlowerSegmentEntry): Refactored.
  15636. * Release 0.9.0
  15637. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15638. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  15639. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  15640. * src/TorrentMan.h: Removed.
  15641. * src/TorrentMan.cc: Removed.
  15642. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  15643. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  15644. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  15645. * src/PeerAbstractCommand.cc: Use btRuntime.
  15646. * src/BtContextAwareCommand.h: New class.
  15647. * src/FileEntry.h: Added accessor methods for following variables.
  15648. (path): Made private.
  15649. (length): Made private.
  15650. (offset): Made private.
  15651. (extracted): Made private.
  15652. (requested): Made private.
  15653. (FileEntries): New definition.
  15654. (FileEntryHandle): New definition.
  15655. * src/FileEntry.cc: New file.
  15656. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  15657. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  15658. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  15659. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  15660. * src/PieceStorage.h: New file.
  15661. * src/PeerInteractionCommand.h: Use btContext.
  15662. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  15663. btRuntime.
  15664. * src/DefaultBtProgressInfoFile.h: New file.
  15665. * src/DefaultBtProgressInfoFile.cc: New file.
  15666. * src/File.cc
  15667. (Util.h): New include.
  15668. (mkdirs): New function.
  15669. * src/MultiDiskAdaptor.h
  15670. (mkdir): New function.
  15671. * src/PeerListProcessor.h
  15672. (Peers): Removed.
  15673. * src/PeerInteraction.h
  15674. (torrentMan): Removed.
  15675. (btContext): New variable.
  15676. (peerStorage): New variable.
  15677. (pieceStorage): New variable.
  15678. (btAnnounce): New variable.
  15679. (getTorrentMan): Removed.
  15680. (getBtContext): New function.
  15681. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  15682. btAnnounce.
  15683. * src/HandshakeMessage.h
  15684. (TorrentMan.h): Removed.
  15685. * src/HandshakeMessage.cc: Use btContext.
  15686. * src/DefaultBtAnnounce.cc: New file.
  15687. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  15688. * src/DefaultPieceStorage.cc: New file.
  15689. * src/DefaultBtContext.h: New file.
  15690. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  15691. Use the accessor methods of FileEntry.
  15692. * src/CookieBox.cc: Updated to use Util::slice().
  15693. * src/PieceMessage.cc: Use btContext, pieceStorage.
  15694. * src/common.h (SharedHandle.h): New include.
  15695. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  15696. pieceStorage.
  15697. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  15698. * src/DiskAdaptor.h
  15699. (topDir): Removed.
  15700. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  15701. (setTopDir): Removed.
  15702. (getTopDir): Removed.
  15703. * src/BtContext.h: New file.
  15704. * src/DefaultPeerStorage.h: New file.
  15705. * src/PieceMessage.h (TorrentMan.h): Removed.
  15706. * src/RequestMessage.h (TorrentMan.h): Removed.
  15707. * src/TorrentDownloadEngine.h
  15708. (uploadLength): New variable.
  15709. (btContext): New variable.
  15710. (btRuntime): New variable.
  15711. (pieceStorage): New variable.
  15712. (peerStorage): New variable.
  15713. (btAnnounce): New variable.
  15714. (btProgressInfoFile): New variable.
  15715. (torrentMan): Removed.
  15716. (setBtContext): New function.
  15717. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  15718. peerStorage, btAnnounce, btProgressInfoFile.
  15719. * src/Piece.h
  15720. (toString): New function.
  15721. (Pieces): New type definition.
  15722. * src/Peer.h
  15723. (active): New variable.
  15724. (Peer): Added active.
  15725. (activate): Set active to true.
  15726. (deactivate): Set active to false.
  15727. (isActive): New function.
  15728. (Peers): New type definition.
  15729. * src/DirectDiskAdaptor.cc
  15730. (getFilePath): Use the accessor methods of FileEntry.
  15731. * src/TorrentConsoleDownloadEngine.h
  15732. (afterEachIteration): New function.
  15733. * src/TorrentConsoleDownloadEngine.cc
  15734. (haltRequested): New variable.
  15735. (sendStatistics): Use pieceStorage, btRuntime.
  15736. (afterEachIteration): New function.
  15737. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  15738. * src/Directry.h
  15739. (Directory): New function.
  15740. (DirectoryHandle): New type definition.
  15741. * src/BtProgressInfoFile.h: New file.
  15742. * src/RequestMessage.cc: Use pieceStorage.
  15743. * src/BtRuntime.h: New file.
  15744. * src/DefaultBtContext.cc: New file.
  15745. * src/BitfieldMan.h
  15746. (getCompletedLength): New function(private).
  15747. (getCompletedLength): New function.
  15748. (getFilteredCompletedLength): New function.
  15749. * src/BitfieldMan.h
  15750. (getCompletedLength): New function(private).
  15751. (getCompletedLength): New function.
  15752. (getFilteredCompletedLength): New function.
  15753. * src/MultiDiskAdaptor.cc
  15754. (mkdir): New function.
  15755. (openFile): Call mkdir().
  15756. (initAndOpenFile): Call mkdir().
  15757. * src/CancelMessage.h
  15758. (TorrentMan.h): Removed.
  15759. * src/RejectMessage.h
  15760. (TorrentMan.h): Removed.
  15761. * src/DownloadEngineFactory.cc
  15762. (DefaultPieceStorage.h): New include.
  15763. (DefaultPeerStorage.h): New include.
  15764. (DefaultBtAnnounce.h): New include.
  15765. (DefaultBtProgressInfoFile.h): New include.
  15766. (newTorrentConsoleEngine): Rewritten.
  15767. * src/ShareRatioSeedCriteria.h
  15768. (torrentMan): Removed.
  15769. (btContext): New variable.
  15770. (peerStorage): New variable.
  15771. (btRuntime): New variable.
  15772. (evaluate): Use btContext, btRuntime, peerStorage.
  15773. * src/AnnounceTier.h: New file.
  15774. * src/BtAnnounce.h: New file.
  15775. * src/BtRegistry.h: New file.
  15776. * src/PeerInitiateConnectionCommand.h: Added btContext.
  15777. * src/PeerConnection.h (TorrentMan.h): Removed.
  15778. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  15779. * src/Util.h
  15780. (slice): Added an argument.
  15781. * src/Util.cc
  15782. (slice): Added an argument to control whether trim is made or not.
  15783. * src/PeerStorage.h: New file.
  15784. * src/BtRegistry.cc: New file.
  15785. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  15786. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  15787. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  15788. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  15789. * src/TorrentRequestInfo.h
  15790. (e): Removed.
  15791. (showFileEntry): Added an argument.
  15792. (getDownloadEngine): Return 0.
  15793. * src/DefaultBtAnnounce.h: New file.
  15794. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15795. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15796. * src/PeerMessageFactory.h
  15797. (btContext): New variable.
  15798. (pieceStorage): New variable.
  15799. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15800. btAnnounce.
  15801. * src/DiskAdaptor.cc
  15802. (DiskAdaptor): Removed topDir.
  15803. (~DiskAdaptor): Removed topDir.
  15804. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15805. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15806. * src/File.h (mkdirs): New function.
  15807. * src/DefaultPeerStorage): New file.
  15808. * src/DownloadEngineFactory.h
  15809. (newTorrentConsoleEngine): Use btContext.
  15810. * src/BtContextAwareCommand.cc: New file.
  15811. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15812. * src/PeerMessage.h
  15813. (btContext): New variable.
  15814. (peerStorage): New variable.
  15815. (pieceStorage): New variable.
  15816. (setBtContext): New function.
  15817. * src/Directry.cc
  15818. (Directory): New function.
  15819. (createDir): Do nothing if name.size() == 0.
  15820. * src/AnnounceList.h
  15821. (AnnounceTier): Removed.
  15822. (AnnounceTiers): Removed.
  15823. * src/DefaultPieceStorage.h: New file.
  15824. * src/Piece.cc (toString): New function.
  15825. To fix typo:
  15826. * src/main.cc (showVersion): Fixed typo.
  15827. To fix compile warning:
  15828. * src/DelegatingPeerListProcessor.cc
  15829. (canHandle): Added "return false".
  15830. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15831. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15832. make the process of announce request testable.
  15833. * src/TrackerWatcherCommand.h
  15834. (TimeA2.h): Removed.
  15835. (interval): Removed.
  15836. (checkPoint): Removed.
  15837. (createRequestCommand): Added an argument 'url'.
  15838. (TrackerWatherCommand): Removed interval.
  15839. (createCommand): New function.
  15840. * src/DownloadEngineFactory.cc
  15841. (newTorrentConsoleEngine): Updated according to the changes in
  15842. TrackerWatherCommand.
  15843. * src/TorrentMan.cc
  15844. (DelegatingPeerListProcessor.h): New includes.
  15845. (TorrentMan): Added the initialization of announceInterval.
  15846. (isStoppedAnnounceReady): New function.
  15847. (isCompletedAnnounceReady): New function.
  15848. (isDefaultAnnounceReady): New function.
  15849. (isAnnounceReady): New function.
  15850. (getAnnounceUrl): New function.
  15851. (announceStart): New function.
  15852. (announceFailure): New function.
  15853. (announceSuccess): New function.
  15854. (isAllAnnounceFailed): New function.
  15855. (resetAnnounce): New function.
  15856. (processAnnounceResponse): New function.
  15857. (needMorePeerConnection): New function.
  15858. (noMoreAnnounce): New function.
  15859. * src/TrackerUpdateCommand.h
  15860. (getTrackerResponse): int->size_t
  15861. * src/TorrentMan.h
  15862. (isStoppedAnnounceReady): New function.
  15863. (isCompletedAnnounceReady): New function.
  15864. (isDefaultAnnounceReady): New function.
  15865. (announceInterval): New variable.
  15866. (isAnnounceReady): New function.
  15867. (getAnnounceUrl): New function.
  15868. (announceStart): New function.
  15869. (announceFailure): New function.
  15870. (announceSuccess): New function.
  15871. (isAllAnnounceFailed): New function.
  15872. (resetAnnounce): New function.
  15873. (processAnnounceResponse): New function.
  15874. (needMorePeerConnection): New function.
  15875. (noMoreAnnounce): New function.
  15876. * src/TrackerWatcherCommand.cc
  15877. (TrackerWatherCommand): Removed interval and checkPoint.
  15878. (execute): Rewritten.
  15879. (createCommand): New function.
  15880. (createRequestCommand): Rewritten.
  15881. * src/TrackerUpdateCommand.cc
  15882. (MetaFileUtil.h): Removed.
  15883. (DelegatingPeerListProcessor.h): Removed.
  15884. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15885. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15886. Request -> RequestHandle:
  15887. * src/HttpResponseCommand.h: Request->RequestHandle
  15888. * src/AbstractCommand.cc: Request->RequestHandle
  15889. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15890. * src/HttpRequestCommand.cc: Request->RequestHandle
  15891. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15892. * src/AbstractCommand.h: Request->RequestHandle
  15893. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15894. * src/HttpResponseCommand.cc: Request->RequestHandle
  15895. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15896. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15897. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15898. * src/HttpConnection.h: Request->RequestHandle
  15899. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15900. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15901. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15902. * src/DownloadCommand.h: Request->RequestHandle
  15903. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15904. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15905. * src/HttpRequestCommand.h: Request->RequestHandle
  15906. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15907. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15908. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15909. * src/HttpDownloadCommand.h: Request->RequestHandle
  15910. * src/FtpConnection.cc: Request->RequestHandle
  15911. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15912. * src/UrlRequestInfo.cc: Request->RequestHandle
  15913. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15914. * src/HttpConnection.h: Request->RequestHandle
  15915. * src/DownloadCommand.cc: Request->RequestHandle
  15916. * src/FtpConnection.h: Request->RequestHandle
  15917. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15918. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15919. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15920. * src/Request.h
  15921. (SharedHandle.h): New include.
  15922. (RequestHandle): New type definition.
  15923. (Requests): Redefined.
  15924. To add MULTITRACKER support:
  15925. * src/TrackerWatcherCommand.h
  15926. (createRequestCommand): New function.
  15927. * src/DownloadEngineFactory.cc
  15928. (newTorrentConsoleEngine): Removed req.
  15929. * src/prefs.h
  15930. (PREF_TRACKER_MAX_TRIES): New definition.
  15931. * src/TorrentMan.cc
  15932. (TorrentMan): Removed req. Added trackerNumTry.
  15933. (~TorrentMan): Removed req.
  15934. (setupInternal1): Added announceList.
  15935. * src/TorrentRequestInfo.cc
  15936. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15937. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15938. * src/main.cc
  15939. (main): Added PREF_TRACKER_MAX_TRIES.
  15940. * src/TorrentMan.h
  15941. (Request.h): Removed.
  15942. (AnnounceList.h): New include.
  15943. (trackerNumTry): New variable.
  15944. (req): Removed.
  15945. (announceList): New variable.
  15946. * src/TrackerWatcherCommand.cc
  15947. (execute): Rewritten.
  15948. (createRequestCommand): New function.
  15949. * src/TrackerUpdateCommand.cc
  15950. (execute): Updated with the use of AnnounceList.
  15951. * src/AnnounceList.cc: New class.
  15952. * src/AnnounceList.h: New class.
  15953. To fix typo:
  15954. * src/prefs.h
  15955. (PREF_MAX_TRIES): max_try->max_tries
  15956. To not to decode "+" as space in URL decode:
  15957. * src/Util.cc
  15958. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15959. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15960. To add timeout to async name resolution:
  15961. * src/AbstractCommand.h
  15962. (nameResolveFinished): New function. This is not elegant way. It needs
  15963. to be more refined.
  15964. (nameResolverCheck): New variable.
  15965. * src/AbstractCommand.cc
  15966. (AbstractCommand): Added nameResolverCheck.
  15967. (execute): Added the check whether the name resolution has finished.
  15968. (setNameResolverCheck): Set nameResolverCheck to true.
  15969. (disableNameResolverCheck): Set nameResolverCheck to false.
  15970. (nameResolverFinished): New function.
  15971. * src/FtpInitiateConnectionCommand.h
  15972. (nameResolverFinished): New function.
  15973. * src/FtpInitiateConnectionCommand.cc
  15974. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15975. * src/HttpInitiateConnectionCommand.h
  15976. (nameResolverFinished): New function.
  15977. * src/HttpInitiateConnectionCommand.cc
  15978. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15979. * src/prefs.h
  15980. (PREF_DNS_TIMEOUT): New definition.
  15981. * src/main.cc
  15982. (main): Added PREF_DNS_TIMEOUT.
  15983. To add the support for a non-compact response from a tracker:
  15984. * src/PeerListProcessor.h: New class.
  15985. * src/DefaultPeerListProcessor.h: New class.
  15986. * src/DefaultPeerListProcessor.cc: New class.
  15987. * src/CompactPeerListProcessor.h: New class.
  15988. * src/CompactPeerListProcessor.cc: New class.
  15989. * src/DelegatingPeerListProcessor.h: New class.
  15990. * src/DelegatingPeerListProcessor.cc: New class.
  15991. * src/TorrentMan.cc
  15992. (addPeer): New function(overload).
  15993. (addPeer): Delete unused peers only when new peer is added.
  15994. * src/TorrentMan.h
  15995. (PeerListProcessor.h): Included.
  15996. (Peers): Removed.
  15997. (addPeer): New function(overload).
  15998. * src/TrackerUpdateCommand.cc
  15999. (netinet/in.h): Removed.
  16000. (DelegatingPeerListProcessor.h): Included.
  16001. (execute): Updated to use DelegatingPeerListProcessor.
  16002. To fix the memory leak in TorrentMan::peers:
  16003. * src/PeerAbstractCommand.cc
  16004. (onAbort): Added peer->resetStatus().
  16005. * src/Peer.h
  16006. (resetStatus): Made public.
  16007. To improve the precision of the speed calculation:
  16008. * src/SpeedCalc.h
  16009. (nextInterval): New variable.
  16010. * src/SpeedCalc.cc
  16011. (reset): Added nextInterval.
  16012. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  16013. (changeSw): Set nextInterval to 15 seconds relative to the current
  16014. instant time.
  16015. * src/main.cc
  16016. (showVersion): Updated.
  16017. (showUsage): Updated.
  16018. * Release 0.8.1
  16019. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16020. * src/main.cc
  16021. (showUsage): Commented out --min-segment-size option.
  16022. (main): Commented out --min-segment-size option.
  16023. * Release 0.8.0
  16024. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16025. * src/*.{h,cc}:
  16026. Added an exception to the license which allows linking with OpenSSL.
  16027. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16028. * src/AbstractCommand.cc
  16029. (execute): Check whether the download has finished before checking
  16030. socket status.
  16031. Return true if peerStat->getStatus() == REQUEST_IDLE.
  16032. Do not exit even if no segment is available.
  16033. * src/prefs.h
  16034. (PREF_STARTUP_IDLE_TIME): New definition.
  16035. * src/PeerInteractionCommand.cc
  16036. (executeInternal): Removed max speed limit. Because it performs bad.
  16037. (receiveMessages): Added max speed limit. This was better than above,
  16038. but still a little bit to be desired. Sometimes the download speed
  16039. became much faster than I specified.
  16040. * src/SpeedCalc.h
  16041. (start): New variable.
  16042. (accumulatedLength): New variable.
  16043. (getAvgSpeed): New function.
  16044. * src/SpeedCalc.cc
  16045. (reset): Added start, accumulatedLength.
  16046. (update): Added calculation of an average speed.
  16047. (getAvgSpeed): New function.
  16048. * src/DownloadCommand.h
  16049. (sw): Removed.
  16050. * src/main.cc
  16051. (main): Added PREF_STARTUP_IDLE_TIME.
  16052. * src/PeerStat.h
  16053. (STATUS): Added REQUEST_IDLE.
  16054. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  16055. (getAvgDownloadSpeed): New function
  16056. (requestIdle): New function.
  16057. * src/SegmentMan.h
  16058. (SegmentEntryHandle): New type definition.
  16059. (SegmentEntries): Now holds SegmentEntryHandle.
  16060. (findSlowerSegmentEntry): New funtion.
  16061. * src/SegmentMan.cc
  16062. (save): Updated according to the changes in SegmentEntries.
  16063. (read): Updated according to the changes in SegmentEntries.
  16064. (FindSegmentEntryByIndex): Updated according to the changes in
  16065. SegmentEntries.
  16066. (FindSegmentEntryByCuid): Updated according to the changes in
  16067. SegmentEntries.
  16068. (checkoutSegment): Updated according to the changes in SegmentEntries.
  16069. (onNullBitfield): Updated according to the changes in SegmentEntries.
  16070. Renamed uitr as itr.
  16071. (findSlowerSegmentEntry): New function.
  16072. (getSegment): Updated according to the changes in SegmentEntries.
  16073. Added the feature that cancels the segment with slow server and fast
  16074. one takes it over.
  16075. (cancelSegment): Updated according to the changes in SegmentEntries.
  16076. (getDownloadLength): Updated according to the changes in
  16077. SegmentEntries.
  16078. (init): Assigned 0 to bitfield after deleting it.
  16079. * src/DownloadCommand.cc
  16080. (STARTUP_IDLE_TIME): Removed.
  16081. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  16082. * src/PeerChokeCommand.cc
  16083. (optUnchokingPeer): Updated according to the changes in Peer.
  16084. (ResetDelta): Removed.
  16085. (UploadFaster): Updated according to the changes in Peer.
  16086. (DownloadFaster): Updated according to the changes in Peer.
  16087. (execute): I clarify the meaning of "upload" and "download" here.
  16088. "upload" means the transfer from localhost to remote host.
  16089. "download" means the transfer from remote host to localhost.
  16090. Based on this rule, I swapped orderByUploadRate and
  16091. orderByDownloadRate.
  16092. * src/PeerInteractionCommand.cc
  16093. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  16094. (executeInternal): Removed the argument of
  16095. peerInteraction->sendMessages().
  16096. (receiveMessages): Rewritten download speed limit.
  16097. (sendKeepAlive): Removed peerInteraction->sendMessages().
  16098. * src/HttpResponseCommand.cc
  16099. (handleDefaultEncoding): If file size is unknown in torrent request,
  16100. do not call segmentMan->initBitfield() here.
  16101. Disabled persistent connection feature in torrent request.
  16102. * src/UrlRequestInfo.h
  16103. (UrlRequestInfo): Removed const qualifier from option.
  16104. * src/TorrentMan.h
  16105. (TransferStat): New class.
  16106. (deltaDownloadLength): Removed.
  16107. (deltaUploadLength): Removed.
  16108. (addDeltaDownloadLength): Removed.
  16109. (getDeltaDownloadLength): Removed.
  16110. (resetDeltaDownloadLength): Removed.
  16111. (addDeltaUploadLength): Removed.
  16112. (getDeltaUploadLength): Removed.
  16113. (resetDeltaUploadLength): Removed.
  16114. (addActivePeer): Added peer->activate().
  16115. (deleteActivePeer): Added peer->deactivate().
  16116. (calculateStat): New function.
  16117. * src/TorrentMan.cc
  16118. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  16119. (calculateStat): New function.
  16120. * src/PeerInteraction.h
  16121. (uploadLimit): Removed.
  16122. (option): New variable.
  16123. (setUploadLimit): Removed.
  16124. (getUploadSpeed): Removed.
  16125. (sendMessages): Removed the argument "currentUploadSpeed".
  16126. * src/PeerInteraction.cc
  16127. (prefs.h): Included.
  16128. (PeerInteraction): Removed uploadLimit. Added option.
  16129. (sendMessages): Rewritten upload speed limit.
  16130. (sendHandshake): Removed the argument from sendMessages().
  16131. (sendBitfield): Removed the argument from sendMessages().
  16132. * src/PeerAbstractCommand.cc
  16133. (execute): Commented out the portion of upload limit.
  16134. (onAbort): Removed peer->resetStatus().
  16135. * src/TorrentRequestInfo.cc
  16136. (timeoutSpecified): Declared extern.
  16137. (execute): Set timeout to 180 if timeout is not specified by.
  16138. command-line.
  16139. * src/PieceMessage.cc
  16140. (receivedAction): Added peer->updateDownloadLength().
  16141. Removed peer->addPeerUpload().
  16142. Removed torrentMan->addDeltaDownloadLength().
  16143. (send): Added peer->updateUploadLength().
  16144. Removed peer->addPeerDownload().
  16145. Removed torrentMan->addDeltaUploadLength().
  16146. * src/main.cc
  16147. (timeoutSpecified): New variable.
  16148. (main): Set timeoutSpecified to false.
  16149. If the command-line option "--upload-limit" is specified, then
  16150. timeoutSpecified is set to true. This option will remain in the next
  16151. release, but be deprecated in the future release.
  16152. * src/TorrentRequestInfo.h
  16153. (TorrentRequestInfo): Removed const qualifier from op.
  16154. * src/PeerStat.h
  16155. (uploadSpeed): New variable.
  16156. (PeerStat): Added default value to cuid.
  16157. (calculateUploadSpeed): New function.
  16158. (updateUploadLength): New function.
  16159. (getMaxUploadSpeed): New function.
  16160. (getAvgUploadSpeed): New function.
  16161. (reset): Added uploadSpeed. Set status to IDLE.
  16162. * src/TorrentDownloadEngine.h
  16163. (cp): Declared as Time.
  16164. (sessionDownloadLengthArray): Removed.
  16165. (sessionUploadLengthArray): Removed.
  16166. (currentCp): Removed.
  16167. (lastCalcStat): New variable
  16168. (lastElapsed): Removed.
  16169. (sessionDownloadLength): Removed.
  16170. (calculateStat): New function.
  16171. * src/TorrentDownloadEngine.cc
  16172. (initStatistics): Removed lastElapsed, cp[],
  16173. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  16174. currentCp, sessionDownloadLength.
  16175. Added cp.reset() and lastCalcStat.reset().
  16176. (calculateSpeed): Changed the name of the argument.
  16177. (calculateStatistics): Rewritten.
  16178. (calculateStat): New function.
  16179. * src/Peer.h
  16180. (PeerStat.h): Included.
  16181. (peerUpload): Removed.
  16182. (peerDownload): Removed.
  16183. (peerStat): New variable.
  16184. (sessionUploadLength): New variable.
  16185. (sessionDownloadLength): New variable.
  16186. (deltaUpload): Removed.
  16187. (deltaDownload): Removed.
  16188. (resetStatus): Made private.
  16189. (Peer): Added sessionUploadLength, sessionDownloadLength.
  16190. Removed peerUpload, peerDownload.
  16191. (updateUploadLength): New function.
  16192. (addDeltaUpload): Removed.
  16193. (updateDownloadLength): New function.
  16194. (resetDeltaUpload): Removed.
  16195. (getDeltaUpload): Removed.
  16196. (addDeltaDownload): Removed.
  16197. (calculateUploadSpeed): New function.
  16198. (resetDeltaDownload): Removed.
  16199. (getDeltaDownload): Removed.
  16200. (calculateDownloadSpeed): New function.
  16201. (getSessionUploadLength): New function.
  16202. (getSessionDownloadLength): New function.
  16203. (activate): New function.
  16204. (deactivate): New function.
  16205. (addPeerUpload): Removed.
  16206. (setPeerUpload): Removed.
  16207. (getPeerUpload): Removed.
  16208. (addPeerDownload): Removed.
  16209. (setPeerDownload): Removed.
  16210. (getPeerDownload): Removed.
  16211. * src/Peer.cc
  16212. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  16213. * src/MetalinkRequestInfo.h
  16214. (MetalinkRequestInfo): Removed const qualifier from op.
  16215. * src/RequestInfo.h
  16216. (op): Removed const qualifier.
  16217. (RequestInfo): Removed const qualifier from op.
  16218. * src/prefs.h
  16219. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  16220. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  16221. * src/PeerInteractionCommand.cc
  16222. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  16223. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  16224. * src/PeerInteraction.cc
  16225. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  16226. * src/main.cc
  16227. (showUsage): Updated the description of "--lowest-speed-limit" option.
  16228. Added the description of "--max-download-limit" option.
  16229. Removed the description of "--upload-limit" option.
  16230. Added the description of "--max-upload-limit" option.
  16231. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  16232. Added "--max-download-limit" option and "--max-upload-limit" option.
  16233. Added the warning message if "--upload-limit" option is used.
  16234. * src/DownloadCommand.cc
  16235. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  16236. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16237. To rewrite segment download mechanism for HTTP/FTP download.
  16238. Use BitfieldMan to manage segment download.
  16239. * src/HttpResponseCommand.h
  16240. (executeInternal): Pass the reference of segment.
  16241. * src/AbstractCommand.cc
  16242. (prepareForRetry): Call segmentMan->cancelSegment here.
  16243. (onAbort): Call segmentMan->cancelSegment here.
  16244. * src/HttpDownloadCommand.cc
  16245. (prepareForNextSegment): New function.
  16246. * src/DownloadEngineFactory.cc
  16247. (newConsoleEngine): Removed splitter.
  16248. (newTorrentConsoleEngine): Removed splitter.
  16249. * src/Request.h
  16250. (segment): Renamed from seg.
  16251. * src/FtpInitiateConnectionCommand.h
  16252. (executeInternal): Pass the reference of segment.
  16253. * src/AbstractCommand.h
  16254. (executeInternal): Pass the reference of segment.
  16255. * src/pref.h
  16256. (PREF_SEGMENT_SIZE): New definition.
  16257. * src/HttpProxyRequestCommand.h
  16258. (executeInternal): Pass the reference of segment.
  16259. * src/HttpResponseCommand.cc
  16260. (checkResponse): Allowed status 206 when a request range starts 0.
  16261. (handleDefaultEncoding): Rewritten the code related to Segment.
  16262. (handleOtherEncoding): Rewritten the code related to Segment.
  16263. * src/SegmentMan.h
  16264. (SegmentEntry): New class.
  16265. (SegmentEntries): New type definition.
  16266. (bitfield): New variable.
  16267. (usedSegmentEntries): New variable.
  16268. (onNullBitfield): New function.
  16269. (checkoutSegment): New function.
  16270. (segments): Removed.
  16271. (splitter): Removed.
  16272. (unregisterId): Removed.
  16273. (getSegment): New function(overload)
  16274. (getDownloadedSize): Removed.
  16275. (cancelSegment): New function.
  16276. (completeSegment): New function.
  16277. (initBitfield): New function.
  16278. (hasSegment): New function.
  16279. (getDownloadLength): New function.
  16280. * src/BitfieldMan.h
  16281. (getStartIndex): New function.
  16282. (getEndIndex): New function.
  16283. (getMissingUnusedIndex): New function(overload).
  16284. (getSparseMissingUnusedIndex): New function.
  16285. * src/BitfieldMan.cc
  16286. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  16287. (getMissingUnusedIndex): New function(overload).
  16288. (Range): New class.
  16289. (getStartIndex): New function.
  16290. (getEndIndex): New function.
  16291. (getSparseMissingUnusedIndex): New function.
  16292. (isBitSetInternal): Return false if the given index is less than 0.
  16293. * src/HttpInitiateConnectionCommand.h
  16294. (executeInternal): Pass the reference of segment.
  16295. * src/FtpNegotiateCommand.h
  16296. (executeInternal): Pass the reference of segment.
  16297. * src/FtpNegotiateCommand.cc
  16298. (recvSize): Initialize bitfield here.
  16299. * src/FtpTunnelResponseCommand.h
  16300. (executeInternal): Pass the reference of segment.
  16301. * src/HttpConnection.cc
  16302. (createRequest): Rewritten range header processing.
  16303. * src/DownloadCommand.h
  16304. (executeInternal): Pass the reference of segment.
  16305. (prepareForRetry): Removed.
  16306. (prepareForNextSegment): Added an argument segment. Made it a virtual
  16307. function.
  16308. * src/main.cc
  16309. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  16310. * src/SegmentMan.cc
  16311. (SegmentMan): Added bitfield. Removed splitter.
  16312. (~SegmentMan): Added bitfield. Removed splitter.
  16313. (unregisterId): Removed.
  16314. (getSegment): Rewritten.
  16315. (updateSegment): Rewritten.
  16316. (save): Rewritten.
  16317. (read): Rewritten.
  16318. (finished): Rewritten.
  16319. (getDownloadedSize): Removed.
  16320. (initBitfield): New function.
  16321. (FindSegmentEntryByIndex): New function object.
  16322. (FindSegmentEntryByCuid): New function object.
  16323. (checkoutSegment): New function.
  16324. (onNullBitfield): New function.
  16325. (getSegment): New function(overload).
  16326. (CancelSegment): New function object.
  16327. (cancelSegment): New function.
  16328. (completeSegment): New function.
  16329. (hasSegment): New function.
  16330. (getDownloadLength): New function.
  16331. * src/FtpInitiateConnectionCommand.cc
  16332. (executeInternal): Load .aria2 file after hostname resolution finishes.
  16333. * src/Segment.h: Rewritten.
  16334. * src/Segment.cc (operator<<): New function.
  16335. * src/HttpDownloadCommand.h
  16336. (prepareForNextSegment): New function.
  16337. * src/Request.cc
  16338. (resetUrl): Made segment null.
  16339. * src/DownloadEngine.cc
  16340. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  16341. * src/HttpProxyRequestCommand.h
  16342. (executeInternal): Pass the reference of segment.
  16343. * src/DownloadCommand.cc
  16344. (executeInternal): Rewritten the code related to Segment.
  16345. (prepareForRetry): Removed.
  16346. (prepareForNextSegment): Rewritten.
  16347. * src/FtpTunnelResponseCommand.h
  16348. (executeInternal): Pass the reference of segment.
  16349. To add HTTP 1.1 persistent connection support(experimental)
  16350. * src/HttpRequestCommand.cc
  16351. (executeInternal): Disable keep alive if it is disabled by
  16352. configuration.
  16353. * src/Request.h
  16354. (keepAlive): New variable.
  16355. (isKeepAlive): New function.
  16356. (setKeepAlive): New function.
  16357. * src/pref.h
  16358. (PREF_HTTP_KEEP_ALIVE): New definition.
  16359. * src/HttpResponseCommand.cc
  16360. (executeInternal): Check the remote server supports keep alive.
  16361. * src/HttpConnection.cc
  16362. (createRequest): Send "Connection: close" only if keep alive is
  16363. disabled.
  16364. * src/main.cc
  16365. (main):
  16366. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  16367. To add max download speed limit:
  16368. * src/pref.h
  16369. (PREF_MAX_SPEED_LIMIT): New definition.
  16370. * src/PeerInteractionCommand.cc
  16371. (executeInternal): Added max download speed limit. Not tested yet.
  16372. * src/SegmentMan.h
  16373. (PeerStats): New type definition.
  16374. (peerStats): New variable.
  16375. (registerPeerStat): New function.
  16376. (FindPeerStat): New function object.
  16377. (getPeerStat): New function.
  16378. (calculateDownloadSpeed): New function.
  16379. * src/SpeedCalc.h: New class.
  16380. * src/SpeedCalc.cc: New class.
  16381. * src/main.cc
  16382. (main):
  16383. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  16384. download speed is not restricted).
  16385. * src/PeerStat.h: New class.
  16386. * src/SegmentMan.cc
  16387. (registerPeerStat): New function.
  16388. (calculateDownloadSpeed): New function.
  16389. * src/DownloadCommand.cc
  16390. (STARTUP_IDLE_TIME): New definition.
  16391. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  16392. downloadStart.
  16393. (~DownloadCommand): Call peerStat->downloadStop.
  16394. (executeInternal): Added download speed limitter. Rewritten lowest
  16395. speed limitter.
  16396. * src/HttpConnection.cc
  16397. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  16398. * src/AbstractCommand.cc
  16399. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  16400. Added hostname to the error message.
  16401. * src/ConsoleDownloadEngine.cc
  16402. (calculateStatistics): Initialize psize with dlSize.
  16403. * src/PieceMessage.cc
  16404. (receivedAction): Do not call peerInteraction->abortPiece here.
  16405. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  16406. * src/BitfieldMan.h
  16407. (clearAllUseBit): New function.
  16408. (setAllUseBit): New function.
  16409. * src/BitfieldMan.cc
  16410. (clearAllBit): Do not clear useBitfield here.
  16411. (clearAllUseBit): New function.
  16412. (setAllUseBit): New function.
  16413. * src/Piece.cc
  16414. (clearAllBlock): Call bitfield->clearAllUseBit().
  16415. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16416. To make filename URL-decoded:
  16417. * src/HttpResponseCommand.h: Updated doc.
  16418. * src/HttpResponseCommand.cc
  16419. (determinFilename): Made filename URL-decoded.
  16420. * src/FtpInitiateConnectionCommand.cc
  16421. (executeInternal): Made filename URL-decoded.
  16422. * src/Util.h (urldecode): New function.
  16423. * src/Util.cc (urldecode): New function.
  16424. To fix a bug that caused assertion failure in ares_strerror:
  16425. * src/NameResolver.cc (callback): Fixed the bug.
  16426. * Release 0.7.3
  16427. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16428. To add --seed-time and --seed-ratio command-line option:
  16429. * src/Option.h (getAsDouble): New function.
  16430. * src/Option.cc (getAsDouble): New function.
  16431. * src/SeedCheckCommand.h: New class.
  16432. * src/SeedCheckCommand.cc: New class.
  16433. * src/DownloadEngineFactory.cc
  16434. (SeedCheckCommand.h): Included.
  16435. (UnionSeedCriteria.h): Included.
  16436. (TimeSeedCriteria.h): Included.
  16437. (ShareRatioSeedCriteria.h): Included.
  16438. (newTorrentConsoleEngine): Added the processing of seed option.
  16439. * src/SeedCriteria.h: New class.
  16440. * src/ShareRatioSeedCriteria.h: New class.
  16441. * src/TimeSeedCriteria.h: New class.
  16442. * src/UnionSeedCriteria.h: New class.
  16443. * src/prefs.h
  16444. (PREF_SEED_TIME): New definition.
  16445. (PREF_SEED_RATIO): New definition.
  16446. * src/main.cc
  16447. (showUsage): Added --seed-time and --seed-ratio option.
  16448. (main): Added --seed-time and --seed-ratio option.
  16449. Made default log file name "/dev/null".
  16450. * src/SharedHandle.h
  16451. (SharedHandle): Copy constructor. Made it assignable from the
  16452. SharedHandle of the subclasses.
  16453. (operator=): Made it assignable from the SharedHandle of the
  16454. subclasses.
  16455. (getRefCount): New function.
  16456. To add notice log level and the switch to write log to stdout. This
  16457. switch is configurable per log level.
  16458. * src/Logger.h
  16459. (notice): New function.
  16460. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  16461. constant.
  16462. * src/LogFactory.cc
  16463. (getInstance): The use of NullLogger was removed. A log message with
  16464. notice log level was made written to stdout along with log file.
  16465. * src/NullLogger.h
  16466. (notice): New function.
  16467. * src/SimpleLogger.h
  16468. (writeHeader): Added the 'file' argument.
  16469. (writeLog): Added the 'file' argument.
  16470. (writeFile): New function.
  16471. (stdoutField): New variable.
  16472. (SimpleLogger): Removed the default constructor.
  16473. (SimpleLogger): Made the default value of logfile 0.
  16474. (debug): Added 'virtual' keyword.
  16475. (info): Added 'virtual' keyword.
  16476. (warn): Added 'virtual' keyword.
  16477. (error): Added 'virtual' keyword.
  16478. (notice): New function.
  16479. (setStdout): New function.
  16480. * src/SimpleLogger.cc
  16481. (WRITE_LOG): Replaced writeLog with writeFile.
  16482. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  16483. (SimpleLogger): Removed the default constructor.
  16484. (setStdout): New function.
  16485. (writeLog): Added the handling of NOTICE log level.
  16486. (writeFile): New function.
  16487. (notice): New function.
  16488. * src/TorrentMan.h: Updated doc.
  16489. * src/BitfieldMan.h: Updated doc.
  16490. * src/TrackerWatcherCommand.cc
  16491. (execute): Return true if error occurred in the request to the tracker
  16492. and halt is requested.
  16493. * src/TrackerUpdateCommand.cc
  16494. (execute): Return true if error occurred in the request to the tracker
  16495. and halt is requested.
  16496. To call onDownloadComplete from TorrentMan::completePiece(), not from
  16497. DownloadEngine:
  16498. * src/TorrentConsoleDownloadEngine.h
  16499. (onSelectiveDownloadingCompletes): Removed.
  16500. * src/TorrentConsoleDownloadEngine.cc
  16501. (onSelectiveDownloadingCompletes): Removed.
  16502. * src/TorrentDownloadEngine.h
  16503. (onEndOfRun): Added 'virtual' keyword.
  16504. (afterEachIteration): Removed.
  16505. (onSelectiveDownloadingCompletes): Removed.
  16506. * src/TorrentDownloadEngine.cc
  16507. (onEndOfRun): Removed filenameFixed.
  16508. (afterEachIteration): Removed.
  16509. * src/TorrentMan.cc
  16510. (completePiece): Call onDownloadComplete here.
  16511. (onDownloadComplete): Added 2 log messages.
  16512. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16513. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  16514. * src/NameResolver.h: Added the prototype declaration of callback().
  16515. To support c-ares library:
  16516. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16517. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16518. * src/FtpInitiateConnectionCommand.h:
  16519. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16520. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16521. * src/HttpInitiateConnectionCommand.h:
  16522. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16523. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  16524. Added thes upport of c-ares's ares_strerror(the idea came from patch
  16525. #1542285 by tizianomueller)
  16526. * src/HttpInitiateConnectionCommand.cc:
  16527. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16528. * src/FtpInitiateConnectionCommand.cc:
  16529. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16530. * src/DownloadEngine.h:
  16531. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16532. * src/DownloadEngine.cc:
  16533. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16534. To fix the bug that causes compilation failure with metalink-support
  16535. disabled(bug#1543587):
  16536. * src/main.cc: Fixed with the patch by tizianomueller.
  16537. * Release 0.7.2
  16538. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16539. * src/main.cc
  16540. (main): Added a message to inform users that aria2 is starting to
  16541. verify checksum.
  16542. * src/RequestInfo.cc
  16543. (printDownloadAbortMessage): Added a message to inform users that
  16544. transfer can be resumed.
  16545. * src/FeatureConfig.cc
  16546. (FEATURE_ASYNC_DNS): New definition.
  16547. (FeatureConfig): Added aysnc DNS entry.
  16548. To replace CommandUuid with Command* in SocketEntry and
  16549. NameResolverEntry:
  16550. * src/DownloadEngine.h
  16551. (CommandUuids): Removed.
  16552. (SocketEntry::commandUuid): Removed.
  16553. (SocketEntry::command): New variable.
  16554. (SocketEntry::SocketEntry): Updated.
  16555. (SocketEntry::operator==): Updated.
  16556. (NameResolverEntry::commandUuid): Removed.
  16557. (NameResolverEntry::command): New variable.
  16558. (NameResolverEntry::NameResolverEntry): Updated.
  16559. (NameResolverEntry::operator==): Updated.
  16560. (waitData): Changed the argument type.
  16561. (addSocketForReadCheck): Changed the argument type.
  16562. (deleteSocketForReadCheck): Changed the argument type.
  16563. (addSocketForWriteCheck): Changed the argument type.
  16564. (deleteSocketForWriteCheck): Changed the argument type.
  16565. (addNameResolverCheck): Changed the argument type.
  16566. (deleteNameResolverCheck): Changed the argument type.
  16567. * src/DownloadEngine.cc
  16568. (FindCommand): Removed.
  16569. (run): Removed activeUuid. Added activeCommands instead.
  16570. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  16571. (AccumulateActiveCommand): New function object.
  16572. (waitData): Use AccumulateActiveCommand.
  16573. (addSocketForReadCheck): Use Command instead of CommandUuid.
  16574. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  16575. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  16576. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  16577. (addNameResolverCheck): Use Command instead of CommandUuid.
  16578. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  16579. * src/AbstractCommand.cc
  16580. (disableReadCheckSocket): Updated according to the changes in
  16581. DownloadEngine.
  16582. (setReadCheckSocket): Updated according to the changes in
  16583. DownloadEngine.
  16584. (disableWriteCheckSocket): Updated according to the changes in
  16585. DownloadEngine.
  16586. (setWriteCheckSocket): Updated according to the changes in
  16587. DownloadEngine.
  16588. (setNameResolverCheck): Updated according to the changes in
  16589. DownloadEngine.
  16590. (disableNameResolverCheck): Updated according to the changes in
  16591. DownloadEngine.
  16592. * src/AbstractCommand.cc
  16593. (disableReadCheckSocket): Updated according to the changes in
  16594. DownloadEngine.
  16595. (setReadCheckSocket): Updated according to the changes in
  16596. DownloadEngine.
  16597. (disableWriteCheckSocket): Updated according to the changes in
  16598. DownloadEngine.
  16599. (setWriteCheckSocket): Updated according to the changes in
  16600. DownloadEngine.
  16601. * release 0.7.1
  16602. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16603. To handle the case where some BitTorrent tracker requires all letters
  16604. except for [A-Za-z0-9] is URL encoded.
  16605. * src/Util.h
  16606. (torrentUrlencode): New function.
  16607. * src/Util.cc
  16608. (ctype.h): Included.
  16609. (torrentUrlencode): New function.
  16610. * src/TrackerWatcherCommand.cc
  16611. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  16612. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16613. To add asynchronous DNS support(libares):
  16614. * src/AbstractCommand.h
  16615. (setNameResolverCheck): New function.
  16616. (disableNameResolverCheck): New function
  16617. (resolveHostname): New function.
  16618. * src/AbstractCommand.cc
  16619. (setNameResolverCheck): New function.
  16620. (disableNameResolverCheck): New function
  16621. (resolveHostname): New function.
  16622. * src/FtpInitiateConnectionCommand.h
  16623. (nameResolver): New function.
  16624. * src/FtpInitiateConnectionCommand.cc
  16625. (Util.h): Included.
  16626. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  16627. disableWriteCheckSocket.
  16628. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  16629. (executeInternal): Added async DNS support.
  16630. * src/HttpInitiateConnectionCommand.h
  16631. (nameResolver): New function.
  16632. * src/HttpInitiateConnectionCommand.cc
  16633. (DlRetryEx.h): Included.
  16634. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  16635. disableWriteCheckSocket.
  16636. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  16637. (executeInternal): Added async DNS support.
  16638. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  16639. by extern "C" declaration.
  16640. * src/NameResolver.cc: New class.
  16641. * src/Util.h:
  16642. (isNumberAndDotsNotation): New function
  16643. * src/Util.cc
  16644. (isNumberAndDotsNotation): New function.
  16645. * src/DownloadEngine.h
  16646. (NameResolver.h): Included.
  16647. (NameResolverEntry): New class.
  16648. (NameResolverEntries): New type definition.
  16649. (addNameResolverCheck): New function.
  16650. (deleteNameResolverCheck): New function.
  16651. * src/DownloadEngine.cc
  16652. (run): Initialize cp with 0.
  16653. (SetDescriptor::operator()): Added for NameResolverEntry.
  16654. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  16655. (waitData): Check nameResolver entries.
  16656. (updateFdSet): Update fds in nameResolver entries.
  16657. (addNameResolverCheck): New function.
  16658. (deleteNameResolverCheck): new function.
  16659. * src/PeerInteractionCommand.cc
  16660. (executeInternal): Fixed wrong socket handling.
  16661. * src/main.cc
  16662. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  16663. * src/Util.cc
  16664. (fileChecksum): Removed the call to ctx.digestReset().
  16665. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16666. * po/ru.po: Azamat sent me Russian translation.
  16667. * src/FtpNegotiateCommand.cc
  16668. (recvGreeting): Call disableWriteCheckSocket just after
  16669. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  16670. (recvRetr): Recognized status code 125 as a acceptable response code.
  16671. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  16672. case-insesitive filesystem(BUG#1531057).
  16673. * src/Time.h: Renamed as TimeA2.h.
  16674. * src/Time.cc: Renamed as TimeA2.cc.
  16675. * src/TimeA2.h: New class.
  16676. * src/TimeA2.cc: New class.
  16677. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  16678. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  16679. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  16680. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  16681. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  16682. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16683. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  16684. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  16685. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  16686. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16687. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  16688. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  16689. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  16690. * release 0.7.0
  16691. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16692. * src/PeerChokeCommand.h
  16693. (PeerChokeCommand): Rearranged the arguments.
  16694. * src/PeerChokeCommand.cc
  16695. (PeerChokeCommand): Rearranged the arguments.
  16696. * src/MetalinkEntry.h
  16697. (Checksum.h): Included.
  16698. (md5): Removed.
  16699. (sha1): Removed.
  16700. (checksum): New variable.
  16701. (operator=): Updated.
  16702. (check): Removed.
  16703. * src/prefs.h
  16704. (PREF_LOWEST_SPEED_LIMIT): New definition.
  16705. (PREF_FOLLOW_TORRENT): New definition.
  16706. (PREF_SELECT_FILE): New definition.
  16707. (PREF_FOLLOW_METALINK): New definition.
  16708. * src/MetalinkResource.h
  16709. (TYPE_HTTPS): Added to enum TYPE.
  16710. * src/TorrentMan.cc
  16711. (~TorrentMan): Rewritten.
  16712. * src/MultiDiskWriter.cc
  16713. (MultiDiskAdaptor): Updated according to the changes in
  16714. MessageDigestContext.
  16715. (~MultiDiskAdaptor): Updated according to the changes in
  16716. MessageDigestContext.
  16717. (hashUpdate): Updated according to the changes in MessageDigestContext.
  16718. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16719. * src/Util.h
  16720. (fileChecksum): Updated according to the changes in
  16721. MessageDigestContext.
  16722. * src/Util.cc
  16723. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16724. (fileChecksum): Updated according to the changes in
  16725. MessageDigestContext.
  16726. * src/messageDigest.h: Rewritten.
  16727. * src/MetalinkEntry.cc
  16728. (check): Removed.
  16729. (Supported): Updated.
  16730. (dropUnsupportedResource): Fixed a memory leak.
  16731. * src/ShaVisitor.cc
  16732. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  16733. (~ShaVisitor): Updated according to the changes in
  16734. MessageDigestContext.
  16735. (visit): Updated according to the changes in MessageDigestContext.
  16736. * src/main.cc
  16737. (main): Rewritten the portion of download loop. --lowest-speed-limit
  16738. command-line option added.
  16739. * src/DownloadEngine.h
  16740. (SocketEntry): New class.
  16741. (SocketEntries): New definition.
  16742. (PairFind): Removed.
  16743. (SockCmdMap): Removed.
  16744. * src/DownloadEngine.cc
  16745. (DownloadEngine): Rewritten.
  16746. (~DownloadEngine): Rewritten.
  16747. (run): Renamed activeCommandUuids as activeUuids.
  16748. (SetDescriptor): Rewritten.
  16749. (AccumulateActiveCommandUuid): Removed.
  16750. (AccumulateActiveUuid): New function object.
  16751. (waitData): Rewritten.
  16752. (updateFdSet): Rewritten.
  16753. (addSocket): Rewritten.
  16754. (deleteSocket): Rewritten.
  16755. (addSocketForReadCheck): Rewritten.
  16756. (deleteSocketForReadCheck): Rewritten.
  16757. (addSocketForWriteCheck): Rewritten.
  16758. (deleteSocketForWriteCheck): Rewritten.
  16759. * src/Xml2MetalinkProcessor.cc
  16760. (getEntry): Rewritten the portion of MetalinkEntry creation.
  16761. * src/DownloadCommand.cc
  16762. (executeInternal): Added the check routine for lowest speed limit.
  16763. * src/AbstractDiskWriter.cc
  16764. (AbstractDiskWriter): Updated according to the changes in
  16765. MessageDigestContext.
  16766. (~AbstractDiskWriter): Updated according to the changes in
  16767. MessageDigestContext.
  16768. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16769. * src/RequestInfo.h: New class.
  16770. * src/UrlRequestInfo.h: New class.
  16771. * src/UrlRequestInfo.cc: New class.
  16772. * src/TorrentRequestInfo.h: New class.
  16773. * src/TorrentRequestInfo.cc: New class.
  16774. * src/MetalinkRequestInfo.h: New class.
  16775. * src/MetalinkRequestInfo.cc: New class.
  16776. * src/Checksum.h: New class.
  16777. * src/DownloadEngineFactory.h: New class.
  16778. * src/DownloadEngineFactory.cc: New class.
  16779. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16780. * src/Option.h
  16781. (getAsBool): New function.
  16782. * src/Option.cc
  16783. (prefs.h): Included.
  16784. (defined): 0-length value is now recognized as undefined.
  16785. (getAsInt): Rewritten.
  16786. (getAsLLInt): Rewritten.
  16787. (getAsBool): New function.
  16788. * src/FeatureConfig.h: Rewritten.
  16789. * src/FeatureConfig.cc: Rewritten.
  16790. * src/prefs.h
  16791. (PREF_STDOUT_LOG): New definition.
  16792. (PREF_LOG): New definition.
  16793. (PREF_DIR): New definition.
  16794. (PREF_OUT): New definition.
  16795. (PREF_SPLIT): New definition.
  16796. (PREF_DAEMON): New definition.
  16797. (PREF_REFERER): New definition.
  16798. (PREF_TORRENT_FILE): New definition.
  16799. (PREF_LISTEN_PORT): New definition.
  16800. (PREF_METALINK_FILE): New definition.
  16801. (PREF_METALINK_VERSION): New definition.
  16802. (PREF_METALINK_LANGUAGE): New definition.
  16803. (PREF_METALINK_OS): New definition.
  16804. (PREF_METALINK_SERVERS): New definition.
  16805. * src/main.cc
  16806. (main): Following command-line parameters are now put into Option
  16807. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16808. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16809. metalinkLanguage, metalinkOs, metalinkServers
  16810. To fix the bug that aria2 can not handle http response header properly.
  16811. * src/HttpHeader.cc
  16812. (put): Made name lowercased.
  16813. (defined): Made name lowercased.
  16814. (getFirst): Made name lowercased.
  16815. (get): Made name lowercased.
  16816. (getFirstAsInt): Rewritten.
  16817. (getFirstAsLLInt): Rewritten.
  16818. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16819. * src/TorrentMan.h:
  16820. (advertisePiece): Updated doc.
  16821. (getAdvertisedPieceIndexes): Updated doc.
  16822. (removeAdvertisedPiece); New function.
  16823. * src/TorrentMan.cc
  16824. (FindElapsedHave): New function object.
  16825. (removeAdvertisedPiece): New function.
  16826. * src/HaveEraseCommand.h: New class.
  16827. * src/HaveEraseCommand.cc: New class.
  16828. * src/FeatureConfig.h: New class.
  16829. * src/FeatureConfig.cc: New class.
  16830. * src/Request.h
  16831. (defaultPorts): Removed.
  16832. * src/Request.cc
  16833. (FeatureConfig.h): Included.
  16834. (Request): Removed the statements related to defaultPorts.
  16835. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16836. A default port number is now retrieved from FeatureConfig.
  16837. * src/main.cc
  16838. (HaveEraseCommand.h): Included.
  16839. (showVersion): Added the output of feature list.
  16840. (main): Added HaveEraseCommand to command queue in BitTorrent
  16841. downloading.
  16842. * src/PeerInteractionCommand.h
  16843. (chokeCheckPoint): Commented out.
  16844. (periodicExecPoint): New variable.
  16845. * src/PeerInteractionCommand.cc
  16846. (executeInternal): Following methods are now called in at least every
  16847. 0.5 seconds to reduce CPU usage:
  16848. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16849. checkHave(), sendKeepAlive().
  16850. (checkLongTimePeerChoking): Commented out.
  16851. * src/BitfieldMan.h
  16852. (getNthBitIndex): Changed the method signature.
  16853. (getMissingIndexRandomly): Changed the method signature.
  16854. * src/BitfieldMan.cc
  16855. (getNthBitIndex): Rewritten
  16856. (getMissingIndexRandomly): Rewritten.
  16857. (hasMissingPiece): Rewritten.
  16858. (getMissingIndex): Refactored.
  16859. (getMissingUnusedIndex); Refactored.
  16860. (getMissingIndex): Refactored.
  16861. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16862. * src/PeerMessage.h
  16863. (Piece.h): Included.
  16864. (SharedHandle.h): Included.
  16865. (invalidate): New variable.
  16866. (uploading): New variable.
  16867. (isInvalidate): New function.
  16868. (isUploading): New function.
  16869. (onPush): New function.
  16870. (onChoked): New function.
  16871. (onCanceled): New function.
  16872. (onAbortPiece): New function.
  16873. (PeerMessageHandle): New type definition.
  16874. * src/PeerMessage.cc
  16875. (PeerMessage): Added the initialization for invalidate and uploading.
  16876. * src/CancelMessage.h
  16877. (CancelMessage): Rewritten.
  16878. * src/RejectMessage.h
  16879. (RejectMessage): Rewritten.
  16880. * src/Metalinker.h
  16881. (operator=): Defined.
  16882. * src/MetaEntry.h
  16883. (operator=): Defined.
  16884. * src/MetalinkResource.h
  16885. (operator=): Defined.
  16886. * src/AllowedFastMessage.h
  16887. (AllowedFastMessage): Rewritten.
  16888. * src/HandshakeMessage.h
  16889. (HandshakeMessage): New function(overload).
  16890. * src/HandshakeMessage.cc
  16891. (HandshakeMessage): Rewritten.
  16892. (init): New function.
  16893. * src/HaveMessage.h
  16894. (HaveMessage): Rewritten.
  16895. * src/Time.h
  16896. (operator=): Defined the function body here.
  16897. * src/Time.cc
  16898. (operator=): Removed.
  16899. * src/SocketCore.h
  16900. (operator==): Defined here.
  16901. (operator!=): Defined here.
  16902. (operator<): Defined here.
  16903. * src/SocketCore.cc
  16904. (operator==): Removed.
  16905. (operator<): Removed.
  16906. * src/BitfieldMan.h
  16907. (operator=): Defined the function body here.
  16908. * src/BitfieldMan.cc
  16909. (operator=): Removed.
  16910. * src/TorrentMan.h
  16911. (deleteErrorPeer): Removed.
  16912. (deleteUnusedPeer); New function.
  16913. * src/TorrentMan.cc
  16914. (addPeer): Call deleteUnusedPeer.
  16915. (deleteErrorPeer): Removed.
  16916. (deleteUnusedPeer): New function.
  16917. * src/PeerAbstractCommand.h
  16918. (setNoCheck): New function.
  16919. (noCheck): New variable.
  16920. * src/PeerAbstractCommand.cc
  16921. (PeerAbstractCommand): Added the initialization of noCheck.
  16922. (execute): Added a check for noCheck.
  16923. (setNoCheck): New function.
  16924. * src/Util.h
  16925. (stdio.h): Included.
  16926. * src/Util.cc
  16927. (unistd.h): Included.
  16928. * src/DefaultDiskWriter.cc
  16929. (unistd.h): Included.
  16930. * src/Peer.h
  16931. (operator==): Defined the function body here.
  16932. (operator!=): Defined the function body here.
  16933. * src/Peer.cc
  16934. (operator==): Removed.
  16935. (operator!=): Removed.
  16936. * src/Piece.h
  16937. (Piece): Defined the function body here(copy constructor).
  16938. (operator=): Defined the function body here.
  16939. (operator==): Defined the function body here.
  16940. * src/Piece.cc
  16941. (Piece): Removed(copy constructor).
  16942. (operator=): Removed.
  16943. (operator==): Removed.
  16944. * src/PeerMessageUtil.h
  16945. (ChokeMessage.h): Removed.
  16946. (UnchokeMessage.h): Removed.
  16947. (InterestedMessage.h): Removed.
  16948. (NotInterestedMessage.h): Removed.
  16949. (HaveMessage.h): Removed.
  16950. (BitfieldMessage.h): Removed.
  16951. (RequestMessage.h): Removed.
  16952. (CancelMessage.h): Removed.
  16953. (PieceMessage.h): Removed.
  16954. (HandshakeMessage.h): Removed.
  16955. (KeepAliveMessage.h): Removed.
  16956. (PortMessage.h): Removed.
  16957. (HaveAllMessage.h): Removed.
  16958. (HaveNoneMessage.h): Removed.
  16959. (PeerConnection.h): Removed.
  16960. (HandshakeMessage.h): Included.
  16961. * src/BitfieldMessage.h
  16962. (init): New function.
  16963. (BitfieldMessage): Rewritten.
  16964. (BitfieldMessage): New function(overload).
  16965. * src/RequestSlot.h
  16966. (operator=): Defined the function body here.
  16967. (operator==): Defined the function body here.
  16968. * src/RequestSlot.cc
  16969. (operator=): Removed.
  16970. (operator==): Removed.
  16971. To remove the dependency on the PeerMessage subclass from
  16972. PeerInteraction:
  16973. * src/PeerMessageFactory.h: New class.
  16974. * src/PeerMessageFactory.cc: New class.
  16975. * src/SimplePeerMessage.cc
  16976. (send): If invalidate is true then do nothing.
  16977. * src/PeerInteractionCommand.cc
  16978. (HandshakeMessage.h): Included.
  16979. (KeepAliveMessage.h): Included.
  16980. (ChokeMessage.h): Included.
  16981. (UnchokeMessage.h): Included.
  16982. (HaveMessage.h): Included.
  16983. (executeInternal): Call setNoCheck().
  16984. Removed setWriteCheckSocket(socket).
  16985. * src/PeerInteraction.h
  16986. (ChokeMessage.h): Removed.
  16987. (UnchokeMessage.h): Removed.
  16988. (InterestedMessage.h): Removed.
  16989. (NotInterestedMessage.h): Removed.
  16990. (HaveMessage.h): Removed.
  16991. (BitfieldMessage.h): Removed.
  16992. (RequestMessage.h): Removed.
  16993. (CancelMessage.h): Removed.
  16994. (PieceMessage.h): Removed.
  16995. (HandshakeMessage.h): Removed.
  16996. (KeepAliveMessage.h): Removed.
  16997. (PortMessage.h): Removed.
  16998. (HaveAllMessage.h): Removed.
  16999. (HaveNoneMessage.h): Removed.
  17000. (RejectMessage.h): Removed.
  17001. (AllowedFastMessage.h): Removed.
  17002. (SuggestPieceMessage.h): Removed.
  17003. (PeerMessageFactory.h): Included.
  17004. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  17005. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  17006. (PeerMessageFactory): New variable.
  17007. (createPeerMessage): Removed.
  17008. (createHandshakeMessage): Removed.
  17009. (setPeerMessageCommonProperty): Removed.
  17010. (addRequestSlot): New function.
  17011. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  17012. (getPeerMessageFactory): New function.
  17013. (createRequestMessage): Removed.
  17014. (createCancelMessage): Removed.
  17015. (createPieceMessage): Removed.
  17016. (createHaveMessage): Removed.
  17017. (createChokeMessage): Removed.
  17018. (createUnchokeMessage): Removed.
  17019. (createInterestedMessage): Removed.
  17020. (createNotInterestedMessage): Removed.
  17021. (createBitfieldMessage): Removed.
  17022. (createKeepAliveMessage): Removed.
  17023. (createHaveAllMessage): Removed.
  17024. (createHaveNoneMessage): Removed.
  17025. (createRejectMessage): Removed.
  17026. (createAllowedFastMessage): Removed.
  17027. * src/PeerInteraction.cc
  17028. (PeerInteraction): Allocate PeerMessageFactory here.
  17029. (~PeerInteraction): Deallocate PeerMessageFactory here.
  17030. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  17031. PieceMessage::ID.
  17032. (addMessage): Simplified by using PeerMessage::onPush().
  17033. (addRequestSlot): New function.
  17034. (rejectAllPieceMessageInQueue): Simplified by using
  17035. PeerMessage::onChoked().
  17036. (rejectPieceMessageInQueue): Simplified by using
  17037. PeerMessage::onCanceled().
  17038. (abortPiece): Simplified by using PeerMessage::abortPiece().
  17039. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  17040. (createHandshakeMessage): Removed.
  17041. (createPeerMessage): Removed.
  17042. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  17043. (setPeerMessageCommonProperty): Removed.
  17044. (createRequestMessage): Removed.
  17045. (createCancelMessage): Removed.
  17046. (createPieceMessage): Removed.
  17047. (createHaveMessage): Removed.
  17048. (createChokeMessage): Removed.
  17049. (createUnchokeMessage): Removed.
  17050. (createInterestedMessage): Removed.
  17051. (createNotInterestedMessage): Removed.
  17052. (createBitfieldMessage): Removed.
  17053. (createKeepAliveMessage): Removed.
  17054. (createHaveAllMessage): Removed.
  17055. (createHaveNoneMessage): Removed.
  17056. (createRejectMessage): Removed.
  17057. (createAllowedFastMessage): Removed.
  17058. * src/PieceMessage.h
  17059. (createRejectMessage): New function.
  17060. (PieceMessage): Rewritten.
  17061. (onChoked): New function.
  17062. (onCanceled): New function.
  17063. * src/PieceMessage.cc
  17064. (send): If invalidate is true then do nothing, just return.
  17065. (createRejectMessage): New function.
  17066. (onChoked): New function.
  17067. (onCanceled): New function.
  17068. * src/RequestMessage.h
  17069. (RequestMessage): Rewritten.
  17070. (onPush): New function.
  17071. (onAbortPiece): New function.
  17072. * src/RequestMessage.cc
  17073. (onPush): New function.
  17074. (onAbortPiece): New function.
  17075. Update fd_set when a socket is added or deleted in order to improve
  17076. performance:
  17077. * src/DownloadEngine.h
  17078. (rfdset): New variable.
  17079. (wfdset): New variable.
  17080. (updateFdSet): New function.
  17081. * src/DownloadEngine.cc
  17082. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  17083. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  17084. (waitData): Copy rfdset and wfdset.
  17085. (updateFdSet): New function.
  17086. (addSocket): Call updateFdSet.
  17087. (deleteSocket): Call updateFdSet.
  17088. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17089. To add the support for Metalink3.0 backward compatible links:
  17090. * src/Request.h
  17091. (SAFE_CHARS): Added '#'.
  17092. (METALINK_MARK): New definition.
  17093. * src/Request.cc
  17094. (parseUrl): Added the support for Metalink3.0 backward compatible
  17095. links.
  17096. etc
  17097. * src/PeerInteraction.cc
  17098. (MsgPushBack): Removed.
  17099. (sendMessages): Use STL copy and back_inserter.
  17100. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  17101. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  17102. * src/TorrentMan.h
  17103. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  17104. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17105. * src/SharedHandle.h: New class.
  17106. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  17107. * src/HttpResponseCommand.h
  17108. (HttpResponseCommand): Wrapped Socket.
  17109. * src/SocketCore.h
  17110. (operator==): New function.
  17111. (operator!=): New function.
  17112. (operator<): New function.
  17113. (getSockfd): New function.
  17114. (isOpen): New function.
  17115. (writeData): New function.
  17116. * src/SocketCore.cc
  17117. (operator==): New function.
  17118. (operator!=): New function.
  17119. (operator<): New function.
  17120. * src/AbstractCommand.h
  17121. (socket): Changed its type to SocketHandle.
  17122. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17123. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17124. (disableReadCheckSocket): New function.
  17125. (disableWriteCheckSocket): New function.
  17126. (readCheckTarget): Changed its type to SocketHandle.
  17127. (writeCheckTarget): Changed its type to SocketHandle.
  17128. (AbstractCommand): Replaced Socket with SocketHandle.
  17129. * src/AbstractCommand.cc
  17130. (AbstractCommand): Replaced Socket with SocketHandle.
  17131. (~AbstractCommand): Removed the deallocation for Socket object.
  17132. (disableReadCheckSocket): New function.
  17133. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17134. (disableWriteCheckSocket): New function.
  17135. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17136. * src/HttpDownloadCommand.cc
  17137. (DownloadCommand): Replaced Socket with SocketHandle.
  17138. * src/PeerAbstractCommand.h
  17139. (socket): Changed its type to SocketHandle.
  17140. (peer): Changed its type to PeerHandle.
  17141. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17142. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17143. (disableReadCheckSocket): New function.
  17144. (disableWriteCheckSocket): New function.
  17145. (readCheckTarget): Changed its type to SocketHandle.
  17146. (writeCheckTarget): Changed its type to SocketHandle.
  17147. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17148. Replaced Peer with PeerHandle.
  17149. * src/HttpRequestCommand.cc
  17150. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17151. Use disableReadCheckSocket.
  17152. * src/PeerInitiateConnectionCommand.h
  17153. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17154. * src/PeerChokeCommand.cc
  17155. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  17156. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  17157. (execute): Use PeerHandle.
  17158. * src/PeerConnection.h
  17159. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  17160. (socket): Changed its type to SocketHandle.
  17161. (PeerConnection): Replaced Socket with SocketHandle.
  17162. * src/PeerConnection.cc
  17163. (PeerConnection): Replaced Socket with SocketHandle.
  17164. * src/PeerInteractionCommand.h
  17165. (PeerInteractionCommand): Replaced socket with SocketHandle.
  17166. Replaced Peer with PeerHandle.
  17167. * src/PeerInteractionCommand.cc
  17168. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  17169. Replaced Peer with PeerHandle.
  17170. (executeInternal): Use disableWriteCheckSocket.
  17171. Use HandshakeMessageHandle.
  17172. (receiveMessages): Use PeerMessageHandle.
  17173. (prepareForNextPeer): Use PeerHandle.
  17174. * src/HttpProxyRequestCommand.h
  17175. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17176. * src/HttpResponseCommand.cc
  17177. (HttpResponseCommand): Replaced Socket with SocketHandle.
  17178. * src/TorrentMan.cc
  17179. (nullPeer): Added external reference.
  17180. (~TorrentMan): Removed the deallocation of the elements of peers.
  17181. (addPeer): Rewritten.
  17182. (isPeerAvailable): Use nullPeer.
  17183. (deleteOldpeers): Replaced with deleteErrorPeer.
  17184. (deleteErrorPeer): New function.
  17185. (getPeer): Use PeerHandle and nullPeer.
  17186. (hasMissingPiece): Replaced Peer with PeerHandle.
  17187. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17188. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17189. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17190. (getMissingPiece): Replaced Peer with PeerHandle.
  17191. * src/FtpNegotiateCommand.cc
  17192. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  17193. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  17194. (recvGreeting): Use disableWriteCheckSocket.
  17195. (recvPasv): Removed the allocation of Socket.
  17196. Use disableReadCheckSocket.
  17197. (sendRestPasv): Use disableWriteCheckSocket.
  17198. (recvRetr): Changed assertion.
  17199. * src/PeerInteraction.h
  17200. (SharedHandle.h): Included SharedHandle.h.
  17201. (PeerMessageHandle): New type definition.
  17202. (HandshakeMessageHandle): New type definition.
  17203. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  17204. (peer): Changed its type to PeerHandle.
  17205. (createHandshakeMessage): Replaced HandshakeMessage with
  17206. HandshakeMessageHandle.
  17207. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  17208. (PeerInteraction): Replaced Peer with PeerHandle.
  17209. Replaced Socket with SocketHandle.
  17210. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17211. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17212. (receiveHandshake): Replaced HandshakeMessage with
  17213. HandshakeMessageHandle.
  17214. * src/PeerInteraction.cc
  17215. (PeerInteraction): Replaced Peer with PeerHandle.
  17216. Replaced Socket with SocketHandle.
  17217. (~PeerInteraction): Removed the deallocation of the elements of
  17218. messageQueue.
  17219. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  17220. (isSendingMessageInProgress): Replaced PeerMessage with
  17221. PeerMessageHandle.
  17222. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  17223. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17224. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  17225. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  17226. (abortPiece): Use PeerMessageHandle.
  17227. (receiveHandshake): Replaced HandshakeMessage with
  17228. HandshakeMessageHandle. Removed try-catch block.
  17229. (createHandshakeMessage): Replaced HandshakeMessage with
  17230. HandshakeMessageHandle.
  17231. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17232. Removed try-catch block.
  17233. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  17234. * src/HttpProxyResponseCommand.cc
  17235. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17236. * src/FtpTunnelResponseCommand.h
  17237. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17238. * src/HttpConnection.cc
  17239. (HttpConnection): Replaced Socket with SocketHandle.
  17240. * src/PeerAbstractCommand.cc
  17241. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17242. (~PeerAbstractCommand): Removed the deallocation of socket.
  17243. Use disableReadCheckSocket, disableWriteCheckSocket.
  17244. (disableReadCheckSocket): New function.
  17245. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17246. (disableWriteCheckSocket): New function.
  17247. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17248. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  17249. * src/FtpTunnelRequestCommand.cc
  17250. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17251. (~FtpTunnelRequestCommand): Corrected indentation.
  17252. * src/DownloadCommand.h
  17253. (DownloadCommand): Replaced Socket with SocketHandle.
  17254. * src/PeerListenCommand.cc
  17255. (PeerListenCommand): Removed the initialization of socket.
  17256. (~PeerListenCommand): Removed the deallocation of socket.
  17257. (bindPort): Use SocketHandle.
  17258. (execute): Use SocketHandle and PeerHandle.
  17259. * src/FtpDowndloadCommand.cc
  17260. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17261. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  17262. * src/main.cc
  17263. (main): Corrected indentation.
  17264. * src/HttpInitiateConnectionCommand.cc
  17265. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  17266. (executeInternal): Removed the allocation of socket.
  17267. * src/HttpRequestCommand.h
  17268. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17269. * src/FtpNegotiationCommand.h
  17270. (dataSocket): Changed its type to SocketHandle.
  17271. (serverSocket): Changed its type to SocketHandle.
  17272. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  17273. * src/TorrentMan.h
  17274. (MAX_PEER_UPDATE): Removed.
  17275. (MAX_PEERS): New definition.
  17276. (Peers): The element is now of type PeerHandle.
  17277. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  17278. (getPeer): Replaced Peer with PeerHandle.
  17279. (deleteOldErrorPeers): Removed.
  17280. (deleteErrorPeer): New function.
  17281. (hasMissingPiece): Replaced Peer with PeerHandle.
  17282. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17283. (getMissingPiece): Replaced Peer with PeerHandle.
  17284. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17285. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17286. (addActivePeer): Replaced Peer with PeerHandle.
  17287. (deleteActivePeer): Replaced Peer with PeerHandle.
  17288. Added a check for the return value of find.
  17289. * src/FtpTunnelResponseCommand.cc
  17290. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17291. * src/FtpInitiateConnectionCommand.cc
  17292. (executeInternal): Removed the allocation of socket.
  17293. * src/DownloadEngine.h
  17294. (Sockets): An element is now of type SocketHandle.
  17295. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  17296. (CommandUuids): New type definition.
  17297. (rsockets): Changed its type to SockCmdMap.
  17298. (wsockets): Changed its type to SockCmdMap.
  17299. (addSocket): Rewritten.
  17300. (deleteSocket): Rewritten.
  17301. (addSocketForReadCheck): Rewritten.
  17302. (deleteSocketForReadCheck): Rewritten.
  17303. (addSocketForWriteCheck): Rewritten.
  17304. (deleteSocketForWriteCheck): Rewritten.
  17305. (PairFind): New template class.
  17306. * src/HttpDownloadCommand.h
  17307. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  17308. * src/FtpConnection.cc
  17309. (FtpConnection): Replaced Socket with SocketHandle.
  17310. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  17311. block.
  17312. * src/InitiateConnectionCommandFactory.cc
  17313. (DlAbortEx.h): Included DlAbortEx.h.
  17314. (createInitiateConnectionCommand): Throw exception if the protocol of
  17315. requested URI is not supported.
  17316. * src/Peer.cc
  17317. (nullPeer): Changed its type to PeerHandle.
  17318. (operator==): New function.
  17319. (operator!=): New function.
  17320. * src/Peer.h
  17321. (SharedHandle.h): Included SharedHandle.h.
  17322. (operator==): New function.
  17323. (operator!=): New function.
  17324. (Peer): Added the default constructor.
  17325. Use resetStatus() to initialize member variables.
  17326. (nullPeer): Removed.
  17327. * src/TrackerUpdateCommand.cc
  17328. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  17329. with MIN_PEERS.
  17330. * src/PeerListenCommand.h
  17331. (socket): Changed its type to SocketHandle.
  17332. * src/Command.h
  17333. (CommandUuid): New type definition.
  17334. (uuid): New variable.
  17335. (uuidGen): New variable.
  17336. (Command): Added the initialization of uuid.
  17337. (getUuid): New function.
  17338. * src/Socket.h
  17339. (Socket): Removed.
  17340. (SocketHandle): New type definition.
  17341. * src/DownloadEngine.h
  17342. (FindCommand): New function object.
  17343. (run): The portion of socket check was rewritten.
  17344. (SetDescriptor): New function object.
  17345. (AccumulateActiveCommandUuid): New function object.
  17346. (waitData): Rewritten.
  17347. (addSocket): Rewritten.
  17348. (deleteSocket): Rewritten.
  17349. (addSocketForReadCheck): Rewritten.
  17350. (addSocketForWriteCheck): Rewritten.
  17351. (deleteSocketForReadCheck): Rewritten.
  17352. (deleteSocketForWriteCheck): Rewritten.
  17353. * src/HttpProxyResponseCommand.h
  17354. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  17355. * src/HttpConnection.h
  17356. (socket): Changed its type to SocketHandle.
  17357. (HttpConnection): Replaced Socket with SocketHandle.
  17358. * src/PeerInitiateConnectionCommand.cc
  17359. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17360. (executeInternal): Removed the allocation of socket.
  17361. (prepareForNextPeer): Use PeerHandle.
  17362. * src/PeerMessage.h
  17363. (peer): Changed its type to PeerHandle.
  17364. (getPeer): Replaced Peer with PeerHandle.
  17365. (setPeer): Replaced Peer with PeerHandle.
  17366. * src/DownloadCommand.cc
  17367. (DownloadCommand): Replaced Socket with SocketHandle.
  17368. * src/FtpConnection.h
  17369. (socket): Changed its type to SocketHandle.
  17370. (FtpConnection): Replaced Socket with SocketHandle.
  17371. (sendPort); Replaced Socket with SocketHandle.
  17372. * src/FtpDowndloadCommand.h
  17373. (ctrlSocket): Changed its type to SocketHandle.
  17374. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17375. * src/HttpProxyRequestCommand.cc
  17376. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17377. * src/FtpTunnelRequestCommand.h
  17378. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17379. etc
  17380. * src/PeerChokeCommand.h
  17381. (setAllPeerChoked): Removed.
  17382. (setAllPeerResetDelta): Removed.
  17383. * src/PeerChokeCommand.cc
  17384. (setAllPeerChoked): Removed.
  17385. (ChokePeer): New function object.
  17386. (setAllPeerResetDelta): Removed.
  17387. (ResetDelta): New function object.
  17388. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  17389. (execute): Show download speed when the local node is a seeder.
  17390. setAllPeerChoked and setAllPeerResetDelta were rewritten
  17391. using STL.
  17392. * src/TrackerWatcherCommand.h
  17393. (MIN_PEERS): Removed.
  17394. * src/TorrentMan.cc
  17395. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  17396. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17397. To fix the bug that .aria2 file is not saved if downloading is stopped
  17398. by the errors:it results that aria2 can not resume downloading:
  17399. * src/main.cc
  17400. (normalDownload): Added the call to save().
  17401. (main): Added the deletion of the elements in 'reserved'.
  17402. To fix log:
  17403. * src/PeerInteraction.cc
  17404. (receiveHandshake): Fixed log.
  17405. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17406. To improve download performance in BitTorrent:
  17407. * src/TorrentMan.cc
  17408. (getPeer): Check the number of connections. Return nullPeer if
  17409. it is greater than MAX_PEER_UPDATE.
  17410. This code was originally here, but was removed in 0.5.1.
  17411. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17412. To improve the conditional compilation:
  17413. * src/MultiDiskWriter.h:
  17414. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17415. * src/MultiDiskWriter.cc:
  17416. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17417. * src/Util.h:
  17418. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17419. Added ENABLE_BITTORRENT around computeFastSet().
  17420. * src/Util.cc:
  17421. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17422. Added ENABLE_BITTORRENT around computeFastSet().
  17423. * src/messageDigest.h:
  17424. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  17425. * src/ShaVisitor.h:
  17426. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17427. * src/ShaVisitor.cc:
  17428. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17429. * src/main.cc:
  17430. Added ENABLE_BITTORRENT around includes and blocks related to
  17431. BitTorrent.
  17432. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  17433. digest support is not available.
  17434. * src/AbstractDiskWriter.h:
  17435. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17436. * src/AbstractDiskWriter.cc:
  17437. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17438. * src/MetalinkEntry.cc
  17439. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  17440. support is not available.
  17441. To add command-line options for Metalink:
  17442. * src/main.cc:
  17443. Added metalink-version, metalink-language, metalink-os,
  17444. follow-metalink.
  17445. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  17446. * src/main.cc: Use these definition.
  17447. * Release 0.6.0
  17448. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17449. To add Metalink support(http/ftp only):
  17450. * src/AbstractCommand.h
  17451. (tryReserved): New function.
  17452. * src/AbstractCommand.cc
  17453. (execute): Call tryReserved().
  17454. (tryReserved): New function.
  17455. * src/Request.h
  17456. (Requests): New type definition.
  17457. * src/SegmentMan.h
  17458. (reserved): New variable.
  17459. * src/Util.h
  17460. (fileChecksum): New function.
  17461. (toUpper): New function.
  17462. (toLower): New function.
  17463. * src/Util.cc
  17464. (messageDigest.h): Included.
  17465. (trim): Trim \r\n\t.
  17466. (fileChecksum): New function.
  17467. (toUpper): New function.
  17468. (toLower): New function.
  17469. * src/main.cc
  17470. (normalDownload): New function.
  17471. (main): Added 2 command-line options: metalink-file,
  17472. metalink-connection. Their usage has not been written yet.
  17473. * src/MetalinkProcessor.h: New class.
  17474. * src/Xml2MetalinkProcessor.h: New class.
  17475. * src/Xml2MetalinkProcessor.cc: New class.
  17476. * src/MetalinkEntry.h: New class.
  17477. * src/MetalinkEntry.cc: New class.
  17478. * src/MetalinkResource.h: New class.
  17479. * src/MetalinkResource.cc: New class.
  17480. To add md5 message digest checking:
  17481. * src/messageDigest.h: Rewritten.
  17482. * src/MultiDiskWriter.cc: Updated according to the changes in
  17483. messageDigest.h.
  17484. * src/ShaVisitor.cc: Updated according to the changes in
  17485. messageDigest.h.
  17486. * src/Util.cc: Updated according to the changes in messageDigest.h.
  17487. * src/AbstractDiskWriter.cc: Updated according to the changes in
  17488. messageDigest.h.
  17489. To fix a bug that causes segfault when the payload length in peer
  17490. message is less than 0:
  17491. * src/PeerConnection.cc:
  17492. (receiveMessage): Fixed the bug.
  17493. * src/PeerMessageUtil.cc
  17494. (checkLength): Throw an exception if length is less than or equals to
  17495. 0.
  17496. To add new interfaces to Base64 encoding/decoding:
  17497. * src/Base64.h
  17498. (part_encode): Changed the method signature.
  17499. (encode): New function(overload).
  17500. (decode): New function(overload).
  17501. * src/Base64.cc
  17502. (part_encode): Rewritten.
  17503. (encode): Rewritten.
  17504. (encode): New function(overload).
  17505. To prevent a peer to download same piece if there is an error in
  17506. checksum:
  17507. * src/PieceMessage.cc
  17508. (receivedAction): Call peerInteraction->abortPiece().
  17509. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17510. To fix the bug that causes same have message is sent many times to
  17511. a single peer.
  17512. * src/Time.cc
  17513. (isNewer): Use Util::difftv().
  17514. * src/Util.cc
  17515. (difftv): Added a cast to (long long int).
  17516. * src/TorrentMan.cc
  17517. (advertisePiece): Use push_front.
  17518. (getAdvertisedPieceIndexes): A performance improvement was made.
  17519. To fix the bug that sends tracker requests without a sleep interval
  17520. when the number of connections is less than 15.
  17521. * src/TrackerWatcherCommand.cc
  17522. (execute): Now the number of connections is not a factor to decide
  17523. whether or not a tracker request should be sent or not.
  17524. * src/Time.h
  17525. (setTimeInSec): New function.
  17526. * src/Time.cc
  17527. (setTimeInSec): New function.
  17528. etc.
  17529. * src/ChokeMessage.cc
  17530. (receivedAction): Removed peer->snubbing = false
  17531. * src/PeerConnection.h
  17532. (receiveHandshake): Updated doc.
  17533. * src/TorrentMan.h
  17534. (getAdvertisedPieceIndexes): Updated the method signature.
  17535. * src/TorrentMan.cc
  17536. (getAdvertisedPieceIndexes): Updated the method signature.
  17537. * src/Time.h
  17538. (getTimeInMicros): Added a cast to (long long int).
  17539. (getTimeInMillis): Added a cast to (long long int).
  17540. * Release 0.5.2
  17541. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17542. To make a listening socket non-block:
  17543. * src/SocketCore.h
  17544. (setNonBlockingMode): New function.
  17545. * src/SocketCore.cc
  17546. (setNonBlockingMode): New function.
  17547. (beginListen): Added a call to setNonBlockingMode().
  17548. (acceptConnection): Call setNonBlockingMode().
  17549. (setBlockingMode): Updated.
  17550. To handle tracker's NAT-checking:
  17551. * src/PeerConnection.cc
  17552. (receiveHandshake): 'msg' param is filled with received data and
  17553. its length is assigned to 'length' param, even if all handshake
  17554. message is not yet received.
  17555. * src/PeerInteractionCommand.cc
  17556. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  17557. a new peer connects to localhost.
  17558. A call to peerInteraction->sendHandshake() was removed because
  17559. it is called from peerInteraction->receiveHandshake(true).
  17560. * src/PeerInteraction.h
  17561. (quickReplied): New variable.
  17562. (receiveHandshake): Added an argument.
  17563. * src/PeerInteraction.cc
  17564. (PeerInteraction): Added the initialization of quickReplied.
  17565. (receiveHandshake): Send handshake message as soon as the info hash
  17566. in a handshake message from a peer is correct.
  17567. To change the random part of peer id and key parameter:
  17568. * src/TorrentMan.h
  17569. (key): New variable.
  17570. * src/TorrentMan.cc
  17571. (setupInternal1): Use Util::randomAlpha() to generate random part
  17572. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  17573. key is also generated by Util::randomAlpha() and it is now 8 character
  17574. long.
  17575. * src/Util.h
  17576. (randomAlpha): New function.
  17577. * src/Util.cc
  17578. (randomAlpha): New function.
  17579. * src/TrackerWatcherCommand.cc
  17580. (execute): In a tracker request: Use torrentMan->key as key parameter.
  17581. Added no_peer_id=1.
  17582. Set snubbing flag to false when a choke message is received from a
  17583. snubbed peer.
  17584. * src/ChokeMessage.cc
  17585. (receivedAction): Set snubbing flag to false.
  17586. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17587. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  17588. * src/SimpleLogger.h (writeHeader): New function.
  17589. * src/SimpleLogger.cc (writeHeader): New function.
  17590. (writeLog): Fixed the bug that causes segfaults if exception message
  17591. contains an unescaped "%" character.
  17592. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  17593. when a tracker request fails.
  17594. * src/Request.cc (parseUrl): Query string is now handled properly.
  17595. * Release 0.5.1
  17596. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17597. To add Time class which represents a specific instant in time and
  17598. its precision is microseconds. Time checking procedures were rewritten
  17599. using this object.
  17600. * src/Time.h: New class.
  17601. * src/Time.cc: New class.
  17602. * src/AbstractCommand.h
  17603. (updateCheckPoint): Removed.
  17604. (isTimeoutDetected): Removed.
  17605. (checkPoint): Changed the type to Time.
  17606. (timeout): New variable.
  17607. (setTimeout): New function.
  17608. * src/AbstractCommand.cc
  17609. (AbstractCommand): Removed the initialization of checkPoint.
  17610. Added the initialization of timeout.
  17611. (updateCheckPoint): Removed.
  17612. (isTimeoutDetected): Removed.
  17613. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17614. * src/PeerChokeCommand.h
  17615. (checkPoint): Changed the type to Time.
  17616. * src/PeerChokeCommand.cc
  17617. (PeerChokeCommand): Removed the initialization of checkPoint.
  17618. (execute): Rewritten using Time object.
  17619. * src/TrackerWatcherCommand.h
  17620. (checkPoint): Changed the type to Time.
  17621. * src/TrackerWatcherCommand.cc
  17622. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  17623. (execute): Rewritten.
  17624. * src/ConsoleDownloadEngine.h
  17625. (cp): Changed the type to Time.
  17626. (startup): Changed the type to Time.
  17627. * src/ConsoleDownloadEngine.cc
  17628. (initStatistics): Use cp.reset(), startup.reset().
  17629. (calculateStatistics): Rewritten using Time object.
  17630. * src/PeerAbstractCommand.h
  17631. (updateCheckPoint): Removed.
  17632. (isTimeoutDetected): Removed.
  17633. (checkPoint): Changed the type to Time.
  17634. * src/PeerAbstractCommand.cc
  17635. (PeerAbstractCommand): Removed the initialization of checkPoint.
  17636. (updateCheckPoint): Removed.
  17637. (isTimeoutDetected): Removed.
  17638. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17639. * src/PeerInteractionCommand.cc
  17640. (PeerInteractionCommand): Removed the initializations of struct
  17641. timeval variables.
  17642. * src/PeerInteractionCommand.h
  17643. (keepAliveCheckPoint): Changed the type to Time.
  17644. (chokeCheckPoint): Changed the type to Time.
  17645. (freqCheckPoint): Changed the type to Time.
  17646. (haveCheckTime): Changed the type to Time.
  17647. * src/PeerInteractionCommand.cc
  17648. (executeInternal): Rewritten using Time object.
  17649. (detectMessageFlooding): Rewritten using Time object.
  17650. (checkLongTimePeerChoking): Rewritten using Time object.
  17651. (sendKeepAlive): Rewritten using Time object.
  17652. (checkHave): Rewritten using Time object.
  17653. * src/SleepCommand.h
  17654. (checkPoint): Changed the type to Time.
  17655. * src/SleepCommand.cc
  17656. (SleepCommand): Removed the initialization of checkPoint.
  17657. (execute): Rewritten using Time object.
  17658. * src/TorrentAutoSaveCommand.h
  17659. (checkPoint): Changed the type to Time.
  17660. * src/TorrentAutoSaveCommand.cc
  17661. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  17662. (execute): Rewritten.
  17663. * src/DownloadCommand.h
  17664. (sw): Changed the type to Time.
  17665. * src/DownloadCommand.cc
  17666. (DownloadCommand): Removed the initialization of sw.
  17667. (executeInternal): Rewritten.
  17668. * src/RequestSlot.h
  17669. (dispatchedTime): Changed the type to Time.
  17670. * src/RequestSlot.cc
  17671. (RequestSlot): Removed the call to setDispatchedTime().
  17672. (setDispatchedTime): Rewirtten.
  17673. (isTimeout): Rewritten.
  17674. (getLatencyInMillis): Rewritten.
  17675. * src/TorrentDownloadEngine.h
  17676. (cp): Changed the type to Time[2].
  17677. (startup): Changed the type to Time.
  17678. * src/TorrentDownloadEngine.cc
  17679. (initStatistics): Rewritten.
  17680. (calculateStatistics): Rewritten.
  17681. * src/DownloadEngine.cc
  17682. (run): Rewritten.
  17683. To detect all attempts to connect to the tracker are failed:
  17684. * src/AbstractCommand.cc
  17685. (execute): Increment e->segmentMan->errors if a command aborted.
  17686. * src/SegmentMan.h
  17687. (errors): New variable.
  17688. * src/SegmentMan.cc
  17689. (SegmentMan): Added the initialization of errors.
  17690. (init): Added the initialization of errors.
  17691. * src/TrackerWatcherCommand.cc
  17692. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  17693. request was failed.
  17694. To handle snubbed peers:
  17695. * src/PeerChokeCommand.cc
  17696. (optUnchokingPeer): Snubbed peers don't get unchoked.
  17697. (execute): Snubbed peers don't get unchoked.
  17698. * src/PeerInteraction.h
  17699. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  17700. * src/PeerInteraction.cc
  17701. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  17702. back the requested 16k block in 60 seconds.
  17703. * src/PieceMessage.cc
  17704. (receivedAction): A peer's snubbed state is cleard if it sends
  17705. the requested 16k block in 60 seconds.
  17706. * src/Peer.h
  17707. (snubbing): New variable.
  17708. * src/Peer.cc
  17709. (resetStatus): Added snubbed = false.
  17710. To fix the bug that causes have message is not sent:
  17711. * src/PeerInteractionCommand.cc
  17712. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  17713. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  17714. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  17715. * src/TorrentMan.h
  17716. (HaveEntry): New class.
  17717. (advertisePiece): Rewritten.
  17718. (getAdvertisedPieceIndexes): Rewritten.
  17719. (Haves): Changed the type.
  17720. (getAdvertisedPieceIndexes): Added an argument.
  17721. Others:
  17722. * src/TorrentMan.h
  17723. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  17724. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  17725. * src/TorrentMan.cc
  17726. (getPeer): Don't check the number of connections here.
  17727. (setupInternal1): Changed peerId.
  17728. * src/PeerInteractionCommand.h
  17729. (KEEP_ALIVE_INTERVAL): New definition.
  17730. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  17731. * src/main.cc
  17732. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  17733. * src/DownloadEngine.h: Removed unnecessary header includes.
  17734. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17735. To fix the bug that causes segfaults if a tracker returns a zero-length
  17736. list as "peers":
  17737. * src/TrackerUpdateCommand.cc
  17738. (execute): Added a check to see wether the type of peers is Data*.
  17739. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17740. * Release 0.5.0
  17741. To fix compile issue with gcc3:
  17742. * src/CancelMessage.h
  17743. (ID): Renamed as ID_t
  17744. (ID_t): New enum.
  17745. * src/RejectMessage.h
  17746. (ID): Renamed as ID_t
  17747. (ID_t): New enum.
  17748. * src/SuggestPieceMessage.h
  17749. (ID): Renamed as ID_t
  17750. (ID_t): New enum.
  17751. * src/AllowedFastMessage.h
  17752. (ID): Renamed as ID_t
  17753. (ID_t): New enum.
  17754. * src/PortMessage.h
  17755. (ID): Renamed as ID_t
  17756. (ID_t): New enum.
  17757. * src/HaveNoneMessage.h
  17758. (ID): Renamed as ID_t
  17759. (ID_t): New enum.
  17760. * src/KeepAliveMessage.h
  17761. (ID): Renamed as ID_t
  17762. (ID_t): New enum.
  17763. * src/HaveAllMessage.h
  17764. (ID): Renamed as ID_t
  17765. (ID_t): New enum.
  17766. * src/UnchokeMessage.h
  17767. (ID): Renamed as ID_t
  17768. (ID_t): New enum.
  17769. * src/BitfieldMessage.h
  17770. (ID): Renamed as ID_t
  17771. (ID_t): New enum.
  17772. * src/PieceMessage.h
  17773. (ID): Renamed as ID_t
  17774. (ID_t): New enum.
  17775. * src/RequestMessage.h
  17776. (ID): Renamed as ID_t
  17777. (ID_t): New enum.
  17778. * src/NotInterestedMessage.h
  17779. (ID): Renamed as ID_t
  17780. (ID_t): New enum.
  17781. * src/ChokeMessage.h
  17782. (ID): Renamed as ID_t
  17783. (ID_t): New enum.
  17784. * src/InterestedMessage.h
  17785. (ID): Renamed as ID_t
  17786. (ID_t): New enum.
  17787. * src/HaveMessage.h
  17788. (ID): Renamed as ID_t
  17789. (ID_t): New enum.
  17790. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17791. * src/PeerAbstractCommand.h
  17792. (beforeSocketCheck): Removed.
  17793. * src/PeerAbstractCommand.cc
  17794. Modified in order to call executeInternal() even if socket check
  17795. and upload limit check fail.
  17796. * src/PeerInteractionCommand.h
  17797. (keepAlive): Removed.
  17798. (sendKeepAlive): New function.
  17799. (checkHave): New function.
  17800. (beforeSocketCheck): Removed.
  17801. * src/PeerInteractionCommand.cc
  17802. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17803. calls to checkHave() and sendKeepAlive().
  17804. (keepAlive): Renamed to sendKeepAlive().
  17805. (sendKeepAlive): New function.
  17806. (beforeSocketCheck): Removed.
  17807. (checkHave): New function.
  17808. * src/BitfieldMan.cc
  17809. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17810. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17811. 0.
  17812. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17813. * src/TorrentMan.h
  17814. (UsedPieces): Removed.
  17815. (Pieces): New type definition.
  17816. * src/Piece.h: Updated doc.
  17817. * src/Peer.h
  17818. (totalLength): Removed.
  17819. * src/Peer.cc
  17820. (updateLatency): Fixed the latency calculation.
  17821. * src/TorrentMan.cc
  17822. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17823. than or equal to MAX_PEER_LIST_SIZE.
  17824. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17825. then return false.
  17826. (deleteOldErrorPeers): Rewritten.
  17827. (deleteUsedPiece): Fixed the miss use of STL remove.
  17828. * src/PeerInteraction.h
  17829. (Pieces): Removed.
  17830. (deleteTimeoutRequestSlot): Removed.
  17831. (deleteCompletedRequestSlot): Removed.
  17832. (checkRequestSlot): New function.
  17833. * src/PeerInteraction.cc
  17834. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17835. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17836. (checkRequestSlot): New function.
  17837. * src/DownloadEngine.cc
  17838. (run): Clear activeSockets before calling waitData().
  17839. (waitData): Removed a call to activeSockets.clear().
  17840. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17841. To attempt to handle EINTR:
  17842. * src/SocketCore.cc
  17843. (isReadable): Added EINTR handling.
  17844. (isWritable): Added EINTR handling.
  17845. To improve the performance:
  17846. * src/AbstractCommand.cc
  17847. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17848. * src/PeerInteractionCommand.h
  17849. (receiveMessage): Renamed as receiveMessages().
  17850. (receiveMessages): New function.
  17851. * src/PeerInteractionCommand.cc
  17852. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17853. () function. detectMessageFlooding() is moved here.
  17854. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17855. (). The flooding detection for have message is comment out.
  17856. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17857. Util::difftv().
  17858. (receiveMessage): Renamed as receiveMessages().
  17859. (receiveMessages): New function.
  17860. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17861. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17862. * src/SleepCommand.cc
  17863. (execute): Use Util::difftvsec() instead of Util::difftv().
  17864. * src/BitfieldMan.h
  17865. (getNthBitIndex): New function.
  17866. (hasMissingPiece): New function.
  17867. (getAllMissingIndexes): New function.
  17868. * src/BitfieldMan.cc
  17869. (countSetBit): Rewritten.
  17870. (getNthBitIndex): New function.
  17871. (getMissingIndexRandomly): Rewritten.
  17872. (hasMissingPiece): New function.
  17873. (getAllMissingIndexes): New function.
  17874. * src/TorrentMan.cc
  17875. (hasMissingPiece): New function.
  17876. (deleteUsedPiece): Rewritten using STL.
  17877. * src/PeerInteraction.cc
  17878. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17879. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17880. (addRequests): Updated the number of pending requests.
  17881. * src/PeerAbstractCommand.cc
  17882. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17883. (execute): Returns true if TorrentMan::isHalt() is true.
  17884. Corrected the condition of upload limit checking.
  17885. * src/Util.h
  17886. (countBit): New function.
  17887. * src/Util.cc
  17888. (nbits): New variable.
  17889. (countBit): New function.
  17890. * src/DownloadEngine.h
  17891. (SockCmdMap): New type definition.
  17892. (waitData): Added an argument.
  17893. (addSocket): Added an argument.
  17894. (addSocketForReadCheck): Added an argument.
  17895. (addSocketForWriteCheck): Added an argument.
  17896. * src/DownloadEngine.cc
  17897. (run): Executes only commands whose sockets are ready to read or write.
  17898. All commands are executed in every 1 second.
  17899. (waitData): Calls select() again if it returned
  17900. EINTR.
  17901. (addSocket): Saves socket and command object pair to the map.
  17902. (deleteSocket): Deletes socket and command object pair from the map.
  17903. (addSocketForReadCheck): Added an argument.
  17904. (addSocketForWriteCheck): Added an argument.
  17905. * src/DownloadCommand.cc
  17906. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17907. To send "event=stopped" to the tracker when the application finishes:
  17908. * src/PeerChokeCommand.h
  17909. (checkPoint): New variable.
  17910. * src/PeerChokeCommand.cc
  17911. (PeerChokeCommand): Added the initialization of checkPoint.
  17912. (execute): The interval check is now done by checkPoint, not
  17913. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17914. * src/TorrentMan.h
  17915. (halt): New function.
  17916. (hasMissingPiece): New function.
  17917. (isHalt): New function.
  17918. (setHalt): New function.
  17919. * src/TorrentMan.cc
  17920. (TorrentMan): Added the initialization of halt.
  17921. * src/TorrentAutoSaveCommand.h
  17922. (checkPoint): New variable.
  17923. * src/PeerListenCommand.cc
  17924. (execute): Returns true if TorrentMan::isHalt() is true.
  17925. * src/main.cc
  17926. (setSignalHander): Added flags argument.
  17927. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17928. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17929. Removed printDownloadAbortMessage() after torrent downloading loop.
  17930. * src/TorrentAutoSaveCommand.cc
  17931. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17932. (execute): Returns true if TorrentMan::isHalt() is true.
  17933. The interval check is now done by checkPoint, not SleepCommand.
  17934. * src/TrackerWatcherCommand.cc
  17935. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17936. event=stopped.
  17937. * src/TrackerUpdateCommand.cc
  17938. (prepareForRetry): Do not use SleepCommand here.
  17939. (execute): Returns true if TorrentMan::isHalt() is true.
  17940. Others:
  17941. * src/TorrentMan.cc
  17942. (getMissingPieceIndex): Updated log message.
  17943. * src/PeerInteraction.cc
  17944. (createPeerMessag): Updated log message.
  17945. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17946. To add the ability to download several pieces in mix in a command and
  17947. increase the number of request slots according to request-cancel
  17948. latency:
  17949. * src/PeerInteractionCommand.cc
  17950. (executeInternal): The number of messages to be received at a time
  17951. is increased from 10 to 50.
  17952. * src/LogFactory
  17953. (getInstance): Added NullLogger.
  17954. * src/NullLogger.h: New class.
  17955. * src/BitfieldMan.h
  17956. (getMissingIndex): New function.
  17957. * src/BitfieldMan.cc
  17958. (getMissingIndex): New function.
  17959. * src/TorrentMan.h
  17960. (checkOutPiece): New function.
  17961. (getMissingPieceIndex): New function.
  17962. (getMissingFastPieceIndex): New function.
  17963. (getMissingFastPiece): New function.
  17964. * src/TorrentMan.cc
  17965. (updatePiece): Rewritten using STL.
  17966. (syncPiece): Rewritten using STL.
  17967. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17968. checkOutPiece().
  17969. (getMissingPieceIndex): New function.
  17970. (getMissingFastPieceIndex): New function.
  17971. (getMissingFastPiece): New function.
  17972. (checkOutPiece): New function.
  17973. * src/PeerInteraction.h
  17974. (Pieces): New type definition.
  17975. (piece): Removed.
  17976. (pieces): New variable.
  17977. (getNewPieceAndSendInterest): Added the "piece" argument.
  17978. (abortPiece): Added the "piece" argument.
  17979. (abortAllPieces): New function.
  17980. (isInRequestSlot): New function.
  17981. (hasDownloadPiece): Added the "index" argument.
  17982. (setDownloadPiece): Removed.
  17983. (getDownloadPiece): Added the "index" argument.
  17984. (updatePiece): New function.
  17985. (createRequestMessage): Added the "index" argument.
  17986. * src/PeerInteraction.cc
  17987. (onChoked): Rewritten.
  17988. (abortPiece): Rewirtten.
  17989. (abortAllPieces): New function.
  17990. (deleteTimeoutRequestSlot): Rewritten.
  17991. Clarified code a little bit.
  17992. (deleteCompletedRequestSlot): Rewritten.
  17993. (isInRequestSlot): New function.
  17994. (syncPiece): Rewritten.
  17995. (updatePiece): New function.
  17996. (getNewPieceAndSendInterest): Rewritten.
  17997. (addRequests): Rewritten.
  17998. (getDownloadPiece): Rewritten.
  17999. (hasDownloadPiece): Rewritten.
  18000. (createRequestMessage): Added the "index" argument.
  18001. * src/common.h
  18002. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  18003. (DIV_FLOOR): New definition.
  18004. * src/PieceMessage.cc
  18005. (receivedAction): Update request-piece latency here.
  18006. * src/RequestSlot.h
  18007. (getLatencyInMillis): New function.
  18008. * src/RequestSlot.cc
  18009. (isTimeout): Rewritten using getLatencyInMillis.
  18010. (getLatencyInMillis): New function.
  18011. * src/Piece.h
  18012. (operator==): New function.
  18013. (getMissingBlockIndex): New function.
  18014. * src/Piece.cc
  18015. (operator==): New function.
  18016. (getMissingBlockIndex): New function.
  18017. * src/Peer.h
  18018. (DEFAULT_LATENCY): New definition.
  18019. (latency): New variable.
  18020. (updateLatency): New function.
  18021. (getLatency): New function.
  18022. * src/Peer.cc
  18023. (resetStatus): Reset latecy.
  18024. (updateLatency): New function.
  18025. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18026. * src/SocketCore.cc
  18027. (isReadable): Added secure to the condition.
  18028. * src/HttpConnection.cc
  18029. (receiveResponse): Fixed a bug that causes no response header
  18030. exception.
  18031. * src/Peer.h
  18032. (getFastSet): Fixed the return value type.
  18033. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18034. To remove a wait from download loop:
  18035. * src/DownloadEngine.cc
  18036. (run): Comment out shortSleep.
  18037. To rewrite the message handling:
  18038. * src/SimplePeerMessage.h: New class.
  18039. * src/SimplePeerMessage.cc: New class.
  18040. * src/CancelMessage.h: Derived from SimplePeerMessage.
  18041. (msg): New variable.
  18042. (create): New function.
  18043. (send): Removed.
  18044. (getMessage): New function.
  18045. (getMessageLength): New function.
  18046. * src/CancelMessage.cc
  18047. (create): New function.
  18048. (receivedAction): Replaced deleteRequestMessageInQueue with
  18049. rejectPieceMessageInQueue.
  18050. (send): Removed.
  18051. (getMessage): New function.
  18052. (getMessageLength): New function.
  18053. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  18054. (msg): New variable.
  18055. (msgLength): New variable.
  18056. (~BitfieldMessage): Deleted msg.
  18057. (send): Removed.
  18058. (getMessage): New function.
  18059. (getMessageLength): New function.
  18060. * src/BitfieldMessage.cc
  18061. (create): New function.
  18062. (send): Removed.
  18063. (getMessage): New function.
  18064. (getMessageLength): New function.
  18065. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  18066. (msg): New variable.
  18067. (sendPredicate): New function.
  18068. (onSendComplete): New function.
  18069. (send): Removed.
  18070. (getMessage): New function.
  18071. (getMessageLength): New function.
  18072. (create): New function.
  18073. * src/ChokeMessage.cc
  18074. (create): New function.
  18075. (send): Removed.
  18076. (sendPredicate): New function.
  18077. (getMessage): New function.
  18078. (getMessageLength): New function.
  18079. (onSendComplete): New function.
  18080. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  18081. (msg): New variable.
  18082. (send): Removed.
  18083. (getMessage): New function.
  18084. (getMessageLength): New function.
  18085. * src/KeepAliveMessage.cc
  18086. (send): Removed.
  18087. (getMessage): New function.
  18088. (getMessageLength): New function.
  18089. * src/PortMessage.h
  18090. (create): New function.
  18091. (receivedAction): Updated log message.
  18092. * src/PortMessage.cc: New file.
  18093. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  18094. (msg): New variable.
  18095. (sendPredicate): New function.
  18096. (onSendComplete): New function.
  18097. (create): New function.
  18098. (send): Removed.
  18099. (getMessage): New function.
  18100. (getMessageLength): New function.
  18101. * src/UnchokeMessage.cc
  18102. (create): New function.
  18103. (send): Removed.
  18104. (sendPredicate): New function.
  18105. (getMessage): New function.
  18106. (getMessageLength): New function.
  18107. (onSendComplete): New function.
  18108. * src/PieceMessage.h
  18109. (leftPieceDataLength): Removed.
  18110. (leftDataLength): New variable.
  18111. (headerSend): New variable.
  18112. (pendingCount): New variable.
  18113. (msgHeader): New variable.
  18114. (sendPieceData): New function.
  18115. (incrementPendingCount): New function.
  18116. (isPendingCountMax): New function.
  18117. (create): New function.
  18118. (getMessageHeader): New function.
  18119. (getMessageHeaderLength): New function.
  18120. * src/PieceMessage.cc
  18121. (create): New function.
  18122. (getMessageHeader): New function.
  18123. (getMessageHeaderLength): New function.
  18124. (send): Rewritten.
  18125. (sendPieceData): New function.
  18126. * src/HaveMessage.h: Derived from SimplePeerMessage.
  18127. (msg): New variable.
  18128. (create): New function.
  18129. (getMessage): New function.
  18130. (getMessageLength): New function.
  18131. * src/HaveMessage.cc
  18132. (create): New function.
  18133. (send): Removed.
  18134. (sendPieceData): New function.
  18135. (getMessage): New function.
  18136. (getMessageLength): New function.
  18137. * src/RequestMessage.h: Derived from SimplePeerMessage.
  18138. (msg): New variable.
  18139. (create): New function.
  18140. (send): Removed.
  18141. (getMessage): New function.
  18142. (getMessageLength): New function.
  18143. * src/RequestMessage.cc
  18144. (create): New function.
  18145. (receivedAction): Added the handling of fast extension.
  18146. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  18147. (send): Removed.
  18148. (getMessage): New function.
  18149. (getMessageLength): New function.
  18150. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  18151. (msg): New variable.
  18152. (sendPredicate): New function.
  18153. (onSendComplete): New function.
  18154. (create): New function.
  18155. (getMessage): New function.
  18156. (getMessageLength): New function.
  18157. * src/InterestedMessage.cc
  18158. (create): New function.
  18159. (send): Removed.
  18160. (sendPieceData): New function.
  18161. (getMessage): New function.
  18162. (getMessageLength): New function.
  18163. (onSendComplete): New function.
  18164. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  18165. (msg): New variable.
  18166. (sendPieceData): New function.
  18167. (onSendComplete): New function.
  18168. (create): New function.
  18169. (send): Removed.
  18170. (getMessage): New function.
  18171. (getMessageLength): New function.
  18172. * src/NotInterestedMessage.cc
  18173. (create): New function.
  18174. (send): Removed.
  18175. (sendPredicate): New function.
  18176. (getMessage): New function.
  18177. (getMessageLength): New function.
  18178. (onSendComplete): New function.
  18179. * src/AllowedFastMessage.h: New class.
  18180. * src/AllowedFastMessage.cc: New class.
  18181. * src/RejectMessage.h: New class.
  18182. * src/RejectMessage.cc: New class.
  18183. * src/SuggestPieceMessage.h: New class.
  18184. * src/SuggestPieceMessage.cc: New class.
  18185. * src/HaveAllMessage.h: New class.
  18186. * src/HaveAllMessage.cc: New class.
  18187. * src/HaveNoneMessage.h: New class.
  18188. * src/HaveNoneMessage.cc: New class.
  18189. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  18190. (msg): New variable.
  18191. (reserved): New variable.
  18192. (create): New function.
  18193. (getId): New function.
  18194. (receivedAction): New function.
  18195. (getMessage): New function.
  18196. (getMessageLength): New function.
  18197. (isFastExtensionSupported): New function.
  18198. * src/HandshakeMessage.cc
  18199. (HandshakeMessage): Moved here from HandshakeMessage.h.
  18200. (create): New function.
  18201. (getMessage): New function.
  18202. (getMessageLength): New function.
  18203. (toString): Added the output of reserved field.
  18204. (check): Added const qualifier.
  18205. (isFastExtensionSupported): New function.
  18206. * src/PeerMessageUtil.h
  18207. (createChokeMessage): Removed.
  18208. (createUnchokeMessage): Removed.
  18209. (createInterestedMessage): Removed.
  18210. (createNotInterestedMessage): Removed.
  18211. (createHaveMessage): Removed.
  18212. (createBitfieldMessage): Removed.
  18213. (createRequestMessage): Removed.
  18214. (createCancelMessage): Removed.
  18215. (createPieceMessage): Removed.
  18216. (createPortMessage): Removed.
  18217. (createChokeMessage): Removed.
  18218. (createUnchokeMessage): Removed.
  18219. (createInterestedMessage): Removed.
  18220. (createNotInterestedMessage): Removed.
  18221. (createHaveMessage): Removed.
  18222. (createBitfieldMessage): Removed.
  18223. (createRequestMessage): Removed.
  18224. (createCancelMessage): Removed.
  18225. (createPieceMessage): Removed.
  18226. (createKeepAliveMessage): Removed.
  18227. (createHandshakeMessage): Removed.
  18228. (setIntParam): New function.
  18229. (createPeerMessageString): New function.
  18230. * src/PeerMessageUtil.cc
  18231. (createChokeMessage): Removed.
  18232. (createUnchokeMessage): Removed.
  18233. (createInterestedMessage): Removed.
  18234. (createNotInterestedMessage): Removed.
  18235. (createHaveMessage): Removed.
  18236. (createBitfieldMessage): Removed.
  18237. (createRequestMessage): Removed.
  18238. (createCancelMessage): Removed.
  18239. (createPieceMessage): Removed.
  18240. (createPortMessage): Removed.
  18241. (createRequestMessage): Removed.
  18242. (createCancelMessage): Removed.
  18243. (createPieceMessage): Removed.
  18244. (createHaveMessage): Removed.
  18245. (createChokeMessage): Removed.
  18246. (createUnchokeMessage): Removed.
  18247. (createInterestedMessage): Removed.
  18248. (createNotInterestedMessage): Removed.
  18249. (createBitfieldMessage): Removed.
  18250. (createKeepAliveMessage): Removed.
  18251. (createHandshakeMessage): Removed.
  18252. (setIntParam): New function.
  18253. (createPeerMessageString): New function.
  18254. * src/PeerConnection.h
  18255. (peer): Removed.
  18256. (torrentMan): Removed.
  18257. (createNLengthMessage): Removed.
  18258. (setIntParam): Removed.
  18259. (writeOutgoingMessageLog): Removed all overloaded functions.
  18260. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18261. (sendMessage): New function.
  18262. (sendHandshake): Removed.
  18263. (sendKeepAlive): Removed.
  18264. (sendChoke): Removed.
  18265. (sendUnchoke): Removed.
  18266. (sendInterested): Removed.
  18267. (sendNotInterested): Removed.
  18268. (sendHave): Removed.
  18269. (sendBitfield): Removed.
  18270. (sendRequest): Removed.
  18271. (sendPiece): Removed.
  18272. (sendPieceHeader): Removed.
  18273. (sendPieceData): Removed.
  18274. (sendCancel): Removed.
  18275. (getPeer): Removed.
  18276. * src/PeerConnection.cc
  18277. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18278. (sendHandshake): Removed.
  18279. (sendKeepAlive): Removed.
  18280. (createNLengthMessage): Removed.
  18281. (setIntParam): Removed.
  18282. (writeOutgoingMessageLog): Removed all overloaded functions.
  18283. (sendChoke): Removed.
  18284. (sendUnchoke): Removed.
  18285. (sendInterested): Removed.
  18286. (sendNotInterested): Removed.
  18287. (sendHave): Removed.
  18288. (sendBitfield): Removed.
  18289. (sendRequest): Removed.
  18290. (sendPiece): Removed.
  18291. (sendPieceHeader): Removed.
  18292. (sendPieceData): Removed.
  18293. (sendMessage): New function.
  18294. (sendCancel): Removed.
  18295. * src/PeerInteractionCommand.cc
  18296. (PeerInteractionCommand): Call setUploadLimit.
  18297. (executeInternal): Call setUploadLimit.
  18298. Added the handling of "inProgress" state of handshake message.
  18299. Call sendBitfield() or sendAllowdFast() instead of deprecated
  18300. sendNow().
  18301. (keepAlive): Call addMessage and sendMessage instead of deprecated
  18302. sendNow().
  18303. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  18304. * src/TorrentMan.h
  18305. (PEER_ID_LENGTH): New definition.
  18306. (hasAllPieces): New function.
  18307. * src/TorrentMan.cc
  18308. (getMissingPiece): Added the handling of fast extension.
  18309. (cancelPiece): Call updatePiece().
  18310. (hasAllPieces): New function.
  18311. * src/PeerInteraction.h
  18312. (fastSet): New variable.
  18313. (getNewPieceAndSendInterest): Changed the return type to void.
  18314. (send): Renamed as sendMessages.
  18315. (deleteAllRequestSlot): Removed.
  18316. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18317. (cancelAllRequest): Removed all overloaded functions.
  18318. (deleteAllRequestSlot): Removed.
  18319. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18320. (rejectPieceMessageInQueue): New function.
  18321. (rejectAllPieceMessageInQueue): New function.
  18322. (onChoked): New function.
  18323. (isSendingMessageInProgress): New function.
  18324. (getCorrespondingRequestSlot): Changed its arguments.
  18325. (isInFastSet): New function.
  18326. (addFastSetIndex): New function.
  18327. (addRequests): New function.
  18328. (sendNow): Removed.
  18329. (trySendNow): Removed.
  18330. (sendBitfield): New function.
  18331. (sendAllowdFast): New function.
  18332. (createHaveAllMessage): New function.
  18333. (createHaveNoneMessage): New function.
  18334. (createRejectMessage): New function.
  18335. (createAllowedFastMessage): New function.
  18336. * src/PeerInteraction.cc
  18337. (send): Renamed as sendMessages.
  18338. (sendMessages): New function.
  18339. (MsgPushBack): New class.
  18340. (isSendingMessageInProgress): New function.
  18341. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18342. (rejectAllPieceMessageInQueue): New function.
  18343. Added the handling of fast extension.
  18344. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18345. (rejectPieceMessageInQueue): New function.
  18346. Added the handling of fast extension.
  18347. (deleteRequestSlot): Replaced for loop with std::find.
  18348. (onChoked): New function.
  18349. (deleteAllRequestSlot): Removed.
  18350. (abortPiece): Rewirtten.
  18351. (deleteTimeoutRequestSlot): Updated log messages.
  18352. (getCorrespondingRequestSlot): Changed its arguments.
  18353. (cancelAllRequest): Removed all overloaded functions.
  18354. (receiveHandshake): Added the check to see whether an incoming peer
  18355. supports fast extension.
  18356. (createHandshakeMessage): Use HandshakeMessage::create instead of
  18357. PeerMessageUtil.
  18358. (createPeerMessage): Use create() of each message class instead of
  18359. PeerMessageUtil.
  18360. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  18361. AllowedFastMessage were added.
  18362. (getNewPieceAndSendInterest): Changed its return value type to void.
  18363. Added the handling of fast extension.
  18364. (addRequests): New function.
  18365. (sendNow): Removed.
  18366. (sendHandshake): Rewritten.
  18367. (trySendNow): Removed.
  18368. (sendBitfield): New function.
  18369. (sendAllowdFast): New function.
  18370. (isInFastSet): New function.
  18371. (addFastSetIndex): New function.
  18372. (createRequestMessage): Use RequestMessage::create instead of
  18373. PeerMessageUtil.
  18374. (createCancelMessage): Use CancelMessage::create instead of
  18375. PeerMessageUtil.
  18376. (createPieceMessage): Use PieceMessage::create instead of
  18377. PeerMessageUtil.
  18378. (createHaveMessage): Use HaveMessage::create instead of
  18379. PeerMessageUtil.
  18380. (createChokeMessage): Use ChokeMessage::create instead of
  18381. PeerMessageUtil.
  18382. (createUnchokeMessage): Use UnchokeMessage::create instead of
  18383. PeerMessageUtil.
  18384. (createInterestedMessage): Use InterestedMessage::create instead of
  18385. PeerMessageUtil.
  18386. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  18387. of PeerMessageUtil.
  18388. (createBitfieldMessage): Use BitfieldMessage::create instead of
  18389. PeerMessageUtil.
  18390. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  18391. PeerMessageUtil.
  18392. (createHaveAllMessage): New function.
  18393. (createHaveNoneMessage): New function.
  18394. (createRejectMessage): New function.
  18395. (createAllowedFastMessage: New function.
  18396. * src/Util.h
  18397. (sha1Sum): New function.
  18398. (computeFastSet): New function.
  18399. * src/Util.cc
  18400. (sha1Sum): New function.
  18401. (computeFastSet): New function.
  18402. * src/Peer.h
  18403. (fastExtensionEnabled): New variable.
  18404. (fastSet): New variable.
  18405. (setAllBitfield): New function.
  18406. (setFastExtensionEnabled): New function.
  18407. (isFastExtensionEnabled): New function.
  18408. (addFastSetIndex): New function.
  18409. (getFastSet): New function.
  18410. (isInFastSet): New function.
  18411. (countFastSet): New function.
  18412. * src/Peer.cc
  18413. (isInFastSet): New function.
  18414. (addFastSetIndex): New function.
  18415. (setAllBitfield): New function.
  18416. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  18417. sockets.
  18418. * src/PeerAbstractCommand.cc
  18419. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  18420. and uploadLimit.
  18421. (execute): Changed the procedure of checking sockets. The upload speed
  18422. checking were added.
  18423. (setUploadLimit): New function.
  18424. (setUploadLimitCheck): New function.
  18425. * src/PeerAbstractCommand.h
  18426. (setUploadLimit): New function.
  18427. (setUploadLimitCheck): New function.
  18428. (uploadLimit): New variable.
  18429. (uploadLimitCheck): New variable.
  18430. To contact a tracker regularly:
  18431. * src/TrackerWatcherCommand.h (interval): New variable.
  18432. (checkPoint): New variable.
  18433. (TrackerWatcherCommand): Added interval argument.
  18434. * src/TrackerWatcherCommand.cc
  18435. (TrackerWatcherCommand): Initialized checkPoint.
  18436. (execute): Now a tracker is contacted in every specified period.
  18437. If peer list is not needed, send request with numwant=0.
  18438. * src/TrackerUpdateCommand.cc
  18439. (execute): Updated log messages.
  18440. * src/DownloadEngine.cc
  18441. (~DownloadEngine): Removed two asserts.
  18442. (waitData): Uncommented wfds. May be a bug fix.
  18443. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18444. * src/PeerInteractionCommand.h
  18445. (checkInactiveConnection): Removed.
  18446. * src/PeerInteractionCommand.cc
  18447. (executeInternal): Removed following function calls:
  18448. detectMessageFlooding(), checkLongTimePeerChoking and
  18449. checkInactiveConnection().
  18450. (checkInactiveConnection): Removed.
  18451. (detectMessageFlooding): Removed function call to
  18452. checkInactiveConnection().
  18453. * src/PeerMessageUtil.h
  18454. (createChokeMessage): New function. Overload.
  18455. (createUnchokeMessage): New function. Overload.
  18456. (createInterestedMessage): New function. Overload.
  18457. (createNotInterestedMessage): New function. Overload.
  18458. (createHaveMessage): New function. Overload.
  18459. (createBitfieldMessage): New function. Overload.
  18460. (createRequestMessage): New function. Overload.
  18461. (createCancelMessage): New function. Overload.
  18462. (createPieceMessage): New function. Overload.
  18463. (createKeepAliveMessage): New function. Overload.
  18464. * src/PeerMessageUtil.cc
  18465. (createChokeMessage): New function. Overload.
  18466. (createUnchokeMessage): New function. Overload.
  18467. (createInterestedMessage): New function. Overload.
  18468. (createNotInterestedMessage): New function. Overload.
  18469. (createHaveMessage): New function. Overload.
  18470. (createBitfieldMessage): New function. Overload.
  18471. (createRequestMessage): New function. Overload.
  18472. (createCancelMessage): New function. Overload.
  18473. (createPieceMessage): New function. Overload.
  18474. (createKeepAliveMessage): New function. Overload.
  18475. * src/SendMessageQueue.cc
  18476. (createRequestMessage): Use PeerMessageUtil.
  18477. (createCancelMessage): Use PeerMessageUtil.
  18478. (createPieceMessage): Use PeerMessageUtil.
  18479. (createHaveMessage): Use PeerMessageUtil.
  18480. (createChokeMessage): Use PeerMessageUtil.
  18481. (createUnchokeMessage): Use PeerMessageUtil.
  18482. (createInterestedMessage): Use PeerMessageUtil.
  18483. (createNotInterestedMessage): Use PeerMessageUtil.
  18484. (createBitfieldMessage): Use PeerMessageUtil.
  18485. (createKeepAliveMessage): Use PeerMessageUtil.
  18486. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  18487. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  18488. * src/PeerInteraction.h: New class.
  18489. * src/PeerInteraction.cc: New class.
  18490. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18491. Each peer message has its own class.
  18492. * src/PendingMessages.h: Removed.
  18493. * src/PendingMessages.cc: Removed. The sending process was moved to
  18494. each message class.
  18495. * src/RequestSlotMan.h: Removed.
  18496. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  18497. SendMessageQueue.
  18498. * src/RequestMessage.h: New class.
  18499. * src/RequestMessage.cc: New class.
  18500. * src/CancelMessage.h: New class.
  18501. * src/CancelMessage.cc: New class.
  18502. * src/BitfieldMessage.h: New class.
  18503. * src/BitfieldMessage.cc: New class.
  18504. * src/ChokeMessage.h: New class.
  18505. * src/ChokeMessage.cc: New class.
  18506. * src/KeepAliveMessage.h: New class.
  18507. * src/KeepAliveMessage.cc: New class.
  18508. * src/PortMessage.h: New class.
  18509. * src/UnchokeMessage.h: New class.
  18510. * src/UnchokeMessage.cc: New class.
  18511. * src/PieceMessage.h: New class.
  18512. * src/PieceMessage.cc: New class.
  18513. * src/HaveMessage.h: New class.
  18514. * src/HaveMessage.cc: New class.
  18515. * src/BitfieldMessage.h: New class.
  18516. * src/BitfieldMessage.cc: New class.
  18517. * src/NotInterestedMessage.h: New class.
  18518. * src/NotInterestedMessage.cc: New class.
  18519. * src/InterestedMessage.h: New class.
  18520. * src/InterestedMessage.cc: New class.
  18521. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  18522. (getSendMessageQueue): New function.
  18523. (setSendMessageQueue): New function.
  18524. * src/HandshakeMessage.cc: New class.
  18525. * src/PeerConnection.h (receiveMessage): Changed return value and
  18526. arguments.
  18527. (receiveHandshake): Changed return value and arguments.
  18528. * src/PeerConnection.cc (receiveMessage): Do not create message class
  18529. here.
  18530. (receiveHandshake): Do not create handshake class here.
  18531. * src/PeerInteractionCommand.h (peerConnection): Removed.
  18532. (piece): Removed.
  18533. (syncPiece): Removed.
  18534. (sendInterest): Removed.
  18535. (sendMessages): Removed.
  18536. (createRequestPendingMessage): Removed.
  18537. (checkPieceHash): Removed.
  18538. (erasePieceOnDisk): Removed.
  18539. (getNewPieceAndSendInterest): Removed.
  18540. (onGotNewPice): Removed.
  18541. (onGotWrongPiece): Removed.
  18542. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18543. Removed peerConnection, piece.
  18544. (~PeerInteractionCommand): Removed peerConnection.
  18545. (executeInternal): Use sendMessageQueue instead of peerConnection.
  18546. (syncPiece): Moved to SendMessageQueue.
  18547. (decideChoking): Removed PendingMessage.
  18548. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  18549. The action after receiving peer message was moved to each message
  18550. class.
  18551. (onGotNewPice): Moved to SendMessageQueue.
  18552. (onGotWrongPiece): Moved to SendMessageQueue.
  18553. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  18554. (sendInterest): Moved to SendMessageQueue.
  18555. (createRequestPendingMessage): Removed.
  18556. (sendMessages): Moved to SendMessageQueue.
  18557. (onAbort): Use SendMessageQueue::abortPiece()
  18558. (keepAlive): Use sendMessageQueue instead of peerConnection.
  18559. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  18560. (checkPieceHash): Moved to SendMessageQueue.
  18561. (erasePieceOnDisk): Moved to SendMessageQueue.
  18562. * src/PeerMessageUtil.h
  18563. (createBitfieldMessage): Removed.
  18564. (createHaveMessage): Changed return value and arguments.
  18565. (createBitfieldMessage): Changed return value and arguments.
  18566. (createRequestCancelMessage): Removed.
  18567. (createPieceMessage): Changed return value and arguments.
  18568. (getShortIntParam): New function.
  18569. (checkIndex): Changed arguments.
  18570. (checkBegin): Changed arguments.
  18571. (checkLength): Changed arguments.
  18572. (checkPieceOffset): Removed.
  18573. (checkRange): New function.
  18574. (checkBitfield): Changed arguments.
  18575. (createPeerMessage): Removed.
  18576. (checkIntegrity): Removed.
  18577. (createHandshakeMessage): Changed arguments.
  18578. (createChokeMessage): New function.
  18579. (createUnchokeMessage): New function.
  18580. (createInterestedMessage): New function.
  18581. (createNotInterestedMessage): New function.
  18582. (createRequestMessage): New function.
  18583. (createCancelMessage): New function.
  18584. (createPortMessage): New function.
  18585. * src/PeerMessageUtil.cc
  18586. (createBitfieldMessage): Removed.
  18587. (createHaveMessage): Changed return value and arguments.
  18588. (createBitfieldMessage): Changed return value and arguments.
  18589. (createRequestCancelMessage): Removed.
  18590. (createPieceMessage): Changed return value and arguments.
  18591. (getShortIntParam): New function.
  18592. (checkIndex): Changed arguments.
  18593. (checkBegin): Changed arguments.
  18594. (checkLength): Changed arguments.
  18595. (checkPieceOffset): Removed.
  18596. (checkRange): New function.
  18597. (checkBitfield): Changed arguments.
  18598. (createPeerMessage): Removed.
  18599. (checkIntegrity): Removed.
  18600. (createHandshakeMessage): Changed arguments.
  18601. (createChokeMessage): New function.
  18602. (createUnchokeMessage): New function.
  18603. (createInterestedMessage): New function.
  18604. (createNotInterestedMessage): New function.
  18605. (createRequestMessage): New function.
  18606. (createCancelMessage): New function.
  18607. (createPortMessage): New function.
  18608. * src/PeerMessage.h
  18609. (id): Removed.
  18610. (index): Removed.
  18611. (begin): Removed.
  18612. (length): Removed.
  18613. (bitfield): Removed.
  18614. (bitfieldLength): Removed.
  18615. (block): Removed.
  18616. (blockLength): Removed.
  18617. (inProgress): New variable.
  18618. (cuid): New variable.
  18619. (peer): New variable.
  18620. (sendMessageQueue): New variable.
  18621. (logger): New variable.
  18622. (setBitfield): Removed.
  18623. (getBitfield): Removed.
  18624. (setBlock): Removed.
  18625. (getBlock): Removed.
  18626. (getBitfieldLength): Removed.
  18627. (getBlockLength): Removed.
  18628. (isInProgress): New function.
  18629. (toString): Made pure virtual.
  18630. (check): New function.
  18631. (send): New function.
  18632. (receivedAction): New function.
  18633. (getId): Made pure virtual.
  18634. (setId): Removed.
  18635. (getIndex): Removed.
  18636. (setIndex): Removed.
  18637. (getBegin): Removed.
  18638. (setBegin): Removed.
  18639. (getLength): Removed.
  18640. (setLength): Removed.
  18641. (getCuid): New function.
  18642. (setCuid): New function.
  18643. (getPeer): New function.
  18644. (setPeer): New function.
  18645. (getSendMessageQueue): New function.
  18646. (setSendMessageQueue): New function.
  18647. (ID): Removed.
  18648. * src/PeerMessage.cc
  18649. (setBitfield): Removed.
  18650. (setBlock): Removed.
  18651. (toString): Removed.
  18652. * src/TorrentMan.h
  18653. (getPieceLength): New function.
  18654. (getPieceLength): New function.
  18655. * src/SendMessageQueue.h
  18656. (REQUEST_TIME_OUT): New definition.
  18657. (RequestSlots): New definition.
  18658. (MessageQueue): New definition.
  18659. (requestSlotMan): Removed.
  18660. (pendingMessages): Removed.
  18661. (requestSlots): New variable.
  18662. (messageQueue): New variable.
  18663. (torrentMan): New variable.
  18664. (peerConnection): New variable.
  18665. (peer): New variable.
  18666. (piece): New variable.
  18667. (getNewPieceAndSendInterest): New function.
  18668. (createPeerMessage): New function.
  18669. (createHandshakeMessage): New function.
  18670. (send): Made private.
  18671. (setPeerMessageCommonProperty): New function.
  18672. (deleteAllRequestSlot): New function.
  18673. (deleteRequestMessageInQueue): New function.
  18674. (cancelAllRequest): Made private.
  18675. (cancelAllRequest): Made private.
  18676. (countRequestSlot): Made private.
  18677. (addPendingMessage): Removed.
  18678. (deletePendingPieceMessage): Removed.
  18679. (deletePendingRequestMessage): Removed.
  18680. (addMessage): New function.
  18681. (deletePieceMessageInQueue): New function.
  18682. (deleteTimeoutRequestSlot): Changed argument.
  18683. (deleteCompletedRequestSlot): Changed argument.
  18684. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  18685. (getCorrespondingRequestSlot): New function.
  18686. (countPendingMessage): Removed.
  18687. (countMessageInQueue): New function.
  18688. (getTorrentMan): New function.
  18689. (getPeerConnection): New function.
  18690. (hasDownloadPiece): New function.
  18691. (getDownloadPiece): New function.
  18692. (setDownloadPiece): New function.
  18693. (syncPiece): New function.
  18694. (sendMessages): New function.
  18695. (sendNow): New function.
  18696. (trySendNow): New function.
  18697. (abortPiece): New function.
  18698. (sendHandshake): New function.
  18699. (receiveMessage): New function.
  18700. (receiveHandshake): New function.
  18701. (createRequestMessage): New function.
  18702. (createCancelMessage): New function.
  18703. (createPieceMessage): New function.
  18704. (createHaveMessage): New function.
  18705. (createChokeMessage): New function.
  18706. (createUnchokeMessage): New function.
  18707. (createInterestedMessage): New function.
  18708. (createNotInterestedMessage): New function.
  18709. (createBitfieldMessage): New function.
  18710. (createKeepAliveMessage): New function.
  18711. * src/SendMessageQueue.cc
  18712. (SendMessageQueue): Removed requestSlotMan.
  18713. Instantiated peerConnection here.
  18714. (~SendMessageQueue): Removed requestSlotMan.
  18715. Added deletion of peerConnection and the contents of messageQueue.
  18716. (send): Updated according to the change of messageQueue.
  18717. (addPendingMessage): Renamed to addMessage.
  18718. (addMessage): New function.
  18719. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  18720. (deletePieceMessageInQueue): New function.
  18721. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  18722. (deleteRequestMessageInQueue): New function.
  18723. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  18724. here.
  18725. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  18726. (...) was moved here.
  18727. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  18728. moved here.
  18729. (deleteCompletedRequestSlot):
  18730. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  18731. (getCorrespondingRequestSlot):
  18732. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  18733. And renamed to getCorrespondingRequestSlot, correcting a typo.
  18734. (countPendingMessage): Renamed to countMessageInQueue.
  18735. (countMessageInQueue): New function.
  18736. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  18737. (receiveHandshake): New function.
  18738. (createHandshakeMessage): New function.
  18739. (receiveMessage): New function.
  18740. (createPeerMessage): New function.
  18741. (syncPiece): New function.
  18742. (getNewPieceAndSendInterest): New function.
  18743. (sendMessages): New function.
  18744. (sendNow): New function.
  18745. (trySendNow): New function.
  18746. (sendHandshake): New function.
  18747. (abortPiece): New function.
  18748. (getDownloadPiece): New function.
  18749. (getPeerMessageCommonProperty): New function.
  18750. (createRequestMessage): New function.
  18751. (createCancelMessage): New function.
  18752. (createPieceMessage): New function.
  18753. (createHaveMessage): New function.
  18754. (createChokeMessage): New function.
  18755. (createUnchokeMessage): New function.
  18756. (createInterestedMessage): New function.
  18757. (createNotInterestedMessage): New function.
  18758. (createBitfieldMessage): New function.
  18759. (createKeepAliveMessage): New function.
  18760. To add simple Content-Disposition support:
  18761. * src/HttpResponseCommand.h (determinFilename): New function.
  18762. * src/HttpResponseCommand.cc (executeInternal):
  18763. Use determinFilename(headers) instead of req->getFile() when comparing
  18764. filename.
  18765. (determinFilename): New function.
  18766. (handleDefaultEncoding): Use determinFilename(headers) instead of
  18767. req->getFile().
  18768. (handleOtherEncoding): Use determinFilename(headers) instead of
  18769. req->getFile().
  18770. * src/Util.h (getContentDispositionFilename): New function.
  18771. * src/Util.cc (getContentDispositionFilename): New function.
  18772. * src/LogFactory.h (release): New function.
  18773. * src/LogFactory.cc (release): New function.
  18774. To fix a bug that causes out-of-bound exception when HTTP status
  18775. line is wrong:
  18776. * src/HttpConnection.cc (receiveResponse): Added a check for header
  18777. size.
  18778. * src/common.h (Deleter): New class.
  18779. * src/SegmentMan.cc
  18780. (~SegmentMan): Added deletion of splitter and diskWriter.
  18781. * src/DownloadEngine.h
  18782. (Commands): Use deque.
  18783. (clearQueue): New function.
  18784. * src/DownloadEngine.cc
  18785. (~DownloadEngine): Added deletion of segmentMan.
  18786. (cleanQueue): New function.
  18787. * src/TorrentDownloadEngine.h
  18788. (TorrentDownloadEngine): The implementation was moved to
  18789. TorrentDownloadEngine.cc.
  18790. (~TorrentDownloadEngine): The implementation was moved to
  18791. TorrentDownloadEngine.cc.
  18792. * src/TorrentDownloadEngine.cc
  18793. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18794. * src/main.cc
  18795. (clearRequest): Removed.
  18796. (handler): Added deletion of e.
  18797. (torrentHandler): Added deletion of te.
  18798. (main): Do not share splitter.
  18799. Use Deleter instead of clearRequest.
  18800. Deletion of classes were updated.
  18801. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18802. * src/main.cc (main): Fixed typo.
  18803. * src/message.h: Fixed typo.
  18804. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18805. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18806. To add --select-file command-line option:
  18807. * src/Util.cc
  18808. (unfoldRange): New function.
  18809. (getNum): New function.
  18810. (unfoldSubRange): New function
  18811. * src/main.cc
  18812. (showUsage): Added help message.
  18813. (main): Added --select-file command-line option. Updated the layout of
  18814. file listing.
  18815. * src/common.h
  18816. (Integers): New definition.
  18817. * src/SocketCore.cc
  18818. (writeData): Removed timeout argument.
  18819. (readData): Removed timeout argument.
  18820. (peekData): Removed timeout argument.
  18821. * src/Socket.cc
  18822. (writeData): Removed timeout argument.
  18823. (readData): Removed timeout argument.
  18824. (peekData): Removed timeout argument.
  18825. * Release 0.4.1
  18826. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18827. To deploy upload rate based choking algorithm:
  18828. * src/PeerInteractionCommand.cc
  18829. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18830. peer currently used.
  18831. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18832. download completes. Simplified.
  18833. (receiveMessage): Updated.
  18834. * src/TorrentMan.h
  18835. (activePeers): New variable.
  18836. (addActivePeer): New function.
  18837. (getActivePeers): New function.
  18838. (deleteActivePeer): New function.
  18839. * src/TorrentMan.cc
  18840. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18841. * src/PeerAbstractCommand.cc
  18842. (onAbort): Use peer->resetStatus().
  18843. * src/main.cc
  18844. (PeerChokeCommand.h): Included.
  18845. (main): Added the instance of ChokingCommand to the command queue.
  18846. * src/Peer.h
  18847. (amChoking): Renamed from amChocking
  18848. (chokingRequired): New variable.
  18849. (optUnchoking): New variable.
  18850. (deltaUpload): New variable.
  18851. (deltaDownload): New variable.
  18852. (addDeltaUpload): New function.
  18853. (resetDeltaUpload): New function.
  18854. (addDeltaDownload): New function.
  18855. (resetDeltaDownload): New function.
  18856. (addPeerUpload): Added a call to addDeltaUpload.
  18857. (addPeerDownload): Added a call to addDeltaDownload.
  18858. * src/Peer.cc
  18859. (shouldBeChoking): Renamed from shouldChoke.
  18860. (resetStatus): New function.
  18861. * src/PeerChokeCommand.h: New class.
  18862. * src/PeerChokeCommand.cc: New class.
  18863. To add lazy upload speed limiter:
  18864. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18865. statistics calculation to TorrentDownloadEngine.
  18866. * src/TorrentConsoleDownloadEngine.cc
  18867. (sendStatistics): Renamed from printStatistics.
  18868. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18869. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18870. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18871. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18872. calculation.
  18873. (sendStatistics): New function as pure virtual function.
  18874. (getUploadSpeed): New function.
  18875. * src/TorrentDownloadEngine.cc
  18876. (initStatistics): New function.
  18877. (calculateSpeed): New function.
  18878. (calculateStatistics): New function.
  18879. * src/SendMessageQueue.h
  18880. (uploadLength): New variable.
  18881. (send): Added an argument.
  18882. (setUploadLimit): New function.
  18883. (getUploadLimit): New function.
  18884. * src/SendMessageQueue.cc
  18885. (send): Added upload speed limiter.
  18886. * src/prefs.h
  18887. (PREF_UPLOAD_LIMIT): New definition.
  18888. * src/PeerInteractionCommand.cc
  18889. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18890. * src/main.cc
  18891. (main): Added --upload-limit option
  18892. For bug fixes:
  18893. * src/main.cc
  18894. (showUsage): Corrected --listen-port help
  18895. Other changes:
  18896. * src/TorrentMan.cc
  18897. (getPeer): Return nullPeer if connection is grather than
  18898. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18899. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18900. To add some useful information to the exception message:
  18901. * src/SocketCore.cc : Updated messages.
  18902. * src/SegmentMan.cc :
  18903. * src/TorrentMan.cc : Updated messages.
  18904. * src/MultiDiskWriter.cc : Updated messages.
  18905. * src/Util.cc : Updated messages.
  18906. * src/AbstractDiskWriter.cc : Updated messages.
  18907. * src/PreAllocationDiskWriter.cc : Updated messages.
  18908. * src/message.cc : Added new messages. Updated some messages.
  18909. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18910. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18911. Updated threshold from 30 to 15.
  18912. * src/AbstractDiskWriter.h (filename): New variable.
  18913. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18914. (createFile): Assigned filename.
  18915. * src/main.cc: Updated the help message for http-auth-scheme.
  18916. * Release 0.4.0
  18917. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18918. To add TrackerUpdateCommand with which replaces
  18919. CompactTrackerResponseProcessor:
  18920. * src/TrackerWatcherCommand.h (req): Removed.
  18921. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18922. if the number of peer connections are less than 30.
  18923. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18924. * src/SegmentMan.h (diskWriter): New function.
  18925. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18926. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18927. (main): Use TrackerUpdateCommand.
  18928. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18929. (req): New variable.
  18930. (setTrackerResponseProcessor): Removed.
  18931. (getTrackerResponseProcessor): Removed.
  18932. (processTrackerResponse): Removed.
  18933. * src/DownloadEngine.h (diskWriter): Removed.
  18934. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18935. to torrentMan->processTrackerResponse().
  18936. To add Util::expandBuffer:
  18937. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18938. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18939. * src/Util.h (expandBuffer): New function.
  18940. To fix the bug that causes segmentation fault when "-l ." is specified
  18941. in command-line option:
  18942. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18943. (openFile): New function.
  18944. (closeFile): New function.
  18945. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18946. (~SimpleLogger): Call closeFile();
  18947. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18948. * src/main.cc (main): Added a check to see logger is configured
  18949. properly.
  18950. To enable HTTP authentication without specifying "--http-auth-scheme"
  18951. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18952. * src/HttpConnection.cc (createRequest): Send Authorization header
  18953. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18954. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18955. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18956. * src/Peer.cc (shouldChoke): Updated algorithm.
  18957. * src/message.h (EX_AUTH_FAILED): New definition.
  18958. (EX_FILE_OPEN): New definition.
  18959. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18960. if status == 401.
  18961. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18962. if req->isTorrent == true.
  18963. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18964. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18965. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18966. (createFile): Updated message.
  18967. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18968. To add a readout of estimated remaining time to normal HTTP/FTP
  18969. downloads:
  18970. * src/ConsoleDownloadEngine.h (startup): New variable.
  18971. (startupLength): New variable.
  18972. (isStartupLengthSet): New variable.
  18973. (avgSpeed): New variable.
  18974. (eta): New variable.
  18975. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18976. estimated remaining time.
  18977. (initStatistics): Initialized newly added variables.
  18978. (calculateStatistics): Calculate average speed and estimated remaining
  18979. time.
  18980. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18981. * src/TrackerDownloadCommand.h: Removed.
  18982. * src/TrackerDownloadCommand.cc: Removed.
  18983. * src/TrackerInitCommand.h: Removed.
  18984. * src/TrackerInitCommand.cc: Removed.
  18985. * src/TrackerUpdateCommand.h: Removed.
  18986. * src/TrackerUpdateCommand.cc: Removed.
  18987. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18988. url written in TrackerInitCommand was moved here. Do not create
  18989. tracker request command if torrentMan->trackers != 0.
  18990. * src/CompactTrackerResponseProcessor.h: New class.
  18991. * src/CompactTrackerResponseProcessor.cc: New class.
  18992. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18993. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18994. Decoupled TorrentDownloadEngine from this.
  18995. * src/SegmentMan.h (init): New function.
  18996. * src/SegmentMan.cc (init): New function.
  18997. * src/TorrentMan.h (responseProcessor): New variable.
  18998. (trackers): New variable.
  18999. (setTrackerResponseProcessor): New function.
  19000. (getTrackerResponseProcessor): New function.
  19001. (processTrackerResponse): New function.
  19002. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  19003. (processTrackerResponse): New function.
  19004. * src/main.cc (main): Use ByteArrayDiskWriter and
  19005. CompactTrackerResponseProcessor.
  19006. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  19007. processTrackerResponse().
  19008. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  19009. readout.
  19010. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  19011. which indicates download has completed.
  19012. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  19013. (closeFile): fd >= 0, not fd > 0
  19014. * src/main.cc (main): Added short cut for show-files.
  19015. Added short cut for torrent-file.
  19016. Added new command-line option listen-port.
  19017. Updated i18n messages.
  19018. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19019. To add LogFactory which creates singleton logger:
  19020. * src/LogFactory.h: New class.
  19021. * src/LogFactory.cc: New class.
  19022. * src/Command.h (logger): New variable.
  19023. (Constructor): Use LogFactory.
  19024. * src/AbstractCommand.cc: Use Command::logger
  19025. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  19026. Use LogFactory.
  19027. * src/SegmentSplitter.h : Made logger protected.
  19028. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  19029. * src/SegmentMan.cc (Constructor): Use LogFactory.
  19030. * src/DownloadEngine.h : Made logger protected.
  19031. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  19032. * src/PeerInteractionCommand.cc : Use Command::logger.
  19033. * src/HttpResponseCommand.cc : Use Command::logger.
  19034. * src/SegmentMan.h : Made logger private.
  19035. * src/TorrentMan.h : Made logger private.
  19036. * src/TorrentMan.cc : Use LogFactory.
  19037. * src/FtpNegotiateCommand.cc : Use Command::logger.
  19038. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  19039. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  19040. Use LogFactory.
  19041. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  19042. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  19043. Use LogFactory.
  19044. * src/DownloadCommand.cc : Use Command::logger.
  19045. * src/PeerAbstractCommand.cc : Use Command::logger.
  19046. * src/PeerListenCommand.cc : Use Command::logger.
  19047. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  19048. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  19049. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  19050. * src/TrackerWatcherCommand.cc : Use Command::logger.
  19051. * src/TrackerUpdateCommand.cc : Use Command::logger.
  19052. * src/TrackerDownloadCommand.cc : Use Command::logger.
  19053. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  19054. Use LogFactory.
  19055. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  19056. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  19057. Use LogFactory.
  19058. * src/main.cc (main): Use LogFactory.
  19059. * src/DiskAdaptor.h (logger): New variable.
  19060. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  19061. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  19062. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19063. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  19064. parameter to a tracker request.
  19065. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  19066. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  19067. * src/main.cc (setSignalHander): New function.
  19068. (main): Added a handler for SIGTERM.
  19069. (handler): Updated message.
  19070. (torrentHandler): Updated message.
  19071. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19072. * src/TorrentConsoleDownloadEngine.cc
  19073. (onPartialDownloadingCompletes): Renamed as
  19074. onSelectiveDownloadingCompletes.
  19075. (onSelectiveDownloadingCompletes): Updated message.
  19076. To add DiskAdaptor which abstract DiskWriter family:
  19077. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  19078. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  19079. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  19080. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  19081. MultiDiskAdaptor.h.
  19082. (readFileEntry): Changed its arguments.
  19083. (setup): setupDiskWriter is merged into this function.
  19084. (setupDiskWriter): Removed.
  19085. (setFileFilter): New function.
  19086. (readFileEntryFromMetaInfoFile): Updated according to the changes
  19087. made in readFileEntry.
  19088. (getFilePath): Removed.
  19089. (getTempFilePath): Removed.
  19090. (getSegmentFilePath): Updated due to the removal of getFilePath.
  19091. (fixFilename): Removed.
  19092. (copySingleFile): Removed.
  19093. (splitMultiFile): Removed.
  19094. (deleteTempFile): Removed.
  19095. (setFileEntriesToDownload): Removed.
  19096. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  19097. (isSelectiveDownloadingMode): New function.
  19098. (setAllMultiFileRequestedState): Removed.
  19099. (finishPartialDownloadingMode): Renamed as
  19100. finishSelectiveDownloadingMode.
  19101. (finishSelectiveDownloadingMode): New function.
  19102. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  19103. (getSelectedTotalLength): New function.
  19104. (onDownloadComplete): Use diskAdaptor.
  19105. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  19106. (Range): Removed.
  19107. (setMultiFileEntries): Renamed as setFileEntries.
  19108. (setFileEntries): New function.
  19109. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  19110. (pieceLength): New variable.
  19111. * src/main.cc (printDownloadCompeleteMessage): New function.
  19112. (torrentHandler): Use diskAdaptor instead of diskWriter.
  19113. (main): Renamed torrent-show-files to show-files.
  19114. Rewritten file contents listing.
  19115. * src/TorrentMan.h (FileEntry): Removed.
  19116. (multiFileTopDir): Removed.
  19117. (multiFileEntries): Removed.
  19118. (diskWriter): Removed.
  19119. (diskAdaptor): New variable.
  19120. * src/DefaultDiskWriter.h (totalLength): New variable.
  19121. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  19122. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  19123. diskWriter.
  19124. * src/TorrentConsoleDownloadEngine.h
  19125. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  19126. (partialTotalLength): Renamed as selectedTotalLength.
  19127. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  19128. openExistingFile, otherwise call initAndOpenFile.
  19129. (closeFile): fd > 0, not fd != 0.
  19130. * src/DirectDiskAdaptor.h: New class.
  19131. * src/DirectDiskAdaptor.cc: New class.
  19132. * src/MultiDiskAdaptor.h: New class.
  19133. * src/MultiDiskAdaptor.cc: New class.
  19134. * src/CopyDiskAdaptor.h: New class.
  19135. * src/CopyDiskAdaptor.cc: New class.
  19136. * src/DiskAdaptor.h: New class.
  19137. * src/DiskAdaptor.cc: New class.
  19138. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  19139. (PREF_SHOW_FILES): New definition.
  19140. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19141. To add the ability to download multi torrent into respective files
  19142. directly:
  19143. * src/DiskWriter.h (openFile): New function.
  19144. (seek): Removed.
  19145. * src/MultiDiskWriter.h: New class.
  19146. * src/MultiDiskWriter.cc: New class.
  19147. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  19148. protected.
  19149. (openFile): New function.
  19150. * src/AbstractDiskWriter.cc (openFile): New function.
  19151. * src/prefs.h (V_FALSE): New definition.
  19152. (PREF_DIRECT_FILE_MAPPING): New definition.
  19153. * src/TorrentMan.h (setupDiskWriter): New function.
  19154. (setAllMultiFileRequestedState): New function.
  19155. (onDownloadComplete): New function.
  19156. * src/TorrentMan.cc : Included MultiDiskWriter.h
  19157. (setupDiskWriter): New function.
  19158. (getFilePath): Updated.
  19159. (getTempFilePath): Updated.
  19160. (getSegmentFilePath): Updated.
  19161. (fixFilename): Updated.
  19162. (deleteTempFile): Updated.
  19163. (setAllMultiFileRequestedState): New function.
  19164. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  19165. (finishPartialDownloadingMode): Reset requested flags.
  19166. (onDownloadComplete): New function.
  19167. * src/main.cc: Added --direct-file-mapping option.
  19168. Use TorrentMan::setupDiskWriter().
  19169. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  19170. onDownloadComplete().
  19171. To fix ETA bug:
  19172. * src/Util.h (difftvsec): New function.
  19173. * src/Util.cc (difftvsec): New function.
  19174. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  19175. type of "elapsed" instead of long long int.
  19176. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  19177. The updates of statistics takes place every 1 seconds.
  19178. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  19179. (calculateSpeed): Changed its argument signature.
  19180. * src/PeerMessage.cc (toString): Fixed message.
  19181. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19182. To print ETA:
  19183. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  19184. completion handling when dealing with
  19185. TorrentMan::isPartialDownloadingMode() == true.
  19186. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  19187. New function.
  19188. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  19189. (sessionDownloadLength): New variable.
  19190. (avgSpeed): New variable.
  19191. (eta): New variable.
  19192. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  19193. new variables: eta, avgSpeed, startup.
  19194. (calculateSpeed): Calculate average speed and ETA.
  19195. (printStatistics): Added ETA.
  19196. * src/Util.h (secfmt): New function.
  19197. * src/Util.cc (secfmt): New function.
  19198. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19199. To detect "keep alive" flooding:
  19200. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  19201. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  19202. variable: keepAliveCount.
  19203. (detectMessageFlooding): Added "keep alive" flooding detection.
  19204. (receiveMessage): Increase keepAliveCount when "keep alive" message
  19205. received.
  19206. To add the ability to download only specified files in multi-file
  19207. torrent:
  19208. * src/BitfieldMan.h (filterBitfield): New variable.
  19209. (filterEnabled): New variable.
  19210. (setFilterBit): New function.
  19211. (enableFilter): New function.
  19212. (disableFilter): New function.
  19213. (isFilterEnabled): New function.
  19214. (getFilteredTotalLength): New function.
  19215. (getCompletedLength): New function.
  19216. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  19217. filterBitfield, filterEnabled.
  19218. (CopyConstructor): Added filterBitfield and filterEnabled.
  19219. (operator==): Added filterBitfield and filterEnabled.
  19220. (Destructor): Added filterBitfield.
  19221. (getMissingIndex): Use filterBitfield.
  19222. (getMissingUnusedIndex): Use filterBitfield.
  19223. (getFirstMissingUnusedIndex): Use filterBitfield.
  19224. (getFirstMissingUnusedIndex): Use filterBitfield.
  19225. (getAllMissingIndexes): Use filterBitfield.
  19226. (countMissingBlock): Use filterBitfield.
  19227. (countBlock): Use filterBitfield.
  19228. (setBitInternal): Added new argument on.
  19229. (setUseBit): Use setBitInternal.
  19230. (unsetUseBit): Use setBitInternal.
  19231. (setBit): Use setBitInternal.
  19232. (unsetBit): Use setBitInternal.
  19233. (isAllBitSet): Use filterBitfield.
  19234. (setFilterBit): New function.
  19235. (addFilter): New function.
  19236. (enableFilter): New function.
  19237. (disableFilter): New function.
  19238. (clearFilter): New function.
  19239. (isFilterEnabled): New function.
  19240. (getFilteredTotalLength): New function.
  19241. (getCompletedLength): New function.
  19242. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  19243. Initalized newly added variables.
  19244. [FileEntry](offset): New variable.
  19245. [FileEntry](extracted): New variable.
  19246. [FileEntry](requested): New variable.
  19247. (readFileEntry): New function.
  19248. (option): New variable.
  19249. (splitMultiFile): Removed const qualifier.
  19250. (fixFilename): Removed const qualifier.
  19251. (readFileEntryFromMetaInfoFile): New function.
  19252. (finishPartialDownloadingMode): New function.
  19253. (isPartialDownloadingMode): New function.
  19254. (setFileEntriesToDownload): New function.
  19255. (getCompletedLength): New function.
  19256. (getPartialTotalLength): New function.
  19257. * src/TorrentMan.cc (readFileEntry): New function.
  19258. (setup): Use readFileEntry. If no-preallocation option is specified,
  19259. use DefaultDiskWriter.
  19260. (readFileEntryFromMetaInfoFile): New function.
  19261. (fixFilename): Removed const qualifier.
  19262. (splitMultiFile): Removed const qualifier.
  19263. (setFileEntriesToDownload): New function.
  19264. (isPartialDownloadingMode): New function.
  19265. (finishPartialDownloadingMode): New function.
  19266. (getCompletedLength): New function.
  19267. (getPartialTotalLength): New function.
  19268. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  19269. New variable.
  19270. (partialTotalLength): New variable.
  19271. (downloadLength): New variable.
  19272. (totalLength): New variable.
  19273. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  19274. Added log.
  19275. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  19276. partialTotalLength, downloadLength, totalLength.
  19277. (calculate): Calculate downloadLength and totalLength.
  19278. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  19279. * src/main.cc (addCommand): Changed argument signature.
  19280. (main): Added new variable: args. Added new option "torrent-show-files"
  19281. "no-preallocation". Usage is not updated yet.
  19282. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19283. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  19284. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19285. Attempt to add the ability to listing file entries in a .torrent file.
  19286. This feature is not yet complete.
  19287. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  19288. * src/TorrentMan.cc (getMultiFileEntries): New function.
  19289. (getName): New function.
  19290. * src/TorrentMan.h (getMultiFileEntries): New function.
  19291. (getName): New function.
  19292. * src/main.cc (main): Use above 2 funtion.
  19293. * Release 0.3.2
  19294. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19295. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  19296. (detectMessageFlooding): Updated threshold value.
  19297. (checkLongTimePeerChoking): Updated timeout value.
  19298. (getNewPieceAndSendInterest): Added debug log.
  19299. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  19300. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  19301. (getPeer): Updated.
  19302. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  19303. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  19304. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  19305. is localhost.
  19306. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  19307. * src/PendingMessage.cc (processMessage): Not to send piece message
  19308. if peer is not interested in the pieces localhost has.
  19309. * src/Peer.cc (shouldChoke): Updated.
  19310. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  19311. * src/Util.cc (isPowerOf): New function.
  19312. * src/Util.h (isPowerOf): New function.
  19313. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  19314. whether or not it is power of 2.
  19315. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19316. Added new class SendMessageQueue that includes PendingMessages and
  19317. RequestSlotMan.
  19318. * src/SendMessageQueue.h: New class.
  19319. * src/SendMessageQueue.cc: New class.
  19320. * src/PendingMessage.h: Added new member variable blockIndex and its
  19321. accessors.
  19322. (createRequestMessage): Updated.
  19323. * src/PendingMessage.cc (createRequestMessage): Updated.
  19324. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  19325. SendMessageQueue.
  19326. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  19327. (receiveMessage): Updated with SendMessageQueue.
  19328. (deletePendingPieceMessage): Removed.
  19329. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  19330. (sendInterest): Updated with SendMessageQueue.
  19331. (createRequestPendingMessage): Updated with SendMessageQueue.
  19332. (sendMessages): Updated with SendMessageQueue.
  19333. (onAbort): Updated with SendMessageQueue.
  19334. (keepAlive): Updated with SendMessageQueue.
  19335. (beforeSocketCheck): Updated SendMessageQueue.
  19336. * src/PeerInteractionCommand (sendMessages): Shuffle
  19337. missingBLockIndexes before using it.
  19338. Added its own timeout for peer connection.
  19339. * src/PeerAbstractCommand.h: Added member variable timeout and its
  19340. setter.
  19341. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  19342. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  19343. Added setTimeout() call.
  19344. (executeInternal): Added setTimeout() call.
  19345. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  19346. Added timeout.
  19347. (isTimeoutDetected): Updated.
  19348. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  19349. option.
  19350. Added *simple* message flooding checker.
  19351. * src/PeerInteractionCommand.cc (executeInternal):
  19352. Added detectMessageFlooding() call.
  19353. (detectMessageFlooding): New function.
  19354. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  19355. (beforeSocketCheck): Added detectMessageFlooding() call.
  19356. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  19357. chokeUnchokeCount, haveCount, detectMessageFlooding().
  19358. Removed deletePendingPieceMessage(), getRequestSlot(),
  19359. deleteRequestSlot(), deleteAllRequestSlot().
  19360. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  19361. Added checkLongTimePeerChoking() call.
  19362. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  19363. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  19364. if duplicate == false.
  19365. The parameter "uploaded" and "downloaded" in the tracker request are
  19366. the size since the client sent the "started" event to the tracker.
  19367. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  19368. uploaded size to preDownloadedSize, preUploadedSize respectively.
  19369. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  19370. getSessionDownloadedSize(), getSessionUploadedSize().
  19371. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  19372. getSessionUploadedSize() instead of getDownloadedSize(),
  19373. getUploadedSize().
  19374. * src/PendingMessage.cc (processMessage): Do not send request message
  19375. if the peer is choking the client.
  19376. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  19377. less than interval.
  19378. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19379. * configure.in: Added gnutls support. Added several CPP macros.
  19380. * m4/openssl.m4: Added.
  19381. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  19382. readData(), peekData(). Added gnutls support.
  19383. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  19384. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  19385. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  19386. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  19387. Instead, added a check for whether setup method has executed
  19388. successfully.
  19389. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  19390. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  19391. * src/Makefile.am: Updated.
  19392. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  19393. using whether OpenSSL or gcrypt, depending on the result of configure
  19394. script.
  19395. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  19396. messageDigest.h.
  19397. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  19398. * src/PeerListenCommand.cc: Added log about port binded successfully.
  19399. Fixed memory leak.
  19400. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  19401. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  19402. Removed instantiation of TrackerInitCommand. Instead,
  19403. TrackerWatcherCommand is instantiated and pushed to the command queue.
  19404. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  19405. ENABLE_SSL.
  19406. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  19407. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  19408. If a piece is already acquired by another command, delete the request
  19409. slots for the piece.
  19410. * src/TrackerUpdateCommand.cc (execute):
  19411. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  19412. Added a check whether peer list is null.
  19413. Fixed the bug that causes sending completed event to the tracker
  19414. several times.
  19415. * src/TrackerInitCommand.cc (execute):
  19416. Fixed the bug that causes sending completed event to the tracker
  19417. several times.
  19418. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  19419. by using messageDigest.h.
  19420. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19421. * PeerConnection.cc: Replaced log message "keep-alive" with
  19422. "keep alive".
  19423. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  19424. localhost long time.
  19425. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  19426. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  19427. at most 100 failure entry from the list. If with duplicate = false,
  19428. MAX_PEER_LIST is not checked.
  19429. * PeerListenCommand.cc: Fixed the argument order of log message.
  19430. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19431. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  19432. Added warn().
  19433. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  19434. Implemented warn().
  19435. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  19436. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19437. * Request.h: Added AFTER_COMPLETED event.
  19438. * TorrentDownloadEngine.cc: Prints "Download complete" message
  19439. instead of downloaded size and progress(%) after download completes.
  19440. * PeerInteractionCommand.cc: After download completes, sends unchoke
  19441. message to the peer if it is interested in what localhost has
  19442. downloaded.
  19443. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  19444. destination instead of just renaming it.
  19445. * TorrentMan.cc: Added deleteTempFile().
  19446. * PeerAbstractCommand.cc: do not stop execution after download
  19447. completes. This makes localhost a seeder.
  19448. * Util.{h,cc}: Added fileCopy().
  19449. * PeerListenCommand.cc: do not stop execution after download completes.
  19450. This makes localhost a seeder.
  19451. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  19452. Added TorrentMan::deleteTempFile() to torrentHandler.
  19453. Initialized the variable dir as ".".
  19454. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  19455. Deleted renameSingleFile().
  19456. Added copySingleFile(), deleteTempFile().
  19457. * DownloadEngine.h: Added virtual function afterEachIteration().
  19458. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  19459. in onEndOfRun() to afterEachIteration().
  19460. In onEndOfRun(), changed if condition to check whether filenameFixed is
  19461. true.
  19462. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  19463. In rangedFileCopy(), added try-catch block to properly close file
  19464. descriptors.
  19465. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  19466. Added afterEachIteration(), isFilenameFixed().
  19467. * Peer.cc: Changed choking strategy.
  19468. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  19469. * TrackerInitCommand.cc: Send completed event only once.
  19470. * DownloadEngine.cc: Added a call to afterEachIteration().
  19471. * TrackerUpdateCommand.cc: Do not stop execution after download
  19472. completes.
  19473. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  19474. connect the peers at most MAX_PEER_UPDATE when a peer list is
  19475. received from a tracker.
  19476. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  19477. Decreased the number of failure peers to delete to 0(just comment out
  19478. the line).
  19479. * Release 0.3.1
  19480. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19481. * PeerInteractionCommand.cc: added a call to
  19482. TorrentMan::unadvertisePiece in Destructor.
  19483. * PeerInteractionCommand.cc: make have message sent immediately
  19484. if the size of pending message queue is zero.
  19485. * TorrentMan.cc: set the maximum size of peer list to 250.
  19486. * TorrentMan.h: changed the container type of Peers and UsedPieces
  19487. to deque.
  19488. * Util.cc: fixed rangedFileCopy.
  19489. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  19490. to Constructor. Also, moved digest cleanup to Destructor.
  19491. * MetaFileUtil.cc: fixed memory leak
  19492. * replaced std::vector with std::deque.
  19493. * AbstractCommand.cc: casted timeout value to long long int.
  19494. * ChunkedEncoding.cc: fixed memory leak.
  19495. * PeerInteractionCommand.cc: casted timeout value to long long int.
  19496. * SleepCommand.cc: casted timeout value to long long int.
  19497. * Data.cc: fixed memory leak.
  19498. * Data.cc: fixed toLLInt().
  19499. * BitfieldMan.cc: fixed memory leak.
  19500. * TorrentMan.cc: initialized storeDir to ".".
  19501. * TorrentMan.cc: fixed memory leak.
  19502. * TorrentMan.cc: corrected file paths of splitted files.
  19503. * PeerAbstractCommand.cc: casted timeout to long long int.
  19504. * main.cc: added delete(req) and delete(te->diskWriter).
  19505. * RequestSlot.cc: casted timeout value to long long int.
  19506. * Request.cc: fixed memory leak.
  19507. * PendingMessage.cc: make HAVE messages sent only when peer does not
  19508. have the piece.
  19509. * Peer.{h,cc}: added hasPiece(int index).
  19510. * main.cc: corrected addCommand.
  19511. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19512. * BitTorrent protocol support added.
  19513. * Release 0.3.0
  19514. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19515. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  19516. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19517. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  19518. decoding did not work properly.
  19519. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19520. * DownloadEngine.h: included sys/time.h
  19521. * DownloadEngine.cc: remove sys/time.h
  19522. * Makefile.am (SUBDIRS): Add intl.
  19523. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  19524. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19525. * main.cc: correct help message for --http-auth-scheme.
  19526. * main.cc: changed e-mail address for bug reports.
  19527. * ja.po: added japanese translation.
  19528. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19529. * SimpleLogger.cc: flush log file instead of stdout.
  19530. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19531. * main.cc: Fixed command-line option: max-tries
  19532. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  19533. does not equal to seg.sp.
  19534. * DownloadCommand.cc: If EOF is got from the server and the total size
  19535. of file is not zero, then throw DlRetryEx.
  19536. * main.cc: Set the minium value of min-segment-size to 1024.
  19537. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  19538. fails because of a regression since 0.2.0 release.
  19539. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19540. * HttpConnection.cc:
  19541. * common.h: defined the user agent name as macro
  19542. * DownloadEngine.{h, cc}:
  19543. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  19544. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  19545. * main.cc: Download complete/abort message is now generated by main.
  19546. * Makefile.am (SUBDIRS): Add m4.
  19547. (ACLOCAL_AMFLAGS): New variable.
  19548. (EXTRA_DIST): New variable.
  19549. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  19550. * gettext: added gettext functionality
  19551. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19552. * AbstractCommand.cc:
  19553. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  19554. unregister its cuid from SegmentMan.
  19555. * DownloadEngine.cc: .aria2 file was written when a downloading
  19556. failed with errors.
  19557. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  19558. Added "User-Agent" header to CONNECT proxy request.
  19559. Fixed "Proxy-Authorization" header. Now proxy authorization works
  19560. properly.
  19561. * Logger.h:
  19562. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  19563. * ChunkedEncoding.cc: Added #include directive for strings.h
  19564. * Release 0.2.1
  19565. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19566. * Util.{h,cc}: added startsWith().
  19567. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  19568. Util::endsWith().
  19569. * SocketCore.cc: struct addrinfo is now zero-initialized.
  19570. * common.h: added #include directive of limit.h.
  19571. * DownloadEngine.cc: added #include directive of sys/time.h and
  19572. algorithm.
  19573. * Exception.h: added #include directive of stdio.h.
  19574. * AbstractCommand.h: added #include directive of sys/time.h.
  19575. * DownloadCommand.h: added #include directive of sys/time.h.
  19576. * *.h: added #include directive of common.h to all base classes.
  19577. subclasses' one was removed.
  19578. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  19579. does not define these macros.
  19580. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19581. * Release 0.2.0
  19582. * main.cc:
  19583. * HttpInitiateConnectionCommand.{h,cc}:
  19584. * prefs.h:
  19585. * HttpConnection.{h,cc}: added --http-proxy-method option.
  19586. We can now use GET command in http proxy.
  19587. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19588. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  19589. that splits slowest segment of SegmentMan::commands vector.
  19590. This is the default split algorithm of aria2.
  19591. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  19592. that splits first segment of SegmentMan::commands vector.
  19593. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  19594. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  19595. * Segment.h:
  19596. * SegmentMan.cc: Added speed field to Segment.h
  19597. * main.cc: -s option now affects all URLs in command-line arguemtns.
  19598. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  19599. * message.h: Change file size related %d to %lld.
  19600. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19601. * FtpInitiateConnectionCommand.{h,cc}:
  19602. * FtpNegotiationCommand.{h,cc}:
  19603. * FtpDownloadCommand.{h,cc}:
  19604. * FtpConnection.{h,cc}: Added FTP support
  19605. * SimpleLogger.cc: Log message now includes time information.
  19606. * main.cc: The value of --http-auth-scheme option is chagned from
  19607. 'BASIC' to 'basic'
  19608. * main.cc: Added --timeout command-line option.
  19609. * main.cc: Added --min-segment-size command-line option.
  19610. * main.cc: Added --max-retries command-line option.
  19611. * prefs.h: option string constants are now defined in prefs.h
  19612. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19613. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  19614. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  19615. with version 0.1.0's one.
  19616. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19617. * configure.in: Added --enable-ssl option to configure script.
  19618. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  19619. cannot permit absoluteURI as Request-URI.
  19620. * HttpConnection.cc: Added Referer support.
  19621. * main.cc: Added referer command-line option.
  19622. * main.cc: Added rety-wait command-line option.
  19623. * Exception.h: Fixed formating bug in Exception::setMsg()
  19624. * SocketCore.{h,cc}:
  19625. * Socket.{h, cc}:
  19626. * Request.cc:
  19627. * InitiateConnectionCommandFactory.cc:
  19628. * HttpRequestCommand.cc: Added HTTPS support.
  19629. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  19630. for SocketCore.
  19631. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  19632. size is wrong
  19633. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  19634. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  19635. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  19636. * Release 0.1.0