ChangeLog 688 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209
  1. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Moved getFirstNMissingIndex to bitfield.h and made it return the
  3. number of appended indexes.
  4. * src/BitfieldMan.cc
  5. * src/BitfieldMan.h
  6. * src/Piece.cc
  7. * src/Piece.h
  8. * src/bitfield.h
  9. * test/BitfieldManTest.cc
  10. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Added more tests.
  12. * test/BitfieldManTest.cc
  13. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  15. unused block indexes at once instead of calling
  16. getFirstMissingUnusedIndex() multiple times. Made use of it in
  17. Piece class and DefaultBtRequestFactory class via Piece class.
  18. * src/BitfieldMan.cc
  19. * src/BitfieldMan.h
  20. * src/DefaultBtRequestFactory.cc
  21. * src/Piece.cc
  22. * src/Piece.h
  23. * test/BitfieldManTest.cc
  24. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Use std::make_pair(...)
  26. * src/DHTMessageTracker.cc
  27. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Use std::make_pair(...)
  29. * src/bittorrent_helper.cc
  30. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. urlencode(removeFragment(...)) in parseUrl(...)
  32. * src/Request.cc
  33. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  35. * src/AbstractCommand.cc
  36. * src/AdaptiveURISelector.cc
  37. * src/BtPieceMessage.cc
  38. * src/BtPortMessage.cc
  39. * src/CreateRequestCommand.cc
  40. * src/DHTAbstractNodeLookupTask.cc
  41. * src/DHTBucket.cc
  42. * src/DHTGetPeersCommand.cc
  43. * src/DHTMessageDispatcherImpl.cc
  44. * src/DHTMessageFactoryImpl.cc
  45. * src/DHTMessageTracker.cc
  46. * src/DHTPeerAnnounceStorage.cc
  47. * src/DHTRoutingTable.cc
  48. * src/DHTSetup.cc
  49. * src/DefaultBtAnnounce.cc
  50. * src/DefaultBtInteractive.cc
  51. * src/DefaultBtMessageDispatcher.cc
  52. * src/DefaultBtMessageReceiver.cc
  53. * src/DefaultBtProgressInfoFile.cc
  54. * src/DefaultBtRequestFactory.cc
  55. * src/DefaultPeerStorage.cc
  56. * src/DefaultPieceStorage.cc
  57. * src/DownloadCommand.cc
  58. * src/DownloadEngine.cc
  59. * src/EpollEventPoll.cc
  60. * src/FileAllocationCommand.cc
  61. * src/FileEntry.cc
  62. * src/FtpNegotiationCommand.cc
  63. * src/HandshakeExtensionMessage.cc
  64. * src/HttpListenCommand.cc
  65. * src/HttpServer.cc
  66. * src/HttpSkipResponseCommand.cc
  67. * src/IteratableChunkChecksumValidator.cc
  68. * src/Logger.h
  69. * src/MSEHandshake.cc
  70. * src/MetalinkPostDownloadHandler.cc
  71. * src/MultiDiskAdaptor.cc
  72. * src/PeerAbstractCommand.cc
  73. * src/PeerConnection.cc
  74. * src/PeerListenCommand.cc
  75. * src/PeerReceiveHandshakeCommand.cc
  76. * src/RequestGroup.cc
  77. * src/RequestGroupMan.cc
  78. * src/SegmentMan.cc
  79. * src/SelectEventPoll.cc
  80. * src/ServerStat.cc
  81. * src/SimpleBtMessage.cc
  82. * src/SocketCore.cc
  83. * src/TrackerWatcherCommand.cc
  84. * src/UTMetadataDataExtensionMessage.cc
  85. * src/UTMetadataRequestFactory.cc
  86. * src/UTMetadataRequestTracker.cc
  87. * src/XmlRpcMethod.cc
  88. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  89. Changed log level from debug to info
  90. * src/BtDependency.cc
  91. * src/BtPostDownloadHandler.cc
  92. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Removed unused PeerSessionResource::_latency.
  94. * src/BtConstants.h
  95. * src/BtPieceMessage.cc
  96. * src/Peer.cc
  97. * src/Peer.h
  98. * src/PeerSessionResource.cc
  99. * src/PeerSessionResource.h
  100. * test/PeerSessionResourceTest.cc
  101. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Fixed the bug that --file-allocation=falloc doesn't work with
  103. single file download.
  104. * src/AbstractSingleDiskAdaptor.cc
  105. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Release 1.8.2
  107. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Added Portuguese translation. Updated Ukrainian and Spanish
  109. translation. Thanks to all translators.
  110. * po/LINGUAS
  111. * po/es.po
  112. * po/pt.po
  113. * po/uk.po
  114. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Remove fragment from redirected URI.
  116. * src/Request.cc
  117. * test/RequestTest.cc
  118. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. Updated po templates.
  120. * po/aria2.pot
  121. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  122. Drop legacy ifdef for ares support and code cleanup.
  123. * src/AsyncNameResolver.cc
  124. * src/AsyncNameResolver.h
  125. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  126. Call ares_library_init and ares_library_cleanup if they are
  127. available. Some code cleanups.
  128. * src/Platform.cc
  129. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Call ares_process_fd() each time after epoll to handle timeout.
  131. * src/EpollEventPoll.cc
  132. * src/EpollEventPoll.h
  133. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Suppressed type-cast compiler warning
  135. * src/CookieStorage.cc
  136. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Fixed compile error on Mac OS X.
  138. * src/CookieStorage.h
  139. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Removed cookietest.txt from Makefile.am
  141. * test/Makefile.am
  142. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Updated version number in man page.
  144. * doc/aria2c.1.txt
  145. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Rewritten help message for --allow-overwrite option.
  147. * doc/aria2c.1.txt
  148. * src/usage_text.h
  149. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Added bittorrent key to the response of tellStatus XML-RPC method.
  151. The associated value of the key is a struct and contains data
  152. retrieved from .torrent file, such as name, announce-list,
  153. comment, etc.
  154. * doc/aria2c.1.txt
  155. * src/XmlRpcMethodImpl.cc
  156. * src/XmlRpcMethodImpl.h
  157. * test/XmlRpcMethodTest.cc
  158. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. Removed parse(std::istream&) and parse(const std::string&) from
  160. CookieParser.
  161. * src/CookieParser.cc
  162. * src/CookieParser.h
  163. * test/CookieParserTest.cc
  164. * test/cookietest.txt: Removed
  165. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Fixed the bug that cookie for domain a.b.c is not sent to the host
  167. a.b.c if no other cookies are stored. Fixed the bug that
  168. Cookie::markOriginServerOnly() is not called when cookies are
  169. loaded from file/sqlite3 database.
  170. * src/Cookie.h
  171. * src/CookieStorage.cc
  172. * src/NsCookieParser.cc
  173. * src/Sqlite3MozCookieParser.cc
  174. * test/CookieStorageTest.cc
  175. * test/NsCookieParserTest.cc
  176. * test/Sqlite3MozCookieParserTest.cc
  177. * test/cookies.sqlite
  178. * test/nscookietest.txt
  179. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  180. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  181. both _pieceStorage and _segmentMan are initialized or they are
  182. not.
  183. * src/RequestGroup.cc
  184. * src/RequestGroup.h
  185. * test/BtDependencyTest.cc
  186. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  187. Bump up version number to 1.8.2
  188. * configure.ac
  189. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  190. Replaced "." with A2STR::DOT_C
  191. * src/AbstractCommand.cc
  192. * src/Cookie.cc
  193. * src/DownloadContext.cc
  194. * src/FtpConnection.cc
  195. * src/RequestGroup.cc
  196. * src/util.cc
  197. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Replaced isNumberAndDotsNotation() with isNumericHost().
  199. isNumericHost() can handle IPv6 address.
  200. * src/Cookie.cc
  201. * src/CookieStorage.cc
  202. * src/util.cc
  203. * src/util.h
  204. * test/CookieTest.cc
  205. * test/UtilTest.cc
  206. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  207. Included A2STR.h
  208. * src/CookieStorage.cc
  209. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Rewritten Cookie storage.
  211. * src/Cookie.cc
  212. * src/Cookie.h
  213. * src/CookieParser.cc
  214. * src/CookieStorage.cc
  215. * src/CookieStorage.h
  216. * src/a2functional.h
  217. * test/CookieParserTest.cc
  218. * test/CookieStorageTest.cc
  219. * test/CookieTest.cc
  220. * test/HttpResponseTest.cc
  221. * test/TestUtil.h
  222. * test/a2functionalTest.cc
  223. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  224. Handle redirected URI which is not properly percent encoded.
  225. * src/Request.cc
  226. * test/RequestTest.cc
  227. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  229. not found' in the N times(N is where --max-file-not-found=N, N>0)
  230. in a row without single '200 OK' response.
  231. * src/RequestGroup.cc.
  232. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  233. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  234. readout by 80 characters in mingw32 build. Catch exception in
  235. DHTMessageReceiver::receiveMessage().
  236. * src/AbstractDiskWriter.cc
  237. * src/ConsoleStatCalc.cc
  238. * src/DHTMessageReceiver.cc
  239. * src/File.cc
  240. * src/RequestGroupMan.cc
  241. * src/a2io.h
  242. * test/FileTest.cc
  243. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. Fixed compile error with intel compiler
  245. * src/XmlRpcMethodImpl.cc
  246. * src/XmlRpcMethodImpl.h
  247. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  248. Release 1.8.1
  249. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Updated Swedish, Russian and Italian translations. Thanks to all
  251. translators.
  252. * po/it.po
  253. * po/ru.po
  254. * po/sv.po
  255. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Fixed broken OptionParser::findByName().
  257. * src/OptionParser.cc
  258. * test/OptionParserTest.cc
  259. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Fixed test error without BitTorrent support.
  261. * test/XmlRpcMethodTest.cc
  262. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Fixed compile error without GNUTLS/OpenSSL.
  264. * src/util.cc
  265. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Changed compression level to Z_DEFAULT_COMPRESSION.
  267. * src/GZipEncoder.cc
  268. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Added missing command line options: --http-no-cache,
  270. --bt-save-metadata and --bt-metadata-only.
  271. * doc/xmlrpc/aria2rpc
  272. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  274. client accepts gzip content encoding.
  275. * src/A2STR.cc
  276. * src/A2STR.h
  277. * src/GZipEncoder.cc
  278. * src/GZipEncoder.h
  279. * src/HttpHeader.cc
  280. * src/HttpHeader.h
  281. * src/HttpServer.cc
  282. * src/HttpServer.h
  283. * src/HttpServerBodyCommand.cc
  284. * src/HttpServerCommand.cc
  285. * src/Makefile.am
  286. * src/XmlRpcResponse.cc
  287. * src/XmlRpcResponse.h
  288. * test/GZipEncoderTest.cc
  289. * test/Makefile.am
  290. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Added XML-RPC client sample code in Python.
  292. * doc/aria2c.1.txt
  293. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Updated po templates.
  295. * po/aria2.pot
  296. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Bump up version number to 1.8.1
  298. * configure.ac
  299. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Added version number to man page. Updated copyright year in man
  301. page.
  302. * doc/aria2c.1.txt
  303. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  304. Rewritten toTagString
  305. * src/NameMatchOptionHandler.cc
  306. * test/OptionHandlerTest.cc
  307. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  308. Added dir and files key to the response struct of aria2.tellStatus
  309. XML-RPC method. The value associated with files key is the list
  310. of files. Its element is the same struct used in aria2.getFiles
  311. XML-RPC method. Added uris key to the response struct of
  312. aria2.getFiles XML-RPC method. The value associated with uris key
  313. is the list of URIs. Its element is the same struct used in
  314. aria2.getUris XML-RPC method.
  315. * doc/aria2c.1.txt
  316. * src/XmlRpcMethodImpl.cc
  317. * test/XmlRpcMethodTest.cc
  318. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Added aria2.getSessionInfo XML-RPC method. This method returns a
  320. struct containing Session ID, which is generated each time when
  321. aria2 is invoked.
  322. * doc/aria2c.1.txt
  323. * doc/xmlrpc/aria2rpc
  324. * src/DownloadEngine.cc
  325. * src/DownloadEngine.h
  326. * src/XmlRpcMethodFactory.cc
  327. * src/XmlRpcMethodImpl.cc
  328. * src/XmlRpcMethodImpl.h
  329. * test/XmlRpcMethodTest.cc
  330. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Moved generateRandomKey() from bittorrent_helper to util.
  332. * src/DHTBucket.cc
  333. * src/DHTNode.cc
  334. * src/bittorrent_helper.cc
  335. * src/bittorrent_helper.h
  336. * src/util.cc
  337. * src/util.h
  338. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Updated doc about GID.
  340. * doc/aria2c.1.txt
  341. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  342. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  343. accepts a negative integer. 'offset' == -1 points last download
  344. in the waiting queue and 'offset' == -2 points the download before
  345. the last download, and so on. The downloads in the response are in
  346. reversed order.
  347. * doc/aria2c.1.txt
  348. * src/XmlRpcMethodImpl.cc
  349. * src/XmlRpcMethodImpl.h
  350. * test/XmlRpcMethodTest.cc
  351. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Added --human-readable option. This option, when true is given,
  353. prints sizes and speed in human readable format(e.g., 1.2Ki,
  354. 3.4Mi) in the console readout. The default value is true and it
  355. looks exactly the same as aria2-1.8.0. So the 'new feature'
  356. appears when false is given. In this case, sizes and speed are
  357. printed without in bytes. No Ki, Mi units conversion is used.
  358. This may be useful for a program to parse the output of aria2.
  359. * doc/aria2c.1.txt
  360. * src/ConsoleStatCalc.cc
  361. * src/ConsoleStatCalc.h
  362. * src/OptionHandlerFactory.cc
  363. * src/main.cc
  364. * src/prefs.cc
  365. * src/prefs.h
  366. * src/usage_text.h
  367. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  369. option accepts empty string "". When "" is given, it erases
  370. previously defined proxy.
  371. * doc/aria2c.1.txt
  372. * src/OptionHandlerImpl.h
  373. * src/usage_text.h
  374. * test/OptionHandlerTest.cc
  375. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Code cleanup for proxy URI handling.
  377. * src/AbstractCommand.cc
  378. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Added --bt-metadata-only option. If true is given to this option,
  380. aria2 downloads metadata only. The file(s) described in metadata
  381. will not be downloaded. This option has effect only when
  382. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  383. * doc/aria2c.1.txt
  384. * src/OptionHandlerFactory.cc
  385. * src/UTMetadataPostDownloadHandler.cc
  386. * src/download_helper.cc
  387. * src/prefs.cc
  388. * src/prefs.h
  389. * src/usage_text.h
  390. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Fixed memory leak. Commands stored in std::deque<Command*> are not
  392. deleted when exception is thrown. Make sure that when passing
  393. std::deque<Command*> to function to store Commands, handle
  394. exception and delete these Commands.
  395. * src/AbstractCommand.cc
  396. * src/CheckIntegrityCommand.cc
  397. * src/FileAllocationCommand.cc
  398. * src/RequestGroup.cc
  399. * src/TrackerWatcherCommand.cc
  400. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  402. * src/A2STR.cc
  403. * src/A2STR.h
  404. * src/FtpNegotiationCommand.cc
  405. * src/HttpResponseCommand.cc
  406. * src/util.cc
  407. * src/util.h
  408. * test/UtilTest.cc
  409. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  410. Treat --dir="" as --dir="."
  411. * src/FtpNegotiationCommand.cc
  412. * src/HttpResponseCommand.cc
  413. * src/Metalink2RequestGroup.cc
  414. * src/UTMetadataPostDownloadHandler.cc
  415. * src/bittorrent_helper.cc
  416. * src/download_helper.cc
  417. * src/util.cc
  418. * src/util.h
  419. * test/UtilTest.cc
  420. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Code clean up.
  422. * src/main.cc
  423. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Reset GID to 1 when they reach maximum value. Rewritten
  425. CUIDCounter::newID()
  426. * src/CUIDCounter.h
  427. * src/RequestGroup.cc
  428. * src/RequestGroup.h
  429. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. Documented --http-no-cache option in man page.
  431. * doc/aria2c.1.txt
  432. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Added --http-no-cache option. When true is given, aria2 sends
  434. Cache-Control: no-cache and Pragma: no-cache header to avoid
  435. cached content. If false is given , these headers are not sent
  436. and you can add Cache-Control header with a directive you like
  437. using --header option.
  438. * src/HttpRequest.cc
  439. * src/HttpRequest.h
  440. * src/HttpRequestCommand.cc
  441. * src/OptionHandlerFactory.cc
  442. * src/download_helper.cc
  443. * src/prefs.cc
  444. * src/prefs.h
  445. * src/usage_text.h
  446. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  447. Removed Logger from OptionParser. When OptionParser is used to
  448. parse options at bootstrap, LogFactory is not configured yet
  449. properly. When LogFactory is used in OptionParser, it initializes
  450. itself to return a logger which has no ability to write log to the
  451. disk.
  452. * src/OptionParser.cc
  453. * src/OptionParser.h
  454. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. Added following sentance to the help message of --out option:
  456. --out option is ignored when -Z is used.
  457. * doc/aria2c.1.txt
  458. * src/usage_text.h
  459. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Added --bt-save-metadata option to -i list options.
  461. * doc/aria2c.1.txt
  462. * src/download_helper.cc
  463. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  465. additional libraries.
  466. * src/MultiUrlRequestInfo.cc
  467. * src/NameResolver.cc
  468. * src/SelectEventPoll.cc
  469. * src/SelectEventPoll.h
  470. * src/SocketCore.cc
  471. * src/SocketCore.h
  472. * src/a2netcompat.h
  473. * src/daemon.cc
  474. * src/main.cc
  475. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  476. Fixed typo.
  477. * src/DHTMessageReceiver.cc
  478. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. Fixed the bug that causes segmentation fault if unknown option is
  480. put in aria2.conf file. BUG#2928303
  481. * src/OptionParser.cc
  482. * src/OptionParser.h
  483. * src/option_processing.cc
  484. * test/OptionParserTest.cc
  485. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Ignore port message with port=0.
  487. * src/BtPortMessage.cc
  488. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Run autoupdate
  490. * configure.ac
  491. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Updated autoconf/automake auxiliary files.
  493. * INSTALL
  494. * config.guess
  495. * config.sub
  496. * depcomp
  497. * install-sh
  498. * m4/intldir.m4
  499. * missing
  500. * mkinstalldirs
  501. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  502. Removed unused function.
  503. * src/SharedHandle.h
  504. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Find pooled socket using all cached addresses.
  506. * src/DNSCache.h
  507. * src/DownloadEngine.cc
  508. * src/DownloadEngine.h
  509. * src/InitiateConnectionCommand.cc
  510. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Updated copyright year.
  512. * src/version_usage.cc
  513. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Pool connection if _contentEncodingDecoder is used and server
  515. supports persistent connection.
  516. * src/HttpDownloadCommand.cc
  517. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Updated doc.
  519. * src/DownloadCommand.cc
  520. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  521. Untabify. Fixed one line in copyright which is longer than 80
  522. columns.
  523. * src
  524. * test
  525. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  526. Release 1.8.0
  527. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  528. Updated po templates.
  529. * po/aria2.pot
  530. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Documented --bt-save-metadata option in man page.
  532. * doc/aria2c.1.txt
  533. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Fixed usage of --bt-save-metadata option.
  535. * src/usage_text.h
  536. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  537. Updated po templates.
  538. * po/aria2.pot
  539. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  540. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  541. causes name resolution error when none of network interface has
  542. IPv4 address.
  543. * src/main.cc
  544. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  545. Bump up version number to 1.8.0.
  546. * configure.ac
  547. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Use info hash as a filename when saving BitTorrent metadata.
  549. * src/UTMetadataPostDownloadHandler.cc
  550. * test/UTMetadataPostDownloadHandlerTest.cc
  551. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  552. Documented system.multicall XML-RPC method in man page.
  553. * doc/aria2c.1.txt
  554. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Added signal handler for SIGHUP to save .aria2 file when terminal
  556. is closed. The handler is the same one for SIGINT and SIGTERM.
  557. * src/MultiUrlRequestInfo.cc
  558. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Defined method name in XmlRpcMethod subclasses.
  560. * src/XmlRpcMethodFactory.cc
  561. * src/XmlRpcMethodImpl.cc
  562. * src/XmlRpcMethodImpl.h
  563. * test/XmlRpcMethodTest.cc
  564. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Added system.multicall XML-RPC method.
  566. * src/XmlRpcMethod.cc
  567. * src/XmlRpcMethod.h
  568. * src/XmlRpcMethodFactory.cc
  569. * src/XmlRpcMethodImpl.cc
  570. * src/XmlRpcMethodImpl.h
  571. * test/XmlRpcMethodTest.cc
  572. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Check structure depth when decoding.
  574. * src/bencode.cc
  575. * src/bencode.h
  576. * test/BencodeTest.cc
  577. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Documented tellStopped XML-RPC method in man page.
  579. * doc/aria2c.1.txt
  580. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  581. Added tellStopped XML-RPC method to aria2rpc.
  582. * doc/xmlrpc/aria2rpc
  583. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  584. Added tellStopped XML-RPC method. This method returns stopped
  585. download in the specified range. It takes same parameters with
  586. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  587. * src/XmlRpcMethodFactory.cc
  588. * src/XmlRpcMethodImpl.cc
  589. * src/XmlRpcMethodImpl.h
  590. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  592. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  593. when conducting unit tests because they fail if networking
  594. interface is not configured with IPv4 address.
  595. * src/NameResolver.cc
  596. * src/SocketCore.cc
  597. * src/SocketCore.h
  598. * src/a2netcompat.h
  599. * test/AllTest.cc
  600. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Fixed unit test error
  602. * test/UTMetadataPostDownloadHandlerTest.cc
  603. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Defined static string constants for efficiency.
  605. * src/XmlRpcMethodImpl.cc
  606. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Added --bt-save-metadata option. When true is given, it saves
  608. metadata as .torrent file. This option has effect only when
  609. BitTorrent Magnet URI is used. The filename is name in metadata
  610. with suffix .torrent. The directory to be saved is the same
  611. directory where download file is saved. If the same file already
  612. exists, metdata is not saved.
  613. * src/OptionHandlerFactory.cc
  614. * src/UTMetadataPostDownloadHandler.cc
  615. * src/UTMetadataPostDownloadHandler.h
  616. * src/message.h
  617. * src/prefs.cc
  618. * src/prefs.h
  619. * src/usage_text.h
  620. * test/UTMetadataDataExtensionMessageTest.cc
  621. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Added util::saveAs() function. Use it in Signature::save().
  623. * src/Signature.cc
  624. * src/util.cc
  625. * src/util.h
  626. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  627. Upcase info hash in Magnet URI.
  628. * doc/aria2c.1.txt
  629. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Refactored RequestGroupMan::changeReservedGroupPosition()
  631. * src/RequestGroupMan.cc
  632. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. Updated the description for aria2.addTorrent XML-RPC method.
  634. * doc/aria2c.1.txt
  635. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Added changePosition to aria2rpc.
  637. * doc/xmlrpc/aria2rpc
  638. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Documented changePosition XML-RPC method in man page.
  640. * doc/aria2c.1.txt
  641. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  643. pos and how. This method changes the position of download denoted
  644. by gid. If how is POS_SET, it moves the download to a position
  645. relative to the beginning of the queue. If how is POS_CUR, it
  646. moves the download to a position relative to the current
  647. position. If how is POS_END, it moves the download to a position
  648. relative to the end of the queue. If the destination position is
  649. less than 0 or beyond the end of the queue, it moves the download
  650. to the beginning or the end of the queue respectively. Returns
  651. the destination position.
  652. * src/RequestGroupMan.cc
  653. * src/RequestGroupMan.h
  654. * src/XmlRpcMethodFactory.cc
  655. * src/XmlRpcMethodImpl.cc
  656. * src/XmlRpcMethodImpl.h
  657. * test/RequestGroupManTest.cc
  658. * test/XmlRpcMethodTest.cc
  659. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Added getOption and getGlobalOption to aria2rpc.
  661. * doc/xmlrpc/aria2rpc
  662. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Documented getOption and getGlobalOption XML-RPC method in man
  664. page
  665. * doc/aria2c.1.txt
  666. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Added getOption and getGlobalOption XML-RPC method. getOption
  668. takes GID as a parameter and returns its options as struct.
  669. getGlobalOption takes no parameter and returns global
  670. options. Because global option is used as a template for the
  671. option of newly added downloads, it includes options returned by
  672. getOption.
  673. * src/Option.h
  674. * src/XmlRpcMethodFactory.cc
  675. * src/XmlRpcMethodImpl.cc
  676. * src/XmlRpcMethodImpl.h
  677. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Sort _optionHandlers in OptionParser by name in ascending order.
  679. Use vector instead of deque for efficiency.
  680. * src/OptionHandler.h
  681. * src/OptionHandlerFactory.h
  682. * src/OptionParser.cc
  683. * src/OptionParser.h
  684. * src/version_usage.cc
  685. * test/OptionParserTest.cc
  686. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Code cleanup
  688. * src/XmlRpcMethod.cc
  689. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Documented about followedBy and belongsTo in man page.
  691. * doc/aria2c.1.txt
  692. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  693. Added following 2 keys, followedBy and belongsTo, to the response
  694. of tellStatus.
  695. followedBy: List of GIDs which are generated by the consequence of
  696. this download. For example, when aria2 downloaded Metalink file,
  697. it generates downloads described in it(see *--follow-metalink*
  698. option). This value is useful to track these auto generated
  699. downloads. If there is no such downloads, this key will not be
  700. included in the response.
  701. belongsTo: GID of a parent download. Some downloads are a part of
  702. another download. For example, if a file in Metalink has
  703. BitTorrent resource, the download of .torrent is a part of that
  704. file. If this download has no parent, this key will not be
  705. included in the response.
  706. * src/BtPostDownloadHandler.cc
  707. * src/DownloadResult.h
  708. * src/Metalink2RequestGroup.cc
  709. * src/MetalinkPostDownloadHandler.cc
  710. * src/RequestGroup.cc
  711. * src/RequestGroup.h
  712. * src/UTMetadataPostDownloadHandler.cc
  713. * src/XmlRpcMethodImpl.cc
  714. * src/XmlRpcMethodImpl.h
  715. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Assigned BObject in BDE() to avoid segmentation fault when calling
  717. methods of BDE::none().
  718. * src/BDE.cc
  719. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Show info hash in Magnet URI in upper case letters in -S output.
  721. * src/bittorrent_helper.cc
  722. * test/BittorrentHelperTest.cc
  723. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Removed old useless comment
  725. * src/MultiUrlRequestInfo.cc
  726. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  728. not properly used in configure script and failed to detect gnutls.
  729. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  730. and the initialization of pkg-config is done in first occurrence
  731. of PKG_CHECK_MODULES which is not executed because it is inside of
  732. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  733. * configure.ac
  734. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Release 1.7.2
  736. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Fixed the bug that RequestGroupMan::downloadFinished() returns
  738. true even if all downloads haven't finished, especially when
  739. PostDownloadHandler is involved. Changed the condition so that it
  740. only returns true if both _requestGroups and _reservedGroups are
  741. empty.
  742. * src/RequestGroupMan.cc
  743. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Log listening port for BitTorrent/DHT in notice level.
  745. * src/DHTConnectionImpl.cc
  746. * src/PeerListenCommand.cc
  747. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Updated po templates.
  749. * po/aria2.pot
  750. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Bump up version number to 1.7.2
  752. * configure.ac
  753. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Changed default value of --enable-dht from 'false' to 'true'.
  755. * doc/aria2c.1.txt
  756. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Enabled DHT by default because of Magnet URI support. To disable
  758. DHT, use --enable-dht=false
  759. * src/OptionHandlerFactory.cc
  760. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Print Magnet URI in -S output.
  762. * src/AnnounceList.cc
  763. * src/bittorrent_helper.cc
  764. * src/bittorrent_helper.h
  765. * test/BittorrentHelperTest.cc
  766. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Added --bt-prioritize-piece option to aria2rpc.
  768. * doc/xmlrpc/aria2rpc
  769. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  770. Refer Magnet URI in --help. Made some cosmetic changes.
  771. * src/version_usage.cc
  772. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Updated -T and -M option.
  774. * doc/aria2c.1.txt
  775. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. Fixed typo
  777. * doc/aria2c.1.txt
  778. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Fixed the bug that line separator is missing in horizontal bar.
  780. * doc/xmlrpc/aria2mon
  781. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Updated usage text for --metalink-file option.
  783. * src/usage_text.h
  784. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  785. If '-' is given as an argument to --metalink-file option, aria2
  786. reads Metalink file from stdin.
  787. * src/OptionHandlerFactory.cc
  788. * src/OptionHandlerImpl.h
  789. * src/a2io.h
  790. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Fixed the bug that aria2 listens wrong port if --interface option
  792. is used.
  793. * src/SocketCore.cc
  794. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  795. Fixed the bug that query parameter in magnet URI is not decoded.
  796. * src/magnet.cc
  797. * test/MagnetTest.cc
  798. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Specified defaultSize as an argument for easy testing.
  800. * src/util.cc
  801. * src/util.h
  802. * test/UtilTest.cc
  803. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Release 1.7.1
  805. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Bump up version number to 1.7.1
  807. * configure.ac
  808. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Fixed the bug --bt-prioritize-piece=tail is not working.
  810. * src/util.cc
  811. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  812. Release 1.7.0
  813. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Updated po templates.
  815. * po/aria2.pot
  816. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Updated help message for --bt-prioritize-piece. Some cosmetic
  818. changes.
  819. * doc/aria2c.1.txt
  820. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  822. * src/usage_text.h
  823. * src/util.cc
  824. * test/UtilTest.cc
  825. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Updated Russian, Ukrainian, German and French translations.
  827. Thanks to all translators involved.
  828. * po/de.po
  829. * po/fr.po
  830. * po/ru.po
  831. * po/uk.po
  832. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Mentioned about pkg-config
  834. * README
  835. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  836. Fixed typo. Referred --index-out option in BitTorrent notes.
  837. * README
  838. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  839. Store all addresses found by getifaddrs() and getaddrinfo(). In
  840. bind, try all addresses until success
  841. * src/SocketCore.cc
  842. * src/SocketCore.h
  843. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Updated po templates.
  845. * po/aria2.pot
  846. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Bump up version number to 1.7.0
  848. * configure.ac
  849. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. Fixed compile error if ENABLE_BITTORRENT is undefined.
  851. * src/DefaultPieceStorage.cc
  852. * src/DefaultPieceStorage.h
  853. * src/PieceStorage.h
  854. * src/UnknownLengthPieceStorage.cc
  855. * src/UnknownLengthPieceStorage.h
  856. * test/MockPieceStorage.h
  857. * test/ProtocolDetectorTest.cc
  858. * test/XmlRpcMethodTest.cc
  859. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Documented in man page that if getifaddrs() is missing,
  861. --interface option doesn't accept interface name.
  862. * doc/aria2c.1.txt
  863. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  865. * src/DefaultBtAnnounce.cc
  866. * src/DefaultBtAnnounce.h
  867. * test/DefaultBtAnnounceTest.cc
  868. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Fixed the bug that connection is always dropped if handshake
  870. message in extension protocol don't have metadata_size.
  871. src/HandshakeExtensionMessage.cc
  872. * src/HandshakeExtensionMessage.cc
  873. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  875. text saying DHT is recommended when Magnet URI is provided.
  876. * doc/aria2c.1.txt
  877. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  878. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  879. URI is supplied. Notify user that they should consider enabling
  880. DHT if they use Magnet URI.
  881. * src/RequestGroup.cc
  882. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Added --disable-ipv6 option to disable IPv6.
  884. * doc/aria2c.1.txt
  885. * src/InitiateConnectionCommand.cc
  886. * src/NameResolver.cc
  887. * src/NameResolver.h
  888. * src/OptionHandlerFactory.cc
  889. * src/main.cc
  890. * src/prefs.cc
  891. * src/prefs.h
  892. * src/usage_text.h
  893. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  894. Updated usage text for --bt-prioritize-piece option.
  895. * doc/aria2c.1.txt
  896. * src/usage_text.h
  897. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. In configure script, if --with-PACKAGE and --enable-FEATURE are
  899. given and PACKAGE is missing in the system or FEATURE cannot be
  900. enabled, print error message and stop the script.
  901. * configure.ac
  902. * m4/aria2_arg.m4
  903. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Halt metadata download immediately when metadata download is done.
  905. Don't wait unresponsive tracker.
  906. * src/ByteArrayDiskWriter.h
  907. * src/DefaultBtInteractive.cc
  908. * src/DefaultExtensionMessageFactory.cc
  909. * src/DefaultExtensionMessageFactory.h
  910. * src/PeerInteractionCommand.cc
  911. * src/UTMetadataDataExtensionMessage.cc
  912. * src/UTMetadataDataExtensionMessage.h
  913. * src/UTMetadataRequestExtensionMessage.cc
  914. * test/UTMetadataDataExtensionMessageTest.cc
  915. * test/UTMetadataRequestExtensionMessageTest.cc
  916. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Documented --interface option in man page.
  918. * doc/aria2c.1.txt
  919. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Try resolved address in the order received from the resolver.
  921. * src/DNSCache.h
  922. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Added debug logs.
  924. * src/SocketCore.cc
  925. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Fixed type of tail to uint64_t
  927. * src/util.cc
  928. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Added --interface option. This feature binds sockets to given
  930. interface. You can specify interface name, IP address and
  931. hostname.
  932. * configure.ac
  933. * src/OptionHandlerFactory.cc
  934. * src/SocketCore.cc
  935. * src/SocketCore.h
  936. * src/main.cc
  937. * src/message.h
  938. * src/prefs.cc
  939. * src/prefs.h
  940. * src/usage_text.h
  941. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  942. Updated man page for bt-prioritize-piece option in -i list.
  943. * doc/aria2c.1.txt
  944. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Added bt-prioritize-piece option to -i list.
  946. * src/download_helper.cc
  947. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Removed --http-auth-scheme option from man page.
  949. * doc/aria2c.1.txt
  950. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  951. Removed --http-auth-scheme option since it doesn't do nothing.
  952. * src/OptionHandlerFactory.cc
  953. * src/prefs.cc
  954. * src/prefs.h
  955. * src/usage_text.h
  956. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  957. Adjusted the number of peer info which get_peers reply message can
  958. carry.
  959. * src/DHTGetPeersReplyMessage.cc
  960. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  961. Added extension_message_test_helper.h to aria2c_SOURCES.
  962. * test/Makefile.am
  963. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Documented --bt-prioritize-piece option in man page.
  965. * doc/aria2c.1.txt
  966. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. Added option --bt-prioritize-piece. This option instruct aria2 to
  968. try to download first and last pieces of each file first. The
  969. argument can contain 2 keywords:head and tail. To include both
  970. keywords, they must be separated by comma. These keywords can take
  971. one parameter, SIZE. For example , if head=SIZE is specified,
  972. pieces in the range of first SIZE bytes of each file get higher
  973. priority. tail=SIZE means the range of last SIZE bytes of each
  974. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  975. * src/DefaultPieceStorage.h
  976. * src/Makefile.am
  977. * src/OptionHandlerFactory.cc
  978. * src/OptionHandlerImpl.h
  979. * src/PriorityPieceSelector.cc
  980. * src/PriorityPieceSelector.h
  981. * src/RequestGroup.cc
  982. * src/prefs.cc
  983. * src/prefs.h
  984. * src/usage_text.h
  985. * src/util.cc
  986. * src/util.h
  987. * test/Makefile.am
  988. * test/MockPieceSelector.h
  989. * test/PriorityPieceSelectorTest.cc
  990. * test/UtilTest.cc
  991. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  992. Fixed typo
  993. * src/HttpRequest.h
  994. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. In Magnet URI with tr parameter, put each announce URI in separate
  996. tier.
  997. * src/bittorrent_helper.cc
  998. * test/BittorrentHelperTest.cc
  999. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1000. Renamed ExtensionMessage::getBencodedData() as
  1001. ExtensionMessage::getPayload()
  1002. * src/BtExtendedMessage.cc
  1003. * src/ExtensionMessage.h
  1004. * src/HandshakeExtensionMessage.cc
  1005. * src/HandshakeExtensionMessage.h
  1006. * src/UTMetadataDataExtensionMessage.cc
  1007. * src/UTMetadataDataExtensionMessage.h
  1008. * src/UTMetadataRejectExtensionMessage.cc
  1009. * src/UTMetadataRejectExtensionMessage.h
  1010. * src/UTMetadataRequestExtensionMessage.cc
  1011. * src/UTMetadataRequestExtensionMessage.h
  1012. * src/UTPexExtensionMessage.cc
  1013. * src/UTPexExtensionMessage.h
  1014. * test/HandshakeExtensionMessageTest.cc
  1015. * test/MockExtensionMessage.h
  1016. * test/UTMetadataDataExtensionMessageTest.cc
  1017. * test/UTMetadataRejectExtensionMessageTest.cc
  1018. * test/UTMetadataRequestExtensionMessageTest.cc
  1019. * test/UTPexExtensionMessageTest.cc
  1020. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1021. Updated man page for BitTorrent Magnet URI.
  1022. * doc/aria2c.1.txt
  1023. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1024. Call DownloadContext::setOwnerRequestGroup() in
  1025. RequestGroup::setDownloadContext().
  1026. * src/BtDependency.cc
  1027. * src/RequestGroup.cc
  1028. * src/RequestGroup.h
  1029. * src/download_helper.cc
  1030. * test/DefaultBtMessageDispatcherTest.cc
  1031. * test/DefaultExtensionMessageFactoryTest.cc
  1032. * test/HandshakeExtensionMessageTest.cc
  1033. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1035. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1036. from metadata, use new metadata2Torrent() function.
  1037. * src/BtDependency.cc
  1038. * src/UTMetadataPostDownloadHandler.cc
  1039. * src/bittorrent_helper.cc
  1040. * src/bittorrent_helper.h
  1041. * test/BittorrentHelperTest.cc
  1042. * test/BtDependencyTest.cc
  1043. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Use createRequestGroupForUri to create the download for torrent
  1045. file.
  1046. * src/Metalink2RequestGroup.cc
  1047. * test/Metalink2RequestGroupTest.cc
  1048. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Fixed typo
  1050. * src/DownloadContext.h
  1051. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1052. Use createRequestGroupForBitTorrent()
  1053. * src/BtPostDownloadHandler.cc
  1054. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1055. Added remove().
  1056. * src/Option.cc
  1057. * src/Option.h
  1058. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1059. Removed options which is only valid for URIs specified in
  1060. command-line. If they are left, because op is used as a template
  1061. for new RequestGroup(such as created in XML-RPC command,
  1062. BtPostDownloadHandler etc), they causes unintentional effect.
  1063. * src/main.cc
  1064. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Refer to option value of PREF_OUT only in download_helper.
  1066. * src/FtpNegotiationCommand.cc
  1067. * src/HttpResponseCommand.cc
  1068. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1069. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1070. * src/download_helper.cc
  1071. * src/download_helper.h
  1072. * src/XmlRpcMethodImpl.cc
  1073. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Updated man page for changeOption XML-RPC method.
  1075. * doc/aria2c.1.txt
  1076. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Added --bt-max-peers option to changeOption XML-RPC method.
  1078. * src/XmlRpcMethod.cc
  1079. * src/XmlRpcMethodImpl.cc
  1080. * test/XmlRpcMethodTest.cc
  1081. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1083. * test/XmlRpcMethodTest.cc
  1084. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1085. Removed redundant DownloadContext::hasAttribute(...) calls.
  1086. * src/ConsoleStatCalc.cc
  1087. * src/RequestGroup.cc
  1088. * src/XmlRpcMethodImpl.cc
  1089. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Changed the number of tracker request attempt from 5 to 2.
  1091. * src/TrackerWatcherCommand.cc
  1092. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Use host and protocol in original URI, because URI selector
  1094. selects URI based on original URI, not redirected one.
  1095. * src/Request.cc
  1096. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Fixed the bug which causes segmentation fault with tellWaiting
  1098. XML-RPC method when BitTorrent download is waiting. The key of
  1099. BtRegistry is changed from info hash to GID, because it is
  1100. registered per RequestGroup, not info hash.
  1101. * src/BtRegistry.cc
  1102. * src/BtRegistry.h
  1103. * src/BtSetup.cc
  1104. * src/ConsoleStatCalc.cc
  1105. * src/InitiatorMSEHandshakeCommand.cc
  1106. * src/PeerInitiateConnectionCommand.cc
  1107. * src/PeerInteractionCommand.cc
  1108. * src/PeerInteractionCommand.h
  1109. * src/PeerReceiveHandshakeCommand.cc
  1110. * src/RequestGroup.cc
  1111. * src/XmlRpcMethodImpl.cc
  1112. * test/BtRegistryTest.cc
  1113. * test/XmlRpcMethodTest.cc
  1114. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1115. Updated man page for changeOption XML-RPC method.
  1116. * doc/aria2c.1.txt
  1117. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1118. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1119. method.
  1120. * src/XmlRpcMethod.cc
  1121. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Documented about BitTorrent Magnet URI in man page.
  1123. * doc/aria2c.1.txt
  1124. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1126. inherited to generated RequestGroup.
  1127. * src/UTMetadataPostDownloadHandler.cc
  1128. * test/UTMetadataPostDownloadHandlerTest.cc
  1129. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Prepended "[METADATA]" before dn.
  1131. * src/bittorrent_helper.cc
  1132. * test/BittorrentHelperTest.cc
  1133. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. Rewritten Magnet URI parser.
  1135. * src/Makefile.am
  1136. * src/ProtocolDetector.cc
  1137. * src/bittorrent_helper.cc
  1138. * src/bittorrent_helper.h
  1139. * src/download_helper.cc
  1140. * src/magnet.cc
  1141. * src/magnet.h
  1142. * test/BittorrentHelperTest.cc
  1143. * test/MagnetTest.cc
  1144. * test/Makefile.am
  1145. * test/ProtocolDetectorTest.cc
  1146. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Use hton64
  1148. * src/base32.cc
  1149. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Added Base32 encoded BitTorrent Magnet Link support.
  1151. * src/Makefile.am
  1152. * src/base32.cc
  1153. * src/base32.h
  1154. * src/bittorrent_helper.cc
  1155. * test/Base32Test.cc
  1156. * test/BittorrentHelperTest.cc
  1157. * test/Makefile.am
  1158. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1160. supported yet. Fixed typo in method name in RequestGroup. In
  1161. metadataGetMode, don't show "Your share ratio was ..." message.
  1162. * src/DefaultBtInteractive.cc
  1163. * src/DefaultBtInteractive.h
  1164. * src/DownloadHandlerFactory.cc
  1165. * src/DownloadHandlerFactory.h
  1166. * src/HandshakeExtensionMessage.cc
  1167. * src/Makefile.am
  1168. * src/Metalink2RequestGroup.cc
  1169. * src/PeerInteractionCommand.cc
  1170. * src/RequestGroup.cc
  1171. * src/RequestGroup.h
  1172. * src/UTMetadataPostDownloadHandler.cc
  1173. * src/UTMetadataPostDownloadHandler.h
  1174. * src/download_helper.cc
  1175. * test/HandshakeExtensionMessageTest.cc
  1176. * test/Makefile.am
  1177. * test/UTMetadataPostDownloadHandlerTest.cc
  1178. * test/UTMetadataRejectExtensionMessageTest.cc
  1179. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. In metadataGetMode, don't show SEEDING.
  1181. * src/ConsoleStatCalc.cc
  1182. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Fixed ut_metadata data handling. Implemented
  1184. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1185. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1186. metadata_size is received.
  1187. * src/DefaultExtensionMessageFactory.cc
  1188. * src/DefaultExtensionMessageFactory.h
  1189. * src/HandshakeExtensionMessage.cc
  1190. * src/HandshakeExtensionMessage.h
  1191. * src/UTMetadataDataExtensionMessage.cc
  1192. * src/UTMetadataDataExtensionMessage.h
  1193. * src/UTMetadataRequestExtensionMessage.cc
  1194. * src/UTMetadataRequestFactory.cc
  1195. * src/UTMetadataRequestFactory.h
  1196. * src/UTMetadataRequestTracker.cc
  1197. * src/UTMetadataRequestTracker.h
  1198. * test/DefaultExtensionMessageFactoryTest.cc
  1199. * test/HandshakeExtensionMessageTest.cc
  1200. * test/MockBtMessage.h
  1201. * test/UTMetadataDataExtensionMessageTest.cc
  1202. * test/UTMetadataRequestExtensionMessageTest.cc
  1203. * test/UTMetadataRequestFactoryTest.cc
  1204. * test/UTMetadataRequestTrackerTest.cc
  1205. * test/extension_message_test_helper.h
  1206. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Drop connection if ut_metadata reject message is received.
  1208. * src/UTMetadataRejectExtensionMessage.cc
  1209. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1210. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1211. get high enough in that mode.
  1212. * src/ActivePeerConnectionCommand.cc
  1213. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1214. Added BitTorrent magnet link support to ProtocolDetector.
  1215. * src/ProtocolDetector.cc
  1216. * src/ProtocolDetector.h
  1217. * test/ProtocolDetectorTest.cc
  1218. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Don't inject validator into BtMessage in metadataGetMode because
  1220. most of the checks depends on the total length of download but it
  1221. is unknown. Delegate metadataGetMode to BtMessage.
  1222. * src/DefaultBtMessageFactory.cc
  1223. * src/DefaultBtMessageFactory.h
  1224. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1226. * src/DefaultPieceStorage.h
  1227. * src/PieceStorage.h
  1228. * src/UnknownLengthPieceStorage.h
  1229. * test/MockPieceStorage.h
  1230. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1231. Added markTotalLengthIsKnown().
  1232. * src/DownloadContext.h
  1233. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1235. missing. If metadata is missing, always use DHT when it is ready.
  1236. * src/BtSetup.cc
  1237. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1238. Added parseMagnetLink(). Hex encoded info hash is supported.
  1239. Base32 encoded info hash is not supported yet.
  1240. * src/bittorrent_helper.cc
  1241. * src/bittorrent_helper.h
  1242. * test/BittorrentHelperTest.cc
  1243. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Added FromHex()
  1245. * src/util.cc
  1246. * src/util.h
  1247. * test/UtilTest.cc
  1248. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Added _metadataGetMode member variable. It toggles the action when
  1250. messages are received: usually they almost do nothing if
  1251. _metadataGetMode is true.
  1252. * src/AbstractBtMessage.cc
  1253. * src/AbstractBtMessage.h
  1254. * src/BtAllowedFastMessage.cc
  1255. * src/BtBitfieldMessage.cc
  1256. * src/BtCancelMessage.cc
  1257. * src/BtChokeMessage.cc
  1258. * src/BtHaveAllMessage.cc
  1259. * src/BtHaveMessage.cc
  1260. * src/BtInterestedMessage.cc
  1261. * src/BtNotInterestedMessage.cc
  1262. * src/BtPieceMessage.cc
  1263. * src/BtRejectMessage.cc
  1264. * src/BtRequestMessage.cc
  1265. * src/BtUnchokeMessage.cc
  1266. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1267. Added bencode::decode overload functions. They have extra argument
  1268. 'end', passed by reference. 'end' points to the beyond the last
  1269. position of data used in decoding process.
  1270. * src/bencode.cc
  1271. * src/bencode.h
  1272. * test/BencodeTest.cc
  1273. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Initial support of Extension for Peers to Send Metadata
  1275. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1276. metadata from swarm.
  1277. * src/BtConstants.h
  1278. * src/DefaultBtInteractive.cc
  1279. * src/DefaultExtensionMessageFactory.cc
  1280. * src/DefaultExtensionMessageFactory.h
  1281. * src/ExtensionMessage.h
  1282. * src/ExtensionMessageRegistry.h
  1283. * src/HandshakeExtensionMessage.cc
  1284. * src/HandshakeExtensionMessage.h
  1285. * src/Makefile.am
  1286. * src/PeerConnection.h
  1287. * src/PeerInteractionCommand.cc
  1288. * src/UTMetadataDataExtensionMessage.cc
  1289. * src/UTMetadataDataExtensionMessage.h
  1290. * src/UTMetadataExtensionMessage.cc
  1291. * src/UTMetadataExtensionMessage.h
  1292. * src/UTMetadataRejectExtensionMessage.cc
  1293. * src/UTMetadataRejectExtensionMessage.h
  1294. * src/UTMetadataRequestExtensionMessage.cc
  1295. * src/UTMetadataRequestExtensionMessage.h
  1296. * src/bittorrent_helper.cc
  1297. * src/bittorrent_helper.h
  1298. * test/BittorrentHelperTest.cc
  1299. * test/DefaultExtensionMessageFactoryTest.cc
  1300. * test/HandshakeExtensionMessageTest.cc
  1301. * test/Makefile.am
  1302. * test/UTMetadataDataExtensionMessageTest.cc
  1303. * test/UTMetadataRejectExtensionMessageTest.cc
  1304. * test/UTMetadataRequestExtensionMessageTest.cc
  1305. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Cancel segment in prepareForRetry() because there is a chance that
  1307. the command has segments.
  1308. * src/CreateRequestCommand.cc
  1309. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1310. Fixed the bug that slow server is not knocked down in favor of
  1311. faster one.
  1312. * src/AbstractCommand.cc
  1313. * src/DefaultPieceStorage.cc
  1314. * src/DefaultPieceStorage.h
  1315. * src/PieceStorage.h
  1316. * src/UnknownLengthPieceStorage.cc
  1317. * src/UnknownLengthPieceStorage.h
  1318. * test/MockPieceStorage.h
  1319. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1320. Fixed the bug that Request object is not added to
  1321. _inFlightRequests in findFasterRequest().
  1322. * src/FileEntry.cc
  1323. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Changed the strategry of how to increase the number of outstanding
  1325. requests. Now the number is doubled if there are no outstanding
  1326. requests after receiving messages.
  1327. * src/BtConstants.h
  1328. * src/DefaultBtInteractive.cc
  1329. * src/DefaultBtInteractive.h
  1330. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Check socket for reading if there are outstanding requests.
  1332. * src/PeerInteractionCommand.cc
  1333. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Moved frequently called methods to header file so they get
  1335. inlined.
  1336. * src/RequestSlot.cc
  1337. * src/RequestSlot.h
  1338. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Copied in_addr instead of just casting from char* which might
  1340. violate strict aliasing rules.
  1341. * src/AsyncNameResolver.cc
  1342. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1343. Use dynamic_pointer_cast
  1344. * test/BtPieceMessageTest.cc
  1345. * test/BtRequestMessageTest.cc
  1346. * test/DefaultBtRequestFactoryTest.cc
  1347. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Added testSetUrl20()
  1349. * test/RequestTest.cc
  1350. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Code cleanup
  1352. * src/bittorrent_helper.cc
  1353. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Use C++ style cast
  1355. * src/AsyncNameResolver.cc
  1356. * src/Base64.h
  1357. * src/BtBitfieldMessage.cc
  1358. * src/BtHandshakeMessage.cc
  1359. * src/DefaultBtMessageFactory.cc
  1360. * src/DefaultBtProgressInfoFile.cc
  1361. * src/EpollEventPoll.cc
  1362. * src/ExpatMetalinkProcessor.cc
  1363. * src/IteratableChecksumValidator.cc
  1364. * src/IteratableChunkChecksumValidator.cc
  1365. * src/MessageDigestHelper.cc
  1366. * src/Platform.cc
  1367. * src/RequestGroupMan.cc
  1368. * src/SingleFileAllocationIterator.cc
  1369. * src/Sqlite3MozCookieParser.cc
  1370. * src/XML2SAXMetalinkProcessor.cc
  1371. * src/Xml2XmlRpcRequestProcessor.cc
  1372. * src/util.cc
  1373. * src/util.h
  1374. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Fixed integer potential alignment problem.
  1376. * src/bitfield.h
  1377. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1379. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1380. include file ordering.
  1381. * src/PeerListProcessor.h
  1382. * src/bittorrent_helper.cc
  1383. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1385. * src/Request.cc
  1386. * src/util.cc
  1387. * src/util.h
  1388. * test/RequestTest.cc
  1389. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Rewritten util::uitos()
  1391. * src/util.h
  1392. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Code cleanup
  1394. * src/Request.cc
  1395. * src/Request.h
  1396. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Rewritten Request::parseUrl()
  1398. * src/Request.cc
  1399. * test/RequestTest.cc
  1400. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Removed unused macro SAFE_CHARS
  1402. * src/Request.cc
  1403. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Updated doc
  1405. * src/DHTRoutingTableDeserializer.cc
  1406. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Release 1.6.3
  1408. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1409. Removed unused function.
  1410. * test/DHTPeerAnnounceStorageTest.cc
  1411. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1412. Only decrement cols if cols > 0
  1413. * src/ConsoleStatCalc.cc
  1414. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1416. translations. Thanks to all translators.
  1417. * po/ca.po
  1418. * po/fr.po
  1419. * po/it.po
  1420. * po/ja.po
  1421. * po/pl.po
  1422. * po/ru.po
  1423. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Updated translation template
  1425. * po
  1426. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1427. Fixed compile error without ssl library.
  1428. * src/util.cc
  1429. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Logged received nodes in get_peers reply message.
  1431. * src/DHTAbstractNodeLookupTask.cc
  1432. * src/DHTAbstractNodeLookupTask.h
  1433. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1434. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1435. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1436. * src/DHTMessageDispatcherImpl.cc
  1437. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1438. Don't reuse URI if Request pool is not empty.
  1439. * src/CreateRequestCommand.cc
  1440. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1442. receive get_peers request for torrent which the client is now
  1443. downloading.
  1444. * src/BtSetup.cc
  1445. * src/DHTPeerAnnounceEntry.cc
  1446. * src/DHTPeerAnnounceEntry.h
  1447. * src/DHTPeerAnnounceStorage.cc
  1448. * src/DHTPeerAnnounceStorage.h
  1449. * src/RequestGroup.cc
  1450. * test/DHTPeerAnnounceEntryTest.cc
  1451. * test/DHTPeerAnnounceStorageTest.cc
  1452. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. Fixed the bug that in Windows environment new blank line is
  1454. inserted when console readout is updated.
  1455. * src/ConsoleStatCalc.cc
  1456. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Throw exception if binding listening port is failed. Removed
  1458. RequestGroupMan::getInitialCommand(). Use
  1459. fillRequestGroupFromReserver() instead. Delete commands for
  1460. RequestGroup which has errors when it is being added.
  1461. * src/BtSetup.cc
  1462. * src/DownloadEngine.cc
  1463. * src/DownloadEngine.h
  1464. * src/DownloadEngineFactory.cc
  1465. * src/MultiUrlRequestInfo.cc
  1466. * src/RequestGroupMan.cc
  1467. * src/RequestGroupMan.h
  1468. * test/RequestGroupManTest.cc
  1469. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Fixed the bug that when downloading more than one torrent,
  1471. listening port is not reported properly to tracker for 2nd or
  1472. later torrents.
  1473. * src/BtSetup.cc
  1474. * src/PeerListenCommand.cc
  1475. * src/PeerListenCommand.h
  1476. * src/RequestGroup.cc
  1477. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Bump up version number to 1.6.3
  1479. * configure.ac
  1480. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Removed Util.cc from POTFILES.in
  1482. * po/POTFILES.in
  1483. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Updated man page for previous change.
  1485. * doc/aria2c.1.txt
  1486. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1487. If user name is embedded but password is missing in URI, first
  1488. resolve password using .netrc. If password is found in .netrc,
  1489. then use it as password. If not, use the password specified in
  1490. --ftp-passwd.
  1491. * src/AuthConfigFactory.cc
  1492. * src/Request.cc
  1493. * src/Request.h
  1494. * test/AuthConfigFactoryTest.cc
  1495. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Fixed typo
  1497. * doc/aria2c.1.txt
  1498. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. Fixed typo
  1500. * src/usage_text.h
  1501. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Added missing bitfield.cc
  1503. * src/bitfield.cc
  1504. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Renamed Util.{cc,h} as util.{cc,h}
  1506. * src/Util.cc
  1507. * src/Util.h
  1508. * src/util.cc
  1509. * src/util.h
  1510. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Moved static functions in Util class to namespace util.
  1512. * src
  1513. * test
  1514. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1516. Moved generateRandomKey to bittorrent_helper.cc.
  1517. * src/DHTBucket.cc
  1518. * src/DHTGetPeersMessage.cc
  1519. * src/DHTGetPeersReplyMessage.cc
  1520. * src/DHTMessage.cc
  1521. * src/DHTNode.cc
  1522. * src/DHTTokenTracker.cc
  1523. * src/DHTUtil.cc: Removed.
  1524. * src/DHTUtil.h: Removed.
  1525. * src/Makefile.am
  1526. * src/Util.cc
  1527. * src/Util.h
  1528. * src/bitfield.h
  1529. * src/bittorrent_helper.cc
  1530. * src/bittorrent_helper.h
  1531. * test/ARC4Test.cc
  1532. * test/BNodeTest.cc
  1533. * test/DHTAnnouncePeerMessageTest.cc
  1534. * test/DHTAnnouncePeerReplyMessageTest.cc
  1535. * test/DHTFindNodeMessageTest.cc
  1536. * test/DHTFindNodeReplyMessageTest.cc
  1537. * test/DHTGetPeersMessageTest.cc
  1538. * test/DHTGetPeersReplyMessageTest.cc
  1539. * test/DHTPingMessageTest.cc
  1540. * test/DHTPingReplyMessageTest.cc
  1541. * test/DHTTokenTrackerTest.cc
  1542. * test/DHTUtilTest.cc: Removed.
  1543. * test/Makefile.am
  1544. * test/UtilTest.cc
  1545. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Removed the call to trim() because trim() is called for each
  1547. element in split().
  1548. * src/CookieParser.cc
  1549. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Replaced Util::slice() with split()
  1551. * src/AbstractCommand.cc
  1552. * src/CookieParser.cc
  1553. * src/File.cc
  1554. * src/HttpHeaderProcessor.cc
  1555. * src/HttpRequest.cc
  1556. * src/Metalink2RequestGroup.cc
  1557. * src/MetalinkParserController.cc
  1558. * src/Netrc.cc
  1559. * src/NsCookieParser.cc
  1560. * src/ParameterizedStringParser.cc
  1561. * src/ServerStatMan.cc
  1562. * src/UriListParser.cc
  1563. * src/Util.cc
  1564. * src/Util.h
  1565. * src/bittorrent_helper.cc
  1566. * test/UtilTest.cc
  1567. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1568. Use request->getDir() instead of "/" for embedded user/pass in
  1569. URI.
  1570. * src/AuthConfigFactory.cc
  1571. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1572. Fixed wrong insertion point for BasicCred.
  1573. * src/AuthConfigFactory.cc
  1574. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Allowed non-regular file in LocalFilePathOptionHandler
  1576. * src/OptionHandlerImpl.h
  1577. * src/message.h
  1578. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1580. * src/Netrc.cc
  1581. * src/Util.h
  1582. * test/NetrcTest.cc
  1583. * test/sample.netrc
  1584. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1585. Fixed typo
  1586. * src/BtDependency.cc
  1587. * src/BtRejectMessage.cc
  1588. * src/FtpConnection.cc
  1589. * src/HttpHeaderProcessor.h
  1590. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Fixed lintian report in man page
  1592. * doc/aria2c.1.txt
  1593. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Release 1.6.2
  1595. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1596. Updated Ukrainian translation. Thanks to all translators.
  1597. * po/uk.po
  1598. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Updated translation template
  1600. * po
  1601. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Bump up version number to 1.6.2
  1603. * configure.ac
  1604. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Updated licence message in -v output.
  1606. * src/version_usage.cc
  1607. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Replaced aria2 with aria2c in help message.
  1609. * src/version_usage.cc
  1610. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1612. * src/version_usage.cc
  1613. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Quoted localedir
  1615. * src/Makefile.am
  1616. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1617. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1618. utime. Check header for utime.h.
  1619. * configure.ac
  1620. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1621. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1622. * configure.ac
  1623. * src/daemon.cc
  1624. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Don't set localedir manually. Leave it to autoconf.
  1626. * configure.ac
  1627. * src/Makefile.am
  1628. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1629. Added --install to ACLOCAL_AMFLAGS.
  1630. Removed m4 from SUBDIRS.
  1631. Updated automake 1.11 and autoconf 2.64.
  1632. Replaced some obsolute macros with new one.
  1633. * Makefile.am
  1634. * configure.ac
  1635. * m4/aria2_arg.m4
  1636. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Removed Makefile.am in m4 directory.
  1638. * configure.ac
  1639. * m4/ChangeLog
  1640. * m4/Makefile.am
  1641. * m4/Makefile.in
  1642. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1643. Removed unused m4 macros.
  1644. * m4/intldir.m4
  1645. * m4/inttypes.m4
  1646. * m4/isc-posix.m4
  1647. * m4/libgnutls-extra.m4
  1648. * m4/ulonglong.m4
  1649. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Fixed the bug that causes segmentation fault if
  1651. req->getCurrentUrl() contains printf formatting characters such as
  1652. %d. The statement that causes this bug is useless and removed.
  1653. * src/AbstractCommand.cc
  1654. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. * Release 1.6.1
  1656. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1657. Updated Simplified Chinese translation. Thanks to translators.
  1658. * po/zh_CN.po
  1659. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Updated translation template
  1661. * po
  1662. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1663. Bump up version number to 1.6.1
  1664. * configure.ac
  1665. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1666. Changed interval from 120 to 60 for dropping inactive peer.
  1667. * src/DefaultBtInteractive.cc
  1668. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Updated man page for --user-agent and --peer-id-prefix option.
  1670. * doc/aria2c.1.txt
  1671. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1672. Code clean up
  1673. * src/BtPostDownloadHandler.cc
  1674. * src/ContentTypeRequestGroupCriteria.cc
  1675. * src/ContentTypeRequestGroupCriteria.h
  1676. * src/DownloadHandlerConstants.cc
  1677. * src/DownloadHandlerConstants.h
  1678. * src/DownloadHandlerFactory.cc
  1679. * src/MetalinkPostDownloadHandler.cc
  1680. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Don't save control file when aria2 exists while checking piece
  1682. hash(behavior of -V option). If control file doesn't exist when
  1683. aria2 launched, the completed length in saved control file will be
  1684. 0 byte and this confuses user. disableSaveControlFile() is called
  1685. in RequestGroup::processCheckIntegrityEntry().
  1686. enableSaveControlFile() will be called after hash checking is
  1687. done. See CheckIntegrityCommand.
  1688. * src/CheckIntegrityCommand.cc
  1689. * src/RequestGroup.cc
  1690. * src/RequestGroup.h
  1691. * src/RequestGroupMan.cc
  1692. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Included version number in Peer ID and client version. Peer ID
  1694. now starts with "aria2/VERSION-", where VERSION is
  1695. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1696. * src/DefaultBtInteractive.cc
  1697. * src/OptionHandlerFactory.cc
  1698. * src/bittorrent_helper.cc
  1699. * src/bittorrent_helper.h
  1700. * src/main.cc
  1701. * src/usage_text.h
  1702. * test/BittorrentHelperTest.cc
  1703. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Fixed memory leak.
  1705. * src/DownloadCommand.cc
  1706. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1707. Removed server, port, user and passwd key from options before
  1708. XMLRPC::Client.call since they are not options of aria2.
  1709. * doc/xmlrpc/aria2mon
  1710. * doc/xmlrpc/aria2rpc
  1711. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1712. Included version number in user-agent string.
  1713. * src/OptionHandlerFactory.cc
  1714. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1715. Fixed the bug that the option values changed by XML-RPC
  1716. method(changeOption and changeGlobalOption) are overwritten to the
  1717. previous value by the next these request which doesn't contain
  1718. that option value. Supporse max-download-limit is initially 0. You
  1719. changed this value to 100K by changeOption. Then you issue
  1720. changeOption request to change max-upload-limit to 50K. This
  1721. second request doesn't contain xml-download-limit, so it is back
  1722. to initial value, 0. Another improvement is that exception is
  1723. thrown when changeOption and changeGlobalOption request contains
  1724. option name which doesn't allowed in each request.
  1725. * src/DownloadEngine.h
  1726. * src/XmlRpcMethod.cc
  1727. * src/XmlRpcMethod.h
  1728. * src/XmlRpcMethodImpl.cc
  1729. * src/download_helper.cc
  1730. * src/download_helper.h
  1731. * test/XmlRpcMethodTest.cc
  1732. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1733. Added missing MetalinkParserStateImpl.{cc,h}
  1734. * src/MetalinkParserStateImpl.cc
  1735. * src/MetalinkParserStateImpl.h
  1736. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1737. Put all MetalinkParserState subclasses into
  1738. MetalinkParserStateImpl.cc. Use stack to track element structure.
  1739. * src/FileMetalinkParserState.cc: Removed
  1740. * src/FileMetalinkParserState.h: Removed
  1741. * src/FilesMetalinkParserState.cc: Removed
  1742. * src/FilesMetalinkParserState.h: Removed
  1743. * src/FinMetalinkParserState.cc: Removed
  1744. * src/FinMetalinkParserState.h: Removed
  1745. * src/HashMetalinkParserState.cc: Removed
  1746. * src/HashMetalinkParserState.h: Removed
  1747. * src/InitialMetalinkParserState.cc: Removed
  1748. * src/InitialMetalinkParserState.h: Removed
  1749. * src/LanguageMetalinkParserState.cc: Removed
  1750. * src/LanguageMetalinkParserState.h: Removed
  1751. * src/Makefile.am
  1752. * src/MetalinkMetalinkParserState.cc: Removed
  1753. * src/MetalinkMetalinkParserState.h: Removed
  1754. * src/MetalinkParserState.h
  1755. * src/MetalinkParserStateMachine.cc
  1756. * src/MetalinkParserStateMachine.h
  1757. * src/OSMetalinkParserState.cc: Removed
  1758. * src/OSMetalinkParserState.h: Removed
  1759. * src/PieceHashMetalinkParserState.cc: Removed
  1760. * src/PieceHashMetalinkParserState.h: Removed
  1761. * src/PiecesMetalinkParserState.cc: Removed
  1762. * src/PiecesMetalinkParserState.h: Removed
  1763. * src/ResourcesMetalinkParserState.cc: Removed
  1764. * src/ResourcesMetalinkParserState.h: Removed
  1765. * src/SignatureMetalinkParserState.cc: Removed
  1766. * src/SignatureMetalinkParserState.h: Removed
  1767. * src/SizeMetalinkParserState.cc: Removed
  1768. * src/SizeMetalinkParserState.h: Removed
  1769. * src/SkipTagMetalinkParserState.cc: Removed
  1770. * src/SkipTagMetalinkParserState.h: Removed
  1771. * src/URLMetalinkParserState.cc: Removed
  1772. * src/URLMetalinkParserState.h: Removed
  1773. * src/VerificationMetalinkParserState.cc: Removed
  1774. * src/VerificationMetalinkParserState.h: Removed
  1775. * src/VersionMetalinkParserState.cc: Removed
  1776. * src/VersionMetalinkParserState.h: Removed
  1777. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1778. Move all functions in PeerMessageUtil to bittorrent_helper.
  1779. * src/BtBitfieldMessage.cc
  1780. * src/BtBitfieldMessageValidator.h
  1781. * src/BtExtendedMessage.cc
  1782. * src/BtHandshakeMessage.cc
  1783. * src/BtHandshakeMessageValidator.h
  1784. * src/BtPieceMessage.cc
  1785. * src/BtPieceMessageValidator.h
  1786. * src/BtPortMessage.cc
  1787. * src/DHTFindNodeReplyMessage.cc
  1788. * src/DHTGetPeersReplyMessage.cc
  1789. * src/DHTMessageFactoryImpl.cc
  1790. * src/DHTRoutingTableDeserializer.cc
  1791. * src/DHTRoutingTableSerializer.cc
  1792. * src/DHTTokenTracker.cc
  1793. * src/DefaultBtMessageFactory.cc
  1794. * src/IndexBtMessage.cc
  1795. * src/IndexBtMessage.h
  1796. * src/IndexBtMessageValidator.h
  1797. * src/Makefile.am
  1798. * src/PeerMessageUtil.cc: Removed.
  1799. * src/PeerMessageUtil.h: Removed.
  1800. * src/RangeBtMessage.cc
  1801. * src/RangeBtMessage.h
  1802. * src/RangeBtMessageValidator.h
  1803. * src/UTPexExtensionMessage.cc
  1804. * src/ZeroBtMessage.cc
  1805. * src/ZeroBtMessage.h
  1806. * src/bittorrent_helper.cc
  1807. * src/bittorrent_helper.h
  1808. * test/BittorrentHelperTest.cc
  1809. * test/BtAllowedFastMessageTest.cc
  1810. * test/BtBitfieldMessageTest.cc
  1811. * test/BtCancelMessageTest.cc
  1812. * test/BtChokeMessageTest.cc
  1813. * test/BtExtendedMessageTest.cc
  1814. * test/BtHandshakeMessageTest.cc
  1815. * test/BtHaveAllMessageTest.cc
  1816. * test/BtHaveMessageTest.cc
  1817. * test/BtHaveNoneMessageTest.cc
  1818. * test/BtInterestedMessageTest.cc
  1819. * test/BtNotInterestedMessageTest.cc
  1820. * test/BtPieceMessageTest.cc
  1821. * test/BtPortMessageTest.cc
  1822. * test/BtRejectMessageTest.cc
  1823. * test/BtRequestMessageTest.cc
  1824. * test/BtSuggestPieceMessageTest.cc
  1825. * test/BtUnchokeMessageTest.cc
  1826. * test/DHTFindNodeReplyMessageTest.cc
  1827. * test/DHTGetPeersReplyMessageTest.cc
  1828. * test/DHTMessageFactoryImplTest.cc
  1829. * test/DHTRoutingTableDeserializerTest.cc
  1830. * test/DHTRoutingTableSerializerTest.cc
  1831. * test/DefaultBtMessageFactoryTest.cc
  1832. * test/DefaultExtensionMessageFactoryTest.cc
  1833. * test/Makefile.am
  1834. * test/PeerListProcessorTest.cc
  1835. * test/PeerMessageUtilTest.cc: Removed.
  1836. * test/UTPexExtensionMessageTest.cc
  1837. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Limit the size of values list when sending get_peers reply.
  1839. * src/DHTGetPeersReplyMessage.cc
  1840. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Updated banner
  1842. * doc/xmlrpc/aria2rpc
  1843. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1844. Added missing help message for remove command.
  1845. * doc/xmlrpc/aria2rpc
  1846. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1847. Generated configure and config.h.in
  1848. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1849. Add check for fork(), which is missing on MinGW
  1850. * src/daemon.cc
  1851. * configure.ac
  1852. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1853. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1854. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1855. Util::httpGMT().
  1856. * src/Util.cc
  1857. * src/Util.h
  1858. * test/UtilTest.cc
  1859. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1860. * Release 1.6.0
  1861. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1862. Fixed a path to xmlrpc/README.txt
  1863. * doc/Makefile.am
  1864. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1865. Added XML-RPC in -v Configuration output.
  1866. * src/FeatureConfig.cc
  1867. * src/FeatureConfig.h
  1868. * test/FeatureConfigTest.cc
  1869. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Updated Bulgarian, Russian, Slovak and Japanese
  1871. translations. Thanks to all translators.
  1872. * po/bg.po
  1873. * po/ja.po
  1874. * po/ru.po
  1875. * po/sk.po
  1876. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Removed --retry-wait option from aria2rpc
  1878. * doc/xmlrpc/aria2rpc
  1879. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1880. Removed --retry-wait option from man page.
  1881. * doc/aria2c.1.txt
  1882. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Removed --retry-wait option since the current architecture doesn't
  1884. allow sleep for particular URI.
  1885. * src/AbstractCommand.cc
  1886. * src/OptionHandlerFactory.cc
  1887. * src/download_helper.cc
  1888. * src/prefs.cc
  1889. * src/prefs.h
  1890. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1891. Removed Retry-After header support. Since the current architecture
  1892. doesn't allow sleep for particular URI.
  1893. * src/HttpSkipResponseCommand.cc
  1894. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1895. Updated the help message for --daemon option.
  1896. * doc/aria2c.1.txt
  1897. * src/usage_text.h
  1898. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Added our own daemon() function for systems which desn't have
  1900. daemon(3).
  1901. * configure.ac
  1902. * src/Makefile.am
  1903. * src/daemon.cc
  1904. * src/daemon.h
  1905. * src/option_processing.cc
  1906. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Simplified File::getCurrentDir()
  1908. * src/File.cc
  1909. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1910. Use exit() instead of _exit
  1911. * src/RequestGroupMan.cc
  1912. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1913. Replaced "CATEGORY" with "TAGS".
  1914. * src/usage_text.h
  1915. * doc/aria2c.1.txt
  1916. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1917. Updated the help message for --help option.
  1918. * src/usage_text.h
  1919. * doc/aria2c.1.txt
  1920. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1921. Updated man page for added help tags.
  1922. * doc/aria2c.1.txt
  1923. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1924. Added help category #file. Added #file tag to the options related
  1925. to downloaded file.
  1926. * src/OptionHandlerFactory.cc
  1927. * src/help_tags.h
  1928. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1929. Added help categories: #cookie and #hook. Added #https tag to
  1930. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1931. * src/OptionHandlerFactory.cc
  1932. * src/help_tags.h
  1933. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1934. Made MSG_NOT_FILE translatable.
  1935. * src/message.h
  1936. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1937. Updated man page for --help option.
  1938. * doc/aria2c.1.txt
  1939. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Updated doc.
  1941. * src/XmlRpcMethod.h
  1942. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1943. Help category now starts with "#" to distinguish a category from
  1944. keyword search. For example, "http" categroy is now "#http". You
  1945. can type "--help=#http" to get explanation of options related to
  1946. http. If '#' is omitted, then the argument is treated as a keyword
  1947. and aria2 searches options whose name includes the keyword and
  1948. print matched ones. For example, "--help=http" will show options
  1949. whose name includes "http".
  1950. * src/OptionHandlerFactory.cc
  1951. * src/help_tags.h
  1952. * src/usage_text.h
  1953. * src/version_usage.cc
  1954. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Documented missing experimental tag and newly added xml-rpc tag in
  1956. man page.
  1957. * doc/aria2c.1.txt
  1958. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Added xml-rpc help tag. Tagged xml-rpc related options with
  1960. xml-rpc tag.
  1961. * src/OptionHandlerFactory.cc
  1962. * src/help_tags.h
  1963. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1964. Updated message when a path is not a file. Updated common message
  1965. for wrong option.
  1966. * src/OptionHandlerException.cc
  1967. * src/message.h
  1968. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1969. Use File::isFile() instead of File::exists(). Updated message when
  1970. a path is not a file.
  1971. * src/OptionHandlerImpl.cc
  1972. * src/message.h
  1973. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1974. Fixed the bug that server performence profile is not updated when
  1975. aria2c was terminated by emergency shutdown.
  1976. * src/TrackerWatcherCommand.cc
  1977. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1978. Use LocalFilePathOptionHandler for -T and -M option.
  1979. Updated message of MSG_FILE_NOT_EXIST.
  1980. * src/OptionHandlerFactory.cc
  1981. * src/message.h
  1982. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1983. Added LocalFilePathOptionHandler which check whether the specified
  1984. file path does exist or not.
  1985. * src/OptionHandlerImpl.cc
  1986. * src/message.h
  1987. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1988. Updated wiki page URI.
  1989. * README
  1990. * doc/aria2c.1.txt
  1991. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Added README.txt for xmlrpc directory.
  1993. * doc/Makefile.am
  1994. * doc/xmlrpc/README.txt
  1995. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1996. Bump up version number to 1.6.0.
  1997. * configure.ac
  1998. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Added XML-RPC client scripts written in ruby.
  2000. * doc/Makefile.am
  2001. * doc/xmlrpc/aria2mon
  2002. * doc/xmlrpc/aria2rpc
  2003. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2004. Added support for IPv6 literal address in URI. Now aria2 can
  2005. handle URI such as http://[::1]/
  2006. * src/HttpRequest.cc
  2007. * src/HttpRequest.h
  2008. * src/Request.cc
  2009. * src/Request.h
  2010. * test/HttpRequestTest.cc
  2011. * test/OptionHandlerTest.cc
  2012. * test/RequestTest.cc
  2013. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Fixed the bug that HTTP request header for XML-RPC request is not
  2015. parsed properly.
  2016. * src/HttpHeader.cc
  2017. * src/HttpHeaderProcessor.cc
  2018. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. Fixed the bug that XML-RPC authorization might be done before HTTP
  2020. request header is fully received.
  2021. * src/HttpServerCommand.cc
  2022. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Documented --xml-rpc-listen-all option in man page.
  2024. * doc/aria2c.1.txt
  2025. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Added --xml-rpc-listen-all option. If true is given to this
  2027. option, aria2 listens incoming XML-RPC requests on all network
  2028. interfaces. If false is given, listens only on local loopback
  2029. interface. The default value is false.
  2030. * src/HttpListenCommand.cc
  2031. * src/OptionHandlerFactory.cc
  2032. * src/SocketCore.cc
  2033. * src/SocketCore.h
  2034. * src/prefs.cc
  2035. * src/prefs.h
  2036. * src/usage_text.h
  2037. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2038. * Release 1.5.2
  2039. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2040. Updated Ukrainian and Russian translations. Thanks to all
  2041. translators.
  2042. * po/ru.po
  2043. * po/uk.po
  2044. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2045. Bump up version number to 1.5.2
  2046. * configure.ac
  2047. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. Get comment, comment.utf-8, created by and creation date from
  2049. .torrent file and print them in -S output.
  2050. * src/bittorrent_helper.cc
  2051. * src/bittorrent_helper.h
  2052. * test/BittorrentHelperTest.cc
  2053. * test/test.torrent
  2054. * test/utf8.torrent
  2055. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2056. Show exact file size along in -S option output.
  2057. * src/Util.h
  2058. * src/bittorrent_helper.cc
  2059. * test/UtilTest.cc
  2060. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2061. Avoided unnecessary memory allocation in
  2062. BitfieldMan::getCompletedLength().
  2063. * src/BitfieldMan.cc
  2064. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2065. Fixed the bug that download fails if
  2066. SocketCore::establishConnection() throws exception and aria2
  2067. doesn't try another address.
  2068. * src/AbstractCommand.cc
  2069. * src/InitiateConnectionCommand.cc
  2070. * src/message.h
  2071. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2073. detected properly.
  2074. * m4/sqlite3.m4
  2075. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2076. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2077. because it causes compile error if PARAMS macro is defined.
  2078. * src/XmlRpcElements.cc
  2079. * src/XmlRpcElements.h
  2080. * src/XmlRpcRequestParserStateImpl.cc
  2081. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2082. * Release 1.5.1
  2083. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Bump up version number to 1.5.1
  2085. * configure.ac
  2086. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. Fixed compile error without BitTorrent support
  2088. * src/DefaultBtProgressInfoFile.cc
  2089. * src/DownloadEngine.cc
  2090. * src/DownloadEngine.h
  2091. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Added missing '=' in Download Results
  2093. * src/RequestGroupMan.cc
  2094. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Fixed compiler warning
  2096. * src/DefaultBtProgressInfoFile.cc
  2097. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Fixed compiler warning on 32bit systems.
  2099. * src/DownloadCommand.cc
  2100. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Call flush from ServerStatMan::save()
  2102. * src/ServerStatMan.cc
  2103. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Check stream status after file is opened.
  2105. * src/CookieStorage.cc
  2106. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Rewritten Signature::save()
  2108. * src/Signature.cc
  2109. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Rewritten RequestGroupMan::saveServerStat()
  2111. * src/RequestGroupMan.cc
  2112. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. Rewritten stream error handling
  2114. * src/DHTAutoSaveCommand.cc
  2115. * src/DHTRoutingTableDeserializer.cc
  2116. * src/DHTRoutingTableSerializer.cc
  2117. * src/DHTSetup.cc
  2118. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2119. Check stream status after file is opened.
  2120. * src/DefaultBtProgressInfoFile.cc
  2121. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Rewritten stream error handling
  2123. * src/DefaultBtProgressInfoFile.cc
  2124. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2125. Make sure that stream is closed before renaming file. Unit test
  2126. fails on mingw32 in the previous implementation.
  2127. * src/CookieStorage.cc
  2128. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2129. Fixed the unit test error without sqlite3
  2130. * test/CookieStorageTest.cc
  2131. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2132. Fixed the undefined reference error
  2133. * test/HttpResponseTest.cc
  2134. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2135. * Release 1.5.0
  2136. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2138. Ukrainian translations. Thanks to all translators.
  2139. * po/ru.po
  2140. * po/it.po
  2141. * po/da.po
  2142. * po/bg.po
  2143. * po/ja.po
  2144. * po/uk.po
  2145. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Added missing src/Logger.cc
  2147. * src/Logger.cc
  2148. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Rewritten Logger to avoiding constly virtual call.
  2150. * src/LogFactory.cc
  2151. * src/LogFactory.h
  2152. * src/Logger.h
  2153. * src/Makefile.am
  2154. * src/Makefile.in
  2155. * src/NullLogger.h: Removed.
  2156. * src/SimpleLogger.cc
  2157. * src/SimpleLogger.h
  2158. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Updated doc
  2160. * src/main.cc
  2161. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2162. Updated debug log message
  2163. * src/AbstractCommand.cc
  2164. * src/message.h
  2165. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Avoid to create zombie process when commands specified in
  2167. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2168. X and NetBSD.
  2169. * src/main.cc
  2170. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Fixed typo
  2172. * src/usage_text.h
  2173. * doc/aria2c.1.txt
  2174. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Documented 'errorCode' of tellStatus in man page.
  2176. * doc/aria2c.1.txt
  2177. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2179. This key is only available for stopped/completed downloads and its
  2180. value is the error code defined in EXIT STATUS in man page.
  2181. * src/XmlRpcMethodImpl.cc
  2182. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2183. Fixed the bug that session download length is not updated when
  2184. PeerStat is not fastest one.
  2185. * src/SegmentMan.cc
  2186. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2187. Updated doc.
  2188. * doc/aria2c.1.txt
  2189. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2190. Updated doc.
  2191. * src/AbstractCommand.cc
  2192. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2193. Handle the case when DownloadContext has no FileEntry.
  2194. * src/XmlRpcMethodImpl.cc
  2195. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Handle the situation where struct option.name is char *.
  2197. * configure.ac
  2198. * src/OptionParser.cc
  2199. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Code cleanup
  2201. * src/AbstractCommand.cc
  2202. * src/DownloadCommand.cc
  2203. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2204. Use option of each download to create AuthConfig instead of global
  2205. option.
  2206. * src/AuthConfigFactory.cc
  2207. * src/AuthConfigFactory.h
  2208. * src/FtpNegotiationCommand.cc
  2209. * src/HttpRequest.cc
  2210. * src/HttpRequest.h
  2211. * src/HttpRequestCommand.cc
  2212. * src/HttpSkipResponseCommand.cc
  2213. * src/MultiUrlRequestInfo.cc
  2214. * test/AuthConfigFactoryTest.cc
  2215. * test/FtpConnectionTest.cc
  2216. * test/HttpRequestTest.cc
  2217. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Don't call prepareForRetry(1) if all segments are ignored in
  2219. SegmentMan.
  2220. * src/AbstractCommand.cc
  2221. * src/BitfieldMan.cc
  2222. * src/BitfieldMan.h
  2223. * src/SegmentMan.cc
  2224. * src/SegmentMan.h
  2225. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Removed FileEntry::getAssociatedUris()
  2227. * src/FileEntry.h
  2228. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Updated doc: TODO1.5 -> TODO
  2230. * src/FileEntry.cc
  2231. * src/HttpResponseCommand.cc
  2232. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2234. involved.
  2235. * src/RequestGroup.cc
  2236. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Eliminated duplicated filterBitfield initialization code.
  2238. * src/BitfieldMan.cc
  2239. * src/BitfieldMan.h
  2240. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2242. relatively naive approach, though). For DownloadFailureException,
  2243. we handle the case when req is null properly.
  2244. * src/AbstractCommand.cc
  2245. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2246. Added function returning suffix of control file to
  2247. DefaultBtProgressInfoFile.
  2248. * src/DefaultBtProgressInfoFile.cc
  2249. * src/DefaultBtProgressInfoFile.h
  2250. * src/RequestGroup.cc
  2251. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Documented getVersion in man page.
  2253. * doc/aria2c.1.txt
  2254. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Documented type of offset and num for tellWaiting xml-rpc method.
  2256. * doc/aria2c.1.txt
  2257. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Implemented getVersion xml-rpc method. This method returns struct
  2259. which has 2 key-value pairs: "version" key is associated to the
  2260. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2261. associated to the list of enabled features, such as "Async DNS",
  2262. "BitTorrent".
  2263. * src/FeatureConfig.h
  2264. * src/XmlRpcMethodFactory.cc
  2265. * src/XmlRpcMethodImpl.cc
  2266. * src/XmlRpcMethodImpl.h
  2267. * test/XmlRpcMethodTest.cc
  2268. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2270. for compatibility issue.
  2271. * src/SocketCore.cc
  2272. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2273. Fixed compile error with openSSL
  2274. * src/bittorrent_helper.cc
  2275. * src/messageDigest.h
  2276. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Removed bad code: setting certificate type priority to key
  2278. exchange priority.
  2279. * src/SocketCore.cc
  2280. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2281. Disconnect seeder if client is also in seed state.
  2282. * src/BtBitfieldMessage.cc
  2283. * src/BtHaveAllMessage.cc
  2284. * src/BtHaveMessage.cc
  2285. * src/message.h
  2286. * test/BtBitfieldMessageTest.cc
  2287. * test/BtHaveAllMessageTest.cc
  2288. * test/BtHaveMessageTest.cc
  2289. * test/MockPieceStorage.h
  2290. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2291. Keep CreateRequestCommand in queue when no segment is available so
  2292. that they can pick up pieces which slow BitTorrent peers are
  2293. downloading.
  2294. * src/AbstractCommand.cc
  2295. * src/CreateRequestCommand.cc
  2296. * src/CreateRequestCommand.h
  2297. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. --bt-stop-timeout now only checks download speed.
  2299. * src/BtStopDownloadCommand.cc
  2300. * src/BtStopDownloadCommand.h
  2301. * src/BtSetup.cc
  2302. * src/usage_text.h
  2303. * doc/aria2c.1.txt
  2304. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2305. Fixed compile error regarding BUFSIZE.
  2306. * src/DownloadCommand.cc
  2307. * src/DownloadCommand.h
  2308. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2309. Documented tellWaiting xml-rpc method in man page.
  2310. * doc/aria2c.1.txt
  2311. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2312. Bump up version number to 1.5.0
  2313. * configure.ac
  2314. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2315. Removed resolved TODO1.5
  2316. * src/AbstractCommand.cc
  2317. * src/DownloadCommand.cc
  2318. * src/RequestGroup.cc
  2319. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Release pooled and in-flight Request objectsand URIResult objects
  2321. in FileEntry after download completed.
  2322. * src/DownloadContext.cc
  2323. * src/DownloadContext.h
  2324. * src/FileEntry.cc
  2325. * src/FileEntry.h
  2326. * src/RequestGroup.cc
  2327. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2328. Set manual and source attribute in aria2c.1.txt
  2329. * doc/aria2c.1.txt
  2330. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2331. Documented that the default value of --use-head is 'false' in man
  2332. page.
  2333. * doc/aria2c.1.txt
  2334. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. Added bt-stop-timeout option to -i list.
  2336. * doc/aria2c.1.txt
  2337. * src/download_helper.cc
  2338. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2339. Fixed typo
  2340. * doc/aria2c.1.txt
  2341. * src/usage_text.h
  2342. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Removed peer-id-prefix option from -i list.
  2344. * doc/aria2c.1.txt
  2345. * src/download_helper.cc
  2346. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2347. Fixed typo
  2348. * doc/aria2c.1.txt
  2349. * src/usage_text.h
  2350. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Documented --bt-stop-timeout option in man page.
  2352. * doc/aria2c.1.txt
  2353. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2354. Updated README regarding multi-file torrent web-seeding.
  2355. * doc/README.txt
  2356. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Updated man page regarding multi-file torrent web-seeding.
  2358. * doc/aria2c.1.txt
  2359. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2360. Updated doc
  2361. * src/version_usage.cc
  2362. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2363. Winsock select() doesn't work if no socket is in FD_SET. To
  2364. overcome this problem, a dummy socket is added to FD_SET and it is
  2365. given to select().
  2366. * src/SelectEventPoll.cc
  2367. * src/SelectEventPoll.h
  2368. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2369. Disabled --use-head option by default because --use-head=true
  2370. causes problems on some web sites.
  2371. * src/OptionHandlerFactory.cc
  2372. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2373. Print URL List in -S option for torrent.
  2374. * src/bittorrent_helper.cc
  2375. * src/bittorrent_helper.h
  2376. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2377. Allocate buffer in ctor of DownloadCommand.
  2378. * src/DownloadCommand.cc
  2379. * src/DownloadCommand.h
  2380. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Removed DiskAdaptor::onDownloadComplete()
  2382. * src/DirectDiskAdaptor.cc
  2383. * src/DirectDiskAdaptor.h
  2384. * src/DiskAdaptor.h
  2385. * src/MultiDiskAdaptor.cc
  2386. * src/MultiDiskAdaptor.h
  2387. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2388. Committed missing BtStopDownloadCommand.{cc,h}
  2389. * src/BtStopDownloadCommand.cc
  2390. * src/BtStopDownloadCommand.h
  2391. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2392. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2393. download if the download speed is 0 and the number of seeder is 0
  2394. in consecutive SEC seconds. By default, this function is disabled.
  2395. * src/BtSetup.cc
  2396. * src/Makefile.am
  2397. * src/OptionHandlerFactory.cc
  2398. * src/prefs.cc
  2399. * src/prefs.h
  2400. * src/usage_text.h
  2401. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Removed the call to DiskAdaptor::onDownloadComplete() from
  2403. BtCheckIntegrityEntry and DefaultPieceStorage.
  2404. * src/BtCheckIntegrityEntry.cc
  2405. * src/DefaultPieceStorage.cc
  2406. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2407. Commented out throw statements when number of piece is 0 to
  2408. download 0 length torrent.
  2409. * src/bittorrent_helper.cc
  2410. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2411. Call RequestGroup::createNextCommandWithAdj() from
  2412. BtFileAllocationEntry if at least one FileEntry has URI. The
  2413. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2414. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2415. * src/BtFileAllocationEntry.cc
  2416. * src/FileEntry.h
  2417. * src/RequestGroup.cc
  2418. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Generate peer ID after SimpleRandomizer is initialized.
  2420. * src/main.cc
  2421. * src/option_processing.cc
  2422. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2423. Removed unused method argument.
  2424. * src/CreateRequestCommand.cc
  2425. * src/RequestGroup.cc
  2426. * src/RequestGroup.h
  2427. * src/RequestGroupMan.cc
  2428. * src/TrackerWatcherCommand.cc
  2429. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2430. Made URI reusing function work.
  2431. * src/CreateRequestCommand.cc
  2432. * src/FileEntry.cc
  2433. * src/FileEntry.h
  2434. * test/FileEntryTest.cc
  2435. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2436. Add formerly fastest PeerStat's sessionDownloadLength to new
  2437. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2438. bytes in a session.
  2439. * src/PeerStat.cc
  2440. * src/SegmentMan.cc
  2441. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2442. If pipelining is enabled, we can always pool socket.
  2443. * src/HttpDownloadCommand.cc
  2444. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2445. In a single file download, file size becomes known just after
  2446. downloading, set total length to FileEntry object when download
  2447. completed.
  2448. * src/DownloadCommand.cc
  2449. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Use std::vector::reserve() for fileEntries and pieceHashes in
  2451. bittorrent_helper
  2452. * src/bittorrent_helper.cc
  2453. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2454. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2455. Removed hidden option PREF_RESET_URI.
  2456. * src/AbstractCommand.cc
  2457. * src/OptionHandlerFactory.cc
  2458. * src/prefs.cc
  2459. * src/prefs.h
  2460. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2461. Removed unused variable/function.
  2462. * src/PeerStat.h
  2463. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2464. Show first URL in Download Results if file path is not available.
  2465. * src/FileEntry.h
  2466. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Throw exception if file path doesn't exist in FTP URL.
  2468. * src/InitiateConnectionCommandFactory.cc
  2469. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2471. * src/BitfieldMan.cc
  2472. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2474. of PeerStat in SegmentMan. peerStats is used for calculating
  2475. download speed. Therefore all active PeerStats should be in
  2476. there. Another one is _fastestPeerStats and it only contains
  2477. fastest PeerStat for each hostname/protocol pair. They are used
  2478. for updating ServerStat.
  2479. * src/DownloadCommand.cc
  2480. * src/Request.h
  2481. * src/RequestGroupMan.cc
  2482. * src/SegmentMan.cc
  2483. * src/SegmentMan.h
  2484. * test/SegmentManTest.cc
  2485. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Try all available addresses returned by DNS until it gets
  2487. connected in HTTP(S)/FTP download
  2488. * src/AbstractCommand.cc
  2489. * src/AbstractCommand.h
  2490. * src/AbstractProxyRequestCommand.cc
  2491. * src/AbstractProxyRequestCommand.h
  2492. * src/DNSCache.h
  2493. * src/DownloadEngine.cc
  2494. * src/DownloadEngine.h
  2495. * src/FtpInitiateConnectionCommand.cc
  2496. * src/FtpInitiateConnectionCommand.h
  2497. * src/FtpNegotiationCommand.cc
  2498. * src/FtpNegotiationCommand.h
  2499. * src/HttpInitiateConnectionCommand.cc
  2500. * src/HttpInitiateConnectionCommand.h
  2501. * src/HttpRequestCommand.cc
  2502. * src/HttpRequestCommand.h
  2503. * src/InitiateConnectionCommand.cc
  2504. * src/InitiateConnectionCommand.h
  2505. * test/DNSCacheTest.cc
  2506. * test/Makefile.am
  2507. * test/SimpleDNSCacheTest.cc
  2508. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2509. Updated doc
  2510. * src/download_helper.cc
  2511. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Refactored fieldMan ctor.
  2513. * src/BitfieldMan.cc
  2514. * src/BitfieldMan.h
  2515. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. Don't print "No files to download." message if -S is given.
  2517. * src/main.cc
  2518. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2519. Set referer and method to newly created Request object.
  2520. * src/CreateRequestCommand.cc
  2521. * src/FileEntry.cc
  2522. * src/FileEntry.h
  2523. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2524. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2525. * src/AbstractCommand.cc
  2526. * src/AbstractCommand.h
  2527. * src/CreateRequestCommand.cc
  2528. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Get proxy download working
  2530. * src/AbstractProxyRequestCommand.cc
  2531. * src/AbstractProxyRequestCommand.h
  2532. * src/AbstractProxyResponseCommand.cc
  2533. * src/AbstractProxyResponseCommand.h
  2534. * src/FtpInitiateConnectionCommand.cc
  2535. * src/FtpTunnelRequestCommand.cc
  2536. * src/FtpTunnelRequestCommand.h
  2537. * src/FtpTunnelResponseCommand.cc
  2538. * src/FtpTunnelResponseCommand.h
  2539. * src/HttpInitiateConnectionCommand.cc
  2540. * src/HttpProxyRequestCommand.cc
  2541. * src/HttpProxyRequestCommand.h
  2542. * src/HttpProxyResponseCommand.cc
  2543. * src/HttpProxyResponseCommand.h
  2544. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Use SegmentMan::getSegment(cuid) for single file download.
  2546. * src/AbstractCommand.cc
  2547. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2548. Fixed bufSize calculation
  2549. * src/DownloadCommand.cc
  2550. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Don't append "/" if base URI ends with "/".
  2552. * src/bittorrent_helper.cc
  2553. * test/url-list-multiFile.torrent
  2554. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. HTTP pipelining is now working. Fixed Segmention fault in
  2556. BitfieldMan's copy ctor.
  2557. * src/AbstractCommand.cc
  2558. * src/BitfieldMan.cc
  2559. * src/BitfieldMan.h
  2560. * src/DownloadCommand.cc
  2561. * src/HttpDownloadCommand.cc
  2562. * src/HttpRequest.cc
  2563. * src/SegmentMan.cc
  2564. * src/SegmentMan.h
  2565. * test/BitfieldManTest.cc
  2566. * test/SegmentManTest.cc
  2567. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2568. Removed ServerHost. Same functionality is implemented using
  2569. FileEntry's in-flight Request objects.
  2570. * src/AbstractCommand.cc
  2571. * src/BtDependency.cc
  2572. * src/CreateRequestCommand.cc
  2573. * src/FileEntry.cc
  2574. * src/FileEntry.h
  2575. * src/FtpNegotiationCommand.cc
  2576. * src/HttpResponseCommand.cc
  2577. * src/Makefile.am
  2578. * src/Metalink2RequestGroup.cc
  2579. * src/RequestGroup.cc
  2580. * src/RequestGroup.h
  2581. * src/ServerHost.cc: Removed
  2582. * src/ServerHost.h: Removed
  2583. * test/BtDependencyTest.cc
  2584. * test/FileEntryTest.cc
  2585. * test/RequestGroupTest.cc
  2586. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2587. Rewritten PeerStat handling. In the previous implementation,
  2588. faster command tries to find slower command. In this new
  2589. implementation, slower command tries to find faster command.
  2590. PeerStat is now created in each HTTP/FTP request to get download
  2591. rate correctly. If the download range is small, the download rate
  2592. tends to small and this will occur at the later stage of download.
  2593. * src/AbstractCommand.cc
  2594. * src/DownloadCommand.cc
  2595. * src/FileEntry.cc
  2596. * src/FileEntry.h
  2597. * src/Request.cc
  2598. * src/Request.h
  2599. * src/RequestGroup.h
  2600. * src/RequestGroupMan.cc
  2601. * src/SegmentMan.cc
  2602. * src/SegmentMan.h
  2603. * test/SegmentManTest.cc
  2604. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2605. Removed _uris from RequestGroup. All functions that refer to _uris
  2606. were moved to FileEntry. Exit status code are now defined in
  2607. DownloadResultCode.h.
  2608. * src/AbstractCommand.cc
  2609. * src/AdaptiveURISelector.cc
  2610. * src/AdaptiveURISelector.h
  2611. * src/AutoSaveCommand.cc
  2612. * src/BtPostDownloadHandler.cc
  2613. * src/CheckIntegrityDispatcherCommand.cc
  2614. * src/CookieStorage.cc
  2615. * src/DHTAutoSaveCommand.cc
  2616. * src/DHTBucketRefreshCommand.cc
  2617. * src/DHTEntryPointNameResolveCommand.cc
  2618. * src/DHTInteractionCommand.cc
  2619. * src/DHTPeerAnnounceCommand.cc
  2620. * src/DHTTokenUpdateCommand.cc
  2621. * src/DlAbortEx.h
  2622. * src/DlRetryEx.h
  2623. * src/DownloadCommand.cc
  2624. * src/DownloadContext.h
  2625. * src/DownloadFailureException.h
  2626. * src/DownloadResult.h
  2627. * src/DownloadResultCode.h
  2628. * src/FeedbackURISelector.cc
  2629. * src/FeedbackURISelector.h
  2630. * src/FileEntry.cc
  2631. * src/FileEntry.h
  2632. * src/FtpNegotiationCommand.cc
  2633. * src/HttpListenCommand.cc
  2634. * src/HttpResponseCommand.cc
  2635. * src/HttpServerResponseCommand.cc
  2636. * src/HttpSkipResponseCommand.cc
  2637. * src/InOrderURISelector.cc
  2638. * src/InOrderURISelector.h
  2639. * src/Makefile.am
  2640. * src/Makefile.in
  2641. * src/Metalink2RequestGroup.cc
  2642. * src/MultiUrlRequestInfo.cc
  2643. * src/MultiUrlRequestInfo.h
  2644. * src/OptionHandlerFactory.cc
  2645. * src/PeerListenCommand.cc
  2646. * src/RecoverableException.h
  2647. * src/RequestGroup.cc
  2648. * src/RequestGroup.h
  2649. * src/RequestGroupMan.cc
  2650. * src/RequestGroupMan.h
  2651. * src/TimedHaltCommand.cc
  2652. * src/TrackerWatcherCommand.cc
  2653. * src/URIResult.cc
  2654. * src/URIResult.h
  2655. * src/URISelector.h
  2656. * src/XmlRpcMethodImpl.cc
  2657. * src/bittorrent_helper.cc
  2658. * src/bittorrent_helper.h
  2659. * src/download_helper.cc
  2660. * src/main.cc
  2661. * src/option_processing.cc
  2662. * test/BtDependencyTest.cc
  2663. * test/BtPostDownloadHandlerTest.cc
  2664. * test/CookieStorageTest.cc
  2665. * test/DefaultBtMessageDispatcherTest.cc
  2666. * test/DownloadHandlerFactoryTest.cc
  2667. * test/DownloadHelperTest.cc
  2668. * test/FeedbackURISelectorTest.cc
  2669. * test/FileEntryTest.cc
  2670. * test/InOrderURISelectorTest.cc
  2671. * test/Metalink2RequestGroupTest.cc
  2672. * test/MetalinkPostDownloadHandlerTest.cc
  2673. * test/RequestGroupManTest.cc
  2674. * test/RequestGroupTest.cc
  2675. * test/XmlRpcMethodTest.cc
  2676. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2677. Removed MockBtContext.h
  2678. * test/Makefile.am
  2679. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Removed _currentRequest from StreamCheckIntegrityEntry and
  2681. StreamFileAllocationEntry.
  2682. * src/AbstractCommand.cc
  2683. * src/HttpResponseCommand.cc
  2684. * src/RequestGroup.cc
  2685. * src/StreamCheckIntegrityEntry.cc
  2686. * src/StreamCheckIntegrityEntry.h
  2687. * src/StreamFileAllocationEntry.cc
  2688. * src/StreamFileAllocationEntry.h
  2689. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2690. Rewritten DownloadContext and removed SingleFileDownloadContext
  2691. and BtContext and its derived classes. BitTorrent specific
  2692. attributes are now set by DownloadContext::setAttribute() with key
  2693. bittorrent::BITTORRENT.
  2694. * src/AbstractBtMessage.cc
  2695. * src/AbstractBtMessage.h
  2696. * src/AbstractCommand.cc
  2697. * src/AbstractCommand.h
  2698. * src/AbstractProxyRequestCommand.cc
  2699. * src/AbstractProxyResponseCommand.cc
  2700. * src/ActivePeerConnectionCommand.cc
  2701. * src/ActivePeerConnectionCommand.h
  2702. * src/AnnounceList.cc
  2703. * src/BtCheckIntegrityEntry.cc
  2704. * src/BtConstants.h
  2705. * src/BtContext.h: Removed
  2706. * src/BtDependency.cc
  2707. * src/BtExtendedMessage.cc
  2708. * src/BtPieceMessage.cc
  2709. * src/BtPieceMessage.h
  2710. * src/BtPostDownloadHandler.cc
  2711. * src/BtRegistry.cc
  2712. * src/BtRegistry.h
  2713. * src/BtSetup.cc
  2714. * src/CheckIntegrityCommand.cc
  2715. * src/CheckIntegrityEntry.cc
  2716. * src/ChecksumCheckIntegrityEntry.cc
  2717. * src/ConsoleStatCalc.cc
  2718. * src/ContentTypeRequestGroupCriteria.cc
  2719. * src/DHTGetPeersCommand.cc
  2720. * src/DHTGetPeersCommand.h
  2721. * src/DHTPeerLookupTask.cc
  2722. * src/DHTPeerLookupTask.h
  2723. * src/DHTTaskFactory.h
  2724. * src/DHTTaskFactoryImpl.cc
  2725. * src/DHTTaskFactoryImpl.h
  2726. * src/DefaultBtAnnounce.cc
  2727. * src/DefaultBtAnnounce.h
  2728. * src/DefaultBtContext.cc: Removed
  2729. * src/DefaultBtContext.h: Removed
  2730. * src/DefaultBtInteractive.cc
  2731. * src/DefaultBtInteractive.h
  2732. * src/DefaultBtMessageDispatcher.cc
  2733. * src/DefaultBtMessageDispatcher.h
  2734. * src/DefaultBtMessageFactory.cc
  2735. * src/DefaultBtMessageFactory.h
  2736. * src/DefaultBtMessageReceiver.cc
  2737. * src/DefaultBtMessageReceiver.h
  2738. * src/DefaultBtProgressInfoFile.cc
  2739. * src/DefaultBtRequestFactory.cc
  2740. * src/DefaultBtRequestFactory.h
  2741. * src/DefaultExtensionMessageFactory.cc
  2742. * src/DefaultExtensionMessageFactory.h
  2743. * src/DefaultPeerStorage.cc
  2744. * src/DefaultPeerStorage.h
  2745. * src/DefaultPieceStorage.cc
  2746. * src/DefaultSegmentManFactory.cc
  2747. * src/DiskAdaptor.cc
  2748. * src/DiskAdaptor.h
  2749. * src/DownloadContext.cc
  2750. * src/DownloadContext.h
  2751. * src/DownloadEngine.cc
  2752. * src/DownloadEngineFactory.cc
  2753. * src/DownloadHandler.cc
  2754. * src/DownloadResult.h
  2755. * src/FileAllocationCommand.cc
  2756. * src/FileAllocationDispatcherCommand.cc
  2757. * src/FileAllocationEntry.cc
  2758. * src/FileEntry.h
  2759. * src/FillRequestGroupCommand.cc
  2760. * src/FtpDownloadCommand.cc
  2761. * src/FtpFinishDownloadCommand.cc
  2762. * src/FtpInitiateConnectionCommand.cc
  2763. * src/FtpNegotiationCommand.cc
  2764. * src/FtpTunnelRequestCommand.cc
  2765. * src/FtpTunnelResponseCommand.cc
  2766. * src/HandshakeExtensionMessage.cc
  2767. * src/HandshakeExtensionMessage.h
  2768. * src/HaveEraseCommand.cc
  2769. * src/HttpDownloadCommand.cc
  2770. * src/HttpInitiateConnectionCommand.cc
  2771. * src/HttpProxyRequestCommand.cc
  2772. * src/HttpProxyResponseCommand.cc
  2773. * src/HttpRequest.cc
  2774. * src/HttpRequest.h
  2775. * src/HttpRequestCommand.cc
  2776. * src/HttpResponseCommand.cc
  2777. * src/HttpServerBodyCommand.cc
  2778. * src/HttpServerCommand.cc
  2779. * src/HttpSkipResponseCommand.cc
  2780. * src/InitiateConnectionCommandFactory.cc
  2781. * src/InitiatorMSEHandshakeCommand.cc
  2782. * src/InitiatorMSEHandshakeCommand.h
  2783. * src/IteratableChecksumValidator.cc
  2784. * src/IteratableChecksumValidator.h
  2785. * src/IteratableChunkChecksumValidator.cc
  2786. * src/MSEHandshake.cc
  2787. * src/MSEHandshake.h
  2788. * src/Makefile.am
  2789. * src/Makefile.in
  2790. * src/Metalink2RequestGroup.cc
  2791. * src/MetalinkPostDownloadHandler.cc
  2792. * src/MultiDiskAdaptor.cc
  2793. * src/MultiDiskAdaptor.h
  2794. * src/MultiFileAllocationIterator.cc
  2795. * src/MultiUrlRequestInfo.cc
  2796. * src/PeerChokeCommand.cc
  2797. * src/PeerChokeCommand.h
  2798. * src/PeerInitiateConnectionCommand.cc
  2799. * src/PeerInitiateConnectionCommand.h
  2800. * src/PeerInteractionCommand.cc
  2801. * src/PeerInteractionCommand.h
  2802. * src/PeerReceiveHandshakeCommand.cc
  2803. * src/PieceHashCheckIntegrityEntry.cc
  2804. * src/RealtimeCommand.cc
  2805. * src/ReceiverMSEHandshakeCommand.cc
  2806. * src/RequestGroup.cc
  2807. * src/RequestGroup.h
  2808. * src/RequestGroupEntry.cc
  2809. * src/RequestGroupMan.cc
  2810. * src/SeedCheckCommand.cc
  2811. * src/SeedCheckCommand.h
  2812. * src/SegmentMan.cc
  2813. * src/ShareRatioSeedCriteria.h
  2814. * src/SingleFileDownloadContext.cc: Removed
  2815. * src/SingleFileDownloadContext.h: Removed
  2816. * src/SleepCommand.cc
  2817. * src/StreamCheckIntegrityEntry.cc
  2818. * src/TrackerWatcherCommand.cc
  2819. * src/TrackerWatcherCommand.h
  2820. * src/UnknownLengthPieceStorage.cc
  2821. * src/Util.cc
  2822. * src/Util.h
  2823. * src/XmlRpcMethodImpl.cc
  2824. * src/bittorrent_helper.cc
  2825. * src/bittorrent_helper.h
  2826. * src/download_helper.cc
  2827. * src/main.cc
  2828. * src/option_processing.cc
  2829. * test/BitfieldManTest.cc
  2830. * test/BittorrentHelperTest.cc
  2831. * test/BtCancelMessageTest.cc
  2832. * test/BtChokeMessageTest.cc
  2833. * test/BtDependencyTest.cc
  2834. * test/BtPieceMessageTest.cc
  2835. * test/BtPostDownloadHandlerTest.cc
  2836. * test/BtRegistryTest.cc
  2837. * test/BtRejectMessageTest.cc
  2838. * test/BtRequestMessageTest.cc
  2839. * test/DHTPeerAnnounceStorageTest.cc
  2840. * test/DefaultBtAnnounceTest.cc
  2841. * test/DefaultBtContextTest.cc: Removed
  2842. * test/DefaultBtMessageDispatcherTest.cc
  2843. * test/DefaultBtMessageFactoryTest.cc
  2844. * test/DefaultBtProgressInfoFileTest.cc
  2845. * test/DefaultBtRequestFactoryTest.cc
  2846. * test/DefaultExtensionMessageFactoryTest.cc
  2847. * test/DefaultPeerStorageTest.cc
  2848. * test/DefaultPieceStorageTest.cc
  2849. * test/DirectDiskAdaptorTest.cc
  2850. * test/DownloadContextTest.cc
  2851. * test/DownloadHandlerFactoryTest.cc
  2852. * test/DownloadHelperTest.cc
  2853. * test/HandshakeExtensionMessageTest.cc
  2854. * test/HttpRequestTest.cc
  2855. * test/HttpResponseTest.cc
  2856. * test/IteratableChecksumValidatorTest.cc
  2857. * test/IteratableChunkChecksumValidatorTest.cc
  2858. * test/MSEHandshakeTest.cc
  2859. * test/Makefile.am
  2860. * test/Makefile.in
  2861. * test/Metalink2RequestGroupTest.cc
  2862. * test/MetalinkPostDownloadHandlerTest.cc
  2863. * test/MockBtContext.h: Removed
  2864. * test/MockDHTTaskFactory.h
  2865. * test/MockDownloadContext.h: Removed
  2866. * test/MockPieceStorage.h
  2867. * test/MultiDiskAdaptorTest.cc
  2868. * test/MultiFileAllocationIteratorTest.cc
  2869. * test/RequestGroupManTest.cc
  2870. * test/RequestGroupTest.cc
  2871. * test/SegmentManTest.cc
  2872. * test/ShareRatioSeedCriteriaTest.cc
  2873. * test/SingleFileDownloadContextTest.cc: Removed
  2874. * test/UtilTest.cc
  2875. * test/XmlRpcMethodTest.cc
  2876. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2877. Added experimental support of WEB-Seeding for multi-file torrent.
  2878. Due to fundamental changes in file handling in HTTP/FTP code, many
  2879. functions are not working: PeerStat, ServerHost, proxy..etc
  2880. * src/AbstractCommand.cc
  2881. * src/AbstractCommand.h
  2882. * src/BitfieldMan.cc
  2883. * src/BitfieldMan.h
  2884. * src/CreateRequestCommand.cc
  2885. * src/CreateRequestCommand.h
  2886. * src/DefaultPieceStorage.cc
  2887. * src/DefaultPieceStorage.h
  2888. * src/DownloadCommand.cc
  2889. * src/DownloadCommand.h
  2890. * src/DownloadContext.cc
  2891. * src/DownloadContext.h
  2892. * src/FileEntry.cc
  2893. * src/FileEntry.h
  2894. * src/FtpDownloadCommand.cc
  2895. * src/FtpDownloadCommand.h
  2896. * src/FtpFinishDownloadCommand.cc
  2897. * src/FtpFinishDownloadCommand.h
  2898. * src/FtpInitiateConnectionCommand.cc
  2899. * src/FtpInitiateConnectionCommand.h
  2900. * src/FtpNegotiationCommand.cc
  2901. * src/FtpNegotiationCommand.h
  2902. * src/FtpTunnelResponseCommand.cc
  2903. * src/HttpDownloadCommand.cc
  2904. * src/HttpDownloadCommand.h
  2905. * src/HttpInitiateConnectionCommand.cc
  2906. * src/HttpInitiateConnectionCommand.h
  2907. * src/HttpProxyResponseCommand.cc
  2908. * src/HttpRequest.cc
  2909. * src/HttpRequest.h
  2910. * src/HttpRequestCommand.cc
  2911. * src/HttpRequestCommand.h
  2912. * src/HttpResponseCommand.cc
  2913. * src/HttpResponseCommand.h
  2914. * src/HttpSkipResponseCommand.cc
  2915. * src/HttpSkipResponseCommand.h
  2916. * src/InitiateConnectionCommand.cc
  2917. * src/InitiateConnectionCommand.h
  2918. * src/InitiateConnectionCommandFactory.cc
  2919. * src/InitiateConnectionCommandFactory.h
  2920. * src/Makefile.am
  2921. * src/PieceStorage.h
  2922. * src/RequestGroup.cc
  2923. * src/RequestGroup.h
  2924. * src/RequestGroupMan.cc
  2925. * src/SegmentMan.cc
  2926. * src/SegmentMan.h
  2927. * src/SingleFileDownloadContext.h
  2928. * src/StreamFileAllocationEntry.cc
  2929. * src/TrackerWatcherCommand.cc
  2930. * src/UnknownLengthPieceStorage.cc
  2931. * src/UnknownLengthPieceStorage.h
  2932. * src/array_fun.h
  2933. * src/bitfield.h
  2934. * src/download_helper.cc
  2935. * test/DownloadContextTest.cc
  2936. * test/Makefile.am
  2937. * test/MockDownloadContext.h
  2938. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2939. Added tellWaiting XML-RPC method.
  2940. * src/SingleFileDownloadContext.cc
  2941. * src/XmlRpcMethodFactory.cc
  2942. * src/XmlRpcMethodImpl.cc
  2943. * src/XmlRpcMethodImpl.h
  2944. * test/XmlRpcMethodTest.cc
  2945. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2946. Updated CookieStorageTest
  2947. * test/CookieStorageTest.cc
  2948. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2949. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2950. handle excepion inside these functions.
  2951. * src/LibgnutlsTLSContext.cc
  2952. * src/LibgnutlsTLSContext.h
  2953. * src/LibsslTLSContext.cc
  2954. * src/LibsslTLSContext.h
  2955. * src/MultiUrlRequestInfo.cc
  2956. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2957. Added comment
  2958. * src/RequestGroup.cc
  2959. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2960. In CookieStorage::load() and saveNsFormat(), handle exception
  2961. inside the functions. When saving Cookies, first write temporary
  2962. file and after successful writes, then renames it to final
  2963. destination.
  2964. * src/CookieStorage.cc
  2965. * src/CookieStorage.h
  2966. * src/MultiUrlRequestInfo.cc
  2967. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2968. The default value of --dir option is the absolute path to the
  2969. current directory. If getcwd() is failed, then it is ".", which is
  2970. the same value with old implementation. This change is necessary
  2971. because after daemon() call, the current working directory is
  2972. changed to /.
  2973. * src/File.cc
  2974. * src/File.h
  2975. * src/OptionHandlerFactory.cc
  2976. * src/option_processing.cc
  2977. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2978. Call daemon() with arguments(0,0), which means daemon() changes
  2979. current working directory to / and redirects stdin, stdout and
  2980. stderr to /dev/null.
  2981. * src/option_processing.cc
  2982. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2983. Small performance optimizations.
  2984. * src/RequestGroupMan.cc
  2985. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2986. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2987. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2988. * src/RequestGroupMan.cc
  2989. * src/RequestGroupMan.h
  2990. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2991. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2992. setNoWiat(true) if newly created command calls
  2993. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2994. * src/HttpListenCommand.cc
  2995. * src/HttpServerBodyCommand.cc
  2996. * src/HttpServerCommand.cc
  2997. * src/HttpServerResponseCommand.cc
  2998. * src/InitiateConnectionCommand.cc
  2999. * src/RequestGroup.cc
  3000. * src/StreamFileAllocationEntry.cc
  3001. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3002. Removed include vector
  3003. * src/BtRegistry.h
  3004. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3005. Rewritten BtRegistry
  3006. * src/BtRegistry.cc
  3007. * src/BtRegistry.h
  3008. * src/BtSetup.cc
  3009. * src/ConsoleStatCalc.cc
  3010. * src/PeerInteractionCommand.cc
  3011. * src/PeerReceiveHandshakeCommand.cc
  3012. * src/ReceiverMSEHandshakeCommand.cc
  3013. * src/RequestGroup.cc
  3014. * src/XmlRpcMethodImpl.cc
  3015. * test/BtRegistryTest.cc
  3016. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3018. * src/DefaultBtProgressInfoFile.cc
  3019. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3020. Throw an exception if position is less than 0.
  3021. * src/XmlRpcMethodImpl.cc
  3022. * test/XmlRpcMethodTest.cc
  3023. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3024. Use writeFilePath() in ConsoleStatCalc.cc
  3025. * src/ConsoleStatCalc.cc
  3026. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3027. Receive the return value as const reference from
  3028. DownloadContext::getFileEntries().
  3029. * src/DefaultPieceStorage.cc
  3030. * src/RequestGroupMan.cc
  3031. * src/XmlRpcMethodImpl.cc
  3032. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3033. DownloadContext now has _fileEntries so that
  3034. DownloadContext::getFileEntries() can returns its const reference.
  3035. * src/DefaultBtContext.cc
  3036. * src/DefaultBtContext.h
  3037. * src/DownloadContext.cc
  3038. * src/DownloadContext.h
  3039. * src/SingleFileDownloadContext.cc
  3040. * src/SingleFileDownloadContext.h
  3041. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3042. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3043. writeFilePath() function template from RequestGroupMan.cc to
  3044. FileEntry.h
  3045. * src/FileEntry.h
  3046. * src/RequestGroupMan.cc
  3047. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3048. Documented 'position' parameter is starting from 0 in man page.
  3049. * doc/aria2c.1.txt
  3050. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3051. Updated doc.
  3052. * src/MSEHandshake.cc
  3053. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3054. Removed _acceptFeatures and its accessor functions from
  3055. RequestGroup since they are not used practically.
  3056. * src/HttpRequestCommand.cc
  3057. * src/RequestGroup.cc
  3058. * src/RequestGroup.h
  3059. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3060. Removed member _maxTries from RequestGroup class to avoid
  3061. duplicate option value. Those classes who refer this variable
  3062. should use option value of PREF_MAX_TRIES directly.
  3063. * src/AbstractCommand.cc
  3064. * src/RequestGroup.cc
  3065. * src/RequestGroup.h
  3066. * src/TrackerWatcherCommand.cc
  3067. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3068. * Release 1.4.1
  3069. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3070. Fixed compiler warnings on netbsd
  3071. * src/DHTConnectionImpl.cc
  3072. * src/PeerListenCommand.cc
  3073. * src/PeerSessionResource.cc
  3074. * src/SegmentMan.cc
  3075. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3076. Updated Ukrainian translation. Thanks to all translators.
  3077. * po/uk.po
  3078. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3079. Bump up version number to 1.4.1.
  3080. * configure.ac
  3081. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3082. Added unit tests for strjoin, strconcat and strappend.
  3083. * test/a2functionalTest.cc
  3084. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Rewritten strconcat and strappend using operator+ instead of
  3086. append().
  3087. * src/a2functional.h
  3088. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3089. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3090. is enabled.
  3091. * src/Makefile.am
  3092. * test/Makefile.am
  3093. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3094. Added countSeeder() function which counts seeder in the given
  3095. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3096. * src/ConsoleStatCalc.cc
  3097. * src/Peer.h
  3098. * src/XmlRpcMethodImpl.cc
  3099. * test/PeerTest.cc
  3100. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3101. Documented missing seeder in getPeers xml-rpc method.
  3102. Documented uploadLength and numSeeders.
  3103. * doc/aria2c.1.txt
  3104. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3105. Added uploadLength and numSeeders to the response of tellStatus
  3106. xml-rpc method. Assert that PeerStorage instance is not null
  3107. instead of checking if statement. It should be non-null in this
  3108. context.
  3109. * src/XmlRpcMethodImpl.cc
  3110. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3111. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3112. * src/XmlRpcResponse.cc
  3113. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3114. Avoid intermediate object during string concatenation.
  3115. * src/HttpRequest.cc
  3116. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3117. Added strjoin function template. Use it in pathJoin()
  3118. * src/Util.h
  3119. * src/a2functional.h
  3120. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3121. Avoid intermediate object during string concatenation. Replaced
  3122. post-increment unary operator with pre-increment one in for loop.
  3123. * src/AdaptiveURISelector.cc
  3124. * src/AnnounceList.cc
  3125. * src/AuthConfig.h
  3126. * src/BtBitfieldMessage.cc
  3127. * src/BtExtendedMessage.cc
  3128. * src/BtHandshakeMessage.cc
  3129. * src/BtPieceMessage.cc
  3130. * src/BtPortMessage.cc
  3131. * src/Cookie.cc
  3132. * src/DHTAnnouncePeerMessage.cc
  3133. * src/DHTAutoSaveCommand.cc
  3134. * src/DHTGetPeersReplyMessage.cc
  3135. * src/DHTNode.cc
  3136. * src/DHTQueryMessage.cc
  3137. * src/DHTResponseMessage.cc
  3138. * src/DHTUnknownMessage.cc
  3139. * src/DefaultBtAnnounce.cc
  3140. * src/DefaultBtContext.cc
  3141. * src/DefaultBtInteractive.cc
  3142. * src/DefaultBtProgressInfoFile.cc
  3143. * src/DefaultPeerStorage.cc
  3144. * src/DownloadEngine.cc
  3145. * src/FeatureConfig.cc
  3146. * src/File.cc
  3147. * src/FtpConnection.cc
  3148. * src/FtpNegotiationCommand.cc
  3149. * src/HandshakeExtensionMessage.cc
  3150. * src/HttpConnection.cc
  3151. * src/HttpRequest.cc
  3152. * src/HttpResponseCommand.cc
  3153. * src/HttpServer.cc
  3154. * src/IndexBtMessage.cc
  3155. * src/Metalink2RequestGroup.cc
  3156. * src/OptionHandlerImpl.h
  3157. * src/PStringBuildVisitor.cc
  3158. * src/Peer.cc
  3159. * src/PeerListenCommand.cc
  3160. * src/Piece.cc
  3161. * src/RangeBtMessage.cc
  3162. * src/Request.cc
  3163. * src/Request.h
  3164. * src/RequestGroup.cc
  3165. * src/RequestGroupMan.cc
  3166. * src/ServerStat.cc
  3167. * src/ServerStatMan.cc
  3168. * src/UTPexExtensionMessage.cc
  3169. * src/Util.cc
  3170. * src/a2functional.h
  3171. * src/download_helper.cc
  3172. * src/messageDigest.cc
  3173. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3174. Unchoke a peer randomly at first and second choke round in seed
  3175. state.
  3176. * src/BtSeederStateChoke.cc
  3177. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3178. Added (sock_t) to quiet compiler warnings in MinGW
  3179. * src/SocketCore.cc
  3180. * src/SocketCore.h
  3181. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3182. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3183. * src/EpollEventPoll.h
  3184. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3185. Added fork() emulation using CreateProcess() in MinGW
  3186. * src/RequestGroupMan.cc
  3187. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3188. * Release 1.4.0
  3189. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3190. Added utf8.torrent to EXTRA_DIST
  3191. * test/Makefile.am
  3192. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3193. Fixed docs of aria2.addMetalink xml-rpc method.
  3194. * doc/aria2c.1.txt
  3195. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3196. Added Slovak translation. Updated Ukrainian and Brazilian
  3197. Portuguese translation. Thanks to all translators.
  3198. * po/sk.po
  3199. * po/uk.po
  3200. * po/pt_BR.po
  3201. * po/LINGUAS
  3202. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3203. Added test case for XmlRpcProcessor to fail to parse malformed
  3204. document.
  3205. * test/XmlRpcRequestProcessorTest.cc
  3206. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. Removed *.gmo files in po because they are generated on 'make
  3208. dist'
  3209. * po/*.gmo
  3210. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3211. Documented max-concurrent-downloads of changeGlobalOption method
  3212. in man page.
  3213. * doc/aria2c.1.txt
  3214. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3215. Added max-concurrent-downloads option to changeGlobalOption
  3216. xml-rpc method. Rewritten loop conditional in
  3217. RequestGroupMan::fillRequestGroupFromReserver().
  3218. * src/RequestGroupMan.cc
  3219. * src/RequestGroupMan.h
  3220. * src/XmlRpcMethod.cc
  3221. * src/XmlRpcMethodImpl.cc
  3222. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3223. Documented position parameter in man page.
  3224. * doc/aria2c.1.txt
  3225. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3226. Added 'position' parameter to addUri, addTorrent and addMetalink
  3227. xml-rpc method.
  3228. * src/RequestGroupMan.cc
  3229. * src/RequestGroupMan.h
  3230. * src/XmlRpcMethodImpl.cc
  3231. * test/XmlRpcMethodTest.cc
  3232. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3233. Removed Peer.cc from compile source list when --disable-bittorrent
  3234. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3235. takes Peer.
  3236. * src/DefaultPieceStorage.cc
  3237. * src/DefaultPieceStorage.h
  3238. * src/Makefile.am
  3239. * src/PieceStorage.h
  3240. * src/UnknownLengthPieceStorage.cc
  3241. * src/UnknownLengthPieceStorage.h
  3242. * test/MockPieceStorage.h
  3243. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3244. Implemented getter methods in header files to give them more
  3245. chance of optimization.
  3246. Return const reference for SharadHandle if possible.
  3247. * src/AbstractAuthResolver.cc
  3248. * src/AbstractAuthResolver.h
  3249. * src/AbstractBtMessage.cc
  3250. * src/AbstractBtMessage.h
  3251. * src/AbstractSingleDiskAdaptor.cc
  3252. * src/AbstractSingleDiskAdaptor.h
  3253. * src/AsyncNameResolver.cc
  3254. * src/AsyncNameResolver.h
  3255. * src/BNode.cc
  3256. * src/BNode.h
  3257. * src/BitfieldMan.cc
  3258. * src/BitfieldMan.h
  3259. * src/BtAbortOutstandingRequestEvent.h
  3260. * src/BtExtendedMessage.cc
  3261. * src/BtExtendedMessage.h
  3262. * src/BtSeederStateChoke.cc
  3263. * src/BtSeederStateChoke.h
  3264. * src/Cookie.cc
  3265. * src/Cookie.h
  3266. * src/DHTBucket.cc
  3267. * src/DHTBucket.h
  3268. * src/DHTConnectionImpl.cc
  3269. * src/DHTConnectionImpl.h
  3270. * src/DHTFindNodeReplyMessage.cc
  3271. * src/DHTFindNodeReplyMessage.h
  3272. * src/DHTGetPeersReplyMessage.cc
  3273. * src/DHTGetPeersReplyMessage.h
  3274. * src/DHTInteractionCommand.cc
  3275. * src/DHTMessage.cc
  3276. * src/DHTMessage.h
  3277. * src/DHTMessageDispatcherImpl.cc
  3278. * src/DHTMessageEntry.cc
  3279. * src/DHTMessageReceiver.cc
  3280. * src/DHTMessageReceiver.h
  3281. * src/DHTMessageTrackerEntry.cc
  3282. * src/DHTMessageTrackerEntry.h
  3283. * src/DHTPeerAnnounceEntry.cc
  3284. * src/DHTPeerAnnounceEntry.h
  3285. * src/DHTPeerLookupTask.cc
  3286. * src/DHTPeerLookupTask.h
  3287. * src/DHTRoutingTableDeserializer.cc
  3288. * src/DHTRoutingTableDeserializer.h
  3289. * src/DefaultBtAnnounce.cc
  3290. * src/DefaultBtAnnounce.h
  3291. * src/DefaultBtMessageDispatcher.cc
  3292. * src/DefaultBtMessageDispatcher.h
  3293. * src/DefaultBtRequestFactory.cc
  3294. * src/DefaultBtRequestFactory.h
  3295. * src/DiskAdaptor.cc
  3296. * src/DiskAdaptor.h
  3297. * src/DownloadContext.cc
  3298. * src/DownloadContext.h
  3299. * src/DownloadEngine.cc
  3300. * src/DownloadEngine.h
  3301. * src/EpollEventPoll.cc
  3302. * src/EpollEventPoll.h
  3303. * src/FtpConnection.cc
  3304. * src/FtpConnection.h
  3305. * src/HttpConnection.cc
  3306. * src/HttpConnection.h
  3307. * src/HttpHeader.cc
  3308. * src/HttpHeader.h
  3309. * src/HttpRequest.cc
  3310. * src/HttpRequest.h
  3311. * src/HttpResponse.cc
  3312. * src/HttpResponse.h
  3313. * src/LibsslTLSContext.cc
  3314. * src/LibsslTLSContext.h
  3315. * src/MSEHandshake.cc
  3316. * src/MSEHandshake.h
  3317. * src/MetalinkEntry.cc
  3318. * src/MetalinkEntry.h
  3319. * src/MetalinkParserController.cc
  3320. * src/MetalinkParserController.h
  3321. * src/MetalinkParserStateMachine.cc
  3322. * src/MetalinkParserStateMachine.h
  3323. * src/MultiDiskAdaptor.cc
  3324. * src/MultiDiskAdaptor.h
  3325. * src/NetrcAuthResolver.cc
  3326. * src/NetrcAuthResolver.h
  3327. * src/Peer.cc
  3328. * src/Peer.h
  3329. * src/PeerSessionResource.cc
  3330. * src/PeerSessionResource.h
  3331. * src/Piece.cc
  3332. * src/Piece.h
  3333. * src/PieceStatMan.cc
  3334. * src/PieceStatMan.h
  3335. * src/Request.cc
  3336. * src/Request.h
  3337. * src/RequestGroup.cc
  3338. * src/RequestGroup.h
  3339. * src/RequestGroupMan.cc
  3340. * src/RequestGroupMan.h
  3341. * src/RequestSlot.cc
  3342. * src/RequestSlot.h
  3343. * src/SegmentMan.cc
  3344. * src/SegmentMan.h
  3345. * src/SelectEventPoll.cc
  3346. * src/SelectEventPoll.h
  3347. * src/ServerStat.cc
  3348. * src/ServerStat.h
  3349. * src/Signature.cc
  3350. * src/Signature.h
  3351. * src/URIResult.cc
  3352. * src/URIResult.h
  3353. * src/UTPexExtensionMessage.cc
  3354. * src/UTPexExtensionMessage.h
  3355. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3356. Fixed compile error without BitTorrent and Metalink support.
  3357. * src/XmlRpcMethod.cc
  3358. * src/XmlRpcMethodFactory.cc
  3359. * src/XmlRpcMethodImpl.cc
  3360. * src/XmlRpcMethodImpl.h
  3361. * test/XmlRpcMethodTest.cc
  3362. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3363. Rewritten the help message for --allow-overwrite option.
  3364. * doc/aria2c.1.txt
  3365. * src/usage_text.h
  3366. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3367. Fixed typo
  3368. * doc/aria2c.1.txt
  3369. * src/usage_text.h
  3370. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3371. Updated README for 1.4.0 release. Use new table syntax of
  3372. asciidoc.
  3373. * README
  3374. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3375. Documented --xml-rpc-max-request-size option in man page.
  3376. * doc/aria2c.1.txt
  3377. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3378. Moved C_* constants from BtContext to DefaultBtContext.
  3379. * src/BtContext.cc: Removed.
  3380. * src/BtContext.h
  3381. * src/DefaultBtContext.cc
  3382. * src/DefaultBtContext.h
  3383. * src/Makefile.am
  3384. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3385. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3386. path key respectively when persing .torrent file.
  3387. * src/BtContext.cc
  3388. * src/BtContext.h
  3389. * src/DefaultBtContext.cc
  3390. * test/DefaultBtContextTest.cc
  3391. * test/utf8.torrent
  3392. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3393. Added --xml-rpc-max-request-size option to limit the size of
  3394. XML-RPC request.
  3395. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3396. Documented XML-RPC API in man page.
  3397. * doc/aria2c.1.txt
  3398. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3399. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3400. will break strict-aliasing rules
  3401. * src/PeerConnection.cc
  3402. * test/DHTRoutingTableSerializerTest.cc
  3403. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3404. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3405. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3406. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3407. PKG_CHECK_MODULES macro uses latter name.
  3408. * m4/sqlite3.m4
  3409. * src/Makefile.am
  3410. * test/Makefile.am
  3411. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3412. Fixed typo
  3413. * configure.ac
  3414. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3415. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3416. presence of libgnutls using pkg-config first. If it fails, fall
  3417. back to old macro libgnutls.m4.
  3418. * configure.ac
  3419. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3420. Use s itself instead of !s.bad()
  3421. * src/CookieStorage.cc
  3422. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3423. Documented --on-download-* option and --save-cookies option in man
  3424. page.
  3425. * doc/aria2c.1.txt
  3426. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3427. Set possible values for --load-cookie option to "/path/to/file".
  3428. * src/OptionHandlerFactory.cc
  3429. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3430. Added --save-cookies option.
  3431. * src/Cookie.cc
  3432. * src/Cookie.h
  3433. * src/CookieStorage.cc
  3434. * src/CookieStorage.h
  3435. * src/MultiUrlRequestInfo.cc
  3436. * src/OptionHandlerFactory.cc
  3437. * src/prefs.cc
  3438. * src/prefs.h
  3439. * src/usage_text.h
  3440. * test/CookieStorageTest.cc
  3441. * test/CookieTest.cc
  3442. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Removed tellAll XML-RPC command because its reponse tends to be
  3444. big if stopped/waiting downloads pile up.
  3445. * src/XmlRpcMethodFactory.cc
  3446. * src/XmlRpcMethodImpl.cc
  3447. * src/XmlRpcMethodImpl.h
  3448. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Added the ability to execute command when download starts and
  3450. stops. You can also specify command for particular cases such as
  3451. complete/error download. Added --on-download-start,
  3452. --on-download-stop, --on-download-complete and --on-download-error
  3453. option.
  3454. * src/OptionHandlerFactory.cc
  3455. * src/RequestGroupMan.cc
  3456. * src/prefs.cc
  3457. * src/prefs.h
  3458. * src/usage_text.h
  3459. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3460. Fixed test error
  3461. * test/BencodeTest.cc
  3462. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3463. Added unit tests.
  3464. * test/XmlRpcMethodTest.cc
  3465. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3466. Made exception message more verbose.
  3467. * src/bencode.cc
  3468. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3469. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3470. space in console readout. Also they are now shown in MiB/s if
  3471. speed > 1024KiB/s.
  3472. * src/ConsoleStatCalc.cc
  3473. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3474. Added SEED to console output, which represents the number of
  3475. seeders currently the client is connecting to.
  3476. * src/ConsoleStatCalc.cc
  3477. * src/ConsoleStatCalc.h
  3478. * src/DownloadEngine.cc
  3479. * src/NullStatCalc.h
  3480. * src/StatCalc.h
  3481. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3482. Added source filename(__FILE__) and line number(__LINE__) to
  3483. exception message.
  3484. * src/AbstractCommand.cc
  3485. * src/AbstractDiskWriter.cc
  3486. * src/AbstractProxyResponseCommand.cc
  3487. * src/BDE.h
  3488. * src/BtAllowedFastMessage.cc
  3489. * src/BtHandshakeMessageValidator.h
  3490. * src/BtHaveAllMessage.cc
  3491. * src/BtHaveNoneMessage.cc
  3492. * src/BtPieceMessage.cc
  3493. * src/BtRejectMessage.cc
  3494. * src/ChunkedDecoder.cc
  3495. * src/CookieStorage.cc
  3496. * src/DHTAnnouncePeerMessage.cc
  3497. * src/DHTEntryPointNameResolveCommand.cc
  3498. * src/DHTMessageFactoryImpl.cc
  3499. * src/DHTMessageTracker.cc
  3500. * src/DHTRoutingTableDeserializer.cc
  3501. * src/DHTRoutingTableSerializer.cc
  3502. * src/DHTSetup.cc
  3503. * src/DHTTokenTracker.cc
  3504. * src/DefaultBtAnnounce.cc
  3505. * src/DefaultBtContext.cc
  3506. * src/DefaultBtInteractive.cc
  3507. * src/DefaultBtMessageFactory.cc
  3508. * src/DefaultBtProgressInfoFile.cc
  3509. * src/DefaultExtensionMessageFactory.cc
  3510. * src/DlAbortEx.h
  3511. * src/DlRetryEx.h
  3512. * src/DownloadCommand.cc
  3513. * src/DownloadEngineFactory.cc
  3514. * src/DownloadFailureException.h
  3515. * src/Exception.cc
  3516. * src/Exception.h
  3517. * src/ExpatMetalinkProcessor.cc
  3518. * src/ExpatXmlRpcRequestProcessor.cc
  3519. * src/FallocFileAllocationIterator.cc
  3520. * src/FatalException.h
  3521. * src/FtpConnection.cc
  3522. * src/FtpFinishDownloadCommand.cc
  3523. * src/FtpInitiateConnectionCommand.cc
  3524. * src/FtpNegotiationCommand.cc
  3525. * src/GZipDecoder.cc
  3526. * src/HandshakeExtensionMessage.cc
  3527. * src/HttpConnection.cc
  3528. * src/HttpHeaderProcessor.cc
  3529. * src/HttpInitiateConnectionCommand.cc
  3530. * src/HttpResponse.cc
  3531. * src/HttpResponseCommand.cc
  3532. * src/HttpServer.cc
  3533. * src/HttpSkipResponseCommand.cc
  3534. * src/InitiateConnectionCommandFactory.cc
  3535. * src/IteratableChunkChecksumValidator.cc
  3536. * src/LibgcryptARC4Context.h
  3537. * src/LibgcryptARC4Decryptor.h
  3538. * src/LibgcryptARC4Encryptor.h
  3539. * src/LibgcryptDHKeyExchange.h
  3540. * src/LibgnutlsTLSContext.cc
  3541. * src/LibsslARC4Context.h
  3542. * src/LibsslARC4Decryptor.h
  3543. * src/LibsslARC4Encryptor.h
  3544. * src/LibsslDHKeyExchange.h
  3545. * src/LibsslTLSContext.cc
  3546. * src/MSEHandshake.cc
  3547. * src/MessageDigestHelper.cc
  3548. * src/MetalinkHelper.cc
  3549. * src/MultiDiskAdaptor.cc
  3550. * src/NameMatchOptionHandler.h
  3551. * src/NameResolver.cc
  3552. * src/Netrc.cc
  3553. * src/NsCookieParser.cc
  3554. * src/OptionHandlerException.cc
  3555. * src/OptionHandlerException.h
  3556. * src/OptionHandlerImpl.h
  3557. * src/OptionParser.cc
  3558. * src/ParameterizedStringParser.cc
  3559. * src/PeerAbstractCommand.cc
  3560. * src/PeerConnection.cc
  3561. * src/PeerMessageUtil.cc
  3562. * src/PeerReceiveHandshakeCommand.cc
  3563. * src/Platform.cc
  3564. * src/ReceiverMSEHandshakeCommand.cc
  3565. * src/RecoverableException.h
  3566. * src/RequestGroup.cc
  3567. * src/SimpleLogger.cc
  3568. * src/SocketCore.cc
  3569. * src/Sqlite3MozCookieParser.cc
  3570. * src/UTPexExtensionMessage.cc
  3571. * src/Util.cc
  3572. * src/XML2SAXMetalinkProcessor.cc
  3573. * src/Xml2XmlRpcRequestProcessor.cc
  3574. * src/XmlRpcMethodImpl.cc
  3575. * src/bencode.cc
  3576. * src/download_helper.cc
  3577. * src/messageDigest.h
  3578. * test/ExceptionTest.cc
  3579. * test/TestUtil.cc
  3580. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Bump up version number to 1.4.0
  3582. * configure.ac
  3583. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3584. Added 2files.metalink to EXTRA_DIST
  3585. * test/Makefile.am
  3586. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3587. Added missing 2files.metalink
  3588. * test/2files.metalink
  3589. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3590. Show "[MEMORY]" prefix before filename in download summary if it
  3591. is downloaded into memory.
  3592. * src/DownloadResult.h
  3593. * src/RequestGroup.cc
  3594. * src/RequestGroupMan.cc
  3595. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3596. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3597. * src/ExpatXmlRpcRequestProcessor.cc
  3598. * src/Xml2XmlRpcRequestProcessor.cc
  3599. * src/message.h
  3600. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3601. Defined const BDEs to avoid duplicate instantiation.
  3602. Defined MSG_GID_NOT_PROVIDED.
  3603. * src/XmlRpcMethodImpl.cc
  3604. * src/message.h
  3605. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3606. Code cleanup
  3607. * src/Xml2XmlRpcRequestProcessor.cc
  3608. * src/Xml2XmlRpcRequestProcessor.h
  3609. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3610. Defined ENABLE_XML_RPC
  3611. * configure.ac
  3612. * configure
  3613. * config.h.in
  3614. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3615. Added ExpatXmlRpcRequestProcessor
  3616. * src/ExpatXmlRpcRequestProcessor.cc
  3617. * src/ExpatXmlRpcRequestProcessor.h
  3618. * src/Makefile.am
  3619. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3620. Added tests for addTorrent and addMetalink command.
  3621. * test/TestUtil.cc
  3622. * test/TestUtil.h
  3623. * test/XmlRpcMethodTest.cc
  3624. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3625. Corrected the description of --file-allocation option.
  3626. * doc/aria2c.1.txt
  3627. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3628. Added tellAll command.
  3629. * src/XmlRpcMethodFactory.cc
  3630. * src/XmlRpcMethodImpl.cc
  3631. * src/XmlRpcMethodImpl.h
  3632. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3633. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3634. * src/XmlRpcMethodImpl.cc
  3635. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3636. Added changeGlobalOption command. Currently,
  3637. max-overall-download-limit and max-overall-upload-limit option are
  3638. available.
  3639. * src/RequestGroupMan.h
  3640. * src/XmlRpcMethod.cc
  3641. * src/XmlRpcMethod.h
  3642. * src/XmlRpcMethodFactory.cc
  3643. * src/XmlRpcMethodImpl.cc
  3644. * src/XmlRpcMethodImpl.h
  3645. * test/XmlRpcMethodTest.cc
  3646. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3647. Added changeOption command. Currently, max-download-limit,
  3648. max-upload-limit option are available in this command.
  3649. * src/RequestGroup.h
  3650. * src/XmlRpcMethod.cc
  3651. * src/XmlRpcMethod.h
  3652. * src/XmlRpcMethodFactory.cc
  3653. * src/XmlRpcMethodImpl.cc
  3654. * src/XmlRpcMethodImpl.h
  3655. * test/XmlRpcMethodTest.cc
  3656. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3657. Added purgeDownloadResult command.
  3658. * src/RequestGroupMan.cc
  3659. * src/RequestGroupMan.h
  3660. * src/XmlRpcMethodFactory.cc
  3661. * src/XmlRpcMethodImpl.cc
  3662. * src/XmlRpcMethodImpl.h
  3663. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Refactored.
  3665. * src/XmlRpcMethod.cc
  3666. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3667. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3668. XmlRpcResponse.
  3669. * src/HttpServerBodyCommand.cc
  3670. * src/Makefile.am
  3671. * src/XmlRpcMethod.cc
  3672. * src/XmlRpcMethod.h
  3673. * src/XmlRpcMethodImpl.cc
  3674. * src/XmlRpcResponse.cc
  3675. * src/XmlRpcResponse.h
  3676. * test/XmlRpcMethodTest.cc
  3677. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3678. In XML-RPC option struct, header and index-out option can take
  3679. array as value.
  3680. * src/XmlRpcMethod.cc
  3681. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3682. Removed unused option member from PeerConnection.
  3683. * src/InitiatorMSEHandshakeCommand.cc
  3684. * src/PeerConnection.cc
  3685. * src/PeerConnection.h
  3686. * src/PeerInteractionCommand.cc
  3687. * src/PeerReceiveHandshakeCommand.cc
  3688. * src/ReceiverMSEHandshakeCommand.cc
  3689. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3690. Added "seeder" key to getPeers response.
  3691. * src/XmlRpcMethodImpl.cc
  3692. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3693. Added addMetalink XML-RPC command.
  3694. * src/XmlRpcMethodFactory.cc
  3695. * src/XmlRpcMethodImpl.cc
  3696. * src/XmlRpcMethodImpl.h
  3697. * src/download_helper.cc
  3698. * src/download_helper.h
  3699. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3700. Fixed the bug that POU peers are never choked in seeding.
  3701. * src/BtSeederStateChoke.cc
  3702. * src/BtSeederStateChoke.h
  3703. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3704. Added web-seeding URI handling in addTorrent command.
  3705. * src/XmlRpcMethodImpl.cc
  3706. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3707. Added "length" key to getFiles response.
  3708. * src/XmlRpcMethodImpl.cc
  3709. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. Moved --no-netrc option from ftp option section to http/ftp option
  3711. section.
  3712. * doc/aria2c.1.txt
  3713. * src/OptionHandlerFactory.cc
  3714. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3715. Removed garbage "\" character before '
  3716. * doc/aria2c.1.txt
  3717. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3718. Removed garbage "\" character before http.
  3719. * doc/aria2c.1.txt
  3720. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3721. Documented additional options that can be specified in -i list.
  3722. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  3723. and --xml-rpc-passwd. Removed --enable-http-server and
  3724. --http-server-listen-port.
  3725. * doc/aria2c.1.txt
  3726. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3727. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  3728. * src/DefaultPeerStorage.cc
  3729. * src/DefaultPeerStorage.h
  3730. * src/PeerStorage.h
  3731. * src/XmlRpcMethodImpl.cc
  3732. * test/MockPeerStorage.h
  3733. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3734. Put a call to Socket::isReadable() in try block.
  3735. * src/HttpServerBodyCommand.cc
  3736. * src/HttpServerCommand.cc
  3737. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3738. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  3739. exception , so it is now in try block.
  3740. * src/HttpServerResponseCommand.cc
  3741. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3742. Added "amChoking" and "peerChoking" key in getPeers response.
  3743. * src/XmlRpcMethodImpl.cc
  3744. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3745. Added test case for zero-length filter.
  3746. * test/BitfieldManTest.cc
  3747. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3748. getFiles command now returns file data for finished/stopped
  3749. downloads.
  3750. * src/XmlRpcMethodImpl.cc
  3751. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3752. DownloadResult now has the list of FileEntry. The download
  3753. summary displays the path of first selected file and the number of
  3754. remaining files for multi-file torrent.
  3755. * src/DownloadResult.h
  3756. * src/RequestGroup.cc
  3757. * src/RequestGroupMan.cc
  3758. * test/RequestGroupTest.cc
  3759. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3760. Fixed segmentation fault error when no file is selected in
  3761. multi-file torrent.
  3762. * src/BitfieldMan.cc
  3763. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3764. Escaped <,>,& character in XML-RPC response.
  3765. * src/XmlRpcMethod.cc
  3766. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3767. Throw DlAbortEx instead of FatalException during parsing options
  3768. because we don't want for aria2 to quit when bad option is passed
  3769. via XML-RPC.
  3770. * src/OptionHandlerException.cc
  3771. * src/OptionHandlerException.h
  3772. * src/OptionHandlerImpl.h
  3773. * src/OptionParser.cc
  3774. * src/OptionParser.h
  3775. * src/PStringSegment.cc
  3776. * src/ParameterizedStringParser.cc
  3777. * src/download_helper.cc
  3778. * test/ParameterizedStringParserTest.cc
  3779. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3780. Selecting files are now done in
  3781. DefaultBtContext::setFileFileter().
  3782. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3783. functions are removed because they are no longer used. Creating
  3784. filter in BitfieldMan is done in new funtion
  3785. PieceStorage::setupFileFilter()
  3786. * src/BtContext.cc
  3787. * src/BtContext.h
  3788. * src/DefaultBtContext.cc
  3789. * src/DefaultBtContext.h
  3790. * src/DefaultPieceStorage.cc
  3791. * src/DefaultPieceStorage.h
  3792. * src/DiskAdaptor.cc
  3793. * src/DiskAdaptor.h
  3794. * src/PieceStorage.h
  3795. * src/RequestGroup.cc
  3796. * src/UnknownLengthPieceStorage.h
  3797. * src/XmlRpcMethodImpl.cc
  3798. * test/DefaultBtContextTest.cc
  3799. * test/MockBtContext.h
  3800. * test/MockPieceStorage.h
  3801. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3802. Fixed compile error on Mac OS X
  3803. * src/HttpServer.cc
  3804. * src/XmlRpcMethod.h
  3805. * src/XmlRpcMethodImpl.cc
  3806. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3807. Use std::binary_search instead of std::find
  3808. * src/DefaultPieceStorage.cc
  3809. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3810. Removed unnecessary BDE() call; leave them to implicit conversion.
  3811. * src/XmlRpcMethodImpl.cc
  3812. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. Return connections and gid in string
  3814. * src/XmlRpcMethodImpl.cc
  3815. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3816. Renamed addURI as addUri
  3817. * src/XmlRpcMethodFactory.cc
  3818. * src/XmlRpcMethodImpl.cc
  3819. * src/XmlRpcMethodImpl.h
  3820. * test/XmlRpcMethodTest.cc
  3821. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3822. Renamed addTorrentFile as addTorrent
  3823. * src/XmlRpcMethodFactory.cc
  3824. * src/XmlRpcMethodImpl.cc
  3825. * src/XmlRpcMethodImpl.h
  3826. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3827. The information for files, URIs, peers are removed from the
  3828. reponse of TellaActive, TellStatus command because they tend to be
  3829. large. Instead they can be retrieved by the dedicated commands:
  3830. getFiles, getUris and getPeers respectively.
  3831. * src/XmlRpcMethodFactory.cc
  3832. * src/XmlRpcMethodImpl.cc
  3833. * src/XmlRpcMethodImpl.h
  3834. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3835. Removed --max-overall-upload-limit and
  3836. --max-overall-download-limit option from listRequestOptions.
  3837. * src/download_helper.cc
  3838. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3839. Log incoming host in HttpListenCommand.
  3840. * src/HttpListenCommand.cc
  3841. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3842. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3843. --xml-rpc-passwd option.
  3844. * src/HttpServer.cc
  3845. * src/HttpServer.h
  3846. * src/HttpServerCommand.cc
  3847. * src/OptionHandlerFactory.cc
  3848. * src/prefs.cc
  3849. * src/prefs.h
  3850. * src/usage_text.h
  3851. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3852. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3853. processing 0 length request.
  3854. * src/HttpServerBodyCommand.cc
  3855. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3856. Removed --enable-http-server and --http-server-listen-port
  3857. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3858. instead. The original feature for --enable-http-server that
  3859. reports download progress in HTML was officially removed. Persist
  3860. XML-RPC connection if client supports keep-alive.
  3861. * src/DownloadEngineFactory.cc
  3862. * src/HttpServerCommand.cc
  3863. * src/HttpServerResponseCommand.cc
  3864. * src/Makefile.am
  3865. * src/Makefile.in
  3866. * src/OptionHandlerFactory.cc
  3867. * src/RequestGroupMan.cc
  3868. * src/main.cc
  3869. * src/option_processing.cc
  3870. * src/prefs.cc
  3871. * src/prefs.h
  3872. * src/usage_text.h
  3873. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3874. Added "uris" key to the response of tellStatus command. Added
  3875. "connections" key to the response of tellStatus and tellActive
  3876. command.
  3877. * src/XmlRpcMethodImpl.cc
  3878. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3879. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3880. Added TellStatusXmlRpcMethod. Remove command can now remove
  3881. waiting RequestGroup.
  3882. * src/RequestGroupMan.cc
  3883. * src/RequestGroupMan.h
  3884. * src/XmlRpcMethodFactory.cc
  3885. * src/XmlRpcMethodImpl.cc
  3886. * src/XmlRpcMethodImpl.h
  3887. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3888. Initialized _peerId
  3889. * src/Peer.cc
  3890. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3891. Return fault structure for error. FailXmlRpcMethod is renamed as
  3892. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3893. in non-torrent download. Return single param value.
  3894. * src/XmlRpcMethod.cc
  3895. * src/XmlRpcMethodFactory.cc
  3896. * src/XmlRpcMethodImpl.cc
  3897. * src/XmlRpcMethodImpl.h
  3898. * test/XmlRpcMethodTest.cc
  3899. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3900. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3901. command.
  3902. * src/RequestGroup.cc
  3903. * src/RequestGroup.h
  3904. * src/RequestGroupMan.cc
  3905. * src/XmlRpcMethodImpl.cc
  3906. * test/RequestGroupTest.cc
  3907. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3908. Added more options that can be specified in -i list and xml-rpc
  3909. add* command.
  3910. * src/download_helper.h
  3911. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3912. The available options in -i list should be listed in
  3913. listRequestOptions().
  3914. * src/download_helper.cc
  3915. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3916. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3917. command.
  3918. * src/XmlRpcMethodImpl.cc
  3919. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. Now RequestGroup has its own copy of Option object. This will help
  3921. to give custom option for each RequestGroup.
  3922. addTorrentFile command now takes options.
  3923. * src/AbstractCommand.cc
  3924. * src/AbstractCommand.h
  3925. * src/AbstractProxyRequestCommand.cc
  3926. * src/ActivePeerConnectionCommand.cc
  3927. * src/ActivePeerConnectionCommand.h
  3928. * src/AdaptiveURISelector.cc
  3929. * src/BtCheckIntegrityEntry.cc
  3930. * src/BtDependency.cc
  3931. * src/BtDependency.h
  3932. * src/BtFileAllocationEntry.cc
  3933. * src/BtPostDownloadHandler.cc
  3934. * src/CheckIntegrityEntry.cc
  3935. * src/DownloadCommand.cc
  3936. * src/FtpDownloadCommand.cc
  3937. * src/FtpFinishDownloadCommand.cc
  3938. * src/FtpInitiateConnectionCommand.cc
  3939. * src/FtpNegotiationCommand.cc
  3940. * src/HttpInitiateConnectionCommand.cc
  3941. * src/HttpRequestCommand.cc
  3942. * src/HttpResponseCommand.cc
  3943. * src/HttpSkipResponseCommand.cc
  3944. * src/InitiateConnectionCommand.cc
  3945. * src/InitiateConnectionCommandFactory.cc
  3946. * src/InitiatorMSEHandshakeCommand.cc
  3947. * src/InitiatorMSEHandshakeCommand.h
  3948. * src/Metalink2RequestGroup.cc
  3949. * src/Metalink2RequestGroup.h
  3950. * src/MetalinkPostDownloadHandler.cc
  3951. * src/MultiUrlRequestInfo.cc
  3952. * src/MultiUrlRequestInfo.h
  3953. * src/PeerAbstractCommand.cc
  3954. * src/PeerInteractionCommand.cc
  3955. * src/PeerInteractionCommand.h
  3956. * src/PeerReceiveHandshakeCommand.cc
  3957. * src/PeerReceiveHandshakeCommand.h
  3958. * src/RequestGroup.cc
  3959. * src/RequestGroup.h
  3960. * src/TrackerWatcherCommand.cc
  3961. * src/TrackerWatcherCommand.h
  3962. * src/XmlRpcMethod.cc
  3963. * src/XmlRpcMethod.h
  3964. * src/XmlRpcMethodImpl.cc
  3965. * src/download_helper.cc
  3966. * src/download_helper.h
  3967. * src/main.cc
  3968. * test/BtDependencyTest.cc
  3969. * test/BtPostDownloadHandlerTest.cc
  3970. * test/DefaultBtMessageDispatcherTest.cc
  3971. * test/DownloadHandlerFactoryTest.cc
  3972. * test/DownloadHelperTest.cc
  3973. * test/Metalink2RequestGroupTest.cc
  3974. * test/MetalinkPostDownloadHandlerTest.cc
  3975. * test/RequestGroupManTest.cc
  3976. * test/RequestGroupTest.cc
  3977. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3978. Added tellActiveStatus xml-rpc command which reports download
  3979. status of active downloads.
  3980. * src/XmlRpcMethodFactory.cc
  3981. * src/XmlRpcMethodImpl.cc
  3982. * src/XmlRpcMethodImpl.h
  3983. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3984. Added addTorrentFile xml-rpc command which receives uploaded
  3985. torrent file and add download for it.
  3986. * src/RequestGroupMan.cc
  3987. * src/XmlRpcMethodFactory.cc
  3988. * src/XmlRpcMethodImpl.cc
  3989. * src/XmlRpcMethodImpl.h
  3990. * src/download_helper.cc
  3991. * src/download_helper.h
  3992. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3993. Added remove xml-rpc command which removes specified download.
  3994. There is a known issue: the removed unfinished downloads are
  3995. reported ERR when aria2 exits. They should be reported as INPR.
  3996. * src/RequestGroupMan.cc
  3997. * src/RequestGroupMan.h
  3998. * src/XmlRpcMethodFactory.cc
  3999. * src/XmlRpcMethodImpl.cc
  4000. * src/XmlRpcMethodImpl.h
  4001. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4002. If --enable-http-server is enabled, don't stop aria2 when all
  4003. download finished and don't quit when no files to download at
  4004. start up.
  4005. * src/RequestGroupMan.cc
  4006. * src/main.cc
  4007. * src/option_processing.cc
  4008. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4009. Added missing AM_CONDITIONAL
  4010. * configure.ac
  4011. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4012. Added xml-rpc functionality. Currently only addURI commad is
  4013. supported. To enable xml-rpc, run aria2 with
  4014. --enable-http-server. This option name is temporal and will be
  4015. changed. The feature that reports download progress in html format
  4016. is temporarily disabled.
  4017. * src/HttpServer.cc
  4018. * src/HttpServer.h
  4019. * src/HttpServerBodyCommand.cc
  4020. * src/HttpServerBodyCommand.h
  4021. * src/HttpServerCommand.cc
  4022. * src/HttpServerResponseCommand.cc
  4023. * src/Makefile.am
  4024. * src/OptionParser.cc
  4025. * src/OptionParser.h
  4026. * src/RequestGroupMan.cc
  4027. * src/RequestGroupMan.h
  4028. * src/XmlRpcMethod.cc
  4029. * src/XmlRpcMethod.h
  4030. * src/XmlRpcMethodFactory.cc
  4031. * src/XmlRpcMethodFactory.h
  4032. * src/XmlRpcMethodImpl.cc
  4033. * src/XmlRpcMethodImpl.h
  4034. * src/download_helper.cc
  4035. * src/download_helper.h
  4036. * test/Makefile.am
  4037. * test/XmlRpcMethodTest.cc
  4038. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4039. Added xml-rpc request parser. The supported value types are:
  4040. i4/int, string, double, struct, array, base64. Currently only
  4041. libxml2 version is provided.
  4042. * src/Xml2XmlRpcRequestProcessor.cc
  4043. * src/Xml2XmlRpcRequestProcessor.h
  4044. * src/XmlRpcElements.cc
  4045. * src/XmlRpcElements.h
  4046. * src/XmlRpcRequest.h
  4047. * src/XmlRpcRequestParserController.cc
  4048. * src/XmlRpcRequestParserController.h
  4049. * src/XmlRpcRequestParserState.h
  4050. * src/XmlRpcRequestParserStateImpl.cc
  4051. * src/XmlRpcRequestParserStateImpl.h
  4052. * src/XmlRpcRequestParserStateMachine.cc
  4053. * src/XmlRpcRequestParserStateMachine.h
  4054. * src/XmlRpcRequestProcessor.h
  4055. * test/XmlRpcRequestParserControllerTest.cc
  4056. * test/XmlRpcRequestProcessorTest.cc
  4057. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4058. * Release 1.3.3
  4059. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4060. Fixed compile error since r1202.
  4061. * src/ExpatMetalinkProcessor.cc
  4062. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4063. Updated Ukrainian, Russian and Simplified Chinese
  4064. translations. Thanks to all translators.
  4065. * po/ru.po
  4066. * po/uk.po
  4067. * po/zh_CN.po
  4068. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4069. Pass reference of Option object instead of pointer.
  4070. * src/download_helper.cc
  4071. * src/download_helper.h
  4072. * src/main.cc
  4073. * test/DownloadHelperTest.cc
  4074. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4075. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4076. from option directly. Instead, get them from RequestGroup.
  4077. * src/ActivePeerConnectionCommand.cc
  4078. * src/ActivePeerConnectionCommand.h
  4079. * src/PeerReceiveHandshakeCommand.cc
  4080. * src/RequestGroup.h
  4081. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4082. Removed unused uploadLimitCheck and uploadLimit from
  4083. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4084. PeerInteractionCommand.
  4085. * src/PeerAbstractCommand.cc
  4086. * src/PeerAbstractCommand.h
  4087. * src/PeerInteractionCommand.cc
  4088. * src/PeerInteractionCommand.h
  4089. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4090. Fixed broken file renaming feature since r1202.
  4091. * src/FtpNegotiationCommand.cc
  4092. * src/FtpNegotiationCommand.h
  4093. * src/HttpResponseCommand.cc
  4094. * src/RequestGroup.cc
  4095. * src/RequestGroup.h
  4096. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4097. Removed unused debug log
  4098. * src/SocketCore.cc
  4099. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4100. Generated configure and Makefile.in using autoconf 2.63 and
  4101. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4102. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4103. * configure.ac
  4104. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4105. Moved piece statistics stuff to new PieceStatMan class.
  4106. Refactored PieceSelector interface.
  4107. * src/DefaultPieceStorage.cc
  4108. * src/DefaultPieceStorage.h
  4109. * src/LongestSequencePieceSelector.cc
  4110. * src/LongestSequencePieceSelector.h
  4111. * src/Makefile.am
  4112. * src/PieceSelector.h
  4113. * src/PieceStatMan.cc
  4114. * src/PieceStatMan.h
  4115. * src/RarestPieceSelector.cc
  4116. * src/RarestPieceSelector.h
  4117. * src/RequestGroup.cc
  4118. * test/DefaultPieceStorageTest.cc
  4119. * test/InOrderPieceSelector.h
  4120. * test/Makefile.am
  4121. * test/PieceStatManTest.cc
  4122. * test/RarestPieceSelectorTest.cc
  4123. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4124. Added static member _protocolFamily to SocketCore. By default,
  4125. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4126. address. Sometime SocketCore::bind() and
  4127. SocketCore::establishConnection() use difference protocl family
  4128. and latter cannot connect to former. To avoid this situation, we
  4129. limit protocol family to AF_INET for unit tests.
  4130. * src/SocketCore.cc
  4131. * src/SocketCore.h
  4132. * test/AllTest.cc
  4133. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4134. Avoid std::bad_alloc for negative bencode string length.
  4135. * src/bencode.cc
  4136. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4137. Supported segmented downloading with chunked transfer encoding and
  4138. content-length.
  4139. * src/DownloadCommand.cc
  4140. * src/HttpResponseCommand.cc
  4141. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4142. Bump up version number to 1.3.3
  4143. * configure.ac
  4144. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4145. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4146. from 4096 to 65536 (for insanely large ftp login banners)
  4147. * src/FtpConnection.h
  4148. * test/FtpConnectionTest.cc
  4149. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4150. In DefaultBtContext::getActualBasePath(), return first
  4151. FileEntry::getPath() for single file torrent.
  4152. * src/DefaultBtContext.cc
  4153. * test/DefaultBtContextTest.cc
  4154. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4155. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4156. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4157. Removed _directIOAllowed member from DiskWriter.
  4158. * src/AbstractDiskWriter.cc
  4159. * src/AbstractDiskWriter.h
  4160. * src/AbstractSingleDiskAdaptor.cc
  4161. * src/AbstractSingleDiskAdaptor.h
  4162. * src/BinaryStream.h
  4163. * src/ByteArrayDiskWriter.h
  4164. * src/DefaultPieceStorage.cc
  4165. * src/DiskWriter.h
  4166. * src/MultiDiskAdaptor.cc
  4167. * src/MultiDiskAdaptor.h
  4168. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4169. Now the constructor of AbstractDiskWriter takes filename as an
  4170. argument and filename argument is removed from openFile(),
  4171. initAndOpenFile(), openExistingFile() interface. storeDir member
  4172. and its accessor functions are removed from DiskAdaptor because it
  4173. is not used anymore. size() member function of DefaultDiskWriter,
  4174. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4175. opening file.
  4176. * src/AbstractDiskWriter.cc
  4177. * src/AbstractDiskWriter.h
  4178. * src/AbstractSingleDiskAdaptor.cc
  4179. * src/AbstractSingleDiskAdaptor.h
  4180. * src/ByteArrayDiskWriter.cc
  4181. * src/ByteArrayDiskWriter.h
  4182. * src/ByteArrayDiskWriterFactory.cc
  4183. * src/ByteArrayDiskWriterFactory.h
  4184. * src/DefaultDiskWriter.cc
  4185. * src/DefaultDiskWriter.h
  4186. * src/DefaultDiskWriterFactory.cc
  4187. * src/DefaultDiskWriterFactory.h
  4188. * src/DefaultPieceStorage.cc
  4189. * src/DirectDiskAdaptor.cc
  4190. * src/DirectDiskAdaptor.h
  4191. * src/DiskAdaptor.h
  4192. * src/DiskWriter.h
  4193. * src/DiskWriterFactory.h
  4194. * src/MessageDigestHelper.cc
  4195. * src/MultiDiskAdaptor.cc
  4196. * src/RequestGroup.cc
  4197. * src/UnknownLengthPieceStorage.cc
  4198. * src/Util.cc
  4199. * test/DefaultDiskWriterTest.cc
  4200. * test/DirectDiskAdaptorTest.cc
  4201. * test/FallocFileAllocationIteratorTest.cc
  4202. * test/MessageDigestHelperTest.cc
  4203. * test/MetalinkProcessorTest.cc
  4204. * test/MultiDiskAdaptorTest.cc
  4205. * test/MultiFileAllocationIteratorTest.cc
  4206. * test/SingleFileAllocationIteratorTest.cc
  4207. * test/UtilTest.cc
  4208. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4209. Fixed the bug that aria2 aborts when --select-file is used. This
  4210. bug was introduced in r1199.
  4211. * src/MultiDiskAdaptor.cc
  4212. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4213. Code cleanup
  4214. * test/MockPieceStorage.cc
  4215. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4216. Fixed the bug that read-only file with wrong file size will cause
  4217. error because it cannot be truncated to the correct size. Now if
  4218. file size is different than the expected one, re-open file in
  4219. writable mode.
  4220. * src/AbstractSingleDiskAdaptor.cc
  4221. * src/AbstractSingleDiskAdaptor.h
  4222. * src/BtCheckIntegrityEntry.cc
  4223. * src/DiskAdaptor.h
  4224. * src/MultiDiskAdaptor.h
  4225. * src/RequestGroup.cc
  4226. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4227. Fixed the bug that with --check-integrity option aria2 reports
  4228. downloaded file size is 0 even if some parts of file is correctly
  4229. downloaded. This bug is reproducible for the download that a file
  4230. includes last piece is missing. This bug doesn't reveal for
  4231. single-torrent with file allocation on.
  4232. * src/IteratableChecksumValidator.cc
  4233. * test/IteratableChecksumValidatorTest.cc
  4234. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4235. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4236. * src/RequestGroupMan.cc
  4237. * src/AdaptiveURISelector.cc
  4238. * src/AdaptiveURISelector.h
  4239. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4240. * Release 1.3.2
  4241. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4242. Updated README
  4243. * README
  4244. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4245. Updated Ukrainian translations. Thanks to Alexander10.
  4246. * po/uk.po
  4247. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4248. Code cleanup
  4249. * src/MetalinkParserStateMachine.cc
  4250. * src/MetalinkParserStateMachine.h
  4251. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4252. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4253. and expat simultaneously, MetalinkProcessor is now not base class
  4254. and it is directly implemented in XML2SAXMetalinkProcessor and
  4255. ExpatMetalinkProcessor.
  4256. * src/ExpatMetalinkProcessor.cc
  4257. * src/ExpatMetalinkProcessor.h
  4258. * src/Makefile.am
  4259. * src/MetalinkHelper.cc
  4260. * src/MetalinkProcessor.h
  4261. * src/MetalinkProcessorFactory.cc: Removed.
  4262. * src/MetalinkProcessorFactory.h: Removed
  4263. * src/XML2SAXMetalinkProcessor.cc
  4264. * src/XML2SAXMetalinkProcessor.h
  4265. * test/MetalinkProcessorTest.cc
  4266. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4267. Bump up version number to 1.3.2
  4268. * configure.ac
  4269. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4270. Added missing file.
  4271. * test/Makefile.am
  4272. * test/url-list-singleFileEndsWithSlash.torrent
  4273. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4274. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4275. request.
  4276. * src/AnnounceList.cc
  4277. * src/AnnounceList.h
  4278. * src/BDE.cc: Added
  4279. * src/BDE.h: Added
  4280. * src/DHTAbstractMessage.cc
  4281. * src/DHTAbstractMessage.h
  4282. * src/DHTAnnouncePeerMessage.cc
  4283. * src/DHTAnnouncePeerMessage.h
  4284. * src/DHTAnnouncePeerReplyMessage.cc
  4285. * src/DHTAnnouncePeerReplyMessage.h
  4286. * src/DHTFindNodeMessage.cc
  4287. * src/DHTFindNodeMessage.h
  4288. * src/DHTFindNodeReplyMessage.cc
  4289. * src/DHTFindNodeReplyMessage.h
  4290. * src/DHTGetPeersMessage.cc
  4291. * src/DHTGetPeersMessage.h
  4292. * src/DHTGetPeersReplyMessage.cc
  4293. * src/DHTGetPeersReplyMessage.h
  4294. * src/DHTMessageFactory.h
  4295. * src/DHTMessageFactoryImpl.cc
  4296. * src/DHTMessageFactoryImpl.h
  4297. * src/DHTMessageReceiver.cc
  4298. * src/DHTMessageTracker.cc
  4299. * src/DHTMessageTracker.h
  4300. * src/DHTPingMessage.cc
  4301. * src/DHTPingMessage.h
  4302. * src/DHTPingReplyMessage.cc
  4303. * src/DHTPingReplyMessage.h
  4304. * src/DHTQueryMessage.cc
  4305. * src/DHTQueryMessage.h
  4306. * src/DHTResponseMessage.cc
  4307. * src/DHTResponseMessage.h
  4308. * src/DefaultBtAnnounce.cc
  4309. * src/DefaultBtContext.cc
  4310. * src/DefaultBtContext.h
  4311. * src/HandshakeExtensionMessage.cc
  4312. * src/Makefile.am
  4313. * src/PeerListProcessor.h
  4314. * src/UTPexExtensionMessage.cc
  4315. * src/bencode.cc
  4316. * src/bencode.h
  4317. * test/AnnounceListTest.cc
  4318. * test/BDETest.cc: Added
  4319. * test/BencodeTest.cc
  4320. * test/DHTAnnouncePeerMessageTest.cc
  4321. * test/DHTAnnouncePeerReplyMessageTest.cc
  4322. * test/DHTFindNodeMessageTest.cc
  4323. * test/DHTFindNodeReplyMessageTest.cc
  4324. * test/DHTGetPeersMessageTest.cc
  4325. * test/DHTGetPeersReplyMessageTest.cc
  4326. * test/DHTMessageFactoryImplTest.cc
  4327. * test/DHTMessageTrackerTest.cc
  4328. * test/DHTPingMessageTest.cc
  4329. * test/DHTPingReplyMessageTest.cc
  4330. * test/Makefile.am
  4331. * test/MockDHTMessageFactory.h
  4332. * test/PeerListProcessorTest.cc
  4333. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4334. Use url-list (web-seeding) only for single-file torrent. This is
  4335. basically the same behavior with Metalink file with torrent and
  4336. URIs.
  4337. * src/RequestGroup.cc
  4338. * src/DefaultBtContext.cc
  4339. * test/DefaultBtContextTest.cc
  4340. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4341. Rewritten expr
  4342. * src/array_fun.h
  4343. * test/array_funTest.cc
  4344. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4345. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4346. * src/DefaultBtMessageDispatcher.cc
  4347. * src/a2algo.h
  4348. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4349. Removed ExtendedMessagingAware. Instead of using inheritance,
  4350. added ExtensionMessageRegistry and it is passed to
  4351. DefaultExtensionMessageFactory.
  4352. * src/DefaultBtInteractive.cc
  4353. * src/DefaultBtInteractive.h
  4354. * src/DefaultExtensionMessageFactory.cc
  4355. * src/DefaultExtensionMessageFactory.h
  4356. * src/ExtendedMessagingAware.h: Removed.
  4357. * src/ExtensionMessageFactory.h
  4358. * src/ExtensionMessageRegistry.h: Added.
  4359. * src/Makefile.am
  4360. * src/PeerInteractionCommand.cc
  4361. * test/DefaultExtensionMessageFactoryTest.cc
  4362. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4363. Fixed typo in log messages
  4364. * src/MSEHandshake.cc
  4365. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4366. Fixed the bug that prevents torrent download from finishing. The
  4367. bug doesn't reveal for all torrents. The torrents affected this
  4368. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4369. of pieces.
  4370. * src/bitfield.h
  4371. * test/bitfieldTest.cc
  4372. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4373. Code cleanup
  4374. * src/PeerListProcessor.h
  4375. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4376. Removed RequestGroupAware
  4377. * src/AbstractCommand.cc
  4378. * src/AbstractCommand.h
  4379. * src/ActivePeerConnectionCommand.cc
  4380. * src/ActivePeerConnectionCommand.h
  4381. * src/DHTGetPeersCommand.cc
  4382. * src/DHTGetPeersCommand.h
  4383. * src/InitiatorMSEHandshakeCommand.cc
  4384. * src/InitiatorMSEHandshakeCommand.h
  4385. * src/Makefile.am
  4386. * src/PeerInitiateConnectionCommand.cc
  4387. * src/PeerInitiateConnectionCommand.h
  4388. * src/PeerInteractionCommand.cc
  4389. * src/PeerInteractionCommand.h
  4390. * src/RealtimeCommand.cc
  4391. * src/RealtimeCommand.h
  4392. * src/RequestGroupAware.cc: Removed
  4393. * src/RequestGroupAware.h: Removed
  4394. * src/SeedCheckCommand.cc
  4395. * src/SeedCheckCommand.h
  4396. * src/SleepCommand.cc
  4397. * src/TrackerWatcherCommand.cc
  4398. * src/TrackerWatcherCommand.h
  4399. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4400. Rewritten PeerListProcessor
  4401. * src/PeerListProcessor.h
  4402. * src/CompactPeerListProcessor.h: Removed
  4403. * src/CompactPeerListProcessor.cc: Removed
  4404. * src/DelegatingPeerListProcessor.cc: Removed.
  4405. * src/DefaultBtAnnounce.cc
  4406. * src/Makefile.am
  4407. * src/UTPexExtensionMessage.cc
  4408. * src/DefaultPeerListProcessor.h: Removed.
  4409. * src/DefaultPeerListProcessor.cc: Removed.
  4410. * src/DelegatingPeerListProcessor.h: Removed.
  4411. * test/Makefile.am
  4412. * test/PeerListProcessorTest.cc
  4413. * test/DefaultPeerListProcessorTest.cc: Removed.
  4414. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4415. Rewritten RequestGroupMan::calculateStat()
  4416. * src/RequestGroupMan.cc
  4417. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4418. Removed unnecessary virtual destructor for Request class.
  4419. * src/Request.cc
  4420. * src/Request.h
  4421. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4422. Avoid dynamic_pointer_cast.
  4423. * src/DHTGetPeersCommand.cc
  4424. * src/DHTGetPeersCommand.h
  4425. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4426. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4427. BtEvent.
  4428. * src/AbstractBtEventListener.h: Removed.
  4429. * src/AbstractBtMessage.cc
  4430. * src/AbstractBtMessage.h
  4431. * src/BtAbortOutstandingRequestEvent.h
  4432. * src/BtCancelSendingPieceEvent.h
  4433. * src/BtChokedEvent.h: Removed.
  4434. * src/BtChokingEvent.h
  4435. * src/BtEvent.h: Removed
  4436. * src/BtEventListener.h: Removed.
  4437. * src/BtMessage.h
  4438. * src/BtPieceMessage.cc
  4439. * src/BtPieceMessage.h
  4440. * src/BtRequestMessage.cc
  4441. * src/BtRequestMessage.h
  4442. * src/DefaultBtMessageDispatcher.cc
  4443. * src/Makefile.am
  4444. * src/a2functional.h
  4445. * test/BtPieceMessageTest.cc
  4446. * test/BtRequestMessageTest.cc
  4447. * test/DefaultBtMessageDispatcherTest.cc
  4448. * test/MockBtMessage.h
  4449. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4450. Code cleanup
  4451. * src/RequestGroupMan.cc
  4452. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4453. Code cleanup
  4454. * src/DownloadCommand.cc
  4455. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4457. byte.
  4458. * src/DownloadCommand.cc
  4459. * src/bitfield.h
  4460. * test/bitfieldTest.cc
  4461. Fixed the bug that causes infinite loop if broken web server
  4462. returns chunked response without last "0" chunk-size marker and
  4463. closes connection.
  4464. * src/DownloadCommand.cc
  4465. Instantiate properly configured HttpDownloadCommand for
  4466. non-resumable downlaods.
  4467. * src/HttpResponseCommand.cc
  4468. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4469. Rewritten array operation functions.
  4470. * src/BitfieldMan.cc
  4471. * src/array_fun.h
  4472. * test/array_funTest.cc
  4473. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4474. Removed unused variable 'query'
  4475. * src/Request.cc
  4476. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4477. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4478. accidentally set to false in r1162.
  4479. * configure.ac
  4480. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4481. Code cleanup
  4482. * src/BNode.cc
  4483. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4484. Increase prefixLength for the bucket which doesn't own local node
  4485. ID when splitting bucket.
  4486. * src/DHTBucket.cc
  4487. * test/DHTBucketTest.cc
  4488. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4489. * Release 1.3.1
  4490. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4491. Bump up version number to 1.3.1
  4492. * configure.ac
  4493. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4494. Removed unused variable checkPoint. Also removed include directive
  4495. for TimeA2.h.
  4496. * src/SeedCheckCommand.h
  4497. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4498. Fixed the bug that upload limit exceeds the value specified in
  4499. --seed-ratio option depending on the timing of the execution of
  4500. SeedCheckCommand.
  4501. * src/SeedCheckCommand.cc
  4502. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4503. Fixed the bug that removed peer's session upload/download length
  4504. are counted twice in _cachedTransferStat before it is
  4505. re-calculated. This affected the calculation of shara ratio,
  4506. resulting aria2 wrongly determines that specified share ratio is
  4507. reached. Also fixed the typo in calculateStatFor function name.
  4508. * src/BtSetup.cc
  4509. * src/DefaultPeerStorage.cc
  4510. * src/ShareRatioSeedCriteria.h
  4511. * test/ShareRatioSeedCriteriaTest.cc
  4512. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4513. * Release 1.3.0
  4514. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4516. Nynorsk translations. Thanks to all translators.
  4517. * po/es.po
  4518. * po/ja.po
  4519. * po/nn.po
  4520. * po/ru.po
  4521. * po/uk.po
  4522. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4523. Rewritten isInRange()
  4524. * src/DHTBucket.cc
  4525. * test/DHTBucketTest.cc
  4526. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4527. Fixed typo
  4528. * doc/aria2c.1.txt
  4529. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4530. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4531. malloc/realloc is not used.
  4532. * src/configure.ac
  4533. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4534. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4535. char* bitfield instead of stl container for efficiency.
  4536. PieceSelector::select now takes this
  4537. bitfield. RarestPieceSelector::select now also performs
  4538. efficiently for this change. bitfield namespace is introduced and
  4539. it has several helper functions to handle basic bitfield
  4540. operations such as test, count set bits, etc.
  4541. * src/BitfieldMan.cc
  4542. * src/BitfieldMan.h
  4543. * src/DefaultBtRequestFactory.cc
  4544. * src/DefaultPieceStorage.cc
  4545. * src/DefaultPieceStorage.h
  4546. * src/LongestSequencePieceSelector.cc
  4547. * src/LongestSequencePieceSelector.h
  4548. * src/Makefile.am
  4549. * src/Piece.cc
  4550. * src/Piece.h
  4551. * src/PieceSelector.h
  4552. * src/RarestPieceSelector.cc
  4553. * src/RarestPieceSelector.h
  4554. * src/Util.cc
  4555. * src/Util.h
  4556. * src/bitfield.h
  4557. * test/BitfieldManTest.cc
  4558. * test/LongestSequencePieceSelectorTest.cc
  4559. * test/Makefile.am
  4560. * test/RarestPieceSelectorTest.cc
  4561. * test/UtilTest.cc
  4562. * test/bitfieldTest.cc
  4563. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4564. Made accepted socket non-block.
  4565. * src/FtpNegotiationCommand.cc
  4566. * src/HttpListenCommand.cc
  4567. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4568. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4569. * src/AbstractSingleDiskAdaptor.cc
  4570. * src/DefaultPieceStorage.cc
  4571. * src/DiskAdaptor.h
  4572. * src/DiskAdaptor.h
  4573. * src/MultiFileAllocationIterator.cc
  4574. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4575. Run
  4576. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4577. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4578. it doesn't need to be called every time when
  4579. DefaultBtInteractive::doInteractionProcessing() is called.
  4580. * src/DefaultBtInteractive.cc
  4581. * src/DefaultBtInteractive.h
  4582. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4583. Documented 'falloc' in man page.
  4584. * doc/aria2c.1.txt
  4585. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4586. Updated doc
  4587. * src/usage_text.h
  4588. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4589. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4590. allocation mode uses posix_fallocate() system call to allocate
  4591. file on disk. If you are using newer file systems such as ext4
  4592. (with extents support), btrfs or xfs, 'falloc' is your best
  4593. choice. It allocates large(few GiB) files almost instantly. Don't
  4594. use 'falloc' with legacy file systems such as ext3 because it
  4595. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4596. until allocation finishes. 'falloc' may not be available if your
  4597. system doesn't have posix_fallocate() system call.
  4598. * configure.ac
  4599. * src/AbstractDiskWriter.cc
  4600. * src/AbstractDiskWriter.h
  4601. * src/AbstractSingleDiskAdaptor.cc
  4602. * src/BinaryStream.h
  4603. * src/BtCheckIntegrityEntry.cc
  4604. * src/ByteArrayDiskWriter.h
  4605. * src/CheckIntegrityEntry.cc
  4606. * src/CheckIntegrityEntry.h
  4607. * src/DefaultPieceStorage.cc
  4608. * src/DiskAdaptor.cc
  4609. * src/DiskAdaptor.h
  4610. * src/DiskWriter.h
  4611. * src/FallocFileAllocationIterator.cc
  4612. * src/FallocFileAllocationIterator.h
  4613. * src/FileAllocationEntry.cc
  4614. * src/FileAllocationEntry.h
  4615. * src/Makefile.am
  4616. * src/MultiFileAllocationIterator.cc
  4617. * src/MultiFileAllocationIterator.h
  4618. * src/OptionHandlerFactory.cc
  4619. * src/RequestGroup.cc
  4620. * src/StreamCheckIntegrityEntry.cc
  4621. * src/prefs.cc
  4622. * src/prefs.h
  4623. * src/usage_text.h
  4624. * test/FallocFileAllocationIteratorTest.cc
  4625. * test/Makefile.am
  4626. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4627. Removed duplicate enableDirectIO() call.
  4628. * src/MultiFileAllocationIterator.cc
  4629. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4630. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4631. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4632. cost of std::rotate().
  4633. * src/RarestPieceSelector.cc
  4634. * src/RarestPieceSelector.h
  4635. * test/RarestPieceSelectorTest.cc
  4636. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4637. Updated usage doc for --bt-tracker-interval option.
  4638. * src/usage_text.h
  4639. * doc/aria2c.1.txt
  4640. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4641. Documented --bt-tracker-interval option in man page.
  4642. * doc/aria2c.1.txt
  4643. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4644. Added an option to specify the interval between tracker requests.
  4645. If non-zero value is specified, aria2 uses it and ignores the
  4646. interval value in the response of tracker. If zero is specified,
  4647. aria2 determines the inteval value based on the tarcker response
  4648. and download progress.
  4649. * src/DefaultBtAnnounce.cc
  4650. * src/DefaultBtAnnounce.h
  4651. * src/OptionHandlerFactory.cc
  4652. * src/RequestGroup.cc
  4653. * src/prefs.cc
  4654. * src/prefs.h
  4655. * src/usage_text.h
  4656. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4657. Added operator+=, operator-=, operator-
  4658. * src/TransferStat.cc
  4659. * src/TransferStat.h
  4660. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4661. Refactored RarestPieceSelector to reduce CPU load, especially for
  4662. addPieceStats.
  4663. * src/RarestPieceSelector.cc
  4664. * src/RarestPieceSelector.h
  4665. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4666. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4667. getAllMissingBlockIndexes to reduce a call to
  4668. array_function_base::operator[].
  4669. * src/BitfieldMan.cc
  4670. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4671. Cached TransferStat/download speed to avoid to sum them up in each
  4672. call.
  4673. * src/DefaultPeerStorage.cc
  4674. * src/DefaultPeerStorage.h
  4675. * src/SegmentMan.cc
  4676. * src/SegmentMan.h
  4677. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4678. Typedefed cuid_t as int32_t in Command.h
  4679. * src/CUIDCounter.h
  4680. * src/Command.cc
  4681. * src/Command.h
  4682. * src/DownloadEngine.cc
  4683. * src/DownloadEngine.h
  4684. * src/PeerStat.h
  4685. * src/SegmentMan.cc
  4686. * src/SegmentMan.h
  4687. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4688. Reduced the number of calls to PeerStorage::calculateStat() and
  4689. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4690. transfer rate.
  4691. * src/DefaultBtInteractive.cc
  4692. * src/DefaultBtMessageDispatcher.cc
  4693. * src/DefaultPeerStorage.cc
  4694. * src/DefaultPeerStorage.h
  4695. * src/DownloadCommand.cc
  4696. * src/DownloadEngine.cc
  4697. * src/PeerStorage.h
  4698. * src/SegmentMan.cc
  4699. * src/SegmentMan.h
  4700. * test/MockPeerStorage.h
  4701. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4702. Prepended _dir+"/" after joining path elements in torrent file.
  4703. * src/DefaultBtContext.cc
  4704. * test/DefaultBtContextTest.cc
  4705. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4706. Added missing IndexBtMessageValidator.h
  4707. * src/Makefile.am
  4708. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4709. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4710. Chinese translations. Thank you for contributing our project.
  4711. * po/id.po
  4712. * po/it.po
  4713. * po/ru.po
  4714. * po/uk.po
  4715. * po/zh_CN.po
  4716. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4717. Updated README
  4718. * README
  4719. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4720. Bump up version number to 1.3.0
  4721. * configure.ac
  4722. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4723. Updated doc
  4724. * src/DefaultBtContext.h
  4725. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4726. Slice/joinPath for name of single torrent.
  4727. * src/DefaultBtContext.cc
  4728. * test/DefaultBtContextTest.cc
  4729. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4730. Updated man page: Documented --dry-run and --index-out
  4731. options. Changed the default value of --uri-selector and
  4732. --http-auth-challenge options. Removed --direct-file-mapping
  4733. option. Added example for --index-out
  4734. * doc/aria2c.1.txt
  4735. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4736. Updated TEXT_DRY_RUN
  4737. * src/usage_text.h
  4738. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4739. Changed the default value of --uri-selector option from 'inorder'
  4740. to 'feedback'
  4741. * src/OptionHandlerFactory.cc
  4742. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4743. Included current URI in exception message.
  4744. * src/AbstractCommand.cc
  4745. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4746. Renamed ServerStatURISelector as FeedbackURISelector.
  4747. * src/FeedbackURISelector.cc
  4748. * src/FeedbackURISelector.h
  4749. * src/Makefile.am
  4750. * src/RequestGroupMan.cc
  4751. * src/ServerStatURISelector.cc
  4752. * src/ServerStatURISelector.h
  4753. * test/FeedbackURISelectorTest.cc
  4754. * test/Makefile.am
  4755. * test/ServerStatURISelectorTest.cc
  4756. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4757. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  4758. all URIs are tested and their timeout is not reached.
  4759. * src/AdaptiveURISelector.cc
  4760. * src/AdaptiveURISelector.h
  4761. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4762. Changed the default value of --http-auth-challenge option to false.
  4763. * src/OptionHandlerFactory.cc
  4764. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4765. Reuse URIs when all unused URIs run out.
  4766. * src/OptionHandlerFactory.cc
  4767. * src/RequestGroup.cc
  4768. * src/prefs.cc
  4769. * src/prefs.h
  4770. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4771. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4772. and BtRejectMessage are derived from RangeBtMessage class.
  4773. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4774. derived from IndexBtMessage class. BtChokeMessage,
  4775. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4776. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4777. ZeroBtMessage class.
  4778. * src/AbstractBtMessage.cc
  4779. * src/AbstractBtMessage.h
  4780. * src/BtAllowedFastMessage.cc
  4781. * src/BtAllowedFastMessage.h
  4782. * src/BtAllowedFastMessageValidator.h: Removed
  4783. * src/BtBitfieldMessage.cc
  4784. * src/BtBitfieldMessage.h
  4785. * src/BtCancelMessage.cc
  4786. * src/BtCancelMessage.h
  4787. * src/BtCancelMessageValidator.h: Removed
  4788. * src/BtChokeMessage.cc
  4789. * src/BtChokeMessage.h
  4790. * src/BtExtendedMessage.cc
  4791. * src/BtExtendedMessage.h
  4792. * src/BtHandshakeMessage.cc
  4793. * src/BtHandshakeMessage.h
  4794. * src/BtHaveAllMessage.cc
  4795. * src/BtHaveAllMessage.h
  4796. * src/BtHaveMessage.cc
  4797. * src/BtHaveMessage.h
  4798. * src/BtHaveMessageValidator.h: Removed
  4799. * src/BtHaveNoneMessage.cc
  4800. * src/BtHaveNoneMessage.h
  4801. * src/BtInterestedMessage.cc
  4802. * src/BtInterestedMessage.h
  4803. * src/BtKeepAliveMessage.cc
  4804. * src/BtKeepAliveMessage.h
  4805. * src/BtNotInterestedMessage.cc
  4806. * src/BtNotInterestedMessage.h
  4807. * src/BtPieceMessage.cc
  4808. * src/BtPieceMessage.h
  4809. * src/BtPortMessage.cc
  4810. * src/BtPortMessage.h
  4811. * src/BtRejectMessage.cc
  4812. * src/BtRejectMessage.h
  4813. * src/BtRejectMessageValidator.h: Removed
  4814. * src/BtRequestMessage.cc
  4815. * src/BtRequestMessage.h
  4816. * src/BtRequestMessageValidator.h: Removed
  4817. * src/BtSuggestPieceMessage.cc
  4818. * src/BtSuggestPieceMessage.h
  4819. * src/BtSuggestPieceMessageValidator.h: Removed
  4820. * src/BtUnchokeMessage.cc
  4821. * src/BtUnchokeMessage.h
  4822. * src/DefaultBtMessageFactory.cc
  4823. * src/IndexBtMessage.cc
  4824. * src/IndexBtMessage.h
  4825. * src/IndexBtMessageValidator.h
  4826. * src/Makefile.am
  4827. * src/PeerMessageUtil.cc
  4828. * src/PeerMessageUtil.h
  4829. * src/RangeBtMessage.cc
  4830. * src/RangeBtMessage.h
  4831. * src/RangeBtMessageValidator.h
  4832. * src/SimpleBtMessage.cc
  4833. * src/SimpleBtMessage.h
  4834. * src/ZeroBtMessage.cc
  4835. * src/ZeroBtMessage.h
  4836. * test/BtRequestMessageTest.cc
  4837. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4838. Reverted usage_text.h to r1093 to avoid to lose translated
  4839. messages.
  4840. * src/usage_text.h
  4841. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4842. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4843. declared as non-const previously is now const and defined in class
  4844. definition.
  4845. * src/AbstractBtMessage.cc
  4846. * src/AbstractBtMessage.h
  4847. * src/BtAllowedFastMessage.cc
  4848. * src/BtAllowedFastMessage.h
  4849. * src/BtBitfieldMessage.h
  4850. * src/BtCancelMessage.cc
  4851. * src/BtCancelMessage.h
  4852. * src/BtChokeMessage.cc
  4853. * src/BtChokeMessage.h
  4854. * src/BtExtendedMessage.cc
  4855. * src/BtExtendedMessage.h
  4856. * src/BtHandshakeMessage.cc
  4857. * src/BtHandshakeMessage.h
  4858. * src/BtHaveAllMessage.cc
  4859. * src/BtHaveAllMessage.h
  4860. * src/BtHaveMessage.cc
  4861. * src/BtHaveMessage.h
  4862. * src/BtHaveNoneMessage.cc
  4863. * src/BtHaveNoneMessage.h
  4864. * src/BtInterestedMessage.cc
  4865. * src/BtInterestedMessage.h
  4866. * src/BtKeepAliveMessage.cc
  4867. * src/BtKeepAliveMessage.h
  4868. * src/BtMessage.h
  4869. * src/BtNotInterestedMessage.cc
  4870. * src/BtNotInterestedMessage.h
  4871. * src/BtPieceMessage.h
  4872. * src/BtPortMessage.cc
  4873. * src/BtPortMessage.h
  4874. * src/BtRejectMessage.cc
  4875. * src/BtRejectMessage.h
  4876. * src/BtRequestMessage.cc
  4877. * src/BtRequestMessage.h
  4878. * src/BtSuggestPieceMessage.cc
  4879. * src/BtSuggestPieceMessage.h
  4880. * src/BtUnchokeMessage.cc
  4881. * src/BtUnchokeMessage.h
  4882. * src/SimpleBtMessage.cc
  4883. * src/SimpleBtMessage.h
  4884. * test/MockBtMessage.h
  4885. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4886. Use FileEntry::exists()
  4887. * src/MultiDiskAdaptor.cc
  4888. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4889. Added exists()
  4890. * src/FileEntry.cc
  4891. * src/FileEntry.h
  4892. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4893. Added missing prefix dir.
  4894. * src/download_helper.cc
  4895. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4896. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4897. * src/CopyDiskAdaptor.cc: Removed
  4898. * src/CopyDiskAdaptor.h: Removed
  4899. * src/DefaultPieceStorage.cc
  4900. * src/Makefile.am
  4901. * src/OptionHandlerFactory.cc
  4902. * src/prefs.cc
  4903. * src/prefs.h
  4904. * src/usage_text.h
  4905. * test/CopyDiskAdaptorTest.cc: Removed
  4906. * test/Makefile.am
  4907. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4908. Rewritten isSameFileBeingDownloaded()
  4909. * src/RequestGroupMan.cc
  4910. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4911. Removed getName() from DownloadContext. getName() is declared in
  4912. BtContext.
  4913. * src/BtContext.h
  4914. * src/DownloadContext.h
  4915. * src/SingleFileDownloadContext.cc
  4916. * src/SingleFileDownloadContext.h
  4917. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4918. in AbstractSingleDiskAdaptor.
  4919. * src/AbstractSingleDiskAdaptor.h
  4920. * src/DiskAdaptor.h
  4921. * src/MultiDiskAdaptor.h
  4922. * src/RequestGroup.cc
  4923. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4924. MultiDiskAdaptor.
  4925. * src/DefaultPieceStorage.cc
  4926. * src/MultiDiskAdaptor.cc
  4927. * src/MultiDiskAdaptor.h
  4928. * test/MultiDiskAdaptorTest.cc
  4929. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4930. FileEntry::getPath() contains store(top level) directory to
  4931. simplify path handling operation. In the previous implementation,
  4932. store directory is concatenated to FileEntry::getPath() in
  4933. DownloadContext.
  4934. * src/BtDependency.cc
  4935. * src/BtPostDownloadHandler.cc
  4936. * src/CopyDiskAdaptor.cc
  4937. * src/DefaultBtContext.cc
  4938. * src/DirectDiskAdaptor.cc
  4939. * src/FileEntry.cc
  4940. * src/FileEntry.h
  4941. * src/FtpNegotiationCommand.cc
  4942. * src/HttpResponse.cc
  4943. * src/HttpResponseCommand.cc
  4944. * src/Metalink2RequestGroup.cc
  4945. * src/MultiDiskAdaptor.cc
  4946. * src/MultiDiskAdaptor.h
  4947. * src/MultiFileAllocationIterator.cc
  4948. * src/RequestGroup.cc
  4949. * src/SingleFileDownloadContext.cc
  4950. * src/SingleFileDownloadContext.h
  4951. * src/download_helper.cc
  4952. * test/BtDependencyTest.cc
  4953. * test/CopyDiskAdaptorTest.cc
  4954. * test/DefaultBtContextTest.cc
  4955. * test/DefaultBtProgressInfoFileTest.cc
  4956. * test/DirectDiskAdaptorTest.cc
  4957. * test/DownloadHelperTest.cc
  4958. * test/FileEntryTest.cc
  4959. * test/MultiDiskAdaptorTest.cc
  4960. * test/MultiFileAllocationIteratorTest.cc
  4961. * test/RequestGroupTest.cc
  4962. * test/SingleFileDownloadContextTest.cc
  4963. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4964. Fixed compiler warning
  4965. * src/download_helper.cc
  4966. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4967. Throw exception if same infohash torrent is now downloading.
  4968. * src/RequestGroup.cc
  4969. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4970. Added --dry-run option. In this mode, aria2 just checks whether
  4971. the remote file is available and doesn't download data. This
  4972. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4973. are canceled in this mode.
  4974. * src/FtpNegotiationCommand.cc
  4975. * src/HttpResponseCommand.cc
  4976. * src/HttpResponseCommand.h
  4977. * src/OptionHandlerFactory.cc
  4978. * src/RequestGroup.cc
  4979. * src/RequestGroupMan.cc
  4980. * src/prefs.cc
  4981. * src/prefs.h
  4982. * src/usage_text.h
  4983. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4984. Fixed compiler waring
  4985. * test/UriListParserTest.cc
  4986. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4987. Parse options in -i list using OptionParser.
  4988. * src/UriListParser.cc
  4989. * src/UriListParser.h
  4990. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4991. Don't reset URI in retry to avoid additional round trips because
  4992. of redirects.
  4993. * src/AbstractCommand.cc
  4994. * src/OptionHandlerFactory.cc
  4995. * src/prefs.cc
  4996. * src/prefs.h
  4997. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4998. Declared hide() in OptionHandler.
  4999. * src/NameMatchOptionHandler.h
  5000. * src/OptionHandler.h
  5001. * src/OptionHandlerImpl.h
  5002. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5003. Updated doc
  5004. * src/Peer.h
  5005. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5006. Added log message in setStatusInternal()
  5007. * src/ServerStat.cc
  5008. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5009. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5010. effectively exclude failed server.
  5011. * src/AbstractCommand.cc
  5012. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5013. Added --index-out option to specify each file path for torrent.
  5014. Here index shown in --show-files option is used to specify which
  5015. file path should be altered. For example, to change the file path
  5016. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5017. option multiple times: --index-out=1=aria2.tar.bz2
  5018. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5019. available. This option can be specified in -i list.
  5020. * src/DefaultBtContext.cc
  5021. * src/DefaultBtContext.h
  5022. * src/MultiDiskAdaptor.cc
  5023. * src/MultiDiskAdaptor.h
  5024. * src/MultiFileAllocationIterator.cc
  5025. * src/OptionHandlerFactory.cc
  5026. * src/OptionHandlerImpl.h
  5027. * src/Util.cc
  5028. * src/Util.h
  5029. * src/download_helper.cc
  5030. * src/prefs.cc
  5031. * src/prefs.h
  5032. * src/usage_text.h
  5033. * test/DefaultBtContextTest.cc
  5034. * test/MultiDiskAdaptorTest.cc
  5035. * test/MultiFileAllocationIteratorTest.cc
  5036. * test/UtilTest.cc
  5037. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5038. Use Util::pathJoin()
  5039. * src/MetalinkParserController.cc
  5040. * test/test.xml
  5041. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5042. Use Util::pathJoin()
  5043. * src/DefaultBtContext.cc
  5044. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5045. Added Util::pathJoin()
  5046. * src/Util.h
  5047. * test/UtilTest.cc
  5048. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Applied basename function to remove directory element in
  5050. content-disposition value.
  5051. Return empty string if content-disposition value is ".." or ".".
  5052. * src/Util.cc
  5053. * test/UtilTest.cc
  5054. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5055. Added --max-overall-download-limit in man page.
  5056. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5057. * doc/aria2c.1.txt
  5058. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5059. Added --max-overall-download-limit option. Now --max-upload-limit
  5060. option is not ignored when --max-overall-upload-limit option has
  5061. non-zero value. aria2 checks download(upload) speed in the order:
  5062. first checks overall speed limit and if it is not exceeded, then
  5063. checks speed limit per download. Thus you can specify both
  5064. value. For example, set --max-overall-download-limit=1M and
  5065. --max-download-limit=500K to prevent from one download from eating
  5066. all overall speed limit.
  5067. * src/DefaultBtInteractive.cc
  5068. * src/DefaultBtInteractive.h
  5069. * src/DefaultBtMessageDispatcher.cc
  5070. * src/DefaultBtMessageDispatcher.h
  5071. * src/DownloadCommand.cc
  5072. * src/DownloadCommand.h
  5073. * src/FtpNegotiationCommand.cc
  5074. * src/HttpResponseCommand.cc
  5075. * src/OptionHandlerFactory.cc
  5076. * src/PeerInteractionCommand.cc
  5077. * src/RequestGroup.cc
  5078. * src/RequestGroup.h
  5079. * src/RequestGroupMan.cc
  5080. * src/RequestGroupMan.h
  5081. * src/prefs.cc
  5082. * src/prefs.h
  5083. * src/usage_text.h
  5084. * test/DefaultBtMessageDispatcherTest.cc
  5085. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5086. Documented select-file option in Input File section.
  5087. Documented --http-auth-challenge option.
  5088. * doc/aria2c.1.txt
  5089. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5090. Now select-file can be specified in the uri list(-i list).
  5091. * src/BtContext.cc
  5092. * src/BtContext.h
  5093. * src/RequestGroup.cc
  5094. * src/Sequence.h
  5095. * src/download_helper.cc
  5096. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5097. Made the upper value of --max-concurrent-downloads options unlimited.
  5098. * src/OptionHandlerFactory.cc
  5099. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5100. Fixed the bug that disk writer is not created even if it shares
  5101. same piece with the preceding file if the length of previous file
  5102. is 0.
  5103. * src/MultiDiskAdaptor.cc
  5104. * test/MultiDiskAdaptorTest.cc
  5105. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5106. In BitTorrent, Open files in read-only mode for hash check. After
  5107. that, re-open file in read/write mode only when the download is
  5108. not finished.
  5109. * src/AbstractDiskWriter.cc
  5110. * src/AbstractDiskWriter.h
  5111. * src/AbstractSingleDiskAdaptor.cc
  5112. * src/AbstractSingleDiskAdaptor.h
  5113. * src/BtCheckIntegrityEntry.cc
  5114. * src/DiskAdaptor.h
  5115. * src/DiskWriter.h
  5116. * src/MultiDiskAdaptor.cc
  5117. * src/MultiDiskAdaptor.h
  5118. * src/RequestGroup.cc
  5119. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5120. Added --http-auth-challenge option. If it is set to true(by
  5121. default), aria2 sends HTTP authorization header only when it is
  5122. requested by the server. If false is set, then authorization
  5123. header is always sent to the server. This is useful for servers
  5124. that don't respond 401 code when authentication is required.
  5125. There is an exception: if username and password are embedded in
  5126. URI, authorization header is always sent to the server regardless
  5127. of this option.
  5128. * src/AuthConfigFactory.cc
  5129. * src/HttpSkipResponseCommand.cc
  5130. * src/OptionHandlerFactory.cc
  5131. * src/prefs.cc
  5132. * src/prefs.h
  5133. * src/usage_text.h
  5134. * test/AuthConfigFactoryTest.cc
  5135. * test/HttpRequestTest.cc
  5136. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5137. * Release 1.2.0
  5138. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5139. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5140. Thanks to all translators.
  5141. * po/es.po
  5142. * po/ja.po
  5143. * po/ru.po
  5144. * po/uk.po
  5145. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5146. Call deleteSocketForReadCheck() before socket is closed.
  5147. * src/HttpListenCommand.cc
  5148. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5149. Defined virtual destructor for BObject.
  5150. * src/bencode.h
  5151. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5152. Rewritten BDE to make it efficient.
  5153. * src/bencode.cc
  5154. * src/bencode.h
  5155. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5156. Removed function throw list.
  5157. * src/bencode.cc
  5158. * src/bencode.h
  5159. * test/BencodeTest.cc
  5160. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5161. Enclosed all URLs in double quotes in command-line examples.
  5162. * doc/aria2c.1.txt
  5163. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5164. Updated reference/see also section.
  5165. * README
  5166. * doc/aria2c.1.txt
  5167. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5168. Reorganized man page based on man man-pages.
  5169. * doc/aria2c.1.txt
  5170. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5171. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5172. because same documents are available in man page. Added
  5173. References section.
  5174. * README
  5175. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5176. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5177. PERFORMANCE PROFILE section.
  5178. * doc/aria2c.1.txt
  5179. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5180. Rewritten the section for configuration file.
  5181. * README
  5182. * doc/aria2c.1.txt
  5183. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5184. Fixed the segmentation fault during execution of choking algorithm
  5185. in leecher state because of broken compare operator
  5186. implementation.
  5187. * src/BtLeecherStateChoke.cc
  5188. * src/BtLeecherStateChoke.h
  5189. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5190. Open file in binary mode.
  5191. * src/CookieStorage.cc
  5192. * src/DHTSetup.cc
  5193. * src/DHTUtil.cc
  5194. * src/Netrc.cc
  5195. * src/NsCookieParser.cc
  5196. * src/ProtocolDetector.cc
  5197. * src/RequestGroupMan.cc
  5198. * src/Signature.cc
  5199. * src/bencode.cc
  5200. * src/download_helper.cc
  5201. * src/option_processing.cc
  5202. * test/CookieParserTest.cc
  5203. * test/DefaultBtProgressInfoFileTest.cc
  5204. * test/FileTest.cc
  5205. * test/GZipDecoderTest.cc
  5206. * test/RequestGroupManTest.cc
  5207. * test/SignatureTest.cc
  5208. * test/SingleFileAllocationIteratorTest.cc
  5209. * test/UriListParserTest.cc
  5210. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5211. Removed operator[] because it is ambiguous with built-in []
  5212. operator.
  5213. * src/array_fun.h
  5214. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5215. Fixed compile error
  5216. * src/OptionParser.cc
  5217. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5218. Added missing call to arrayWrapperConst
  5219. * test/array_funTest.cc
  5220. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5221. Use array_wrapper instead of array_ptr.
  5222. * src/DHTRoutingTableDeserializer.cc
  5223. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5224. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5225. * src/array_fun.h
  5226. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5227. Added array_wrapper template.
  5228. * src/array_fun.h
  5229. * test/array_funTest.cc
  5230. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5231. Use operator T* of array_ptr.
  5232. * src/OptionParser.cc
  5233. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5234. Use localhost instead of 127.0.0.1
  5235. * test/FtpConnectionTest.cc
  5236. * test/MSEHandshakeTest.cc
  5237. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5238. Added operator T*
  5239. * src/array_fun.h
  5240. * test/array_funTest.cc
  5241. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5242. Use dynamically allocated char array to detect memory access
  5243. violation.
  5244. * src/DHTRoutingTableDeserializer.cc
  5245. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5246. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5247. defined.
  5248. * src/PeerMessageUtil.cc
  5249. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5250. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5251. * configure.ac
  5252. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5253. Added a check to see struct sockaddr_in has sin_len member.
  5254. * configure.ac
  5255. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5256. Fixed buffer overrun.
  5257. * src/DHTRoutingTableDeserializer.cc
  5258. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5259. Added LL for long long int constant.
  5260. * test/FtpConnectionTest.cc
  5261. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5262. Casted to unsigned int to suppress compiler warning on netbsd.
  5263. * src/BtRuntime.h
  5264. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5265. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5266. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5267. type time_t.
  5268. * src/SimpleLogger.cc
  5269. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5270. Added test for FtpConnection::receiveSizeResponse().
  5271. * test/FtpConnectionTest.cc
  5272. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5273. Fix epoll error on the old kernel 2.6.8 or ealier.
  5274. * src/EpollEventPoll.cc
  5275. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5276. Use Util::parseLLInt instead of sscanf for portability. The
  5277. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5278. * src/FtpConnection.cc
  5279. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5280. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5281. block. It should not filter anything.
  5282. * src/BitfieldMan.cc
  5283. * src/ConsoleStatCalc.cc
  5284. * test/BitfieldManTest.cc
  5285. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5286. Fixed the bug that the boolean options that don't take arguments
  5287. don't work.
  5288. * src/OptionHandlerImpl.h
  5289. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5290. Fixed broken selected file BitTorrent download.
  5291. * src/MultiDiskAdaptor.cc
  5292. * test/MultiDiskAdaptorTest.cc
  5293. * test/MultiFileAllocationIteratorTest.cc
  5294. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5295. Fixed #define guard for EpollEventPoll
  5296. * src/EpollEventPoll.h
  5297. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5298. Wait 2 seconds. 1 second is sometimes not enough.
  5299. * test/TimeSeedCriteriaTest.cc
  5300. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5301. Use localhost instead of 127.0.0.1.
  5302. * test/DHTConnectionImplTest.cc
  5303. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5304. Suppressed compiler warning.
  5305. * src/AdaptiveURISelector.cc
  5306. * src/DefaultPieceStorage.cc
  5307. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5308. Defined virtual destructor.
  5309. * src/MetalinkParserState.h
  5310. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5311. Give NULL for second argument of getaddrinfo instead of "0".
  5312. * src/NameResolver.cc
  5313. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5314. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5315. included strptime doesn't parse data for this format.
  5316. * src/FtpConnection.cc
  5317. * test/FtpConnectionTest.cc
  5318. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5319. Removed tests giving -1 for unsigned argument.
  5320. * test/SingleFileDownloadContextTest.cc
  5321. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5322. Don't use sha256 in tests because it might not be supported by the
  5323. SSL library.
  5324. * test/MetalinkProcessorTest.cc
  5325. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5326. Removed tests giving -1 for unsigned argument.
  5327. * test/AlphaNumberDecoratorTest
  5328. * test/BitfieldManTest.cc
  5329. * test/DefaultBtContextTest.cc
  5330. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5331. Fixed compile error without libcares when epoll is available.
  5332. * src/EpollEventPoll.cc
  5333. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5334. Included fstream instead of iostream.
  5335. * test/SignatureTest.cc
  5336. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5337. Removed #include <algorithm>
  5338. * test/RequestGroupTest.cc
  5339. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5340. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5341. using RequestGroup::extractURIResult().
  5342. * src/AdaptiveURISelector.cc
  5343. * src/RequestGroup.cc
  5344. * src/RequestGroup.h
  5345. * test/RequestGroupTest.cc
  5346. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5347. Added tests for array_ptr.
  5348. * test/array_funTest.cc
  5349. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5350. Don't send ip parameter to a tracker if ip parameter is empty
  5351. string.
  5352. * src/DefaultBtAnnounce.cc
  5353. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5354. Adjusted line feed.
  5355. * src/version_usage.cc
  5356. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5357. Print tags, possible values when OptionHandlerException is caught.
  5358. * src/option_processing.cc
  5359. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5360. Changed the message for FatalException.
  5361. * src/OptionParser.cc
  5362. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5363. Documented --bt-external-ip option in man page. Updated man pages
  5364. for --proxy-method option.
  5365. * doc/aria2c.1.txt
  5366. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5367. Use GET method for FTP via HTTP proxy.
  5368. * src/FtpInitiateConnectionCommand.cc
  5369. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5370. Changed the default value of --proxy-method option from 'tunnel'
  5371. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5372. option.
  5373. * src/AbstractCommand.cc
  5374. * src/AbstractCommand.h
  5375. * src/FtpInitiateConnectionCommand.cc
  5376. * src/HttpDownloadCommand.cc
  5377. * src/HttpInitiateConnectionCommand.cc
  5378. * src/HttpInitiateConnectionCommand.h
  5379. * src/OptionHandlerFactory.cc
  5380. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5381. Initialized _logger
  5382. * src/SelectEventPoll.cc
  5383. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5384. Defined a copy constructor for the same type.
  5385. * src/SharedHandle.h
  5386. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5387. Added OptionParser::parseArg() which internally uses getopt_long
  5388. to parse command-line options. All command-line options are now
  5389. configured by OptionHandler. No manual editing of struct option*
  5390. is required any more.
  5391. * src/NameMatchOptionHandler.h
  5392. * src/OptionHandler.h
  5393. * src/OptionHandlerFactory.cc
  5394. * src/OptionHandlerImpl.h
  5395. * src/OptionParser.cc
  5396. * src/OptionParser.h
  5397. * src/array_fun.h
  5398. * src/main.cc
  5399. * src/option_processing.cc
  5400. * test/OptionHandlerTest.cc
  5401. * test/OptionParserTest.cc
  5402. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5403. Fixed configure error with --disable-epoll
  5404. * configure.ac
  5405. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5406. Fixed compile error when HAVE_EPOLL is not defined.
  5407. Fixed linker error on bigendian systems.
  5408. * src/SocketCore.cc
  5409. * src/SocketCore.h
  5410. * test/DefaultBtProgressInfoFileTest.cc
  5411. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5412. Added --bt-external-ip option. You can specify the external IP
  5413. address to report to a BitTorrent tracker. Although this function
  5414. is named 'external', it can accept any kind of IP addresses.
  5415. * src/DefaultBtAnnounce.cc
  5416. * src/OptionHandlerFactory.cc
  5417. * src/option_processing.cc
  5418. * src/prefs.cc
  5419. * src/prefs.h
  5420. * src/usage_text.h
  5421. * test/DefaultBtAnnounceTest.cc
  5422. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5423. Extracted the algorithm to find the longest incremental sequence
  5424. as max_sequence template.
  5425. * src/LongestSequencePieceSelector.cc
  5426. * src/a2algo.h
  5427. * test/Makefile.am
  5428. * test/a2algoTest.cc
  5429. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5430. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5431. * src/usage_text.h
  5432. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5433. Updated doc for --uri-selector, --http-server-listen-port and
  5434. --enable-http-server option. Documented --event-poll option.
  5435. * doc/aria2c.1.txt
  5436. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5437. Updated doc for --enable-http-server.
  5438. * src/usage_text.h
  5439. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5440. Documented --http-server-listen-port and --enable-http-server in
  5441. man page.
  5442. * doc/aria2c.1.txt
  5443. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5444. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5445. translations. Thanks to all translators.
  5446. * po/es.po
  5447. * po/id.po
  5448. * po/it.po
  5449. * po/ru.po
  5450. * po/uk.po
  5451. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5452. Bump up version number to 1.2.0
  5453. * configure.ac
  5454. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5455. BtContext::getAnnounceTiers() now returns const reference.
  5456. * src/BtContext.h
  5457. * src/DefaultBtContext.cc
  5458. * src/DefaultBtContext.h
  5459. * test/MockBtContext.h
  5460. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5461. Change the number of retries for tracker request based on the
  5462. number of available tracker in a torrent file.
  5463. * src/TrackerWatcherCommand.cc
  5464. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5465. Added _maxTries property to RequestGroup and assign the option
  5466. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5467. RequestGroup::getMaxTries() instead of
  5468. Option::getAsInt(PREF_MAX_TRIES).
  5469. * src/AbstractCommand.cc
  5470. * src/RequestGroup.cc
  5471. * src/RequestGroup.h
  5472. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5473. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5474. Mandriva. I modified the patch: make RequestGroup have the
  5475. timeout value and AdaptiveURISelector directly modifies that
  5476. value.
  5477. * src/AbstractCommand.cc
  5478. * src/AdaptiveURISelector.cc
  5479. * src/AdaptiveURISelector.h
  5480. * src/FtpNegotiationCommand.cc
  5481. * src/RequestGroup.cc
  5482. * src/RequestGroup.h
  5483. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5484. Fixed compiler warning
  5485. * test/IteratableChecksumValidatorTest.cc
  5486. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5487. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5488. integrated downloads. This PieceSelector subclass finds the
  5489. longest continuous sequence in the available missing pieces and
  5490. selects the last index of such sequence. This makes HTTP/FTP
  5491. connections less interrupted by the pieces obtained by BitTorrent
  5492. peers.
  5493. * src/DefaultPieceStorage.cc
  5494. * src/DefaultPieceStorage.h
  5495. * src/LongestSequencePieceSelector.cc
  5496. * src/LongestSequencePieceSelector.h
  5497. * src/Makefile.am
  5498. * src/PieceSelector.h
  5499. * src/RarestPieceSelector.h
  5500. * src/RequestGroup.cc
  5501. * test/BtDependencyTest.cc
  5502. * test/DefaultPieceStorageTest.cc
  5503. * test/IteratableChecksumValidatorTest.cc
  5504. * test/LongestSequencePieceSelectorTest.cc
  5505. * test/Makefile.am
  5506. * test/SegmentManTest.cc
  5507. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5508. Fixed the bug that the average speed is wrong in
  5509. http/ftp/BitTorrent integrated download. Only the download bytes
  5510. in BitTorrent were considered.
  5511. * src/RequestGroup.cc
  5512. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5513. Choose port for BitTorrent/DHT randomly from the specified range.
  5514. * src/DHTConnectionImpl.cc
  5515. * src/PeerListenCommand.cc
  5516. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5517. Send HTTP Authorization header only if it is requested by the
  5518. server(response 401). There are some exceptions. The authorization
  5519. header for proxy is always sent if it is available without request
  5520. by the server. If username/password is specified in the URI, it
  5521. is immediately sent to the server without request by the server.
  5522. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5523. SharedHandle<AuthConfig>().
  5524. NetrcAuthResolver::resolveAuthConfig() returns
  5525. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5526. * src/AbstractAuthResolver.cc
  5527. * src/AbstractProxyRequestCommand.cc
  5528. * src/AuthConfigFactory.cc
  5529. * src/AuthConfigFactory.h
  5530. * src/HttpConnection.cc
  5531. * src/HttpRequest.cc
  5532. * src/HttpRequest.h
  5533. * src/HttpResponse.cc
  5534. * src/HttpResponseCommand.cc
  5535. * src/HttpSkipResponseCommand.cc
  5536. * test/AuthConfigFactoryTest.cc
  5537. * test/HttpRequestTest.cc
  5538. * test/HttpResponseTest.cc
  5539. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5540. Remove leading "--" from help keyword and a substring after "="
  5541. from help keyword, so that one can query options by '-h--max-' or
  5542. '-hmax-peers=10'.
  5543. * src/option_processing.cc
  5544. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5545. Rewritten PStringVisitor and its implementation.
  5546. * src/PStringBuildVisitor.cc
  5547. * src/PStringBuildVisitor.h
  5548. * src/PStringDatum.h
  5549. * src/PStringNumLoop.h
  5550. * src/PStringSegment.cc
  5551. * src/PStringSegment.h
  5552. * src/PStringSelect.h
  5553. * src/PStringVisitor.h
  5554. * src/download_helper.cc
  5555. * test/PStringBuildVisitorTest.cc
  5556. * test/ParameterizedStringParserTest.cc
  5557. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5558. Persist connection between the built-in HTTP server and a client
  5559. if a client supports keep-alive. Fixed the bug that aria2 exits
  5560. when the HTTP server receives EOF from a client.
  5561. * src/HttpServer.cc
  5562. * src/HttpServer.h
  5563. * src/HttpServerCommand.cc
  5564. * src/HttpServerCommand.h
  5565. * src/HttpServerResponseCommand.cc
  5566. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5567. Added experimental built-in HTTP server. Currently, when a client
  5568. accesses to the server, it responds with the current download
  5569. progress. By default, it is disabled. To enable the server, give
  5570. --enable-http-server option. To change the default port number
  5571. for the server to listen to, use --http-server-listen-port option.
  5572. The response HTML is very simple and refreshes it self each 1
  5573. second. Because of this refresh, you see flicker in normal web
  5574. browser such as Firefox. I recommend to use console-based browser
  5575. such as elinks, w3m. To connect to the server, run 'elinks
  5576. http://localhost:6800/' while running aria2. Please replace port
  5577. number '6800'(which is default) with your preference.
  5578. * src/DownloadEngineFactory.cc
  5579. * src/HttpHeader.cc
  5580. * src/HttpHeader.h
  5581. * src/HttpHeaderProcessor.cc
  5582. * src/HttpHeaderProcessor.h
  5583. * src/HttpListenCommand.cc
  5584. * src/HttpListenCommand.h
  5585. * src/HttpServer.cc
  5586. * src/HttpServer.h
  5587. * src/HttpServerCommand.cc
  5588. * src/HttpServerCommand.h
  5589. * src/HttpServerResponseCommand.cc
  5590. * src/HttpServerResponseCommand.h
  5591. * src/Makefile.am
  5592. * src/OptionHandlerFactory.cc
  5593. * src/Util.cc
  5594. * src/Util.h
  5595. * src/help_tags.h
  5596. * src/option_processing.cc
  5597. * src/prefs.cc
  5598. * src/prefs.h
  5599. * src/usage_text.h
  5600. * test/HttpHeaderProcessorTest.cc
  5601. * test/UtilTest.cc
  5602. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5603. Removed.
  5604. * src/CheckIntegrityMan.cc
  5605. * src/FileAllocationMan.cc
  5606. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5607. Made (piece) hash check sequential for each RequestGroup because
  5608. simultaneous hash check is slower than sequential execution.
  5609. * src/CheckIntegrityCommand.cc
  5610. * src/CheckIntegrityDispatcherCommand.cc
  5611. * src/CheckIntegrityDispatcherCommand.h
  5612. * src/CheckIntegrityMan.h
  5613. * src/ConsoleStatCalc.cc
  5614. * src/DownloadCommand.cc
  5615. * src/DownloadEngine.cc
  5616. * src/DownloadEngine.h
  5617. * src/DownloadEngineFactory.cc
  5618. * src/Makefile.am
  5619. * src/Makefile.in
  5620. * src/RequestGroup.cc
  5621. * src/StatCalc.h
  5622. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5623. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5624. SequentialDispatcherCommand.
  5625. * src/FileAllocationDispatcherCommand.cc
  5626. * src/SequentialDispatcherCommand.h
  5627. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5628. Rewritten FileAllocationDispatcherCommand using brand new
  5629. SequentialDispatcherCommand.
  5630. * src/DownloadEngineFactory.cc
  5631. * src/FileAllocationCommand.cc
  5632. * src/FileAllocationDispatcherCommand.cc
  5633. * src/FileAllocationDispatcherCommand.h
  5634. * src/Makefile.am
  5635. * src/SequentialDispatcherCommand.h
  5636. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5637. Replaced FileAllocationMan with
  5638. SequentialPicker<FileAllocationEntry>.
  5639. * src/BtCheckIntegrityEntry.cc
  5640. * src/ConsoleStatCalc.cc
  5641. * src/DownloadEngine.cc
  5642. * src/DownloadEngine.h
  5643. * src/DownloadEngineFactory.cc
  5644. * src/FileAllocationCommand.cc
  5645. * src/FileAllocationDispatcherCommand.cc
  5646. * src/FileAllocationMan.h
  5647. * src/Makefile.am
  5648. * src/SequentialPicker.h
  5649. * src/StatCalc.h
  5650. * src/StreamCheckIntegrityEntry.cc
  5651. * test/Makefile.am
  5652. * test/SequentialPickerTest.cc
  5653. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5654. Added doc for adaptive URI selector.
  5655. * doc/aria2c.1.txt
  5656. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5657. Added doc for adaptive URI selector.
  5658. * src/usage_text.h
  5659. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5660. Added doc for --bt-max-peers option.
  5661. * doc/aria2c.1.txt
  5662. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5663. Added doc for --bt-hash-check-seed option.
  5664. * doc/aria2c.1.txt
  5665. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. Documented exit codes.
  5667. * doc/aria2c.1.txt
  5668. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5669. Added --bt-max-peers option to specify the maximum number of peers
  5670. per torrent. 0 means unlimited number of peers.
  5671. * src/ActivePeerConnectionCommand.cc
  5672. * src/BtRuntime.h
  5673. * src/DefaultPeerStorage.cc
  5674. * src/DefaultPeerStorage.h
  5675. * src/OptionHandlerFactory.cc
  5676. * src/RequestGroup.cc
  5677. * src/option_processing.cc
  5678. * src/prefs.cc
  5679. * src/prefs.h
  5680. * src/usage_text.h
  5681. * test/DefaultPeerStorageTest.cc
  5682. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5683. Added --bt-hash-check-seed option. If true is given to this
  5684. option, after hash check using --check-integrity option and file
  5685. is complete, continue to seed file. If you want to check file and
  5686. download it only when it is damaged or incomplete, set this option
  5687. to false. This option has effect only on BitTorrent download.
  5688. The default value is true(This is the same behavior with the
  5689. previous release).
  5690. * src/BtCheckIntegrityEntry.cc
  5691. * src/OptionHandlerFactory.cc
  5692. * src/option_processing.cc
  5693. * src/prefs.cc
  5694. * src/prefs.h
  5695. * src/usage_text.h
  5696. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5697. Updated copyright year.
  5698. * src/version_usage.cc
  5699. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5700. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5701. * doc/aria2c.1.txt
  5702. * src/usage_text.h
  5703. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5704. Made the max value of split option unlimited.
  5705. * doc/aria2c.1.txt
  5706. * src/OptionHandlerFactory.cc
  5707. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5708. Fixed compile warning/error.
  5709. * src/DownloadResult.h
  5710. * src/HttpDownloadCommand.cc
  5711. * src/ServerStat.cc
  5712. * test/RequestGroupTest.cc
  5713. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5714. Added --event-poll option to select the method for polling events.
  5715. The available methods are "select" and "epoll". "epoll" is
  5716. available on Linux only. The earlier release has the compile
  5717. option to choose from these methods.
  5718. * configure.ac
  5719. * src/RequestGroupMan.cc
  5720. * src/OptionHandlerFactory.cc
  5721. * src/EpollEventPoll.h
  5722. * src/StreamFileAllocationEntry.cc
  5723. * src/a2io.h
  5724. * src/SelectEventPoll.h
  5725. * src/option_processing.cc
  5726. * src/prefs.h
  5727. * src/EpollEventPoll.cc
  5728. * src/EventPoll.h
  5729. * src/SocketCore.h
  5730. * src/Makefile.am
  5731. * src/main.cc
  5732. * src/DownloadEngine.h
  5733. * src/SelectEventPoll.cc
  5734. * src/DownloadEngine.cc
  5735. * src/SocketCore.cc
  5736. * src/DownloadEngineFactory.cc
  5737. * src/Makefile.in
  5738. * src/prefs.cc
  5739. * src/usage_text.h
  5740. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5741. Included RecoverableException.h from main.cc
  5742. * src/main.cc
  5743. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5744. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  5745. now returns last error encountered in the HTTP/FTP downloads as a
  5746. exit status value. If all downloads finished successfully, aria2
  5747. returns 0. The error code is defined in src/DownloadResult.h.
  5748. The error occurred in the download currently in progress is not
  5749. reported as a last error. If no error has encountered but there
  5750. are in progress or waiting downloads, aria2 returns 7.
  5751. * src/AbstractCommand.cc
  5752. * src/DlAbortEx.h
  5753. * src/DlRetryEx.h
  5754. * src/DownloadCommand.cc
  5755. * src/DownloadFailureException.h
  5756. * src/DownloadResult.h
  5757. * src/FtpNegotiationCommand.cc
  5758. * src/HttpSkipResponseCommand.cc
  5759. * src/Makefile.am
  5760. * src/MultiUrlRequestInfo.cc
  5761. * src/MultiUrlRequestInfo.h
  5762. * src/RecoverableException.h
  5763. * src/RequestGroup.cc
  5764. * src/RequestGroup.h
  5765. * src/RequestGroupMan.cc
  5766. * src/RequestGroupMan.h
  5767. * src/URIResult.cc
  5768. * src/URIResult.h
  5769. * src/main.cc
  5770. * src/option_processing.cc
  5771. * test/RequestGroupTest.cc
  5772. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5773. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5774. patch adds AdaptiveURISelector, which selects one of the bests
  5775. mirrors for first and reserved connections. For supplementary
  5776. ones, it returns mirrors which has not been tested yet, and if
  5777. each of them already tested, returns mirrors which has to be
  5778. tested again. Otherwise, it doesn't return anymore mirrors.
  5779. * src/AdaptiveURISelector.cc
  5780. * src/AdaptiveURISelector.h
  5781. * src/FtpNegotiationCommand.cc
  5782. * src/HttpResponseCommand.cc
  5783. * src/Makefile.am
  5784. * src/Makefile.in
  5785. * src/OptionHandlerFactory.cc
  5786. * src/RequestGroup.cc
  5787. * src/RequestGroup.h
  5788. * src/RequestGroupMan.cc
  5789. * src/ServerStat.cc
  5790. * src/ServerStat.h
  5791. * src/ServerStatMan.cc
  5792. * src/SpeedCalc.cc
  5793. * src/URISelector.h
  5794. * src/prefs.cc
  5795. * src/prefs.h
  5796. * test/RequestGroupManTest.cc
  5797. * test/ServerStatManTest.cc
  5798. * test/ServerStatTest.cc
  5799. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5800. Fixed unit test error.
  5801. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5802. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5803. * Release 1.1.2
  5804. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5805. Updated Russian translation. Thanks to the translators.
  5806. * po/ru.po
  5807. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5808. Added the description of --use-head option to man page.
  5809. * doc/aria2c.1.txt
  5810. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5811. Bump up version number to 1.1.2
  5812. * configure.ac
  5813. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5814. Added --use-head option to toggle whether HEAD method should be
  5815. used in the first HTTP request. By default aria2 uses HEAD method
  5816. as the first request. When the server doesn't recognize HEAD, then
  5817. give aria2 --use-head=false to force aria2 to use GET method
  5818. instead.
  5819. * src/OptionHandlerFactory.cc
  5820. * src/RequestGroupMan.cc
  5821. * src/option_processing.cc
  5822. * src/prefs.cc
  5823. * src/prefs.h
  5824. * src/usage_text.h
  5825. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5826. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5827. message is received before CHOKE message. The old implementation
  5828. doen't clear the use-bit of the piece when recieved REJECT
  5829. message.
  5830. * src/DefaultBtMessageDispatcher.cc
  5831. * test/DefaultBtMessageDispatcherTest.cc
  5832. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5833. * Release 1.1.1
  5834. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5835. Bump up version number to 1.1.1.
  5836. * configure.ac
  5837. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5838. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5839. is printed repeatedly.
  5840. * src/ConsoleStatCalc.cc
  5841. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5842. * Release 1.1.0
  5843. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5844. Added ifdef clause for conditional compilation.
  5845. * src/main.cc
  5846. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5847. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5848. translations. Thanks to all translators.
  5849. * po/ja.po
  5850. * po/ru.po
  5851. * po/uk.po
  5852. * po/zh_CN.po
  5853. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5854. Added the preceding ">>> " before the message "Printing the
  5855. contents of file..." to make the output more readable.
  5856. * src/main.cc
  5857. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5858. Added try-catch block in the loop in showFiles() to continue the
  5859. operation even if the exception occurred in one file.
  5860. * src/main.cc (showFiles)
  5861. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5862. Made messages in showFiles() translatable.
  5863. * po/aria2.pot
  5864. * src/main.cc
  5865. * src/message.h
  5866. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5867. Print the contents of Torrent/Metalink files are printed without
  5868. -T/-M options.
  5869. * src/main.cc
  5870. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5871. Escaped '--' with '\--'
  5872. * README
  5873. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5874. Updated "How to build" section in README. Mentioned about
  5875. --with-ca-bundle compile option.
  5876. * README
  5877. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5878. Bump up version number to 1.1.0.
  5879. * configure.ac
  5880. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5881. Added a note for --dht-listen-port option.
  5882. * doc/aria2c.1.txt
  5883. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5884. Update doc for --realtime-chunk-checksum option.
  5885. * doc/aria2c.1.txt
  5886. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5887. Update doc for --realtime-chunk-checksum option.
  5888. * src/usage_text.h
  5889. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5890. Updated French, Japanese, Russian and Ukrainian translations.
  5891. Thanks to all translators.
  5892. * po/fr.po
  5893. * po/ja.po
  5894. * po/ru.po
  5895. * po/uk.po
  5896. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5897. Renamed aria2c.pot to aria2.pot
  5898. * po/aria2.pot
  5899. * po/aria2c.pot: Removed.
  5900. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5901. Removed MetaEntry.h
  5902. * src/Makefile.am
  5903. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5904. Rename file by appending digits if a local file exists and its
  5905. file size is larger than that of remote file with --continue
  5906. option. The old implementation just throws exception in such case.
  5907. * src/RequestGroup.cc
  5908. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5909. Fixed the bug that download progress summary is not printed in the
  5910. interval specified by the option.
  5911. * src/ConsoleStatCalc.cc
  5912. * src/ConsoleStatCalc.h
  5913. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5914. Fixed compiler warning
  5915. * src/Cookie.cc
  5916. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5917. Fixed the cookie implementation based on RFC2965.
  5918. Now if a value in domain field is not started with dot, then
  5919. prepend dot. That means a cookie with domain=sf.net is sent to
  5920. wiki.sf.net.
  5921. * src/Cookie.cc
  5922. * test/CookieParserTest.cc
  5923. * test/CookieStorageTest.cc
  5924. * test/CookieTest.cc
  5925. * test/NsCookieParserTest.cc
  5926. * test/Sqlite3MozCookieParserTest.cc
  5927. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5928. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5929. is enabled and the server doesn't support keep-alive.
  5930. * src/AbstractCommand.cc
  5931. * src/DownloadCommand.cc
  5932. * src/HttpDownloadCommand.cc
  5933. * src/HttpDownloadCommand.h
  5934. * src/HttpResponseCommand.cc
  5935. * src/Request.cc
  5936. * src/Request.h
  5937. * test/RequestTest.cc
  5938. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5939. Removed Dictionary/List/Data and its related classes.
  5940. * src/BencodeVisitor.cc: Removed.
  5941. * src/BencodeVisitor.h: Removed.
  5942. * src/Data.cc: Removed.
  5943. * src/Data.h: Removed.
  5944. * src/Dictionary.cc: Removed.
  5945. * src/Dictionary.h: Removed.
  5946. * src/List.cc: Removed.
  5947. * src/List.h: Removed.
  5948. * src/Makefile.am
  5949. * src/MetaEntry.h: Removed.
  5950. * src/MetaEntryVisitor.h: Removed.
  5951. * src/MetaFileUtil.cc: Removed.
  5952. * src/MetaFileUtil.h: Removed.
  5953. * test/BencodeVisitorTest.cc: Removed.
  5954. * test/DataTest.cc: Removed.
  5955. * test/DictionaryTest.cc: Removed.
  5956. * test/ListTest.cc: Removed.
  5957. * test/Makefile.am
  5958. * test/MetaFileUtilTest.cc: Removed.
  5959. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5960. Removed include of MetaEntry.h
  5961. * test/DHTMessageTrackerEntryTest.cc
  5962. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5963. Use BDE instead of Dictionary/List/Data.
  5964. * src/AnnounceList.cc
  5965. * src/AnnounceList.h
  5966. * test/AnnounceListTest.cc
  5967. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5968. Use BDE instead of Dictionary/List/Data.
  5969. * src/DHTAbstractMessage.cc
  5970. * src/DHTAbstractMessage.h
  5971. * src/DHTAnnouncePeerMessage.cc
  5972. * src/DHTAnnouncePeerMessage.h
  5973. * src/DHTAnnouncePeerReplyMessage.cc
  5974. * src/DHTAnnouncePeerReplyMessage.h
  5975. * src/DHTFindNodeMessage.cc
  5976. * src/DHTFindNodeMessage.h
  5977. * src/DHTFindNodeReplyMessage.cc
  5978. * src/DHTFindNodeReplyMessage.h
  5979. * src/DHTGetPeersMessage.cc
  5980. * src/DHTGetPeersMessage.h
  5981. * src/DHTGetPeersReplyMessage.cc
  5982. * src/DHTGetPeersReplyMessage.h
  5983. * src/DHTMessageFactory.h
  5984. * src/DHTMessageFactoryImpl.cc
  5985. * src/DHTMessageFactoryImpl.h
  5986. * src/DHTMessageReceiver.cc
  5987. * src/DHTMessageTracker.cc
  5988. * src/DHTMessageTracker.h
  5989. * src/DHTPingMessage.cc
  5990. * src/DHTPingMessage.h
  5991. * src/DHTPingReplyMessage.cc
  5992. * src/DHTPingReplyMessage.h
  5993. * src/DHTQueryMessage.cc
  5994. * src/DHTQueryMessage.h
  5995. * src/DHTResponseMessage.cc
  5996. * src/DHTResponseMessage.h
  5997. * test/DHTAnnouncePeerMessageTest.cc
  5998. * test/DHTAnnouncePeerReplyMessageTest.cc
  5999. * test/DHTFindNodeMessageTest.cc
  6000. * test/DHTFindNodeReplyMessageTest.cc
  6001. * test/DHTGetPeersMessageTest.cc
  6002. * test/DHTGetPeersReplyMessageTest.cc
  6003. * test/DHTMessageFactoryImplTest.cc
  6004. * test/DHTMessageTrackerTest.cc
  6005. * test/DHTPingMessageTest.cc
  6006. * test/DHTPingReplyMessageTest.cc
  6007. * test/MockDHTMessageFactory.h
  6008. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6009. Added tests the case where length < 0 is specified.
  6010. * test/BencodeTest.cc
  6011. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6012. Fixed memory leak in decoderawstring()
  6013. * src/bencode.cc
  6014. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6015. Added missing #ifdef guard. Added uc() function for String and
  6016. removeKey() for Dict.
  6017. * src/bencode.cc
  6018. * src/bencode.h
  6019. * test/BencodeTest.cc
  6020. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6021. Use BDE instead of Dictionary/List/Data.
  6022. * src/HandshakeExtensionMessage.cc
  6023. * src/HandshakeExtensionMessage.h
  6024. * test/HandshakeExtensionMessageTest.cc
  6025. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6026. Added --max-overall-upload-limit option. This option limits the
  6027. overall upload speed. Stated in help message that the existing
  6028. --max-upload-limit option limits the upload speed per each
  6029. torrent. Man page is also updated.
  6030. * doc/aria2c.1.txt
  6031. * src/DefaultBtMessageDispatcher.cc
  6032. * src/DefaultBtMessageDispatcher.h
  6033. * src/OptionHandlerFactory.cc
  6034. * src/PeerInteractionCommand.cc
  6035. * src/option_processing.cc
  6036. * src/prefs.cc
  6037. * src/prefs.h
  6038. * src/usage_text.h
  6039. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6040. Use BDE instead of Dictionary/List/Data classes.
  6041. * src/CompactPeerListProcessor.cc
  6042. * src/CompactPeerListProcessor.h
  6043. * src/DefaultBtAnnounce.cc
  6044. * src/DefaultBtContext.cc
  6045. * src/DefaultBtContext.h
  6046. * src/DefaultPeerListProcessor.cc
  6047. * src/DefaultPeerListProcessor.h
  6048. * src/DelegatingPeerListProcessor.cc
  6049. * src/DelegatingPeerListProcessor.h
  6050. * src/PeerListProcessor.h
  6051. * src/UTPexExtensionMessage.cc
  6052. * src/Util.h
  6053. * src/message.h
  6054. * test/DefaultBtContextTest.cc
  6055. * test/DefaultPeerListProcessorTest.cc
  6056. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6057. Added bencode helper functions and BDE class.
  6058. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6059. * src/Makefile.am
  6060. * src/bencode.cc
  6061. * src/bencode.h
  6062. * test/BencodeTest.cc
  6063. * test/Makefile.am
  6064. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6065. Fixed the bug that bad URI is sent to the tracker when the announe
  6066. URI in torrent file includes query.
  6067. * src/DefaultBtAnnounce.cc
  6068. * test/DefaultBtAnnounceTest.cc
  6069. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6070. Added Option::blank().
  6071. Use !Option::blank(name) instead of Option::defined(name) for
  6072. the options that take filename.
  6073. * src/MultiUrlRequestInfo.cc
  6074. * src/Option.cc
  6075. * src/Option.h
  6076. * src/main.cc
  6077. * src/option_processing.cc
  6078. * test/OptionTest.cc
  6079. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6080. Documented the default value of --check-certificate option in man
  6081. page.
  6082. * doc/aria2c.1.txt
  6083. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6084. Enabled --check-certificate by default. Added compile
  6085. time(configure) option --with-ca-bundle to specify CA bundle.
  6086. Warn if --check-certificate=true and --ca-certificate is not
  6087. specified or loading CA certificate is failed.
  6088. * configure.ac
  6089. * src/MultiUrlRequestInfo.cc
  6090. * src/OptionHandlerFactory.cc
  6091. * src/message.h
  6092. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6093. Mentioned https tag in help option.
  6094. * doc/aria2c.1.txt
  6095. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6096. Added `https' tag to help option category. Added https tag to
  6097. --ca-certificate, --certificate, --check-certificate and
  6098. --private-key option.
  6099. * src/OptionHandlerFactory.cc
  6100. * src/help_tags.h
  6101. * src/option_processing.cc
  6102. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6103. Changed the package name from `aria2c' to `aria2' in order to fix
  6104. the packaging issue in Debian and Fedora. The name of the
  6105. executable is not changed.
  6106. * configure.ac
  6107. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6108. Fixed typos
  6109. * src/usage_text.h
  6110. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6111. Fixed typos and updated doc.
  6112. * README
  6113. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6114. Fixed typos
  6115. * doc/aria2c.1.txt
  6116. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6117. Fixed typos
  6118. * src/usage_text.h
  6119. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6120. Print a message when no files to download.
  6121. * src/download_helper.cc
  6122. * src/main.cc
  6123. * src/message.h
  6124. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6125. RFC3986 complied Percent-Encoding(urlencode).
  6126. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6127. ones.
  6128. * src/Request.cc
  6129. * src/Util.cc
  6130. * src/Util.h
  6131. * test/BtHandshakeMessageTest.cc
  6132. * test/DefaultBtAnnounceTest.cc
  6133. * test/DefaultBtContextTest.cc
  6134. * test/RequestTest.cc
  6135. * test/UtilTest.cc
  6136. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6137. Fixed the bug that prevents aria2 from downloading 0-length files
  6138. via HTTP/FTP.
  6139. * src/DefaultBtContext.cc
  6140. * src/DefaultBtContext.h
  6141. * src/DownloadContext.h
  6142. * src/FtpNegotiationCommand.cc
  6143. * src/HttpResponseCommand.cc
  6144. * src/HttpResponseCommand.h
  6145. * src/RequestGroup.cc
  6146. * src/SingleFileDownloadContext.cc
  6147. * src/SingleFileDownloadContext.h
  6148. * test/BtPostDownloadHandlerTest.cc
  6149. * test/MetalinkPostDownloadHandlerTest.cc
  6150. * test/MockBtContext.h
  6151. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6152. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6153. * src/option_processing.cc
  6154. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6155. Applied aria2-1.0.1-mingw.patch.
  6156. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6157. mingw.
  6158. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6159. * src/SocketCore.cc
  6160. * src/a2netcompat.h
  6161. * test/SocketCoreTest.cc
  6162. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6163. * Release 1.0.1
  6164. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6165. Updated Ukrainian and Norwegian Nynorsk translations.
  6166. Thanks to all translators.
  6167. * po/nn.po
  6168. * po/uk.po
  6169. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6170. Don't show download result when -S option is used.
  6171. * src/main.cc
  6172. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6173. Bump up version number to 1.0.1
  6174. * configure.ac
  6175. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6176. Closed files after the test cases in MultiDiskWriterTest::
  6177. testResetDiskWriterEntries(). This will fix the unit test error
  6178. in mingw32 build.
  6179. * test/MultiDiskWriterTest.cc
  6180. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6181. Use HEAD method to get file size from HTTP server for segmented
  6182. downloading.
  6183. The request to the BitTorrent Tracker always uses GET method because
  6184. the response of the tracker is small and it doesn't need segmented
  6185. download.
  6186. * src/FtpNegotiationCommand.cc
  6187. * src/HttpRequest.cc
  6188. * src/HttpResponseCommand.cc
  6189. * src/HttpSkipResponseCommand.cc
  6190. * src/RequestGroup.cc
  6191. * src/RequestGroup.h
  6192. * src/TrackerWatcherCommand.cc
  6193. * test/HttpRequestTest.cc
  6194. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6195. Fixed the bug that causes floating exception when -T option is used and
  6196. no URIs are given.
  6197. * src/download_helper.cc
  6198. * test/DownloadHelperTest.cc
  6199. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6200. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6201. errors in MinGW:
  6202. Closed file after saving server stats (RequestGroupMan.cc)
  6203. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6204. Ignored case & handled 2-digit years (strptime.c)
  6205. Added missing suseconds_t definition (a2time.h)
  6206. Fixed socket CLOSE() define (SocketCore.cc)
  6207. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6208. Changed utime() test values from x000 to x00000 as MinGW failed on
  6209. values less than timezone offset from Unix epoch
  6210. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6211. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6212. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6213. handle negative dates (CookieParserTest.cc)
  6214. * src/a2time.h
  6215. * src/FtpConnection.cc
  6216. * src/RequestGroupMan.cc
  6217. * src/SocketCore.cc
  6218. * src/strptime.c
  6219. * test/CookieParserTest.cc
  6220. * test/CopyDiskAdaptorTest.cc
  6221. * test/FileTest.cc
  6222. * test/FtpConnectionTest.cc
  6223. * test/MultiDiskAdaptorTest.cc
  6224. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6225. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6226. * doc/aria2c.1.txt
  6227. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6228. * Release 1.0.0
  6229. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6230. Added '~' to reserved characters.
  6231. * src/Util.cc
  6232. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6233. Do not urlencode Request::url in setUrl() because we want unmodified
  6234. URL using Request::getUrl()
  6235. * src/Request.cc
  6236. * src/Request.h
  6237. * test/RequestTest.cc
  6238. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6239. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6240. Thanks to all translators.
  6241. * po/bg.po
  6242. * po/fr.po
  6243. * po/ja.po
  6244. * po/ru.po
  6245. * po/uk.po
  6246. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6247. Bump up version number to 1.0.0
  6248. * configure.ac
  6249. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6250. Added nosqlite3 build to build_test.sh.
  6251. Renamed noxml as expat.
  6252. * build_test.sh
  6253. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6254. Updated INPUT FILE section.
  6255. * doc/aria2c.1.txt
  6256. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6257. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6258. on big endian systems because test .aria2 files are made for little
  6259. endian systems.
  6260. * test/DefaultBtProgressInfoFileTest.cc
  6261. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6262. Dropped ares support.
  6263. * README
  6264. * configure.ac
  6265. * m4/libares.m4: Removed.
  6266. * src/AsyncNameResolver.cc
  6267. * src/Makefile.am
  6268. * test/Makefile.am
  6269. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6270. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6271. Removed const qualifier from DiskWriter::size().
  6272. * src/AbstractDiskWriter.cc
  6273. * src/AbstractDiskWriter.h
  6274. * src/ByteArrayDiskWriter.cc
  6275. * src/ByteArrayDiskWriter.h
  6276. * src/DiskWriter.h
  6277. * test/ByteArrayDiskWriterTest.cc
  6278. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6279. Fixed the bug that causes segmentation fault/bus error during executing
  6280. choking algorithm while seeding. This is caused by improper
  6281. implementation of compare function which returns inconsistent results
  6282. depending on the timing of last unchoke.
  6283. * src/BtSeederStateChoke.cc
  6284. * src/BtSeederStateChoke.h
  6285. * src/DefaultPeerStorage.cc
  6286. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6287. Removed TODO
  6288. * TODO
  6289. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6290. Added a section that explains how to pass argument to options that
  6291. takes optional arguments with its short form.
  6292. * doc/aria2c.1.txt
  6293. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6294. Added -u for the short form of --max-upload-limit option.
  6295. * doc/aria2c.1.txt
  6296. * src/option_processing.cc
  6297. * src/usage_text.h
  6298. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6299. Added -V for the short form of --check-integrity option.
  6300. Now the argument of --check-integrity option is optional:
  6301. if it is omitted, it is evaluated as true.
  6302. * doc/aria2c.1.txt
  6303. * src/option_processing.cc
  6304. * src/usage_text.h
  6305. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6306. Made the default value of --ftp-pasv option set to true and it can take
  6307. true/false values.
  6308. * src/OptionHandlerFactory.cc
  6309. * src/option_processing.cc
  6310. * src/usage_text.h
  6311. * doc/aria2c.1.txt
  6312. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6313. Given custom random number generator to std::random_shuffle.
  6314. * src/AnnounceList.cc
  6315. * src/BtLeecherStateChoke.cc
  6316. * src/BtSeederStateChoke.cc
  6317. * src/DefaultBtRequestFactory.cc
  6318. * src/MetalinkEntry.cc
  6319. * src/RarestPieceSelector.cc
  6320. * src/SimpleRandomizer.cc
  6321. * src/SimpleRandomizer.h
  6322. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6323. Now the default value of --enable-direct-io is true.
  6324. * src/OptionHandlerFactory.cc
  6325. * doc/aria2c.1.txt
  6326. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6327. Erase peer before executing onReturningPeer and onErasingPeer
  6328. because choking algorithm called from onReturningPeer doesn't
  6329. like erasing peer in the active peer list.
  6330. * src/DefaultPeerStorage.cc
  6331. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6332. Instead of creating special filename in createDownloadResult() if
  6333. inMemoryDownload() is true, now it is done in getFilePath().
  6334. * src/RequestGroup.cc
  6335. * test/RequestGroupTest.cc
  6336. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6337. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6338. processed in memory. This is the fix for previous comment out.
  6339. * src/MemoryBufferPreDownloadHandler.cc
  6340. * src/RequestGroup.cc
  6341. * src/RequestGroup.h
  6342. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6343. Commented out the code which sets virtual directory path "[MEMORY]"
  6344. propagate directory to store to following RequestGroup.
  6345. * src/MemoryBufferPreDownloadHandler.cc
  6346. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6347. Bump up version number to 1.0.0b
  6348. * configure.ac
  6349. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6350. Added input_uris.txt to EXTRA_DIST
  6351. * test/Makefile.am
  6352. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6353. Removed PeerObject.h from Makefile.am
  6354. * src/Makefile.am
  6355. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6356. Avoid slow seeding
  6357. * src/PeerInteractionCommand.cc
  6358. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6359. Updated usage for -i option.
  6360. * src/usage_text.h (TEXT_INPUT_FILE)
  6361. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6362. Added INPUT FILE section to man page.
  6363. Escaped fake URLs.
  6364. * doc/aria2c.1.txt
  6365. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6366. Fixed wrong note position for -o option.
  6367. * doc/aria2c.1.txt
  6368. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6369. Fixed compile error without SSL/XML library.
  6370. * src/DefaultBtProgressInfoFile.cc
  6371. * src/DefaultBtProgressInfoFile.h
  6372. * src/FileMetalinkParserState.cc
  6373. * src/RequestGroup.h
  6374. * src/SocketCore.cc
  6375. * src/SocketCore.h
  6376. * src/VerificationMetalinkParserState.cc
  6377. * src/download_helper.h
  6378. * src/main.cc
  6379. * test/DefaultBtProgressInfoFileTest.cc
  6380. * test/DownloadHelperTest.cc
  6381. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6382. Rewritten URI handling functions. They are now provided as a testable
  6383. functions.
  6384. * src/Makefile.am
  6385. * src/RequestGroup.cc
  6386. * src/RequestGroup.h
  6387. * src/download_helper.cc
  6388. * src/download_helper.h
  6389. * src/main.cc
  6390. * test/DownloadHelperTest.cc
  6391. * test/Makefile.am
  6392. * test/input_uris.txt
  6393. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6394. Quickly terminate commands when ctrl-c is pressed.
  6395. * src/DownloadEngine.cc
  6396. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6397. Quickly terminate idle commands when download finished.
  6398. * src/AbstractCommand.cc
  6399. * src/DownloadCommand.cc
  6400. * src/DownloadEngine.cc
  6401. * src/DownloadEngine.h
  6402. * src/SleepCommand.cc
  6403. * src/SleepCommand.h
  6404. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6405. Added the ability to specify output filename and directory in input
  6406. file.
  6407. Additional parameters are added in the following line of URIs
  6408. with proceeding white space(s), 1 parameter in 1 line.
  6409. The parameter names are the same with the command-line option name
  6410. without proceeding "--". Not all the options are available here:
  6411. at the moment, 'dir' and 'out' options are avialable.
  6412. Please note that out option has no effect against Metalink or BitTorrent
  6413. downloads.
  6414. Example input file:
  6415. http://host/foo-1.1.tar.bz2
  6416. out=foo.tar.bz2
  6417. dir=/tmp/downloads
  6418. http://host/thundermonkey-2.0.tar.bz2
  6419. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6420. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6421. thundermonkey-2.0.tar.bz2 is saved as
  6422. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6423. * src/BtPostDownloadHandler.cc
  6424. * src/Metalink2RequestGroup.cc
  6425. * src/Metalink2RequestGroup.h
  6426. * src/MetalinkPostDownloadHandler.cc
  6427. * src/UriListParser.cc
  6428. * src/UriListParser.h
  6429. * src/main.cc
  6430. * test/Metalink2RequestGroupTest.cc
  6431. * test/UriListParserTest.cc
  6432. * test/filelist1.txt
  6433. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6434. Fixed error when SSL library is not found.
  6435. * configure.ac
  6436. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6437. Cross referenced among -s, -C and -j options.
  6438. Updated usage of -C and -s options.
  6439. * src/usage_text.h
  6440. * doc/aria2c.1.txt
  6441. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6442. Fixed bad cast in 32bit platforms.
  6443. * test/DefaultPieceStorageTest.cc
  6444. (DefaultPieceStorageTest::testGetCompletedLength)
  6445. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6446. Fixed unit test fails on 32bit platforms.
  6447. * test/CookieParserTest.cc
  6448. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6449. Show an average download speed in Download results.
  6450. * src/BtFileAllocationEntry.cc
  6451. * src/DefaultPieceStorage.cc
  6452. * src/DownloadContext.cc
  6453. * src/DownloadContext.h
  6454. * src/DownloadResult.h
  6455. * src/RequestGroup.cc
  6456. * src/RequestGroupMan.cc
  6457. * src/StreamFileAllocationEntry.cc
  6458. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6459. Fixed the bug that metalink file is not processed if Content-Type
  6460. field has a paramter.
  6461. * src/HttpResponse.cc
  6462. * src/HttpResponse.h
  6463. * test/HttpResponseTest.cc
  6464. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6465. Removed unused code.
  6466. * src/DefaultBtAnnounce.cc
  6467. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6468. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6469. the value larger than DefaultPieceStorage::getTotalLength() when
  6470. in flight pieces are involved.
  6471. * src/DefaultPieceStorage.cc
  6472. * test/DefaultPieceStorageTest.cc
  6473. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6474. Bump up version number to 1.0.0a.
  6475. * configure.ac
  6476. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6477. Updated configure.ac
  6478. * configure.ac
  6479. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6480. Added usege for proxy.
  6481. * doc/aria2c.1.txt
  6482. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6483. Added usage for --ca-certificate, --certificate, --private-key and
  6484. --check-certificate options.
  6485. * doc/aria2c.1.txt
  6486. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6487. Updated man page
  6488. * doc/aria2c.1.txt
  6489. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6490. Added --no-proxy option. It receives comman separated hostname or
  6491. domains to which proxy should not be used.
  6492. aria2 honors the environment variable no_proxy to override no-proxy
  6493. value in configuration file. The user can override the environment
  6494. variable no_proxy with --no-proxy command-line option.
  6495. * src/AbstractCommand.cc
  6496. * src/OptionHandlerFactory.cc
  6497. * src/option_processing.cc
  6498. * src/prefs.cc
  6499. * src/prefs.h
  6500. * src/usage_text.h
  6501. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6502. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6503. The CA certificates are specified in --ca-certificate option.
  6504. By default, the verification is disabled. Use --check-certificate
  6505. option to enable it.
  6506. * src/HttpRequestCommand.cc
  6507. * src/LibgnutlsTLSContext.cc
  6508. * src/LibgnutlsTLSContext.h
  6509. * src/LibsslTLSContext.cc
  6510. * src/LibsslTLSContext.h
  6511. * src/MultiUrlRequestInfo.cc
  6512. * src/OptionHandlerFactory.cc
  6513. * src/SocketCore.cc
  6514. * src/SocketCore.h
  6515. * src/a2functional.h
  6516. * src/message.h
  6517. * src/option_processing.cc
  6518. * src/prefs.cc
  6519. * src/prefs.h
  6520. * src/usage_text.h
  6521. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6522. Added client certificate authentication for SSL/TLS.
  6523. Currently a private key must be decrypted for use with aria2.
  6524. If a user accidentally gives encrypted file to aria2 then following
  6525. thing happens:
  6526. If encrypted private key is given to aria2, it behaves differently
  6527. depending on the ssl library it uses. If aria2 built with openssl then
  6528. openssl prompts the user for password. If aria2 build with gnutls then
  6529. aria2 exists with error at start up.
  6530. * src/DownloadEngineFactory.cc
  6531. * src/MultiUrlRequestInfo.cc
  6532. * src/OptionHandlerFactory.cc
  6533. * src/option_processing.cc
  6534. * src/prefs.cc
  6535. * src/prefs.h
  6536. * src/usage_text.h
  6537. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6538. Introduced TLSContext that holds TLS related data that can be shared
  6539. with multiple SSL connections.
  6540. * src/DownloadEngineFactory.cc
  6541. * src/LibgnutlsTLSContext.cc
  6542. * src/LibgnutlsTLSContext.h
  6543. * src/LibsslTLSContext.cc
  6544. * src/LibsslTLSContext.h
  6545. * src/Makefile.am
  6546. * src/SocketCore.cc
  6547. * src/SocketCore.h
  6548. * src/TLSContext.h
  6549. * src/message.h
  6550. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6551. Fixed the bug that the DiskWriter of the first FileEntry whose
  6552. `needsFileAllocation' property is false is not created
  6553. even if it shares a piece with next FileEntry which `requested' property
  6554. is true.
  6555. Fixed the bug that zero-length file is not created if pre file
  6556. allocation is not done.
  6557. * src/MultiDiskAdaptor.cc
  6558. * src/MultiDiskAdaptor.h
  6559. * test/MultiDiskAdaptorTest.cc
  6560. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6561. Added the ability to pool proxy connection.
  6562. The conneciton in FTP with proxy-method=GET is not pooled.
  6563. Proxy-Connection header will not be sent when sending CONNECT method.
  6564. * src/DownloadEngine.cc
  6565. * src/DownloadEngine.h
  6566. * src/FtpFinishDownloadCommand.cc
  6567. * src/FtpInitiateConnectionCommand.cc
  6568. * src/FtpNegotiationCommand.cc
  6569. * src/HttpDownloadCommand.cc
  6570. * src/HttpInitiateConnectionCommand.cc
  6571. * src/HttpRequest.cc
  6572. * src/HttpRequest.h
  6573. * src/HttpResponse.cc
  6574. * src/HttpSkipResponseCommand.cc
  6575. * test/HttpRequestTest.cc
  6576. * test/HttpResponseTest.cc
  6577. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. Handle date before epoch.
  6579. To create *bad* Time object, call Time::null().
  6580. * src/CookieParser.cc
  6581. * src/FtpConnection.cc
  6582. * src/FtpConnection.h
  6583. * src/FtpNegotiationCommand.cc
  6584. * src/RequestGroup.cc
  6585. * src/TimeA2.cc
  6586. * src/TimeA2.h
  6587. * test/CookieParserTest.cc
  6588. * test/FtpConnectionTest.cc
  6589. * test/TimeTest.cc
  6590. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6591. Added support for following envrionment variables: http_proxy,
  6592. https_proxy, ftp_proxy and all_proxy.
  6593. Each variable is equivalent to the aria2 option whose name is the
  6594. variable name with '_' replaced with '-'.
  6595. They overrides options specified in aria2.conf file.
  6596. The envrionment variables can be overrode using command-line option.
  6597. * src/option_processing.cc
  6598. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6599. Renamed --http-proxy-method as --proxy-method.
  6600. * src/AbstractCommand.cc
  6601. * src/FtpInitiateConnectionCommand.cc
  6602. * src/HttpInitiateConnectionCommand.cc
  6603. * src/OptionHandlerFactory.cc
  6604. * src/option_processing.cc
  6605. * src/prefs.cc
  6606. * src/prefs.h
  6607. * src/usage_text.h
  6608. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6609. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6610. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6611. Above 3 options and --http-proxy option can handle proxy in URL format
  6612. like: http://user:passwd@host:port.
  6613. If a proxy requires user/password, they must be specified in a URL.
  6614. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6615. instead.
  6616. * src/AbstractCommand.cc
  6617. * src/AbstractCommand.h
  6618. * src/AbstractProxyRequestCommand.cc
  6619. * src/AbstractProxyRequestCommand.h
  6620. * src/AuthConfigFactory.cc
  6621. * src/AuthConfigFactory.h
  6622. * src/FtpFinishDownloadCommand.cc
  6623. * src/FtpInitiateConnectionCommand.cc
  6624. * src/FtpInitiateConnectionCommand.h
  6625. * src/FtpNegotiationCommand.cc
  6626. * src/FtpTunnelRequestCommand.cc
  6627. * src/FtpTunnelRequestCommand.h
  6628. * src/HttpDownloadCommand.cc
  6629. * src/HttpInitiateConnectionCommand.cc
  6630. * src/HttpInitiateConnectionCommand.h
  6631. * src/HttpProxyRequestCommand.cc
  6632. * src/HttpProxyRequestCommand.h
  6633. * src/HttpRequest.cc
  6634. * src/HttpRequest.h
  6635. * src/HttpRequestCommand.cc
  6636. * src/HttpRequestCommand.h
  6637. * src/HttpSkipResponseCommand.cc
  6638. * src/InitiateConnectionCommand.cc
  6639. * src/InitiateConnectionCommand.h
  6640. * src/OptionHandlerFactory.cc
  6641. * src/OptionHandlerImpl.h
  6642. * src/Request.cc
  6643. * src/option_processing.cc
  6644. * src/prefs.cc
  6645. * src/prefs.h
  6646. * src/usage_text.h
  6647. * test/AuthConfigFactoryTest.cc
  6648. * test/HttpRequestTest.cc
  6649. * test/OptionHandlerTest.cc
  6650. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Execute choking algorithm when unchoked and interested peer is
  6652. disconected.
  6653. * src/DefaultPeerStorage.cc
  6654. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6655. Added testcase for BtNotInterestedMessage from unchoked peer.
  6656. * test/BtNotInterestedMessageTest.cc
  6657. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6658. Execute choking algorithm when BtInterestedMessage arrives from
  6659. unchoked peer.
  6660. * src/BtInterestedMessage.cc
  6661. * src/BtInterestedMessage.h
  6662. * src/DefaultBtMessageFactory.cc
  6663. * test/BtInterestedMessageTest.cc
  6664. * test/MockPeerStorage.h
  6665. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6666. AuthConfigFactory is now part of DownloadEngine.
  6667. * src/AbstractProxyRequestCommand.cc
  6668. * src/AuthConfigFactory.h
  6669. * src/DownloadEngine.cc
  6670. * src/DownloadEngine.h
  6671. * src/FtpConnection.cc
  6672. * src/FtpConnection.h
  6673. * src/FtpNegotiationCommand.cc
  6674. * src/HttpConnection.cc
  6675. * src/HttpRequest.cc
  6676. * src/HttpRequest.h
  6677. * src/HttpRequestCommand.cc
  6678. * src/HttpResponse.cc
  6679. * src/HttpResponseCommand.cc
  6680. * src/HttpSkipResponseCommand.cc
  6681. * src/MultiUrlRequestInfo.cc
  6682. * src/main.cc
  6683. * test/FtpConnectionTest.cc
  6684. * test/HttpRequestTest.cc
  6685. * test/HttpResponseTest.cc
  6686. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6687. Corrected catched exception type.
  6688. * src/ServerStatMan.cc
  6689. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6690. DNSCache is now part of DownloadEngine.
  6691. * src/DNSCache.h
  6692. * src/DownloadEngine.cc
  6693. * src/DownloadEngine.h
  6694. * src/InitiateConnectionCommand.cc
  6695. * src/MultiUrlRequestInfo.cc
  6696. * test/Makefile.am
  6697. * test/Makefile.in
  6698. * test/SimpleDNSCacheTest.cc
  6699. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6701. DownloadEngine.
  6702. * src/ActivePeerConnectionCommand.cc
  6703. * src/BtSetup.cc
  6704. * src/CUIDCounter.h
  6705. * src/DHTSetup.cc
  6706. * src/DownloadCommand.cc
  6707. * src/DownloadEngine.cc
  6708. * src/DownloadEngine.h
  6709. * src/DownloadEngineFactory.cc
  6710. * src/FileAllocationDispatcherCommand.cc
  6711. * src/InitiatorMSEHandshakeCommand.cc
  6712. * src/PeerInitiateConnectionCommand.cc
  6713. * src/PeerInteractionCommand.cc
  6714. * src/PeerListenCommand.cc
  6715. * src/RequestGroup.cc
  6716. * src/StreamFileAllocationEntry.cc
  6717. * src/TrackerWatcherCommand.cc
  6718. * src/main.cc
  6719. * test/RequestGroupManTest.cc
  6720. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6721. Implemented commented code in BtSeederStateChoke
  6722. * src/BtSeederStateChoke.cc
  6723. * src/Peer.cc
  6724. * src/Peer.h
  6725. * src/PeerInteractionCommand.cc
  6726. * src/PeerSessionResource.cc
  6727. * src/PeerSessionResource.h
  6728. * test/MockBtMessageDispatcher.h
  6729. * test/PeerSessionResourceTest.cc
  6730. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6731. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  6732. its object.
  6733. * src/AbstractBtMessage.cc
  6734. * src/ActivePeerConnectionCommand.cc
  6735. * src/ActivePeerConnectionCommand.h
  6736. * src/BtContextAwareCommand.cc
  6737. * src/BtContextAwareCommand.h
  6738. * src/BtExtendedMessage.cc
  6739. * src/BtExtendedMessage.h
  6740. * src/BtInterestedMessage.cc
  6741. * src/BtInterestedMessage.h
  6742. * src/BtNotInterestedMessage.cc
  6743. * src/BtNotInterestedMessage.h
  6744. * src/BtRegistry.cc
  6745. * src/BtRegistry.h
  6746. * src/BtSeederStateChoke.cc
  6747. * src/BtSetup.cc
  6748. * src/DHTGetPeersCommand.cc
  6749. * src/DHTGetPeersCommand.h
  6750. * src/DHTPeerAnnounceEntry.cc
  6751. * src/DHTPeerAnnounceEntry.h
  6752. * src/DHTPeerAnnounceStorage.cc
  6753. * src/DHTPeerAnnounceStorage.h
  6754. * src/DHTPeerLookupTask.cc
  6755. * src/DHTPeerLookupTask.h
  6756. * src/DHTSetup.cc
  6757. * src/DHTSetup.h
  6758. * src/DHTTaskFactory.h
  6759. * src/DHTTaskFactoryImpl.cc
  6760. * src/DHTTaskFactoryImpl.h
  6761. * src/DefaultBtAnnounce.cc
  6762. * src/DefaultBtInteractive.cc
  6763. * src/DefaultBtInteractive.h
  6764. * src/DefaultBtMessageDispatcher.cc
  6765. * src/DefaultBtMessageDispatcher.h
  6766. * src/DefaultBtMessageFactory.cc
  6767. * src/DefaultBtMessageFactory.h
  6768. * src/DefaultBtMessageReceiver.cc
  6769. * src/DefaultBtProgressInfoFile.cc
  6770. * src/DefaultBtProgressInfoFile.h
  6771. * src/DefaultBtRequestFactory.cc
  6772. * src/DefaultBtRequestFactory.h
  6773. * src/DefaultExtensionMessageFactory.cc
  6774. * src/DefaultExtensionMessageFactory.h
  6775. * src/DefaultPeerStorage.cc
  6776. * src/DefaultPeerStorage.h
  6777. * src/DownloadEngine.cc
  6778. * src/DownloadEngine.h
  6779. * src/InitiatorMSEHandshakeCommand.cc
  6780. * src/InitiatorMSEHandshakeCommand.h
  6781. * src/MSEHandshake.cc
  6782. * src/MSEHandshake.h
  6783. * src/Makefile.am
  6784. * src/Makefile.in
  6785. * src/PeerChokeCommand.cc
  6786. * src/PeerChokeCommand.h
  6787. * src/PeerInitiateConnectionCommand.cc
  6788. * src/PeerInitiateConnectionCommand.h
  6789. * src/PeerInteractionCommand.cc
  6790. * src/PeerInteractionCommand.h
  6791. * src/PeerObject.h
  6792. * src/PeerReceiveHandshakeCommand.cc
  6793. * src/PeerReceiveHandshakeCommand.h
  6794. * src/ReceiverMSEHandshakeCommand.cc
  6795. * src/RequestGroup.cc
  6796. * src/RequestGroup.h
  6797. * src/RequestGroupMan.cc
  6798. * src/RequestGroupMan.h
  6799. * src/SeedCheckCommand.cc
  6800. * src/SeedCheckCommand.h
  6801. * src/ShareRatioSeedCriteria.h
  6802. * src/SimpleBtMessage.cc
  6803. * src/TrackerWatcherCommand.cc
  6804. * src/TrackerWatcherCommand.h
  6805. * src/UTPexExtensionMessage.cc
  6806. * src/UTPexExtensionMessage.h
  6807. * test/BtCancelMessageTest.cc
  6808. * test/BtChokeMessageTest.cc
  6809. * test/BtExtendedMessageTest.cc
  6810. * test/BtInterestedMessageTest.cc
  6811. * test/BtNotInterestedMessageTest.cc
  6812. * test/BtPieceMessageTest.cc
  6813. * test/BtPortMessageTest.cc
  6814. * test/BtRegistryTest.cc
  6815. * test/BtRejectMessageTest.cc
  6816. * test/BtRequestMessageTest.cc
  6817. * test/DHTPeerAnnounceEntryTest.cc
  6818. * test/DHTPeerAnnounceStorageTest.cc
  6819. * test/DefaultBtMessageDispatcherTest.cc
  6820. * test/DefaultBtMessageFactoryTest.cc
  6821. * test/DefaultBtProgressInfoFileTest.cc
  6822. * test/DefaultBtRequestFactoryTest.cc
  6823. * test/DefaultExtensionMessageFactoryTest.cc
  6824. * test/MSEHandshakeTest.cc
  6825. * test/MockDHTTaskFactory.h
  6826. * test/ShareRatioSeedCriteriaTest.cc
  6827. * test/UTPexExtensionMessageTest.cc
  6828. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6829. Fixed compiler warning.
  6830. * test/UtilTest.cc
  6831. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6832. Treat Cookie object as session cookie if expiry = 0 is given.
  6833. With this change, you can specify session scoped cookies in an external
  6834. file setting expiry value to 0.
  6835. * src/Cookie.cc
  6836. * src/Cookie.h
  6837. * test/CookieParserTest.cc
  6838. * test/CookieStorageTest.cc
  6839. * test/CookieTest.cc
  6840. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Changed signature of DHTMessageFactory::createResponseMessage().
  6842. Removed unused validateIDMatch.
  6843. * src/DHTMessageFactory.h
  6844. * src/DHTMessageFactoryImpl.cc
  6845. * src/DHTMessageFactoryImpl.h
  6846. * src/DHTMessageTracker.cc
  6847. * test/DHTMessageFactoryImplTest.cc
  6848. * test/MockDHTMessageFactory.h
  6849. Dropped DHT message coming from same ID of localhost.
  6850. * src/DHTMessageReceiver.cc
  6851. Rejected adding node whose ID is the same as localhost's.
  6852. * src/DHTRoutingTable.cc
  6853. * test/BtPortMessageTest.cc
  6854. * test/DHTRoutingTableTest.cc
  6855. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6856. Pool connection when redirection occurs with Content-Length = 0.
  6857. * src/HttpSkipResponseCommand.cc
  6858. * src/HttpSkipResponseCommand.h
  6859. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Fixed the bug that causes time out when redirection occurs with
  6861. content-length 0.
  6862. * src/HttpResponseCommand.cc
  6863. * src/HttpSkipResponseCommand.cc
  6864. * src/HttpSkipResponseCommand.h
  6865. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. Now each status legends is shown only when it appears in Download
  6867. Result. If Download Result has no item, then status legend will not
  6868. be printed.
  6869. * src/RequestGroupMan.cc
  6870. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6871. Removed duplicate creation of OptionHandlers.
  6872. * src/option_processing.cc
  6873. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6874. Fixed the bug that causes segmentation fault when accessing files which
  6875. don't exist or are not included in --select-file option while
  6876. validating chunk checksum.
  6877. * src/MultiDiskAdaptor.cc
  6878. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6879. Fixed compiler warning.
  6880. * test/UtilTest.cc
  6881. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6882. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6883. * src/IteratableChecksumValidator.cc
  6884. * src/IteratableChunkChecksumValidator.cc
  6885. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6886. * Release 0.16.2
  6887. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6888. Added Serbian translation. Updated Ukrainian translation.
  6889. Thanks to all translators.
  6890. * po/sr.po
  6891. * po/uk.po
  6892. * po/LINGUAS
  6893. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Bump up version number to 0.16.2
  6895. * configure.ac
  6896. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. Added length equality test to operator== to drop a piece message
  6898. whose length does not match to the requested one.
  6899. * src/RequestSlot.cc
  6900. * test/DefaultBtMessageDispatcherTest.cc
  6901. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6902. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6903. recieved.
  6904. In this fix, if a request larger than 16KiB length is received, aria2
  6905. disconnects the peer.
  6906. * src/BtConstants.h
  6907. * src/PeerMessageUtil.cc
  6908. * src/PeerMessageUtil.h
  6909. * test/BtRequestMessageTest.cc
  6910. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. * Release 0.16.1
  6912. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6913. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6914. * doc/aria2c.1.txt
  6915. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6917. Updated French, Simplified Chinese and Japanese translations.
  6918. Thanks to all translators.
  6919. en@quot and en@boldquot are also added.
  6920. * po/LINGUAS
  6921. * po/fr.po
  6922. * po/ja.po
  6923. * po/uk.po
  6924. * po/vi.po
  6925. * po/zh_CN.po
  6926. * po/zh_TW.po
  6927. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Bump up version number to 0.16.1.
  6929. * configure.ac
  6930. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6931. Updated README.
  6932. * README
  6933. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6934. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6935. not to replace '--' with em dash character.
  6936. * doc/aria2c.1.txt
  6937. * doc/makeman
  6938. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6939. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6940. every SEC seconds.
  6941. * src/DownloadEngineFactory.cc
  6942. * src/OptionHandlerFactory.cc
  6943. * src/option_processing.cc
  6944. * src/usage_text.h
  6945. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6946. Fixed compile warning on linux-amd64
  6947. * src/FtpConnection.cc
  6948. * src/IteratableChunkChecksumValidator.cc
  6949. * src/MultiDiskAdaptor.cc
  6950. Fixed the bug that unit test fails on linux-amd64
  6951. * test/UtilTest.cc
  6952. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. Added --dht-file-path option to change the path to dht.dat, which is a
  6954. serialized DHT routing table.
  6955. * src/OptionHandlerFactory.cc
  6956. * src/option_processing.cc
  6957. * src/usage_text.h
  6958. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Fixed possible underflow.
  6960. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6961. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6962. Fixed the bug that last character in URI is not encoded.
  6963. * src/Request.cc
  6964. * test/RequestTest.cc
  6965. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6966. Fixed the bug that referer header field contains fragment.
  6967. Now Request class removes fragment part of URI and encodes it
  6968. in Request::setUri() and setReferer().
  6969. * src/Request.h
  6970. * src/Request.cc
  6971. * test/RequestTest.cc
  6972. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6973. Added missing m4 macros.
  6974. * m4/cppunit.m4
  6975. * m4/libgcrypt.m4
  6976. * m4/libgnutls-extra.m4
  6977. * m4/libgnutls.m4
  6978. * m4/libxml2.m4
  6979. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6980. Fixed compile error with gcc-4.4(snapshot)
  6981. * src/File.cc
  6982. * src/FtpConnection.cc
  6983. * src/OptionHandlerImpl.h
  6984. * src/Util.cc
  6985. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6986. Removed assert()
  6987. * src/SocketBuffer.cc (SocketBuffer::send)
  6988. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6989. Changed the type of _numNewConnection to unsigned int.
  6990. * src/ActivePeerConnectionCommand.cc
  6991. * src/ActivePeerConnectionCommand.h
  6992. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6993. * Release 0.16.0
  6994. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6995. Updated doc
  6996. * README
  6997. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6998. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6999. translations. Thanks to all translators.
  7000. * po/bg.po
  7001. * po/de.po
  7002. * po/fr.po
  7003. * po/ja.po
  7004. * po/zh_CN.po
  7005. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. Bump up version number to 0.16.0.
  7007. * configure.ac
  7008. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7009. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7010. int32_t.
  7011. Changed the type of count to int32_t.
  7012. * src/Metalink2RequestGroup.cc
  7013. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7014. Added test for Time::elapsed(time_t).
  7015. * test/TimeTest.cc
  7016. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7017. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7018. Util::difftv() should be used instead.
  7019. * src/TimeA2.cc
  7020. * src/TimeA2.h
  7021. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7022. Made socket for dht connections non-blocking
  7023. * src/DHTAbstractMessage.cc
  7024. * src/DHTAbstractMessage.h
  7025. * src/DHTConnection.h
  7026. * src/DHTConnectionImpl.cc
  7027. * src/DHTConnectionImpl.h
  7028. * src/DHTMessage.h
  7029. * src/DHTMessageDispatcherImpl.cc
  7030. * src/DHTMessageDispatcherImpl.h
  7031. * src/DHTUnknownMessage.cc
  7032. * src/DHTUnknownMessage.h
  7033. * src/SocketCore.cc
  7034. * src/SocketCore.h
  7035. * test/MockDHTMessage.h
  7036. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7037. Changed the type of offset to int.
  7038. * src/ParameterizedStringParser.cc
  7039. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7040. Made getAsInt() return int32_t
  7041. * src/Option.h
  7042. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7044. build.
  7045. * configure.ac
  7046. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7047. Use sqlite3_open if sqlite3_open_v2 is not available.
  7048. * src/Sqlite3MozCookieParser.cc
  7049. * src/Sqlite3MozCookieParser.h
  7050. * m4/sqlite3.m4
  7051. * test/Sqlite3MozCookieParserTest.cc
  7052. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7054. * src/BtPieceMessage.cc
  7055. * src/DHTPeerAnnounceStorage.cc
  7056. * src/DefaultPieceStorage.cc
  7057. * src/DownloadCommand.cc
  7058. * src/DownloadEngine.cc
  7059. * src/FtpConnection.cc
  7060. * src/PeerConnection.cc
  7061. * src/PeerMessageUtil.cc
  7062. * src/RequestGroup.cc
  7063. * src/RequestGroupMan.cc
  7064. * src/SimpleBtMessage.cc
  7065. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7066. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7067. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7068. * src/AbstractDiskWriter.cc
  7069. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Don't set Request::supportsPersistentConnection() in HttpConnection
  7071. since this code is also used in AbstractProxyResponseCommand.
  7072. Moved those code to HttpResponse.
  7073. * src/HttpResponse.cc
  7074. * src/HttpResponse.h
  7075. * src/HttpConnection.cc
  7076. * src/HttpConnection.h
  7077. * src/HttpResponseCommand.cc
  7078. * test/HttpResponseTest.cc
  7079. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7080. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7081. The configuration is minimum: no torrent, no metalink, so there may be
  7082. other compile error on their code.
  7083. * src/a2netcompat.h
  7084. * src/File.cc
  7085. * src/File.h
  7086. * src/SocketCore.cc
  7087. * src/SocketCore.h
  7088. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Made a socket of incoming peer non-blocking.
  7090. * src/PeerListenCommand.cc
  7091. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7092. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7093. whole message data is not sent in one send() call.
  7094. * src/BtPieceMessage.cc
  7095. * src/BtPieceMessage.h
  7096. * src/PeerConnection.cc
  7097. * src/PeerConnection.h
  7098. * src/SimpleBtMessage.cc
  7099. * src/SimpleBtMessage.h
  7100. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. Fixed the bug that aria2 downloads faster than max-download-limit when
  7102. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7103. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7104. , instead of sum of them.
  7105. * src/ActivePeerConnectionCommand.cc
  7106. * src/DefaultBtInteractive.cc
  7107. * src/DownloadCommand.cc
  7108. * src/PeerInteractionCommand.cc
  7109. * src/PeerReceiveHandshakeCommand.cc
  7110. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7111. Fixed the bug that HTTPS download fails.
  7112. * src/AbstractCommand.cc
  7113. * src/AbstractCommand.h
  7114. * src/DownloadCommand.cc
  7115. * src/FtpConnection.cc
  7116. * src/HttpConnection.cc
  7117. * src/HttpRequestCommand.cc
  7118. * src/HttpResponseCommand.cc
  7119. * src/HttpSkipResponseCommand.cc
  7120. * src/MSEHandshake.cc
  7121. * src/PeerConnection.cc
  7122. * src/SocketCore.cc
  7123. * src/SocketCore.h
  7124. Fixed the bug that aria2 doesn't download whole content body and cannot
  7125. reuse connection if chunked transfer encoding and gzip content encoding
  7126. are set.
  7127. * src/DownloadCommand.cc
  7128. * src/HttpSkipResponseCommand.cc
  7129. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7130. Updated man page.
  7131. * doc/aria2c.1.txt
  7132. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7133. When error occurred while aria2 was parsing an .aria2.conf file, print
  7134. the usage of the option that caused error.
  7135. * src/option_processing.cc
  7136. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. Fixed compile error on OptionHandlerException
  7138. * src/Makefile.am
  7139. * src/OptionHandlerException.cc
  7140. * src/OptionHandlerException.h
  7141. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. Moved message of the error to OptionHandlerException.h
  7143. * src/NameMatchOptionHandler.h
  7144. * src/OptionHandlerException.h
  7145. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7146. When error occurs while aria2 is parsing an command-line option, print
  7147. the usage of the option.
  7148. * src/Makefile.am
  7149. * src/NameMatchOptionHandler.h
  7150. * src/OptionHandlerException.h
  7151. * src/option_processing.cc
  7152. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Reverted previous change.
  7154. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7155. username is not in URI.
  7156. * src/HttpRequest.cc
  7157. * src/Request.cc
  7158. * test/HttpRequestTest.cc
  7159. * test/RequestTest.cc
  7160. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Now colon is required for username and password in FTP URL, like:
  7162. ftp://username:password@host.
  7163. If colon is not there, aria2 don't parse it as a username. For example,
  7164. aria2 don't retrieve username from ftp://username@host.
  7165. This fix was made in order to login FTP server via non-transparent ftp
  7166. proxy.
  7167. * src/Request.cc
  7168. * test/RequestTest.cc
  7169. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7170. Use netrc for HTTP.
  7171. Now FTP user/password is sent in Authorization header when
  7172. --ftp-via-http-proxy=get is given.
  7173. * src/AuthConfigFactory.cc
  7174. * src/HttpRequest.cc
  7175. * src/HttpRequest.h
  7176. * src/NetrcAuthResolver.cc
  7177. * src/NetrcAuthResolver.h
  7178. * src/OptionHandlerFactory.cc
  7179. * src/option_processing.cc
  7180. * src/prefs.cc
  7181. * src/prefs.h
  7182. * test/AuthConfigFactoryTest.cc
  7183. * test/HttpRequestTest.cc
  7184. * test/NetrcAuthResolverTest.cc
  7185. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Issue PWD command first and get working directory and use it as a prefix
  7187. for CWD command.
  7188. * src/DownloadEngine.cc
  7189. * src/DownloadEngine.h
  7190. * src/FtpConnection.cc
  7191. * src/FtpConnection.h
  7192. * src/FtpFinishDownloadCommand.cc
  7193. * src/FtpInitiateConnectionCommand.cc
  7194. * src/FtpNegotiationCommand.cc
  7195. * src/FtpNegotiationCommand.h
  7196. * test/FtpConnectionTest.cc
  7197. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Removed default user/pass for FTP user/pass, since it should not have
  7199. precedence over netrc configuration by default.
  7200. * src/OptionHandlerFactory.cc
  7201. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. Added debug log for socket event.
  7203. * src/AbstractCommand.cc
  7204. * src/PeerAbstractCommand.cc
  7205. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7206. Log microseconds.
  7207. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7208. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7209. Replaced HelpItem.cc with OptionHandler.cc.
  7210. * po/POTFILES.in
  7211. Updated po files with 'make update-po'
  7212. * po/aria2c.pot
  7213. * po/*.po
  7214. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7215. Removed possible values from the text.
  7216. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7217. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7218. Removed unused preferences:
  7219. PREF_NO_PREALLOCATION
  7220. PREF_STDOUT_LOG
  7221. PREF_TRACKER_MAX_TRIES
  7222. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7223. PREF_MIN_SEGMENT_SIZE
  7224. * src/option_processing.cc
  7225. * src/prefs.cc
  7226. * src/prefs.h
  7227. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7228. Integrated HelpItem into OptionParser to ease the workload for adding
  7229. new options. Removed default value from usage text.
  7230. * src/HelpItem.cc: Removed.
  7231. * src/HelpItem.h: Removed.
  7232. * src/HelpItemFactory.cc: Removed.
  7233. * src/HelpItemFactory.h: Removed.
  7234. * src/Makefile.am
  7235. * src/Makefile.in
  7236. * src/NameMatchOptionHandler.h
  7237. * src/OptionHandler.cc
  7238. * src/OptionHandler.h
  7239. * src/OptionHandlerFactory.cc
  7240. * src/OptionHandlerImpl.h
  7241. * src/OptionParser.cc
  7242. * src/OptionParser.h
  7243. * src/TagContainer.cc: Removed.
  7244. * src/TagContainer.h: Removed.
  7245. * src/TaggedItem.cc: Removed.
  7246. * src/TaggedItem.h: Removed.
  7247. * src/main.cc
  7248. * src/option_processing.cc
  7249. * src/usage_text.h
  7250. * src/version_usage.cc
  7251. * test/HelpItemTest.cc: Removed.
  7252. * test/Makefile.am
  7253. * test/Makefile.in
  7254. * test/OptionHandlerTest.cc
  7255. * test/OptionParserTest.cc
  7256. * test/TagContainerTest.cc: Removed.
  7257. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. Moved `TransferStat stat = ...' to inside the `if' clause.
  7259. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7260. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7261. Fixed the bug that a block in a piece is requested when same block is
  7262. already requested to the same peer in end game mode.
  7263. * src/BtRequestFactory.h
  7264. * src/DefaultBtInteractive.cc
  7265. * src/DefaultBtRequestFactory.cc
  7266. * src/DefaultBtRequestFactory.h
  7267. * src/DefaultPieceStorage.cc
  7268. * src/DefaultPieceStorage.h
  7269. * src/PieceStorage.h
  7270. * src/UnknownLengthPieceStorage.cc
  7271. * src/UnknownLengthPieceStorage.h
  7272. * test/DefaultBtRequestFactoryTest.cc
  7273. * test/DefaultPieceStorageTest.cc
  7274. * test/MockBtRequestFactory.h
  7275. * test/MockPieceStorage.h
  7276. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7277. Removed _uploadLength and _downloadLength from PeerSessionResource
  7278. and use PeerStat::_sessionUploadLength and
  7279. PeerStat::_sessionDownloadLength.
  7280. * src/PeerSessionResource.cc
  7281. * src/PeerSessionResource.h
  7282. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7283. Fixed the bug that prefixLength of split bucket which doesn't include
  7284. local node ID is incremented.
  7285. * src/DHTBucket.cc
  7286. * src/DHTBucket.h
  7287. * test/DHTBucketTest.cc
  7288. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7289. Added cookies.sqlite to EXTRA_DIST
  7290. * test/Makefile.am
  7291. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7292. Added Turkish translation. Updated French, German, Russian and
  7293. Simplified Chinese translations. Thanks to all translators.
  7294. * po/LINGUAS
  7295. * po/de.po
  7296. * po/fr.po
  7297. * po/ru.po
  7298. * po/tr.po
  7299. * po/zh_CN.po
  7300. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7301. Added deliminating text to the beginning of the log so that one can find
  7302. where the log starts easily.
  7303. * src/main.cc
  7304. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7305. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7306. to fix compile error when async DNS is not enabled by configuration.
  7307. * src/AbstractCommand.cc
  7308. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. If establishing conneciton to a server is failed, then mark error on
  7310. its ServerStat.
  7311. Added the cause of error to log when error event occurred.
  7312. Moved message string to message.h for translation.
  7313. * src/AbstractCommand.cc
  7314. * src/AbstractCommand.h
  7315. * src/FtpNegotiationCommand.cc
  7316. * src/HttpRequestCommand.cc
  7317. * src/PeerAbstractCommand.cc
  7318. * src/message.h
  7319. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7320. Added the function to get error message from socket.
  7321. * src/SocketCore.cc
  7322. * src/SocketCore.h
  7323. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7324. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7325. * src/RequestGroupMan.cc
  7326. * src/RequestGroupMan.h
  7327. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7328. If error event is received in epoll, then abort download immediately.
  7329. * src/AbstractCommand.cc
  7330. * src/Command.cc
  7331. * src/Command.h
  7332. * src/DownloadEngine.cc
  7333. * src/PeerAbstractCommand.cc
  7334. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Added usage message for --uri-selector, --server-stat-of,
  7336. --server-stat-in, --server-stat-timeout options.
  7337. * src/HelpItemFactory.cc
  7338. * src/usage_text.h
  7339. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Added upper limit of FTP response buffer. The current implementation
  7341. uses 4096bytes as a limit.
  7342. * src/FtpConnection.cc
  7343. * src/FtpConnection.h
  7344. * test/FtpConnectionTest.cc
  7345. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. Use non-blocking socket for TCP communication to avoid possible
  7347. blocking due to buffer full.
  7348. * src/AbstractProxyRequestCommand.cc
  7349. * src/FtpConnection.cc
  7350. * src/FtpConnection.h
  7351. * src/FtpNegotiationCommand.cc
  7352. * src/FtpNegotiationCommand.h
  7353. * src/HttpConnection.cc
  7354. * src/HttpConnection.h
  7355. * src/HttpRequestCommand.cc
  7356. * src/InitiatorMSEHandshakeCommand.cc
  7357. * src/InitiatorMSEHandshakeCommand.h
  7358. * src/MSEHandshake.cc
  7359. * src/MSEHandshake.h
  7360. * src/Makefile.am
  7361. * src/PeerConnection.cc
  7362. * src/PeerConnection.h
  7363. * src/PeerInteractionCommand.cc
  7364. * src/PeerListenCommand.cc
  7365. * src/ReceiverMSEHandshakeCommand.cc
  7366. * src/ReceiverMSEHandshakeCommand.h
  7367. * src/SocketBuffer.cc
  7368. * src/SocketBuffer.h
  7369. * src/SocketCore.cc
  7370. * src/SocketCore.h
  7371. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7372. Call setStatusRealtime() in constructor.
  7373. * src/RealtimeCommand.cc
  7374. * src/RealtimeCommand.h
  7375. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. Call Download::setNoWait(true) to execute newly created command without
  7377. a pause.
  7378. * src/AbstractCommand.cc
  7379. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7380. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7381. found' error from HTTP/FTP server NUM times without getting single
  7382. bytes of data, then force the download to fail.
  7383. Basically aria2 tris all URIs available. So if long list of URIs are
  7384. specified in Metalink, then aria2 will take a long time to fail
  7385. eventually if all URIs are outdated. This option eases this situation
  7386. to limit the number of servers to try.
  7387. * src/FtpNegotiationCommand.cc
  7388. * src/HelpItemFactory.cc
  7389. * src/HttpResponseCommand.cc
  7390. * src/OptionHandlerFactory.cc
  7391. * src/PeerStat.h
  7392. * src/RequestGroup.cc
  7393. * src/RequestGroup.h
  7394. * src/SegmentMan.cc
  7395. * src/SegmentMan.h
  7396. * src/option_processing.cc
  7397. * src/prefs.cc
  7398. * src/prefs.h
  7399. * src/usage_text.h
  7400. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7401. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7402. response even if more than one response is in it.
  7403. * src/FtpConnection.cc
  7404. * src/FtpConnection.h
  7405. * test/FtpConnectionTest.cc
  7406. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7407. Merged from stable-0.15
  7408. * m4/libcares.m4
  7409. Use pkg-config
  7410. * m4/sqlite3.m4
  7411. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7412. Removed unnecessary if statement.
  7413. * src/DefaultPieceStorage.cc (initPieceStorage)
  7414. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Added --connect-timeout option to specify connect timeout in seconds.
  7416. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7417. connecting to BitTorrent peer is not controlled by this option.
  7418. * src/AbstractProxyRequestCommand.cc
  7419. * src/FtpNegotiationCommand.cc
  7420. * src/HelpItemFactory.cc
  7421. * src/HttpRequestCommand.cc
  7422. * src/OptionHandlerFactory.cc
  7423. * src/option_processing.cc
  7424. * src/prefs.cc
  7425. * src/prefs.h
  7426. * src/usage_text.h
  7427. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7428. Added help message for -R option.
  7429. * src/HelpItemFactory.cc
  7430. * src/usage_text.h
  7431. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7432. Added the message that the time is in local time zone.
  7433. * src/RequestGroup.cc
  7434. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7435. Implemented the ability to get timestamp from remote FTP server using
  7436. MDTM command described in RFC3659.
  7437. * src/FtpConnection.cc
  7438. * src/FtpConnection.h
  7439. * src/FtpNegotiationCommand.cc
  7440. * src/FtpNegotiationCommand.h
  7441. * test/FtpConnectionTest.cc
  7442. * test/Makefile.am
  7443. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. Implemented the ability to get timestamp from remote HTTP server and
  7445. apply it to local file. To enable this feature, --remote-time option
  7446. is added. No usage text has been written yet.
  7447. If several servers returns difference timestamp, then aria2 uses latest
  7448. one.
  7449. * src/CopyDiskAdaptor.cc
  7450. * src/CopyDiskAdaptor.h
  7451. * src/DirectDiskAdaptor.cc
  7452. * src/DirectDiskAdaptor.h
  7453. * src/DiskAdaptor.h
  7454. * src/File.cc
  7455. * src/File.h
  7456. * src/HttpHeader.cc
  7457. * src/HttpHeader.h
  7458. * src/HttpResponse.cc
  7459. * src/HttpResponse.h
  7460. * src/HttpResponseCommand.cc
  7461. * src/HttpResponseCommand.h
  7462. * src/MultiDiskAdaptor.cc
  7463. * src/MultiDiskAdaptor.h
  7464. * src/OptionHandlerFactory.cc
  7465. * src/RequestGroup.cc
  7466. * src/RequestGroup.h
  7467. * src/RequestGroupMan.cc
  7468. * src/option_processing.cc
  7469. * src/prefs.cc
  7470. * src/prefs.h
  7471. * test/CopyDiskAdaptorTest.cc
  7472. * test/FileTest.cc
  7473. * test/Makefile.am
  7474. * test/Makefile.in
  7475. * test/MultiDiskAdaptorTest.cc
  7476. * test/TestUtil.cc
  7477. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7478. Fixed the bug that DiskWriterEntry is not created when its
  7479. FileEntry.isRequested() is false and it doesn't share a piece with
  7480. other FileEntries that are requested. This bug causes segmentation fault
  7481. in the end.
  7482. * src/MultiDiskAdaptor.cc
  7483. * src/MultiDiskAdaptor.h
  7484. * src/MultiFileAllocationIterator.cc
  7485. * test/MultiDiskAdaptorTest.cc
  7486. * test/MultiFileAllocationIteratorTest.cc
  7487. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7489. called if the number of file entries are greater than max open files.
  7490. * src/AbstractSingleDiskAdaptor.cc
  7491. * src/AbstractSingleDiskAdaptor.h
  7492. * src/DiskAdaptor.h
  7493. * src/MultiDiskAdaptor.cc
  7494. * src/MultiDiskAdaptor.h
  7495. * test/MultiDiskAdaptorTest.cc
  7496. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. Added a constuctor that receives struct timeval.
  7498. Added operator<.
  7499. * src/TimeA2.cc
  7500. * src/TimeA2.h
  7501. * test/TimeTest.cc
  7502. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7503. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7504. * src/CookieParser.cc
  7505. * test/CookieParserTest.cc
  7506. * test/HttpResponseTest.cc
  7507. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. Implmented the functions to parse date.
  7509. * src/TimeA2.cc
  7510. * src/TimeA2.h
  7511. * test/TimeTest.cc
  7512. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. Added "Firefox3 Cookie" feature to FeatureConfig
  7514. * src/FeatureConfig.cc
  7515. * src/FeatureConfig.h
  7516. * test/FeatureConfigTest.cc
  7517. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7518. Bump up version number to 0.16.0b
  7519. * configure.ac
  7520. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7521. Use pkg-config if is is available.
  7522. * m4/openssl.m4
  7523. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7525. * src/BtAnnounce.h
  7526. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7527. If an error occurred with a URI, remove identical URI from remaining
  7528. URI list because it is likely that same error occurred in the end and it
  7529. is waste of time.
  7530. * src/AbstractCommand.cc
  7531. * src/RequestGroup.cc
  7532. * src/RequestGroup.h
  7533. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7534. Removed wrong comment.
  7535. * src/DefaultPeerStorage.cc
  7536. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7538. Added return value of getpid() to argument of srand() to achieve more
  7539. randomized value.
  7540. * src/SimpleRandomizer.cc
  7541. * src/SimpleRandomizer.h
  7542. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Contact tracker frequently when the number of connections are 0 and
  7544. download is not finished yet.
  7545. * src/ActivePeerConnectionCommand.cc
  7546. * src/BtAnnounce.h
  7547. * src/DefaultBtAnnounce.cc
  7548. * src/DefaultBtAnnounce.h
  7549. * test/MockBtAnnounce.h
  7550. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Moved threshold values to UTPexExtensionMessage.
  7552. * src/DefaultBtInteractive.cc
  7553. * src/Peer.cc
  7554. * src/Peer.h
  7555. * src/UTPexExtensionMessage.cc
  7556. * src/UTPexExtensionMessage.h
  7557. * test/UTPexExtensionMessageTest.cc
  7558. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7559. Added _incoming member to Peer class and made it true if the peer
  7560. initiated connection. Don't add those peer to UTPex message.
  7561. If extended handshake is received, assign _incoming to false.
  7562. * src/DefaultBtInteractive.cc
  7563. * src/HandshakeExtensionMessage.cc
  7564. * src/Peer.cc
  7565. * src/Peer.h
  7566. * src/PeerListenCommand.cc
  7567. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7568. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7569. Encoding Decoder. Removed size threshold for turning off on the fly
  7570. inflation because resulting file may or may not be inflated depending
  7571. on the file size and I think it is not expected by users.
  7572. This change fixes segmentation fault when Metalink file contains gzipped
  7573. file and its filesize is provided.
  7574. * src/HttpResponseCommand.cc
  7575. * src/HttpResponseCommand.h
  7576. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7577. Made Cookie immutable.
  7578. * src/Cookie.cc
  7579. * src/Cookie.h
  7580. * src/CookieParser.cc
  7581. * src/CookieParser.h
  7582. * src/CookieStorage.cc
  7583. * test/CookieParserTest.cc
  7584. * test/CookieStorageTest.cc
  7585. * test/NsCookieParserTest.cc
  7586. * test/Sqlite3MozCookieParserTest.cc
  7587. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7588. Removed CookieBox, CookieBoxFactory.
  7589. * src/CookieBox.cc
  7590. * src/CookieBox.h
  7591. * src/CookieBoxFactory.cc
  7592. * src/CookieBoxFactory.h
  7593. * src/Makefile.am
  7594. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7595. Use CookieStorage class instead of CookieBox class.
  7596. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7597. * src/AbstractProxyRequestCommand.cc
  7598. * src/CookieStorage.cc
  7599. * src/DownloadEngine.cc
  7600. * src/DownloadEngine.h
  7601. * src/HttpConnection.cc
  7602. * src/HttpConnection.h
  7603. * src/HttpRequest.cc
  7604. * src/HttpRequest.h
  7605. * src/HttpRequestCommand.cc
  7606. * src/HttpResponse.cc
  7607. * src/HttpResponseCommand.cc
  7608. * src/HttpSkipResponseCommand.cc
  7609. * src/Makefile.am
  7610. * src/MultiUrlRequestInfo.cc
  7611. * src/Request.cc
  7612. * src/Request.h
  7613. * src/main.cc
  7614. * test/AllTest.cc
  7615. * test/CookieStorageTest.cc
  7616. * test/CookieTest.cc
  7617. * test/HttpRequestTest.cc
  7618. * test/HttpResponseTest.cc
  7619. * test/Makefile.am
  7620. * test/NsCookieParserTest.cc
  7621. * test/Sqlite3MozCookieParserTest.cc
  7622. * test/nscookietest.txt
  7623. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Updated
  7625. * test/Cookies.sqlite
  7626. * test/nscookietest.txt
  7627. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7628. Added tests for CookieStorage::load()
  7629. * test/CookieStorageTest.cc
  7630. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7631. Added CookieStorage class which is based on RFC2109 and manages cookies
  7632. more strictly than CookieBox and CookieBoxFactory class.
  7633. * src/CookieStorage.cc
  7634. * src/CookieStorage.h
  7635. * src/Cookie.cc
  7636. * src/Cookie.h
  7637. * test/CookieStorageTest.cc
  7638. * test/CookieTest.cc
  7639. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7640. Fixed the bug that commands are created more than the number of pieces.
  7641. * src/RequestGroup.cc
  7642. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. Fixed infinite loop bug in FTP when SIZE command failed.
  7644. * src/FtpNegotiationCommand.cc
  7645. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Removed DirectDiskAdaptorTest.h
  7647. * test/Makefile.am
  7648. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7649. Fixed chunk checksum validation cannot detect trailing garbage data.
  7650. BUG#2074141
  7651. * src/AbstractSingleDiskAdaptor.cc
  7652. * src/AbstractSingleDiskAdaptor.h
  7653. * src/CheckIntegrityEntry.cc
  7654. * src/CheckIntegrityEntry.h
  7655. * src/DiskAdaptor.h
  7656. * src/MultiDiskAdaptor.cc
  7657. * src/MultiDiskAdaptor.h
  7658. * src/RequestGroup.cc
  7659. * test/DirectDiskAdaptorTest.cc
  7660. * test/MultiDiskAdaptorTest.cc
  7661. * test/TestUtil.cc
  7662. * test/TestUtil.h
  7663. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7664. Bump up version number of dht.dat file to 3. In version 3 format, time
  7665. is stored in 64bit, network byte order.
  7666. New build can load old format(version 2) but it saves the file in new
  7667. format. It means once you used new build, your dht.dat becomes
  7668. incompatible with older build.
  7669. * src/DHTRoutingTableDeserializer.cc
  7670. * src/DHTRoutingTableSerializer.cc
  7671. * test/DHTRoutingTableSerializerTest.cc
  7672. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7673. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7674. * test/Makefile.am
  7675. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Bump up version number of .aria2 control file to 0001.
  7677. New aria2 can still load version 0000 file but it saves the file in
  7678. version 0001 format. It means that new aria2 can resume download
  7679. started by old aria2 but the opposite is not true.
  7680. * src/DefaultBtProgressInfoFile.cc
  7681. * src/DefaultBtProgressInfoFile.h
  7682. * test/DefaultBtProgressInfoFileTest.cc
  7683. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7684. Added ntoh64 and hton64 as inline functions.
  7685. * src/Util.cc
  7686. * test/UtilTest.cc
  7687. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7688. Added sqlite3 depenency and Firefox3 cookie support.
  7689. * README
  7690. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7691. State that firefox3 cookie is supported explicitly in the usage.
  7692. * src/usage_text.h
  7693. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. Externalized message.
  7695. * src/RequestGroupMan.cc
  7696. * src/message.h
  7697. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7698. Save temporary file first and rename to the destination on success.
  7699. Added test cases.
  7700. * src/RequestGroupMan.cc
  7701. * test/RequestGroupManTest.cc
  7702. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7703. Fixed the bug that the number of connected peer is exceeding the limit
  7704. (55 by default) in seeding mode.
  7705. Multiplied 0.8 to _maxUploadSpeedLimit.
  7706. * src/ActivePeerConnectionCommand.cc
  7707. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Clear table item.
  7709. * src/Dictionary.cc
  7710. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Fixed error handling of lseek.
  7712. * src/AbstractDiskWriter.cc
  7713. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7714. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  7715. style cookie file.
  7716. * src/usage_text.h
  7717. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7718. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  7719. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  7720. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  7721. * src/Util.cc
  7722. * src/Util.h
  7723. * src/CookieParser.cc
  7724. * test/UtilTest.cc
  7725. * test/CookieParserTest.cc
  7726. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. Separate the implementation to load old mozilla format of cookie to
  7728. NsCookieParser class.
  7729. * src/CookieBoxFactory.cc
  7730. * src/CookieBoxFactory.h
  7731. * src/NsCookieParser.cc
  7732. * src/NsCookieParser.h
  7733. * test/NsCookieParserTest.cc
  7734. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Made parse() const
  7736. * src/Sqlite3MozCookieParser.cc
  7737. * src/Sqlite3MozCookieParser.h
  7738. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7739. Added firefox3 cookie support based on the patch submitted by
  7740. tizianomueller.
  7741. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  7742. this functionality.
  7743. * configure.ac
  7744. * m4/sqlite3.m4
  7745. * src/CookieBoxFactory.cc
  7746. * src/CookieBoxFactory.h
  7747. * src/Makefile.am
  7748. * src/Makefile.in
  7749. * src/Sqlite3MozCookieParser.cc
  7750. * src/Sqlite3MozCookieParser.h
  7751. * src/main.cc
  7752. * test/CookieBoxFactoryTest.cc
  7753. * test/Makefile.am
  7754. * test/Makefile.in
  7755. * test/Sqlite3MozCookieParserTest.cc
  7756. * test/badcookies.sqlite
  7757. * test/cookies.sqlite
  7758. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7759. Added Danish and Greek translations.
  7760. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  7761. Great thanks to all translators.
  7762. * po/LINGUAS
  7763. * po/el.po
  7764. * po/da.po
  7765. * po/es.po
  7766. * po/ca.po
  7767. * po/nn.po
  7768. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7769. Fixed man page: --follow-bittorrent should be --follow-torrent
  7770. * doc/aria2c.1.txt
  7771. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. Fixed: numCommand is less than the value specified in -C option.
  7773. * src/RequestGroup.cc
  7774. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Fixed occasional assertion failure in PieceSegment.
  7776. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7777. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7778. creation of duplicate segments and one of the segment was finished then
  7779. assertion failure was caused.
  7780. * src/SegmentMan.cc
  7781. * test/SegmentManTest.cc
  7782. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Added options to load/save the server's performance/status to a file
  7784. and the timeout to drop their data.
  7785. --server-stat-of=FILE specifies the file to which performance data
  7786. is saved.
  7787. --server-stat-if=FILE specifies the file to read previously saved
  7788. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7789. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7790. TIMEOUT is specified in seconds and the default value is 24hours.
  7791. * src/MultiUrlRequestInfo.cc
  7792. * src/OptionHandlerFactory.cc
  7793. * src/RequestGroupMan.cc
  7794. * src/RequestGroupMan.h
  7795. * src/ServerStatMan.cc
  7796. * src/ServerStatMan.h
  7797. * src/option_processing.cc
  7798. * src/prefs.cc
  7799. * src/prefs.h
  7800. * test/ServerStatManTest.cc
  7801. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7802. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7803. * src/ServerStatMan.cc
  7804. * src/ServerStatMan.h
  7805. * test/ServerStatManTest.cc
  7806. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7807. Implemented ServerStatMan::load(...) function and its test case.
  7808. * src/ServerStat.cc
  7809. * src/ServerStat.h
  7810. * src/ServerStatMan.cc
  7811. * test/ServerStatManTest.cc
  7812. * test/ServerStatTest.cc
  7813. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7814. Use time_t instead of int32_t. Use int64_t where milli second is
  7815. expected.
  7816. * src/TimeA2.cc
  7817. * src/TimeA2.h
  7818. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Implemented ServerStatMan::save(...) function and its test case.
  7820. * src/ServerStat.cc
  7821. * src/ServerStat.h
  7822. * src/ServerStatMan.cc
  7823. * src/ServerStatMan.h
  7824. * test/ServerStatManTest.cc
  7825. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Now aria2 uses name attribute in Metalink as local filename in
  7827. BitTorrent downloads. BUG#2033999
  7828. * src/BtContext.h
  7829. * src/BtDependency.cc
  7830. * src/DefaultBtContext.cc
  7831. * src/DefaultBtContext.h
  7832. * src/SingleFileDownloadContext.cc
  7833. * src/SingleFileDownloadContext.h
  7834. * test/BtDependencyTest.cc
  7835. * test/DefaultBtContextTest.cc
  7836. * test/MockBtContext.h
  7837. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7838. Added AC_C_BIGENDIAN
  7839. * src/configure.ac
  7840. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7841. Limited numCommand less than or equal to the number of piece.
  7842. * src/RequestGroup.cc
  7843. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7845. directive.
  7846. * test/DefaultPieceStorageTest.cc
  7847. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Fixed memory leak in test code
  7849. * test/AnnounceListTest.cc
  7850. * test/DefaultPeerListProcessorTest.cc
  7851. * test/DefaultPeerStorageTest.cc
  7852. * test/MetaFileUtilTest.cc
  7853. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7854. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7855. * src/DefaultPieceStorage.cc
  7856. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7857. Initialized _directIOAllowed
  7858. * src/MultiDiskAdaptor.cc
  7859. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. Fixed memory leak
  7861. * src/GZipDecoder.cc
  7862. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. Fixed memory leak
  7864. * src/MetalinkParserStateMachine.cc
  7865. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. Fixed memory leak
  7867. * src/Dictionary.cc
  7868. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. Fixed memory leak
  7870. * src/IteratableChunkChecksumValidator.h
  7871. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Fixed unmatched malloc/free.
  7873. * src/IteratableChunkChecksumValidator.cc
  7874. * src/IteratableChecksumValidator.cc
  7875. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Removed max chunk size check. This change fixes BUG#2040169
  7877. * src/ChunkedDecoder.cc
  7878. * src/ChunkedDecoder.h
  7879. * test/ChunkedDecoderTest.cc
  7880. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Implemented download speed based URI selection algorithm.
  7882. Introduced new option --uri-selector.
  7883. If --uri-selector=feedback is given, aria2 uses download speed observed
  7884. in the previous downloads and chooses fastest server in the URI list.
  7885. Currently at most 10 URIs are considered to introduce randomeness for
  7886. finding better servers. The speed is average download speed in the
  7887. downloads.
  7888. On the other hand, if --uri-selector=inorder is given, which is default,
  7889. URI is tried in order in URI list.
  7890. The usage text for the new option has not been written yet.
  7891. * src/AbstractCommand.cc
  7892. * src/DownloadCommand.cc
  7893. * src/DownloadEngine.cc
  7894. * src/DownloadEngineFactory.cc
  7895. * src/InOrderURISelector.cc
  7896. * src/InOrderURISelector.h
  7897. * src/OptionHandlerFactory.cc
  7898. * src/PeerStat.h
  7899. * src/RequestGroup.cc
  7900. * src/RequestGroup.h
  7901. * src/RequestGroupMan.cc
  7902. * src/RequestGroupMan.h
  7903. * src/SegmentMan.cc
  7904. * src/SegmentMan.h
  7905. * src/ServerStat.cc
  7906. * src/ServerStat.h
  7907. * src/ServerStatMan.cc
  7908. * src/ServerStatMan.h
  7909. * src/ServerStatURISelector.cc
  7910. * src/ServerStatURISelector.h
  7911. * src/URISelector.h
  7912. * src/option_processing.cc
  7913. * src/prefs.cc
  7914. * src/prefs.h
  7915. * test/InOrderURISelectorTest.cc
  7916. * test/RequestGroupManTest.cc
  7917. * test/ServerStatManTest.cc
  7918. * test/ServerStatURISelectorTest.cc
  7919. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7920. * Release 0.15.1+2
  7921. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Bump up version number to 0.15.1+2
  7923. * configure.ac
  7924. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7925. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7926. * m4/aria2_arg.m4
  7927. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7928. * Release 0.15.1+1
  7929. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7930. Bump up version number to 0.15.1+1
  7931. * configure.ac
  7932. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7933. Fixed the bug that causes segmentaion fault when resuming download
  7934. using metalink without size tag. Reproducible only using HTTP URI.
  7935. * src/HttpResponseCommand.cc
  7936. * src/FtpNegotiationCommand.cc
  7937. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. * Release 0.15.1
  7939. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7940. Updated Bulgarian and French translations, thanks to all translators.
  7941. * po/bg.po
  7942. * po/fr.po
  7943. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7944. Bump up version number to 0.15.1
  7945. * configure.ac
  7946. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Avoid repeated call of gettimeofday() when calculating speed.
  7948. * src/SpeedCalc.cc
  7949. * src/SpeedCalc.h
  7950. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7951. Removed writable check when socket's send buffer is full in BitTorrent
  7952. downloads to lower CPU usage.
  7953. * src/PeerInteractionCommand.cc
  7954. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7955. Fixed broken gzip inflation.
  7956. Turn off segmented downloading if gzip content is smaller than or equal
  7957. to 1MiB and inflate the data on the fly, because HTTP response header
  7958. doesn't contain the length of inflated file we can't determin where
  7959. the chunk of data should be written.
  7960. On the other hand, if gzip content is larger than 1MB, then turn off
  7961. on the fly inflation, because some servers returns "content-type: gzip"
  7962. for *.tgz, *.gz files.
  7963. * src/DownloadCommand.cc
  7964. * src/HttpResponseCommand.cc
  7965. * src/HttpResponseCommand.h
  7966. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7967. Applied tizianomueller's patch to fix compile error.
  7968. * test/BitfieldManTest.cc
  7969. * test/BtRequestMessageTest.cc
  7970. * test/DefaultBtContextTest.cc
  7971. * test/DefaultDiskWriterTest.cc
  7972. * test/DefaultPieceStorageTest.cc
  7973. * test/HttpHeaderProcessorTest.cc
  7974. * test/HttpResponseTest.cc
  7975. * test/Metalink2RequestGroupTest.cc
  7976. * test/MetalinkParserControllerTest.cc
  7977. * test/MetalinkProcessorTest.cc
  7978. * test/PeerSessionResourceTest.cc
  7979. * test/UtilTest.cc
  7980. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7981. * Release 0.15.0
  7982. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7983. Reordered src files in POTFILES.in so that usage text appears first.
  7984. * po/POTFILES.in
  7985. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7986. Bump up version number to 0.15.0
  7987. * configure.ac
  7988. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7989. Added Bulgarian translation.
  7990. Updated Catalan, Spanish, French and Japanese translations.
  7991. Thanks to all translators.
  7992. * po/LINGUAS
  7993. * po/bg.po
  7994. * po/ca.po
  7995. * po/es.po
  7996. * po/fr.po
  7997. * po/ja.po
  7998. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7999. Updated feature list. Added libz for dependency section.
  8000. Added a description about unit testing using CppUnit.
  8001. * README
  8002. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8003. Added a test for libz. Quoted where it is necessary.
  8004. * build_test.sh
  8005. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8006. Added GZip to `Enabled Features' list.
  8007. * src/FeatureConfig.cc
  8008. * src/FeatureConfig.h
  8009. * test/FeatureConfigTest.cc
  8010. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8011. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8012. the transfer has not yet started.
  8013. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8014. * src/SegmentMan.cc
  8015. * src/SegmentMan.h
  8016. * test/SegmentManTest.cc
  8017. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8018. Cache last calculated average download/upload speed.
  8019. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8020. cached value.
  8021. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8022. * src/PeerStat.h
  8023. * src/SpeedCalc.cc
  8024. * src/SpeedCalc.h
  8025. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8026. Call parseUrl directly.
  8027. * src/Request.cc (resetUrl)
  8028. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8029. Supported absolute/relative path in Location header field.
  8030. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8031. * src/HttpHeader.cc
  8032. * src/HttpHeader.h
  8033. * src/HttpResponse.cc
  8034. * src/HttpSkipResponseCommand.cc
  8035. * src/Request.cc
  8036. * test/HttpHeaderTest.cc
  8037. * test/HttpResponseTest.cc
  8038. * test/RequestTest.cc
  8039. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Changed help text for --load-cookie option.
  8041. * doc/aria2c.1.txt
  8042. * src/usage_text.h
  8043. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8044. Regenerated test/Makefile.in to remove stale ChangeLog.
  8045. * test/Makefile.in
  8046. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8047. Updated po files.
  8048. * po/aria2c.pot
  8049. * po/*.po
  8050. * po/*.gmo
  8051. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8052. Bump up version number to 0.15.0b
  8053. * configure.ac
  8054. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Externalize messages.
  8056. * src/RequestGroupMan.cc
  8057. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8058. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8059. Use File::exists() instead of File::isFile() to allow non-regular file
  8060. such as block special files.
  8061. * src/AbstractDiskWriter.cc
  8062. * src/MultiDiskWriter.cc
  8063. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8065. * src/gai_strerror.h
  8066. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8067. Fixed compile error. Thanks gknauf for the patch.
  8068. * src/asctime_r.c
  8069. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. Included asctime_r.h from a2time.h.
  8071. * src/a2time.h
  8072. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. Added a message "aria2 doesn't verify signature" to log message when
  8074. signature file is saved.
  8075. * src/RequestGroupMan.cc
  8076. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8077. Added the ability to save signature when download is completed if
  8078. signature is available. The filename of signature file is the path to
  8079. download file followed by ".sig". If it already exists, then signature
  8080. will not be saved.
  8081. * src/RequestGroupMan.cc
  8082. * src/Signature.cc
  8083. * test/SignatureTest.cc
  8084. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. Updated the descriptions for --bt-seed-unverified.
  8086. * doc/aria2c.1
  8087. * doc/aria2c.1.html
  8088. * doc/aria2c.1.txt
  8089. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8090. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8091. that this is not going to verify files using piece hashes.
  8092. * src/HelpItemFactory.cc
  8093. * src/OptionHandlerFactory.cc
  8094. * src/RequestGroup.cc
  8095. * src/option_processing.cc
  8096. * src/prefs.cc
  8097. * src/prefs.h
  8098. * src/usage_text.h
  8099. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8100. Added the ability to retrieve signature from Metalink file.
  8101. A retrieved signature is stored in Signature class and it is held by
  8102. DownloadContext class. Note that aria2 doesn't verify signature.
  8103. * src/DownloadContext.cc
  8104. * src/DownloadContext.h
  8105. * src/Makefile.am
  8106. * src/Makefile.in
  8107. * src/Metalink2RequestGroup.cc
  8108. * src/MetalinkEntry.cc
  8109. * src/MetalinkEntry.h
  8110. * src/MetalinkParserController.cc
  8111. * src/MetalinkParserController.h
  8112. * src/MetalinkParserStateMachine.cc
  8113. * src/MetalinkParserStateMachine.h
  8114. * src/Signature.cc
  8115. * src/Signature.h
  8116. * src/SignatureMetalinkParserState.cc
  8117. * src/SignatureMetalinkParserState.h
  8118. * src/VerificationMetalinkParserState.cc
  8119. * src/VerificationMetalinkParserState.h
  8120. * test/Metalink2RequestGroupTest.cc
  8121. * test/MetalinkParserControllerTest.cc
  8122. * test/MetalinkProcessorTest.cc
  8123. * test/test.xml
  8124. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8125. Close DiskAdaptor after renaming file.
  8126. * src/RequestGroup.cc
  8127. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8128. Corrected indentation
  8129. * src/DefaultBtProgressInfoFile.cc
  8130. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8131. Moved the calls of std::ios::exceptions() inside of try-catch block
  8132. because if an error occurred in constructor of std::fstream, then
  8133. exception is thrown immediately when std::ios::exceptions() is called
  8134. which results unhandled exception and aria2c aborts.
  8135. * src/DefaultBtProgressInfoFile.cc
  8136. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. Added the test for the previous change in DefaultBtContext.cc
  8138. * test/DefaultBtContextTest.cc
  8139. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8140. Fixed the bug that causes infinite loop when the number of pieces are
  8141. fewer than allowed fast set size which is 10 by default.
  8142. * src/DefaultBtContext.cc
  8143. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Updated the descriptions for -j, -s. Added --bt-seed.
  8145. * doc/aria2c.1
  8146. * doc/aria2c.1.html
  8147. * doc/aria2c.1.txt
  8148. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8149. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8150. aria2 seeds previously downloaded files without validating piece hashs.
  8151. * src/HelpItemFactory.cc
  8152. * src/OptionHandlerFactory.cc
  8153. * src/RequestGroup.cc
  8154. * src/option_processing.cc
  8155. * src/prefs.cc
  8156. * src/prefs.h
  8157. * src/usage_text.h
  8158. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Updated DESCRIPTION of man page.
  8160. * doc/aria2c.1
  8161. * doc/aria2c.1.html
  8162. * doc/aria2c.1.txt
  8163. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8164. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8165. Don't define `struct addrinfo' when __sun is defined.
  8166. * src/getaddrinfo.h
  8167. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8169. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8170. second argument is of type `struct _stati64'. Otherwise it is defined as
  8171. `struct stat'.
  8172. * src/AbstractDiskWriter.cc
  8173. * src/File.cc
  8174. * src/File.h
  8175. * src/a2io.h
  8176. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8177. Fixed the compile error in hurd-i386
  8178. See the original bug report:
  8179. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8180. * src/a2io.h
  8181. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8182. Code cleanup.
  8183. * src/PeerAbstractCommand.cc
  8184. * src/PeerAbstractCommand.h
  8185. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Removed TransferEncoding.
  8187. * src/DownloadCommand.cc
  8188. * src/DownloadCommand.h
  8189. * src/HttpResponseCommand.cc
  8190. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. Updated po files.
  8192. * po/aria2c.pot
  8193. * po/*.po
  8194. * po/*.gmo
  8195. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8197. * src/A2STR.cc
  8198. * src/A2STR.h
  8199. * src/ChunkedDecoder.cc
  8200. * src/ChunkedDecoder.h
  8201. * src/ChunkedEncoding.cc: Removed
  8202. * src/ChunkedEncoding.h: Removed
  8203. * src/DownloadCommand.cc
  8204. * src/DownloadCommand.h
  8205. * src/HttpDownloadCommand.cc
  8206. * src/HttpResponse.cc
  8207. * src/HttpResponse.h
  8208. * src/HttpResponseCommand.cc
  8209. * src/HttpSkipResponseCommand.cc
  8210. * src/HttpSkipResponseCommand.h
  8211. * src/Makefile.am
  8212. * src/TransferEncoding.h: Removed
  8213. * test/ChunkedDecoderTest.cc
  8214. * test/ChunkedEncodingTest.cc: Removed
  8215. * test/HttpResponseTest.cc
  8216. * test/Makefile.am
  8217. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Use append instead of insert.
  8219. * src/GZipDecoder.cc
  8220. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8221. Updated doc
  8222. * src/Decoder.h
  8223. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8224. Updated usage text for -s option.
  8225. * src/usage_text.h
  8226. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8227. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8228. * src/Request.cc
  8229. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8230. Cleaned up configure.ac.
  8231. * configure.ac
  8232. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8234. AC_ARG_ENABLE.
  8235. * configure.ac
  8236. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8237. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8238. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8239. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8240. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8241. fly and writes decoded data to a local disk.
  8242. * README
  8243. * README.html
  8244. * configure.ac
  8245. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8246. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8247. * m4/libz.m4
  8248. * src/Decoder.h
  8249. * src/DownloadCommand.cc
  8250. * src/DownloadCommand.h
  8251. * src/Exception.h
  8252. * src/GZipDecoder.cc
  8253. * src/GZipDecoder.h
  8254. * src/HttpHeader.cc
  8255. * src/HttpHeader.h
  8256. * src/HttpRequest.cc
  8257. * src/HttpRequest.h
  8258. * src/HttpResponse.cc
  8259. * src/HttpResponse.h
  8260. * src/HttpResponseCommand.cc
  8261. * src/Makefile.am
  8262. * test/GZipDecoderTest.cc
  8263. * test/HttpRequestTest.cc
  8264. * test/HttpResponseTest.cc
  8265. * test/Makefile.am
  8266. * test/Makefile.in
  8267. * test/gzip_decode_test.gz
  8268. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8269. Clarified usage of -j option.
  8270. * src/usage_text.h
  8271. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8272. Disabled getting size from the response of RETR.
  8273. If SIZE command failed, then disable resuming and segmented downloading.
  8274. * src/FtpConnection.cc
  8275. * src/FtpConnection.h
  8276. * src/FtpNegotiationCommand.cc
  8277. * src/FtpNegotiationCommand.h
  8278. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8279. Use digits to find first byte of file size, which makes the intention
  8280. of the code clearer.
  8281. * src/FtpConnection.cc
  8282. Don't call validateTotalLength() when size is 0.
  8283. * src/FtpNegotiationCommand.cc
  8284. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8285. Updated po files.
  8286. * po/aria2c.pot
  8287. * po/*.gmo
  8288. * po/*.po
  8289. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8290. Clarified usage text for --split option.
  8291. * src/usage_text.h
  8292. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8293. Bump up version number to 0.15.0dev. "dev" means "development"
  8294. version, which means I started the development of the next release!
  8295. * src/configure.ac
  8296. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. If FTP server returns negative response with REST raw command and
  8298. requested range is not 0, throw exception. If requested range is 0,
  8299. continue download a file from 0 byte.
  8300. * src/FtpNegotiationCommand.cc
  8301. * src/FtpNegotiationCommand.h
  8302. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Supported FTP server which don't recognize SIZE raw command.
  8304. If SIZE raw command is failed, aria2 will try to get file size
  8305. from the response of RETR raw command. If both attempts are failed,
  8306. then resuming and segmented downloading are disabled.
  8307. * src/FtpConnection.cc
  8308. * src/FtpConnection.h
  8309. * src/FtpNegotiationCommand.cc
  8310. * src/FtpNegotiationCommand.h
  8311. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. * Release 0.14.0+1
  8313. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8314. Bump up version number to 0.14.0+1
  8315. * src/configure.ac
  8316. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8317. Fixed the code that refers static member variable from non-static
  8318. context.
  8319. * src/DefaultPeerStorage.cc
  8320. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8321. * Release 0.14.0
  8322. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8323. Added build test script
  8324. * build_test.sh
  8325. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Updated ja.po
  8327. * src/ja.po
  8328. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8329. Bump up version number to 0.14.0
  8330. * src/configure.ac
  8331. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8332. Updated ja.po and fr.po. Great thanks for french translators and
  8333. Sebastien WILLEMIJNS.
  8334. * po/fr.po
  8335. * po/ja.po
  8336. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. Added configure option to enable/disable epoll support.
  8338. * configure.ac
  8339. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8340. Updated man page.
  8341. * doc/aria2c.1.txt
  8342. * doc/aria2c.1
  8343. * doc/aria2c.1.html
  8344. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8345. Added missing default value '5' to the usage of --split option.
  8346. * src/HelpItemFactory.cc
  8347. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8348. Filled up pieces based on the number of missing blocks, rather than
  8349. simplay the number of piece * block length.
  8350. * src/BtRequestFactory.h
  8351. * src/DefaultBtInteractive.cc
  8352. * src/DefaultBtInteractive.h
  8353. * src/DefaultBtRequestFactory.cc
  8354. * src/DefaultBtRequestFactory.h
  8355. * src/Piece.cc
  8356. * src/Piece.h
  8357. * test/BitfieldManTest.cc
  8358. * test/DefaultBtRequestFactoryTest.cc
  8359. * test/MockBtRequestFactory.h
  8360. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8361. Made _epEvents a member variable.
  8362. * src/DownloadEngine.cc
  8363. * src/DownloadEngine.h
  8364. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8365. Cancel download if http redirect is bounded more than 20 times.
  8366. * src/AbstractCommand.cc
  8367. * src/HttpSkipResponseCommand.cc
  8368. * src/Request.cc
  8369. * src/Request.h
  8370. * test/RequestTest.cc
  8371. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8372. Fixed unhandled exception(removed keyword `new').
  8373. * src/SocketCore.cc (initEPOLL)
  8374. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8375. Removed visit(const MetaEntry*)
  8376. * src/MetaEntryVisitor.h:
  8377. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8378. and made them virtual.
  8379. * src/BencodeVisitor.h
  8380. * src/BencodeVisitor.cc
  8381. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8382. Updated po files.
  8383. * po/aria2c.pot
  8384. * po/*.po
  8385. * po/*.gmo
  8386. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8387. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8388. the number of socket to watch out.
  8389. * src/PeerInteractionCommand.cc
  8390. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8391. When there is not enough space in disk when writing a chunk of data,
  8392. aria2 now prints the message to the console to warn user and aborts
  8393. its download. Not all downloads are canceled because some downloads
  8394. may use another disk or partition. BUG#1640332
  8395. * src/AbstractDiskWriter.cc
  8396. * src/PeerAbstractCommand.cc
  8397. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8398. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8399. setHaltRequested(true) to cancel download.
  8400. * src/PeerInteractionCommand.h
  8401. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8403. socket from int to sock_t as sockets are unsigned in Windows.
  8404. For AsyncNameResolver, DownloadEngine, I did additional modification
  8405. for the portion of the code changed according to epoll support.
  8406. I defined sock_t in a2netcompat.h to use sock_t without including
  8407. SocketCore.h.
  8408. * src/AsyncNameResolver.cc
  8409. * src/AsyncNameResolver.h
  8410. * src/DownloadEngine.cc
  8411. * src/DownloadEngine.h
  8412. * src/SocketCore.cc
  8413. * src/SocketCore.h
  8414. * src/a2netcompat.h
  8415. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8416. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8417. changes in the patch were applied.
  8418. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8419. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8420. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8421. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8423. a2io.h and common.h were modified.
  8424. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8425. MinGW.
  8426. * src/common.h: Changed off_t to 64 bit in MinGW.
  8427. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8428. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8429. only a2netcompat.h is modified.
  8430. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8431. directives.
  8432. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8434. only gai_strerror.h is modified.
  8435. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8436. winsock errors in MinGW.
  8437. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8438. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8439. follow sources are applied.
  8440. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8441. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8442. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8443. I included locale.h from Platform.cc.
  8444. * src/main.cc: Moved common setup/teardown code to Platform class.
  8445. * test/AllTest.cc: Use Platform class.
  8446. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8447. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8448. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8449. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8450. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8451. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8453. aria2-0.13.2+1-mingw-2.patch.
  8454. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8455. systems which don't have termious.h. I moved the directive inside of
  8456. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8457. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8458. anyway.
  8459. * src/asctime_r.h
  8460. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8461. I added 2nd argument to the prototype declaration.
  8462. * src/StringFormat.cc: Get rid of vasprintf.
  8463. * src/getaddrinfo.h: Fixed constants.
  8464. * configure.ac: Added the check for asctime_r function.
  8465. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8466. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8467. Added writable test for Socket when the sending message is in progress.
  8468. Usually the sending message is piece message. Without wriable check,
  8469. upload latency is dropped to more than 1sec.
  8470. * src/PeerInteractionCommand.cc
  8471. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8472. Create only requested files and files which shares a piece with
  8473. requested file in multi-torrent downloads. Directory structures are
  8474. also created in the same rule.
  8475. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8476. DiskWriterEntry as in the previous implementation.
  8477. * src/MultiDiskWriter.cc
  8478. * src/MultiFileAllocationIterator.cc
  8479. * src/MultiFileAllocationIterator.h
  8480. * test/MultiFileAllocationIteratorTest.cc
  8481. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Commented out -lprofiler
  8483. * src/Makefile.am
  8484. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. Bump up version number to 0.14.0b.
  8486. * src/configure.ac
  8487. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8488. Actively establish connection to peers in seeding, when peer cache
  8489. is not full and max upload speed limit is not reached.
  8490. * src/ActivePeerConnectionCommand.cc
  8491. * src/ActivePeerConnectionCommand.h
  8492. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8493. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8494. to make room more fleshy, recently found peers.
  8495. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8496. it.
  8497. * src/DefaultPeerStorage.cc
  8498. * test/DefaultPeerStorageTest.cc
  8499. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8500. Returns cached data only when the previous receiveHandshake() is called
  8501. with peek = true.
  8502. * src/PeerConnection.cc (receiveHandshake)
  8503. * src/PeerConnection.h (receiveHandshake)
  8504. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Changed default value of -s option from 1 to 5.
  8506. Also max value of -s option is changed from 5 to 16.
  8507. * src/HelpItemFactory.cc
  8508. * src/OptionHandlerFactory.cc
  8509. * src/option_processing.cc
  8510. * src/usage_text.h
  8511. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8512. Changed -s options behavior. Now it means the number of connections
  8513. made simultaneously in each http/ftp download.
  8514. If 1 URL is specified, the behavior is the same with old implementation.
  8515. If -s N is given and more than N URLs are specified, first N URLs are
  8516. used and remaining URLs are used for backup. If less than N URLs are
  8517. specified, some of URLs are used more than once so that totally N
  8518. connections are made simultaneously.
  8519. * src/main.cc
  8520. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8521. Included missing iosfwd or ostream header.
  8522. * src/RequestGroupMan.cc
  8523. * src/TaggedItem.cc
  8524. * src/TaggedItem.h
  8525. * src/Util.cc
  8526. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8527. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8528. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8529. * src/HttpConnection.cc: Included missing sstream.
  8530. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8531. Added --bt-max-open-files option.
  8532. * src/DefaultPieceStorage.cc
  8533. * src/HelpItemFactory.cc
  8534. * src/MultiDiskAdaptor.cc
  8535. * src/MultiDiskAdaptor.h
  8536. * src/OptionHandlerFactory.cc
  8537. * src/option_processing.cc
  8538. * src/prefs.cc
  8539. * src/prefs.h
  8540. * src/usage_text.h
  8541. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Fixed the bug that aria2 aborts when a path to a directory is given
  8543. in command-line.
  8544. * src/ProtocolDetector.cc
  8545. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. Limited the number files opened in each BitTorrent download. The default
  8547. value is 100. The option to change this value will be added.
  8548. * src/MultiDiskAdaptor.cc
  8549. * src/MultiDiskAdaptor.h
  8550. * src/MultiFileAllocationIterator.cc
  8551. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8552. Fixed the bug that HTTP downloads don't start with old libraries.
  8553. * src/HttpHeaderProcessor.cc
  8554. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8555. Use empty() instead of size() > 0.
  8556. * src/HttpConnection.cc
  8557. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. Drop connection if the incoming peer ID is the same with localhost's
  8559. one. The previous implementation drops connection when incoming peer's
  8560. IP address is the same with localhost's one.
  8561. * src/PeerListenCommand.cc
  8562. * src/DefaultBtInteractive.cc
  8563. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8564. Returns cached data without checking whether socket is readable
  8565. if the cache is available.
  8566. * src/PeerConnection.cc (receiveHandshake)
  8567. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. Included stdint.h
  8569. * src/common.h
  8570. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8571. Removed duplicate HAVE_GETTIMEOFDAY
  8572. * src/Makefile.am
  8573. * src/Makefile.in
  8574. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8575. Use interval as a minInterval when minInterval is not supplied.
  8576. * src/DefaultBtAnnounce.cc
  8577. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8579. attempt is failed, then 2nd attempt get kicked out more quickly.
  8580. And it is now static const member of DefaultBtAnnounce.
  8581. * src/DefaultBtAnnounce.h
  8582. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8583. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8584. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8585. * src/ActivePeerConnectionCommand.cc
  8586. * src/BtConstants.h
  8587. * src/BtRuntime.h
  8588. * src/DHTGetPeersCommand.cc
  8589. * src/DefaultBtAnnounce.cc
  8590. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8591. BtRuntime::MAX_PEERS.
  8592. * src/DefaultPeerStorage.h
  8593. * src/InitiatorMSEHandshakeCommand.cc
  8594. * src/PeerInitiateConnectionCommand.cc
  8595. * src/PeerInteractionCommand.cc
  8596. * src/PeerReceiveHandshakeCommand.cc
  8597. * src/TrackerWatcherCommand.cc
  8598. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. Always Connect to _numNewConnection
  8600. * src/ActivePeerConnectionCommand.cc
  8601. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8602. Made `begin' unsigned int.
  8603. * src/GrowSegment.h
  8604. * src/Piece.cc
  8605. * src/Piece.h
  8606. * src/PiecedSegment.cc
  8607. * src/PiecedSegment.h
  8608. * src/Segment.h
  8609. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Calculate piece hash when data is arrived if the data is arrived in
  8611. order. This removes additional read operation for hash calculation.
  8612. If the data is arrived in out of order, the hash is calucated when the
  8613. piece is completed. This is the same behavior as the old implementation.
  8614. * src/BtPieceMessage.cc
  8615. * src/DefaultBtProgressInfoFile.cc
  8616. * src/DefaultPieceStorage.cc
  8617. * src/DownloadCommand.cc
  8618. * src/DownloadCommand.h
  8619. * src/DownloadEngine.cc
  8620. * src/GrowSegment.cc
  8621. * src/GrowSegment.h
  8622. * src/Piece.cc
  8623. * src/Piece.h
  8624. * src/PiecedSegment.cc
  8625. * src/PiecedSegment.h
  8626. * src/Segment.h
  8627. * test/PieceTest.cc
  8628. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8629. Try to keep the ordering of outgoing piece message.
  8630. * src/DefaultBtMessageDispatcher.cc
  8631. (DefaultBtMessageDispatcher::sendMessages)
  8632. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8633. Fixed busy loop when error/hup epoll events occur.
  8634. * src/AbstractCommand.cc
  8635. * src/PeerAbstractCommand.cc
  8636. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8637. Added --bt-request-peer-speed-limit option, which was a constant
  8638. SLOW_SPEED_THRESHOLD.
  8639. * src/ActivePeerConnectionCommand.cc
  8640. * src/ActivePeerConnectionCommand.h
  8641. * src/BtConstants.h
  8642. * src/HelpItemFactory.cc
  8643. * src/OptionHandlerFactory.cc
  8644. * src/PeerReceiveHandshakeCommand.cc
  8645. * src/option_processing.cc
  8646. * src/prefs.cc
  8647. * src/prefs.h
  8648. * src/usage_text.h
  8649. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Removed repeated call of getTopDirPath(). Instead, call it once and
  8651. cache the result.
  8652. * src/MultiDiskAdaptor.cc
  8653. * src/MultiDiskAdaptor.h
  8654. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8655. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8656. Fixed compile error on debian etch.
  8657. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8658. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8659. it is undefined.
  8660. * src/Util.cc (ULLONG_MAX)
  8661. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8662. Added epoll support. Use epoll if it is available. If not, use select.
  8663. When async dns is enabled in compile time, epoll support is enabled
  8664. only when aria2 is built with c-ares. This condition statement is
  8665. defined in a2io.h.
  8666. Currently aria2 supports both c-ares and ares, but ares is maintained
  8667. for quite a while and debian already has c-ares package, ares support
  8668. will be dropped in the future version.
  8669. * configure.ac
  8670. * src/AbstractCommand.cc
  8671. * src/AsyncNameResolver.cc
  8672. * src/AsyncNameResolver.h
  8673. * src/Command.cc
  8674. * src/Command.h
  8675. * src/DownloadEngine.cc
  8676. * src/DownloadEngine.h
  8677. * src/PeerAbstractCommand.cc
  8678. * src/SocketCore.cc
  8679. * src/SocketCore.h
  8680. * src/a2io.h
  8681. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8683. directive.
  8684. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Do not do write operation to /dev/null file.
  8686. * src/LogFactory.cc
  8687. * src/SimpleLogger.cc
  8688. Replaced vasprintf with vsnprintf
  8689. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8690. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. * src/BtRequestMessage.cc
  8692. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8693. for segmentation fault caused by previous commit.
  8694. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8695. Reduced the usage of gettimeofday().
  8696. * src/DefaultBtMessageDispatcher.cc
  8697. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8698. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8699. * src/RequestSlot.cc
  8700. * src/RequestSlot.h
  8701. (RequestSlot::isTimeout)
  8702. Made RequestSlot have a reference to Piece object to avoid find
  8703. Piece repeatedly.
  8704. * src/DefaultBtMessageDispatcher.cc
  8705. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8706. * src/RequestSlot.cc
  8707. * src/RequestSlot.h
  8708. (RequestSlot::getPiece)
  8709. * test/DefaultBtMessageDispatcherTest.cc
  8710. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. * src/TimeA2.cc
  8712. * src/TimeA2.h
  8713. (Time::difference): New function.
  8714. (Time::elapsed): Done optimization.
  8715. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8716. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  8717. directive.
  8718. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. * src/option_processing.cc: Added missing `defined' keyword to #if
  8720. directive.
  8721. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Bump up version number to 0.13.2+1
  8723. * src/configure.ac
  8724. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8725. Refactored broken outstanding piece handling.
  8726. * src/DefaultPieceStorage.cc
  8727. * src/DefaultPieceStorage.h
  8728. * src/Piece.cc
  8729. * src/Piece.h
  8730. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8731. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  8732. name collision of static variable and predefined macro.
  8733. * src/BtContext.cc
  8734. * src/BtContext.h
  8735. * src/CookieBoxFactory.cc
  8736. * src/CookieBoxFactory.h
  8737. * src/CookieParser.cc
  8738. * src/CookieParser.h
  8739. * src/DefaultBtContext.cc
  8740. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. * src/RequestGroup.cc
  8742. (RequestGroup::createInitialCommand): Use empty() instead of size().
  8743. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. * Release 0.13.2
  8745. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8746. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  8747. * po/fr.po
  8748. * po/ja.po
  8749. * po/aria2c.pot
  8750. * po/*.po
  8751. * po/*.gmo
  8752. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. Bump up version number to 0.13.2
  8754. * src/configure.ac
  8755. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8756. Refactord.
  8757. * src/RequestGroupMan.cc
  8758. (removeStoppedGroup)
  8759. (fillRequestGroupFromReserver)
  8760. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8761. Fixed compile error on Ubuntu.
  8762. * src/BtPieceMessage.cc
  8763. * src/MessageDigestHelper.cc
  8764. * src/Util.cc
  8765. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8766. Fixed compile error when configured with --disable-bittorrent
  8767. * test/DownloadHandlerFactoryTest.cc
  8768. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8769. Done make update-po
  8770. * po/aria2c.pot
  8771. * po/*.po
  8772. * po/*.gmo
  8773. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8774. Bump up version number to 0.13.2rc.
  8775. * src/configure.ac
  8776. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8777. Made option name bold. Updated SYNOPSIS to make it more readable.
  8778. * doc/aria2c.1.txt
  8779. * doc/aria2c.1
  8780. * doc/aria2c.1.html
  8781. * src/version_usage.cc
  8782. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. Refactored. Use std::string instead of size and char*.
  8784. * Data.cc
  8785. * Data.h
  8786. * test/Data.cc
  8787. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. Added trimSelf(). Rewritten trim() to use trimSelf().
  8789. * Util.cc
  8790. * Util.h
  8791. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8792. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8793. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8794. Fixed compile error when configured with --disable-metalink.
  8795. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8796. * test/FeatureConfigTest.cc
  8797. * test/DownloadHandlerFactoryTest.cc
  8798. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8799. Fixed compile error when configured with --without-gnutls
  8800. --without-openssl
  8801. * src/main.cc
  8802. * test/DefaultBtProgressInfoFileTest.cc
  8803. * test/SegmentManTest.cc
  8804. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Fixed compile error with OpenSSL.
  8806. * src/IteratableChunkChecksumValidator.cc
  8807. * src/LibsslDHKeyExchange.h
  8808. * src/MessageDigestHelper.cc
  8809. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. Revert the default value of --max-concurrent-downloads to 5.
  8811. Revert the default value of --metalink-servers to 5.
  8812. Man pages was also updated.
  8813. * src/option_processing.cc
  8814. * doc/aria2c.1.txt
  8815. * doc/aria2c.1.html
  8816. * doc/aria2c.1
  8817. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8818. Returns const reference:
  8819. DownloadContext::getPieceHash, DownloadContext::getName,
  8820. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8821. BtContext::getInfoHashAsString,
  8822. * src/BtContext.h
  8823. * src/DefaultBtContext.cc
  8824. * src/DefaultBtContext.h
  8825. * src/DownloadContext.h
  8826. * src/SingleFileDownloadContext.h
  8827. * test/MockBtContext.h
  8828. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8829. * src/RequestGroup.h (getDir): Removed.
  8830. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8831. Returns const reference. The internal urlencode function was optimized
  8832. a little bit.
  8833. * src/Request.cc
  8834. * src/Request.h
  8835. * src/HttpRequest.cc
  8836. * src/HttpRequest.h
  8837. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Defined option name and possible values as std::string to reduce
  8839. temporary string object creation in runtime.
  8840. * src/HelpItemFactory.cc
  8841. * src/LogFactory.cc
  8842. * src/Option.cc
  8843. * src/OptionHandlerFactory.cc
  8844. * src/option_processing.cc
  8845. * src/prefs.cc
  8846. * src/prefs.h
  8847. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. Return const reference.
  8849. * src/DownloadHandlerConstants.cc
  8850. * src/DownloadHandlerConstants.h
  8851. (getMetalinkExtensions)
  8852. (getMetalinkContentTypes)
  8853. (getBtExtensions)
  8854. (getBtContentTypes)
  8855. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8856. * src/HttpHeader.cc (get): Rewritten.
  8857. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Make HttpHeader::getFirst(...) return const reference.
  8859. * src/HttpHeader.cc
  8860. * src/HttpHeader.h
  8861. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8863. it with V_TRUE.
  8864. * src/DefaultPieceStorage.cc
  8865. * src/DownloadCommand.cc
  8866. * src/FtpNegotiationCommand.cc
  8867. * src/HttpRequest.cc
  8868. * src/InitiateConnectionCommand.cc
  8869. * src/RequestGroup.cc
  8870. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8871. Made Option::get(...) return const reference of std::string.
  8872. * src/Option.cc
  8873. * src/Option.h
  8874. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. Replaced std:copy with insert.
  8876. * src/DefaultBtMessageDispatcher.cc
  8877. * src/DefaultPieceStorage.cc
  8878. * src/DownloadEngineFactory.cc
  8879. * src/RequestGroup.cc
  8880. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8881. Included SocketCore.h to fix compiler warning.
  8882. * src/InitiateConnectionCommand.cc
  8883. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8884. Put piece selection strategy algorithm to RarestPieceSelector class,
  8885. Added a switch to choose whether randomized selection so that unit
  8886. tests emit same results in, possibly, win32.
  8887. * src/DefaultPieceStorage.cc
  8888. * src/DefaultPieceStorage.h
  8889. * src/RarestPieceSelector.cc
  8890. * src/RarestPieceSelector.h
  8891. * test/DefaultPieceStorageTest.cc
  8892. * test/RarestPieceSelectorTest.cc
  8893. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. Don't pool connection if HTTP proxy is enabled.
  8895. * src/FtpFinishDownloadCommand.cc
  8896. * src/FtpNegotiationCommand.cc
  8897. * src/HttpSkipResponseCommand.cc
  8898. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8899. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8900. * src/AbstractCommand.cc
  8901. * src/AbstractCommand.h
  8902. * src/ActivePeerConnectionCommand.cc
  8903. * src/FtpInitiateConnectionCommand.cc
  8904. * src/HttpInitiateConnectionCommand.cc
  8905. * src/InitiateConnectionCommandFactory.cc
  8906. * src/PeerAbstractCommand.cc
  8907. * src/PeerAbstractCommand.h
  8908. * src/PeerInitiateConnectionCommand.cc
  8909. * src/TrackerWatcherCommand.cc
  8910. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8911. Sort RequestSlot in ascending order and manipulate them using
  8912. lower_bound.
  8913. * src/DefaultBtMessageDispatcher.cc
  8914. * src/DefaultBtMessageDispatcher.h
  8915. (getMessageQueue): Added const qualifier.
  8916. (getRequestSlots): Added const qualifier.
  8917. (sendMessages): Use empty() instead of size().
  8918. (doCancelSendingPieceAction): Use HandleEvent object.
  8919. (doAbortOutstandingRequestAction): Rewritten.
  8920. (doChokedAction): Rewritten.
  8921. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8922. (isOutstandingRequest): Rewritten.
  8923. (getOutstandingRequest): Rewritten.
  8924. (removeOutstandingRequest): Rewritten.
  8925. (addOutstandingRequest): Rewritten.
  8926. * src/RequestSlot.cc
  8927. * src/RequestSlot.h
  8928. (operator=): Rewritten.
  8929. (operator!=): New function.
  8930. (operator<): New function.
  8931. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8932. * src/DefaultBtRequestFactory.cc
  8933. (doChokedAction): Rewritten.
  8934. (removeCompletedPiece): Rewritten.
  8935. (removeTargetPiece): Rewritten.
  8936. (createRequestMessages): Added the debug log.
  8937. (createRequestMessagesOnEndGame: Added the debug log.
  8938. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8939. Added the debug log message.
  8940. * src/BtPieceMessage.cc (doReceivedAction)
  8941. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8943. used lower_bound to process them rather than linear search.
  8944. * src/DHTPeerAnnounceStorage.cc
  8945. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8947. peer has at least one completed piece.
  8948. * src/Peer.cc
  8949. * src/Peer.h
  8950. * src/PeerInteractionCommand.cc
  8951. * src/PeerSessionResource.cc
  8952. * src/PeerSessionResource.h
  8953. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8954. Removed unnecessary sorting
  8955. * src/DefaultPieceStorage (DefaultPieceStorage)
  8956. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Rewritten the portion of the code that mangaes allowed fast indexes.
  8958. * src/PeerSessionResource.cc
  8959. * src/PeerSessionResource.h
  8960. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8961. Removed the invalid string including '\r' from ru.po and
  8962. did make update-po.
  8963. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8964. Added --log-level and --summary-interval to man page.
  8965. * doc/aria2c.1.txt
  8966. * doc/aria2c.1.html
  8967. * doc/aria2c.1
  8968. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8969. Added --log-level option to specify log level. Log messages under
  8970. the specified level are not output. Default value is `debug'.
  8971. * src/HelpItemFactory.cc
  8972. * src/LogFactory.cc
  8973. * src/LogFactory.h
  8974. * src/Logger.h
  8975. * src/OptionHandlerFactory.cc
  8976. * src/SimpleLogger.cc
  8977. * src/SimpleLogger.h
  8978. * src/main.cc
  8979. * src/option_processing.cc
  8980. * src/prefs.h
  8981. * src/usage_text.h
  8982. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8983. Print download progress summary of all parallel downloads in specified
  8984. interval, default 60 secs. While aria2 could download several files
  8985. in parallel (see -j option), it displayed just first download progress,
  8986. and the other downloads are hidden from the users. This new feature
  8987. prints all downloads currently in-progress to the console so that you
  8988. can check the status of all downloads. The interval can be adjusted
  8989. by --summary-interval option.
  8990. The progress readout is now cut so that all fits in the one line of
  8991. console.
  8992. * src/ConsoleStatCalc.cc
  8993. * src/ConsoleStatCalc.h
  8994. * src/HelpItemFactory.cc
  8995. * src/OptionHandlerFactory.cc
  8996. * src/RequestGroupMan.cc
  8997. * src/RequestGroupMan.h
  8998. * src/main.cc
  8999. * src/option_processing.cc
  9000. * src/prefs.h
  9001. * src/usage_text.h
  9002. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9004. * src/DownloadEngine.cc (DownloadEngine)
  9005. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9006. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9007. defined.
  9008. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9009. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9010. Use erase+lower_bound+insert instead of sort.
  9011. * src/DefaultPieceStorage.cc (addPieceStats)
  9012. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9013. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9014. * src/A2STR.cc
  9015. * src/A2STR.h
  9016. * src/OptionParser.cc (parse)
  9017. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9018. Defined fake filename `[tracker.announce]' as static const std::string.
  9019. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9020. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9021. Defined default filename `index.html' as static const std::string
  9022. * src/SingleFileDownloadContext.cc
  9023. * src/SingleFileDownloadContext.h
  9024. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9025. Defined "[MEMORY]" as static const std::string.
  9026. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9027. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9028. Defined control file's version number as static const std::string.
  9029. * src/DefaultBtProgressInfoFile.cc
  9030. * src/DefaultBtProgressInfoFile.h
  9031. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9032. Use Request::METHOD_GET
  9033. * src/RequestGroup.cc (createNextCommandWithAdj)
  9034. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. Defined "OK", "ERR", "INPR" as static const std::string
  9036. * src/RequestGroupMan.cc (showDownloadResults)
  9037. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. Defined default client used in extended handshake as static const
  9039. std::string
  9040. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9041. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9042. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9043. * src/HttpConnection.cc (eraseConfidentialInfo)
  9044. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Defined default ftp user and password as static const std::string
  9046. * src/AuthConfigFactory.cc
  9047. * src/AuthConfigFactory.h
  9048. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9049. Defined strings used in netrc as static const std::string
  9050. * src/Netrc.cc
  9051. * src/Netrc.h
  9052. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9053. Defined HTTP status as static const std::string
  9054. * src/AbstractProxyResponseCommand.cc
  9055. * src/HttpHeader.cc
  9056. * src/HttpHeader.h
  9057. * src/HttpResponse.cc
  9058. * src/HttpResponseCommand.cc
  9059. * src/HttpSkipResponseCommand.cc
  9060. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9061. Defined "\r\n", "A", "I" as static const std::string
  9062. * src/A2STR.cc
  9063. * src/A2STR.h
  9064. * src/FtpConnection.cc
  9065. * src/FtpConnection.h
  9066. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9067. Added COLON_C(".") and used it in Request::parseUrl()
  9068. * src/A2STR.cc
  9069. * src/A2STR.h
  9070. * src/Request.cc (parseUrl)
  9071. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9072. Changed the type of padName from `const std::string&' to `const char*'.
  9073. * src/MSEHandshake.cc (verifyPadLength)
  9074. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9075. Defined "sha1" as static const std::string.
  9076. * src/MetalinkParserController.cc
  9077. * src/MetalinkParserController.h
  9078. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9079. Defined message digest algorithm name as static const std::string
  9080. * src/DHTTokenTracker.cc
  9081. * src/DHTUtil.cc
  9082. * src/DefaultBtContext.cc
  9083. * src/MSEHandshake.cc
  9084. * src/MessageDigestHelper.cc
  9085. * src/Peer.cc
  9086. * src/messageDigest.cc
  9087. * src/messageDigest.h
  9088. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9089. Made string literals used in SAX parser static const std::string.
  9090. * src/FileMetalinkParserState.cc
  9091. * src/FileMetalinkParserState.h
  9092. * src/FilesMetalinkParserState.cc
  9093. * src/FilesMetalinkParserState.h
  9094. * src/InitialMetalinkParserState.cc
  9095. * src/InitialMetalinkParserState.h
  9096. * src/MetalinkMetalinkParserState.cc
  9097. * src/MetalinkMetalinkParserState.h
  9098. * src/PiecesMetalinkParserState.cc
  9099. * src/PiecesMetalinkParserState.h
  9100. * src/ResourcesMetalinkParserState.cc
  9101. * src/ResourcesMetalinkParserState.h
  9102. * src/VerificationMetalinkParserState.cc
  9103. * src/VerificationMetalinkParserState.h
  9104. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9105. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9106. * src/A2STR.cc
  9107. * src/A2STR.h
  9108. * src/File.cc
  9109. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. Defined static const std::string IP("ip"), PORT("port") and use them
  9111. instead of string literals.
  9112. * src/DefaultPeerListProcessor.cc
  9113. * src/DefaultPeerListProcessor.h
  9114. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. Made string literals for torrent file processing static const
  9116. std::string.
  9117. * src/BtContext.cc
  9118. * src/BtContext.h
  9119. * src/DefaultBtContext.cc
  9120. * src/DefaultBtContext.h
  9121. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9122. Made string literal for tracker response static const std::string
  9123. * src/BtAnnounce.cc
  9124. * src/BtAnnounce.h
  9125. * src/DefaultBtAnnounce.cc
  9126. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9127. Use DHTMessage::T instead of "t".
  9128. * src/DHTMessageTracker.cc (messageArrived)
  9129. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9130. Made keyName static const. Made trimmed charset static const
  9131. std::string.
  9132. * src/Util.cc (getContentDispositionFilename)
  9133. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9134. Made USER_AGENT const. Made "/" static const std::string.
  9135. * src/A2STR.cc
  9136. * src/A2STR.h
  9137. * src/HttpRequest.cc
  9138. * src/HttpRequest.h
  9139. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9140. Made string listeral to static const std::string:
  9141. "Content-Range", "Content-Length"
  9142. * src/HttpHeader.cc
  9143. * src/HttpHeader.h
  9144. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9145. Made string listeral to static const std::string.
  9146. * src/HttpConnection.cc
  9147. * src/HttpHeader.cc
  9148. * src/HttpHeader.h
  9149. * src/HttpResponse.cc
  9150. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Made string listeral to static const std::string.
  9152. * src/A2STR.cc
  9153. * src/A2STR.h
  9154. * src/SimpleLogger.cc
  9155. * src/SimpleLogger.h
  9156. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Made string literal to static const std::string.
  9158. Rewritten CookieParser::setField.
  9159. * src/A2STR.cc
  9160. * src/A2STR.h
  9161. * src/CookieBoxFactory.cc
  9162. * src/CookieBoxFactory.h
  9163. * src/CookieParser.cc
  9164. * src/CookieParser.h
  9165. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9166. Made string literal to static const std::string
  9167. * src/DHTAbstractMessage.cc
  9168. * src/DHTAnnouncePeerMessage.cc
  9169. * src/DHTAnnouncePeerMessage.h
  9170. * src/DHTAnnouncePeerReplyMessage.cc
  9171. * src/DHTAnnouncePeerReplyMessage.h
  9172. * src/DHTFindNodeMessage.cc
  9173. * src/DHTFindNodeMessage.h
  9174. * src/DHTFindNodeReplyMessage.cc
  9175. * src/DHTFindNodeReplyMessage.h
  9176. * src/DHTGetPeersMessage.cc
  9177. * src/DHTGetPeersMessage.h
  9178. * src/DHTGetPeersReplyMessage.cc
  9179. * src/DHTGetPeersReplyMessage.h
  9180. * src/DHTMessage.cc
  9181. * src/DHTMessage.h
  9182. * src/DHTMessageFactoryImpl.cc
  9183. * src/DHTMessageReceiver.cc
  9184. * src/DHTPingMessage.cc
  9185. * src/DHTPingMessage.h
  9186. * src/DHTPingReplyMessage.cc
  9187. * src/DHTPingReplyMessage.h
  9188. * src/DHTQueryMessage.cc
  9189. * src/DHTQueryMessage.h
  9190. * src/DHTResponseMessage.cc
  9191. * src/DHTResponseMessage.h
  9192. * src/DHTUnknownMessage.cc
  9193. * src/DHTUnknownMessage.h
  9194. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Made string literal to static const std::string
  9196. * src/BtChokeMessage.cc (toString)
  9197. * src/BtHaveAllMessage.cc (toString)
  9198. * src/BtHaveNoneMessage.cc (toString)
  9199. * src/BtInterestedMessage.cc (toString)
  9200. * src/BtNotInterestedMessage.cc (toString)
  9201. * src/BtUnchokeMessage.cc (toString)
  9202. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. Replaced "" with static const variable A2STR::NIL.
  9204. Replaced string comparison against "" with std::string::empty().
  9205. Added PROTO_* to Request class and use them as a protocol string
  9206. constant.
  9207. Made "started", "stopped", "completed" static const variable in
  9208. AnnounceList class.
  9209. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. Updated translations. Great thanks to translators.
  9211. * po/ca.po
  9212. * po/de.po
  9213. * po/fr.po
  9214. * po/it.po
  9215. * po/ja.po
  9216. * po/ru.po
  9217. * po/zh_CN.po
  9218. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9219. Updated man page; categorized options and fixed typo.
  9220. * doc/aria2c.1.txt
  9221. * doc/aria2c.1.html
  9222. * doc/aria2c.1
  9223. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9224. Removed const ref
  9225. * src/MetalinkEntry.cc (AddProtocolPreference)
  9226. * src/RequestGroup.cc (FindServerHostByHostname)
  9227. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9228. Rewritten Accept-Features handling.
  9229. * src/HttpRequestCommand.cc (createHttpRequest)
  9230. * src/a2functional.h
  9231. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9232. Changed method signature:
  9233. DHTAbstractNodeLookupTask::toEntries
  9234. * src/DHTAbstractNodeLookupTask.cc
  9235. * src/DHTAbstractNodeLookupTask.h
  9236. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9237. Changed method signature:
  9238. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9239. * src/BtContext.h
  9240. * src/DefaultBtContext.cc
  9241. * src/DefaultBtContext.h
  9242. * src/DefaultBtInteractive.cc
  9243. * test/DefaultBtContextTest.cc
  9244. * test/MockBtContext.h
  9245. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. Changed method signature:
  9247. MultiFileAllocationIterator::makeDiskWriterEntries
  9248. * src/MultiFileAllocationIterator.cc
  9249. * src/MultiFileAllocationIterator.h
  9250. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9251. Changed method sinature:
  9252. MetalinkEntry::toFileEntry,
  9253. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9254. Metalinker::queryEntry
  9255. * src/Metalink2RequestGroup.cc
  9256. * src/MetalinkEntry.cc
  9257. * src/MetalinkEntry.h
  9258. * src/MetalinkHelper.cc
  9259. * src/MetalinkHelper.h
  9260. * src/Metalinker.cc
  9261. * src/Metalinker.h
  9262. * src/main.cc
  9263. * test/MetalinkHelperTest.cc
  9264. * test/MetalinkerTest.cc
  9265. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9266. Changed method sinature:
  9267. RequestGroup::getURIs
  9268. * src/RequestGroup.cc
  9269. * src/RequestGroup.h
  9270. * test/Metalink2RequestGroupTest.cc
  9271. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Changed method signature:
  9273. PeerListProcessor::extractPeer
  9274. * src/CompactPeerListProcessor.cc
  9275. * src/CompactPeerListProcessor.h
  9276. * src/DefaultBtAnnounce.cc
  9277. * src/DefaultPeerListProcessor.cc
  9278. * src/DefaultPeerListProcessor.h
  9279. * src/DelegatingPeerListProcessor.cc
  9280. * src/DelegatingPeerListProcessor.h
  9281. * src/PeerListProcessor.h
  9282. * src/UTPexExtensionMessage.cc
  9283. * test/DefaultPeerListProcessorTest.cc
  9284. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9285. Changed method signature:
  9286. BtRequestFactory::createRequestMessages,
  9287. BtRequestFactory::createRequestMessagesOnEndGame
  9288. * src/BtRequestFactory.h
  9289. * src/DefaultBtInteractive.cc
  9290. * src/DefaultBtRequestFactory.cc
  9291. * src/DefaultBtRequestFactory.h
  9292. * test/DefaultBtRequestFactoryTest.cc
  9293. * test/MockBtRequestFactory.h
  9294. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9295. Changed method signature:
  9296. PieceStorage::getInFlightPieces
  9297. * src/DefaultBtProgressInfoFile.cc
  9298. * src/DefaultPieceStorage.cc
  9299. * src/DefaultPieceStorage.h
  9300. * src/PieceStorage.h
  9301. * src/UnknownLengthPieceStorage.cc
  9302. * src/UnknownLengthPieceStorage.h
  9303. * test/DefaultBtProgressInfoFileTest.cc
  9304. * test/MockPieceStorage.h
  9305. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9306. Changed method signature:
  9307. PostDownloadHandler::getNextRequestGroups
  9308. Metalink2RequestGroup::generate
  9309. RequestGroup::postDownloadProcessing
  9310. * src/BtPostDownloadHandler.cc
  9311. * src/BtPostDownloadHandler.h
  9312. * src/Metalink2RequestGroup.cc
  9313. * src/Metalink2RequestGroup.h
  9314. * src/MetalinkPostDownloadHandler.cc
  9315. * src/MetalinkPostDownloadHandler.h
  9316. * src/PostDownloadHandler.h
  9317. * src/RequestGroup.cc
  9318. * src/RequestGroup.h
  9319. * src/RequestGroupMan.cc
  9320. * src/main.cc
  9321. * test/BtPostDownloadHandlerTest.cc
  9322. * test/Metalink2RequestGroupTest.cc
  9323. * test/MetalinkPostDownloadHandlerTest.cc
  9324. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9325. Rewritten AccRequestGroup
  9326. * src/main.cc
  9327. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. Rewritten.
  9329. * src/TaggedItem.cc (toTagString)
  9330. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9331. Rewritten Accept-Features handling.
  9332. * src/HttpRequestCommand.cc (createHttpRequest)
  9333. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9334. Rewritten accept types handling.
  9335. * HttpRequest.cc (createRequest)
  9336. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9337. Rewritten
  9338. * src/FeatureConfig.cc (featureSummary)
  9339. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9340. Changed method signature:
  9341. PeerStorage::getActivePeers
  9342. * src/DHTPeerAnnounceEntry.cc
  9343. * src/DefaultPeerStorage.cc
  9344. * src/DefaultPeerStorage.h
  9345. * src/PeerStorage.h
  9346. * test/DefaultPeerStorageTest.cc
  9347. * test/MockPeerStorage.h
  9348. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9349. Changed method signature:
  9350. DHTPeerAnnounceStorage::getPeers,
  9351. DHTPeerAnnounceEntry::getPeers
  9352. * src/DHTGetPeersMessage.cc
  9353. * src/DHTPeerAnnounceEntry.cc
  9354. * src/DHTPeerAnnounceEntry.h
  9355. * src/DHTPeerAnnounceStorage.cc
  9356. * src/DHTPeerAnnounceStorage.h
  9357. * test/DHTAnnouncePeerMessageTest.cc
  9358. * test/DHTPeerAnnounceEntryTest.cc
  9359. * test/DHTPeerAnnounceStorageTest.cc
  9360. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9361. Changed method signature:
  9362. NameResolver::resolve
  9363. * src/DHTEntryPointNameResolveCommand.cc
  9364. * src/InitiateConnectionCommand.cc
  9365. * src/NameResolver.cc
  9366. * src/NameResolver.h
  9367. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9368. Changed method signature:
  9369. PieceStorage::getAdvertisedPieceIndexes
  9370. * src/DefaultBtInteractive.cc
  9371. * src/DefaultPieceStorage.cc
  9372. * src/DefaultPieceStorage.h
  9373. * src/PieceStorage.h
  9374. * src/UnknownLengthPieceStorage.h
  9375. * test/MockPieceStorage.h
  9376. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9377. Changed method signature:
  9378. SegmentMan::getInFlightSegment
  9379. * src/AbstractCommand.cc
  9380. * src/SegmentMan.cc
  9381. * src/SegmentMan.h
  9382. * test/SegmentManTest.cc
  9383. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9384. Changed method signature:
  9385. DHTAbstractNodeLookupTask::getNodesFromMessage
  9386. * src/DHTAbstractNodeLookupTask.cc
  9387. * src/DHTAbstractNodeLookupTask.h
  9388. * src/DHTNodeLookupTask.cc
  9389. * src/DHTNodeLookupTask.h
  9390. * src/DHTPeerLookupTask.cc
  9391. * src/DHTPeerLookupTask.h
  9392. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9393. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9394. * src/AbstractCommand.cc
  9395. * src/BtCheckIntegrityEntry.cc
  9396. * src/BtCheckIntegrityEntry.h
  9397. * src/BtFileAllocationEntry.cc
  9398. * src/BtFileAllocationEntry.h
  9399. * src/BtSetup.cc
  9400. * src/BtSetup.h
  9401. * src/CheckIntegrityCommand.cc
  9402. * src/CheckIntegrityEntry.h
  9403. * src/ChecksumCheckIntegrityEntry.cc
  9404. * src/ChecksumCheckIntegrityEntry.h
  9405. * src/DHTSetup.cc
  9406. * src/DHTSetup.h
  9407. * src/DownloadEngine.cc
  9408. * src/FileAllocationCommand.cc
  9409. * src/FileAllocationEntry.h
  9410. * src/RequestGroup.cc
  9411. * src/RequestGroup.h
  9412. * src/RequestGroupMan.cc
  9413. * src/RequestGroupMan.h
  9414. * src/StreamCheckIntegrityEntry.cc
  9415. * src/StreamCheckIntegrityEntry.h
  9416. * src/StreamFileAllocationEntry.cc
  9417. * src/StreamFileAllocationEntry.h
  9418. * src/TrackerWatcherCommand.cc
  9419. * src/a2functional.h
  9420. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9421. Changed method signature:
  9422. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9423. DHTBucket::getGoodNodes,
  9424. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9425. * src/BNode.cc
  9426. * src/BNode.h
  9427. * src/DHTAbstractNodeLookupTask.cc
  9428. * src/DHTAutoSaveCommand.cc
  9429. * src/DHTBucket.cc
  9430. * src/DHTBucket.h
  9431. * src/DHTBucketRefreshTask.cc
  9432. * src/DHTFindNodeMessage.cc
  9433. * src/DHTGetPeersMessage.cc
  9434. * src/DHTRoutingTable.cc
  9435. * src/DHTRoutingTable.h
  9436. * test/BNodeTest.cc
  9437. * test/DHTBucketTest.cc
  9438. * test/DHTRoutingTableTest.cc
  9439. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9440. In piece selection functions, Pass std::deque<...> by reference rather
  9441. than returning it.
  9442. * src/BitfieldMan.cc
  9443. * src/BitfieldMan.h
  9444. * src/DefaultBtRequestFactory.cc
  9445. * src/DefaultPieceStorage.cc
  9446. * src/Piece.cc
  9447. * src/Piece.h
  9448. * test/BitfieldManTest.cc
  9449. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9450. Implemented rarest piece first piece selection strategy.
  9451. * src/AbstractBtMessage.cc
  9452. * src/AbstractBtMessage.h
  9453. * src/BitfieldMan.cc
  9454. * src/BitfieldMan.h
  9455. * src/BtBitfieldMessage.cc
  9456. * src/BtHaveAllMessage.cc
  9457. * src/BtHaveMessage.cc
  9458. * src/DefaultPieceStorage.cc
  9459. * src/DefaultPieceStorage.h
  9460. * src/PeerInteractionCommand.cc
  9461. * src/PieceStorage.h
  9462. * src/UnknownLengthPieceStorage.h
  9463. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9464. Rewritten readData and writeData.
  9465. * src/MultiDiskAdaptor.cc
  9466. * src/MultiDiskAdaptor.h
  9467. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9468. Move \n out of the message "Usage: ...".
  9469. * src/version_usage.cc
  9470. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. Bump up version number to 0.13.2b.
  9472. * configure.ac
  9473. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. Added const qualifier to argument Exception& e.
  9475. * src/Logger.h
  9476. * src/SimpleLogger.cc
  9477. * src/SimpleLogger.h
  9478. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9479. Pool connection when CWD, SIZE command fails.
  9480. * src/FtpNegotiationCommand.cc
  9481. * src/FtpNegotiationCommand.h
  9482. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9483. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9484. * src/HttpResponseCommand.cc
  9485. * src/HttpSkipResponseCommand.cc
  9486. * src/HttpSkipResponseCommand.h
  9487. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9488. Pool connection when a server returns 4xx, 5xx responses.
  9489. * src/HttpNullDownloadCommand.cc
  9490. * src/HttpNullDownloadCommand.h
  9491. * src/HttpResponse.cc
  9492. * src/HttpResponse.h
  9493. * src/HttpResponseCommand.cc
  9494. * src/HttpResponseCommand.h
  9495. * test/HttpResponseTest.cc
  9496. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9497. Print usage when no URL is specifed or bad command-line option is
  9498. specified.
  9499. * src/HelpItemFactory.cc
  9500. * src/help_tags.h
  9501. * src/option_processing.cc
  9502. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9503. Removed duplicate log message.
  9504. * src/AbstractCommand.cc (asyncResolveHostname)
  9505. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9506. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9507. Changed -j option's default value from 5 to 1.
  9508. Added new examples using protocol auto detection feature.
  9509. Removed -T, -M usage where it can be omitted.
  9510. * doc/aria2c.1.txt
  9511. * doc/aria2c.1.html
  9512. * doc/aria2c.1.txt
  9513. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9514. Updated command-line usage text, so that it tells users that they
  9515. can specify any number of torrent files and metalink files in
  9516. command-line.
  9517. * src/version_usage.cc
  9518. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9519. Changed the default value of -j option to 1.
  9520. * src/HelpItemFactory.cc
  9521. * src/option_processing.cc
  9522. * src/usage_text.h
  9523. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. Added the ability to reuse connection in FTP and it is enabled by
  9525. default. It can be disabled by --ftp-reuse-connection=false option.
  9526. * src/Command.cc
  9527. * src/DownloadCommand.cc
  9528. * src/FtpDownloadCommand.cc
  9529. * src/FtpDownloadCommand.h
  9530. * src/FtpFinishDownloadCommand.cc
  9531. * src/FtpFinishDownloadCommand.h
  9532. * src/FtpInitiateConnectionCommand.cc
  9533. * src/FtpNegotiationCommand.cc
  9534. * src/FtpNegotiationCommand.h
  9535. * src/HelpItemFactory.cc
  9536. * src/Makefile.am
  9537. * src/Makefile.in
  9538. * src/OptionHandlerFactory.cc
  9539. * src/option_processing.cc
  9540. * src/prefs.h
  9541. * src/usage_text.h
  9542. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9543. Call Command::transitStatus() before calling Command::execute(),
  9544. so that the status change made in execute() is not cleared.
  9545. * src/DownloadEngine.cc
  9546. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9547. Removed forward declaration of SocketCore class.
  9548. * src/HttpDownloadCommand.h
  9549. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9550. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9551. in InitiateConnectionCommandFactory. They should be set only when
  9552. the protocol is HTTP or HTTPS.
  9553. * src/InitiateConnectionCommandFactory.cc
  9554. * src/RequestGroup.cc
  9555. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9556. Fixed infinite loop in checksum checking.
  9557. * src/IteratableChecksumValidator.cc
  9558. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9559. Set _supportsPersistentConnection to true by default.
  9560. * src/Request.cc
  9561. * src/RequestGroup.cc
  9562. * test/HttpRequestTest.cc
  9563. * test/RequestTest.cc
  9564. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9565. Added timeout to socket pool. The default timeout is 15 seconds,
  9566. which is the same value Apache uses.
  9567. * src/DownloadEngine.cc
  9568. * src/DownloadEngine.h
  9569. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9570. Fixed misuse of multimap::find()
  9571. * src/HttpHeader.cc
  9572. * test/HttpHeaderTest.cc
  9573. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9574. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9575. option.
  9576. The asynchronous DNS is not capable of IPv6 yet.
  9577. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9578. least for HTTP download.
  9579. * src/AbstractCommand.cc
  9580. * src/AbstractCommand.h
  9581. * src/AsyncNameResolver.cc
  9582. * src/AsyncNameResolver.h
  9583. * src/DHTEntryPointNameResolveCommand.cc
  9584. * src/DHTEntryPointNameResolveCommand.h
  9585. * src/DownloadEngine.cc
  9586. * src/DownloadEngine.h
  9587. * src/FtpInitiateConnectionCommand.cc
  9588. * src/FtpInitiateConnectionCommand.h
  9589. * src/HelpItemFactory.cc
  9590. * src/HttpInitiateConnectionCommand.cc
  9591. * src/HttpInitiateConnectionCommand.h
  9592. * src/InitiateConnectionCommand.cc
  9593. * src/InitiateConnectionCommand.h
  9594. * src/Makefile.am
  9595. * src/Makefile.in
  9596. * src/NameResolver.cc
  9597. * src/NameResolver.h
  9598. * src/OptionHandlerFactory.cc
  9599. * src/SocketCore.cc
  9600. * src/SocketCore.h
  9601. * src/Util.cc
  9602. * src/Util.h
  9603. * src/option_processing.cc
  9604. * src/prefs.h
  9605. * src/usage_text.h
  9606. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Updated man page: --quiet, --header were added.
  9608. --metalink-servers and --enable-http-keep-alive option were updated.
  9609. * doc/aria2c.1
  9610. * doc/aria2c.1.html
  9611. * doc/aria2c.1.txt
  9612. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9613. Enable HTTP keep-alive by default.
  9614. * src/HelpItemFactory.cc
  9615. * src/option_processing.cc
  9616. * src/usage_text.h
  9617. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9618. Disable http keep-alive if the remote server is not HTTP/1.1.
  9619. * src/HttpConnection.cc
  9620. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9621. Receive content body of 302 response so that the connection can be
  9622. reused later when http keep-alive is enabled.
  9623. * src/HttpNullDownloadCommand.cc
  9624. * src/HttpNullDownloadCommand.h
  9625. * src/HttpResponseCommand.cc
  9626. * src/HttpResponseCommand.h
  9627. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9628. const SharedHandle<Request> -> const SharedHandle<Request>&
  9629. * src/FtpDowndloadCommand.cc
  9630. * src/FtpDowndloadCommand.h
  9631. * src/HttpDownloadCommand.cc
  9632. * src/HttpDownloadCommand.h
  9633. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9634. Fixed the bug that the control file(.aria2 file) is not renamed
  9635. according to tryAutoFileRenaming().
  9636. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9637. its control file exist, use them and continue download.
  9638. The old implementation didn't take into account of control file's
  9639. existence, so basically you couldn't continue download of renamed file.
  9640. * src/BtProgressInfoFile.h
  9641. * src/DefaultBtProgressInfoFile.cc
  9642. * src/DefaultBtProgressInfoFile.h
  9643. * src/NullProgressInfoFile.h
  9644. * src/RequestGroup.cc
  9645. * test/DefaultBtProgressInfoFileTest.cc
  9646. * test/MockBtProgressInfoFile.h
  9647. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9648. Change the default value of --metalink-servers option from `5' to `1'.
  9649. * src/HelpItemFactory.cc
  9650. * src/option_processing.cc
  9651. * src/usage_text.h
  9652. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9653. Reimplemented transparent metalink using Accept request header.
  9654. * src/HttpRequest.cc
  9655. * src/HttpRequest.h
  9656. * src/HttpRequestCommand.cc
  9657. * src/Metalink2RequestGroup.cc
  9658. * src/RequestGroup.cc
  9659. * src/RequestGroup.h
  9660. * test/HttpRequestTest.cc
  9661. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9662. Bump up version number to 0.13.2a
  9663. * configure.ac
  9664. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9665. Updated configure.ac using the result of autoscan.
  9666. * configure.ac
  9667. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9668. Fixed compilation error without gcrypt/openssl.
  9669. * src/DownloadCommand.cc
  9670. * src/DownloadCommand.h
  9671. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9672. Reorganized version information so that it can be displayed in a
  9673. standard terminal screen without scrolling.
  9674. Removed http, ftp from Configuration section, because they are always
  9675. enabled.
  9676. * src/FeatureConfig.cc
  9677. * src/FeatureConfig.h
  9678. * src/main.cc
  9679. * src/messageDigest.cc
  9680. * src/messageDigest.h
  9681. * src/version_usage.cc
  9682. * test/FeatureConfigTest.cc
  9683. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Masked user ID in log.
  9685. * src/FtpConnection.cc (sendUser)
  9686. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9687. Removed query part from filename in HTTP download. The query part means
  9688. the substring after "?" in URL. Firefox seems do the same thing.
  9689. A query part is sometimes very long and not suitable to filename,
  9690. so I think it is better to remove it from filename.
  9691. * src/HttpRequest.cc
  9692. * src/HttpRequest.h
  9693. * src/Request.cc
  9694. * src/Request.h
  9695. * test/HttpRequestTest.cc
  9696. * test/RequestTest.cc
  9697. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9698. Rewritten Exception class. Throw exception object, not its pointer and
  9699. catch by reference, so that remove problematic delete operator for
  9700. catched exception.
  9701. * src/Exception.cc
  9702. * src/Exception.h
  9703. * test/ExceptionTest.cc
  9704. * src/*: All files throwing/catching exception.
  9705. * test/*: All files throwing/catching exception.
  9706. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9707. Now auto protocol detection is enabled without -Z option.
  9708. But there is a important difference between with/without -Z optoin.
  9709. For example, if you type:
  9710. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9711. then, aria2 interprets there are 3 request groups:
  9712. (1) http://host/file, http://mirror/file <-- multi-source download
  9713. (2) file1.torrent
  9714. (3) file2.metalink
  9715. On the other hand, if you invoke above command with -Z option, it is
  9716. interpreted as 4 request groups:
  9717. (1) http://host/file
  9718. (2) file1.torrent
  9719. (3) file2.metalink
  9720. (4) http://mirror/file
  9721. I think usually user don't mix multi-source URLs and torrent files, so
  9722. there is no big problem here.
  9723. * src/main.cc
  9724. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9725. Fixed the bug that causes segmentaion fault when reading XML containing
  9726. unescapsed character like '&'.
  9727. Also a modification was made which avoids adding unnecessary
  9728. characters stack and appending unused string.
  9729. * src/ExpatMetalinkProcessor.cc
  9730. * src/FileMetalinkParserState.h
  9731. * src/FilesMetalinkParserState.h
  9732. * src/FinMetalinkParserState.h
  9733. * src/HashMetalinkParserState.h
  9734. * src/InitialMetalinkParserState.h
  9735. * src/LanguageMetalinkParserState.h
  9736. * src/MetalinkMetalinkParserState.h
  9737. * src/MetalinkParserState.h
  9738. * src/MetalinkParserStateMachine.cc
  9739. * src/MetalinkParserStateMachine.h
  9740. * src/OSMetalinkParserState.h
  9741. * src/PieceHashMetalinkParserState.h
  9742. * src/PiecesMetalinkParserState.h
  9743. * src/ResourcesMetalinkParserState.h
  9744. * src/SizeMetalinkParserState.h
  9745. * src/SkipTagMetalinkParserState.h
  9746. * src/URLMetalinkParserState.h
  9747. * src/VerificationMetalinkParserState.h
  9748. * src/VersionMetalinkParserState.h
  9749. * src/XML2SAXMetalinkProcessor.cc
  9750. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9751. Added StringFormat class, which internally calls vasprintf.
  9752. operator<< is defined for this class, so it can be used with iostream
  9753. classes nicely. SimpleLogger and following functions are rewritten
  9754. using StringFormat class.
  9755. Besides, now Logger class's methods are non-const, many classes
  9756. that has a const Logger* as a member variable are modified to remove
  9757. const qualifier from the variable declaration.
  9758. * src/HelpItemFactory.cc
  9759. * src/Request.cc
  9760. * src/SimpleLogger.cc
  9761. * src/StringFormat.cc
  9762. * src/StringFormat.h
  9763. * src/Util.cc
  9764. * src/option_processing.cc
  9765. * src/version_usage.cc
  9766. * test/StringFormatTest.cc
  9767. * src/*.h: The classes that has const Logger* as a member variable.
  9768. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  9770. failed. Also fixed memory link when exception is thrown there.
  9771. * src/main.cc (AccRequestGroup)
  9772. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9773. Added build-in "Accept-Features" support. For now only "metalink" is
  9774. used in this header field.
  9775. This "metalink" value is removed from the list when connecting URLs
  9776. fed by metalink file to avoid loop in "transparent" metlaink.
  9777. * src/HttpRequest.cc
  9778. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9779. header is also held in this variable. Also renamed setUserHeaders as
  9780. addHeader and it was rewritten to add header not just to clear the old
  9781. value.
  9782. * src/HttpRequestCommand.cc
  9783. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9784. from "Accept-Features" list.
  9785. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9786. default.
  9787. * src/RequestGroup.h
  9788. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9789. * src/a2functional.h: Included <string> because Concat class depends on
  9790. it.
  9791. * test/HttpRequestTest.cc
  9792. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9793. Added comment
  9794. * src/RequestGroup.cc (createNextCommand)
  9795. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9796. Capitalized METHOD_GET and METHOD_HEAD
  9797. * src/Request.cc
  9798. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9799. Added getDownloadResults() method
  9800. * src/RequestGroupMan.cc
  9801. * src/RequestGroupMan.h
  9802. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9803. Fixed the bug that aria2 exits when commands is empty() but
  9804. _routineCommands are not.
  9805. * src/DownloadEngine.cc
  9806. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9807. Use the default value pulled from Option object in HelpItemFactory.
  9808. except options whose defualt value is embedded in a usage text.
  9809. * src/HelpItemFactory.cc
  9810. * src/HelpItemFactory.h
  9811. * src/option_processing.cc
  9812. * src/version_usage.cc
  9813. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9814. Added --quiet option to make aria2 quiet (no console output).
  9815. --quiet option is tagged with ADVANCED.
  9816. * src/HelpItemFactory.cc
  9817. * src/LogFactory.cc
  9818. * src/LogFactory.h
  9819. * src/MultiUrlRequestInfo.cc
  9820. * src/MultiUrlRequestInfo.h
  9821. * src/NullStatCalc.h: New class. This class prints nothing.
  9822. * src/OptionHandlerFactory.cc
  9823. * src/main.cc
  9824. * src/option_processing.cc
  9825. * src/prefs.h
  9826. * src/usage_text.h
  9827. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9828. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9829. * src/HelpItemFactory.cc (createHelpItems):
  9830. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9831. Fixed compilation error in ExpatMetalinkProcessor.cc
  9832. * src/ExpatMetalinkProcessor.cc
  9833. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9834. Reuse socket if the origin server supports HTTP keep-alive and
  9835. --enable-http-keep-alive or --enable-http-pipelining is given.
  9836. The current implementation doesn't reuse the connections established
  9837. against proxy server.
  9838. * src/AbstractCommand.cc
  9839. * src/DownloadEngine.cc
  9840. * src/DownloadEngine.h
  9841. * src/HttpDownloadCommand.cc
  9842. * src/HttpInitiateConnectionCommand.cc
  9843. * src/HttpResponseCommand.cc
  9844. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Rewritten HTTP keep-alive and pipelining routine.
  9846. * src/AbstractCommand.cc
  9847. * src/HttpConnection.cc
  9848. * src/HttpDownloadCommand.cc
  9849. * src/HttpRequest.cc
  9850. * src/HttpRequestCommand.cc
  9851. * src/HttpResponseCommand.cc
  9852. * src/Request.cc
  9853. * src/Request.h
  9854. * src/RequestGroup.cc
  9855. * test/HttpRequestTest.cc
  9856. * test/HttpResponseTest.cc
  9857. * test/RequestTest.cc
  9858. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. Added missing setUserHeaders call
  9860. * src/HttpRequestCommand.cc
  9861. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9862. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9863. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9864. waste of time because it is more likey false.
  9865. * src/FileAllocationDispatcherCommand.cc (execute)
  9866. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9867. Now HTTP status and version are a member variable of HttpHeader.
  9868. HTTP status is processed as a string, not integer.
  9869. * src/AbstractProxyResponseCommand.cc
  9870. * src/HttpConnection.cc
  9871. * src/HttpHeader.cc
  9872. * src/HttpHeader.h
  9873. * src/HttpHeaderProcessor.cc
  9874. * src/HttpHeaderProcessor.h
  9875. * src/HttpResponse.cc
  9876. * src/HttpResponse.h
  9877. * test/HttpHeaderProcessorTest.cc
  9878. * test/HttpResponseTest.cc
  9879. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. Added --header option. You can specify any number of additional HTTP headers
  9881. like:
  9882. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9883. Unlike other commad-line option, you can use --header option multiple times.
  9884. * src/HelpItemFactory.cc
  9885. * src/HttpRequest.{cc, h}
  9886. * src/HttpRequestCommand.cc
  9887. * src/OptionHandlerFactory.cc
  9888. * src/OptionHandlerImpl.h
  9889. * src/option_processing.cc
  9890. * src/prefs.h
  9891. * src/usage_text.h
  9892. * test/HttpRequestTest.cc (testUserHeaders)
  9893. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9894. Eliminates the time lag between sequential downloads and commands in
  9895. the same RequestGroup.
  9896. In old implementation, aria2 occasionally waits 1 seconds before
  9897. executing next command or RequestGroup.
  9898. This is really a waste of time, and new implementation eliminates
  9899. this unnecessary time lag.
  9900. * src/AbstractCommand.cc
  9901. * src/AutoSaveCommand.cc
  9902. * src/CheckIntegrityCommand.cc
  9903. * src/Command.{cc, h}
  9904. * src/DownloadEngine.{cc, h}
  9905. * src/DownloadEngineFactory.cc
  9906. * src/FileAllocationCommand.cc
  9907. * src/FileAllocationDispatcherCommand.cc
  9908. * src/FillRequestGroupCommand.cc
  9909. * src/FtpInitiateConnectionCommand.cc
  9910. * src/HaveEraseCommand.cc
  9911. * src/HttpInitiateConnectionCommand.cc
  9912. * src/HttpResponseCommand.cc
  9913. * src/RealtimeCommand.cc
  9914. * src/RequestGroup.cc
  9915. * src/RequestGroupMan.cc
  9916. * src/StreamFileAllocationEntry.cc
  9917. * src/TimeBasedCommand.{cc, h}
  9918. * src/TimedHaltCommand.cc
  9919. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9920. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9921. keyword explicit and SharedHandle's default constructor initializes
  9922. its internal obj to null, old implementation initializes it using
  9923. obj's default constructor.
  9924. To assign null, write SharedHandle<T> x(...); x.reset();
  9925. TODO: test/SharedHandleTest.cc needs more tests.
  9926. * src/SharedHandle.h
  9927. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9928. Fixed type in man page.
  9929. * doc/aria2c.1.txt
  9930. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9932. * src/SimpleLogger.{cc, h}
  9933. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9934. Implemented auto protocol detection.
  9935. Now you can do:
  9936. aria2c -Z http://host/file file1.torrent file2.metalink
  9937. (Note: -Z option is required for auto protcol detection.)
  9938. Then aria2c downloads 3 files simultaneously:
  9939. 1. http://host/file
  9940. 2. file1.torrent <-- read local torrent file
  9941. 3. file2.metalink <-- read local Metalink file.
  9942. Same thing goes with -i option. Assume your uris.txt contans:
  9943. http://host/file
  9944. file1.torrent
  9945. file2.metalink
  9946. Then you can do: aria2c -i uris.txt
  9947. (Note: -Z option is not needed if -i option is given.)
  9948. * src/main.cc
  9949. * src/ProtocolDetector.{cc, h}
  9950. * test/ProtocolDetectorTest.cc
  9951. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9952. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9953. installed
  9954. * src/ARC4Encryptor.h
  9955. * src/ARC4Decryptor.h
  9956. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9957. Renamed argument from 'errno' to 'err', since errno is confused with
  9958. errno defined in errno.h.
  9959. * src/LibgcryptARC4Decryptor.h
  9960. * src/LibgcryptARC4Context.h
  9961. * src/LibgcryptDHKeyExchange.h
  9962. * src/LibgcryptARC4Encryptor.h
  9963. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9964. Rewritten choking algorithm.
  9965. * src/PeerChokeCommand.{cc, h}
  9966. * src/BtInterestedMessage.cc
  9967. * src/PeerSessionResource.{cc, h}
  9968. * src/DefaultPeerStorage.{cc, h}
  9969. * src/BtNotInterestedMessage.cc
  9970. * src/DefaultBtMessageDispatcher.{cc, h}
  9971. * src/BtMessageDispatcher.h
  9972. * src/Peer.{cc, h}
  9973. * src/BtLeecherStateChoke.{cc, h}
  9974. * src/BtSetup.cc
  9975. * src/BtSeederStateChoke.{cc, h}
  9976. * src/PeerStorage.h
  9977. * test/MockPeerStorage.h
  9978. * test/MockBtMessageDispatcher.h
  9979. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9980. Fixed compilation error on x84-64 platform.
  9981. * src/AuthConfig.cc: Included ostream.
  9982. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9983. Rewritten getBasename() and getDirname(), without standard library
  9984. basename(), dirname().
  9985. * src/File.cc
  9986. * test/FileTest.cc
  9987. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. Added Simplified Chinese translation. Also updated the following
  9989. translations: Polish, Dutch, German. Great thanks to all translators.
  9990. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9991. Suppress content-range error when 'Content-Range' response header
  9992. doesn't contains bytes-unit specifier 'bytes'
  9993. * src/HttpHeader.cc (getRange)
  9994. * test/HttpHeaderTest.cc
  9995. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9996. Fixed compilation error with g++-4.3
  9997. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9998. Added missing include files for MinGW
  9999. * test/HttpHeaderProcessorTest.cc
  10000. * test/DHTRoutingTableSerializerTest.cc
  10001. * test/DHTRoutingTableDeserializerTest.cc
  10002. * test/UriListParserTest.cc
  10003. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10004. Now download line is printed nicely with no garbage at the end of
  10005. line. I use ioctl to get the columns of terminal.
  10006. If stdout is redirected to another device, instead of carriage return,
  10007. end of line '\n' character is used. This is feature request#1909659
  10008. * src/ConsoleStatCalc.cc (calculateStat)
  10009. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10010. Included a2time.h
  10011. * src/DHTMessageDispatcher.h
  10012. * src/DHTMessageEntry.h
  10013. * src/DHTReplaceNodeTask.h
  10014. * src/DHTMessageTracker.h
  10015. * src/Util.h
  10016. * src/CookieBox.h
  10017. * src/SocketCore.h
  10018. * src/DefaultBtMessageDispatcher.h
  10019. * src/SocketCore.cc
  10020. * src/Util.cc
  10021. * src/DHTPingTask.h
  10022. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. Fixed high memory footprint when DHT is enabled.
  10024. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10025. queued than it is processed and the queue is getting longer. As a
  10026. consequence, momory usage is increased.
  10027. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10028. replacement cache in DHTBucket which is described in Kademlia paper.
  10029. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10030. DHTReplaceNodeTask.
  10031. * src/DHTBucket.{h, cc}
  10032. (cacheNode): New function.
  10033. (getCachedNodes): New function.
  10034. (dropNode): Push back cached node to _nodes.
  10035. * test/DHTBucketTest.cc
  10036. (testCacheNode): New test
  10037. (testDropNode): New test
  10038. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10039. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10040. the unused 4KB memory when ssl is not used.
  10041. * src/SocketCore.cc
  10042. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10043. Added summary log for peer announce storage.
  10044. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10045. Removed cast
  10046. * src/DefaultPeerStorage.cc (addPeer)
  10047. Log exception message
  10048. * src/DHTMessageTracker.cc (handleTimeout)
  10049. Fixed casting
  10050. * test/HttpRequestTest.cc
  10051. * test/MetalinkProcessorTest.cc
  10052. * test/PieceTest.cc
  10053. * test/MetalinkEntryTest.cc
  10054. * test/SequenceTest.cc
  10055. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10056. * src/ParameterizedStringParser.cc (createLoop):
  10057. Removed unused variable sstep.
  10058. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10059. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10060. * src/Util.{h, cc}
  10061. (parseUInt): New function.
  10062. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10063. The actual range is uint32_t.
  10064. * test/UtilTest.cc
  10065. * src/ParameterizedStringParser.cc:
  10066. Use Util::parseUInt() for loop variables.
  10067. * test/ParameterizedStringParserTest.cc
  10068. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10069. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10070. Rewritten the functions for binding port.
  10071. * src/DHTConnectionImpl.{h, cc}
  10072. * src/PeerListenCommand.{h, cc}
  10073. * src/DHTSetup.cc
  10074. * src/BtSetup.cc
  10075. * test/DHTConnectionImplTest.cc
  10076. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10077. type cleanup for allmost all remaining files.
  10078. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Type clarification
  10080. * src/PeerSessionResource.{h, cc}
  10081. * src/DefaultPieceStorage.{h, cc}
  10082. * src/Peer.{h, cc}
  10083. * test/PeerSessionResourceTest.cc
  10084. Use div function
  10085. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10086. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10087. Type clarification
  10088. * src/DefaultPeerStorage.{h, cc}
  10089. * test/DefaultPeerStorageTest.cc
  10090. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10091. Type clarification: size_t for length or size, uint64_t for file
  10092. length, off_t for file offset.
  10093. * src/DefaultBtProgressInfoFile.cc
  10094. * src/DefaultBtContext.{h, cc}
  10095. * src/DefaultBtInteractive.cc
  10096. * src/DownloadCommand.{h, cc}
  10097. * src/IteratableChunkChecksumValidator.{h, cc}
  10098. * src/SegmentMan.{h, cc}
  10099. * src/SingleFileDownloadContext.{h, cc}
  10100. * src/IteratableChecksumValidator.{h, cc}
  10101. * src/BtContext.h
  10102. * src/IteratableValidator.h
  10103. * src/DownloadContext.h
  10104. * test/SingleFileDownloadContextTest.cc
  10105. * test/DefaultBtContextTest.cc
  10106. * test/MockBtContext.h
  10107. * test/Metalink2RequestGroupTest.cc
  10108. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10109. Type clarification: size_t for length or size, uint64_t for file
  10110. length, off_t for file offset.
  10111. * src/PiecedSegment.cc
  10112. * src/GrowSegment.h
  10113. * src/DefaultBtRequestFactory.h
  10114. * src/DefaultBtProgressInfoFile.cc
  10115. * src/UnknownLengthPieceStorage.h
  10116. * src/DefaultPieceStorage.cc
  10117. * src/UnknownLengthPieceStorage.cc
  10118. * src/DefaultBtInteractive.cc
  10119. * src/GrowSegment.cc
  10120. * src/BitfieldMan.h
  10121. * src/DownloadCommand.cc
  10122. * src/BtRequestFactory.h
  10123. * src/PiecedSegment.h
  10124. * src/DefaultPieceStorage.h
  10125. * src/Piece.cc
  10126. * src/DefaultBtRequestFactory.cc
  10127. * src/PieceStorage.h
  10128. * src/Segment.h
  10129. * src/Piece.h
  10130. * src/BitfieldMan.cc
  10131. * src/Util.cc
  10132. * test/DefaultBtProgressInfoFileTest.cc
  10133. * test/DefaultPieceStorageTest.cc
  10134. * test/MockPieceStorage.h
  10135. * test/BtRequestMessageTest.cc
  10136. * test/DefaultBtMessageDispatcherTest.cc
  10137. * test/BitfieldManTest.cc
  10138. * test/GrowSegmentTest.cc
  10139. * test/PieceTest.cc
  10140. * test/SegmentTest.cc
  10141. * test/SegmentManTest.cc
  10142. * test/DefaultBtRequestFactoryTest.cc
  10143. * test/MockBtRequestFactory.h
  10144. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10145. Fixed compilation error with --disable-nls
  10146. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10147. in gettext.h causes the problem.
  10148. * src/common.h
  10149. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10150. Removed subPiece related functions.
  10151. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10152. * src/DefaultPieceStorage.{h, cc}
  10153. * test/PieceTest.cc
  10154. * test/DefaultPieceStorageTest.cc
  10155. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10156. Use unsigned char for data store.
  10157. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10158. Bump up version number to 0.13.0+1
  10159. * configure.ac
  10160. * Release 0.13.0+1
  10161. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10162. Changed inactive connection timeout to 120.
  10163. To accept more mulually interested peers, disconnect peer when there
  10164. is no interest between us after certain time passed.
  10165. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10166. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10167. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10168. when compiled with async DNS support.
  10169. * src/DownloadEngine.cc
  10170. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10171. value '10' will be a little bit short when some DNS servers are
  10172. offline and several DNS servers are tried. It should be configured
  10173. by command-line option.
  10174. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10175. Merged Ross's mingw patch.
  10176. * src/DHTRoutingTableDeserializer.cc
  10177. * src/DHTRoutingTableSerializer.cc
  10178. * src/Platform.{h, cc}
  10179. * src/timegm.h
  10180. * src/gettimeofday.h
  10181. * src/getaddrinfo.h
  10182. * src/SocketCore.h
  10183. * src/common.h
  10184. * src/inet_aton.h
  10185. * src/DownloadEngine.h
  10186. * src/gai_strerror.h
  10187. * src/a2netcompat.h
  10188. * configure.ac
  10189. * configure
  10190. * aclocal.m4
  10191. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10192. Included missing iostream.
  10193. * test/AllTest.cc
  10194. * test/BtDependencyTest.cc
  10195. * test/BtExtendedMessageTest.cc
  10196. * test/DHTConnectionImplTest.cc
  10197. * test/DHTMessageFactoryImplTest.cc
  10198. * test/DHTMessageTrackerEntryTest.cc
  10199. * test/DHTNodeTest.cc
  10200. * test/DHTRoutingTableSerializerTest.cc
  10201. * test/DefaultBtAnnounceTest.cc
  10202. * test/DefaultBtContextTest.cc
  10203. * test/DefaultBtMessageFactoryTest.cc
  10204. * test/DefaultExtensionMessageFactoryTest.cc
  10205. * test/HandshakeExtensionMessageTest.cc
  10206. * test/HttpResponseTest.cc
  10207. * test/MetalinkProcessorTest.cc
  10208. * test/MultiFileAllocationIteratorTest.cc
  10209. * test/SocketCoreTest.cc
  10210. * test/UTPexExtensionMessageTest.cc
  10211. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10212. Reorganized includes.
  10213. * src/NameResolver.cc
  10214. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10215. Fixed compilation error without ares/c-ares
  10216. * src/NameResolver.h:
  10217. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10218. Added a test for large file.
  10219. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10220. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10221. Fixed the bug that file size is ignored if size > INT32_MAX
  10222. * src/SizeMetalinkParserState.cc (endElement):
  10223. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10224. Bump up version number to 0.13.0
  10225. * configure.ac
  10226. * Release 0.13.0
  10227. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10228. Updated Makfefile.am to make 'make dist' work.
  10229. Now packaged filename is aria2c-VERSION.tar.bz2.
  10230. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10231. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10232. Large file support is now configured by configure script.
  10233. * configure.ac
  10234. Removed unsused source files
  10235. * src/
  10236. * test/
  10237. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10238. Peer.h and BtContext.h respectively.
  10239. * src/Peer.h
  10240. * src/BtContext.h
  10241. Updated translations.
  10242. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10243. translations. Great thanks to all translators!;)
  10244. * po/*.{po, gmo}
  10245. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10246. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10247. statically declared sha1 MessageDigestContext.
  10248. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10249. initialization of short-lived MessageDigestContext.
  10250. * src/MessageDigestHelper.{h, cc}
  10251. * src/main.cc
  10252. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10253. the initialization of MessageDigestContext every time in validating
  10254. chunk checksum.
  10255. * src/DownloadCommand.{h, cc}
  10256. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10257. Add a file descriptor which connected to fast peer(latency<1500) to
  10258. select(). This change reduced CPU load.
  10259. * src/PeerInteractionCommand.cc
  10260. * src/DefaultBtInteractive.{h, cc}
  10261. * src/BtInteractive.h
  10262. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10263. Fixed the previous insufficient fix for possible busy loop.
  10264. * src/MSEHandshake.cc (identifyHandshakeType)
  10265. Removed unused functions.
  10266. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10267. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10268. Fixed possible busy loop if first 20 bytes are not received for a few
  10269. minutes.
  10270. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10271. * src/ReceiverMSEHandshakeCommand.cc
  10272. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10273. Fixed compilation error
  10274. * src/ExpatMetalinkProcessor.cc
  10275. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10276. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10277. * src/DHTBucket.cc
  10278. Removed unnecessary cast.
  10279. * src/HandshakeExtensionMessage.cc
  10280. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10281. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10282. is missing.
  10283. * src/OptionHandlerFactory.cc
  10284. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10285. Fixed the bug that HAVE message is not sent for a piece they are
  10286. downloaded fom http/ftp server before any BitTorrent handshake is done
  10287. with peers.
  10288. * src/DefaultBtInteractive.cc
  10289. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10290. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10291. * src/Makefile.am
  10292. * src/Makefile.in
  10293. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10294. Updated README. Added html version of README and man page.
  10295. * README
  10296. * README.html
  10297. * readme2html: Shell script to generate README.html from README using
  10298. asciidoc.
  10299. * doc/aria2c.1.html
  10300. * doc/makeman: Added the line to generate aria2c.1.html
  10301. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10302. Fixed offset calculation.
  10303. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10304. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10305. Rewritten itos and uitos using template. llitos and ullitos are
  10306. replaced with itos and uitos respectively.
  10307. * src/Util.{h, cc}
  10308. * test/UtilTest.cc
  10309. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10310. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10311. of the number of bytes required for storing public key and shared
  10312. secret.
  10313. * src/LibgcryptDHKeyExchange.h
  10314. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10315. * src/MSEHandshake.cc
  10316. * test/DHKeyExchangeTest.cc
  10317. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10318. Removed since they are not used.
  10319. * src/Xml2MetalinkProcessor.{h, cc}
  10320. * src/Socket.cc
  10321. * src/SegmentSplitter.{h, cc}
  10322. * test/Xml2MetalinkProcessorTest.cc
  10323. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. Fixed the bug that prevents aria2 from stopping other than by pressing
  10325. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10326. option. aria2 doesn't stop even after --seed-time is satisfied and
  10327. continues to output blank lines in the console.
  10328. * src/ReceiverMSEHandshakeCommand.cc
  10329. * src/PeerReceiveHandshakeCommand.cc
  10330. * src/PeerListenCommand.cc
  10331. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10332. Bump up version number to 0.13.0rc
  10333. * configure.ac
  10334. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10335. Updated man page and some usage text.
  10336. * doc/aria2c.1.txt
  10337. * src/usage_text.h
  10338. * po/*.{po, gmo}
  10339. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10340. Updated translations. Added Finnish and Hebrew translations.
  10341. Great thanks to all translators!
  10342. * po/*.{po, gmo}
  10343. * po/LINGUAS
  10344. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10345. Log more detailed information about each message.
  10346. * src/DHTQueryMessage.{h, cc}
  10347. * src/DHTGetPeersMessage.{h, cc}
  10348. * src/DHTFindNodeReplyMessage.{h, cc}
  10349. * src/DHTGetPeersReplyMessage.{h, cc}
  10350. * src/DHTAnnouncePeerMessage.{h, cc}
  10351. * src/DHTResponseMessage.{h, cc}
  10352. * src/DHTFindNodeMessage.{h, cc}
  10353. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10354. Use constants defined in prefs.h
  10355. * src/option_processing.cc
  10356. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10357. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10358. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10359. Make room for future enchancements for IPv6 addresses.
  10360. Bump up version number of dht.dat file format to 2.
  10361. Not compatible with previous version.
  10362. * src/DHTRoutingTableSerializer.cc
  10363. * src/DHTRoutingTableDeserializer.cc
  10364. * test/DHTRoutingTableSerializerTest.cc
  10365. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10366. Added handling for the return values from
  10367. PeerMessageUtil::createcompact().
  10368. * src/DefaultBtContext.cc (computeFastSet):
  10369. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10370. Fixed abort when peer's ip address is IPv4-mapped address.
  10371. * src/DefaultBtContext.cc (computeFastSet)
  10372. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10373. cannot handle IPv4-mapped addresses.
  10374. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10375. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10376. Proper return value handling for OpenSSL functions.
  10377. * src/LibsslDHKeyExchange.h
  10378. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10379. Random bytes generation using libgcrypt and OpenSSL.
  10380. * src/DHTUtil.{h, cc}
  10381. * test/DHTUtilTest.cc
  10382. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10383. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10384. received.
  10385. * src/DHTMessageReceiver.cc (receiveMessage)
  10386. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10387. Fixed the bug that a return code is always 0. BUG#1897704
  10388. If error occurred during the download or there exist unfinished
  10389. downloads, aria2 returns with code 1.
  10390. * src/RequestGroupMan.{h, cc}
  10391. * src/MultiUrlRequestInfo.{h, cc}
  10392. * src/main.cc
  10393. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10394. IPv6 support for SocketCore class.
  10395. TODO: In SocketCore::establishConnection(), this is insufficient to
  10396. determin the failure of connect() here because the socket is
  10397. non-blocking state. The next addresses should be tried after select().
  10398. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10399. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10400. instead which address family independent.
  10401. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10402. information in a compact peer format which is for IPv4 only.
  10403. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10404. this is a spec of BitTorrent protocol.
  10405. * src/SocketCore.{h, cc}
  10406. * src/PeerMessageUtil.cc
  10407. * test/SocketCoreTest.cc
  10408. * test/PeerMessageUtilTest.cc
  10409. * test/DHTConnectionImplTest.cc
  10410. Handle IPv4-mapped addresses.
  10411. * src/DHTNode.cc: Now identity is determined by node id.
  10412. * src/DHTMessageTrackerEntry.cc
  10413. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10414. should handle it.
  10415. * src/DHTRoutingTableDeserializer.cc
  10416. * src/DHTMessageFactoryImpl.cc
  10417. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10418. Change the unit of --stop option from a minute to a second.
  10419. * src/usage_text.h
  10420. * src/DownloadEngineFactory.cc
  10421. * src/OptionHandlerFactory.cc
  10422. * src/message.h
  10423. * src/TimedHaltCommand.cc
  10424. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10425. Make listening socket non-block mode.
  10426. * src/FtpConnection.cc
  10427. * src/FtpNegotiationCommand.{h, cc}
  10428. * src/PeerListenCommand.cc
  10429. Fixed the bug that cause slow ftp negotiation.
  10430. * src/FtpNegotiationCommand.{h, cc}
  10431. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10432. Added basic tag to --enable-dht, --dht-listen-port option.
  10433. * src/HelpItemFactory.cc (createHelpItems)
  10434. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10435. Updated text.
  10436. * src/usage_text.h
  10437. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10439. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10440. Determin _threadtholdSpeed in each constructor for
  10441. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10442. * src/ActivePeerConnectionCommand.{h, cc}
  10443. * src/PeerReceiveHandshakeCommand.{h, cc}
  10444. * src/BtSetup.cc
  10445. * src/BtConstants.h
  10446. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10447. Added --bt-min-crypto-level and --bt-require-crypto options.
  10448. * src/OptionHandlerFactory.cc
  10449. * src/MSEHandshake.cc
  10450. * src/HelpItemFactory.cc
  10451. * src/option_processing.cc
  10452. * src/ReceiverMSEHandshakeCommand.cc
  10453. * src/prefs.h
  10454. * src/DefaultBtAnnounce.cc
  10455. * src/InitiatorMSEHandshakeCommand.cc
  10456. * src/usage_text.h
  10457. * test/MSEHandshakeTest.cc
  10458. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10459. Bump version number to 0.13.0b
  10460. * configure.ac
  10461. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10462. Updated doc.
  10463. * src/MessageDigestHelper.h:
  10464. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10465. Use raw message digest as a token instead of its hexadecimal
  10466. representation.
  10467. * src/DHTTokenTracker.cc (generateToken)
  10468. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10469. Added Message Stream Encryption(MSE) support.
  10470. Currently, aria2 accepts incoming connections with Obfuscation Header
  10471. and legacy BitTorrent Header and establishes connections with
  10472. Obfuscation Header first and if failed then retry with legacy
  10473. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10474. choose ARC4. The new option to change the default behavior is planned.
  10475. For tracker extension, "supportcrypto=1" is added statically.
  10476. * src/PeerInitiateConnectionCommand.{h, cc}
  10477. * src/PeerConnection.{h, cc}
  10478. * src/HandleRegistry.h
  10479. * src/SocketCore.h
  10480. * src/PeerReceiveHandshakeCommand.{h, cc}
  10481. * src/BtRegistry.{h, cc}
  10482. * src/PeerListenCommand.cc
  10483. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10484. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10485. * src/MSEHandshake.{h, cc}
  10486. * src/ARC4Encryptor.h
  10487. * src/ARC4Decryptor.h
  10488. * src/LibgcryptARC4Encryptor.h
  10489. * src/LibgcryptARC4Decryptor.h
  10490. * src/LibgcryptARC4Context.h
  10491. * src/LibsslARC4Encryptor.h
  10492. * src/LibsslARC4Decryptor.h
  10493. * src/LibsslARC4Context.h
  10494. * src/DHKeyExchange.h
  10495. * src/LibgcryptDHKeyExchange.h
  10496. * src/LibsslDHKeyExchange.h
  10497. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10498. * test/DefaultBtAnnounceTest.cc
  10499. * test/ARC4Test.cc
  10500. * test/DHKeyExchangeTest.cc
  10501. Removed prepareForRetry() because it is not used.
  10502. * src/PeerAbstractCommand.{h, cc}
  10503. * src/PeerInteractionCommand.{h, cc}
  10504. * src/PeerInitiateConnectionCommand.{h, cc}
  10505. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10506. Added the ability to load nodes from torrent file. These nodes are
  10507. added to the routing table when downloading that torrent.
  10508. * src/BtContext.h
  10509. * src/DefaultBtContext.{h, cc}
  10510. * src/DHTSetup.cc
  10511. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10512. hostname and port pair, and resolves all of them.
  10513. * src/NameResolver.{h, cc}: Added reset().
  10514. * src/RequestGroup.cc
  10515. * test/DefaultBtContextTest.cc
  10516. * test/MockBtContext.h
  10517. Removed assert() from DefaultBtContext and throw exception instead.
  10518. * src/DefaultBtContext.cc
  10519. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10520. Fixed segmentation fault bug when exiting if dht is disabled.
  10521. * src/RequestGroup.cc
  10522. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10523. Fixed typo in log message and define the message in message.h
  10524. * src/TimedHaltCommand.cc
  10525. * src/message.h
  10526. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Included RecoverableException.h to fix compilation error.
  10528. * test/DHTMessageFactoryImplTest.cc
  10529. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10530. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10531. * test/DHTPingMessageTest.cc
  10532. * test/DHTGetPeersMessageTest.cc
  10533. * test/DHTFindNodeMessageTest.cc
  10534. * test/DHTAnnouncePeerMessageTest.cc
  10535. * test/MockDHTMessage.h
  10536. * test/MockDHTMessageFactory.h
  10537. * test/MockDHTMessageDispatcher.h: New class.
  10538. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10539. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10540. virtual.
  10541. * src/DHTMessageDispatcher.h
  10542. * src/DHTMessageDispatcherImpl.{h, cc}
  10543. * src/DHTSetup.cc
  10544. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10545. Adding handling of DHT error message. Just log error message and
  10546. throw exception.
  10547. * src/DHTMessageFactoryImpl.cc
  10548. * test/DHTMessageFactoryImplTest.cc
  10549. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10550. Added handling of dynamic cast failure.
  10551. * src/DHTNodeLookupTask.cc
  10552. * src/DHTPeerLookupTask.cc
  10553. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10554. Added the ability to stop aria2 itself when given time has passed
  10555. from start. Use --stop option to specify time in minutes.
  10556. When 0 is given, this feature is disabled.
  10557. * src/OptionHandlerFactory.cc
  10558. * src/TimeBasedCommand.h: Make _interval protected scope.
  10559. * src/HelpItemFactory.cc
  10560. * src/option_processing.cc
  10561. * src/prefs.h
  10562. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10563. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10564. Without this modification, the result list shows "ERR" when aria2 is
  10565. stopped by --stop option. It should be "INPR".
  10566. * src/DownloadEngine.{h, cc}
  10567. * src/DownloadEngineFactory.cc
  10568. * src/usage_text.h
  10569. * src/TimedHaltCommand.{h, cc}: New class.
  10570. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10571. Bootstrap through node added by port message.
  10572. Currently bootstrap is executed if the number of buckets in routing
  10573. table is 1.
  10574. * src/BtPortMessage.{h, cc}
  10575. * src/DefaultBtMessageFactory.{h, cc}
  10576. * src/PeerInteractionCommand.cc
  10577. * test/BtPortMessageTest.cc
  10578. * test/MockDHTTask.h
  10579. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10580. Extract the Peer class's member variables, which are only needed after
  10581. PeerInteractionCommand, into PeerSessionResource class.
  10582. This class is instantiated in PeerInteractionCommand class's ctor and
  10583. released in its dtor.
  10584. This will make Peer class lightweight and uses less memory for peers
  10585. which are not connected and wait in the queue.
  10586. * src/PeerChokeCommand.cc
  10587. * src/PeerSessionResource.{h, cc}
  10588. * src/PeerInteractionCommand.cc
  10589. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10590. * src/DefaultBtInteractive.cc
  10591. * src/BtPieceMessage.cc
  10592. * src/BtInterestedMessage.cc
  10593. * src/BtUnchokeMessage.cc
  10594. * src/DefaultPeerStorage.{h, cc}
  10595. * src/PeerInitiateConnectionCommand.cc
  10596. * src/ActivePeerConnectionCommand.cc
  10597. * src/BtNotInterestedMessage.cc
  10598. * src/DefaultBtMessageDispatcher.cc
  10599. * src/BtChokeMessage.cc
  10600. * src/BtRequestMessage.cc
  10601. * src/Peer.{h, cc}
  10602. * src/BtRegistry.h
  10603. * src/TrackerWatcherCommand.cc
  10604. * src/PeerReceiveHandshakeCommand.cc
  10605. * test/BtExtendedMessageTest.cc
  10606. * test/BtAllowedFastMessageTest.cc
  10607. * test/BtCancelMessageTest.cc
  10608. * test/DefaultPieceStorageTest.cc
  10609. * test/BtBitfieldMessageTest.cc
  10610. * test/BtHaveMessageTest.cc
  10611. * test/BtNotInterestedMessageTest.cc
  10612. * test/BtRequestMessageTest.cc
  10613. * test/PeerSessionResourceTest.cc
  10614. * test/DefaultBtMessageDispatcherTest.cc
  10615. * test/PeerTest.cc
  10616. * test/BtInterestedMessageTest.cc
  10617. * test/BtRejectMessageTest.cc
  10618. * test/BtChokeMessageTest.cc
  10619. * test/DefaultPeerStorageTest.cc
  10620. * test/BtHaveNoneMessageTest.cc
  10621. * test/BtHaveAllMessageTest.cc
  10622. * test/DefaultExtensionMessageFactoryTest.cc
  10623. * test/BtUnchokeMessageTest.cc
  10624. * test/DefaultBtMessageFactoryTest.cc
  10625. * test/HandshakeExtensionMessageTest.cc
  10626. * test/UTPexExtensionMessageTest.cc
  10627. * test/DefaultBtRequestFactoryTest.cc
  10628. * test/BtPieceMessageTest.cc
  10629. Removed typedef PeerStats.
  10630. * src/PeerStat.h
  10631. * src/SegmentMan.cc
  10632. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10633. Added std namespace to copy, remove_copy, back_inserter,
  10634. front_inserter.
  10635. * src/RequestGroupMan.cc
  10636. * src/DefaultPieceStorage.cc
  10637. * src/StreamFileAllocationEntry.cc
  10638. * src/BtFileAllocationEntry.cc
  10639. * src/RequestGroup.cc
  10640. * src/MetalinkEntry.cc
  10641. * src/DelegatingPeerListProcessor.cc
  10642. * src/DefaultBtRequestFactory.cc
  10643. * src/DefaultBtMessageDispatcher.cc
  10644. * src/version_usage.cc: Included <algorithm>
  10645. * src/main.cc
  10646. * src/MetalinkParserController.cc
  10647. * src/DefaultBtContext.cc
  10648. * src/DownloadEngineFactory.cc
  10649. * src/a2algo.h
  10650. Removed.
  10651. * test/StreamUriListParserTest.cc
  10652. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10653. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10654. ActivePeerConnectionCommand when it is given and
  10655. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10656. * src/ActivePeerConnectionCommand.{h, cc}
  10657. * src/BtSetup.cc
  10658. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10659. Only add socket to DownloadEngine's select routine when peer or
  10660. localhost is unchoked and interested. This lowers CPU usage a
  10661. little bit.
  10662. * src/PeerInteractionCommand.cc
  10663. * src/PeerAbstractCommand.{h, cc}
  10664. * src/BtInteractive.h
  10665. * src/DefaultBtInteractive.{h, cc}
  10666. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10667. Revert previous change because get_peers message is needed for
  10668. announce_peer anyway.
  10669. * src/DHTGetPeersCommand.cc
  10670. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10671. Request peers thought DHT only when download hasn't finished.
  10672. * src/DHTGetPeersCommand.cc
  10673. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10674. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10675. * src/DHTBucketRefreshTask.{h, cc}
  10676. * src/DHTSetup.cc
  10677. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10678. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10679. standard classes.
  10680. Included string.h where mem* function are used.
  10681. Added namespace aria2.
  10682. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10683. Create directory before saving DHT routing table.
  10684. Now ios::failure is now handled properly.
  10685. * src/DHTAutoSaveCommand.cc
  10686. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10687. Removed unnecessary cerr.
  10688. * src/DownloadEngine.cc
  10689. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10690. Catch exception inside DHTMessageReceiver::receiveMessage().
  10691. Log unknown message.
  10692. * src/DHTMessageReceiver.{h, cc}
  10693. * src/DHTMessageFactory.h
  10694. * src/DHTMessageFactoryImpl.{h, cc}
  10695. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10696. * src/DHTInteractionCommand.cc
  10697. * src/DHTUnknownMessage.{h, cc}
  10698. * test/DHTUnknownMessageTest.cc
  10699. * test/MockDHTMessageFactory.h
  10700. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10701. Commented out ip address comparison because a host can have multiple
  10702. ip addresses and it is hard to predict the hostname is resolved into
  10703. which one.
  10704. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10705. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10706. * po/Makefile.in: Removed since this is generated by configure.
  10707. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10708. Fixed compiler warning about redefinition of SIZE_MAX.
  10709. Use common.h instead of config.h directly here.
  10710. * src/Platform.{h, cc}
  10711. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10712. here.
  10713. * common.h
  10714. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  10715. Updated gettext related files.
  10716. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  10717. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  10718. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10719. Added DHT functionality, compatible with mainline.
  10720. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  10721. You may need to specify entry point to DHT network using
  10722. --dht-entry-point. DHT uses UDP port to listen incoming message.
  10723. Use --dht-listen-port to specify port number. Make sure that your
  10724. firewall configuration can pass through UDP traffic to the port.
  10725. The routing table is saved in $HOME/.aria2/dht.dat.
  10726. * src/DHT*
  10727. * src/BNode.{h, cc}
  10728. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  10729. particular torrent.
  10730. * src/Data.cc: Rewritten ctor.
  10731. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  10732. --dht-entry-point.
  10733. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  10734. * src/RequestGroup.cc: Initialize DHT functionality. When download
  10735. ends, remove BtContext from DHTPeerAnnounceStorage.
  10736. * src/BtPortMessage.{h, cc}: Rewritten.
  10737. * src/message.h
  10738. * src/OptionHandlerImpl.cc
  10739. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  10740. --dht-entry-point.
  10741. * src/Dictionary.{h, cc} (remove): New function.
  10742. * src/prefs.h
  10743. * src/DefaultBtMessageFactory.h
  10744. * src/BtHandshakeMessage.cc
  10745. * src/ActivePeerConnectionCommand.cc
  10746. * src/SocketCore.{h, cc}: Added datagram socket support.
  10747. * src/DefaultBtMessageFactory.cc
  10748. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  10749. Create DHT commands.
  10750. * src/BtMessageFactory.h
  10751. * src/PeerMessageUtil.{h, cc}
  10752. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10753. Fixed the bug that log file is not written when configuration file doesn't exist.
  10754. This is caused by using Logger class before LogFactory is not configured.
  10755. BUG #1875079
  10756. * src/option_processing.cc
  10757. Warning message "configuration doesn't exist" is only printed when --conf is
  10758. given.
  10759. * src/option_processing.cc
  10760. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10761. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  10762. ShaVisitor is now deprecated and slated to be removed.
  10763. * src/DefaultBtContext.cc
  10764. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10765. Externalize message to message.h
  10766. * src/Platform.cc
  10767. * src/message.h
  10768. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10769. Set default domain and default path to cookie.
  10770. * src/HttpResponse.cc
  10771. * src/CookieBox.{h, cc}
  10772. * src/CookieParser.{h, cc}
  10773. * test/CookieParserTest.cc
  10774. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10775. Added --no-conf and --conf-path command-line option.
  10776. --no-conf option disables loading aria2.conf file.
  10777. --conf-path option changes the configuration file path. The default
  10778. file path is $HOME/.aria2/aria2.conf
  10779. Added a warning message when the configuration file is not found.
  10780. * src/HelpItemFactory.cc
  10781. * src/option_processing.cc
  10782. * src/prefs.h
  10783. * src/usage_text.h
  10784. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10785. Added the message to inform users that other help categories are
  10786. available in -h option.
  10787. * src/version_usage.cc
  10788. * src/TagContainer.{h, cc}
  10789. * test/TagContainerTest.cc
  10790. * src/TaggedItem.{h, cc}
  10791. * test/TaggedItemTest.cc
  10792. * src/HelpItem.h
  10793. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10794. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10795. from PiecedSegment's ctor.
  10796. Previously Piece::getAllMissingBlockIndexes() is called from
  10797. PiecedSegment() but it is rather expensive since only first element is
  10798. used.
  10799. * src/PiecedSegment.cc
  10800. * src/Piece.{h, cc}
  10801. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10802. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10803. each time these functions are called.
  10804. * src/BitfieldMan.{h, cc}
  10805. * test/BitfieldManTest.cc
  10806. * src/array_fun.h
  10807. * test/array_funTest.cc
  10808. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10809. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10810. filtered. Removed unnecessary cast to int32_t.
  10811. * src/BitfieldMan.{h, cc}
  10812. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10813. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10814. payload length(4bytes) are received. This happens because lenbufLength
  10815. is not updated in this particular case and successive call of
  10816. receiveMessage() overwrites payload length with bytes recieved which
  10817. are payload body.
  10818. * src/PeerConnection.{h, cc}
  10819. * src/message.h
  10820. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10821. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10822. peer if there are peers that have same ipaddr and port.
  10823. I've experiened segmentation fault and "pure virtual function was
  10824. called" error.
  10825. * src/Peer.h
  10826. * test/PeerTest.cc
  10827. * src/DefaultPeerStorage.cc
  10828. * test/DefaultPeerStorageTest.cc
  10829. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10830. Removed a call to isPowerOf() because it is no longer necessary here
  10831. and a request block is not always power of 2.
  10832. BUG#1866924
  10833. * src/PeerMessageUtil.cc (checkLength)
  10834. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10835. Fixed the bug that always first found Segment is removed from
  10836. usedSegmentEntries. Removed unused functions.
  10837. * src/SegmentMan.{h, cc}
  10838. * test/SegmentManTest.cc
  10839. Fixed the bug that ServerHost is not removed.
  10840. * src/RequestGroup.cc
  10841. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10842. Fixed the bug that SegmentMan::completeSegment() is not called
  10843. even if Segment is complete when --lowest-speed-limit is enabled.
  10844. BUG#1864525
  10845. * src/DownloadCommand.{h, cc}
  10846. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10847. Fixed: hash algorithm 'sha1' is always used.
  10848. * src/DownloadCommand.cc (validatePieceHash)
  10849. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10850. Added --enable-peer-exchange command-line option.
  10851. * src/OptionHandlerFactory.cc
  10852. * src/HelpItemFactory.cc
  10853. * src/option_processing.cc
  10854. * src/usage_text.h
  10855. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10856. Move extension from BtRuntime to ExtensionMessageFactory, because
  10857. extension can be specified per peer, not per torrent.
  10858. * src/DefaultBtInteractive.cc
  10859. * src/BtRuntime.h
  10860. * src/ExtendedMessagingAware.h
  10861. * src/ExtensionMessageFactory.h
  10862. * src/DefaultExtensionMessageFactory.cc
  10863. * test/DefaultExtensionMessageFactoryTest.cc
  10864. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10865. Added categorized option help. Specify category using --help option.
  10866. Also added the ability to search options in forward match.
  10867. * src/HelpItem.{h, cc}
  10868. * test/HelpItemTest.cc
  10869. * src/HelpItemFactory.{h, cc}
  10870. * src/TagContainer.{h, cc}
  10871. * test/TagContainerTest.cc
  10872. * src/option_processing.cc
  10873. * src/prefs.h
  10874. * src/TaggedItem.{h, cc}
  10875. * test/TaggedItemTest.cc
  10876. * src/version_usage.cc
  10877. * src/help_tags.h
  10878. * src/usage_text.h
  10879. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10880. Fixed segmentation fault when bad torrent metainfo is parsed.
  10881. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10882. and then throw exception or skip it.
  10883. * src/DefaultBtContext.{h, cc}
  10884. * test/DefaultBtContextTest.cc
  10885. * src/AnnounceList.cc
  10886. * src/CompactPeerListProcessor.cc
  10887. * src/message.h
  10888. * src/DefaultBtAnnounce.{h, cc}
  10889. * test/DefaultBtAnnounceTest.cc
  10890. * src/BencodeVisitor.cc
  10891. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10892. Added missing "B"(=Byte). So now the message looks like this:
  10893. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10894. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10895. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10896. Show the seed ratio after torrent downloads.
  10897. For example, after torrent download completed and --seed-time and
  10898. --seed-ratio conditions are fulfilled, following message is printed
  10899. right after "Download complete: .....":
  10900. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10901. * src/RequestGroupMan.cc
  10902. * src/RequestGroup.{h, cc}
  10903. * src/message.h
  10904. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10905. Remove a defunct control file. A defunct control file means that while
  10906. it exists, but the corresponding download file is missing.
  10907. After its removal, a download restarts from the beginning.
  10908. * src/RequestGroup.cc
  10909. * src/message.h
  10910. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10911. Allocate bitfield in Peer when it is really used. More specifically,
  10912. bitfield in Peer is allocated after the connection is established and
  10913. deallocated when the connection is dropped.
  10914. Since 2 parameters(piece length and total length) was removed from the
  10915. constructor of Peer class, many test classes were modified accordingly.
  10916. See svn log for more detailed information.
  10917. * src/PeerInteractionCommand.cc
  10918. * src/CompactPeerListProcessor.cc
  10919. * src/Peer.cc
  10920. * src/DefaultPeerListProcessor.cc
  10921. * src/PeerListenCommand.cc
  10922. * src/PeerReceiveHandshakeCommand.cc
  10923. Fixed memory leak
  10924. * src/Piece.cc
  10925. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10926. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10927. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10928. command-line options.
  10929. * src/option_processing.cc
  10930. * src/ActivePeerConnectionCommand.cc
  10931. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10932. Send have message to peer if it already has the piece.
  10933. * src/BtHaveMessage.{h, cc}
  10934. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10935. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10936. port.
  10937. * src/DefaultPeerStorage.{h, cc}
  10938. * test/DefaultPeerStorageTest.cc
  10939. * src/HandshakeExtensionMessage.cc
  10940. * test/HandshakeExtensionMessageTest.cc
  10941. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10942. * src/PeerStorage.h
  10943. * test/MockPeerStorage.h
  10944. * src/PeerListenCommand.cc
  10945. * src/PeerReceiveHandshakeCommand.cc
  10946. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10947. Added --metalink-enable-unique-protocol option.
  10948. * src/Metalink2RequestGroup.cc
  10949. * src/option_processing.cc
  10950. * src/prefs.h
  10951. * src/version_usage.cc
  10952. * doc/aria2c.1.txt
  10953. * doc/aria2c.1
  10954. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10955. Allow a peer in incomingPeer to be added peers.
  10956. * src/DefaultPeerStorage.cc
  10957. * test/DefaultPeerStorageTest.cc
  10958. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10959. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10960. I could reproduce this bug in following procedure:
  10961. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10962. 2. Restart aria2.
  10963. 3. You see the download stopped around 99%.
  10964. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10965. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10966. If timeout is reached, then _nextCommand is unused and it may contains
  10967. segments and they won't be canceled. Actually, timeout is not needed
  10968. here because if the server dropped connection, then retry is made.
  10969. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10970. Added uTorrent compatible Peer Exchange.
  10971. * src/BencodeVisitor.{h, cc}
  10972. * test/BencodeVisitorTest.cc
  10973. * src/BtConstants.h
  10974. * src/BtContext.h: Added 'private' flag.
  10975. * src/BtExtendedMessage.{h, cc}
  10976. * test/BtExtendedMessageTest.cc
  10977. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10978. reserved field.
  10979. * test/BtHandshakeMessageTest.cc
  10980. * src/BtMessageFactory.h
  10981. * src/BtRegistry.h
  10982. * src/BtRuntime.h: This class holds default extension message IDs for
  10983. aria2. By default, aria2 uses ID 8 for ut_pex.
  10984. * src/DefaultBtContext.cc
  10985. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10986. When it is true, aria2 enables ut_pex. This value is set by
  10987. PeerInteractionCommand.
  10988. * src/DefaultBtMessageFactory.{h, cc}
  10989. * test/DefaultBtMessageFactoryTest.cc
  10990. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10991. handling to DefaultBtInteractive class.
  10992. * src/DefaultExtensionMessageFactory.{h, cc}
  10993. * test/DefaultExtensionMessageFactoryTest.cc
  10994. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10995. the container(peers and incomingPeers. The equality is determined by
  10996. Peer::id).
  10997. * test/DefaultPeerStorageTest.cc
  10998. * src/ExtensionMessage.h
  10999. * test/MockExtensionMessage.h
  11000. * src/ExtensionMessageFactory.h
  11001. * test/MockExtensionMessageFactory.h
  11002. * src/HandshakeExtensionMessage.{h, cc}
  11003. * test/HandshakeExtensionMessageTest.cc
  11004. * src/MetaEntry.h
  11005. * src/Peer.{h, cc}
  11006. * src/PeerInteractionCommand.cc
  11007. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11008. addIncomingPeer.
  11009. * src/PeerMessageUtil.{h, cc}
  11010. * src/PeerObject.h
  11011. * src/UTPexExtensionMessage.{h, cc}
  11012. * test/UTPexExtensionMessageTest.cc
  11013. * src/message.h
  11014. * src/prefs.h
  11015. Fixed the bug that returns incomplete data when it contains null
  11016. character. A convenient constructor was also added.
  11017. * src/Data.{h, cc}
  11018. Rewritten.
  11019. * src/CompactPeerListProcessor.cc
  11020. Fixed typos.
  11021. * src/message.h
  11022. * src/MetaFileUtil.cc
  11023. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11024. Added "Status Legend" label to the explanation text of 'stat' in
  11025. download result and moved it to the last. BUG#1848214
  11026. * src/RequestGroupMan.cc
  11027. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11028. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11029. * src/Makefie.am
  11030. * test/Makefile.am
  11031. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11032. Fixed the bug that prevents aria2 from loading cookie file when expire
  11033. value is greater than 2^31-1. BUG#1851066
  11034. * src/CookieBoxFactory.cc
  11035. * test/CookieBoxFactoryTest.cc
  11036. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11037. Fixed possible memory leak when an exception is thrown.
  11038. * src/XML2SAXMetalinkProcessor.cc
  11039. Added Expat support. If both libxml2 and Expat are installed, then
  11040. libxml2 is used by default.
  11041. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11042. ExpatMetalinkProcessor according to the configuration.
  11043. * src/ExpatMetalinkProcessor.{h, cc}
  11044. * src/main.cc: Removed libxml2 specific header and init/free function.
  11045. * src/MetalinkProcessorFactory.{h, cc}
  11046. * src/MetalinkHelper.cc
  11047. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11048. * src/MetalinkProcessor.h
  11049. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11050. MetalinkProcessorTest is used instead.
  11051. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11052. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11053. MetalinkProcessorFactory::newInstance().
  11054. * m4/libexpat.m4
  11055. * configure.ac: Added configuration options for libexpat.
  11056. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11057. Disabled -s option in metalink download.
  11058. * src/Metalink2RequestGroup.cc
  11059. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11060. If several protocols are available for a mirror in metalink file,
  11061. aria2 now use one of them. --metalink-preferred-protocol option was
  11062. added to specify the preference of protocol.
  11063. * src/AbstractCommand.cc
  11064. * src/OptionHandlerFactory.cc
  11065. * src/ServerHost.{h, cc}
  11066. * src/Metalink2RequestGroup.cc
  11067. * src/RequestGroup.{h, cc}
  11068. * test/RequestGroupTest.cc
  11069. * src/option_processing.cc
  11070. * src/prefs.h
  11071. * src/HttpResponseCommand.cc
  11072. * src/MetalinkResource.{h, cc}
  11073. * src/FtpNegotiationCommand.cc
  11074. * src/MetalinkEntry.{h, cc}
  11075. * src/MetalinkEntryTest.cc
  11076. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11077. Code cleanup and added debug log.
  11078. * src/PeerConnection.cc
  11079. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11080. Compiler error fix: applied the patch by Tiziano Mueller
  11081. * src/RequestGroup.cc
  11082. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11083. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11084. in stopped and completed event.
  11085. * src/AnnounceList.{h, cc}
  11086. * test/AnnounceListTest.cc
  11087. * src/DefaultBtAnnounce.cc
  11088. * test/DefaultBtAnnounceTest.cc
  11089. Sorted URLs.
  11090. * test/Metalink2RequestGroupTest.cc
  11091. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11092. Removed unnecessary string copy. Updated doc and corrected indentation.
  11093. * src/Base64.cc
  11094. Fixed compilation warnings
  11095. * test/DataTest.cc
  11096. * test/HttpRequestTest.cc
  11097. * test/MetaFileUtilTest.cc
  11098. * test/RequestTest.cc
  11099. * Release 0.12.0
  11100. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11101. Updated translations
  11102. * po/{de,fr,ja,nl,ru}.po
  11103. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11104. translations. Many thanks to translators.
  11105. * po/{ca,es,it,pt_BR,sv}.po
  11106. * po/LINGUAS
  11107. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11108. Added a notice about URL
  11109. * src/version_usage.cc
  11110. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11111. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11112. aria2 repeatedly sends stopped request when tracker returns error code.
  11113. * src/AnnounceList.cc
  11114. * test/AnnounceListTest.cc
  11115. * src/AnnounceTier.h
  11116. Added a message when ctrl-c is hit.
  11117. Now second ctrl-c is also handled in signal handler.
  11118. * src/RequestGroupMan.{h, cc}
  11119. * src/RequestGroup.{h, cc}
  11120. * src/MultiUrlRequestInfo.cc
  11121. * src/DownloadEngine.cc
  11122. * src/TrackerWatcherCommand.cc
  11123. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11124. Code cleanup
  11125. * src/Base64.cc (encode)
  11126. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11127. Changed Direct/IO enable/disable procesure in file allocation routine.
  11128. * src/SingleFileAllocationIterator.cc
  11129. (SingleFileAllocationIterator):
  11130. Disable directIO if offset is not multiple of 512.
  11131. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11132. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11133. Enable created SingleFileAllocationIterator's directIO.
  11134. * src/FileAllocationEntry.cc
  11135. (FileAllocationEntry): Enable directIO here.
  11136. (~FileAllocationEntry): Disable directIO here.
  11137. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11138. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11139. * src/Peer.{h, cc}
  11140. * src/DefaultPieceStorage.cc
  11141. * test/DefaultPieceStorageTest.cc
  11142. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11143. Rewritten direct I/O support routine
  11144. * src/SingleFileAllocationIterator.cc
  11145. * src/MultiDiskAdaptor.{h, cc}
  11146. * src/ByteArrayDiskWriter.h
  11147. * src/AbstractSingleDiskAdaptor.h
  11148. * src/AbstractDiskWriter.cc
  11149. * src/DefaultPieceStorage.cc
  11150. * src/DiskWriter.h
  11151. * src/BinaryStream.h
  11152. * src/IteratableChunkChecksumValidator.cc
  11153. * src/IteratableChecksumValidator.cc
  11154. * src/CheckIntegrityEntry.cc
  11155. * src/FileAllocationEntry.cc
  11156. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11157. Fixed typo
  11158. * src/version_usage.cc
  11159. Updated doc
  11160. * doc/aria2c.1.txt
  11161. * doc/aria2c.1
  11162. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11163. Fixed compile error without message digest support.
  11164. * src/FileMetalinkParserState.cc
  11165. * src/MetalinkParserController.{h, cc}
  11166. * test/XML2SAXMetalinkProcessorTest.cc
  11167. * test/MetalinkParserControllerTest.cc
  11168. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11169. Enable direct I/O support in checksum checking.
  11170. * src/IteratableChunkChecksumValidator.{h, cc}
  11171. * test/IteratableChunkChecksumValidatorTest.cc
  11172. * src/CheckIntegrityEntry.cc
  11173. * src/PieceHashCheckIntegrityEntry.cc
  11174. * src/IteratableChecksumValidator.{h, cc}
  11175. * src/BtCheckIntegrityEntry.cc: Added doc.
  11176. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11177. Added --allow-piece-length-change option.
  11178. * src/DefaultBtProgressInfoFile.cc
  11179. * test/DefaultBtProgressInfoFileTest.cc
  11180. * src/OptionHandlerFactory.cc
  11181. * src/option_processing.cc
  11182. * src/prefs.h
  11183. * src/version_usage.cc
  11184. * doc/aria2c.1.txt
  11185. * doc/aria2c.1
  11186. Fixed: duplicated result entry appears when exception is thrown in
  11187. RequestGroup::createInitiateConnectionCommand().
  11188. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11189. Add RequestGroup to _requestGroup after RequetGroup::
  11190. createInitiateConnectionCommand() succeeds.
  11191. Externalized message
  11192. * src/XML2SAXMetalinkProcessor.cc
  11193. * src/message.h
  11194. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11195. Forced download abort when received negative response from http/ftp
  11196. server.
  11197. * src/HttpResponseCommand.cc
  11198. * src/FtpNegotiationCommand.cc
  11199. * src/HttpResponse.cc
  11200. * src/FtpConnection.cc
  11201. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11202. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11203. the predecessor, Xml2MetalinkParser class.
  11204. I tested them against 94KB metalink file with 1234 chunk checksums.
  11205. The new one parsed it in 22msec, while it took 6000msec with old one.
  11206. * src/XML2SAXMetalinkProcessor.{h, cc}
  11207. * test/XML2SAXMetalinkProcessorTest.cc
  11208. * src/MetalinkParserController.{h, cc}
  11209. * test/MetalinkParserControllerTest.cc
  11210. * src/MetalinkParserState.h: Also added 16 subclasses.
  11211. * src/main.cc
  11212. * src/Metalink2RequestGroup.cc
  11213. * src/MetalinkHelper.cc
  11214. * src/MetalinkEntry.cc
  11215. * src/ChunkChecksum.h
  11216. Rewritten Base64 class for better performance.
  11217. * src/Base64.{h, cc}
  11218. * test/Base64Test.cc
  11219. * src/HttpRequest.cc
  11220. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11221. Fixed the bug#1841757: aria2 will connect to server to only get
  11222. file size.
  11223. * src/StreamFileAllocationEntry.cc
  11224. * src/option_processing.cc
  11225. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11226. downloads.
  11227. * src/FtpNegotiationCommand.cc
  11228. Suppressed wrong message when finding PreDownloadHandler
  11229. * src/RequestGroup.cc
  11230. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11231. Updated usage
  11232. * src/version_usage.cc
  11233. Updated man page
  11234. * doc/aria2c.1.txt
  11235. * doc/aria2c.1
  11236. Updated po files
  11237. * po/aria2c.pot
  11238. * po/*.po
  11239. * po/*.gmo
  11240. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11241. Eliminated g++-4.2 warning
  11242. * src/DownloadHandlerConstants.{h, cc}
  11243. * src/Util.cc
  11244. * test/MetaFileUtilTest.cc
  11245. * test/PStringBuildVisitorTest.cc
  11246. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11247. * src/RequestGroup.cc
  11248. * src/BtCheckIntegrityEntry.cc
  11249. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11250. Fixed a2io.h
  11251. * src/a2io.h
  11252. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11253. Added direct I/O support. The current implementation uses O_DIRECT,
  11254. which is not posix standard and is tested on linux 2.6.21.
  11255. Currently only file allocation uses direct I/O.
  11256. * src/SingleFileAllocationIterator.{h, cc}
  11257. * test/SingleFileAllocationIteratorTest.cc
  11258. * src/MultiFileAllocationIterator.{h, cc}
  11259. * test/MultiFileAllocationIteratorTest.cc
  11260. * src/BinaryStream.h
  11261. * src/DiskWriter.h
  11262. * src/AbstractDiskWriter.{h, cc}
  11263. * src/ByteArrayDiskWriter.h
  11264. * src/DiskAdaptor.h
  11265. * src/AbstractSingleDiskAdaptor.{h, cc}
  11266. * src/MultiDiskAdaptor.{h, cc}
  11267. * src/FileAllocationEntry.cc
  11268. * src/Util.{h, cc}
  11269. * src/OptionHandlerFactory.cc
  11270. * src/prefs.h
  11271. * src/version_usage.cc
  11272. * src/option_processing.cc
  11273. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11274. handleException.
  11275. * src/MultiFileAllocationIterator.cc
  11276. Added EINTR handling
  11277. * src/SocketCore.cc
  11278. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11279. Updated usage
  11280. * src/version_usage.cc
  11281. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11282. Applied Ross's patch for MinGW port.
  11283. * src/DownloadEngine.h
  11284. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11285. Set Content-Type to SingleFileDownloadContext when http response is
  11286. received.
  11287. * src/HttpResponseCommand.cc
  11288. * src/HttpResponse.{h, cc}
  11289. * test/HttpResponseTest.cc
  11290. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11291. Rewritten to add content-type support.
  11292. * src/DownloadHandler.{h, cc}
  11293. * src/BtPostDownloadHandler.{h, cc}
  11294. * test/BtPostDownloadHandlerTest.cc
  11295. * src/MetalinkPostDownloadHandler.{h, cc}
  11296. * test/MetalinkPostDownloadHandlerTest.cc
  11297. * src/PostDownloadHandler.{h, cc}
  11298. * src/DownloadHandlerConstants.{h, cc}
  11299. * src/RequestGroup.cc
  11300. * src/HttpResponseCommand.cc
  11301. * src/FtpNegotiationCommand.cc
  11302. * src/SingleFileDownloadContext.{h, cc}
  11303. * src/RequestGroup.h
  11304. * src/RequestGroupCriteria.h
  11305. * src/ContentTypeRequestGroupCriteria.h
  11306. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11307. If it is give, metalink/torrent file is not written to the disk, but
  11308. just is kept in memory. Parsing is occurred on memory.
  11309. * src/MetalinkHelper.{h, cc}
  11310. * src/MetalinkProcessor.h
  11311. * src/Xml2MetalinkProcessor.{h, cc}
  11312. * test/Xml2MetalinkProcessorTest.cc
  11313. * src/DownloadHandlerFactory.{h, cc}
  11314. * test/DownloadHandlerFactoryTest.cc
  11315. * src/PreDownloadHandler.{h, cc}
  11316. * src/OptionHandlerFactory.cc
  11317. * src/DefaultBtContext.{h, cc}
  11318. * test/DefaultBtContextTest.cc
  11319. * src/version_usage.cc
  11320. * src/Metalink2RequestGroup.{h, cc}
  11321. * src/RequestGroup.{h, cc}
  11322. * src/a2functional.h
  11323. * test/a2functionalTest.cc
  11324. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11325. * src/OptionHandlerImpl.h
  11326. * src/prefs.h
  11327. * src/Util.{h, cc}
  11328. * test/UtilTest.cc
  11329. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11330. memory usage.
  11331. * src/RequestGroupMan.{h, cc}
  11332. * src/DownloadEngine.cc
  11333. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11334. WeakHandle to SharedHandle because WeakHandle could be null.
  11335. * src/RequestGroup.{h, cc}
  11336. * src/DownloadEngineFactory.cc
  11337. * src/DownloadResult.h
  11338. Set totalLength after download finished
  11339. * src/UnknownLengthPieceStorage.{h, cc}
  11340. Keep torrent file specified in metalink in memory.
  11341. * src/Metalink2RequestGroup.cc
  11342. * src/BtDependency.cc
  11343. * src/TrueRequestGroupCriteria.h
  11344. Fixed the bug: seekg is used where seekp should be used.
  11345. * src/ByteArrayDiskWriter.cc
  11346. * test/ByteArraydiskWriterTest.cc
  11347. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11348. Fixed syntax error
  11349. * test/SequenceTest.cc
  11350. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11351. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11352. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11353. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11354. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11355. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11356. Added the check to see whether ares_host_callback accepts timeouts
  11357. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11358. * src/NameResolver.{h, cc}
  11359. * m4/libcares.m4
  11360. * configure.ac: Set C++ for language choice.
  11361. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11362. Fixed: compilation fails without c-ares/ares
  11363. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11364. Generate http/ftp commands only when download is incomplete.
  11365. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11366. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11367. Corrected typo. Examples are removed since they are available in man
  11368. page.
  11369. * src/version_usage.cc
  11370. Updated man page.
  11371. * doc/aria2c.1
  11372. * doc/aria2c.1.txt
  11373. * doc/makeman: Commented out sed command.
  11374. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11375. Throw DlAbortEx when a remote file is not found.
  11376. * src/HttpResponse.cc
  11377. * src/FtpNegotiationCommand.cc
  11378. * src/message.h
  11379. Overwrite an existing file if --allow-overwrite=true is given.
  11380. * src/RequestGroup.cc
  11381. Removed unused functions
  11382. * src/AbstractCommand.h
  11383. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11384. Removed 'extern' from 'extern typedef ...' in src/*.h
  11385. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11386. Updated usage
  11387. * src/version_usage.cc
  11388. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11389. Trim announce URL
  11390. * src/DefaultBtContext.cc
  11391. * test/ShaVisitorTest.cc
  11392. Trim argument s. Give trimed s to exception constructor.
  11393. * src/Util.cc (parseInt)(parseLLInt)
  11394. * test/UtilTest.cc
  11395. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11396. Set precision back to 1.
  11397. * src/ConsoleStatCalc.cc (calculateStat)
  11398. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11399. Replaced strtol with Util::parseInt
  11400. * src/ChunkedEncoding.cc
  11401. * src/HttpConnection.cc
  11402. * src/CookieBoxFactory.cc
  11403. * src/ParameterizedStringParser.cc
  11404. * src/Util.cc
  11405. * test/UtilTest.cc
  11406. * test/OptionHandlerTest.cc
  11407. * src/Request.cc
  11408. Throw exception when empty string is given. The message for exception
  11409. changed.
  11410. * src/Util.cc (parseInt)(parseLLInt)
  11411. * src/message.h
  11412. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11413. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11414. set to 1.
  11415. * src/ConsoleStatCalc.cc (calculateStat)
  11416. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11417. Preallocate non-requested file which is adjacent forward to requested
  11418. file('requested' files means the files given in --select-file option)
  11419. if they share a same piece.
  11420. This fixes long pause in the file system which doesn't support sparse
  11421. files like FAT32 while downloading.
  11422. * src/MultiFileAllocationIterator.{h, cc}
  11423. * test/MultiFileAllocationIteratorTest.cc
  11424. * src/FileEntry.{h, cc}
  11425. Removed unused _option.
  11426. * src/MultiDiskAdaptor.h
  11427. * test/MultiDiskAdaptorTest.cc
  11428. * src/DefaultPieceStorage.cc
  11429. Set the default value of --seed-ratio to 1.0.
  11430. If 0.0 is given, then seeding continues regardless of share ratio.
  11431. * src/version_usage.cc
  11432. * src/option_processing.cc
  11433. * src/BtSetup.cc
  11434. * doc/aria2c.1.txt
  11435. * doc/aria2c.1
  11436. Fixed: Selective download is not working in BitTorrent
  11437. * src/RequestGroup.cc
  11438. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11439. * src/PieceStorage.h
  11440. * test/MockPieceStorage.h
  11441. * src/UnknownLengthPieceStorage.h
  11442. * src/DefaultPieceStorage.{h, cc}
  11443. * src/Metalink2RequestGroup.cc
  11444. * src/RequestGroup.cc
  11445. * src/Sequence.h
  11446. * test/SequenceTest.cc
  11447. * src/IntSequence.h
  11448. * src/message.h
  11449. * src/Util.{h, cc}
  11450. * test/UtilTest.cc
  11451. Added new function 'parse' to catch exception thrown by subclass's
  11452. parseArg
  11453. * src/OptionHandler.h
  11454. * src/OptionParser.cc
  11455. * src/NameMatchOptionHandler.h
  11456. * src/OptionHandlerImpl.h
  11457. * test/OptionHandlerTest.cc
  11458. Added IntegerRangeOptionHandler. Used for --listen-port and
  11459. --select-file. Now --listen-port accepts range of port.
  11460. * src/OptionHandlerFactory.cc
  11461. * src/version_usage.cc
  11462. * src/OptionHandlerImpl.h
  11463. * src/option_processing.cc
  11464. * src/BtSetup.cc
  11465. * src/PeerListenCommand.{h, cc}
  11466. * doc/aria2c.1.txt
  11467. * doc/aria2c.1
  11468. Implemented operator< for Exception class to provide easy way to print
  11469. exception stack trace.
  11470. * src/Exception.{h, cc}
  11471. * src/main.cc
  11472. * src/option_processing.cc
  11473. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11474. * src/version_usage.cc
  11475. (showVersion): Reworked.
  11476. (showUsage): Added examples.
  11477. Removed Hint for total length and file name.
  11478. * src/Metalink2RequestGroup.cc
  11479. * src/RequestGroup.{h, cc}
  11480. * src/HttpResponseCommand.cc
  11481. * src/FtpNegotiationCommand.cc
  11482. Now --follow-torrent and --follow-metalink option work properly.
  11483. * src/RequestGroup.cc
  11484. Updated man page
  11485. * doc/aria2c.1.txt
  11486. * doc/aria2c.1
  11487. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11488. Removed.
  11489. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11490. Use Segment::operator==()
  11491. * src/HttpConnection.cc
  11492. * src/Segment.h
  11493. Updated usage
  11494. * src/version_usage.cc
  11495. Added EINTR treatment.
  11496. * src/SocketCore.cc
  11497. * src/AbstractDiskWriter.cc
  11498. Rewritten.
  11499. * src/Util.cc (rangedFileCopy)
  11500. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11501. Fixed typo.
  11502. * src/version_usage.cc
  11503. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11504. Implemented. Now -c option works fine.
  11505. * src/DefaultPieceStorage.cc (markPiecesDone)
  11506. * test/DefaultPieceStorageTest.cc
  11507. Removed.
  11508. * src/SegmentMan.{h, cc}
  11509. (markAllPiecesDone)
  11510. (markPieceDone)
  11511. Synchronized po files with
  11512. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11513. * src/fr.po
  11514. * src/ru.po
  11515. * src/de.po
  11516. * src/ja.po
  11517. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11518. Added ifdef and some modifications to compile without BitTorrent,
  11519. Metalink, MessageDigest
  11520. support.
  11521. * src/PieceHashCheckIntegrityEntry.cc
  11522. * src/MetalinkEntry.h
  11523. * src/version_usage.cc
  11524. * src/main.cc
  11525. * src/DownloadEngine.{h, cc}
  11526. * src/Metalink2RequestGroup.cc
  11527. * src/Peer.cc
  11528. * src/RequestGroup.cc
  11529. * src/MetalinkHelper.cc
  11530. * test/DefaultPieceStorageTest.cc
  11531. * test/MetalinkPostDownloadHandlerTest.cc
  11532. * test/Metalink2RequestGroupTest.cc
  11533. Hide TOTAL SPD when all downloads complete.
  11534. * src/ConsoleStatCalc.cc
  11535. Log target system information.
  11536. * src/main.cc
  11537. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11538. Now --metalink-location accepts a comma-deliminated list of locations.
  11539. * src/MetalinkEntry.{h, cc}
  11540. * test/MetalinkEntryTest.cc
  11541. * src/version_usage.cc
  11542. * src/Metalink2RequestGroup.cc
  11543. * src/Xml2MetalinkProcessor.cc
  11544. * test/Xml2MetalinkProcessorTest.cc
  11545. * doc/aria2c.1.txt
  11546. * doc/aria2c.1
  11547. * src/Util.cc (toUpper)(toLower): Rewritten.
  11548. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11549. Added the ability to detect duplicate download entry which is about to
  11550. download the same file other RequestGroup is downloading.
  11551. * src/RequestGroup.cc
  11552. * src/HttpResponseCommand.cc
  11553. * src/FtpNegotiationCommand.cc
  11554. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11555. Recalculates download progress when loading a control file,
  11556. if the piece length of DownloadContext is different from the one saved
  11557. in the control file. Currently in-flight pieces are ignored.
  11558. * src/DefaultBtProgressInfoFile.cc
  11559. * test/DefaultBtProgressInfoFileTest.cc
  11560. * src/Util.{h, cc}
  11561. * test/UtilTest.cc
  11562. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11563. Do not rotate tiers in announce-list.
  11564. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11565. AnnounceList::allTiersFailed() used instead to detect whether all
  11566. tiers are tried and failed.
  11567. * test/DefaultBtAnnounceTest.cc
  11568. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11569. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11570. * test/AnnounceListTest.cc
  11571. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11572. clause. Catch RecoverableException instead of DlRetryEx instead.
  11573. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11574. Implemented checksum validation feature(1 checksum for each file)
  11575. The validation takes place after the download.
  11576. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11577. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11578. * src/CheckIntegrityCommand.cc: Changed log message.
  11579. * src/Metalink2RequestGroup.cc: Set checksum to
  11580. SingleFileDownloadContext.
  11581. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11582. PieceHashCheckIntegrity class.
  11583. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11584. PieceHashCheckIntegrity class.
  11585. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11586. * src/IteratableValidator.h: New class.
  11587. * src/message.h
  11588. * src/CheckIntegrityEntry.{h, cc}
  11589. * src/IteratableChunkChecksumValidator.{h, cc}
  11590. * src/SingleFileDownloadContext.h
  11591. * src/DownloadCommand.cc
  11592. --allow-overwrite=true is no longer needed to check file integrity
  11593. before download in BitTorrent download.
  11594. * src/RequestGroup.cc (getInitialCommand)
  11595. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11596. throws exception.
  11597. * src/RequestGroupMan.cc (getInitialCommands)
  11598. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11599. urlencode the given url inside Request::parseUrl(...)
  11600. * src/Request.{h, cc}
  11601. * src/Util.{h, cc}
  11602. * test/RequestTest.cc
  11603. Removed #!metalink3! notation support because it is deleted from
  11604. the metalink specification.
  11605. * src/Request.{h, cc}
  11606. * test/RequestTest.cc
  11607. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11608. Don't connect server before checking file integrity at startup, if
  11609. filesize and output file path are known.
  11610. * src/AbstractCommand.cc
  11611. * src/StreamFileAllocationEntry.cc
  11612. * src/Metalink2RequestGroup.cc
  11613. * src/RequestGroup.{h, cc}
  11614. * src/HttpResponseCommand.cc
  11615. * src/FtpNegotiationCommand.cc
  11616. Added DownloadFailureException. If it is thrown, RequestGroup should
  11617. halt.
  11618. * src/AbstractCommand.cc
  11619. * src/DownloadFailureException.h
  11620. * src/RequestGroup.cc
  11621. Catch RecoverableException, instead of DlAbortEx.
  11622. * src/RequestGroupMan.cc
  11623. * src/FillRequestGroupCommand.cc
  11624. * src/MetaFileUtil.cc
  11625. * src/IteratableChunkChecksumValidator.cc
  11626. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11627. getGID())
  11628. * src/CheckIntegrityCommand.cc
  11629. * src/message.h
  11630. Print gid instead of idx.
  11631. * src/RequestGroupMan.cc
  11632. Removed exception throwers declaration.
  11633. * src/DirectDiskAdaptor.{h, cc}
  11634. * src/SocketCore.{h, cc}
  11635. * src/MultiDiskAdaptor.{h, cc}
  11636. * src/HttpConnection.{h, cc}
  11637. * src/HttpResponse.{h, cc}
  11638. * src/DiskAdaptor.{h, cc}
  11639. * src/CopyDiskAdaptor.{h, cc}
  11640. * src/MultiDiskAdaptor.{h, cc}
  11641. * src/HttpHeaderProcessor.{h, cc}
  11642. * src/AbstractSingleDiskAdaptor.{h, cc}
  11643. * src/Util.{h, cc}
  11644. * test/UtilTest.cc
  11645. * src/DefaultDiskWriter.{h, cc}
  11646. * src/FtpConnection.{h, cc}
  11647. * src/AbstractDiskWriter.{h, cc}
  11648. Removed duplicate code.
  11649. * src/StreamCheckIntegrityEntry.cc
  11650. Removed unnecessary include.
  11651. * src/DiskWriter.h
  11652. Included Exception.h
  11653. * src/option_processing.cc
  11654. Included 2 files and added doc
  11655. * src/TrackerWatcherCommand.cc
  11656. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11657. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11658. Changed CheckIntegrityEntry interface so that it can define
  11659. the action when all the chunk checksums are valid.
  11660. * src/CheckIntegrityEntry.h
  11661. * src/StreamCheckIntegrityEntry.{h, cc}
  11662. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11663. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11664. to exit rather than doing seeding. So, it would be good to toggle this
  11665. behavior.
  11666. * src/CheckIntegrityCommand.cc
  11667. * src/AbstractCommand.cc
  11668. * src/RequestGroup.cc
  11669. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11670. Reflect the download length of in-flight pieces.
  11671. It makes the download length readout more precise.
  11672. * src/DefaultPieceStorage.{h, cc}
  11673. * test/DefaultPieceStorageTest.cc
  11674. * src/a2functional.h
  11675. * test/a2functionalTest.cc
  11676. Lower CPU load when --max-download-limit is used.
  11677. There is up and down in speed indicator when enabling
  11678. http-pipelining but a download goes well. I think the problem is that
  11679. because http-pipelining is enabled, DownloadCommand is created for
  11680. each segment and in its constructor, PeerStat::downloadStart() is
  11681. called. In PeerStat::downloadStart(), speed calculation object is
  11682. reseted, which makes download speed zero.
  11683. * src/DownloadCommand.cc
  11684. Rewritten using accumulate.
  11685. * src/RequestGroupMan.cc (calculateStat)
  11686. Code clearnup.
  11687. * src/FtpNegotiationCommand.cc
  11688. * src/HttpResponseCommand.cc
  11689. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11690. Fixed: Can not resume: aria2 reports download already finished.
  11691. * src/AbstractCommand.{h, cc}
  11692. * src/HttpResponseCommand.cc
  11693. * src/FtpNegotiateCommand.cc
  11694. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11695. Now a file is stored in the directory specified in .metalnk file
  11696. (file[@name]).
  11697. * src/Metalink2RequestGroup.cc
  11698. Create the directory structure when opening the file if it doesn't
  11699. exist.
  11700. * src/AbstractDiskWriter.cc
  11701. * src/Util.{h, cc}
  11702. * src/File.h
  11703. * test/UtilTest.cc
  11704. Removed file name comparison
  11705. * src/Metalink2RequestGroup.cc
  11706. * src/HttpResponseCommand.cc
  11707. Rewritten using Util::mkdirs()
  11708. * src/FileEntry.cc (setupDir)
  11709. * test/FileEntryTest.cc
  11710. Updated doc
  11711. * src/SingleFileDownloadContext.h
  11712. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11713. Now SleepCommand dispatches nextCommand when halt is requested.
  11714. It avoids a possible long wait after hitting CTRL-C.
  11715. * src/SleepCommand.{h, cc}
  11716. * src/RequestGroupAware.{h, cc}
  11717. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11718. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  11719. to open listen port, then remove the port number from the tracker
  11720. request.
  11721. * src/DefaultBtAnnounce.cc
  11722. * test/DefaultBtAnnounceTest.cc
  11723. * test/MockPieceStorage.h
  11724. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  11725. them more testable.
  11726. * src/DefaultBtAnnounce.{h, cc}
  11727. * src/DefaultBtContext.{h, cc}
  11728. * src/Util.{h, cc}
  11729. * test/DefaultBtAnnounceTest.cc
  11730. * test/DefaultBtContextTest.cc
  11731. * test/UtilTest.cc
  11732. Added 'B' to upload bytes readout.
  11733. * src/ConsoleStatCalc.cc
  11734. Now the listen port for BitTorrent download is opened when it is
  11735. needed.
  11736. * src/DownloadEngineFactory.cc
  11737. * src/BtSetup.{h, cc}
  11738. * src/PeerListenCommand.{h, cc}
  11739. Now an exception thrown while parsing tracker response is now logged.
  11740. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  11741. called, which means no retry is made in this case, assuming a tracker
  11742. has a problem.
  11743. * src/TrackerWatcherCommand.cc
  11744. Fixed: downloading a file whose length is unkown fails.
  11745. * src/DownloadCommand.cc
  11746. Simplified prepareForNextSegment()
  11747. * src/DownloadCommand.cc
  11748. Updated
  11749. * po/POTFILES.in
  11750. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11751. Re-implemented a file listing for Metalink, which was dropped while
  11752. http/ftp/torrent integration was being implemented.
  11753. * src/MetalinkHelper.{h, cc}: New class.
  11754. * test/MetalinkHelperTest.cc
  11755. * src/main.cc
  11756. * src/Metalink2RequestGroup.cc
  11757. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11758. Added the ability to display the detailed torrent file information.
  11759. Now -S option gives not only a file listing, but also total download
  11760. length, info hash, announce URI, piece length, the number of pieces,
  11761. and mode(single or multi-torrent).
  11762. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  11763. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  11764. KiB)
  11765. * test/UtilTest.cc
  11766. * src/main.cc
  11767. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11768. Added ftp://USER:PASSWD@Servername automatic parsing.
  11769. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  11770. _password. Recognize username and password in URI.
  11771. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11772. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11773. * src/RequestFactory.{h, cc}: Removed.
  11774. * src/AuthConfigFactory.{h, cc}: New class.
  11775. * src/FtpConnection.cc: Use AuthConfigFactory.
  11776. * src/HttpRequest.cc: Use AuthConfigFactory.
  11777. * test/HttpRequestTest.cc: Updated.
  11778. * test/RequestTest.cc: Updated.
  11779. * test/AuthConfigFactoryTest.cc: New class.
  11780. * test/RequestFactoryTest.cc: Removed.
  11781. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11782. Use RequestGroup::allDownloadFinished() to decide whether the control
  11783. file should be removed or saved.
  11784. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11785. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11786. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11787. Use File::renameTo()
  11788. * src/DefaultBtProgressInfoFile.cc
  11789. Added --no-file-allocation-limit command-line option.
  11790. * src/version_usage.cc
  11791. * src/option_processing.cc
  11792. * src/OptionHandlerFactory.cc
  11793. * src/RequestGroup.{h, cc}
  11794. * src/BtCheckIntegrityEntry.cc
  11795. * src/StreamCheckIntegrityEntry.cc
  11796. * src/prefs.h
  11797. * doc/aria2c.1.txt
  11798. * doc/aria2c.1
  11799. Now prealloc is the default value for --file-allocation option.
  11800. * src/version_usage.cc
  11801. * src/option_processing.cc
  11802. * doc/aria2c.1.txt
  11803. * doc/aria2c.1
  11804. Don't URL-encode user-agent.
  11805. * src/HttpRequest.cc
  11806. Updated translations
  11807. * po/LINGUAS: Added nl for Dutch translation.
  11808. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11809. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11810. * po/POTFILES.in: Updated.
  11811. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11812. Added the ability to recognize url-list in a torrent file.
  11813. The retrieved URLs are attached to the corresponding FileEntry.
  11814. * src/DefaultBtContext.{h, cc}
  11815. * src/FileEntry.{h, cc}
  11816. * test/DefaultBtContextTest.cc
  11817. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11818. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11819. after the download finishes.
  11820. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11821. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11822. the data smaller than block length.
  11823. A block length can be specified by constructor's argument.
  11824. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11825. Get a missing piece in the range of given FileEntry. This function is
  11826. not used in the program yet.
  11827. * src/Util.h: Added some macros.
  11828. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11829. Added HTTP/1.1 keep alive and pipelining support.
  11830. See --enable-http-keep-alive and --enable-http-pipelining option.
  11831. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11832. Segment.
  11833. * src/HttpDownloadCommand.{h, cc}
  11834. * src/OptionHandlerFactory.cc
  11835. * src/HttpConnection.{h, cc}
  11836. * src/version_usage.cc
  11837. * src/HttpInitiateConnectionCommand.cc
  11838. * src/FtpInitiateConnectionCommand.cc
  11839. * src/Segment.h
  11840. * src/HttpRequestCommand.{h, cc}
  11841. * src/option_processing.cc
  11842. * src/prefs.h
  11843. * src/HttpResponseCommand.cc
  11844. * src/SegmentMan.{h, cc}
  11845. * src/FtpNegotiateCommand.cc
  11846. * src/HttpProxyResponseCommand.cc
  11847. * src/Request.cc
  11848. * src/HttpRequest.cc
  11849. * src/DownloadCommand.cc
  11850. * test/HttpRequestTest.cc
  11851. * test/RequestTest.cc
  11852. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11853. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11854. finished.
  11855. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11856. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11857. catching it inside the method.
  11858. When no file entry is found in a metalink without querying user
  11859. preferences, throw the exception with the error message that suggests
  11860. metalink file is probably broken.
  11861. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11862. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11863. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11864. processed.
  11865. * src/RequestGroupMan.cc (removeStoppedGroup)
  11866. Added debug message.
  11867. * src/BtPostDownloadHandler.cc
  11868. * src/MetalinkPostDownloadHandler.cc
  11869. * src/PostDownloadHandler.{h, cc}
  11870. * src/RequestGroup.cc
  11871. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11872. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11873. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11874. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11875. stops and there are any unfinished or in-progress downloads.
  11876. Added the legend of "stat".
  11877. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11878. Throw exception when chunck checksum verification fails.
  11879. * src/DownloadCommand.cc (validatePieceHash): New function.
  11880. * src/PiecedSegment.{h, cc} (clear): New function.
  11881. * src/GrowSegment.{h, cc} (clear): New function.
  11882. * src/Segment.h (clear): New function.
  11883. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11884. * test/SegmentTest.cc
  11885. * test/GrowSegmentTest.cc
  11886. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11887. Do not send referer when redirected.
  11888. * src/Request.cc (redirectUrl)
  11889. * test/RequestTest.cc
  11890. * test/HttpRequestTest.cc
  11891. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11892. Implemented BitTorrent/http/ftp integrated download.
  11893. I've rewritten lots of files and now some headers have forward
  11894. class declarations to reduce compile time.
  11895. The implementation is extremely alpha stage, I recommend to use this
  11896. for testing purpose only.
  11897. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11898. Fixed the compilation error on 64bit platform.
  11899. * test/HttpHeaderProcessorTest.cc
  11900. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11901. Merged Ross's patch that fixes compilation problem in MinGW
  11902. * test/DefaultBtProgressInfoFileTest.cc
  11903. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11904. Updated fr.po by sebone
  11905. * po/fr.po
  11906. Updated man page.
  11907. * doc/aria2c.1.txt
  11908. * Release 0.11.3
  11909. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11910. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11911. failure in Metalink.
  11912. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11913. Automatically save *.aria2 control file of http/ftp download in every
  11914. 60 seconds.
  11915. * src/AutoSaveCommand.{h, cc}: New class.
  11916. * src/TimeBasedCommand.{h, cc}: New class.
  11917. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11918. Disable parameterized URI support by default. Added -P option to
  11919. enable the feature.
  11920. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11921. * src/OptionHandlerFactory.cc
  11922. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11923. Updated Japanese translation.
  11924. * po/ja.po
  11925. Updated man page.
  11926. * doc/aria2c.1.txt
  11927. * Release 0.11.3-rc
  11928. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11929. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11930. it is successful, then renamed to *.aria2.
  11931. This prevents *.aria2 file from being truncated or corrupted when
  11932. file system becomes out of space.
  11933. * src/DefaultBtProgressInfoFile.cc (save)
  11934. * src/SegmentMan.cc (save)
  11935. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11936. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11937. Reduced the fragmentation of bitfield in http/ftp download.
  11938. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11939. * test/BitfieldManTest.cc
  11940. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11941. Added the ability to disable segmented download in .metalink.
  11942. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11943. 'url' tag.
  11944. * src/MetalinkEntry.{h, cc}
  11945. * src/RequestResource.{h, cc}
  11946. * src/MetalinkRequestInfo.cc
  11947. * src/Xml2MetalinkProcessor.cc
  11948. * test/Xml2MetalinkProcessorTest.cc
  11949. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11950. Added parameterized URI support.
  11951. * src/main.cc: -Z option added.
  11952. * src/OptionHandlerFactory.cc
  11953. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11954. * src/PStringDatum.h: New class.
  11955. * src/PStringSegment.{h,cc}: New class.
  11956. * src/PStringNumLoop.h: New class.
  11957. * src/PStringSelect.h: New class.
  11958. * src/NumberDecorator.h: New class.
  11959. * src/FixedWidthNumberDecorator.h: New class.
  11960. * src/AlphaNumberDecorator.h: New class.
  11961. * src/PStringVisitor.h: New class.
  11962. * src/PStringBuildVisitor.{h,cc}: New class.
  11963. * src/ParameterizedStringParser.{h,cc}: New class.
  11964. * src/Util.{h,cc}
  11965. (isNumber): New function.
  11966. (isLowercase): New function.
  11967. (isUppercase): New function.
  11968. (alphaToNum): New function.
  11969. * test/ParameterizedStringParserTest.cc: New class.
  11970. * test/AlphaNumberDecoratorTest.cc: New class.
  11971. * test/PStringBuildVisitorTest.cc: New class.
  11972. * test/UtilTest.cc
  11973. (testIsNumber): New function.
  11974. (testIsLowercase): New function.
  11975. (testIsUppercase): New function.
  11976. (testAlphaToNum): New function.
  11977. Added '\n' after the error message
  11978. * src/RequestInfo.h (printDownloadAbortMessage)
  11979. Added auto file renaming feature in http(s)/ftp download.
  11980. * src/main.cc: Added --auto-file-renaming command-line option.
  11981. * src/OptionHandlerFactory.cc
  11982. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11983. * src/RequestGroup.{h, cc}
  11984. (shouldCancelDownloadForSafety): Rewritten
  11985. (tryAutoFileRenaming): New function.
  11986. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11987. * src/HttpResponseCommand.cc
  11988. (executeInternal): Removed the call to RequestGroupMan::
  11989. isSameFileBeingDownloaded()
  11990. * src/FtpNegotiateCommand.cc
  11991. (recvSize): Removed the call to RequestGroupMan::
  11992. isSameFileBeingDownloaded()
  11993. * test/RequestGroupTest.cc: New class.
  11994. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11995. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11996. IO.
  11997. * src/DefaultBtProgressInfoFile.cc
  11998. * src/MetaFileUtil.cc
  11999. * src/SimpleLogger.cc
  12000. * src/SegmentMan.cc
  12001. * src/Util.cc
  12002. * src/Platform.cc
  12003. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12004. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12005. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12006. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12007. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12008. Fixed the bug that prevents file allocation is not done when
  12009. dowloading multi-torrent file.
  12010. * src/AbstractDiskWriter.cc (openFile)
  12011. Increase the maximum number of -j option from 15 to 45.
  12012. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12013. Added fr.po, thanks to Charles Landemaine.
  12014. * po/fr.po
  12015. * po/LINGUAS
  12016. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12017. gcc 3.4.4 support:
  12018. * src/DefaultBtContext.cc: int32_t -> int
  12019. * src/main.cc: int -> int32_t, int32_t -> int
  12020. * src/messageDigest.h: uint32_t -> unsigned int
  12021. * src/NameResolver.h: int32_t -> int
  12022. * src/PeerConnection.cc: int -> int32_t
  12023. * src/SpeedCalc.cc: int32_t -> int
  12024. * src/TrackerUpdateCommand.h: int -> int32_t
  12025. * src/Util.cc: int32_t -> int
  12026. * src/Util.h: int32_t -> int
  12027. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12028. * test/AnnounceListTest.cc: int -> int32_t
  12029. * test/ChunkedEncodingTest.cc: int -> int32_t
  12030. * test/DataTest.cc: int -> int32_t
  12031. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12032. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12033. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12034. * test/FeatureConfigTest.cc: int -> int32_t
  12035. * test/MetalinkEntryTest.cc: int -> int32_t
  12036. * test/MockBtRequestFactory.h: int -> int32_t
  12037. * test/MockPieceStorage.h: int -> int32_t
  12038. * test/OptionTest.cc: int -> int32_t
  12039. * test/RequestTest.cc: int -> int32_t
  12040. * test/SegmentManTest.cc: int -> int32_t
  12041. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12042. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12043. Move sleep functions to Util class:
  12044. * src/Util.cc
  12045. (sleep): New function.
  12046. (usleep): New function.
  12047. * src/DownloadCommand.cc: sleep -> Util::sleep
  12048. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12049. MinGW build enhancements. The following files are added:
  12050. * src/timegm.{c,h}
  12051. Changes to support the above new files:
  12052. * configure.ac
  12053. * src/Makefile.am
  12054. * src/a2time.h
  12055. * src/Util.cc:
  12056. * src/strptime.c: Added support for %Z option.
  12057. Fixed MinGW non-blocking bug.
  12058. * src/SocketCore.cc
  12059. * src/HttpRequestCommand.cc
  12060. Miscellenous build fixes/enhancements.
  12061. * configure.ac: Added summary report.
  12062. * src/Platform.h: Tweaked #include's.
  12063. * src/a2netcompat.h: Tweaked #include's.
  12064. * src/strptime.h: Tweaked #include's.
  12065. * src/gai_strerror.c: Tweaked #include's.
  12066. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12067. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12068. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12069. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12070. Increased the initial connection size in BitTorrent download to 40.
  12071. * src/BtRuntime.h
  12072. Added the usage message of --peer-id-prefix option.
  12073. * src/main.cc
  12074. * Release 0.11.2
  12075. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12076. MessageDigestHelper is introduced in order to simplify the use
  12077. of message digest. Removed repeated code.
  12078. The message digest algorithm is now specified by string, like "sha1",
  12079. "md5".
  12080. * src/messageDigest.{h, cc}
  12081. * src/MessageDigestHelper.{h, cc}: New class.
  12082. * src/DefaultPieceStorage.cc
  12083. * src/DefaultBtContext.{h, cc}
  12084. (computeFastSet): New function.
  12085. (setInfoHash): Added for unit testing.
  12086. (setNumPieces): Added for unit testing.
  12087. * src/DefaultBtInteractive.cc
  12088. * src/BtPieceMessage.cc
  12089. * src/Peer.cc
  12090. * src/Checksum.h
  12091. * src/message.h
  12092. * src/IteratableChecksumValidator.h
  12093. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12094. inside it.
  12095. * src/SegmentMan.{h, cc}
  12096. (checkIntegrity): Removed.
  12097. * src/IteratableChunkChecksumValidator.{h, cc}
  12098. * src/Util.h
  12099. (sha1Sum): Removed.
  12100. (simpleMessageDigest): Removed.
  12101. (fileChecksum): Removed.
  12102. (computeFastSet): Removed.
  12103. * src/ShaVisitor.cc
  12104. * src/ChunkChecksum.h
  12105. * src/DownloadCommand.cc
  12106. Removed messageDigest virtual functions.
  12107. * src/MultiDiskAdaptor.{h, cc}
  12108. * src/DiskAdaptor.h
  12109. * src/ByteArrayDiskWriter.h
  12110. * src/DiskWriter.h
  12111. * src/DiskAdaptorWriter.h
  12112. * src/AbstractSingleDiskAdaptor.{h, cc}
  12113. * src/AbstractDiskWriter.{h, cc}
  12114. Fixed comilation error when message digest is disabled.
  12115. * src/MetalinkEntry.{h, cc}
  12116. * src/MetalinkRequestInfo.cc
  12117. Removed srandom and random.
  12118. * src/SimpleRandomizer.h
  12119. Added size() virtual function to DiskAdaptor
  12120. * src/MultiDiskAdaptor.h
  12121. Fixed the bug that causes that files are not opened correctly in
  12122. multi-file torrent.
  12123. * src/TorrentRequestInfo.cc
  12124. * src/MultiDiskAdaptor.cc
  12125. Added SHA256 support
  12126. * src/messageDigest.cc
  12127. * src/Xml2MetalinkProcessor.cc
  12128. Show supported message digest algorithms
  12129. * src/main.cc
  12130. Updated contact info.
  12131. * src/main.cc
  12132. Applied Ross's patch
  12133. * src/a2netcompat.h
  12134. * src/main.cc
  12135. Fixed the bug that prevents a remote metalink from not being processed
  12136. even if '-o foo.metalink' is specified.
  12137. * src/MetalinkRequestInfo.cc
  12138. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12139. Merged Dan's patch:
  12140. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12141. Use va_copy to avoid core dump on amd64:
  12142. * src/SimpleLogger.cc
  12143. Updated contact info.
  12144. * src/main.cc
  12145. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12146. digest is not available.
  12147. * src/MetalinkEntry.h
  12148. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12149. Make a2netcompat.h include a2io.h to fix compilation error:
  12150. * src/a2netcompat.h
  12151. * src/SocketCore.cc: Removed include of a2io.h
  12152. * src/Util.cc: Removed include of a2io.h
  12153. Gather time related functions to a2time.h:
  12154. * src/a2time.h: New file.
  12155. * src/DefaultPeerStorage.cc
  12156. * src/SimpleLogger.cc
  12157. * src/Util.{h, cc}
  12158. * src/SimpleRandomizer.h
  12159. * src/TimeA2.{h,cc}
  12160. * src/DownloadCommand.cc
  12161. * src/main.cc
  12162. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12163. a2netcompat.h:
  12164. * src/NameResolver.cc
  12165. Fixed compilation error without openssl:
  12166. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12167. Added default block to suppress compiler warnings:
  12168. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12169. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12170. MinGW build enhancements. The following files are added:
  12171. * src/gai_strerror.{c,h}
  12172. * src/gettimeofday.{c,h}
  12173. Changes to support the above new files:
  12174. * configure.ac
  12175. * src/Makefile.am
  12176. * src/a2netcompat.h
  12177. * src/TimeA2.cc
  12178. * src/DefaultPeerStorage.cc
  12179. * src/NameResolver.cc: removed mingw_strerror() function.
  12180. * src/SocketCore.cc: removed mingw_strerror() function.
  12181. Miscellaneous MinGW build fixes.
  12182. * src/a2io.h: Use _lseeki64() instead of lseek()
  12183. * src/common.h
  12184. * src/DefaultFileAllocator.cc
  12185. * src/GlowFileAllocator.cc
  12186. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12187. * src/NameResolver.cc
  12188. (callback): Changed int32_t to int.
  12189. (resolve): Changed int32_t to int.
  12190. * src/Platform.cc
  12191. * src/Platform.h
  12192. * test/MultiDiskWriterTest.cc
  12193. * test/PeerMessageUtilTest.cc
  12194. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12195. Other enhancements and fixes.
  12196. * src/HttpRequestCommand.cc
  12197. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12198. * src/SocketCore.cc:
  12199. (error): New function to abstract errno/WSAGetLastError().
  12200. (errorMsg): New function to abstract errno/WSAGetLastError().
  12201. (initiateSecureConnection): Added more detailed error reporting.
  12202. * src/SocketCore.h: Added private variable blocking, to allow
  12203. proper handling of OpenSSL psuedo-errors.
  12204. * src/message.h
  12205. (EX_SSL_INIT_FAILURE)
  12206. (EX_SSL_IO_ERROR)
  12207. (EX_SSL_PROTOCOL_ERROR)
  12208. (EX_SSL_UNKNOWN_ERROR)
  12209. (EX_SSL_CONNECT_ERROR)
  12210. (EX_SOCKET_BLOCKING)
  12211. (EX_SOCKET_NONBLOCKING)
  12212. (EX_SOCKET_UNKNOWN_ERROR)
  12213. * src/Util.cc
  12214. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12215. reserved name.
  12216. (httpGMT): Fixed typo.
  12217. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12218. Merged Ross's win32 patch(manually)
  12219. In the course of merging, following files are added.
  12220. * src/strptime.{h,c}
  12221. * src/libgen.{h,c}
  12222. * src/inet_aton.{h,c}
  12223. * src/Platform.{h,cc}
  12224. * src/localtime_r.{h,c}
  12225. * src/getaddrinfo.{h,c}
  12226. I've gethered network related things, and put them to following file:
  12227. * src/a2netcompat.h
  12228. Also io related things are put to following file:
  12229. * src/a2io.h
  12230. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12231. * src/message.h
  12232. (MSG_ALLOCATION_COMPLETED)
  12233. (EX_TOO_LARGE_FILE)
  12234. (EX_SIZE_MISMATCH)
  12235. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12236. (EX_INVALID_CHUNK_CHECKSUM)
  12237. (EX_INVALID_RANGE_HEADER)
  12238. * src/FileAllocationCommand.cc
  12239. * src/HttpResponse.cc
  12240. * src/RequestGroup.cc
  12241. * src/MultiDiskAdaptor.cc
  12242. * src/OptionHandlerImpl.h
  12243. * src/HttpResponseCommand.cc
  12244. * src/FtpNegotiateCommand.cc
  12245. * src/IteratableChecksumValidator.cc
  12246. * src/SegmentMan.cc
  12247. * src/ChunkChecksumValidator.cc
  12248. Added Randomizer::getRandomNumber(long int)
  12249. * src/Randomizer.h (getRandomNumber)
  12250. * src/SimpleRandomizer.h (getRandomNumber)
  12251. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12252. * src/Util.cc (randomAlpha): Use this new function.
  12253. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12254. Converted int's to in32_t. long long int's are also converted to
  12255. int64_t
  12256. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12257. Fixed the bug that prevents cookies from being sent to the server
  12258. if the domain of cookie is FQDN and starts with ".".
  12259. * src/Cookie.cc (match)
  12260. To add the ability to change peer id.
  12261. * src/DefaultBtContext.h
  12262. (_peerIdPrefix): New variable
  12263. (setPeerIdPrefix): New function.
  12264. * src/torrentRequestInfo.cc
  12265. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12266. DefaultBtContext.
  12267. * src/main.cc (main): Added peer-id-prefix command-line option.
  12268. The usage message is not added yet.
  12269. * src/DefaultBtContext.cc
  12270. (generatePeerId): Use _peerIdPrefix.
  12271. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12272. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12273. Fixed the bug that prevents filename in content-disposition from
  12274. being retrieved when filename is not quoted.
  12275. * src/Util.cc (getContentDispositionFilename)
  12276. Fixed the bug that causes infinate loop and memory leak when file open
  12277. operation failed.
  12278. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12279. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12280. Fixed the bug that causes segfault when all URIs specified are
  12281. unsupported.
  12282. * src/RequestGroupMan.cc (getInitialCommands)
  12283. Check if RequestGroup::createNextCommand() returns empty list of
  12284. commands.
  12285. * src/RequestGroup.cc (createNextCommand)
  12286. Change log level from info to error so that users can notice that
  12287. an error occurred.
  12288. Fixed the bug that causes segfault when a zero-sized file is
  12289. downloaded.
  12290. * src/BitfieldMan.cc (isAllBitSet)
  12291. Return true if bitfieldLength is 0.
  12292. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12293. * src/main.cc
  12294. (showUsage): Added 3 usage examples for metalink download.
  12295. Replace MetalinkChunkChecksum with ChunkChecksum.
  12296. * src/MetalinkChunkChecksum.h: Removed.
  12297. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12298. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12299. * src/Xml2MetalinkProcessor.cc
  12300. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12301. * src/MetalinkRequestInfo.cc (execute)
  12302. * Release 0.11.1
  12303. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12304. Reads URIs from stdin when "-i -" is specified.
  12305. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12306. * src/UriListParser.h, src/UriListParser.cc: New class.
  12307. * src/StreamUriListParser.h: New class.
  12308. * src/FileUriListParser.h: New class.
  12309. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12310. instead of UriFileListParser.
  12311. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12312. Made console readout more readable.
  12313. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12314. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12315. Fix the bug that causes -s option not to work.
  12316. * src/main.cc (main)
  12317. * src/a2algo.h: New file.
  12318. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12319. Create directory structure specified in metalink file.
  12320. * src/RequestGroup.h, src/RequestGroup.cc
  12321. (initAndOpenFile): Create a directory to store files if it does not
  12322. exist.
  12323. (getDir): New function.
  12324. Added ETA and download speed for an individual file to readout.
  12325. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12326. * src/RequestGroup.h
  12327. (calculateDownloadSpeed): New function.
  12328. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12329. Made -S option work with metalink file and provided selective download
  12330. to metalink.
  12331. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12332. (filename): Removed.
  12333. (file): New variable.
  12334. (size): Removed.
  12335. (operator=): Updated.
  12336. (getPath): New function.
  12337. (getLength): New function.
  12338. (toFileEntry): New function.
  12339. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12340. (execute): Use toStream.
  12341. (showFileEntry): Removed.
  12342. * src/MetalinkRequestInfo.h
  12343. (targetFiles): New variable.
  12344. (setTargetFiles): New variable.
  12345. * src/MetalinkRequestInfo.cc
  12346. (execute): Added the ability to print file information included in
  12347. a metalink file.
  12348. Added selective download mode to metalink.
  12349. * src/main.cc
  12350. (showUsage): Updated to denote that -S and --select-file options are
  12351. applicable to metalink.
  12352. * src/FileEntry.h
  12353. (operator=): New function.
  12354. (getBasename): New function.
  12355. (getDirname): New function.
  12356. * src/Util.h, src/Util.cc
  12357. (toStream): New function.
  12358. * src/Xml2MetalinkProcessor.cc: Updated.
  12359. Made aria2 work with metalink with directory structure.
  12360. * src/File.h, src/File.cc
  12361. (getBasename): New function.
  12362. (getDirname): New function.
  12363. * src/RequestGroup.h, src/RequestGroup.cc
  12364. (_topDir): New variable.
  12365. (setTopDir): New function.
  12366. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12367. Rewrote HTTP header parsing with stringstream.
  12368. * src/HttpConnection.h, src/HttpConnection.cc
  12369. (HttpRequestEntry): New class.
  12370. (headerBuf): Removed.
  12371. (headerBufLength): Removed.
  12372. (outstandingHttpRequests): Now its element type is
  12373. HttpRequestEntryHandle.
  12374. (findEndOfHeader): Removed.
  12375. (receiveResponse): Rewritten.
  12376. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12377. Updated doc for -j option to notice that it should be used with -i
  12378. option.
  12379. * src/main.cc (showUsage)
  12380. Removed unused classes.
  12381. * src/RequestInfo.h
  12382. (FileInfo): Removed.
  12383. (checksum): Removed.
  12384. (fileInfo): Removed.
  12385. (setChecksum): Removed.
  12386. (getChecksum): Removed.
  12387. (getFileInfo): Removed.
  12388. Use ISO units.
  12389. * src/ConsoleDownloadEngine.cc
  12390. * src/TorrentConsoleDownloadEngine.cc
  12391. * src/Util.cc (abbrevSize)
  12392. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12393. Added the default listening ports to the help message.
  12394. * src/main.cc (showUsage)
  12395. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12396. Reduce the number of calls to gettimeofday to lower CPU load.
  12397. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12398. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12399. * src/Peer.h (calculateUploadSpeed): New function.
  12400. (calculateDownloadSpeed): New function.
  12401. * src/DefaultPeerStorage.cc
  12402. (CalculateStat): Added _now variable.
  12403. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12404. and Peer::calculateUploadSpeed(const struct timeval&)
  12405. Drop connection if no request or piece message is exchanged in
  12406. a certain interval.
  12407. * src/DefaultBtInteractive.h
  12408. (btRuntime): New variable.
  12409. (inactiveCheckPoint): New variable.
  12410. (checkActiveInteraction): New function.
  12411. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12412. request or piece message is received.
  12413. (checkActiveInteraction): New function.
  12414. (doInteractionProcessing): Call checkActiveInteraction.
  12415. Fixed the bug that causes remote Metalink and Torrent files are not
  12416. processed.
  12417. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12418. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12419. Changed format of log file.
  12420. * src/SimpleLogger.cc
  12421. * Release 0.11.0
  12422. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12423. * src/AbstractCommand.cc
  12424. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12425. MSG_MAX_TRY from error to info.
  12426. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12427. * src/message.h
  12428. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12429. (MSG_DOWNLOAD_ABORTED): Added %s.
  12430. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12431. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12432. * src/PeerAbstractCommand.cc
  12433. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12434. * src/Request.h
  12435. (cookieBox): Made ShardHandle.
  12436. * src/RequestGroup.h, src/RequestGroup.cc
  12437. (createNextCommandWithAdj): New function.
  12438. * src/FileAllocationCommand.cc
  12439. (executeInternal): Use createNextCommandWithAdj().
  12440. * src/CheckIntegrityCommand.cc
  12441. (executeInternal): Use createNextCommandWithAdj().
  12442. Added --load-cookies command-option.
  12443. * src/OptionHandlerFactory.cc
  12444. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12445. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12446. Now aria2 can handle cookie's expiration date.
  12447. * src/Cookie.h (expires): Changed its type to time_t.
  12448. * src/main.cc: Added --load-cookies command-line option.
  12449. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12450. * src/Util.h, src/Util.cc (httpGMT): New function.
  12451. * src/Request.cc (Request): Initialize cookieBox using
  12452. CookieBoxFactory.
  12453. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12454. * src/CookieParser.h, src/CookieParser.cc: New class.
  12455. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12456. * src/HttpResponseCommand.cc
  12457. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12458. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12459. download.
  12460. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12461. Added -j command-line option.
  12462. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12463. * src/main.cc
  12464. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12465. Rewritten using stringstream.
  12466. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12467. Rewritten using stringstream.
  12468. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12469. Make download size shown in MB, KB.
  12470. * src/ConsoleDownloadEngine.h (sendStatistics)
  12471. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12472. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12473. Accept incoming connections if download rate is low.
  12474. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12475. (_lowestSpeedLimit): New variable.
  12476. (setLowestSpeedLimit): New function.
  12477. (execute): Accept incoming connections if download rate is low.
  12478. MAX_PEERS is ignored in this case.
  12479. Disable PREF_OUT in multiple concurrent download:
  12480. * src/RequestGroup.h, src/RequestGroup.cc
  12481. (setUserDefinedFilename): New function.
  12482. * src/DownloadEngineFactory.cc
  12483. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12484. concurrent download.
  12485. * src/DefaultSegmentManFactory.cc
  12486. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12487. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12488. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12489. Added its overloaded method.
  12490. * src/RequestGroup.h
  12491. (_numConcurrentCommand): New variable.
  12492. (setNumConcurrentCommand): New function.
  12493. * src/RequestGroup.cc
  12494. Abort download if same file is being downloaded concurrently.
  12495. * src/RequestGroup.h, src/RequestGroupMan.cc
  12496. (isSameFileBeingDownloaded): New function.
  12497. * src/HttpResponseCommand.cc (executeInternal)
  12498. * src/FtpNegotiateCommand.cc (recvSize)
  12499. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12500. * main.cc: Added help message for -i option.
  12501. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12502. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12503. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12504. * src/MetalinkEntry.h
  12505. (checksum): Changed to ChecksumHandle
  12506. * src/MetalinkRequestInfo.cc
  12507. (checksum): Changed to ChecksumHandle
  12508. * src/File.cc
  12509. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12510. * src/common.h
  12511. (DIR_OPEN_MODE): New definition
  12512. * src/RequestGroup.cc
  12513. (prepareForNextAction): Added an argument.
  12514. * src/message.h
  12515. (MSG_GOOD_CHECKSUM): New definition
  12516. (MSG_BAD_CHECKSUM): New definition
  12517. * src/HttpResponseCommand.cc
  12518. (handleDefaultEncoding): Continue download sequence in new
  12519. non-segmented download.
  12520. * src/FileAllocationEntry.h
  12521. (_nextDownloadCommand): New variable.
  12522. * src/DownloadCommand.cc
  12523. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12524. available.
  12525. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12526. * src/IteratableChecksumValidator.h,
  12527. src/IteratableChecksumValidator.cc: New class.
  12528. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12529. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12530. Change file mode to 666:
  12531. * src/common.h (OPEN_MODE): New definition.
  12532. * src/File.cc
  12533. * src/Util.cc
  12534. * src/Directry.cc
  12535. * src/AbstractDiskWriter.cc
  12536. Change the level of log message "download aborted" to debug:
  12537. * src/PeerAbstractCommand.cc (execute)
  12538. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12539. * src/TrackerWatcherCommand.cc
  12540. (createCommand): Sleep some seconds after request failed.
  12541. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12542. then abort tracker request.
  12543. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12544. * Added the simultaneous download feature.
  12545. * src/main.cc: Print "Exception caught: " when exception is caught.
  12546. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12547. * src/ActivePeerConnectionCommand.cc
  12548. * src/PeerInteractionCommand.cc
  12549. * src/BtRuntime.h
  12550. (cuidCounter): Removed.
  12551. (getNewCuid): Removed.
  12552. * src/DownloadEngineFactory.cc
  12553. * src/PeerListenCommand.cc
  12554. * src/TrackerUpdateCommand.cc
  12555. * src/PeerInitiateConnectionCommand.cc
  12556. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12557. * src/PeerAbstractCommand.cc
  12558. (onAbort): Call PeerStorage::returnPeer()
  12559. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12560. (incomingPeers): New variable.
  12561. (addIncomingPeer): New function.
  12562. (returnPeer): New function.
  12563. (onErasingPeer): New function.
  12564. (addPeer): push_back -> push_front
  12565. (getActivePeers): Rewritten.
  12566. (calculateStat): Rewritten.
  12567. * src/PeerStorage.h
  12568. (TransferStat::copy): New function.
  12569. (TransferStat::TransferStat): New function.
  12570. (TransferStat::operator=): New function.
  12571. (addIncomingPeer): New function.
  12572. (returnPeer): New function.
  12573. * src/PeerListenCommand.cc
  12574. (execute): Use PeerStorage::addIncomingPeer() instead of
  12575. Peer::addPeer().
  12576. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12577. Connect to a peer actively when download speed is lower than specified
  12578. speed in torrent download:
  12579. * src/ActivePeerConnectionCommand.h: New class.
  12580. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12581. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12582. * src/main.cc: Fixed the bug that prevents download if .netrc
  12583. doesn't exist.
  12584. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12585. To cache resolved hostname:
  12586. * src/AbstractCommand.h, src/AbstractCommand.cc
  12587. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12588. Added dns cache.
  12589. * src/FtpInitiateConnectionCommand.cc
  12590. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12591. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12592. NameResolver working without ares.
  12593. * src/TorrentRequestInfo.cc
  12594. (execute): Don't cache dns in torrent download.
  12595. * src/HttpInitiateConnectionCommand.cc
  12596. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12597. * src/DNSCache.h: New class.
  12598. * src/UrlRequestInfo.cc
  12599. (execute): Use dns cache.
  12600. In http request, suppress port number in http request header if port
  12601. is 80 or 443:
  12602. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12603. request header if port is 80 or 443.
  12604. (createProxyRequest): Allways send port number.
  12605. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12606. To add the command-line option which disables netrc support:
  12607. * src/OptionHandlerFactory.cc
  12608. (createOptionHandlers): Added PREF_NO_NETRC.
  12609. * src/main.cc: Added -n option.
  12610. * src/prefs.h (PREF_NO_NETRC): New definition.
  12611. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12612. V_TRUE.
  12613. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12614. is V_FALSE. This may get configurable in the future release.
  12615. To clear peer's error status by time basis:
  12616. * src/PeerAbstractCommand.cc
  12617. (onAbort): Call Peer::startBadCondition().
  12618. * src/Peer.h, src/Peer.cc
  12619. (error): Removed.
  12620. (_badConditionStartTime): New variable.
  12621. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12622. (startBadCondition): New function.
  12623. (isGood): New function.
  12624. * src/DefaultPeerStorage.cc
  12625. (addPeer): Use Peer::isGood().
  12626. (FindFinePeer): Use Peer::isGood().
  12627. Always include port number in http request header:
  12628. * src/HttpRequest.cc (getHostText): Always include port number in
  12629. http request header.
  12630. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12631. To the ability to read options from a config file:
  12632. * src/main.cc: Command-line parameter validation is delegated to
  12633. OptionHandler class.
  12634. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12635. * src/Option.h, src/Option.cc (clear): New function.
  12636. * src/OptionParser.h, src/OptionParser.cc: New class.
  12637. * src/OptionHandler.h: New class.
  12638. * src/NameMatchOptionHandler.h: New class.
  12639. * src/OptionHandlerImpl.h: New classes.
  12640. * src/prefs.h: '_' -> '-'
  12641. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12642. (FTP_PASV): New definition.
  12643. * src/Util.h, src/Util.cc (getRealSize): New function.
  12644. To disable netrc support if .netrc file does not have correct
  12645. permissions:
  12646. * src/File.h, src/File.cc (mode): New function.
  12647. To prevent confidential information to be logged:
  12648. * src/HttpConnection.h, src/HttpConnection.cc
  12649. (eraseConfidentialInfo): New function.
  12650. (sendRequest): Call eraseConfidentialInfo().
  12651. (sendProxyRequest): Call eraseConfidentialInfo().
  12652. * src/main.cc: Validate permissions of .netrc file.
  12653. To add --user-agent command-line option:
  12654. * src/main.cc: Added new command line option: --user-agent
  12655. * src/prefs.h (PREF_USER_AGENT): New definition.
  12656. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12657. parameter to HttpRequest object.
  12658. * src/AbstractProxyRequestCommand.cc
  12659. (executeInternal): Set user-agent option parameter to HttpRequest
  12660. object.
  12661. Marged the patches from Dan Fandrich.
  12662. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12663. Use filename and size from Metalink file instead of sending HEAD
  12664. request:
  12665. * src/UrlRequestInfo.h
  12666. (_filename): New variable.
  12667. (_totalLength): New variable.
  12668. (setTotalLength): New variable.
  12669. (setFilename): New variable.
  12670. * src/MetalinkRequestInfo.cc
  12671. (execute): Set filename and size to UrlRequestInfo
  12672. * src/UrlRequestInfo.cc
  12673. (execute): Use filename and size from Metalink instead of seding
  12674. HEAD request to servers.
  12675. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12676. To add the ability to resume downloading a partially downloaded file
  12677. which is downloaded from the beginning:
  12678. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12679. takes this role.
  12680. * src/main.cc: Added -c option.
  12681. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12682. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12683. * src/prefs.h (PREF_CONTINUE): New definition.
  12684. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12685. * src/DefaultDiskWriter.cc
  12686. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12687. * src/AbstractDiskWriter.h
  12688. (glowFileAllocator): New variable.
  12689. * src/AbstractDiskWriter.cc
  12690. (openExistingFile): Now preallocate file space from the end of the
  12691. existing file if totalLength argument is specified and grater than 0.
  12692. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12693. to download exists in local, continue the download of the file.
  12694. --allow-overwrite=true is assumed in this context.
  12695. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12696. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12697. Throw exception if --check-integrity=true is specified but chunk
  12698. checksums are not provided:
  12699. * src/UrlRequestInfo.cc
  12700. Do not print URLs to stdout:
  12701. * src/UrlRequestInfo.cc
  12702. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12703. * src/Request.h: Use AuthResolver to get authentication information.
  12704. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12705. set to RequestFactory object.
  12706. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12707. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12708. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12709. create Request object.
  12710. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12711. To integrate Netrc into exsiting classes:
  12712. * src/Request.h
  12713. (_userDefinedAuthConfig): New variable.
  12714. (findNetrcAuthenticator): New function.
  12715. (segment): Removed.
  12716. (setUserDefinedAuthConfig): New function.
  12717. (resolveHttpAuthConfigItem): New function.
  12718. (resolveFtpAuthConfigItem): New function.
  12719. (resolveHttpProxyAuthConfigItem): New function.
  12720. * src/HttpRequest.h
  12721. (authConfig): Removed.
  12722. (proxyAuthConfig): Removed.
  12723. (setAuthConfig): Removed.
  12724. (setProxyAuthConfig): Removed.
  12725. * src/UrlRequest.h
  12726. (getHeadResult): Added a parameter: authConfigHandle
  12727. * src/common.h
  12728. (SingletonHolder.h): New include.
  12729. * src/main.cc
  12730. (Netrc.h): New include.
  12731. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  12732. Added initial value of PREF_NETRC_PATH.
  12733. Added the initialization of netrc.
  12734. * src/AuthConfig.h: New class.
  12735. * src/prefs.h
  12736. (PREF_NETRC_PATH): New definition.
  12737. * src/HttpAuthConfig.h: Removed.
  12738. * src/Netrc.cc
  12739. (getRequiredNextToken): New function.
  12740. (skipMacdef): New function.
  12741. (parse): Rewritten.
  12742. * src/Netrc.h
  12743. (getRequiredNextToken): New function.
  12744. (skipMacdef): New function.
  12745. * src/Util.h, src/Util.cc
  12746. (getHomeDir): New function.
  12747. * src/TrackerWatcherComand.cc
  12748. (createRequestCommand): Use AuthConfig.
  12749. * src/FtpConnection.cc
  12750. (sendUser): Use Request::resolveFtpAuthConfigItem().
  12751. (sendPass): Use Request::resolveFtpAuthConfigItem().
  12752. * src/Request.cc
  12753. (findNetrcAuthenticator): New function.
  12754. (resolveHttpAuthConfigItem): New function.
  12755. (resolveFtpAuthConfigItem): New function.
  12756. (resolveHttpProxyAuthConfigItem): New function.
  12757. * src/UrlRequestInfo.cc: Use AuthConfig.
  12758. * src/HttpRequest.cc
  12759. (createRequest): Use authConfig.
  12760. (getProxyAuthString): Use authConfig.
  12761. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  12762. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  12763. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12764. To reduce overhead to find commands whose socket is either
  12765. readable or writable in the download engine loop:
  12766. * src/Command.h, src/Command.cc
  12767. (STATUS): New enum.
  12768. (status): New variable.
  12769. (statusMatch): New function.
  12770. (setStatusActive): New function.
  12771. (setStatusInactive): New function.
  12772. * src/DownloadEngine.h, src/DownloadEngine.cc
  12773. (executeCommand): New function.
  12774. (run): Simplified.
  12775. (waitData): Call Command::setStatusActive() when command's socket is
  12776. readable or writable.
  12777. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12778. To handle Segment as SegmentHandle:
  12779. * src/AbstractCommand.cc (execute): Rewritten.
  12780. * src/SegmentMan.h: Segment -> SegmentHandle
  12781. Introducded HttpResponse class, HttpRequest class to improve code
  12782. extensiveness and make it clear:
  12783. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12784. HttpResponse class.
  12785. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12786. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12787. * src/HttpConnection.cc: Contruction of http request were moved to
  12788. HttpRequest class.
  12789. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12790. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12791. * src/HttpAuthConfig.h: New class.
  12792. * src/Range.h: New class.
  12793. To make FtpTunnel{Request, Response}Command and
  12794. HttpProxy{Request, Response}Command derived from
  12795. AbstractProxy{Request, Response}Command:
  12796. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12797. Derived from AbstractProxyRequestCommand class.
  12798. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12799. Derived from AbstractProxyResponseCommand class.
  12800. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12801. Derived from AbstractProxyRequestCommand class.
  12802. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12803. Derived from AbstractProxyResponseCommand class.
  12804. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12805. : New class.
  12806. * src/AbstractProxyResponseCommand.h,
  12807. src/AbstractProxyResponseCommand.cc: New class.
  12808. To add netrc support:
  12809. * src/Netrc.h, src/Netrc.cc: New class.
  12810. * src/Util.h, src/Util.cc (split): New function.
  12811. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12812. "Content-Range" header instead of "Range" header.
  12813. * src/HttpHeader.h
  12814. (getStatus): Removed.
  12815. (setStatus): Removed.
  12816. * src/Segment.h
  12817. (getPositionToWrite): New function.
  12818. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12819. * src/HttpHeader.h
  12820. (Range.h): New include.
  12821. (status): New variable.
  12822. (HttpHeader): Initialized status with 0.
  12823. (getStatus): New function.
  12824. (setStatus): New function.
  12825. (getRange): New function.
  12826. (HttpHeaderHandle): New function.
  12827. * src/HttpHeader.cc
  12828. (getRange): New function.
  12829. * src/Request.h
  12830. (RequestWeakHandle): New definition.
  12831. * src/HttpConnection.h
  12832. (HttpConnectionHandle): New type definition.
  12833. * src/HttpConnection.cc
  12834. (receiveResponse): Set HTTP status to headers.
  12835. * src/main.cc
  12836. (showUsage): Fixed typo.
  12837. * src/Segment.h
  12838. (SegmentHandle): New type definition.
  12839. * src/BitfieldMan.h
  12840. (getMissingUnusedLength): New function.
  12841. * src/BitfieldMan.cc
  12842. (getMissingUnusedLength): New function.
  12843. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12844. To fix static initialization order problem:
  12845. * src/BitfieldManFactory.h
  12846. (defaultRandomizer): Removed.
  12847. (factory): New variable.
  12848. (getNewFactory): Removed.
  12849. (getFactoryInstance): New function.
  12850. (setDefaultRandomizer): Rewritten.
  12851. (getDefaultRandomizer): Rewritten.
  12852. * src/BitfieldManFactory.cc
  12853. (defaultRandomizer): Removed.
  12854. (factory): Initialized to 0.
  12855. (BitfieldManFactory): Initialized randomizer to 0.
  12856. * src/DefaultPieceStorage.cc
  12857. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12858. * src/Peer.cc
  12859. (Peer): getNewFactory() -> getFactoryInstance()
  12860. * src/SegmentMan.cc
  12861. (initBitfield): getNewFactory() -> getFactoryInstance()
  12862. * src/Piece.cc
  12863. (Piece): getNewFactory() -> getFactoryInstance()
  12864. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12865. To fix the bug that causes crash on Max OS X:
  12866. * src/SimpleRandomizer.h
  12867. (getInstance): Create new instance if the static variable is null.
  12868. * src/SimpleRandomizer.cc
  12869. (randomizer): Initialized to 0.
  12870. * src/BitfieldManFactory.h
  12871. (getNewFactory): Removed the call to setRandomizer().
  12872. To fix the miscalculation of the range of checksum:
  12873. * src/BitfieldMan.h
  12874. (isBitSetOffsetRange): New function.
  12875. * src/BitfieldMan.cc
  12876. (isBitSetOffsetRange): New function.
  12877. * src/SegmentMan.cc
  12878. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12879. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12880. * Release 0.10.1
  12881. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12882. To lower CPU usage in BitTorrent download when --max-upload-limit
  12883. command-line option specified:
  12884. * src/DefaultBtMessageDispatcher.cc
  12885. (sendMessages): Calculate uploading speed only when current message
  12886. is uploading data and is not sent yet.
  12887. * src/DefaultPeerStorage.h
  12888. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12889. * src/HttpResponseCommand.cc
  12890. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12891. This fixes compile error in Soralis 10.
  12892. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12893. To fix segfault in Metalink download:
  12894. * src/UrlRequestInfo.h
  12895. (filename): Removed.
  12896. (totalLength): Removed.
  12897. (setTotalLength): Removed.
  12898. (setFilename): Removed.
  12899. * src/MetalinkRequestInfo.cc
  12900. (execute): Do not set filename and totalLength to reqInfo.
  12901. Set chunk checksum to reqInfo if it is not null.
  12902. * src/HttpResponseCommand.cc
  12903. (executeInternal): Fixed filename in log.
  12904. (handleDefaultEncoding): Removed the call to initBitfield() and
  12905. markAllPiecesDone().
  12906. (handleOtherEncoding): Added HEAD method handling.
  12907. * src/FtpNegotiateCommand.cc
  12908. (executeInternal): Added SEQ_HEAD_OK handling.
  12909. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12910. return false.
  12911. * src/FtpNegotiateCommand.h
  12912. (SEQ_HEAD_OK): New definition.
  12913. * src/SegmentMan.cc
  12914. (initBitfield): Delete bitfield.
  12915. (isChunkChecksumValidationReady): Fixed the condition.
  12916. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12917. works fine.
  12918. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12919. * src/Xml2MetalinkProcessor.h
  12920. (xpathExists): New function.
  12921. * src/Xml2MetalinkProcessor.cc
  12922. (xpathExists): New function.
  12923. Not to send HEAD request if filename and size are available in Metalink
  12924. file:
  12925. * src/UrlRequestInfo.h
  12926. (filename): New variable.
  12927. (totalLength): New variable.
  12928. (setTotalLength): New function.
  12929. (setFilename): New function.
  12930. * src/MetalinkRequestInfo.cc
  12931. (execute): Set filename and size to UrlRequestInfo.
  12932. * src/MetalinkEntry.cc
  12933. (MetalinkEntry): Initialize size with 0.
  12934. * src/UrlRequestInfo.cc
  12935. (execute): Set filename and size to SegmentMan.
  12936. Not to download rest of the files after selected files are downloaded
  12937. in BitTorrent:
  12938. * src/PieceStorage.h
  12939. (allDownloadFinished): New function.
  12940. * src/DefaultBtAnnounce.cc
  12941. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12942. downloadFinished.
  12943. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12944. * src/DefaultPieceStorage.cc
  12945. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12946. Commented out the call to finishSelectiveDownloadingMode().
  12947. (downloadFinished): Call isFilteredAllBitSet() instead of
  12948. isAllBitSet().
  12949. (allDownloadFinished): New function.
  12950. * src/DefaultBtInteractive.cc
  12951. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12952. downloadFinished().
  12953. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12954. * src/TorrentDownloadEngine.cc
  12955. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12956. * src/BitfieldMan.h
  12957. (isFilteredAllBitSet): New function.
  12958. * src/ShareRatioSeedCriteria.h
  12959. (PieceStorage.h): New include.
  12960. (pieceStorage): New variable.
  12961. (evaluate):
  12962. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12963. * src/BitfieldMan.cc
  12964. (isFilteredAllBitSet): New function.
  12965. (isAllBitSet): Filter is not took into account.
  12966. Rename --force-truncate as --allow-overwrite:
  12967. * src/TorrentRequestInfo.cc
  12968. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12969. * src/main.cc
  12970. (showUsage): --force-truncate -> --allow-overwrite
  12971. * src/message.h
  12972. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12973. * src/prefs.h
  12974. (PREF_FORCE_TRUNCATE): Removed.
  12975. (PREF_ALLOW_OVERWRITE): New definition.
  12976. * src/SegmentMan.cc
  12977. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12978. * src/MetalinkRequestInfo.cc
  12979. (execute): Queueing message are now logged in info level.
  12980. * src/common.h
  12981. (LONG_LONG_MAX): Removed.
  12982. (LONG_LONG_MIN): Removed.
  12983. * src/HttpResponseCommand.cc
  12984. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12985. * src/FtpNegotiateCommand.cc
  12986. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12987. * src/main.cc
  12988. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12989. command-line option.
  12990. (main): Added --check-integriy and --realtime-chunk-checksum
  12991. command-line option.
  12992. --force-truncate -> --allow-overwrite
  12993. Set initial value of --check-integrity option to false.
  12994. Don't show usage when error occurs while persing command-line options.
  12995. Removed deprecated --upload-limit option.
  12996. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12997. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12998. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12999. * src/BtAllowedFastMessage.cc:
  13000. * src/BtBitfieldMessage.cc
  13001. * src/BtCancelMessage.cc
  13002. * src/BtChokeMessage.cc
  13003. * src/BtHaveAllMessage.cc
  13004. * src/BtHaveMessage.cc
  13005. * src/BtHaveNoneMessage.cc
  13006. * src/BtInterestedMessage.cc
  13007. * src/BtNotInterestedMessage.cc
  13008. * src/BtPieceMessage.cc
  13009. * src/BtPortMessage.cc
  13010. * src/BtRejectMessage.cc
  13011. * src/BtRequestMessage.cc
  13012. * src/BtSuggestPieceMessage.cc
  13013. * src/BtUnchokeMessage.cc
  13014. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13015. files are affected.
  13016. * src/ChunkChecksumValidator.cc
  13017. * src/SegmentMan.cc
  13018. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13019. To add chunk checksum validation:
  13020. * src/MetalinkEntry.h
  13021. (MetalinkChunkChecksum.h): New include.
  13022. (chunkChecksum): New variable.
  13023. * src/Request.h
  13024. (method): New variable.
  13025. (setMethod): New function.
  13026. (getMethod): New function.
  13027. (METHOD_GET): New static constant.
  13028. (METHOD_HEAD): New static constant.
  13029. * src/Xml2MetalinkProcessor.h
  13030. (getPieceHash): New function.
  13031. * src/PieceStorage.h
  13032. (markAllPiecesDone): New function.
  13033. (checkIntegrity): New function.
  13034. * src/FileAllocator.h
  13035. (NullFileAllocationMonitor.h): New include.
  13036. (FileAllocator): Initialize fileAllocationMonitor with new
  13037. NullFileAllocationMonitor().
  13038. * src/MultiDiskAdaptor.h
  13039. (messageDigest.h): Remove include.
  13040. (ctx): Removed.
  13041. (hashUpdate): Added ctx.
  13042. (MultiDiskAdaptor): Removed ctx.
  13043. (sha1Sum): Renamed as messageDigest.
  13044. (messageDigest): New function.
  13045. * src/UrlRequestInfo.h
  13046. (HeadResult): New class.
  13047. (digestAlgo): New variable.
  13048. (chunkChecksumLength): New variable.
  13049. (chunkChecksums): New variable.
  13050. (getHeadResult): New function.
  13051. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13052. (setDigestAlgo): New function.
  13053. (setChunkChecksumLength): New function.
  13054. (setChunkChecksums): New function.
  13055. * src/DefaultPieceStorage.cc
  13056. (DiskAdaptorWriter.h): New include.
  13057. (ChunkChecksumValidator.h): New include.
  13058. (markAllPiecesDone): New function.
  13059. (checkIntegrity): New function.
  13060. * src/DefaultBtContext.h
  13061. (getPieceHashes): New function.
  13062. * src/TorrentRequestInfo.cc
  13063. (execute): Try to validate chunk checksum if file already exists and
  13064. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13065. * src/messageDigest.h
  13066. (~MessageDigestContext): Added digestFree().
  13067. * src/MetalinkRequestInfo.cc
  13068. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13069. * src/DiskAdaptor.h
  13070. (messageDigest.h): New include.
  13071. (sha1Sum): Renamed as messageDigest.
  13072. (messageDigest): New function.
  13073. * src/DownloadCommand.h
  13074. (PeerStat.h): New include.
  13075. (maxDownloadSpeedLimit): New variable.
  13076. (startupIdleTime): New variable.
  13077. (lowestDownloadSpeedLimit): New variable.
  13078. (peerStat): New variable.
  13079. (setMaxDownloadSpeedLimit): New function.
  13080. (setStartupIdleTime): New function.
  13081. (setLowestDownloadSPeedLimit): New function.
  13082. * src/BtContext.h
  13083. (getPieceHashes): New function.
  13084. * src/main.cc
  13085. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13086. option to true for testing purpose.
  13087. * src/BtPieceMessage.cc
  13088. (checkPieceHash): Use messageDigest
  13089. * src/DownloadEngine.cc
  13090. (SetDescriptor): Removed.
  13091. (AccumulateActiveCommand): Removed.
  13092. (waitData): Rewritten.
  13093. (updateFdSet): Rewritten.
  13094. * src/MultiDiskAdaptor.cc
  13095. (hashUpdate): Added ctx.
  13096. (sha1Sum): Renamed as messageDigest.
  13097. (messageDigest): New function.
  13098. * src/BitfieldMan.h
  13099. (isBitRangeSet): New function.
  13100. (unsetBitRange): New function.
  13101. * src/ByteArrayDiskWriter.h
  13102. (sha1Sum): Renamed as messageDigest.
  13103. (messageDigest): New function.
  13104. * src/ConsoleDownloadEngine.cc
  13105. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13106. * src/DiskWriter.h
  13107. (messageDigest.h): New include.
  13108. (sha1Sum): Renamed as messageDigest.
  13109. (messageDigest): New function.
  13110. * src/ChunkChecksumValidator.h: New class.
  13111. * src/DiskAdaptorWriter.h: New class.
  13112. * src/prefs.h
  13113. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13114. (PREF_CHECK_INTEGRITY): New definition.
  13115. * src/HttpResponseCommand.cc
  13116. (handleDefaultEncoding): Added method "HEAD" handling.
  13117. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13118. (handleOtherEncoding):
  13119. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13120. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13121. startupIdleTime, lowestDownloadSpeedLimit to command.
  13122. * src/SegmentMan.h
  13123. (getSegmentEntryByIndex): New function.
  13124. (getSegmentEntryByCuid): New function.
  13125. (getSegmentEntryIteratorByCuid): New function.
  13126. (diskWriter): DiskWriter -> DiskWriterHandle
  13127. (pieceHashes): New variable.
  13128. (chunkHashLength): New variable.
  13129. (digestAlgo): New variable.
  13130. (FindPeerStat): Removed.
  13131. (getPeerStat): Rewritten.
  13132. (markAllPiecesDone): New function.
  13133. (checkIntegrity): New function.
  13134. (tryChunkChecksumValidation): New function.
  13135. (isChunkChecksumValidationReady): New function.
  13136. * src/BitfieldMan.cc
  13137. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13138. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13139. blocks to 0.
  13140. (isBitRangeSet): New function.
  13141. (unsetBitRange): New function.
  13142. * src/FtpNegotiateCommand.cc
  13143. (executeInternal): Set maxDownloadSpeedLimit,
  13144. startupIdleTime, lowestDownloadSpeedLimit to command.
  13145. (recvSize): Added method "HEAD" handling.
  13146. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13147. * src/AbstractSingleDiskAdaptor.cc
  13148. (sha1Sum): Renamed as messageDigest.
  13149. (messageDigest): New function.
  13150. * src/AbstractSingleDiskAdaptor.h
  13151. (sha1Sum): Renamed as messageDigest.
  13152. (messageDigest): New function.
  13153. * src/Util.h
  13154. (indexRange): New function.
  13155. * src/MetalinkEntry.cc
  13156. (MetalinkEntry): Initialized chunkChecksum to 0.
  13157. * src/ShaVisitor.cc
  13158. (~ShaVisitor): Removed the call to ctx.digestFree().
  13159. * src/SegmentMan.cc
  13160. (ChunkChecksumValidator.h): New include.
  13161. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13162. to DIGEST_ALGO_SHA1.
  13163. (~SegmentMan): Removed diskWriter.
  13164. (FindSegmentEntryByIndex): Removed.
  13165. (FindSegmentEntryByCuid): Removed.
  13166. (checkoutSegment): Rewritten.
  13167. (findSlowerSegmentEntry): Rewritten.
  13168. (getSegment): Rewritten.
  13169. (updateSegment): Rewritten.
  13170. (completeSegment): Rewritten.
  13171. (markAllPiecesDone): New function.
  13172. (checkIntegrity): New function.
  13173. (isChunkChecksumValidationReady): New function.
  13174. (tryChunkChecksumValidation): New function.
  13175. * src/Xml2MetalinkProcessor.cc
  13176. (getEntry): Get size and set it to entry.
  13177. Get chunk checksum and set it to entry.
  13178. (getPieceHash): New function.
  13179. * src/Util.cc
  13180. (sha1Sum): Removed ctx.digestFree()
  13181. (fileChecksum): Removed ctx.digestFree()
  13182. (indexRange): New function.
  13183. * src/Request.cc
  13184. (METHOD_GET): New variable.
  13185. (METHOD_HEAD): New variable.
  13186. (Request): Added method.
  13187. * src/UrlRequestInfo.cc
  13188. (FatalException.h): New include.
  13189. (message.h): New include.
  13190. (operator<<): Added operator<< for class HeadResult.
  13191. (getHeadResult): New function.
  13192. (execute): Get filename and size in separate download engine.
  13193. * src/ChunkChecksumValidator.cc: New class.
  13194. * src/DownloadCommand.cc:
  13195. (DownloadCommand): Added peerStat.
  13196. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13197. the value from Option.
  13198. The buffer size is now 16KB.
  13199. Use peerStat member instead of getting it from SegmentMan.
  13200. Use startupIdleTime member instead of gettingit from Option.
  13201. Added chunk checksum validation.
  13202. * src/AbstractDiskWriter.cc
  13203. (AbstractDiskWriter): Removed ctx.
  13204. (~AbstractDiskWriter): Removed ctx.digestFree()
  13205. (writeDataInternal): Returns the return value of write.
  13206. (readDataInternal): Returns the return value of read.
  13207. (sha1Sum): Renamed as messageDigest
  13208. (messageDigest): New function.
  13209. * src/AbstractDiwkWriter.h
  13210. (messageDigest.h): Removed include.
  13211. (ctx): Removed.
  13212. (sha1Sum): Renamed as messageDigest
  13213. (messageDigest): New function.
  13214. * src/DefaultPieceStorage.h
  13215. (markAllPiecesDone): New function.
  13216. (checkIntegrity): New function.
  13217. * src/NullFileAllocationMonitor.h: New class.
  13218. * src/MetalinkChunkChecksum.h: New class.
  13219. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13220. To decrease CPU usage in bittorrent download, calculation results in
  13221. BitfieldMan were cached and realtime fetching PeerObject was removed
  13222. with WeakHandle introduced. Option values are set to the objects
  13223. by setter before download begins.
  13224. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13225. * src/DefaultBtRequestFactory.h
  13226. (dispatcher): BtMessageDispatcherHandle ->
  13227. BtMessageDispatcherWeakHandle.
  13228. (messageFactory): New variable.
  13229. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13230. BtMessageDispatcherWeakHandle.
  13231. (setBtMessageFactory): New function.
  13232. * src/DefaultBtMessageDispatcher.cc:
  13233. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13234. from Option.
  13235. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13236. feating the value from Option.
  13237. Use messageFactory member.
  13238. * src/PeerInteractionCommand.cc
  13239. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13240. Add reverse dependencies to factory object.
  13241. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13242. dispatcher.
  13243. Set messageFactory to receiver.
  13244. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13245. btInteractive.
  13246. Set receiver to peerObject.
  13247. Set maxDownloadSpeedLimit to this.
  13248. (executeInternal): Use maxDownloadSpeedLimit member.
  13249. * src/BtChokeMessage.cc
  13250. (doReceivedAction): Use dispatcher, requestFactory member.
  13251. (onSendComplete): Use dispatcher member.
  13252. * src/PeerInteractionCommand.h
  13253. (maxDownloadSpeedLimit): New variable.
  13254. * src/DefaultBtMessageReceiver.h
  13255. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13256. (dispatcher):
  13257. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13258. (messageFactory): New variable.
  13259. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13260. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13261. (setDispatcher):
  13262. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13263. (setBtMessageFactory): New function.
  13264. * src/DefaultBtInteractive.cc
  13265. (initiateHandshake): Use messageFactory member.
  13266. (addBitfieldMessageToQueue): Use messageFactory member.
  13267. (addAllowedFastMessageToQueue): Use messageFactory member.
  13268. (decideChoking): Use messageFactory member.
  13269. (checkHave): Use messageFactory member.
  13270. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13271. (receiveMessages): Use maxDownloadSpeedLimit member.
  13272. (decideInterest): Use messageFactory member.
  13273. * src/BtRequestMessage.cc
  13274. (doReceivedAction): Use messageFactory, dispatcher member.
  13275. (onQueued): Use dispatcher member.
  13276. * src/BtPieceMessage.cc
  13277. (doReceivedAction): Use dispatcher member.
  13278. (send): Use peerConnection member.
  13279. (onWrongPiece): Use requestFactory member.
  13280. (handleChokingEvent): Use messageFactory, dispatcher member.
  13281. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13282. * src/BtMessageDispatcher.h
  13283. (BtMessageDispatcherWeakHandle): New type definition.
  13284. * src/SimpleBtMessage.cc
  13285. (send): Use peerConnection member.
  13286. * src/BtRejectMessage.cc
  13287. (doReceivedAction): Use dispatcher member.
  13288. * src/DefaultBtMessageDispatcher.h
  13289. (Option.h): Removed include.
  13290. (messageFactory): New variable.
  13291. (option): Removed.
  13292. (maxUploadSpeedLimit): New variable.
  13293. (requestTimeout): New variable.
  13294. (DefaultBtMessageDispatcher): Removed option.
  13295. Added maxUploadSpeedLimit, requestTimeout.
  13296. (setOption): Removed.
  13297. (getOption): Removed.
  13298. (setMaxUploadSpeedLimit): New function.
  13299. (setRequestTimeout): New function.
  13300. (setBtMessageFactory): New function.
  13301. * src/DefaultBtInteractive.h
  13302. (btMessageReceiver):
  13303. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13304. (dispatcher):
  13305. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13306. (btRequestFactory):
  13307. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13308. (peerConnection):
  13309. PeerConnectionHandle -> PeerConnectionWeakHandle
  13310. (messageFactory): New variable.
  13311. (option): Removed.
  13312. (keepAliveInterval): New variable.
  13313. (maxDownloadSpeedLimit): New variable.
  13314. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13315. (setBtMessageReceiver):
  13316. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13317. (setDispatcher):
  13318. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13319. (setBtRequestFactory):
  13320. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13321. (setPeerConnection):
  13322. PeerConnectionHandle -> PeerConnectionWeakHandle
  13323. (setOption): Removed.
  13324. (setKeepAliveInterval): New function.
  13325. (setMaxDownloadSpeedLimit): New function.
  13326. (setBtMessageFactory): New function.
  13327. * src/BitfieldMan.h
  13328. (cachedNumMissingBlock): New variable.
  13329. (cachedNumFilteredBlock): New variable.
  13330. (cachedCompletedLength): New variable.
  13331. (cachedFilteredComletedLength): New variable.
  13332. (cachedFilteredTotalLength): New variable.
  13333. (countMissingBlockNow): New function.
  13334. (countFilteredBlockNow): New function.
  13335. (getFilteredTotalLengthNow): New function.
  13336. (getCompletedLengthNow): New function.
  13337. (getFilteredCompletedLengthNow): New function.
  13338. (updateCache): New function.
  13339. * src/AbstractBtMessage.h
  13340. (BtMessageDispatcher.h): New include.
  13341. (PeerConnection.h): New include.
  13342. (BtRequestFactory.h): New include
  13343. (BtMessageFactory.h): New include.
  13344. (dispatcher): New variable.
  13345. (messageFactory): New variable.
  13346. (peerConnection: New variable.
  13347. (setBtMessageDispatcher): New function.
  13348. (setPeerConnection): New function.
  13349. (setBtMessageFactory): New function.
  13350. (setBtRequestFactory): New function.
  13351. * src/DefaultBtMessageFactory.cc
  13352. (setCommonProperty): Set dispatcher, requestFactory, this,
  13353. peerConnection to msg.
  13354. * src/BtRegistry.h
  13355. (BT_MESSAGE_RECEIVER): New macro.
  13356. * src/PeerConnection.h
  13357. (PeerConnectionWeakHandle): New type definition.
  13358. * src/BtMessageFactory.h
  13359. (BtMessageFactoryWeakHandle): New type definition.
  13360. * src/BitfieldMan.cc
  13361. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13362. cachedCompletedLength, cachedFilteredComletedLength,
  13363. cachedFilteredTotalLength.
  13364. Call updateCache().
  13365. (countMissingBlock): Return cachedNumMissingBlock.
  13366. (countMissingBlockNow): New function.
  13367. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13368. (countFilteredBlockNow): New function.
  13369. (setBit): Call updateCache().
  13370. (unsetBit): Call updateCache().
  13371. (setBitfield): Call updateCache().
  13372. (clearAllBit): Call updateCache().
  13373. (setAllBit): Use setBitInternal instead of setBit.
  13374. Call updateCache().
  13375. (addFilter): Call updateCache().
  13376. (enableFilter): Call updateCache().
  13377. (disableFilter): Call updateCache().
  13378. (clearFilter): Call updateCache().
  13379. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13380. (getFilteredTotalLengthNow): New function.
  13381. (getCompletedLength): Return cachedCompletedLength.
  13382. (getCompletedLengthNow): New function.
  13383. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13384. (getFilteredCompletedLengthNow): New function.
  13385. (updateCache): New function.
  13386. * src/BtMessageReceiver.h
  13387. (BtMessageReceiverWeakHandle): New type definition.
  13388. * src/DefaultBtMessageReceiver.cc
  13389. (receiveHandshake): Use messageFactory member.
  13390. (sendHandshake): Use messageFactory member.
  13391. (receiveMessage): Use messageFactory member.
  13392. * src/DefaultBtMessageFactory.h
  13393. (dispatcher): New variable.
  13394. (requestFactory): New variable.
  13395. (peerConnection): New variablle.
  13396. (setBtMessageDispatcher): New function.
  13397. (setBtRequestFactory): New function.
  13398. (setPeerConnection): New function.
  13399. * src/SharedHandle.h
  13400. (RefCount): New class.
  13401. (WeakHandle): New class.
  13402. * src/PeerObject.h
  13403. (BtMessageReceiver.h): New include.
  13404. (PeerObject): Added btMessageReceiver.
  13405. (btMessageReceiver): New variable.
  13406. * src/Util.cc
  13407. (countBit): Simplified.
  13408. * src/BtCancelMessage.cc
  13409. (doReceivedAction): Use dispatcher member.
  13410. * src/BtRequestFactory.h
  13411. (BtRequestFactoryWeakHandle): New type definition.
  13412. * src/PeerStorage.h
  13413. (downloadSpeed): int -> uint32_t
  13414. (uploadSpeed): int -> uint32_t
  13415. (sessionDownloadLength): long long int -> uint64_t
  13416. (sessionUploadLength): long long int -> uint64_t
  13417. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13418. To add RecoverableException, FatalException:
  13419. * src/AbstractCommand.cc
  13420. (onAbort): Exception -> RecoverableException
  13421. * src/PeerAbstractCommand.h
  13422. (RecoverableException.h): New include.
  13423. (onAbort): Exception -> RecoverableException.
  13424. * src/PeerInteractionCommand.cc
  13425. (onAbort): Exception -> RecoverableException.
  13426. * src/PeerAbstractCommand.cc
  13427. (execute): Exception -> RecoverableException.
  13428. (onAbort): Exception -> RecoverableException.
  13429. * src/TorrentRequestInfo.cc
  13430. (execute): Exception -> RecoverableException.
  13431. * src/MetalinkRequestInfo.cc
  13432. (execute): Exception -> RecoverableException.
  13433. * src/MetaFileUtil.cc: RecoverableException.
  13434. * src/AbstractCommand.h
  13435. (onAbort): Exception -> RecoverableException.
  13436. * src/DlRetryEx.h: Exception -> RecoverableException.
  13437. * src/DlAbortEx.h: Exception -> RecoverableException.
  13438. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13439. * src/Util.cc: Exception -> RecoverableException.
  13440. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13441. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13442. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13443. To make ID static const int
  13444. * src/BtInterestedMessage.h
  13445. (ID_t): Removed.
  13446. (ID): New variable.
  13447. (getId): Made non-const.
  13448. * src/BtPieceMessage.h
  13449. (ID_t): Removed.
  13450. (ID): New variable.
  13451. (getId): Made non-const.
  13452. * src/BtChokeMessage.h
  13453. (ID_t): Removed.
  13454. (ID): New variable.
  13455. (getId): Made non-const.
  13456. * src/BtHaveAllMessage.h
  13457. (ID_t): Removed.
  13458. (ID): New variable.
  13459. (getId): Made non-const.
  13460. * src/BtKeepAliveMessage.h
  13461. (ID_t): Removed.
  13462. (ID): New variable.
  13463. (getId): Made non-const.
  13464. * src/BtHandshakeMessage.h
  13465. (ID): New variable.
  13466. (getId): Made non-const.
  13467. * src/BtSuggestPieceMessage.h
  13468. (ID_t): Removed.
  13469. (ID): New variable.
  13470. (getId): Made non-const.
  13471. * src/BtPortMessage.h
  13472. (ID_t): Removed.
  13473. (ID): New variable.
  13474. (getId): Made non-const.
  13475. * src/AbstractBtMessage.h
  13476. (id): Removed.
  13477. (AbstractBtMessage): Removed id.
  13478. (getId): Removed.
  13479. * src/BtHaveMessage.h
  13480. (ID_t): Removed.
  13481. (ID): New variable.
  13482. (getId): Made non-const.
  13483. * src/BtAllowedFastMessage.h
  13484. (ID_t): Removed.
  13485. (ID): New variable.
  13486. (getId): Made non-const.
  13487. * src/BtCancelMessage.h
  13488. (ID_t): Removed.
  13489. (ID): New variable.
  13490. (getId): Made non-const.
  13491. * src/BtNotInterestedMessage.h
  13492. (ID_t): Removed.
  13493. (ID): New variable.
  13494. (getId): Made non-const.
  13495. * src/BtChokeMessage.h
  13496. (ID_t): Removed.
  13497. (ID): New variable.
  13498. (getId): Made non-const.
  13499. * src/BtRejectMessage.h
  13500. (ID_t): Removed.
  13501. (ID): New variable.
  13502. (getId): Made non-const.
  13503. * src/BtBitfieldMessage.h
  13504. (ID_t): Removed.
  13505. (ID): New variable.
  13506. (getId): Made non-const.
  13507. * src/BtUnchokeMessage.h
  13508. (ID_t): Removed.
  13509. (ID): New variable.
  13510. (getId): Made non-const.
  13511. * src/BtRequestMessage.h
  13512. (ID_t): Removed.
  13513. (ID): New variable.
  13514. (getId): Made non-const.
  13515. * src/BtHaveMessage.h
  13516. (ID_t): Removed.
  13517. (ID): New variable.
  13518. (getId): Made non-const.
  13519. To add --force-truncate command-line option and a check whether
  13520. the file already exists:
  13521. * src/DirectDiskAdaptor.h
  13522. (getFilePath): Made virtual public.
  13523. * src/MultiDiskAdaptor.h
  13524. (File.h): New include.
  13525. (DiskWriterEntry::fileEntry): Made private.
  13526. (DiskWriterEntry::fileExists): New function.
  13527. (DiskWriterEntry::getFileEntry): New function.
  13528. (fileExists): New function.
  13529. (getFilePath): New function.
  13530. * src/TorrentRequestInfo.cc
  13531. (FatalException.h): New include.
  13532. (message.h): New include.
  13533. (RecoverableException.h): New include.
  13534. (execute): Added a check whether file is already exists or not.
  13535. * src/DiskAdaptor.h
  13536. (fileExists): New function.
  13537. (getFilePath): New function.
  13538. * src/main.cc
  13539. (showUsage): Added an explanation of --force-truncate command-line
  13540. option.
  13541. (main): Added --force-truncate command-line option.
  13542. * src/Exception.h
  13543. (setMsg): buf[256] -> buf[1024]
  13544. * src/CopyDiskWriter.h
  13545. (getFilePath): Made public virtual.
  13546. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13547. (fileExists): New function.
  13548. * src/DownloadEngineFactory.cc
  13549. (newTorrentConsoleEngine): Don't open file here.
  13550. * src/message.h
  13551. (EX_FILE_ALREADY_EXISTS): New definition.
  13552. * src/prefs.h
  13553. (PREF_FOECE_TRUNCATE): New definition.
  13554. * src/HttpResponseCommand.cc
  13555. (handleDefaultEncoding): Added a check whether the file already exists.
  13556. * src/SegmentMan.h
  13557. (fileExists): New function.
  13558. (shouldCancelDownloadForSafety): New function.
  13559. * src/FtpNegotiateCommand.cc
  13560. (recvSize): Added a check whether the file already exists.
  13561. * src/AbstractSingleDiskAdaptor.cc
  13562. (File.h): New include.
  13563. (fileExists): New function.
  13564. * src/AbstractSingleDiskAdaptor.h
  13565. (getFilePath): Removed.
  13566. (fileExists): New function.
  13567. * src/SegmentMan.cc
  13568. (fileExists): New function.
  13569. (shouldCancelDownloadForSafety): New function.
  13570. To fix regression bug in torrent downloading:
  13571. * src/DefaultBtRequestFactory.cc
  13572. (doChokedAction): New function.
  13573. * src/DefaultBtRequestFactory.h
  13574. (doChokedAction): New function.
  13575. * src/DefaultBtMessageDispatcher.cc
  13576. (doChokedAction): Do not delete request if its target is in allowed
  13577. fast set.
  13578. * src/DefaultBtInteractive.cc
  13579. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13580. (sendKeepAlive): Send keep alive message even if the outgoing message
  13581. queue is not empty.
  13582. (decideInterest): Simplified the code.
  13583. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13584. it is already called when BtChokeMessage is received from a peer.
  13585. * src/BtRequestFactory.h
  13586. (doChokedAction): New function.
  13587. To clean up code:
  13588. * src/PeerInteractionCommand.h
  13589. (executeInternal): Added virtual keyword explicitly.
  13590. (prepareForRetry): Added virtual keyword explicitly.
  13591. (prepareForNextPeer): Added virtual keyword explicitly.
  13592. (onAbort): Added virtual keyword explicitly.
  13593. * src/RequestSlot.cc
  13594. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13595. * src/BtPieceMessage.cc
  13596. (doReceivedAction): Added a debug log of piece's bitfield.
  13597. * src/Piece.h
  13598. (getBitfieldLength): New function.
  13599. * src/ByteArrayDiskWriter.cc
  13600. (clear): Added buf = 0 to avoid double free corruption.
  13601. * src/FileAllocator.cc
  13602. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13603. Added cp.reset().
  13604. * src/BitfieldMan.h
  13605. (operator=): Rewritten.
  13606. * src/BitfieldMan.cc
  13607. (BitfieldMan): Initialized bitfield, useBitfield.
  13608. * src/PeerConnection.cc
  13609. (receiveMessage): Added a call to socket->readable() after getting
  13610. message length to avoid possible EOF.
  13611. * src/Util.cc
  13612. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13613. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13614. To add an ability to pre-allocate file space:
  13615. * src/DirectDiskAdaptor.h: Rewritten.
  13616. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13617. * src/MultiDiskAdaptor.h: Rewritten.
  13618. * src/DefaultPieceStorage.cc
  13619. (MultiDiskWriter.h): Removed include.
  13620. (PreAllocationDiskWriter.h): Removed include.
  13621. (FileAllocationMonitor.h): New include.
  13622. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13623. (initStorage): Rewritten.
  13624. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13625. * src/FileAllocator.h: New class.
  13626. * src/FileAllocator.cc: New class.
  13627. * src/FileAllocationMonitor.h: New class.
  13628. * src/FileAllocationMonitor.cc: New class.
  13629. * src/ConsoleFileAllocationMonitor.h: New class.
  13630. * src/ConsoleFileAllocationMonitor.cc: New class.
  13631. * src/AbstractSingleDiskAdaptor.h: New class.
  13632. * src/AbstractSingleDiskAdaptor.cc: New class.
  13633. * src/DiskAdaptor.h
  13634. (Directory.h): Removed include.
  13635. (DiskWriter.h): Removed include.
  13636. (FileEntry.h): Removed include.
  13637. (diskWriter): Removed.
  13638. (DiskAdaptor): Removed diskWriter.
  13639. (openFile): Made pure virtual.
  13640. (closeFile): Made pure virtual.
  13641. (openExistingFile): Made pure virtual.
  13642. (initAndOpenFile): Made pure virtual.
  13643. (writeData): Made pure virtual.
  13644. (readData): Made pure virtual.
  13645. (sha1Sum): Made pure virtual.
  13646. (getStoreDir): Returns const reference of storeDir.
  13647. (DiskAdaptorHandle): New type definition.
  13648. * src/main.cc
  13649. (ConsoleFileAllocationMonitor.h): New include.
  13650. (showUsage): Added default value description of -s option.
  13651. Added the description of --file-allocation option.
  13652. (main): Set default value of --file-allocation option to 'none'.
  13653. Added --file-allocation command-line option.
  13654. Setup FileAllocationMonitorFactory.
  13655. * src/FtpInitiateConnectionCommand.cc
  13656. (executeInternal): Removed diskWriter related processing, which was
  13657. moved to FtpNegotiationCommand.cc.
  13658. * src/DirectDiskAdaptor.cc
  13659. (getFilePath): Made non-const.
  13660. * src/CopyDiskAdaptor.h
  13661. (DiskAdaptor.h): Removed include.
  13662. (DiskWriter.h): Removed include.
  13663. (AbstractSingleDiskAdaptor.h): New include.
  13664. (getFilePath): Made non-const. Added virtual keyword.
  13665. (CopyDiskAdaptor): Removed diskWriter.
  13666. (getTempFile): Returns const reference.
  13667. (CopyDiskAdaptorHandle): New type definition.
  13668. * src/ByteArrayDiskWriter.cc
  13669. (clear): Simplified.
  13670. (initAndOpenFile): Rewritten.
  13671. (openFile): Call initAndOpenFile()
  13672. * src/MultiDiskAdaptor.cc: Rewritten.
  13673. * src/DownloadEngineFactory.cc
  13674. (FileAllocator.h): New include.
  13675. (FileAllocationMonitor.h): New include.
  13676. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13677. create DefaultDiskWriter with file allocator.
  13678. * src/DiskWriter.h
  13679. (initAndOpenFile): Added totalLength argument.
  13680. (openFile): Added totalLength argument.
  13681. * src/prefs.h
  13682. (PREF_FILE_ALLOCATION): New definition.
  13683. (V_PREALLOC): New definition.
  13684. (V_NONE): New definition.
  13685. * src/HttpResponseCommand.cc
  13686. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13687. size.
  13688. * src/FtpNegotiateCommand.cc
  13689. (Util.h): New include.
  13690. (recvSize): Open file here.
  13691. * src/Util.h
  13692. (ullitos): New function.
  13693. * src/CopyDiskWriter.h
  13694. (getFilePath): Made non-const.
  13695. * src/DefaultDiskWriter.h
  13696. (Option.h): New include.
  13697. (totalLength): Removed.
  13698. (DefaultDiskWriter): Removed totalLength.
  13699. (initAndOpenFile): Added totalLength argument.
  13700. (DefaultDiskWriterHandle): New type definition.
  13701. (createNewDiskWriter): New function.
  13702. * src/Util.cc
  13703. (ullitos): New function.
  13704. * src/DefaultDiskWriter.cc
  13705. (message.h): New include.
  13706. (FileAllocator.h): New include.
  13707. (prefs.h): New include.
  13708. (Util.h): New include.
  13709. (DefaultDiskWriter): Removed totalLength.
  13710. (initAndOpenFile): Added file allocation.
  13711. (createNewDiskWriter): New function. Just for temporary solution.
  13712. It will be rewritten later.
  13713. * src/DiskAdaptor.cc
  13714. (DiskAdaptor): Removed diskWriter.
  13715. * src/AbstractDiskWriter.cc
  13716. (LogFactory.h): New include.
  13717. (AbstractDiskWriter): Added fileAllocator, logger.
  13718. (openFile): Added totalLength argument.
  13719. * src/AbstractDiskWriter.h
  13720. (FileAllocator.h): New include.
  13721. (Logger.h): New include.
  13722. (fileAllocator): New variable.
  13723. (logger): New variable.
  13724. (openFile): Added totalLength argument. Added virtual keyword
  13725. explicitly.
  13726. (openExistingFile): Added totalLength argument. Added virtual keyword
  13727. explicitly.
  13728. (closeFile): Added virtual keyword explicitly.
  13729. (sha1Sum): Added virtual keyword explicitly.
  13730. (writeData): Added virtual keyword explicitly.
  13731. (readData): Added virtual keyword explicitly.
  13732. (setFileAllocator): New function.
  13733. * src/DefaultPieceStorage.h
  13734. (FileAllocator.h): New include.
  13735. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13736. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13737. * src/FileProgressMonitor.h: New class.
  13738. To compile aria2 on PC-BSD:
  13739. * src/DefaultBtContext.cc
  13740. (libgen.h): New include.
  13741. To fix memory leak:
  13742. * src/Exception.h
  13743. (~Exception): Delete cause. Fixed memory leak.
  13744. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13745. Rewritten a portion of bittorrent implementation:
  13746. * src/BtMessageValidator.h: New class.
  13747. * src/BtBitfieldMessageValidator.h: New class.
  13748. * src/BtHandshakeMessageValidator.h: New class.
  13749. * src/BtRequestMessageValidator.h: New class.
  13750. * src/BtSuggestPieceMessageValidator.h: New class.
  13751. * src/BtAllowedFastMessageValidator.h: New class.
  13752. * src/BtRejectMessageValidator.h: New class.
  13753. * src/BtCancelMessageValidator.h: New class.
  13754. * src/BtPieceMessageValidator.h: New class.
  13755. * src/BtHaveMessageValidator.h: New class.
  13756. * src/BtEventListener.h: New class.
  13757. * src/AbstractBtEventListener.h: New class.
  13758. * src/BtEvent.h: New class.
  13759. * src/BtChokingEvent.h: New class.
  13760. * src/BtChokedEvent.h: New class.
  13761. * src/BtCancelSendingPieceEvent.h: New class.
  13762. * src/BtAbortOutstandingRequestEvent.h: New class.
  13763. * src/Randomizer.h: New class.
  13764. * src/SimpleRandomizer.h: New class.
  13765. * src/BtMessage.h: New class.
  13766. * src/AbstractBtMessage.h: New class.
  13767. * src/SimpleBtMessage.h: New class.
  13768. * src/BtHaveMessage.h: New class.
  13769. * src/BtInterestedMessage.h: New class.
  13770. * src/BtAllowedFastMessage.h: New class.
  13771. * src/BtUnchokeMessage.h: New class.
  13772. * src/BtCancelMessage.h: New class.
  13773. * src/BtNotInterestedMessage.h: New class.
  13774. * src/BtChokeMessage.h: New class.
  13775. * src/BtHaveNoneMessage.h: New class.
  13776. * src/BtHandshakeMessage.h: New class.
  13777. * src/BtSuggestPieceMessage.h: New class.
  13778. * src/BtHaveMessage.h: New class.
  13779. * src/BtPieceMessage.h: New class.
  13780. * src/BtHaveAllMessage.h: New class.
  13781. * src/BtKeepAliveMessage.h: New class.
  13782. * src/BtPortMessage.h: New class.
  13783. * src/BtRejectMessage.h: New class.
  13784. * src/BtBitfieldMessage.h: New class.
  13785. * src/BtRequestMessage.h: New class.
  13786. * src/DefaultBtRequestFactory.h: New class.
  13787. * src/DefaultBtMessageReceiver.h: New class.
  13788. * src/BtInteractive.h: New class.
  13789. * src/BtMessageDispatcher.h: New class.
  13790. * src/DefaultBtMessageDispatcher.h: New class.
  13791. * src/DefaultBtInteractive.h: New class.
  13792. * src/BitfieldManFactory.h: New class.
  13793. * src/HandleRegistry.h: New class.
  13794. * src/BtMessageFactory.h: New class.
  13795. * src/BtMessageReceiver.h: New class.
  13796. * src/DefaultBtMessageFactory.h: New class.
  13797. * src/PeerObject.h: New class.
  13798. * src/BtRequestFactory.h: New class.
  13799. * src/SuggestPieceMessage.h: Removed.
  13800. * src/PortMessage.h: Removed.
  13801. * src/SuggestPieceMessage.h: Removed.
  13802. * src/KeepAliveMessage.h: Removed.
  13803. * src/HandshakeMessage.h: Removed.
  13804. * src/PeerInteraction.h: Removed.
  13805. * src/UnchokeMessage.h: Removed.
  13806. * src/PieceMessage.h: Removed.
  13807. * src/RequestMessage.h: Removed.
  13808. * src/InterestedMessage.h: Removed.
  13809. * src/HaveMessage.h: Removed.
  13810. * src/CancelMessage.h: Removed.
  13811. * src/RejectMessage.h: Removed.
  13812. * src/AllowedFastMessage.h: Removed.
  13813. * src/HaveNoneMessage.h: Removed.
  13814. * src/SimplePeerMessage.h: Removed.
  13815. * src/HaveAllMessage.h: Removed.
  13816. * src/BitfieldMessage.h: Removed.
  13817. * src/PeerMessageFactory.h: Removed.
  13818. * src/NotInterestedMessage.h: Removed.
  13819. * src/ChokeMessage.h: Removed.
  13820. * src/PeerMessage.h: Removed.
  13821. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13822. To know root cause of exception:
  13823. * src/Exception.h
  13824. (cause): New variable.
  13825. (Exception): Added a parameter.
  13826. (getMsg): Return const reference to msg.
  13827. (getCause): New function.
  13828. * src/DlRetryEx.h
  13829. (DlRetryEx): Added a parameter 'cause'.
  13830. Added an overloaded constructor.
  13831. (DlAbortEx): Added a parameter 'cause'.
  13832. Added an overloaded constructor.
  13833. * src/SimpleLogger.cc
  13834. (writeLog): Log nested exception messages recursively.
  13835. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13836. * src/DefaultBtProgressInfoFile.cc
  13837. (load): Fixed memory leak when the infohash doesn't match.
  13838. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13839. * src/DefaultPeerStorage.cc
  13840. (calculateStat): Simplified the code by combining 2 loops into 1.
  13841. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13842. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13843. for BitTorrent download:
  13844. * src/PeerAbstractCommand.cc
  13845. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13846. * src/main.cc:
  13847. (timeoutSpecified): Removed.
  13848. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13849. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13850. * src/TorrentRequestInfo.cc
  13851. (timeoutSpecified): Removed.
  13852. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13853. timeout value.
  13854. * src/prefs.h
  13855. (PREF_BT_TIMEOUT): New definition.
  13856. Delete unused variables:
  13857. * src/TorrentRequestInfo.cc
  13858. (requestInfo): Removed.
  13859. Move setSignalHander to Util::setGlobalSignalHandler:
  13860. * src/TorrentRequestInfo.cc:
  13861. setSignalHander -> Util::setGlobalSignalHandler
  13862. * src/main.cc
  13863. (setSignalHander): Removed.
  13864. (main): setSignalHander -> Util::setGlobalSignalHandler
  13865. * src/Util.h
  13866. (setGlobalSignalHandler): New function.
  13867. * src/Util.cc
  13868. (setGlobalSignalHandler): New function.
  13869. * src/UrlRequestInfo.cc:
  13870. setSignalHander -> Util::setGlobalSignalHandler
  13871. Reset peer status in order to exit gracefully:
  13872. * src/PeerAbstractCommand.cc
  13873. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13874. To fix the bug that causes the number of bytes uploaded is not saved
  13875. to .aria2 file:
  13876. * src/DefaultPeerStorage.h
  13877. (removedPeerSessionDownloadLength): New variable.
  13878. (removedPeerSessionUploadLength): New variable.
  13879. * src/DefaultPeerStorage.cc
  13880. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13881. removedPeerSessionUploadLength(0).
  13882. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13883. through all peers, and then add removedPeerSessionDownloadLength(
  13884. removedPeerSessionUploadLength) to it.
  13885. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13886. (to) the peer to removedPeerSessionDownloadLength
  13887. (removedPeerSessionUploadLength).
  13888. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13889. To add Metalink location option:
  13890. * src/MetalinkRequestInfo.cc
  13891. (execute): Call MetalinkEntry::setLocationPreference()
  13892. * src/main.cc
  13893. (showUsage): Added the help message for --metalink-location option.
  13894. (main): Added --metalink-location option.
  13895. * src/prefs.h
  13896. (PREF_METALINK_LOCATION): New definition.
  13897. * src/MetalinkEntry.cc
  13898. (AddLocationPreference): New function object.
  13899. (setLocationPreference): New function.
  13900. * src/Xml2MetalinkProcessor.cc
  13901. (getResource): Set location attribute to MetalinkResource
  13902. To show URLs to download
  13903. * src/UrlRequestInfo.h
  13904. (printUrls): New function.
  13905. To add multiple <file> Metalink support:
  13906. * src/MetalinkEntry.h
  13907. (MetalinkResources): Removed.
  13908. (setLocationPreference): New function.
  13909. (MetalinkEntryHandle): New type definition.
  13910. (MetalinkEntries): New type definition.
  13911. * src/Xml2MetalinkProcessor.h
  13912. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13913. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13914. (parseFile): Metalinker* -> MetalinkerHandle
  13915. * src/UrlRequestInfo.h
  13916. (execute): RequestInfo* -> RequestInfos
  13917. * src/MetalinkRequestInfo.cc
  13918. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13919. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13920. (execute): RequestInfo* -> RequestInfos
  13921. Added multiple <file> support. Print filename when it is queued.
  13922. * src/MetalinkRequestInfo.h
  13923. (execute): RequestInfo* -> RequestInfos
  13924. (getDownloadEngine): Removed.
  13925. * src/RequestInfo.h
  13926. (RequestInfoHandle): New type definition.
  13927. (RequestInfos): New type definition.
  13928. (execute): RequestInfo* -> RequestInfos
  13929. (getDownloadEngine): Removed.
  13930. * src/MetalinkResource.h
  13931. (MetalinkResourceHandle): New type definition.
  13932. (MetalinkResources): New type definition.
  13933. * src/MetalinkEntry.cc
  13934. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13935. because the element is now of type MetalinkResourceHandle.
  13936. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13937. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13938. (dropUnsupportedResource): Removed the deletion of the elements of
  13939. resources because the element is now of type MetalinkResourceHandle.
  13940. * src/Xml2MetalinkProcessor.cc
  13941. (parseFile): Metalinker* -> MetalinkerHandle
  13942. MetalinkEntry* -> MetalinkEntryHandle
  13943. Removed try-catch block.
  13944. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13945. MetalinkResource* -> MetalinkResourceHandle
  13946. Removed try-catch block.
  13947. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13948. Free result by using xmlXPathFreeObject()
  13949. * src/Metalinker.cc
  13950. (~Metalinker): Removed the deletion of entries.
  13951. MetalinkEntry* -> MetalinkEntryHandle
  13952. (queryEntry): Add multiple <file> Metalink support.
  13953. * src/Metalinker.h
  13954. (MetalinkEntries): Removed.
  13955. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13956. * src/MetalinkProcessor.h
  13957. (parseFile): Metalinker* -> MetalinkerHandle
  13958. Bug fixes:
  13959. * src/PeerChokeCommand.cc
  13960. (execute): cat01->cat02
  13961. * src/DefaultPieceStorage.cc
  13962. (DefaultPieceStorage): Added diskAdaptor(0)
  13963. * src/TrackerWatcherComand.cc:
  13964. (execute): Use btAnnounce->noMoreAnnounce()
  13965. to determin whether the function returns true or not.
  13966. * src/TrackerUpdateCommand.cc:
  13967. (execute): Use btAnnounce->noMoreAnnounce()
  13968. to determin whether the function returns true or not.
  13969. * src/FtpConnection.cc
  13970. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13971. This is the fix of the busy loop bug.
  13972. * src/DownloadCommand.cc
  13973. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13974. cached PeerStat.
  13975. The value of "name" entry in torrent file is now set by
  13976. *DiskAdaptor::setTopDir(...) methods.
  13977. * src/MultiDiskAdaptor.h
  13978. (topDir): New variable.
  13979. (setTopDir): New function.
  13980. (getTopDir): New function.
  13981. * src/MultiDiskAdaptor.cc
  13982. (getFilePath): Concat storDir, "/" and topDir.
  13983. (mkdir): Use getFilePath() to get the directory path for output.
  13984. * src/DefaultPieceStorage.cc
  13985. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13986. CopyDiskAdaptor.
  13987. * src/CopyDiskAdaptor.h
  13988. (topDir): New variable.
  13989. (setTopDir): New function.
  13990. (getTopDir): New function.
  13991. * src/CopyDiskAdaptor.cc
  13992. (fixFilename): Updated.
  13993. Misc
  13994. * src/UrlRequestInfo.h
  13995. (e): Removed.
  13996. (UrlRequestInfo): Removed e.
  13997. (getDownloadEngine): Removed.
  13998. * src/UrlRequestInfo.cc
  13999. (handler): Rewritten.
  14000. (printUrls): New function.
  14001. (execute): Call printUrls().
  14002. * src/HandshakeMessage.cc
  14003. (check): peerinteraction->getBtContext() -> btContext
  14004. * src/PeerInteraction.h
  14005. (getBtContext): Removed.
  14006. * src/TorrentRequestInfo.h
  14007. (execute): RequestInfo* -> RequestInfos
  14008. (getDownloadEngine): Removed.
  14009. * src/TorrentRequestInfo.cc
  14010. (haltRequested): Removed.
  14011. (btHaltRequested): New variable.
  14012. (torrentHandler): haltRequested -> btHaltRequested
  14013. (execute): RequestInfo* -> RequestInfos
  14014. * src/TorrentConsoleDownloadEngine.cc
  14015. (afterEachIteration): haltRequested -> btHaltRequested.
  14016. * src/ConsoleDownloadEngine.h
  14017. (initStatistics): Added virtual.
  14018. (calculateStatistics): Added virtual.
  14019. (onEndOfRun): Added virtual.
  14020. (afterEachIteration): Added virtual.
  14021. * src/ConsoleDownloadEngine.cc
  14022. (haltRequested): New variable.
  14023. (afterEachIteration): New function.
  14024. * src/main.cc
  14025. (requestInfo): Removed.
  14026. * src/SegmentMan.cc
  14027. (findSlowerSegmentEntry): Refactored.
  14028. * Release 0.9.0
  14029. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14030. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14031. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14032. * src/TorrentMan.h: Removed.
  14033. * src/TorrentMan.cc: Removed.
  14034. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14035. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14036. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14037. * src/PeerAbstractCommand.cc: Use btRuntime.
  14038. * src/BtContextAwareCommand.h: New class.
  14039. * src/FileEntry.h: Added accessor methods for following variables.
  14040. (path): Made private.
  14041. (length): Made private.
  14042. (offset): Made private.
  14043. (extracted): Made private.
  14044. (requested): Made private.
  14045. (FileEntries): New definition.
  14046. (FileEntryHandle): New definition.
  14047. * src/FileEntry.cc: New file.
  14048. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14049. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14050. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14051. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14052. * src/PieceStorage.h: New file.
  14053. * src/PeerInteractionCommand.h: Use btContext.
  14054. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14055. btRuntime.
  14056. * src/DefaultBtProgressInfoFile.h: New file.
  14057. * src/DefaultBtProgressInfoFile.cc: New file.
  14058. * src/File.cc
  14059. (Util.h): New include.
  14060. (mkdirs): New function.
  14061. * src/MultiDiskAdaptor.h
  14062. (mkdir): New function.
  14063. * src/PeerListProcessor.h
  14064. (Peers): Removed.
  14065. * src/PeerInteraction.h
  14066. (torrentMan): Removed.
  14067. (btContext): New variable.
  14068. (peerStorage): New variable.
  14069. (pieceStorage): New variable.
  14070. (btAnnounce): New variable.
  14071. (getTorrentMan): Removed.
  14072. (getBtContext): New function.
  14073. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14074. btAnnounce.
  14075. * src/HandshakeMessage.h
  14076. (TorrentMan.h): Removed.
  14077. * src/HandshakeMessage.cc: Use btContext.
  14078. * src/DefaultBtAnnounce.cc: New file.
  14079. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14080. * src/DefaultPieceStorage.cc: New file.
  14081. * src/DefaultBtContext.h: New file.
  14082. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14083. Use the accessor methods of FileEntry.
  14084. * src/CookieBox.cc: Updated to use Util::slice().
  14085. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14086. * src/common.h (SharedHandle.h): New include.
  14087. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14088. pieceStorage.
  14089. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14090. * src/DiskAdaptor.h
  14091. (topDir): Removed.
  14092. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14093. (setTopDir): Removed.
  14094. (getTopDir): Removed.
  14095. * src/BtContext.h: New file.
  14096. * src/DefaultPeerStorage.h: New file.
  14097. * src/PieceMessage.h (TorrentMan.h): Removed.
  14098. * src/RequestMessage.h (TorrentMan.h): Removed.
  14099. * src/TorrentDownloadEngine.h
  14100. (uploadLength): New variable.
  14101. (btContext): New variable.
  14102. (btRuntime): New variable.
  14103. (pieceStorage): New variable.
  14104. (peerStorage): New variable.
  14105. (btAnnounce): New variable.
  14106. (btProgressInfoFile): New variable.
  14107. (torrentMan): Removed.
  14108. (setBtContext): New function.
  14109. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14110. peerStorage, btAnnounce, btProgressInfoFile.
  14111. * src/Piece.h
  14112. (toString): New function.
  14113. (Pieces): New type definition.
  14114. * src/Peer.h
  14115. (active): New variable.
  14116. (Peer): Added active.
  14117. (activate): Set active to true.
  14118. (deactivate): Set active to false.
  14119. (isActive): New function.
  14120. (Peers): New type definition.
  14121. * src/DirectDiskAdaptor.cc
  14122. (getFilePath): Use the accessor methods of FileEntry.
  14123. * src/TorrentConsoleDownloadEngine.h
  14124. (afterEachIteration): New function.
  14125. * src/TorrentConsoleDownloadEngine.cc
  14126. (haltRequested): New variable.
  14127. (sendStatistics): Use pieceStorage, btRuntime.
  14128. (afterEachIteration): New function.
  14129. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14130. * src/Directry.h
  14131. (Directory): New function.
  14132. (DirectoryHandle): New type definition.
  14133. * src/BtProgressInfoFile.h: New file.
  14134. * src/RequestMessage.cc: Use pieceStorage.
  14135. * src/BtRuntime.h: New file.
  14136. * src/DefaultBtContext.cc: New file.
  14137. * src/BitfieldMan.h
  14138. (getCompletedLength): New function(private).
  14139. (getCompletedLength): New function.
  14140. (getFilteredCompletedLength): New function.
  14141. * src/BitfieldMan.h
  14142. (getCompletedLength): New function(private).
  14143. (getCompletedLength): New function.
  14144. (getFilteredCompletedLength): New function.
  14145. * src/MultiDiskAdaptor.cc
  14146. (mkdir): New function.
  14147. (openFile): Call mkdir().
  14148. (initAndOpenFile): Call mkdir().
  14149. * src/CancelMessage.h
  14150. (TorrentMan.h): Removed.
  14151. * src/RejectMessage.h
  14152. (TorrentMan.h): Removed.
  14153. * src/DownloadEngineFactory.cc
  14154. (DefaultPieceStorage.h): New include.
  14155. (DefaultPeerStorage.h): New include.
  14156. (DefaultBtAnnounce.h): New include.
  14157. (DefaultBtProgressInfoFile.h): New include.
  14158. (newTorrentConsoleEngine): Rewritten.
  14159. * src/ShareRatioSeedCriteria.h
  14160. (torrentMan): Removed.
  14161. (btContext): New variable.
  14162. (peerStorage): New variable.
  14163. (btRuntime): New variable.
  14164. (evaluate): Use btContext, btRuntime, peerStorage.
  14165. * src/AnnounceTier.h: New file.
  14166. * src/BtAnnounce.h: New file.
  14167. * src/BtRegistry.h: New file.
  14168. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14169. * src/PeerConnection.h (TorrentMan.h): Removed.
  14170. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14171. * src/Util.h
  14172. (slice): Added an argument.
  14173. * src/Util.cc
  14174. (slice): Added an argument to control whether trim is made or not.
  14175. * src/PeerStorage.h: New file.
  14176. * src/BtRegistry.cc: New file.
  14177. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14178. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14179. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14180. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14181. * src/TorrentRequestInfo.h
  14182. (e): Removed.
  14183. (showFileEntry): Added an argument.
  14184. (getDownloadEngine): Return 0.
  14185. * src/DefaultBtAnnounce.h: New file.
  14186. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14187. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14188. * src/PeerMessageFactory.h
  14189. (btContext): New variable.
  14190. (pieceStorage): New variable.
  14191. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14192. btAnnounce.
  14193. * src/DiskAdaptor.cc
  14194. (DiskAdaptor): Removed topDir.
  14195. (~DiskAdaptor): Removed topDir.
  14196. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14197. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14198. * src/File.h (mkdirs): New function.
  14199. * src/DefaultPeerStorage): New file.
  14200. * src/DownloadEngineFactory.h
  14201. (newTorrentConsoleEngine): Use btContext.
  14202. * src/BtContextAwareCommand.cc: New file.
  14203. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14204. * src/PeerMessage.h
  14205. (btContext): New variable.
  14206. (peerStorage): New variable.
  14207. (pieceStorage): New variable.
  14208. (setBtContext): New function.
  14209. * src/Directry.cc
  14210. (Directory): New function.
  14211. (createDir): Do nothing if name.size() == 0.
  14212. * src/AnnounceList.h
  14213. (AnnounceTier): Removed.
  14214. (AnnounceTiers): Removed.
  14215. * src/DefaultPieceStorage.h: New file.
  14216. * src/Piece.cc (toString): New function.
  14217. To fix typo:
  14218. * src/main.cc (showVersion): Fixed typo.
  14219. To fix compile warning:
  14220. * src/DelegatingPeerListProcessor.cc
  14221. (canHandle): Added "return false".
  14222. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14223. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14224. make the process of announce request testable.
  14225. * src/TrackerWatcherCommand.h
  14226. (TimeA2.h): Removed.
  14227. (interval): Removed.
  14228. (checkPoint): Removed.
  14229. (createRequestCommand): Added an argument 'url'.
  14230. (TrackerWatherCommand): Removed interval.
  14231. (createCommand): New function.
  14232. * src/DownloadEngineFactory.cc
  14233. (newTorrentConsoleEngine): Updated according to the changes in
  14234. TrackerWatherCommand.
  14235. * src/TorrentMan.cc
  14236. (DelegatingPeerListProcessor.h): New includes.
  14237. (TorrentMan): Added the initialization of announceInterval.
  14238. (isStoppedAnnounceReady): New function.
  14239. (isCompletedAnnounceReady): New function.
  14240. (isDefaultAnnounceReady): New function.
  14241. (isAnnounceReady): New function.
  14242. (getAnnounceUrl): New function.
  14243. (announceStart): New function.
  14244. (announceFailure): New function.
  14245. (announceSuccess): New function.
  14246. (isAllAnnounceFailed): New function.
  14247. (resetAnnounce): New function.
  14248. (processAnnounceResponse): New function.
  14249. (needMorePeerConnection): New function.
  14250. (noMoreAnnounce): New function.
  14251. * src/TrackerUpdateCommand.h
  14252. (getTrackerResponse): int->size_t
  14253. * src/TorrentMan.h
  14254. (isStoppedAnnounceReady): New function.
  14255. (isCompletedAnnounceReady): New function.
  14256. (isDefaultAnnounceReady): New function.
  14257. (announceInterval): New variable.
  14258. (isAnnounceReady): New function.
  14259. (getAnnounceUrl): New function.
  14260. (announceStart): New function.
  14261. (announceFailure): New function.
  14262. (announceSuccess): New function.
  14263. (isAllAnnounceFailed): New function.
  14264. (resetAnnounce): New function.
  14265. (processAnnounceResponse): New function.
  14266. (needMorePeerConnection): New function.
  14267. (noMoreAnnounce): New function.
  14268. * src/TrackerWatcherCommand.cc
  14269. (TrackerWatherCommand): Removed interval and checkPoint.
  14270. (execute): Rewritten.
  14271. (createCommand): New function.
  14272. (createRequestCommand): Rewritten.
  14273. * src/TrackerUpdateCommand.cc
  14274. (MetaFileUtil.h): Removed.
  14275. (DelegatingPeerListProcessor.h): Removed.
  14276. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14277. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14278. Request -> RequestHandle:
  14279. * src/HttpResponseCommand.h: Request->RequestHandle
  14280. * src/AbstractCommand.cc: Request->RequestHandle
  14281. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14282. * src/HttpRequestCommand.cc: Request->RequestHandle
  14283. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14284. * src/AbstractCommand.h: Request->RequestHandle
  14285. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14286. * src/HttpResponseCommand.cc: Request->RequestHandle
  14287. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14288. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14289. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14290. * src/HttpConnection.h: Request->RequestHandle
  14291. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14292. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14293. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14294. * src/DownloadCommand.h: Request->RequestHandle
  14295. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14296. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14297. * src/HttpRequestCommand.h: Request->RequestHandle
  14298. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14299. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14300. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14301. * src/HttpDownloadCommand.h: Request->RequestHandle
  14302. * src/FtpConnection.cc: Request->RequestHandle
  14303. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14304. * src/UrlRequestInfo.cc: Request->RequestHandle
  14305. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14306. * src/HttpConnection.h: Request->RequestHandle
  14307. * src/DownloadCommand.cc: Request->RequestHandle
  14308. * src/FtpConnection.h: Request->RequestHandle
  14309. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14310. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14311. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14312. * src/Request.h
  14313. (SharedHandle.h): New include.
  14314. (RequestHandle): New type definition.
  14315. (Requests): Redefined.
  14316. To add MULTITRACKER support:
  14317. * src/TrackerWatcherCommand.h
  14318. (createRequestCommand): New function.
  14319. * src/DownloadEngineFactory.cc
  14320. (newTorrentConsoleEngine): Removed req.
  14321. * src/prefs.h
  14322. (PREF_TRACKER_MAX_TRIES): New definition.
  14323. * src/TorrentMan.cc
  14324. (TorrentMan): Removed req. Added trackerNumTry.
  14325. (~TorrentMan): Removed req.
  14326. (setupInternal1): Added announceList.
  14327. * src/TorrentRequestInfo.cc
  14328. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14329. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14330. * src/main.cc
  14331. (main): Added PREF_TRACKER_MAX_TRIES.
  14332. * src/TorrentMan.h
  14333. (Request.h): Removed.
  14334. (AnnounceList.h): New include.
  14335. (trackerNumTry): New variable.
  14336. (req): Removed.
  14337. (announceList): New variable.
  14338. * src/TrackerWatcherCommand.cc
  14339. (execute): Rewritten.
  14340. (createRequestCommand): New function.
  14341. * src/TrackerUpdateCommand.cc
  14342. (execute): Updated with the use of AnnounceList.
  14343. * src/AnnounceList.cc: New class.
  14344. * src/AnnounceList.h: New class.
  14345. To fix typo:
  14346. * src/prefs.h
  14347. (PREF_MAX_TRIES): max_try->max_tries
  14348. To not to decode "+" as space in URL decode:
  14349. * src/Util.cc
  14350. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14351. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14352. To add timeout to async name resolution:
  14353. * src/AbstractCommand.h
  14354. (nameResolveFinished): New function. This is not elegant way. It needs
  14355. to be more refined.
  14356. (nameResolverCheck): New variable.
  14357. * src/AbstractCommand.cc
  14358. (AbstractCommand): Added nameResolverCheck.
  14359. (execute): Added the check whether the name resolution has finished.
  14360. (setNameResolverCheck): Set nameResolverCheck to true.
  14361. (disableNameResolverCheck): Set nameResolverCheck to false.
  14362. (nameResolverFinished): New function.
  14363. * src/FtpInitiateConnectionCommand.h
  14364. (nameResolverFinished): New function.
  14365. * src/FtpInitiateConnectionCommand.cc
  14366. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14367. * src/HttpInitiateConnectionCommand.h
  14368. (nameResolverFinished): New function.
  14369. * src/HttpInitiateConnectionCommand.cc
  14370. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14371. * src/prefs.h
  14372. (PREF_DNS_TIMEOUT): New definition.
  14373. * src/main.cc
  14374. (main): Added PREF_DNS_TIMEOUT.
  14375. To add the support for a non-compact response from a tracker:
  14376. * src/PeerListProcessor.h: New class.
  14377. * src/DefaultPeerListProcessor.h: New class.
  14378. * src/DefaultPeerListProcessor.cc: New class.
  14379. * src/CompactPeerListProcessor.h: New class.
  14380. * src/CompactPeerListProcessor.cc: New class.
  14381. * src/DelegatingPeerListProcessor.h: New class.
  14382. * src/DelegatingPeerListProcessor.cc: New class.
  14383. * src/TorrentMan.cc
  14384. (addPeer): New function(overload).
  14385. (addPeer): Delete unused peers only when new peer is added.
  14386. * src/TorrentMan.h
  14387. (PeerListProcessor.h): Included.
  14388. (Peers): Removed.
  14389. (addPeer): New function(overload).
  14390. * src/TrackerUpdateCommand.cc
  14391. (netinet/in.h): Removed.
  14392. (DelegatingPeerListProcessor.h): Included.
  14393. (execute): Updated to use DelegatingPeerListProcessor.
  14394. To fix the memory leak in TorrentMan::peers:
  14395. * src/PeerAbstractCommand.cc
  14396. (onAbort): Added peer->resetStatus().
  14397. * src/Peer.h
  14398. (resetStatus): Made public.
  14399. To improve the precision of the speed calculation:
  14400. * src/SpeedCalc.h
  14401. (nextInterval): New variable.
  14402. * src/SpeedCalc.cc
  14403. (reset): Added nextInterval.
  14404. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14405. (changeSw): Set nextInterval to 15 seconds relative to the current
  14406. instant time.
  14407. * src/main.cc
  14408. (showVersion): Updated.
  14409. (showUsage): Updated.
  14410. * Release 0.8.1
  14411. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14412. * src/main.cc
  14413. (showUsage): Commented out --min-segment-size option.
  14414. (main): Commented out --min-segment-size option.
  14415. * Release 0.8.0
  14416. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14417. * src/*.{h,cc}:
  14418. Added an exception to the license which allows linking with OpenSSL.
  14419. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14420. * src/AbstractCommand.cc
  14421. (execute): Check whether the download has finished before checking
  14422. socket status.
  14423. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14424. Do not exit even if no segment is available.
  14425. * src/prefs.h
  14426. (PREF_STARTUP_IDLE_TIME): New definition.
  14427. * src/PeerInteractionCommand.cc
  14428. (executeInternal): Removed max speed limit. Because it performs bad.
  14429. (receiveMessages): Added max speed limit. This was better than above,
  14430. but still a little bit to be desired. Sometimes the download speed
  14431. became much faster than I specified.
  14432. * src/SpeedCalc.h
  14433. (start): New variable.
  14434. (accumulatedLength): New variable.
  14435. (getAvgSpeed): New function.
  14436. * src/SpeedCalc.cc
  14437. (reset): Added start, accumulatedLength.
  14438. (update): Added calculation of an average speed.
  14439. (getAvgSpeed): New function.
  14440. * src/DownloadCommand.h
  14441. (sw): Removed.
  14442. * src/main.cc
  14443. (main): Added PREF_STARTUP_IDLE_TIME.
  14444. * src/PeerStat.h
  14445. (STATUS): Added REQUEST_IDLE.
  14446. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14447. (getAvgDownloadSpeed): New function
  14448. (requestIdle): New function.
  14449. * src/SegmentMan.h
  14450. (SegmentEntryHandle): New type definition.
  14451. (SegmentEntries): Now holds SegmentEntryHandle.
  14452. (findSlowerSegmentEntry): New funtion.
  14453. * src/SegmentMan.cc
  14454. (save): Updated according to the changes in SegmentEntries.
  14455. (read): Updated according to the changes in SegmentEntries.
  14456. (FindSegmentEntryByIndex): Updated according to the changes in
  14457. SegmentEntries.
  14458. (FindSegmentEntryByCuid): Updated according to the changes in
  14459. SegmentEntries.
  14460. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14461. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14462. Renamed uitr as itr.
  14463. (findSlowerSegmentEntry): New function.
  14464. (getSegment): Updated according to the changes in SegmentEntries.
  14465. Added the feature that cancels the segment with slow server and fast
  14466. one takes it over.
  14467. (cancelSegment): Updated according to the changes in SegmentEntries.
  14468. (getDownloadLength): Updated according to the changes in
  14469. SegmentEntries.
  14470. (init): Assigned 0 to bitfield after deleting it.
  14471. * src/DownloadCommand.cc
  14472. (STARTUP_IDLE_TIME): Removed.
  14473. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14474. * src/PeerChokeCommand.cc
  14475. (optUnchokingPeer): Updated according to the changes in Peer.
  14476. (ResetDelta): Removed.
  14477. (UploadFaster): Updated according to the changes in Peer.
  14478. (DownloadFaster): Updated according to the changes in Peer.
  14479. (execute): I clarify the meaning of "upload" and "download" here.
  14480. "upload" means the transfer from localhost to remote host.
  14481. "download" means the transfer from remote host to localhost.
  14482. Based on this rule, I swapped orderByUploadRate and
  14483. orderByDownloadRate.
  14484. * src/PeerInteractionCommand.cc
  14485. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14486. (executeInternal): Removed the argument of
  14487. peerInteraction->sendMessages().
  14488. (receiveMessages): Rewritten download speed limit.
  14489. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14490. * src/HttpResponseCommand.cc
  14491. (handleDefaultEncoding): If file size is unknown in torrent request,
  14492. do not call segmentMan->initBitfield() here.
  14493. Disabled persistent connection feature in torrent request.
  14494. * src/UrlRequestInfo.h
  14495. (UrlRequestInfo): Removed const qualifier from option.
  14496. * src/TorrentMan.h
  14497. (TransferStat): New class.
  14498. (deltaDownloadLength): Removed.
  14499. (deltaUploadLength): Removed.
  14500. (addDeltaDownloadLength): Removed.
  14501. (getDeltaDownloadLength): Removed.
  14502. (resetDeltaDownloadLength): Removed.
  14503. (addDeltaUploadLength): Removed.
  14504. (getDeltaUploadLength): Removed.
  14505. (resetDeltaUploadLength): Removed.
  14506. (addActivePeer): Added peer->activate().
  14507. (deleteActivePeer): Added peer->deactivate().
  14508. (calculateStat): New function.
  14509. * src/TorrentMan.cc
  14510. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14511. (calculateStat): New function.
  14512. * src/PeerInteraction.h
  14513. (uploadLimit): Removed.
  14514. (option): New variable.
  14515. (setUploadLimit): Removed.
  14516. (getUploadSpeed): Removed.
  14517. (sendMessages): Removed the argument "currentUploadSpeed".
  14518. * src/PeerInteraction.cc
  14519. (prefs.h): Included.
  14520. (PeerInteraction): Removed uploadLimit. Added option.
  14521. (sendMessages): Rewritten upload speed limit.
  14522. (sendHandshake): Removed the argument from sendMessages().
  14523. (sendBitfield): Removed the argument from sendMessages().
  14524. * src/PeerAbstractCommand.cc
  14525. (execute): Commented out the portion of upload limit.
  14526. (onAbort): Removed peer->resetStatus().
  14527. * src/TorrentRequestInfo.cc
  14528. (timeoutSpecified): Declared extern.
  14529. (execute): Set timeout to 180 if timeout is not specified by.
  14530. command-line.
  14531. * src/PieceMessage.cc
  14532. (receivedAction): Added peer->updateDownloadLength().
  14533. Removed peer->addPeerUpload().
  14534. Removed torrentMan->addDeltaDownloadLength().
  14535. (send): Added peer->updateUploadLength().
  14536. Removed peer->addPeerDownload().
  14537. Removed torrentMan->addDeltaUploadLength().
  14538. * src/main.cc
  14539. (timeoutSpecified): New variable.
  14540. (main): Set timeoutSpecified to false.
  14541. If the command-line option "--upload-limit" is specified, then
  14542. timeoutSpecified is set to true. This option will remain in the next
  14543. release, but be deprecated in the future release.
  14544. * src/TorrentRequestInfo.h
  14545. (TorrentRequestInfo): Removed const qualifier from op.
  14546. * src/PeerStat.h
  14547. (uploadSpeed): New variable.
  14548. (PeerStat): Added default value to cuid.
  14549. (calculateUploadSpeed): New function.
  14550. (updateUploadLength): New function.
  14551. (getMaxUploadSpeed): New function.
  14552. (getAvgUploadSpeed): New function.
  14553. (reset): Added uploadSpeed. Set status to IDLE.
  14554. * src/TorrentDownloadEngine.h
  14555. (cp): Declared as Time.
  14556. (sessionDownloadLengthArray): Removed.
  14557. (sessionUploadLengthArray): Removed.
  14558. (currentCp): Removed.
  14559. (lastCalcStat): New variable
  14560. (lastElapsed): Removed.
  14561. (sessionDownloadLength): Removed.
  14562. (calculateStat): New function.
  14563. * src/TorrentDownloadEngine.cc
  14564. (initStatistics): Removed lastElapsed, cp[],
  14565. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14566. currentCp, sessionDownloadLength.
  14567. Added cp.reset() and lastCalcStat.reset().
  14568. (calculateSpeed): Changed the name of the argument.
  14569. (calculateStatistics): Rewritten.
  14570. (calculateStat): New function.
  14571. * src/Peer.h
  14572. (PeerStat.h): Included.
  14573. (peerUpload): Removed.
  14574. (peerDownload): Removed.
  14575. (peerStat): New variable.
  14576. (sessionUploadLength): New variable.
  14577. (sessionDownloadLength): New variable.
  14578. (deltaUpload): Removed.
  14579. (deltaDownload): Removed.
  14580. (resetStatus): Made private.
  14581. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14582. Removed peerUpload, peerDownload.
  14583. (updateUploadLength): New function.
  14584. (addDeltaUpload): Removed.
  14585. (updateDownloadLength): New function.
  14586. (resetDeltaUpload): Removed.
  14587. (getDeltaUpload): Removed.
  14588. (addDeltaDownload): Removed.
  14589. (calculateUploadSpeed): New function.
  14590. (resetDeltaDownload): Removed.
  14591. (getDeltaDownload): Removed.
  14592. (calculateDownloadSpeed): New function.
  14593. (getSessionUploadLength): New function.
  14594. (getSessionDownloadLength): New function.
  14595. (activate): New function.
  14596. (deactivate): New function.
  14597. (addPeerUpload): Removed.
  14598. (setPeerUpload): Removed.
  14599. (getPeerUpload): Removed.
  14600. (addPeerDownload): Removed.
  14601. (setPeerDownload): Removed.
  14602. (getPeerDownload): Removed.
  14603. * src/Peer.cc
  14604. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14605. * src/MetalinkRequestInfo.h
  14606. (MetalinkRequestInfo): Removed const qualifier from op.
  14607. * src/RequestInfo.h
  14608. (op): Removed const qualifier.
  14609. (RequestInfo): Removed const qualifier from op.
  14610. * src/prefs.h
  14611. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14612. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14613. * src/PeerInteractionCommand.cc
  14614. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14615. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14616. * src/PeerInteraction.cc
  14617. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14618. * src/main.cc
  14619. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14620. Added the description of "--max-download-limit" option.
  14621. Removed the description of "--upload-limit" option.
  14622. Added the description of "--max-upload-limit" option.
  14623. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14624. Added "--max-download-limit" option and "--max-upload-limit" option.
  14625. Added the warning message if "--upload-limit" option is used.
  14626. * src/DownloadCommand.cc
  14627. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14628. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14629. To rewrite segment download mechanism for HTTP/FTP download.
  14630. Use BitfieldMan to manage segment download.
  14631. * src/HttpResponseCommand.h
  14632. (executeInternal): Pass the reference of segment.
  14633. * src/AbstractCommand.cc
  14634. (prepareForRetry): Call segmentMan->cancelSegment here.
  14635. (onAbort): Call segmentMan->cancelSegment here.
  14636. * src/HttpDownloadCommand.cc
  14637. (prepareForNextSegment): New function.
  14638. * src/DownloadEngineFactory.cc
  14639. (newConsoleEngine): Removed splitter.
  14640. (newTorrentConsoleEngine): Removed splitter.
  14641. * src/Request.h
  14642. (segment): Renamed from seg.
  14643. * src/FtpInitiateConnectionCommand.h
  14644. (executeInternal): Pass the reference of segment.
  14645. * src/AbstractCommand.h
  14646. (executeInternal): Pass the reference of segment.
  14647. * src/pref.h
  14648. (PREF_SEGMENT_SIZE): New definition.
  14649. * src/HttpProxyRequestCommand.h
  14650. (executeInternal): Pass the reference of segment.
  14651. * src/HttpResponseCommand.cc
  14652. (checkResponse): Allowed status 206 when a request range starts 0.
  14653. (handleDefaultEncoding): Rewritten the code related to Segment.
  14654. (handleOtherEncoding): Rewritten the code related to Segment.
  14655. * src/SegmentMan.h
  14656. (SegmentEntry): New class.
  14657. (SegmentEntries): New type definition.
  14658. (bitfield): New variable.
  14659. (usedSegmentEntries): New variable.
  14660. (onNullBitfield): New function.
  14661. (checkoutSegment): New function.
  14662. (segments): Removed.
  14663. (splitter): Removed.
  14664. (unregisterId): Removed.
  14665. (getSegment): New function(overload)
  14666. (getDownloadedSize): Removed.
  14667. (cancelSegment): New function.
  14668. (completeSegment): New function.
  14669. (initBitfield): New function.
  14670. (hasSegment): New function.
  14671. (getDownloadLength): New function.
  14672. * src/BitfieldMan.h
  14673. (getStartIndex): New function.
  14674. (getEndIndex): New function.
  14675. (getMissingUnusedIndex): New function(overload).
  14676. (getSparseMissingUnusedIndex): New function.
  14677. * src/BitfieldMan.cc
  14678. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14679. (getMissingUnusedIndex): New function(overload).
  14680. (Range): New class.
  14681. (getStartIndex): New function.
  14682. (getEndIndex): New function.
  14683. (getSparseMissingUnusedIndex): New function.
  14684. (isBitSetInternal): Return false if the given index is less than 0.
  14685. * src/HttpInitiateConnectionCommand.h
  14686. (executeInternal): Pass the reference of segment.
  14687. * src/FtpNegotiateCommand.h
  14688. (executeInternal): Pass the reference of segment.
  14689. * src/FtpNegotiateCommand.cc
  14690. (recvSize): Initialize bitfield here.
  14691. * src/FtpTunnelResponseCommand.h
  14692. (executeInternal): Pass the reference of segment.
  14693. * src/HttpConnection.cc
  14694. (createRequest): Rewritten range header processing.
  14695. * src/DownloadCommand.h
  14696. (executeInternal): Pass the reference of segment.
  14697. (prepareForRetry): Removed.
  14698. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14699. function.
  14700. * src/main.cc
  14701. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14702. * src/SegmentMan.cc
  14703. (SegmentMan): Added bitfield. Removed splitter.
  14704. (~SegmentMan): Added bitfield. Removed splitter.
  14705. (unregisterId): Removed.
  14706. (getSegment): Rewritten.
  14707. (updateSegment): Rewritten.
  14708. (save): Rewritten.
  14709. (read): Rewritten.
  14710. (finished): Rewritten.
  14711. (getDownloadedSize): Removed.
  14712. (initBitfield): New function.
  14713. (FindSegmentEntryByIndex): New function object.
  14714. (FindSegmentEntryByCuid): New function object.
  14715. (checkoutSegment): New function.
  14716. (onNullBitfield): New function.
  14717. (getSegment): New function(overload).
  14718. (CancelSegment): New function object.
  14719. (cancelSegment): New function.
  14720. (completeSegment): New function.
  14721. (hasSegment): New function.
  14722. (getDownloadLength): New function.
  14723. * src/FtpInitiateConnectionCommand.cc
  14724. (executeInternal): Load .aria2 file after hostname resolution finishes.
  14725. * src/Segment.h: Rewritten.
  14726. * src/Segment.cc (operator<<): New function.
  14727. * src/HttpDownloadCommand.h
  14728. (prepareForNextSegment): New function.
  14729. * src/Request.cc
  14730. (resetUrl): Made segment null.
  14731. * src/DownloadEngine.cc
  14732. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  14733. * src/HttpProxyRequestCommand.h
  14734. (executeInternal): Pass the reference of segment.
  14735. * src/DownloadCommand.cc
  14736. (executeInternal): Rewritten the code related to Segment.
  14737. (prepareForRetry): Removed.
  14738. (prepareForNextSegment): Rewritten.
  14739. * src/FtpTunnelResponseCommand.h
  14740. (executeInternal): Pass the reference of segment.
  14741. To add HTTP 1.1 persistent connection support(experimental)
  14742. * src/HttpRequestCommand.cc
  14743. (executeInternal): Disable keep alive if it is disabled by
  14744. configuration.
  14745. * src/Request.h
  14746. (keepAlive): New variable.
  14747. (isKeepAlive): New function.
  14748. (setKeepAlive): New function.
  14749. * src/pref.h
  14750. (PREF_HTTP_KEEP_ALIVE): New definition.
  14751. * src/HttpResponseCommand.cc
  14752. (executeInternal): Check the remote server supports keep alive.
  14753. * src/HttpConnection.cc
  14754. (createRequest): Send "Connection: close" only if keep alive is
  14755. disabled.
  14756. * src/main.cc
  14757. (main):
  14758. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  14759. To add max download speed limit:
  14760. * src/pref.h
  14761. (PREF_MAX_SPEED_LIMIT): New definition.
  14762. * src/PeerInteractionCommand.cc
  14763. (executeInternal): Added max download speed limit. Not tested yet.
  14764. * src/SegmentMan.h
  14765. (PeerStats): New type definition.
  14766. (peerStats): New variable.
  14767. (registerPeerStat): New function.
  14768. (FindPeerStat): New function object.
  14769. (getPeerStat): New function.
  14770. (calculateDownloadSpeed): New function.
  14771. * src/SpeedCalc.h: New class.
  14772. * src/SpeedCalc.cc: New class.
  14773. * src/main.cc
  14774. (main):
  14775. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14776. download speed is not restricted).
  14777. * src/PeerStat.h: New class.
  14778. * src/SegmentMan.cc
  14779. (registerPeerStat): New function.
  14780. (calculateDownloadSpeed): New function.
  14781. * src/DownloadCommand.cc
  14782. (STARTUP_IDLE_TIME): New definition.
  14783. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14784. downloadStart.
  14785. (~DownloadCommand): Call peerStat->downloadStop.
  14786. (executeInternal): Added download speed limitter. Rewritten lowest
  14787. speed limitter.
  14788. * src/HttpConnection.cc
  14789. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14790. * src/AbstractCommand.cc
  14791. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14792. Added hostname to the error message.
  14793. * src/ConsoleDownloadEngine.cc
  14794. (calculateStatistics): Initialize psize with dlSize.
  14795. * src/PieceMessage.cc
  14796. (receivedAction): Do not call peerInteraction->abortPiece here.
  14797. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14798. * src/BitfieldMan.h
  14799. (clearAllUseBit): New function.
  14800. (setAllUseBit): New function.
  14801. * src/BitfieldMan.cc
  14802. (clearAllBit): Do not clear useBitfield here.
  14803. (clearAllUseBit): New function.
  14804. (setAllUseBit): New function.
  14805. * src/Piece.cc
  14806. (clearAllBlock): Call bitfield->clearAllUseBit().
  14807. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14808. To make filename URL-decoded:
  14809. * src/HttpResponseCommand.h: Updated doc.
  14810. * src/HttpResponseCommand.cc
  14811. (determinFilename): Made filename URL-decoded.
  14812. * src/FtpInitiateConnectionCommand.cc
  14813. (executeInternal): Made filename URL-decoded.
  14814. * src/Util.h (urldecode): New function.
  14815. * src/Util.cc (urldecode): New function.
  14816. To fix a bug that caused assertion failure in ares_strerror:
  14817. * src/NameResolver.cc (callback): Fixed the bug.
  14818. * Release 0.7.3
  14819. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14820. To add --seed-time and --seed-ratio command-line option:
  14821. * src/Option.h (getAsDouble): New function.
  14822. * src/Option.cc (getAsDouble): New function.
  14823. * src/SeedCheckCommand.h: New class.
  14824. * src/SeedCheckCommand.cc: New class.
  14825. * src/DownloadEngineFactory.cc
  14826. (SeedCheckCommand.h): Included.
  14827. (UnionSeedCriteria.h): Included.
  14828. (TimeSeedCriteria.h): Included.
  14829. (ShareRatioSeedCriteria.h): Included.
  14830. (newTorrentConsoleEngine): Added the processing of seed option.
  14831. * src/SeedCriteria.h: New class.
  14832. * src/ShareRatioSeedCriteria.h: New class.
  14833. * src/TimeSeedCriteria.h: New class.
  14834. * src/UnionSeedCriteria.h: New class.
  14835. * src/prefs.h
  14836. (PREF_SEED_TIME): New definition.
  14837. (PREF_SEED_RATIO): New definition.
  14838. * src/main.cc
  14839. (showUsage): Added --seed-time and --seed-ratio option.
  14840. (main): Added --seed-time and --seed-ratio option.
  14841. Made default log file name "/dev/null".
  14842. * src/SharedHandle.h
  14843. (SharedHandle): Copy constructor. Made it assignable from the
  14844. SharedHandle of the subclasses.
  14845. (operator=): Made it assignable from the SharedHandle of the
  14846. subclasses.
  14847. (getRefCount): New function.
  14848. To add notice log level and the switch to write log to stdout. This
  14849. switch is configurable per log level.
  14850. * src/Logger.h
  14851. (notice): New function.
  14852. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14853. constant.
  14854. * src/LogFactory.cc
  14855. (getInstance): The use of NullLogger was removed. A log message with
  14856. notice log level was made written to stdout along with log file.
  14857. * src/NullLogger.h
  14858. (notice): New function.
  14859. * src/SimpleLogger.h
  14860. (writeHeader): Added the 'file' argument.
  14861. (writeLog): Added the 'file' argument.
  14862. (writeFile): New function.
  14863. (stdoutField): New variable.
  14864. (SimpleLogger): Removed the default constructor.
  14865. (SimpleLogger): Made the default value of logfile 0.
  14866. (debug): Added 'virtual' keyword.
  14867. (info): Added 'virtual' keyword.
  14868. (warn): Added 'virtual' keyword.
  14869. (error): Added 'virtual' keyword.
  14870. (notice): New function.
  14871. (setStdout): New function.
  14872. * src/SimpleLogger.cc
  14873. (WRITE_LOG): Replaced writeLog with writeFile.
  14874. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14875. (SimpleLogger): Removed the default constructor.
  14876. (setStdout): New function.
  14877. (writeLog): Added the handling of NOTICE log level.
  14878. (writeFile): New function.
  14879. (notice): New function.
  14880. * src/TorrentMan.h: Updated doc.
  14881. * src/BitfieldMan.h: Updated doc.
  14882. * src/TrackerWatcherCommand.cc
  14883. (execute): Return true if error occurred in the request to the tracker
  14884. and halt is requested.
  14885. * src/TrackerUpdateCommand.cc
  14886. (execute): Return true if error occurred in the request to the tracker
  14887. and halt is requested.
  14888. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14889. DownloadEngine:
  14890. * src/TorrentConsoleDownloadEngine.h
  14891. (onSelectiveDownloadingCompletes): Removed.
  14892. * src/TorrentConsoleDownloadEngine.cc
  14893. (onSelectiveDownloadingCompletes): Removed.
  14894. * src/TorrentDownloadEngine.h
  14895. (onEndOfRun): Added 'virtual' keyword.
  14896. (afterEachIteration): Removed.
  14897. (onSelectiveDownloadingCompletes): Removed.
  14898. * src/TorrentDownloadEngine.cc
  14899. (onEndOfRun): Removed filenameFixed.
  14900. (afterEachIteration): Removed.
  14901. * src/TorrentMan.cc
  14902. (completePiece): Call onDownloadComplete here.
  14903. (onDownloadComplete): Added 2 log messages.
  14904. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14905. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14906. * src/NameResolver.h: Added the prototype declaration of callback().
  14907. To support c-ares library:
  14908. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14909. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14910. * src/FtpInitiateConnectionCommand.h:
  14911. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14912. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14913. * src/HttpInitiateConnectionCommand.h:
  14914. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14915. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14916. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14917. #1542285 by tizianomueller)
  14918. * src/HttpInitiateConnectionCommand.cc:
  14919. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14920. * src/FtpInitiateConnectionCommand.cc:
  14921. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14922. * src/DownloadEngine.h:
  14923. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14924. * src/DownloadEngine.cc:
  14925. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14926. To fix the bug that causes compilation failure with metalink-support
  14927. disabled(bug#1543587):
  14928. * src/main.cc: Fixed with the patch by tizianomueller.
  14929. * Release 0.7.2
  14930. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14931. * src/main.cc
  14932. (main): Added a message to inform users that aria2 is starting to
  14933. verify checksum.
  14934. * src/RequestInfo.cc
  14935. (printDownloadAbortMessage): Added a message to inform users that
  14936. transfer can be resumed.
  14937. * src/FeatureConfig.cc
  14938. (FEATURE_ASYNC_DNS): New definition.
  14939. (FeatureConfig): Added aysnc DNS entry.
  14940. To replace CommandUuid with Command* in SocketEntry and
  14941. NameResolverEntry:
  14942. * src/DownloadEngine.h
  14943. (CommandUuids): Removed.
  14944. (SocketEntry::commandUuid): Removed.
  14945. (SocketEntry::command): New variable.
  14946. (SocketEntry::SocketEntry): Updated.
  14947. (SocketEntry::operator==): Updated.
  14948. (NameResolverEntry::commandUuid): Removed.
  14949. (NameResolverEntry::command): New variable.
  14950. (NameResolverEntry::NameResolverEntry): Updated.
  14951. (NameResolverEntry::operator==): Updated.
  14952. (waitData): Changed the argument type.
  14953. (addSocketForReadCheck): Changed the argument type.
  14954. (deleteSocketForReadCheck): Changed the argument type.
  14955. (addSocketForWriteCheck): Changed the argument type.
  14956. (deleteSocketForWriteCheck): Changed the argument type.
  14957. (addNameResolverCheck): Changed the argument type.
  14958. (deleteNameResolverCheck): Changed the argument type.
  14959. * src/DownloadEngine.cc
  14960. (FindCommand): Removed.
  14961. (run): Removed activeUuid. Added activeCommands instead.
  14962. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14963. (AccumulateActiveCommand): New function object.
  14964. (waitData): Use AccumulateActiveCommand.
  14965. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14966. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14967. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14968. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14969. (addNameResolverCheck): Use Command instead of CommandUuid.
  14970. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14971. * src/AbstractCommand.cc
  14972. (disableReadCheckSocket): Updated according to the changes in
  14973. DownloadEngine.
  14974. (setReadCheckSocket): Updated according to the changes in
  14975. DownloadEngine.
  14976. (disableWriteCheckSocket): Updated according to the changes in
  14977. DownloadEngine.
  14978. (setWriteCheckSocket): Updated according to the changes in
  14979. DownloadEngine.
  14980. (setNameResolverCheck): Updated according to the changes in
  14981. DownloadEngine.
  14982. (disableNameResolverCheck): Updated according to the changes in
  14983. DownloadEngine.
  14984. * src/AbstractCommand.cc
  14985. (disableReadCheckSocket): Updated according to the changes in
  14986. DownloadEngine.
  14987. (setReadCheckSocket): Updated according to the changes in
  14988. DownloadEngine.
  14989. (disableWriteCheckSocket): Updated according to the changes in
  14990. DownloadEngine.
  14991. (setWriteCheckSocket): Updated according to the changes in
  14992. DownloadEngine.
  14993. * release 0.7.1
  14994. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14995. To handle the case where some BitTorrent tracker requires all letters
  14996. except for [A-Za-z0-9] is URL encoded.
  14997. * src/Util.h
  14998. (torrentUrlencode): New function.
  14999. * src/Util.cc
  15000. (ctype.h): Included.
  15001. (torrentUrlencode): New function.
  15002. * src/TrackerWatcherCommand.cc
  15003. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15004. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15005. To add asynchronous DNS support(libares):
  15006. * src/AbstractCommand.h
  15007. (setNameResolverCheck): New function.
  15008. (disableNameResolverCheck): New function
  15009. (resolveHostname): New function.
  15010. * src/AbstractCommand.cc
  15011. (setNameResolverCheck): New function.
  15012. (disableNameResolverCheck): New function
  15013. (resolveHostname): New function.
  15014. * src/FtpInitiateConnectionCommand.h
  15015. (nameResolver): New function.
  15016. * src/FtpInitiateConnectionCommand.cc
  15017. (Util.h): Included.
  15018. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15019. disableWriteCheckSocket.
  15020. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15021. (executeInternal): Added async DNS support.
  15022. * src/HttpInitiateConnectionCommand.h
  15023. (nameResolver): New function.
  15024. * src/HttpInitiateConnectionCommand.cc
  15025. (DlRetryEx.h): Included.
  15026. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15027. disableWriteCheckSocket.
  15028. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15029. (executeInternal): Added async DNS support.
  15030. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15031. by extern "C" declaration.
  15032. * src/NameResolver.cc: New class.
  15033. * src/Util.h:
  15034. (isNumberAndDotsNotation): New function
  15035. * src/Util.cc
  15036. (isNumberAndDotsNotation): New function.
  15037. * src/DownloadEngine.h
  15038. (NameResolver.h): Included.
  15039. (NameResolverEntry): New class.
  15040. (NameResolverEntries): New type definition.
  15041. (addNameResolverCheck): New function.
  15042. (deleteNameResolverCheck): New function.
  15043. * src/DownloadEngine.cc
  15044. (run): Initialize cp with 0.
  15045. (SetDescriptor::operator()): Added for NameResolverEntry.
  15046. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15047. (waitData): Check nameResolver entries.
  15048. (updateFdSet): Update fds in nameResolver entries.
  15049. (addNameResolverCheck): New function.
  15050. (deleteNameResolverCheck): new function.
  15051. * src/PeerInteractionCommand.cc
  15052. (executeInternal): Fixed wrong socket handling.
  15053. * src/main.cc
  15054. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15055. * src/Util.cc
  15056. (fileChecksum): Removed the call to ctx.digestReset().
  15057. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15058. * po/ru.po: Azamat sent me Russian translation.
  15059. * src/FtpNegotiateCommand.cc
  15060. (recvGreeting): Call disableWriteCheckSocket just after
  15061. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15062. (recvRetr): Recognized status code 125 as a acceptable response code.
  15063. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15064. case-insesitive filesystem(BUG#1531057).
  15065. * src/Time.h: Renamed as TimeA2.h.
  15066. * src/Time.cc: Renamed as TimeA2.cc.
  15067. * src/TimeA2.h: New class.
  15068. * src/TimeA2.cc: New class.
  15069. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15070. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15071. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15072. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15073. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15074. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15075. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15076. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15077. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15078. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15079. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15080. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15081. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15082. * release 0.7.0
  15083. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15084. * src/PeerChokeCommand.h
  15085. (PeerChokeCommand): Rearranged the arguments.
  15086. * src/PeerChokeCommand.cc
  15087. (PeerChokeCommand): Rearranged the arguments.
  15088. * src/MetalinkEntry.h
  15089. (Checksum.h): Included.
  15090. (md5): Removed.
  15091. (sha1): Removed.
  15092. (checksum): New variable.
  15093. (operator=): Updated.
  15094. (check): Removed.
  15095. * src/prefs.h
  15096. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15097. (PREF_FOLLOW_TORRENT): New definition.
  15098. (PREF_SELECT_FILE): New definition.
  15099. (PREF_FOLLOW_METALINK): New definition.
  15100. * src/MetalinkResource.h
  15101. (TYPE_HTTPS): Added to enum TYPE.
  15102. * src/TorrentMan.cc
  15103. (~TorrentMan): Rewritten.
  15104. * src/MultiDiskWriter.cc
  15105. (MultiDiskAdaptor): Updated according to the changes in
  15106. MessageDigestContext.
  15107. (~MultiDiskAdaptor): Updated according to the changes in
  15108. MessageDigestContext.
  15109. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15110. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15111. * src/Util.h
  15112. (fileChecksum): Updated according to the changes in
  15113. MessageDigestContext.
  15114. * src/Util.cc
  15115. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15116. (fileChecksum): Updated according to the changes in
  15117. MessageDigestContext.
  15118. * src/messageDigest.h: Rewritten.
  15119. * src/MetalinkEntry.cc
  15120. (check): Removed.
  15121. (Supported): Updated.
  15122. (dropUnsupportedResource): Fixed a memory leak.
  15123. * src/ShaVisitor.cc
  15124. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15125. (~ShaVisitor): Updated according to the changes in
  15126. MessageDigestContext.
  15127. (visit): Updated according to the changes in MessageDigestContext.
  15128. * src/main.cc
  15129. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15130. command-line option added.
  15131. * src/DownloadEngine.h
  15132. (SocketEntry): New class.
  15133. (SocketEntries): New definition.
  15134. (PairFind): Removed.
  15135. (SockCmdMap): Removed.
  15136. * src/DownloadEngine.cc
  15137. (DownloadEngine): Rewritten.
  15138. (~DownloadEngine): Rewritten.
  15139. (run): Renamed activeCommandUuids as activeUuids.
  15140. (SetDescriptor): Rewritten.
  15141. (AccumulateActiveCommandUuid): Removed.
  15142. (AccumulateActiveUuid): New function object.
  15143. (waitData): Rewritten.
  15144. (updateFdSet): Rewritten.
  15145. (addSocket): Rewritten.
  15146. (deleteSocket): Rewritten.
  15147. (addSocketForReadCheck): Rewritten.
  15148. (deleteSocketForReadCheck): Rewritten.
  15149. (addSocketForWriteCheck): Rewritten.
  15150. (deleteSocketForWriteCheck): Rewritten.
  15151. * src/Xml2MetalinkProcessor.cc
  15152. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15153. * src/DownloadCommand.cc
  15154. (executeInternal): Added the check routine for lowest speed limit.
  15155. * src/AbstractDiskWriter.cc
  15156. (AbstractDiskWriter): Updated according to the changes in
  15157. MessageDigestContext.
  15158. (~AbstractDiskWriter): Updated according to the changes in
  15159. MessageDigestContext.
  15160. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15161. * src/RequestInfo.h: New class.
  15162. * src/UrlRequestInfo.h: New class.
  15163. * src/UrlRequestInfo.cc: New class.
  15164. * src/TorrentRequestInfo.h: New class.
  15165. * src/TorrentRequestInfo.cc: New class.
  15166. * src/MetalinkRequestInfo.h: New class.
  15167. * src/MetalinkRequestInfo.cc: New class.
  15168. * src/Checksum.h: New class.
  15169. * src/DownloadEngineFactory.h: New class.
  15170. * src/DownloadEngineFactory.cc: New class.
  15171. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15172. * src/Option.h
  15173. (getAsBool): New function.
  15174. * src/Option.cc
  15175. (prefs.h): Included.
  15176. (defined): 0-length value is now recognized as undefined.
  15177. (getAsInt): Rewritten.
  15178. (getAsLLInt): Rewritten.
  15179. (getAsBool): New function.
  15180. * src/FeatureConfig.h: Rewritten.
  15181. * src/FeatureConfig.cc: Rewritten.
  15182. * src/prefs.h
  15183. (PREF_STDOUT_LOG): New definition.
  15184. (PREF_LOG): New definition.
  15185. (PREF_DIR): New definition.
  15186. (PREF_OUT): New definition.
  15187. (PREF_SPLIT): New definition.
  15188. (PREF_DAEMON): New definition.
  15189. (PREF_REFERER): New definition.
  15190. (PREF_TORRENT_FILE): New definition.
  15191. (PREF_LISTEN_PORT): New definition.
  15192. (PREF_METALINK_FILE): New definition.
  15193. (PREF_METALINK_VERSION): New definition.
  15194. (PREF_METALINK_LANGUAGE): New definition.
  15195. (PREF_METALINK_OS): New definition.
  15196. (PREF_METALINK_SERVERS): New definition.
  15197. * src/main.cc
  15198. (main): Following command-line parameters are now put into Option
  15199. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15200. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15201. metalinkLanguage, metalinkOs, metalinkServers
  15202. To fix the bug that aria2 can not handle http response header properly.
  15203. * src/HttpHeader.cc
  15204. (put): Made name lowercased.
  15205. (defined): Made name lowercased.
  15206. (getFirst): Made name lowercased.
  15207. (get): Made name lowercased.
  15208. (getFirstAsInt): Rewritten.
  15209. (getFirstAsLLInt): Rewritten.
  15210. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15211. * src/TorrentMan.h:
  15212. (advertisePiece): Updated doc.
  15213. (getAdvertisedPieceIndexes): Updated doc.
  15214. (removeAdvertisedPiece); New function.
  15215. * src/TorrentMan.cc
  15216. (FindElapsedHave): New function object.
  15217. (removeAdvertisedPiece): New function.
  15218. * src/HaveEraseCommand.h: New class.
  15219. * src/HaveEraseCommand.cc: New class.
  15220. * src/FeatureConfig.h: New class.
  15221. * src/FeatureConfig.cc: New class.
  15222. * src/Request.h
  15223. (defaultPorts): Removed.
  15224. * src/Request.cc
  15225. (FeatureConfig.h): Included.
  15226. (Request): Removed the statements related to defaultPorts.
  15227. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15228. A default port number is now retrieved from FeatureConfig.
  15229. * src/main.cc
  15230. (HaveEraseCommand.h): Included.
  15231. (showVersion): Added the output of feature list.
  15232. (main): Added HaveEraseCommand to command queue in BitTorrent
  15233. downloading.
  15234. * src/PeerInteractionCommand.h
  15235. (chokeCheckPoint): Commented out.
  15236. (periodicExecPoint): New variable.
  15237. * src/PeerInteractionCommand.cc
  15238. (executeInternal): Following methods are now called in at least every
  15239. 0.5 seconds to reduce CPU usage:
  15240. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15241. checkHave(), sendKeepAlive().
  15242. (checkLongTimePeerChoking): Commented out.
  15243. * src/BitfieldMan.h
  15244. (getNthBitIndex): Changed the method signature.
  15245. (getMissingIndexRandomly): Changed the method signature.
  15246. * src/BitfieldMan.cc
  15247. (getNthBitIndex): Rewritten
  15248. (getMissingIndexRandomly): Rewritten.
  15249. (hasMissingPiece): Rewritten.
  15250. (getMissingIndex): Refactored.
  15251. (getMissingUnusedIndex); Refactored.
  15252. (getMissingIndex): Refactored.
  15253. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15254. * src/PeerMessage.h
  15255. (Piece.h): Included.
  15256. (SharedHandle.h): Included.
  15257. (invalidate): New variable.
  15258. (uploading): New variable.
  15259. (isInvalidate): New function.
  15260. (isUploading): New function.
  15261. (onPush): New function.
  15262. (onChoked): New function.
  15263. (onCanceled): New function.
  15264. (onAbortPiece): New function.
  15265. (PeerMessageHandle): New type definition.
  15266. * src/PeerMessage.cc
  15267. (PeerMessage): Added the initialization for invalidate and uploading.
  15268. * src/CancelMessage.h
  15269. (CancelMessage): Rewritten.
  15270. * src/RejectMessage.h
  15271. (RejectMessage): Rewritten.
  15272. * src/Metalinker.h
  15273. (operator=): Defined.
  15274. * src/MetaEntry.h
  15275. (operator=): Defined.
  15276. * src/MetalinkResource.h
  15277. (operator=): Defined.
  15278. * src/AllowedFastMessage.h
  15279. (AllowedFastMessage): Rewritten.
  15280. * src/HandshakeMessage.h
  15281. (HandshakeMessage): New function(overload).
  15282. * src/HandshakeMessage.cc
  15283. (HandshakeMessage): Rewritten.
  15284. (init): New function.
  15285. * src/HaveMessage.h
  15286. (HaveMessage): Rewritten.
  15287. * src/Time.h
  15288. (operator=): Defined the function body here.
  15289. * src/Time.cc
  15290. (operator=): Removed.
  15291. * src/SocketCore.h
  15292. (operator==): Defined here.
  15293. (operator!=): Defined here.
  15294. (operator<): Defined here.
  15295. * src/SocketCore.cc
  15296. (operator==): Removed.
  15297. (operator<): Removed.
  15298. * src/BitfieldMan.h
  15299. (operator=): Defined the function body here.
  15300. * src/BitfieldMan.cc
  15301. (operator=): Removed.
  15302. * src/TorrentMan.h
  15303. (deleteErrorPeer): Removed.
  15304. (deleteUnusedPeer); New function.
  15305. * src/TorrentMan.cc
  15306. (addPeer): Call deleteUnusedPeer.
  15307. (deleteErrorPeer): Removed.
  15308. (deleteUnusedPeer): New function.
  15309. * src/PeerAbstractCommand.h
  15310. (setNoCheck): New function.
  15311. (noCheck): New variable.
  15312. * src/PeerAbstractCommand.cc
  15313. (PeerAbstractCommand): Added the initialization of noCheck.
  15314. (execute): Added a check for noCheck.
  15315. (setNoCheck): New function.
  15316. * src/Util.h
  15317. (stdio.h): Included.
  15318. * src/Util.cc
  15319. (unistd.h): Included.
  15320. * src/DefaultDiskWriter.cc
  15321. (unistd.h): Included.
  15322. * src/Peer.h
  15323. (operator==): Defined the function body here.
  15324. (operator!=): Defined the function body here.
  15325. * src/Peer.cc
  15326. (operator==): Removed.
  15327. (operator!=): Removed.
  15328. * src/Piece.h
  15329. (Piece): Defined the function body here(copy constructor).
  15330. (operator=): Defined the function body here.
  15331. (operator==): Defined the function body here.
  15332. * src/Piece.cc
  15333. (Piece): Removed(copy constructor).
  15334. (operator=): Removed.
  15335. (operator==): Removed.
  15336. * src/PeerMessageUtil.h
  15337. (ChokeMessage.h): Removed.
  15338. (UnchokeMessage.h): Removed.
  15339. (InterestedMessage.h): Removed.
  15340. (NotInterestedMessage.h): Removed.
  15341. (HaveMessage.h): Removed.
  15342. (BitfieldMessage.h): Removed.
  15343. (RequestMessage.h): Removed.
  15344. (CancelMessage.h): Removed.
  15345. (PieceMessage.h): Removed.
  15346. (HandshakeMessage.h): Removed.
  15347. (KeepAliveMessage.h): Removed.
  15348. (PortMessage.h): Removed.
  15349. (HaveAllMessage.h): Removed.
  15350. (HaveNoneMessage.h): Removed.
  15351. (PeerConnection.h): Removed.
  15352. (HandshakeMessage.h): Included.
  15353. * src/BitfieldMessage.h
  15354. (init): New function.
  15355. (BitfieldMessage): Rewritten.
  15356. (BitfieldMessage): New function(overload).
  15357. * src/RequestSlot.h
  15358. (operator=): Defined the function body here.
  15359. (operator==): Defined the function body here.
  15360. * src/RequestSlot.cc
  15361. (operator=): Removed.
  15362. (operator==): Removed.
  15363. To remove the dependency on the PeerMessage subclass from
  15364. PeerInteraction:
  15365. * src/PeerMessageFactory.h: New class.
  15366. * src/PeerMessageFactory.cc: New class.
  15367. * src/SimplePeerMessage.cc
  15368. (send): If invalidate is true then do nothing.
  15369. * src/PeerInteractionCommand.cc
  15370. (HandshakeMessage.h): Included.
  15371. (KeepAliveMessage.h): Included.
  15372. (ChokeMessage.h): Included.
  15373. (UnchokeMessage.h): Included.
  15374. (HaveMessage.h): Included.
  15375. (executeInternal): Call setNoCheck().
  15376. Removed setWriteCheckSocket(socket).
  15377. * src/PeerInteraction.h
  15378. (ChokeMessage.h): Removed.
  15379. (UnchokeMessage.h): Removed.
  15380. (InterestedMessage.h): Removed.
  15381. (NotInterestedMessage.h): Removed.
  15382. (HaveMessage.h): Removed.
  15383. (BitfieldMessage.h): Removed.
  15384. (RequestMessage.h): Removed.
  15385. (CancelMessage.h): Removed.
  15386. (PieceMessage.h): Removed.
  15387. (HandshakeMessage.h): Removed.
  15388. (KeepAliveMessage.h): Removed.
  15389. (PortMessage.h): Removed.
  15390. (HaveAllMessage.h): Removed.
  15391. (HaveNoneMessage.h): Removed.
  15392. (RejectMessage.h): Removed.
  15393. (AllowedFastMessage.h): Removed.
  15394. (SuggestPieceMessage.h): Removed.
  15395. (PeerMessageFactory.h): Included.
  15396. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15397. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15398. (PeerMessageFactory): New variable.
  15399. (createPeerMessage): Removed.
  15400. (createHandshakeMessage): Removed.
  15401. (setPeerMessageCommonProperty): Removed.
  15402. (addRequestSlot): New function.
  15403. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15404. (getPeerMessageFactory): New function.
  15405. (createRequestMessage): Removed.
  15406. (createCancelMessage): Removed.
  15407. (createPieceMessage): Removed.
  15408. (createHaveMessage): Removed.
  15409. (createChokeMessage): Removed.
  15410. (createUnchokeMessage): Removed.
  15411. (createInterestedMessage): Removed.
  15412. (createNotInterestedMessage): Removed.
  15413. (createBitfieldMessage): Removed.
  15414. (createKeepAliveMessage): Removed.
  15415. (createHaveAllMessage): Removed.
  15416. (createHaveNoneMessage): Removed.
  15417. (createRejectMessage): Removed.
  15418. (createAllowedFastMessage): Removed.
  15419. * src/PeerInteraction.cc
  15420. (PeerInteraction): Allocate PeerMessageFactory here.
  15421. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15422. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15423. PieceMessage::ID.
  15424. (addMessage): Simplified by using PeerMessage::onPush().
  15425. (addRequestSlot): New function.
  15426. (rejectAllPieceMessageInQueue): Simplified by using
  15427. PeerMessage::onChoked().
  15428. (rejectPieceMessageInQueue): Simplified by using
  15429. PeerMessage::onCanceled().
  15430. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15431. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15432. (createHandshakeMessage): Removed.
  15433. (createPeerMessage): Removed.
  15434. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15435. (setPeerMessageCommonProperty): Removed.
  15436. (createRequestMessage): Removed.
  15437. (createCancelMessage): Removed.
  15438. (createPieceMessage): Removed.
  15439. (createHaveMessage): Removed.
  15440. (createChokeMessage): Removed.
  15441. (createUnchokeMessage): Removed.
  15442. (createInterestedMessage): Removed.
  15443. (createNotInterestedMessage): Removed.
  15444. (createBitfieldMessage): Removed.
  15445. (createKeepAliveMessage): Removed.
  15446. (createHaveAllMessage): Removed.
  15447. (createHaveNoneMessage): Removed.
  15448. (createRejectMessage): Removed.
  15449. (createAllowedFastMessage): Removed.
  15450. * src/PieceMessage.h
  15451. (createRejectMessage): New function.
  15452. (PieceMessage): Rewritten.
  15453. (onChoked): New function.
  15454. (onCanceled): New function.
  15455. * src/PieceMessage.cc
  15456. (send): If invalidate is true then do nothing, just return.
  15457. (createRejectMessage): New function.
  15458. (onChoked): New function.
  15459. (onCanceled): New function.
  15460. * src/RequestMessage.h
  15461. (RequestMessage): Rewritten.
  15462. (onPush): New function.
  15463. (onAbortPiece): New function.
  15464. * src/RequestMessage.cc
  15465. (onPush): New function.
  15466. (onAbortPiece): New function.
  15467. Update fd_set when a socket is added or deleted in order to improve
  15468. performance:
  15469. * src/DownloadEngine.h
  15470. (rfdset): New variable.
  15471. (wfdset): New variable.
  15472. (updateFdSet): New function.
  15473. * src/DownloadEngine.cc
  15474. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15475. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15476. (waitData): Copy rfdset and wfdset.
  15477. (updateFdSet): New function.
  15478. (addSocket): Call updateFdSet.
  15479. (deleteSocket): Call updateFdSet.
  15480. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15481. To add the support for Metalink3.0 backward compatible links:
  15482. * src/Request.h
  15483. (SAFE_CHARS): Added '#'.
  15484. (METALINK_MARK): New definition.
  15485. * src/Request.cc
  15486. (parseUrl): Added the support for Metalink3.0 backward compatible
  15487. links.
  15488. etc
  15489. * src/PeerInteraction.cc
  15490. (MsgPushBack): Removed.
  15491. (sendMessages): Use STL copy and back_inserter.
  15492. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15493. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15494. * src/TorrentMan.h
  15495. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15496. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15497. * src/SharedHandle.h: New class.
  15498. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15499. * src/HttpResponseCommand.h
  15500. (HttpResponseCommand): Wrapped Socket.
  15501. * src/SocketCore.h
  15502. (operator==): New function.
  15503. (operator!=): New function.
  15504. (operator<): New function.
  15505. (getSockfd): New function.
  15506. (isOpen): New function.
  15507. (writeData): New function.
  15508. * src/SocketCore.cc
  15509. (operator==): New function.
  15510. (operator!=): New function.
  15511. (operator<): New function.
  15512. * src/AbstractCommand.h
  15513. (socket): Changed its type to SocketHandle.
  15514. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15515. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15516. (disableReadCheckSocket): New function.
  15517. (disableWriteCheckSocket): New function.
  15518. (readCheckTarget): Changed its type to SocketHandle.
  15519. (writeCheckTarget): Changed its type to SocketHandle.
  15520. (AbstractCommand): Replaced Socket with SocketHandle.
  15521. * src/AbstractCommand.cc
  15522. (AbstractCommand): Replaced Socket with SocketHandle.
  15523. (~AbstractCommand): Removed the deallocation for Socket object.
  15524. (disableReadCheckSocket): New function.
  15525. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15526. (disableWriteCheckSocket): New function.
  15527. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15528. * src/HttpDownloadCommand.cc
  15529. (DownloadCommand): Replaced Socket with SocketHandle.
  15530. * src/PeerAbstractCommand.h
  15531. (socket): Changed its type to SocketHandle.
  15532. (peer): Changed its type to PeerHandle.
  15533. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15534. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15535. (disableReadCheckSocket): New function.
  15536. (disableWriteCheckSocket): New function.
  15537. (readCheckTarget): Changed its type to SocketHandle.
  15538. (writeCheckTarget): Changed its type to SocketHandle.
  15539. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15540. Replaced Peer with PeerHandle.
  15541. * src/HttpRequestCommand.cc
  15542. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15543. Use disableReadCheckSocket.
  15544. * src/PeerInitiateConnectionCommand.h
  15545. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15546. * src/PeerChokeCommand.cc
  15547. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15548. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15549. (execute): Use PeerHandle.
  15550. * src/PeerConnection.h
  15551. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15552. (socket): Changed its type to SocketHandle.
  15553. (PeerConnection): Replaced Socket with SocketHandle.
  15554. * src/PeerConnection.cc
  15555. (PeerConnection): Replaced Socket with SocketHandle.
  15556. * src/PeerInteractionCommand.h
  15557. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15558. Replaced Peer with PeerHandle.
  15559. * src/PeerInteractionCommand.cc
  15560. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15561. Replaced Peer with PeerHandle.
  15562. (executeInternal): Use disableWriteCheckSocket.
  15563. Use HandshakeMessageHandle.
  15564. (receiveMessages): Use PeerMessageHandle.
  15565. (prepareForNextPeer): Use PeerHandle.
  15566. * src/HttpProxyRequestCommand.h
  15567. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15568. * src/HttpResponseCommand.cc
  15569. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15570. * src/TorrentMan.cc
  15571. (nullPeer): Added external reference.
  15572. (~TorrentMan): Removed the deallocation of the elements of peers.
  15573. (addPeer): Rewritten.
  15574. (isPeerAvailable): Use nullPeer.
  15575. (deleteOldpeers): Replaced with deleteErrorPeer.
  15576. (deleteErrorPeer): New function.
  15577. (getPeer): Use PeerHandle and nullPeer.
  15578. (hasMissingPiece): Replaced Peer with PeerHandle.
  15579. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15580. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15581. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15582. (getMissingPiece): Replaced Peer with PeerHandle.
  15583. * src/FtpNegotiateCommand.cc
  15584. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15585. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15586. (recvGreeting): Use disableWriteCheckSocket.
  15587. (recvPasv): Removed the allocation of Socket.
  15588. Use disableReadCheckSocket.
  15589. (sendRestPasv): Use disableWriteCheckSocket.
  15590. (recvRetr): Changed assertion.
  15591. * src/PeerInteraction.h
  15592. (SharedHandle.h): Included SharedHandle.h.
  15593. (PeerMessageHandle): New type definition.
  15594. (HandshakeMessageHandle): New type definition.
  15595. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15596. (peer): Changed its type to PeerHandle.
  15597. (createHandshakeMessage): Replaced HandshakeMessage with
  15598. HandshakeMessageHandle.
  15599. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15600. (PeerInteraction): Replaced Peer with PeerHandle.
  15601. Replaced Socket with SocketHandle.
  15602. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15603. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15604. (receiveHandshake): Replaced HandshakeMessage with
  15605. HandshakeMessageHandle.
  15606. * src/PeerInteraction.cc
  15607. (PeerInteraction): Replaced Peer with PeerHandle.
  15608. Replaced Socket with SocketHandle.
  15609. (~PeerInteraction): Removed the deallocation of the elements of
  15610. messageQueue.
  15611. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15612. (isSendingMessageInProgress): Replaced PeerMessage with
  15613. PeerMessageHandle.
  15614. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15615. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15616. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15617. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15618. (abortPiece): Use PeerMessageHandle.
  15619. (receiveHandshake): Replaced HandshakeMessage with
  15620. HandshakeMessageHandle. Removed try-catch block.
  15621. (createHandshakeMessage): Replaced HandshakeMessage with
  15622. HandshakeMessageHandle.
  15623. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15624. Removed try-catch block.
  15625. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15626. * src/HttpProxyResponseCommand.cc
  15627. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15628. * src/FtpTunnelResponseCommand.h
  15629. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15630. * src/HttpConnection.cc
  15631. (HttpConnection): Replaced Socket with SocketHandle.
  15632. * src/PeerAbstractCommand.cc
  15633. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15634. (~PeerAbstractCommand): Removed the deallocation of socket.
  15635. Use disableReadCheckSocket, disableWriteCheckSocket.
  15636. (disableReadCheckSocket): New function.
  15637. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15638. (disableWriteCheckSocket): New function.
  15639. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15640. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15641. * src/FtpTunnelRequestCommand.cc
  15642. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15643. (~FtpTunnelRequestCommand): Corrected indentation.
  15644. * src/DownloadCommand.h
  15645. (DownloadCommand): Replaced Socket with SocketHandle.
  15646. * src/PeerListenCommand.cc
  15647. (PeerListenCommand): Removed the initialization of socket.
  15648. (~PeerListenCommand): Removed the deallocation of socket.
  15649. (bindPort): Use SocketHandle.
  15650. (execute): Use SocketHandle and PeerHandle.
  15651. * src/FtpDowndloadCommand.cc
  15652. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15653. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15654. * src/main.cc
  15655. (main): Corrected indentation.
  15656. * src/HttpInitiateConnectionCommand.cc
  15657. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15658. (executeInternal): Removed the allocation of socket.
  15659. * src/HttpRequestCommand.h
  15660. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15661. * src/FtpNegotiationCommand.h
  15662. (dataSocket): Changed its type to SocketHandle.
  15663. (serverSocket): Changed its type to SocketHandle.
  15664. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15665. * src/TorrentMan.h
  15666. (MAX_PEER_UPDATE): Removed.
  15667. (MAX_PEERS): New definition.
  15668. (Peers): The element is now of type PeerHandle.
  15669. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15670. (getPeer): Replaced Peer with PeerHandle.
  15671. (deleteOldErrorPeers): Removed.
  15672. (deleteErrorPeer): New function.
  15673. (hasMissingPiece): Replaced Peer with PeerHandle.
  15674. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15675. (getMissingPiece): Replaced Peer with PeerHandle.
  15676. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15677. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15678. (addActivePeer): Replaced Peer with PeerHandle.
  15679. (deleteActivePeer): Replaced Peer with PeerHandle.
  15680. Added a check for the return value of find.
  15681. * src/FtpTunnelResponseCommand.cc
  15682. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15683. * src/FtpInitiateConnectionCommand.cc
  15684. (executeInternal): Removed the allocation of socket.
  15685. * src/DownloadEngine.h
  15686. (Sockets): An element is now of type SocketHandle.
  15687. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15688. (CommandUuids): New type definition.
  15689. (rsockets): Changed its type to SockCmdMap.
  15690. (wsockets): Changed its type to SockCmdMap.
  15691. (addSocket): Rewritten.
  15692. (deleteSocket): Rewritten.
  15693. (addSocketForReadCheck): Rewritten.
  15694. (deleteSocketForReadCheck): Rewritten.
  15695. (addSocketForWriteCheck): Rewritten.
  15696. (deleteSocketForWriteCheck): Rewritten.
  15697. (PairFind): New template class.
  15698. * src/HttpDownloadCommand.h
  15699. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15700. * src/FtpConnection.cc
  15701. (FtpConnection): Replaced Socket with SocketHandle.
  15702. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15703. block.
  15704. * src/InitiateConnectionCommandFactory.cc
  15705. (DlAbortEx.h): Included DlAbortEx.h.
  15706. (createInitiateConnectionCommand): Throw exception if the protocol of
  15707. requested URI is not supported.
  15708. * src/Peer.cc
  15709. (nullPeer): Changed its type to PeerHandle.
  15710. (operator==): New function.
  15711. (operator!=): New function.
  15712. * src/Peer.h
  15713. (SharedHandle.h): Included SharedHandle.h.
  15714. (operator==): New function.
  15715. (operator!=): New function.
  15716. (Peer): Added the default constructor.
  15717. Use resetStatus() to initialize member variables.
  15718. (nullPeer): Removed.
  15719. * src/TrackerUpdateCommand.cc
  15720. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  15721. with MIN_PEERS.
  15722. * src/PeerListenCommand.h
  15723. (socket): Changed its type to SocketHandle.
  15724. * src/Command.h
  15725. (CommandUuid): New type definition.
  15726. (uuid): New variable.
  15727. (uuidGen): New variable.
  15728. (Command): Added the initialization of uuid.
  15729. (getUuid): New function.
  15730. * src/Socket.h
  15731. (Socket): Removed.
  15732. (SocketHandle): New type definition.
  15733. * src/DownloadEngine.h
  15734. (FindCommand): New function object.
  15735. (run): The portion of socket check was rewritten.
  15736. (SetDescriptor): New function object.
  15737. (AccumulateActiveCommandUuid): New function object.
  15738. (waitData): Rewritten.
  15739. (addSocket): Rewritten.
  15740. (deleteSocket): Rewritten.
  15741. (addSocketForReadCheck): Rewritten.
  15742. (addSocketForWriteCheck): Rewritten.
  15743. (deleteSocketForReadCheck): Rewritten.
  15744. (deleteSocketForWriteCheck): Rewritten.
  15745. * src/HttpProxyResponseCommand.h
  15746. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  15747. * src/HttpConnection.h
  15748. (socket): Changed its type to SocketHandle.
  15749. (HttpConnection): Replaced Socket with SocketHandle.
  15750. * src/PeerInitiateConnectionCommand.cc
  15751. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15752. (executeInternal): Removed the allocation of socket.
  15753. (prepareForNextPeer): Use PeerHandle.
  15754. * src/PeerMessage.h
  15755. (peer): Changed its type to PeerHandle.
  15756. (getPeer): Replaced Peer with PeerHandle.
  15757. (setPeer): Replaced Peer with PeerHandle.
  15758. * src/DownloadCommand.cc
  15759. (DownloadCommand): Replaced Socket with SocketHandle.
  15760. * src/FtpConnection.h
  15761. (socket): Changed its type to SocketHandle.
  15762. (FtpConnection): Replaced Socket with SocketHandle.
  15763. (sendPort); Replaced Socket with SocketHandle.
  15764. * src/FtpDowndloadCommand.h
  15765. (ctrlSocket): Changed its type to SocketHandle.
  15766. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15767. * src/HttpProxyRequestCommand.cc
  15768. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15769. * src/FtpTunnelRequestCommand.h
  15770. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15771. etc
  15772. * src/PeerChokeCommand.h
  15773. (setAllPeerChoked): Removed.
  15774. (setAllPeerResetDelta): Removed.
  15775. * src/PeerChokeCommand.cc
  15776. (setAllPeerChoked): Removed.
  15777. (ChokePeer): New function object.
  15778. (setAllPeerResetDelta): Removed.
  15779. (ResetDelta): New function object.
  15780. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15781. (execute): Show download speed when the local node is a seeder.
  15782. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15783. using STL.
  15784. * src/TrackerWatcherCommand.h
  15785. (MIN_PEERS): Removed.
  15786. * src/TorrentMan.cc
  15787. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15788. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15789. To fix the bug that .aria2 file is not saved if downloading is stopped
  15790. by the errors:it results that aria2 can not resume downloading:
  15791. * src/main.cc
  15792. (normalDownload): Added the call to save().
  15793. (main): Added the deletion of the elements in 'reserved'.
  15794. To fix log:
  15795. * src/PeerInteraction.cc
  15796. (receiveHandshake): Fixed log.
  15797. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15798. To improve download performance in BitTorrent:
  15799. * src/TorrentMan.cc
  15800. (getPeer): Check the number of connections. Return nullPeer if
  15801. it is greater than MAX_PEER_UPDATE.
  15802. This code was originally here, but was removed in 0.5.1.
  15803. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15804. To improve the conditional compilation:
  15805. * src/MultiDiskWriter.h:
  15806. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15807. * src/MultiDiskWriter.cc:
  15808. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15809. * src/Util.h:
  15810. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15811. Added ENABLE_BITTORRENT around computeFastSet().
  15812. * src/Util.cc:
  15813. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15814. Added ENABLE_BITTORRENT around computeFastSet().
  15815. * src/messageDigest.h:
  15816. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15817. * src/ShaVisitor.h:
  15818. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15819. * src/ShaVisitor.cc:
  15820. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15821. * src/main.cc:
  15822. Added ENABLE_BITTORRENT around includes and blocks related to
  15823. BitTorrent.
  15824. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15825. digest support is not available.
  15826. * src/AbstractDiskWriter.h:
  15827. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15828. * src/AbstractDiskWriter.cc:
  15829. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15830. * src/MetalinkEntry.cc
  15831. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15832. support is not available.
  15833. To add command-line options for Metalink:
  15834. * src/main.cc:
  15835. Added metalink-version, metalink-language, metalink-os,
  15836. follow-metalink.
  15837. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15838. * src/main.cc: Use these definition.
  15839. * Release 0.6.0
  15840. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15841. To add Metalink support(http/ftp only):
  15842. * src/AbstractCommand.h
  15843. (tryReserved): New function.
  15844. * src/AbstractCommand.cc
  15845. (execute): Call tryReserved().
  15846. (tryReserved): New function.
  15847. * src/Request.h
  15848. (Requests): New type definition.
  15849. * src/SegmentMan.h
  15850. (reserved): New variable.
  15851. * src/Util.h
  15852. (fileChecksum): New function.
  15853. (toUpper): New function.
  15854. (toLower): New function.
  15855. * src/Util.cc
  15856. (messageDigest.h): Included.
  15857. (trim): Trim \r\n\t.
  15858. (fileChecksum): New function.
  15859. (toUpper): New function.
  15860. (toLower): New function.
  15861. * src/main.cc
  15862. (normalDownload): New function.
  15863. (main): Added 2 command-line options: metalink-file,
  15864. metalink-connection. Their usage has not been written yet.
  15865. * src/MetalinkProcessor.h: New class.
  15866. * src/Xml2MetalinkProcessor.h: New class.
  15867. * src/Xml2MetalinkProcessor.cc: New class.
  15868. * src/MetalinkEntry.h: New class.
  15869. * src/MetalinkEntry.cc: New class.
  15870. * src/MetalinkResource.h: New class.
  15871. * src/MetalinkResource.cc: New class.
  15872. To add md5 message digest checking:
  15873. * src/messageDigest.h: Rewritten.
  15874. * src/MultiDiskWriter.cc: Updated according to the changes in
  15875. messageDigest.h.
  15876. * src/ShaVisitor.cc: Updated according to the changes in
  15877. messageDigest.h.
  15878. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15879. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15880. messageDigest.h.
  15881. To fix a bug that causes segfault when the payload length in peer
  15882. message is less than 0:
  15883. * src/PeerConnection.cc:
  15884. (receiveMessage): Fixed the bug.
  15885. * src/PeerMessageUtil.cc
  15886. (checkLength): Throw an exception if length is less than or equals to
  15887. 0.
  15888. To add new interfaces to Base64 encoding/decoding:
  15889. * src/Base64.h
  15890. (part_encode): Changed the method signature.
  15891. (encode): New function(overload).
  15892. (decode): New function(overload).
  15893. * src/Base64.cc
  15894. (part_encode): Rewritten.
  15895. (encode): Rewritten.
  15896. (encode): New function(overload).
  15897. To prevent a peer to download same piece if there is an error in
  15898. checksum:
  15899. * src/PieceMessage.cc
  15900. (receivedAction): Call peerInteraction->abortPiece().
  15901. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15902. To fix the bug that causes same have message is sent many times to
  15903. a single peer.
  15904. * src/Time.cc
  15905. (isNewer): Use Util::difftv().
  15906. * src/Util.cc
  15907. (difftv): Added a cast to (long long int).
  15908. * src/TorrentMan.cc
  15909. (advertisePiece): Use push_front.
  15910. (getAdvertisedPieceIndexes): A performance improvement was made.
  15911. To fix the bug that sends tracker requests without a sleep interval
  15912. when the number of connections is less than 15.
  15913. * src/TrackerWatcherCommand.cc
  15914. (execute): Now the number of connections is not a factor to decide
  15915. whether or not a tracker request should be sent or not.
  15916. * src/Time.h
  15917. (setTimeInSec): New function.
  15918. * src/Time.cc
  15919. (setTimeInSec): New function.
  15920. etc.
  15921. * src/ChokeMessage.cc
  15922. (receivedAction): Removed peer->snubbing = false
  15923. * src/PeerConnection.h
  15924. (receiveHandshake): Updated doc.
  15925. * src/TorrentMan.h
  15926. (getAdvertisedPieceIndexes): Updated the method signature.
  15927. * src/TorrentMan.cc
  15928. (getAdvertisedPieceIndexes): Updated the method signature.
  15929. * src/Time.h
  15930. (getTimeInMicros): Added a cast to (long long int).
  15931. (getTimeInMillis): Added a cast to (long long int).
  15932. * Release 0.5.2
  15933. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15934. To make a listening socket non-block:
  15935. * src/SocketCore.h
  15936. (setNonBlockingMode): New function.
  15937. * src/SocketCore.cc
  15938. (setNonBlockingMode): New function.
  15939. (beginListen): Added a call to setNonBlockingMode().
  15940. (acceptConnection): Call setNonBlockingMode().
  15941. (setBlockingMode): Updated.
  15942. To handle tracker's NAT-checking:
  15943. * src/PeerConnection.cc
  15944. (receiveHandshake): 'msg' param is filled with received data and
  15945. its length is assigned to 'length' param, even if all handshake
  15946. message is not yet received.
  15947. * src/PeerInteractionCommand.cc
  15948. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15949. a new peer connects to localhost.
  15950. A call to peerInteraction->sendHandshake() was removed because
  15951. it is called from peerInteraction->receiveHandshake(true).
  15952. * src/PeerInteraction.h
  15953. (quickReplied): New variable.
  15954. (receiveHandshake): Added an argument.
  15955. * src/PeerInteraction.cc
  15956. (PeerInteraction): Added the initialization of quickReplied.
  15957. (receiveHandshake): Send handshake message as soon as the info hash
  15958. in a handshake message from a peer is correct.
  15959. To change the random part of peer id and key parameter:
  15960. * src/TorrentMan.h
  15961. (key): New variable.
  15962. * src/TorrentMan.cc
  15963. (setupInternal1): Use Util::randomAlpha() to generate random part
  15964. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15965. key is also generated by Util::randomAlpha() and it is now 8 character
  15966. long.
  15967. * src/Util.h
  15968. (randomAlpha): New function.
  15969. * src/Util.cc
  15970. (randomAlpha): New function.
  15971. * src/TrackerWatcherCommand.cc
  15972. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15973. Added no_peer_id=1.
  15974. Set snubbing flag to false when a choke message is received from a
  15975. snubbed peer.
  15976. * src/ChokeMessage.cc
  15977. (receivedAction): Set snubbing flag to false.
  15978. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15979. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15980. * src/SimpleLogger.h (writeHeader): New function.
  15981. * src/SimpleLogger.cc (writeHeader): New function.
  15982. (writeLog): Fixed the bug that causes segfaults if exception message
  15983. contains an unescaped "%" character.
  15984. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15985. when a tracker request fails.
  15986. * src/Request.cc (parseUrl): Query string is now handled properly.
  15987. * Release 0.5.1
  15988. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15989. To add Time class which represents a specific instant in time and
  15990. its precision is microseconds. Time checking procedures were rewritten
  15991. using this object.
  15992. * src/Time.h: New class.
  15993. * src/Time.cc: New class.
  15994. * src/AbstractCommand.h
  15995. (updateCheckPoint): Removed.
  15996. (isTimeoutDetected): Removed.
  15997. (checkPoint): Changed the type to Time.
  15998. (timeout): New variable.
  15999. (setTimeout): New function.
  16000. * src/AbstractCommand.cc
  16001. (AbstractCommand): Removed the initialization of checkPoint.
  16002. Added the initialization of timeout.
  16003. (updateCheckPoint): Removed.
  16004. (isTimeoutDetected): Removed.
  16005. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16006. * src/PeerChokeCommand.h
  16007. (checkPoint): Changed the type to Time.
  16008. * src/PeerChokeCommand.cc
  16009. (PeerChokeCommand): Removed the initialization of checkPoint.
  16010. (execute): Rewritten using Time object.
  16011. * src/TrackerWatcherCommand.h
  16012. (checkPoint): Changed the type to Time.
  16013. * src/TrackerWatcherCommand.cc
  16014. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16015. (execute): Rewritten.
  16016. * src/ConsoleDownloadEngine.h
  16017. (cp): Changed the type to Time.
  16018. (startup): Changed the type to Time.
  16019. * src/ConsoleDownloadEngine.cc
  16020. (initStatistics): Use cp.reset(), startup.reset().
  16021. (calculateStatistics): Rewritten using Time object.
  16022. * src/PeerAbstractCommand.h
  16023. (updateCheckPoint): Removed.
  16024. (isTimeoutDetected): Removed.
  16025. (checkPoint): Changed the type to Time.
  16026. * src/PeerAbstractCommand.cc
  16027. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16028. (updateCheckPoint): Removed.
  16029. (isTimeoutDetected): Removed.
  16030. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16031. * src/PeerInteractionCommand.cc
  16032. (PeerInteractionCommand): Removed the initializations of struct
  16033. timeval variables.
  16034. * src/PeerInteractionCommand.h
  16035. (keepAliveCheckPoint): Changed the type to Time.
  16036. (chokeCheckPoint): Changed the type to Time.
  16037. (freqCheckPoint): Changed the type to Time.
  16038. (haveCheckTime): Changed the type to Time.
  16039. * src/PeerInteractionCommand.cc
  16040. (executeInternal): Rewritten using Time object.
  16041. (detectMessageFlooding): Rewritten using Time object.
  16042. (checkLongTimePeerChoking): Rewritten using Time object.
  16043. (sendKeepAlive): Rewritten using Time object.
  16044. (checkHave): Rewritten using Time object.
  16045. * src/SleepCommand.h
  16046. (checkPoint): Changed the type to Time.
  16047. * src/SleepCommand.cc
  16048. (SleepCommand): Removed the initialization of checkPoint.
  16049. (execute): Rewritten using Time object.
  16050. * src/TorrentAutoSaveCommand.h
  16051. (checkPoint): Changed the type to Time.
  16052. * src/TorrentAutoSaveCommand.cc
  16053. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16054. (execute): Rewritten.
  16055. * src/DownloadCommand.h
  16056. (sw): Changed the type to Time.
  16057. * src/DownloadCommand.cc
  16058. (DownloadCommand): Removed the initialization of sw.
  16059. (executeInternal): Rewritten.
  16060. * src/RequestSlot.h
  16061. (dispatchedTime): Changed the type to Time.
  16062. * src/RequestSlot.cc
  16063. (RequestSlot): Removed the call to setDispatchedTime().
  16064. (setDispatchedTime): Rewirtten.
  16065. (isTimeout): Rewritten.
  16066. (getLatencyInMillis): Rewritten.
  16067. * src/TorrentDownloadEngine.h
  16068. (cp): Changed the type to Time[2].
  16069. (startup): Changed the type to Time.
  16070. * src/TorrentDownloadEngine.cc
  16071. (initStatistics): Rewritten.
  16072. (calculateStatistics): Rewritten.
  16073. * src/DownloadEngine.cc
  16074. (run): Rewritten.
  16075. To detect all attempts to connect to the tracker are failed:
  16076. * src/AbstractCommand.cc
  16077. (execute): Increment e->segmentMan->errors if a command aborted.
  16078. * src/SegmentMan.h
  16079. (errors): New variable.
  16080. * src/SegmentMan.cc
  16081. (SegmentMan): Added the initialization of errors.
  16082. (init): Added the initialization of errors.
  16083. * src/TrackerWatcherCommand.cc
  16084. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16085. request was failed.
  16086. To handle snubbed peers:
  16087. * src/PeerChokeCommand.cc
  16088. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16089. (execute): Snubbed peers don't get unchoked.
  16090. * src/PeerInteraction.h
  16091. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16092. * src/PeerInteraction.cc
  16093. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16094. back the requested 16k block in 60 seconds.
  16095. * src/PieceMessage.cc
  16096. (receivedAction): A peer's snubbed state is cleard if it sends
  16097. the requested 16k block in 60 seconds.
  16098. * src/Peer.h
  16099. (snubbing): New variable.
  16100. * src/Peer.cc
  16101. (resetStatus): Added snubbed = false.
  16102. To fix the bug that causes have message is not sent:
  16103. * src/PeerInteractionCommand.cc
  16104. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16105. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16106. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16107. * src/TorrentMan.h
  16108. (HaveEntry): New class.
  16109. (advertisePiece): Rewritten.
  16110. (getAdvertisedPieceIndexes): Rewritten.
  16111. (Haves): Changed the type.
  16112. (getAdvertisedPieceIndexes): Added an argument.
  16113. Others:
  16114. * src/TorrentMan.h
  16115. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16116. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16117. * src/TorrentMan.cc
  16118. (getPeer): Don't check the number of connections here.
  16119. (setupInternal1): Changed peerId.
  16120. * src/PeerInteractionCommand.h
  16121. (KEEP_ALIVE_INTERVAL): New definition.
  16122. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16123. * src/main.cc
  16124. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16125. * src/DownloadEngine.h: Removed unnecessary header includes.
  16126. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16127. To fix the bug that causes segfaults if a tracker returns a zero-length
  16128. list as "peers":
  16129. * src/TrackerUpdateCommand.cc
  16130. (execute): Added a check to see wether the type of peers is Data*.
  16131. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16132. * Release 0.5.0
  16133. To fix compile issue with gcc3:
  16134. * src/CancelMessage.h
  16135. (ID): Renamed as ID_t
  16136. (ID_t): New enum.
  16137. * src/RejectMessage.h
  16138. (ID): Renamed as ID_t
  16139. (ID_t): New enum.
  16140. * src/SuggestPieceMessage.h
  16141. (ID): Renamed as ID_t
  16142. (ID_t): New enum.
  16143. * src/AllowedFastMessage.h
  16144. (ID): Renamed as ID_t
  16145. (ID_t): New enum.
  16146. * src/PortMessage.h
  16147. (ID): Renamed as ID_t
  16148. (ID_t): New enum.
  16149. * src/HaveNoneMessage.h
  16150. (ID): Renamed as ID_t
  16151. (ID_t): New enum.
  16152. * src/KeepAliveMessage.h
  16153. (ID): Renamed as ID_t
  16154. (ID_t): New enum.
  16155. * src/HaveAllMessage.h
  16156. (ID): Renamed as ID_t
  16157. (ID_t): New enum.
  16158. * src/UnchokeMessage.h
  16159. (ID): Renamed as ID_t
  16160. (ID_t): New enum.
  16161. * src/BitfieldMessage.h
  16162. (ID): Renamed as ID_t
  16163. (ID_t): New enum.
  16164. * src/PieceMessage.h
  16165. (ID): Renamed as ID_t
  16166. (ID_t): New enum.
  16167. * src/RequestMessage.h
  16168. (ID): Renamed as ID_t
  16169. (ID_t): New enum.
  16170. * src/NotInterestedMessage.h
  16171. (ID): Renamed as ID_t
  16172. (ID_t): New enum.
  16173. * src/ChokeMessage.h
  16174. (ID): Renamed as ID_t
  16175. (ID_t): New enum.
  16176. * src/InterestedMessage.h
  16177. (ID): Renamed as ID_t
  16178. (ID_t): New enum.
  16179. * src/HaveMessage.h
  16180. (ID): Renamed as ID_t
  16181. (ID_t): New enum.
  16182. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16183. * src/PeerAbstractCommand.h
  16184. (beforeSocketCheck): Removed.
  16185. * src/PeerAbstractCommand.cc
  16186. Modified in order to call executeInternal() even if socket check
  16187. and upload limit check fail.
  16188. * src/PeerInteractionCommand.h
  16189. (keepAlive): Removed.
  16190. (sendKeepAlive): New function.
  16191. (checkHave): New function.
  16192. (beforeSocketCheck): Removed.
  16193. * src/PeerInteractionCommand.cc
  16194. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16195. calls to checkHave() and sendKeepAlive().
  16196. (keepAlive): Renamed to sendKeepAlive().
  16197. (sendKeepAlive): New function.
  16198. (beforeSocketCheck): Removed.
  16199. (checkHave): New function.
  16200. * src/BitfieldMan.cc
  16201. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16202. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16203. 0.
  16204. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16205. * src/TorrentMan.h
  16206. (UsedPieces): Removed.
  16207. (Pieces): New type definition.
  16208. * src/Piece.h: Updated doc.
  16209. * src/Peer.h
  16210. (totalLength): Removed.
  16211. * src/Peer.cc
  16212. (updateLatency): Fixed the latency calculation.
  16213. * src/TorrentMan.cc
  16214. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16215. than or equal to MAX_PEER_LIST_SIZE.
  16216. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16217. then return false.
  16218. (deleteOldErrorPeers): Rewritten.
  16219. (deleteUsedPiece): Fixed the miss use of STL remove.
  16220. * src/PeerInteraction.h
  16221. (Pieces): Removed.
  16222. (deleteTimeoutRequestSlot): Removed.
  16223. (deleteCompletedRequestSlot): Removed.
  16224. (checkRequestSlot): New function.
  16225. * src/PeerInteraction.cc
  16226. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16227. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16228. (checkRequestSlot): New function.
  16229. * src/DownloadEngine.cc
  16230. (run): Clear activeSockets before calling waitData().
  16231. (waitData): Removed a call to activeSockets.clear().
  16232. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16233. To attempt to handle EINTR:
  16234. * src/SocketCore.cc
  16235. (isReadable): Added EINTR handling.
  16236. (isWritable): Added EINTR handling.
  16237. To improve the performance:
  16238. * src/AbstractCommand.cc
  16239. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16240. * src/PeerInteractionCommand.h
  16241. (receiveMessage): Renamed as receiveMessages().
  16242. (receiveMessages): New function.
  16243. * src/PeerInteractionCommand.cc
  16244. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16245. () function. detectMessageFlooding() is moved here.
  16246. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16247. (). The flooding detection for have message is comment out.
  16248. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16249. Util::difftv().
  16250. (receiveMessage): Renamed as receiveMessages().
  16251. (receiveMessages): New function.
  16252. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16253. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16254. * src/SleepCommand.cc
  16255. (execute): Use Util::difftvsec() instead of Util::difftv().
  16256. * src/BitfieldMan.h
  16257. (getNthBitIndex): New function.
  16258. (hasMissingPiece): New function.
  16259. (getAllMissingIndexes): New function.
  16260. * src/BitfieldMan.cc
  16261. (countSetBit): Rewritten.
  16262. (getNthBitIndex): New function.
  16263. (getMissingIndexRandomly): Rewritten.
  16264. (hasMissingPiece): New function.
  16265. (getAllMissingIndexes): New function.
  16266. * src/TorrentMan.cc
  16267. (hasMissingPiece): New function.
  16268. (deleteUsedPiece): Rewritten using STL.
  16269. * src/PeerInteraction.cc
  16270. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16271. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16272. (addRequests): Updated the number of pending requests.
  16273. * src/PeerAbstractCommand.cc
  16274. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16275. (execute): Returns true if TorrentMan::isHalt() is true.
  16276. Corrected the condition of upload limit checking.
  16277. * src/Util.h
  16278. (countBit): New function.
  16279. * src/Util.cc
  16280. (nbits): New variable.
  16281. (countBit): New function.
  16282. * src/DownloadEngine.h
  16283. (SockCmdMap): New type definition.
  16284. (waitData): Added an argument.
  16285. (addSocket): Added an argument.
  16286. (addSocketForReadCheck): Added an argument.
  16287. (addSocketForWriteCheck): Added an argument.
  16288. * src/DownloadEngine.cc
  16289. (run): Executes only commands whose sockets are ready to read or write.
  16290. All commands are executed in every 1 second.
  16291. (waitData): Calls select() again if it returned
  16292. EINTR.
  16293. (addSocket): Saves socket and command object pair to the map.
  16294. (deleteSocket): Deletes socket and command object pair from the map.
  16295. (addSocketForReadCheck): Added an argument.
  16296. (addSocketForWriteCheck): Added an argument.
  16297. * src/DownloadCommand.cc
  16298. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16299. To send "event=stopped" to the tracker when the application finishes:
  16300. * src/PeerChokeCommand.h
  16301. (checkPoint): New variable.
  16302. * src/PeerChokeCommand.cc
  16303. (PeerChokeCommand): Added the initialization of checkPoint.
  16304. (execute): The interval check is now done by checkPoint, not
  16305. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16306. * src/TorrentMan.h
  16307. (halt): New function.
  16308. (hasMissingPiece): New function.
  16309. (isHalt): New function.
  16310. (setHalt): New function.
  16311. * src/TorrentMan.cc
  16312. (TorrentMan): Added the initialization of halt.
  16313. * src/TorrentAutoSaveCommand.h
  16314. (checkPoint): New variable.
  16315. * src/PeerListenCommand.cc
  16316. (execute): Returns true if TorrentMan::isHalt() is true.
  16317. * src/main.cc
  16318. (setSignalHander): Added flags argument.
  16319. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16320. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16321. Removed printDownloadAbortMessage() after torrent downloading loop.
  16322. * src/TorrentAutoSaveCommand.cc
  16323. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16324. (execute): Returns true if TorrentMan::isHalt() is true.
  16325. The interval check is now done by checkPoint, not SleepCommand.
  16326. * src/TrackerWatcherCommand.cc
  16327. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16328. event=stopped.
  16329. * src/TrackerUpdateCommand.cc
  16330. (prepareForRetry): Do not use SleepCommand here.
  16331. (execute): Returns true if TorrentMan::isHalt() is true.
  16332. Others:
  16333. * src/TorrentMan.cc
  16334. (getMissingPieceIndex): Updated log message.
  16335. * src/PeerInteraction.cc
  16336. (createPeerMessag): Updated log message.
  16337. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16338. To add the ability to download several pieces in mix in a command and
  16339. increase the number of request slots according to request-cancel
  16340. latency:
  16341. * src/PeerInteractionCommand.cc
  16342. (executeInternal): The number of messages to be received at a time
  16343. is increased from 10 to 50.
  16344. * src/LogFactory
  16345. (getInstance): Added NullLogger.
  16346. * src/NullLogger.h: New class.
  16347. * src/BitfieldMan.h
  16348. (getMissingIndex): New function.
  16349. * src/BitfieldMan.cc
  16350. (getMissingIndex): New function.
  16351. * src/TorrentMan.h
  16352. (checkOutPiece): New function.
  16353. (getMissingPieceIndex): New function.
  16354. (getMissingFastPieceIndex): New function.
  16355. (getMissingFastPiece): New function.
  16356. * src/TorrentMan.cc
  16357. (updatePiece): Rewritten using STL.
  16358. (syncPiece): Rewritten using STL.
  16359. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16360. checkOutPiece().
  16361. (getMissingPieceIndex): New function.
  16362. (getMissingFastPieceIndex): New function.
  16363. (getMissingFastPiece): New function.
  16364. (checkOutPiece): New function.
  16365. * src/PeerInteraction.h
  16366. (Pieces): New type definition.
  16367. (piece): Removed.
  16368. (pieces): New variable.
  16369. (getNewPieceAndSendInterest): Added the "piece" argument.
  16370. (abortPiece): Added the "piece" argument.
  16371. (abortAllPieces): New function.
  16372. (isInRequestSlot): New function.
  16373. (hasDownloadPiece): Added the "index" argument.
  16374. (setDownloadPiece): Removed.
  16375. (getDownloadPiece): Added the "index" argument.
  16376. (updatePiece): New function.
  16377. (createRequestMessage): Added the "index" argument.
  16378. * src/PeerInteraction.cc
  16379. (onChoked): Rewritten.
  16380. (abortPiece): Rewirtten.
  16381. (abortAllPieces): New function.
  16382. (deleteTimeoutRequestSlot): Rewritten.
  16383. Clarified code a little bit.
  16384. (deleteCompletedRequestSlot): Rewritten.
  16385. (isInRequestSlot): New function.
  16386. (syncPiece): Rewritten.
  16387. (updatePiece): New function.
  16388. (getNewPieceAndSendInterest): Rewritten.
  16389. (addRequests): Rewritten.
  16390. (getDownloadPiece): Rewritten.
  16391. (hasDownloadPiece): Rewritten.
  16392. (createRequestMessage): Added the "index" argument.
  16393. * src/common.h
  16394. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16395. (DIV_FLOOR): New definition.
  16396. * src/PieceMessage.cc
  16397. (receivedAction): Update request-piece latency here.
  16398. * src/RequestSlot.h
  16399. (getLatencyInMillis): New function.
  16400. * src/RequestSlot.cc
  16401. (isTimeout): Rewritten using getLatencyInMillis.
  16402. (getLatencyInMillis): New function.
  16403. * src/Piece.h
  16404. (operator==): New function.
  16405. (getMissingBlockIndex): New function.
  16406. * src/Piece.cc
  16407. (operator==): New function.
  16408. (getMissingBlockIndex): New function.
  16409. * src/Peer.h
  16410. (DEFAULT_LATENCY): New definition.
  16411. (latency): New variable.
  16412. (updateLatency): New function.
  16413. (getLatency): New function.
  16414. * src/Peer.cc
  16415. (resetStatus): Reset latecy.
  16416. (updateLatency): New function.
  16417. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16418. * src/SocketCore.cc
  16419. (isReadable): Added secure to the condition.
  16420. * src/HttpConnection.cc
  16421. (receiveResponse): Fixed a bug that causes no response header
  16422. exception.
  16423. * src/Peer.h
  16424. (getFastSet): Fixed the return value type.
  16425. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16426. To remove a wait from download loop:
  16427. * src/DownloadEngine.cc
  16428. (run): Comment out shortSleep.
  16429. To rewrite the message handling:
  16430. * src/SimplePeerMessage.h: New class.
  16431. * src/SimplePeerMessage.cc: New class.
  16432. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16433. (msg): New variable.
  16434. (create): New function.
  16435. (send): Removed.
  16436. (getMessage): New function.
  16437. (getMessageLength): New function.
  16438. * src/CancelMessage.cc
  16439. (create): New function.
  16440. (receivedAction): Replaced deleteRequestMessageInQueue with
  16441. rejectPieceMessageInQueue.
  16442. (send): Removed.
  16443. (getMessage): New function.
  16444. (getMessageLength): New function.
  16445. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16446. (msg): New variable.
  16447. (msgLength): New variable.
  16448. (~BitfieldMessage): Deleted msg.
  16449. (send): Removed.
  16450. (getMessage): New function.
  16451. (getMessageLength): New function.
  16452. * src/BitfieldMessage.cc
  16453. (create): New function.
  16454. (send): Removed.
  16455. (getMessage): New function.
  16456. (getMessageLength): New function.
  16457. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16458. (msg): New variable.
  16459. (sendPredicate): New function.
  16460. (onSendComplete): New function.
  16461. (send): Removed.
  16462. (getMessage): New function.
  16463. (getMessageLength): New function.
  16464. (create): New function.
  16465. * src/ChokeMessage.cc
  16466. (create): New function.
  16467. (send): Removed.
  16468. (sendPredicate): New function.
  16469. (getMessage): New function.
  16470. (getMessageLength): New function.
  16471. (onSendComplete): New function.
  16472. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16473. (msg): New variable.
  16474. (send): Removed.
  16475. (getMessage): New function.
  16476. (getMessageLength): New function.
  16477. * src/KeepAliveMessage.cc
  16478. (send): Removed.
  16479. (getMessage): New function.
  16480. (getMessageLength): New function.
  16481. * src/PortMessage.h
  16482. (create): New function.
  16483. (receivedAction): Updated log message.
  16484. * src/PortMessage.cc: New file.
  16485. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16486. (msg): New variable.
  16487. (sendPredicate): New function.
  16488. (onSendComplete): New function.
  16489. (create): New function.
  16490. (send): Removed.
  16491. (getMessage): New function.
  16492. (getMessageLength): New function.
  16493. * src/UnchokeMessage.cc
  16494. (create): New function.
  16495. (send): Removed.
  16496. (sendPredicate): New function.
  16497. (getMessage): New function.
  16498. (getMessageLength): New function.
  16499. (onSendComplete): New function.
  16500. * src/PieceMessage.h
  16501. (leftPieceDataLength): Removed.
  16502. (leftDataLength): New variable.
  16503. (headerSend): New variable.
  16504. (pendingCount): New variable.
  16505. (msgHeader): New variable.
  16506. (sendPieceData): New function.
  16507. (incrementPendingCount): New function.
  16508. (isPendingCountMax): New function.
  16509. (create): New function.
  16510. (getMessageHeader): New function.
  16511. (getMessageHeaderLength): New function.
  16512. * src/PieceMessage.cc
  16513. (create): New function.
  16514. (getMessageHeader): New function.
  16515. (getMessageHeaderLength): New function.
  16516. (send): Rewritten.
  16517. (sendPieceData): New function.
  16518. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16519. (msg): New variable.
  16520. (create): New function.
  16521. (getMessage): New function.
  16522. (getMessageLength): New function.
  16523. * src/HaveMessage.cc
  16524. (create): New function.
  16525. (send): Removed.
  16526. (sendPieceData): New function.
  16527. (getMessage): New function.
  16528. (getMessageLength): New function.
  16529. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16530. (msg): New variable.
  16531. (create): New function.
  16532. (send): Removed.
  16533. (getMessage): New function.
  16534. (getMessageLength): New function.
  16535. * src/RequestMessage.cc
  16536. (create): New function.
  16537. (receivedAction): Added the handling of fast extension.
  16538. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16539. (send): Removed.
  16540. (getMessage): New function.
  16541. (getMessageLength): New function.
  16542. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16543. (msg): New variable.
  16544. (sendPredicate): New function.
  16545. (onSendComplete): New function.
  16546. (create): New function.
  16547. (getMessage): New function.
  16548. (getMessageLength): New function.
  16549. * src/InterestedMessage.cc
  16550. (create): New function.
  16551. (send): Removed.
  16552. (sendPieceData): New function.
  16553. (getMessage): New function.
  16554. (getMessageLength): New function.
  16555. (onSendComplete): New function.
  16556. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16557. (msg): New variable.
  16558. (sendPieceData): New function.
  16559. (onSendComplete): New function.
  16560. (create): New function.
  16561. (send): Removed.
  16562. (getMessage): New function.
  16563. (getMessageLength): New function.
  16564. * src/NotInterestedMessage.cc
  16565. (create): New function.
  16566. (send): Removed.
  16567. (sendPredicate): New function.
  16568. (getMessage): New function.
  16569. (getMessageLength): New function.
  16570. (onSendComplete): New function.
  16571. * src/AllowedFastMessage.h: New class.
  16572. * src/AllowedFastMessage.cc: New class.
  16573. * src/RejectMessage.h: New class.
  16574. * src/RejectMessage.cc: New class.
  16575. * src/SuggestPieceMessage.h: New class.
  16576. * src/SuggestPieceMessage.cc: New class.
  16577. * src/HaveAllMessage.h: New class.
  16578. * src/HaveAllMessage.cc: New class.
  16579. * src/HaveNoneMessage.h: New class.
  16580. * src/HaveNoneMessage.cc: New class.
  16581. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16582. (msg): New variable.
  16583. (reserved): New variable.
  16584. (create): New function.
  16585. (getId): New function.
  16586. (receivedAction): New function.
  16587. (getMessage): New function.
  16588. (getMessageLength): New function.
  16589. (isFastExtensionSupported): New function.
  16590. * src/HandshakeMessage.cc
  16591. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16592. (create): New function.
  16593. (getMessage): New function.
  16594. (getMessageLength): New function.
  16595. (toString): Added the output of reserved field.
  16596. (check): Added const qualifier.
  16597. (isFastExtensionSupported): New function.
  16598. * src/PeerMessageUtil.h
  16599. (createChokeMessage): Removed.
  16600. (createUnchokeMessage): Removed.
  16601. (createInterestedMessage): Removed.
  16602. (createNotInterestedMessage): Removed.
  16603. (createHaveMessage): Removed.
  16604. (createBitfieldMessage): Removed.
  16605. (createRequestMessage): Removed.
  16606. (createCancelMessage): Removed.
  16607. (createPieceMessage): Removed.
  16608. (createPortMessage): Removed.
  16609. (createChokeMessage): Removed.
  16610. (createUnchokeMessage): Removed.
  16611. (createInterestedMessage): Removed.
  16612. (createNotInterestedMessage): Removed.
  16613. (createHaveMessage): Removed.
  16614. (createBitfieldMessage): Removed.
  16615. (createRequestMessage): Removed.
  16616. (createCancelMessage): Removed.
  16617. (createPieceMessage): Removed.
  16618. (createKeepAliveMessage): Removed.
  16619. (createHandshakeMessage): Removed.
  16620. (setIntParam): New function.
  16621. (createPeerMessageString): New function.
  16622. * src/PeerMessageUtil.cc
  16623. (createChokeMessage): Removed.
  16624. (createUnchokeMessage): Removed.
  16625. (createInterestedMessage): Removed.
  16626. (createNotInterestedMessage): Removed.
  16627. (createHaveMessage): Removed.
  16628. (createBitfieldMessage): Removed.
  16629. (createRequestMessage): Removed.
  16630. (createCancelMessage): Removed.
  16631. (createPieceMessage): Removed.
  16632. (createPortMessage): Removed.
  16633. (createRequestMessage): Removed.
  16634. (createCancelMessage): Removed.
  16635. (createPieceMessage): Removed.
  16636. (createHaveMessage): Removed.
  16637. (createChokeMessage): Removed.
  16638. (createUnchokeMessage): Removed.
  16639. (createInterestedMessage): Removed.
  16640. (createNotInterestedMessage): Removed.
  16641. (createBitfieldMessage): Removed.
  16642. (createKeepAliveMessage): Removed.
  16643. (createHandshakeMessage): Removed.
  16644. (setIntParam): New function.
  16645. (createPeerMessageString): New function.
  16646. * src/PeerConnection.h
  16647. (peer): Removed.
  16648. (torrentMan): Removed.
  16649. (createNLengthMessage): Removed.
  16650. (setIntParam): Removed.
  16651. (writeOutgoingMessageLog): Removed all overloaded functions.
  16652. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16653. (sendMessage): New function.
  16654. (sendHandshake): Removed.
  16655. (sendKeepAlive): Removed.
  16656. (sendChoke): Removed.
  16657. (sendUnchoke): Removed.
  16658. (sendInterested): Removed.
  16659. (sendNotInterested): Removed.
  16660. (sendHave): Removed.
  16661. (sendBitfield): Removed.
  16662. (sendRequest): Removed.
  16663. (sendPiece): Removed.
  16664. (sendPieceHeader): Removed.
  16665. (sendPieceData): Removed.
  16666. (sendCancel): Removed.
  16667. (getPeer): Removed.
  16668. * src/PeerConnection.cc
  16669. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16670. (sendHandshake): Removed.
  16671. (sendKeepAlive): Removed.
  16672. (createNLengthMessage): Removed.
  16673. (setIntParam): Removed.
  16674. (writeOutgoingMessageLog): Removed all overloaded functions.
  16675. (sendChoke): Removed.
  16676. (sendUnchoke): Removed.
  16677. (sendInterested): Removed.
  16678. (sendNotInterested): Removed.
  16679. (sendHave): Removed.
  16680. (sendBitfield): Removed.
  16681. (sendRequest): Removed.
  16682. (sendPiece): Removed.
  16683. (sendPieceHeader): Removed.
  16684. (sendPieceData): Removed.
  16685. (sendMessage): New function.
  16686. (sendCancel): Removed.
  16687. * src/PeerInteractionCommand.cc
  16688. (PeerInteractionCommand): Call setUploadLimit.
  16689. (executeInternal): Call setUploadLimit.
  16690. Added the handling of "inProgress" state of handshake message.
  16691. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16692. sendNow().
  16693. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16694. sendNow().
  16695. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16696. * src/TorrentMan.h
  16697. (PEER_ID_LENGTH): New definition.
  16698. (hasAllPieces): New function.
  16699. * src/TorrentMan.cc
  16700. (getMissingPiece): Added the handling of fast extension.
  16701. (cancelPiece): Call updatePiece().
  16702. (hasAllPieces): New function.
  16703. * src/PeerInteraction.h
  16704. (fastSet): New variable.
  16705. (getNewPieceAndSendInterest): Changed the return type to void.
  16706. (send): Renamed as sendMessages.
  16707. (deleteAllRequestSlot): Removed.
  16708. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16709. (cancelAllRequest): Removed all overloaded functions.
  16710. (deleteAllRequestSlot): Removed.
  16711. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16712. (rejectPieceMessageInQueue): New function.
  16713. (rejectAllPieceMessageInQueue): New function.
  16714. (onChoked): New function.
  16715. (isSendingMessageInProgress): New function.
  16716. (getCorrespondingRequestSlot): Changed its arguments.
  16717. (isInFastSet): New function.
  16718. (addFastSetIndex): New function.
  16719. (addRequests): New function.
  16720. (sendNow): Removed.
  16721. (trySendNow): Removed.
  16722. (sendBitfield): New function.
  16723. (sendAllowdFast): New function.
  16724. (createHaveAllMessage): New function.
  16725. (createHaveNoneMessage): New function.
  16726. (createRejectMessage): New function.
  16727. (createAllowedFastMessage): New function.
  16728. * src/PeerInteraction.cc
  16729. (send): Renamed as sendMessages.
  16730. (sendMessages): New function.
  16731. (MsgPushBack): New class.
  16732. (isSendingMessageInProgress): New function.
  16733. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16734. (rejectAllPieceMessageInQueue): New function.
  16735. Added the handling of fast extension.
  16736. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16737. (rejectPieceMessageInQueue): New function.
  16738. Added the handling of fast extension.
  16739. (deleteRequestSlot): Replaced for loop with std::find.
  16740. (onChoked): New function.
  16741. (deleteAllRequestSlot): Removed.
  16742. (abortPiece): Rewirtten.
  16743. (deleteTimeoutRequestSlot): Updated log messages.
  16744. (getCorrespondingRequestSlot): Changed its arguments.
  16745. (cancelAllRequest): Removed all overloaded functions.
  16746. (receiveHandshake): Added the check to see whether an incoming peer
  16747. supports fast extension.
  16748. (createHandshakeMessage): Use HandshakeMessage::create instead of
  16749. PeerMessageUtil.
  16750. (createPeerMessage): Use create() of each message class instead of
  16751. PeerMessageUtil.
  16752. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  16753. AllowedFastMessage were added.
  16754. (getNewPieceAndSendInterest): Changed its return value type to void.
  16755. Added the handling of fast extension.
  16756. (addRequests): New function.
  16757. (sendNow): Removed.
  16758. (sendHandshake): Rewritten.
  16759. (trySendNow): Removed.
  16760. (sendBitfield): New function.
  16761. (sendAllowdFast): New function.
  16762. (isInFastSet): New function.
  16763. (addFastSetIndex): New function.
  16764. (createRequestMessage): Use RequestMessage::create instead of
  16765. PeerMessageUtil.
  16766. (createCancelMessage): Use CancelMessage::create instead of
  16767. PeerMessageUtil.
  16768. (createPieceMessage): Use PieceMessage::create instead of
  16769. PeerMessageUtil.
  16770. (createHaveMessage): Use HaveMessage::create instead of
  16771. PeerMessageUtil.
  16772. (createChokeMessage): Use ChokeMessage::create instead of
  16773. PeerMessageUtil.
  16774. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16775. PeerMessageUtil.
  16776. (createInterestedMessage): Use InterestedMessage::create instead of
  16777. PeerMessageUtil.
  16778. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16779. of PeerMessageUtil.
  16780. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16781. PeerMessageUtil.
  16782. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16783. PeerMessageUtil.
  16784. (createHaveAllMessage): New function.
  16785. (createHaveNoneMessage): New function.
  16786. (createRejectMessage): New function.
  16787. (createAllowedFastMessage: New function.
  16788. * src/Util.h
  16789. (sha1Sum): New function.
  16790. (computeFastSet): New function.
  16791. * src/Util.cc
  16792. (sha1Sum): New function.
  16793. (computeFastSet): New function.
  16794. * src/Peer.h
  16795. (fastExtensionEnabled): New variable.
  16796. (fastSet): New variable.
  16797. (setAllBitfield): New function.
  16798. (setFastExtensionEnabled): New function.
  16799. (isFastExtensionEnabled): New function.
  16800. (addFastSetIndex): New function.
  16801. (getFastSet): New function.
  16802. (isInFastSet): New function.
  16803. (countFastSet): New function.
  16804. * src/Peer.cc
  16805. (isInFastSet): New function.
  16806. (addFastSetIndex): New function.
  16807. (setAllBitfield): New function.
  16808. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16809. sockets.
  16810. * src/PeerAbstractCommand.cc
  16811. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16812. and uploadLimit.
  16813. (execute): Changed the procedure of checking sockets. The upload speed
  16814. checking were added.
  16815. (setUploadLimit): New function.
  16816. (setUploadLimitCheck): New function.
  16817. * src/PeerAbstractCommand.h
  16818. (setUploadLimit): New function.
  16819. (setUploadLimitCheck): New function.
  16820. (uploadLimit): New variable.
  16821. (uploadLimitCheck): New variable.
  16822. To contact a tracker regularly:
  16823. * src/TrackerWatcherCommand.h (interval): New variable.
  16824. (checkPoint): New variable.
  16825. (TrackerWatcherCommand): Added interval argument.
  16826. * src/TrackerWatcherCommand.cc
  16827. (TrackerWatcherCommand): Initialized checkPoint.
  16828. (execute): Now a tracker is contacted in every specified period.
  16829. If peer list is not needed, send request with numwant=0.
  16830. * src/TrackerUpdateCommand.cc
  16831. (execute): Updated log messages.
  16832. * src/DownloadEngine.cc
  16833. (~DownloadEngine): Removed two asserts.
  16834. (waitData): Uncommented wfds. May be a bug fix.
  16835. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16836. * src/PeerInteractionCommand.h
  16837. (checkInactiveConnection): Removed.
  16838. * src/PeerInteractionCommand.cc
  16839. (executeInternal): Removed following function calls:
  16840. detectMessageFlooding(), checkLongTimePeerChoking and
  16841. checkInactiveConnection().
  16842. (checkInactiveConnection): Removed.
  16843. (detectMessageFlooding): Removed function call to
  16844. checkInactiveConnection().
  16845. * src/PeerMessageUtil.h
  16846. (createChokeMessage): New function. Overload.
  16847. (createUnchokeMessage): New function. Overload.
  16848. (createInterestedMessage): New function. Overload.
  16849. (createNotInterestedMessage): New function. Overload.
  16850. (createHaveMessage): New function. Overload.
  16851. (createBitfieldMessage): New function. Overload.
  16852. (createRequestMessage): New function. Overload.
  16853. (createCancelMessage): New function. Overload.
  16854. (createPieceMessage): New function. Overload.
  16855. (createKeepAliveMessage): New function. Overload.
  16856. * src/PeerMessageUtil.cc
  16857. (createChokeMessage): New function. Overload.
  16858. (createUnchokeMessage): New function. Overload.
  16859. (createInterestedMessage): New function. Overload.
  16860. (createNotInterestedMessage): New function. Overload.
  16861. (createHaveMessage): New function. Overload.
  16862. (createBitfieldMessage): New function. Overload.
  16863. (createRequestMessage): New function. Overload.
  16864. (createCancelMessage): New function. Overload.
  16865. (createPieceMessage): New function. Overload.
  16866. (createKeepAliveMessage): New function. Overload.
  16867. * src/SendMessageQueue.cc
  16868. (createRequestMessage): Use PeerMessageUtil.
  16869. (createCancelMessage): Use PeerMessageUtil.
  16870. (createPieceMessage): Use PeerMessageUtil.
  16871. (createHaveMessage): Use PeerMessageUtil.
  16872. (createChokeMessage): Use PeerMessageUtil.
  16873. (createUnchokeMessage): Use PeerMessageUtil.
  16874. (createInterestedMessage): Use PeerMessageUtil.
  16875. (createNotInterestedMessage): Use PeerMessageUtil.
  16876. (createBitfieldMessage): Use PeerMessageUtil.
  16877. (createKeepAliveMessage): Use PeerMessageUtil.
  16878. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16879. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16880. * src/PeerInteraction.h: New class.
  16881. * src/PeerInteraction.cc: New class.
  16882. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16883. Each peer message has its own class.
  16884. * src/PendingMessages.h: Removed.
  16885. * src/PendingMessages.cc: Removed. The sending process was moved to
  16886. each message class.
  16887. * src/RequestSlotMan.h: Removed.
  16888. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16889. SendMessageQueue.
  16890. * src/RequestMessage.h: New class.
  16891. * src/RequestMessage.cc: New class.
  16892. * src/CancelMessage.h: New class.
  16893. * src/CancelMessage.cc: New class.
  16894. * src/BitfieldMessage.h: New class.
  16895. * src/BitfieldMessage.cc: New class.
  16896. * src/ChokeMessage.h: New class.
  16897. * src/ChokeMessage.cc: New class.
  16898. * src/KeepAliveMessage.h: New class.
  16899. * src/KeepAliveMessage.cc: New class.
  16900. * src/PortMessage.h: New class.
  16901. * src/UnchokeMessage.h: New class.
  16902. * src/UnchokeMessage.cc: New class.
  16903. * src/PieceMessage.h: New class.
  16904. * src/PieceMessage.cc: New class.
  16905. * src/HaveMessage.h: New class.
  16906. * src/HaveMessage.cc: New class.
  16907. * src/BitfieldMessage.h: New class.
  16908. * src/BitfieldMessage.cc: New class.
  16909. * src/NotInterestedMessage.h: New class.
  16910. * src/NotInterestedMessage.cc: New class.
  16911. * src/InterestedMessage.h: New class.
  16912. * src/InterestedMessage.cc: New class.
  16913. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16914. (getSendMessageQueue): New function.
  16915. (setSendMessageQueue): New function.
  16916. * src/HandshakeMessage.cc: New class.
  16917. * src/PeerConnection.h (receiveMessage): Changed return value and
  16918. arguments.
  16919. (receiveHandshake): Changed return value and arguments.
  16920. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16921. here.
  16922. (receiveHandshake): Do not create handshake class here.
  16923. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16924. (piece): Removed.
  16925. (syncPiece): Removed.
  16926. (sendInterest): Removed.
  16927. (sendMessages): Removed.
  16928. (createRequestPendingMessage): Removed.
  16929. (checkPieceHash): Removed.
  16930. (erasePieceOnDisk): Removed.
  16931. (getNewPieceAndSendInterest): Removed.
  16932. (onGotNewPice): Removed.
  16933. (onGotWrongPiece): Removed.
  16934. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16935. Removed peerConnection, piece.
  16936. (~PeerInteractionCommand): Removed peerConnection.
  16937. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16938. (syncPiece): Moved to SendMessageQueue.
  16939. (decideChoking): Removed PendingMessage.
  16940. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16941. The action after receiving peer message was moved to each message
  16942. class.
  16943. (onGotNewPice): Moved to SendMessageQueue.
  16944. (onGotWrongPiece): Moved to SendMessageQueue.
  16945. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16946. (sendInterest): Moved to SendMessageQueue.
  16947. (createRequestPendingMessage): Removed.
  16948. (sendMessages): Moved to SendMessageQueue.
  16949. (onAbort): Use SendMessageQueue::abortPiece()
  16950. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16951. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16952. (checkPieceHash): Moved to SendMessageQueue.
  16953. (erasePieceOnDisk): Moved to SendMessageQueue.
  16954. * src/PeerMessageUtil.h
  16955. (createBitfieldMessage): Removed.
  16956. (createHaveMessage): Changed return value and arguments.
  16957. (createBitfieldMessage): Changed return value and arguments.
  16958. (createRequestCancelMessage): Removed.
  16959. (createPieceMessage): Changed return value and arguments.
  16960. (getShortIntParam): New function.
  16961. (checkIndex): Changed arguments.
  16962. (checkBegin): Changed arguments.
  16963. (checkLength): Changed arguments.
  16964. (checkPieceOffset): Removed.
  16965. (checkRange): New function.
  16966. (checkBitfield): Changed arguments.
  16967. (createPeerMessage): Removed.
  16968. (checkIntegrity): Removed.
  16969. (createHandshakeMessage): Changed arguments.
  16970. (createChokeMessage): New function.
  16971. (createUnchokeMessage): New function.
  16972. (createInterestedMessage): New function.
  16973. (createNotInterestedMessage): New function.
  16974. (createRequestMessage): New function.
  16975. (createCancelMessage): New function.
  16976. (createPortMessage): New function.
  16977. * src/PeerMessageUtil.cc
  16978. (createBitfieldMessage): Removed.
  16979. (createHaveMessage): Changed return value and arguments.
  16980. (createBitfieldMessage): Changed return value and arguments.
  16981. (createRequestCancelMessage): Removed.
  16982. (createPieceMessage): Changed return value and arguments.
  16983. (getShortIntParam): New function.
  16984. (checkIndex): Changed arguments.
  16985. (checkBegin): Changed arguments.
  16986. (checkLength): Changed arguments.
  16987. (checkPieceOffset): Removed.
  16988. (checkRange): New function.
  16989. (checkBitfield): Changed arguments.
  16990. (createPeerMessage): Removed.
  16991. (checkIntegrity): Removed.
  16992. (createHandshakeMessage): Changed arguments.
  16993. (createChokeMessage): New function.
  16994. (createUnchokeMessage): New function.
  16995. (createInterestedMessage): New function.
  16996. (createNotInterestedMessage): New function.
  16997. (createRequestMessage): New function.
  16998. (createCancelMessage): New function.
  16999. (createPortMessage): New function.
  17000. * src/PeerMessage.h
  17001. (id): Removed.
  17002. (index): Removed.
  17003. (begin): Removed.
  17004. (length): Removed.
  17005. (bitfield): Removed.
  17006. (bitfieldLength): Removed.
  17007. (block): Removed.
  17008. (blockLength): Removed.
  17009. (inProgress): New variable.
  17010. (cuid): New variable.
  17011. (peer): New variable.
  17012. (sendMessageQueue): New variable.
  17013. (logger): New variable.
  17014. (setBitfield): Removed.
  17015. (getBitfield): Removed.
  17016. (setBlock): Removed.
  17017. (getBlock): Removed.
  17018. (getBitfieldLength): Removed.
  17019. (getBlockLength): Removed.
  17020. (isInProgress): New function.
  17021. (toString): Made pure virtual.
  17022. (check): New function.
  17023. (send): New function.
  17024. (receivedAction): New function.
  17025. (getId): Made pure virtual.
  17026. (setId): Removed.
  17027. (getIndex): Removed.
  17028. (setIndex): Removed.
  17029. (getBegin): Removed.
  17030. (setBegin): Removed.
  17031. (getLength): Removed.
  17032. (setLength): Removed.
  17033. (getCuid): New function.
  17034. (setCuid): New function.
  17035. (getPeer): New function.
  17036. (setPeer): New function.
  17037. (getSendMessageQueue): New function.
  17038. (setSendMessageQueue): New function.
  17039. (ID): Removed.
  17040. * src/PeerMessage.cc
  17041. (setBitfield): Removed.
  17042. (setBlock): Removed.
  17043. (toString): Removed.
  17044. * src/TorrentMan.h
  17045. (getPieceLength): New function.
  17046. (getPieceLength): New function.
  17047. * src/SendMessageQueue.h
  17048. (REQUEST_TIME_OUT): New definition.
  17049. (RequestSlots): New definition.
  17050. (MessageQueue): New definition.
  17051. (requestSlotMan): Removed.
  17052. (pendingMessages): Removed.
  17053. (requestSlots): New variable.
  17054. (messageQueue): New variable.
  17055. (torrentMan): New variable.
  17056. (peerConnection): New variable.
  17057. (peer): New variable.
  17058. (piece): New variable.
  17059. (getNewPieceAndSendInterest): New function.
  17060. (createPeerMessage): New function.
  17061. (createHandshakeMessage): New function.
  17062. (send): Made private.
  17063. (setPeerMessageCommonProperty): New function.
  17064. (deleteAllRequestSlot): New function.
  17065. (deleteRequestMessageInQueue): New function.
  17066. (cancelAllRequest): Made private.
  17067. (cancelAllRequest): Made private.
  17068. (countRequestSlot): Made private.
  17069. (addPendingMessage): Removed.
  17070. (deletePendingPieceMessage): Removed.
  17071. (deletePendingRequestMessage): Removed.
  17072. (addMessage): New function.
  17073. (deletePieceMessageInQueue): New function.
  17074. (deleteTimeoutRequestSlot): Changed argument.
  17075. (deleteCompletedRequestSlot): Changed argument.
  17076. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17077. (getCorrespondingRequestSlot): New function.
  17078. (countPendingMessage): Removed.
  17079. (countMessageInQueue): New function.
  17080. (getTorrentMan): New function.
  17081. (getPeerConnection): New function.
  17082. (hasDownloadPiece): New function.
  17083. (getDownloadPiece): New function.
  17084. (setDownloadPiece): New function.
  17085. (syncPiece): New function.
  17086. (sendMessages): New function.
  17087. (sendNow): New function.
  17088. (trySendNow): New function.
  17089. (abortPiece): New function.
  17090. (sendHandshake): New function.
  17091. (receiveMessage): New function.
  17092. (receiveHandshake): New function.
  17093. (createRequestMessage): New function.
  17094. (createCancelMessage): New function.
  17095. (createPieceMessage): New function.
  17096. (createHaveMessage): New function.
  17097. (createChokeMessage): New function.
  17098. (createUnchokeMessage): New function.
  17099. (createInterestedMessage): New function.
  17100. (createNotInterestedMessage): New function.
  17101. (createBitfieldMessage): New function.
  17102. (createKeepAliveMessage): New function.
  17103. * src/SendMessageQueue.cc
  17104. (SendMessageQueue): Removed requestSlotMan.
  17105. Instantiated peerConnection here.
  17106. (~SendMessageQueue): Removed requestSlotMan.
  17107. Added deletion of peerConnection and the contents of messageQueue.
  17108. (send): Updated according to the change of messageQueue.
  17109. (addPendingMessage): Renamed to addMessage.
  17110. (addMessage): New function.
  17111. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17112. (deletePieceMessageInQueue): New function.
  17113. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17114. (deleteRequestMessageInQueue): New function.
  17115. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17116. here.
  17117. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17118. (...) was moved here.
  17119. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17120. moved here.
  17121. (deleteCompletedRequestSlot):
  17122. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17123. (getCorrespondingRequestSlot):
  17124. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17125. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17126. (countPendingMessage): Renamed to countMessageInQueue.
  17127. (countMessageInQueue): New function.
  17128. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17129. (receiveHandshake): New function.
  17130. (createHandshakeMessage): New function.
  17131. (receiveMessage): New function.
  17132. (createPeerMessage): New function.
  17133. (syncPiece): New function.
  17134. (getNewPieceAndSendInterest): New function.
  17135. (sendMessages): New function.
  17136. (sendNow): New function.
  17137. (trySendNow): New function.
  17138. (sendHandshake): New function.
  17139. (abortPiece): New function.
  17140. (getDownloadPiece): New function.
  17141. (getPeerMessageCommonProperty): New function.
  17142. (createRequestMessage): New function.
  17143. (createCancelMessage): New function.
  17144. (createPieceMessage): New function.
  17145. (createHaveMessage): New function.
  17146. (createChokeMessage): New function.
  17147. (createUnchokeMessage): New function.
  17148. (createInterestedMessage): New function.
  17149. (createNotInterestedMessage): New function.
  17150. (createBitfieldMessage): New function.
  17151. (createKeepAliveMessage): New function.
  17152. To add simple Content-Disposition support:
  17153. * src/HttpResponseCommand.h (determinFilename): New function.
  17154. * src/HttpResponseCommand.cc (executeInternal):
  17155. Use determinFilename(headers) instead of req->getFile() when comparing
  17156. filename.
  17157. (determinFilename): New function.
  17158. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17159. req->getFile().
  17160. (handleOtherEncoding): Use determinFilename(headers) instead of
  17161. req->getFile().
  17162. * src/Util.h (getContentDispositionFilename): New function.
  17163. * src/Util.cc (getContentDispositionFilename): New function.
  17164. * src/LogFactory.h (release): New function.
  17165. * src/LogFactory.cc (release): New function.
  17166. To fix a bug that causes out-of-bound exception when HTTP status
  17167. line is wrong:
  17168. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17169. size.
  17170. * src/common.h (Deleter): New class.
  17171. * src/SegmentMan.cc
  17172. (~SegmentMan): Added deletion of splitter and diskWriter.
  17173. * src/DownloadEngine.h
  17174. (Commands): Use deque.
  17175. (clearQueue): New function.
  17176. * src/DownloadEngine.cc
  17177. (~DownloadEngine): Added deletion of segmentMan.
  17178. (cleanQueue): New function.
  17179. * src/TorrentDownloadEngine.h
  17180. (TorrentDownloadEngine): The implementation was moved to
  17181. TorrentDownloadEngine.cc.
  17182. (~TorrentDownloadEngine): The implementation was moved to
  17183. TorrentDownloadEngine.cc.
  17184. * src/TorrentDownloadEngine.cc
  17185. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17186. * src/main.cc
  17187. (clearRequest): Removed.
  17188. (handler): Added deletion of e.
  17189. (torrentHandler): Added deletion of te.
  17190. (main): Do not share splitter.
  17191. Use Deleter instead of clearRequest.
  17192. Deletion of classes were updated.
  17193. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17194. * src/main.cc (main): Fixed typo.
  17195. * src/message.h: Fixed typo.
  17196. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17197. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17198. To add --select-file command-line option:
  17199. * src/Util.cc
  17200. (unfoldRange): New function.
  17201. (getNum): New function.
  17202. (unfoldSubRange): New function
  17203. * src/main.cc
  17204. (showUsage): Added help message.
  17205. (main): Added --select-file command-line option. Updated the layout of
  17206. file listing.
  17207. * src/common.h
  17208. (Integers): New definition.
  17209. * src/SocketCore.cc
  17210. (writeData): Removed timeout argument.
  17211. (readData): Removed timeout argument.
  17212. (peekData): Removed timeout argument.
  17213. * src/Socket.cc
  17214. (writeData): Removed timeout argument.
  17215. (readData): Removed timeout argument.
  17216. (peekData): Removed timeout argument.
  17217. * Release 0.4.1
  17218. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17219. To deploy upload rate based choking algorithm:
  17220. * src/PeerInteractionCommand.cc
  17221. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17222. peer currently used.
  17223. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17224. download completes. Simplified.
  17225. (receiveMessage): Updated.
  17226. * src/TorrentMan.h
  17227. (activePeers): New variable.
  17228. (addActivePeer): New function.
  17229. (getActivePeers): New function.
  17230. (deleteActivePeer): New function.
  17231. * src/TorrentMan.cc
  17232. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17233. * src/PeerAbstractCommand.cc
  17234. (onAbort): Use peer->resetStatus().
  17235. * src/main.cc
  17236. (PeerChokeCommand.h): Included.
  17237. (main): Added the instance of ChokingCommand to the command queue.
  17238. * src/Peer.h
  17239. (amChoking): Renamed from amChocking
  17240. (chokingRequired): New variable.
  17241. (optUnchoking): New variable.
  17242. (deltaUpload): New variable.
  17243. (deltaDownload): New variable.
  17244. (addDeltaUpload): New function.
  17245. (resetDeltaUpload): New function.
  17246. (addDeltaDownload): New function.
  17247. (resetDeltaDownload): New function.
  17248. (addPeerUpload): Added a call to addDeltaUpload.
  17249. (addPeerDownload): Added a call to addDeltaDownload.
  17250. * src/Peer.cc
  17251. (shouldBeChoking): Renamed from shouldChoke.
  17252. (resetStatus): New function.
  17253. * src/PeerChokeCommand.h: New class.
  17254. * src/PeerChokeCommand.cc: New class.
  17255. To add lazy upload speed limiter:
  17256. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17257. statistics calculation to TorrentDownloadEngine.
  17258. * src/TorrentConsoleDownloadEngine.cc
  17259. (sendStatistics): Renamed from printStatistics.
  17260. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17261. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17262. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17263. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17264. calculation.
  17265. (sendStatistics): New function as pure virtual function.
  17266. (getUploadSpeed): New function.
  17267. * src/TorrentDownloadEngine.cc
  17268. (initStatistics): New function.
  17269. (calculateSpeed): New function.
  17270. (calculateStatistics): New function.
  17271. * src/SendMessageQueue.h
  17272. (uploadLength): New variable.
  17273. (send): Added an argument.
  17274. (setUploadLimit): New function.
  17275. (getUploadLimit): New function.
  17276. * src/SendMessageQueue.cc
  17277. (send): Added upload speed limiter.
  17278. * src/prefs.h
  17279. (PREF_UPLOAD_LIMIT): New definition.
  17280. * src/PeerInteractionCommand.cc
  17281. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17282. * src/main.cc
  17283. (main): Added --upload-limit option
  17284. For bug fixes:
  17285. * src/main.cc
  17286. (showUsage): Corrected --listen-port help
  17287. Other changes:
  17288. * src/TorrentMan.cc
  17289. (getPeer): Return nullPeer if connection is grather than
  17290. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17291. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17292. To add some useful information to the exception message:
  17293. * src/SocketCore.cc : Updated messages.
  17294. * src/SegmentMan.cc :
  17295. * src/TorrentMan.cc : Updated messages.
  17296. * src/MultiDiskWriter.cc : Updated messages.
  17297. * src/Util.cc : Updated messages.
  17298. * src/AbstractDiskWriter.cc : Updated messages.
  17299. * src/PreAllocationDiskWriter.cc : Updated messages.
  17300. * src/message.cc : Added new messages. Updated some messages.
  17301. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17302. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17303. Updated threshold from 30 to 15.
  17304. * src/AbstractDiskWriter.h (filename): New variable.
  17305. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17306. (createFile): Assigned filename.
  17307. * src/main.cc: Updated the help message for http-auth-scheme.
  17308. * Release 0.4.0
  17309. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17310. To add TrackerUpdateCommand with which replaces
  17311. CompactTrackerResponseProcessor:
  17312. * src/TrackerWatcherCommand.h (req): Removed.
  17313. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17314. if the number of peer connections are less than 30.
  17315. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17316. * src/SegmentMan.h (diskWriter): New function.
  17317. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17318. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17319. (main): Use TrackerUpdateCommand.
  17320. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17321. (req): New variable.
  17322. (setTrackerResponseProcessor): Removed.
  17323. (getTrackerResponseProcessor): Removed.
  17324. (processTrackerResponse): Removed.
  17325. * src/DownloadEngine.h (diskWriter): Removed.
  17326. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17327. to torrentMan->processTrackerResponse().
  17328. To add Util::expandBuffer:
  17329. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17330. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17331. * src/Util.h (expandBuffer): New function.
  17332. To fix the bug that causes segmentation fault when "-l ." is specified
  17333. in command-line option:
  17334. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17335. (openFile): New function.
  17336. (closeFile): New function.
  17337. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17338. (~SimpleLogger): Call closeFile();
  17339. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17340. * src/main.cc (main): Added a check to see logger is configured
  17341. properly.
  17342. To enable HTTP authentication without specifying "--http-auth-scheme"
  17343. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17344. * src/HttpConnection.cc (createRequest): Send Authorization header
  17345. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17346. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17347. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17348. * src/Peer.cc (shouldChoke): Updated algorithm.
  17349. * src/message.h (EX_AUTH_FAILED): New definition.
  17350. (EX_FILE_OPEN): New definition.
  17351. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17352. if status == 401.
  17353. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17354. if req->isTorrent == true.
  17355. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17356. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17357. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17358. (createFile): Updated message.
  17359. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17360. To add a readout of estimated remaining time to normal HTTP/FTP
  17361. downloads:
  17362. * src/ConsoleDownloadEngine.h (startup): New variable.
  17363. (startupLength): New variable.
  17364. (isStartupLengthSet): New variable.
  17365. (avgSpeed): New variable.
  17366. (eta): New variable.
  17367. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17368. estimated remaining time.
  17369. (initStatistics): Initialized newly added variables.
  17370. (calculateStatistics): Calculate average speed and estimated remaining
  17371. time.
  17372. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17373. * src/TrackerDownloadCommand.h: Removed.
  17374. * src/TrackerDownloadCommand.cc: Removed.
  17375. * src/TrackerInitCommand.h: Removed.
  17376. * src/TrackerInitCommand.cc: Removed.
  17377. * src/TrackerUpdateCommand.h: Removed.
  17378. * src/TrackerUpdateCommand.cc: Removed.
  17379. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17380. url written in TrackerInitCommand was moved here. Do not create
  17381. tracker request command if torrentMan->trackers != 0.
  17382. * src/CompactTrackerResponseProcessor.h: New class.
  17383. * src/CompactTrackerResponseProcessor.cc: New class.
  17384. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17385. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17386. Decoupled TorrentDownloadEngine from this.
  17387. * src/SegmentMan.h (init): New function.
  17388. * src/SegmentMan.cc (init): New function.
  17389. * src/TorrentMan.h (responseProcessor): New variable.
  17390. (trackers): New variable.
  17391. (setTrackerResponseProcessor): New function.
  17392. (getTrackerResponseProcessor): New function.
  17393. (processTrackerResponse): New function.
  17394. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17395. (processTrackerResponse): New function.
  17396. * src/main.cc (main): Use ByteArrayDiskWriter and
  17397. CompactTrackerResponseProcessor.
  17398. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17399. processTrackerResponse().
  17400. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17401. readout.
  17402. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17403. which indicates download has completed.
  17404. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17405. (closeFile): fd >= 0, not fd > 0
  17406. * src/main.cc (main): Added short cut for show-files.
  17407. Added short cut for torrent-file.
  17408. Added new command-line option listen-port.
  17409. Updated i18n messages.
  17410. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17411. To add LogFactory which creates singleton logger:
  17412. * src/LogFactory.h: New class.
  17413. * src/LogFactory.cc: New class.
  17414. * src/Command.h (logger): New variable.
  17415. (Constructor): Use LogFactory.
  17416. * src/AbstractCommand.cc: Use Command::logger
  17417. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17418. Use LogFactory.
  17419. * src/SegmentSplitter.h : Made logger protected.
  17420. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17421. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17422. * src/DownloadEngine.h : Made logger protected.
  17423. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17424. * src/PeerInteractionCommand.cc : Use Command::logger.
  17425. * src/HttpResponseCommand.cc : Use Command::logger.
  17426. * src/SegmentMan.h : Made logger private.
  17427. * src/TorrentMan.h : Made logger private.
  17428. * src/TorrentMan.cc : Use LogFactory.
  17429. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17430. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17431. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17432. Use LogFactory.
  17433. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17434. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17435. Use LogFactory.
  17436. * src/DownloadCommand.cc : Use Command::logger.
  17437. * src/PeerAbstractCommand.cc : Use Command::logger.
  17438. * src/PeerListenCommand.cc : Use Command::logger.
  17439. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17440. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17441. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17442. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17443. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17444. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17445. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17446. Use LogFactory.
  17447. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17448. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17449. Use LogFactory.
  17450. * src/main.cc (main): Use LogFactory.
  17451. * src/DiskAdaptor.h (logger): New variable.
  17452. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17453. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17454. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17455. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17456. parameter to a tracker request.
  17457. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17458. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17459. * src/main.cc (setSignalHander): New function.
  17460. (main): Added a handler for SIGTERM.
  17461. (handler): Updated message.
  17462. (torrentHandler): Updated message.
  17463. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17464. * src/TorrentConsoleDownloadEngine.cc
  17465. (onPartialDownloadingCompletes): Renamed as
  17466. onSelectiveDownloadingCompletes.
  17467. (onSelectiveDownloadingCompletes): Updated message.
  17468. To add DiskAdaptor which abstract DiskWriter family:
  17469. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17470. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17471. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17472. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17473. MultiDiskAdaptor.h.
  17474. (readFileEntry): Changed its arguments.
  17475. (setup): setupDiskWriter is merged into this function.
  17476. (setupDiskWriter): Removed.
  17477. (setFileFilter): New function.
  17478. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17479. made in readFileEntry.
  17480. (getFilePath): Removed.
  17481. (getTempFilePath): Removed.
  17482. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17483. (fixFilename): Removed.
  17484. (copySingleFile): Removed.
  17485. (splitMultiFile): Removed.
  17486. (deleteTempFile): Removed.
  17487. (setFileEntriesToDownload): Removed.
  17488. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17489. (isSelectiveDownloadingMode): New function.
  17490. (setAllMultiFileRequestedState): Removed.
  17491. (finishPartialDownloadingMode): Renamed as
  17492. finishSelectiveDownloadingMode.
  17493. (finishSelectiveDownloadingMode): New function.
  17494. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17495. (getSelectedTotalLength): New function.
  17496. (onDownloadComplete): Use diskAdaptor.
  17497. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17498. (Range): Removed.
  17499. (setMultiFileEntries): Renamed as setFileEntries.
  17500. (setFileEntries): New function.
  17501. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17502. (pieceLength): New variable.
  17503. * src/main.cc (printDownloadCompeleteMessage): New function.
  17504. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17505. (main): Renamed torrent-show-files to show-files.
  17506. Rewritten file contents listing.
  17507. * src/TorrentMan.h (FileEntry): Removed.
  17508. (multiFileTopDir): Removed.
  17509. (multiFileEntries): Removed.
  17510. (diskWriter): Removed.
  17511. (diskAdaptor): New variable.
  17512. * src/DefaultDiskWriter.h (totalLength): New variable.
  17513. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17514. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17515. diskWriter.
  17516. * src/TorrentConsoleDownloadEngine.h
  17517. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17518. (partialTotalLength): Renamed as selectedTotalLength.
  17519. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17520. openExistingFile, otherwise call initAndOpenFile.
  17521. (closeFile): fd > 0, not fd != 0.
  17522. * src/DirectDiskAdaptor.h: New class.
  17523. * src/DirectDiskAdaptor.cc: New class.
  17524. * src/MultiDiskAdaptor.h: New class.
  17525. * src/MultiDiskAdaptor.cc: New class.
  17526. * src/CopyDiskAdaptor.h: New class.
  17527. * src/CopyDiskAdaptor.cc: New class.
  17528. * src/DiskAdaptor.h: New class.
  17529. * src/DiskAdaptor.cc: New class.
  17530. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17531. (PREF_SHOW_FILES): New definition.
  17532. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17533. To add the ability to download multi torrent into respective files
  17534. directly:
  17535. * src/DiskWriter.h (openFile): New function.
  17536. (seek): Removed.
  17537. * src/MultiDiskWriter.h: New class.
  17538. * src/MultiDiskWriter.cc: New class.
  17539. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17540. protected.
  17541. (openFile): New function.
  17542. * src/AbstractDiskWriter.cc (openFile): New function.
  17543. * src/prefs.h (V_FALSE): New definition.
  17544. (PREF_DIRECT_FILE_MAPPING): New definition.
  17545. * src/TorrentMan.h (setupDiskWriter): New function.
  17546. (setAllMultiFileRequestedState): New function.
  17547. (onDownloadComplete): New function.
  17548. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17549. (setupDiskWriter): New function.
  17550. (getFilePath): Updated.
  17551. (getTempFilePath): Updated.
  17552. (getSegmentFilePath): Updated.
  17553. (fixFilename): Updated.
  17554. (deleteTempFile): Updated.
  17555. (setAllMultiFileRequestedState): New function.
  17556. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17557. (finishPartialDownloadingMode): Reset requested flags.
  17558. (onDownloadComplete): New function.
  17559. * src/main.cc: Added --direct-file-mapping option.
  17560. Use TorrentMan::setupDiskWriter().
  17561. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17562. onDownloadComplete().
  17563. To fix ETA bug:
  17564. * src/Util.h (difftvsec): New function.
  17565. * src/Util.cc (difftvsec): New function.
  17566. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17567. type of "elapsed" instead of long long int.
  17568. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17569. The updates of statistics takes place every 1 seconds.
  17570. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17571. (calculateSpeed): Changed its argument signature.
  17572. * src/PeerMessage.cc (toString): Fixed message.
  17573. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17574. To print ETA:
  17575. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17576. completion handling when dealing with
  17577. TorrentMan::isPartialDownloadingMode() == true.
  17578. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17579. New function.
  17580. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17581. (sessionDownloadLength): New variable.
  17582. (avgSpeed): New variable.
  17583. (eta): New variable.
  17584. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17585. new variables: eta, avgSpeed, startup.
  17586. (calculateSpeed): Calculate average speed and ETA.
  17587. (printStatistics): Added ETA.
  17588. * src/Util.h (secfmt): New function.
  17589. * src/Util.cc (secfmt): New function.
  17590. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17591. To detect "keep alive" flooding:
  17592. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17593. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17594. variable: keepAliveCount.
  17595. (detectMessageFlooding): Added "keep alive" flooding detection.
  17596. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17597. received.
  17598. To add the ability to download only specified files in multi-file
  17599. torrent:
  17600. * src/BitfieldMan.h (filterBitfield): New variable.
  17601. (filterEnabled): New variable.
  17602. (setFilterBit): New function.
  17603. (enableFilter): New function.
  17604. (disableFilter): New function.
  17605. (isFilterEnabled): New function.
  17606. (getFilteredTotalLength): New function.
  17607. (getCompletedLength): New function.
  17608. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17609. filterBitfield, filterEnabled.
  17610. (CopyConstructor): Added filterBitfield and filterEnabled.
  17611. (operator==): Added filterBitfield and filterEnabled.
  17612. (Destructor): Added filterBitfield.
  17613. (getMissingIndex): Use filterBitfield.
  17614. (getMissingUnusedIndex): Use filterBitfield.
  17615. (getFirstMissingUnusedIndex): Use filterBitfield.
  17616. (getFirstMissingUnusedIndex): Use filterBitfield.
  17617. (getAllMissingIndexes): Use filterBitfield.
  17618. (countMissingBlock): Use filterBitfield.
  17619. (countBlock): Use filterBitfield.
  17620. (setBitInternal): Added new argument on.
  17621. (setUseBit): Use setBitInternal.
  17622. (unsetUseBit): Use setBitInternal.
  17623. (setBit): Use setBitInternal.
  17624. (unsetBit): Use setBitInternal.
  17625. (isAllBitSet): Use filterBitfield.
  17626. (setFilterBit): New function.
  17627. (addFilter): New function.
  17628. (enableFilter): New function.
  17629. (disableFilter): New function.
  17630. (clearFilter): New function.
  17631. (isFilterEnabled): New function.
  17632. (getFilteredTotalLength): New function.
  17633. (getCompletedLength): New function.
  17634. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17635. Initalized newly added variables.
  17636. [FileEntry](offset): New variable.
  17637. [FileEntry](extracted): New variable.
  17638. [FileEntry](requested): New variable.
  17639. (readFileEntry): New function.
  17640. (option): New variable.
  17641. (splitMultiFile): Removed const qualifier.
  17642. (fixFilename): Removed const qualifier.
  17643. (readFileEntryFromMetaInfoFile): New function.
  17644. (finishPartialDownloadingMode): New function.
  17645. (isPartialDownloadingMode): New function.
  17646. (setFileEntriesToDownload): New function.
  17647. (getCompletedLength): New function.
  17648. (getPartialTotalLength): New function.
  17649. * src/TorrentMan.cc (readFileEntry): New function.
  17650. (setup): Use readFileEntry. If no-preallocation option is specified,
  17651. use DefaultDiskWriter.
  17652. (readFileEntryFromMetaInfoFile): New function.
  17653. (fixFilename): Removed const qualifier.
  17654. (splitMultiFile): Removed const qualifier.
  17655. (setFileEntriesToDownload): New function.
  17656. (isPartialDownloadingMode): New function.
  17657. (finishPartialDownloadingMode): New function.
  17658. (getCompletedLength): New function.
  17659. (getPartialTotalLength): New function.
  17660. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17661. New variable.
  17662. (partialTotalLength): New variable.
  17663. (downloadLength): New variable.
  17664. (totalLength): New variable.
  17665. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17666. Added log.
  17667. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17668. partialTotalLength, downloadLength, totalLength.
  17669. (calculate): Calculate downloadLength and totalLength.
  17670. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17671. * src/main.cc (addCommand): Changed argument signature.
  17672. (main): Added new variable: args. Added new option "torrent-show-files"
  17673. "no-preallocation". Usage is not updated yet.
  17674. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17675. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17676. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17677. Attempt to add the ability to listing file entries in a .torrent file.
  17678. This feature is not yet complete.
  17679. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17680. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17681. (getName): New function.
  17682. * src/TorrentMan.h (getMultiFileEntries): New function.
  17683. (getName): New function.
  17684. * src/main.cc (main): Use above 2 funtion.
  17685. * Release 0.3.2
  17686. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17687. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17688. (detectMessageFlooding): Updated threshold value.
  17689. (checkLongTimePeerChoking): Updated timeout value.
  17690. (getNewPieceAndSendInterest): Added debug log.
  17691. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17692. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17693. (getPeer): Updated.
  17694. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17695. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17696. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17697. is localhost.
  17698. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17699. * src/PendingMessage.cc (processMessage): Not to send piece message
  17700. if peer is not interested in the pieces localhost has.
  17701. * src/Peer.cc (shouldChoke): Updated.
  17702. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17703. * src/Util.cc (isPowerOf): New function.
  17704. * src/Util.h (isPowerOf): New function.
  17705. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17706. whether or not it is power of 2.
  17707. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17708. Added new class SendMessageQueue that includes PendingMessages and
  17709. RequestSlotMan.
  17710. * src/SendMessageQueue.h: New class.
  17711. * src/SendMessageQueue.cc: New class.
  17712. * src/PendingMessage.h: Added new member variable blockIndex and its
  17713. accessors.
  17714. (createRequestMessage): Updated.
  17715. * src/PendingMessage.cc (createRequestMessage): Updated.
  17716. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  17717. SendMessageQueue.
  17718. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  17719. (receiveMessage): Updated with SendMessageQueue.
  17720. (deletePendingPieceMessage): Removed.
  17721. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  17722. (sendInterest): Updated with SendMessageQueue.
  17723. (createRequestPendingMessage): Updated with SendMessageQueue.
  17724. (sendMessages): Updated with SendMessageQueue.
  17725. (onAbort): Updated with SendMessageQueue.
  17726. (keepAlive): Updated with SendMessageQueue.
  17727. (beforeSocketCheck): Updated SendMessageQueue.
  17728. * src/PeerInteractionCommand (sendMessages): Shuffle
  17729. missingBLockIndexes before using it.
  17730. Added its own timeout for peer connection.
  17731. * src/PeerAbstractCommand.h: Added member variable timeout and its
  17732. setter.
  17733. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  17734. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17735. Added setTimeout() call.
  17736. (executeInternal): Added setTimeout() call.
  17737. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  17738. Added timeout.
  17739. (isTimeoutDetected): Updated.
  17740. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  17741. option.
  17742. Added *simple* message flooding checker.
  17743. * src/PeerInteractionCommand.cc (executeInternal):
  17744. Added detectMessageFlooding() call.
  17745. (detectMessageFlooding): New function.
  17746. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  17747. (beforeSocketCheck): Added detectMessageFlooding() call.
  17748. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  17749. chokeUnchokeCount, haveCount, detectMessageFlooding().
  17750. Removed deletePendingPieceMessage(), getRequestSlot(),
  17751. deleteRequestSlot(), deleteAllRequestSlot().
  17752. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  17753. Added checkLongTimePeerChoking() call.
  17754. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  17755. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  17756. if duplicate == false.
  17757. The parameter "uploaded" and "downloaded" in the tracker request are
  17758. the size since the client sent the "started" event to the tracker.
  17759. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  17760. uploaded size to preDownloadedSize, preUploadedSize respectively.
  17761. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  17762. getSessionDownloadedSize(), getSessionUploadedSize().
  17763. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  17764. getSessionUploadedSize() instead of getDownloadedSize(),
  17765. getUploadedSize().
  17766. * src/PendingMessage.cc (processMessage): Do not send request message
  17767. if the peer is choking the client.
  17768. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  17769. less than interval.
  17770. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17771. * configure.in: Added gnutls support. Added several CPP macros.
  17772. * m4/openssl.m4: Added.
  17773. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17774. readData(), peekData(). Added gnutls support.
  17775. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17776. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17777. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17778. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17779. Instead, added a check for whether setup method has executed
  17780. successfully.
  17781. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17782. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17783. * src/Makefile.am: Updated.
  17784. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17785. using whether OpenSSL or gcrypt, depending on the result of configure
  17786. script.
  17787. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17788. messageDigest.h.
  17789. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17790. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17791. Fixed memory leak.
  17792. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17793. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17794. Removed instantiation of TrackerInitCommand. Instead,
  17795. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17796. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17797. ENABLE_SSL.
  17798. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17799. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17800. If a piece is already acquired by another command, delete the request
  17801. slots for the piece.
  17802. * src/TrackerUpdateCommand.cc (execute):
  17803. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17804. Added a check whether peer list is null.
  17805. Fixed the bug that causes sending completed event to the tracker
  17806. several times.
  17807. * src/TrackerInitCommand.cc (execute):
  17808. Fixed the bug that causes sending completed event to the tracker
  17809. several times.
  17810. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17811. by using messageDigest.h.
  17812. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17813. * PeerConnection.cc: Replaced log message "keep-alive" with
  17814. "keep alive".
  17815. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17816. localhost long time.
  17817. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17818. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17819. at most 100 failure entry from the list. If with duplicate = false,
  17820. MAX_PEER_LIST is not checked.
  17821. * PeerListenCommand.cc: Fixed the argument order of log message.
  17822. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17823. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17824. Added warn().
  17825. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17826. Implemented warn().
  17827. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17828. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17829. * Request.h: Added AFTER_COMPLETED event.
  17830. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17831. instead of downloaded size and progress(%) after download completes.
  17832. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17833. message to the peer if it is interested in what localhost has
  17834. downloaded.
  17835. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17836. destination instead of just renaming it.
  17837. * TorrentMan.cc: Added deleteTempFile().
  17838. * PeerAbstractCommand.cc: do not stop execution after download
  17839. completes. This makes localhost a seeder.
  17840. * Util.{h,cc}: Added fileCopy().
  17841. * PeerListenCommand.cc: do not stop execution after download completes.
  17842. This makes localhost a seeder.
  17843. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17844. Added TorrentMan::deleteTempFile() to torrentHandler.
  17845. Initialized the variable dir as ".".
  17846. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17847. Deleted renameSingleFile().
  17848. Added copySingleFile(), deleteTempFile().
  17849. * DownloadEngine.h: Added virtual function afterEachIteration().
  17850. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17851. in onEndOfRun() to afterEachIteration().
  17852. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17853. true.
  17854. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17855. In rangedFileCopy(), added try-catch block to properly close file
  17856. descriptors.
  17857. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17858. Added afterEachIteration(), isFilenameFixed().
  17859. * Peer.cc: Changed choking strategy.
  17860. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17861. * TrackerInitCommand.cc: Send completed event only once.
  17862. * DownloadEngine.cc: Added a call to afterEachIteration().
  17863. * TrackerUpdateCommand.cc: Do not stop execution after download
  17864. completes.
  17865. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17866. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17867. received from a tracker.
  17868. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17869. Decreased the number of failure peers to delete to 0(just comment out
  17870. the line).
  17871. * Release 0.3.1
  17872. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17873. * PeerInteractionCommand.cc: added a call to
  17874. TorrentMan::unadvertisePiece in Destructor.
  17875. * PeerInteractionCommand.cc: make have message sent immediately
  17876. if the size of pending message queue is zero.
  17877. * TorrentMan.cc: set the maximum size of peer list to 250.
  17878. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17879. to deque.
  17880. * Util.cc: fixed rangedFileCopy.
  17881. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17882. to Constructor. Also, moved digest cleanup to Destructor.
  17883. * MetaFileUtil.cc: fixed memory leak
  17884. * replaced std::vector with std::deque.
  17885. * AbstractCommand.cc: casted timeout value to long long int.
  17886. * ChunkedEncoding.cc: fixed memory leak.
  17887. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17888. * SleepCommand.cc: casted timeout value to long long int.
  17889. * Data.cc: fixed memory leak.
  17890. * Data.cc: fixed toLLInt().
  17891. * BitfieldMan.cc: fixed memory leak.
  17892. * TorrentMan.cc: initialized storeDir to ".".
  17893. * TorrentMan.cc: fixed memory leak.
  17894. * TorrentMan.cc: corrected file paths of splitted files.
  17895. * PeerAbstractCommand.cc: casted timeout to long long int.
  17896. * main.cc: added delete(req) and delete(te->diskWriter).
  17897. * RequestSlot.cc: casted timeout value to long long int.
  17898. * Request.cc: fixed memory leak.
  17899. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17900. have the piece.
  17901. * Peer.{h,cc}: added hasPiece(int index).
  17902. * main.cc: corrected addCommand.
  17903. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17904. * BitTorrent protocol support added.
  17905. * Release 0.3.0
  17906. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17907. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17908. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17909. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17910. decoding did not work properly.
  17911. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17912. * DownloadEngine.h: included sys/time.h
  17913. * DownloadEngine.cc: remove sys/time.h
  17914. * Makefile.am (SUBDIRS): Add intl.
  17915. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17916. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17917. * main.cc: correct help message for --http-auth-scheme.
  17918. * main.cc: changed e-mail address for bug reports.
  17919. * ja.po: added japanese translation.
  17920. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17921. * SimpleLogger.cc: flush log file instead of stdout.
  17922. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17923. * main.cc: Fixed command-line option: max-tries
  17924. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17925. does not equal to seg.sp.
  17926. * DownloadCommand.cc: If EOF is got from the server and the total size
  17927. of file is not zero, then throw DlRetryEx.
  17928. * main.cc: Set the minium value of min-segment-size to 1024.
  17929. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17930. fails because of a regression since 0.2.0 release.
  17931. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17932. * HttpConnection.cc:
  17933. * common.h: defined the user agent name as macro
  17934. * DownloadEngine.{h, cc}:
  17935. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17936. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17937. * main.cc: Download complete/abort message is now generated by main.
  17938. * Makefile.am (SUBDIRS): Add m4.
  17939. (ACLOCAL_AMFLAGS): New variable.
  17940. (EXTRA_DIST): New variable.
  17941. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17942. * gettext: added gettext functionality
  17943. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17944. * AbstractCommand.cc:
  17945. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17946. unregister its cuid from SegmentMan.
  17947. * DownloadEngine.cc: .aria2 file was written when a downloading
  17948. failed with errors.
  17949. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17950. Added "User-Agent" header to CONNECT proxy request.
  17951. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17952. properly.
  17953. * Logger.h:
  17954. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17955. * ChunkedEncoding.cc: Added #include directive for strings.h
  17956. * Release 0.2.1
  17957. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17958. * Util.{h,cc}: added startsWith().
  17959. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17960. Util::endsWith().
  17961. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17962. * common.h: added #include directive of limit.h.
  17963. * DownloadEngine.cc: added #include directive of sys/time.h and
  17964. algorithm.
  17965. * Exception.h: added #include directive of stdio.h.
  17966. * AbstractCommand.h: added #include directive of sys/time.h.
  17967. * DownloadCommand.h: added #include directive of sys/time.h.
  17968. * *.h: added #include directive of common.h to all base classes.
  17969. subclasses' one was removed.
  17970. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17971. does not define these macros.
  17972. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17973. * Release 0.2.0
  17974. * main.cc:
  17975. * HttpInitiateConnectionCommand.{h,cc}:
  17976. * prefs.h:
  17977. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17978. We can now use GET command in http proxy.
  17979. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17980. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17981. that splits slowest segment of SegmentMan::commands vector.
  17982. This is the default split algorithm of aria2.
  17983. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17984. that splits first segment of SegmentMan::commands vector.
  17985. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17986. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17987. * Segment.h:
  17988. * SegmentMan.cc: Added speed field to Segment.h
  17989. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17990. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17991. * message.h: Change file size related %d to %lld.
  17992. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17993. * FtpInitiateConnectionCommand.{h,cc}:
  17994. * FtpNegotiationCommand.{h,cc}:
  17995. * FtpDownloadCommand.{h,cc}:
  17996. * FtpConnection.{h,cc}: Added FTP support
  17997. * SimpleLogger.cc: Log message now includes time information.
  17998. * main.cc: The value of --http-auth-scheme option is chagned from
  17999. 'BASIC' to 'basic'
  18000. * main.cc: Added --timeout command-line option.
  18001. * main.cc: Added --min-segment-size command-line option.
  18002. * main.cc: Added --max-retries command-line option.
  18003. * prefs.h: option string constants are now defined in prefs.h
  18004. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18005. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18006. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18007. with version 0.1.0's one.
  18008. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18009. * configure.in: Added --enable-ssl option to configure script.
  18010. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18011. cannot permit absoluteURI as Request-URI.
  18012. * HttpConnection.cc: Added Referer support.
  18013. * main.cc: Added referer command-line option.
  18014. * main.cc: Added rety-wait command-line option.
  18015. * Exception.h: Fixed formating bug in Exception::setMsg()
  18016. * SocketCore.{h,cc}:
  18017. * Socket.{h, cc}:
  18018. * Request.cc:
  18019. * InitiateConnectionCommandFactory.cc:
  18020. * HttpRequestCommand.cc: Added HTTPS support.
  18021. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18022. for SocketCore.
  18023. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18024. size is wrong
  18025. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18026. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18027. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18028. * Release 0.1.0