ChangeLog 717 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202
  1. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Documented about Metalink4 and LPD in README
  3. * RADME
  4. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Few adjustment for timeouts in DHT. DHT message timeout is changed
  6. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  7. it adds another 5 seconds in each retry.
  8. * src/DHTConstants.h
  9. * src/DHTGetPeersCommand.cc
  10. * src/DHTGetPeersCommand.h
  11. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  12. Changed log level from error to info for DHT message send error.
  13. * src/DHTMessageDispatcherImpl.cc
  14. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  15. Inspect all xt in magnet to find urn:btih.
  16. * src/bittorrent_helper.cc
  17. * test/BittorrentHelperTest.cc
  18. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  19. Use global option for DHTSetup.
  20. * src/DHTSetup.cc
  21. * src/DHTSetup.h
  22. * src/RequestGroup.cc
  23. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Added bt-enable-lpt, reuse-uri
  25. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  26. options.
  27. * doc/aria2c.1.txt
  28. * doc/xmlrpc/aria2rpc
  29. * src/download_helper.cc
  30. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  32. * src/BtSetup.cc
  33. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Resurrected --http-proxy-user and --http-proxy-passwd option.
  35. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  36. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  37. * doc/aria2c.1.txt
  38. * src/OptionHandlerFactory.cc
  39. * src/OptionHandlerImpl.h
  40. * src/prefs.cc
  41. * src/prefs.h
  42. * src/usage_text.h
  43. * test/OptionHandlerTest.cc
  44. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Updated Russian and Simplified Chinese translation. Thanks to all
  46. translators.
  47. * po/ru.po
  48. * po/zh_CN.po
  49. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Updated po templates.
  51. * po/aria2.pot
  52. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. For LPD sockets, bind IN_ADDRANY because binding multicast address
  54. fails under Windows.
  55. * src/LpdMessageReceiver.cc
  56. * test/LpdMessageDispatcherTest.cc
  57. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  58. Fixed the bug that error message is not propagated to Exception.
  59. * src/SocketCore.cc
  60. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  61. Documented --bt-lpd-interface option in man page.
  62. * doc/aria2c.1.txt
  63. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Bump up version number to 1.9.0
  65. * configure.ac
  66. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Fixed the bug that FillRequestGroupCommand is not invoked when
  68. RequestGroupMan::createInitialCommand() creates no Command object.
  69. * src/FillRequestGroupCommand.cc
  70. * src/RequestGroupMan.cc
  71. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Added debug logs.
  73. * src/FileEntry.cc
  74. * src/SegmentMan.cc
  75. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Fixed unit test error with mingw32 build.
  77. * test/LpdMessageReceiverTest.cc
  78. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  79. Updated automake-1.11.1
  80. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Fixed compile error and unit test error without openssl and
  82. gnutls.
  83. * src/MetalinkParserController.cc
  84. * test/MetalinkProcessorTest.cc
  85. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Fixed unitest fails if openssl doesn't support sha-256.
  87. * src/MetalinkParserStateV4Impl.cc
  88. * test/MetalinkProcessorTest.cc
  89. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Wait until message arrives(again)
  91. * test/LpdMessageReceiverTest.cc
  92. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Added missing wallclock.h to SRCS.
  94. * src/Makefile.am
  95. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Fixed compile error with --disable-bittorrent
  97. * test/Metalink2RequestGroupTest.cc
  98. * test/MetalinkParserControllerTest.cc
  99. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Added --reuse-uri option. This option has existed quite long, but
  101. been hidden.
  102. * doc/aria2c.1.txt
  103. * src/OptionHandlerFactory.cc
  104. * src/usage_text.h
  105. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Ignore filename parameter if it contains directory traversal
  107. directives.
  108. * src/util.cc
  109. * test/UtilTest.cc
  110. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. urldecode -> percentDecode
  112. * src/FtpConnection.cc
  113. * src/FtpNegotiationCommand.cc
  114. * src/HttpResponse.cc
  115. * src/Request.cc
  116. * src/magnet.cc
  117. * src/util.cc
  118. * src/util.h
  119. * test/UtilTest.cc
  120. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. urlencode -> percentEncode,
  122. torrentUrlencode -> torrentPercentEncode
  123. * src/BtHandshakeMessage.cc
  124. * src/BtHandshakeMessageValidator.h
  125. * src/DHTMessageFactoryImpl.cc
  126. * src/DefaultBtAnnounce.cc
  127. * src/HandshakeExtensionMessage.cc
  128. * src/HttpRequest.cc
  129. * src/XmlRpcMethodImpl.cc
  130. * src/bittorrent_helper.cc
  131. * src/util.cc
  132. * src/util.h
  133. * test/DHTAnnouncePeerMessageTest.cc
  134. * test/DHTGetPeersMessageTest.cc
  135. * test/DHTGetPeersReplyMessageTest.cc
  136. * test/UTPexExtensionMessageTest.cc
  137. * test/UtilTest.cc
  138. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Fixed the bug that filename is percent encoded where it must be
  140. percent decoded in sendMdtm().
  141. * src/FtpConnection.cc
  142. * test/FtpConnectionTest.cc
  143. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  144. url -> uri in Request class.
  145. * src/AbstractCommand.cc
  146. * src/AdaptiveURISelector.cc
  147. * src/DefaultBtAnnounce.cc
  148. * src/FeedbackURISelector.cc
  149. * src/FileEntry.cc
  150. * src/FileEntry.h
  151. * src/HttpRequest.h
  152. * src/HttpResponse.cc
  153. * src/InitiateConnectionCommandFactory.cc
  154. * src/Metalink2RequestGroup.cc
  155. * src/OptionHandlerImpl.h
  156. * src/ProtocolDetector.cc
  157. * src/Request.cc
  158. * src/Request.h
  159. * src/XmlRpcMethodImpl.cc
  160. * test/AuthConfigFactoryTest.cc
  161. * test/FtpConnectionTest.cc
  162. * test/HttpRequestTest.cc
  163. * test/HttpResponseTest.cc
  164. * test/RequestTest.cc
  165. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Added getServers XML-RPC method.
  167. * doc/aria2c.1.txt
  168. * src/FileEntry.h
  169. * src/XmlRpcMethodFactory.cc
  170. * src/XmlRpcMethodImpl.cc
  171. * src/XmlRpcMethodImpl.h
  172. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  173. Pool request when download finished.
  174. * src/DownloadCommand.cc
  175. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  177. 1-based.
  178. * doc/aria2c.1.txt
  179. * src/XmlRpcMethodImpl.cc
  180. * test/XmlRpcMethodTest.cc
  181. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  182. Call RequestGroupMan::requestQueueCheck() when
  183. max-concurrent-downloads option is changed or new downloads are
  184. added/inserted into reserved list.
  185. * src/RequestGroupMan.cc
  186. * src/XmlRpcMethodImpl.cc
  187. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Added aria2.forceRemove XML-RPC method.
  189. * doc/aria2c.1.txt
  190. * src/XmlRpcMethodFactory.cc
  191. * src/XmlRpcMethodImpl.cc
  192. * src/XmlRpcMethodImpl.h
  193. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Added debug log.
  195. * src/AbstractCommand.cc
  196. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Create CreateRequestCommand to the number of -s/-C when URIs are
  198. added by XML-RPC.
  199. * src/RequestGroup.cc
  200. * src/RequestGroup.h
  201. * src/XmlRpcMethodImpl.cc
  202. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. Added 'status' key to the response of getUri XML-RPC method.
  204. * doc/aria2c.1.txt
  205. * src/XmlRpcMethodImpl.cc
  206. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  207. Replaced Time::reset() call with assigning of global::wallclock.
  208. * src/BtLeecherStateChoke.cc
  209. * src/BtSeederStateChoke.cc
  210. * src/PeerSessionResource.cc
  211. * src/RequestSlot.cc
  212. * src/ServerStat.cc
  213. * src/SpeedCalc.cc
  214. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  215. Added changeUri XML-RPC method. This method removes/adds URIs
  216. dynamically.
  217. * doc/aria2c.1.txt
  218. * src/AbstractCommand.cc
  219. * src/DownloadContext.cc
  220. * src/DownloadContext.h
  221. * src/FileEntry.cc
  222. * src/FileEntry.h
  223. * src/Request.cc
  224. * src/Request.h
  225. * src/RequestGroup.cc
  226. * src/RequestGroupMan.cc
  227. * src/XmlRpcMethodFactory.cc
  228. * src/XmlRpcMethodImpl.cc
  229. * src/XmlRpcMethodImpl.h
  230. * test/FileEntryTest.cc
  231. * test/XmlRpcMethodTest.cc
  232. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  233. Rewritten copy ctor of RequestSlot to use initialization list.
  234. * src/RequestSlot.h
  235. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  236. Added Time global::wallclock to cache "current time" to reduce the
  237. call gettimeofday(). Global variables are now in namespace global.
  238. * src/AbstractCommand.cc
  239. * src/ActivePeerConnectionCommand.cc
  240. * src/AdaptiveURISelector.cc
  241. * src/BtLeecherStateChoke.cc
  242. * src/BtLeecherStateChoke.h
  243. * src/BtSeederStateChoke.cc
  244. * src/BtSeederStateChoke.h
  245. * src/BtStopDownloadCommand.cc
  246. * src/ConsoleStatCalc.cc
  247. * src/DHTBucket.cc
  248. * src/DHTGetPeersCommand.cc
  249. * src/DHTMessageTrackerEntry.cc
  250. * src/DHTNode.cc
  251. * src/DHTPeerAnnounceEntry.cc
  252. * src/DHTPeerAnnounceStorage.cc
  253. * src/DHTSetup.cc
  254. * src/DefaultBtAnnounce.cc
  255. * src/DefaultBtInteractive.cc
  256. * src/DefaultBtMessageDispatcher.cc
  257. * src/DefaultPeerStorage.cc
  258. * src/DefaultPieceStorage.cc
  259. * src/DownloadCommand.cc
  260. * src/DownloadEngine.cc
  261. * src/FileEntry.cc
  262. * src/HttpServerBodyCommand.cc
  263. * src/HttpServerCommand.cc
  264. * src/HttpServerResponseCommand.cc
  265. * src/LpdMessageDispatcher.cc
  266. * src/MultiUrlRequestInfo.cc
  267. * src/Peer.cc
  268. * src/Peer.h
  269. * src/PeerAbstractCommand.cc
  270. * src/PeerStat.h
  271. * src/RequestSlot.cc
  272. * src/RequestSlot.h
  273. * src/SegmentMan.cc
  274. * src/ServerStatMan.cc
  275. * src/SleepCommand.cc
  276. * src/SpeedCalc.cc
  277. * src/SpeedCalc.h
  278. * src/TimeA2.cc
  279. * src/TimeA2.h
  280. * src/TimeBasedCommand.cc
  281. * src/TimeSeedCriteria.h
  282. * src/UTMetadataRequestTracker.h
  283. * src/UTPexExtensionMessage.cc
  284. * src/wallclock.h
  285. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Fixed the bug that util::itos(INT64_MIN) fails.
  287. * src/util.cc
  288. * src/util.h
  289. * test/UtilTest.cc
  290. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Fixed memory leak in SocketBuffer when _bufq is not empty when
  292. SocketBuffer is deleted. Added BufEntry constructor and deleted
  293. static factory functions.
  294. * src/SocketBuffer.cc
  295. * src/SocketBuffer.h
  296. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  298. queue maintenance is requested by RequestGroup to avoid to call
  299. the function unnecessarily.
  300. * src/FillRequestGroupCommand.cc
  301. * src/RequestGroup.cc
  302. * src/RequestGroup.h
  303. * src/RequestGroupMan.cc
  304. * src/RequestGroupMan.h
  305. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. Don't use hash for Peer::id. Simple concatenation of ip address
  307. and port is enough.
  308. * src/Peer.cc
  309. * test/PeerTest.cc
  310. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  311. Enclosed log of DHTMessage::toString() with Logger::info().
  312. * src/DHTMessageDispatcherImpl.cc
  313. * src/DHTMessageReceiver.cc
  314. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  315. Rewritten util::toHex().
  316. * src/util.cc
  317. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  318. Removed SocketBuffer::feedAndSend(). Renamed
  319. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  320. * src/FtpConnection.cc
  321. * src/HttpConnection.cc
  322. * src/HttpServer.cc
  323. * src/MSEHandshake.cc
  324. * src/PeerConnection.cc
  325. * src/SocketBuffer.cc
  326. * src/SocketBuffer.h
  327. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Removed unused PeerConnection::sendMessage(). Updated doc.
  329. * src/PeerConnection.cc
  330. * src/PeerConnection.h
  331. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Reduced copying/std::string instantiation in sending/receiving
  333. BitTorrent messages.
  334. * src/BtBitfieldMessage.cc
  335. * src/BtBitfieldMessage.h
  336. * src/BtExtendedMessage.cc
  337. * src/BtExtendedMessage.h
  338. * src/BtHandshakeMessage.cc
  339. * src/BtHandshakeMessage.h
  340. * src/BtKeepAliveMessage.cc
  341. * src/BtKeepAliveMessage.h
  342. * src/BtPieceMessage.cc
  343. * src/BtPieceMessage.h
  344. * src/BtPortMessage.cc
  345. * src/BtPortMessage.h
  346. * src/BtUnchokeMessage.h
  347. * src/DefaultBtMessageReceiver.cc
  348. * src/IndexBtMessage.cc
  349. * src/IndexBtMessage.h
  350. * src/PeerConnection.cc
  351. * src/PeerConnection.h
  352. * src/RangeBtMessage.cc
  353. * src/RangeBtMessage.h
  354. * src/SimpleBtMessage.cc
  355. * src/SimpleBtMessage.h
  356. * src/SocketBuffer.cc
  357. * src/SocketBuffer.h
  358. * src/ZeroBtMessage.cc
  359. * src/ZeroBtMessage.h
  360. * test/BtAllowedFastMessageTest.cc
  361. * test/BtBitfieldMessageTest.cc
  362. * test/BtCancelMessageTest.cc
  363. * test/BtChokeMessageTest.cc
  364. * test/BtExtendedMessageTest.cc
  365. * test/BtHandshakeMessageTest.cc
  366. * test/BtHaveAllMessageTest.cc
  367. * test/BtHaveMessageTest.cc
  368. * test/BtHaveNoneMessageTest.cc
  369. * test/BtInterestedMessageTest.cc
  370. * test/BtKeepAliveMessageTest.cc
  371. * test/BtNotInterestedMessageTest.cc
  372. * test/BtPieceMessageTest.cc
  373. * test/BtPortMessageTest.cc
  374. * test/BtRejectMessageTest.cc
  375. * test/BtRequestMessageTest.cc
  376. * test/BtSuggestPieceMessageTest.cc
  377. * test/BtUnchokeMessageTest.cc
  378. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Rewritten SocketBuffer. Old implementation uses single std::string
  380. to store data and erase sent data, which is costly. New
  381. implementation uses deque to hold each data to avoid to mutate
  382. string.
  383. * src/SocketBuffer.cc
  384. * src/SocketBuffer.h
  385. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  386. Removed unused FileEntry::extracted
  387. * src/FileEntry.cc
  388. * src/FileEntry.h
  389. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Wait until data arrives.
  391. * test/LpdMessageReceiverTest.cc
  392. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  393. In Metalink4, if size element contains invalid size, discard whole
  394. document. Added strict hash value check for metalink3/4.
  395. * src/MetalinkParserController.cc
  396. * src/MetalinkParserStateMachine.cc
  397. * src/MetalinkParserStateMachine.h
  398. * src/MetalinkParserStateV3Impl.cc
  399. * src/MetalinkParserStateV4Impl.cc
  400. * src/util.cc
  401. * src/util.h
  402. * test/MetalinkParserControllerTest.cc
  403. * test/MetalinkProcessorTest.cc
  404. * test/metalink4.xml
  405. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Added strict attribute validation for metalink4. When
  407. specification violation is found, discard the whole document.
  408. * src/ExpatMetalinkProcessor.cc
  409. * src/MetalinkParserStateMachine.cc
  410. * src/MetalinkParserStateMachine.h
  411. * src/MetalinkParserStateV4Impl.cc
  412. * src/XML2SAXMetalinkProcessor.cc
  413. * test/Makefile.am
  414. * test/MetalinkProcessorTest.cc
  415. * test/metalink4-attrs.xml: Removed
  416. * test/metalink4-dirtraversal.xml: Removed
  417. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  418. Added test for Metaurl transaction.
  419. * src/MetalinkParserController.cc
  420. * test/MetalinkParserControllerTest.cc
  421. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  422. Avoid costly BtMessage::toString() if info level log is not
  423. required.
  424. * src/DefaultBtInteractive.cc
  425. * src/Logger.h
  426. * src/SimpleBtMessage.cc
  427. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  428. Reserved vector elements based on profiler results.
  429. * src/DefaultBtInteractive.cc
  430. * src/DefaultBtProgressInfoFile.cc
  431. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Avoid to calculate end() iterator in each loop. std::deque is
  433. particularly slow. Make sure that recalculate end iterator if
  434. element is erased during loop.
  435. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  436. Use vector instead of deque for containers which is used for
  437. mostly read-only purpose.
  438. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  439. Fixed typo
  440. * test/Makefile.am
  441. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  442. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  443. * test/Makefile.am
  444. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Small optimization: In updateTransferStatFor(), don't search peer
  446. ID twice.
  447. * src/DefaultPeerStorage.cc
  448. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Use vector instead of deque for MetalinkEntry and MetalinkResource
  450. objects.
  451. * src/Metalink2RequestGroup.cc
  452. * src/Metalink2RequestGroup.h
  453. * src/MetalinkEntry.cc
  454. * src/MetalinkEntry.h
  455. * src/MetalinkHelper.cc
  456. * src/MetalinkHelper.h
  457. * src/Metalinker.cc
  458. * src/Metalinker.h
  459. * src/main.cc
  460. * test/MetalinkEntryTest.cc
  461. * test/MetalinkHelperTest.cc
  462. * test/MetalinkProcessorTest.cc
  463. * test/MetalinkerTest.cc
  464. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  465. Fixed the bug that grouped FileEntry objects are not used but
  466. instead all FileEntry objects are used for each metaurl group.
  467. * src/Metalink2RequestGroup.cc
  468. * test/Metalink2RequestGroupTest.cc
  469. * test/metalink4-groupbymetaurl.xml
  470. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  471. Use vector instead of deque for ChunkChecksum.
  472. * src/ChunkChecksum.h
  473. * src/MetalinkParserController.cc
  474. * src/MetalinkParserController.h
  475. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  476. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  477. algorithm in Metalink properly
  478. * src/MetalinkParserController.cc
  479. * src/MetalinkParserController.h
  480. * src/messageDigest.cc
  481. * src/messageDigest.h
  482. * test/MetalinkProcessorTest.cc
  483. * test/metalink4.xml
  484. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  485. Replaced null or control characters in file path with '_'. For
  486. MinGW32 build, additional characters which is not allowed in
  487. Windows kernel are also replaced. util::detectDirTraversal() now
  488. returns true if given string contains null or control characters.
  489. * src/DownloadContext.cc
  490. * src/DownloadContext.h
  491. * src/Metalink2RequestGroup.cc
  492. * src/MetalinkParserController.cc
  493. * src/bittorrent_helper.cc
  494. * src/util.cc
  495. * src/util.h
  496. * test/UtilTest.cc
  497. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Discard metalink:file if its name attribute is empty string.
  499. Removed FileEntry instantiation in
  500. MetalinkParserController::setFileLengthOfEntry()
  501. * src/MetalinkParserController.cc
  502. * src/MetalinkParserStateV3Impl.cc
  503. * src/MetalinkParserStateV4Impl.cc
  504. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Discard torrent file if path data in it contains directory
  506. traversal directives. Discard metalink:file element in Metalink3
  507. format if its name attribute contains directory traversal
  508. directives. Ignore name attribute of metalink:signature element
  509. in Metalink3 format if it contains directory traversal directives.
  510. * src/MetalinkParserStateV3Impl.cc
  511. * src/bittorrent_helper.cc
  512. * src/message.h
  513. * test/BittorrentHelperTest.cc
  514. * test/Makefile.am
  515. * test/MetalinkProcessorTest.cc
  516. * test/metalink3-dirtraversal.xml
  517. * test/test.xml
  518. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  519. Removed useless comment
  520. * src/MetalinkParserStateV4Impl.cc
  521. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Supported name attribute of metalink::metaurl element and
  523. multi-file torrent with Metalink4. Files with same metaurl are
  524. grouped and downloaded in one RequestGroup.
  525. * src/BtDependency.cc
  526. * src/FileEntry.h
  527. * src/Metalink2RequestGroup.cc
  528. * src/Metalink2RequestGroup.h
  529. * src/MetalinkEntry.cc
  530. * src/MetalinkEntry.h
  531. * src/MetalinkHelper.cc
  532. * src/MetalinkHelper.h
  533. * src/MetalinkMetaurl.cc
  534. * src/MetalinkMetaurl.h
  535. * src/MetalinkParserController.cc
  536. * src/RequestGroup.cc
  537. * src/RequestGroup.h
  538. * src/bittorrent_helper.cc
  539. * test/BittorrentHelperTest.cc
  540. * test/BtDependencyTest.cc
  541. * test/MetalinkHelperTest.cc
  542. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  543. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  544. * src/MetalinkMetaurl.h
  545. * src/MetalinkParserController.cc
  546. * src/MetalinkParserController.h
  547. * src/MetalinkParserStateMachine.cc
  548. * src/MetalinkParserStateMachine.h
  549. * src/MetalinkParserStateV4Impl.cc
  550. * test/MetalinkProcessorTest.cc
  551. * test/metalink4-dirtraversal.xml
  552. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  554. element.
  555. * src/Makefile.am
  556. * src/Metalink2RequestGroup.cc
  557. * src/MetalinkEntry.cc
  558. * src/MetalinkEntry.h
  559. * src/MetalinkMetaurl.cc
  560. * src/MetalinkMetaurl.h
  561. * src/MetalinkParserController.cc
  562. * src/MetalinkParserController.h
  563. * src/MetalinkParserStateMachine.cc
  564. * src/MetalinkParserStateMachine.h
  565. * src/MetalinkParserStateV4Impl.cc
  566. * src/MetalinkParserStateV4Impl.h
  567. * test/MetalinkProcessorTest.cc
  568. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. Added Metalink4 support. Currently, name attribute of
  570. metalink::metaurl is ignored and multi-file torrent cannot be used
  571. with Metalink4.
  572. * doc/aria2c.1.txt
  573. * src/DownloadHandlerConstants.cc
  574. * src/ExpatMetalinkProcessor.cc
  575. * src/Makefile.am
  576. * src/Metalink2RequestGroup.cc
  577. * src/MetalinkEntry.cc
  578. * src/MetalinkEntry.h
  579. * src/MetalinkParserController.cc
  580. * src/MetalinkParserController.h
  581. * src/MetalinkParserState.h
  582. * src/MetalinkParserStateImpl.cc
  583. * src/MetalinkParserStateImpl.h
  584. * src/MetalinkParserStateMachine.cc
  585. * src/MetalinkParserStateMachine.h
  586. * src/MetalinkParserStateV3Impl.cc
  587. * src/MetalinkParserStateV3Impl.h
  588. * src/MetalinkParserStateV4Impl.cc
  589. * src/MetalinkParserStateV4Impl.h
  590. * src/MetalinkResource.cc
  591. * src/MetalinkResource.h
  592. * src/Metalinker.cc
  593. * src/RequestGroup.cc
  594. * src/RequestGroup.h
  595. * src/XML2SAXMetalinkProcessor.cc
  596. * src/messageDigest.cc
  597. * src/util.cc
  598. * src/util.h
  599. * test/Makefile.am
  600. * test/MetalinkEntryTest.cc
  601. * test/MetalinkParserControllerTest.cc
  602. * test/MetalinkProcessorTest.cc
  603. * test/MetalinkerTest.cc
  604. * test/UtilTest.cc
  605. * test/metalink4-attrs.xml
  606. * test/metalink4-dirtraversal.xml
  607. * test/metalink4.xml
  608. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  609. Added aiFlags argument to getInterfaceAddress(). Use
  610. AI_NUMERICHOST to find interface specified using
  611. --bt-lpd-interface option to avoid time-consuming address lookup.
  612. * src/BtSetup.cc
  613. * src/SocketCore.cc
  614. * src/SocketCore.h
  615. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  617. is bad in LpdMessageReceiver.
  618. * src/LpdMessage.h
  619. * src/LpdMessageReceiver.cc
  620. * src/LpdMessageReceiver.h
  621. * src/LpdReceiveMessageCommand.cc
  622. * test/LpdMessageReceiverTest.cc
  623. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Added --bt-lpd-interface option to specify the interface to use
  625. for Local Peer Discovery. LpdMessageDispatcher object now has its
  626. own socket. LpdMessageReceiver's socket is binded to multicast
  627. address to only receive multicast packets.
  628. * src/BtSetup.cc
  629. * src/LpdMessageDispatcher.cc
  630. * src/LpdMessageDispatcher.h
  631. * src/LpdMessageReceiver.cc
  632. * src/LpdMessageReceiver.h
  633. * src/LpdReceiveMessageCommand.cc
  634. * src/LpdReceiveMessageCommand.h
  635. * src/OptionHandlerFactory.cc
  636. * src/SocketCore.cc
  637. * src/SocketCore.h
  638. * src/prefs.cc
  639. * src/prefs.h
  640. * src/usage_text.h
  641. * test/LpdMessageDispatcherTest.cc
  642. * test/LpdMessageReceiverTest.cc
  643. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Put the portion of code to get interface addresses in
  645. SocketCore::bindAddress() into newly added getInterfaceAddress().
  646. * src/SocketCore.cc
  647. * src/SocketCore.h
  648. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  649. Rewritten util::parseInt() and parseUInt()
  650. * src/util.cc
  651. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. Fixed compile error with mingw32 cross compiler. Defined
  653. a2_sockopt_t as void* for the target systems other than mingw32.
  654. * src/SocketCore.cc
  655. * src/a2netcompat.h
  656. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Removed 'always true' condition
  658. * src/util.cc
  659. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Documented --bt-enable-lpd option in man page.
  661. * doc/aria2c.1.txt
  662. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Added Local Peer Discovery. It is disabled by default. Use
  664. --bt-enable-lpd to enable the function.
  665. * src/BtConstants.h
  666. * src/BtSetup.cc
  667. * src/LpdDispatchMessageCommand.cc
  668. * src/LpdDispatchMessageCommand.h
  669. * src/LpdMessage.h
  670. * src/LpdMessageDispatcher.cc
  671. * src/LpdMessageDispatcher.h
  672. * src/LpdMessageReceiver.cc
  673. * src/LpdMessageReceiver.h
  674. * src/LpdReceiveMessageCommand.cc
  675. * src/LpdReceiveMessageCommand.h
  676. * src/Makefile.am
  677. * src/OptionHandlerFactory.cc
  678. * src/Peer.cc
  679. * src/Peer.h
  680. * src/PeerInteractionCommand.cc
  681. * src/SocketCore.cc
  682. * src/SocketCore.h
  683. * src/prefs.cc
  684. * src/prefs.h
  685. * src/usage_text.h
  686. * src/util.cc
  687. * src/util.h
  688. * test/LpdMessageDispatcherTest.cc
  689. * test/LpdMessageReceiverTest.cc
  690. * test/Makefile.am
  691. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  692. User-defined custom request headers specified by --header option
  693. now override builtin headers if they have same name.
  694. * src/HttpRequest.cc
  695. * src/HttpRequest.h
  696. * test/HttpRequestTest.cc
  697. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Rewirtten util::isNumber()
  699. * src/util.cc
  700. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  702. because without it localized error messages are not printed
  703. correctly.
  704. * src/Platform.cc
  705. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. Added unit tests for util::getContentDispositionFilename() from
  707. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  708. tests are passed.
  709. * src/util.cc
  710. * test/UtilTest.cc
  711. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  713. util.cc
  714. * src/Platform.cc
  715. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Support RFC2231 "Parameter Value Character Set and Language
  717. Information" in Content-Disposition header.
  718. * src/HttpResponse.cc
  719. * src/util.cc
  720. * src/util.h
  721. * test/UtilTest.cc
  722. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Print CXXFLAGS
  724. * configure.ac
  725. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Small optimization for A2_WOULDBLOCK(e)
  727. * src/SocketCore.cc
  728. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Removed test file
  730. * test/CookieStorageTest.cc
  731. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Check both EAGAIN and EWOULDBLOCK
  733. * src/SocketCore.cc
  734. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Removed ret == 0 checking for SSL_read(), SSL_write() and
  736. SSL_peek() because the checks are done in the caller. In
  737. SocketBuffer::send(), throw exception if nothing could be written
  738. and socket error was not EWOULDBLOCK
  739. * src/SocketBuffer.cc
  740. * src/SocketCore.cc
  741. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Fixed error code handling so that it can handle Winsock2 error
  743. code.
  744. * src/SocketCore.cc
  745. * src/SocketCore.h
  746. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  747. Bump up version number to 1.9.0a
  748. * configure.ac
  749. * doc/aria2c.1.txt
  750. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Fixed the bug that aria2 doesn't handle return value if error
  752. occurred before download begins.
  753. * src/MultiUrlRequestInfo.cc
  754. * src/main.cc
  755. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. Removed SegmentManFactory class.
  757. * src/AbstractSegmentManFactory.h
  758. * src/DefaultSegmentManFactory.cc
  759. * src/DefaultSegmentManFactory.h
  760. * src/Makefile.am
  761. * src/RequestGroup.cc
  762. * src/RequestGroup.h
  763. * src/SegmentManFactory.h
  764. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Destroyed digest context after getting calculated hash.
  766. * src/Piece.cc
  767. * src/Piece.h
  768. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Removed BitfieldManFactory class.
  770. * src/BitfieldManFactory.cc
  771. * src/BitfieldManFactory.h
  772. * src/DefaultPieceStorage.cc
  773. * src/Makefile.am
  774. * src/PeerSessionResource.cc
  775. * src/Piece.cc
  776. * src/main.cc
  777. * test/DefaultPieceStorageTest.cc
  778. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Removed unused methods from BitfieldMan class. Moved
  780. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  781. class.
  782. * src/BitfieldMan.cc
  783. * src/BitfieldMan.h
  784. * src/BitfieldManFactory.cc
  785. * src/BitfieldManFactory.h
  786. * src/bitfield.h
  787. * src/main.cc
  788. * test/BitfieldManTest.cc
  789. * test/DefaultPieceStorageTest.cc
  790. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Moved getFirstNMissingIndex to bitfield.h and made it return the
  792. number of appended indexes.
  793. * src/BitfieldMan.cc
  794. * src/BitfieldMan.h
  795. * src/Piece.cc
  796. * src/Piece.h
  797. * src/bitfield.h
  798. * test/BitfieldManTest.cc
  799. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. Added more tests.
  801. * test/BitfieldManTest.cc
  802. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  804. unused block indexes at once instead of calling
  805. getFirstMissingUnusedIndex() multiple times. Made use of it in
  806. Piece class and DefaultBtRequestFactory class via Piece class.
  807. * src/BitfieldMan.cc
  808. * src/BitfieldMan.h
  809. * src/DefaultBtRequestFactory.cc
  810. * src/Piece.cc
  811. * src/Piece.h
  812. * test/BitfieldManTest.cc
  813. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Use std::make_pair(...)
  815. * src/DHTMessageTracker.cc
  816. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Use std::make_pair(...)
  818. * src/bittorrent_helper.cc
  819. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. urlencode(removeFragment(...)) in parseUrl(...)
  821. * src/Request.cc
  822. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  824. * src/AbstractCommand.cc
  825. * src/AdaptiveURISelector.cc
  826. * src/BtPieceMessage.cc
  827. * src/BtPortMessage.cc
  828. * src/CreateRequestCommand.cc
  829. * src/DHTAbstractNodeLookupTask.cc
  830. * src/DHTBucket.cc
  831. * src/DHTGetPeersCommand.cc
  832. * src/DHTMessageDispatcherImpl.cc
  833. * src/DHTMessageFactoryImpl.cc
  834. * src/DHTMessageTracker.cc
  835. * src/DHTPeerAnnounceStorage.cc
  836. * src/DHTRoutingTable.cc
  837. * src/DHTSetup.cc
  838. * src/DefaultBtAnnounce.cc
  839. * src/DefaultBtInteractive.cc
  840. * src/DefaultBtMessageDispatcher.cc
  841. * src/DefaultBtMessageReceiver.cc
  842. * src/DefaultBtProgressInfoFile.cc
  843. * src/DefaultBtRequestFactory.cc
  844. * src/DefaultPeerStorage.cc
  845. * src/DefaultPieceStorage.cc
  846. * src/DownloadCommand.cc
  847. * src/DownloadEngine.cc
  848. * src/EpollEventPoll.cc
  849. * src/FileAllocationCommand.cc
  850. * src/FileEntry.cc
  851. * src/FtpNegotiationCommand.cc
  852. * src/HandshakeExtensionMessage.cc
  853. * src/HttpListenCommand.cc
  854. * src/HttpServer.cc
  855. * src/HttpSkipResponseCommand.cc
  856. * src/IteratableChunkChecksumValidator.cc
  857. * src/Logger.h
  858. * src/MSEHandshake.cc
  859. * src/MetalinkPostDownloadHandler.cc
  860. * src/MultiDiskAdaptor.cc
  861. * src/PeerAbstractCommand.cc
  862. * src/PeerConnection.cc
  863. * src/PeerListenCommand.cc
  864. * src/PeerReceiveHandshakeCommand.cc
  865. * src/RequestGroup.cc
  866. * src/RequestGroupMan.cc
  867. * src/SegmentMan.cc
  868. * src/SelectEventPoll.cc
  869. * src/ServerStat.cc
  870. * src/SimpleBtMessage.cc
  871. * src/SocketCore.cc
  872. * src/TrackerWatcherCommand.cc
  873. * src/UTMetadataDataExtensionMessage.cc
  874. * src/UTMetadataRequestFactory.cc
  875. * src/UTMetadataRequestTracker.cc
  876. * src/XmlRpcMethod.cc
  877. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  878. Changed log level from debug to info
  879. * src/BtDependency.cc
  880. * src/BtPostDownloadHandler.cc
  881. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  882. Removed unused PeerSessionResource::_latency.
  883. * src/BtConstants.h
  884. * src/BtPieceMessage.cc
  885. * src/Peer.cc
  886. * src/Peer.h
  887. * src/PeerSessionResource.cc
  888. * src/PeerSessionResource.h
  889. * test/PeerSessionResourceTest.cc
  890. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Fixed the bug that --file-allocation=falloc doesn't work with
  892. single file download.
  893. * src/AbstractSingleDiskAdaptor.cc
  894. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Release 1.8.2
  896. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  897. Added Portuguese translation. Updated Ukrainian and Spanish
  898. translation. Thanks to all translators.
  899. * po/LINGUAS
  900. * po/es.po
  901. * po/pt.po
  902. * po/uk.po
  903. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Remove fragment from redirected URI.
  905. * src/Request.cc
  906. * test/RequestTest.cc
  907. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  908. Updated po templates.
  909. * po/aria2.pot
  910. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  911. Drop legacy ifdef for ares support and code cleanup.
  912. * src/AsyncNameResolver.cc
  913. * src/AsyncNameResolver.h
  914. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  915. Call ares_library_init and ares_library_cleanup if they are
  916. available. Some code cleanups.
  917. * src/Platform.cc
  918. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. Call ares_process_fd() each time after epoll to handle timeout.
  920. * src/EpollEventPoll.cc
  921. * src/EpollEventPoll.h
  922. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Suppressed type-cast compiler warning
  924. * src/CookieStorage.cc
  925. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Fixed compile error on Mac OS X.
  927. * src/CookieStorage.h
  928. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Removed cookietest.txt from Makefile.am
  930. * test/Makefile.am
  931. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. Updated version number in man page.
  933. * doc/aria2c.1.txt
  934. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  935. Rewritten help message for --allow-overwrite option.
  936. * doc/aria2c.1.txt
  937. * src/usage_text.h
  938. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Added bittorrent key to the response of tellStatus XML-RPC method.
  940. The associated value of the key is a struct and contains data
  941. retrieved from .torrent file, such as name, announce-list,
  942. comment, etc.
  943. * doc/aria2c.1.txt
  944. * src/XmlRpcMethodImpl.cc
  945. * src/XmlRpcMethodImpl.h
  946. * test/XmlRpcMethodTest.cc
  947. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Removed parse(std::istream&) and parse(const std::string&) from
  949. CookieParser.
  950. * src/CookieParser.cc
  951. * src/CookieParser.h
  952. * test/CookieParserTest.cc
  953. * test/cookietest.txt: Removed
  954. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  955. Fixed the bug that cookie for domain a.b.c is not sent to the host
  956. a.b.c if no other cookies are stored. Fixed the bug that
  957. Cookie::markOriginServerOnly() is not called when cookies are
  958. loaded from file/sqlite3 database.
  959. * src/Cookie.h
  960. * src/CookieStorage.cc
  961. * src/NsCookieParser.cc
  962. * src/Sqlite3MozCookieParser.cc
  963. * test/CookieStorageTest.cc
  964. * test/NsCookieParserTest.cc
  965. * test/Sqlite3MozCookieParserTest.cc
  966. * test/cookies.sqlite
  967. * test/nscookietest.txt
  968. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  969. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  970. both _pieceStorage and _segmentMan are initialized or they are
  971. not.
  972. * src/RequestGroup.cc
  973. * src/RequestGroup.h
  974. * test/BtDependencyTest.cc
  975. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Bump up version number to 1.8.2
  977. * configure.ac
  978. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  979. Replaced "." with A2STR::DOT_C
  980. * src/AbstractCommand.cc
  981. * src/Cookie.cc
  982. * src/DownloadContext.cc
  983. * src/FtpConnection.cc
  984. * src/RequestGroup.cc
  985. * src/util.cc
  986. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Replaced isNumberAndDotsNotation() with isNumericHost().
  988. isNumericHost() can handle IPv6 address.
  989. * src/Cookie.cc
  990. * src/CookieStorage.cc
  991. * src/util.cc
  992. * src/util.h
  993. * test/CookieTest.cc
  994. * test/UtilTest.cc
  995. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Included A2STR.h
  997. * src/CookieStorage.cc
  998. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Rewritten Cookie storage.
  1000. * src/Cookie.cc
  1001. * src/Cookie.h
  1002. * src/CookieParser.cc
  1003. * src/CookieStorage.cc
  1004. * src/CookieStorage.h
  1005. * src/a2functional.h
  1006. * test/CookieParserTest.cc
  1007. * test/CookieStorageTest.cc
  1008. * test/CookieTest.cc
  1009. * test/HttpResponseTest.cc
  1010. * test/TestUtil.h
  1011. * test/a2functionalTest.cc
  1012. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Handle redirected URI which is not properly percent encoded.
  1014. * src/Request.cc
  1015. * test/RequestTest.cc
  1016. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1017. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1018. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1019. in a row without single '200 OK' response.
  1020. * src/RequestGroup.cc.
  1021. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1023. readout by 80 characters in mingw32 build. Catch exception in
  1024. DHTMessageReceiver::receiveMessage().
  1025. * src/AbstractDiskWriter.cc
  1026. * src/ConsoleStatCalc.cc
  1027. * src/DHTMessageReceiver.cc
  1028. * src/File.cc
  1029. * src/RequestGroupMan.cc
  1030. * src/a2io.h
  1031. * test/FileTest.cc
  1032. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Fixed compile error with intel compiler
  1034. * src/XmlRpcMethodImpl.cc
  1035. * src/XmlRpcMethodImpl.h
  1036. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Release 1.8.1
  1038. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1039. Updated Swedish, Russian and Italian translations. Thanks to all
  1040. translators.
  1041. * po/it.po
  1042. * po/ru.po
  1043. * po/sv.po
  1044. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1045. Fixed broken OptionParser::findByName().
  1046. * src/OptionParser.cc
  1047. * test/OptionParserTest.cc
  1048. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Fixed test error without BitTorrent support.
  1050. * test/XmlRpcMethodTest.cc
  1051. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1052. Fixed compile error without GNUTLS/OpenSSL.
  1053. * src/util.cc
  1054. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1055. Changed compression level to Z_DEFAULT_COMPRESSION.
  1056. * src/GZipEncoder.cc
  1057. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Added missing command line options: --http-no-cache,
  1059. --bt-save-metadata and --bt-metadata-only.
  1060. * doc/xmlrpc/aria2rpc
  1061. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1063. client accepts gzip content encoding.
  1064. * src/A2STR.cc
  1065. * src/A2STR.h
  1066. * src/GZipEncoder.cc
  1067. * src/GZipEncoder.h
  1068. * src/HttpHeader.cc
  1069. * src/HttpHeader.h
  1070. * src/HttpServer.cc
  1071. * src/HttpServer.h
  1072. * src/HttpServerBodyCommand.cc
  1073. * src/HttpServerCommand.cc
  1074. * src/Makefile.am
  1075. * src/XmlRpcResponse.cc
  1076. * src/XmlRpcResponse.h
  1077. * test/GZipEncoderTest.cc
  1078. * test/Makefile.am
  1079. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Added XML-RPC client sample code in Python.
  1081. * doc/aria2c.1.txt
  1082. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1083. Updated po templates.
  1084. * po/aria2.pot
  1085. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Bump up version number to 1.8.1
  1087. * configure.ac
  1088. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Added version number to man page. Updated copyright year in man
  1090. page.
  1091. * doc/aria2c.1.txt
  1092. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Rewritten toTagString
  1094. * src/NameMatchOptionHandler.cc
  1095. * test/OptionHandlerTest.cc
  1096. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Added dir and files key to the response struct of aria2.tellStatus
  1098. XML-RPC method. The value associated with files key is the list
  1099. of files. Its element is the same struct used in aria2.getFiles
  1100. XML-RPC method. Added uris key to the response struct of
  1101. aria2.getFiles XML-RPC method. The value associated with uris key
  1102. is the list of URIs. Its element is the same struct used in
  1103. aria2.getUris XML-RPC method.
  1104. * doc/aria2c.1.txt
  1105. * src/XmlRpcMethodImpl.cc
  1106. * test/XmlRpcMethodTest.cc
  1107. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1109. struct containing Session ID, which is generated each time when
  1110. aria2 is invoked.
  1111. * doc/aria2c.1.txt
  1112. * doc/xmlrpc/aria2rpc
  1113. * src/DownloadEngine.cc
  1114. * src/DownloadEngine.h
  1115. * src/XmlRpcMethodFactory.cc
  1116. * src/XmlRpcMethodImpl.cc
  1117. * src/XmlRpcMethodImpl.h
  1118. * test/XmlRpcMethodTest.cc
  1119. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Moved generateRandomKey() from bittorrent_helper to util.
  1121. * src/DHTBucket.cc
  1122. * src/DHTNode.cc
  1123. * src/bittorrent_helper.cc
  1124. * src/bittorrent_helper.h
  1125. * src/util.cc
  1126. * src/util.h
  1127. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Updated doc about GID.
  1129. * doc/aria2c.1.txt
  1130. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1132. accepts a negative integer. 'offset' == -1 points last download
  1133. in the waiting queue and 'offset' == -2 points the download before
  1134. the last download, and so on. The downloads in the response are in
  1135. reversed order.
  1136. * doc/aria2c.1.txt
  1137. * src/XmlRpcMethodImpl.cc
  1138. * src/XmlRpcMethodImpl.h
  1139. * test/XmlRpcMethodTest.cc
  1140. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Added --human-readable option. This option, when true is given,
  1142. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1143. 3.4Mi) in the console readout. The default value is true and it
  1144. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1145. appears when false is given. In this case, sizes and speed are
  1146. printed without in bytes. No Ki, Mi units conversion is used.
  1147. This may be useful for a program to parse the output of aria2.
  1148. * doc/aria2c.1.txt
  1149. * src/ConsoleStatCalc.cc
  1150. * src/ConsoleStatCalc.h
  1151. * src/OptionHandlerFactory.cc
  1152. * src/main.cc
  1153. * src/prefs.cc
  1154. * src/prefs.h
  1155. * src/usage_text.h
  1156. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1157. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1158. option accepts empty string "". When "" is given, it erases
  1159. previously defined proxy.
  1160. * doc/aria2c.1.txt
  1161. * src/OptionHandlerImpl.h
  1162. * src/usage_text.h
  1163. * test/OptionHandlerTest.cc
  1164. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Code cleanup for proxy URI handling.
  1166. * src/AbstractCommand.cc
  1167. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1168. Added --bt-metadata-only option. If true is given to this option,
  1169. aria2 downloads metadata only. The file(s) described in metadata
  1170. will not be downloaded. This option has effect only when
  1171. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1172. * doc/aria2c.1.txt
  1173. * src/OptionHandlerFactory.cc
  1174. * src/UTMetadataPostDownloadHandler.cc
  1175. * src/download_helper.cc
  1176. * src/prefs.cc
  1177. * src/prefs.h
  1178. * src/usage_text.h
  1179. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1181. deleted when exception is thrown. Make sure that when passing
  1182. std::deque<Command*> to function to store Commands, handle
  1183. exception and delete these Commands.
  1184. * src/AbstractCommand.cc
  1185. * src/CheckIntegrityCommand.cc
  1186. * src/FileAllocationCommand.cc
  1187. * src/RequestGroup.cc
  1188. * src/TrackerWatcherCommand.cc
  1189. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1191. * src/A2STR.cc
  1192. * src/A2STR.h
  1193. * src/FtpNegotiationCommand.cc
  1194. * src/HttpResponseCommand.cc
  1195. * src/util.cc
  1196. * src/util.h
  1197. * test/UtilTest.cc
  1198. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. Treat --dir="" as --dir="."
  1200. * src/FtpNegotiationCommand.cc
  1201. * src/HttpResponseCommand.cc
  1202. * src/Metalink2RequestGroup.cc
  1203. * src/UTMetadataPostDownloadHandler.cc
  1204. * src/bittorrent_helper.cc
  1205. * src/download_helper.cc
  1206. * src/util.cc
  1207. * src/util.h
  1208. * test/UtilTest.cc
  1209. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1210. Code clean up.
  1211. * src/main.cc
  1212. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Reset GID to 1 when they reach maximum value. Rewritten
  1214. CUIDCounter::newID()
  1215. * src/CUIDCounter.h
  1216. * src/RequestGroup.cc
  1217. * src/RequestGroup.h
  1218. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Documented --http-no-cache option in man page.
  1220. * doc/aria2c.1.txt
  1221. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Added --http-no-cache option. When true is given, aria2 sends
  1223. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1224. cached content. If false is given , these headers are not sent
  1225. and you can add Cache-Control header with a directive you like
  1226. using --header option.
  1227. * src/HttpRequest.cc
  1228. * src/HttpRequest.h
  1229. * src/HttpRequestCommand.cc
  1230. * src/OptionHandlerFactory.cc
  1231. * src/download_helper.cc
  1232. * src/prefs.cc
  1233. * src/prefs.h
  1234. * src/usage_text.h
  1235. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1236. Removed Logger from OptionParser. When OptionParser is used to
  1237. parse options at bootstrap, LogFactory is not configured yet
  1238. properly. When LogFactory is used in OptionParser, it initializes
  1239. itself to return a logger which has no ability to write log to the
  1240. disk.
  1241. * src/OptionParser.cc
  1242. * src/OptionParser.h
  1243. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Added following sentance to the help message of --out option:
  1245. --out option is ignored when -Z is used.
  1246. * doc/aria2c.1.txt
  1247. * src/usage_text.h
  1248. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Added --bt-save-metadata option to -i list options.
  1250. * doc/aria2c.1.txt
  1251. * src/download_helper.cc
  1252. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1254. additional libraries.
  1255. * src/MultiUrlRequestInfo.cc
  1256. * src/NameResolver.cc
  1257. * src/SelectEventPoll.cc
  1258. * src/SelectEventPoll.h
  1259. * src/SocketCore.cc
  1260. * src/SocketCore.h
  1261. * src/a2netcompat.h
  1262. * src/daemon.cc
  1263. * src/main.cc
  1264. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Fixed typo.
  1266. * src/DHTMessageReceiver.cc
  1267. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Fixed the bug that causes segmentation fault if unknown option is
  1269. put in aria2.conf file. BUG#2928303
  1270. * src/OptionParser.cc
  1271. * src/OptionParser.h
  1272. * src/option_processing.cc
  1273. * test/OptionParserTest.cc
  1274. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Ignore port message with port=0.
  1276. * src/BtPortMessage.cc
  1277. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Run autoupdate
  1279. * configure.ac
  1280. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1281. Updated autoconf/automake auxiliary files.
  1282. * INSTALL
  1283. * config.guess
  1284. * config.sub
  1285. * depcomp
  1286. * install-sh
  1287. * m4/intldir.m4
  1288. * missing
  1289. * mkinstalldirs
  1290. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1291. Removed unused function.
  1292. * src/SharedHandle.h
  1293. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Find pooled socket using all cached addresses.
  1295. * src/DNSCache.h
  1296. * src/DownloadEngine.cc
  1297. * src/DownloadEngine.h
  1298. * src/InitiateConnectionCommand.cc
  1299. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Updated copyright year.
  1301. * src/version_usage.cc
  1302. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Pool connection if _contentEncodingDecoder is used and server
  1304. supports persistent connection.
  1305. * src/HttpDownloadCommand.cc
  1306. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Updated doc.
  1308. * src/DownloadCommand.cc
  1309. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1310. Untabify. Fixed one line in copyright which is longer than 80
  1311. columns.
  1312. * src
  1313. * test
  1314. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1315. Release 1.8.0
  1316. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Updated po templates.
  1318. * po/aria2.pot
  1319. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1320. Documented --bt-save-metadata option in man page.
  1321. * doc/aria2c.1.txt
  1322. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1323. Fixed usage of --bt-save-metadata option.
  1324. * src/usage_text.h
  1325. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1326. Updated po templates.
  1327. * po/aria2.pot
  1328. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1330. causes name resolution error when none of network interface has
  1331. IPv4 address.
  1332. * src/main.cc
  1333. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Bump up version number to 1.8.0.
  1335. * configure.ac
  1336. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Use info hash as a filename when saving BitTorrent metadata.
  1338. * src/UTMetadataPostDownloadHandler.cc
  1339. * test/UTMetadataPostDownloadHandlerTest.cc
  1340. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Documented system.multicall XML-RPC method in man page.
  1342. * doc/aria2c.1.txt
  1343. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Added signal handler for SIGHUP to save .aria2 file when terminal
  1345. is closed. The handler is the same one for SIGINT and SIGTERM.
  1346. * src/MultiUrlRequestInfo.cc
  1347. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Defined method name in XmlRpcMethod subclasses.
  1349. * src/XmlRpcMethodFactory.cc
  1350. * src/XmlRpcMethodImpl.cc
  1351. * src/XmlRpcMethodImpl.h
  1352. * test/XmlRpcMethodTest.cc
  1353. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Added system.multicall XML-RPC method.
  1355. * src/XmlRpcMethod.cc
  1356. * src/XmlRpcMethod.h
  1357. * src/XmlRpcMethodFactory.cc
  1358. * src/XmlRpcMethodImpl.cc
  1359. * src/XmlRpcMethodImpl.h
  1360. * test/XmlRpcMethodTest.cc
  1361. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1362. Check structure depth when decoding.
  1363. * src/bencode.cc
  1364. * src/bencode.h
  1365. * test/BencodeTest.cc
  1366. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1367. Documented tellStopped XML-RPC method in man page.
  1368. * doc/aria2c.1.txt
  1369. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1370. Added tellStopped XML-RPC method to aria2rpc.
  1371. * doc/xmlrpc/aria2rpc
  1372. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Added tellStopped XML-RPC method. This method returns stopped
  1374. download in the specified range. It takes same parameters with
  1375. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1376. * src/XmlRpcMethodFactory.cc
  1377. * src/XmlRpcMethodImpl.cc
  1378. * src/XmlRpcMethodImpl.h
  1379. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1381. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1382. when conducting unit tests because they fail if networking
  1383. interface is not configured with IPv4 address.
  1384. * src/NameResolver.cc
  1385. * src/SocketCore.cc
  1386. * src/SocketCore.h
  1387. * src/a2netcompat.h
  1388. * test/AllTest.cc
  1389. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Fixed unit test error
  1391. * test/UTMetadataPostDownloadHandlerTest.cc
  1392. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Defined static string constants for efficiency.
  1394. * src/XmlRpcMethodImpl.cc
  1395. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Added --bt-save-metadata option. When true is given, it saves
  1397. metadata as .torrent file. This option has effect only when
  1398. BitTorrent Magnet URI is used. The filename is name in metadata
  1399. with suffix .torrent. The directory to be saved is the same
  1400. directory where download file is saved. If the same file already
  1401. exists, metdata is not saved.
  1402. * src/OptionHandlerFactory.cc
  1403. * src/UTMetadataPostDownloadHandler.cc
  1404. * src/UTMetadataPostDownloadHandler.h
  1405. * src/message.h
  1406. * src/prefs.cc
  1407. * src/prefs.h
  1408. * src/usage_text.h
  1409. * test/UTMetadataDataExtensionMessageTest.cc
  1410. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Added util::saveAs() function. Use it in Signature::save().
  1412. * src/Signature.cc
  1413. * src/util.cc
  1414. * src/util.h
  1415. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Upcase info hash in Magnet URI.
  1417. * doc/aria2c.1.txt
  1418. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1419. Refactored RequestGroupMan::changeReservedGroupPosition()
  1420. * src/RequestGroupMan.cc
  1421. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1422. Updated the description for aria2.addTorrent XML-RPC method.
  1423. * doc/aria2c.1.txt
  1424. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1425. Added changePosition to aria2rpc.
  1426. * doc/xmlrpc/aria2rpc
  1427. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Documented changePosition XML-RPC method in man page.
  1429. * doc/aria2c.1.txt
  1430. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1432. pos and how. This method changes the position of download denoted
  1433. by gid. If how is POS_SET, it moves the download to a position
  1434. relative to the beginning of the queue. If how is POS_CUR, it
  1435. moves the download to a position relative to the current
  1436. position. If how is POS_END, it moves the download to a position
  1437. relative to the end of the queue. If the destination position is
  1438. less than 0 or beyond the end of the queue, it moves the download
  1439. to the beginning or the end of the queue respectively. Returns
  1440. the destination position.
  1441. * src/RequestGroupMan.cc
  1442. * src/RequestGroupMan.h
  1443. * src/XmlRpcMethodFactory.cc
  1444. * src/XmlRpcMethodImpl.cc
  1445. * src/XmlRpcMethodImpl.h
  1446. * test/RequestGroupManTest.cc
  1447. * test/XmlRpcMethodTest.cc
  1448. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Added getOption and getGlobalOption to aria2rpc.
  1450. * doc/xmlrpc/aria2rpc
  1451. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1452. Documented getOption and getGlobalOption XML-RPC method in man
  1453. page
  1454. * doc/aria2c.1.txt
  1455. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. Added getOption and getGlobalOption XML-RPC method. getOption
  1457. takes GID as a parameter and returns its options as struct.
  1458. getGlobalOption takes no parameter and returns global
  1459. options. Because global option is used as a template for the
  1460. option of newly added downloads, it includes options returned by
  1461. getOption.
  1462. * src/Option.h
  1463. * src/XmlRpcMethodFactory.cc
  1464. * src/XmlRpcMethodImpl.cc
  1465. * src/XmlRpcMethodImpl.h
  1466. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Sort _optionHandlers in OptionParser by name in ascending order.
  1468. Use vector instead of deque for efficiency.
  1469. * src/OptionHandler.h
  1470. * src/OptionHandlerFactory.h
  1471. * src/OptionParser.cc
  1472. * src/OptionParser.h
  1473. * src/version_usage.cc
  1474. * test/OptionParserTest.cc
  1475. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1476. Code cleanup
  1477. * src/XmlRpcMethod.cc
  1478. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Documented about followedBy and belongsTo in man page.
  1480. * doc/aria2c.1.txt
  1481. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Added following 2 keys, followedBy and belongsTo, to the response
  1483. of tellStatus.
  1484. followedBy: List of GIDs which are generated by the consequence of
  1485. this download. For example, when aria2 downloaded Metalink file,
  1486. it generates downloads described in it(see *--follow-metalink*
  1487. option). This value is useful to track these auto generated
  1488. downloads. If there is no such downloads, this key will not be
  1489. included in the response.
  1490. belongsTo: GID of a parent download. Some downloads are a part of
  1491. another download. For example, if a file in Metalink has
  1492. BitTorrent resource, the download of .torrent is a part of that
  1493. file. If this download has no parent, this key will not be
  1494. included in the response.
  1495. * src/BtPostDownloadHandler.cc
  1496. * src/DownloadResult.h
  1497. * src/Metalink2RequestGroup.cc
  1498. * src/MetalinkPostDownloadHandler.cc
  1499. * src/RequestGroup.cc
  1500. * src/RequestGroup.h
  1501. * src/UTMetadataPostDownloadHandler.cc
  1502. * src/XmlRpcMethodImpl.cc
  1503. * src/XmlRpcMethodImpl.h
  1504. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Assigned BObject in BDE() to avoid segmentation fault when calling
  1506. methods of BDE::none().
  1507. * src/BDE.cc
  1508. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1509. Show info hash in Magnet URI in upper case letters in -S output.
  1510. * src/bittorrent_helper.cc
  1511. * test/BittorrentHelperTest.cc
  1512. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1513. Removed old useless comment
  1514. * src/MultiUrlRequestInfo.cc
  1515. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1516. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1517. not properly used in configure script and failed to detect gnutls.
  1518. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1519. and the initialization of pkg-config is done in first occurrence
  1520. of PKG_CHECK_MODULES which is not executed because it is inside of
  1521. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1522. * configure.ac
  1523. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1524. Release 1.7.2
  1525. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1527. true even if all downloads haven't finished, especially when
  1528. PostDownloadHandler is involved. Changed the condition so that it
  1529. only returns true if both _requestGroups and _reservedGroups are
  1530. empty.
  1531. * src/RequestGroupMan.cc
  1532. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Log listening port for BitTorrent/DHT in notice level.
  1534. * src/DHTConnectionImpl.cc
  1535. * src/PeerListenCommand.cc
  1536. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Updated po templates.
  1538. * po/aria2.pot
  1539. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1540. Bump up version number to 1.7.2
  1541. * configure.ac
  1542. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1543. Changed default value of --enable-dht from 'false' to 'true'.
  1544. * doc/aria2c.1.txt
  1545. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Enabled DHT by default because of Magnet URI support. To disable
  1547. DHT, use --enable-dht=false
  1548. * src/OptionHandlerFactory.cc
  1549. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Print Magnet URI in -S output.
  1551. * src/AnnounceList.cc
  1552. * src/bittorrent_helper.cc
  1553. * src/bittorrent_helper.h
  1554. * test/BittorrentHelperTest.cc
  1555. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1556. Added --bt-prioritize-piece option to aria2rpc.
  1557. * doc/xmlrpc/aria2rpc
  1558. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1559. Refer Magnet URI in --help. Made some cosmetic changes.
  1560. * src/version_usage.cc
  1561. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1562. Updated -T and -M option.
  1563. * doc/aria2c.1.txt
  1564. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Fixed typo
  1566. * doc/aria2c.1.txt
  1567. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1568. Fixed the bug that line separator is missing in horizontal bar.
  1569. * doc/xmlrpc/aria2mon
  1570. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Updated usage text for --metalink-file option.
  1572. * src/usage_text.h
  1573. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. If '-' is given as an argument to --metalink-file option, aria2
  1575. reads Metalink file from stdin.
  1576. * src/OptionHandlerFactory.cc
  1577. * src/OptionHandlerImpl.h
  1578. * src/a2io.h
  1579. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Fixed the bug that aria2 listens wrong port if --interface option
  1581. is used.
  1582. * src/SocketCore.cc
  1583. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Fixed the bug that query parameter in magnet URI is not decoded.
  1585. * src/magnet.cc
  1586. * test/MagnetTest.cc
  1587. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Specified defaultSize as an argument for easy testing.
  1589. * src/util.cc
  1590. * src/util.h
  1591. * test/UtilTest.cc
  1592. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. Release 1.7.1
  1594. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Bump up version number to 1.7.1
  1596. * configure.ac
  1597. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Fixed the bug --bt-prioritize-piece=tail is not working.
  1599. * src/util.cc
  1600. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1601. Release 1.7.0
  1602. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Updated po templates.
  1604. * po/aria2.pot
  1605. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Updated help message for --bt-prioritize-piece. Some cosmetic
  1607. changes.
  1608. * doc/aria2c.1.txt
  1609. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1611. * src/usage_text.h
  1612. * src/util.cc
  1613. * test/UtilTest.cc
  1614. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1615. Updated Russian, Ukrainian, German and French translations.
  1616. Thanks to all translators involved.
  1617. * po/de.po
  1618. * po/fr.po
  1619. * po/ru.po
  1620. * po/uk.po
  1621. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Mentioned about pkg-config
  1623. * README
  1624. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Fixed typo. Referred --index-out option in BitTorrent notes.
  1626. * README
  1627. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1629. bind, try all addresses until success
  1630. * src/SocketCore.cc
  1631. * src/SocketCore.h
  1632. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1633. Updated po templates.
  1634. * po/aria2.pot
  1635. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Bump up version number to 1.7.0
  1637. * configure.ac
  1638. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1640. * src/DefaultPieceStorage.cc
  1641. * src/DefaultPieceStorage.h
  1642. * src/PieceStorage.h
  1643. * src/UnknownLengthPieceStorage.cc
  1644. * src/UnknownLengthPieceStorage.h
  1645. * test/MockPieceStorage.h
  1646. * test/ProtocolDetectorTest.cc
  1647. * test/XmlRpcMethodTest.cc
  1648. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1649. Documented in man page that if getifaddrs() is missing,
  1650. --interface option doesn't accept interface name.
  1651. * doc/aria2c.1.txt
  1652. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1653. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1654. * src/DefaultBtAnnounce.cc
  1655. * src/DefaultBtAnnounce.h
  1656. * test/DefaultBtAnnounceTest.cc
  1657. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Fixed the bug that connection is always dropped if handshake
  1659. message in extension protocol don't have metadata_size.
  1660. src/HandshakeExtensionMessage.cc
  1661. * src/HandshakeExtensionMessage.cc
  1662. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1663. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1664. text saying DHT is recommended when Magnet URI is provided.
  1665. * doc/aria2c.1.txt
  1666. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1668. URI is supplied. Notify user that they should consider enabling
  1669. DHT if they use Magnet URI.
  1670. * src/RequestGroup.cc
  1671. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1672. Added --disable-ipv6 option to disable IPv6.
  1673. * doc/aria2c.1.txt
  1674. * src/InitiateConnectionCommand.cc
  1675. * src/NameResolver.cc
  1676. * src/NameResolver.h
  1677. * src/OptionHandlerFactory.cc
  1678. * src/main.cc
  1679. * src/prefs.cc
  1680. * src/prefs.h
  1681. * src/usage_text.h
  1682. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Updated usage text for --bt-prioritize-piece option.
  1684. * doc/aria2c.1.txt
  1685. * src/usage_text.h
  1686. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1688. given and PACKAGE is missing in the system or FEATURE cannot be
  1689. enabled, print error message and stop the script.
  1690. * configure.ac
  1691. * m4/aria2_arg.m4
  1692. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Halt metadata download immediately when metadata download is done.
  1694. Don't wait unresponsive tracker.
  1695. * src/ByteArrayDiskWriter.h
  1696. * src/DefaultBtInteractive.cc
  1697. * src/DefaultExtensionMessageFactory.cc
  1698. * src/DefaultExtensionMessageFactory.h
  1699. * src/PeerInteractionCommand.cc
  1700. * src/UTMetadataDataExtensionMessage.cc
  1701. * src/UTMetadataDataExtensionMessage.h
  1702. * src/UTMetadataRequestExtensionMessage.cc
  1703. * test/UTMetadataDataExtensionMessageTest.cc
  1704. * test/UTMetadataRequestExtensionMessageTest.cc
  1705. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1706. Documented --interface option in man page.
  1707. * doc/aria2c.1.txt
  1708. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1709. Try resolved address in the order received from the resolver.
  1710. * src/DNSCache.h
  1711. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1712. Added debug logs.
  1713. * src/SocketCore.cc
  1714. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1715. Fixed type of tail to uint64_t
  1716. * src/util.cc
  1717. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Added --interface option. This feature binds sockets to given
  1719. interface. You can specify interface name, IP address and
  1720. hostname.
  1721. * configure.ac
  1722. * src/OptionHandlerFactory.cc
  1723. * src/SocketCore.cc
  1724. * src/SocketCore.h
  1725. * src/main.cc
  1726. * src/message.h
  1727. * src/prefs.cc
  1728. * src/prefs.h
  1729. * src/usage_text.h
  1730. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Updated man page for bt-prioritize-piece option in -i list.
  1732. * doc/aria2c.1.txt
  1733. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Added bt-prioritize-piece option to -i list.
  1735. * src/download_helper.cc
  1736. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1737. Removed --http-auth-scheme option from man page.
  1738. * doc/aria2c.1.txt
  1739. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1740. Removed --http-auth-scheme option since it doesn't do nothing.
  1741. * src/OptionHandlerFactory.cc
  1742. * src/prefs.cc
  1743. * src/prefs.h
  1744. * src/usage_text.h
  1745. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1746. Adjusted the number of peer info which get_peers reply message can
  1747. carry.
  1748. * src/DHTGetPeersReplyMessage.cc
  1749. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Added extension_message_test_helper.h to aria2c_SOURCES.
  1751. * test/Makefile.am
  1752. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Documented --bt-prioritize-piece option in man page.
  1754. * doc/aria2c.1.txt
  1755. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Added option --bt-prioritize-piece. This option instruct aria2 to
  1757. try to download first and last pieces of each file first. The
  1758. argument can contain 2 keywords:head and tail. To include both
  1759. keywords, they must be separated by comma. These keywords can take
  1760. one parameter, SIZE. For example , if head=SIZE is specified,
  1761. pieces in the range of first SIZE bytes of each file get higher
  1762. priority. tail=SIZE means the range of last SIZE bytes of each
  1763. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1764. * src/DefaultPieceStorage.h
  1765. * src/Makefile.am
  1766. * src/OptionHandlerFactory.cc
  1767. * src/OptionHandlerImpl.h
  1768. * src/PriorityPieceSelector.cc
  1769. * src/PriorityPieceSelector.h
  1770. * src/RequestGroup.cc
  1771. * src/prefs.cc
  1772. * src/prefs.h
  1773. * src/usage_text.h
  1774. * src/util.cc
  1775. * src/util.h
  1776. * test/Makefile.am
  1777. * test/MockPieceSelector.h
  1778. * test/PriorityPieceSelectorTest.cc
  1779. * test/UtilTest.cc
  1780. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Fixed typo
  1782. * src/HttpRequest.h
  1783. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1784. In Magnet URI with tr parameter, put each announce URI in separate
  1785. tier.
  1786. * src/bittorrent_helper.cc
  1787. * test/BittorrentHelperTest.cc
  1788. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Renamed ExtensionMessage::getBencodedData() as
  1790. ExtensionMessage::getPayload()
  1791. * src/BtExtendedMessage.cc
  1792. * src/ExtensionMessage.h
  1793. * src/HandshakeExtensionMessage.cc
  1794. * src/HandshakeExtensionMessage.h
  1795. * src/UTMetadataDataExtensionMessage.cc
  1796. * src/UTMetadataDataExtensionMessage.h
  1797. * src/UTMetadataRejectExtensionMessage.cc
  1798. * src/UTMetadataRejectExtensionMessage.h
  1799. * src/UTMetadataRequestExtensionMessage.cc
  1800. * src/UTMetadataRequestExtensionMessage.h
  1801. * src/UTPexExtensionMessage.cc
  1802. * src/UTPexExtensionMessage.h
  1803. * test/HandshakeExtensionMessageTest.cc
  1804. * test/MockExtensionMessage.h
  1805. * test/UTMetadataDataExtensionMessageTest.cc
  1806. * test/UTMetadataRejectExtensionMessageTest.cc
  1807. * test/UTMetadataRequestExtensionMessageTest.cc
  1808. * test/UTPexExtensionMessageTest.cc
  1809. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Updated man page for BitTorrent Magnet URI.
  1811. * doc/aria2c.1.txt
  1812. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1813. Call DownloadContext::setOwnerRequestGroup() in
  1814. RequestGroup::setDownloadContext().
  1815. * src/BtDependency.cc
  1816. * src/RequestGroup.cc
  1817. * src/RequestGroup.h
  1818. * src/download_helper.cc
  1819. * test/DefaultBtMessageDispatcherTest.cc
  1820. * test/DefaultExtensionMessageFactoryTest.cc
  1821. * test/HandshakeExtensionMessageTest.cc
  1822. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1824. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1825. from metadata, use new metadata2Torrent() function.
  1826. * src/BtDependency.cc
  1827. * src/UTMetadataPostDownloadHandler.cc
  1828. * src/bittorrent_helper.cc
  1829. * src/bittorrent_helper.h
  1830. * test/BittorrentHelperTest.cc
  1831. * test/BtDependencyTest.cc
  1832. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1833. Use createRequestGroupForUri to create the download for torrent
  1834. file.
  1835. * src/Metalink2RequestGroup.cc
  1836. * test/Metalink2RequestGroupTest.cc
  1837. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Fixed typo
  1839. * src/DownloadContext.h
  1840. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Use createRequestGroupForBitTorrent()
  1842. * src/BtPostDownloadHandler.cc
  1843. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1844. Added remove().
  1845. * src/Option.cc
  1846. * src/Option.h
  1847. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Removed options which is only valid for URIs specified in
  1849. command-line. If they are left, because op is used as a template
  1850. for new RequestGroup(such as created in XML-RPC command,
  1851. BtPostDownloadHandler etc), they causes unintentional effect.
  1852. * src/main.cc
  1853. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1854. Refer to option value of PREF_OUT only in download_helper.
  1855. * src/FtpNegotiationCommand.cc
  1856. * src/HttpResponseCommand.cc
  1857. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1859. * src/download_helper.cc
  1860. * src/download_helper.h
  1861. * src/XmlRpcMethodImpl.cc
  1862. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1863. Updated man page for changeOption XML-RPC method.
  1864. * doc/aria2c.1.txt
  1865. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Added --bt-max-peers option to changeOption XML-RPC method.
  1867. * src/XmlRpcMethod.cc
  1868. * src/XmlRpcMethodImpl.cc
  1869. * test/XmlRpcMethodTest.cc
  1870. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1872. * test/XmlRpcMethodTest.cc
  1873. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. Removed redundant DownloadContext::hasAttribute(...) calls.
  1875. * src/ConsoleStatCalc.cc
  1876. * src/RequestGroup.cc
  1877. * src/XmlRpcMethodImpl.cc
  1878. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1879. Changed the number of tracker request attempt from 5 to 2.
  1880. * src/TrackerWatcherCommand.cc
  1881. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Use host and protocol in original URI, because URI selector
  1883. selects URI based on original URI, not redirected one.
  1884. * src/Request.cc
  1885. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1886. Fixed the bug which causes segmentation fault with tellWaiting
  1887. XML-RPC method when BitTorrent download is waiting. The key of
  1888. BtRegistry is changed from info hash to GID, because it is
  1889. registered per RequestGroup, not info hash.
  1890. * src/BtRegistry.cc
  1891. * src/BtRegistry.h
  1892. * src/BtSetup.cc
  1893. * src/ConsoleStatCalc.cc
  1894. * src/InitiatorMSEHandshakeCommand.cc
  1895. * src/PeerInitiateConnectionCommand.cc
  1896. * src/PeerInteractionCommand.cc
  1897. * src/PeerInteractionCommand.h
  1898. * src/PeerReceiveHandshakeCommand.cc
  1899. * src/RequestGroup.cc
  1900. * src/XmlRpcMethodImpl.cc
  1901. * test/BtRegistryTest.cc
  1902. * test/XmlRpcMethodTest.cc
  1903. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Updated man page for changeOption XML-RPC method.
  1905. * doc/aria2c.1.txt
  1906. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1908. method.
  1909. * src/XmlRpcMethod.cc
  1910. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Documented about BitTorrent Magnet URI in man page.
  1912. * doc/aria2c.1.txt
  1913. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1914. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1915. inherited to generated RequestGroup.
  1916. * src/UTMetadataPostDownloadHandler.cc
  1917. * test/UTMetadataPostDownloadHandlerTest.cc
  1918. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1919. Prepended "[METADATA]" before dn.
  1920. * src/bittorrent_helper.cc
  1921. * test/BittorrentHelperTest.cc
  1922. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. Rewritten Magnet URI parser.
  1924. * src/Makefile.am
  1925. * src/ProtocolDetector.cc
  1926. * src/bittorrent_helper.cc
  1927. * src/bittorrent_helper.h
  1928. * src/download_helper.cc
  1929. * src/magnet.cc
  1930. * src/magnet.h
  1931. * test/BittorrentHelperTest.cc
  1932. * test/MagnetTest.cc
  1933. * test/Makefile.am
  1934. * test/ProtocolDetectorTest.cc
  1935. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1936. Use hton64
  1937. * src/base32.cc
  1938. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1939. Added Base32 encoded BitTorrent Magnet Link support.
  1940. * src/Makefile.am
  1941. * src/base32.cc
  1942. * src/base32.h
  1943. * src/bittorrent_helper.cc
  1944. * test/Base32Test.cc
  1945. * test/BittorrentHelperTest.cc
  1946. * test/Makefile.am
  1947. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1949. supported yet. Fixed typo in method name in RequestGroup. In
  1950. metadataGetMode, don't show "Your share ratio was ..." message.
  1951. * src/DefaultBtInteractive.cc
  1952. * src/DefaultBtInteractive.h
  1953. * src/DownloadHandlerFactory.cc
  1954. * src/DownloadHandlerFactory.h
  1955. * src/HandshakeExtensionMessage.cc
  1956. * src/Makefile.am
  1957. * src/Metalink2RequestGroup.cc
  1958. * src/PeerInteractionCommand.cc
  1959. * src/RequestGroup.cc
  1960. * src/RequestGroup.h
  1961. * src/UTMetadataPostDownloadHandler.cc
  1962. * src/UTMetadataPostDownloadHandler.h
  1963. * src/download_helper.cc
  1964. * test/HandshakeExtensionMessageTest.cc
  1965. * test/Makefile.am
  1966. * test/UTMetadataPostDownloadHandlerTest.cc
  1967. * test/UTMetadataRejectExtensionMessageTest.cc
  1968. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1969. In metadataGetMode, don't show SEEDING.
  1970. * src/ConsoleStatCalc.cc
  1971. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1972. Fixed ut_metadata data handling. Implemented
  1973. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1974. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1975. metadata_size is received.
  1976. * src/DefaultExtensionMessageFactory.cc
  1977. * src/DefaultExtensionMessageFactory.h
  1978. * src/HandshakeExtensionMessage.cc
  1979. * src/HandshakeExtensionMessage.h
  1980. * src/UTMetadataDataExtensionMessage.cc
  1981. * src/UTMetadataDataExtensionMessage.h
  1982. * src/UTMetadataRequestExtensionMessage.cc
  1983. * src/UTMetadataRequestFactory.cc
  1984. * src/UTMetadataRequestFactory.h
  1985. * src/UTMetadataRequestTracker.cc
  1986. * src/UTMetadataRequestTracker.h
  1987. * test/DefaultExtensionMessageFactoryTest.cc
  1988. * test/HandshakeExtensionMessageTest.cc
  1989. * test/MockBtMessage.h
  1990. * test/UTMetadataDataExtensionMessageTest.cc
  1991. * test/UTMetadataRequestExtensionMessageTest.cc
  1992. * test/UTMetadataRequestFactoryTest.cc
  1993. * test/UTMetadataRequestTrackerTest.cc
  1994. * test/extension_message_test_helper.h
  1995. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1996. Drop connection if ut_metadata reject message is received.
  1997. * src/UTMetadataRejectExtensionMessage.cc
  1998. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2000. get high enough in that mode.
  2001. * src/ActivePeerConnectionCommand.cc
  2002. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2003. Added BitTorrent magnet link support to ProtocolDetector.
  2004. * src/ProtocolDetector.cc
  2005. * src/ProtocolDetector.h
  2006. * test/ProtocolDetectorTest.cc
  2007. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2008. Don't inject validator into BtMessage in metadataGetMode because
  2009. most of the checks depends on the total length of download but it
  2010. is unknown. Delegate metadataGetMode to BtMessage.
  2011. * src/DefaultBtMessageFactory.cc
  2012. * src/DefaultBtMessageFactory.h
  2013. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2015. * src/DefaultPieceStorage.h
  2016. * src/PieceStorage.h
  2017. * src/UnknownLengthPieceStorage.h
  2018. * test/MockPieceStorage.h
  2019. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Added markTotalLengthIsKnown().
  2021. * src/DownloadContext.h
  2022. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2024. missing. If metadata is missing, always use DHT when it is ready.
  2025. * src/BtSetup.cc
  2026. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2027. Added parseMagnetLink(). Hex encoded info hash is supported.
  2028. Base32 encoded info hash is not supported yet.
  2029. * src/bittorrent_helper.cc
  2030. * src/bittorrent_helper.h
  2031. * test/BittorrentHelperTest.cc
  2032. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Added FromHex()
  2034. * src/util.cc
  2035. * src/util.h
  2036. * test/UtilTest.cc
  2037. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2038. Added _metadataGetMode member variable. It toggles the action when
  2039. messages are received: usually they almost do nothing if
  2040. _metadataGetMode is true.
  2041. * src/AbstractBtMessage.cc
  2042. * src/AbstractBtMessage.h
  2043. * src/BtAllowedFastMessage.cc
  2044. * src/BtBitfieldMessage.cc
  2045. * src/BtCancelMessage.cc
  2046. * src/BtChokeMessage.cc
  2047. * src/BtHaveAllMessage.cc
  2048. * src/BtHaveMessage.cc
  2049. * src/BtInterestedMessage.cc
  2050. * src/BtNotInterestedMessage.cc
  2051. * src/BtPieceMessage.cc
  2052. * src/BtRejectMessage.cc
  2053. * src/BtRequestMessage.cc
  2054. * src/BtUnchokeMessage.cc
  2055. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2056. Added bencode::decode overload functions. They have extra argument
  2057. 'end', passed by reference. 'end' points to the beyond the last
  2058. position of data used in decoding process.
  2059. * src/bencode.cc
  2060. * src/bencode.h
  2061. * test/BencodeTest.cc
  2062. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Initial support of Extension for Peers to Send Metadata
  2064. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2065. metadata from swarm.
  2066. * src/BtConstants.h
  2067. * src/DefaultBtInteractive.cc
  2068. * src/DefaultExtensionMessageFactory.cc
  2069. * src/DefaultExtensionMessageFactory.h
  2070. * src/ExtensionMessage.h
  2071. * src/ExtensionMessageRegistry.h
  2072. * src/HandshakeExtensionMessage.cc
  2073. * src/HandshakeExtensionMessage.h
  2074. * src/Makefile.am
  2075. * src/PeerConnection.h
  2076. * src/PeerInteractionCommand.cc
  2077. * src/UTMetadataDataExtensionMessage.cc
  2078. * src/UTMetadataDataExtensionMessage.h
  2079. * src/UTMetadataExtensionMessage.cc
  2080. * src/UTMetadataExtensionMessage.h
  2081. * src/UTMetadataRejectExtensionMessage.cc
  2082. * src/UTMetadataRejectExtensionMessage.h
  2083. * src/UTMetadataRequestExtensionMessage.cc
  2084. * src/UTMetadataRequestExtensionMessage.h
  2085. * src/bittorrent_helper.cc
  2086. * src/bittorrent_helper.h
  2087. * test/BittorrentHelperTest.cc
  2088. * test/DefaultExtensionMessageFactoryTest.cc
  2089. * test/HandshakeExtensionMessageTest.cc
  2090. * test/Makefile.am
  2091. * test/UTMetadataDataExtensionMessageTest.cc
  2092. * test/UTMetadataRejectExtensionMessageTest.cc
  2093. * test/UTMetadataRequestExtensionMessageTest.cc
  2094. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Cancel segment in prepareForRetry() because there is a chance that
  2096. the command has segments.
  2097. * src/CreateRequestCommand.cc
  2098. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. Fixed the bug that slow server is not knocked down in favor of
  2100. faster one.
  2101. * src/AbstractCommand.cc
  2102. * src/DefaultPieceStorage.cc
  2103. * src/DefaultPieceStorage.h
  2104. * src/PieceStorage.h
  2105. * src/UnknownLengthPieceStorage.cc
  2106. * src/UnknownLengthPieceStorage.h
  2107. * test/MockPieceStorage.h
  2108. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. Fixed the bug that Request object is not added to
  2110. _inFlightRequests in findFasterRequest().
  2111. * src/FileEntry.cc
  2112. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. Changed the strategry of how to increase the number of outstanding
  2114. requests. Now the number is doubled if there are no outstanding
  2115. requests after receiving messages.
  2116. * src/BtConstants.h
  2117. * src/DefaultBtInteractive.cc
  2118. * src/DefaultBtInteractive.h
  2119. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2120. Check socket for reading if there are outstanding requests.
  2121. * src/PeerInteractionCommand.cc
  2122. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Moved frequently called methods to header file so they get
  2124. inlined.
  2125. * src/RequestSlot.cc
  2126. * src/RequestSlot.h
  2127. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Copied in_addr instead of just casting from char* which might
  2129. violate strict aliasing rules.
  2130. * src/AsyncNameResolver.cc
  2131. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2132. Use dynamic_pointer_cast
  2133. * test/BtPieceMessageTest.cc
  2134. * test/BtRequestMessageTest.cc
  2135. * test/DefaultBtRequestFactoryTest.cc
  2136. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Added testSetUrl20()
  2138. * test/RequestTest.cc
  2139. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2140. Code cleanup
  2141. * src/bittorrent_helper.cc
  2142. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Use C++ style cast
  2144. * src/AsyncNameResolver.cc
  2145. * src/Base64.h
  2146. * src/BtBitfieldMessage.cc
  2147. * src/BtHandshakeMessage.cc
  2148. * src/DefaultBtMessageFactory.cc
  2149. * src/DefaultBtProgressInfoFile.cc
  2150. * src/EpollEventPoll.cc
  2151. * src/ExpatMetalinkProcessor.cc
  2152. * src/IteratableChecksumValidator.cc
  2153. * src/IteratableChunkChecksumValidator.cc
  2154. * src/MessageDigestHelper.cc
  2155. * src/Platform.cc
  2156. * src/RequestGroupMan.cc
  2157. * src/SingleFileAllocationIterator.cc
  2158. * src/Sqlite3MozCookieParser.cc
  2159. * src/XML2SAXMetalinkProcessor.cc
  2160. * src/Xml2XmlRpcRequestProcessor.cc
  2161. * src/util.cc
  2162. * src/util.h
  2163. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2164. Fixed integer potential alignment problem.
  2165. * src/bitfield.h
  2166. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2167. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2168. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2169. include file ordering.
  2170. * src/PeerListProcessor.h
  2171. * src/bittorrent_helper.cc
  2172. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2174. * src/Request.cc
  2175. * src/util.cc
  2176. * src/util.h
  2177. * test/RequestTest.cc
  2178. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Rewritten util::uitos()
  2180. * src/util.h
  2181. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Code cleanup
  2183. * src/Request.cc
  2184. * src/Request.h
  2185. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2186. Rewritten Request::parseUrl()
  2187. * src/Request.cc
  2188. * test/RequestTest.cc
  2189. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2190. Removed unused macro SAFE_CHARS
  2191. * src/Request.cc
  2192. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2193. Updated doc
  2194. * src/DHTRoutingTableDeserializer.cc
  2195. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Release 1.6.3
  2197. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2198. Removed unused function.
  2199. * test/DHTPeerAnnounceStorageTest.cc
  2200. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2201. Only decrement cols if cols > 0
  2202. * src/ConsoleStatCalc.cc
  2203. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2204. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2205. translations. Thanks to all translators.
  2206. * po/ca.po
  2207. * po/fr.po
  2208. * po/it.po
  2209. * po/ja.po
  2210. * po/pl.po
  2211. * po/ru.po
  2212. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2213. Updated translation template
  2214. * po
  2215. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2216. Fixed compile error without ssl library.
  2217. * src/util.cc
  2218. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2219. Logged received nodes in get_peers reply message.
  2220. * src/DHTAbstractNodeLookupTask.cc
  2221. * src/DHTAbstractNodeLookupTask.h
  2222. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2224. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2225. * src/DHTMessageDispatcherImpl.cc
  2226. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Don't reuse URI if Request pool is not empty.
  2228. * src/CreateRequestCommand.cc
  2229. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2231. receive get_peers request for torrent which the client is now
  2232. downloading.
  2233. * src/BtSetup.cc
  2234. * src/DHTPeerAnnounceEntry.cc
  2235. * src/DHTPeerAnnounceEntry.h
  2236. * src/DHTPeerAnnounceStorage.cc
  2237. * src/DHTPeerAnnounceStorage.h
  2238. * src/RequestGroup.cc
  2239. * test/DHTPeerAnnounceEntryTest.cc
  2240. * test/DHTPeerAnnounceStorageTest.cc
  2241. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2242. Fixed the bug that in Windows environment new blank line is
  2243. inserted when console readout is updated.
  2244. * src/ConsoleStatCalc.cc
  2245. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2246. Throw exception if binding listening port is failed. Removed
  2247. RequestGroupMan::getInitialCommand(). Use
  2248. fillRequestGroupFromReserver() instead. Delete commands for
  2249. RequestGroup which has errors when it is being added.
  2250. * src/BtSetup.cc
  2251. * src/DownloadEngine.cc
  2252. * src/DownloadEngine.h
  2253. * src/DownloadEngineFactory.cc
  2254. * src/MultiUrlRequestInfo.cc
  2255. * src/RequestGroupMan.cc
  2256. * src/RequestGroupMan.h
  2257. * test/RequestGroupManTest.cc
  2258. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Fixed the bug that when downloading more than one torrent,
  2260. listening port is not reported properly to tracker for 2nd or
  2261. later torrents.
  2262. * src/BtSetup.cc
  2263. * src/PeerListenCommand.cc
  2264. * src/PeerListenCommand.h
  2265. * src/RequestGroup.cc
  2266. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. Bump up version number to 1.6.3
  2268. * configure.ac
  2269. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2270. Removed Util.cc from POTFILES.in
  2271. * po/POTFILES.in
  2272. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2273. Updated man page for previous change.
  2274. * doc/aria2c.1.txt
  2275. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2276. If user name is embedded but password is missing in URI, first
  2277. resolve password using .netrc. If password is found in .netrc,
  2278. then use it as password. If not, use the password specified in
  2279. --ftp-passwd.
  2280. * src/AuthConfigFactory.cc
  2281. * src/Request.cc
  2282. * src/Request.h
  2283. * test/AuthConfigFactoryTest.cc
  2284. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Fixed typo
  2286. * doc/aria2c.1.txt
  2287. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Fixed typo
  2289. * src/usage_text.h
  2290. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2291. Added missing bitfield.cc
  2292. * src/bitfield.cc
  2293. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2294. Renamed Util.{cc,h} as util.{cc,h}
  2295. * src/Util.cc
  2296. * src/Util.h
  2297. * src/util.cc
  2298. * src/util.h
  2299. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. Moved static functions in Util class to namespace util.
  2301. * src
  2302. * test
  2303. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2304. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2305. Moved generateRandomKey to bittorrent_helper.cc.
  2306. * src/DHTBucket.cc
  2307. * src/DHTGetPeersMessage.cc
  2308. * src/DHTGetPeersReplyMessage.cc
  2309. * src/DHTMessage.cc
  2310. * src/DHTNode.cc
  2311. * src/DHTTokenTracker.cc
  2312. * src/DHTUtil.cc: Removed.
  2313. * src/DHTUtil.h: Removed.
  2314. * src/Makefile.am
  2315. * src/Util.cc
  2316. * src/Util.h
  2317. * src/bitfield.h
  2318. * src/bittorrent_helper.cc
  2319. * src/bittorrent_helper.h
  2320. * test/ARC4Test.cc
  2321. * test/BNodeTest.cc
  2322. * test/DHTAnnouncePeerMessageTest.cc
  2323. * test/DHTAnnouncePeerReplyMessageTest.cc
  2324. * test/DHTFindNodeMessageTest.cc
  2325. * test/DHTFindNodeReplyMessageTest.cc
  2326. * test/DHTGetPeersMessageTest.cc
  2327. * test/DHTGetPeersReplyMessageTest.cc
  2328. * test/DHTPingMessageTest.cc
  2329. * test/DHTPingReplyMessageTest.cc
  2330. * test/DHTTokenTrackerTest.cc
  2331. * test/DHTUtilTest.cc: Removed.
  2332. * test/Makefile.am
  2333. * test/UtilTest.cc
  2334. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. Removed the call to trim() because trim() is called for each
  2336. element in split().
  2337. * src/CookieParser.cc
  2338. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2339. Replaced Util::slice() with split()
  2340. * src/AbstractCommand.cc
  2341. * src/CookieParser.cc
  2342. * src/File.cc
  2343. * src/HttpHeaderProcessor.cc
  2344. * src/HttpRequest.cc
  2345. * src/Metalink2RequestGroup.cc
  2346. * src/MetalinkParserController.cc
  2347. * src/Netrc.cc
  2348. * src/NsCookieParser.cc
  2349. * src/ParameterizedStringParser.cc
  2350. * src/ServerStatMan.cc
  2351. * src/UriListParser.cc
  2352. * src/Util.cc
  2353. * src/Util.h
  2354. * src/bittorrent_helper.cc
  2355. * test/UtilTest.cc
  2356. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Use request->getDir() instead of "/" for embedded user/pass in
  2358. URI.
  2359. * src/AuthConfigFactory.cc
  2360. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2361. Fixed wrong insertion point for BasicCred.
  2362. * src/AuthConfigFactory.cc
  2363. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2364. Allowed non-regular file in LocalFilePathOptionHandler
  2365. * src/OptionHandlerImpl.h
  2366. * src/message.h
  2367. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2369. * src/Netrc.cc
  2370. * src/Util.h
  2371. * test/NetrcTest.cc
  2372. * test/sample.netrc
  2373. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2374. Fixed typo
  2375. * src/BtDependency.cc
  2376. * src/BtRejectMessage.cc
  2377. * src/FtpConnection.cc
  2378. * src/HttpHeaderProcessor.h
  2379. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2380. Fixed lintian report in man page
  2381. * doc/aria2c.1.txt
  2382. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2383. Release 1.6.2
  2384. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2385. Updated Ukrainian translation. Thanks to all translators.
  2386. * po/uk.po
  2387. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2388. Updated translation template
  2389. * po
  2390. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. Bump up version number to 1.6.2
  2392. * configure.ac
  2393. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2394. Updated licence message in -v output.
  2395. * src/version_usage.cc
  2396. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2397. Replaced aria2 with aria2c in help message.
  2398. * src/version_usage.cc
  2399. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2400. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2401. * src/version_usage.cc
  2402. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2403. Quoted localedir
  2404. * src/Makefile.am
  2405. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2406. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2407. utime. Check header for utime.h.
  2408. * configure.ac
  2409. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2411. * configure.ac
  2412. * src/daemon.cc
  2413. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2414. Don't set localedir manually. Leave it to autoconf.
  2415. * configure.ac
  2416. * src/Makefile.am
  2417. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2418. Added --install to ACLOCAL_AMFLAGS.
  2419. Removed m4 from SUBDIRS.
  2420. Updated automake 1.11 and autoconf 2.64.
  2421. Replaced some obsolute macros with new one.
  2422. * Makefile.am
  2423. * configure.ac
  2424. * m4/aria2_arg.m4
  2425. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2426. Removed Makefile.am in m4 directory.
  2427. * configure.ac
  2428. * m4/ChangeLog
  2429. * m4/Makefile.am
  2430. * m4/Makefile.in
  2431. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Removed unused m4 macros.
  2433. * m4/intldir.m4
  2434. * m4/inttypes.m4
  2435. * m4/isc-posix.m4
  2436. * m4/libgnutls-extra.m4
  2437. * m4/ulonglong.m4
  2438. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Fixed the bug that causes segmentation fault if
  2440. req->getCurrentUrl() contains printf formatting characters such as
  2441. %d. The statement that causes this bug is useless and removed.
  2442. * src/AbstractCommand.cc
  2443. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. * Release 1.6.1
  2445. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2446. Updated Simplified Chinese translation. Thanks to translators.
  2447. * po/zh_CN.po
  2448. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2449. Updated translation template
  2450. * po
  2451. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Bump up version number to 1.6.1
  2453. * configure.ac
  2454. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. Changed interval from 120 to 60 for dropping inactive peer.
  2456. * src/DefaultBtInteractive.cc
  2457. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2458. Updated man page for --user-agent and --peer-id-prefix option.
  2459. * doc/aria2c.1.txt
  2460. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2461. Code clean up
  2462. * src/BtPostDownloadHandler.cc
  2463. * src/ContentTypeRequestGroupCriteria.cc
  2464. * src/ContentTypeRequestGroupCriteria.h
  2465. * src/DownloadHandlerConstants.cc
  2466. * src/DownloadHandlerConstants.h
  2467. * src/DownloadHandlerFactory.cc
  2468. * src/MetalinkPostDownloadHandler.cc
  2469. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Don't save control file when aria2 exists while checking piece
  2471. hash(behavior of -V option). If control file doesn't exist when
  2472. aria2 launched, the completed length in saved control file will be
  2473. 0 byte and this confuses user. disableSaveControlFile() is called
  2474. in RequestGroup::processCheckIntegrityEntry().
  2475. enableSaveControlFile() will be called after hash checking is
  2476. done. See CheckIntegrityCommand.
  2477. * src/CheckIntegrityCommand.cc
  2478. * src/RequestGroup.cc
  2479. * src/RequestGroup.h
  2480. * src/RequestGroupMan.cc
  2481. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2482. Included version number in Peer ID and client version. Peer ID
  2483. now starts with "aria2/VERSION-", where VERSION is
  2484. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2485. * src/DefaultBtInteractive.cc
  2486. * src/OptionHandlerFactory.cc
  2487. * src/bittorrent_helper.cc
  2488. * src/bittorrent_helper.h
  2489. * src/main.cc
  2490. * src/usage_text.h
  2491. * test/BittorrentHelperTest.cc
  2492. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2493. Fixed memory leak.
  2494. * src/DownloadCommand.cc
  2495. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2496. Removed server, port, user and passwd key from options before
  2497. XMLRPC::Client.call since they are not options of aria2.
  2498. * doc/xmlrpc/aria2mon
  2499. * doc/xmlrpc/aria2rpc
  2500. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. Included version number in user-agent string.
  2502. * src/OptionHandlerFactory.cc
  2503. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2504. Fixed the bug that the option values changed by XML-RPC
  2505. method(changeOption and changeGlobalOption) are overwritten to the
  2506. previous value by the next these request which doesn't contain
  2507. that option value. Supporse max-download-limit is initially 0. You
  2508. changed this value to 100K by changeOption. Then you issue
  2509. changeOption request to change max-upload-limit to 50K. This
  2510. second request doesn't contain xml-download-limit, so it is back
  2511. to initial value, 0. Another improvement is that exception is
  2512. thrown when changeOption and changeGlobalOption request contains
  2513. option name which doesn't allowed in each request.
  2514. * src/DownloadEngine.h
  2515. * src/XmlRpcMethod.cc
  2516. * src/XmlRpcMethod.h
  2517. * src/XmlRpcMethodImpl.cc
  2518. * src/download_helper.cc
  2519. * src/download_helper.h
  2520. * test/XmlRpcMethodTest.cc
  2521. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2522. Added missing MetalinkParserStateImpl.{cc,h}
  2523. * src/MetalinkParserStateImpl.cc
  2524. * src/MetalinkParserStateImpl.h
  2525. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Put all MetalinkParserState subclasses into
  2527. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2528. * src/FileMetalinkParserState.cc: Removed
  2529. * src/FileMetalinkParserState.h: Removed
  2530. * src/FilesMetalinkParserState.cc: Removed
  2531. * src/FilesMetalinkParserState.h: Removed
  2532. * src/FinMetalinkParserState.cc: Removed
  2533. * src/FinMetalinkParserState.h: Removed
  2534. * src/HashMetalinkParserState.cc: Removed
  2535. * src/HashMetalinkParserState.h: Removed
  2536. * src/InitialMetalinkParserState.cc: Removed
  2537. * src/InitialMetalinkParserState.h: Removed
  2538. * src/LanguageMetalinkParserState.cc: Removed
  2539. * src/LanguageMetalinkParserState.h: Removed
  2540. * src/Makefile.am
  2541. * src/MetalinkMetalinkParserState.cc: Removed
  2542. * src/MetalinkMetalinkParserState.h: Removed
  2543. * src/MetalinkParserState.h
  2544. * src/MetalinkParserStateMachine.cc
  2545. * src/MetalinkParserStateMachine.h
  2546. * src/OSMetalinkParserState.cc: Removed
  2547. * src/OSMetalinkParserState.h: Removed
  2548. * src/PieceHashMetalinkParserState.cc: Removed
  2549. * src/PieceHashMetalinkParserState.h: Removed
  2550. * src/PiecesMetalinkParserState.cc: Removed
  2551. * src/PiecesMetalinkParserState.h: Removed
  2552. * src/ResourcesMetalinkParserState.cc: Removed
  2553. * src/ResourcesMetalinkParserState.h: Removed
  2554. * src/SignatureMetalinkParserState.cc: Removed
  2555. * src/SignatureMetalinkParserState.h: Removed
  2556. * src/SizeMetalinkParserState.cc: Removed
  2557. * src/SizeMetalinkParserState.h: Removed
  2558. * src/SkipTagMetalinkParserState.cc: Removed
  2559. * src/SkipTagMetalinkParserState.h: Removed
  2560. * src/URLMetalinkParserState.cc: Removed
  2561. * src/URLMetalinkParserState.h: Removed
  2562. * src/VerificationMetalinkParserState.cc: Removed
  2563. * src/VerificationMetalinkParserState.h: Removed
  2564. * src/VersionMetalinkParserState.cc: Removed
  2565. * src/VersionMetalinkParserState.h: Removed
  2566. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2567. Move all functions in PeerMessageUtil to bittorrent_helper.
  2568. * src/BtBitfieldMessage.cc
  2569. * src/BtBitfieldMessageValidator.h
  2570. * src/BtExtendedMessage.cc
  2571. * src/BtHandshakeMessage.cc
  2572. * src/BtHandshakeMessageValidator.h
  2573. * src/BtPieceMessage.cc
  2574. * src/BtPieceMessageValidator.h
  2575. * src/BtPortMessage.cc
  2576. * src/DHTFindNodeReplyMessage.cc
  2577. * src/DHTGetPeersReplyMessage.cc
  2578. * src/DHTMessageFactoryImpl.cc
  2579. * src/DHTRoutingTableDeserializer.cc
  2580. * src/DHTRoutingTableSerializer.cc
  2581. * src/DHTTokenTracker.cc
  2582. * src/DefaultBtMessageFactory.cc
  2583. * src/IndexBtMessage.cc
  2584. * src/IndexBtMessage.h
  2585. * src/IndexBtMessageValidator.h
  2586. * src/Makefile.am
  2587. * src/PeerMessageUtil.cc: Removed.
  2588. * src/PeerMessageUtil.h: Removed.
  2589. * src/RangeBtMessage.cc
  2590. * src/RangeBtMessage.h
  2591. * src/RangeBtMessageValidator.h
  2592. * src/UTPexExtensionMessage.cc
  2593. * src/ZeroBtMessage.cc
  2594. * src/ZeroBtMessage.h
  2595. * src/bittorrent_helper.cc
  2596. * src/bittorrent_helper.h
  2597. * test/BittorrentHelperTest.cc
  2598. * test/BtAllowedFastMessageTest.cc
  2599. * test/BtBitfieldMessageTest.cc
  2600. * test/BtCancelMessageTest.cc
  2601. * test/BtChokeMessageTest.cc
  2602. * test/BtExtendedMessageTest.cc
  2603. * test/BtHandshakeMessageTest.cc
  2604. * test/BtHaveAllMessageTest.cc
  2605. * test/BtHaveMessageTest.cc
  2606. * test/BtHaveNoneMessageTest.cc
  2607. * test/BtInterestedMessageTest.cc
  2608. * test/BtNotInterestedMessageTest.cc
  2609. * test/BtPieceMessageTest.cc
  2610. * test/BtPortMessageTest.cc
  2611. * test/BtRejectMessageTest.cc
  2612. * test/BtRequestMessageTest.cc
  2613. * test/BtSuggestPieceMessageTest.cc
  2614. * test/BtUnchokeMessageTest.cc
  2615. * test/DHTFindNodeReplyMessageTest.cc
  2616. * test/DHTGetPeersReplyMessageTest.cc
  2617. * test/DHTMessageFactoryImplTest.cc
  2618. * test/DHTRoutingTableDeserializerTest.cc
  2619. * test/DHTRoutingTableSerializerTest.cc
  2620. * test/DefaultBtMessageFactoryTest.cc
  2621. * test/DefaultExtensionMessageFactoryTest.cc
  2622. * test/Makefile.am
  2623. * test/PeerListProcessorTest.cc
  2624. * test/PeerMessageUtilTest.cc: Removed.
  2625. * test/UTPexExtensionMessageTest.cc
  2626. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2627. Limit the size of values list when sending get_peers reply.
  2628. * src/DHTGetPeersReplyMessage.cc
  2629. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2630. Updated banner
  2631. * doc/xmlrpc/aria2rpc
  2632. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Added missing help message for remove command.
  2634. * doc/xmlrpc/aria2rpc
  2635. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Generated configure and config.h.in
  2637. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2638. Add check for fork(), which is missing on MinGW
  2639. * src/daemon.cc
  2640. * configure.ac
  2641. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2642. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2643. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2644. Util::httpGMT().
  2645. * src/Util.cc
  2646. * src/Util.h
  2647. * test/UtilTest.cc
  2648. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2649. * Release 1.6.0
  2650. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Fixed a path to xmlrpc/README.txt
  2652. * doc/Makefile.am
  2653. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Added XML-RPC in -v Configuration output.
  2655. * src/FeatureConfig.cc
  2656. * src/FeatureConfig.h
  2657. * test/FeatureConfigTest.cc
  2658. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2659. Updated Bulgarian, Russian, Slovak and Japanese
  2660. translations. Thanks to all translators.
  2661. * po/bg.po
  2662. * po/ja.po
  2663. * po/ru.po
  2664. * po/sk.po
  2665. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2666. Removed --retry-wait option from aria2rpc
  2667. * doc/xmlrpc/aria2rpc
  2668. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2669. Removed --retry-wait option from man page.
  2670. * doc/aria2c.1.txt
  2671. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2672. Removed --retry-wait option since the current architecture doesn't
  2673. allow sleep for particular URI.
  2674. * src/AbstractCommand.cc
  2675. * src/OptionHandlerFactory.cc
  2676. * src/download_helper.cc
  2677. * src/prefs.cc
  2678. * src/prefs.h
  2679. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Removed Retry-After header support. Since the current architecture
  2681. doesn't allow sleep for particular URI.
  2682. * src/HttpSkipResponseCommand.cc
  2683. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2684. Updated the help message for --daemon option.
  2685. * doc/aria2c.1.txt
  2686. * src/usage_text.h
  2687. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2688. Added our own daemon() function for systems which desn't have
  2689. daemon(3).
  2690. * configure.ac
  2691. * src/Makefile.am
  2692. * src/daemon.cc
  2693. * src/daemon.h
  2694. * src/option_processing.cc
  2695. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2696. Simplified File::getCurrentDir()
  2697. * src/File.cc
  2698. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2699. Use exit() instead of _exit
  2700. * src/RequestGroupMan.cc
  2701. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2702. Replaced "CATEGORY" with "TAGS".
  2703. * src/usage_text.h
  2704. * doc/aria2c.1.txt
  2705. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2706. Updated the help message for --help option.
  2707. * src/usage_text.h
  2708. * doc/aria2c.1.txt
  2709. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2710. Updated man page for added help tags.
  2711. * doc/aria2c.1.txt
  2712. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2713. Added help category #file. Added #file tag to the options related
  2714. to downloaded file.
  2715. * src/OptionHandlerFactory.cc
  2716. * src/help_tags.h
  2717. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2718. Added help categories: #cookie and #hook. Added #https tag to
  2719. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2720. * src/OptionHandlerFactory.cc
  2721. * src/help_tags.h
  2722. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2723. Made MSG_NOT_FILE translatable.
  2724. * src/message.h
  2725. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. Updated man page for --help option.
  2727. * doc/aria2c.1.txt
  2728. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2729. Updated doc.
  2730. * src/XmlRpcMethod.h
  2731. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Help category now starts with "#" to distinguish a category from
  2733. keyword search. For example, "http" categroy is now "#http". You
  2734. can type "--help=#http" to get explanation of options related to
  2735. http. If '#' is omitted, then the argument is treated as a keyword
  2736. and aria2 searches options whose name includes the keyword and
  2737. print matched ones. For example, "--help=http" will show options
  2738. whose name includes "http".
  2739. * src/OptionHandlerFactory.cc
  2740. * src/help_tags.h
  2741. * src/usage_text.h
  2742. * src/version_usage.cc
  2743. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Documented missing experimental tag and newly added xml-rpc tag in
  2745. man page.
  2746. * doc/aria2c.1.txt
  2747. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2748. Added xml-rpc help tag. Tagged xml-rpc related options with
  2749. xml-rpc tag.
  2750. * src/OptionHandlerFactory.cc
  2751. * src/help_tags.h
  2752. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2753. Updated message when a path is not a file. Updated common message
  2754. for wrong option.
  2755. * src/OptionHandlerException.cc
  2756. * src/message.h
  2757. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2758. Use File::isFile() instead of File::exists(). Updated message when
  2759. a path is not a file.
  2760. * src/OptionHandlerImpl.cc
  2761. * src/message.h
  2762. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2763. Fixed the bug that server performence profile is not updated when
  2764. aria2c was terminated by emergency shutdown.
  2765. * src/TrackerWatcherCommand.cc
  2766. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2767. Use LocalFilePathOptionHandler for -T and -M option.
  2768. Updated message of MSG_FILE_NOT_EXIST.
  2769. * src/OptionHandlerFactory.cc
  2770. * src/message.h
  2771. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2772. Added LocalFilePathOptionHandler which check whether the specified
  2773. file path does exist or not.
  2774. * src/OptionHandlerImpl.cc
  2775. * src/message.h
  2776. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2777. Updated wiki page URI.
  2778. * README
  2779. * doc/aria2c.1.txt
  2780. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2781. Added README.txt for xmlrpc directory.
  2782. * doc/Makefile.am
  2783. * doc/xmlrpc/README.txt
  2784. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2785. Bump up version number to 1.6.0.
  2786. * configure.ac
  2787. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Added XML-RPC client scripts written in ruby.
  2789. * doc/Makefile.am
  2790. * doc/xmlrpc/aria2mon
  2791. * doc/xmlrpc/aria2rpc
  2792. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2793. Added support for IPv6 literal address in URI. Now aria2 can
  2794. handle URI such as http://[::1]/
  2795. * src/HttpRequest.cc
  2796. * src/HttpRequest.h
  2797. * src/Request.cc
  2798. * src/Request.h
  2799. * test/HttpRequestTest.cc
  2800. * test/OptionHandlerTest.cc
  2801. * test/RequestTest.cc
  2802. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Fixed the bug that HTTP request header for XML-RPC request is not
  2804. parsed properly.
  2805. * src/HttpHeader.cc
  2806. * src/HttpHeaderProcessor.cc
  2807. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2808. Fixed the bug that XML-RPC authorization might be done before HTTP
  2809. request header is fully received.
  2810. * src/HttpServerCommand.cc
  2811. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. Documented --xml-rpc-listen-all option in man page.
  2813. * doc/aria2c.1.txt
  2814. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2815. Added --xml-rpc-listen-all option. If true is given to this
  2816. option, aria2 listens incoming XML-RPC requests on all network
  2817. interfaces. If false is given, listens only on local loopback
  2818. interface. The default value is false.
  2819. * src/HttpListenCommand.cc
  2820. * src/OptionHandlerFactory.cc
  2821. * src/SocketCore.cc
  2822. * src/SocketCore.h
  2823. * src/prefs.cc
  2824. * src/prefs.h
  2825. * src/usage_text.h
  2826. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. * Release 1.5.2
  2828. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2829. Updated Ukrainian and Russian translations. Thanks to all
  2830. translators.
  2831. * po/ru.po
  2832. * po/uk.po
  2833. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. Bump up version number to 1.5.2
  2835. * configure.ac
  2836. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Get comment, comment.utf-8, created by and creation date from
  2838. .torrent file and print them in -S output.
  2839. * src/bittorrent_helper.cc
  2840. * src/bittorrent_helper.h
  2841. * test/BittorrentHelperTest.cc
  2842. * test/test.torrent
  2843. * test/utf8.torrent
  2844. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2845. Show exact file size along in -S option output.
  2846. * src/Util.h
  2847. * src/bittorrent_helper.cc
  2848. * test/UtilTest.cc
  2849. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2850. Avoided unnecessary memory allocation in
  2851. BitfieldMan::getCompletedLength().
  2852. * src/BitfieldMan.cc
  2853. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. Fixed the bug that download fails if
  2855. SocketCore::establishConnection() throws exception and aria2
  2856. doesn't try another address.
  2857. * src/AbstractCommand.cc
  2858. * src/InitiateConnectionCommand.cc
  2859. * src/message.h
  2860. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2861. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2862. detected properly.
  2863. * m4/sqlite3.m4
  2864. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2865. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2866. because it causes compile error if PARAMS macro is defined.
  2867. * src/XmlRpcElements.cc
  2868. * src/XmlRpcElements.h
  2869. * src/XmlRpcRequestParserStateImpl.cc
  2870. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2871. * Release 1.5.1
  2872. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Bump up version number to 1.5.1
  2874. * configure.ac
  2875. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Fixed compile error without BitTorrent support
  2877. * src/DefaultBtProgressInfoFile.cc
  2878. * src/DownloadEngine.cc
  2879. * src/DownloadEngine.h
  2880. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. Added missing '=' in Download Results
  2882. * src/RequestGroupMan.cc
  2883. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2884. Fixed compiler warning
  2885. * src/DefaultBtProgressInfoFile.cc
  2886. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2887. Fixed compiler warning on 32bit systems.
  2888. * src/DownloadCommand.cc
  2889. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2890. Call flush from ServerStatMan::save()
  2891. * src/ServerStatMan.cc
  2892. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2893. Check stream status after file is opened.
  2894. * src/CookieStorage.cc
  2895. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Rewritten Signature::save()
  2897. * src/Signature.cc
  2898. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2899. Rewritten RequestGroupMan::saveServerStat()
  2900. * src/RequestGroupMan.cc
  2901. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2902. Rewritten stream error handling
  2903. * src/DHTAutoSaveCommand.cc
  2904. * src/DHTRoutingTableDeserializer.cc
  2905. * src/DHTRoutingTableSerializer.cc
  2906. * src/DHTSetup.cc
  2907. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2908. Check stream status after file is opened.
  2909. * src/DefaultBtProgressInfoFile.cc
  2910. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Rewritten stream error handling
  2912. * src/DefaultBtProgressInfoFile.cc
  2913. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2914. Make sure that stream is closed before renaming file. Unit test
  2915. fails on mingw32 in the previous implementation.
  2916. * src/CookieStorage.cc
  2917. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Fixed the unit test error without sqlite3
  2919. * test/CookieStorageTest.cc
  2920. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2921. Fixed the undefined reference error
  2922. * test/HttpResponseTest.cc
  2923. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2924. * Release 1.5.0
  2925. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2926. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2927. Ukrainian translations. Thanks to all translators.
  2928. * po/ru.po
  2929. * po/it.po
  2930. * po/da.po
  2931. * po/bg.po
  2932. * po/ja.po
  2933. * po/uk.po
  2934. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2935. Added missing src/Logger.cc
  2936. * src/Logger.cc
  2937. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. Rewritten Logger to avoiding constly virtual call.
  2939. * src/LogFactory.cc
  2940. * src/LogFactory.h
  2941. * src/Logger.h
  2942. * src/Makefile.am
  2943. * src/Makefile.in
  2944. * src/NullLogger.h: Removed.
  2945. * src/SimpleLogger.cc
  2946. * src/SimpleLogger.h
  2947. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2948. Updated doc
  2949. * src/main.cc
  2950. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2951. Updated debug log message
  2952. * src/AbstractCommand.cc
  2953. * src/message.h
  2954. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2955. Avoid to create zombie process when commands specified in
  2956. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2957. X and NetBSD.
  2958. * src/main.cc
  2959. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2960. Fixed typo
  2961. * src/usage_text.h
  2962. * doc/aria2c.1.txt
  2963. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2964. Documented 'errorCode' of tellStatus in man page.
  2965. * doc/aria2c.1.txt
  2966. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2968. This key is only available for stopped/completed downloads and its
  2969. value is the error code defined in EXIT STATUS in man page.
  2970. * src/XmlRpcMethodImpl.cc
  2971. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2972. Fixed the bug that session download length is not updated when
  2973. PeerStat is not fastest one.
  2974. * src/SegmentMan.cc
  2975. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2976. Updated doc.
  2977. * doc/aria2c.1.txt
  2978. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2979. Updated doc.
  2980. * src/AbstractCommand.cc
  2981. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2982. Handle the case when DownloadContext has no FileEntry.
  2983. * src/XmlRpcMethodImpl.cc
  2984. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2985. Handle the situation where struct option.name is char *.
  2986. * configure.ac
  2987. * src/OptionParser.cc
  2988. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Code cleanup
  2990. * src/AbstractCommand.cc
  2991. * src/DownloadCommand.cc
  2992. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2993. Use option of each download to create AuthConfig instead of global
  2994. option.
  2995. * src/AuthConfigFactory.cc
  2996. * src/AuthConfigFactory.h
  2997. * src/FtpNegotiationCommand.cc
  2998. * src/HttpRequest.cc
  2999. * src/HttpRequest.h
  3000. * src/HttpRequestCommand.cc
  3001. * src/HttpSkipResponseCommand.cc
  3002. * src/MultiUrlRequestInfo.cc
  3003. * test/AuthConfigFactoryTest.cc
  3004. * test/FtpConnectionTest.cc
  3005. * test/HttpRequestTest.cc
  3006. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3007. Don't call prepareForRetry(1) if all segments are ignored in
  3008. SegmentMan.
  3009. * src/AbstractCommand.cc
  3010. * src/BitfieldMan.cc
  3011. * src/BitfieldMan.h
  3012. * src/SegmentMan.cc
  3013. * src/SegmentMan.h
  3014. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Removed FileEntry::getAssociatedUris()
  3016. * src/FileEntry.h
  3017. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3018. Updated doc: TODO1.5 -> TODO
  3019. * src/FileEntry.cc
  3020. * src/HttpResponseCommand.cc
  3021. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3022. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3023. involved.
  3024. * src/RequestGroup.cc
  3025. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3026. Eliminated duplicated filterBitfield initialization code.
  3027. * src/BitfieldMan.cc
  3028. * src/BitfieldMan.h
  3029. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3031. relatively naive approach, though). For DownloadFailureException,
  3032. we handle the case when req is null properly.
  3033. * src/AbstractCommand.cc
  3034. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. Added function returning suffix of control file to
  3036. DefaultBtProgressInfoFile.
  3037. * src/DefaultBtProgressInfoFile.cc
  3038. * src/DefaultBtProgressInfoFile.h
  3039. * src/RequestGroup.cc
  3040. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3041. Documented getVersion in man page.
  3042. * doc/aria2c.1.txt
  3043. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3044. Documented type of offset and num for tellWaiting xml-rpc method.
  3045. * doc/aria2c.1.txt
  3046. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3047. Implemented getVersion xml-rpc method. This method returns struct
  3048. which has 2 key-value pairs: "version" key is associated to the
  3049. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3050. associated to the list of enabled features, such as "Async DNS",
  3051. "BitTorrent".
  3052. * src/FeatureConfig.h
  3053. * src/XmlRpcMethodFactory.cc
  3054. * src/XmlRpcMethodImpl.cc
  3055. * src/XmlRpcMethodImpl.h
  3056. * test/XmlRpcMethodTest.cc
  3057. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3058. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3059. for compatibility issue.
  3060. * src/SocketCore.cc
  3061. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3062. Fixed compile error with openSSL
  3063. * src/bittorrent_helper.cc
  3064. * src/messageDigest.h
  3065. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Removed bad code: setting certificate type priority to key
  3067. exchange priority.
  3068. * src/SocketCore.cc
  3069. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3070. Disconnect seeder if client is also in seed state.
  3071. * src/BtBitfieldMessage.cc
  3072. * src/BtHaveAllMessage.cc
  3073. * src/BtHaveMessage.cc
  3074. * src/message.h
  3075. * test/BtBitfieldMessageTest.cc
  3076. * test/BtHaveAllMessageTest.cc
  3077. * test/BtHaveMessageTest.cc
  3078. * test/MockPieceStorage.h
  3079. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3080. Keep CreateRequestCommand in queue when no segment is available so
  3081. that they can pick up pieces which slow BitTorrent peers are
  3082. downloading.
  3083. * src/AbstractCommand.cc
  3084. * src/CreateRequestCommand.cc
  3085. * src/CreateRequestCommand.h
  3086. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3087. --bt-stop-timeout now only checks download speed.
  3088. * src/BtStopDownloadCommand.cc
  3089. * src/BtStopDownloadCommand.h
  3090. * src/BtSetup.cc
  3091. * src/usage_text.h
  3092. * doc/aria2c.1.txt
  3093. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3094. Fixed compile error regarding BUFSIZE.
  3095. * src/DownloadCommand.cc
  3096. * src/DownloadCommand.h
  3097. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3098. Documented tellWaiting xml-rpc method in man page.
  3099. * doc/aria2c.1.txt
  3100. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3101. Bump up version number to 1.5.0
  3102. * configure.ac
  3103. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3104. Removed resolved TODO1.5
  3105. * src/AbstractCommand.cc
  3106. * src/DownloadCommand.cc
  3107. * src/RequestGroup.cc
  3108. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3109. Release pooled and in-flight Request objectsand URIResult objects
  3110. in FileEntry after download completed.
  3111. * src/DownloadContext.cc
  3112. * src/DownloadContext.h
  3113. * src/FileEntry.cc
  3114. * src/FileEntry.h
  3115. * src/RequestGroup.cc
  3116. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3117. Set manual and source attribute in aria2c.1.txt
  3118. * doc/aria2c.1.txt
  3119. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3120. Documented that the default value of --use-head is 'false' in man
  3121. page.
  3122. * doc/aria2c.1.txt
  3123. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3124. Added bt-stop-timeout option to -i list.
  3125. * doc/aria2c.1.txt
  3126. * src/download_helper.cc
  3127. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3128. Fixed typo
  3129. * doc/aria2c.1.txt
  3130. * src/usage_text.h
  3131. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3132. Removed peer-id-prefix option from -i list.
  3133. * doc/aria2c.1.txt
  3134. * src/download_helper.cc
  3135. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3136. Fixed typo
  3137. * doc/aria2c.1.txt
  3138. * src/usage_text.h
  3139. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3140. Documented --bt-stop-timeout option in man page.
  3141. * doc/aria2c.1.txt
  3142. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3143. Updated README regarding multi-file torrent web-seeding.
  3144. * doc/README.txt
  3145. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3146. Updated man page regarding multi-file torrent web-seeding.
  3147. * doc/aria2c.1.txt
  3148. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Updated doc
  3150. * src/version_usage.cc
  3151. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3152. Winsock select() doesn't work if no socket is in FD_SET. To
  3153. overcome this problem, a dummy socket is added to FD_SET and it is
  3154. given to select().
  3155. * src/SelectEventPoll.cc
  3156. * src/SelectEventPoll.h
  3157. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3158. Disabled --use-head option by default because --use-head=true
  3159. causes problems on some web sites.
  3160. * src/OptionHandlerFactory.cc
  3161. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3162. Print URL List in -S option for torrent.
  3163. * src/bittorrent_helper.cc
  3164. * src/bittorrent_helper.h
  3165. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3166. Allocate buffer in ctor of DownloadCommand.
  3167. * src/DownloadCommand.cc
  3168. * src/DownloadCommand.h
  3169. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3170. Removed DiskAdaptor::onDownloadComplete()
  3171. * src/DirectDiskAdaptor.cc
  3172. * src/DirectDiskAdaptor.h
  3173. * src/DiskAdaptor.h
  3174. * src/MultiDiskAdaptor.cc
  3175. * src/MultiDiskAdaptor.h
  3176. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3177. Committed missing BtStopDownloadCommand.{cc,h}
  3178. * src/BtStopDownloadCommand.cc
  3179. * src/BtStopDownloadCommand.h
  3180. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3181. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3182. download if the download speed is 0 and the number of seeder is 0
  3183. in consecutive SEC seconds. By default, this function is disabled.
  3184. * src/BtSetup.cc
  3185. * src/Makefile.am
  3186. * src/OptionHandlerFactory.cc
  3187. * src/prefs.cc
  3188. * src/prefs.h
  3189. * src/usage_text.h
  3190. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3191. Removed the call to DiskAdaptor::onDownloadComplete() from
  3192. BtCheckIntegrityEntry and DefaultPieceStorage.
  3193. * src/BtCheckIntegrityEntry.cc
  3194. * src/DefaultPieceStorage.cc
  3195. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3196. Commented out throw statements when number of piece is 0 to
  3197. download 0 length torrent.
  3198. * src/bittorrent_helper.cc
  3199. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3200. Call RequestGroup::createNextCommandWithAdj() from
  3201. BtFileAllocationEntry if at least one FileEntry has URI. The
  3202. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3203. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3204. * src/BtFileAllocationEntry.cc
  3205. * src/FileEntry.h
  3206. * src/RequestGroup.cc
  3207. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3208. Generate peer ID after SimpleRandomizer is initialized.
  3209. * src/main.cc
  3210. * src/option_processing.cc
  3211. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3212. Removed unused method argument.
  3213. * src/CreateRequestCommand.cc
  3214. * src/RequestGroup.cc
  3215. * src/RequestGroup.h
  3216. * src/RequestGroupMan.cc
  3217. * src/TrackerWatcherCommand.cc
  3218. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3219. Made URI reusing function work.
  3220. * src/CreateRequestCommand.cc
  3221. * src/FileEntry.cc
  3222. * src/FileEntry.h
  3223. * test/FileEntryTest.cc
  3224. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3225. Add formerly fastest PeerStat's sessionDownloadLength to new
  3226. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3227. bytes in a session.
  3228. * src/PeerStat.cc
  3229. * src/SegmentMan.cc
  3230. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3231. If pipelining is enabled, we can always pool socket.
  3232. * src/HttpDownloadCommand.cc
  3233. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3234. In a single file download, file size becomes known just after
  3235. downloading, set total length to FileEntry object when download
  3236. completed.
  3237. * src/DownloadCommand.cc
  3238. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3239. Use std::vector::reserve() for fileEntries and pieceHashes in
  3240. bittorrent_helper
  3241. * src/bittorrent_helper.cc
  3242. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3243. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3244. Removed hidden option PREF_RESET_URI.
  3245. * src/AbstractCommand.cc
  3246. * src/OptionHandlerFactory.cc
  3247. * src/prefs.cc
  3248. * src/prefs.h
  3249. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3250. Removed unused variable/function.
  3251. * src/PeerStat.h
  3252. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3253. Show first URL in Download Results if file path is not available.
  3254. * src/FileEntry.h
  3255. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3256. Throw exception if file path doesn't exist in FTP URL.
  3257. * src/InitiateConnectionCommandFactory.cc
  3258. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3260. * src/BitfieldMan.cc
  3261. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3262. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3263. of PeerStat in SegmentMan. peerStats is used for calculating
  3264. download speed. Therefore all active PeerStats should be in
  3265. there. Another one is _fastestPeerStats and it only contains
  3266. fastest PeerStat for each hostname/protocol pair. They are used
  3267. for updating ServerStat.
  3268. * src/DownloadCommand.cc
  3269. * src/Request.h
  3270. * src/RequestGroupMan.cc
  3271. * src/SegmentMan.cc
  3272. * src/SegmentMan.h
  3273. * test/SegmentManTest.cc
  3274. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Try all available addresses returned by DNS until it gets
  3276. connected in HTTP(S)/FTP download
  3277. * src/AbstractCommand.cc
  3278. * src/AbstractCommand.h
  3279. * src/AbstractProxyRequestCommand.cc
  3280. * src/AbstractProxyRequestCommand.h
  3281. * src/DNSCache.h
  3282. * src/DownloadEngine.cc
  3283. * src/DownloadEngine.h
  3284. * src/FtpInitiateConnectionCommand.cc
  3285. * src/FtpInitiateConnectionCommand.h
  3286. * src/FtpNegotiationCommand.cc
  3287. * src/FtpNegotiationCommand.h
  3288. * src/HttpInitiateConnectionCommand.cc
  3289. * src/HttpInitiateConnectionCommand.h
  3290. * src/HttpRequestCommand.cc
  3291. * src/HttpRequestCommand.h
  3292. * src/InitiateConnectionCommand.cc
  3293. * src/InitiateConnectionCommand.h
  3294. * test/DNSCacheTest.cc
  3295. * test/Makefile.am
  3296. * test/SimpleDNSCacheTest.cc
  3297. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3298. Updated doc
  3299. * src/download_helper.cc
  3300. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3301. Refactored fieldMan ctor.
  3302. * src/BitfieldMan.cc
  3303. * src/BitfieldMan.h
  3304. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3305. Don't print "No files to download." message if -S is given.
  3306. * src/main.cc
  3307. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3308. Set referer and method to newly created Request object.
  3309. * src/CreateRequestCommand.cc
  3310. * src/FileEntry.cc
  3311. * src/FileEntry.h
  3312. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3313. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3314. * src/AbstractCommand.cc
  3315. * src/AbstractCommand.h
  3316. * src/CreateRequestCommand.cc
  3317. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3318. Get proxy download working
  3319. * src/AbstractProxyRequestCommand.cc
  3320. * src/AbstractProxyRequestCommand.h
  3321. * src/AbstractProxyResponseCommand.cc
  3322. * src/AbstractProxyResponseCommand.h
  3323. * src/FtpInitiateConnectionCommand.cc
  3324. * src/FtpTunnelRequestCommand.cc
  3325. * src/FtpTunnelRequestCommand.h
  3326. * src/FtpTunnelResponseCommand.cc
  3327. * src/FtpTunnelResponseCommand.h
  3328. * src/HttpInitiateConnectionCommand.cc
  3329. * src/HttpProxyRequestCommand.cc
  3330. * src/HttpProxyRequestCommand.h
  3331. * src/HttpProxyResponseCommand.cc
  3332. * src/HttpProxyResponseCommand.h
  3333. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3334. Use SegmentMan::getSegment(cuid) for single file download.
  3335. * src/AbstractCommand.cc
  3336. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3337. Fixed bufSize calculation
  3338. * src/DownloadCommand.cc
  3339. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3340. Don't append "/" if base URI ends with "/".
  3341. * src/bittorrent_helper.cc
  3342. * test/url-list-multiFile.torrent
  3343. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3344. HTTP pipelining is now working. Fixed Segmention fault in
  3345. BitfieldMan's copy ctor.
  3346. * src/AbstractCommand.cc
  3347. * src/BitfieldMan.cc
  3348. * src/BitfieldMan.h
  3349. * src/DownloadCommand.cc
  3350. * src/HttpDownloadCommand.cc
  3351. * src/HttpRequest.cc
  3352. * src/SegmentMan.cc
  3353. * src/SegmentMan.h
  3354. * test/BitfieldManTest.cc
  3355. * test/SegmentManTest.cc
  3356. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3357. Removed ServerHost. Same functionality is implemented using
  3358. FileEntry's in-flight Request objects.
  3359. * src/AbstractCommand.cc
  3360. * src/BtDependency.cc
  3361. * src/CreateRequestCommand.cc
  3362. * src/FileEntry.cc
  3363. * src/FileEntry.h
  3364. * src/FtpNegotiationCommand.cc
  3365. * src/HttpResponseCommand.cc
  3366. * src/Makefile.am
  3367. * src/Metalink2RequestGroup.cc
  3368. * src/RequestGroup.cc
  3369. * src/RequestGroup.h
  3370. * src/ServerHost.cc: Removed
  3371. * src/ServerHost.h: Removed
  3372. * test/BtDependencyTest.cc
  3373. * test/FileEntryTest.cc
  3374. * test/RequestGroupTest.cc
  3375. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3376. Rewritten PeerStat handling. In the previous implementation,
  3377. faster command tries to find slower command. In this new
  3378. implementation, slower command tries to find faster command.
  3379. PeerStat is now created in each HTTP/FTP request to get download
  3380. rate correctly. If the download range is small, the download rate
  3381. tends to small and this will occur at the later stage of download.
  3382. * src/AbstractCommand.cc
  3383. * src/DownloadCommand.cc
  3384. * src/FileEntry.cc
  3385. * src/FileEntry.h
  3386. * src/Request.cc
  3387. * src/Request.h
  3388. * src/RequestGroup.h
  3389. * src/RequestGroupMan.cc
  3390. * src/SegmentMan.cc
  3391. * src/SegmentMan.h
  3392. * test/SegmentManTest.cc
  3393. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. Removed _uris from RequestGroup. All functions that refer to _uris
  3395. were moved to FileEntry. Exit status code are now defined in
  3396. DownloadResultCode.h.
  3397. * src/AbstractCommand.cc
  3398. * src/AdaptiveURISelector.cc
  3399. * src/AdaptiveURISelector.h
  3400. * src/AutoSaveCommand.cc
  3401. * src/BtPostDownloadHandler.cc
  3402. * src/CheckIntegrityDispatcherCommand.cc
  3403. * src/CookieStorage.cc
  3404. * src/DHTAutoSaveCommand.cc
  3405. * src/DHTBucketRefreshCommand.cc
  3406. * src/DHTEntryPointNameResolveCommand.cc
  3407. * src/DHTInteractionCommand.cc
  3408. * src/DHTPeerAnnounceCommand.cc
  3409. * src/DHTTokenUpdateCommand.cc
  3410. * src/DlAbortEx.h
  3411. * src/DlRetryEx.h
  3412. * src/DownloadCommand.cc
  3413. * src/DownloadContext.h
  3414. * src/DownloadFailureException.h
  3415. * src/DownloadResult.h
  3416. * src/DownloadResultCode.h
  3417. * src/FeedbackURISelector.cc
  3418. * src/FeedbackURISelector.h
  3419. * src/FileEntry.cc
  3420. * src/FileEntry.h
  3421. * src/FtpNegotiationCommand.cc
  3422. * src/HttpListenCommand.cc
  3423. * src/HttpResponseCommand.cc
  3424. * src/HttpServerResponseCommand.cc
  3425. * src/HttpSkipResponseCommand.cc
  3426. * src/InOrderURISelector.cc
  3427. * src/InOrderURISelector.h
  3428. * src/Makefile.am
  3429. * src/Makefile.in
  3430. * src/Metalink2RequestGroup.cc
  3431. * src/MultiUrlRequestInfo.cc
  3432. * src/MultiUrlRequestInfo.h
  3433. * src/OptionHandlerFactory.cc
  3434. * src/PeerListenCommand.cc
  3435. * src/RecoverableException.h
  3436. * src/RequestGroup.cc
  3437. * src/RequestGroup.h
  3438. * src/RequestGroupMan.cc
  3439. * src/RequestGroupMan.h
  3440. * src/TimedHaltCommand.cc
  3441. * src/TrackerWatcherCommand.cc
  3442. * src/URIResult.cc
  3443. * src/URIResult.h
  3444. * src/URISelector.h
  3445. * src/XmlRpcMethodImpl.cc
  3446. * src/bittorrent_helper.cc
  3447. * src/bittorrent_helper.h
  3448. * src/download_helper.cc
  3449. * src/main.cc
  3450. * src/option_processing.cc
  3451. * test/BtDependencyTest.cc
  3452. * test/BtPostDownloadHandlerTest.cc
  3453. * test/CookieStorageTest.cc
  3454. * test/DefaultBtMessageDispatcherTest.cc
  3455. * test/DownloadHandlerFactoryTest.cc
  3456. * test/DownloadHelperTest.cc
  3457. * test/FeedbackURISelectorTest.cc
  3458. * test/FileEntryTest.cc
  3459. * test/InOrderURISelectorTest.cc
  3460. * test/Metalink2RequestGroupTest.cc
  3461. * test/MetalinkPostDownloadHandlerTest.cc
  3462. * test/RequestGroupManTest.cc
  3463. * test/RequestGroupTest.cc
  3464. * test/XmlRpcMethodTest.cc
  3465. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3466. Removed MockBtContext.h
  3467. * test/Makefile.am
  3468. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3469. Removed _currentRequest from StreamCheckIntegrityEntry and
  3470. StreamFileAllocationEntry.
  3471. * src/AbstractCommand.cc
  3472. * src/HttpResponseCommand.cc
  3473. * src/RequestGroup.cc
  3474. * src/StreamCheckIntegrityEntry.cc
  3475. * src/StreamCheckIntegrityEntry.h
  3476. * src/StreamFileAllocationEntry.cc
  3477. * src/StreamFileAllocationEntry.h
  3478. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3479. Rewritten DownloadContext and removed SingleFileDownloadContext
  3480. and BtContext and its derived classes. BitTorrent specific
  3481. attributes are now set by DownloadContext::setAttribute() with key
  3482. bittorrent::BITTORRENT.
  3483. * src/AbstractBtMessage.cc
  3484. * src/AbstractBtMessage.h
  3485. * src/AbstractCommand.cc
  3486. * src/AbstractCommand.h
  3487. * src/AbstractProxyRequestCommand.cc
  3488. * src/AbstractProxyResponseCommand.cc
  3489. * src/ActivePeerConnectionCommand.cc
  3490. * src/ActivePeerConnectionCommand.h
  3491. * src/AnnounceList.cc
  3492. * src/BtCheckIntegrityEntry.cc
  3493. * src/BtConstants.h
  3494. * src/BtContext.h: Removed
  3495. * src/BtDependency.cc
  3496. * src/BtExtendedMessage.cc
  3497. * src/BtPieceMessage.cc
  3498. * src/BtPieceMessage.h
  3499. * src/BtPostDownloadHandler.cc
  3500. * src/BtRegistry.cc
  3501. * src/BtRegistry.h
  3502. * src/BtSetup.cc
  3503. * src/CheckIntegrityCommand.cc
  3504. * src/CheckIntegrityEntry.cc
  3505. * src/ChecksumCheckIntegrityEntry.cc
  3506. * src/ConsoleStatCalc.cc
  3507. * src/ContentTypeRequestGroupCriteria.cc
  3508. * src/DHTGetPeersCommand.cc
  3509. * src/DHTGetPeersCommand.h
  3510. * src/DHTPeerLookupTask.cc
  3511. * src/DHTPeerLookupTask.h
  3512. * src/DHTTaskFactory.h
  3513. * src/DHTTaskFactoryImpl.cc
  3514. * src/DHTTaskFactoryImpl.h
  3515. * src/DefaultBtAnnounce.cc
  3516. * src/DefaultBtAnnounce.h
  3517. * src/DefaultBtContext.cc: Removed
  3518. * src/DefaultBtContext.h: Removed
  3519. * src/DefaultBtInteractive.cc
  3520. * src/DefaultBtInteractive.h
  3521. * src/DefaultBtMessageDispatcher.cc
  3522. * src/DefaultBtMessageDispatcher.h
  3523. * src/DefaultBtMessageFactory.cc
  3524. * src/DefaultBtMessageFactory.h
  3525. * src/DefaultBtMessageReceiver.cc
  3526. * src/DefaultBtMessageReceiver.h
  3527. * src/DefaultBtProgressInfoFile.cc
  3528. * src/DefaultBtRequestFactory.cc
  3529. * src/DefaultBtRequestFactory.h
  3530. * src/DefaultExtensionMessageFactory.cc
  3531. * src/DefaultExtensionMessageFactory.h
  3532. * src/DefaultPeerStorage.cc
  3533. * src/DefaultPeerStorage.h
  3534. * src/DefaultPieceStorage.cc
  3535. * src/DefaultSegmentManFactory.cc
  3536. * src/DiskAdaptor.cc
  3537. * src/DiskAdaptor.h
  3538. * src/DownloadContext.cc
  3539. * src/DownloadContext.h
  3540. * src/DownloadEngine.cc
  3541. * src/DownloadEngineFactory.cc
  3542. * src/DownloadHandler.cc
  3543. * src/DownloadResult.h
  3544. * src/FileAllocationCommand.cc
  3545. * src/FileAllocationDispatcherCommand.cc
  3546. * src/FileAllocationEntry.cc
  3547. * src/FileEntry.h
  3548. * src/FillRequestGroupCommand.cc
  3549. * src/FtpDownloadCommand.cc
  3550. * src/FtpFinishDownloadCommand.cc
  3551. * src/FtpInitiateConnectionCommand.cc
  3552. * src/FtpNegotiationCommand.cc
  3553. * src/FtpTunnelRequestCommand.cc
  3554. * src/FtpTunnelResponseCommand.cc
  3555. * src/HandshakeExtensionMessage.cc
  3556. * src/HandshakeExtensionMessage.h
  3557. * src/HaveEraseCommand.cc
  3558. * src/HttpDownloadCommand.cc
  3559. * src/HttpInitiateConnectionCommand.cc
  3560. * src/HttpProxyRequestCommand.cc
  3561. * src/HttpProxyResponseCommand.cc
  3562. * src/HttpRequest.cc
  3563. * src/HttpRequest.h
  3564. * src/HttpRequestCommand.cc
  3565. * src/HttpResponseCommand.cc
  3566. * src/HttpServerBodyCommand.cc
  3567. * src/HttpServerCommand.cc
  3568. * src/HttpSkipResponseCommand.cc
  3569. * src/InitiateConnectionCommandFactory.cc
  3570. * src/InitiatorMSEHandshakeCommand.cc
  3571. * src/InitiatorMSEHandshakeCommand.h
  3572. * src/IteratableChecksumValidator.cc
  3573. * src/IteratableChecksumValidator.h
  3574. * src/IteratableChunkChecksumValidator.cc
  3575. * src/MSEHandshake.cc
  3576. * src/MSEHandshake.h
  3577. * src/Makefile.am
  3578. * src/Makefile.in
  3579. * src/Metalink2RequestGroup.cc
  3580. * src/MetalinkPostDownloadHandler.cc
  3581. * src/MultiDiskAdaptor.cc
  3582. * src/MultiDiskAdaptor.h
  3583. * src/MultiFileAllocationIterator.cc
  3584. * src/MultiUrlRequestInfo.cc
  3585. * src/PeerChokeCommand.cc
  3586. * src/PeerChokeCommand.h
  3587. * src/PeerInitiateConnectionCommand.cc
  3588. * src/PeerInitiateConnectionCommand.h
  3589. * src/PeerInteractionCommand.cc
  3590. * src/PeerInteractionCommand.h
  3591. * src/PeerReceiveHandshakeCommand.cc
  3592. * src/PieceHashCheckIntegrityEntry.cc
  3593. * src/RealtimeCommand.cc
  3594. * src/ReceiverMSEHandshakeCommand.cc
  3595. * src/RequestGroup.cc
  3596. * src/RequestGroup.h
  3597. * src/RequestGroupEntry.cc
  3598. * src/RequestGroupMan.cc
  3599. * src/SeedCheckCommand.cc
  3600. * src/SeedCheckCommand.h
  3601. * src/SegmentMan.cc
  3602. * src/ShareRatioSeedCriteria.h
  3603. * src/SingleFileDownloadContext.cc: Removed
  3604. * src/SingleFileDownloadContext.h: Removed
  3605. * src/SleepCommand.cc
  3606. * src/StreamCheckIntegrityEntry.cc
  3607. * src/TrackerWatcherCommand.cc
  3608. * src/TrackerWatcherCommand.h
  3609. * src/UnknownLengthPieceStorage.cc
  3610. * src/Util.cc
  3611. * src/Util.h
  3612. * src/XmlRpcMethodImpl.cc
  3613. * src/bittorrent_helper.cc
  3614. * src/bittorrent_helper.h
  3615. * src/download_helper.cc
  3616. * src/main.cc
  3617. * src/option_processing.cc
  3618. * test/BitfieldManTest.cc
  3619. * test/BittorrentHelperTest.cc
  3620. * test/BtCancelMessageTest.cc
  3621. * test/BtChokeMessageTest.cc
  3622. * test/BtDependencyTest.cc
  3623. * test/BtPieceMessageTest.cc
  3624. * test/BtPostDownloadHandlerTest.cc
  3625. * test/BtRegistryTest.cc
  3626. * test/BtRejectMessageTest.cc
  3627. * test/BtRequestMessageTest.cc
  3628. * test/DHTPeerAnnounceStorageTest.cc
  3629. * test/DefaultBtAnnounceTest.cc
  3630. * test/DefaultBtContextTest.cc: Removed
  3631. * test/DefaultBtMessageDispatcherTest.cc
  3632. * test/DefaultBtMessageFactoryTest.cc
  3633. * test/DefaultBtProgressInfoFileTest.cc
  3634. * test/DefaultBtRequestFactoryTest.cc
  3635. * test/DefaultExtensionMessageFactoryTest.cc
  3636. * test/DefaultPeerStorageTest.cc
  3637. * test/DefaultPieceStorageTest.cc
  3638. * test/DirectDiskAdaptorTest.cc
  3639. * test/DownloadContextTest.cc
  3640. * test/DownloadHandlerFactoryTest.cc
  3641. * test/DownloadHelperTest.cc
  3642. * test/HandshakeExtensionMessageTest.cc
  3643. * test/HttpRequestTest.cc
  3644. * test/HttpResponseTest.cc
  3645. * test/IteratableChecksumValidatorTest.cc
  3646. * test/IteratableChunkChecksumValidatorTest.cc
  3647. * test/MSEHandshakeTest.cc
  3648. * test/Makefile.am
  3649. * test/Makefile.in
  3650. * test/Metalink2RequestGroupTest.cc
  3651. * test/MetalinkPostDownloadHandlerTest.cc
  3652. * test/MockBtContext.h: Removed
  3653. * test/MockDHTTaskFactory.h
  3654. * test/MockDownloadContext.h: Removed
  3655. * test/MockPieceStorage.h
  3656. * test/MultiDiskAdaptorTest.cc
  3657. * test/MultiFileAllocationIteratorTest.cc
  3658. * test/RequestGroupManTest.cc
  3659. * test/RequestGroupTest.cc
  3660. * test/SegmentManTest.cc
  3661. * test/ShareRatioSeedCriteriaTest.cc
  3662. * test/SingleFileDownloadContextTest.cc: Removed
  3663. * test/UtilTest.cc
  3664. * test/XmlRpcMethodTest.cc
  3665. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3666. Added experimental support of WEB-Seeding for multi-file torrent.
  3667. Due to fundamental changes in file handling in HTTP/FTP code, many
  3668. functions are not working: PeerStat, ServerHost, proxy..etc
  3669. * src/AbstractCommand.cc
  3670. * src/AbstractCommand.h
  3671. * src/BitfieldMan.cc
  3672. * src/BitfieldMan.h
  3673. * src/CreateRequestCommand.cc
  3674. * src/CreateRequestCommand.h
  3675. * src/DefaultPieceStorage.cc
  3676. * src/DefaultPieceStorage.h
  3677. * src/DownloadCommand.cc
  3678. * src/DownloadCommand.h
  3679. * src/DownloadContext.cc
  3680. * src/DownloadContext.h
  3681. * src/FileEntry.cc
  3682. * src/FileEntry.h
  3683. * src/FtpDownloadCommand.cc
  3684. * src/FtpDownloadCommand.h
  3685. * src/FtpFinishDownloadCommand.cc
  3686. * src/FtpFinishDownloadCommand.h
  3687. * src/FtpInitiateConnectionCommand.cc
  3688. * src/FtpInitiateConnectionCommand.h
  3689. * src/FtpNegotiationCommand.cc
  3690. * src/FtpNegotiationCommand.h
  3691. * src/FtpTunnelResponseCommand.cc
  3692. * src/HttpDownloadCommand.cc
  3693. * src/HttpDownloadCommand.h
  3694. * src/HttpInitiateConnectionCommand.cc
  3695. * src/HttpInitiateConnectionCommand.h
  3696. * src/HttpProxyResponseCommand.cc
  3697. * src/HttpRequest.cc
  3698. * src/HttpRequest.h
  3699. * src/HttpRequestCommand.cc
  3700. * src/HttpRequestCommand.h
  3701. * src/HttpResponseCommand.cc
  3702. * src/HttpResponseCommand.h
  3703. * src/HttpSkipResponseCommand.cc
  3704. * src/HttpSkipResponseCommand.h
  3705. * src/InitiateConnectionCommand.cc
  3706. * src/InitiateConnectionCommand.h
  3707. * src/InitiateConnectionCommandFactory.cc
  3708. * src/InitiateConnectionCommandFactory.h
  3709. * src/Makefile.am
  3710. * src/PieceStorage.h
  3711. * src/RequestGroup.cc
  3712. * src/RequestGroup.h
  3713. * src/RequestGroupMan.cc
  3714. * src/SegmentMan.cc
  3715. * src/SegmentMan.h
  3716. * src/SingleFileDownloadContext.h
  3717. * src/StreamFileAllocationEntry.cc
  3718. * src/TrackerWatcherCommand.cc
  3719. * src/UnknownLengthPieceStorage.cc
  3720. * src/UnknownLengthPieceStorage.h
  3721. * src/array_fun.h
  3722. * src/bitfield.h
  3723. * src/download_helper.cc
  3724. * test/DownloadContextTest.cc
  3725. * test/Makefile.am
  3726. * test/MockDownloadContext.h
  3727. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3728. Added tellWaiting XML-RPC method.
  3729. * src/SingleFileDownloadContext.cc
  3730. * src/XmlRpcMethodFactory.cc
  3731. * src/XmlRpcMethodImpl.cc
  3732. * src/XmlRpcMethodImpl.h
  3733. * test/XmlRpcMethodTest.cc
  3734. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3735. Updated CookieStorageTest
  3736. * test/CookieStorageTest.cc
  3737. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3738. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3739. handle excepion inside these functions.
  3740. * src/LibgnutlsTLSContext.cc
  3741. * src/LibgnutlsTLSContext.h
  3742. * src/LibsslTLSContext.cc
  3743. * src/LibsslTLSContext.h
  3744. * src/MultiUrlRequestInfo.cc
  3745. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3746. Added comment
  3747. * src/RequestGroup.cc
  3748. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3749. In CookieStorage::load() and saveNsFormat(), handle exception
  3750. inside the functions. When saving Cookies, first write temporary
  3751. file and after successful writes, then renames it to final
  3752. destination.
  3753. * src/CookieStorage.cc
  3754. * src/CookieStorage.h
  3755. * src/MultiUrlRequestInfo.cc
  3756. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3757. The default value of --dir option is the absolute path to the
  3758. current directory. If getcwd() is failed, then it is ".", which is
  3759. the same value with old implementation. This change is necessary
  3760. because after daemon() call, the current working directory is
  3761. changed to /.
  3762. * src/File.cc
  3763. * src/File.h
  3764. * src/OptionHandlerFactory.cc
  3765. * src/option_processing.cc
  3766. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3767. Call daemon() with arguments(0,0), which means daemon() changes
  3768. current working directory to / and redirects stdin, stdout and
  3769. stderr to /dev/null.
  3770. * src/option_processing.cc
  3771. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3772. Small performance optimizations.
  3773. * src/RequestGroupMan.cc
  3774. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3775. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3776. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3777. * src/RequestGroupMan.cc
  3778. * src/RequestGroupMan.h
  3779. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3780. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3781. setNoWiat(true) if newly created command calls
  3782. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3783. * src/HttpListenCommand.cc
  3784. * src/HttpServerBodyCommand.cc
  3785. * src/HttpServerCommand.cc
  3786. * src/HttpServerResponseCommand.cc
  3787. * src/InitiateConnectionCommand.cc
  3788. * src/RequestGroup.cc
  3789. * src/StreamFileAllocationEntry.cc
  3790. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3791. Removed include vector
  3792. * src/BtRegistry.h
  3793. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3794. Rewritten BtRegistry
  3795. * src/BtRegistry.cc
  3796. * src/BtRegistry.h
  3797. * src/BtSetup.cc
  3798. * src/ConsoleStatCalc.cc
  3799. * src/PeerInteractionCommand.cc
  3800. * src/PeerReceiveHandshakeCommand.cc
  3801. * src/ReceiverMSEHandshakeCommand.cc
  3802. * src/RequestGroup.cc
  3803. * src/XmlRpcMethodImpl.cc
  3804. * test/BtRegistryTest.cc
  3805. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3807. * src/DefaultBtProgressInfoFile.cc
  3808. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3809. Throw an exception if position is less than 0.
  3810. * src/XmlRpcMethodImpl.cc
  3811. * test/XmlRpcMethodTest.cc
  3812. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. Use writeFilePath() in ConsoleStatCalc.cc
  3814. * src/ConsoleStatCalc.cc
  3815. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3816. Receive the return value as const reference from
  3817. DownloadContext::getFileEntries().
  3818. * src/DefaultPieceStorage.cc
  3819. * src/RequestGroupMan.cc
  3820. * src/XmlRpcMethodImpl.cc
  3821. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3822. DownloadContext now has _fileEntries so that
  3823. DownloadContext::getFileEntries() can returns its const reference.
  3824. * src/DefaultBtContext.cc
  3825. * src/DefaultBtContext.h
  3826. * src/DownloadContext.cc
  3827. * src/DownloadContext.h
  3828. * src/SingleFileDownloadContext.cc
  3829. * src/SingleFileDownloadContext.h
  3830. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3831. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3832. writeFilePath() function template from RequestGroupMan.cc to
  3833. FileEntry.h
  3834. * src/FileEntry.h
  3835. * src/RequestGroupMan.cc
  3836. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3837. Documented 'position' parameter is starting from 0 in man page.
  3838. * doc/aria2c.1.txt
  3839. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3840. Updated doc.
  3841. * src/MSEHandshake.cc
  3842. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3843. Removed _acceptFeatures and its accessor functions from
  3844. RequestGroup since they are not used practically.
  3845. * src/HttpRequestCommand.cc
  3846. * src/RequestGroup.cc
  3847. * src/RequestGroup.h
  3848. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3849. Removed member _maxTries from RequestGroup class to avoid
  3850. duplicate option value. Those classes who refer this variable
  3851. should use option value of PREF_MAX_TRIES directly.
  3852. * src/AbstractCommand.cc
  3853. * src/RequestGroup.cc
  3854. * src/RequestGroup.h
  3855. * src/TrackerWatcherCommand.cc
  3856. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3857. * Release 1.4.1
  3858. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3859. Fixed compiler warnings on netbsd
  3860. * src/DHTConnectionImpl.cc
  3861. * src/PeerListenCommand.cc
  3862. * src/PeerSessionResource.cc
  3863. * src/SegmentMan.cc
  3864. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3865. Updated Ukrainian translation. Thanks to all translators.
  3866. * po/uk.po
  3867. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3868. Bump up version number to 1.4.1.
  3869. * configure.ac
  3870. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3871. Added unit tests for strjoin, strconcat and strappend.
  3872. * test/a2functionalTest.cc
  3873. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3874. Rewritten strconcat and strappend using operator+ instead of
  3875. append().
  3876. * src/a2functional.h
  3877. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3879. is enabled.
  3880. * src/Makefile.am
  3881. * test/Makefile.am
  3882. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3883. Added countSeeder() function which counts seeder in the given
  3884. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3885. * src/ConsoleStatCalc.cc
  3886. * src/Peer.h
  3887. * src/XmlRpcMethodImpl.cc
  3888. * test/PeerTest.cc
  3889. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3890. Documented missing seeder in getPeers xml-rpc method.
  3891. Documented uploadLength and numSeeders.
  3892. * doc/aria2c.1.txt
  3893. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. Added uploadLength and numSeeders to the response of tellStatus
  3895. xml-rpc method. Assert that PeerStorage instance is not null
  3896. instead of checking if statement. It should be non-null in this
  3897. context.
  3898. * src/XmlRpcMethodImpl.cc
  3899. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3900. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3901. * src/XmlRpcResponse.cc
  3902. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Avoid intermediate object during string concatenation.
  3904. * src/HttpRequest.cc
  3905. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3906. Added strjoin function template. Use it in pathJoin()
  3907. * src/Util.h
  3908. * src/a2functional.h
  3909. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3910. Avoid intermediate object during string concatenation. Replaced
  3911. post-increment unary operator with pre-increment one in for loop.
  3912. * src/AdaptiveURISelector.cc
  3913. * src/AnnounceList.cc
  3914. * src/AuthConfig.h
  3915. * src/BtBitfieldMessage.cc
  3916. * src/BtExtendedMessage.cc
  3917. * src/BtHandshakeMessage.cc
  3918. * src/BtPieceMessage.cc
  3919. * src/BtPortMessage.cc
  3920. * src/Cookie.cc
  3921. * src/DHTAnnouncePeerMessage.cc
  3922. * src/DHTAutoSaveCommand.cc
  3923. * src/DHTGetPeersReplyMessage.cc
  3924. * src/DHTNode.cc
  3925. * src/DHTQueryMessage.cc
  3926. * src/DHTResponseMessage.cc
  3927. * src/DHTUnknownMessage.cc
  3928. * src/DefaultBtAnnounce.cc
  3929. * src/DefaultBtContext.cc
  3930. * src/DefaultBtInteractive.cc
  3931. * src/DefaultBtProgressInfoFile.cc
  3932. * src/DefaultPeerStorage.cc
  3933. * src/DownloadEngine.cc
  3934. * src/FeatureConfig.cc
  3935. * src/File.cc
  3936. * src/FtpConnection.cc
  3937. * src/FtpNegotiationCommand.cc
  3938. * src/HandshakeExtensionMessage.cc
  3939. * src/HttpConnection.cc
  3940. * src/HttpRequest.cc
  3941. * src/HttpResponseCommand.cc
  3942. * src/HttpServer.cc
  3943. * src/IndexBtMessage.cc
  3944. * src/Metalink2RequestGroup.cc
  3945. * src/OptionHandlerImpl.h
  3946. * src/PStringBuildVisitor.cc
  3947. * src/Peer.cc
  3948. * src/PeerListenCommand.cc
  3949. * src/Piece.cc
  3950. * src/RangeBtMessage.cc
  3951. * src/Request.cc
  3952. * src/Request.h
  3953. * src/RequestGroup.cc
  3954. * src/RequestGroupMan.cc
  3955. * src/ServerStat.cc
  3956. * src/ServerStatMan.cc
  3957. * src/UTPexExtensionMessage.cc
  3958. * src/Util.cc
  3959. * src/a2functional.h
  3960. * src/download_helper.cc
  3961. * src/messageDigest.cc
  3962. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3963. Unchoke a peer randomly at first and second choke round in seed
  3964. state.
  3965. * src/BtSeederStateChoke.cc
  3966. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3967. Added (sock_t) to quiet compiler warnings in MinGW
  3968. * src/SocketCore.cc
  3969. * src/SocketCore.h
  3970. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3971. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3972. * src/EpollEventPoll.h
  3973. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3974. Added fork() emulation using CreateProcess() in MinGW
  3975. * src/RequestGroupMan.cc
  3976. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. * Release 1.4.0
  3978. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3979. Added utf8.torrent to EXTRA_DIST
  3980. * test/Makefile.am
  3981. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3982. Fixed docs of aria2.addMetalink xml-rpc method.
  3983. * doc/aria2c.1.txt
  3984. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3985. Added Slovak translation. Updated Ukrainian and Brazilian
  3986. Portuguese translation. Thanks to all translators.
  3987. * po/sk.po
  3988. * po/uk.po
  3989. * po/pt_BR.po
  3990. * po/LINGUAS
  3991. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3992. Added test case for XmlRpcProcessor to fail to parse malformed
  3993. document.
  3994. * test/XmlRpcRequestProcessorTest.cc
  3995. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Removed *.gmo files in po because they are generated on 'make
  3997. dist'
  3998. * po/*.gmo
  3999. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4000. Documented max-concurrent-downloads of changeGlobalOption method
  4001. in man page.
  4002. * doc/aria2c.1.txt
  4003. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4004. Added max-concurrent-downloads option to changeGlobalOption
  4005. xml-rpc method. Rewritten loop conditional in
  4006. RequestGroupMan::fillRequestGroupFromReserver().
  4007. * src/RequestGroupMan.cc
  4008. * src/RequestGroupMan.h
  4009. * src/XmlRpcMethod.cc
  4010. * src/XmlRpcMethodImpl.cc
  4011. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4012. Documented position parameter in man page.
  4013. * doc/aria2c.1.txt
  4014. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4015. Added 'position' parameter to addUri, addTorrent and addMetalink
  4016. xml-rpc method.
  4017. * src/RequestGroupMan.cc
  4018. * src/RequestGroupMan.h
  4019. * src/XmlRpcMethodImpl.cc
  4020. * test/XmlRpcMethodTest.cc
  4021. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4022. Removed Peer.cc from compile source list when --disable-bittorrent
  4023. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4024. takes Peer.
  4025. * src/DefaultPieceStorage.cc
  4026. * src/DefaultPieceStorage.h
  4027. * src/Makefile.am
  4028. * src/PieceStorage.h
  4029. * src/UnknownLengthPieceStorage.cc
  4030. * src/UnknownLengthPieceStorage.h
  4031. * test/MockPieceStorage.h
  4032. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4033. Implemented getter methods in header files to give them more
  4034. chance of optimization.
  4035. Return const reference for SharadHandle if possible.
  4036. * src/AbstractAuthResolver.cc
  4037. * src/AbstractAuthResolver.h
  4038. * src/AbstractBtMessage.cc
  4039. * src/AbstractBtMessage.h
  4040. * src/AbstractSingleDiskAdaptor.cc
  4041. * src/AbstractSingleDiskAdaptor.h
  4042. * src/AsyncNameResolver.cc
  4043. * src/AsyncNameResolver.h
  4044. * src/BNode.cc
  4045. * src/BNode.h
  4046. * src/BitfieldMan.cc
  4047. * src/BitfieldMan.h
  4048. * src/BtAbortOutstandingRequestEvent.h
  4049. * src/BtExtendedMessage.cc
  4050. * src/BtExtendedMessage.h
  4051. * src/BtSeederStateChoke.cc
  4052. * src/BtSeederStateChoke.h
  4053. * src/Cookie.cc
  4054. * src/Cookie.h
  4055. * src/DHTBucket.cc
  4056. * src/DHTBucket.h
  4057. * src/DHTConnectionImpl.cc
  4058. * src/DHTConnectionImpl.h
  4059. * src/DHTFindNodeReplyMessage.cc
  4060. * src/DHTFindNodeReplyMessage.h
  4061. * src/DHTGetPeersReplyMessage.cc
  4062. * src/DHTGetPeersReplyMessage.h
  4063. * src/DHTInteractionCommand.cc
  4064. * src/DHTMessage.cc
  4065. * src/DHTMessage.h
  4066. * src/DHTMessageDispatcherImpl.cc
  4067. * src/DHTMessageEntry.cc
  4068. * src/DHTMessageReceiver.cc
  4069. * src/DHTMessageReceiver.h
  4070. * src/DHTMessageTrackerEntry.cc
  4071. * src/DHTMessageTrackerEntry.h
  4072. * src/DHTPeerAnnounceEntry.cc
  4073. * src/DHTPeerAnnounceEntry.h
  4074. * src/DHTPeerLookupTask.cc
  4075. * src/DHTPeerLookupTask.h
  4076. * src/DHTRoutingTableDeserializer.cc
  4077. * src/DHTRoutingTableDeserializer.h
  4078. * src/DefaultBtAnnounce.cc
  4079. * src/DefaultBtAnnounce.h
  4080. * src/DefaultBtMessageDispatcher.cc
  4081. * src/DefaultBtMessageDispatcher.h
  4082. * src/DefaultBtRequestFactory.cc
  4083. * src/DefaultBtRequestFactory.h
  4084. * src/DiskAdaptor.cc
  4085. * src/DiskAdaptor.h
  4086. * src/DownloadContext.cc
  4087. * src/DownloadContext.h
  4088. * src/DownloadEngine.cc
  4089. * src/DownloadEngine.h
  4090. * src/EpollEventPoll.cc
  4091. * src/EpollEventPoll.h
  4092. * src/FtpConnection.cc
  4093. * src/FtpConnection.h
  4094. * src/HttpConnection.cc
  4095. * src/HttpConnection.h
  4096. * src/HttpHeader.cc
  4097. * src/HttpHeader.h
  4098. * src/HttpRequest.cc
  4099. * src/HttpRequest.h
  4100. * src/HttpResponse.cc
  4101. * src/HttpResponse.h
  4102. * src/LibsslTLSContext.cc
  4103. * src/LibsslTLSContext.h
  4104. * src/MSEHandshake.cc
  4105. * src/MSEHandshake.h
  4106. * src/MetalinkEntry.cc
  4107. * src/MetalinkEntry.h
  4108. * src/MetalinkParserController.cc
  4109. * src/MetalinkParserController.h
  4110. * src/MetalinkParserStateMachine.cc
  4111. * src/MetalinkParserStateMachine.h
  4112. * src/MultiDiskAdaptor.cc
  4113. * src/MultiDiskAdaptor.h
  4114. * src/NetrcAuthResolver.cc
  4115. * src/NetrcAuthResolver.h
  4116. * src/Peer.cc
  4117. * src/Peer.h
  4118. * src/PeerSessionResource.cc
  4119. * src/PeerSessionResource.h
  4120. * src/Piece.cc
  4121. * src/Piece.h
  4122. * src/PieceStatMan.cc
  4123. * src/PieceStatMan.h
  4124. * src/Request.cc
  4125. * src/Request.h
  4126. * src/RequestGroup.cc
  4127. * src/RequestGroup.h
  4128. * src/RequestGroupMan.cc
  4129. * src/RequestGroupMan.h
  4130. * src/RequestSlot.cc
  4131. * src/RequestSlot.h
  4132. * src/SegmentMan.cc
  4133. * src/SegmentMan.h
  4134. * src/SelectEventPoll.cc
  4135. * src/SelectEventPoll.h
  4136. * src/ServerStat.cc
  4137. * src/ServerStat.h
  4138. * src/Signature.cc
  4139. * src/Signature.h
  4140. * src/URIResult.cc
  4141. * src/URIResult.h
  4142. * src/UTPexExtensionMessage.cc
  4143. * src/UTPexExtensionMessage.h
  4144. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4145. Fixed compile error without BitTorrent and Metalink support.
  4146. * src/XmlRpcMethod.cc
  4147. * src/XmlRpcMethodFactory.cc
  4148. * src/XmlRpcMethodImpl.cc
  4149. * src/XmlRpcMethodImpl.h
  4150. * test/XmlRpcMethodTest.cc
  4151. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4152. Rewritten the help message for --allow-overwrite option.
  4153. * doc/aria2c.1.txt
  4154. * src/usage_text.h
  4155. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4156. Fixed typo
  4157. * doc/aria2c.1.txt
  4158. * src/usage_text.h
  4159. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4160. Updated README for 1.4.0 release. Use new table syntax of
  4161. asciidoc.
  4162. * README
  4163. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4164. Documented --xml-rpc-max-request-size option in man page.
  4165. * doc/aria2c.1.txt
  4166. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4167. Moved C_* constants from BtContext to DefaultBtContext.
  4168. * src/BtContext.cc: Removed.
  4169. * src/BtContext.h
  4170. * src/DefaultBtContext.cc
  4171. * src/DefaultBtContext.h
  4172. * src/Makefile.am
  4173. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4174. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4175. path key respectively when persing .torrent file.
  4176. * src/BtContext.cc
  4177. * src/BtContext.h
  4178. * src/DefaultBtContext.cc
  4179. * test/DefaultBtContextTest.cc
  4180. * test/utf8.torrent
  4181. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4182. Added --xml-rpc-max-request-size option to limit the size of
  4183. XML-RPC request.
  4184. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4185. Documented XML-RPC API in man page.
  4186. * doc/aria2c.1.txt
  4187. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4188. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4189. will break strict-aliasing rules
  4190. * src/PeerConnection.cc
  4191. * test/DHTRoutingTableSerializerTest.cc
  4192. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4193. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4194. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4195. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4196. PKG_CHECK_MODULES macro uses latter name.
  4197. * m4/sqlite3.m4
  4198. * src/Makefile.am
  4199. * test/Makefile.am
  4200. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4201. Fixed typo
  4202. * configure.ac
  4203. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4204. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4205. presence of libgnutls using pkg-config first. If it fails, fall
  4206. back to old macro libgnutls.m4.
  4207. * configure.ac
  4208. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4209. Use s itself instead of !s.bad()
  4210. * src/CookieStorage.cc
  4211. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4212. Documented --on-download-* option and --save-cookies option in man
  4213. page.
  4214. * doc/aria2c.1.txt
  4215. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4216. Set possible values for --load-cookie option to "/path/to/file".
  4217. * src/OptionHandlerFactory.cc
  4218. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4219. Added --save-cookies option.
  4220. * src/Cookie.cc
  4221. * src/Cookie.h
  4222. * src/CookieStorage.cc
  4223. * src/CookieStorage.h
  4224. * src/MultiUrlRequestInfo.cc
  4225. * src/OptionHandlerFactory.cc
  4226. * src/prefs.cc
  4227. * src/prefs.h
  4228. * src/usage_text.h
  4229. * test/CookieStorageTest.cc
  4230. * test/CookieTest.cc
  4231. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4232. Removed tellAll XML-RPC command because its reponse tends to be
  4233. big if stopped/waiting downloads pile up.
  4234. * src/XmlRpcMethodFactory.cc
  4235. * src/XmlRpcMethodImpl.cc
  4236. * src/XmlRpcMethodImpl.h
  4237. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4238. Added the ability to execute command when download starts and
  4239. stops. You can also specify command for particular cases such as
  4240. complete/error download. Added --on-download-start,
  4241. --on-download-stop, --on-download-complete and --on-download-error
  4242. option.
  4243. * src/OptionHandlerFactory.cc
  4244. * src/RequestGroupMan.cc
  4245. * src/prefs.cc
  4246. * src/prefs.h
  4247. * src/usage_text.h
  4248. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4249. Fixed test error
  4250. * test/BencodeTest.cc
  4251. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4252. Added unit tests.
  4253. * test/XmlRpcMethodTest.cc
  4254. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4255. Made exception message more verbose.
  4256. * src/bencode.cc
  4257. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4258. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4259. space in console readout. Also they are now shown in MiB/s if
  4260. speed > 1024KiB/s.
  4261. * src/ConsoleStatCalc.cc
  4262. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4263. Added SEED to console output, which represents the number of
  4264. seeders currently the client is connecting to.
  4265. * src/ConsoleStatCalc.cc
  4266. * src/ConsoleStatCalc.h
  4267. * src/DownloadEngine.cc
  4268. * src/NullStatCalc.h
  4269. * src/StatCalc.h
  4270. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4271. Added source filename(__FILE__) and line number(__LINE__) to
  4272. exception message.
  4273. * src/AbstractCommand.cc
  4274. * src/AbstractDiskWriter.cc
  4275. * src/AbstractProxyResponseCommand.cc
  4276. * src/BDE.h
  4277. * src/BtAllowedFastMessage.cc
  4278. * src/BtHandshakeMessageValidator.h
  4279. * src/BtHaveAllMessage.cc
  4280. * src/BtHaveNoneMessage.cc
  4281. * src/BtPieceMessage.cc
  4282. * src/BtRejectMessage.cc
  4283. * src/ChunkedDecoder.cc
  4284. * src/CookieStorage.cc
  4285. * src/DHTAnnouncePeerMessage.cc
  4286. * src/DHTEntryPointNameResolveCommand.cc
  4287. * src/DHTMessageFactoryImpl.cc
  4288. * src/DHTMessageTracker.cc
  4289. * src/DHTRoutingTableDeserializer.cc
  4290. * src/DHTRoutingTableSerializer.cc
  4291. * src/DHTSetup.cc
  4292. * src/DHTTokenTracker.cc
  4293. * src/DefaultBtAnnounce.cc
  4294. * src/DefaultBtContext.cc
  4295. * src/DefaultBtInteractive.cc
  4296. * src/DefaultBtMessageFactory.cc
  4297. * src/DefaultBtProgressInfoFile.cc
  4298. * src/DefaultExtensionMessageFactory.cc
  4299. * src/DlAbortEx.h
  4300. * src/DlRetryEx.h
  4301. * src/DownloadCommand.cc
  4302. * src/DownloadEngineFactory.cc
  4303. * src/DownloadFailureException.h
  4304. * src/Exception.cc
  4305. * src/Exception.h
  4306. * src/ExpatMetalinkProcessor.cc
  4307. * src/ExpatXmlRpcRequestProcessor.cc
  4308. * src/FallocFileAllocationIterator.cc
  4309. * src/FatalException.h
  4310. * src/FtpConnection.cc
  4311. * src/FtpFinishDownloadCommand.cc
  4312. * src/FtpInitiateConnectionCommand.cc
  4313. * src/FtpNegotiationCommand.cc
  4314. * src/GZipDecoder.cc
  4315. * src/HandshakeExtensionMessage.cc
  4316. * src/HttpConnection.cc
  4317. * src/HttpHeaderProcessor.cc
  4318. * src/HttpInitiateConnectionCommand.cc
  4319. * src/HttpResponse.cc
  4320. * src/HttpResponseCommand.cc
  4321. * src/HttpServer.cc
  4322. * src/HttpSkipResponseCommand.cc
  4323. * src/InitiateConnectionCommandFactory.cc
  4324. * src/IteratableChunkChecksumValidator.cc
  4325. * src/LibgcryptARC4Context.h
  4326. * src/LibgcryptARC4Decryptor.h
  4327. * src/LibgcryptARC4Encryptor.h
  4328. * src/LibgcryptDHKeyExchange.h
  4329. * src/LibgnutlsTLSContext.cc
  4330. * src/LibsslARC4Context.h
  4331. * src/LibsslARC4Decryptor.h
  4332. * src/LibsslARC4Encryptor.h
  4333. * src/LibsslDHKeyExchange.h
  4334. * src/LibsslTLSContext.cc
  4335. * src/MSEHandshake.cc
  4336. * src/MessageDigestHelper.cc
  4337. * src/MetalinkHelper.cc
  4338. * src/MultiDiskAdaptor.cc
  4339. * src/NameMatchOptionHandler.h
  4340. * src/NameResolver.cc
  4341. * src/Netrc.cc
  4342. * src/NsCookieParser.cc
  4343. * src/OptionHandlerException.cc
  4344. * src/OptionHandlerException.h
  4345. * src/OptionHandlerImpl.h
  4346. * src/OptionParser.cc
  4347. * src/ParameterizedStringParser.cc
  4348. * src/PeerAbstractCommand.cc
  4349. * src/PeerConnection.cc
  4350. * src/PeerMessageUtil.cc
  4351. * src/PeerReceiveHandshakeCommand.cc
  4352. * src/Platform.cc
  4353. * src/ReceiverMSEHandshakeCommand.cc
  4354. * src/RecoverableException.h
  4355. * src/RequestGroup.cc
  4356. * src/SimpleLogger.cc
  4357. * src/SocketCore.cc
  4358. * src/Sqlite3MozCookieParser.cc
  4359. * src/UTPexExtensionMessage.cc
  4360. * src/Util.cc
  4361. * src/XML2SAXMetalinkProcessor.cc
  4362. * src/Xml2XmlRpcRequestProcessor.cc
  4363. * src/XmlRpcMethodImpl.cc
  4364. * src/bencode.cc
  4365. * src/download_helper.cc
  4366. * src/messageDigest.h
  4367. * test/ExceptionTest.cc
  4368. * test/TestUtil.cc
  4369. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4370. Bump up version number to 1.4.0
  4371. * configure.ac
  4372. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4373. Added 2files.metalink to EXTRA_DIST
  4374. * test/Makefile.am
  4375. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4376. Added missing 2files.metalink
  4377. * test/2files.metalink
  4378. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4379. Show "[MEMORY]" prefix before filename in download summary if it
  4380. is downloaded into memory.
  4381. * src/DownloadResult.h
  4382. * src/RequestGroup.cc
  4383. * src/RequestGroupMan.cc
  4384. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4385. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4386. * src/ExpatXmlRpcRequestProcessor.cc
  4387. * src/Xml2XmlRpcRequestProcessor.cc
  4388. * src/message.h
  4389. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4390. Defined const BDEs to avoid duplicate instantiation.
  4391. Defined MSG_GID_NOT_PROVIDED.
  4392. * src/XmlRpcMethodImpl.cc
  4393. * src/message.h
  4394. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4395. Code cleanup
  4396. * src/Xml2XmlRpcRequestProcessor.cc
  4397. * src/Xml2XmlRpcRequestProcessor.h
  4398. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4399. Defined ENABLE_XML_RPC
  4400. * configure.ac
  4401. * configure
  4402. * config.h.in
  4403. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4404. Added ExpatXmlRpcRequestProcessor
  4405. * src/ExpatXmlRpcRequestProcessor.cc
  4406. * src/ExpatXmlRpcRequestProcessor.h
  4407. * src/Makefile.am
  4408. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4409. Added tests for addTorrent and addMetalink command.
  4410. * test/TestUtil.cc
  4411. * test/TestUtil.h
  4412. * test/XmlRpcMethodTest.cc
  4413. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4414. Corrected the description of --file-allocation option.
  4415. * doc/aria2c.1.txt
  4416. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4417. Added tellAll command.
  4418. * src/XmlRpcMethodFactory.cc
  4419. * src/XmlRpcMethodImpl.cc
  4420. * src/XmlRpcMethodImpl.h
  4421. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4422. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4423. * src/XmlRpcMethodImpl.cc
  4424. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4425. Added changeGlobalOption command. Currently,
  4426. max-overall-download-limit and max-overall-upload-limit option are
  4427. available.
  4428. * src/RequestGroupMan.h
  4429. * src/XmlRpcMethod.cc
  4430. * src/XmlRpcMethod.h
  4431. * src/XmlRpcMethodFactory.cc
  4432. * src/XmlRpcMethodImpl.cc
  4433. * src/XmlRpcMethodImpl.h
  4434. * test/XmlRpcMethodTest.cc
  4435. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4436. Added changeOption command. Currently, max-download-limit,
  4437. max-upload-limit option are available in this command.
  4438. * src/RequestGroup.h
  4439. * src/XmlRpcMethod.cc
  4440. * src/XmlRpcMethod.h
  4441. * src/XmlRpcMethodFactory.cc
  4442. * src/XmlRpcMethodImpl.cc
  4443. * src/XmlRpcMethodImpl.h
  4444. * test/XmlRpcMethodTest.cc
  4445. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4446. Added purgeDownloadResult command.
  4447. * src/RequestGroupMan.cc
  4448. * src/RequestGroupMan.h
  4449. * src/XmlRpcMethodFactory.cc
  4450. * src/XmlRpcMethodImpl.cc
  4451. * src/XmlRpcMethodImpl.h
  4452. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4453. Refactored.
  4454. * src/XmlRpcMethod.cc
  4455. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4457. XmlRpcResponse.
  4458. * src/HttpServerBodyCommand.cc
  4459. * src/Makefile.am
  4460. * src/XmlRpcMethod.cc
  4461. * src/XmlRpcMethod.h
  4462. * src/XmlRpcMethodImpl.cc
  4463. * src/XmlRpcResponse.cc
  4464. * src/XmlRpcResponse.h
  4465. * test/XmlRpcMethodTest.cc
  4466. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4467. In XML-RPC option struct, header and index-out option can take
  4468. array as value.
  4469. * src/XmlRpcMethod.cc
  4470. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4471. Removed unused option member from PeerConnection.
  4472. * src/InitiatorMSEHandshakeCommand.cc
  4473. * src/PeerConnection.cc
  4474. * src/PeerConnection.h
  4475. * src/PeerInteractionCommand.cc
  4476. * src/PeerReceiveHandshakeCommand.cc
  4477. * src/ReceiverMSEHandshakeCommand.cc
  4478. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4479. Added "seeder" key to getPeers response.
  4480. * src/XmlRpcMethodImpl.cc
  4481. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4482. Added addMetalink XML-RPC command.
  4483. * src/XmlRpcMethodFactory.cc
  4484. * src/XmlRpcMethodImpl.cc
  4485. * src/XmlRpcMethodImpl.h
  4486. * src/download_helper.cc
  4487. * src/download_helper.h
  4488. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4489. Fixed the bug that POU peers are never choked in seeding.
  4490. * src/BtSeederStateChoke.cc
  4491. * src/BtSeederStateChoke.h
  4492. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4493. Added web-seeding URI handling in addTorrent command.
  4494. * src/XmlRpcMethodImpl.cc
  4495. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4496. Added "length" key to getFiles response.
  4497. * src/XmlRpcMethodImpl.cc
  4498. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4499. Moved --no-netrc option from ftp option section to http/ftp option
  4500. section.
  4501. * doc/aria2c.1.txt
  4502. * src/OptionHandlerFactory.cc
  4503. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4504. Removed garbage "\" character before '
  4505. * doc/aria2c.1.txt
  4506. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4507. Removed garbage "\" character before http.
  4508. * doc/aria2c.1.txt
  4509. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4510. Documented additional options that can be specified in -i list.
  4511. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4512. and --xml-rpc-passwd. Removed --enable-http-server and
  4513. --http-server-listen-port.
  4514. * doc/aria2c.1.txt
  4515. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4516. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4517. * src/DefaultPeerStorage.cc
  4518. * src/DefaultPeerStorage.h
  4519. * src/PeerStorage.h
  4520. * src/XmlRpcMethodImpl.cc
  4521. * test/MockPeerStorage.h
  4522. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4523. Put a call to Socket::isReadable() in try block.
  4524. * src/HttpServerBodyCommand.cc
  4525. * src/HttpServerCommand.cc
  4526. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4527. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4528. exception , so it is now in try block.
  4529. * src/HttpServerResponseCommand.cc
  4530. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4531. Added "amChoking" and "peerChoking" key in getPeers response.
  4532. * src/XmlRpcMethodImpl.cc
  4533. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4534. Added test case for zero-length filter.
  4535. * test/BitfieldManTest.cc
  4536. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4537. getFiles command now returns file data for finished/stopped
  4538. downloads.
  4539. * src/XmlRpcMethodImpl.cc
  4540. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4541. DownloadResult now has the list of FileEntry. The download
  4542. summary displays the path of first selected file and the number of
  4543. remaining files for multi-file torrent.
  4544. * src/DownloadResult.h
  4545. * src/RequestGroup.cc
  4546. * src/RequestGroupMan.cc
  4547. * test/RequestGroupTest.cc
  4548. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4549. Fixed segmentation fault error when no file is selected in
  4550. multi-file torrent.
  4551. * src/BitfieldMan.cc
  4552. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4553. Escaped <,>,& character in XML-RPC response.
  4554. * src/XmlRpcMethod.cc
  4555. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4556. Throw DlAbortEx instead of FatalException during parsing options
  4557. because we don't want for aria2 to quit when bad option is passed
  4558. via XML-RPC.
  4559. * src/OptionHandlerException.cc
  4560. * src/OptionHandlerException.h
  4561. * src/OptionHandlerImpl.h
  4562. * src/OptionParser.cc
  4563. * src/OptionParser.h
  4564. * src/PStringSegment.cc
  4565. * src/ParameterizedStringParser.cc
  4566. * src/download_helper.cc
  4567. * test/ParameterizedStringParserTest.cc
  4568. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4569. Selecting files are now done in
  4570. DefaultBtContext::setFileFileter().
  4571. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4572. functions are removed because they are no longer used. Creating
  4573. filter in BitfieldMan is done in new funtion
  4574. PieceStorage::setupFileFilter()
  4575. * src/BtContext.cc
  4576. * src/BtContext.h
  4577. * src/DefaultBtContext.cc
  4578. * src/DefaultBtContext.h
  4579. * src/DefaultPieceStorage.cc
  4580. * src/DefaultPieceStorage.h
  4581. * src/DiskAdaptor.cc
  4582. * src/DiskAdaptor.h
  4583. * src/PieceStorage.h
  4584. * src/RequestGroup.cc
  4585. * src/UnknownLengthPieceStorage.h
  4586. * src/XmlRpcMethodImpl.cc
  4587. * test/DefaultBtContextTest.cc
  4588. * test/MockBtContext.h
  4589. * test/MockPieceStorage.h
  4590. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4591. Fixed compile error on Mac OS X
  4592. * src/HttpServer.cc
  4593. * src/XmlRpcMethod.h
  4594. * src/XmlRpcMethodImpl.cc
  4595. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4596. Use std::binary_search instead of std::find
  4597. * src/DefaultPieceStorage.cc
  4598. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4599. Removed unnecessary BDE() call; leave them to implicit conversion.
  4600. * src/XmlRpcMethodImpl.cc
  4601. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4602. Return connections and gid in string
  4603. * src/XmlRpcMethodImpl.cc
  4604. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4605. Renamed addURI as addUri
  4606. * src/XmlRpcMethodFactory.cc
  4607. * src/XmlRpcMethodImpl.cc
  4608. * src/XmlRpcMethodImpl.h
  4609. * test/XmlRpcMethodTest.cc
  4610. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4611. Renamed addTorrentFile as addTorrent
  4612. * src/XmlRpcMethodFactory.cc
  4613. * src/XmlRpcMethodImpl.cc
  4614. * src/XmlRpcMethodImpl.h
  4615. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4616. The information for files, URIs, peers are removed from the
  4617. reponse of TellaActive, TellStatus command because they tend to be
  4618. large. Instead they can be retrieved by the dedicated commands:
  4619. getFiles, getUris and getPeers respectively.
  4620. * src/XmlRpcMethodFactory.cc
  4621. * src/XmlRpcMethodImpl.cc
  4622. * src/XmlRpcMethodImpl.h
  4623. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4624. Removed --max-overall-upload-limit and
  4625. --max-overall-download-limit option from listRequestOptions.
  4626. * src/download_helper.cc
  4627. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4628. Log incoming host in HttpListenCommand.
  4629. * src/HttpListenCommand.cc
  4630. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4631. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4632. --xml-rpc-passwd option.
  4633. * src/HttpServer.cc
  4634. * src/HttpServer.h
  4635. * src/HttpServerCommand.cc
  4636. * src/OptionHandlerFactory.cc
  4637. * src/prefs.cc
  4638. * src/prefs.h
  4639. * src/usage_text.h
  4640. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4641. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4642. processing 0 length request.
  4643. * src/HttpServerBodyCommand.cc
  4644. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4645. Removed --enable-http-server and --http-server-listen-port
  4646. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4647. instead. The original feature for --enable-http-server that
  4648. reports download progress in HTML was officially removed. Persist
  4649. XML-RPC connection if client supports keep-alive.
  4650. * src/DownloadEngineFactory.cc
  4651. * src/HttpServerCommand.cc
  4652. * src/HttpServerResponseCommand.cc
  4653. * src/Makefile.am
  4654. * src/Makefile.in
  4655. * src/OptionHandlerFactory.cc
  4656. * src/RequestGroupMan.cc
  4657. * src/main.cc
  4658. * src/option_processing.cc
  4659. * src/prefs.cc
  4660. * src/prefs.h
  4661. * src/usage_text.h
  4662. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4663. Added "uris" key to the response of tellStatus command. Added
  4664. "connections" key to the response of tellStatus and tellActive
  4665. command.
  4666. * src/XmlRpcMethodImpl.cc
  4667. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4668. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4669. Added TellStatusXmlRpcMethod. Remove command can now remove
  4670. waiting RequestGroup.
  4671. * src/RequestGroupMan.cc
  4672. * src/RequestGroupMan.h
  4673. * src/XmlRpcMethodFactory.cc
  4674. * src/XmlRpcMethodImpl.cc
  4675. * src/XmlRpcMethodImpl.h
  4676. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4677. Initialized _peerId
  4678. * src/Peer.cc
  4679. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4680. Return fault structure for error. FailXmlRpcMethod is renamed as
  4681. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4682. in non-torrent download. Return single param value.
  4683. * src/XmlRpcMethod.cc
  4684. * src/XmlRpcMethodFactory.cc
  4685. * src/XmlRpcMethodImpl.cc
  4686. * src/XmlRpcMethodImpl.h
  4687. * test/XmlRpcMethodTest.cc
  4688. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4689. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4690. command.
  4691. * src/RequestGroup.cc
  4692. * src/RequestGroup.h
  4693. * src/RequestGroupMan.cc
  4694. * src/XmlRpcMethodImpl.cc
  4695. * test/RequestGroupTest.cc
  4696. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4697. Added more options that can be specified in -i list and xml-rpc
  4698. add* command.
  4699. * src/download_helper.h
  4700. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4701. The available options in -i list should be listed in
  4702. listRequestOptions().
  4703. * src/download_helper.cc
  4704. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4705. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4706. command.
  4707. * src/XmlRpcMethodImpl.cc
  4708. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4709. Now RequestGroup has its own copy of Option object. This will help
  4710. to give custom option for each RequestGroup.
  4711. addTorrentFile command now takes options.
  4712. * src/AbstractCommand.cc
  4713. * src/AbstractCommand.h
  4714. * src/AbstractProxyRequestCommand.cc
  4715. * src/ActivePeerConnectionCommand.cc
  4716. * src/ActivePeerConnectionCommand.h
  4717. * src/AdaptiveURISelector.cc
  4718. * src/BtCheckIntegrityEntry.cc
  4719. * src/BtDependency.cc
  4720. * src/BtDependency.h
  4721. * src/BtFileAllocationEntry.cc
  4722. * src/BtPostDownloadHandler.cc
  4723. * src/CheckIntegrityEntry.cc
  4724. * src/DownloadCommand.cc
  4725. * src/FtpDownloadCommand.cc
  4726. * src/FtpFinishDownloadCommand.cc
  4727. * src/FtpInitiateConnectionCommand.cc
  4728. * src/FtpNegotiationCommand.cc
  4729. * src/HttpInitiateConnectionCommand.cc
  4730. * src/HttpRequestCommand.cc
  4731. * src/HttpResponseCommand.cc
  4732. * src/HttpSkipResponseCommand.cc
  4733. * src/InitiateConnectionCommand.cc
  4734. * src/InitiateConnectionCommandFactory.cc
  4735. * src/InitiatorMSEHandshakeCommand.cc
  4736. * src/InitiatorMSEHandshakeCommand.h
  4737. * src/Metalink2RequestGroup.cc
  4738. * src/Metalink2RequestGroup.h
  4739. * src/MetalinkPostDownloadHandler.cc
  4740. * src/MultiUrlRequestInfo.cc
  4741. * src/MultiUrlRequestInfo.h
  4742. * src/PeerAbstractCommand.cc
  4743. * src/PeerInteractionCommand.cc
  4744. * src/PeerInteractionCommand.h
  4745. * src/PeerReceiveHandshakeCommand.cc
  4746. * src/PeerReceiveHandshakeCommand.h
  4747. * src/RequestGroup.cc
  4748. * src/RequestGroup.h
  4749. * src/TrackerWatcherCommand.cc
  4750. * src/TrackerWatcherCommand.h
  4751. * src/XmlRpcMethod.cc
  4752. * src/XmlRpcMethod.h
  4753. * src/XmlRpcMethodImpl.cc
  4754. * src/download_helper.cc
  4755. * src/download_helper.h
  4756. * src/main.cc
  4757. * test/BtDependencyTest.cc
  4758. * test/BtPostDownloadHandlerTest.cc
  4759. * test/DefaultBtMessageDispatcherTest.cc
  4760. * test/DownloadHandlerFactoryTest.cc
  4761. * test/DownloadHelperTest.cc
  4762. * test/Metalink2RequestGroupTest.cc
  4763. * test/MetalinkPostDownloadHandlerTest.cc
  4764. * test/RequestGroupManTest.cc
  4765. * test/RequestGroupTest.cc
  4766. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4767. Added tellActiveStatus xml-rpc command which reports download
  4768. status of active downloads.
  4769. * src/XmlRpcMethodFactory.cc
  4770. * src/XmlRpcMethodImpl.cc
  4771. * src/XmlRpcMethodImpl.h
  4772. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4773. Added addTorrentFile xml-rpc command which receives uploaded
  4774. torrent file and add download for it.
  4775. * src/RequestGroupMan.cc
  4776. * src/XmlRpcMethodFactory.cc
  4777. * src/XmlRpcMethodImpl.cc
  4778. * src/XmlRpcMethodImpl.h
  4779. * src/download_helper.cc
  4780. * src/download_helper.h
  4781. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4782. Added remove xml-rpc command which removes specified download.
  4783. There is a known issue: the removed unfinished downloads are
  4784. reported ERR when aria2 exits. They should be reported as INPR.
  4785. * src/RequestGroupMan.cc
  4786. * src/RequestGroupMan.h
  4787. * src/XmlRpcMethodFactory.cc
  4788. * src/XmlRpcMethodImpl.cc
  4789. * src/XmlRpcMethodImpl.h
  4790. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4791. If --enable-http-server is enabled, don't stop aria2 when all
  4792. download finished and don't quit when no files to download at
  4793. start up.
  4794. * src/RequestGroupMan.cc
  4795. * src/main.cc
  4796. * src/option_processing.cc
  4797. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4798. Added missing AM_CONDITIONAL
  4799. * configure.ac
  4800. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4801. Added xml-rpc functionality. Currently only addURI commad is
  4802. supported. To enable xml-rpc, run aria2 with
  4803. --enable-http-server. This option name is temporal and will be
  4804. changed. The feature that reports download progress in html format
  4805. is temporarily disabled.
  4806. * src/HttpServer.cc
  4807. * src/HttpServer.h
  4808. * src/HttpServerBodyCommand.cc
  4809. * src/HttpServerBodyCommand.h
  4810. * src/HttpServerCommand.cc
  4811. * src/HttpServerResponseCommand.cc
  4812. * src/Makefile.am
  4813. * src/OptionParser.cc
  4814. * src/OptionParser.h
  4815. * src/RequestGroupMan.cc
  4816. * src/RequestGroupMan.h
  4817. * src/XmlRpcMethod.cc
  4818. * src/XmlRpcMethod.h
  4819. * src/XmlRpcMethodFactory.cc
  4820. * src/XmlRpcMethodFactory.h
  4821. * src/XmlRpcMethodImpl.cc
  4822. * src/XmlRpcMethodImpl.h
  4823. * src/download_helper.cc
  4824. * src/download_helper.h
  4825. * test/Makefile.am
  4826. * test/XmlRpcMethodTest.cc
  4827. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4828. Added xml-rpc request parser. The supported value types are:
  4829. i4/int, string, double, struct, array, base64. Currently only
  4830. libxml2 version is provided.
  4831. * src/Xml2XmlRpcRequestProcessor.cc
  4832. * src/Xml2XmlRpcRequestProcessor.h
  4833. * src/XmlRpcElements.cc
  4834. * src/XmlRpcElements.h
  4835. * src/XmlRpcRequest.h
  4836. * src/XmlRpcRequestParserController.cc
  4837. * src/XmlRpcRequestParserController.h
  4838. * src/XmlRpcRequestParserState.h
  4839. * src/XmlRpcRequestParserStateImpl.cc
  4840. * src/XmlRpcRequestParserStateImpl.h
  4841. * src/XmlRpcRequestParserStateMachine.cc
  4842. * src/XmlRpcRequestParserStateMachine.h
  4843. * src/XmlRpcRequestProcessor.h
  4844. * test/XmlRpcRequestParserControllerTest.cc
  4845. * test/XmlRpcRequestProcessorTest.cc
  4846. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4847. * Release 1.3.3
  4848. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4849. Fixed compile error since r1202.
  4850. * src/ExpatMetalinkProcessor.cc
  4851. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4852. Updated Ukrainian, Russian and Simplified Chinese
  4853. translations. Thanks to all translators.
  4854. * po/ru.po
  4855. * po/uk.po
  4856. * po/zh_CN.po
  4857. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4858. Pass reference of Option object instead of pointer.
  4859. * src/download_helper.cc
  4860. * src/download_helper.h
  4861. * src/main.cc
  4862. * test/DownloadHelperTest.cc
  4863. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4864. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4865. from option directly. Instead, get them from RequestGroup.
  4866. * src/ActivePeerConnectionCommand.cc
  4867. * src/ActivePeerConnectionCommand.h
  4868. * src/PeerReceiveHandshakeCommand.cc
  4869. * src/RequestGroup.h
  4870. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4871. Removed unused uploadLimitCheck and uploadLimit from
  4872. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4873. PeerInteractionCommand.
  4874. * src/PeerAbstractCommand.cc
  4875. * src/PeerAbstractCommand.h
  4876. * src/PeerInteractionCommand.cc
  4877. * src/PeerInteractionCommand.h
  4878. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4879. Fixed broken file renaming feature since r1202.
  4880. * src/FtpNegotiationCommand.cc
  4881. * src/FtpNegotiationCommand.h
  4882. * src/HttpResponseCommand.cc
  4883. * src/RequestGroup.cc
  4884. * src/RequestGroup.h
  4885. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4886. Removed unused debug log
  4887. * src/SocketCore.cc
  4888. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4889. Generated configure and Makefile.in using autoconf 2.63 and
  4890. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4891. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4892. * configure.ac
  4893. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4894. Moved piece statistics stuff to new PieceStatMan class.
  4895. Refactored PieceSelector interface.
  4896. * src/DefaultPieceStorage.cc
  4897. * src/DefaultPieceStorage.h
  4898. * src/LongestSequencePieceSelector.cc
  4899. * src/LongestSequencePieceSelector.h
  4900. * src/Makefile.am
  4901. * src/PieceSelector.h
  4902. * src/PieceStatMan.cc
  4903. * src/PieceStatMan.h
  4904. * src/RarestPieceSelector.cc
  4905. * src/RarestPieceSelector.h
  4906. * src/RequestGroup.cc
  4907. * test/DefaultPieceStorageTest.cc
  4908. * test/InOrderPieceSelector.h
  4909. * test/Makefile.am
  4910. * test/PieceStatManTest.cc
  4911. * test/RarestPieceSelectorTest.cc
  4912. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4913. Added static member _protocolFamily to SocketCore. By default,
  4914. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4915. address. Sometime SocketCore::bind() and
  4916. SocketCore::establishConnection() use difference protocl family
  4917. and latter cannot connect to former. To avoid this situation, we
  4918. limit protocol family to AF_INET for unit tests.
  4919. * src/SocketCore.cc
  4920. * src/SocketCore.h
  4921. * test/AllTest.cc
  4922. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4923. Avoid std::bad_alloc for negative bencode string length.
  4924. * src/bencode.cc
  4925. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4926. Supported segmented downloading with chunked transfer encoding and
  4927. content-length.
  4928. * src/DownloadCommand.cc
  4929. * src/HttpResponseCommand.cc
  4930. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4931. Bump up version number to 1.3.3
  4932. * configure.ac
  4933. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4934. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4935. from 4096 to 65536 (for insanely large ftp login banners)
  4936. * src/FtpConnection.h
  4937. * test/FtpConnectionTest.cc
  4938. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4939. In DefaultBtContext::getActualBasePath(), return first
  4940. FileEntry::getPath() for single file torrent.
  4941. * src/DefaultBtContext.cc
  4942. * test/DefaultBtContextTest.cc
  4943. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4944. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4945. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4946. Removed _directIOAllowed member from DiskWriter.
  4947. * src/AbstractDiskWriter.cc
  4948. * src/AbstractDiskWriter.h
  4949. * src/AbstractSingleDiskAdaptor.cc
  4950. * src/AbstractSingleDiskAdaptor.h
  4951. * src/BinaryStream.h
  4952. * src/ByteArrayDiskWriter.h
  4953. * src/DefaultPieceStorage.cc
  4954. * src/DiskWriter.h
  4955. * src/MultiDiskAdaptor.cc
  4956. * src/MultiDiskAdaptor.h
  4957. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4958. Now the constructor of AbstractDiskWriter takes filename as an
  4959. argument and filename argument is removed from openFile(),
  4960. initAndOpenFile(), openExistingFile() interface. storeDir member
  4961. and its accessor functions are removed from DiskAdaptor because it
  4962. is not used anymore. size() member function of DefaultDiskWriter,
  4963. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4964. opening file.
  4965. * src/AbstractDiskWriter.cc
  4966. * src/AbstractDiskWriter.h
  4967. * src/AbstractSingleDiskAdaptor.cc
  4968. * src/AbstractSingleDiskAdaptor.h
  4969. * src/ByteArrayDiskWriter.cc
  4970. * src/ByteArrayDiskWriter.h
  4971. * src/ByteArrayDiskWriterFactory.cc
  4972. * src/ByteArrayDiskWriterFactory.h
  4973. * src/DefaultDiskWriter.cc
  4974. * src/DefaultDiskWriter.h
  4975. * src/DefaultDiskWriterFactory.cc
  4976. * src/DefaultDiskWriterFactory.h
  4977. * src/DefaultPieceStorage.cc
  4978. * src/DirectDiskAdaptor.cc
  4979. * src/DirectDiskAdaptor.h
  4980. * src/DiskAdaptor.h
  4981. * src/DiskWriter.h
  4982. * src/DiskWriterFactory.h
  4983. * src/MessageDigestHelper.cc
  4984. * src/MultiDiskAdaptor.cc
  4985. * src/RequestGroup.cc
  4986. * src/UnknownLengthPieceStorage.cc
  4987. * src/Util.cc
  4988. * test/DefaultDiskWriterTest.cc
  4989. * test/DirectDiskAdaptorTest.cc
  4990. * test/FallocFileAllocationIteratorTest.cc
  4991. * test/MessageDigestHelperTest.cc
  4992. * test/MetalinkProcessorTest.cc
  4993. * test/MultiDiskAdaptorTest.cc
  4994. * test/MultiFileAllocationIteratorTest.cc
  4995. * test/SingleFileAllocationIteratorTest.cc
  4996. * test/UtilTest.cc
  4997. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4998. Fixed the bug that aria2 aborts when --select-file is used. This
  4999. bug was introduced in r1199.
  5000. * src/MultiDiskAdaptor.cc
  5001. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5002. Code cleanup
  5003. * test/MockPieceStorage.cc
  5004. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5005. Fixed the bug that read-only file with wrong file size will cause
  5006. error because it cannot be truncated to the correct size. Now if
  5007. file size is different than the expected one, re-open file in
  5008. writable mode.
  5009. * src/AbstractSingleDiskAdaptor.cc
  5010. * src/AbstractSingleDiskAdaptor.h
  5011. * src/BtCheckIntegrityEntry.cc
  5012. * src/DiskAdaptor.h
  5013. * src/MultiDiskAdaptor.h
  5014. * src/RequestGroup.cc
  5015. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5016. Fixed the bug that with --check-integrity option aria2 reports
  5017. downloaded file size is 0 even if some parts of file is correctly
  5018. downloaded. This bug is reproducible for the download that a file
  5019. includes last piece is missing. This bug doesn't reveal for
  5020. single-torrent with file allocation on.
  5021. * src/IteratableChecksumValidator.cc
  5022. * test/IteratableChecksumValidatorTest.cc
  5023. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5024. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5025. * src/RequestGroupMan.cc
  5026. * src/AdaptiveURISelector.cc
  5027. * src/AdaptiveURISelector.h
  5028. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5029. * Release 1.3.2
  5030. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5031. Updated README
  5032. * README
  5033. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5034. Updated Ukrainian translations. Thanks to Alexander10.
  5035. * po/uk.po
  5036. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5037. Code cleanup
  5038. * src/MetalinkParserStateMachine.cc
  5039. * src/MetalinkParserStateMachine.h
  5040. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5041. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5042. and expat simultaneously, MetalinkProcessor is now not base class
  5043. and it is directly implemented in XML2SAXMetalinkProcessor and
  5044. ExpatMetalinkProcessor.
  5045. * src/ExpatMetalinkProcessor.cc
  5046. * src/ExpatMetalinkProcessor.h
  5047. * src/Makefile.am
  5048. * src/MetalinkHelper.cc
  5049. * src/MetalinkProcessor.h
  5050. * src/MetalinkProcessorFactory.cc: Removed.
  5051. * src/MetalinkProcessorFactory.h: Removed
  5052. * src/XML2SAXMetalinkProcessor.cc
  5053. * src/XML2SAXMetalinkProcessor.h
  5054. * test/MetalinkProcessorTest.cc
  5055. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Bump up version number to 1.3.2
  5057. * configure.ac
  5058. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5059. Added missing file.
  5060. * test/Makefile.am
  5061. * test/url-list-singleFileEndsWithSlash.torrent
  5062. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5063. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5064. request.
  5065. * src/AnnounceList.cc
  5066. * src/AnnounceList.h
  5067. * src/BDE.cc: Added
  5068. * src/BDE.h: Added
  5069. * src/DHTAbstractMessage.cc
  5070. * src/DHTAbstractMessage.h
  5071. * src/DHTAnnouncePeerMessage.cc
  5072. * src/DHTAnnouncePeerMessage.h
  5073. * src/DHTAnnouncePeerReplyMessage.cc
  5074. * src/DHTAnnouncePeerReplyMessage.h
  5075. * src/DHTFindNodeMessage.cc
  5076. * src/DHTFindNodeMessage.h
  5077. * src/DHTFindNodeReplyMessage.cc
  5078. * src/DHTFindNodeReplyMessage.h
  5079. * src/DHTGetPeersMessage.cc
  5080. * src/DHTGetPeersMessage.h
  5081. * src/DHTGetPeersReplyMessage.cc
  5082. * src/DHTGetPeersReplyMessage.h
  5083. * src/DHTMessageFactory.h
  5084. * src/DHTMessageFactoryImpl.cc
  5085. * src/DHTMessageFactoryImpl.h
  5086. * src/DHTMessageReceiver.cc
  5087. * src/DHTMessageTracker.cc
  5088. * src/DHTMessageTracker.h
  5089. * src/DHTPingMessage.cc
  5090. * src/DHTPingMessage.h
  5091. * src/DHTPingReplyMessage.cc
  5092. * src/DHTPingReplyMessage.h
  5093. * src/DHTQueryMessage.cc
  5094. * src/DHTQueryMessage.h
  5095. * src/DHTResponseMessage.cc
  5096. * src/DHTResponseMessage.h
  5097. * src/DefaultBtAnnounce.cc
  5098. * src/DefaultBtContext.cc
  5099. * src/DefaultBtContext.h
  5100. * src/HandshakeExtensionMessage.cc
  5101. * src/Makefile.am
  5102. * src/PeerListProcessor.h
  5103. * src/UTPexExtensionMessage.cc
  5104. * src/bencode.cc
  5105. * src/bencode.h
  5106. * test/AnnounceListTest.cc
  5107. * test/BDETest.cc: Added
  5108. * test/BencodeTest.cc
  5109. * test/DHTAnnouncePeerMessageTest.cc
  5110. * test/DHTAnnouncePeerReplyMessageTest.cc
  5111. * test/DHTFindNodeMessageTest.cc
  5112. * test/DHTFindNodeReplyMessageTest.cc
  5113. * test/DHTGetPeersMessageTest.cc
  5114. * test/DHTGetPeersReplyMessageTest.cc
  5115. * test/DHTMessageFactoryImplTest.cc
  5116. * test/DHTMessageTrackerTest.cc
  5117. * test/DHTPingMessageTest.cc
  5118. * test/DHTPingReplyMessageTest.cc
  5119. * test/Makefile.am
  5120. * test/MockDHTMessageFactory.h
  5121. * test/PeerListProcessorTest.cc
  5122. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5123. Use url-list (web-seeding) only for single-file torrent. This is
  5124. basically the same behavior with Metalink file with torrent and
  5125. URIs.
  5126. * src/RequestGroup.cc
  5127. * src/DefaultBtContext.cc
  5128. * test/DefaultBtContextTest.cc
  5129. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5130. Rewritten expr
  5131. * src/array_fun.h
  5132. * test/array_funTest.cc
  5133. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5134. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5135. * src/DefaultBtMessageDispatcher.cc
  5136. * src/a2algo.h
  5137. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5138. Removed ExtendedMessagingAware. Instead of using inheritance,
  5139. added ExtensionMessageRegistry and it is passed to
  5140. DefaultExtensionMessageFactory.
  5141. * src/DefaultBtInteractive.cc
  5142. * src/DefaultBtInteractive.h
  5143. * src/DefaultExtensionMessageFactory.cc
  5144. * src/DefaultExtensionMessageFactory.h
  5145. * src/ExtendedMessagingAware.h: Removed.
  5146. * src/ExtensionMessageFactory.h
  5147. * src/ExtensionMessageRegistry.h: Added.
  5148. * src/Makefile.am
  5149. * src/PeerInteractionCommand.cc
  5150. * test/DefaultExtensionMessageFactoryTest.cc
  5151. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5152. Fixed typo in log messages
  5153. * src/MSEHandshake.cc
  5154. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5155. Fixed the bug that prevents torrent download from finishing. The
  5156. bug doesn't reveal for all torrents. The torrents affected this
  5157. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5158. of pieces.
  5159. * src/bitfield.h
  5160. * test/bitfieldTest.cc
  5161. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5162. Code cleanup
  5163. * src/PeerListProcessor.h
  5164. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5165. Removed RequestGroupAware
  5166. * src/AbstractCommand.cc
  5167. * src/AbstractCommand.h
  5168. * src/ActivePeerConnectionCommand.cc
  5169. * src/ActivePeerConnectionCommand.h
  5170. * src/DHTGetPeersCommand.cc
  5171. * src/DHTGetPeersCommand.h
  5172. * src/InitiatorMSEHandshakeCommand.cc
  5173. * src/InitiatorMSEHandshakeCommand.h
  5174. * src/Makefile.am
  5175. * src/PeerInitiateConnectionCommand.cc
  5176. * src/PeerInitiateConnectionCommand.h
  5177. * src/PeerInteractionCommand.cc
  5178. * src/PeerInteractionCommand.h
  5179. * src/RealtimeCommand.cc
  5180. * src/RealtimeCommand.h
  5181. * src/RequestGroupAware.cc: Removed
  5182. * src/RequestGroupAware.h: Removed
  5183. * src/SeedCheckCommand.cc
  5184. * src/SeedCheckCommand.h
  5185. * src/SleepCommand.cc
  5186. * src/TrackerWatcherCommand.cc
  5187. * src/TrackerWatcherCommand.h
  5188. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5189. Rewritten PeerListProcessor
  5190. * src/PeerListProcessor.h
  5191. * src/CompactPeerListProcessor.h: Removed
  5192. * src/CompactPeerListProcessor.cc: Removed
  5193. * src/DelegatingPeerListProcessor.cc: Removed.
  5194. * src/DefaultBtAnnounce.cc
  5195. * src/Makefile.am
  5196. * src/UTPexExtensionMessage.cc
  5197. * src/DefaultPeerListProcessor.h: Removed.
  5198. * src/DefaultPeerListProcessor.cc: Removed.
  5199. * src/DelegatingPeerListProcessor.h: Removed.
  5200. * test/Makefile.am
  5201. * test/PeerListProcessorTest.cc
  5202. * test/DefaultPeerListProcessorTest.cc: Removed.
  5203. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5204. Rewritten RequestGroupMan::calculateStat()
  5205. * src/RequestGroupMan.cc
  5206. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5207. Removed unnecessary virtual destructor for Request class.
  5208. * src/Request.cc
  5209. * src/Request.h
  5210. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5211. Avoid dynamic_pointer_cast.
  5212. * src/DHTGetPeersCommand.cc
  5213. * src/DHTGetPeersCommand.h
  5214. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5215. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5216. BtEvent.
  5217. * src/AbstractBtEventListener.h: Removed.
  5218. * src/AbstractBtMessage.cc
  5219. * src/AbstractBtMessage.h
  5220. * src/BtAbortOutstandingRequestEvent.h
  5221. * src/BtCancelSendingPieceEvent.h
  5222. * src/BtChokedEvent.h: Removed.
  5223. * src/BtChokingEvent.h
  5224. * src/BtEvent.h: Removed
  5225. * src/BtEventListener.h: Removed.
  5226. * src/BtMessage.h
  5227. * src/BtPieceMessage.cc
  5228. * src/BtPieceMessage.h
  5229. * src/BtRequestMessage.cc
  5230. * src/BtRequestMessage.h
  5231. * src/DefaultBtMessageDispatcher.cc
  5232. * src/Makefile.am
  5233. * src/a2functional.h
  5234. * test/BtPieceMessageTest.cc
  5235. * test/BtRequestMessageTest.cc
  5236. * test/DefaultBtMessageDispatcherTest.cc
  5237. * test/MockBtMessage.h
  5238. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5239. Code cleanup
  5240. * src/RequestGroupMan.cc
  5241. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5242. Code cleanup
  5243. * src/DownloadCommand.cc
  5244. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5245. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5246. byte.
  5247. * src/DownloadCommand.cc
  5248. * src/bitfield.h
  5249. * test/bitfieldTest.cc
  5250. Fixed the bug that causes infinite loop if broken web server
  5251. returns chunked response without last "0" chunk-size marker and
  5252. closes connection.
  5253. * src/DownloadCommand.cc
  5254. Instantiate properly configured HttpDownloadCommand for
  5255. non-resumable downlaods.
  5256. * src/HttpResponseCommand.cc
  5257. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5258. Rewritten array operation functions.
  5259. * src/BitfieldMan.cc
  5260. * src/array_fun.h
  5261. * test/array_funTest.cc
  5262. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5263. Removed unused variable 'query'
  5264. * src/Request.cc
  5265. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5266. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5267. accidentally set to false in r1162.
  5268. * configure.ac
  5269. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5270. Code cleanup
  5271. * src/BNode.cc
  5272. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5273. Increase prefixLength for the bucket which doesn't own local node
  5274. ID when splitting bucket.
  5275. * src/DHTBucket.cc
  5276. * test/DHTBucketTest.cc
  5277. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5278. * Release 1.3.1
  5279. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5280. Bump up version number to 1.3.1
  5281. * configure.ac
  5282. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5283. Removed unused variable checkPoint. Also removed include directive
  5284. for TimeA2.h.
  5285. * src/SeedCheckCommand.h
  5286. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5287. Fixed the bug that upload limit exceeds the value specified in
  5288. --seed-ratio option depending on the timing of the execution of
  5289. SeedCheckCommand.
  5290. * src/SeedCheckCommand.cc
  5291. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5292. Fixed the bug that removed peer's session upload/download length
  5293. are counted twice in _cachedTransferStat before it is
  5294. re-calculated. This affected the calculation of shara ratio,
  5295. resulting aria2 wrongly determines that specified share ratio is
  5296. reached. Also fixed the typo in calculateStatFor function name.
  5297. * src/BtSetup.cc
  5298. * src/DefaultPeerStorage.cc
  5299. * src/ShareRatioSeedCriteria.h
  5300. * test/ShareRatioSeedCriteriaTest.cc
  5301. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5302. * Release 1.3.0
  5303. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5304. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5305. Nynorsk translations. Thanks to all translators.
  5306. * po/es.po
  5307. * po/ja.po
  5308. * po/nn.po
  5309. * po/ru.po
  5310. * po/uk.po
  5311. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5312. Rewritten isInRange()
  5313. * src/DHTBucket.cc
  5314. * test/DHTBucketTest.cc
  5315. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5316. Fixed typo
  5317. * doc/aria2c.1.txt
  5318. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5319. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5320. malloc/realloc is not used.
  5321. * src/configure.ac
  5322. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5323. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5324. char* bitfield instead of stl container for efficiency.
  5325. PieceSelector::select now takes this
  5326. bitfield. RarestPieceSelector::select now also performs
  5327. efficiently for this change. bitfield namespace is introduced and
  5328. it has several helper functions to handle basic bitfield
  5329. operations such as test, count set bits, etc.
  5330. * src/BitfieldMan.cc
  5331. * src/BitfieldMan.h
  5332. * src/DefaultBtRequestFactory.cc
  5333. * src/DefaultPieceStorage.cc
  5334. * src/DefaultPieceStorage.h
  5335. * src/LongestSequencePieceSelector.cc
  5336. * src/LongestSequencePieceSelector.h
  5337. * src/Makefile.am
  5338. * src/Piece.cc
  5339. * src/Piece.h
  5340. * src/PieceSelector.h
  5341. * src/RarestPieceSelector.cc
  5342. * src/RarestPieceSelector.h
  5343. * src/Util.cc
  5344. * src/Util.h
  5345. * src/bitfield.h
  5346. * test/BitfieldManTest.cc
  5347. * test/LongestSequencePieceSelectorTest.cc
  5348. * test/Makefile.am
  5349. * test/RarestPieceSelectorTest.cc
  5350. * test/UtilTest.cc
  5351. * test/bitfieldTest.cc
  5352. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5353. Made accepted socket non-block.
  5354. * src/FtpNegotiationCommand.cc
  5355. * src/HttpListenCommand.cc
  5356. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5357. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5358. * src/AbstractSingleDiskAdaptor.cc
  5359. * src/DefaultPieceStorage.cc
  5360. * src/DiskAdaptor.h
  5361. * src/DiskAdaptor.h
  5362. * src/MultiFileAllocationIterator.cc
  5363. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5364. Run
  5365. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5366. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5367. it doesn't need to be called every time when
  5368. DefaultBtInteractive::doInteractionProcessing() is called.
  5369. * src/DefaultBtInteractive.cc
  5370. * src/DefaultBtInteractive.h
  5371. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5372. Documented 'falloc' in man page.
  5373. * doc/aria2c.1.txt
  5374. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5375. Updated doc
  5376. * src/usage_text.h
  5377. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5378. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5379. allocation mode uses posix_fallocate() system call to allocate
  5380. file on disk. If you are using newer file systems such as ext4
  5381. (with extents support), btrfs or xfs, 'falloc' is your best
  5382. choice. It allocates large(few GiB) files almost instantly. Don't
  5383. use 'falloc' with legacy file systems such as ext3 because it
  5384. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5385. until allocation finishes. 'falloc' may not be available if your
  5386. system doesn't have posix_fallocate() system call.
  5387. * configure.ac
  5388. * src/AbstractDiskWriter.cc
  5389. * src/AbstractDiskWriter.h
  5390. * src/AbstractSingleDiskAdaptor.cc
  5391. * src/BinaryStream.h
  5392. * src/BtCheckIntegrityEntry.cc
  5393. * src/ByteArrayDiskWriter.h
  5394. * src/CheckIntegrityEntry.cc
  5395. * src/CheckIntegrityEntry.h
  5396. * src/DefaultPieceStorage.cc
  5397. * src/DiskAdaptor.cc
  5398. * src/DiskAdaptor.h
  5399. * src/DiskWriter.h
  5400. * src/FallocFileAllocationIterator.cc
  5401. * src/FallocFileAllocationIterator.h
  5402. * src/FileAllocationEntry.cc
  5403. * src/FileAllocationEntry.h
  5404. * src/Makefile.am
  5405. * src/MultiFileAllocationIterator.cc
  5406. * src/MultiFileAllocationIterator.h
  5407. * src/OptionHandlerFactory.cc
  5408. * src/RequestGroup.cc
  5409. * src/StreamCheckIntegrityEntry.cc
  5410. * src/prefs.cc
  5411. * src/prefs.h
  5412. * src/usage_text.h
  5413. * test/FallocFileAllocationIteratorTest.cc
  5414. * test/Makefile.am
  5415. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5416. Removed duplicate enableDirectIO() call.
  5417. * src/MultiFileAllocationIterator.cc
  5418. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5419. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5420. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5421. cost of std::rotate().
  5422. * src/RarestPieceSelector.cc
  5423. * src/RarestPieceSelector.h
  5424. * test/RarestPieceSelectorTest.cc
  5425. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5426. Updated usage doc for --bt-tracker-interval option.
  5427. * src/usage_text.h
  5428. * doc/aria2c.1.txt
  5429. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5430. Documented --bt-tracker-interval option in man page.
  5431. * doc/aria2c.1.txt
  5432. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5433. Added an option to specify the interval between tracker requests.
  5434. If non-zero value is specified, aria2 uses it and ignores the
  5435. interval value in the response of tracker. If zero is specified,
  5436. aria2 determines the inteval value based on the tarcker response
  5437. and download progress.
  5438. * src/DefaultBtAnnounce.cc
  5439. * src/DefaultBtAnnounce.h
  5440. * src/OptionHandlerFactory.cc
  5441. * src/RequestGroup.cc
  5442. * src/prefs.cc
  5443. * src/prefs.h
  5444. * src/usage_text.h
  5445. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5446. Added operator+=, operator-=, operator-
  5447. * src/TransferStat.cc
  5448. * src/TransferStat.h
  5449. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5450. Refactored RarestPieceSelector to reduce CPU load, especially for
  5451. addPieceStats.
  5452. * src/RarestPieceSelector.cc
  5453. * src/RarestPieceSelector.h
  5454. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5455. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5456. getAllMissingBlockIndexes to reduce a call to
  5457. array_function_base::operator[].
  5458. * src/BitfieldMan.cc
  5459. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5460. Cached TransferStat/download speed to avoid to sum them up in each
  5461. call.
  5462. * src/DefaultPeerStorage.cc
  5463. * src/DefaultPeerStorage.h
  5464. * src/SegmentMan.cc
  5465. * src/SegmentMan.h
  5466. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5467. Typedefed cuid_t as int32_t in Command.h
  5468. * src/CUIDCounter.h
  5469. * src/Command.cc
  5470. * src/Command.h
  5471. * src/DownloadEngine.cc
  5472. * src/DownloadEngine.h
  5473. * src/PeerStat.h
  5474. * src/SegmentMan.cc
  5475. * src/SegmentMan.h
  5476. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5477. Reduced the number of calls to PeerStorage::calculateStat() and
  5478. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5479. transfer rate.
  5480. * src/DefaultBtInteractive.cc
  5481. * src/DefaultBtMessageDispatcher.cc
  5482. * src/DefaultPeerStorage.cc
  5483. * src/DefaultPeerStorage.h
  5484. * src/DownloadCommand.cc
  5485. * src/DownloadEngine.cc
  5486. * src/PeerStorage.h
  5487. * src/SegmentMan.cc
  5488. * src/SegmentMan.h
  5489. * test/MockPeerStorage.h
  5490. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5491. Prepended _dir+"/" after joining path elements in torrent file.
  5492. * src/DefaultBtContext.cc
  5493. * test/DefaultBtContextTest.cc
  5494. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5495. Added missing IndexBtMessageValidator.h
  5496. * src/Makefile.am
  5497. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5498. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5499. Chinese translations. Thank you for contributing our project.
  5500. * po/id.po
  5501. * po/it.po
  5502. * po/ru.po
  5503. * po/uk.po
  5504. * po/zh_CN.po
  5505. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5506. Updated README
  5507. * README
  5508. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5509. Bump up version number to 1.3.0
  5510. * configure.ac
  5511. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5512. Updated doc
  5513. * src/DefaultBtContext.h
  5514. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5515. Slice/joinPath for name of single torrent.
  5516. * src/DefaultBtContext.cc
  5517. * test/DefaultBtContextTest.cc
  5518. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5519. Updated man page: Documented --dry-run and --index-out
  5520. options. Changed the default value of --uri-selector and
  5521. --http-auth-challenge options. Removed --direct-file-mapping
  5522. option. Added example for --index-out
  5523. * doc/aria2c.1.txt
  5524. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5525. Updated TEXT_DRY_RUN
  5526. * src/usage_text.h
  5527. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5528. Changed the default value of --uri-selector option from 'inorder'
  5529. to 'feedback'
  5530. * src/OptionHandlerFactory.cc
  5531. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5532. Included current URI in exception message.
  5533. * src/AbstractCommand.cc
  5534. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5535. Renamed ServerStatURISelector as FeedbackURISelector.
  5536. * src/FeedbackURISelector.cc
  5537. * src/FeedbackURISelector.h
  5538. * src/Makefile.am
  5539. * src/RequestGroupMan.cc
  5540. * src/ServerStatURISelector.cc
  5541. * src/ServerStatURISelector.h
  5542. * test/FeedbackURISelectorTest.cc
  5543. * test/Makefile.am
  5544. * test/ServerStatURISelectorTest.cc
  5545. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5546. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5547. all URIs are tested and their timeout is not reached.
  5548. * src/AdaptiveURISelector.cc
  5549. * src/AdaptiveURISelector.h
  5550. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5551. Changed the default value of --http-auth-challenge option to false.
  5552. * src/OptionHandlerFactory.cc
  5553. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5554. Reuse URIs when all unused URIs run out.
  5555. * src/OptionHandlerFactory.cc
  5556. * src/RequestGroup.cc
  5557. * src/prefs.cc
  5558. * src/prefs.h
  5559. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5560. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5561. and BtRejectMessage are derived from RangeBtMessage class.
  5562. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5563. derived from IndexBtMessage class. BtChokeMessage,
  5564. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5565. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5566. ZeroBtMessage class.
  5567. * src/AbstractBtMessage.cc
  5568. * src/AbstractBtMessage.h
  5569. * src/BtAllowedFastMessage.cc
  5570. * src/BtAllowedFastMessage.h
  5571. * src/BtAllowedFastMessageValidator.h: Removed
  5572. * src/BtBitfieldMessage.cc
  5573. * src/BtBitfieldMessage.h
  5574. * src/BtCancelMessage.cc
  5575. * src/BtCancelMessage.h
  5576. * src/BtCancelMessageValidator.h: Removed
  5577. * src/BtChokeMessage.cc
  5578. * src/BtChokeMessage.h
  5579. * src/BtExtendedMessage.cc
  5580. * src/BtExtendedMessage.h
  5581. * src/BtHandshakeMessage.cc
  5582. * src/BtHandshakeMessage.h
  5583. * src/BtHaveAllMessage.cc
  5584. * src/BtHaveAllMessage.h
  5585. * src/BtHaveMessage.cc
  5586. * src/BtHaveMessage.h
  5587. * src/BtHaveMessageValidator.h: Removed
  5588. * src/BtHaveNoneMessage.cc
  5589. * src/BtHaveNoneMessage.h
  5590. * src/BtInterestedMessage.cc
  5591. * src/BtInterestedMessage.h
  5592. * src/BtKeepAliveMessage.cc
  5593. * src/BtKeepAliveMessage.h
  5594. * src/BtNotInterestedMessage.cc
  5595. * src/BtNotInterestedMessage.h
  5596. * src/BtPieceMessage.cc
  5597. * src/BtPieceMessage.h
  5598. * src/BtPortMessage.cc
  5599. * src/BtPortMessage.h
  5600. * src/BtRejectMessage.cc
  5601. * src/BtRejectMessage.h
  5602. * src/BtRejectMessageValidator.h: Removed
  5603. * src/BtRequestMessage.cc
  5604. * src/BtRequestMessage.h
  5605. * src/BtRequestMessageValidator.h: Removed
  5606. * src/BtSuggestPieceMessage.cc
  5607. * src/BtSuggestPieceMessage.h
  5608. * src/BtSuggestPieceMessageValidator.h: Removed
  5609. * src/BtUnchokeMessage.cc
  5610. * src/BtUnchokeMessage.h
  5611. * src/DefaultBtMessageFactory.cc
  5612. * src/IndexBtMessage.cc
  5613. * src/IndexBtMessage.h
  5614. * src/IndexBtMessageValidator.h
  5615. * src/Makefile.am
  5616. * src/PeerMessageUtil.cc
  5617. * src/PeerMessageUtil.h
  5618. * src/RangeBtMessage.cc
  5619. * src/RangeBtMessage.h
  5620. * src/RangeBtMessageValidator.h
  5621. * src/SimpleBtMessage.cc
  5622. * src/SimpleBtMessage.h
  5623. * src/ZeroBtMessage.cc
  5624. * src/ZeroBtMessage.h
  5625. * test/BtRequestMessageTest.cc
  5626. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5627. Reverted usage_text.h to r1093 to avoid to lose translated
  5628. messages.
  5629. * src/usage_text.h
  5630. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5631. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5632. declared as non-const previously is now const and defined in class
  5633. definition.
  5634. * src/AbstractBtMessage.cc
  5635. * src/AbstractBtMessage.h
  5636. * src/BtAllowedFastMessage.cc
  5637. * src/BtAllowedFastMessage.h
  5638. * src/BtBitfieldMessage.h
  5639. * src/BtCancelMessage.cc
  5640. * src/BtCancelMessage.h
  5641. * src/BtChokeMessage.cc
  5642. * src/BtChokeMessage.h
  5643. * src/BtExtendedMessage.cc
  5644. * src/BtExtendedMessage.h
  5645. * src/BtHandshakeMessage.cc
  5646. * src/BtHandshakeMessage.h
  5647. * src/BtHaveAllMessage.cc
  5648. * src/BtHaveAllMessage.h
  5649. * src/BtHaveMessage.cc
  5650. * src/BtHaveMessage.h
  5651. * src/BtHaveNoneMessage.cc
  5652. * src/BtHaveNoneMessage.h
  5653. * src/BtInterestedMessage.cc
  5654. * src/BtInterestedMessage.h
  5655. * src/BtKeepAliveMessage.cc
  5656. * src/BtKeepAliveMessage.h
  5657. * src/BtMessage.h
  5658. * src/BtNotInterestedMessage.cc
  5659. * src/BtNotInterestedMessage.h
  5660. * src/BtPieceMessage.h
  5661. * src/BtPortMessage.cc
  5662. * src/BtPortMessage.h
  5663. * src/BtRejectMessage.cc
  5664. * src/BtRejectMessage.h
  5665. * src/BtRequestMessage.cc
  5666. * src/BtRequestMessage.h
  5667. * src/BtSuggestPieceMessage.cc
  5668. * src/BtSuggestPieceMessage.h
  5669. * src/BtUnchokeMessage.cc
  5670. * src/BtUnchokeMessage.h
  5671. * src/SimpleBtMessage.cc
  5672. * src/SimpleBtMessage.h
  5673. * test/MockBtMessage.h
  5674. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5675. Use FileEntry::exists()
  5676. * src/MultiDiskAdaptor.cc
  5677. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5678. Added exists()
  5679. * src/FileEntry.cc
  5680. * src/FileEntry.h
  5681. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5682. Added missing prefix dir.
  5683. * src/download_helper.cc
  5684. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5685. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5686. * src/CopyDiskAdaptor.cc: Removed
  5687. * src/CopyDiskAdaptor.h: Removed
  5688. * src/DefaultPieceStorage.cc
  5689. * src/Makefile.am
  5690. * src/OptionHandlerFactory.cc
  5691. * src/prefs.cc
  5692. * src/prefs.h
  5693. * src/usage_text.h
  5694. * test/CopyDiskAdaptorTest.cc: Removed
  5695. * test/Makefile.am
  5696. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5697. Rewritten isSameFileBeingDownloaded()
  5698. * src/RequestGroupMan.cc
  5699. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5700. Removed getName() from DownloadContext. getName() is declared in
  5701. BtContext.
  5702. * src/BtContext.h
  5703. * src/DownloadContext.h
  5704. * src/SingleFileDownloadContext.cc
  5705. * src/SingleFileDownloadContext.h
  5706. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5707. in AbstractSingleDiskAdaptor.
  5708. * src/AbstractSingleDiskAdaptor.h
  5709. * src/DiskAdaptor.h
  5710. * src/MultiDiskAdaptor.h
  5711. * src/RequestGroup.cc
  5712. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5713. MultiDiskAdaptor.
  5714. * src/DefaultPieceStorage.cc
  5715. * src/MultiDiskAdaptor.cc
  5716. * src/MultiDiskAdaptor.h
  5717. * test/MultiDiskAdaptorTest.cc
  5718. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5719. FileEntry::getPath() contains store(top level) directory to
  5720. simplify path handling operation. In the previous implementation,
  5721. store directory is concatenated to FileEntry::getPath() in
  5722. DownloadContext.
  5723. * src/BtDependency.cc
  5724. * src/BtPostDownloadHandler.cc
  5725. * src/CopyDiskAdaptor.cc
  5726. * src/DefaultBtContext.cc
  5727. * src/DirectDiskAdaptor.cc
  5728. * src/FileEntry.cc
  5729. * src/FileEntry.h
  5730. * src/FtpNegotiationCommand.cc
  5731. * src/HttpResponse.cc
  5732. * src/HttpResponseCommand.cc
  5733. * src/Metalink2RequestGroup.cc
  5734. * src/MultiDiskAdaptor.cc
  5735. * src/MultiDiskAdaptor.h
  5736. * src/MultiFileAllocationIterator.cc
  5737. * src/RequestGroup.cc
  5738. * src/SingleFileDownloadContext.cc
  5739. * src/SingleFileDownloadContext.h
  5740. * src/download_helper.cc
  5741. * test/BtDependencyTest.cc
  5742. * test/CopyDiskAdaptorTest.cc
  5743. * test/DefaultBtContextTest.cc
  5744. * test/DefaultBtProgressInfoFileTest.cc
  5745. * test/DirectDiskAdaptorTest.cc
  5746. * test/DownloadHelperTest.cc
  5747. * test/FileEntryTest.cc
  5748. * test/MultiDiskAdaptorTest.cc
  5749. * test/MultiFileAllocationIteratorTest.cc
  5750. * test/RequestGroupTest.cc
  5751. * test/SingleFileDownloadContextTest.cc
  5752. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5753. Fixed compiler warning
  5754. * src/download_helper.cc
  5755. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5756. Throw exception if same infohash torrent is now downloading.
  5757. * src/RequestGroup.cc
  5758. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5759. Added --dry-run option. In this mode, aria2 just checks whether
  5760. the remote file is available and doesn't download data. This
  5761. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5762. are canceled in this mode.
  5763. * src/FtpNegotiationCommand.cc
  5764. * src/HttpResponseCommand.cc
  5765. * src/HttpResponseCommand.h
  5766. * src/OptionHandlerFactory.cc
  5767. * src/RequestGroup.cc
  5768. * src/RequestGroupMan.cc
  5769. * src/prefs.cc
  5770. * src/prefs.h
  5771. * src/usage_text.h
  5772. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5773. Fixed compiler waring
  5774. * test/UriListParserTest.cc
  5775. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5776. Parse options in -i list using OptionParser.
  5777. * src/UriListParser.cc
  5778. * src/UriListParser.h
  5779. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5780. Don't reset URI in retry to avoid additional round trips because
  5781. of redirects.
  5782. * src/AbstractCommand.cc
  5783. * src/OptionHandlerFactory.cc
  5784. * src/prefs.cc
  5785. * src/prefs.h
  5786. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5787. Declared hide() in OptionHandler.
  5788. * src/NameMatchOptionHandler.h
  5789. * src/OptionHandler.h
  5790. * src/OptionHandlerImpl.h
  5791. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5792. Updated doc
  5793. * src/Peer.h
  5794. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5795. Added log message in setStatusInternal()
  5796. * src/ServerStat.cc
  5797. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5798. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5799. effectively exclude failed server.
  5800. * src/AbstractCommand.cc
  5801. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5802. Added --index-out option to specify each file path for torrent.
  5803. Here index shown in --show-files option is used to specify which
  5804. file path should be altered. For example, to change the file path
  5805. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5806. option multiple times: --index-out=1=aria2.tar.bz2
  5807. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5808. available. This option can be specified in -i list.
  5809. * src/DefaultBtContext.cc
  5810. * src/DefaultBtContext.h
  5811. * src/MultiDiskAdaptor.cc
  5812. * src/MultiDiskAdaptor.h
  5813. * src/MultiFileAllocationIterator.cc
  5814. * src/OptionHandlerFactory.cc
  5815. * src/OptionHandlerImpl.h
  5816. * src/Util.cc
  5817. * src/Util.h
  5818. * src/download_helper.cc
  5819. * src/prefs.cc
  5820. * src/prefs.h
  5821. * src/usage_text.h
  5822. * test/DefaultBtContextTest.cc
  5823. * test/MultiDiskAdaptorTest.cc
  5824. * test/MultiFileAllocationIteratorTest.cc
  5825. * test/UtilTest.cc
  5826. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5827. Use Util::pathJoin()
  5828. * src/MetalinkParserController.cc
  5829. * test/test.xml
  5830. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5831. Use Util::pathJoin()
  5832. * src/DefaultBtContext.cc
  5833. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5834. Added Util::pathJoin()
  5835. * src/Util.h
  5836. * test/UtilTest.cc
  5837. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5838. Applied basename function to remove directory element in
  5839. content-disposition value.
  5840. Return empty string if content-disposition value is ".." or ".".
  5841. * src/Util.cc
  5842. * test/UtilTest.cc
  5843. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5844. Added --max-overall-download-limit in man page.
  5845. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5846. * doc/aria2c.1.txt
  5847. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5848. Added --max-overall-download-limit option. Now --max-upload-limit
  5849. option is not ignored when --max-overall-upload-limit option has
  5850. non-zero value. aria2 checks download(upload) speed in the order:
  5851. first checks overall speed limit and if it is not exceeded, then
  5852. checks speed limit per download. Thus you can specify both
  5853. value. For example, set --max-overall-download-limit=1M and
  5854. --max-download-limit=500K to prevent from one download from eating
  5855. all overall speed limit.
  5856. * src/DefaultBtInteractive.cc
  5857. * src/DefaultBtInteractive.h
  5858. * src/DefaultBtMessageDispatcher.cc
  5859. * src/DefaultBtMessageDispatcher.h
  5860. * src/DownloadCommand.cc
  5861. * src/DownloadCommand.h
  5862. * src/FtpNegotiationCommand.cc
  5863. * src/HttpResponseCommand.cc
  5864. * src/OptionHandlerFactory.cc
  5865. * src/PeerInteractionCommand.cc
  5866. * src/RequestGroup.cc
  5867. * src/RequestGroup.h
  5868. * src/RequestGroupMan.cc
  5869. * src/RequestGroupMan.h
  5870. * src/prefs.cc
  5871. * src/prefs.h
  5872. * src/usage_text.h
  5873. * test/DefaultBtMessageDispatcherTest.cc
  5874. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5875. Documented select-file option in Input File section.
  5876. Documented --http-auth-challenge option.
  5877. * doc/aria2c.1.txt
  5878. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5879. Now select-file can be specified in the uri list(-i list).
  5880. * src/BtContext.cc
  5881. * src/BtContext.h
  5882. * src/RequestGroup.cc
  5883. * src/Sequence.h
  5884. * src/download_helper.cc
  5885. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5886. Made the upper value of --max-concurrent-downloads options unlimited.
  5887. * src/OptionHandlerFactory.cc
  5888. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5889. Fixed the bug that disk writer is not created even if it shares
  5890. same piece with the preceding file if the length of previous file
  5891. is 0.
  5892. * src/MultiDiskAdaptor.cc
  5893. * test/MultiDiskAdaptorTest.cc
  5894. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5895. In BitTorrent, Open files in read-only mode for hash check. After
  5896. that, re-open file in read/write mode only when the download is
  5897. not finished.
  5898. * src/AbstractDiskWriter.cc
  5899. * src/AbstractDiskWriter.h
  5900. * src/AbstractSingleDiskAdaptor.cc
  5901. * src/AbstractSingleDiskAdaptor.h
  5902. * src/BtCheckIntegrityEntry.cc
  5903. * src/DiskAdaptor.h
  5904. * src/DiskWriter.h
  5905. * src/MultiDiskAdaptor.cc
  5906. * src/MultiDiskAdaptor.h
  5907. * src/RequestGroup.cc
  5908. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5909. Added --http-auth-challenge option. If it is set to true(by
  5910. default), aria2 sends HTTP authorization header only when it is
  5911. requested by the server. If false is set, then authorization
  5912. header is always sent to the server. This is useful for servers
  5913. that don't respond 401 code when authentication is required.
  5914. There is an exception: if username and password are embedded in
  5915. URI, authorization header is always sent to the server regardless
  5916. of this option.
  5917. * src/AuthConfigFactory.cc
  5918. * src/HttpSkipResponseCommand.cc
  5919. * src/OptionHandlerFactory.cc
  5920. * src/prefs.cc
  5921. * src/prefs.h
  5922. * src/usage_text.h
  5923. * test/AuthConfigFactoryTest.cc
  5924. * test/HttpRequestTest.cc
  5925. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5926. * Release 1.2.0
  5927. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5928. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5929. Thanks to all translators.
  5930. * po/es.po
  5931. * po/ja.po
  5932. * po/ru.po
  5933. * po/uk.po
  5934. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5935. Call deleteSocketForReadCheck() before socket is closed.
  5936. * src/HttpListenCommand.cc
  5937. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5938. Defined virtual destructor for BObject.
  5939. * src/bencode.h
  5940. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5941. Rewritten BDE to make it efficient.
  5942. * src/bencode.cc
  5943. * src/bencode.h
  5944. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5945. Removed function throw list.
  5946. * src/bencode.cc
  5947. * src/bencode.h
  5948. * test/BencodeTest.cc
  5949. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5950. Enclosed all URLs in double quotes in command-line examples.
  5951. * doc/aria2c.1.txt
  5952. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5953. Updated reference/see also section.
  5954. * README
  5955. * doc/aria2c.1.txt
  5956. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5957. Reorganized man page based on man man-pages.
  5958. * doc/aria2c.1.txt
  5959. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5960. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5961. because same documents are available in man page. Added
  5962. References section.
  5963. * README
  5964. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5965. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5966. PERFORMANCE PROFILE section.
  5967. * doc/aria2c.1.txt
  5968. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5969. Rewritten the section for configuration file.
  5970. * README
  5971. * doc/aria2c.1.txt
  5972. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5973. Fixed the segmentation fault during execution of choking algorithm
  5974. in leecher state because of broken compare operator
  5975. implementation.
  5976. * src/BtLeecherStateChoke.cc
  5977. * src/BtLeecherStateChoke.h
  5978. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5979. Open file in binary mode.
  5980. * src/CookieStorage.cc
  5981. * src/DHTSetup.cc
  5982. * src/DHTUtil.cc
  5983. * src/Netrc.cc
  5984. * src/NsCookieParser.cc
  5985. * src/ProtocolDetector.cc
  5986. * src/RequestGroupMan.cc
  5987. * src/Signature.cc
  5988. * src/bencode.cc
  5989. * src/download_helper.cc
  5990. * src/option_processing.cc
  5991. * test/CookieParserTest.cc
  5992. * test/DefaultBtProgressInfoFileTest.cc
  5993. * test/FileTest.cc
  5994. * test/GZipDecoderTest.cc
  5995. * test/RequestGroupManTest.cc
  5996. * test/SignatureTest.cc
  5997. * test/SingleFileAllocationIteratorTest.cc
  5998. * test/UriListParserTest.cc
  5999. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6000. Removed operator[] because it is ambiguous with built-in []
  6001. operator.
  6002. * src/array_fun.h
  6003. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6004. Fixed compile error
  6005. * src/OptionParser.cc
  6006. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6007. Added missing call to arrayWrapperConst
  6008. * test/array_funTest.cc
  6009. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6010. Use array_wrapper instead of array_ptr.
  6011. * src/DHTRoutingTableDeserializer.cc
  6012. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6013. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6014. * src/array_fun.h
  6015. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6016. Added array_wrapper template.
  6017. * src/array_fun.h
  6018. * test/array_funTest.cc
  6019. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6020. Use operator T* of array_ptr.
  6021. * src/OptionParser.cc
  6022. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6023. Use localhost instead of 127.0.0.1
  6024. * test/FtpConnectionTest.cc
  6025. * test/MSEHandshakeTest.cc
  6026. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6027. Added operator T*
  6028. * src/array_fun.h
  6029. * test/array_funTest.cc
  6030. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6031. Use dynamically allocated char array to detect memory access
  6032. violation.
  6033. * src/DHTRoutingTableDeserializer.cc
  6034. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6035. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6036. defined.
  6037. * src/PeerMessageUtil.cc
  6038. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6039. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6040. * configure.ac
  6041. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6042. Added a check to see struct sockaddr_in has sin_len member.
  6043. * configure.ac
  6044. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6045. Fixed buffer overrun.
  6046. * src/DHTRoutingTableDeserializer.cc
  6047. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6048. Added LL for long long int constant.
  6049. * test/FtpConnectionTest.cc
  6050. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6051. Casted to unsigned int to suppress compiler warning on netbsd.
  6052. * src/BtRuntime.h
  6053. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6054. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6055. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6056. type time_t.
  6057. * src/SimpleLogger.cc
  6058. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6059. Added test for FtpConnection::receiveSizeResponse().
  6060. * test/FtpConnectionTest.cc
  6061. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6062. Fix epoll error on the old kernel 2.6.8 or ealier.
  6063. * src/EpollEventPoll.cc
  6064. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6065. Use Util::parseLLInt instead of sscanf for portability. The
  6066. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6067. * src/FtpConnection.cc
  6068. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6069. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6070. block. It should not filter anything.
  6071. * src/BitfieldMan.cc
  6072. * src/ConsoleStatCalc.cc
  6073. * test/BitfieldManTest.cc
  6074. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6075. Fixed the bug that the boolean options that don't take arguments
  6076. don't work.
  6077. * src/OptionHandlerImpl.h
  6078. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6079. Fixed broken selected file BitTorrent download.
  6080. * src/MultiDiskAdaptor.cc
  6081. * test/MultiDiskAdaptorTest.cc
  6082. * test/MultiFileAllocationIteratorTest.cc
  6083. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6084. Fixed #define guard for EpollEventPoll
  6085. * src/EpollEventPoll.h
  6086. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6087. Wait 2 seconds. 1 second is sometimes not enough.
  6088. * test/TimeSeedCriteriaTest.cc
  6089. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6090. Use localhost instead of 127.0.0.1.
  6091. * test/DHTConnectionImplTest.cc
  6092. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6093. Suppressed compiler warning.
  6094. * src/AdaptiveURISelector.cc
  6095. * src/DefaultPieceStorage.cc
  6096. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6097. Defined virtual destructor.
  6098. * src/MetalinkParserState.h
  6099. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6100. Give NULL for second argument of getaddrinfo instead of "0".
  6101. * src/NameResolver.cc
  6102. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6103. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6104. included strptime doesn't parse data for this format.
  6105. * src/FtpConnection.cc
  6106. * test/FtpConnectionTest.cc
  6107. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6108. Removed tests giving -1 for unsigned argument.
  6109. * test/SingleFileDownloadContextTest.cc
  6110. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6111. Don't use sha256 in tests because it might not be supported by the
  6112. SSL library.
  6113. * test/MetalinkProcessorTest.cc
  6114. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6115. Removed tests giving -1 for unsigned argument.
  6116. * test/AlphaNumberDecoratorTest
  6117. * test/BitfieldManTest.cc
  6118. * test/DefaultBtContextTest.cc
  6119. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6120. Fixed compile error without libcares when epoll is available.
  6121. * src/EpollEventPoll.cc
  6122. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6123. Included fstream instead of iostream.
  6124. * test/SignatureTest.cc
  6125. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6126. Removed #include <algorithm>
  6127. * test/RequestGroupTest.cc
  6128. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6129. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6130. using RequestGroup::extractURIResult().
  6131. * src/AdaptiveURISelector.cc
  6132. * src/RequestGroup.cc
  6133. * src/RequestGroup.h
  6134. * test/RequestGroupTest.cc
  6135. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6136. Added tests for array_ptr.
  6137. * test/array_funTest.cc
  6138. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6139. Don't send ip parameter to a tracker if ip parameter is empty
  6140. string.
  6141. * src/DefaultBtAnnounce.cc
  6142. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6143. Adjusted line feed.
  6144. * src/version_usage.cc
  6145. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6146. Print tags, possible values when OptionHandlerException is caught.
  6147. * src/option_processing.cc
  6148. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6149. Changed the message for FatalException.
  6150. * src/OptionParser.cc
  6151. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6152. Documented --bt-external-ip option in man page. Updated man pages
  6153. for --proxy-method option.
  6154. * doc/aria2c.1.txt
  6155. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6156. Use GET method for FTP via HTTP proxy.
  6157. * src/FtpInitiateConnectionCommand.cc
  6158. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6159. Changed the default value of --proxy-method option from 'tunnel'
  6160. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6161. option.
  6162. * src/AbstractCommand.cc
  6163. * src/AbstractCommand.h
  6164. * src/FtpInitiateConnectionCommand.cc
  6165. * src/HttpDownloadCommand.cc
  6166. * src/HttpInitiateConnectionCommand.cc
  6167. * src/HttpInitiateConnectionCommand.h
  6168. * src/OptionHandlerFactory.cc
  6169. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6170. Initialized _logger
  6171. * src/SelectEventPoll.cc
  6172. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6173. Defined a copy constructor for the same type.
  6174. * src/SharedHandle.h
  6175. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6176. Added OptionParser::parseArg() which internally uses getopt_long
  6177. to parse command-line options. All command-line options are now
  6178. configured by OptionHandler. No manual editing of struct option*
  6179. is required any more.
  6180. * src/NameMatchOptionHandler.h
  6181. * src/OptionHandler.h
  6182. * src/OptionHandlerFactory.cc
  6183. * src/OptionHandlerImpl.h
  6184. * src/OptionParser.cc
  6185. * src/OptionParser.h
  6186. * src/array_fun.h
  6187. * src/main.cc
  6188. * src/option_processing.cc
  6189. * test/OptionHandlerTest.cc
  6190. * test/OptionParserTest.cc
  6191. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6192. Fixed configure error with --disable-epoll
  6193. * configure.ac
  6194. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6195. Fixed compile error when HAVE_EPOLL is not defined.
  6196. Fixed linker error on bigendian systems.
  6197. * src/SocketCore.cc
  6198. * src/SocketCore.h
  6199. * test/DefaultBtProgressInfoFileTest.cc
  6200. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6201. Added --bt-external-ip option. You can specify the external IP
  6202. address to report to a BitTorrent tracker. Although this function
  6203. is named 'external', it can accept any kind of IP addresses.
  6204. * src/DefaultBtAnnounce.cc
  6205. * src/OptionHandlerFactory.cc
  6206. * src/option_processing.cc
  6207. * src/prefs.cc
  6208. * src/prefs.h
  6209. * src/usage_text.h
  6210. * test/DefaultBtAnnounceTest.cc
  6211. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6212. Extracted the algorithm to find the longest incremental sequence
  6213. as max_sequence template.
  6214. * src/LongestSequencePieceSelector.cc
  6215. * src/a2algo.h
  6216. * test/Makefile.am
  6217. * test/a2algoTest.cc
  6218. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6219. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6220. * src/usage_text.h
  6221. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6222. Updated doc for --uri-selector, --http-server-listen-port and
  6223. --enable-http-server option. Documented --event-poll option.
  6224. * doc/aria2c.1.txt
  6225. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6226. Updated doc for --enable-http-server.
  6227. * src/usage_text.h
  6228. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6229. Documented --http-server-listen-port and --enable-http-server in
  6230. man page.
  6231. * doc/aria2c.1.txt
  6232. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6233. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6234. translations. Thanks to all translators.
  6235. * po/es.po
  6236. * po/id.po
  6237. * po/it.po
  6238. * po/ru.po
  6239. * po/uk.po
  6240. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6241. Bump up version number to 1.2.0
  6242. * configure.ac
  6243. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6244. BtContext::getAnnounceTiers() now returns const reference.
  6245. * src/BtContext.h
  6246. * src/DefaultBtContext.cc
  6247. * src/DefaultBtContext.h
  6248. * test/MockBtContext.h
  6249. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6250. Change the number of retries for tracker request based on the
  6251. number of available tracker in a torrent file.
  6252. * src/TrackerWatcherCommand.cc
  6253. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6254. Added _maxTries property to RequestGroup and assign the option
  6255. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6256. RequestGroup::getMaxTries() instead of
  6257. Option::getAsInt(PREF_MAX_TRIES).
  6258. * src/AbstractCommand.cc
  6259. * src/RequestGroup.cc
  6260. * src/RequestGroup.h
  6261. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6262. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6263. Mandriva. I modified the patch: make RequestGroup have the
  6264. timeout value and AdaptiveURISelector directly modifies that
  6265. value.
  6266. * src/AbstractCommand.cc
  6267. * src/AdaptiveURISelector.cc
  6268. * src/AdaptiveURISelector.h
  6269. * src/FtpNegotiationCommand.cc
  6270. * src/RequestGroup.cc
  6271. * src/RequestGroup.h
  6272. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6273. Fixed compiler warning
  6274. * test/IteratableChecksumValidatorTest.cc
  6275. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6276. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6277. integrated downloads. This PieceSelector subclass finds the
  6278. longest continuous sequence in the available missing pieces and
  6279. selects the last index of such sequence. This makes HTTP/FTP
  6280. connections less interrupted by the pieces obtained by BitTorrent
  6281. peers.
  6282. * src/DefaultPieceStorage.cc
  6283. * src/DefaultPieceStorage.h
  6284. * src/LongestSequencePieceSelector.cc
  6285. * src/LongestSequencePieceSelector.h
  6286. * src/Makefile.am
  6287. * src/PieceSelector.h
  6288. * src/RarestPieceSelector.h
  6289. * src/RequestGroup.cc
  6290. * test/BtDependencyTest.cc
  6291. * test/DefaultPieceStorageTest.cc
  6292. * test/IteratableChecksumValidatorTest.cc
  6293. * test/LongestSequencePieceSelectorTest.cc
  6294. * test/Makefile.am
  6295. * test/SegmentManTest.cc
  6296. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6297. Fixed the bug that the average speed is wrong in
  6298. http/ftp/BitTorrent integrated download. Only the download bytes
  6299. in BitTorrent were considered.
  6300. * src/RequestGroup.cc
  6301. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6302. Choose port for BitTorrent/DHT randomly from the specified range.
  6303. * src/DHTConnectionImpl.cc
  6304. * src/PeerListenCommand.cc
  6305. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6306. Send HTTP Authorization header only if it is requested by the
  6307. server(response 401). There are some exceptions. The authorization
  6308. header for proxy is always sent if it is available without request
  6309. by the server. If username/password is specified in the URI, it
  6310. is immediately sent to the server without request by the server.
  6311. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6312. SharedHandle<AuthConfig>().
  6313. NetrcAuthResolver::resolveAuthConfig() returns
  6314. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6315. * src/AbstractAuthResolver.cc
  6316. * src/AbstractProxyRequestCommand.cc
  6317. * src/AuthConfigFactory.cc
  6318. * src/AuthConfigFactory.h
  6319. * src/HttpConnection.cc
  6320. * src/HttpRequest.cc
  6321. * src/HttpRequest.h
  6322. * src/HttpResponse.cc
  6323. * src/HttpResponseCommand.cc
  6324. * src/HttpSkipResponseCommand.cc
  6325. * test/AuthConfigFactoryTest.cc
  6326. * test/HttpRequestTest.cc
  6327. * test/HttpResponseTest.cc
  6328. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6329. Remove leading "--" from help keyword and a substring after "="
  6330. from help keyword, so that one can query options by '-h--max-' or
  6331. '-hmax-peers=10'.
  6332. * src/option_processing.cc
  6333. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6334. Rewritten PStringVisitor and its implementation.
  6335. * src/PStringBuildVisitor.cc
  6336. * src/PStringBuildVisitor.h
  6337. * src/PStringDatum.h
  6338. * src/PStringNumLoop.h
  6339. * src/PStringSegment.cc
  6340. * src/PStringSegment.h
  6341. * src/PStringSelect.h
  6342. * src/PStringVisitor.h
  6343. * src/download_helper.cc
  6344. * test/PStringBuildVisitorTest.cc
  6345. * test/ParameterizedStringParserTest.cc
  6346. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6347. Persist connection between the built-in HTTP server and a client
  6348. if a client supports keep-alive. Fixed the bug that aria2 exits
  6349. when the HTTP server receives EOF from a client.
  6350. * src/HttpServer.cc
  6351. * src/HttpServer.h
  6352. * src/HttpServerCommand.cc
  6353. * src/HttpServerCommand.h
  6354. * src/HttpServerResponseCommand.cc
  6355. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6356. Added experimental built-in HTTP server. Currently, when a client
  6357. accesses to the server, it responds with the current download
  6358. progress. By default, it is disabled. To enable the server, give
  6359. --enable-http-server option. To change the default port number
  6360. for the server to listen to, use --http-server-listen-port option.
  6361. The response HTML is very simple and refreshes it self each 1
  6362. second. Because of this refresh, you see flicker in normal web
  6363. browser such as Firefox. I recommend to use console-based browser
  6364. such as elinks, w3m. To connect to the server, run 'elinks
  6365. http://localhost:6800/' while running aria2. Please replace port
  6366. number '6800'(which is default) with your preference.
  6367. * src/DownloadEngineFactory.cc
  6368. * src/HttpHeader.cc
  6369. * src/HttpHeader.h
  6370. * src/HttpHeaderProcessor.cc
  6371. * src/HttpHeaderProcessor.h
  6372. * src/HttpListenCommand.cc
  6373. * src/HttpListenCommand.h
  6374. * src/HttpServer.cc
  6375. * src/HttpServer.h
  6376. * src/HttpServerCommand.cc
  6377. * src/HttpServerCommand.h
  6378. * src/HttpServerResponseCommand.cc
  6379. * src/HttpServerResponseCommand.h
  6380. * src/Makefile.am
  6381. * src/OptionHandlerFactory.cc
  6382. * src/Util.cc
  6383. * src/Util.h
  6384. * src/help_tags.h
  6385. * src/option_processing.cc
  6386. * src/prefs.cc
  6387. * src/prefs.h
  6388. * src/usage_text.h
  6389. * test/HttpHeaderProcessorTest.cc
  6390. * test/UtilTest.cc
  6391. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6392. Removed.
  6393. * src/CheckIntegrityMan.cc
  6394. * src/FileAllocationMan.cc
  6395. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6396. Made (piece) hash check sequential for each RequestGroup because
  6397. simultaneous hash check is slower than sequential execution.
  6398. * src/CheckIntegrityCommand.cc
  6399. * src/CheckIntegrityDispatcherCommand.cc
  6400. * src/CheckIntegrityDispatcherCommand.h
  6401. * src/CheckIntegrityMan.h
  6402. * src/ConsoleStatCalc.cc
  6403. * src/DownloadCommand.cc
  6404. * src/DownloadEngine.cc
  6405. * src/DownloadEngine.h
  6406. * src/DownloadEngineFactory.cc
  6407. * src/Makefile.am
  6408. * src/Makefile.in
  6409. * src/RequestGroup.cc
  6410. * src/StatCalc.h
  6411. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6412. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6413. SequentialDispatcherCommand.
  6414. * src/FileAllocationDispatcherCommand.cc
  6415. * src/SequentialDispatcherCommand.h
  6416. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6417. Rewritten FileAllocationDispatcherCommand using brand new
  6418. SequentialDispatcherCommand.
  6419. * src/DownloadEngineFactory.cc
  6420. * src/FileAllocationCommand.cc
  6421. * src/FileAllocationDispatcherCommand.cc
  6422. * src/FileAllocationDispatcherCommand.h
  6423. * src/Makefile.am
  6424. * src/SequentialDispatcherCommand.h
  6425. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6426. Replaced FileAllocationMan with
  6427. SequentialPicker<FileAllocationEntry>.
  6428. * src/BtCheckIntegrityEntry.cc
  6429. * src/ConsoleStatCalc.cc
  6430. * src/DownloadEngine.cc
  6431. * src/DownloadEngine.h
  6432. * src/DownloadEngineFactory.cc
  6433. * src/FileAllocationCommand.cc
  6434. * src/FileAllocationDispatcherCommand.cc
  6435. * src/FileAllocationMan.h
  6436. * src/Makefile.am
  6437. * src/SequentialPicker.h
  6438. * src/StatCalc.h
  6439. * src/StreamCheckIntegrityEntry.cc
  6440. * test/Makefile.am
  6441. * test/SequentialPickerTest.cc
  6442. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6443. Added doc for adaptive URI selector.
  6444. * doc/aria2c.1.txt
  6445. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6446. Added doc for adaptive URI selector.
  6447. * src/usage_text.h
  6448. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6449. Added doc for --bt-max-peers option.
  6450. * doc/aria2c.1.txt
  6451. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6452. Added doc for --bt-hash-check-seed option.
  6453. * doc/aria2c.1.txt
  6454. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6455. Documented exit codes.
  6456. * doc/aria2c.1.txt
  6457. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6458. Added --bt-max-peers option to specify the maximum number of peers
  6459. per torrent. 0 means unlimited number of peers.
  6460. * src/ActivePeerConnectionCommand.cc
  6461. * src/BtRuntime.h
  6462. * src/DefaultPeerStorage.cc
  6463. * src/DefaultPeerStorage.h
  6464. * src/OptionHandlerFactory.cc
  6465. * src/RequestGroup.cc
  6466. * src/option_processing.cc
  6467. * src/prefs.cc
  6468. * src/prefs.h
  6469. * src/usage_text.h
  6470. * test/DefaultPeerStorageTest.cc
  6471. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6472. Added --bt-hash-check-seed option. If true is given to this
  6473. option, after hash check using --check-integrity option and file
  6474. is complete, continue to seed file. If you want to check file and
  6475. download it only when it is damaged or incomplete, set this option
  6476. to false. This option has effect only on BitTorrent download.
  6477. The default value is true(This is the same behavior with the
  6478. previous release).
  6479. * src/BtCheckIntegrityEntry.cc
  6480. * src/OptionHandlerFactory.cc
  6481. * src/option_processing.cc
  6482. * src/prefs.cc
  6483. * src/prefs.h
  6484. * src/usage_text.h
  6485. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6486. Updated copyright year.
  6487. * src/version_usage.cc
  6488. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6489. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6490. * doc/aria2c.1.txt
  6491. * src/usage_text.h
  6492. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6493. Made the max value of split option unlimited.
  6494. * doc/aria2c.1.txt
  6495. * src/OptionHandlerFactory.cc
  6496. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6497. Fixed compile warning/error.
  6498. * src/DownloadResult.h
  6499. * src/HttpDownloadCommand.cc
  6500. * src/ServerStat.cc
  6501. * test/RequestGroupTest.cc
  6502. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6503. Added --event-poll option to select the method for polling events.
  6504. The available methods are "select" and "epoll". "epoll" is
  6505. available on Linux only. The earlier release has the compile
  6506. option to choose from these methods.
  6507. * configure.ac
  6508. * src/RequestGroupMan.cc
  6509. * src/OptionHandlerFactory.cc
  6510. * src/EpollEventPoll.h
  6511. * src/StreamFileAllocationEntry.cc
  6512. * src/a2io.h
  6513. * src/SelectEventPoll.h
  6514. * src/option_processing.cc
  6515. * src/prefs.h
  6516. * src/EpollEventPoll.cc
  6517. * src/EventPoll.h
  6518. * src/SocketCore.h
  6519. * src/Makefile.am
  6520. * src/main.cc
  6521. * src/DownloadEngine.h
  6522. * src/SelectEventPoll.cc
  6523. * src/DownloadEngine.cc
  6524. * src/SocketCore.cc
  6525. * src/DownloadEngineFactory.cc
  6526. * src/Makefile.in
  6527. * src/prefs.cc
  6528. * src/usage_text.h
  6529. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6530. Included RecoverableException.h from main.cc
  6531. * src/main.cc
  6532. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6533. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6534. now returns last error encountered in the HTTP/FTP downloads as a
  6535. exit status value. If all downloads finished successfully, aria2
  6536. returns 0. The error code is defined in src/DownloadResult.h.
  6537. The error occurred in the download currently in progress is not
  6538. reported as a last error. If no error has encountered but there
  6539. are in progress or waiting downloads, aria2 returns 7.
  6540. * src/AbstractCommand.cc
  6541. * src/DlAbortEx.h
  6542. * src/DlRetryEx.h
  6543. * src/DownloadCommand.cc
  6544. * src/DownloadFailureException.h
  6545. * src/DownloadResult.h
  6546. * src/FtpNegotiationCommand.cc
  6547. * src/HttpSkipResponseCommand.cc
  6548. * src/Makefile.am
  6549. * src/MultiUrlRequestInfo.cc
  6550. * src/MultiUrlRequestInfo.h
  6551. * src/RecoverableException.h
  6552. * src/RequestGroup.cc
  6553. * src/RequestGroup.h
  6554. * src/RequestGroupMan.cc
  6555. * src/RequestGroupMan.h
  6556. * src/URIResult.cc
  6557. * src/URIResult.h
  6558. * src/main.cc
  6559. * src/option_processing.cc
  6560. * test/RequestGroupTest.cc
  6561. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6562. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6563. patch adds AdaptiveURISelector, which selects one of the bests
  6564. mirrors for first and reserved connections. For supplementary
  6565. ones, it returns mirrors which has not been tested yet, and if
  6566. each of them already tested, returns mirrors which has to be
  6567. tested again. Otherwise, it doesn't return anymore mirrors.
  6568. * src/AdaptiveURISelector.cc
  6569. * src/AdaptiveURISelector.h
  6570. * src/FtpNegotiationCommand.cc
  6571. * src/HttpResponseCommand.cc
  6572. * src/Makefile.am
  6573. * src/Makefile.in
  6574. * src/OptionHandlerFactory.cc
  6575. * src/RequestGroup.cc
  6576. * src/RequestGroup.h
  6577. * src/RequestGroupMan.cc
  6578. * src/ServerStat.cc
  6579. * src/ServerStat.h
  6580. * src/ServerStatMan.cc
  6581. * src/SpeedCalc.cc
  6582. * src/URISelector.h
  6583. * src/prefs.cc
  6584. * src/prefs.h
  6585. * test/RequestGroupManTest.cc
  6586. * test/ServerStatManTest.cc
  6587. * test/ServerStatTest.cc
  6588. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6589. Fixed unit test error.
  6590. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6591. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6592. * Release 1.1.2
  6593. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6594. Updated Russian translation. Thanks to the translators.
  6595. * po/ru.po
  6596. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6597. Added the description of --use-head option to man page.
  6598. * doc/aria2c.1.txt
  6599. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6600. Bump up version number to 1.1.2
  6601. * configure.ac
  6602. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6603. Added --use-head option to toggle whether HEAD method should be
  6604. used in the first HTTP request. By default aria2 uses HEAD method
  6605. as the first request. When the server doesn't recognize HEAD, then
  6606. give aria2 --use-head=false to force aria2 to use GET method
  6607. instead.
  6608. * src/OptionHandlerFactory.cc
  6609. * src/RequestGroupMan.cc
  6610. * src/option_processing.cc
  6611. * src/prefs.cc
  6612. * src/prefs.h
  6613. * src/usage_text.h
  6614. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6615. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6616. message is received before CHOKE message. The old implementation
  6617. doen't clear the use-bit of the piece when recieved REJECT
  6618. message.
  6619. * src/DefaultBtMessageDispatcher.cc
  6620. * test/DefaultBtMessageDispatcherTest.cc
  6621. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6622. * Release 1.1.1
  6623. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6624. Bump up version number to 1.1.1.
  6625. * configure.ac
  6626. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6627. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6628. is printed repeatedly.
  6629. * src/ConsoleStatCalc.cc
  6630. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6631. * Release 1.1.0
  6632. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6633. Added ifdef clause for conditional compilation.
  6634. * src/main.cc
  6635. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6636. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6637. translations. Thanks to all translators.
  6638. * po/ja.po
  6639. * po/ru.po
  6640. * po/uk.po
  6641. * po/zh_CN.po
  6642. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6643. Added the preceding ">>> " before the message "Printing the
  6644. contents of file..." to make the output more readable.
  6645. * src/main.cc
  6646. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6647. Added try-catch block in the loop in showFiles() to continue the
  6648. operation even if the exception occurred in one file.
  6649. * src/main.cc (showFiles)
  6650. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6651. Made messages in showFiles() translatable.
  6652. * po/aria2.pot
  6653. * src/main.cc
  6654. * src/message.h
  6655. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6656. Print the contents of Torrent/Metalink files are printed without
  6657. -T/-M options.
  6658. * src/main.cc
  6659. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6660. Escaped '--' with '\--'
  6661. * README
  6662. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6663. Updated "How to build" section in README. Mentioned about
  6664. --with-ca-bundle compile option.
  6665. * README
  6666. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6667. Bump up version number to 1.1.0.
  6668. * configure.ac
  6669. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6670. Added a note for --dht-listen-port option.
  6671. * doc/aria2c.1.txt
  6672. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6673. Update doc for --realtime-chunk-checksum option.
  6674. * doc/aria2c.1.txt
  6675. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6676. Update doc for --realtime-chunk-checksum option.
  6677. * src/usage_text.h
  6678. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6679. Updated French, Japanese, Russian and Ukrainian translations.
  6680. Thanks to all translators.
  6681. * po/fr.po
  6682. * po/ja.po
  6683. * po/ru.po
  6684. * po/uk.po
  6685. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6686. Renamed aria2c.pot to aria2.pot
  6687. * po/aria2.pot
  6688. * po/aria2c.pot: Removed.
  6689. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6690. Removed MetaEntry.h
  6691. * src/Makefile.am
  6692. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6693. Rename file by appending digits if a local file exists and its
  6694. file size is larger than that of remote file with --continue
  6695. option. The old implementation just throws exception in such case.
  6696. * src/RequestGroup.cc
  6697. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6698. Fixed the bug that download progress summary is not printed in the
  6699. interval specified by the option.
  6700. * src/ConsoleStatCalc.cc
  6701. * src/ConsoleStatCalc.h
  6702. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6703. Fixed compiler warning
  6704. * src/Cookie.cc
  6705. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6706. Fixed the cookie implementation based on RFC2965.
  6707. Now if a value in domain field is not started with dot, then
  6708. prepend dot. That means a cookie with domain=sf.net is sent to
  6709. wiki.sf.net.
  6710. * src/Cookie.cc
  6711. * test/CookieParserTest.cc
  6712. * test/CookieStorageTest.cc
  6713. * test/CookieTest.cc
  6714. * test/NsCookieParserTest.cc
  6715. * test/Sqlite3MozCookieParserTest.cc
  6716. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6717. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6718. is enabled and the server doesn't support keep-alive.
  6719. * src/AbstractCommand.cc
  6720. * src/DownloadCommand.cc
  6721. * src/HttpDownloadCommand.cc
  6722. * src/HttpDownloadCommand.h
  6723. * src/HttpResponseCommand.cc
  6724. * src/Request.cc
  6725. * src/Request.h
  6726. * test/RequestTest.cc
  6727. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6728. Removed Dictionary/List/Data and its related classes.
  6729. * src/BencodeVisitor.cc: Removed.
  6730. * src/BencodeVisitor.h: Removed.
  6731. * src/Data.cc: Removed.
  6732. * src/Data.h: Removed.
  6733. * src/Dictionary.cc: Removed.
  6734. * src/Dictionary.h: Removed.
  6735. * src/List.cc: Removed.
  6736. * src/List.h: Removed.
  6737. * src/Makefile.am
  6738. * src/MetaEntry.h: Removed.
  6739. * src/MetaEntryVisitor.h: Removed.
  6740. * src/MetaFileUtil.cc: Removed.
  6741. * src/MetaFileUtil.h: Removed.
  6742. * test/BencodeVisitorTest.cc: Removed.
  6743. * test/DataTest.cc: Removed.
  6744. * test/DictionaryTest.cc: Removed.
  6745. * test/ListTest.cc: Removed.
  6746. * test/Makefile.am
  6747. * test/MetaFileUtilTest.cc: Removed.
  6748. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6749. Removed include of MetaEntry.h
  6750. * test/DHTMessageTrackerEntryTest.cc
  6751. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6752. Use BDE instead of Dictionary/List/Data.
  6753. * src/AnnounceList.cc
  6754. * src/AnnounceList.h
  6755. * test/AnnounceListTest.cc
  6756. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6757. Use BDE instead of Dictionary/List/Data.
  6758. * src/DHTAbstractMessage.cc
  6759. * src/DHTAbstractMessage.h
  6760. * src/DHTAnnouncePeerMessage.cc
  6761. * src/DHTAnnouncePeerMessage.h
  6762. * src/DHTAnnouncePeerReplyMessage.cc
  6763. * src/DHTAnnouncePeerReplyMessage.h
  6764. * src/DHTFindNodeMessage.cc
  6765. * src/DHTFindNodeMessage.h
  6766. * src/DHTFindNodeReplyMessage.cc
  6767. * src/DHTFindNodeReplyMessage.h
  6768. * src/DHTGetPeersMessage.cc
  6769. * src/DHTGetPeersMessage.h
  6770. * src/DHTGetPeersReplyMessage.cc
  6771. * src/DHTGetPeersReplyMessage.h
  6772. * src/DHTMessageFactory.h
  6773. * src/DHTMessageFactoryImpl.cc
  6774. * src/DHTMessageFactoryImpl.h
  6775. * src/DHTMessageReceiver.cc
  6776. * src/DHTMessageTracker.cc
  6777. * src/DHTMessageTracker.h
  6778. * src/DHTPingMessage.cc
  6779. * src/DHTPingMessage.h
  6780. * src/DHTPingReplyMessage.cc
  6781. * src/DHTPingReplyMessage.h
  6782. * src/DHTQueryMessage.cc
  6783. * src/DHTQueryMessage.h
  6784. * src/DHTResponseMessage.cc
  6785. * src/DHTResponseMessage.h
  6786. * test/DHTAnnouncePeerMessageTest.cc
  6787. * test/DHTAnnouncePeerReplyMessageTest.cc
  6788. * test/DHTFindNodeMessageTest.cc
  6789. * test/DHTFindNodeReplyMessageTest.cc
  6790. * test/DHTGetPeersMessageTest.cc
  6791. * test/DHTGetPeersReplyMessageTest.cc
  6792. * test/DHTMessageFactoryImplTest.cc
  6793. * test/DHTMessageTrackerTest.cc
  6794. * test/DHTPingMessageTest.cc
  6795. * test/DHTPingReplyMessageTest.cc
  6796. * test/MockDHTMessageFactory.h
  6797. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6798. Added tests the case where length < 0 is specified.
  6799. * test/BencodeTest.cc
  6800. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6801. Fixed memory leak in decoderawstring()
  6802. * src/bencode.cc
  6803. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6804. Added missing #ifdef guard. Added uc() function for String and
  6805. removeKey() for Dict.
  6806. * src/bencode.cc
  6807. * src/bencode.h
  6808. * test/BencodeTest.cc
  6809. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6810. Use BDE instead of Dictionary/List/Data.
  6811. * src/HandshakeExtensionMessage.cc
  6812. * src/HandshakeExtensionMessage.h
  6813. * test/HandshakeExtensionMessageTest.cc
  6814. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6815. Added --max-overall-upload-limit option. This option limits the
  6816. overall upload speed. Stated in help message that the existing
  6817. --max-upload-limit option limits the upload speed per each
  6818. torrent. Man page is also updated.
  6819. * doc/aria2c.1.txt
  6820. * src/DefaultBtMessageDispatcher.cc
  6821. * src/DefaultBtMessageDispatcher.h
  6822. * src/OptionHandlerFactory.cc
  6823. * src/PeerInteractionCommand.cc
  6824. * src/option_processing.cc
  6825. * src/prefs.cc
  6826. * src/prefs.h
  6827. * src/usage_text.h
  6828. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6829. Use BDE instead of Dictionary/List/Data classes.
  6830. * src/CompactPeerListProcessor.cc
  6831. * src/CompactPeerListProcessor.h
  6832. * src/DefaultBtAnnounce.cc
  6833. * src/DefaultBtContext.cc
  6834. * src/DefaultBtContext.h
  6835. * src/DefaultPeerListProcessor.cc
  6836. * src/DefaultPeerListProcessor.h
  6837. * src/DelegatingPeerListProcessor.cc
  6838. * src/DelegatingPeerListProcessor.h
  6839. * src/PeerListProcessor.h
  6840. * src/UTPexExtensionMessage.cc
  6841. * src/Util.h
  6842. * src/message.h
  6843. * test/DefaultBtContextTest.cc
  6844. * test/DefaultPeerListProcessorTest.cc
  6845. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6846. Added bencode helper functions and BDE class.
  6847. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6848. * src/Makefile.am
  6849. * src/bencode.cc
  6850. * src/bencode.h
  6851. * test/BencodeTest.cc
  6852. * test/Makefile.am
  6853. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6854. Fixed the bug that bad URI is sent to the tracker when the announe
  6855. URI in torrent file includes query.
  6856. * src/DefaultBtAnnounce.cc
  6857. * test/DefaultBtAnnounceTest.cc
  6858. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6859. Added Option::blank().
  6860. Use !Option::blank(name) instead of Option::defined(name) for
  6861. the options that take filename.
  6862. * src/MultiUrlRequestInfo.cc
  6863. * src/Option.cc
  6864. * src/Option.h
  6865. * src/main.cc
  6866. * src/option_processing.cc
  6867. * test/OptionTest.cc
  6868. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6869. Documented the default value of --check-certificate option in man
  6870. page.
  6871. * doc/aria2c.1.txt
  6872. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6873. Enabled --check-certificate by default. Added compile
  6874. time(configure) option --with-ca-bundle to specify CA bundle.
  6875. Warn if --check-certificate=true and --ca-certificate is not
  6876. specified or loading CA certificate is failed.
  6877. * configure.ac
  6878. * src/MultiUrlRequestInfo.cc
  6879. * src/OptionHandlerFactory.cc
  6880. * src/message.h
  6881. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6882. Mentioned https tag in help option.
  6883. * doc/aria2c.1.txt
  6884. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6885. Added `https' tag to help option category. Added https tag to
  6886. --ca-certificate, --certificate, --check-certificate and
  6887. --private-key option.
  6888. * src/OptionHandlerFactory.cc
  6889. * src/help_tags.h
  6890. * src/option_processing.cc
  6891. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6892. Changed the package name from `aria2c' to `aria2' in order to fix
  6893. the packaging issue in Debian and Fedora. The name of the
  6894. executable is not changed.
  6895. * configure.ac
  6896. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6897. Fixed typos
  6898. * src/usage_text.h
  6899. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6900. Fixed typos and updated doc.
  6901. * README
  6902. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6903. Fixed typos
  6904. * doc/aria2c.1.txt
  6905. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6906. Fixed typos
  6907. * src/usage_text.h
  6908. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6909. Print a message when no files to download.
  6910. * src/download_helper.cc
  6911. * src/main.cc
  6912. * src/message.h
  6913. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6914. RFC3986 complied Percent-Encoding(urlencode).
  6915. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6916. ones.
  6917. * src/Request.cc
  6918. * src/Util.cc
  6919. * src/Util.h
  6920. * test/BtHandshakeMessageTest.cc
  6921. * test/DefaultBtAnnounceTest.cc
  6922. * test/DefaultBtContextTest.cc
  6923. * test/RequestTest.cc
  6924. * test/UtilTest.cc
  6925. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6926. Fixed the bug that prevents aria2 from downloading 0-length files
  6927. via HTTP/FTP.
  6928. * src/DefaultBtContext.cc
  6929. * src/DefaultBtContext.h
  6930. * src/DownloadContext.h
  6931. * src/FtpNegotiationCommand.cc
  6932. * src/HttpResponseCommand.cc
  6933. * src/HttpResponseCommand.h
  6934. * src/RequestGroup.cc
  6935. * src/SingleFileDownloadContext.cc
  6936. * src/SingleFileDownloadContext.h
  6937. * test/BtPostDownloadHandlerTest.cc
  6938. * test/MetalinkPostDownloadHandlerTest.cc
  6939. * test/MockBtContext.h
  6940. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6941. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6942. * src/option_processing.cc
  6943. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6944. Applied aria2-1.0.1-mingw.patch.
  6945. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6946. mingw.
  6947. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6948. * src/SocketCore.cc
  6949. * src/a2netcompat.h
  6950. * test/SocketCoreTest.cc
  6951. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6952. * Release 1.0.1
  6953. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6954. Updated Ukrainian and Norwegian Nynorsk translations.
  6955. Thanks to all translators.
  6956. * po/nn.po
  6957. * po/uk.po
  6958. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6959. Don't show download result when -S option is used.
  6960. * src/main.cc
  6961. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6962. Bump up version number to 1.0.1
  6963. * configure.ac
  6964. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6965. Closed files after the test cases in MultiDiskWriterTest::
  6966. testResetDiskWriterEntries(). This will fix the unit test error
  6967. in mingw32 build.
  6968. * test/MultiDiskWriterTest.cc
  6969. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6970. Use HEAD method to get file size from HTTP server for segmented
  6971. downloading.
  6972. The request to the BitTorrent Tracker always uses GET method because
  6973. the response of the tracker is small and it doesn't need segmented
  6974. download.
  6975. * src/FtpNegotiationCommand.cc
  6976. * src/HttpRequest.cc
  6977. * src/HttpResponseCommand.cc
  6978. * src/HttpSkipResponseCommand.cc
  6979. * src/RequestGroup.cc
  6980. * src/RequestGroup.h
  6981. * src/TrackerWatcherCommand.cc
  6982. * test/HttpRequestTest.cc
  6983. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6984. Fixed the bug that causes floating exception when -T option is used and
  6985. no URIs are given.
  6986. * src/download_helper.cc
  6987. * test/DownloadHelperTest.cc
  6988. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6989. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6990. errors in MinGW:
  6991. Closed file after saving server stats (RequestGroupMan.cc)
  6992. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6993. Ignored case & handled 2-digit years (strptime.c)
  6994. Added missing suseconds_t definition (a2time.h)
  6995. Fixed socket CLOSE() define (SocketCore.cc)
  6996. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6997. Changed utime() test values from x000 to x00000 as MinGW failed on
  6998. values less than timezone offset from Unix epoch
  6999. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7000. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7001. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7002. handle negative dates (CookieParserTest.cc)
  7003. * src/a2time.h
  7004. * src/FtpConnection.cc
  7005. * src/RequestGroupMan.cc
  7006. * src/SocketCore.cc
  7007. * src/strptime.c
  7008. * test/CookieParserTest.cc
  7009. * test/CopyDiskAdaptorTest.cc
  7010. * test/FileTest.cc
  7011. * test/FtpConnectionTest.cc
  7012. * test/MultiDiskAdaptorTest.cc
  7013. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7014. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7015. * doc/aria2c.1.txt
  7016. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7017. * Release 1.0.0
  7018. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7019. Added '~' to reserved characters.
  7020. * src/Util.cc
  7021. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7022. Do not urlencode Request::url in setUrl() because we want unmodified
  7023. URL using Request::getUrl()
  7024. * src/Request.cc
  7025. * src/Request.h
  7026. * test/RequestTest.cc
  7027. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7028. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7029. Thanks to all translators.
  7030. * po/bg.po
  7031. * po/fr.po
  7032. * po/ja.po
  7033. * po/ru.po
  7034. * po/uk.po
  7035. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7036. Bump up version number to 1.0.0
  7037. * configure.ac
  7038. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7039. Added nosqlite3 build to build_test.sh.
  7040. Renamed noxml as expat.
  7041. * build_test.sh
  7042. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7043. Updated INPUT FILE section.
  7044. * doc/aria2c.1.txt
  7045. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7046. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7047. on big endian systems because test .aria2 files are made for little
  7048. endian systems.
  7049. * test/DefaultBtProgressInfoFileTest.cc
  7050. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7051. Dropped ares support.
  7052. * README
  7053. * configure.ac
  7054. * m4/libares.m4: Removed.
  7055. * src/AsyncNameResolver.cc
  7056. * src/Makefile.am
  7057. * test/Makefile.am
  7058. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7059. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7060. Removed const qualifier from DiskWriter::size().
  7061. * src/AbstractDiskWriter.cc
  7062. * src/AbstractDiskWriter.h
  7063. * src/ByteArrayDiskWriter.cc
  7064. * src/ByteArrayDiskWriter.h
  7065. * src/DiskWriter.h
  7066. * test/ByteArrayDiskWriterTest.cc
  7067. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7068. Fixed the bug that causes segmentation fault/bus error during executing
  7069. choking algorithm while seeding. This is caused by improper
  7070. implementation of compare function which returns inconsistent results
  7071. depending on the timing of last unchoke.
  7072. * src/BtSeederStateChoke.cc
  7073. * src/BtSeederStateChoke.h
  7074. * src/DefaultPeerStorage.cc
  7075. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7076. Removed TODO
  7077. * TODO
  7078. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7079. Added a section that explains how to pass argument to options that
  7080. takes optional arguments with its short form.
  7081. * doc/aria2c.1.txt
  7082. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7083. Added -u for the short form of --max-upload-limit option.
  7084. * doc/aria2c.1.txt
  7085. * src/option_processing.cc
  7086. * src/usage_text.h
  7087. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7088. Added -V for the short form of --check-integrity option.
  7089. Now the argument of --check-integrity option is optional:
  7090. if it is omitted, it is evaluated as true.
  7091. * doc/aria2c.1.txt
  7092. * src/option_processing.cc
  7093. * src/usage_text.h
  7094. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7095. Made the default value of --ftp-pasv option set to true and it can take
  7096. true/false values.
  7097. * src/OptionHandlerFactory.cc
  7098. * src/option_processing.cc
  7099. * src/usage_text.h
  7100. * doc/aria2c.1.txt
  7101. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7102. Given custom random number generator to std::random_shuffle.
  7103. * src/AnnounceList.cc
  7104. * src/BtLeecherStateChoke.cc
  7105. * src/BtSeederStateChoke.cc
  7106. * src/DefaultBtRequestFactory.cc
  7107. * src/MetalinkEntry.cc
  7108. * src/RarestPieceSelector.cc
  7109. * src/SimpleRandomizer.cc
  7110. * src/SimpleRandomizer.h
  7111. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7112. Now the default value of --enable-direct-io is true.
  7113. * src/OptionHandlerFactory.cc
  7114. * doc/aria2c.1.txt
  7115. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7116. Erase peer before executing onReturningPeer and onErasingPeer
  7117. because choking algorithm called from onReturningPeer doesn't
  7118. like erasing peer in the active peer list.
  7119. * src/DefaultPeerStorage.cc
  7120. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7121. Instead of creating special filename in createDownloadResult() if
  7122. inMemoryDownload() is true, now it is done in getFilePath().
  7123. * src/RequestGroup.cc
  7124. * test/RequestGroupTest.cc
  7125. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7126. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7127. processed in memory. This is the fix for previous comment out.
  7128. * src/MemoryBufferPreDownloadHandler.cc
  7129. * src/RequestGroup.cc
  7130. * src/RequestGroup.h
  7131. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7132. Commented out the code which sets virtual directory path "[MEMORY]"
  7133. propagate directory to store to following RequestGroup.
  7134. * src/MemoryBufferPreDownloadHandler.cc
  7135. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7136. Bump up version number to 1.0.0b
  7137. * configure.ac
  7138. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7139. Added input_uris.txt to EXTRA_DIST
  7140. * test/Makefile.am
  7141. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7142. Removed PeerObject.h from Makefile.am
  7143. * src/Makefile.am
  7144. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7145. Avoid slow seeding
  7146. * src/PeerInteractionCommand.cc
  7147. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7148. Updated usage for -i option.
  7149. * src/usage_text.h (TEXT_INPUT_FILE)
  7150. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7151. Added INPUT FILE section to man page.
  7152. Escaped fake URLs.
  7153. * doc/aria2c.1.txt
  7154. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7155. Fixed wrong note position for -o option.
  7156. * doc/aria2c.1.txt
  7157. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7158. Fixed compile error without SSL/XML library.
  7159. * src/DefaultBtProgressInfoFile.cc
  7160. * src/DefaultBtProgressInfoFile.h
  7161. * src/FileMetalinkParserState.cc
  7162. * src/RequestGroup.h
  7163. * src/SocketCore.cc
  7164. * src/SocketCore.h
  7165. * src/VerificationMetalinkParserState.cc
  7166. * src/download_helper.h
  7167. * src/main.cc
  7168. * test/DefaultBtProgressInfoFileTest.cc
  7169. * test/DownloadHelperTest.cc
  7170. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7171. Rewritten URI handling functions. They are now provided as a testable
  7172. functions.
  7173. * src/Makefile.am
  7174. * src/RequestGroup.cc
  7175. * src/RequestGroup.h
  7176. * src/download_helper.cc
  7177. * src/download_helper.h
  7178. * src/main.cc
  7179. * test/DownloadHelperTest.cc
  7180. * test/Makefile.am
  7181. * test/input_uris.txt
  7182. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7183. Quickly terminate commands when ctrl-c is pressed.
  7184. * src/DownloadEngine.cc
  7185. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7186. Quickly terminate idle commands when download finished.
  7187. * src/AbstractCommand.cc
  7188. * src/DownloadCommand.cc
  7189. * src/DownloadEngine.cc
  7190. * src/DownloadEngine.h
  7191. * src/SleepCommand.cc
  7192. * src/SleepCommand.h
  7193. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7194. Added the ability to specify output filename and directory in input
  7195. file.
  7196. Additional parameters are added in the following line of URIs
  7197. with proceeding white space(s), 1 parameter in 1 line.
  7198. The parameter names are the same with the command-line option name
  7199. without proceeding "--". Not all the options are available here:
  7200. at the moment, 'dir' and 'out' options are avialable.
  7201. Please note that out option has no effect against Metalink or BitTorrent
  7202. downloads.
  7203. Example input file:
  7204. http://host/foo-1.1.tar.bz2
  7205. out=foo.tar.bz2
  7206. dir=/tmp/downloads
  7207. http://host/thundermonkey-2.0.tar.bz2
  7208. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7209. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7210. thundermonkey-2.0.tar.bz2 is saved as
  7211. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7212. * src/BtPostDownloadHandler.cc
  7213. * src/Metalink2RequestGroup.cc
  7214. * src/Metalink2RequestGroup.h
  7215. * src/MetalinkPostDownloadHandler.cc
  7216. * src/UriListParser.cc
  7217. * src/UriListParser.h
  7218. * src/main.cc
  7219. * test/Metalink2RequestGroupTest.cc
  7220. * test/UriListParserTest.cc
  7221. * test/filelist1.txt
  7222. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7223. Fixed error when SSL library is not found.
  7224. * configure.ac
  7225. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7226. Cross referenced among -s, -C and -j options.
  7227. Updated usage of -C and -s options.
  7228. * src/usage_text.h
  7229. * doc/aria2c.1.txt
  7230. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7231. Fixed bad cast in 32bit platforms.
  7232. * test/DefaultPieceStorageTest.cc
  7233. (DefaultPieceStorageTest::testGetCompletedLength)
  7234. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7235. Fixed unit test fails on 32bit platforms.
  7236. * test/CookieParserTest.cc
  7237. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7238. Show an average download speed in Download results.
  7239. * src/BtFileAllocationEntry.cc
  7240. * src/DefaultPieceStorage.cc
  7241. * src/DownloadContext.cc
  7242. * src/DownloadContext.h
  7243. * src/DownloadResult.h
  7244. * src/RequestGroup.cc
  7245. * src/RequestGroupMan.cc
  7246. * src/StreamFileAllocationEntry.cc
  7247. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7248. Fixed the bug that metalink file is not processed if Content-Type
  7249. field has a paramter.
  7250. * src/HttpResponse.cc
  7251. * src/HttpResponse.h
  7252. * test/HttpResponseTest.cc
  7253. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7254. Removed unused code.
  7255. * src/DefaultBtAnnounce.cc
  7256. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7257. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7258. the value larger than DefaultPieceStorage::getTotalLength() when
  7259. in flight pieces are involved.
  7260. * src/DefaultPieceStorage.cc
  7261. * test/DefaultPieceStorageTest.cc
  7262. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7263. Bump up version number to 1.0.0a.
  7264. * configure.ac
  7265. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7266. Updated configure.ac
  7267. * configure.ac
  7268. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7269. Added usege for proxy.
  7270. * doc/aria2c.1.txt
  7271. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7272. Added usage for --ca-certificate, --certificate, --private-key and
  7273. --check-certificate options.
  7274. * doc/aria2c.1.txt
  7275. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7276. Updated man page
  7277. * doc/aria2c.1.txt
  7278. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7279. Added --no-proxy option. It receives comman separated hostname or
  7280. domains to which proxy should not be used.
  7281. aria2 honors the environment variable no_proxy to override no-proxy
  7282. value in configuration file. The user can override the environment
  7283. variable no_proxy with --no-proxy command-line option.
  7284. * src/AbstractCommand.cc
  7285. * src/OptionHandlerFactory.cc
  7286. * src/option_processing.cc
  7287. * src/prefs.cc
  7288. * src/prefs.h
  7289. * src/usage_text.h
  7290. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7291. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7292. The CA certificates are specified in --ca-certificate option.
  7293. By default, the verification is disabled. Use --check-certificate
  7294. option to enable it.
  7295. * src/HttpRequestCommand.cc
  7296. * src/LibgnutlsTLSContext.cc
  7297. * src/LibgnutlsTLSContext.h
  7298. * src/LibsslTLSContext.cc
  7299. * src/LibsslTLSContext.h
  7300. * src/MultiUrlRequestInfo.cc
  7301. * src/OptionHandlerFactory.cc
  7302. * src/SocketCore.cc
  7303. * src/SocketCore.h
  7304. * src/a2functional.h
  7305. * src/message.h
  7306. * src/option_processing.cc
  7307. * src/prefs.cc
  7308. * src/prefs.h
  7309. * src/usage_text.h
  7310. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7311. Added client certificate authentication for SSL/TLS.
  7312. Currently a private key must be decrypted for use with aria2.
  7313. If a user accidentally gives encrypted file to aria2 then following
  7314. thing happens:
  7315. If encrypted private key is given to aria2, it behaves differently
  7316. depending on the ssl library it uses. If aria2 built with openssl then
  7317. openssl prompts the user for password. If aria2 build with gnutls then
  7318. aria2 exists with error at start up.
  7319. * src/DownloadEngineFactory.cc
  7320. * src/MultiUrlRequestInfo.cc
  7321. * src/OptionHandlerFactory.cc
  7322. * src/option_processing.cc
  7323. * src/prefs.cc
  7324. * src/prefs.h
  7325. * src/usage_text.h
  7326. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7327. Introduced TLSContext that holds TLS related data that can be shared
  7328. with multiple SSL connections.
  7329. * src/DownloadEngineFactory.cc
  7330. * src/LibgnutlsTLSContext.cc
  7331. * src/LibgnutlsTLSContext.h
  7332. * src/LibsslTLSContext.cc
  7333. * src/LibsslTLSContext.h
  7334. * src/Makefile.am
  7335. * src/SocketCore.cc
  7336. * src/SocketCore.h
  7337. * src/TLSContext.h
  7338. * src/message.h
  7339. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7340. Fixed the bug that the DiskWriter of the first FileEntry whose
  7341. `needsFileAllocation' property is false is not created
  7342. even if it shares a piece with next FileEntry which `requested' property
  7343. is true.
  7344. Fixed the bug that zero-length file is not created if pre file
  7345. allocation is not done.
  7346. * src/MultiDiskAdaptor.cc
  7347. * src/MultiDiskAdaptor.h
  7348. * test/MultiDiskAdaptorTest.cc
  7349. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7350. Added the ability to pool proxy connection.
  7351. The conneciton in FTP with proxy-method=GET is not pooled.
  7352. Proxy-Connection header will not be sent when sending CONNECT method.
  7353. * src/DownloadEngine.cc
  7354. * src/DownloadEngine.h
  7355. * src/FtpFinishDownloadCommand.cc
  7356. * src/FtpInitiateConnectionCommand.cc
  7357. * src/FtpNegotiationCommand.cc
  7358. * src/HttpDownloadCommand.cc
  7359. * src/HttpInitiateConnectionCommand.cc
  7360. * src/HttpRequest.cc
  7361. * src/HttpRequest.h
  7362. * src/HttpResponse.cc
  7363. * src/HttpSkipResponseCommand.cc
  7364. * test/HttpRequestTest.cc
  7365. * test/HttpResponseTest.cc
  7366. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Handle date before epoch.
  7368. To create *bad* Time object, call Time::null().
  7369. * src/CookieParser.cc
  7370. * src/FtpConnection.cc
  7371. * src/FtpConnection.h
  7372. * src/FtpNegotiationCommand.cc
  7373. * src/RequestGroup.cc
  7374. * src/TimeA2.cc
  7375. * src/TimeA2.h
  7376. * test/CookieParserTest.cc
  7377. * test/FtpConnectionTest.cc
  7378. * test/TimeTest.cc
  7379. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7380. Added support for following envrionment variables: http_proxy,
  7381. https_proxy, ftp_proxy and all_proxy.
  7382. Each variable is equivalent to the aria2 option whose name is the
  7383. variable name with '_' replaced with '-'.
  7384. They overrides options specified in aria2.conf file.
  7385. The envrionment variables can be overrode using command-line option.
  7386. * src/option_processing.cc
  7387. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7388. Renamed --http-proxy-method as --proxy-method.
  7389. * src/AbstractCommand.cc
  7390. * src/FtpInitiateConnectionCommand.cc
  7391. * src/HttpInitiateConnectionCommand.cc
  7392. * src/OptionHandlerFactory.cc
  7393. * src/option_processing.cc
  7394. * src/prefs.cc
  7395. * src/prefs.h
  7396. * src/usage_text.h
  7397. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7399. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7400. Above 3 options and --http-proxy option can handle proxy in URL format
  7401. like: http://user:passwd@host:port.
  7402. If a proxy requires user/password, they must be specified in a URL.
  7403. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7404. instead.
  7405. * src/AbstractCommand.cc
  7406. * src/AbstractCommand.h
  7407. * src/AbstractProxyRequestCommand.cc
  7408. * src/AbstractProxyRequestCommand.h
  7409. * src/AuthConfigFactory.cc
  7410. * src/AuthConfigFactory.h
  7411. * src/FtpFinishDownloadCommand.cc
  7412. * src/FtpInitiateConnectionCommand.cc
  7413. * src/FtpInitiateConnectionCommand.h
  7414. * src/FtpNegotiationCommand.cc
  7415. * src/FtpTunnelRequestCommand.cc
  7416. * src/FtpTunnelRequestCommand.h
  7417. * src/HttpDownloadCommand.cc
  7418. * src/HttpInitiateConnectionCommand.cc
  7419. * src/HttpInitiateConnectionCommand.h
  7420. * src/HttpProxyRequestCommand.cc
  7421. * src/HttpProxyRequestCommand.h
  7422. * src/HttpRequest.cc
  7423. * src/HttpRequest.h
  7424. * src/HttpRequestCommand.cc
  7425. * src/HttpRequestCommand.h
  7426. * src/HttpSkipResponseCommand.cc
  7427. * src/InitiateConnectionCommand.cc
  7428. * src/InitiateConnectionCommand.h
  7429. * src/OptionHandlerFactory.cc
  7430. * src/OptionHandlerImpl.h
  7431. * src/Request.cc
  7432. * src/option_processing.cc
  7433. * src/prefs.cc
  7434. * src/prefs.h
  7435. * src/usage_text.h
  7436. * test/AuthConfigFactoryTest.cc
  7437. * test/HttpRequestTest.cc
  7438. * test/OptionHandlerTest.cc
  7439. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7440. Execute choking algorithm when unchoked and interested peer is
  7441. disconected.
  7442. * src/DefaultPeerStorage.cc
  7443. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. Added testcase for BtNotInterestedMessage from unchoked peer.
  7445. * test/BtNotInterestedMessageTest.cc
  7446. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7447. Execute choking algorithm when BtInterestedMessage arrives from
  7448. unchoked peer.
  7449. * src/BtInterestedMessage.cc
  7450. * src/BtInterestedMessage.h
  7451. * src/DefaultBtMessageFactory.cc
  7452. * test/BtInterestedMessageTest.cc
  7453. * test/MockPeerStorage.h
  7454. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. AuthConfigFactory is now part of DownloadEngine.
  7456. * src/AbstractProxyRequestCommand.cc
  7457. * src/AuthConfigFactory.h
  7458. * src/DownloadEngine.cc
  7459. * src/DownloadEngine.h
  7460. * src/FtpConnection.cc
  7461. * src/FtpConnection.h
  7462. * src/FtpNegotiationCommand.cc
  7463. * src/HttpConnection.cc
  7464. * src/HttpRequest.cc
  7465. * src/HttpRequest.h
  7466. * src/HttpRequestCommand.cc
  7467. * src/HttpResponse.cc
  7468. * src/HttpResponseCommand.cc
  7469. * src/HttpSkipResponseCommand.cc
  7470. * src/MultiUrlRequestInfo.cc
  7471. * src/main.cc
  7472. * test/FtpConnectionTest.cc
  7473. * test/HttpRequestTest.cc
  7474. * test/HttpResponseTest.cc
  7475. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7476. Corrected catched exception type.
  7477. * src/ServerStatMan.cc
  7478. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7479. DNSCache is now part of DownloadEngine.
  7480. * src/DNSCache.h
  7481. * src/DownloadEngine.cc
  7482. * src/DownloadEngine.h
  7483. * src/InitiateConnectionCommand.cc
  7484. * src/MultiUrlRequestInfo.cc
  7485. * test/Makefile.am
  7486. * test/Makefile.in
  7487. * test/SimpleDNSCacheTest.cc
  7488. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7489. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7490. DownloadEngine.
  7491. * src/ActivePeerConnectionCommand.cc
  7492. * src/BtSetup.cc
  7493. * src/CUIDCounter.h
  7494. * src/DHTSetup.cc
  7495. * src/DownloadCommand.cc
  7496. * src/DownloadEngine.cc
  7497. * src/DownloadEngine.h
  7498. * src/DownloadEngineFactory.cc
  7499. * src/FileAllocationDispatcherCommand.cc
  7500. * src/InitiatorMSEHandshakeCommand.cc
  7501. * src/PeerInitiateConnectionCommand.cc
  7502. * src/PeerInteractionCommand.cc
  7503. * src/PeerListenCommand.cc
  7504. * src/RequestGroup.cc
  7505. * src/StreamFileAllocationEntry.cc
  7506. * src/TrackerWatcherCommand.cc
  7507. * src/main.cc
  7508. * test/RequestGroupManTest.cc
  7509. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. Implemented commented code in BtSeederStateChoke
  7511. * src/BtSeederStateChoke.cc
  7512. * src/Peer.cc
  7513. * src/Peer.h
  7514. * src/PeerInteractionCommand.cc
  7515. * src/PeerSessionResource.cc
  7516. * src/PeerSessionResource.h
  7517. * test/MockBtMessageDispatcher.h
  7518. * test/PeerSessionResourceTest.cc
  7519. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7520. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7521. its object.
  7522. * src/AbstractBtMessage.cc
  7523. * src/ActivePeerConnectionCommand.cc
  7524. * src/ActivePeerConnectionCommand.h
  7525. * src/BtContextAwareCommand.cc
  7526. * src/BtContextAwareCommand.h
  7527. * src/BtExtendedMessage.cc
  7528. * src/BtExtendedMessage.h
  7529. * src/BtInterestedMessage.cc
  7530. * src/BtInterestedMessage.h
  7531. * src/BtNotInterestedMessage.cc
  7532. * src/BtNotInterestedMessage.h
  7533. * src/BtRegistry.cc
  7534. * src/BtRegistry.h
  7535. * src/BtSeederStateChoke.cc
  7536. * src/BtSetup.cc
  7537. * src/DHTGetPeersCommand.cc
  7538. * src/DHTGetPeersCommand.h
  7539. * src/DHTPeerAnnounceEntry.cc
  7540. * src/DHTPeerAnnounceEntry.h
  7541. * src/DHTPeerAnnounceStorage.cc
  7542. * src/DHTPeerAnnounceStorage.h
  7543. * src/DHTPeerLookupTask.cc
  7544. * src/DHTPeerLookupTask.h
  7545. * src/DHTSetup.cc
  7546. * src/DHTSetup.h
  7547. * src/DHTTaskFactory.h
  7548. * src/DHTTaskFactoryImpl.cc
  7549. * src/DHTTaskFactoryImpl.h
  7550. * src/DefaultBtAnnounce.cc
  7551. * src/DefaultBtInteractive.cc
  7552. * src/DefaultBtInteractive.h
  7553. * src/DefaultBtMessageDispatcher.cc
  7554. * src/DefaultBtMessageDispatcher.h
  7555. * src/DefaultBtMessageFactory.cc
  7556. * src/DefaultBtMessageFactory.h
  7557. * src/DefaultBtMessageReceiver.cc
  7558. * src/DefaultBtProgressInfoFile.cc
  7559. * src/DefaultBtProgressInfoFile.h
  7560. * src/DefaultBtRequestFactory.cc
  7561. * src/DefaultBtRequestFactory.h
  7562. * src/DefaultExtensionMessageFactory.cc
  7563. * src/DefaultExtensionMessageFactory.h
  7564. * src/DefaultPeerStorage.cc
  7565. * src/DefaultPeerStorage.h
  7566. * src/DownloadEngine.cc
  7567. * src/DownloadEngine.h
  7568. * src/InitiatorMSEHandshakeCommand.cc
  7569. * src/InitiatorMSEHandshakeCommand.h
  7570. * src/MSEHandshake.cc
  7571. * src/MSEHandshake.h
  7572. * src/Makefile.am
  7573. * src/Makefile.in
  7574. * src/PeerChokeCommand.cc
  7575. * src/PeerChokeCommand.h
  7576. * src/PeerInitiateConnectionCommand.cc
  7577. * src/PeerInitiateConnectionCommand.h
  7578. * src/PeerInteractionCommand.cc
  7579. * src/PeerInteractionCommand.h
  7580. * src/PeerObject.h
  7581. * src/PeerReceiveHandshakeCommand.cc
  7582. * src/PeerReceiveHandshakeCommand.h
  7583. * src/ReceiverMSEHandshakeCommand.cc
  7584. * src/RequestGroup.cc
  7585. * src/RequestGroup.h
  7586. * src/RequestGroupMan.cc
  7587. * src/RequestGroupMan.h
  7588. * src/SeedCheckCommand.cc
  7589. * src/SeedCheckCommand.h
  7590. * src/ShareRatioSeedCriteria.h
  7591. * src/SimpleBtMessage.cc
  7592. * src/TrackerWatcherCommand.cc
  7593. * src/TrackerWatcherCommand.h
  7594. * src/UTPexExtensionMessage.cc
  7595. * src/UTPexExtensionMessage.h
  7596. * test/BtCancelMessageTest.cc
  7597. * test/BtChokeMessageTest.cc
  7598. * test/BtExtendedMessageTest.cc
  7599. * test/BtInterestedMessageTest.cc
  7600. * test/BtNotInterestedMessageTest.cc
  7601. * test/BtPieceMessageTest.cc
  7602. * test/BtPortMessageTest.cc
  7603. * test/BtRegistryTest.cc
  7604. * test/BtRejectMessageTest.cc
  7605. * test/BtRequestMessageTest.cc
  7606. * test/DHTPeerAnnounceEntryTest.cc
  7607. * test/DHTPeerAnnounceStorageTest.cc
  7608. * test/DefaultBtMessageDispatcherTest.cc
  7609. * test/DefaultBtMessageFactoryTest.cc
  7610. * test/DefaultBtProgressInfoFileTest.cc
  7611. * test/DefaultBtRequestFactoryTest.cc
  7612. * test/DefaultExtensionMessageFactoryTest.cc
  7613. * test/MSEHandshakeTest.cc
  7614. * test/MockDHTTaskFactory.h
  7615. * test/ShareRatioSeedCriteriaTest.cc
  7616. * test/UTPexExtensionMessageTest.cc
  7617. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Fixed compiler warning.
  7619. * test/UtilTest.cc
  7620. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Treat Cookie object as session cookie if expiry = 0 is given.
  7622. With this change, you can specify session scoped cookies in an external
  7623. file setting expiry value to 0.
  7624. * src/Cookie.cc
  7625. * src/Cookie.h
  7626. * test/CookieParserTest.cc
  7627. * test/CookieStorageTest.cc
  7628. * test/CookieTest.cc
  7629. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7630. Changed signature of DHTMessageFactory::createResponseMessage().
  7631. Removed unused validateIDMatch.
  7632. * src/DHTMessageFactory.h
  7633. * src/DHTMessageFactoryImpl.cc
  7634. * src/DHTMessageFactoryImpl.h
  7635. * src/DHTMessageTracker.cc
  7636. * test/DHTMessageFactoryImplTest.cc
  7637. * test/MockDHTMessageFactory.h
  7638. Dropped DHT message coming from same ID of localhost.
  7639. * src/DHTMessageReceiver.cc
  7640. Rejected adding node whose ID is the same as localhost's.
  7641. * src/DHTRoutingTable.cc
  7642. * test/BtPortMessageTest.cc
  7643. * test/DHTRoutingTableTest.cc
  7644. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7645. Pool connection when redirection occurs with Content-Length = 0.
  7646. * src/HttpSkipResponseCommand.cc
  7647. * src/HttpSkipResponseCommand.h
  7648. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7649. Fixed the bug that causes time out when redirection occurs with
  7650. content-length 0.
  7651. * src/HttpResponseCommand.cc
  7652. * src/HttpSkipResponseCommand.cc
  7653. * src/HttpSkipResponseCommand.h
  7654. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7655. Now each status legends is shown only when it appears in Download
  7656. Result. If Download Result has no item, then status legend will not
  7657. be printed.
  7658. * src/RequestGroupMan.cc
  7659. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. Removed duplicate creation of OptionHandlers.
  7661. * src/option_processing.cc
  7662. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7663. Fixed the bug that causes segmentation fault when accessing files which
  7664. don't exist or are not included in --select-file option while
  7665. validating chunk checksum.
  7666. * src/MultiDiskAdaptor.cc
  7667. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7668. Fixed compiler warning.
  7669. * test/UtilTest.cc
  7670. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7671. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7672. * src/IteratableChecksumValidator.cc
  7673. * src/IteratableChunkChecksumValidator.cc
  7674. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7675. * Release 0.16.2
  7676. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7677. Added Serbian translation. Updated Ukrainian translation.
  7678. Thanks to all translators.
  7679. * po/sr.po
  7680. * po/uk.po
  7681. * po/LINGUAS
  7682. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7683. Bump up version number to 0.16.2
  7684. * configure.ac
  7685. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Added length equality test to operator== to drop a piece message
  7687. whose length does not match to the requested one.
  7688. * src/RequestSlot.cc
  7689. * test/DefaultBtMessageDispatcherTest.cc
  7690. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7691. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7692. recieved.
  7693. In this fix, if a request larger than 16KiB length is received, aria2
  7694. disconnects the peer.
  7695. * src/BtConstants.h
  7696. * src/PeerMessageUtil.cc
  7697. * src/PeerMessageUtil.h
  7698. * test/BtRequestMessageTest.cc
  7699. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. * Release 0.16.1
  7701. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7703. * doc/aria2c.1.txt
  7704. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7705. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7706. Updated French, Simplified Chinese and Japanese translations.
  7707. Thanks to all translators.
  7708. en@quot and en@boldquot are also added.
  7709. * po/LINGUAS
  7710. * po/fr.po
  7711. * po/ja.po
  7712. * po/uk.po
  7713. * po/vi.po
  7714. * po/zh_CN.po
  7715. * po/zh_TW.po
  7716. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7717. Bump up version number to 0.16.1.
  7718. * configure.ac
  7719. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7720. Updated README.
  7721. * README
  7722. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7723. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7724. not to replace '--' with em dash character.
  7725. * doc/aria2c.1.txt
  7726. * doc/makeman
  7727. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7729. every SEC seconds.
  7730. * src/DownloadEngineFactory.cc
  7731. * src/OptionHandlerFactory.cc
  7732. * src/option_processing.cc
  7733. * src/usage_text.h
  7734. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Fixed compile warning on linux-amd64
  7736. * src/FtpConnection.cc
  7737. * src/IteratableChunkChecksumValidator.cc
  7738. * src/MultiDiskAdaptor.cc
  7739. Fixed the bug that unit test fails on linux-amd64
  7740. * test/UtilTest.cc
  7741. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7742. Added --dht-file-path option to change the path to dht.dat, which is a
  7743. serialized DHT routing table.
  7744. * src/OptionHandlerFactory.cc
  7745. * src/option_processing.cc
  7746. * src/usage_text.h
  7747. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7748. Fixed possible underflow.
  7749. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7750. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7751. Fixed the bug that last character in URI is not encoded.
  7752. * src/Request.cc
  7753. * test/RequestTest.cc
  7754. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Fixed the bug that referer header field contains fragment.
  7756. Now Request class removes fragment part of URI and encodes it
  7757. in Request::setUri() and setReferer().
  7758. * src/Request.h
  7759. * src/Request.cc
  7760. * test/RequestTest.cc
  7761. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7762. Added missing m4 macros.
  7763. * m4/cppunit.m4
  7764. * m4/libgcrypt.m4
  7765. * m4/libgnutls-extra.m4
  7766. * m4/libgnutls.m4
  7767. * m4/libxml2.m4
  7768. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7769. Fixed compile error with gcc-4.4(snapshot)
  7770. * src/File.cc
  7771. * src/FtpConnection.cc
  7772. * src/OptionHandlerImpl.h
  7773. * src/Util.cc
  7774. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Removed assert()
  7776. * src/SocketBuffer.cc (SocketBuffer::send)
  7777. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7778. Changed the type of _numNewConnection to unsigned int.
  7779. * src/ActivePeerConnectionCommand.cc
  7780. * src/ActivePeerConnectionCommand.h
  7781. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7782. * Release 0.16.0
  7783. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7784. Updated doc
  7785. * README
  7786. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7788. translations. Thanks to all translators.
  7789. * po/bg.po
  7790. * po/de.po
  7791. * po/fr.po
  7792. * po/ja.po
  7793. * po/zh_CN.po
  7794. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7795. Bump up version number to 0.16.0.
  7796. * configure.ac
  7797. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7799. int32_t.
  7800. Changed the type of count to int32_t.
  7801. * src/Metalink2RequestGroup.cc
  7802. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7803. Added test for Time::elapsed(time_t).
  7804. * test/TimeTest.cc
  7805. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7807. Util::difftv() should be used instead.
  7808. * src/TimeA2.cc
  7809. * src/TimeA2.h
  7810. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7811. Made socket for dht connections non-blocking
  7812. * src/DHTAbstractMessage.cc
  7813. * src/DHTAbstractMessage.h
  7814. * src/DHTConnection.h
  7815. * src/DHTConnectionImpl.cc
  7816. * src/DHTConnectionImpl.h
  7817. * src/DHTMessage.h
  7818. * src/DHTMessageDispatcherImpl.cc
  7819. * src/DHTMessageDispatcherImpl.h
  7820. * src/DHTUnknownMessage.cc
  7821. * src/DHTUnknownMessage.h
  7822. * src/SocketCore.cc
  7823. * src/SocketCore.h
  7824. * test/MockDHTMessage.h
  7825. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Changed the type of offset to int.
  7827. * src/ParameterizedStringParser.cc
  7828. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. Made getAsInt() return int32_t
  7830. * src/Option.h
  7831. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7832. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7833. build.
  7834. * configure.ac
  7835. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7836. Use sqlite3_open if sqlite3_open_v2 is not available.
  7837. * src/Sqlite3MozCookieParser.cc
  7838. * src/Sqlite3MozCookieParser.h
  7839. * m4/sqlite3.m4
  7840. * test/Sqlite3MozCookieParserTest.cc
  7841. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7843. * src/BtPieceMessage.cc
  7844. * src/DHTPeerAnnounceStorage.cc
  7845. * src/DefaultPieceStorage.cc
  7846. * src/DownloadCommand.cc
  7847. * src/DownloadEngine.cc
  7848. * src/FtpConnection.cc
  7849. * src/PeerConnection.cc
  7850. * src/PeerMessageUtil.cc
  7851. * src/RequestGroup.cc
  7852. * src/RequestGroupMan.cc
  7853. * src/SimpleBtMessage.cc
  7854. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7855. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7856. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7857. * src/AbstractDiskWriter.cc
  7858. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Don't set Request::supportsPersistentConnection() in HttpConnection
  7860. since this code is also used in AbstractProxyResponseCommand.
  7861. Moved those code to HttpResponse.
  7862. * src/HttpResponse.cc
  7863. * src/HttpResponse.h
  7864. * src/HttpConnection.cc
  7865. * src/HttpConnection.h
  7866. * src/HttpResponseCommand.cc
  7867. * test/HttpResponseTest.cc
  7868. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7870. The configuration is minimum: no torrent, no metalink, so there may be
  7871. other compile error on their code.
  7872. * src/a2netcompat.h
  7873. * src/File.cc
  7874. * src/File.h
  7875. * src/SocketCore.cc
  7876. * src/SocketCore.h
  7877. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7878. Made a socket of incoming peer non-blocking.
  7879. * src/PeerListenCommand.cc
  7880. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7882. whole message data is not sent in one send() call.
  7883. * src/BtPieceMessage.cc
  7884. * src/BtPieceMessage.h
  7885. * src/PeerConnection.cc
  7886. * src/PeerConnection.h
  7887. * src/SimpleBtMessage.cc
  7888. * src/SimpleBtMessage.h
  7889. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7890. Fixed the bug that aria2 downloads faster than max-download-limit when
  7891. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7892. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7893. , instead of sum of them.
  7894. * src/ActivePeerConnectionCommand.cc
  7895. * src/DefaultBtInteractive.cc
  7896. * src/DownloadCommand.cc
  7897. * src/PeerInteractionCommand.cc
  7898. * src/PeerReceiveHandshakeCommand.cc
  7899. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. Fixed the bug that HTTPS download fails.
  7901. * src/AbstractCommand.cc
  7902. * src/AbstractCommand.h
  7903. * src/DownloadCommand.cc
  7904. * src/FtpConnection.cc
  7905. * src/HttpConnection.cc
  7906. * src/HttpRequestCommand.cc
  7907. * src/HttpResponseCommand.cc
  7908. * src/HttpSkipResponseCommand.cc
  7909. * src/MSEHandshake.cc
  7910. * src/PeerConnection.cc
  7911. * src/SocketCore.cc
  7912. * src/SocketCore.h
  7913. Fixed the bug that aria2 doesn't download whole content body and cannot
  7914. reuse connection if chunked transfer encoding and gzip content encoding
  7915. are set.
  7916. * src/DownloadCommand.cc
  7917. * src/HttpSkipResponseCommand.cc
  7918. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7919. Updated man page.
  7920. * doc/aria2c.1.txt
  7921. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. When error occurred while aria2 was parsing an .aria2.conf file, print
  7923. the usage of the option that caused error.
  7924. * src/option_processing.cc
  7925. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7926. Fixed compile error on OptionHandlerException
  7927. * src/Makefile.am
  7928. * src/OptionHandlerException.cc
  7929. * src/OptionHandlerException.h
  7930. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. Moved message of the error to OptionHandlerException.h
  7932. * src/NameMatchOptionHandler.h
  7933. * src/OptionHandlerException.h
  7934. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. When error occurs while aria2 is parsing an command-line option, print
  7936. the usage of the option.
  7937. * src/Makefile.am
  7938. * src/NameMatchOptionHandler.h
  7939. * src/OptionHandlerException.h
  7940. * src/option_processing.cc
  7941. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7942. Reverted previous change.
  7943. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7944. username is not in URI.
  7945. * src/HttpRequest.cc
  7946. * src/Request.cc
  7947. * test/HttpRequestTest.cc
  7948. * test/RequestTest.cc
  7949. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Now colon is required for username and password in FTP URL, like:
  7951. ftp://username:password@host.
  7952. If colon is not there, aria2 don't parse it as a username. For example,
  7953. aria2 don't retrieve username from ftp://username@host.
  7954. This fix was made in order to login FTP server via non-transparent ftp
  7955. proxy.
  7956. * src/Request.cc
  7957. * test/RequestTest.cc
  7958. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Use netrc for HTTP.
  7960. Now FTP user/password is sent in Authorization header when
  7961. --ftp-via-http-proxy=get is given.
  7962. * src/AuthConfigFactory.cc
  7963. * src/HttpRequest.cc
  7964. * src/HttpRequest.h
  7965. * src/NetrcAuthResolver.cc
  7966. * src/NetrcAuthResolver.h
  7967. * src/OptionHandlerFactory.cc
  7968. * src/option_processing.cc
  7969. * src/prefs.cc
  7970. * src/prefs.h
  7971. * test/AuthConfigFactoryTest.cc
  7972. * test/HttpRequestTest.cc
  7973. * test/NetrcAuthResolverTest.cc
  7974. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7975. Issue PWD command first and get working directory and use it as a prefix
  7976. for CWD command.
  7977. * src/DownloadEngine.cc
  7978. * src/DownloadEngine.h
  7979. * src/FtpConnection.cc
  7980. * src/FtpConnection.h
  7981. * src/FtpFinishDownloadCommand.cc
  7982. * src/FtpInitiateConnectionCommand.cc
  7983. * src/FtpNegotiationCommand.cc
  7984. * src/FtpNegotiationCommand.h
  7985. * test/FtpConnectionTest.cc
  7986. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Removed default user/pass for FTP user/pass, since it should not have
  7988. precedence over netrc configuration by default.
  7989. * src/OptionHandlerFactory.cc
  7990. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7991. Added debug log for socket event.
  7992. * src/AbstractCommand.cc
  7993. * src/PeerAbstractCommand.cc
  7994. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7995. Log microseconds.
  7996. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7997. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7998. Replaced HelpItem.cc with OptionHandler.cc.
  7999. * po/POTFILES.in
  8000. Updated po files with 'make update-po'
  8001. * po/aria2c.pot
  8002. * po/*.po
  8003. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. Removed possible values from the text.
  8005. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8006. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Removed unused preferences:
  8008. PREF_NO_PREALLOCATION
  8009. PREF_STDOUT_LOG
  8010. PREF_TRACKER_MAX_TRIES
  8011. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8012. PREF_MIN_SEGMENT_SIZE
  8013. * src/option_processing.cc
  8014. * src/prefs.cc
  8015. * src/prefs.h
  8016. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. Integrated HelpItem into OptionParser to ease the workload for adding
  8018. new options. Removed default value from usage text.
  8019. * src/HelpItem.cc: Removed.
  8020. * src/HelpItem.h: Removed.
  8021. * src/HelpItemFactory.cc: Removed.
  8022. * src/HelpItemFactory.h: Removed.
  8023. * src/Makefile.am
  8024. * src/Makefile.in
  8025. * src/NameMatchOptionHandler.h
  8026. * src/OptionHandler.cc
  8027. * src/OptionHandler.h
  8028. * src/OptionHandlerFactory.cc
  8029. * src/OptionHandlerImpl.h
  8030. * src/OptionParser.cc
  8031. * src/OptionParser.h
  8032. * src/TagContainer.cc: Removed.
  8033. * src/TagContainer.h: Removed.
  8034. * src/TaggedItem.cc: Removed.
  8035. * src/TaggedItem.h: Removed.
  8036. * src/main.cc
  8037. * src/option_processing.cc
  8038. * src/usage_text.h
  8039. * src/version_usage.cc
  8040. * test/HelpItemTest.cc: Removed.
  8041. * test/Makefile.am
  8042. * test/Makefile.in
  8043. * test/OptionHandlerTest.cc
  8044. * test/OptionParserTest.cc
  8045. * test/TagContainerTest.cc: Removed.
  8046. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8047. Moved `TransferStat stat = ...' to inside the `if' clause.
  8048. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8049. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8050. Fixed the bug that a block in a piece is requested when same block is
  8051. already requested to the same peer in end game mode.
  8052. * src/BtRequestFactory.h
  8053. * src/DefaultBtInteractive.cc
  8054. * src/DefaultBtRequestFactory.cc
  8055. * src/DefaultBtRequestFactory.h
  8056. * src/DefaultPieceStorage.cc
  8057. * src/DefaultPieceStorage.h
  8058. * src/PieceStorage.h
  8059. * src/UnknownLengthPieceStorage.cc
  8060. * src/UnknownLengthPieceStorage.h
  8061. * test/DefaultBtRequestFactoryTest.cc
  8062. * test/DefaultPieceStorageTest.cc
  8063. * test/MockBtRequestFactory.h
  8064. * test/MockPieceStorage.h
  8065. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8066. Removed _uploadLength and _downloadLength from PeerSessionResource
  8067. and use PeerStat::_sessionUploadLength and
  8068. PeerStat::_sessionDownloadLength.
  8069. * src/PeerSessionResource.cc
  8070. * src/PeerSessionResource.h
  8071. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8072. Fixed the bug that prefixLength of split bucket which doesn't include
  8073. local node ID is incremented.
  8074. * src/DHTBucket.cc
  8075. * src/DHTBucket.h
  8076. * test/DHTBucketTest.cc
  8077. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8078. Added cookies.sqlite to EXTRA_DIST
  8079. * test/Makefile.am
  8080. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8081. Added Turkish translation. Updated French, German, Russian and
  8082. Simplified Chinese translations. Thanks to all translators.
  8083. * po/LINGUAS
  8084. * po/de.po
  8085. * po/fr.po
  8086. * po/ru.po
  8087. * po/tr.po
  8088. * po/zh_CN.po
  8089. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8090. Added deliminating text to the beginning of the log so that one can find
  8091. where the log starts easily.
  8092. * src/main.cc
  8093. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8094. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8095. to fix compile error when async DNS is not enabled by configuration.
  8096. * src/AbstractCommand.cc
  8097. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8098. If establishing conneciton to a server is failed, then mark error on
  8099. its ServerStat.
  8100. Added the cause of error to log when error event occurred.
  8101. Moved message string to message.h for translation.
  8102. * src/AbstractCommand.cc
  8103. * src/AbstractCommand.h
  8104. * src/FtpNegotiationCommand.cc
  8105. * src/HttpRequestCommand.cc
  8106. * src/PeerAbstractCommand.cc
  8107. * src/message.h
  8108. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8109. Added the function to get error message from socket.
  8110. * src/SocketCore.cc
  8111. * src/SocketCore.h
  8112. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8113. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8114. * src/RequestGroupMan.cc
  8115. * src/RequestGroupMan.h
  8116. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8117. If error event is received in epoll, then abort download immediately.
  8118. * src/AbstractCommand.cc
  8119. * src/Command.cc
  8120. * src/Command.h
  8121. * src/DownloadEngine.cc
  8122. * src/PeerAbstractCommand.cc
  8123. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8124. Added usage message for --uri-selector, --server-stat-of,
  8125. --server-stat-in, --server-stat-timeout options.
  8126. * src/HelpItemFactory.cc
  8127. * src/usage_text.h
  8128. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. Added upper limit of FTP response buffer. The current implementation
  8130. uses 4096bytes as a limit.
  8131. * src/FtpConnection.cc
  8132. * src/FtpConnection.h
  8133. * test/FtpConnectionTest.cc
  8134. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8135. Use non-blocking socket for TCP communication to avoid possible
  8136. blocking due to buffer full.
  8137. * src/AbstractProxyRequestCommand.cc
  8138. * src/FtpConnection.cc
  8139. * src/FtpConnection.h
  8140. * src/FtpNegotiationCommand.cc
  8141. * src/FtpNegotiationCommand.h
  8142. * src/HttpConnection.cc
  8143. * src/HttpConnection.h
  8144. * src/HttpRequestCommand.cc
  8145. * src/InitiatorMSEHandshakeCommand.cc
  8146. * src/InitiatorMSEHandshakeCommand.h
  8147. * src/MSEHandshake.cc
  8148. * src/MSEHandshake.h
  8149. * src/Makefile.am
  8150. * src/PeerConnection.cc
  8151. * src/PeerConnection.h
  8152. * src/PeerInteractionCommand.cc
  8153. * src/PeerListenCommand.cc
  8154. * src/ReceiverMSEHandshakeCommand.cc
  8155. * src/ReceiverMSEHandshakeCommand.h
  8156. * src/SocketBuffer.cc
  8157. * src/SocketBuffer.h
  8158. * src/SocketCore.cc
  8159. * src/SocketCore.h
  8160. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8161. Call setStatusRealtime() in constructor.
  8162. * src/RealtimeCommand.cc
  8163. * src/RealtimeCommand.h
  8164. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. Call Download::setNoWait(true) to execute newly created command without
  8166. a pause.
  8167. * src/AbstractCommand.cc
  8168. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8169. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8170. found' error from HTTP/FTP server NUM times without getting single
  8171. bytes of data, then force the download to fail.
  8172. Basically aria2 tris all URIs available. So if long list of URIs are
  8173. specified in Metalink, then aria2 will take a long time to fail
  8174. eventually if all URIs are outdated. This option eases this situation
  8175. to limit the number of servers to try.
  8176. * src/FtpNegotiationCommand.cc
  8177. * src/HelpItemFactory.cc
  8178. * src/HttpResponseCommand.cc
  8179. * src/OptionHandlerFactory.cc
  8180. * src/PeerStat.h
  8181. * src/RequestGroup.cc
  8182. * src/RequestGroup.h
  8183. * src/SegmentMan.cc
  8184. * src/SegmentMan.h
  8185. * src/option_processing.cc
  8186. * src/prefs.cc
  8187. * src/prefs.h
  8188. * src/usage_text.h
  8189. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8191. response even if more than one response is in it.
  8192. * src/FtpConnection.cc
  8193. * src/FtpConnection.h
  8194. * test/FtpConnectionTest.cc
  8195. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. Merged from stable-0.15
  8197. * m4/libcares.m4
  8198. Use pkg-config
  8199. * m4/sqlite3.m4
  8200. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. Removed unnecessary if statement.
  8202. * src/DefaultPieceStorage.cc (initPieceStorage)
  8203. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8204. Added --connect-timeout option to specify connect timeout in seconds.
  8205. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8206. connecting to BitTorrent peer is not controlled by this option.
  8207. * src/AbstractProxyRequestCommand.cc
  8208. * src/FtpNegotiationCommand.cc
  8209. * src/HelpItemFactory.cc
  8210. * src/HttpRequestCommand.cc
  8211. * src/OptionHandlerFactory.cc
  8212. * src/option_processing.cc
  8213. * src/prefs.cc
  8214. * src/prefs.h
  8215. * src/usage_text.h
  8216. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8217. Added help message for -R option.
  8218. * src/HelpItemFactory.cc
  8219. * src/usage_text.h
  8220. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8221. Added the message that the time is in local time zone.
  8222. * src/RequestGroup.cc
  8223. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8224. Implemented the ability to get timestamp from remote FTP server using
  8225. MDTM command described in RFC3659.
  8226. * src/FtpConnection.cc
  8227. * src/FtpConnection.h
  8228. * src/FtpNegotiationCommand.cc
  8229. * src/FtpNegotiationCommand.h
  8230. * test/FtpConnectionTest.cc
  8231. * test/Makefile.am
  8232. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Implemented the ability to get timestamp from remote HTTP server and
  8234. apply it to local file. To enable this feature, --remote-time option
  8235. is added. No usage text has been written yet.
  8236. If several servers returns difference timestamp, then aria2 uses latest
  8237. one.
  8238. * src/CopyDiskAdaptor.cc
  8239. * src/CopyDiskAdaptor.h
  8240. * src/DirectDiskAdaptor.cc
  8241. * src/DirectDiskAdaptor.h
  8242. * src/DiskAdaptor.h
  8243. * src/File.cc
  8244. * src/File.h
  8245. * src/HttpHeader.cc
  8246. * src/HttpHeader.h
  8247. * src/HttpResponse.cc
  8248. * src/HttpResponse.h
  8249. * src/HttpResponseCommand.cc
  8250. * src/HttpResponseCommand.h
  8251. * src/MultiDiskAdaptor.cc
  8252. * src/MultiDiskAdaptor.h
  8253. * src/OptionHandlerFactory.cc
  8254. * src/RequestGroup.cc
  8255. * src/RequestGroup.h
  8256. * src/RequestGroupMan.cc
  8257. * src/option_processing.cc
  8258. * src/prefs.cc
  8259. * src/prefs.h
  8260. * test/CopyDiskAdaptorTest.cc
  8261. * test/FileTest.cc
  8262. * test/Makefile.am
  8263. * test/Makefile.in
  8264. * test/MultiDiskAdaptorTest.cc
  8265. * test/TestUtil.cc
  8266. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Fixed the bug that DiskWriterEntry is not created when its
  8268. FileEntry.isRequested() is false and it doesn't share a piece with
  8269. other FileEntries that are requested. This bug causes segmentation fault
  8270. in the end.
  8271. * src/MultiDiskAdaptor.cc
  8272. * src/MultiDiskAdaptor.h
  8273. * src/MultiFileAllocationIterator.cc
  8274. * test/MultiDiskAdaptorTest.cc
  8275. * test/MultiFileAllocationIteratorTest.cc
  8276. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8277. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8278. called if the number of file entries are greater than max open files.
  8279. * src/AbstractSingleDiskAdaptor.cc
  8280. * src/AbstractSingleDiskAdaptor.h
  8281. * src/DiskAdaptor.h
  8282. * src/MultiDiskAdaptor.cc
  8283. * src/MultiDiskAdaptor.h
  8284. * test/MultiDiskAdaptorTest.cc
  8285. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8286. Added a constuctor that receives struct timeval.
  8287. Added operator<.
  8288. * src/TimeA2.cc
  8289. * src/TimeA2.h
  8290. * test/TimeTest.cc
  8291. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8293. * src/CookieParser.cc
  8294. * test/CookieParserTest.cc
  8295. * test/HttpResponseTest.cc
  8296. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. Implmented the functions to parse date.
  8298. * src/TimeA2.cc
  8299. * src/TimeA2.h
  8300. * test/TimeTest.cc
  8301. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Added "Firefox3 Cookie" feature to FeatureConfig
  8303. * src/FeatureConfig.cc
  8304. * src/FeatureConfig.h
  8305. * test/FeatureConfigTest.cc
  8306. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Bump up version number to 0.16.0b
  8308. * configure.ac
  8309. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8310. Use pkg-config if is is available.
  8311. * m4/openssl.m4
  8312. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8313. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8314. * src/BtAnnounce.h
  8315. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8316. If an error occurred with a URI, remove identical URI from remaining
  8317. URI list because it is likely that same error occurred in the end and it
  8318. is waste of time.
  8319. * src/AbstractCommand.cc
  8320. * src/RequestGroup.cc
  8321. * src/RequestGroup.h
  8322. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8323. Removed wrong comment.
  8324. * src/DefaultPeerStorage.cc
  8325. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8327. Added return value of getpid() to argument of srand() to achieve more
  8328. randomized value.
  8329. * src/SimpleRandomizer.cc
  8330. * src/SimpleRandomizer.h
  8331. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8332. Contact tracker frequently when the number of connections are 0 and
  8333. download is not finished yet.
  8334. * src/ActivePeerConnectionCommand.cc
  8335. * src/BtAnnounce.h
  8336. * src/DefaultBtAnnounce.cc
  8337. * src/DefaultBtAnnounce.h
  8338. * test/MockBtAnnounce.h
  8339. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8340. Moved threshold values to UTPexExtensionMessage.
  8341. * src/DefaultBtInteractive.cc
  8342. * src/Peer.cc
  8343. * src/Peer.h
  8344. * src/UTPexExtensionMessage.cc
  8345. * src/UTPexExtensionMessage.h
  8346. * test/UTPexExtensionMessageTest.cc
  8347. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8348. Added _incoming member to Peer class and made it true if the peer
  8349. initiated connection. Don't add those peer to UTPex message.
  8350. If extended handshake is received, assign _incoming to false.
  8351. * src/DefaultBtInteractive.cc
  8352. * src/HandshakeExtensionMessage.cc
  8353. * src/Peer.cc
  8354. * src/Peer.h
  8355. * src/PeerListenCommand.cc
  8356. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8358. Encoding Decoder. Removed size threshold for turning off on the fly
  8359. inflation because resulting file may or may not be inflated depending
  8360. on the file size and I think it is not expected by users.
  8361. This change fixes segmentation fault when Metalink file contains gzipped
  8362. file and its filesize is provided.
  8363. * src/HttpResponseCommand.cc
  8364. * src/HttpResponseCommand.h
  8365. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Made Cookie immutable.
  8367. * src/Cookie.cc
  8368. * src/Cookie.h
  8369. * src/CookieParser.cc
  8370. * src/CookieParser.h
  8371. * src/CookieStorage.cc
  8372. * test/CookieParserTest.cc
  8373. * test/CookieStorageTest.cc
  8374. * test/NsCookieParserTest.cc
  8375. * test/Sqlite3MozCookieParserTest.cc
  8376. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. Removed CookieBox, CookieBoxFactory.
  8378. * src/CookieBox.cc
  8379. * src/CookieBox.h
  8380. * src/CookieBoxFactory.cc
  8381. * src/CookieBoxFactory.h
  8382. * src/Makefile.am
  8383. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8384. Use CookieStorage class instead of CookieBox class.
  8385. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8386. * src/AbstractProxyRequestCommand.cc
  8387. * src/CookieStorage.cc
  8388. * src/DownloadEngine.cc
  8389. * src/DownloadEngine.h
  8390. * src/HttpConnection.cc
  8391. * src/HttpConnection.h
  8392. * src/HttpRequest.cc
  8393. * src/HttpRequest.h
  8394. * src/HttpRequestCommand.cc
  8395. * src/HttpResponse.cc
  8396. * src/HttpResponseCommand.cc
  8397. * src/HttpSkipResponseCommand.cc
  8398. * src/Makefile.am
  8399. * src/MultiUrlRequestInfo.cc
  8400. * src/Request.cc
  8401. * src/Request.h
  8402. * src/main.cc
  8403. * test/AllTest.cc
  8404. * test/CookieStorageTest.cc
  8405. * test/CookieTest.cc
  8406. * test/HttpRequestTest.cc
  8407. * test/HttpResponseTest.cc
  8408. * test/Makefile.am
  8409. * test/NsCookieParserTest.cc
  8410. * test/Sqlite3MozCookieParserTest.cc
  8411. * test/nscookietest.txt
  8412. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8413. Updated
  8414. * test/Cookies.sqlite
  8415. * test/nscookietest.txt
  8416. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8417. Added tests for CookieStorage::load()
  8418. * test/CookieStorageTest.cc
  8419. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8420. Added CookieStorage class which is based on RFC2109 and manages cookies
  8421. more strictly than CookieBox and CookieBoxFactory class.
  8422. * src/CookieStorage.cc
  8423. * src/CookieStorage.h
  8424. * src/Cookie.cc
  8425. * src/Cookie.h
  8426. * test/CookieStorageTest.cc
  8427. * test/CookieTest.cc
  8428. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8429. Fixed the bug that commands are created more than the number of pieces.
  8430. * src/RequestGroup.cc
  8431. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. Fixed infinite loop bug in FTP when SIZE command failed.
  8433. * src/FtpNegotiationCommand.cc
  8434. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8435. Removed DirectDiskAdaptorTest.h
  8436. * test/Makefile.am
  8437. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8438. Fixed chunk checksum validation cannot detect trailing garbage data.
  8439. BUG#2074141
  8440. * src/AbstractSingleDiskAdaptor.cc
  8441. * src/AbstractSingleDiskAdaptor.h
  8442. * src/CheckIntegrityEntry.cc
  8443. * src/CheckIntegrityEntry.h
  8444. * src/DiskAdaptor.h
  8445. * src/MultiDiskAdaptor.cc
  8446. * src/MultiDiskAdaptor.h
  8447. * src/RequestGroup.cc
  8448. * test/DirectDiskAdaptorTest.cc
  8449. * test/MultiDiskAdaptorTest.cc
  8450. * test/TestUtil.cc
  8451. * test/TestUtil.h
  8452. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8453. Bump up version number of dht.dat file to 3. In version 3 format, time
  8454. is stored in 64bit, network byte order.
  8455. New build can load old format(version 2) but it saves the file in new
  8456. format. It means once you used new build, your dht.dat becomes
  8457. incompatible with older build.
  8458. * src/DHTRoutingTableDeserializer.cc
  8459. * src/DHTRoutingTableSerializer.cc
  8460. * test/DHTRoutingTableSerializerTest.cc
  8461. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8462. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8463. * test/Makefile.am
  8464. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8465. Bump up version number of .aria2 control file to 0001.
  8466. New aria2 can still load version 0000 file but it saves the file in
  8467. version 0001 format. It means that new aria2 can resume download
  8468. started by old aria2 but the opposite is not true.
  8469. * src/DefaultBtProgressInfoFile.cc
  8470. * src/DefaultBtProgressInfoFile.h
  8471. * test/DefaultBtProgressInfoFileTest.cc
  8472. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8473. Added ntoh64 and hton64 as inline functions.
  8474. * src/Util.cc
  8475. * test/UtilTest.cc
  8476. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8477. Added sqlite3 depenency and Firefox3 cookie support.
  8478. * README
  8479. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8480. State that firefox3 cookie is supported explicitly in the usage.
  8481. * src/usage_text.h
  8482. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. Externalized message.
  8484. * src/RequestGroupMan.cc
  8485. * src/message.h
  8486. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Save temporary file first and rename to the destination on success.
  8488. Added test cases.
  8489. * src/RequestGroupMan.cc
  8490. * test/RequestGroupManTest.cc
  8491. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8492. Fixed the bug that the number of connected peer is exceeding the limit
  8493. (55 by default) in seeding mode.
  8494. Multiplied 0.8 to _maxUploadSpeedLimit.
  8495. * src/ActivePeerConnectionCommand.cc
  8496. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. Clear table item.
  8498. * src/Dictionary.cc
  8499. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8500. Fixed error handling of lseek.
  8501. * src/AbstractDiskWriter.cc
  8502. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8503. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8504. style cookie file.
  8505. * src/usage_text.h
  8506. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8507. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8508. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8509. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8510. * src/Util.cc
  8511. * src/Util.h
  8512. * src/CookieParser.cc
  8513. * test/UtilTest.cc
  8514. * test/CookieParserTest.cc
  8515. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8516. Separate the implementation to load old mozilla format of cookie to
  8517. NsCookieParser class.
  8518. * src/CookieBoxFactory.cc
  8519. * src/CookieBoxFactory.h
  8520. * src/NsCookieParser.cc
  8521. * src/NsCookieParser.h
  8522. * test/NsCookieParserTest.cc
  8523. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8524. Made parse() const
  8525. * src/Sqlite3MozCookieParser.cc
  8526. * src/Sqlite3MozCookieParser.h
  8527. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8528. Added firefox3 cookie support based on the patch submitted by
  8529. tizianomueller.
  8530. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8531. this functionality.
  8532. * configure.ac
  8533. * m4/sqlite3.m4
  8534. * src/CookieBoxFactory.cc
  8535. * src/CookieBoxFactory.h
  8536. * src/Makefile.am
  8537. * src/Makefile.in
  8538. * src/Sqlite3MozCookieParser.cc
  8539. * src/Sqlite3MozCookieParser.h
  8540. * src/main.cc
  8541. * test/CookieBoxFactoryTest.cc
  8542. * test/Makefile.am
  8543. * test/Makefile.in
  8544. * test/Sqlite3MozCookieParserTest.cc
  8545. * test/badcookies.sqlite
  8546. * test/cookies.sqlite
  8547. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8548. Added Danish and Greek translations.
  8549. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8550. Great thanks to all translators.
  8551. * po/LINGUAS
  8552. * po/el.po
  8553. * po/da.po
  8554. * po/es.po
  8555. * po/ca.po
  8556. * po/nn.po
  8557. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. Fixed man page: --follow-bittorrent should be --follow-torrent
  8559. * doc/aria2c.1.txt
  8560. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. Fixed: numCommand is less than the value specified in -C option.
  8562. * src/RequestGroup.cc
  8563. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8564. Fixed occasional assertion failure in PieceSegment.
  8565. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8566. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8567. creation of duplicate segments and one of the segment was finished then
  8568. assertion failure was caused.
  8569. * src/SegmentMan.cc
  8570. * test/SegmentManTest.cc
  8571. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8572. Added options to load/save the server's performance/status to a file
  8573. and the timeout to drop their data.
  8574. --server-stat-of=FILE specifies the file to which performance data
  8575. is saved.
  8576. --server-stat-if=FILE specifies the file to read previously saved
  8577. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8578. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8579. TIMEOUT is specified in seconds and the default value is 24hours.
  8580. * src/MultiUrlRequestInfo.cc
  8581. * src/OptionHandlerFactory.cc
  8582. * src/RequestGroupMan.cc
  8583. * src/RequestGroupMan.h
  8584. * src/ServerStatMan.cc
  8585. * src/ServerStatMan.h
  8586. * src/option_processing.cc
  8587. * src/prefs.cc
  8588. * src/prefs.h
  8589. * test/ServerStatManTest.cc
  8590. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8592. * src/ServerStatMan.cc
  8593. * src/ServerStatMan.h
  8594. * test/ServerStatManTest.cc
  8595. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8596. Implemented ServerStatMan::load(...) function and its test case.
  8597. * src/ServerStat.cc
  8598. * src/ServerStat.h
  8599. * src/ServerStatMan.cc
  8600. * test/ServerStatManTest.cc
  8601. * test/ServerStatTest.cc
  8602. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8603. Use time_t instead of int32_t. Use int64_t where milli second is
  8604. expected.
  8605. * src/TimeA2.cc
  8606. * src/TimeA2.h
  8607. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8608. Implemented ServerStatMan::save(...) function and its test case.
  8609. * src/ServerStat.cc
  8610. * src/ServerStat.h
  8611. * src/ServerStatMan.cc
  8612. * src/ServerStatMan.h
  8613. * test/ServerStatManTest.cc
  8614. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8615. Now aria2 uses name attribute in Metalink as local filename in
  8616. BitTorrent downloads. BUG#2033999
  8617. * src/BtContext.h
  8618. * src/BtDependency.cc
  8619. * src/DefaultBtContext.cc
  8620. * src/DefaultBtContext.h
  8621. * src/SingleFileDownloadContext.cc
  8622. * src/SingleFileDownloadContext.h
  8623. * test/BtDependencyTest.cc
  8624. * test/DefaultBtContextTest.cc
  8625. * test/MockBtContext.h
  8626. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. Added AC_C_BIGENDIAN
  8628. * src/configure.ac
  8629. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. Limited numCommand less than or equal to the number of piece.
  8631. * src/RequestGroup.cc
  8632. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8633. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8634. directive.
  8635. * test/DefaultPieceStorageTest.cc
  8636. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8637. Fixed memory leak in test code
  8638. * test/AnnounceListTest.cc
  8639. * test/DefaultPeerListProcessorTest.cc
  8640. * test/DefaultPeerStorageTest.cc
  8641. * test/MetaFileUtilTest.cc
  8642. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8643. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8644. * src/DefaultPieceStorage.cc
  8645. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8646. Initialized _directIOAllowed
  8647. * src/MultiDiskAdaptor.cc
  8648. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Fixed memory leak
  8650. * src/GZipDecoder.cc
  8651. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8652. Fixed memory leak
  8653. * src/MetalinkParserStateMachine.cc
  8654. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Fixed memory leak
  8656. * src/Dictionary.cc
  8657. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Fixed memory leak
  8659. * src/IteratableChunkChecksumValidator.h
  8660. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. Fixed unmatched malloc/free.
  8662. * src/IteratableChunkChecksumValidator.cc
  8663. * src/IteratableChecksumValidator.cc
  8664. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8665. Removed max chunk size check. This change fixes BUG#2040169
  8666. * src/ChunkedDecoder.cc
  8667. * src/ChunkedDecoder.h
  8668. * test/ChunkedDecoderTest.cc
  8669. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8670. Implemented download speed based URI selection algorithm.
  8671. Introduced new option --uri-selector.
  8672. If --uri-selector=feedback is given, aria2 uses download speed observed
  8673. in the previous downloads and chooses fastest server in the URI list.
  8674. Currently at most 10 URIs are considered to introduce randomeness for
  8675. finding better servers. The speed is average download speed in the
  8676. downloads.
  8677. On the other hand, if --uri-selector=inorder is given, which is default,
  8678. URI is tried in order in URI list.
  8679. The usage text for the new option has not been written yet.
  8680. * src/AbstractCommand.cc
  8681. * src/DownloadCommand.cc
  8682. * src/DownloadEngine.cc
  8683. * src/DownloadEngineFactory.cc
  8684. * src/InOrderURISelector.cc
  8685. * src/InOrderURISelector.h
  8686. * src/OptionHandlerFactory.cc
  8687. * src/PeerStat.h
  8688. * src/RequestGroup.cc
  8689. * src/RequestGroup.h
  8690. * src/RequestGroupMan.cc
  8691. * src/RequestGroupMan.h
  8692. * src/SegmentMan.cc
  8693. * src/SegmentMan.h
  8694. * src/ServerStat.cc
  8695. * src/ServerStat.h
  8696. * src/ServerStatMan.cc
  8697. * src/ServerStatMan.h
  8698. * src/ServerStatURISelector.cc
  8699. * src/ServerStatURISelector.h
  8700. * src/URISelector.h
  8701. * src/option_processing.cc
  8702. * src/prefs.cc
  8703. * src/prefs.h
  8704. * test/InOrderURISelectorTest.cc
  8705. * test/RequestGroupManTest.cc
  8706. * test/ServerStatManTest.cc
  8707. * test/ServerStatURISelectorTest.cc
  8708. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8709. * Release 0.15.1+2
  8710. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. Bump up version number to 0.15.1+2
  8712. * configure.ac
  8713. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8714. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8715. * m4/aria2_arg.m4
  8716. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8717. * Release 0.15.1+1
  8718. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. Bump up version number to 0.15.1+1
  8720. * configure.ac
  8721. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Fixed the bug that causes segmentaion fault when resuming download
  8723. using metalink without size tag. Reproducible only using HTTP URI.
  8724. * src/HttpResponseCommand.cc
  8725. * src/FtpNegotiationCommand.cc
  8726. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. * Release 0.15.1
  8728. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8729. Updated Bulgarian and French translations, thanks to all translators.
  8730. * po/bg.po
  8731. * po/fr.po
  8732. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8733. Bump up version number to 0.15.1
  8734. * configure.ac
  8735. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8736. Avoid repeated call of gettimeofday() when calculating speed.
  8737. * src/SpeedCalc.cc
  8738. * src/SpeedCalc.h
  8739. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8740. Removed writable check when socket's send buffer is full in BitTorrent
  8741. downloads to lower CPU usage.
  8742. * src/PeerInteractionCommand.cc
  8743. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. Fixed broken gzip inflation.
  8745. Turn off segmented downloading if gzip content is smaller than or equal
  8746. to 1MiB and inflate the data on the fly, because HTTP response header
  8747. doesn't contain the length of inflated file we can't determin where
  8748. the chunk of data should be written.
  8749. On the other hand, if gzip content is larger than 1MB, then turn off
  8750. on the fly inflation, because some servers returns "content-type: gzip"
  8751. for *.tgz, *.gz files.
  8752. * src/DownloadCommand.cc
  8753. * src/HttpResponseCommand.cc
  8754. * src/HttpResponseCommand.h
  8755. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8756. Applied tizianomueller's patch to fix compile error.
  8757. * test/BitfieldManTest.cc
  8758. * test/BtRequestMessageTest.cc
  8759. * test/DefaultBtContextTest.cc
  8760. * test/DefaultDiskWriterTest.cc
  8761. * test/DefaultPieceStorageTest.cc
  8762. * test/HttpHeaderProcessorTest.cc
  8763. * test/HttpResponseTest.cc
  8764. * test/Metalink2RequestGroupTest.cc
  8765. * test/MetalinkParserControllerTest.cc
  8766. * test/MetalinkProcessorTest.cc
  8767. * test/PeerSessionResourceTest.cc
  8768. * test/UtilTest.cc
  8769. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8770. * Release 0.15.0
  8771. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8772. Reordered src files in POTFILES.in so that usage text appears first.
  8773. * po/POTFILES.in
  8774. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8775. Bump up version number to 0.15.0
  8776. * configure.ac
  8777. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8778. Added Bulgarian translation.
  8779. Updated Catalan, Spanish, French and Japanese translations.
  8780. Thanks to all translators.
  8781. * po/LINGUAS
  8782. * po/bg.po
  8783. * po/ca.po
  8784. * po/es.po
  8785. * po/fr.po
  8786. * po/ja.po
  8787. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. Updated feature list. Added libz for dependency section.
  8789. Added a description about unit testing using CppUnit.
  8790. * README
  8791. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8792. Added a test for libz. Quoted where it is necessary.
  8793. * build_test.sh
  8794. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. Added GZip to `Enabled Features' list.
  8796. * src/FeatureConfig.cc
  8797. * src/FeatureConfig.h
  8798. * test/FeatureConfigTest.cc
  8799. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8800. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8801. the transfer has not yet started.
  8802. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8803. * src/SegmentMan.cc
  8804. * src/SegmentMan.h
  8805. * test/SegmentManTest.cc
  8806. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8807. Cache last calculated average download/upload speed.
  8808. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8809. cached value.
  8810. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8811. * src/PeerStat.h
  8812. * src/SpeedCalc.cc
  8813. * src/SpeedCalc.h
  8814. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Call parseUrl directly.
  8816. * src/Request.cc (resetUrl)
  8817. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8818. Supported absolute/relative path in Location header field.
  8819. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8820. * src/HttpHeader.cc
  8821. * src/HttpHeader.h
  8822. * src/HttpResponse.cc
  8823. * src/HttpSkipResponseCommand.cc
  8824. * src/Request.cc
  8825. * test/HttpHeaderTest.cc
  8826. * test/HttpResponseTest.cc
  8827. * test/RequestTest.cc
  8828. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8829. Changed help text for --load-cookie option.
  8830. * doc/aria2c.1.txt
  8831. * src/usage_text.h
  8832. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8833. Regenerated test/Makefile.in to remove stale ChangeLog.
  8834. * test/Makefile.in
  8835. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. Updated po files.
  8837. * po/aria2c.pot
  8838. * po/*.po
  8839. * po/*.gmo
  8840. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Bump up version number to 0.15.0b
  8842. * configure.ac
  8843. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. Externalize messages.
  8845. * src/RequestGroupMan.cc
  8846. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8847. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. Use File::exists() instead of File::isFile() to allow non-regular file
  8849. such as block special files.
  8850. * src/AbstractDiskWriter.cc
  8851. * src/MultiDiskWriter.cc
  8852. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8854. * src/gai_strerror.h
  8855. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8856. Fixed compile error. Thanks gknauf for the patch.
  8857. * src/asctime_r.c
  8858. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8859. Included asctime_r.h from a2time.h.
  8860. * src/a2time.h
  8861. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. Added a message "aria2 doesn't verify signature" to log message when
  8863. signature file is saved.
  8864. * src/RequestGroupMan.cc
  8865. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. Added the ability to save signature when download is completed if
  8867. signature is available. The filename of signature file is the path to
  8868. download file followed by ".sig". If it already exists, then signature
  8869. will not be saved.
  8870. * src/RequestGroupMan.cc
  8871. * src/Signature.cc
  8872. * test/SignatureTest.cc
  8873. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. Updated the descriptions for --bt-seed-unverified.
  8875. * doc/aria2c.1
  8876. * doc/aria2c.1.html
  8877. * doc/aria2c.1.txt
  8878. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8880. that this is not going to verify files using piece hashes.
  8881. * src/HelpItemFactory.cc
  8882. * src/OptionHandlerFactory.cc
  8883. * src/RequestGroup.cc
  8884. * src/option_processing.cc
  8885. * src/prefs.cc
  8886. * src/prefs.h
  8887. * src/usage_text.h
  8888. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Added the ability to retrieve signature from Metalink file.
  8890. A retrieved signature is stored in Signature class and it is held by
  8891. DownloadContext class. Note that aria2 doesn't verify signature.
  8892. * src/DownloadContext.cc
  8893. * src/DownloadContext.h
  8894. * src/Makefile.am
  8895. * src/Makefile.in
  8896. * src/Metalink2RequestGroup.cc
  8897. * src/MetalinkEntry.cc
  8898. * src/MetalinkEntry.h
  8899. * src/MetalinkParserController.cc
  8900. * src/MetalinkParserController.h
  8901. * src/MetalinkParserStateMachine.cc
  8902. * src/MetalinkParserStateMachine.h
  8903. * src/Signature.cc
  8904. * src/Signature.h
  8905. * src/SignatureMetalinkParserState.cc
  8906. * src/SignatureMetalinkParserState.h
  8907. * src/VerificationMetalinkParserState.cc
  8908. * src/VerificationMetalinkParserState.h
  8909. * test/Metalink2RequestGroupTest.cc
  8910. * test/MetalinkParserControllerTest.cc
  8911. * test/MetalinkProcessorTest.cc
  8912. * test/test.xml
  8913. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8914. Close DiskAdaptor after renaming file.
  8915. * src/RequestGroup.cc
  8916. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8917. Corrected indentation
  8918. * src/DefaultBtProgressInfoFile.cc
  8919. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8920. Moved the calls of std::ios::exceptions() inside of try-catch block
  8921. because if an error occurred in constructor of std::fstream, then
  8922. exception is thrown immediately when std::ios::exceptions() is called
  8923. which results unhandled exception and aria2c aborts.
  8924. * src/DefaultBtProgressInfoFile.cc
  8925. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8926. Added the test for the previous change in DefaultBtContext.cc
  8927. * test/DefaultBtContextTest.cc
  8928. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8929. Fixed the bug that causes infinite loop when the number of pieces are
  8930. fewer than allowed fast set size which is 10 by default.
  8931. * src/DefaultBtContext.cc
  8932. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Updated the descriptions for -j, -s. Added --bt-seed.
  8934. * doc/aria2c.1
  8935. * doc/aria2c.1.html
  8936. * doc/aria2c.1.txt
  8937. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8938. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8939. aria2 seeds previously downloaded files without validating piece hashs.
  8940. * src/HelpItemFactory.cc
  8941. * src/OptionHandlerFactory.cc
  8942. * src/RequestGroup.cc
  8943. * src/option_processing.cc
  8944. * src/prefs.cc
  8945. * src/prefs.h
  8946. * src/usage_text.h
  8947. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Updated DESCRIPTION of man page.
  8949. * doc/aria2c.1
  8950. * doc/aria2c.1.html
  8951. * doc/aria2c.1.txt
  8952. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8953. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8954. Don't define `struct addrinfo' when __sun is defined.
  8955. * src/getaddrinfo.h
  8956. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8958. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8959. second argument is of type `struct _stati64'. Otherwise it is defined as
  8960. `struct stat'.
  8961. * src/AbstractDiskWriter.cc
  8962. * src/File.cc
  8963. * src/File.h
  8964. * src/a2io.h
  8965. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8966. Fixed the compile error in hurd-i386
  8967. See the original bug report:
  8968. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8969. * src/a2io.h
  8970. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8971. Code cleanup.
  8972. * src/PeerAbstractCommand.cc
  8973. * src/PeerAbstractCommand.h
  8974. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8975. Removed TransferEncoding.
  8976. * src/DownloadCommand.cc
  8977. * src/DownloadCommand.h
  8978. * src/HttpResponseCommand.cc
  8979. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Updated po files.
  8981. * po/aria2c.pot
  8982. * po/*.po
  8983. * po/*.gmo
  8984. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8985. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8986. * src/A2STR.cc
  8987. * src/A2STR.h
  8988. * src/ChunkedDecoder.cc
  8989. * src/ChunkedDecoder.h
  8990. * src/ChunkedEncoding.cc: Removed
  8991. * src/ChunkedEncoding.h: Removed
  8992. * src/DownloadCommand.cc
  8993. * src/DownloadCommand.h
  8994. * src/HttpDownloadCommand.cc
  8995. * src/HttpResponse.cc
  8996. * src/HttpResponse.h
  8997. * src/HttpResponseCommand.cc
  8998. * src/HttpSkipResponseCommand.cc
  8999. * src/HttpSkipResponseCommand.h
  9000. * src/Makefile.am
  9001. * src/TransferEncoding.h: Removed
  9002. * test/ChunkedDecoderTest.cc
  9003. * test/ChunkedEncodingTest.cc: Removed
  9004. * test/HttpResponseTest.cc
  9005. * test/Makefile.am
  9006. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9007. Use append instead of insert.
  9008. * src/GZipDecoder.cc
  9009. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9010. Updated doc
  9011. * src/Decoder.h
  9012. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9013. Updated usage text for -s option.
  9014. * src/usage_text.h
  9015. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9016. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9017. * src/Request.cc
  9018. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9019. Cleaned up configure.ac.
  9020. * configure.ac
  9021. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9022. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9023. AC_ARG_ENABLE.
  9024. * configure.ac
  9025. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9026. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9027. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9028. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9029. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9030. fly and writes decoded data to a local disk.
  9031. * README
  9032. * README.html
  9033. * configure.ac
  9034. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9035. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9036. * m4/libz.m4
  9037. * src/Decoder.h
  9038. * src/DownloadCommand.cc
  9039. * src/DownloadCommand.h
  9040. * src/Exception.h
  9041. * src/GZipDecoder.cc
  9042. * src/GZipDecoder.h
  9043. * src/HttpHeader.cc
  9044. * src/HttpHeader.h
  9045. * src/HttpRequest.cc
  9046. * src/HttpRequest.h
  9047. * src/HttpResponse.cc
  9048. * src/HttpResponse.h
  9049. * src/HttpResponseCommand.cc
  9050. * src/Makefile.am
  9051. * test/GZipDecoderTest.cc
  9052. * test/HttpRequestTest.cc
  9053. * test/HttpResponseTest.cc
  9054. * test/Makefile.am
  9055. * test/Makefile.in
  9056. * test/gzip_decode_test.gz
  9057. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9058. Clarified usage of -j option.
  9059. * src/usage_text.h
  9060. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9061. Disabled getting size from the response of RETR.
  9062. If SIZE command failed, then disable resuming and segmented downloading.
  9063. * src/FtpConnection.cc
  9064. * src/FtpConnection.h
  9065. * src/FtpNegotiationCommand.cc
  9066. * src/FtpNegotiationCommand.h
  9067. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9068. Use digits to find first byte of file size, which makes the intention
  9069. of the code clearer.
  9070. * src/FtpConnection.cc
  9071. Don't call validateTotalLength() when size is 0.
  9072. * src/FtpNegotiationCommand.cc
  9073. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. Updated po files.
  9075. * po/aria2c.pot
  9076. * po/*.gmo
  9077. * po/*.po
  9078. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9079. Clarified usage text for --split option.
  9080. * src/usage_text.h
  9081. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. Bump up version number to 0.15.0dev. "dev" means "development"
  9083. version, which means I started the development of the next release!
  9084. * src/configure.ac
  9085. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. If FTP server returns negative response with REST raw command and
  9087. requested range is not 0, throw exception. If requested range is 0,
  9088. continue download a file from 0 byte.
  9089. * src/FtpNegotiationCommand.cc
  9090. * src/FtpNegotiationCommand.h
  9091. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Supported FTP server which don't recognize SIZE raw command.
  9093. If SIZE raw command is failed, aria2 will try to get file size
  9094. from the response of RETR raw command. If both attempts are failed,
  9095. then resuming and segmented downloading are disabled.
  9096. * src/FtpConnection.cc
  9097. * src/FtpConnection.h
  9098. * src/FtpNegotiationCommand.cc
  9099. * src/FtpNegotiationCommand.h
  9100. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9101. * Release 0.14.0+1
  9102. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Bump up version number to 0.14.0+1
  9104. * src/configure.ac
  9105. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. Fixed the code that refers static member variable from non-static
  9107. context.
  9108. * src/DefaultPeerStorage.cc
  9109. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. * Release 0.14.0
  9111. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9112. Added build test script
  9113. * build_test.sh
  9114. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. Updated ja.po
  9116. * src/ja.po
  9117. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9118. Bump up version number to 0.14.0
  9119. * src/configure.ac
  9120. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. Updated ja.po and fr.po. Great thanks for french translators and
  9122. Sebastien WILLEMIJNS.
  9123. * po/fr.po
  9124. * po/ja.po
  9125. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9126. Added configure option to enable/disable epoll support.
  9127. * configure.ac
  9128. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9129. Updated man page.
  9130. * doc/aria2c.1.txt
  9131. * doc/aria2c.1
  9132. * doc/aria2c.1.html
  9133. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9134. Added missing default value '5' to the usage of --split option.
  9135. * src/HelpItemFactory.cc
  9136. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Filled up pieces based on the number of missing blocks, rather than
  9138. simplay the number of piece * block length.
  9139. * src/BtRequestFactory.h
  9140. * src/DefaultBtInteractive.cc
  9141. * src/DefaultBtInteractive.h
  9142. * src/DefaultBtRequestFactory.cc
  9143. * src/DefaultBtRequestFactory.h
  9144. * src/Piece.cc
  9145. * src/Piece.h
  9146. * test/BitfieldManTest.cc
  9147. * test/DefaultBtRequestFactoryTest.cc
  9148. * test/MockBtRequestFactory.h
  9149. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9150. Made _epEvents a member variable.
  9151. * src/DownloadEngine.cc
  9152. * src/DownloadEngine.h
  9153. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. Cancel download if http redirect is bounded more than 20 times.
  9155. * src/AbstractCommand.cc
  9156. * src/HttpSkipResponseCommand.cc
  9157. * src/Request.cc
  9158. * src/Request.h
  9159. * test/RequestTest.cc
  9160. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9161. Fixed unhandled exception(removed keyword `new').
  9162. * src/SocketCore.cc (initEPOLL)
  9163. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9164. Removed visit(const MetaEntry*)
  9165. * src/MetaEntryVisitor.h:
  9166. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9167. and made them virtual.
  9168. * src/BencodeVisitor.h
  9169. * src/BencodeVisitor.cc
  9170. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. Updated po files.
  9172. * po/aria2c.pot
  9173. * po/*.po
  9174. * po/*.gmo
  9175. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9177. the number of socket to watch out.
  9178. * src/PeerInteractionCommand.cc
  9179. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9180. When there is not enough space in disk when writing a chunk of data,
  9181. aria2 now prints the message to the console to warn user and aborts
  9182. its download. Not all downloads are canceled because some downloads
  9183. may use another disk or partition. BUG#1640332
  9184. * src/AbstractDiskWriter.cc
  9185. * src/PeerAbstractCommand.cc
  9186. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9187. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9188. setHaltRequested(true) to cancel download.
  9189. * src/PeerInteractionCommand.h
  9190. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9191. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9192. socket from int to sock_t as sockets are unsigned in Windows.
  9193. For AsyncNameResolver, DownloadEngine, I did additional modification
  9194. for the portion of the code changed according to epoll support.
  9195. I defined sock_t in a2netcompat.h to use sock_t without including
  9196. SocketCore.h.
  9197. * src/AsyncNameResolver.cc
  9198. * src/AsyncNameResolver.h
  9199. * src/DownloadEngine.cc
  9200. * src/DownloadEngine.h
  9201. * src/SocketCore.cc
  9202. * src/SocketCore.h
  9203. * src/a2netcompat.h
  9204. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9206. changes in the patch were applied.
  9207. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9208. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9209. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9210. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9211. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9212. a2io.h and common.h were modified.
  9213. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9214. MinGW.
  9215. * src/common.h: Changed off_t to 64 bit in MinGW.
  9216. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9217. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9218. only a2netcompat.h is modified.
  9219. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9220. directives.
  9221. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9222. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9223. only gai_strerror.h is modified.
  9224. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9225. winsock errors in MinGW.
  9226. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9228. follow sources are applied.
  9229. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9230. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9231. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9232. I included locale.h from Platform.cc.
  9233. * src/main.cc: Moved common setup/teardown code to Platform class.
  9234. * test/AllTest.cc: Use Platform class.
  9235. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9236. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9237. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9238. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9239. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9240. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9241. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9242. aria2-0.13.2+1-mingw-2.patch.
  9243. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9244. systems which don't have termious.h. I moved the directive inside of
  9245. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9246. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9247. anyway.
  9248. * src/asctime_r.h
  9249. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9250. I added 2nd argument to the prototype declaration.
  9251. * src/StringFormat.cc: Get rid of vasprintf.
  9252. * src/getaddrinfo.h: Fixed constants.
  9253. * configure.ac: Added the check for asctime_r function.
  9254. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9255. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9256. Added writable test for Socket when the sending message is in progress.
  9257. Usually the sending message is piece message. Without wriable check,
  9258. upload latency is dropped to more than 1sec.
  9259. * src/PeerInteractionCommand.cc
  9260. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9261. Create only requested files and files which shares a piece with
  9262. requested file in multi-torrent downloads. Directory structures are
  9263. also created in the same rule.
  9264. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9265. DiskWriterEntry as in the previous implementation.
  9266. * src/MultiDiskWriter.cc
  9267. * src/MultiFileAllocationIterator.cc
  9268. * src/MultiFileAllocationIterator.h
  9269. * test/MultiFileAllocationIteratorTest.cc
  9270. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9271. Commented out -lprofiler
  9272. * src/Makefile.am
  9273. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9274. Bump up version number to 0.14.0b.
  9275. * src/configure.ac
  9276. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9277. Actively establish connection to peers in seeding, when peer cache
  9278. is not full and max upload speed limit is not reached.
  9279. * src/ActivePeerConnectionCommand.cc
  9280. * src/ActivePeerConnectionCommand.h
  9281. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9282. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9283. to make room more fleshy, recently found peers.
  9284. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9285. it.
  9286. * src/DefaultPeerStorage.cc
  9287. * test/DefaultPeerStorageTest.cc
  9288. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9289. Returns cached data only when the previous receiveHandshake() is called
  9290. with peek = true.
  9291. * src/PeerConnection.cc (receiveHandshake)
  9292. * src/PeerConnection.h (receiveHandshake)
  9293. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9294. Changed default value of -s option from 1 to 5.
  9295. Also max value of -s option is changed from 5 to 16.
  9296. * src/HelpItemFactory.cc
  9297. * src/OptionHandlerFactory.cc
  9298. * src/option_processing.cc
  9299. * src/usage_text.h
  9300. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9301. Changed -s options behavior. Now it means the number of connections
  9302. made simultaneously in each http/ftp download.
  9303. If 1 URL is specified, the behavior is the same with old implementation.
  9304. If -s N is given and more than N URLs are specified, first N URLs are
  9305. used and remaining URLs are used for backup. If less than N URLs are
  9306. specified, some of URLs are used more than once so that totally N
  9307. connections are made simultaneously.
  9308. * src/main.cc
  9309. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9310. Included missing iosfwd or ostream header.
  9311. * src/RequestGroupMan.cc
  9312. * src/TaggedItem.cc
  9313. * src/TaggedItem.h
  9314. * src/Util.cc
  9315. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9316. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9317. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9318. * src/HttpConnection.cc: Included missing sstream.
  9319. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9320. Added --bt-max-open-files option.
  9321. * src/DefaultPieceStorage.cc
  9322. * src/HelpItemFactory.cc
  9323. * src/MultiDiskAdaptor.cc
  9324. * src/MultiDiskAdaptor.h
  9325. * src/OptionHandlerFactory.cc
  9326. * src/option_processing.cc
  9327. * src/prefs.cc
  9328. * src/prefs.h
  9329. * src/usage_text.h
  9330. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9331. Fixed the bug that aria2 aborts when a path to a directory is given
  9332. in command-line.
  9333. * src/ProtocolDetector.cc
  9334. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. Limited the number files opened in each BitTorrent download. The default
  9336. value is 100. The option to change this value will be added.
  9337. * src/MultiDiskAdaptor.cc
  9338. * src/MultiDiskAdaptor.h
  9339. * src/MultiFileAllocationIterator.cc
  9340. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. Fixed the bug that HTTP downloads don't start with old libraries.
  9342. * src/HttpHeaderProcessor.cc
  9343. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Use empty() instead of size() > 0.
  9345. * src/HttpConnection.cc
  9346. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. Drop connection if the incoming peer ID is the same with localhost's
  9348. one. The previous implementation drops connection when incoming peer's
  9349. IP address is the same with localhost's one.
  9350. * src/PeerListenCommand.cc
  9351. * src/DefaultBtInteractive.cc
  9352. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9353. Returns cached data without checking whether socket is readable
  9354. if the cache is available.
  9355. * src/PeerConnection.cc (receiveHandshake)
  9356. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9357. Included stdint.h
  9358. * src/common.h
  9359. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9360. Removed duplicate HAVE_GETTIMEOFDAY
  9361. * src/Makefile.am
  9362. * src/Makefile.in
  9363. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9364. Use interval as a minInterval when minInterval is not supplied.
  9365. * src/DefaultBtAnnounce.cc
  9366. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9367. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9368. attempt is failed, then 2nd attempt get kicked out more quickly.
  9369. And it is now static const member of DefaultBtAnnounce.
  9370. * src/DefaultBtAnnounce.h
  9371. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9373. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9374. * src/ActivePeerConnectionCommand.cc
  9375. * src/BtConstants.h
  9376. * src/BtRuntime.h
  9377. * src/DHTGetPeersCommand.cc
  9378. * src/DefaultBtAnnounce.cc
  9379. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9380. BtRuntime::MAX_PEERS.
  9381. * src/DefaultPeerStorage.h
  9382. * src/InitiatorMSEHandshakeCommand.cc
  9383. * src/PeerInitiateConnectionCommand.cc
  9384. * src/PeerInteractionCommand.cc
  9385. * src/PeerReceiveHandshakeCommand.cc
  9386. * src/TrackerWatcherCommand.cc
  9387. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9388. Always Connect to _numNewConnection
  9389. * src/ActivePeerConnectionCommand.cc
  9390. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9391. Made `begin' unsigned int.
  9392. * src/GrowSegment.h
  9393. * src/Piece.cc
  9394. * src/Piece.h
  9395. * src/PiecedSegment.cc
  9396. * src/PiecedSegment.h
  9397. * src/Segment.h
  9398. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. Calculate piece hash when data is arrived if the data is arrived in
  9400. order. This removes additional read operation for hash calculation.
  9401. If the data is arrived in out of order, the hash is calucated when the
  9402. piece is completed. This is the same behavior as the old implementation.
  9403. * src/BtPieceMessage.cc
  9404. * src/DefaultBtProgressInfoFile.cc
  9405. * src/DefaultPieceStorage.cc
  9406. * src/DownloadCommand.cc
  9407. * src/DownloadCommand.h
  9408. * src/DownloadEngine.cc
  9409. * src/GrowSegment.cc
  9410. * src/GrowSegment.h
  9411. * src/Piece.cc
  9412. * src/Piece.h
  9413. * src/PiecedSegment.cc
  9414. * src/PiecedSegment.h
  9415. * src/Segment.h
  9416. * test/PieceTest.cc
  9417. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9418. Try to keep the ordering of outgoing piece message.
  9419. * src/DefaultBtMessageDispatcher.cc
  9420. (DefaultBtMessageDispatcher::sendMessages)
  9421. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. Fixed busy loop when error/hup epoll events occur.
  9423. * src/AbstractCommand.cc
  9424. * src/PeerAbstractCommand.cc
  9425. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Added --bt-request-peer-speed-limit option, which was a constant
  9427. SLOW_SPEED_THRESHOLD.
  9428. * src/ActivePeerConnectionCommand.cc
  9429. * src/ActivePeerConnectionCommand.h
  9430. * src/BtConstants.h
  9431. * src/HelpItemFactory.cc
  9432. * src/OptionHandlerFactory.cc
  9433. * src/PeerReceiveHandshakeCommand.cc
  9434. * src/option_processing.cc
  9435. * src/prefs.cc
  9436. * src/prefs.h
  9437. * src/usage_text.h
  9438. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9439. Removed repeated call of getTopDirPath(). Instead, call it once and
  9440. cache the result.
  9441. * src/MultiDiskAdaptor.cc
  9442. * src/MultiDiskAdaptor.h
  9443. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9444. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9445. Fixed compile error on debian etch.
  9446. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9447. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9448. it is undefined.
  9449. * src/Util.cc (ULLONG_MAX)
  9450. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9451. Added epoll support. Use epoll if it is available. If not, use select.
  9452. When async dns is enabled in compile time, epoll support is enabled
  9453. only when aria2 is built with c-ares. This condition statement is
  9454. defined in a2io.h.
  9455. Currently aria2 supports both c-ares and ares, but ares is maintained
  9456. for quite a while and debian already has c-ares package, ares support
  9457. will be dropped in the future version.
  9458. * configure.ac
  9459. * src/AbstractCommand.cc
  9460. * src/AsyncNameResolver.cc
  9461. * src/AsyncNameResolver.h
  9462. * src/Command.cc
  9463. * src/Command.h
  9464. * src/DownloadEngine.cc
  9465. * src/DownloadEngine.h
  9466. * src/PeerAbstractCommand.cc
  9467. * src/SocketCore.cc
  9468. * src/SocketCore.h
  9469. * src/a2io.h
  9470. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9472. directive.
  9473. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. Do not do write operation to /dev/null file.
  9475. * src/LogFactory.cc
  9476. * src/SimpleLogger.cc
  9477. Replaced vasprintf with vsnprintf
  9478. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9479. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9480. * src/BtRequestMessage.cc
  9481. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9482. for segmentation fault caused by previous commit.
  9483. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9484. Reduced the usage of gettimeofday().
  9485. * src/DefaultBtMessageDispatcher.cc
  9486. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9487. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9488. * src/RequestSlot.cc
  9489. * src/RequestSlot.h
  9490. (RequestSlot::isTimeout)
  9491. Made RequestSlot have a reference to Piece object to avoid find
  9492. Piece repeatedly.
  9493. * src/DefaultBtMessageDispatcher.cc
  9494. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9495. * src/RequestSlot.cc
  9496. * src/RequestSlot.h
  9497. (RequestSlot::getPiece)
  9498. * test/DefaultBtMessageDispatcherTest.cc
  9499. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9500. * src/TimeA2.cc
  9501. * src/TimeA2.h
  9502. (Time::difference): New function.
  9503. (Time::elapsed): Done optimization.
  9504. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9506. directive.
  9507. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9508. * src/option_processing.cc: Added missing `defined' keyword to #if
  9509. directive.
  9510. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9511. Bump up version number to 0.13.2+1
  9512. * src/configure.ac
  9513. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9514. Refactored broken outstanding piece handling.
  9515. * src/DefaultPieceStorage.cc
  9516. * src/DefaultPieceStorage.h
  9517. * src/Piece.cc
  9518. * src/Piece.h
  9519. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9521. name collision of static variable and predefined macro.
  9522. * src/BtContext.cc
  9523. * src/BtContext.h
  9524. * src/CookieBoxFactory.cc
  9525. * src/CookieBoxFactory.h
  9526. * src/CookieParser.cc
  9527. * src/CookieParser.h
  9528. * src/DefaultBtContext.cc
  9529. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9530. * src/RequestGroup.cc
  9531. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9532. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. * Release 0.13.2
  9534. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9536. * po/fr.po
  9537. * po/ja.po
  9538. * po/aria2c.pot
  9539. * po/*.po
  9540. * po/*.gmo
  9541. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9542. Bump up version number to 0.13.2
  9543. * src/configure.ac
  9544. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9545. Refactord.
  9546. * src/RequestGroupMan.cc
  9547. (removeStoppedGroup)
  9548. (fillRequestGroupFromReserver)
  9549. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9550. Fixed compile error on Ubuntu.
  9551. * src/BtPieceMessage.cc
  9552. * src/MessageDigestHelper.cc
  9553. * src/Util.cc
  9554. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9555. Fixed compile error when configured with --disable-bittorrent
  9556. * test/DownloadHandlerFactoryTest.cc
  9557. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9558. Done make update-po
  9559. * po/aria2c.pot
  9560. * po/*.po
  9561. * po/*.gmo
  9562. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. Bump up version number to 0.13.2rc.
  9564. * src/configure.ac
  9565. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9566. Made option name bold. Updated SYNOPSIS to make it more readable.
  9567. * doc/aria2c.1.txt
  9568. * doc/aria2c.1
  9569. * doc/aria2c.1.html
  9570. * src/version_usage.cc
  9571. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9572. Refactored. Use std::string instead of size and char*.
  9573. * Data.cc
  9574. * Data.h
  9575. * test/Data.cc
  9576. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9577. Added trimSelf(). Rewritten trim() to use trimSelf().
  9578. * Util.cc
  9579. * Util.h
  9580. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9581. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9582. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Fixed compile error when configured with --disable-metalink.
  9584. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9585. * test/FeatureConfigTest.cc
  9586. * test/DownloadHandlerFactoryTest.cc
  9587. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. Fixed compile error when configured with --without-gnutls
  9589. --without-openssl
  9590. * src/main.cc
  9591. * test/DefaultBtProgressInfoFileTest.cc
  9592. * test/SegmentManTest.cc
  9593. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9594. Fixed compile error with OpenSSL.
  9595. * src/IteratableChunkChecksumValidator.cc
  9596. * src/LibsslDHKeyExchange.h
  9597. * src/MessageDigestHelper.cc
  9598. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9599. Revert the default value of --max-concurrent-downloads to 5.
  9600. Revert the default value of --metalink-servers to 5.
  9601. Man pages was also updated.
  9602. * src/option_processing.cc
  9603. * doc/aria2c.1.txt
  9604. * doc/aria2c.1.html
  9605. * doc/aria2c.1
  9606. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Returns const reference:
  9608. DownloadContext::getPieceHash, DownloadContext::getName,
  9609. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9610. BtContext::getInfoHashAsString,
  9611. * src/BtContext.h
  9612. * src/DefaultBtContext.cc
  9613. * src/DefaultBtContext.h
  9614. * src/DownloadContext.h
  9615. * src/SingleFileDownloadContext.h
  9616. * test/MockBtContext.h
  9617. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9618. * src/RequestGroup.h (getDir): Removed.
  9619. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9620. Returns const reference. The internal urlencode function was optimized
  9621. a little bit.
  9622. * src/Request.cc
  9623. * src/Request.h
  9624. * src/HttpRequest.cc
  9625. * src/HttpRequest.h
  9626. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9627. Defined option name and possible values as std::string to reduce
  9628. temporary string object creation in runtime.
  9629. * src/HelpItemFactory.cc
  9630. * src/LogFactory.cc
  9631. * src/Option.cc
  9632. * src/OptionHandlerFactory.cc
  9633. * src/option_processing.cc
  9634. * src/prefs.cc
  9635. * src/prefs.h
  9636. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9637. Return const reference.
  9638. * src/DownloadHandlerConstants.cc
  9639. * src/DownloadHandlerConstants.h
  9640. (getMetalinkExtensions)
  9641. (getMetalinkContentTypes)
  9642. (getBtExtensions)
  9643. (getBtContentTypes)
  9644. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9645. * src/HttpHeader.cc (get): Rewritten.
  9646. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9647. Make HttpHeader::getFirst(...) return const reference.
  9648. * src/HttpHeader.cc
  9649. * src/HttpHeader.h
  9650. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9651. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9652. it with V_TRUE.
  9653. * src/DefaultPieceStorage.cc
  9654. * src/DownloadCommand.cc
  9655. * src/FtpNegotiationCommand.cc
  9656. * src/HttpRequest.cc
  9657. * src/InitiateConnectionCommand.cc
  9658. * src/RequestGroup.cc
  9659. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9660. Made Option::get(...) return const reference of std::string.
  9661. * src/Option.cc
  9662. * src/Option.h
  9663. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9664. Replaced std:copy with insert.
  9665. * src/DefaultBtMessageDispatcher.cc
  9666. * src/DefaultPieceStorage.cc
  9667. * src/DownloadEngineFactory.cc
  9668. * src/RequestGroup.cc
  9669. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9670. Included SocketCore.h to fix compiler warning.
  9671. * src/InitiateConnectionCommand.cc
  9672. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9673. Put piece selection strategy algorithm to RarestPieceSelector class,
  9674. Added a switch to choose whether randomized selection so that unit
  9675. tests emit same results in, possibly, win32.
  9676. * src/DefaultPieceStorage.cc
  9677. * src/DefaultPieceStorage.h
  9678. * src/RarestPieceSelector.cc
  9679. * src/RarestPieceSelector.h
  9680. * test/DefaultPieceStorageTest.cc
  9681. * test/RarestPieceSelectorTest.cc
  9682. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9683. Don't pool connection if HTTP proxy is enabled.
  9684. * src/FtpFinishDownloadCommand.cc
  9685. * src/FtpNegotiationCommand.cc
  9686. * src/HttpSkipResponseCommand.cc
  9687. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9688. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9689. * src/AbstractCommand.cc
  9690. * src/AbstractCommand.h
  9691. * src/ActivePeerConnectionCommand.cc
  9692. * src/FtpInitiateConnectionCommand.cc
  9693. * src/HttpInitiateConnectionCommand.cc
  9694. * src/InitiateConnectionCommandFactory.cc
  9695. * src/PeerAbstractCommand.cc
  9696. * src/PeerAbstractCommand.h
  9697. * src/PeerInitiateConnectionCommand.cc
  9698. * src/TrackerWatcherCommand.cc
  9699. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9700. Sort RequestSlot in ascending order and manipulate them using
  9701. lower_bound.
  9702. * src/DefaultBtMessageDispatcher.cc
  9703. * src/DefaultBtMessageDispatcher.h
  9704. (getMessageQueue): Added const qualifier.
  9705. (getRequestSlots): Added const qualifier.
  9706. (sendMessages): Use empty() instead of size().
  9707. (doCancelSendingPieceAction): Use HandleEvent object.
  9708. (doAbortOutstandingRequestAction): Rewritten.
  9709. (doChokedAction): Rewritten.
  9710. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9711. (isOutstandingRequest): Rewritten.
  9712. (getOutstandingRequest): Rewritten.
  9713. (removeOutstandingRequest): Rewritten.
  9714. (addOutstandingRequest): Rewritten.
  9715. * src/RequestSlot.cc
  9716. * src/RequestSlot.h
  9717. (operator=): Rewritten.
  9718. (operator!=): New function.
  9719. (operator<): New function.
  9720. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. * src/DefaultBtRequestFactory.cc
  9722. (doChokedAction): Rewritten.
  9723. (removeCompletedPiece): Rewritten.
  9724. (removeTargetPiece): Rewritten.
  9725. (createRequestMessages): Added the debug log.
  9726. (createRequestMessagesOnEndGame: Added the debug log.
  9727. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9728. Added the debug log message.
  9729. * src/BtPieceMessage.cc (doReceivedAction)
  9730. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9731. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9732. used lower_bound to process them rather than linear search.
  9733. * src/DHTPeerAnnounceStorage.cc
  9734. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9735. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9736. peer has at least one completed piece.
  9737. * src/Peer.cc
  9738. * src/Peer.h
  9739. * src/PeerInteractionCommand.cc
  9740. * src/PeerSessionResource.cc
  9741. * src/PeerSessionResource.h
  9742. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9743. Removed unnecessary sorting
  9744. * src/DefaultPieceStorage (DefaultPieceStorage)
  9745. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9746. Rewritten the portion of the code that mangaes allowed fast indexes.
  9747. * src/PeerSessionResource.cc
  9748. * src/PeerSessionResource.h
  9749. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9750. Removed the invalid string including '\r' from ru.po and
  9751. did make update-po.
  9752. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9753. Added --log-level and --summary-interval to man page.
  9754. * doc/aria2c.1.txt
  9755. * doc/aria2c.1.html
  9756. * doc/aria2c.1
  9757. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9758. Added --log-level option to specify log level. Log messages under
  9759. the specified level are not output. Default value is `debug'.
  9760. * src/HelpItemFactory.cc
  9761. * src/LogFactory.cc
  9762. * src/LogFactory.h
  9763. * src/Logger.h
  9764. * src/OptionHandlerFactory.cc
  9765. * src/SimpleLogger.cc
  9766. * src/SimpleLogger.h
  9767. * src/main.cc
  9768. * src/option_processing.cc
  9769. * src/prefs.h
  9770. * src/usage_text.h
  9771. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. Print download progress summary of all parallel downloads in specified
  9773. interval, default 60 secs. While aria2 could download several files
  9774. in parallel (see -j option), it displayed just first download progress,
  9775. and the other downloads are hidden from the users. This new feature
  9776. prints all downloads currently in-progress to the console so that you
  9777. can check the status of all downloads. The interval can be adjusted
  9778. by --summary-interval option.
  9779. The progress readout is now cut so that all fits in the one line of
  9780. console.
  9781. * src/ConsoleStatCalc.cc
  9782. * src/ConsoleStatCalc.h
  9783. * src/HelpItemFactory.cc
  9784. * src/OptionHandlerFactory.cc
  9785. * src/RequestGroupMan.cc
  9786. * src/RequestGroupMan.h
  9787. * src/main.cc
  9788. * src/option_processing.cc
  9789. * src/prefs.h
  9790. * src/usage_text.h
  9791. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9792. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9793. * src/DownloadEngine.cc (DownloadEngine)
  9794. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9795. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9796. defined.
  9797. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9798. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9799. Use erase+lower_bound+insert instead of sort.
  9800. * src/DefaultPieceStorage.cc (addPieceStats)
  9801. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9802. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9803. * src/A2STR.cc
  9804. * src/A2STR.h
  9805. * src/OptionParser.cc (parse)
  9806. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9807. Defined fake filename `[tracker.announce]' as static const std::string.
  9808. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9809. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9810. Defined default filename `index.html' as static const std::string
  9811. * src/SingleFileDownloadContext.cc
  9812. * src/SingleFileDownloadContext.h
  9813. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9814. Defined "[MEMORY]" as static const std::string.
  9815. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9816. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9817. Defined control file's version number as static const std::string.
  9818. * src/DefaultBtProgressInfoFile.cc
  9819. * src/DefaultBtProgressInfoFile.h
  9820. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9821. Use Request::METHOD_GET
  9822. * src/RequestGroup.cc (createNextCommandWithAdj)
  9823. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9824. Defined "OK", "ERR", "INPR" as static const std::string
  9825. * src/RequestGroupMan.cc (showDownloadResults)
  9826. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9827. Defined default client used in extended handshake as static const
  9828. std::string
  9829. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9830. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9831. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9832. * src/HttpConnection.cc (eraseConfidentialInfo)
  9833. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9834. Defined default ftp user and password as static const std::string
  9835. * src/AuthConfigFactory.cc
  9836. * src/AuthConfigFactory.h
  9837. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9838. Defined strings used in netrc as static const std::string
  9839. * src/Netrc.cc
  9840. * src/Netrc.h
  9841. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9842. Defined HTTP status as static const std::string
  9843. * src/AbstractProxyResponseCommand.cc
  9844. * src/HttpHeader.cc
  9845. * src/HttpHeader.h
  9846. * src/HttpResponse.cc
  9847. * src/HttpResponseCommand.cc
  9848. * src/HttpSkipResponseCommand.cc
  9849. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Defined "\r\n", "A", "I" as static const std::string
  9851. * src/A2STR.cc
  9852. * src/A2STR.h
  9853. * src/FtpConnection.cc
  9854. * src/FtpConnection.h
  9855. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9856. Added COLON_C(".") and used it in Request::parseUrl()
  9857. * src/A2STR.cc
  9858. * src/A2STR.h
  9859. * src/Request.cc (parseUrl)
  9860. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9861. Changed the type of padName from `const std::string&' to `const char*'.
  9862. * src/MSEHandshake.cc (verifyPadLength)
  9863. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9864. Defined "sha1" as static const std::string.
  9865. * src/MetalinkParserController.cc
  9866. * src/MetalinkParserController.h
  9867. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9868. Defined message digest algorithm name as static const std::string
  9869. * src/DHTTokenTracker.cc
  9870. * src/DHTUtil.cc
  9871. * src/DefaultBtContext.cc
  9872. * src/MSEHandshake.cc
  9873. * src/MessageDigestHelper.cc
  9874. * src/Peer.cc
  9875. * src/messageDigest.cc
  9876. * src/messageDigest.h
  9877. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9878. Made string literals used in SAX parser static const std::string.
  9879. * src/FileMetalinkParserState.cc
  9880. * src/FileMetalinkParserState.h
  9881. * src/FilesMetalinkParserState.cc
  9882. * src/FilesMetalinkParserState.h
  9883. * src/InitialMetalinkParserState.cc
  9884. * src/InitialMetalinkParserState.h
  9885. * src/MetalinkMetalinkParserState.cc
  9886. * src/MetalinkMetalinkParserState.h
  9887. * src/PiecesMetalinkParserState.cc
  9888. * src/PiecesMetalinkParserState.h
  9889. * src/ResourcesMetalinkParserState.cc
  9890. * src/ResourcesMetalinkParserState.h
  9891. * src/VerificationMetalinkParserState.cc
  9892. * src/VerificationMetalinkParserState.h
  9893. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9894. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9895. * src/A2STR.cc
  9896. * src/A2STR.h
  9897. * src/File.cc
  9898. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9899. Defined static const std::string IP("ip"), PORT("port") and use them
  9900. instead of string literals.
  9901. * src/DefaultPeerListProcessor.cc
  9902. * src/DefaultPeerListProcessor.h
  9903. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9904. Made string literals for torrent file processing static const
  9905. std::string.
  9906. * src/BtContext.cc
  9907. * src/BtContext.h
  9908. * src/DefaultBtContext.cc
  9909. * src/DefaultBtContext.h
  9910. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9911. Made string literal for tracker response static const std::string
  9912. * src/BtAnnounce.cc
  9913. * src/BtAnnounce.h
  9914. * src/DefaultBtAnnounce.cc
  9915. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9916. Use DHTMessage::T instead of "t".
  9917. * src/DHTMessageTracker.cc (messageArrived)
  9918. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9919. Made keyName static const. Made trimmed charset static const
  9920. std::string.
  9921. * src/Util.cc (getContentDispositionFilename)
  9922. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9923. Made USER_AGENT const. Made "/" static const std::string.
  9924. * src/A2STR.cc
  9925. * src/A2STR.h
  9926. * src/HttpRequest.cc
  9927. * src/HttpRequest.h
  9928. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9929. Made string listeral to static const std::string:
  9930. "Content-Range", "Content-Length"
  9931. * src/HttpHeader.cc
  9932. * src/HttpHeader.h
  9933. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9934. Made string listeral to static const std::string.
  9935. * src/HttpConnection.cc
  9936. * src/HttpHeader.cc
  9937. * src/HttpHeader.h
  9938. * src/HttpResponse.cc
  9939. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9940. Made string listeral to static const std::string.
  9941. * src/A2STR.cc
  9942. * src/A2STR.h
  9943. * src/SimpleLogger.cc
  9944. * src/SimpleLogger.h
  9945. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9946. Made string literal to static const std::string.
  9947. Rewritten CookieParser::setField.
  9948. * src/A2STR.cc
  9949. * src/A2STR.h
  9950. * src/CookieBoxFactory.cc
  9951. * src/CookieBoxFactory.h
  9952. * src/CookieParser.cc
  9953. * src/CookieParser.h
  9954. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9955. Made string literal to static const std::string
  9956. * src/DHTAbstractMessage.cc
  9957. * src/DHTAnnouncePeerMessage.cc
  9958. * src/DHTAnnouncePeerMessage.h
  9959. * src/DHTAnnouncePeerReplyMessage.cc
  9960. * src/DHTAnnouncePeerReplyMessage.h
  9961. * src/DHTFindNodeMessage.cc
  9962. * src/DHTFindNodeMessage.h
  9963. * src/DHTFindNodeReplyMessage.cc
  9964. * src/DHTFindNodeReplyMessage.h
  9965. * src/DHTGetPeersMessage.cc
  9966. * src/DHTGetPeersMessage.h
  9967. * src/DHTGetPeersReplyMessage.cc
  9968. * src/DHTGetPeersReplyMessage.h
  9969. * src/DHTMessage.cc
  9970. * src/DHTMessage.h
  9971. * src/DHTMessageFactoryImpl.cc
  9972. * src/DHTMessageReceiver.cc
  9973. * src/DHTPingMessage.cc
  9974. * src/DHTPingMessage.h
  9975. * src/DHTPingReplyMessage.cc
  9976. * src/DHTPingReplyMessage.h
  9977. * src/DHTQueryMessage.cc
  9978. * src/DHTQueryMessage.h
  9979. * src/DHTResponseMessage.cc
  9980. * src/DHTResponseMessage.h
  9981. * src/DHTUnknownMessage.cc
  9982. * src/DHTUnknownMessage.h
  9983. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9984. Made string literal to static const std::string
  9985. * src/BtChokeMessage.cc (toString)
  9986. * src/BtHaveAllMessage.cc (toString)
  9987. * src/BtHaveNoneMessage.cc (toString)
  9988. * src/BtInterestedMessage.cc (toString)
  9989. * src/BtNotInterestedMessage.cc (toString)
  9990. * src/BtUnchokeMessage.cc (toString)
  9991. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9992. Replaced "" with static const variable A2STR::NIL.
  9993. Replaced string comparison against "" with std::string::empty().
  9994. Added PROTO_* to Request class and use them as a protocol string
  9995. constant.
  9996. Made "started", "stopped", "completed" static const variable in
  9997. AnnounceList class.
  9998. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9999. Updated translations. Great thanks to translators.
  10000. * po/ca.po
  10001. * po/de.po
  10002. * po/fr.po
  10003. * po/it.po
  10004. * po/ja.po
  10005. * po/ru.po
  10006. * po/zh_CN.po
  10007. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. Updated man page; categorized options and fixed typo.
  10009. * doc/aria2c.1.txt
  10010. * doc/aria2c.1.html
  10011. * doc/aria2c.1
  10012. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10013. Removed const ref
  10014. * src/MetalinkEntry.cc (AddProtocolPreference)
  10015. * src/RequestGroup.cc (FindServerHostByHostname)
  10016. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10017. Rewritten Accept-Features handling.
  10018. * src/HttpRequestCommand.cc (createHttpRequest)
  10019. * src/a2functional.h
  10020. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10021. Changed method signature:
  10022. DHTAbstractNodeLookupTask::toEntries
  10023. * src/DHTAbstractNodeLookupTask.cc
  10024. * src/DHTAbstractNodeLookupTask.h
  10025. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10026. Changed method signature:
  10027. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10028. * src/BtContext.h
  10029. * src/DefaultBtContext.cc
  10030. * src/DefaultBtContext.h
  10031. * src/DefaultBtInteractive.cc
  10032. * test/DefaultBtContextTest.cc
  10033. * test/MockBtContext.h
  10034. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10035. Changed method signature:
  10036. MultiFileAllocationIterator::makeDiskWriterEntries
  10037. * src/MultiFileAllocationIterator.cc
  10038. * src/MultiFileAllocationIterator.h
  10039. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10040. Changed method sinature:
  10041. MetalinkEntry::toFileEntry,
  10042. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10043. Metalinker::queryEntry
  10044. * src/Metalink2RequestGroup.cc
  10045. * src/MetalinkEntry.cc
  10046. * src/MetalinkEntry.h
  10047. * src/MetalinkHelper.cc
  10048. * src/MetalinkHelper.h
  10049. * src/Metalinker.cc
  10050. * src/Metalinker.h
  10051. * src/main.cc
  10052. * test/MetalinkHelperTest.cc
  10053. * test/MetalinkerTest.cc
  10054. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10055. Changed method sinature:
  10056. RequestGroup::getURIs
  10057. * src/RequestGroup.cc
  10058. * src/RequestGroup.h
  10059. * test/Metalink2RequestGroupTest.cc
  10060. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10061. Changed method signature:
  10062. PeerListProcessor::extractPeer
  10063. * src/CompactPeerListProcessor.cc
  10064. * src/CompactPeerListProcessor.h
  10065. * src/DefaultBtAnnounce.cc
  10066. * src/DefaultPeerListProcessor.cc
  10067. * src/DefaultPeerListProcessor.h
  10068. * src/DelegatingPeerListProcessor.cc
  10069. * src/DelegatingPeerListProcessor.h
  10070. * src/PeerListProcessor.h
  10071. * src/UTPexExtensionMessage.cc
  10072. * test/DefaultPeerListProcessorTest.cc
  10073. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10074. Changed method signature:
  10075. BtRequestFactory::createRequestMessages,
  10076. BtRequestFactory::createRequestMessagesOnEndGame
  10077. * src/BtRequestFactory.h
  10078. * src/DefaultBtInteractive.cc
  10079. * src/DefaultBtRequestFactory.cc
  10080. * src/DefaultBtRequestFactory.h
  10081. * test/DefaultBtRequestFactoryTest.cc
  10082. * test/MockBtRequestFactory.h
  10083. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10084. Changed method signature:
  10085. PieceStorage::getInFlightPieces
  10086. * src/DefaultBtProgressInfoFile.cc
  10087. * src/DefaultPieceStorage.cc
  10088. * src/DefaultPieceStorage.h
  10089. * src/PieceStorage.h
  10090. * src/UnknownLengthPieceStorage.cc
  10091. * src/UnknownLengthPieceStorage.h
  10092. * test/DefaultBtProgressInfoFileTest.cc
  10093. * test/MockPieceStorage.h
  10094. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10095. Changed method signature:
  10096. PostDownloadHandler::getNextRequestGroups
  10097. Metalink2RequestGroup::generate
  10098. RequestGroup::postDownloadProcessing
  10099. * src/BtPostDownloadHandler.cc
  10100. * src/BtPostDownloadHandler.h
  10101. * src/Metalink2RequestGroup.cc
  10102. * src/Metalink2RequestGroup.h
  10103. * src/MetalinkPostDownloadHandler.cc
  10104. * src/MetalinkPostDownloadHandler.h
  10105. * src/PostDownloadHandler.h
  10106. * src/RequestGroup.cc
  10107. * src/RequestGroup.h
  10108. * src/RequestGroupMan.cc
  10109. * src/main.cc
  10110. * test/BtPostDownloadHandlerTest.cc
  10111. * test/Metalink2RequestGroupTest.cc
  10112. * test/MetalinkPostDownloadHandlerTest.cc
  10113. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. Rewritten AccRequestGroup
  10115. * src/main.cc
  10116. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10117. Rewritten.
  10118. * src/TaggedItem.cc (toTagString)
  10119. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. Rewritten Accept-Features handling.
  10121. * src/HttpRequestCommand.cc (createHttpRequest)
  10122. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10123. Rewritten accept types handling.
  10124. * HttpRequest.cc (createRequest)
  10125. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10126. Rewritten
  10127. * src/FeatureConfig.cc (featureSummary)
  10128. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10129. Changed method signature:
  10130. PeerStorage::getActivePeers
  10131. * src/DHTPeerAnnounceEntry.cc
  10132. * src/DefaultPeerStorage.cc
  10133. * src/DefaultPeerStorage.h
  10134. * src/PeerStorage.h
  10135. * test/DefaultPeerStorageTest.cc
  10136. * test/MockPeerStorage.h
  10137. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10138. Changed method signature:
  10139. DHTPeerAnnounceStorage::getPeers,
  10140. DHTPeerAnnounceEntry::getPeers
  10141. * src/DHTGetPeersMessage.cc
  10142. * src/DHTPeerAnnounceEntry.cc
  10143. * src/DHTPeerAnnounceEntry.h
  10144. * src/DHTPeerAnnounceStorage.cc
  10145. * src/DHTPeerAnnounceStorage.h
  10146. * test/DHTAnnouncePeerMessageTest.cc
  10147. * test/DHTPeerAnnounceEntryTest.cc
  10148. * test/DHTPeerAnnounceStorageTest.cc
  10149. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10150. Changed method signature:
  10151. NameResolver::resolve
  10152. * src/DHTEntryPointNameResolveCommand.cc
  10153. * src/InitiateConnectionCommand.cc
  10154. * src/NameResolver.cc
  10155. * src/NameResolver.h
  10156. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10157. Changed method signature:
  10158. PieceStorage::getAdvertisedPieceIndexes
  10159. * src/DefaultBtInteractive.cc
  10160. * src/DefaultPieceStorage.cc
  10161. * src/DefaultPieceStorage.h
  10162. * src/PieceStorage.h
  10163. * src/UnknownLengthPieceStorage.h
  10164. * test/MockPieceStorage.h
  10165. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10166. Changed method signature:
  10167. SegmentMan::getInFlightSegment
  10168. * src/AbstractCommand.cc
  10169. * src/SegmentMan.cc
  10170. * src/SegmentMan.h
  10171. * test/SegmentManTest.cc
  10172. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10173. Changed method signature:
  10174. DHTAbstractNodeLookupTask::getNodesFromMessage
  10175. * src/DHTAbstractNodeLookupTask.cc
  10176. * src/DHTAbstractNodeLookupTask.h
  10177. * src/DHTNodeLookupTask.cc
  10178. * src/DHTNodeLookupTask.h
  10179. * src/DHTPeerLookupTask.cc
  10180. * src/DHTPeerLookupTask.h
  10181. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10182. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10183. * src/AbstractCommand.cc
  10184. * src/BtCheckIntegrityEntry.cc
  10185. * src/BtCheckIntegrityEntry.h
  10186. * src/BtFileAllocationEntry.cc
  10187. * src/BtFileAllocationEntry.h
  10188. * src/BtSetup.cc
  10189. * src/BtSetup.h
  10190. * src/CheckIntegrityCommand.cc
  10191. * src/CheckIntegrityEntry.h
  10192. * src/ChecksumCheckIntegrityEntry.cc
  10193. * src/ChecksumCheckIntegrityEntry.h
  10194. * src/DHTSetup.cc
  10195. * src/DHTSetup.h
  10196. * src/DownloadEngine.cc
  10197. * src/FileAllocationCommand.cc
  10198. * src/FileAllocationEntry.h
  10199. * src/RequestGroup.cc
  10200. * src/RequestGroup.h
  10201. * src/RequestGroupMan.cc
  10202. * src/RequestGroupMan.h
  10203. * src/StreamCheckIntegrityEntry.cc
  10204. * src/StreamCheckIntegrityEntry.h
  10205. * src/StreamFileAllocationEntry.cc
  10206. * src/StreamFileAllocationEntry.h
  10207. * src/TrackerWatcherCommand.cc
  10208. * src/a2functional.h
  10209. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10210. Changed method signature:
  10211. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10212. DHTBucket::getGoodNodes,
  10213. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10214. * src/BNode.cc
  10215. * src/BNode.h
  10216. * src/DHTAbstractNodeLookupTask.cc
  10217. * src/DHTAutoSaveCommand.cc
  10218. * src/DHTBucket.cc
  10219. * src/DHTBucket.h
  10220. * src/DHTBucketRefreshTask.cc
  10221. * src/DHTFindNodeMessage.cc
  10222. * src/DHTGetPeersMessage.cc
  10223. * src/DHTRoutingTable.cc
  10224. * src/DHTRoutingTable.h
  10225. * test/BNodeTest.cc
  10226. * test/DHTBucketTest.cc
  10227. * test/DHTRoutingTableTest.cc
  10228. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10229. In piece selection functions, Pass std::deque<...> by reference rather
  10230. than returning it.
  10231. * src/BitfieldMan.cc
  10232. * src/BitfieldMan.h
  10233. * src/DefaultBtRequestFactory.cc
  10234. * src/DefaultPieceStorage.cc
  10235. * src/Piece.cc
  10236. * src/Piece.h
  10237. * test/BitfieldManTest.cc
  10238. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10239. Implemented rarest piece first piece selection strategy.
  10240. * src/AbstractBtMessage.cc
  10241. * src/AbstractBtMessage.h
  10242. * src/BitfieldMan.cc
  10243. * src/BitfieldMan.h
  10244. * src/BtBitfieldMessage.cc
  10245. * src/BtHaveAllMessage.cc
  10246. * src/BtHaveMessage.cc
  10247. * src/DefaultPieceStorage.cc
  10248. * src/DefaultPieceStorage.h
  10249. * src/PeerInteractionCommand.cc
  10250. * src/PieceStorage.h
  10251. * src/UnknownLengthPieceStorage.h
  10252. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10253. Rewritten readData and writeData.
  10254. * src/MultiDiskAdaptor.cc
  10255. * src/MultiDiskAdaptor.h
  10256. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10257. Move \n out of the message "Usage: ...".
  10258. * src/version_usage.cc
  10259. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10260. Bump up version number to 0.13.2b.
  10261. * configure.ac
  10262. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10263. Added const qualifier to argument Exception& e.
  10264. * src/Logger.h
  10265. * src/SimpleLogger.cc
  10266. * src/SimpleLogger.h
  10267. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10268. Pool connection when CWD, SIZE command fails.
  10269. * src/FtpNegotiationCommand.cc
  10270. * src/FtpNegotiationCommand.h
  10271. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10272. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10273. * src/HttpResponseCommand.cc
  10274. * src/HttpSkipResponseCommand.cc
  10275. * src/HttpSkipResponseCommand.h
  10276. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. Pool connection when a server returns 4xx, 5xx responses.
  10278. * src/HttpNullDownloadCommand.cc
  10279. * src/HttpNullDownloadCommand.h
  10280. * src/HttpResponse.cc
  10281. * src/HttpResponse.h
  10282. * src/HttpResponseCommand.cc
  10283. * src/HttpResponseCommand.h
  10284. * test/HttpResponseTest.cc
  10285. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. Print usage when no URL is specifed or bad command-line option is
  10287. specified.
  10288. * src/HelpItemFactory.cc
  10289. * src/help_tags.h
  10290. * src/option_processing.cc
  10291. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10292. Removed duplicate log message.
  10293. * src/AbstractCommand.cc (asyncResolveHostname)
  10294. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10295. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10296. Changed -j option's default value from 5 to 1.
  10297. Added new examples using protocol auto detection feature.
  10298. Removed -T, -M usage where it can be omitted.
  10299. * doc/aria2c.1.txt
  10300. * doc/aria2c.1.html
  10301. * doc/aria2c.1.txt
  10302. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10303. Updated command-line usage text, so that it tells users that they
  10304. can specify any number of torrent files and metalink files in
  10305. command-line.
  10306. * src/version_usage.cc
  10307. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10308. Changed the default value of -j option to 1.
  10309. * src/HelpItemFactory.cc
  10310. * src/option_processing.cc
  10311. * src/usage_text.h
  10312. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10313. Added the ability to reuse connection in FTP and it is enabled by
  10314. default. It can be disabled by --ftp-reuse-connection=false option.
  10315. * src/Command.cc
  10316. * src/DownloadCommand.cc
  10317. * src/FtpDownloadCommand.cc
  10318. * src/FtpDownloadCommand.h
  10319. * src/FtpFinishDownloadCommand.cc
  10320. * src/FtpFinishDownloadCommand.h
  10321. * src/FtpInitiateConnectionCommand.cc
  10322. * src/FtpNegotiationCommand.cc
  10323. * src/FtpNegotiationCommand.h
  10324. * src/HelpItemFactory.cc
  10325. * src/Makefile.am
  10326. * src/Makefile.in
  10327. * src/OptionHandlerFactory.cc
  10328. * src/option_processing.cc
  10329. * src/prefs.h
  10330. * src/usage_text.h
  10331. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10332. Call Command::transitStatus() before calling Command::execute(),
  10333. so that the status change made in execute() is not cleared.
  10334. * src/DownloadEngine.cc
  10335. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10336. Removed forward declaration of SocketCore class.
  10337. * src/HttpDownloadCommand.h
  10338. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10339. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10340. in InitiateConnectionCommandFactory. They should be set only when
  10341. the protocol is HTTP or HTTPS.
  10342. * src/InitiateConnectionCommandFactory.cc
  10343. * src/RequestGroup.cc
  10344. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10345. Fixed infinite loop in checksum checking.
  10346. * src/IteratableChecksumValidator.cc
  10347. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10348. Set _supportsPersistentConnection to true by default.
  10349. * src/Request.cc
  10350. * src/RequestGroup.cc
  10351. * test/HttpRequestTest.cc
  10352. * test/RequestTest.cc
  10353. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10354. Added timeout to socket pool. The default timeout is 15 seconds,
  10355. which is the same value Apache uses.
  10356. * src/DownloadEngine.cc
  10357. * src/DownloadEngine.h
  10358. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10359. Fixed misuse of multimap::find()
  10360. * src/HttpHeader.cc
  10361. * test/HttpHeaderTest.cc
  10362. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10363. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10364. option.
  10365. The asynchronous DNS is not capable of IPv6 yet.
  10366. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10367. least for HTTP download.
  10368. * src/AbstractCommand.cc
  10369. * src/AbstractCommand.h
  10370. * src/AsyncNameResolver.cc
  10371. * src/AsyncNameResolver.h
  10372. * src/DHTEntryPointNameResolveCommand.cc
  10373. * src/DHTEntryPointNameResolveCommand.h
  10374. * src/DownloadEngine.cc
  10375. * src/DownloadEngine.h
  10376. * src/FtpInitiateConnectionCommand.cc
  10377. * src/FtpInitiateConnectionCommand.h
  10378. * src/HelpItemFactory.cc
  10379. * src/HttpInitiateConnectionCommand.cc
  10380. * src/HttpInitiateConnectionCommand.h
  10381. * src/InitiateConnectionCommand.cc
  10382. * src/InitiateConnectionCommand.h
  10383. * src/Makefile.am
  10384. * src/Makefile.in
  10385. * src/NameResolver.cc
  10386. * src/NameResolver.h
  10387. * src/OptionHandlerFactory.cc
  10388. * src/SocketCore.cc
  10389. * src/SocketCore.h
  10390. * src/Util.cc
  10391. * src/Util.h
  10392. * src/option_processing.cc
  10393. * src/prefs.h
  10394. * src/usage_text.h
  10395. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10396. Updated man page: --quiet, --header were added.
  10397. --metalink-servers and --enable-http-keep-alive option were updated.
  10398. * doc/aria2c.1
  10399. * doc/aria2c.1.html
  10400. * doc/aria2c.1.txt
  10401. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. Enable HTTP keep-alive by default.
  10403. * src/HelpItemFactory.cc
  10404. * src/option_processing.cc
  10405. * src/usage_text.h
  10406. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10407. Disable http keep-alive if the remote server is not HTTP/1.1.
  10408. * src/HttpConnection.cc
  10409. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10410. Receive content body of 302 response so that the connection can be
  10411. reused later when http keep-alive is enabled.
  10412. * src/HttpNullDownloadCommand.cc
  10413. * src/HttpNullDownloadCommand.h
  10414. * src/HttpResponseCommand.cc
  10415. * src/HttpResponseCommand.h
  10416. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10417. const SharedHandle<Request> -> const SharedHandle<Request>&
  10418. * src/FtpDowndloadCommand.cc
  10419. * src/FtpDowndloadCommand.h
  10420. * src/HttpDownloadCommand.cc
  10421. * src/HttpDownloadCommand.h
  10422. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10423. Fixed the bug that the control file(.aria2 file) is not renamed
  10424. according to tryAutoFileRenaming().
  10425. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10426. its control file exist, use them and continue download.
  10427. The old implementation didn't take into account of control file's
  10428. existence, so basically you couldn't continue download of renamed file.
  10429. * src/BtProgressInfoFile.h
  10430. * src/DefaultBtProgressInfoFile.cc
  10431. * src/DefaultBtProgressInfoFile.h
  10432. * src/NullProgressInfoFile.h
  10433. * src/RequestGroup.cc
  10434. * test/DefaultBtProgressInfoFileTest.cc
  10435. * test/MockBtProgressInfoFile.h
  10436. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10437. Change the default value of --metalink-servers option from `5' to `1'.
  10438. * src/HelpItemFactory.cc
  10439. * src/option_processing.cc
  10440. * src/usage_text.h
  10441. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10442. Reimplemented transparent metalink using Accept request header.
  10443. * src/HttpRequest.cc
  10444. * src/HttpRequest.h
  10445. * src/HttpRequestCommand.cc
  10446. * src/Metalink2RequestGroup.cc
  10447. * src/RequestGroup.cc
  10448. * src/RequestGroup.h
  10449. * test/HttpRequestTest.cc
  10450. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10451. Bump up version number to 0.13.2a
  10452. * configure.ac
  10453. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10454. Updated configure.ac using the result of autoscan.
  10455. * configure.ac
  10456. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10457. Fixed compilation error without gcrypt/openssl.
  10458. * src/DownloadCommand.cc
  10459. * src/DownloadCommand.h
  10460. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10461. Reorganized version information so that it can be displayed in a
  10462. standard terminal screen without scrolling.
  10463. Removed http, ftp from Configuration section, because they are always
  10464. enabled.
  10465. * src/FeatureConfig.cc
  10466. * src/FeatureConfig.h
  10467. * src/main.cc
  10468. * src/messageDigest.cc
  10469. * src/messageDigest.h
  10470. * src/version_usage.cc
  10471. * test/FeatureConfigTest.cc
  10472. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10473. Masked user ID in log.
  10474. * src/FtpConnection.cc (sendUser)
  10475. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. Removed query part from filename in HTTP download. The query part means
  10477. the substring after "?" in URL. Firefox seems do the same thing.
  10478. A query part is sometimes very long and not suitable to filename,
  10479. so I think it is better to remove it from filename.
  10480. * src/HttpRequest.cc
  10481. * src/HttpRequest.h
  10482. * src/Request.cc
  10483. * src/Request.h
  10484. * test/HttpRequestTest.cc
  10485. * test/RequestTest.cc
  10486. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10487. Rewritten Exception class. Throw exception object, not its pointer and
  10488. catch by reference, so that remove problematic delete operator for
  10489. catched exception.
  10490. * src/Exception.cc
  10491. * src/Exception.h
  10492. * test/ExceptionTest.cc
  10493. * src/*: All files throwing/catching exception.
  10494. * test/*: All files throwing/catching exception.
  10495. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10496. Now auto protocol detection is enabled without -Z option.
  10497. But there is a important difference between with/without -Z optoin.
  10498. For example, if you type:
  10499. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10500. then, aria2 interprets there are 3 request groups:
  10501. (1) http://host/file, http://mirror/file <-- multi-source download
  10502. (2) file1.torrent
  10503. (3) file2.metalink
  10504. On the other hand, if you invoke above command with -Z option, it is
  10505. interpreted as 4 request groups:
  10506. (1) http://host/file
  10507. (2) file1.torrent
  10508. (3) file2.metalink
  10509. (4) http://mirror/file
  10510. I think usually user don't mix multi-source URLs and torrent files, so
  10511. there is no big problem here.
  10512. * src/main.cc
  10513. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10514. Fixed the bug that causes segmentaion fault when reading XML containing
  10515. unescapsed character like '&'.
  10516. Also a modification was made which avoids adding unnecessary
  10517. characters stack and appending unused string.
  10518. * src/ExpatMetalinkProcessor.cc
  10519. * src/FileMetalinkParserState.h
  10520. * src/FilesMetalinkParserState.h
  10521. * src/FinMetalinkParserState.h
  10522. * src/HashMetalinkParserState.h
  10523. * src/InitialMetalinkParserState.h
  10524. * src/LanguageMetalinkParserState.h
  10525. * src/MetalinkMetalinkParserState.h
  10526. * src/MetalinkParserState.h
  10527. * src/MetalinkParserStateMachine.cc
  10528. * src/MetalinkParserStateMachine.h
  10529. * src/OSMetalinkParserState.h
  10530. * src/PieceHashMetalinkParserState.h
  10531. * src/PiecesMetalinkParserState.h
  10532. * src/ResourcesMetalinkParserState.h
  10533. * src/SizeMetalinkParserState.h
  10534. * src/SkipTagMetalinkParserState.h
  10535. * src/URLMetalinkParserState.h
  10536. * src/VerificationMetalinkParserState.h
  10537. * src/VersionMetalinkParserState.h
  10538. * src/XML2SAXMetalinkProcessor.cc
  10539. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10540. Added StringFormat class, which internally calls vasprintf.
  10541. operator<< is defined for this class, so it can be used with iostream
  10542. classes nicely. SimpleLogger and following functions are rewritten
  10543. using StringFormat class.
  10544. Besides, now Logger class's methods are non-const, many classes
  10545. that has a const Logger* as a member variable are modified to remove
  10546. const qualifier from the variable declaration.
  10547. * src/HelpItemFactory.cc
  10548. * src/Request.cc
  10549. * src/SimpleLogger.cc
  10550. * src/StringFormat.cc
  10551. * src/StringFormat.h
  10552. * src/Util.cc
  10553. * src/option_processing.cc
  10554. * src/version_usage.cc
  10555. * test/StringFormatTest.cc
  10556. * src/*.h: The classes that has const Logger* as a member variable.
  10557. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10558. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10559. failed. Also fixed memory link when exception is thrown there.
  10560. * src/main.cc (AccRequestGroup)
  10561. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10562. Added build-in "Accept-Features" support. For now only "metalink" is
  10563. used in this header field.
  10564. This "metalink" value is removed from the list when connecting URLs
  10565. fed by metalink file to avoid loop in "transparent" metlaink.
  10566. * src/HttpRequest.cc
  10567. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10568. header is also held in this variable. Also renamed setUserHeaders as
  10569. addHeader and it was rewritten to add header not just to clear the old
  10570. value.
  10571. * src/HttpRequestCommand.cc
  10572. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10573. from "Accept-Features" list.
  10574. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10575. default.
  10576. * src/RequestGroup.h
  10577. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10578. * src/a2functional.h: Included <string> because Concat class depends on
  10579. it.
  10580. * test/HttpRequestTest.cc
  10581. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10582. Added comment
  10583. * src/RequestGroup.cc (createNextCommand)
  10584. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10585. Capitalized METHOD_GET and METHOD_HEAD
  10586. * src/Request.cc
  10587. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10588. Added getDownloadResults() method
  10589. * src/RequestGroupMan.cc
  10590. * src/RequestGroupMan.h
  10591. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10592. Fixed the bug that aria2 exits when commands is empty() but
  10593. _routineCommands are not.
  10594. * src/DownloadEngine.cc
  10595. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10596. Use the default value pulled from Option object in HelpItemFactory.
  10597. except options whose defualt value is embedded in a usage text.
  10598. * src/HelpItemFactory.cc
  10599. * src/HelpItemFactory.h
  10600. * src/option_processing.cc
  10601. * src/version_usage.cc
  10602. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10603. Added --quiet option to make aria2 quiet (no console output).
  10604. --quiet option is tagged with ADVANCED.
  10605. * src/HelpItemFactory.cc
  10606. * src/LogFactory.cc
  10607. * src/LogFactory.h
  10608. * src/MultiUrlRequestInfo.cc
  10609. * src/MultiUrlRequestInfo.h
  10610. * src/NullStatCalc.h: New class. This class prints nothing.
  10611. * src/OptionHandlerFactory.cc
  10612. * src/main.cc
  10613. * src/option_processing.cc
  10614. * src/prefs.h
  10615. * src/usage_text.h
  10616. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10617. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10618. * src/HelpItemFactory.cc (createHelpItems):
  10619. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10620. Fixed compilation error in ExpatMetalinkProcessor.cc
  10621. * src/ExpatMetalinkProcessor.cc
  10622. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10623. Reuse socket if the origin server supports HTTP keep-alive and
  10624. --enable-http-keep-alive or --enable-http-pipelining is given.
  10625. The current implementation doesn't reuse the connections established
  10626. against proxy server.
  10627. * src/AbstractCommand.cc
  10628. * src/DownloadEngine.cc
  10629. * src/DownloadEngine.h
  10630. * src/HttpDownloadCommand.cc
  10631. * src/HttpInitiateConnectionCommand.cc
  10632. * src/HttpResponseCommand.cc
  10633. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10634. Rewritten HTTP keep-alive and pipelining routine.
  10635. * src/AbstractCommand.cc
  10636. * src/HttpConnection.cc
  10637. * src/HttpDownloadCommand.cc
  10638. * src/HttpRequest.cc
  10639. * src/HttpRequestCommand.cc
  10640. * src/HttpResponseCommand.cc
  10641. * src/Request.cc
  10642. * src/Request.h
  10643. * src/RequestGroup.cc
  10644. * test/HttpRequestTest.cc
  10645. * test/HttpResponseTest.cc
  10646. * test/RequestTest.cc
  10647. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10648. Added missing setUserHeaders call
  10649. * src/HttpRequestCommand.cc
  10650. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10651. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10652. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10653. waste of time because it is more likey false.
  10654. * src/FileAllocationDispatcherCommand.cc (execute)
  10655. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10656. Now HTTP status and version are a member variable of HttpHeader.
  10657. HTTP status is processed as a string, not integer.
  10658. * src/AbstractProxyResponseCommand.cc
  10659. * src/HttpConnection.cc
  10660. * src/HttpHeader.cc
  10661. * src/HttpHeader.h
  10662. * src/HttpHeaderProcessor.cc
  10663. * src/HttpHeaderProcessor.h
  10664. * src/HttpResponse.cc
  10665. * src/HttpResponse.h
  10666. * test/HttpHeaderProcessorTest.cc
  10667. * test/HttpResponseTest.cc
  10668. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10669. Added --header option. You can specify any number of additional HTTP headers
  10670. like:
  10671. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10672. Unlike other commad-line option, you can use --header option multiple times.
  10673. * src/HelpItemFactory.cc
  10674. * src/HttpRequest.{cc, h}
  10675. * src/HttpRequestCommand.cc
  10676. * src/OptionHandlerFactory.cc
  10677. * src/OptionHandlerImpl.h
  10678. * src/option_processing.cc
  10679. * src/prefs.h
  10680. * src/usage_text.h
  10681. * test/HttpRequestTest.cc (testUserHeaders)
  10682. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10683. Eliminates the time lag between sequential downloads and commands in
  10684. the same RequestGroup.
  10685. In old implementation, aria2 occasionally waits 1 seconds before
  10686. executing next command or RequestGroup.
  10687. This is really a waste of time, and new implementation eliminates
  10688. this unnecessary time lag.
  10689. * src/AbstractCommand.cc
  10690. * src/AutoSaveCommand.cc
  10691. * src/CheckIntegrityCommand.cc
  10692. * src/Command.{cc, h}
  10693. * src/DownloadEngine.{cc, h}
  10694. * src/DownloadEngineFactory.cc
  10695. * src/FileAllocationCommand.cc
  10696. * src/FileAllocationDispatcherCommand.cc
  10697. * src/FillRequestGroupCommand.cc
  10698. * src/FtpInitiateConnectionCommand.cc
  10699. * src/HaveEraseCommand.cc
  10700. * src/HttpInitiateConnectionCommand.cc
  10701. * src/HttpResponseCommand.cc
  10702. * src/RealtimeCommand.cc
  10703. * src/RequestGroup.cc
  10704. * src/RequestGroupMan.cc
  10705. * src/StreamFileAllocationEntry.cc
  10706. * src/TimeBasedCommand.{cc, h}
  10707. * src/TimedHaltCommand.cc
  10708. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10709. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10710. keyword explicit and SharedHandle's default constructor initializes
  10711. its internal obj to null, old implementation initializes it using
  10712. obj's default constructor.
  10713. To assign null, write SharedHandle<T> x(...); x.reset();
  10714. TODO: test/SharedHandleTest.cc needs more tests.
  10715. * src/SharedHandle.h
  10716. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10717. Fixed type in man page.
  10718. * doc/aria2c.1.txt
  10719. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10720. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10721. * src/SimpleLogger.{cc, h}
  10722. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10723. Implemented auto protocol detection.
  10724. Now you can do:
  10725. aria2c -Z http://host/file file1.torrent file2.metalink
  10726. (Note: -Z option is required for auto protcol detection.)
  10727. Then aria2c downloads 3 files simultaneously:
  10728. 1. http://host/file
  10729. 2. file1.torrent <-- read local torrent file
  10730. 3. file2.metalink <-- read local Metalink file.
  10731. Same thing goes with -i option. Assume your uris.txt contans:
  10732. http://host/file
  10733. file1.torrent
  10734. file2.metalink
  10735. Then you can do: aria2c -i uris.txt
  10736. (Note: -Z option is not needed if -i option is given.)
  10737. * src/main.cc
  10738. * src/ProtocolDetector.{cc, h}
  10739. * test/ProtocolDetectorTest.cc
  10740. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10741. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10742. installed
  10743. * src/ARC4Encryptor.h
  10744. * src/ARC4Decryptor.h
  10745. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10746. Renamed argument from 'errno' to 'err', since errno is confused with
  10747. errno defined in errno.h.
  10748. * src/LibgcryptARC4Decryptor.h
  10749. * src/LibgcryptARC4Context.h
  10750. * src/LibgcryptDHKeyExchange.h
  10751. * src/LibgcryptARC4Encryptor.h
  10752. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10753. Rewritten choking algorithm.
  10754. * src/PeerChokeCommand.{cc, h}
  10755. * src/BtInterestedMessage.cc
  10756. * src/PeerSessionResource.{cc, h}
  10757. * src/DefaultPeerStorage.{cc, h}
  10758. * src/BtNotInterestedMessage.cc
  10759. * src/DefaultBtMessageDispatcher.{cc, h}
  10760. * src/BtMessageDispatcher.h
  10761. * src/Peer.{cc, h}
  10762. * src/BtLeecherStateChoke.{cc, h}
  10763. * src/BtSetup.cc
  10764. * src/BtSeederStateChoke.{cc, h}
  10765. * src/PeerStorage.h
  10766. * test/MockPeerStorage.h
  10767. * test/MockBtMessageDispatcher.h
  10768. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10769. Fixed compilation error on x84-64 platform.
  10770. * src/AuthConfig.cc: Included ostream.
  10771. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10772. Rewritten getBasename() and getDirname(), without standard library
  10773. basename(), dirname().
  10774. * src/File.cc
  10775. * test/FileTest.cc
  10776. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10777. Added Simplified Chinese translation. Also updated the following
  10778. translations: Polish, Dutch, German. Great thanks to all translators.
  10779. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10780. Suppress content-range error when 'Content-Range' response header
  10781. doesn't contains bytes-unit specifier 'bytes'
  10782. * src/HttpHeader.cc (getRange)
  10783. * test/HttpHeaderTest.cc
  10784. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10785. Fixed compilation error with g++-4.3
  10786. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10787. Added missing include files for MinGW
  10788. * test/HttpHeaderProcessorTest.cc
  10789. * test/DHTRoutingTableSerializerTest.cc
  10790. * test/DHTRoutingTableDeserializerTest.cc
  10791. * test/UriListParserTest.cc
  10792. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10793. Now download line is printed nicely with no garbage at the end of
  10794. line. I use ioctl to get the columns of terminal.
  10795. If stdout is redirected to another device, instead of carriage return,
  10796. end of line '\n' character is used. This is feature request#1909659
  10797. * src/ConsoleStatCalc.cc (calculateStat)
  10798. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10799. Included a2time.h
  10800. * src/DHTMessageDispatcher.h
  10801. * src/DHTMessageEntry.h
  10802. * src/DHTReplaceNodeTask.h
  10803. * src/DHTMessageTracker.h
  10804. * src/Util.h
  10805. * src/CookieBox.h
  10806. * src/SocketCore.h
  10807. * src/DefaultBtMessageDispatcher.h
  10808. * src/SocketCore.cc
  10809. * src/Util.cc
  10810. * src/DHTPingTask.h
  10811. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10812. Fixed high memory footprint when DHT is enabled.
  10813. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10814. queued than it is processed and the queue is getting longer. As a
  10815. consequence, momory usage is increased.
  10816. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10817. replacement cache in DHTBucket which is described in Kademlia paper.
  10818. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10819. DHTReplaceNodeTask.
  10820. * src/DHTBucket.{h, cc}
  10821. (cacheNode): New function.
  10822. (getCachedNodes): New function.
  10823. (dropNode): Push back cached node to _nodes.
  10824. * test/DHTBucketTest.cc
  10825. (testCacheNode): New test
  10826. (testDropNode): New test
  10827. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10828. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10829. the unused 4KB memory when ssl is not used.
  10830. * src/SocketCore.cc
  10831. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10832. Added summary log for peer announce storage.
  10833. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10834. Removed cast
  10835. * src/DefaultPeerStorage.cc (addPeer)
  10836. Log exception message
  10837. * src/DHTMessageTracker.cc (handleTimeout)
  10838. Fixed casting
  10839. * test/HttpRequestTest.cc
  10840. * test/MetalinkProcessorTest.cc
  10841. * test/PieceTest.cc
  10842. * test/MetalinkEntryTest.cc
  10843. * test/SequenceTest.cc
  10844. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10845. * src/ParameterizedStringParser.cc (createLoop):
  10846. Removed unused variable sstep.
  10847. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10848. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10849. * src/Util.{h, cc}
  10850. (parseUInt): New function.
  10851. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10852. The actual range is uint32_t.
  10853. * test/UtilTest.cc
  10854. * src/ParameterizedStringParser.cc:
  10855. Use Util::parseUInt() for loop variables.
  10856. * test/ParameterizedStringParserTest.cc
  10857. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10858. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10859. Rewritten the functions for binding port.
  10860. * src/DHTConnectionImpl.{h, cc}
  10861. * src/PeerListenCommand.{h, cc}
  10862. * src/DHTSetup.cc
  10863. * src/BtSetup.cc
  10864. * test/DHTConnectionImplTest.cc
  10865. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10866. type cleanup for allmost all remaining files.
  10867. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10868. Type clarification
  10869. * src/PeerSessionResource.{h, cc}
  10870. * src/DefaultPieceStorage.{h, cc}
  10871. * src/Peer.{h, cc}
  10872. * test/PeerSessionResourceTest.cc
  10873. Use div function
  10874. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10875. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10876. Type clarification
  10877. * src/DefaultPeerStorage.{h, cc}
  10878. * test/DefaultPeerStorageTest.cc
  10879. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10880. Type clarification: size_t for length or size, uint64_t for file
  10881. length, off_t for file offset.
  10882. * src/DefaultBtProgressInfoFile.cc
  10883. * src/DefaultBtContext.{h, cc}
  10884. * src/DefaultBtInteractive.cc
  10885. * src/DownloadCommand.{h, cc}
  10886. * src/IteratableChunkChecksumValidator.{h, cc}
  10887. * src/SegmentMan.{h, cc}
  10888. * src/SingleFileDownloadContext.{h, cc}
  10889. * src/IteratableChecksumValidator.{h, cc}
  10890. * src/BtContext.h
  10891. * src/IteratableValidator.h
  10892. * src/DownloadContext.h
  10893. * test/SingleFileDownloadContextTest.cc
  10894. * test/DefaultBtContextTest.cc
  10895. * test/MockBtContext.h
  10896. * test/Metalink2RequestGroupTest.cc
  10897. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10898. Type clarification: size_t for length or size, uint64_t for file
  10899. length, off_t for file offset.
  10900. * src/PiecedSegment.cc
  10901. * src/GrowSegment.h
  10902. * src/DefaultBtRequestFactory.h
  10903. * src/DefaultBtProgressInfoFile.cc
  10904. * src/UnknownLengthPieceStorage.h
  10905. * src/DefaultPieceStorage.cc
  10906. * src/UnknownLengthPieceStorage.cc
  10907. * src/DefaultBtInteractive.cc
  10908. * src/GrowSegment.cc
  10909. * src/BitfieldMan.h
  10910. * src/DownloadCommand.cc
  10911. * src/BtRequestFactory.h
  10912. * src/PiecedSegment.h
  10913. * src/DefaultPieceStorage.h
  10914. * src/Piece.cc
  10915. * src/DefaultBtRequestFactory.cc
  10916. * src/PieceStorage.h
  10917. * src/Segment.h
  10918. * src/Piece.h
  10919. * src/BitfieldMan.cc
  10920. * src/Util.cc
  10921. * test/DefaultBtProgressInfoFileTest.cc
  10922. * test/DefaultPieceStorageTest.cc
  10923. * test/MockPieceStorage.h
  10924. * test/BtRequestMessageTest.cc
  10925. * test/DefaultBtMessageDispatcherTest.cc
  10926. * test/BitfieldManTest.cc
  10927. * test/GrowSegmentTest.cc
  10928. * test/PieceTest.cc
  10929. * test/SegmentTest.cc
  10930. * test/SegmentManTest.cc
  10931. * test/DefaultBtRequestFactoryTest.cc
  10932. * test/MockBtRequestFactory.h
  10933. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10934. Fixed compilation error with --disable-nls
  10935. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10936. in gettext.h causes the problem.
  10937. * src/common.h
  10938. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10939. Removed subPiece related functions.
  10940. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10941. * src/DefaultPieceStorage.{h, cc}
  10942. * test/PieceTest.cc
  10943. * test/DefaultPieceStorageTest.cc
  10944. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10945. Use unsigned char for data store.
  10946. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10947. Bump up version number to 0.13.0+1
  10948. * configure.ac
  10949. * Release 0.13.0+1
  10950. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10951. Changed inactive connection timeout to 120.
  10952. To accept more mulually interested peers, disconnect peer when there
  10953. is no interest between us after certain time passed.
  10954. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10955. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10956. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10957. when compiled with async DNS support.
  10958. * src/DownloadEngine.cc
  10959. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10960. value '10' will be a little bit short when some DNS servers are
  10961. offline and several DNS servers are tried. It should be configured
  10962. by command-line option.
  10963. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10964. Merged Ross's mingw patch.
  10965. * src/DHTRoutingTableDeserializer.cc
  10966. * src/DHTRoutingTableSerializer.cc
  10967. * src/Platform.{h, cc}
  10968. * src/timegm.h
  10969. * src/gettimeofday.h
  10970. * src/getaddrinfo.h
  10971. * src/SocketCore.h
  10972. * src/common.h
  10973. * src/inet_aton.h
  10974. * src/DownloadEngine.h
  10975. * src/gai_strerror.h
  10976. * src/a2netcompat.h
  10977. * configure.ac
  10978. * configure
  10979. * aclocal.m4
  10980. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10981. Included missing iostream.
  10982. * test/AllTest.cc
  10983. * test/BtDependencyTest.cc
  10984. * test/BtExtendedMessageTest.cc
  10985. * test/DHTConnectionImplTest.cc
  10986. * test/DHTMessageFactoryImplTest.cc
  10987. * test/DHTMessageTrackerEntryTest.cc
  10988. * test/DHTNodeTest.cc
  10989. * test/DHTRoutingTableSerializerTest.cc
  10990. * test/DefaultBtAnnounceTest.cc
  10991. * test/DefaultBtContextTest.cc
  10992. * test/DefaultBtMessageFactoryTest.cc
  10993. * test/DefaultExtensionMessageFactoryTest.cc
  10994. * test/HandshakeExtensionMessageTest.cc
  10995. * test/HttpResponseTest.cc
  10996. * test/MetalinkProcessorTest.cc
  10997. * test/MultiFileAllocationIteratorTest.cc
  10998. * test/SocketCoreTest.cc
  10999. * test/UTPexExtensionMessageTest.cc
  11000. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11001. Reorganized includes.
  11002. * src/NameResolver.cc
  11003. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11004. Fixed compilation error without ares/c-ares
  11005. * src/NameResolver.h:
  11006. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11007. Added a test for large file.
  11008. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11009. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11010. Fixed the bug that file size is ignored if size > INT32_MAX
  11011. * src/SizeMetalinkParserState.cc (endElement):
  11012. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11013. Bump up version number to 0.13.0
  11014. * configure.ac
  11015. * Release 0.13.0
  11016. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Updated Makfefile.am to make 'make dist' work.
  11018. Now packaged filename is aria2c-VERSION.tar.bz2.
  11019. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11020. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11021. Large file support is now configured by configure script.
  11022. * configure.ac
  11023. Removed unsused source files
  11024. * src/
  11025. * test/
  11026. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11027. Peer.h and BtContext.h respectively.
  11028. * src/Peer.h
  11029. * src/BtContext.h
  11030. Updated translations.
  11031. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11032. translations. Great thanks to all translators!;)
  11033. * po/*.{po, gmo}
  11034. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11035. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11036. statically declared sha1 MessageDigestContext.
  11037. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11038. initialization of short-lived MessageDigestContext.
  11039. * src/MessageDigestHelper.{h, cc}
  11040. * src/main.cc
  11041. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11042. the initialization of MessageDigestContext every time in validating
  11043. chunk checksum.
  11044. * src/DownloadCommand.{h, cc}
  11045. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11046. Add a file descriptor which connected to fast peer(latency<1500) to
  11047. select(). This change reduced CPU load.
  11048. * src/PeerInteractionCommand.cc
  11049. * src/DefaultBtInteractive.{h, cc}
  11050. * src/BtInteractive.h
  11051. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11052. Fixed the previous insufficient fix for possible busy loop.
  11053. * src/MSEHandshake.cc (identifyHandshakeType)
  11054. Removed unused functions.
  11055. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11056. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11057. Fixed possible busy loop if first 20 bytes are not received for a few
  11058. minutes.
  11059. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11060. * src/ReceiverMSEHandshakeCommand.cc
  11061. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11062. Fixed compilation error
  11063. * src/ExpatMetalinkProcessor.cc
  11064. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11065. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11066. * src/DHTBucket.cc
  11067. Removed unnecessary cast.
  11068. * src/HandshakeExtensionMessage.cc
  11069. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11070. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11071. is missing.
  11072. * src/OptionHandlerFactory.cc
  11073. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11074. Fixed the bug that HAVE message is not sent for a piece they are
  11075. downloaded fom http/ftp server before any BitTorrent handshake is done
  11076. with peers.
  11077. * src/DefaultBtInteractive.cc
  11078. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11079. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11080. * src/Makefile.am
  11081. * src/Makefile.in
  11082. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11083. Updated README. Added html version of README and man page.
  11084. * README
  11085. * README.html
  11086. * readme2html: Shell script to generate README.html from README using
  11087. asciidoc.
  11088. * doc/aria2c.1.html
  11089. * doc/makeman: Added the line to generate aria2c.1.html
  11090. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11091. Fixed offset calculation.
  11092. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11093. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11094. Rewritten itos and uitos using template. llitos and ullitos are
  11095. replaced with itos and uitos respectively.
  11096. * src/Util.{h, cc}
  11097. * test/UtilTest.cc
  11098. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11099. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11100. of the number of bytes required for storing public key and shared
  11101. secret.
  11102. * src/LibgcryptDHKeyExchange.h
  11103. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11104. * src/MSEHandshake.cc
  11105. * test/DHKeyExchangeTest.cc
  11106. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11107. Removed since they are not used.
  11108. * src/Xml2MetalinkProcessor.{h, cc}
  11109. * src/Socket.cc
  11110. * src/SegmentSplitter.{h, cc}
  11111. * test/Xml2MetalinkProcessorTest.cc
  11112. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11113. Fixed the bug that prevents aria2 from stopping other than by pressing
  11114. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11115. option. aria2 doesn't stop even after --seed-time is satisfied and
  11116. continues to output blank lines in the console.
  11117. * src/ReceiverMSEHandshakeCommand.cc
  11118. * src/PeerReceiveHandshakeCommand.cc
  11119. * src/PeerListenCommand.cc
  11120. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11121. Bump up version number to 0.13.0rc
  11122. * configure.ac
  11123. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11124. Updated man page and some usage text.
  11125. * doc/aria2c.1.txt
  11126. * src/usage_text.h
  11127. * po/*.{po, gmo}
  11128. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11129. Updated translations. Added Finnish and Hebrew translations.
  11130. Great thanks to all translators!
  11131. * po/*.{po, gmo}
  11132. * po/LINGUAS
  11133. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11134. Log more detailed information about each message.
  11135. * src/DHTQueryMessage.{h, cc}
  11136. * src/DHTGetPeersMessage.{h, cc}
  11137. * src/DHTFindNodeReplyMessage.{h, cc}
  11138. * src/DHTGetPeersReplyMessage.{h, cc}
  11139. * src/DHTAnnouncePeerMessage.{h, cc}
  11140. * src/DHTResponseMessage.{h, cc}
  11141. * src/DHTFindNodeMessage.{h, cc}
  11142. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11143. Use constants defined in prefs.h
  11144. * src/option_processing.cc
  11145. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11146. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11147. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11148. Make room for future enchancements for IPv6 addresses.
  11149. Bump up version number of dht.dat file format to 2.
  11150. Not compatible with previous version.
  11151. * src/DHTRoutingTableSerializer.cc
  11152. * src/DHTRoutingTableDeserializer.cc
  11153. * test/DHTRoutingTableSerializerTest.cc
  11154. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11155. Added handling for the return values from
  11156. PeerMessageUtil::createcompact().
  11157. * src/DefaultBtContext.cc (computeFastSet):
  11158. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11159. Fixed abort when peer's ip address is IPv4-mapped address.
  11160. * src/DefaultBtContext.cc (computeFastSet)
  11161. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11162. cannot handle IPv4-mapped addresses.
  11163. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11164. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11165. Proper return value handling for OpenSSL functions.
  11166. * src/LibsslDHKeyExchange.h
  11167. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11168. Random bytes generation using libgcrypt and OpenSSL.
  11169. * src/DHTUtil.{h, cc}
  11170. * test/DHTUtilTest.cc
  11171. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11172. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11173. received.
  11174. * src/DHTMessageReceiver.cc (receiveMessage)
  11175. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11176. Fixed the bug that a return code is always 0. BUG#1897704
  11177. If error occurred during the download or there exist unfinished
  11178. downloads, aria2 returns with code 1.
  11179. * src/RequestGroupMan.{h, cc}
  11180. * src/MultiUrlRequestInfo.{h, cc}
  11181. * src/main.cc
  11182. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11183. IPv6 support for SocketCore class.
  11184. TODO: In SocketCore::establishConnection(), this is insufficient to
  11185. determin the failure of connect() here because the socket is
  11186. non-blocking state. The next addresses should be tried after select().
  11187. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11188. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11189. instead which address family independent.
  11190. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11191. information in a compact peer format which is for IPv4 only.
  11192. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11193. this is a spec of BitTorrent protocol.
  11194. * src/SocketCore.{h, cc}
  11195. * src/PeerMessageUtil.cc
  11196. * test/SocketCoreTest.cc
  11197. * test/PeerMessageUtilTest.cc
  11198. * test/DHTConnectionImplTest.cc
  11199. Handle IPv4-mapped addresses.
  11200. * src/DHTNode.cc: Now identity is determined by node id.
  11201. * src/DHTMessageTrackerEntry.cc
  11202. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11203. should handle it.
  11204. * src/DHTRoutingTableDeserializer.cc
  11205. * src/DHTMessageFactoryImpl.cc
  11206. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11207. Change the unit of --stop option from a minute to a second.
  11208. * src/usage_text.h
  11209. * src/DownloadEngineFactory.cc
  11210. * src/OptionHandlerFactory.cc
  11211. * src/message.h
  11212. * src/TimedHaltCommand.cc
  11213. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11214. Make listening socket non-block mode.
  11215. * src/FtpConnection.cc
  11216. * src/FtpNegotiationCommand.{h, cc}
  11217. * src/PeerListenCommand.cc
  11218. Fixed the bug that cause slow ftp negotiation.
  11219. * src/FtpNegotiationCommand.{h, cc}
  11220. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11221. Added basic tag to --enable-dht, --dht-listen-port option.
  11222. * src/HelpItemFactory.cc (createHelpItems)
  11223. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11224. Updated text.
  11225. * src/usage_text.h
  11226. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11227. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11228. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11229. Determin _threadtholdSpeed in each constructor for
  11230. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11231. * src/ActivePeerConnectionCommand.{h, cc}
  11232. * src/PeerReceiveHandshakeCommand.{h, cc}
  11233. * src/BtSetup.cc
  11234. * src/BtConstants.h
  11235. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11236. Added --bt-min-crypto-level and --bt-require-crypto options.
  11237. * src/OptionHandlerFactory.cc
  11238. * src/MSEHandshake.cc
  11239. * src/HelpItemFactory.cc
  11240. * src/option_processing.cc
  11241. * src/ReceiverMSEHandshakeCommand.cc
  11242. * src/prefs.h
  11243. * src/DefaultBtAnnounce.cc
  11244. * src/InitiatorMSEHandshakeCommand.cc
  11245. * src/usage_text.h
  11246. * test/MSEHandshakeTest.cc
  11247. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11248. Bump version number to 0.13.0b
  11249. * configure.ac
  11250. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11251. Updated doc.
  11252. * src/MessageDigestHelper.h:
  11253. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11254. Use raw message digest as a token instead of its hexadecimal
  11255. representation.
  11256. * src/DHTTokenTracker.cc (generateToken)
  11257. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11258. Added Message Stream Encryption(MSE) support.
  11259. Currently, aria2 accepts incoming connections with Obfuscation Header
  11260. and legacy BitTorrent Header and establishes connections with
  11261. Obfuscation Header first and if failed then retry with legacy
  11262. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11263. choose ARC4. The new option to change the default behavior is planned.
  11264. For tracker extension, "supportcrypto=1" is added statically.
  11265. * src/PeerInitiateConnectionCommand.{h, cc}
  11266. * src/PeerConnection.{h, cc}
  11267. * src/HandleRegistry.h
  11268. * src/SocketCore.h
  11269. * src/PeerReceiveHandshakeCommand.{h, cc}
  11270. * src/BtRegistry.{h, cc}
  11271. * src/PeerListenCommand.cc
  11272. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11273. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11274. * src/MSEHandshake.{h, cc}
  11275. * src/ARC4Encryptor.h
  11276. * src/ARC4Decryptor.h
  11277. * src/LibgcryptARC4Encryptor.h
  11278. * src/LibgcryptARC4Decryptor.h
  11279. * src/LibgcryptARC4Context.h
  11280. * src/LibsslARC4Encryptor.h
  11281. * src/LibsslARC4Decryptor.h
  11282. * src/LibsslARC4Context.h
  11283. * src/DHKeyExchange.h
  11284. * src/LibgcryptDHKeyExchange.h
  11285. * src/LibsslDHKeyExchange.h
  11286. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11287. * test/DefaultBtAnnounceTest.cc
  11288. * test/ARC4Test.cc
  11289. * test/DHKeyExchangeTest.cc
  11290. Removed prepareForRetry() because it is not used.
  11291. * src/PeerAbstractCommand.{h, cc}
  11292. * src/PeerInteractionCommand.{h, cc}
  11293. * src/PeerInitiateConnectionCommand.{h, cc}
  11294. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11295. Added the ability to load nodes from torrent file. These nodes are
  11296. added to the routing table when downloading that torrent.
  11297. * src/BtContext.h
  11298. * src/DefaultBtContext.{h, cc}
  11299. * src/DHTSetup.cc
  11300. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11301. hostname and port pair, and resolves all of them.
  11302. * src/NameResolver.{h, cc}: Added reset().
  11303. * src/RequestGroup.cc
  11304. * test/DefaultBtContextTest.cc
  11305. * test/MockBtContext.h
  11306. Removed assert() from DefaultBtContext and throw exception instead.
  11307. * src/DefaultBtContext.cc
  11308. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11309. Fixed segmentation fault bug when exiting if dht is disabled.
  11310. * src/RequestGroup.cc
  11311. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11312. Fixed typo in log message and define the message in message.h
  11313. * src/TimedHaltCommand.cc
  11314. * src/message.h
  11315. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11316. Included RecoverableException.h to fix compilation error.
  11317. * test/DHTMessageFactoryImplTest.cc
  11318. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11319. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11320. * test/DHTPingMessageTest.cc
  11321. * test/DHTGetPeersMessageTest.cc
  11322. * test/DHTFindNodeMessageTest.cc
  11323. * test/DHTAnnouncePeerMessageTest.cc
  11324. * test/MockDHTMessage.h
  11325. * test/MockDHTMessageFactory.h
  11326. * test/MockDHTMessageDispatcher.h: New class.
  11327. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11328. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11329. virtual.
  11330. * src/DHTMessageDispatcher.h
  11331. * src/DHTMessageDispatcherImpl.{h, cc}
  11332. * src/DHTSetup.cc
  11333. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11334. Adding handling of DHT error message. Just log error message and
  11335. throw exception.
  11336. * src/DHTMessageFactoryImpl.cc
  11337. * test/DHTMessageFactoryImplTest.cc
  11338. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11339. Added handling of dynamic cast failure.
  11340. * src/DHTNodeLookupTask.cc
  11341. * src/DHTPeerLookupTask.cc
  11342. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11343. Added the ability to stop aria2 itself when given time has passed
  11344. from start. Use --stop option to specify time in minutes.
  11345. When 0 is given, this feature is disabled.
  11346. * src/OptionHandlerFactory.cc
  11347. * src/TimeBasedCommand.h: Make _interval protected scope.
  11348. * src/HelpItemFactory.cc
  11349. * src/option_processing.cc
  11350. * src/prefs.h
  11351. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11352. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11353. Without this modification, the result list shows "ERR" when aria2 is
  11354. stopped by --stop option. It should be "INPR".
  11355. * src/DownloadEngine.{h, cc}
  11356. * src/DownloadEngineFactory.cc
  11357. * src/usage_text.h
  11358. * src/TimedHaltCommand.{h, cc}: New class.
  11359. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11360. Bootstrap through node added by port message.
  11361. Currently bootstrap is executed if the number of buckets in routing
  11362. table is 1.
  11363. * src/BtPortMessage.{h, cc}
  11364. * src/DefaultBtMessageFactory.{h, cc}
  11365. * src/PeerInteractionCommand.cc
  11366. * test/BtPortMessageTest.cc
  11367. * test/MockDHTTask.h
  11368. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11369. Extract the Peer class's member variables, which are only needed after
  11370. PeerInteractionCommand, into PeerSessionResource class.
  11371. This class is instantiated in PeerInteractionCommand class's ctor and
  11372. released in its dtor.
  11373. This will make Peer class lightweight and uses less memory for peers
  11374. which are not connected and wait in the queue.
  11375. * src/PeerChokeCommand.cc
  11376. * src/PeerSessionResource.{h, cc}
  11377. * src/PeerInteractionCommand.cc
  11378. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11379. * src/DefaultBtInteractive.cc
  11380. * src/BtPieceMessage.cc
  11381. * src/BtInterestedMessage.cc
  11382. * src/BtUnchokeMessage.cc
  11383. * src/DefaultPeerStorage.{h, cc}
  11384. * src/PeerInitiateConnectionCommand.cc
  11385. * src/ActivePeerConnectionCommand.cc
  11386. * src/BtNotInterestedMessage.cc
  11387. * src/DefaultBtMessageDispatcher.cc
  11388. * src/BtChokeMessage.cc
  11389. * src/BtRequestMessage.cc
  11390. * src/Peer.{h, cc}
  11391. * src/BtRegistry.h
  11392. * src/TrackerWatcherCommand.cc
  11393. * src/PeerReceiveHandshakeCommand.cc
  11394. * test/BtExtendedMessageTest.cc
  11395. * test/BtAllowedFastMessageTest.cc
  11396. * test/BtCancelMessageTest.cc
  11397. * test/DefaultPieceStorageTest.cc
  11398. * test/BtBitfieldMessageTest.cc
  11399. * test/BtHaveMessageTest.cc
  11400. * test/BtNotInterestedMessageTest.cc
  11401. * test/BtRequestMessageTest.cc
  11402. * test/PeerSessionResourceTest.cc
  11403. * test/DefaultBtMessageDispatcherTest.cc
  11404. * test/PeerTest.cc
  11405. * test/BtInterestedMessageTest.cc
  11406. * test/BtRejectMessageTest.cc
  11407. * test/BtChokeMessageTest.cc
  11408. * test/DefaultPeerStorageTest.cc
  11409. * test/BtHaveNoneMessageTest.cc
  11410. * test/BtHaveAllMessageTest.cc
  11411. * test/DefaultExtensionMessageFactoryTest.cc
  11412. * test/BtUnchokeMessageTest.cc
  11413. * test/DefaultBtMessageFactoryTest.cc
  11414. * test/HandshakeExtensionMessageTest.cc
  11415. * test/UTPexExtensionMessageTest.cc
  11416. * test/DefaultBtRequestFactoryTest.cc
  11417. * test/BtPieceMessageTest.cc
  11418. Removed typedef PeerStats.
  11419. * src/PeerStat.h
  11420. * src/SegmentMan.cc
  11421. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11422. Added std namespace to copy, remove_copy, back_inserter,
  11423. front_inserter.
  11424. * src/RequestGroupMan.cc
  11425. * src/DefaultPieceStorage.cc
  11426. * src/StreamFileAllocationEntry.cc
  11427. * src/BtFileAllocationEntry.cc
  11428. * src/RequestGroup.cc
  11429. * src/MetalinkEntry.cc
  11430. * src/DelegatingPeerListProcessor.cc
  11431. * src/DefaultBtRequestFactory.cc
  11432. * src/DefaultBtMessageDispatcher.cc
  11433. * src/version_usage.cc: Included <algorithm>
  11434. * src/main.cc
  11435. * src/MetalinkParserController.cc
  11436. * src/DefaultBtContext.cc
  11437. * src/DownloadEngineFactory.cc
  11438. * src/a2algo.h
  11439. Removed.
  11440. * test/StreamUriListParserTest.cc
  11441. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11442. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11443. ActivePeerConnectionCommand when it is given and
  11444. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11445. * src/ActivePeerConnectionCommand.{h, cc}
  11446. * src/BtSetup.cc
  11447. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11448. Only add socket to DownloadEngine's select routine when peer or
  11449. localhost is unchoked and interested. This lowers CPU usage a
  11450. little bit.
  11451. * src/PeerInteractionCommand.cc
  11452. * src/PeerAbstractCommand.{h, cc}
  11453. * src/BtInteractive.h
  11454. * src/DefaultBtInteractive.{h, cc}
  11455. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11456. Revert previous change because get_peers message is needed for
  11457. announce_peer anyway.
  11458. * src/DHTGetPeersCommand.cc
  11459. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11460. Request peers thought DHT only when download hasn't finished.
  11461. * src/DHTGetPeersCommand.cc
  11462. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11463. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11464. * src/DHTBucketRefreshTask.{h, cc}
  11465. * src/DHTSetup.cc
  11466. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11467. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11468. standard classes.
  11469. Included string.h where mem* function are used.
  11470. Added namespace aria2.
  11471. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11472. Create directory before saving DHT routing table.
  11473. Now ios::failure is now handled properly.
  11474. * src/DHTAutoSaveCommand.cc
  11475. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11476. Removed unnecessary cerr.
  11477. * src/DownloadEngine.cc
  11478. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11479. Catch exception inside DHTMessageReceiver::receiveMessage().
  11480. Log unknown message.
  11481. * src/DHTMessageReceiver.{h, cc}
  11482. * src/DHTMessageFactory.h
  11483. * src/DHTMessageFactoryImpl.{h, cc}
  11484. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11485. * src/DHTInteractionCommand.cc
  11486. * src/DHTUnknownMessage.{h, cc}
  11487. * test/DHTUnknownMessageTest.cc
  11488. * test/MockDHTMessageFactory.h
  11489. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11490. Commented out ip address comparison because a host can have multiple
  11491. ip addresses and it is hard to predict the hostname is resolved into
  11492. which one.
  11493. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11494. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11495. * po/Makefile.in: Removed since this is generated by configure.
  11496. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11497. Fixed compiler warning about redefinition of SIZE_MAX.
  11498. Use common.h instead of config.h directly here.
  11499. * src/Platform.{h, cc}
  11500. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11501. here.
  11502. * common.h
  11503. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11504. Updated gettext related files.
  11505. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11506. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11507. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11508. Added DHT functionality, compatible with mainline.
  11509. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11510. You may need to specify entry point to DHT network using
  11511. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11512. Use --dht-listen-port to specify port number. Make sure that your
  11513. firewall configuration can pass through UDP traffic to the port.
  11514. The routing table is saved in $HOME/.aria2/dht.dat.
  11515. * src/DHT*
  11516. * src/BNode.{h, cc}
  11517. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11518. particular torrent.
  11519. * src/Data.cc: Rewritten ctor.
  11520. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11521. --dht-entry-point.
  11522. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11523. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11524. ends, remove BtContext from DHTPeerAnnounceStorage.
  11525. * src/BtPortMessage.{h, cc}: Rewritten.
  11526. * src/message.h
  11527. * src/OptionHandlerImpl.cc
  11528. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11529. --dht-entry-point.
  11530. * src/Dictionary.{h, cc} (remove): New function.
  11531. * src/prefs.h
  11532. * src/DefaultBtMessageFactory.h
  11533. * src/BtHandshakeMessage.cc
  11534. * src/ActivePeerConnectionCommand.cc
  11535. * src/SocketCore.{h, cc}: Added datagram socket support.
  11536. * src/DefaultBtMessageFactory.cc
  11537. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11538. Create DHT commands.
  11539. * src/BtMessageFactory.h
  11540. * src/PeerMessageUtil.{h, cc}
  11541. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11542. Fixed the bug that log file is not written when configuration file doesn't exist.
  11543. This is caused by using Logger class before LogFactory is not configured.
  11544. BUG #1875079
  11545. * src/option_processing.cc
  11546. Warning message "configuration doesn't exist" is only printed when --conf is
  11547. given.
  11548. * src/option_processing.cc
  11549. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11550. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11551. ShaVisitor is now deprecated and slated to be removed.
  11552. * src/DefaultBtContext.cc
  11553. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11554. Externalize message to message.h
  11555. * src/Platform.cc
  11556. * src/message.h
  11557. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11558. Set default domain and default path to cookie.
  11559. * src/HttpResponse.cc
  11560. * src/CookieBox.{h, cc}
  11561. * src/CookieParser.{h, cc}
  11562. * test/CookieParserTest.cc
  11563. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11564. Added --no-conf and --conf-path command-line option.
  11565. --no-conf option disables loading aria2.conf file.
  11566. --conf-path option changes the configuration file path. The default
  11567. file path is $HOME/.aria2/aria2.conf
  11568. Added a warning message when the configuration file is not found.
  11569. * src/HelpItemFactory.cc
  11570. * src/option_processing.cc
  11571. * src/prefs.h
  11572. * src/usage_text.h
  11573. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11574. Added the message to inform users that other help categories are
  11575. available in -h option.
  11576. * src/version_usage.cc
  11577. * src/TagContainer.{h, cc}
  11578. * test/TagContainerTest.cc
  11579. * src/TaggedItem.{h, cc}
  11580. * test/TaggedItemTest.cc
  11581. * src/HelpItem.h
  11582. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11583. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11584. from PiecedSegment's ctor.
  11585. Previously Piece::getAllMissingBlockIndexes() is called from
  11586. PiecedSegment() but it is rather expensive since only first element is
  11587. used.
  11588. * src/PiecedSegment.cc
  11589. * src/Piece.{h, cc}
  11590. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11591. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11592. each time these functions are called.
  11593. * src/BitfieldMan.{h, cc}
  11594. * test/BitfieldManTest.cc
  11595. * src/array_fun.h
  11596. * test/array_funTest.cc
  11597. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11598. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11599. filtered. Removed unnecessary cast to int32_t.
  11600. * src/BitfieldMan.{h, cc}
  11601. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11602. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11603. payload length(4bytes) are received. This happens because lenbufLength
  11604. is not updated in this particular case and successive call of
  11605. receiveMessage() overwrites payload length with bytes recieved which
  11606. are payload body.
  11607. * src/PeerConnection.{h, cc}
  11608. * src/message.h
  11609. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11610. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11611. peer if there are peers that have same ipaddr and port.
  11612. I've experiened segmentation fault and "pure virtual function was
  11613. called" error.
  11614. * src/Peer.h
  11615. * test/PeerTest.cc
  11616. * src/DefaultPeerStorage.cc
  11617. * test/DefaultPeerStorageTest.cc
  11618. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11619. Removed a call to isPowerOf() because it is no longer necessary here
  11620. and a request block is not always power of 2.
  11621. BUG#1866924
  11622. * src/PeerMessageUtil.cc (checkLength)
  11623. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11624. Fixed the bug that always first found Segment is removed from
  11625. usedSegmentEntries. Removed unused functions.
  11626. * src/SegmentMan.{h, cc}
  11627. * test/SegmentManTest.cc
  11628. Fixed the bug that ServerHost is not removed.
  11629. * src/RequestGroup.cc
  11630. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11631. Fixed the bug that SegmentMan::completeSegment() is not called
  11632. even if Segment is complete when --lowest-speed-limit is enabled.
  11633. BUG#1864525
  11634. * src/DownloadCommand.{h, cc}
  11635. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11636. Fixed: hash algorithm 'sha1' is always used.
  11637. * src/DownloadCommand.cc (validatePieceHash)
  11638. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11639. Added --enable-peer-exchange command-line option.
  11640. * src/OptionHandlerFactory.cc
  11641. * src/HelpItemFactory.cc
  11642. * src/option_processing.cc
  11643. * src/usage_text.h
  11644. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11645. Move extension from BtRuntime to ExtensionMessageFactory, because
  11646. extension can be specified per peer, not per torrent.
  11647. * src/DefaultBtInteractive.cc
  11648. * src/BtRuntime.h
  11649. * src/ExtendedMessagingAware.h
  11650. * src/ExtensionMessageFactory.h
  11651. * src/DefaultExtensionMessageFactory.cc
  11652. * test/DefaultExtensionMessageFactoryTest.cc
  11653. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11654. Added categorized option help. Specify category using --help option.
  11655. Also added the ability to search options in forward match.
  11656. * src/HelpItem.{h, cc}
  11657. * test/HelpItemTest.cc
  11658. * src/HelpItemFactory.{h, cc}
  11659. * src/TagContainer.{h, cc}
  11660. * test/TagContainerTest.cc
  11661. * src/option_processing.cc
  11662. * src/prefs.h
  11663. * src/TaggedItem.{h, cc}
  11664. * test/TaggedItemTest.cc
  11665. * src/version_usage.cc
  11666. * src/help_tags.h
  11667. * src/usage_text.h
  11668. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11669. Fixed segmentation fault when bad torrent metainfo is parsed.
  11670. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11671. and then throw exception or skip it.
  11672. * src/DefaultBtContext.{h, cc}
  11673. * test/DefaultBtContextTest.cc
  11674. * src/AnnounceList.cc
  11675. * src/CompactPeerListProcessor.cc
  11676. * src/message.h
  11677. * src/DefaultBtAnnounce.{h, cc}
  11678. * test/DefaultBtAnnounceTest.cc
  11679. * src/BencodeVisitor.cc
  11680. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11681. Added missing "B"(=Byte). So now the message looks like this:
  11682. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11683. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11684. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11685. Show the seed ratio after torrent downloads.
  11686. For example, after torrent download completed and --seed-time and
  11687. --seed-ratio conditions are fulfilled, following message is printed
  11688. right after "Download complete: .....":
  11689. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11690. * src/RequestGroupMan.cc
  11691. * src/RequestGroup.{h, cc}
  11692. * src/message.h
  11693. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11694. Remove a defunct control file. A defunct control file means that while
  11695. it exists, but the corresponding download file is missing.
  11696. After its removal, a download restarts from the beginning.
  11697. * src/RequestGroup.cc
  11698. * src/message.h
  11699. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11700. Allocate bitfield in Peer when it is really used. More specifically,
  11701. bitfield in Peer is allocated after the connection is established and
  11702. deallocated when the connection is dropped.
  11703. Since 2 parameters(piece length and total length) was removed from the
  11704. constructor of Peer class, many test classes were modified accordingly.
  11705. See svn log for more detailed information.
  11706. * src/PeerInteractionCommand.cc
  11707. * src/CompactPeerListProcessor.cc
  11708. * src/Peer.cc
  11709. * src/DefaultPeerListProcessor.cc
  11710. * src/PeerListenCommand.cc
  11711. * src/PeerReceiveHandshakeCommand.cc
  11712. Fixed memory leak
  11713. * src/Piece.cc
  11714. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11715. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11716. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11717. command-line options.
  11718. * src/option_processing.cc
  11719. * src/ActivePeerConnectionCommand.cc
  11720. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11721. Send have message to peer if it already has the piece.
  11722. * src/BtHaveMessage.{h, cc}
  11723. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11724. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11725. port.
  11726. * src/DefaultPeerStorage.{h, cc}
  11727. * test/DefaultPeerStorageTest.cc
  11728. * src/HandshakeExtensionMessage.cc
  11729. * test/HandshakeExtensionMessageTest.cc
  11730. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11731. * src/PeerStorage.h
  11732. * test/MockPeerStorage.h
  11733. * src/PeerListenCommand.cc
  11734. * src/PeerReceiveHandshakeCommand.cc
  11735. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11736. Added --metalink-enable-unique-protocol option.
  11737. * src/Metalink2RequestGroup.cc
  11738. * src/option_processing.cc
  11739. * src/prefs.h
  11740. * src/version_usage.cc
  11741. * doc/aria2c.1.txt
  11742. * doc/aria2c.1
  11743. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11744. Allow a peer in incomingPeer to be added peers.
  11745. * src/DefaultPeerStorage.cc
  11746. * test/DefaultPeerStorageTest.cc
  11747. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11748. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11749. I could reproduce this bug in following procedure:
  11750. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11751. 2. Restart aria2.
  11752. 3. You see the download stopped around 99%.
  11753. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11754. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11755. If timeout is reached, then _nextCommand is unused and it may contains
  11756. segments and they won't be canceled. Actually, timeout is not needed
  11757. here because if the server dropped connection, then retry is made.
  11758. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11759. Added uTorrent compatible Peer Exchange.
  11760. * src/BencodeVisitor.{h, cc}
  11761. * test/BencodeVisitorTest.cc
  11762. * src/BtConstants.h
  11763. * src/BtContext.h: Added 'private' flag.
  11764. * src/BtExtendedMessage.{h, cc}
  11765. * test/BtExtendedMessageTest.cc
  11766. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11767. reserved field.
  11768. * test/BtHandshakeMessageTest.cc
  11769. * src/BtMessageFactory.h
  11770. * src/BtRegistry.h
  11771. * src/BtRuntime.h: This class holds default extension message IDs for
  11772. aria2. By default, aria2 uses ID 8 for ut_pex.
  11773. * src/DefaultBtContext.cc
  11774. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11775. When it is true, aria2 enables ut_pex. This value is set by
  11776. PeerInteractionCommand.
  11777. * src/DefaultBtMessageFactory.{h, cc}
  11778. * test/DefaultBtMessageFactoryTest.cc
  11779. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11780. handling to DefaultBtInteractive class.
  11781. * src/DefaultExtensionMessageFactory.{h, cc}
  11782. * test/DefaultExtensionMessageFactoryTest.cc
  11783. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11784. the container(peers and incomingPeers. The equality is determined by
  11785. Peer::id).
  11786. * test/DefaultPeerStorageTest.cc
  11787. * src/ExtensionMessage.h
  11788. * test/MockExtensionMessage.h
  11789. * src/ExtensionMessageFactory.h
  11790. * test/MockExtensionMessageFactory.h
  11791. * src/HandshakeExtensionMessage.{h, cc}
  11792. * test/HandshakeExtensionMessageTest.cc
  11793. * src/MetaEntry.h
  11794. * src/Peer.{h, cc}
  11795. * src/PeerInteractionCommand.cc
  11796. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11797. addIncomingPeer.
  11798. * src/PeerMessageUtil.{h, cc}
  11799. * src/PeerObject.h
  11800. * src/UTPexExtensionMessage.{h, cc}
  11801. * test/UTPexExtensionMessageTest.cc
  11802. * src/message.h
  11803. * src/prefs.h
  11804. Fixed the bug that returns incomplete data when it contains null
  11805. character. A convenient constructor was also added.
  11806. * src/Data.{h, cc}
  11807. Rewritten.
  11808. * src/CompactPeerListProcessor.cc
  11809. Fixed typos.
  11810. * src/message.h
  11811. * src/MetaFileUtil.cc
  11812. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11813. Added "Status Legend" label to the explanation text of 'stat' in
  11814. download result and moved it to the last. BUG#1848214
  11815. * src/RequestGroupMan.cc
  11816. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11817. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11818. * src/Makefie.am
  11819. * test/Makefile.am
  11820. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11821. Fixed the bug that prevents aria2 from loading cookie file when expire
  11822. value is greater than 2^31-1. BUG#1851066
  11823. * src/CookieBoxFactory.cc
  11824. * test/CookieBoxFactoryTest.cc
  11825. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11826. Fixed possible memory leak when an exception is thrown.
  11827. * src/XML2SAXMetalinkProcessor.cc
  11828. Added Expat support. If both libxml2 and Expat are installed, then
  11829. libxml2 is used by default.
  11830. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11831. ExpatMetalinkProcessor according to the configuration.
  11832. * src/ExpatMetalinkProcessor.{h, cc}
  11833. * src/main.cc: Removed libxml2 specific header and init/free function.
  11834. * src/MetalinkProcessorFactory.{h, cc}
  11835. * src/MetalinkHelper.cc
  11836. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11837. * src/MetalinkProcessor.h
  11838. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11839. MetalinkProcessorTest is used instead.
  11840. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11841. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11842. MetalinkProcessorFactory::newInstance().
  11843. * m4/libexpat.m4
  11844. * configure.ac: Added configuration options for libexpat.
  11845. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11846. Disabled -s option in metalink download.
  11847. * src/Metalink2RequestGroup.cc
  11848. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11849. If several protocols are available for a mirror in metalink file,
  11850. aria2 now use one of them. --metalink-preferred-protocol option was
  11851. added to specify the preference of protocol.
  11852. * src/AbstractCommand.cc
  11853. * src/OptionHandlerFactory.cc
  11854. * src/ServerHost.{h, cc}
  11855. * src/Metalink2RequestGroup.cc
  11856. * src/RequestGroup.{h, cc}
  11857. * test/RequestGroupTest.cc
  11858. * src/option_processing.cc
  11859. * src/prefs.h
  11860. * src/HttpResponseCommand.cc
  11861. * src/MetalinkResource.{h, cc}
  11862. * src/FtpNegotiationCommand.cc
  11863. * src/MetalinkEntry.{h, cc}
  11864. * src/MetalinkEntryTest.cc
  11865. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11866. Code cleanup and added debug log.
  11867. * src/PeerConnection.cc
  11868. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11869. Compiler error fix: applied the patch by Tiziano Mueller
  11870. * src/RequestGroup.cc
  11871. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11872. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11873. in stopped and completed event.
  11874. * src/AnnounceList.{h, cc}
  11875. * test/AnnounceListTest.cc
  11876. * src/DefaultBtAnnounce.cc
  11877. * test/DefaultBtAnnounceTest.cc
  11878. Sorted URLs.
  11879. * test/Metalink2RequestGroupTest.cc
  11880. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11881. Removed unnecessary string copy. Updated doc and corrected indentation.
  11882. * src/Base64.cc
  11883. Fixed compilation warnings
  11884. * test/DataTest.cc
  11885. * test/HttpRequestTest.cc
  11886. * test/MetaFileUtilTest.cc
  11887. * test/RequestTest.cc
  11888. * Release 0.12.0
  11889. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11890. Updated translations
  11891. * po/{de,fr,ja,nl,ru}.po
  11892. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11893. translations. Many thanks to translators.
  11894. * po/{ca,es,it,pt_BR,sv}.po
  11895. * po/LINGUAS
  11896. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11897. Added a notice about URL
  11898. * src/version_usage.cc
  11899. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11900. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11901. aria2 repeatedly sends stopped request when tracker returns error code.
  11902. * src/AnnounceList.cc
  11903. * test/AnnounceListTest.cc
  11904. * src/AnnounceTier.h
  11905. Added a message when ctrl-c is hit.
  11906. Now second ctrl-c is also handled in signal handler.
  11907. * src/RequestGroupMan.{h, cc}
  11908. * src/RequestGroup.{h, cc}
  11909. * src/MultiUrlRequestInfo.cc
  11910. * src/DownloadEngine.cc
  11911. * src/TrackerWatcherCommand.cc
  11912. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11913. Code cleanup
  11914. * src/Base64.cc (encode)
  11915. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11916. Changed Direct/IO enable/disable procesure in file allocation routine.
  11917. * src/SingleFileAllocationIterator.cc
  11918. (SingleFileAllocationIterator):
  11919. Disable directIO if offset is not multiple of 512.
  11920. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11921. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11922. Enable created SingleFileAllocationIterator's directIO.
  11923. * src/FileAllocationEntry.cc
  11924. (FileAllocationEntry): Enable directIO here.
  11925. (~FileAllocationEntry): Disable directIO here.
  11926. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11927. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11928. * src/Peer.{h, cc}
  11929. * src/DefaultPieceStorage.cc
  11930. * test/DefaultPieceStorageTest.cc
  11931. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11932. Rewritten direct I/O support routine
  11933. * src/SingleFileAllocationIterator.cc
  11934. * src/MultiDiskAdaptor.{h, cc}
  11935. * src/ByteArrayDiskWriter.h
  11936. * src/AbstractSingleDiskAdaptor.h
  11937. * src/AbstractDiskWriter.cc
  11938. * src/DefaultPieceStorage.cc
  11939. * src/DiskWriter.h
  11940. * src/BinaryStream.h
  11941. * src/IteratableChunkChecksumValidator.cc
  11942. * src/IteratableChecksumValidator.cc
  11943. * src/CheckIntegrityEntry.cc
  11944. * src/FileAllocationEntry.cc
  11945. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11946. Fixed typo
  11947. * src/version_usage.cc
  11948. Updated doc
  11949. * doc/aria2c.1.txt
  11950. * doc/aria2c.1
  11951. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11952. Fixed compile error without message digest support.
  11953. * src/FileMetalinkParserState.cc
  11954. * src/MetalinkParserController.{h, cc}
  11955. * test/XML2SAXMetalinkProcessorTest.cc
  11956. * test/MetalinkParserControllerTest.cc
  11957. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11958. Enable direct I/O support in checksum checking.
  11959. * src/IteratableChunkChecksumValidator.{h, cc}
  11960. * test/IteratableChunkChecksumValidatorTest.cc
  11961. * src/CheckIntegrityEntry.cc
  11962. * src/PieceHashCheckIntegrityEntry.cc
  11963. * src/IteratableChecksumValidator.{h, cc}
  11964. * src/BtCheckIntegrityEntry.cc: Added doc.
  11965. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11966. Added --allow-piece-length-change option.
  11967. * src/DefaultBtProgressInfoFile.cc
  11968. * test/DefaultBtProgressInfoFileTest.cc
  11969. * src/OptionHandlerFactory.cc
  11970. * src/option_processing.cc
  11971. * src/prefs.h
  11972. * src/version_usage.cc
  11973. * doc/aria2c.1.txt
  11974. * doc/aria2c.1
  11975. Fixed: duplicated result entry appears when exception is thrown in
  11976. RequestGroup::createInitiateConnectionCommand().
  11977. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11978. Add RequestGroup to _requestGroup after RequetGroup::
  11979. createInitiateConnectionCommand() succeeds.
  11980. Externalized message
  11981. * src/XML2SAXMetalinkProcessor.cc
  11982. * src/message.h
  11983. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11984. Forced download abort when received negative response from http/ftp
  11985. server.
  11986. * src/HttpResponseCommand.cc
  11987. * src/FtpNegotiationCommand.cc
  11988. * src/HttpResponse.cc
  11989. * src/FtpConnection.cc
  11990. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11991. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11992. the predecessor, Xml2MetalinkParser class.
  11993. I tested them against 94KB metalink file with 1234 chunk checksums.
  11994. The new one parsed it in 22msec, while it took 6000msec with old one.
  11995. * src/XML2SAXMetalinkProcessor.{h, cc}
  11996. * test/XML2SAXMetalinkProcessorTest.cc
  11997. * src/MetalinkParserController.{h, cc}
  11998. * test/MetalinkParserControllerTest.cc
  11999. * src/MetalinkParserState.h: Also added 16 subclasses.
  12000. * src/main.cc
  12001. * src/Metalink2RequestGroup.cc
  12002. * src/MetalinkHelper.cc
  12003. * src/MetalinkEntry.cc
  12004. * src/ChunkChecksum.h
  12005. Rewritten Base64 class for better performance.
  12006. * src/Base64.{h, cc}
  12007. * test/Base64Test.cc
  12008. * src/HttpRequest.cc
  12009. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12010. Fixed the bug#1841757: aria2 will connect to server to only get
  12011. file size.
  12012. * src/StreamFileAllocationEntry.cc
  12013. * src/option_processing.cc
  12014. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12015. downloads.
  12016. * src/FtpNegotiationCommand.cc
  12017. Suppressed wrong message when finding PreDownloadHandler
  12018. * src/RequestGroup.cc
  12019. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12020. Updated usage
  12021. * src/version_usage.cc
  12022. Updated man page
  12023. * doc/aria2c.1.txt
  12024. * doc/aria2c.1
  12025. Updated po files
  12026. * po/aria2c.pot
  12027. * po/*.po
  12028. * po/*.gmo
  12029. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12030. Eliminated g++-4.2 warning
  12031. * src/DownloadHandlerConstants.{h, cc}
  12032. * src/Util.cc
  12033. * test/MetaFileUtilTest.cc
  12034. * test/PStringBuildVisitorTest.cc
  12035. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12036. * src/RequestGroup.cc
  12037. * src/BtCheckIntegrityEntry.cc
  12038. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12039. Fixed a2io.h
  12040. * src/a2io.h
  12041. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12042. Added direct I/O support. The current implementation uses O_DIRECT,
  12043. which is not posix standard and is tested on linux 2.6.21.
  12044. Currently only file allocation uses direct I/O.
  12045. * src/SingleFileAllocationIterator.{h, cc}
  12046. * test/SingleFileAllocationIteratorTest.cc
  12047. * src/MultiFileAllocationIterator.{h, cc}
  12048. * test/MultiFileAllocationIteratorTest.cc
  12049. * src/BinaryStream.h
  12050. * src/DiskWriter.h
  12051. * src/AbstractDiskWriter.{h, cc}
  12052. * src/ByteArrayDiskWriter.h
  12053. * src/DiskAdaptor.h
  12054. * src/AbstractSingleDiskAdaptor.{h, cc}
  12055. * src/MultiDiskAdaptor.{h, cc}
  12056. * src/FileAllocationEntry.cc
  12057. * src/Util.{h, cc}
  12058. * src/OptionHandlerFactory.cc
  12059. * src/prefs.h
  12060. * src/version_usage.cc
  12061. * src/option_processing.cc
  12062. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12063. handleException.
  12064. * src/MultiFileAllocationIterator.cc
  12065. Added EINTR handling
  12066. * src/SocketCore.cc
  12067. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12068. Updated usage
  12069. * src/version_usage.cc
  12070. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12071. Applied Ross's patch for MinGW port.
  12072. * src/DownloadEngine.h
  12073. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12074. Set Content-Type to SingleFileDownloadContext when http response is
  12075. received.
  12076. * src/HttpResponseCommand.cc
  12077. * src/HttpResponse.{h, cc}
  12078. * test/HttpResponseTest.cc
  12079. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12080. Rewritten to add content-type support.
  12081. * src/DownloadHandler.{h, cc}
  12082. * src/BtPostDownloadHandler.{h, cc}
  12083. * test/BtPostDownloadHandlerTest.cc
  12084. * src/MetalinkPostDownloadHandler.{h, cc}
  12085. * test/MetalinkPostDownloadHandlerTest.cc
  12086. * src/PostDownloadHandler.{h, cc}
  12087. * src/DownloadHandlerConstants.{h, cc}
  12088. * src/RequestGroup.cc
  12089. * src/HttpResponseCommand.cc
  12090. * src/FtpNegotiationCommand.cc
  12091. * src/SingleFileDownloadContext.{h, cc}
  12092. * src/RequestGroup.h
  12093. * src/RequestGroupCriteria.h
  12094. * src/ContentTypeRequestGroupCriteria.h
  12095. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12096. If it is give, metalink/torrent file is not written to the disk, but
  12097. just is kept in memory. Parsing is occurred on memory.
  12098. * src/MetalinkHelper.{h, cc}
  12099. * src/MetalinkProcessor.h
  12100. * src/Xml2MetalinkProcessor.{h, cc}
  12101. * test/Xml2MetalinkProcessorTest.cc
  12102. * src/DownloadHandlerFactory.{h, cc}
  12103. * test/DownloadHandlerFactoryTest.cc
  12104. * src/PreDownloadHandler.{h, cc}
  12105. * src/OptionHandlerFactory.cc
  12106. * src/DefaultBtContext.{h, cc}
  12107. * test/DefaultBtContextTest.cc
  12108. * src/version_usage.cc
  12109. * src/Metalink2RequestGroup.{h, cc}
  12110. * src/RequestGroup.{h, cc}
  12111. * src/a2functional.h
  12112. * test/a2functionalTest.cc
  12113. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12114. * src/OptionHandlerImpl.h
  12115. * src/prefs.h
  12116. * src/Util.{h, cc}
  12117. * test/UtilTest.cc
  12118. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12119. memory usage.
  12120. * src/RequestGroupMan.{h, cc}
  12121. * src/DownloadEngine.cc
  12122. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12123. WeakHandle to SharedHandle because WeakHandle could be null.
  12124. * src/RequestGroup.{h, cc}
  12125. * src/DownloadEngineFactory.cc
  12126. * src/DownloadResult.h
  12127. Set totalLength after download finished
  12128. * src/UnknownLengthPieceStorage.{h, cc}
  12129. Keep torrent file specified in metalink in memory.
  12130. * src/Metalink2RequestGroup.cc
  12131. * src/BtDependency.cc
  12132. * src/TrueRequestGroupCriteria.h
  12133. Fixed the bug: seekg is used where seekp should be used.
  12134. * src/ByteArrayDiskWriter.cc
  12135. * test/ByteArraydiskWriterTest.cc
  12136. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12137. Fixed syntax error
  12138. * test/SequenceTest.cc
  12139. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12140. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12141. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12142. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12143. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12144. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12145. Added the check to see whether ares_host_callback accepts timeouts
  12146. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12147. * src/NameResolver.{h, cc}
  12148. * m4/libcares.m4
  12149. * configure.ac: Set C++ for language choice.
  12150. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12151. Fixed: compilation fails without c-ares/ares
  12152. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12153. Generate http/ftp commands only when download is incomplete.
  12154. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12155. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12156. Corrected typo. Examples are removed since they are available in man
  12157. page.
  12158. * src/version_usage.cc
  12159. Updated man page.
  12160. * doc/aria2c.1
  12161. * doc/aria2c.1.txt
  12162. * doc/makeman: Commented out sed command.
  12163. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12164. Throw DlAbortEx when a remote file is not found.
  12165. * src/HttpResponse.cc
  12166. * src/FtpNegotiationCommand.cc
  12167. * src/message.h
  12168. Overwrite an existing file if --allow-overwrite=true is given.
  12169. * src/RequestGroup.cc
  12170. Removed unused functions
  12171. * src/AbstractCommand.h
  12172. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12173. Removed 'extern' from 'extern typedef ...' in src/*.h
  12174. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12175. Updated usage
  12176. * src/version_usage.cc
  12177. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12178. Trim announce URL
  12179. * src/DefaultBtContext.cc
  12180. * test/ShaVisitorTest.cc
  12181. Trim argument s. Give trimed s to exception constructor.
  12182. * src/Util.cc (parseInt)(parseLLInt)
  12183. * test/UtilTest.cc
  12184. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12185. Set precision back to 1.
  12186. * src/ConsoleStatCalc.cc (calculateStat)
  12187. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12188. Replaced strtol with Util::parseInt
  12189. * src/ChunkedEncoding.cc
  12190. * src/HttpConnection.cc
  12191. * src/CookieBoxFactory.cc
  12192. * src/ParameterizedStringParser.cc
  12193. * src/Util.cc
  12194. * test/UtilTest.cc
  12195. * test/OptionHandlerTest.cc
  12196. * src/Request.cc
  12197. Throw exception when empty string is given. The message for exception
  12198. changed.
  12199. * src/Util.cc (parseInt)(parseLLInt)
  12200. * src/message.h
  12201. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12202. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12203. set to 1.
  12204. * src/ConsoleStatCalc.cc (calculateStat)
  12205. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12206. Preallocate non-requested file which is adjacent forward to requested
  12207. file('requested' files means the files given in --select-file option)
  12208. if they share a same piece.
  12209. This fixes long pause in the file system which doesn't support sparse
  12210. files like FAT32 while downloading.
  12211. * src/MultiFileAllocationIterator.{h, cc}
  12212. * test/MultiFileAllocationIteratorTest.cc
  12213. * src/FileEntry.{h, cc}
  12214. Removed unused _option.
  12215. * src/MultiDiskAdaptor.h
  12216. * test/MultiDiskAdaptorTest.cc
  12217. * src/DefaultPieceStorage.cc
  12218. Set the default value of --seed-ratio to 1.0.
  12219. If 0.0 is given, then seeding continues regardless of share ratio.
  12220. * src/version_usage.cc
  12221. * src/option_processing.cc
  12222. * src/BtSetup.cc
  12223. * doc/aria2c.1.txt
  12224. * doc/aria2c.1
  12225. Fixed: Selective download is not working in BitTorrent
  12226. * src/RequestGroup.cc
  12227. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12228. * src/PieceStorage.h
  12229. * test/MockPieceStorage.h
  12230. * src/UnknownLengthPieceStorage.h
  12231. * src/DefaultPieceStorage.{h, cc}
  12232. * src/Metalink2RequestGroup.cc
  12233. * src/RequestGroup.cc
  12234. * src/Sequence.h
  12235. * test/SequenceTest.cc
  12236. * src/IntSequence.h
  12237. * src/message.h
  12238. * src/Util.{h, cc}
  12239. * test/UtilTest.cc
  12240. Added new function 'parse' to catch exception thrown by subclass's
  12241. parseArg
  12242. * src/OptionHandler.h
  12243. * src/OptionParser.cc
  12244. * src/NameMatchOptionHandler.h
  12245. * src/OptionHandlerImpl.h
  12246. * test/OptionHandlerTest.cc
  12247. Added IntegerRangeOptionHandler. Used for --listen-port and
  12248. --select-file. Now --listen-port accepts range of port.
  12249. * src/OptionHandlerFactory.cc
  12250. * src/version_usage.cc
  12251. * src/OptionHandlerImpl.h
  12252. * src/option_processing.cc
  12253. * src/BtSetup.cc
  12254. * src/PeerListenCommand.{h, cc}
  12255. * doc/aria2c.1.txt
  12256. * doc/aria2c.1
  12257. Implemented operator< for Exception class to provide easy way to print
  12258. exception stack trace.
  12259. * src/Exception.{h, cc}
  12260. * src/main.cc
  12261. * src/option_processing.cc
  12262. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12263. * src/version_usage.cc
  12264. (showVersion): Reworked.
  12265. (showUsage): Added examples.
  12266. Removed Hint for total length and file name.
  12267. * src/Metalink2RequestGroup.cc
  12268. * src/RequestGroup.{h, cc}
  12269. * src/HttpResponseCommand.cc
  12270. * src/FtpNegotiationCommand.cc
  12271. Now --follow-torrent and --follow-metalink option work properly.
  12272. * src/RequestGroup.cc
  12273. Updated man page
  12274. * doc/aria2c.1.txt
  12275. * doc/aria2c.1
  12276. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12277. Removed.
  12278. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12279. Use Segment::operator==()
  12280. * src/HttpConnection.cc
  12281. * src/Segment.h
  12282. Updated usage
  12283. * src/version_usage.cc
  12284. Added EINTR treatment.
  12285. * src/SocketCore.cc
  12286. * src/AbstractDiskWriter.cc
  12287. Rewritten.
  12288. * src/Util.cc (rangedFileCopy)
  12289. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12290. Fixed typo.
  12291. * src/version_usage.cc
  12292. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12293. Implemented. Now -c option works fine.
  12294. * src/DefaultPieceStorage.cc (markPiecesDone)
  12295. * test/DefaultPieceStorageTest.cc
  12296. Removed.
  12297. * src/SegmentMan.{h, cc}
  12298. (markAllPiecesDone)
  12299. (markPieceDone)
  12300. Synchronized po files with
  12301. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12302. * src/fr.po
  12303. * src/ru.po
  12304. * src/de.po
  12305. * src/ja.po
  12306. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12307. Added ifdef and some modifications to compile without BitTorrent,
  12308. Metalink, MessageDigest
  12309. support.
  12310. * src/PieceHashCheckIntegrityEntry.cc
  12311. * src/MetalinkEntry.h
  12312. * src/version_usage.cc
  12313. * src/main.cc
  12314. * src/DownloadEngine.{h, cc}
  12315. * src/Metalink2RequestGroup.cc
  12316. * src/Peer.cc
  12317. * src/RequestGroup.cc
  12318. * src/MetalinkHelper.cc
  12319. * test/DefaultPieceStorageTest.cc
  12320. * test/MetalinkPostDownloadHandlerTest.cc
  12321. * test/Metalink2RequestGroupTest.cc
  12322. Hide TOTAL SPD when all downloads complete.
  12323. * src/ConsoleStatCalc.cc
  12324. Log target system information.
  12325. * src/main.cc
  12326. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12327. Now --metalink-location accepts a comma-deliminated list of locations.
  12328. * src/MetalinkEntry.{h, cc}
  12329. * test/MetalinkEntryTest.cc
  12330. * src/version_usage.cc
  12331. * src/Metalink2RequestGroup.cc
  12332. * src/Xml2MetalinkProcessor.cc
  12333. * test/Xml2MetalinkProcessorTest.cc
  12334. * doc/aria2c.1.txt
  12335. * doc/aria2c.1
  12336. * src/Util.cc (toUpper)(toLower): Rewritten.
  12337. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12338. Added the ability to detect duplicate download entry which is about to
  12339. download the same file other RequestGroup is downloading.
  12340. * src/RequestGroup.cc
  12341. * src/HttpResponseCommand.cc
  12342. * src/FtpNegotiationCommand.cc
  12343. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12344. Recalculates download progress when loading a control file,
  12345. if the piece length of DownloadContext is different from the one saved
  12346. in the control file. Currently in-flight pieces are ignored.
  12347. * src/DefaultBtProgressInfoFile.cc
  12348. * test/DefaultBtProgressInfoFileTest.cc
  12349. * src/Util.{h, cc}
  12350. * test/UtilTest.cc
  12351. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12352. Do not rotate tiers in announce-list.
  12353. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12354. AnnounceList::allTiersFailed() used instead to detect whether all
  12355. tiers are tried and failed.
  12356. * test/DefaultBtAnnounceTest.cc
  12357. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12358. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12359. * test/AnnounceListTest.cc
  12360. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12361. clause. Catch RecoverableException instead of DlRetryEx instead.
  12362. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12363. Implemented checksum validation feature(1 checksum for each file)
  12364. The validation takes place after the download.
  12365. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12366. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12367. * src/CheckIntegrityCommand.cc: Changed log message.
  12368. * src/Metalink2RequestGroup.cc: Set checksum to
  12369. SingleFileDownloadContext.
  12370. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12371. PieceHashCheckIntegrity class.
  12372. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12373. PieceHashCheckIntegrity class.
  12374. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12375. * src/IteratableValidator.h: New class.
  12376. * src/message.h
  12377. * src/CheckIntegrityEntry.{h, cc}
  12378. * src/IteratableChunkChecksumValidator.{h, cc}
  12379. * src/SingleFileDownloadContext.h
  12380. * src/DownloadCommand.cc
  12381. --allow-overwrite=true is no longer needed to check file integrity
  12382. before download in BitTorrent download.
  12383. * src/RequestGroup.cc (getInitialCommand)
  12384. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12385. throws exception.
  12386. * src/RequestGroupMan.cc (getInitialCommands)
  12387. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12388. urlencode the given url inside Request::parseUrl(...)
  12389. * src/Request.{h, cc}
  12390. * src/Util.{h, cc}
  12391. * test/RequestTest.cc
  12392. Removed #!metalink3! notation support because it is deleted from
  12393. the metalink specification.
  12394. * src/Request.{h, cc}
  12395. * test/RequestTest.cc
  12396. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12397. Don't connect server before checking file integrity at startup, if
  12398. filesize and output file path are known.
  12399. * src/AbstractCommand.cc
  12400. * src/StreamFileAllocationEntry.cc
  12401. * src/Metalink2RequestGroup.cc
  12402. * src/RequestGroup.{h, cc}
  12403. * src/HttpResponseCommand.cc
  12404. * src/FtpNegotiationCommand.cc
  12405. Added DownloadFailureException. If it is thrown, RequestGroup should
  12406. halt.
  12407. * src/AbstractCommand.cc
  12408. * src/DownloadFailureException.h
  12409. * src/RequestGroup.cc
  12410. Catch RecoverableException, instead of DlAbortEx.
  12411. * src/RequestGroupMan.cc
  12412. * src/FillRequestGroupCommand.cc
  12413. * src/MetaFileUtil.cc
  12414. * src/IteratableChunkChecksumValidator.cc
  12415. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12416. getGID())
  12417. * src/CheckIntegrityCommand.cc
  12418. * src/message.h
  12419. Print gid instead of idx.
  12420. * src/RequestGroupMan.cc
  12421. Removed exception throwers declaration.
  12422. * src/DirectDiskAdaptor.{h, cc}
  12423. * src/SocketCore.{h, cc}
  12424. * src/MultiDiskAdaptor.{h, cc}
  12425. * src/HttpConnection.{h, cc}
  12426. * src/HttpResponse.{h, cc}
  12427. * src/DiskAdaptor.{h, cc}
  12428. * src/CopyDiskAdaptor.{h, cc}
  12429. * src/MultiDiskAdaptor.{h, cc}
  12430. * src/HttpHeaderProcessor.{h, cc}
  12431. * src/AbstractSingleDiskAdaptor.{h, cc}
  12432. * src/Util.{h, cc}
  12433. * test/UtilTest.cc
  12434. * src/DefaultDiskWriter.{h, cc}
  12435. * src/FtpConnection.{h, cc}
  12436. * src/AbstractDiskWriter.{h, cc}
  12437. Removed duplicate code.
  12438. * src/StreamCheckIntegrityEntry.cc
  12439. Removed unnecessary include.
  12440. * src/DiskWriter.h
  12441. Included Exception.h
  12442. * src/option_processing.cc
  12443. Included 2 files and added doc
  12444. * src/TrackerWatcherCommand.cc
  12445. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12446. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12447. Changed CheckIntegrityEntry interface so that it can define
  12448. the action when all the chunk checksums are valid.
  12449. * src/CheckIntegrityEntry.h
  12450. * src/StreamCheckIntegrityEntry.{h, cc}
  12451. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12452. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12453. to exit rather than doing seeding. So, it would be good to toggle this
  12454. behavior.
  12455. * src/CheckIntegrityCommand.cc
  12456. * src/AbstractCommand.cc
  12457. * src/RequestGroup.cc
  12458. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12459. Reflect the download length of in-flight pieces.
  12460. It makes the download length readout more precise.
  12461. * src/DefaultPieceStorage.{h, cc}
  12462. * test/DefaultPieceStorageTest.cc
  12463. * src/a2functional.h
  12464. * test/a2functionalTest.cc
  12465. Lower CPU load when --max-download-limit is used.
  12466. There is up and down in speed indicator when enabling
  12467. http-pipelining but a download goes well. I think the problem is that
  12468. because http-pipelining is enabled, DownloadCommand is created for
  12469. each segment and in its constructor, PeerStat::downloadStart() is
  12470. called. In PeerStat::downloadStart(), speed calculation object is
  12471. reseted, which makes download speed zero.
  12472. * src/DownloadCommand.cc
  12473. Rewritten using accumulate.
  12474. * src/RequestGroupMan.cc (calculateStat)
  12475. Code clearnup.
  12476. * src/FtpNegotiationCommand.cc
  12477. * src/HttpResponseCommand.cc
  12478. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12479. Fixed: Can not resume: aria2 reports download already finished.
  12480. * src/AbstractCommand.{h, cc}
  12481. * src/HttpResponseCommand.cc
  12482. * src/FtpNegotiateCommand.cc
  12483. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12484. Now a file is stored in the directory specified in .metalnk file
  12485. (file[@name]).
  12486. * src/Metalink2RequestGroup.cc
  12487. Create the directory structure when opening the file if it doesn't
  12488. exist.
  12489. * src/AbstractDiskWriter.cc
  12490. * src/Util.{h, cc}
  12491. * src/File.h
  12492. * test/UtilTest.cc
  12493. Removed file name comparison
  12494. * src/Metalink2RequestGroup.cc
  12495. * src/HttpResponseCommand.cc
  12496. Rewritten using Util::mkdirs()
  12497. * src/FileEntry.cc (setupDir)
  12498. * test/FileEntryTest.cc
  12499. Updated doc
  12500. * src/SingleFileDownloadContext.h
  12501. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12502. Now SleepCommand dispatches nextCommand when halt is requested.
  12503. It avoids a possible long wait after hitting CTRL-C.
  12504. * src/SleepCommand.{h, cc}
  12505. * src/RequestGroupAware.{h, cc}
  12506. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12507. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12508. to open listen port, then remove the port number from the tracker
  12509. request.
  12510. * src/DefaultBtAnnounce.cc
  12511. * test/DefaultBtAnnounceTest.cc
  12512. * test/MockPieceStorage.h
  12513. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12514. them more testable.
  12515. * src/DefaultBtAnnounce.{h, cc}
  12516. * src/DefaultBtContext.{h, cc}
  12517. * src/Util.{h, cc}
  12518. * test/DefaultBtAnnounceTest.cc
  12519. * test/DefaultBtContextTest.cc
  12520. * test/UtilTest.cc
  12521. Added 'B' to upload bytes readout.
  12522. * src/ConsoleStatCalc.cc
  12523. Now the listen port for BitTorrent download is opened when it is
  12524. needed.
  12525. * src/DownloadEngineFactory.cc
  12526. * src/BtSetup.{h, cc}
  12527. * src/PeerListenCommand.{h, cc}
  12528. Now an exception thrown while parsing tracker response is now logged.
  12529. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12530. called, which means no retry is made in this case, assuming a tracker
  12531. has a problem.
  12532. * src/TrackerWatcherCommand.cc
  12533. Fixed: downloading a file whose length is unkown fails.
  12534. * src/DownloadCommand.cc
  12535. Simplified prepareForNextSegment()
  12536. * src/DownloadCommand.cc
  12537. Updated
  12538. * po/POTFILES.in
  12539. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12540. Re-implemented a file listing for Metalink, which was dropped while
  12541. http/ftp/torrent integration was being implemented.
  12542. * src/MetalinkHelper.{h, cc}: New class.
  12543. * test/MetalinkHelperTest.cc
  12544. * src/main.cc
  12545. * src/Metalink2RequestGroup.cc
  12546. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12547. Added the ability to display the detailed torrent file information.
  12548. Now -S option gives not only a file listing, but also total download
  12549. length, info hash, announce URI, piece length, the number of pieces,
  12550. and mode(single or multi-torrent).
  12551. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12552. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12553. KiB)
  12554. * test/UtilTest.cc
  12555. * src/main.cc
  12556. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12557. Added ftp://USER:PASSWD@Servername automatic parsing.
  12558. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12559. _password. Recognize username and password in URI.
  12560. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12561. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12562. * src/RequestFactory.{h, cc}: Removed.
  12563. * src/AuthConfigFactory.{h, cc}: New class.
  12564. * src/FtpConnection.cc: Use AuthConfigFactory.
  12565. * src/HttpRequest.cc: Use AuthConfigFactory.
  12566. * test/HttpRequestTest.cc: Updated.
  12567. * test/RequestTest.cc: Updated.
  12568. * test/AuthConfigFactoryTest.cc: New class.
  12569. * test/RequestFactoryTest.cc: Removed.
  12570. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12571. Use RequestGroup::allDownloadFinished() to decide whether the control
  12572. file should be removed or saved.
  12573. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12574. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12575. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12576. Use File::renameTo()
  12577. * src/DefaultBtProgressInfoFile.cc
  12578. Added --no-file-allocation-limit command-line option.
  12579. * src/version_usage.cc
  12580. * src/option_processing.cc
  12581. * src/OptionHandlerFactory.cc
  12582. * src/RequestGroup.{h, cc}
  12583. * src/BtCheckIntegrityEntry.cc
  12584. * src/StreamCheckIntegrityEntry.cc
  12585. * src/prefs.h
  12586. * doc/aria2c.1.txt
  12587. * doc/aria2c.1
  12588. Now prealloc is the default value for --file-allocation option.
  12589. * src/version_usage.cc
  12590. * src/option_processing.cc
  12591. * doc/aria2c.1.txt
  12592. * doc/aria2c.1
  12593. Don't URL-encode user-agent.
  12594. * src/HttpRequest.cc
  12595. Updated translations
  12596. * po/LINGUAS: Added nl for Dutch translation.
  12597. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12598. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12599. * po/POTFILES.in: Updated.
  12600. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12601. Added the ability to recognize url-list in a torrent file.
  12602. The retrieved URLs are attached to the corresponding FileEntry.
  12603. * src/DefaultBtContext.{h, cc}
  12604. * src/FileEntry.{h, cc}
  12605. * test/DefaultBtContextTest.cc
  12606. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12607. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12608. after the download finishes.
  12609. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12610. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12611. the data smaller than block length.
  12612. A block length can be specified by constructor's argument.
  12613. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12614. Get a missing piece in the range of given FileEntry. This function is
  12615. not used in the program yet.
  12616. * src/Util.h: Added some macros.
  12617. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12618. Added HTTP/1.1 keep alive and pipelining support.
  12619. See --enable-http-keep-alive and --enable-http-pipelining option.
  12620. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12621. Segment.
  12622. * src/HttpDownloadCommand.{h, cc}
  12623. * src/OptionHandlerFactory.cc
  12624. * src/HttpConnection.{h, cc}
  12625. * src/version_usage.cc
  12626. * src/HttpInitiateConnectionCommand.cc
  12627. * src/FtpInitiateConnectionCommand.cc
  12628. * src/Segment.h
  12629. * src/HttpRequestCommand.{h, cc}
  12630. * src/option_processing.cc
  12631. * src/prefs.h
  12632. * src/HttpResponseCommand.cc
  12633. * src/SegmentMan.{h, cc}
  12634. * src/FtpNegotiateCommand.cc
  12635. * src/HttpProxyResponseCommand.cc
  12636. * src/Request.cc
  12637. * src/HttpRequest.cc
  12638. * src/DownloadCommand.cc
  12639. * test/HttpRequestTest.cc
  12640. * test/RequestTest.cc
  12641. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12642. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12643. finished.
  12644. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12645. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12646. catching it inside the method.
  12647. When no file entry is found in a metalink without querying user
  12648. preferences, throw the exception with the error message that suggests
  12649. metalink file is probably broken.
  12650. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12651. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12652. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12653. processed.
  12654. * src/RequestGroupMan.cc (removeStoppedGroup)
  12655. Added debug message.
  12656. * src/BtPostDownloadHandler.cc
  12657. * src/MetalinkPostDownloadHandler.cc
  12658. * src/PostDownloadHandler.{h, cc}
  12659. * src/RequestGroup.cc
  12660. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12661. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12662. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12663. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12664. stops and there are any unfinished or in-progress downloads.
  12665. Added the legend of "stat".
  12666. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12667. Throw exception when chunck checksum verification fails.
  12668. * src/DownloadCommand.cc (validatePieceHash): New function.
  12669. * src/PiecedSegment.{h, cc} (clear): New function.
  12670. * src/GrowSegment.{h, cc} (clear): New function.
  12671. * src/Segment.h (clear): New function.
  12672. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12673. * test/SegmentTest.cc
  12674. * test/GrowSegmentTest.cc
  12675. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12676. Do not send referer when redirected.
  12677. * src/Request.cc (redirectUrl)
  12678. * test/RequestTest.cc
  12679. * test/HttpRequestTest.cc
  12680. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12681. Implemented BitTorrent/http/ftp integrated download.
  12682. I've rewritten lots of files and now some headers have forward
  12683. class declarations to reduce compile time.
  12684. The implementation is extremely alpha stage, I recommend to use this
  12685. for testing purpose only.
  12686. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12687. Fixed the compilation error on 64bit platform.
  12688. * test/HttpHeaderProcessorTest.cc
  12689. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12690. Merged Ross's patch that fixes compilation problem in MinGW
  12691. * test/DefaultBtProgressInfoFileTest.cc
  12692. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12693. Updated fr.po by sebone
  12694. * po/fr.po
  12695. Updated man page.
  12696. * doc/aria2c.1.txt
  12697. * Release 0.11.3
  12698. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12699. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12700. failure in Metalink.
  12701. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12702. Automatically save *.aria2 control file of http/ftp download in every
  12703. 60 seconds.
  12704. * src/AutoSaveCommand.{h, cc}: New class.
  12705. * src/TimeBasedCommand.{h, cc}: New class.
  12706. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12707. Disable parameterized URI support by default. Added -P option to
  12708. enable the feature.
  12709. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12710. * src/OptionHandlerFactory.cc
  12711. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12712. Updated Japanese translation.
  12713. * po/ja.po
  12714. Updated man page.
  12715. * doc/aria2c.1.txt
  12716. * Release 0.11.3-rc
  12717. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12718. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12719. it is successful, then renamed to *.aria2.
  12720. This prevents *.aria2 file from being truncated or corrupted when
  12721. file system becomes out of space.
  12722. * src/DefaultBtProgressInfoFile.cc (save)
  12723. * src/SegmentMan.cc (save)
  12724. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12725. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12726. Reduced the fragmentation of bitfield in http/ftp download.
  12727. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12728. * test/BitfieldManTest.cc
  12729. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12730. Added the ability to disable segmented download in .metalink.
  12731. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12732. 'url' tag.
  12733. * src/MetalinkEntry.{h, cc}
  12734. * src/RequestResource.{h, cc}
  12735. * src/MetalinkRequestInfo.cc
  12736. * src/Xml2MetalinkProcessor.cc
  12737. * test/Xml2MetalinkProcessorTest.cc
  12738. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12739. Added parameterized URI support.
  12740. * src/main.cc: -Z option added.
  12741. * src/OptionHandlerFactory.cc
  12742. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12743. * src/PStringDatum.h: New class.
  12744. * src/PStringSegment.{h,cc}: New class.
  12745. * src/PStringNumLoop.h: New class.
  12746. * src/PStringSelect.h: New class.
  12747. * src/NumberDecorator.h: New class.
  12748. * src/FixedWidthNumberDecorator.h: New class.
  12749. * src/AlphaNumberDecorator.h: New class.
  12750. * src/PStringVisitor.h: New class.
  12751. * src/PStringBuildVisitor.{h,cc}: New class.
  12752. * src/ParameterizedStringParser.{h,cc}: New class.
  12753. * src/Util.{h,cc}
  12754. (isNumber): New function.
  12755. (isLowercase): New function.
  12756. (isUppercase): New function.
  12757. (alphaToNum): New function.
  12758. * test/ParameterizedStringParserTest.cc: New class.
  12759. * test/AlphaNumberDecoratorTest.cc: New class.
  12760. * test/PStringBuildVisitorTest.cc: New class.
  12761. * test/UtilTest.cc
  12762. (testIsNumber): New function.
  12763. (testIsLowercase): New function.
  12764. (testIsUppercase): New function.
  12765. (testAlphaToNum): New function.
  12766. Added '\n' after the error message
  12767. * src/RequestInfo.h (printDownloadAbortMessage)
  12768. Added auto file renaming feature in http(s)/ftp download.
  12769. * src/main.cc: Added --auto-file-renaming command-line option.
  12770. * src/OptionHandlerFactory.cc
  12771. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12772. * src/RequestGroup.{h, cc}
  12773. (shouldCancelDownloadForSafety): Rewritten
  12774. (tryAutoFileRenaming): New function.
  12775. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12776. * src/HttpResponseCommand.cc
  12777. (executeInternal): Removed the call to RequestGroupMan::
  12778. isSameFileBeingDownloaded()
  12779. * src/FtpNegotiateCommand.cc
  12780. (recvSize): Removed the call to RequestGroupMan::
  12781. isSameFileBeingDownloaded()
  12782. * test/RequestGroupTest.cc: New class.
  12783. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12784. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12785. IO.
  12786. * src/DefaultBtProgressInfoFile.cc
  12787. * src/MetaFileUtil.cc
  12788. * src/SimpleLogger.cc
  12789. * src/SegmentMan.cc
  12790. * src/Util.cc
  12791. * src/Platform.cc
  12792. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12793. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12794. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12795. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12796. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12797. Fixed the bug that prevents file allocation is not done when
  12798. dowloading multi-torrent file.
  12799. * src/AbstractDiskWriter.cc (openFile)
  12800. Increase the maximum number of -j option from 15 to 45.
  12801. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12802. Added fr.po, thanks to Charles Landemaine.
  12803. * po/fr.po
  12804. * po/LINGUAS
  12805. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12806. gcc 3.4.4 support:
  12807. * src/DefaultBtContext.cc: int32_t -> int
  12808. * src/main.cc: int -> int32_t, int32_t -> int
  12809. * src/messageDigest.h: uint32_t -> unsigned int
  12810. * src/NameResolver.h: int32_t -> int
  12811. * src/PeerConnection.cc: int -> int32_t
  12812. * src/SpeedCalc.cc: int32_t -> int
  12813. * src/TrackerUpdateCommand.h: int -> int32_t
  12814. * src/Util.cc: int32_t -> int
  12815. * src/Util.h: int32_t -> int
  12816. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12817. * test/AnnounceListTest.cc: int -> int32_t
  12818. * test/ChunkedEncodingTest.cc: int -> int32_t
  12819. * test/DataTest.cc: int -> int32_t
  12820. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12821. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12822. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12823. * test/FeatureConfigTest.cc: int -> int32_t
  12824. * test/MetalinkEntryTest.cc: int -> int32_t
  12825. * test/MockBtRequestFactory.h: int -> int32_t
  12826. * test/MockPieceStorage.h: int -> int32_t
  12827. * test/OptionTest.cc: int -> int32_t
  12828. * test/RequestTest.cc: int -> int32_t
  12829. * test/SegmentManTest.cc: int -> int32_t
  12830. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12831. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12832. Move sleep functions to Util class:
  12833. * src/Util.cc
  12834. (sleep): New function.
  12835. (usleep): New function.
  12836. * src/DownloadCommand.cc: sleep -> Util::sleep
  12837. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12838. MinGW build enhancements. The following files are added:
  12839. * src/timegm.{c,h}
  12840. Changes to support the above new files:
  12841. * configure.ac
  12842. * src/Makefile.am
  12843. * src/a2time.h
  12844. * src/Util.cc:
  12845. * src/strptime.c: Added support for %Z option.
  12846. Fixed MinGW non-blocking bug.
  12847. * src/SocketCore.cc
  12848. * src/HttpRequestCommand.cc
  12849. Miscellenous build fixes/enhancements.
  12850. * configure.ac: Added summary report.
  12851. * src/Platform.h: Tweaked #include's.
  12852. * src/a2netcompat.h: Tweaked #include's.
  12853. * src/strptime.h: Tweaked #include's.
  12854. * src/gai_strerror.c: Tweaked #include's.
  12855. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12856. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12857. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12858. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12859. Increased the initial connection size in BitTorrent download to 40.
  12860. * src/BtRuntime.h
  12861. Added the usage message of --peer-id-prefix option.
  12862. * src/main.cc
  12863. * Release 0.11.2
  12864. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12865. MessageDigestHelper is introduced in order to simplify the use
  12866. of message digest. Removed repeated code.
  12867. The message digest algorithm is now specified by string, like "sha1",
  12868. "md5".
  12869. * src/messageDigest.{h, cc}
  12870. * src/MessageDigestHelper.{h, cc}: New class.
  12871. * src/DefaultPieceStorage.cc
  12872. * src/DefaultBtContext.{h, cc}
  12873. (computeFastSet): New function.
  12874. (setInfoHash): Added for unit testing.
  12875. (setNumPieces): Added for unit testing.
  12876. * src/DefaultBtInteractive.cc
  12877. * src/BtPieceMessage.cc
  12878. * src/Peer.cc
  12879. * src/Checksum.h
  12880. * src/message.h
  12881. * src/IteratableChecksumValidator.h
  12882. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12883. inside it.
  12884. * src/SegmentMan.{h, cc}
  12885. (checkIntegrity): Removed.
  12886. * src/IteratableChunkChecksumValidator.{h, cc}
  12887. * src/Util.h
  12888. (sha1Sum): Removed.
  12889. (simpleMessageDigest): Removed.
  12890. (fileChecksum): Removed.
  12891. (computeFastSet): Removed.
  12892. * src/ShaVisitor.cc
  12893. * src/ChunkChecksum.h
  12894. * src/DownloadCommand.cc
  12895. Removed messageDigest virtual functions.
  12896. * src/MultiDiskAdaptor.{h, cc}
  12897. * src/DiskAdaptor.h
  12898. * src/ByteArrayDiskWriter.h
  12899. * src/DiskWriter.h
  12900. * src/DiskAdaptorWriter.h
  12901. * src/AbstractSingleDiskAdaptor.{h, cc}
  12902. * src/AbstractDiskWriter.{h, cc}
  12903. Fixed comilation error when message digest is disabled.
  12904. * src/MetalinkEntry.{h, cc}
  12905. * src/MetalinkRequestInfo.cc
  12906. Removed srandom and random.
  12907. * src/SimpleRandomizer.h
  12908. Added size() virtual function to DiskAdaptor
  12909. * src/MultiDiskAdaptor.h
  12910. Fixed the bug that causes that files are not opened correctly in
  12911. multi-file torrent.
  12912. * src/TorrentRequestInfo.cc
  12913. * src/MultiDiskAdaptor.cc
  12914. Added SHA256 support
  12915. * src/messageDigest.cc
  12916. * src/Xml2MetalinkProcessor.cc
  12917. Show supported message digest algorithms
  12918. * src/main.cc
  12919. Updated contact info.
  12920. * src/main.cc
  12921. Applied Ross's patch
  12922. * src/a2netcompat.h
  12923. * src/main.cc
  12924. Fixed the bug that prevents a remote metalink from not being processed
  12925. even if '-o foo.metalink' is specified.
  12926. * src/MetalinkRequestInfo.cc
  12927. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12928. Merged Dan's patch:
  12929. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12930. Use va_copy to avoid core dump on amd64:
  12931. * src/SimpleLogger.cc
  12932. Updated contact info.
  12933. * src/main.cc
  12934. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12935. digest is not available.
  12936. * src/MetalinkEntry.h
  12937. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12938. Make a2netcompat.h include a2io.h to fix compilation error:
  12939. * src/a2netcompat.h
  12940. * src/SocketCore.cc: Removed include of a2io.h
  12941. * src/Util.cc: Removed include of a2io.h
  12942. Gather time related functions to a2time.h:
  12943. * src/a2time.h: New file.
  12944. * src/DefaultPeerStorage.cc
  12945. * src/SimpleLogger.cc
  12946. * src/Util.{h, cc}
  12947. * src/SimpleRandomizer.h
  12948. * src/TimeA2.{h,cc}
  12949. * src/DownloadCommand.cc
  12950. * src/main.cc
  12951. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12952. a2netcompat.h:
  12953. * src/NameResolver.cc
  12954. Fixed compilation error without openssl:
  12955. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12956. Added default block to suppress compiler warnings:
  12957. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12958. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12959. MinGW build enhancements. The following files are added:
  12960. * src/gai_strerror.{c,h}
  12961. * src/gettimeofday.{c,h}
  12962. Changes to support the above new files:
  12963. * configure.ac
  12964. * src/Makefile.am
  12965. * src/a2netcompat.h
  12966. * src/TimeA2.cc
  12967. * src/DefaultPeerStorage.cc
  12968. * src/NameResolver.cc: removed mingw_strerror() function.
  12969. * src/SocketCore.cc: removed mingw_strerror() function.
  12970. Miscellaneous MinGW build fixes.
  12971. * src/a2io.h: Use _lseeki64() instead of lseek()
  12972. * src/common.h
  12973. * src/DefaultFileAllocator.cc
  12974. * src/GlowFileAllocator.cc
  12975. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12976. * src/NameResolver.cc
  12977. (callback): Changed int32_t to int.
  12978. (resolve): Changed int32_t to int.
  12979. * src/Platform.cc
  12980. * src/Platform.h
  12981. * test/MultiDiskWriterTest.cc
  12982. * test/PeerMessageUtilTest.cc
  12983. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12984. Other enhancements and fixes.
  12985. * src/HttpRequestCommand.cc
  12986. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12987. * src/SocketCore.cc:
  12988. (error): New function to abstract errno/WSAGetLastError().
  12989. (errorMsg): New function to abstract errno/WSAGetLastError().
  12990. (initiateSecureConnection): Added more detailed error reporting.
  12991. * src/SocketCore.h: Added private variable blocking, to allow
  12992. proper handling of OpenSSL psuedo-errors.
  12993. * src/message.h
  12994. (EX_SSL_INIT_FAILURE)
  12995. (EX_SSL_IO_ERROR)
  12996. (EX_SSL_PROTOCOL_ERROR)
  12997. (EX_SSL_UNKNOWN_ERROR)
  12998. (EX_SSL_CONNECT_ERROR)
  12999. (EX_SOCKET_BLOCKING)
  13000. (EX_SOCKET_NONBLOCKING)
  13001. (EX_SOCKET_UNKNOWN_ERROR)
  13002. * src/Util.cc
  13003. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13004. reserved name.
  13005. (httpGMT): Fixed typo.
  13006. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13007. Merged Ross's win32 patch(manually)
  13008. In the course of merging, following files are added.
  13009. * src/strptime.{h,c}
  13010. * src/libgen.{h,c}
  13011. * src/inet_aton.{h,c}
  13012. * src/Platform.{h,cc}
  13013. * src/localtime_r.{h,c}
  13014. * src/getaddrinfo.{h,c}
  13015. I've gethered network related things, and put them to following file:
  13016. * src/a2netcompat.h
  13017. Also io related things are put to following file:
  13018. * src/a2io.h
  13019. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13020. * src/message.h
  13021. (MSG_ALLOCATION_COMPLETED)
  13022. (EX_TOO_LARGE_FILE)
  13023. (EX_SIZE_MISMATCH)
  13024. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13025. (EX_INVALID_CHUNK_CHECKSUM)
  13026. (EX_INVALID_RANGE_HEADER)
  13027. * src/FileAllocationCommand.cc
  13028. * src/HttpResponse.cc
  13029. * src/RequestGroup.cc
  13030. * src/MultiDiskAdaptor.cc
  13031. * src/OptionHandlerImpl.h
  13032. * src/HttpResponseCommand.cc
  13033. * src/FtpNegotiateCommand.cc
  13034. * src/IteratableChecksumValidator.cc
  13035. * src/SegmentMan.cc
  13036. * src/ChunkChecksumValidator.cc
  13037. Added Randomizer::getRandomNumber(long int)
  13038. * src/Randomizer.h (getRandomNumber)
  13039. * src/SimpleRandomizer.h (getRandomNumber)
  13040. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13041. * src/Util.cc (randomAlpha): Use this new function.
  13042. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13043. Converted int's to in32_t. long long int's are also converted to
  13044. int64_t
  13045. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13046. Fixed the bug that prevents cookies from being sent to the server
  13047. if the domain of cookie is FQDN and starts with ".".
  13048. * src/Cookie.cc (match)
  13049. To add the ability to change peer id.
  13050. * src/DefaultBtContext.h
  13051. (_peerIdPrefix): New variable
  13052. (setPeerIdPrefix): New function.
  13053. * src/torrentRequestInfo.cc
  13054. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13055. DefaultBtContext.
  13056. * src/main.cc (main): Added peer-id-prefix command-line option.
  13057. The usage message is not added yet.
  13058. * src/DefaultBtContext.cc
  13059. (generatePeerId): Use _peerIdPrefix.
  13060. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13061. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13062. Fixed the bug that prevents filename in content-disposition from
  13063. being retrieved when filename is not quoted.
  13064. * src/Util.cc (getContentDispositionFilename)
  13065. Fixed the bug that causes infinate loop and memory leak when file open
  13066. operation failed.
  13067. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13068. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13069. Fixed the bug that causes segfault when all URIs specified are
  13070. unsupported.
  13071. * src/RequestGroupMan.cc (getInitialCommands)
  13072. Check if RequestGroup::createNextCommand() returns empty list of
  13073. commands.
  13074. * src/RequestGroup.cc (createNextCommand)
  13075. Change log level from info to error so that users can notice that
  13076. an error occurred.
  13077. Fixed the bug that causes segfault when a zero-sized file is
  13078. downloaded.
  13079. * src/BitfieldMan.cc (isAllBitSet)
  13080. Return true if bitfieldLength is 0.
  13081. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13082. * src/main.cc
  13083. (showUsage): Added 3 usage examples for metalink download.
  13084. Replace MetalinkChunkChecksum with ChunkChecksum.
  13085. * src/MetalinkChunkChecksum.h: Removed.
  13086. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13087. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13088. * src/Xml2MetalinkProcessor.cc
  13089. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13090. * src/MetalinkRequestInfo.cc (execute)
  13091. * Release 0.11.1
  13092. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13093. Reads URIs from stdin when "-i -" is specified.
  13094. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13095. * src/UriListParser.h, src/UriListParser.cc: New class.
  13096. * src/StreamUriListParser.h: New class.
  13097. * src/FileUriListParser.h: New class.
  13098. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13099. instead of UriFileListParser.
  13100. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13101. Made console readout more readable.
  13102. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13103. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13104. Fix the bug that causes -s option not to work.
  13105. * src/main.cc (main)
  13106. * src/a2algo.h: New file.
  13107. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13108. Create directory structure specified in metalink file.
  13109. * src/RequestGroup.h, src/RequestGroup.cc
  13110. (initAndOpenFile): Create a directory to store files if it does not
  13111. exist.
  13112. (getDir): New function.
  13113. Added ETA and download speed for an individual file to readout.
  13114. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13115. * src/RequestGroup.h
  13116. (calculateDownloadSpeed): New function.
  13117. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13118. Made -S option work with metalink file and provided selective download
  13119. to metalink.
  13120. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13121. (filename): Removed.
  13122. (file): New variable.
  13123. (size): Removed.
  13124. (operator=): Updated.
  13125. (getPath): New function.
  13126. (getLength): New function.
  13127. (toFileEntry): New function.
  13128. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13129. (execute): Use toStream.
  13130. (showFileEntry): Removed.
  13131. * src/MetalinkRequestInfo.h
  13132. (targetFiles): New variable.
  13133. (setTargetFiles): New variable.
  13134. * src/MetalinkRequestInfo.cc
  13135. (execute): Added the ability to print file information included in
  13136. a metalink file.
  13137. Added selective download mode to metalink.
  13138. * src/main.cc
  13139. (showUsage): Updated to denote that -S and --select-file options are
  13140. applicable to metalink.
  13141. * src/FileEntry.h
  13142. (operator=): New function.
  13143. (getBasename): New function.
  13144. (getDirname): New function.
  13145. * src/Util.h, src/Util.cc
  13146. (toStream): New function.
  13147. * src/Xml2MetalinkProcessor.cc: Updated.
  13148. Made aria2 work with metalink with directory structure.
  13149. * src/File.h, src/File.cc
  13150. (getBasename): New function.
  13151. (getDirname): New function.
  13152. * src/RequestGroup.h, src/RequestGroup.cc
  13153. (_topDir): New variable.
  13154. (setTopDir): New function.
  13155. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13156. Rewrote HTTP header parsing with stringstream.
  13157. * src/HttpConnection.h, src/HttpConnection.cc
  13158. (HttpRequestEntry): New class.
  13159. (headerBuf): Removed.
  13160. (headerBufLength): Removed.
  13161. (outstandingHttpRequests): Now its element type is
  13162. HttpRequestEntryHandle.
  13163. (findEndOfHeader): Removed.
  13164. (receiveResponse): Rewritten.
  13165. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13166. Updated doc for -j option to notice that it should be used with -i
  13167. option.
  13168. * src/main.cc (showUsage)
  13169. Removed unused classes.
  13170. * src/RequestInfo.h
  13171. (FileInfo): Removed.
  13172. (checksum): Removed.
  13173. (fileInfo): Removed.
  13174. (setChecksum): Removed.
  13175. (getChecksum): Removed.
  13176. (getFileInfo): Removed.
  13177. Use ISO units.
  13178. * src/ConsoleDownloadEngine.cc
  13179. * src/TorrentConsoleDownloadEngine.cc
  13180. * src/Util.cc (abbrevSize)
  13181. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13182. Added the default listening ports to the help message.
  13183. * src/main.cc (showUsage)
  13184. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13185. Reduce the number of calls to gettimeofday to lower CPU load.
  13186. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13187. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13188. * src/Peer.h (calculateUploadSpeed): New function.
  13189. (calculateDownloadSpeed): New function.
  13190. * src/DefaultPeerStorage.cc
  13191. (CalculateStat): Added _now variable.
  13192. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13193. and Peer::calculateUploadSpeed(const struct timeval&)
  13194. Drop connection if no request or piece message is exchanged in
  13195. a certain interval.
  13196. * src/DefaultBtInteractive.h
  13197. (btRuntime): New variable.
  13198. (inactiveCheckPoint): New variable.
  13199. (checkActiveInteraction): New function.
  13200. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13201. request or piece message is received.
  13202. (checkActiveInteraction): New function.
  13203. (doInteractionProcessing): Call checkActiveInteraction.
  13204. Fixed the bug that causes remote Metalink and Torrent files are not
  13205. processed.
  13206. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13207. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13208. Changed format of log file.
  13209. * src/SimpleLogger.cc
  13210. * Release 0.11.0
  13211. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13212. * src/AbstractCommand.cc
  13213. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13214. MSG_MAX_TRY from error to info.
  13215. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13216. * src/message.h
  13217. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13218. (MSG_DOWNLOAD_ABORTED): Added %s.
  13219. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13220. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13221. * src/PeerAbstractCommand.cc
  13222. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13223. * src/Request.h
  13224. (cookieBox): Made ShardHandle.
  13225. * src/RequestGroup.h, src/RequestGroup.cc
  13226. (createNextCommandWithAdj): New function.
  13227. * src/FileAllocationCommand.cc
  13228. (executeInternal): Use createNextCommandWithAdj().
  13229. * src/CheckIntegrityCommand.cc
  13230. (executeInternal): Use createNextCommandWithAdj().
  13231. Added --load-cookies command-option.
  13232. * src/OptionHandlerFactory.cc
  13233. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13234. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13235. Now aria2 can handle cookie's expiration date.
  13236. * src/Cookie.h (expires): Changed its type to time_t.
  13237. * src/main.cc: Added --load-cookies command-line option.
  13238. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13239. * src/Util.h, src/Util.cc (httpGMT): New function.
  13240. * src/Request.cc (Request): Initialize cookieBox using
  13241. CookieBoxFactory.
  13242. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13243. * src/CookieParser.h, src/CookieParser.cc: New class.
  13244. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13245. * src/HttpResponseCommand.cc
  13246. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13247. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13248. download.
  13249. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13250. Added -j command-line option.
  13251. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13252. * src/main.cc
  13253. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13254. Rewritten using stringstream.
  13255. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13256. Rewritten using stringstream.
  13257. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13258. Make download size shown in MB, KB.
  13259. * src/ConsoleDownloadEngine.h (sendStatistics)
  13260. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13261. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13262. Accept incoming connections if download rate is low.
  13263. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13264. (_lowestSpeedLimit): New variable.
  13265. (setLowestSpeedLimit): New function.
  13266. (execute): Accept incoming connections if download rate is low.
  13267. MAX_PEERS is ignored in this case.
  13268. Disable PREF_OUT in multiple concurrent download:
  13269. * src/RequestGroup.h, src/RequestGroup.cc
  13270. (setUserDefinedFilename): New function.
  13271. * src/DownloadEngineFactory.cc
  13272. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13273. concurrent download.
  13274. * src/DefaultSegmentManFactory.cc
  13275. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13276. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13277. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13278. Added its overloaded method.
  13279. * src/RequestGroup.h
  13280. (_numConcurrentCommand): New variable.
  13281. (setNumConcurrentCommand): New function.
  13282. * src/RequestGroup.cc
  13283. Abort download if same file is being downloaded concurrently.
  13284. * src/RequestGroup.h, src/RequestGroupMan.cc
  13285. (isSameFileBeingDownloaded): New function.
  13286. * src/HttpResponseCommand.cc (executeInternal)
  13287. * src/FtpNegotiateCommand.cc (recvSize)
  13288. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13289. * main.cc: Added help message for -i option.
  13290. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13291. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13292. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13293. * src/MetalinkEntry.h
  13294. (checksum): Changed to ChecksumHandle
  13295. * src/MetalinkRequestInfo.cc
  13296. (checksum): Changed to ChecksumHandle
  13297. * src/File.cc
  13298. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13299. * src/common.h
  13300. (DIR_OPEN_MODE): New definition
  13301. * src/RequestGroup.cc
  13302. (prepareForNextAction): Added an argument.
  13303. * src/message.h
  13304. (MSG_GOOD_CHECKSUM): New definition
  13305. (MSG_BAD_CHECKSUM): New definition
  13306. * src/HttpResponseCommand.cc
  13307. (handleDefaultEncoding): Continue download sequence in new
  13308. non-segmented download.
  13309. * src/FileAllocationEntry.h
  13310. (_nextDownloadCommand): New variable.
  13311. * src/DownloadCommand.cc
  13312. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13313. available.
  13314. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13315. * src/IteratableChecksumValidator.h,
  13316. src/IteratableChecksumValidator.cc: New class.
  13317. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13318. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13319. Change file mode to 666:
  13320. * src/common.h (OPEN_MODE): New definition.
  13321. * src/File.cc
  13322. * src/Util.cc
  13323. * src/Directry.cc
  13324. * src/AbstractDiskWriter.cc
  13325. Change the level of log message "download aborted" to debug:
  13326. * src/PeerAbstractCommand.cc (execute)
  13327. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13328. * src/TrackerWatcherCommand.cc
  13329. (createCommand): Sleep some seconds after request failed.
  13330. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13331. then abort tracker request.
  13332. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13333. * Added the simultaneous download feature.
  13334. * src/main.cc: Print "Exception caught: " when exception is caught.
  13335. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13336. * src/ActivePeerConnectionCommand.cc
  13337. * src/PeerInteractionCommand.cc
  13338. * src/BtRuntime.h
  13339. (cuidCounter): Removed.
  13340. (getNewCuid): Removed.
  13341. * src/DownloadEngineFactory.cc
  13342. * src/PeerListenCommand.cc
  13343. * src/TrackerUpdateCommand.cc
  13344. * src/PeerInitiateConnectionCommand.cc
  13345. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13346. * src/PeerAbstractCommand.cc
  13347. (onAbort): Call PeerStorage::returnPeer()
  13348. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13349. (incomingPeers): New variable.
  13350. (addIncomingPeer): New function.
  13351. (returnPeer): New function.
  13352. (onErasingPeer): New function.
  13353. (addPeer): push_back -> push_front
  13354. (getActivePeers): Rewritten.
  13355. (calculateStat): Rewritten.
  13356. * src/PeerStorage.h
  13357. (TransferStat::copy): New function.
  13358. (TransferStat::TransferStat): New function.
  13359. (TransferStat::operator=): New function.
  13360. (addIncomingPeer): New function.
  13361. (returnPeer): New function.
  13362. * src/PeerListenCommand.cc
  13363. (execute): Use PeerStorage::addIncomingPeer() instead of
  13364. Peer::addPeer().
  13365. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13366. Connect to a peer actively when download speed is lower than specified
  13367. speed in torrent download:
  13368. * src/ActivePeerConnectionCommand.h: New class.
  13369. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13370. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13371. * src/main.cc: Fixed the bug that prevents download if .netrc
  13372. doesn't exist.
  13373. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13374. To cache resolved hostname:
  13375. * src/AbstractCommand.h, src/AbstractCommand.cc
  13376. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13377. Added dns cache.
  13378. * src/FtpInitiateConnectionCommand.cc
  13379. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13380. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13381. NameResolver working without ares.
  13382. * src/TorrentRequestInfo.cc
  13383. (execute): Don't cache dns in torrent download.
  13384. * src/HttpInitiateConnectionCommand.cc
  13385. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13386. * src/DNSCache.h: New class.
  13387. * src/UrlRequestInfo.cc
  13388. (execute): Use dns cache.
  13389. In http request, suppress port number in http request header if port
  13390. is 80 or 443:
  13391. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13392. request header if port is 80 or 443.
  13393. (createProxyRequest): Allways send port number.
  13394. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13395. To add the command-line option which disables netrc support:
  13396. * src/OptionHandlerFactory.cc
  13397. (createOptionHandlers): Added PREF_NO_NETRC.
  13398. * src/main.cc: Added -n option.
  13399. * src/prefs.h (PREF_NO_NETRC): New definition.
  13400. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13401. V_TRUE.
  13402. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13403. is V_FALSE. This may get configurable in the future release.
  13404. To clear peer's error status by time basis:
  13405. * src/PeerAbstractCommand.cc
  13406. (onAbort): Call Peer::startBadCondition().
  13407. * src/Peer.h, src/Peer.cc
  13408. (error): Removed.
  13409. (_badConditionStartTime): New variable.
  13410. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13411. (startBadCondition): New function.
  13412. (isGood): New function.
  13413. * src/DefaultPeerStorage.cc
  13414. (addPeer): Use Peer::isGood().
  13415. (FindFinePeer): Use Peer::isGood().
  13416. Always include port number in http request header:
  13417. * src/HttpRequest.cc (getHostText): Always include port number in
  13418. http request header.
  13419. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13420. To the ability to read options from a config file:
  13421. * src/main.cc: Command-line parameter validation is delegated to
  13422. OptionHandler class.
  13423. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13424. * src/Option.h, src/Option.cc (clear): New function.
  13425. * src/OptionParser.h, src/OptionParser.cc: New class.
  13426. * src/OptionHandler.h: New class.
  13427. * src/NameMatchOptionHandler.h: New class.
  13428. * src/OptionHandlerImpl.h: New classes.
  13429. * src/prefs.h: '_' -> '-'
  13430. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13431. (FTP_PASV): New definition.
  13432. * src/Util.h, src/Util.cc (getRealSize): New function.
  13433. To disable netrc support if .netrc file does not have correct
  13434. permissions:
  13435. * src/File.h, src/File.cc (mode): New function.
  13436. To prevent confidential information to be logged:
  13437. * src/HttpConnection.h, src/HttpConnection.cc
  13438. (eraseConfidentialInfo): New function.
  13439. (sendRequest): Call eraseConfidentialInfo().
  13440. (sendProxyRequest): Call eraseConfidentialInfo().
  13441. * src/main.cc: Validate permissions of .netrc file.
  13442. To add --user-agent command-line option:
  13443. * src/main.cc: Added new command line option: --user-agent
  13444. * src/prefs.h (PREF_USER_AGENT): New definition.
  13445. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13446. parameter to HttpRequest object.
  13447. * src/AbstractProxyRequestCommand.cc
  13448. (executeInternal): Set user-agent option parameter to HttpRequest
  13449. object.
  13450. Marged the patches from Dan Fandrich.
  13451. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13452. Use filename and size from Metalink file instead of sending HEAD
  13453. request:
  13454. * src/UrlRequestInfo.h
  13455. (_filename): New variable.
  13456. (_totalLength): New variable.
  13457. (setTotalLength): New variable.
  13458. (setFilename): New variable.
  13459. * src/MetalinkRequestInfo.cc
  13460. (execute): Set filename and size to UrlRequestInfo
  13461. * src/UrlRequestInfo.cc
  13462. (execute): Use filename and size from Metalink instead of seding
  13463. HEAD request to servers.
  13464. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13465. To add the ability to resume downloading a partially downloaded file
  13466. which is downloaded from the beginning:
  13467. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13468. takes this role.
  13469. * src/main.cc: Added -c option.
  13470. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13471. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13472. * src/prefs.h (PREF_CONTINUE): New definition.
  13473. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13474. * src/DefaultDiskWriter.cc
  13475. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13476. * src/AbstractDiskWriter.h
  13477. (glowFileAllocator): New variable.
  13478. * src/AbstractDiskWriter.cc
  13479. (openExistingFile): Now preallocate file space from the end of the
  13480. existing file if totalLength argument is specified and grater than 0.
  13481. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13482. to download exists in local, continue the download of the file.
  13483. --allow-overwrite=true is assumed in this context.
  13484. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13485. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13486. Throw exception if --check-integrity=true is specified but chunk
  13487. checksums are not provided:
  13488. * src/UrlRequestInfo.cc
  13489. Do not print URLs to stdout:
  13490. * src/UrlRequestInfo.cc
  13491. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13492. * src/Request.h: Use AuthResolver to get authentication information.
  13493. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13494. set to RequestFactory object.
  13495. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13496. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13497. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13498. create Request object.
  13499. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13500. To integrate Netrc into exsiting classes:
  13501. * src/Request.h
  13502. (_userDefinedAuthConfig): New variable.
  13503. (findNetrcAuthenticator): New function.
  13504. (segment): Removed.
  13505. (setUserDefinedAuthConfig): New function.
  13506. (resolveHttpAuthConfigItem): New function.
  13507. (resolveFtpAuthConfigItem): New function.
  13508. (resolveHttpProxyAuthConfigItem): New function.
  13509. * src/HttpRequest.h
  13510. (authConfig): Removed.
  13511. (proxyAuthConfig): Removed.
  13512. (setAuthConfig): Removed.
  13513. (setProxyAuthConfig): Removed.
  13514. * src/UrlRequest.h
  13515. (getHeadResult): Added a parameter: authConfigHandle
  13516. * src/common.h
  13517. (SingletonHolder.h): New include.
  13518. * src/main.cc
  13519. (Netrc.h): New include.
  13520. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13521. Added initial value of PREF_NETRC_PATH.
  13522. Added the initialization of netrc.
  13523. * src/AuthConfig.h: New class.
  13524. * src/prefs.h
  13525. (PREF_NETRC_PATH): New definition.
  13526. * src/HttpAuthConfig.h: Removed.
  13527. * src/Netrc.cc
  13528. (getRequiredNextToken): New function.
  13529. (skipMacdef): New function.
  13530. (parse): Rewritten.
  13531. * src/Netrc.h
  13532. (getRequiredNextToken): New function.
  13533. (skipMacdef): New function.
  13534. * src/Util.h, src/Util.cc
  13535. (getHomeDir): New function.
  13536. * src/TrackerWatcherComand.cc
  13537. (createRequestCommand): Use AuthConfig.
  13538. * src/FtpConnection.cc
  13539. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13540. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13541. * src/Request.cc
  13542. (findNetrcAuthenticator): New function.
  13543. (resolveHttpAuthConfigItem): New function.
  13544. (resolveFtpAuthConfigItem): New function.
  13545. (resolveHttpProxyAuthConfigItem): New function.
  13546. * src/UrlRequestInfo.cc: Use AuthConfig.
  13547. * src/HttpRequest.cc
  13548. (createRequest): Use authConfig.
  13549. (getProxyAuthString): Use authConfig.
  13550. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13551. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13552. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13553. To reduce overhead to find commands whose socket is either
  13554. readable or writable in the download engine loop:
  13555. * src/Command.h, src/Command.cc
  13556. (STATUS): New enum.
  13557. (status): New variable.
  13558. (statusMatch): New function.
  13559. (setStatusActive): New function.
  13560. (setStatusInactive): New function.
  13561. * src/DownloadEngine.h, src/DownloadEngine.cc
  13562. (executeCommand): New function.
  13563. (run): Simplified.
  13564. (waitData): Call Command::setStatusActive() when command's socket is
  13565. readable or writable.
  13566. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13567. To handle Segment as SegmentHandle:
  13568. * src/AbstractCommand.cc (execute): Rewritten.
  13569. * src/SegmentMan.h: Segment -> SegmentHandle
  13570. Introducded HttpResponse class, HttpRequest class to improve code
  13571. extensiveness and make it clear:
  13572. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13573. HttpResponse class.
  13574. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13575. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13576. * src/HttpConnection.cc: Contruction of http request were moved to
  13577. HttpRequest class.
  13578. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13579. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13580. * src/HttpAuthConfig.h: New class.
  13581. * src/Range.h: New class.
  13582. To make FtpTunnel{Request, Response}Command and
  13583. HttpProxy{Request, Response}Command derived from
  13584. AbstractProxy{Request, Response}Command:
  13585. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13586. Derived from AbstractProxyRequestCommand class.
  13587. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13588. Derived from AbstractProxyResponseCommand class.
  13589. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13590. Derived from AbstractProxyRequestCommand class.
  13591. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13592. Derived from AbstractProxyResponseCommand class.
  13593. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13594. : New class.
  13595. * src/AbstractProxyResponseCommand.h,
  13596. src/AbstractProxyResponseCommand.cc: New class.
  13597. To add netrc support:
  13598. * src/Netrc.h, src/Netrc.cc: New class.
  13599. * src/Util.h, src/Util.cc (split): New function.
  13600. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13601. "Content-Range" header instead of "Range" header.
  13602. * src/HttpHeader.h
  13603. (getStatus): Removed.
  13604. (setStatus): Removed.
  13605. * src/Segment.h
  13606. (getPositionToWrite): New function.
  13607. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13608. * src/HttpHeader.h
  13609. (Range.h): New include.
  13610. (status): New variable.
  13611. (HttpHeader): Initialized status with 0.
  13612. (getStatus): New function.
  13613. (setStatus): New function.
  13614. (getRange): New function.
  13615. (HttpHeaderHandle): New function.
  13616. * src/HttpHeader.cc
  13617. (getRange): New function.
  13618. * src/Request.h
  13619. (RequestWeakHandle): New definition.
  13620. * src/HttpConnection.h
  13621. (HttpConnectionHandle): New type definition.
  13622. * src/HttpConnection.cc
  13623. (receiveResponse): Set HTTP status to headers.
  13624. * src/main.cc
  13625. (showUsage): Fixed typo.
  13626. * src/Segment.h
  13627. (SegmentHandle): New type definition.
  13628. * src/BitfieldMan.h
  13629. (getMissingUnusedLength): New function.
  13630. * src/BitfieldMan.cc
  13631. (getMissingUnusedLength): New function.
  13632. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13633. To fix static initialization order problem:
  13634. * src/BitfieldManFactory.h
  13635. (defaultRandomizer): Removed.
  13636. (factory): New variable.
  13637. (getNewFactory): Removed.
  13638. (getFactoryInstance): New function.
  13639. (setDefaultRandomizer): Rewritten.
  13640. (getDefaultRandomizer): Rewritten.
  13641. * src/BitfieldManFactory.cc
  13642. (defaultRandomizer): Removed.
  13643. (factory): Initialized to 0.
  13644. (BitfieldManFactory): Initialized randomizer to 0.
  13645. * src/DefaultPieceStorage.cc
  13646. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13647. * src/Peer.cc
  13648. (Peer): getNewFactory() -> getFactoryInstance()
  13649. * src/SegmentMan.cc
  13650. (initBitfield): getNewFactory() -> getFactoryInstance()
  13651. * src/Piece.cc
  13652. (Piece): getNewFactory() -> getFactoryInstance()
  13653. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13654. To fix the bug that causes crash on Max OS X:
  13655. * src/SimpleRandomizer.h
  13656. (getInstance): Create new instance if the static variable is null.
  13657. * src/SimpleRandomizer.cc
  13658. (randomizer): Initialized to 0.
  13659. * src/BitfieldManFactory.h
  13660. (getNewFactory): Removed the call to setRandomizer().
  13661. To fix the miscalculation of the range of checksum:
  13662. * src/BitfieldMan.h
  13663. (isBitSetOffsetRange): New function.
  13664. * src/BitfieldMan.cc
  13665. (isBitSetOffsetRange): New function.
  13666. * src/SegmentMan.cc
  13667. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13668. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13669. * Release 0.10.1
  13670. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13671. To lower CPU usage in BitTorrent download when --max-upload-limit
  13672. command-line option specified:
  13673. * src/DefaultBtMessageDispatcher.cc
  13674. (sendMessages): Calculate uploading speed only when current message
  13675. is uploading data and is not sent yet.
  13676. * src/DefaultPeerStorage.h
  13677. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13678. * src/HttpResponseCommand.cc
  13679. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13680. This fixes compile error in Soralis 10.
  13681. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13682. To fix segfault in Metalink download:
  13683. * src/UrlRequestInfo.h
  13684. (filename): Removed.
  13685. (totalLength): Removed.
  13686. (setTotalLength): Removed.
  13687. (setFilename): Removed.
  13688. * src/MetalinkRequestInfo.cc
  13689. (execute): Do not set filename and totalLength to reqInfo.
  13690. Set chunk checksum to reqInfo if it is not null.
  13691. * src/HttpResponseCommand.cc
  13692. (executeInternal): Fixed filename in log.
  13693. (handleDefaultEncoding): Removed the call to initBitfield() and
  13694. markAllPiecesDone().
  13695. (handleOtherEncoding): Added HEAD method handling.
  13696. * src/FtpNegotiateCommand.cc
  13697. (executeInternal): Added SEQ_HEAD_OK handling.
  13698. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13699. return false.
  13700. * src/FtpNegotiateCommand.h
  13701. (SEQ_HEAD_OK): New definition.
  13702. * src/SegmentMan.cc
  13703. (initBitfield): Delete bitfield.
  13704. (isChunkChecksumValidationReady): Fixed the condition.
  13705. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13706. works fine.
  13707. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13708. * src/Xml2MetalinkProcessor.h
  13709. (xpathExists): New function.
  13710. * src/Xml2MetalinkProcessor.cc
  13711. (xpathExists): New function.
  13712. Not to send HEAD request if filename and size are available in Metalink
  13713. file:
  13714. * src/UrlRequestInfo.h
  13715. (filename): New variable.
  13716. (totalLength): New variable.
  13717. (setTotalLength): New function.
  13718. (setFilename): New function.
  13719. * src/MetalinkRequestInfo.cc
  13720. (execute): Set filename and size to UrlRequestInfo.
  13721. * src/MetalinkEntry.cc
  13722. (MetalinkEntry): Initialize size with 0.
  13723. * src/UrlRequestInfo.cc
  13724. (execute): Set filename and size to SegmentMan.
  13725. Not to download rest of the files after selected files are downloaded
  13726. in BitTorrent:
  13727. * src/PieceStorage.h
  13728. (allDownloadFinished): New function.
  13729. * src/DefaultBtAnnounce.cc
  13730. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13731. downloadFinished.
  13732. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13733. * src/DefaultPieceStorage.cc
  13734. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13735. Commented out the call to finishSelectiveDownloadingMode().
  13736. (downloadFinished): Call isFilteredAllBitSet() instead of
  13737. isAllBitSet().
  13738. (allDownloadFinished): New function.
  13739. * src/DefaultBtInteractive.cc
  13740. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13741. downloadFinished().
  13742. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13743. * src/TorrentDownloadEngine.cc
  13744. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13745. * src/BitfieldMan.h
  13746. (isFilteredAllBitSet): New function.
  13747. * src/ShareRatioSeedCriteria.h
  13748. (PieceStorage.h): New include.
  13749. (pieceStorage): New variable.
  13750. (evaluate):
  13751. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13752. * src/BitfieldMan.cc
  13753. (isFilteredAllBitSet): New function.
  13754. (isAllBitSet): Filter is not took into account.
  13755. Rename --force-truncate as --allow-overwrite:
  13756. * src/TorrentRequestInfo.cc
  13757. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13758. * src/main.cc
  13759. (showUsage): --force-truncate -> --allow-overwrite
  13760. * src/message.h
  13761. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13762. * src/prefs.h
  13763. (PREF_FORCE_TRUNCATE): Removed.
  13764. (PREF_ALLOW_OVERWRITE): New definition.
  13765. * src/SegmentMan.cc
  13766. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13767. * src/MetalinkRequestInfo.cc
  13768. (execute): Queueing message are now logged in info level.
  13769. * src/common.h
  13770. (LONG_LONG_MAX): Removed.
  13771. (LONG_LONG_MIN): Removed.
  13772. * src/HttpResponseCommand.cc
  13773. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13774. * src/FtpNegotiateCommand.cc
  13775. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13776. * src/main.cc
  13777. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13778. command-line option.
  13779. (main): Added --check-integriy and --realtime-chunk-checksum
  13780. command-line option.
  13781. --force-truncate -> --allow-overwrite
  13782. Set initial value of --check-integrity option to false.
  13783. Don't show usage when error occurs while persing command-line options.
  13784. Removed deprecated --upload-limit option.
  13785. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13786. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13787. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13788. * src/BtAllowedFastMessage.cc:
  13789. * src/BtBitfieldMessage.cc
  13790. * src/BtCancelMessage.cc
  13791. * src/BtChokeMessage.cc
  13792. * src/BtHaveAllMessage.cc
  13793. * src/BtHaveMessage.cc
  13794. * src/BtHaveNoneMessage.cc
  13795. * src/BtInterestedMessage.cc
  13796. * src/BtNotInterestedMessage.cc
  13797. * src/BtPieceMessage.cc
  13798. * src/BtPortMessage.cc
  13799. * src/BtRejectMessage.cc
  13800. * src/BtRequestMessage.cc
  13801. * src/BtSuggestPieceMessage.cc
  13802. * src/BtUnchokeMessage.cc
  13803. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13804. files are affected.
  13805. * src/ChunkChecksumValidator.cc
  13806. * src/SegmentMan.cc
  13807. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13808. To add chunk checksum validation:
  13809. * src/MetalinkEntry.h
  13810. (MetalinkChunkChecksum.h): New include.
  13811. (chunkChecksum): New variable.
  13812. * src/Request.h
  13813. (method): New variable.
  13814. (setMethod): New function.
  13815. (getMethod): New function.
  13816. (METHOD_GET): New static constant.
  13817. (METHOD_HEAD): New static constant.
  13818. * src/Xml2MetalinkProcessor.h
  13819. (getPieceHash): New function.
  13820. * src/PieceStorage.h
  13821. (markAllPiecesDone): New function.
  13822. (checkIntegrity): New function.
  13823. * src/FileAllocator.h
  13824. (NullFileAllocationMonitor.h): New include.
  13825. (FileAllocator): Initialize fileAllocationMonitor with new
  13826. NullFileAllocationMonitor().
  13827. * src/MultiDiskAdaptor.h
  13828. (messageDigest.h): Remove include.
  13829. (ctx): Removed.
  13830. (hashUpdate): Added ctx.
  13831. (MultiDiskAdaptor): Removed ctx.
  13832. (sha1Sum): Renamed as messageDigest.
  13833. (messageDigest): New function.
  13834. * src/UrlRequestInfo.h
  13835. (HeadResult): New class.
  13836. (digestAlgo): New variable.
  13837. (chunkChecksumLength): New variable.
  13838. (chunkChecksums): New variable.
  13839. (getHeadResult): New function.
  13840. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13841. (setDigestAlgo): New function.
  13842. (setChunkChecksumLength): New function.
  13843. (setChunkChecksums): New function.
  13844. * src/DefaultPieceStorage.cc
  13845. (DiskAdaptorWriter.h): New include.
  13846. (ChunkChecksumValidator.h): New include.
  13847. (markAllPiecesDone): New function.
  13848. (checkIntegrity): New function.
  13849. * src/DefaultBtContext.h
  13850. (getPieceHashes): New function.
  13851. * src/TorrentRequestInfo.cc
  13852. (execute): Try to validate chunk checksum if file already exists and
  13853. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13854. * src/messageDigest.h
  13855. (~MessageDigestContext): Added digestFree().
  13856. * src/MetalinkRequestInfo.cc
  13857. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13858. * src/DiskAdaptor.h
  13859. (messageDigest.h): New include.
  13860. (sha1Sum): Renamed as messageDigest.
  13861. (messageDigest): New function.
  13862. * src/DownloadCommand.h
  13863. (PeerStat.h): New include.
  13864. (maxDownloadSpeedLimit): New variable.
  13865. (startupIdleTime): New variable.
  13866. (lowestDownloadSpeedLimit): New variable.
  13867. (peerStat): New variable.
  13868. (setMaxDownloadSpeedLimit): New function.
  13869. (setStartupIdleTime): New function.
  13870. (setLowestDownloadSPeedLimit): New function.
  13871. * src/BtContext.h
  13872. (getPieceHashes): New function.
  13873. * src/main.cc
  13874. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13875. option to true for testing purpose.
  13876. * src/BtPieceMessage.cc
  13877. (checkPieceHash): Use messageDigest
  13878. * src/DownloadEngine.cc
  13879. (SetDescriptor): Removed.
  13880. (AccumulateActiveCommand): Removed.
  13881. (waitData): Rewritten.
  13882. (updateFdSet): Rewritten.
  13883. * src/MultiDiskAdaptor.cc
  13884. (hashUpdate): Added ctx.
  13885. (sha1Sum): Renamed as messageDigest.
  13886. (messageDigest): New function.
  13887. * src/BitfieldMan.h
  13888. (isBitRangeSet): New function.
  13889. (unsetBitRange): New function.
  13890. * src/ByteArrayDiskWriter.h
  13891. (sha1Sum): Renamed as messageDigest.
  13892. (messageDigest): New function.
  13893. * src/ConsoleDownloadEngine.cc
  13894. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13895. * src/DiskWriter.h
  13896. (messageDigest.h): New include.
  13897. (sha1Sum): Renamed as messageDigest.
  13898. (messageDigest): New function.
  13899. * src/ChunkChecksumValidator.h: New class.
  13900. * src/DiskAdaptorWriter.h: New class.
  13901. * src/prefs.h
  13902. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13903. (PREF_CHECK_INTEGRITY): New definition.
  13904. * src/HttpResponseCommand.cc
  13905. (handleDefaultEncoding): Added method "HEAD" handling.
  13906. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13907. (handleOtherEncoding):
  13908. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13909. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13910. startupIdleTime, lowestDownloadSpeedLimit to command.
  13911. * src/SegmentMan.h
  13912. (getSegmentEntryByIndex): New function.
  13913. (getSegmentEntryByCuid): New function.
  13914. (getSegmentEntryIteratorByCuid): New function.
  13915. (diskWriter): DiskWriter -> DiskWriterHandle
  13916. (pieceHashes): New variable.
  13917. (chunkHashLength): New variable.
  13918. (digestAlgo): New variable.
  13919. (FindPeerStat): Removed.
  13920. (getPeerStat): Rewritten.
  13921. (markAllPiecesDone): New function.
  13922. (checkIntegrity): New function.
  13923. (tryChunkChecksumValidation): New function.
  13924. (isChunkChecksumValidationReady): New function.
  13925. * src/BitfieldMan.cc
  13926. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13927. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13928. blocks to 0.
  13929. (isBitRangeSet): New function.
  13930. (unsetBitRange): New function.
  13931. * src/FtpNegotiateCommand.cc
  13932. (executeInternal): Set maxDownloadSpeedLimit,
  13933. startupIdleTime, lowestDownloadSpeedLimit to command.
  13934. (recvSize): Added method "HEAD" handling.
  13935. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13936. * src/AbstractSingleDiskAdaptor.cc
  13937. (sha1Sum): Renamed as messageDigest.
  13938. (messageDigest): New function.
  13939. * src/AbstractSingleDiskAdaptor.h
  13940. (sha1Sum): Renamed as messageDigest.
  13941. (messageDigest): New function.
  13942. * src/Util.h
  13943. (indexRange): New function.
  13944. * src/MetalinkEntry.cc
  13945. (MetalinkEntry): Initialized chunkChecksum to 0.
  13946. * src/ShaVisitor.cc
  13947. (~ShaVisitor): Removed the call to ctx.digestFree().
  13948. * src/SegmentMan.cc
  13949. (ChunkChecksumValidator.h): New include.
  13950. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13951. to DIGEST_ALGO_SHA1.
  13952. (~SegmentMan): Removed diskWriter.
  13953. (FindSegmentEntryByIndex): Removed.
  13954. (FindSegmentEntryByCuid): Removed.
  13955. (checkoutSegment): Rewritten.
  13956. (findSlowerSegmentEntry): Rewritten.
  13957. (getSegment): Rewritten.
  13958. (updateSegment): Rewritten.
  13959. (completeSegment): Rewritten.
  13960. (markAllPiecesDone): New function.
  13961. (checkIntegrity): New function.
  13962. (isChunkChecksumValidationReady): New function.
  13963. (tryChunkChecksumValidation): New function.
  13964. * src/Xml2MetalinkProcessor.cc
  13965. (getEntry): Get size and set it to entry.
  13966. Get chunk checksum and set it to entry.
  13967. (getPieceHash): New function.
  13968. * src/Util.cc
  13969. (sha1Sum): Removed ctx.digestFree()
  13970. (fileChecksum): Removed ctx.digestFree()
  13971. (indexRange): New function.
  13972. * src/Request.cc
  13973. (METHOD_GET): New variable.
  13974. (METHOD_HEAD): New variable.
  13975. (Request): Added method.
  13976. * src/UrlRequestInfo.cc
  13977. (FatalException.h): New include.
  13978. (message.h): New include.
  13979. (operator<<): Added operator<< for class HeadResult.
  13980. (getHeadResult): New function.
  13981. (execute): Get filename and size in separate download engine.
  13982. * src/ChunkChecksumValidator.cc: New class.
  13983. * src/DownloadCommand.cc:
  13984. (DownloadCommand): Added peerStat.
  13985. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13986. the value from Option.
  13987. The buffer size is now 16KB.
  13988. Use peerStat member instead of getting it from SegmentMan.
  13989. Use startupIdleTime member instead of gettingit from Option.
  13990. Added chunk checksum validation.
  13991. * src/AbstractDiskWriter.cc
  13992. (AbstractDiskWriter): Removed ctx.
  13993. (~AbstractDiskWriter): Removed ctx.digestFree()
  13994. (writeDataInternal): Returns the return value of write.
  13995. (readDataInternal): Returns the return value of read.
  13996. (sha1Sum): Renamed as messageDigest
  13997. (messageDigest): New function.
  13998. * src/AbstractDiwkWriter.h
  13999. (messageDigest.h): Removed include.
  14000. (ctx): Removed.
  14001. (sha1Sum): Renamed as messageDigest
  14002. (messageDigest): New function.
  14003. * src/DefaultPieceStorage.h
  14004. (markAllPiecesDone): New function.
  14005. (checkIntegrity): New function.
  14006. * src/NullFileAllocationMonitor.h: New class.
  14007. * src/MetalinkChunkChecksum.h: New class.
  14008. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14009. To decrease CPU usage in bittorrent download, calculation results in
  14010. BitfieldMan were cached and realtime fetching PeerObject was removed
  14011. with WeakHandle introduced. Option values are set to the objects
  14012. by setter before download begins.
  14013. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14014. * src/DefaultBtRequestFactory.h
  14015. (dispatcher): BtMessageDispatcherHandle ->
  14016. BtMessageDispatcherWeakHandle.
  14017. (messageFactory): New variable.
  14018. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14019. BtMessageDispatcherWeakHandle.
  14020. (setBtMessageFactory): New function.
  14021. * src/DefaultBtMessageDispatcher.cc:
  14022. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14023. from Option.
  14024. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14025. feating the value from Option.
  14026. Use messageFactory member.
  14027. * src/PeerInteractionCommand.cc
  14028. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14029. Add reverse dependencies to factory object.
  14030. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14031. dispatcher.
  14032. Set messageFactory to receiver.
  14033. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14034. btInteractive.
  14035. Set receiver to peerObject.
  14036. Set maxDownloadSpeedLimit to this.
  14037. (executeInternal): Use maxDownloadSpeedLimit member.
  14038. * src/BtChokeMessage.cc
  14039. (doReceivedAction): Use dispatcher, requestFactory member.
  14040. (onSendComplete): Use dispatcher member.
  14041. * src/PeerInteractionCommand.h
  14042. (maxDownloadSpeedLimit): New variable.
  14043. * src/DefaultBtMessageReceiver.h
  14044. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14045. (dispatcher):
  14046. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14047. (messageFactory): New variable.
  14048. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14049. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14050. (setDispatcher):
  14051. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14052. (setBtMessageFactory): New function.
  14053. * src/DefaultBtInteractive.cc
  14054. (initiateHandshake): Use messageFactory member.
  14055. (addBitfieldMessageToQueue): Use messageFactory member.
  14056. (addAllowedFastMessageToQueue): Use messageFactory member.
  14057. (decideChoking): Use messageFactory member.
  14058. (checkHave): Use messageFactory member.
  14059. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14060. (receiveMessages): Use maxDownloadSpeedLimit member.
  14061. (decideInterest): Use messageFactory member.
  14062. * src/BtRequestMessage.cc
  14063. (doReceivedAction): Use messageFactory, dispatcher member.
  14064. (onQueued): Use dispatcher member.
  14065. * src/BtPieceMessage.cc
  14066. (doReceivedAction): Use dispatcher member.
  14067. (send): Use peerConnection member.
  14068. (onWrongPiece): Use requestFactory member.
  14069. (handleChokingEvent): Use messageFactory, dispatcher member.
  14070. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14071. * src/BtMessageDispatcher.h
  14072. (BtMessageDispatcherWeakHandle): New type definition.
  14073. * src/SimpleBtMessage.cc
  14074. (send): Use peerConnection member.
  14075. * src/BtRejectMessage.cc
  14076. (doReceivedAction): Use dispatcher member.
  14077. * src/DefaultBtMessageDispatcher.h
  14078. (Option.h): Removed include.
  14079. (messageFactory): New variable.
  14080. (option): Removed.
  14081. (maxUploadSpeedLimit): New variable.
  14082. (requestTimeout): New variable.
  14083. (DefaultBtMessageDispatcher): Removed option.
  14084. Added maxUploadSpeedLimit, requestTimeout.
  14085. (setOption): Removed.
  14086. (getOption): Removed.
  14087. (setMaxUploadSpeedLimit): New function.
  14088. (setRequestTimeout): New function.
  14089. (setBtMessageFactory): New function.
  14090. * src/DefaultBtInteractive.h
  14091. (btMessageReceiver):
  14092. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14093. (dispatcher):
  14094. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14095. (btRequestFactory):
  14096. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14097. (peerConnection):
  14098. PeerConnectionHandle -> PeerConnectionWeakHandle
  14099. (messageFactory): New variable.
  14100. (option): Removed.
  14101. (keepAliveInterval): New variable.
  14102. (maxDownloadSpeedLimit): New variable.
  14103. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14104. (setBtMessageReceiver):
  14105. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14106. (setDispatcher):
  14107. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14108. (setBtRequestFactory):
  14109. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14110. (setPeerConnection):
  14111. PeerConnectionHandle -> PeerConnectionWeakHandle
  14112. (setOption): Removed.
  14113. (setKeepAliveInterval): New function.
  14114. (setMaxDownloadSpeedLimit): New function.
  14115. (setBtMessageFactory): New function.
  14116. * src/BitfieldMan.h
  14117. (cachedNumMissingBlock): New variable.
  14118. (cachedNumFilteredBlock): New variable.
  14119. (cachedCompletedLength): New variable.
  14120. (cachedFilteredComletedLength): New variable.
  14121. (cachedFilteredTotalLength): New variable.
  14122. (countMissingBlockNow): New function.
  14123. (countFilteredBlockNow): New function.
  14124. (getFilteredTotalLengthNow): New function.
  14125. (getCompletedLengthNow): New function.
  14126. (getFilteredCompletedLengthNow): New function.
  14127. (updateCache): New function.
  14128. * src/AbstractBtMessage.h
  14129. (BtMessageDispatcher.h): New include.
  14130. (PeerConnection.h): New include.
  14131. (BtRequestFactory.h): New include
  14132. (BtMessageFactory.h): New include.
  14133. (dispatcher): New variable.
  14134. (messageFactory): New variable.
  14135. (peerConnection: New variable.
  14136. (setBtMessageDispatcher): New function.
  14137. (setPeerConnection): New function.
  14138. (setBtMessageFactory): New function.
  14139. (setBtRequestFactory): New function.
  14140. * src/DefaultBtMessageFactory.cc
  14141. (setCommonProperty): Set dispatcher, requestFactory, this,
  14142. peerConnection to msg.
  14143. * src/BtRegistry.h
  14144. (BT_MESSAGE_RECEIVER): New macro.
  14145. * src/PeerConnection.h
  14146. (PeerConnectionWeakHandle): New type definition.
  14147. * src/BtMessageFactory.h
  14148. (BtMessageFactoryWeakHandle): New type definition.
  14149. * src/BitfieldMan.cc
  14150. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14151. cachedCompletedLength, cachedFilteredComletedLength,
  14152. cachedFilteredTotalLength.
  14153. Call updateCache().
  14154. (countMissingBlock): Return cachedNumMissingBlock.
  14155. (countMissingBlockNow): New function.
  14156. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14157. (countFilteredBlockNow): New function.
  14158. (setBit): Call updateCache().
  14159. (unsetBit): Call updateCache().
  14160. (setBitfield): Call updateCache().
  14161. (clearAllBit): Call updateCache().
  14162. (setAllBit): Use setBitInternal instead of setBit.
  14163. Call updateCache().
  14164. (addFilter): Call updateCache().
  14165. (enableFilter): Call updateCache().
  14166. (disableFilter): Call updateCache().
  14167. (clearFilter): Call updateCache().
  14168. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14169. (getFilteredTotalLengthNow): New function.
  14170. (getCompletedLength): Return cachedCompletedLength.
  14171. (getCompletedLengthNow): New function.
  14172. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14173. (getFilteredCompletedLengthNow): New function.
  14174. (updateCache): New function.
  14175. * src/BtMessageReceiver.h
  14176. (BtMessageReceiverWeakHandle): New type definition.
  14177. * src/DefaultBtMessageReceiver.cc
  14178. (receiveHandshake): Use messageFactory member.
  14179. (sendHandshake): Use messageFactory member.
  14180. (receiveMessage): Use messageFactory member.
  14181. * src/DefaultBtMessageFactory.h
  14182. (dispatcher): New variable.
  14183. (requestFactory): New variable.
  14184. (peerConnection): New variablle.
  14185. (setBtMessageDispatcher): New function.
  14186. (setBtRequestFactory): New function.
  14187. (setPeerConnection): New function.
  14188. * src/SharedHandle.h
  14189. (RefCount): New class.
  14190. (WeakHandle): New class.
  14191. * src/PeerObject.h
  14192. (BtMessageReceiver.h): New include.
  14193. (PeerObject): Added btMessageReceiver.
  14194. (btMessageReceiver): New variable.
  14195. * src/Util.cc
  14196. (countBit): Simplified.
  14197. * src/BtCancelMessage.cc
  14198. (doReceivedAction): Use dispatcher member.
  14199. * src/BtRequestFactory.h
  14200. (BtRequestFactoryWeakHandle): New type definition.
  14201. * src/PeerStorage.h
  14202. (downloadSpeed): int -> uint32_t
  14203. (uploadSpeed): int -> uint32_t
  14204. (sessionDownloadLength): long long int -> uint64_t
  14205. (sessionUploadLength): long long int -> uint64_t
  14206. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14207. To add RecoverableException, FatalException:
  14208. * src/AbstractCommand.cc
  14209. (onAbort): Exception -> RecoverableException
  14210. * src/PeerAbstractCommand.h
  14211. (RecoverableException.h): New include.
  14212. (onAbort): Exception -> RecoverableException.
  14213. * src/PeerInteractionCommand.cc
  14214. (onAbort): Exception -> RecoverableException.
  14215. * src/PeerAbstractCommand.cc
  14216. (execute): Exception -> RecoverableException.
  14217. (onAbort): Exception -> RecoverableException.
  14218. * src/TorrentRequestInfo.cc
  14219. (execute): Exception -> RecoverableException.
  14220. * src/MetalinkRequestInfo.cc
  14221. (execute): Exception -> RecoverableException.
  14222. * src/MetaFileUtil.cc: RecoverableException.
  14223. * src/AbstractCommand.h
  14224. (onAbort): Exception -> RecoverableException.
  14225. * src/DlRetryEx.h: Exception -> RecoverableException.
  14226. * src/DlAbortEx.h: Exception -> RecoverableException.
  14227. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14228. * src/Util.cc: Exception -> RecoverableException.
  14229. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14230. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14231. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14232. To make ID static const int
  14233. * src/BtInterestedMessage.h
  14234. (ID_t): Removed.
  14235. (ID): New variable.
  14236. (getId): Made non-const.
  14237. * src/BtPieceMessage.h
  14238. (ID_t): Removed.
  14239. (ID): New variable.
  14240. (getId): Made non-const.
  14241. * src/BtChokeMessage.h
  14242. (ID_t): Removed.
  14243. (ID): New variable.
  14244. (getId): Made non-const.
  14245. * src/BtHaveAllMessage.h
  14246. (ID_t): Removed.
  14247. (ID): New variable.
  14248. (getId): Made non-const.
  14249. * src/BtKeepAliveMessage.h
  14250. (ID_t): Removed.
  14251. (ID): New variable.
  14252. (getId): Made non-const.
  14253. * src/BtHandshakeMessage.h
  14254. (ID): New variable.
  14255. (getId): Made non-const.
  14256. * src/BtSuggestPieceMessage.h
  14257. (ID_t): Removed.
  14258. (ID): New variable.
  14259. (getId): Made non-const.
  14260. * src/BtPortMessage.h
  14261. (ID_t): Removed.
  14262. (ID): New variable.
  14263. (getId): Made non-const.
  14264. * src/AbstractBtMessage.h
  14265. (id): Removed.
  14266. (AbstractBtMessage): Removed id.
  14267. (getId): Removed.
  14268. * src/BtHaveMessage.h
  14269. (ID_t): Removed.
  14270. (ID): New variable.
  14271. (getId): Made non-const.
  14272. * src/BtAllowedFastMessage.h
  14273. (ID_t): Removed.
  14274. (ID): New variable.
  14275. (getId): Made non-const.
  14276. * src/BtCancelMessage.h
  14277. (ID_t): Removed.
  14278. (ID): New variable.
  14279. (getId): Made non-const.
  14280. * src/BtNotInterestedMessage.h
  14281. (ID_t): Removed.
  14282. (ID): New variable.
  14283. (getId): Made non-const.
  14284. * src/BtChokeMessage.h
  14285. (ID_t): Removed.
  14286. (ID): New variable.
  14287. (getId): Made non-const.
  14288. * src/BtRejectMessage.h
  14289. (ID_t): Removed.
  14290. (ID): New variable.
  14291. (getId): Made non-const.
  14292. * src/BtBitfieldMessage.h
  14293. (ID_t): Removed.
  14294. (ID): New variable.
  14295. (getId): Made non-const.
  14296. * src/BtUnchokeMessage.h
  14297. (ID_t): Removed.
  14298. (ID): New variable.
  14299. (getId): Made non-const.
  14300. * src/BtRequestMessage.h
  14301. (ID_t): Removed.
  14302. (ID): New variable.
  14303. (getId): Made non-const.
  14304. * src/BtHaveMessage.h
  14305. (ID_t): Removed.
  14306. (ID): New variable.
  14307. (getId): Made non-const.
  14308. To add --force-truncate command-line option and a check whether
  14309. the file already exists:
  14310. * src/DirectDiskAdaptor.h
  14311. (getFilePath): Made virtual public.
  14312. * src/MultiDiskAdaptor.h
  14313. (File.h): New include.
  14314. (DiskWriterEntry::fileEntry): Made private.
  14315. (DiskWriterEntry::fileExists): New function.
  14316. (DiskWriterEntry::getFileEntry): New function.
  14317. (fileExists): New function.
  14318. (getFilePath): New function.
  14319. * src/TorrentRequestInfo.cc
  14320. (FatalException.h): New include.
  14321. (message.h): New include.
  14322. (RecoverableException.h): New include.
  14323. (execute): Added a check whether file is already exists or not.
  14324. * src/DiskAdaptor.h
  14325. (fileExists): New function.
  14326. (getFilePath): New function.
  14327. * src/main.cc
  14328. (showUsage): Added an explanation of --force-truncate command-line
  14329. option.
  14330. (main): Added --force-truncate command-line option.
  14331. * src/Exception.h
  14332. (setMsg): buf[256] -> buf[1024]
  14333. * src/CopyDiskWriter.h
  14334. (getFilePath): Made public virtual.
  14335. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14336. (fileExists): New function.
  14337. * src/DownloadEngineFactory.cc
  14338. (newTorrentConsoleEngine): Don't open file here.
  14339. * src/message.h
  14340. (EX_FILE_ALREADY_EXISTS): New definition.
  14341. * src/prefs.h
  14342. (PREF_FOECE_TRUNCATE): New definition.
  14343. * src/HttpResponseCommand.cc
  14344. (handleDefaultEncoding): Added a check whether the file already exists.
  14345. * src/SegmentMan.h
  14346. (fileExists): New function.
  14347. (shouldCancelDownloadForSafety): New function.
  14348. * src/FtpNegotiateCommand.cc
  14349. (recvSize): Added a check whether the file already exists.
  14350. * src/AbstractSingleDiskAdaptor.cc
  14351. (File.h): New include.
  14352. (fileExists): New function.
  14353. * src/AbstractSingleDiskAdaptor.h
  14354. (getFilePath): Removed.
  14355. (fileExists): New function.
  14356. * src/SegmentMan.cc
  14357. (fileExists): New function.
  14358. (shouldCancelDownloadForSafety): New function.
  14359. To fix regression bug in torrent downloading:
  14360. * src/DefaultBtRequestFactory.cc
  14361. (doChokedAction): New function.
  14362. * src/DefaultBtRequestFactory.h
  14363. (doChokedAction): New function.
  14364. * src/DefaultBtMessageDispatcher.cc
  14365. (doChokedAction): Do not delete request if its target is in allowed
  14366. fast set.
  14367. * src/DefaultBtInteractive.cc
  14368. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14369. (sendKeepAlive): Send keep alive message even if the outgoing message
  14370. queue is not empty.
  14371. (decideInterest): Simplified the code.
  14372. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14373. it is already called when BtChokeMessage is received from a peer.
  14374. * src/BtRequestFactory.h
  14375. (doChokedAction): New function.
  14376. To clean up code:
  14377. * src/PeerInteractionCommand.h
  14378. (executeInternal): Added virtual keyword explicitly.
  14379. (prepareForRetry): Added virtual keyword explicitly.
  14380. (prepareForNextPeer): Added virtual keyword explicitly.
  14381. (onAbort): Added virtual keyword explicitly.
  14382. * src/RequestSlot.cc
  14383. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14384. * src/BtPieceMessage.cc
  14385. (doReceivedAction): Added a debug log of piece's bitfield.
  14386. * src/Piece.h
  14387. (getBitfieldLength): New function.
  14388. * src/ByteArrayDiskWriter.cc
  14389. (clear): Added buf = 0 to avoid double free corruption.
  14390. * src/FileAllocator.cc
  14391. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14392. Added cp.reset().
  14393. * src/BitfieldMan.h
  14394. (operator=): Rewritten.
  14395. * src/BitfieldMan.cc
  14396. (BitfieldMan): Initialized bitfield, useBitfield.
  14397. * src/PeerConnection.cc
  14398. (receiveMessage): Added a call to socket->readable() after getting
  14399. message length to avoid possible EOF.
  14400. * src/Util.cc
  14401. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14402. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14403. To add an ability to pre-allocate file space:
  14404. * src/DirectDiskAdaptor.h: Rewritten.
  14405. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14406. * src/MultiDiskAdaptor.h: Rewritten.
  14407. * src/DefaultPieceStorage.cc
  14408. (MultiDiskWriter.h): Removed include.
  14409. (PreAllocationDiskWriter.h): Removed include.
  14410. (FileAllocationMonitor.h): New include.
  14411. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14412. (initStorage): Rewritten.
  14413. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14414. * src/FileAllocator.h: New class.
  14415. * src/FileAllocator.cc: New class.
  14416. * src/FileAllocationMonitor.h: New class.
  14417. * src/FileAllocationMonitor.cc: New class.
  14418. * src/ConsoleFileAllocationMonitor.h: New class.
  14419. * src/ConsoleFileAllocationMonitor.cc: New class.
  14420. * src/AbstractSingleDiskAdaptor.h: New class.
  14421. * src/AbstractSingleDiskAdaptor.cc: New class.
  14422. * src/DiskAdaptor.h
  14423. (Directory.h): Removed include.
  14424. (DiskWriter.h): Removed include.
  14425. (FileEntry.h): Removed include.
  14426. (diskWriter): Removed.
  14427. (DiskAdaptor): Removed diskWriter.
  14428. (openFile): Made pure virtual.
  14429. (closeFile): Made pure virtual.
  14430. (openExistingFile): Made pure virtual.
  14431. (initAndOpenFile): Made pure virtual.
  14432. (writeData): Made pure virtual.
  14433. (readData): Made pure virtual.
  14434. (sha1Sum): Made pure virtual.
  14435. (getStoreDir): Returns const reference of storeDir.
  14436. (DiskAdaptorHandle): New type definition.
  14437. * src/main.cc
  14438. (ConsoleFileAllocationMonitor.h): New include.
  14439. (showUsage): Added default value description of -s option.
  14440. Added the description of --file-allocation option.
  14441. (main): Set default value of --file-allocation option to 'none'.
  14442. Added --file-allocation command-line option.
  14443. Setup FileAllocationMonitorFactory.
  14444. * src/FtpInitiateConnectionCommand.cc
  14445. (executeInternal): Removed diskWriter related processing, which was
  14446. moved to FtpNegotiationCommand.cc.
  14447. * src/DirectDiskAdaptor.cc
  14448. (getFilePath): Made non-const.
  14449. * src/CopyDiskAdaptor.h
  14450. (DiskAdaptor.h): Removed include.
  14451. (DiskWriter.h): Removed include.
  14452. (AbstractSingleDiskAdaptor.h): New include.
  14453. (getFilePath): Made non-const. Added virtual keyword.
  14454. (CopyDiskAdaptor): Removed diskWriter.
  14455. (getTempFile): Returns const reference.
  14456. (CopyDiskAdaptorHandle): New type definition.
  14457. * src/ByteArrayDiskWriter.cc
  14458. (clear): Simplified.
  14459. (initAndOpenFile): Rewritten.
  14460. (openFile): Call initAndOpenFile()
  14461. * src/MultiDiskAdaptor.cc: Rewritten.
  14462. * src/DownloadEngineFactory.cc
  14463. (FileAllocator.h): New include.
  14464. (FileAllocationMonitor.h): New include.
  14465. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14466. create DefaultDiskWriter with file allocator.
  14467. * src/DiskWriter.h
  14468. (initAndOpenFile): Added totalLength argument.
  14469. (openFile): Added totalLength argument.
  14470. * src/prefs.h
  14471. (PREF_FILE_ALLOCATION): New definition.
  14472. (V_PREALLOC): New definition.
  14473. (V_NONE): New definition.
  14474. * src/HttpResponseCommand.cc
  14475. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14476. size.
  14477. * src/FtpNegotiateCommand.cc
  14478. (Util.h): New include.
  14479. (recvSize): Open file here.
  14480. * src/Util.h
  14481. (ullitos): New function.
  14482. * src/CopyDiskWriter.h
  14483. (getFilePath): Made non-const.
  14484. * src/DefaultDiskWriter.h
  14485. (Option.h): New include.
  14486. (totalLength): Removed.
  14487. (DefaultDiskWriter): Removed totalLength.
  14488. (initAndOpenFile): Added totalLength argument.
  14489. (DefaultDiskWriterHandle): New type definition.
  14490. (createNewDiskWriter): New function.
  14491. * src/Util.cc
  14492. (ullitos): New function.
  14493. * src/DefaultDiskWriter.cc
  14494. (message.h): New include.
  14495. (FileAllocator.h): New include.
  14496. (prefs.h): New include.
  14497. (Util.h): New include.
  14498. (DefaultDiskWriter): Removed totalLength.
  14499. (initAndOpenFile): Added file allocation.
  14500. (createNewDiskWriter): New function. Just for temporary solution.
  14501. It will be rewritten later.
  14502. * src/DiskAdaptor.cc
  14503. (DiskAdaptor): Removed diskWriter.
  14504. * src/AbstractDiskWriter.cc
  14505. (LogFactory.h): New include.
  14506. (AbstractDiskWriter): Added fileAllocator, logger.
  14507. (openFile): Added totalLength argument.
  14508. * src/AbstractDiskWriter.h
  14509. (FileAllocator.h): New include.
  14510. (Logger.h): New include.
  14511. (fileAllocator): New variable.
  14512. (logger): New variable.
  14513. (openFile): Added totalLength argument. Added virtual keyword
  14514. explicitly.
  14515. (openExistingFile): Added totalLength argument. Added virtual keyword
  14516. explicitly.
  14517. (closeFile): Added virtual keyword explicitly.
  14518. (sha1Sum): Added virtual keyword explicitly.
  14519. (writeData): Added virtual keyword explicitly.
  14520. (readData): Added virtual keyword explicitly.
  14521. (setFileAllocator): New function.
  14522. * src/DefaultPieceStorage.h
  14523. (FileAllocator.h): New include.
  14524. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14525. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14526. * src/FileProgressMonitor.h: New class.
  14527. To compile aria2 on PC-BSD:
  14528. * src/DefaultBtContext.cc
  14529. (libgen.h): New include.
  14530. To fix memory leak:
  14531. * src/Exception.h
  14532. (~Exception): Delete cause. Fixed memory leak.
  14533. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14534. Rewritten a portion of bittorrent implementation:
  14535. * src/BtMessageValidator.h: New class.
  14536. * src/BtBitfieldMessageValidator.h: New class.
  14537. * src/BtHandshakeMessageValidator.h: New class.
  14538. * src/BtRequestMessageValidator.h: New class.
  14539. * src/BtSuggestPieceMessageValidator.h: New class.
  14540. * src/BtAllowedFastMessageValidator.h: New class.
  14541. * src/BtRejectMessageValidator.h: New class.
  14542. * src/BtCancelMessageValidator.h: New class.
  14543. * src/BtPieceMessageValidator.h: New class.
  14544. * src/BtHaveMessageValidator.h: New class.
  14545. * src/BtEventListener.h: New class.
  14546. * src/AbstractBtEventListener.h: New class.
  14547. * src/BtEvent.h: New class.
  14548. * src/BtChokingEvent.h: New class.
  14549. * src/BtChokedEvent.h: New class.
  14550. * src/BtCancelSendingPieceEvent.h: New class.
  14551. * src/BtAbortOutstandingRequestEvent.h: New class.
  14552. * src/Randomizer.h: New class.
  14553. * src/SimpleRandomizer.h: New class.
  14554. * src/BtMessage.h: New class.
  14555. * src/AbstractBtMessage.h: New class.
  14556. * src/SimpleBtMessage.h: New class.
  14557. * src/BtHaveMessage.h: New class.
  14558. * src/BtInterestedMessage.h: New class.
  14559. * src/BtAllowedFastMessage.h: New class.
  14560. * src/BtUnchokeMessage.h: New class.
  14561. * src/BtCancelMessage.h: New class.
  14562. * src/BtNotInterestedMessage.h: New class.
  14563. * src/BtChokeMessage.h: New class.
  14564. * src/BtHaveNoneMessage.h: New class.
  14565. * src/BtHandshakeMessage.h: New class.
  14566. * src/BtSuggestPieceMessage.h: New class.
  14567. * src/BtHaveMessage.h: New class.
  14568. * src/BtPieceMessage.h: New class.
  14569. * src/BtHaveAllMessage.h: New class.
  14570. * src/BtKeepAliveMessage.h: New class.
  14571. * src/BtPortMessage.h: New class.
  14572. * src/BtRejectMessage.h: New class.
  14573. * src/BtBitfieldMessage.h: New class.
  14574. * src/BtRequestMessage.h: New class.
  14575. * src/DefaultBtRequestFactory.h: New class.
  14576. * src/DefaultBtMessageReceiver.h: New class.
  14577. * src/BtInteractive.h: New class.
  14578. * src/BtMessageDispatcher.h: New class.
  14579. * src/DefaultBtMessageDispatcher.h: New class.
  14580. * src/DefaultBtInteractive.h: New class.
  14581. * src/BitfieldManFactory.h: New class.
  14582. * src/HandleRegistry.h: New class.
  14583. * src/BtMessageFactory.h: New class.
  14584. * src/BtMessageReceiver.h: New class.
  14585. * src/DefaultBtMessageFactory.h: New class.
  14586. * src/PeerObject.h: New class.
  14587. * src/BtRequestFactory.h: New class.
  14588. * src/SuggestPieceMessage.h: Removed.
  14589. * src/PortMessage.h: Removed.
  14590. * src/SuggestPieceMessage.h: Removed.
  14591. * src/KeepAliveMessage.h: Removed.
  14592. * src/HandshakeMessage.h: Removed.
  14593. * src/PeerInteraction.h: Removed.
  14594. * src/UnchokeMessage.h: Removed.
  14595. * src/PieceMessage.h: Removed.
  14596. * src/RequestMessage.h: Removed.
  14597. * src/InterestedMessage.h: Removed.
  14598. * src/HaveMessage.h: Removed.
  14599. * src/CancelMessage.h: Removed.
  14600. * src/RejectMessage.h: Removed.
  14601. * src/AllowedFastMessage.h: Removed.
  14602. * src/HaveNoneMessage.h: Removed.
  14603. * src/SimplePeerMessage.h: Removed.
  14604. * src/HaveAllMessage.h: Removed.
  14605. * src/BitfieldMessage.h: Removed.
  14606. * src/PeerMessageFactory.h: Removed.
  14607. * src/NotInterestedMessage.h: Removed.
  14608. * src/ChokeMessage.h: Removed.
  14609. * src/PeerMessage.h: Removed.
  14610. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14611. To know root cause of exception:
  14612. * src/Exception.h
  14613. (cause): New variable.
  14614. (Exception): Added a parameter.
  14615. (getMsg): Return const reference to msg.
  14616. (getCause): New function.
  14617. * src/DlRetryEx.h
  14618. (DlRetryEx): Added a parameter 'cause'.
  14619. Added an overloaded constructor.
  14620. (DlAbortEx): Added a parameter 'cause'.
  14621. Added an overloaded constructor.
  14622. * src/SimpleLogger.cc
  14623. (writeLog): Log nested exception messages recursively.
  14624. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14625. * src/DefaultBtProgressInfoFile.cc
  14626. (load): Fixed memory leak when the infohash doesn't match.
  14627. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14628. * src/DefaultPeerStorage.cc
  14629. (calculateStat): Simplified the code by combining 2 loops into 1.
  14630. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14631. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14632. for BitTorrent download:
  14633. * src/PeerAbstractCommand.cc
  14634. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14635. * src/main.cc:
  14636. (timeoutSpecified): Removed.
  14637. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14638. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14639. * src/TorrentRequestInfo.cc
  14640. (timeoutSpecified): Removed.
  14641. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14642. timeout value.
  14643. * src/prefs.h
  14644. (PREF_BT_TIMEOUT): New definition.
  14645. Delete unused variables:
  14646. * src/TorrentRequestInfo.cc
  14647. (requestInfo): Removed.
  14648. Move setSignalHander to Util::setGlobalSignalHandler:
  14649. * src/TorrentRequestInfo.cc:
  14650. setSignalHander -> Util::setGlobalSignalHandler
  14651. * src/main.cc
  14652. (setSignalHander): Removed.
  14653. (main): setSignalHander -> Util::setGlobalSignalHandler
  14654. * src/Util.h
  14655. (setGlobalSignalHandler): New function.
  14656. * src/Util.cc
  14657. (setGlobalSignalHandler): New function.
  14658. * src/UrlRequestInfo.cc:
  14659. setSignalHander -> Util::setGlobalSignalHandler
  14660. Reset peer status in order to exit gracefully:
  14661. * src/PeerAbstractCommand.cc
  14662. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14663. To fix the bug that causes the number of bytes uploaded is not saved
  14664. to .aria2 file:
  14665. * src/DefaultPeerStorage.h
  14666. (removedPeerSessionDownloadLength): New variable.
  14667. (removedPeerSessionUploadLength): New variable.
  14668. * src/DefaultPeerStorage.cc
  14669. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14670. removedPeerSessionUploadLength(0).
  14671. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14672. through all peers, and then add removedPeerSessionDownloadLength(
  14673. removedPeerSessionUploadLength) to it.
  14674. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14675. (to) the peer to removedPeerSessionDownloadLength
  14676. (removedPeerSessionUploadLength).
  14677. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14678. To add Metalink location option:
  14679. * src/MetalinkRequestInfo.cc
  14680. (execute): Call MetalinkEntry::setLocationPreference()
  14681. * src/main.cc
  14682. (showUsage): Added the help message for --metalink-location option.
  14683. (main): Added --metalink-location option.
  14684. * src/prefs.h
  14685. (PREF_METALINK_LOCATION): New definition.
  14686. * src/MetalinkEntry.cc
  14687. (AddLocationPreference): New function object.
  14688. (setLocationPreference): New function.
  14689. * src/Xml2MetalinkProcessor.cc
  14690. (getResource): Set location attribute to MetalinkResource
  14691. To show URLs to download
  14692. * src/UrlRequestInfo.h
  14693. (printUrls): New function.
  14694. To add multiple <file> Metalink support:
  14695. * src/MetalinkEntry.h
  14696. (MetalinkResources): Removed.
  14697. (setLocationPreference): New function.
  14698. (MetalinkEntryHandle): New type definition.
  14699. (MetalinkEntries): New type definition.
  14700. * src/Xml2MetalinkProcessor.h
  14701. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14702. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14703. (parseFile): Metalinker* -> MetalinkerHandle
  14704. * src/UrlRequestInfo.h
  14705. (execute): RequestInfo* -> RequestInfos
  14706. * src/MetalinkRequestInfo.cc
  14707. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14708. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14709. (execute): RequestInfo* -> RequestInfos
  14710. Added multiple <file> support. Print filename when it is queued.
  14711. * src/MetalinkRequestInfo.h
  14712. (execute): RequestInfo* -> RequestInfos
  14713. (getDownloadEngine): Removed.
  14714. * src/RequestInfo.h
  14715. (RequestInfoHandle): New type definition.
  14716. (RequestInfos): New type definition.
  14717. (execute): RequestInfo* -> RequestInfos
  14718. (getDownloadEngine): Removed.
  14719. * src/MetalinkResource.h
  14720. (MetalinkResourceHandle): New type definition.
  14721. (MetalinkResources): New type definition.
  14722. * src/MetalinkEntry.cc
  14723. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14724. because the element is now of type MetalinkResourceHandle.
  14725. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14726. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14727. (dropUnsupportedResource): Removed the deletion of the elements of
  14728. resources because the element is now of type MetalinkResourceHandle.
  14729. * src/Xml2MetalinkProcessor.cc
  14730. (parseFile): Metalinker* -> MetalinkerHandle
  14731. MetalinkEntry* -> MetalinkEntryHandle
  14732. Removed try-catch block.
  14733. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14734. MetalinkResource* -> MetalinkResourceHandle
  14735. Removed try-catch block.
  14736. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14737. Free result by using xmlXPathFreeObject()
  14738. * src/Metalinker.cc
  14739. (~Metalinker): Removed the deletion of entries.
  14740. MetalinkEntry* -> MetalinkEntryHandle
  14741. (queryEntry): Add multiple <file> Metalink support.
  14742. * src/Metalinker.h
  14743. (MetalinkEntries): Removed.
  14744. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14745. * src/MetalinkProcessor.h
  14746. (parseFile): Metalinker* -> MetalinkerHandle
  14747. Bug fixes:
  14748. * src/PeerChokeCommand.cc
  14749. (execute): cat01->cat02
  14750. * src/DefaultPieceStorage.cc
  14751. (DefaultPieceStorage): Added diskAdaptor(0)
  14752. * src/TrackerWatcherComand.cc:
  14753. (execute): Use btAnnounce->noMoreAnnounce()
  14754. to determin whether the function returns true or not.
  14755. * src/TrackerUpdateCommand.cc:
  14756. (execute): Use btAnnounce->noMoreAnnounce()
  14757. to determin whether the function returns true or not.
  14758. * src/FtpConnection.cc
  14759. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14760. This is the fix of the busy loop bug.
  14761. * src/DownloadCommand.cc
  14762. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14763. cached PeerStat.
  14764. The value of "name" entry in torrent file is now set by
  14765. *DiskAdaptor::setTopDir(...) methods.
  14766. * src/MultiDiskAdaptor.h
  14767. (topDir): New variable.
  14768. (setTopDir): New function.
  14769. (getTopDir): New function.
  14770. * src/MultiDiskAdaptor.cc
  14771. (getFilePath): Concat storDir, "/" and topDir.
  14772. (mkdir): Use getFilePath() to get the directory path for output.
  14773. * src/DefaultPieceStorage.cc
  14774. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14775. CopyDiskAdaptor.
  14776. * src/CopyDiskAdaptor.h
  14777. (topDir): New variable.
  14778. (setTopDir): New function.
  14779. (getTopDir): New function.
  14780. * src/CopyDiskAdaptor.cc
  14781. (fixFilename): Updated.
  14782. Misc
  14783. * src/UrlRequestInfo.h
  14784. (e): Removed.
  14785. (UrlRequestInfo): Removed e.
  14786. (getDownloadEngine): Removed.
  14787. * src/UrlRequestInfo.cc
  14788. (handler): Rewritten.
  14789. (printUrls): New function.
  14790. (execute): Call printUrls().
  14791. * src/HandshakeMessage.cc
  14792. (check): peerinteraction->getBtContext() -> btContext
  14793. * src/PeerInteraction.h
  14794. (getBtContext): Removed.
  14795. * src/TorrentRequestInfo.h
  14796. (execute): RequestInfo* -> RequestInfos
  14797. (getDownloadEngine): Removed.
  14798. * src/TorrentRequestInfo.cc
  14799. (haltRequested): Removed.
  14800. (btHaltRequested): New variable.
  14801. (torrentHandler): haltRequested -> btHaltRequested
  14802. (execute): RequestInfo* -> RequestInfos
  14803. * src/TorrentConsoleDownloadEngine.cc
  14804. (afterEachIteration): haltRequested -> btHaltRequested.
  14805. * src/ConsoleDownloadEngine.h
  14806. (initStatistics): Added virtual.
  14807. (calculateStatistics): Added virtual.
  14808. (onEndOfRun): Added virtual.
  14809. (afterEachIteration): Added virtual.
  14810. * src/ConsoleDownloadEngine.cc
  14811. (haltRequested): New variable.
  14812. (afterEachIteration): New function.
  14813. * src/main.cc
  14814. (requestInfo): Removed.
  14815. * src/SegmentMan.cc
  14816. (findSlowerSegmentEntry): Refactored.
  14817. * Release 0.9.0
  14818. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14819. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14820. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14821. * src/TorrentMan.h: Removed.
  14822. * src/TorrentMan.cc: Removed.
  14823. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14824. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14825. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14826. * src/PeerAbstractCommand.cc: Use btRuntime.
  14827. * src/BtContextAwareCommand.h: New class.
  14828. * src/FileEntry.h: Added accessor methods for following variables.
  14829. (path): Made private.
  14830. (length): Made private.
  14831. (offset): Made private.
  14832. (extracted): Made private.
  14833. (requested): Made private.
  14834. (FileEntries): New definition.
  14835. (FileEntryHandle): New definition.
  14836. * src/FileEntry.cc: New file.
  14837. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14838. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14839. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14840. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14841. * src/PieceStorage.h: New file.
  14842. * src/PeerInteractionCommand.h: Use btContext.
  14843. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14844. btRuntime.
  14845. * src/DefaultBtProgressInfoFile.h: New file.
  14846. * src/DefaultBtProgressInfoFile.cc: New file.
  14847. * src/File.cc
  14848. (Util.h): New include.
  14849. (mkdirs): New function.
  14850. * src/MultiDiskAdaptor.h
  14851. (mkdir): New function.
  14852. * src/PeerListProcessor.h
  14853. (Peers): Removed.
  14854. * src/PeerInteraction.h
  14855. (torrentMan): Removed.
  14856. (btContext): New variable.
  14857. (peerStorage): New variable.
  14858. (pieceStorage): New variable.
  14859. (btAnnounce): New variable.
  14860. (getTorrentMan): Removed.
  14861. (getBtContext): New function.
  14862. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14863. btAnnounce.
  14864. * src/HandshakeMessage.h
  14865. (TorrentMan.h): Removed.
  14866. * src/HandshakeMessage.cc: Use btContext.
  14867. * src/DefaultBtAnnounce.cc: New file.
  14868. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14869. * src/DefaultPieceStorage.cc: New file.
  14870. * src/DefaultBtContext.h: New file.
  14871. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14872. Use the accessor methods of FileEntry.
  14873. * src/CookieBox.cc: Updated to use Util::slice().
  14874. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14875. * src/common.h (SharedHandle.h): New include.
  14876. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14877. pieceStorage.
  14878. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14879. * src/DiskAdaptor.h
  14880. (topDir): Removed.
  14881. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14882. (setTopDir): Removed.
  14883. (getTopDir): Removed.
  14884. * src/BtContext.h: New file.
  14885. * src/DefaultPeerStorage.h: New file.
  14886. * src/PieceMessage.h (TorrentMan.h): Removed.
  14887. * src/RequestMessage.h (TorrentMan.h): Removed.
  14888. * src/TorrentDownloadEngine.h
  14889. (uploadLength): New variable.
  14890. (btContext): New variable.
  14891. (btRuntime): New variable.
  14892. (pieceStorage): New variable.
  14893. (peerStorage): New variable.
  14894. (btAnnounce): New variable.
  14895. (btProgressInfoFile): New variable.
  14896. (torrentMan): Removed.
  14897. (setBtContext): New function.
  14898. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14899. peerStorage, btAnnounce, btProgressInfoFile.
  14900. * src/Piece.h
  14901. (toString): New function.
  14902. (Pieces): New type definition.
  14903. * src/Peer.h
  14904. (active): New variable.
  14905. (Peer): Added active.
  14906. (activate): Set active to true.
  14907. (deactivate): Set active to false.
  14908. (isActive): New function.
  14909. (Peers): New type definition.
  14910. * src/DirectDiskAdaptor.cc
  14911. (getFilePath): Use the accessor methods of FileEntry.
  14912. * src/TorrentConsoleDownloadEngine.h
  14913. (afterEachIteration): New function.
  14914. * src/TorrentConsoleDownloadEngine.cc
  14915. (haltRequested): New variable.
  14916. (sendStatistics): Use pieceStorage, btRuntime.
  14917. (afterEachIteration): New function.
  14918. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14919. * src/Directry.h
  14920. (Directory): New function.
  14921. (DirectoryHandle): New type definition.
  14922. * src/BtProgressInfoFile.h: New file.
  14923. * src/RequestMessage.cc: Use pieceStorage.
  14924. * src/BtRuntime.h: New file.
  14925. * src/DefaultBtContext.cc: New file.
  14926. * src/BitfieldMan.h
  14927. (getCompletedLength): New function(private).
  14928. (getCompletedLength): New function.
  14929. (getFilteredCompletedLength): New function.
  14930. * src/BitfieldMan.h
  14931. (getCompletedLength): New function(private).
  14932. (getCompletedLength): New function.
  14933. (getFilteredCompletedLength): New function.
  14934. * src/MultiDiskAdaptor.cc
  14935. (mkdir): New function.
  14936. (openFile): Call mkdir().
  14937. (initAndOpenFile): Call mkdir().
  14938. * src/CancelMessage.h
  14939. (TorrentMan.h): Removed.
  14940. * src/RejectMessage.h
  14941. (TorrentMan.h): Removed.
  14942. * src/DownloadEngineFactory.cc
  14943. (DefaultPieceStorage.h): New include.
  14944. (DefaultPeerStorage.h): New include.
  14945. (DefaultBtAnnounce.h): New include.
  14946. (DefaultBtProgressInfoFile.h): New include.
  14947. (newTorrentConsoleEngine): Rewritten.
  14948. * src/ShareRatioSeedCriteria.h
  14949. (torrentMan): Removed.
  14950. (btContext): New variable.
  14951. (peerStorage): New variable.
  14952. (btRuntime): New variable.
  14953. (evaluate): Use btContext, btRuntime, peerStorage.
  14954. * src/AnnounceTier.h: New file.
  14955. * src/BtAnnounce.h: New file.
  14956. * src/BtRegistry.h: New file.
  14957. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14958. * src/PeerConnection.h (TorrentMan.h): Removed.
  14959. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14960. * src/Util.h
  14961. (slice): Added an argument.
  14962. * src/Util.cc
  14963. (slice): Added an argument to control whether trim is made or not.
  14964. * src/PeerStorage.h: New file.
  14965. * src/BtRegistry.cc: New file.
  14966. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14967. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14968. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14969. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14970. * src/TorrentRequestInfo.h
  14971. (e): Removed.
  14972. (showFileEntry): Added an argument.
  14973. (getDownloadEngine): Return 0.
  14974. * src/DefaultBtAnnounce.h: New file.
  14975. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14976. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14977. * src/PeerMessageFactory.h
  14978. (btContext): New variable.
  14979. (pieceStorage): New variable.
  14980. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14981. btAnnounce.
  14982. * src/DiskAdaptor.cc
  14983. (DiskAdaptor): Removed topDir.
  14984. (~DiskAdaptor): Removed topDir.
  14985. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14986. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14987. * src/File.h (mkdirs): New function.
  14988. * src/DefaultPeerStorage): New file.
  14989. * src/DownloadEngineFactory.h
  14990. (newTorrentConsoleEngine): Use btContext.
  14991. * src/BtContextAwareCommand.cc: New file.
  14992. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14993. * src/PeerMessage.h
  14994. (btContext): New variable.
  14995. (peerStorage): New variable.
  14996. (pieceStorage): New variable.
  14997. (setBtContext): New function.
  14998. * src/Directry.cc
  14999. (Directory): New function.
  15000. (createDir): Do nothing if name.size() == 0.
  15001. * src/AnnounceList.h
  15002. (AnnounceTier): Removed.
  15003. (AnnounceTiers): Removed.
  15004. * src/DefaultPieceStorage.h: New file.
  15005. * src/Piece.cc (toString): New function.
  15006. To fix typo:
  15007. * src/main.cc (showVersion): Fixed typo.
  15008. To fix compile warning:
  15009. * src/DelegatingPeerListProcessor.cc
  15010. (canHandle): Added "return false".
  15011. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15012. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15013. make the process of announce request testable.
  15014. * src/TrackerWatcherCommand.h
  15015. (TimeA2.h): Removed.
  15016. (interval): Removed.
  15017. (checkPoint): Removed.
  15018. (createRequestCommand): Added an argument 'url'.
  15019. (TrackerWatherCommand): Removed interval.
  15020. (createCommand): New function.
  15021. * src/DownloadEngineFactory.cc
  15022. (newTorrentConsoleEngine): Updated according to the changes in
  15023. TrackerWatherCommand.
  15024. * src/TorrentMan.cc
  15025. (DelegatingPeerListProcessor.h): New includes.
  15026. (TorrentMan): Added the initialization of announceInterval.
  15027. (isStoppedAnnounceReady): New function.
  15028. (isCompletedAnnounceReady): New function.
  15029. (isDefaultAnnounceReady): New function.
  15030. (isAnnounceReady): New function.
  15031. (getAnnounceUrl): New function.
  15032. (announceStart): New function.
  15033. (announceFailure): New function.
  15034. (announceSuccess): New function.
  15035. (isAllAnnounceFailed): New function.
  15036. (resetAnnounce): New function.
  15037. (processAnnounceResponse): New function.
  15038. (needMorePeerConnection): New function.
  15039. (noMoreAnnounce): New function.
  15040. * src/TrackerUpdateCommand.h
  15041. (getTrackerResponse): int->size_t
  15042. * src/TorrentMan.h
  15043. (isStoppedAnnounceReady): New function.
  15044. (isCompletedAnnounceReady): New function.
  15045. (isDefaultAnnounceReady): New function.
  15046. (announceInterval): New variable.
  15047. (isAnnounceReady): New function.
  15048. (getAnnounceUrl): New function.
  15049. (announceStart): New function.
  15050. (announceFailure): New function.
  15051. (announceSuccess): New function.
  15052. (isAllAnnounceFailed): New function.
  15053. (resetAnnounce): New function.
  15054. (processAnnounceResponse): New function.
  15055. (needMorePeerConnection): New function.
  15056. (noMoreAnnounce): New function.
  15057. * src/TrackerWatcherCommand.cc
  15058. (TrackerWatherCommand): Removed interval and checkPoint.
  15059. (execute): Rewritten.
  15060. (createCommand): New function.
  15061. (createRequestCommand): Rewritten.
  15062. * src/TrackerUpdateCommand.cc
  15063. (MetaFileUtil.h): Removed.
  15064. (DelegatingPeerListProcessor.h): Removed.
  15065. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15066. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15067. Request -> RequestHandle:
  15068. * src/HttpResponseCommand.h: Request->RequestHandle
  15069. * src/AbstractCommand.cc: Request->RequestHandle
  15070. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15071. * src/HttpRequestCommand.cc: Request->RequestHandle
  15072. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15073. * src/AbstractCommand.h: Request->RequestHandle
  15074. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15075. * src/HttpResponseCommand.cc: Request->RequestHandle
  15076. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15077. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15078. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15079. * src/HttpConnection.h: Request->RequestHandle
  15080. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15081. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15082. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15083. * src/DownloadCommand.h: Request->RequestHandle
  15084. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15085. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15086. * src/HttpRequestCommand.h: Request->RequestHandle
  15087. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15088. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15089. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15090. * src/HttpDownloadCommand.h: Request->RequestHandle
  15091. * src/FtpConnection.cc: Request->RequestHandle
  15092. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15093. * src/UrlRequestInfo.cc: Request->RequestHandle
  15094. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15095. * src/HttpConnection.h: Request->RequestHandle
  15096. * src/DownloadCommand.cc: Request->RequestHandle
  15097. * src/FtpConnection.h: Request->RequestHandle
  15098. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15099. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15100. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15101. * src/Request.h
  15102. (SharedHandle.h): New include.
  15103. (RequestHandle): New type definition.
  15104. (Requests): Redefined.
  15105. To add MULTITRACKER support:
  15106. * src/TrackerWatcherCommand.h
  15107. (createRequestCommand): New function.
  15108. * src/DownloadEngineFactory.cc
  15109. (newTorrentConsoleEngine): Removed req.
  15110. * src/prefs.h
  15111. (PREF_TRACKER_MAX_TRIES): New definition.
  15112. * src/TorrentMan.cc
  15113. (TorrentMan): Removed req. Added trackerNumTry.
  15114. (~TorrentMan): Removed req.
  15115. (setupInternal1): Added announceList.
  15116. * src/TorrentRequestInfo.cc
  15117. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15118. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15119. * src/main.cc
  15120. (main): Added PREF_TRACKER_MAX_TRIES.
  15121. * src/TorrentMan.h
  15122. (Request.h): Removed.
  15123. (AnnounceList.h): New include.
  15124. (trackerNumTry): New variable.
  15125. (req): Removed.
  15126. (announceList): New variable.
  15127. * src/TrackerWatcherCommand.cc
  15128. (execute): Rewritten.
  15129. (createRequestCommand): New function.
  15130. * src/TrackerUpdateCommand.cc
  15131. (execute): Updated with the use of AnnounceList.
  15132. * src/AnnounceList.cc: New class.
  15133. * src/AnnounceList.h: New class.
  15134. To fix typo:
  15135. * src/prefs.h
  15136. (PREF_MAX_TRIES): max_try->max_tries
  15137. To not to decode "+" as space in URL decode:
  15138. * src/Util.cc
  15139. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15140. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15141. To add timeout to async name resolution:
  15142. * src/AbstractCommand.h
  15143. (nameResolveFinished): New function. This is not elegant way. It needs
  15144. to be more refined.
  15145. (nameResolverCheck): New variable.
  15146. * src/AbstractCommand.cc
  15147. (AbstractCommand): Added nameResolverCheck.
  15148. (execute): Added the check whether the name resolution has finished.
  15149. (setNameResolverCheck): Set nameResolverCheck to true.
  15150. (disableNameResolverCheck): Set nameResolverCheck to false.
  15151. (nameResolverFinished): New function.
  15152. * src/FtpInitiateConnectionCommand.h
  15153. (nameResolverFinished): New function.
  15154. * src/FtpInitiateConnectionCommand.cc
  15155. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15156. * src/HttpInitiateConnectionCommand.h
  15157. (nameResolverFinished): New function.
  15158. * src/HttpInitiateConnectionCommand.cc
  15159. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15160. * src/prefs.h
  15161. (PREF_DNS_TIMEOUT): New definition.
  15162. * src/main.cc
  15163. (main): Added PREF_DNS_TIMEOUT.
  15164. To add the support for a non-compact response from a tracker:
  15165. * src/PeerListProcessor.h: New class.
  15166. * src/DefaultPeerListProcessor.h: New class.
  15167. * src/DefaultPeerListProcessor.cc: New class.
  15168. * src/CompactPeerListProcessor.h: New class.
  15169. * src/CompactPeerListProcessor.cc: New class.
  15170. * src/DelegatingPeerListProcessor.h: New class.
  15171. * src/DelegatingPeerListProcessor.cc: New class.
  15172. * src/TorrentMan.cc
  15173. (addPeer): New function(overload).
  15174. (addPeer): Delete unused peers only when new peer is added.
  15175. * src/TorrentMan.h
  15176. (PeerListProcessor.h): Included.
  15177. (Peers): Removed.
  15178. (addPeer): New function(overload).
  15179. * src/TrackerUpdateCommand.cc
  15180. (netinet/in.h): Removed.
  15181. (DelegatingPeerListProcessor.h): Included.
  15182. (execute): Updated to use DelegatingPeerListProcessor.
  15183. To fix the memory leak in TorrentMan::peers:
  15184. * src/PeerAbstractCommand.cc
  15185. (onAbort): Added peer->resetStatus().
  15186. * src/Peer.h
  15187. (resetStatus): Made public.
  15188. To improve the precision of the speed calculation:
  15189. * src/SpeedCalc.h
  15190. (nextInterval): New variable.
  15191. * src/SpeedCalc.cc
  15192. (reset): Added nextInterval.
  15193. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15194. (changeSw): Set nextInterval to 15 seconds relative to the current
  15195. instant time.
  15196. * src/main.cc
  15197. (showVersion): Updated.
  15198. (showUsage): Updated.
  15199. * Release 0.8.1
  15200. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15201. * src/main.cc
  15202. (showUsage): Commented out --min-segment-size option.
  15203. (main): Commented out --min-segment-size option.
  15204. * Release 0.8.0
  15205. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15206. * src/*.{h,cc}:
  15207. Added an exception to the license which allows linking with OpenSSL.
  15208. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15209. * src/AbstractCommand.cc
  15210. (execute): Check whether the download has finished before checking
  15211. socket status.
  15212. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15213. Do not exit even if no segment is available.
  15214. * src/prefs.h
  15215. (PREF_STARTUP_IDLE_TIME): New definition.
  15216. * src/PeerInteractionCommand.cc
  15217. (executeInternal): Removed max speed limit. Because it performs bad.
  15218. (receiveMessages): Added max speed limit. This was better than above,
  15219. but still a little bit to be desired. Sometimes the download speed
  15220. became much faster than I specified.
  15221. * src/SpeedCalc.h
  15222. (start): New variable.
  15223. (accumulatedLength): New variable.
  15224. (getAvgSpeed): New function.
  15225. * src/SpeedCalc.cc
  15226. (reset): Added start, accumulatedLength.
  15227. (update): Added calculation of an average speed.
  15228. (getAvgSpeed): New function.
  15229. * src/DownloadCommand.h
  15230. (sw): Removed.
  15231. * src/main.cc
  15232. (main): Added PREF_STARTUP_IDLE_TIME.
  15233. * src/PeerStat.h
  15234. (STATUS): Added REQUEST_IDLE.
  15235. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15236. (getAvgDownloadSpeed): New function
  15237. (requestIdle): New function.
  15238. * src/SegmentMan.h
  15239. (SegmentEntryHandle): New type definition.
  15240. (SegmentEntries): Now holds SegmentEntryHandle.
  15241. (findSlowerSegmentEntry): New funtion.
  15242. * src/SegmentMan.cc
  15243. (save): Updated according to the changes in SegmentEntries.
  15244. (read): Updated according to the changes in SegmentEntries.
  15245. (FindSegmentEntryByIndex): Updated according to the changes in
  15246. SegmentEntries.
  15247. (FindSegmentEntryByCuid): Updated according to the changes in
  15248. SegmentEntries.
  15249. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15250. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15251. Renamed uitr as itr.
  15252. (findSlowerSegmentEntry): New function.
  15253. (getSegment): Updated according to the changes in SegmentEntries.
  15254. Added the feature that cancels the segment with slow server and fast
  15255. one takes it over.
  15256. (cancelSegment): Updated according to the changes in SegmentEntries.
  15257. (getDownloadLength): Updated according to the changes in
  15258. SegmentEntries.
  15259. (init): Assigned 0 to bitfield after deleting it.
  15260. * src/DownloadCommand.cc
  15261. (STARTUP_IDLE_TIME): Removed.
  15262. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15263. * src/PeerChokeCommand.cc
  15264. (optUnchokingPeer): Updated according to the changes in Peer.
  15265. (ResetDelta): Removed.
  15266. (UploadFaster): Updated according to the changes in Peer.
  15267. (DownloadFaster): Updated according to the changes in Peer.
  15268. (execute): I clarify the meaning of "upload" and "download" here.
  15269. "upload" means the transfer from localhost to remote host.
  15270. "download" means the transfer from remote host to localhost.
  15271. Based on this rule, I swapped orderByUploadRate and
  15272. orderByDownloadRate.
  15273. * src/PeerInteractionCommand.cc
  15274. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15275. (executeInternal): Removed the argument of
  15276. peerInteraction->sendMessages().
  15277. (receiveMessages): Rewritten download speed limit.
  15278. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15279. * src/HttpResponseCommand.cc
  15280. (handleDefaultEncoding): If file size is unknown in torrent request,
  15281. do not call segmentMan->initBitfield() here.
  15282. Disabled persistent connection feature in torrent request.
  15283. * src/UrlRequestInfo.h
  15284. (UrlRequestInfo): Removed const qualifier from option.
  15285. * src/TorrentMan.h
  15286. (TransferStat): New class.
  15287. (deltaDownloadLength): Removed.
  15288. (deltaUploadLength): Removed.
  15289. (addDeltaDownloadLength): Removed.
  15290. (getDeltaDownloadLength): Removed.
  15291. (resetDeltaDownloadLength): Removed.
  15292. (addDeltaUploadLength): Removed.
  15293. (getDeltaUploadLength): Removed.
  15294. (resetDeltaUploadLength): Removed.
  15295. (addActivePeer): Added peer->activate().
  15296. (deleteActivePeer): Added peer->deactivate().
  15297. (calculateStat): New function.
  15298. * src/TorrentMan.cc
  15299. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15300. (calculateStat): New function.
  15301. * src/PeerInteraction.h
  15302. (uploadLimit): Removed.
  15303. (option): New variable.
  15304. (setUploadLimit): Removed.
  15305. (getUploadSpeed): Removed.
  15306. (sendMessages): Removed the argument "currentUploadSpeed".
  15307. * src/PeerInteraction.cc
  15308. (prefs.h): Included.
  15309. (PeerInteraction): Removed uploadLimit. Added option.
  15310. (sendMessages): Rewritten upload speed limit.
  15311. (sendHandshake): Removed the argument from sendMessages().
  15312. (sendBitfield): Removed the argument from sendMessages().
  15313. * src/PeerAbstractCommand.cc
  15314. (execute): Commented out the portion of upload limit.
  15315. (onAbort): Removed peer->resetStatus().
  15316. * src/TorrentRequestInfo.cc
  15317. (timeoutSpecified): Declared extern.
  15318. (execute): Set timeout to 180 if timeout is not specified by.
  15319. command-line.
  15320. * src/PieceMessage.cc
  15321. (receivedAction): Added peer->updateDownloadLength().
  15322. Removed peer->addPeerUpload().
  15323. Removed torrentMan->addDeltaDownloadLength().
  15324. (send): Added peer->updateUploadLength().
  15325. Removed peer->addPeerDownload().
  15326. Removed torrentMan->addDeltaUploadLength().
  15327. * src/main.cc
  15328. (timeoutSpecified): New variable.
  15329. (main): Set timeoutSpecified to false.
  15330. If the command-line option "--upload-limit" is specified, then
  15331. timeoutSpecified is set to true. This option will remain in the next
  15332. release, but be deprecated in the future release.
  15333. * src/TorrentRequestInfo.h
  15334. (TorrentRequestInfo): Removed const qualifier from op.
  15335. * src/PeerStat.h
  15336. (uploadSpeed): New variable.
  15337. (PeerStat): Added default value to cuid.
  15338. (calculateUploadSpeed): New function.
  15339. (updateUploadLength): New function.
  15340. (getMaxUploadSpeed): New function.
  15341. (getAvgUploadSpeed): New function.
  15342. (reset): Added uploadSpeed. Set status to IDLE.
  15343. * src/TorrentDownloadEngine.h
  15344. (cp): Declared as Time.
  15345. (sessionDownloadLengthArray): Removed.
  15346. (sessionUploadLengthArray): Removed.
  15347. (currentCp): Removed.
  15348. (lastCalcStat): New variable
  15349. (lastElapsed): Removed.
  15350. (sessionDownloadLength): Removed.
  15351. (calculateStat): New function.
  15352. * src/TorrentDownloadEngine.cc
  15353. (initStatistics): Removed lastElapsed, cp[],
  15354. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15355. currentCp, sessionDownloadLength.
  15356. Added cp.reset() and lastCalcStat.reset().
  15357. (calculateSpeed): Changed the name of the argument.
  15358. (calculateStatistics): Rewritten.
  15359. (calculateStat): New function.
  15360. * src/Peer.h
  15361. (PeerStat.h): Included.
  15362. (peerUpload): Removed.
  15363. (peerDownload): Removed.
  15364. (peerStat): New variable.
  15365. (sessionUploadLength): New variable.
  15366. (sessionDownloadLength): New variable.
  15367. (deltaUpload): Removed.
  15368. (deltaDownload): Removed.
  15369. (resetStatus): Made private.
  15370. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15371. Removed peerUpload, peerDownload.
  15372. (updateUploadLength): New function.
  15373. (addDeltaUpload): Removed.
  15374. (updateDownloadLength): New function.
  15375. (resetDeltaUpload): Removed.
  15376. (getDeltaUpload): Removed.
  15377. (addDeltaDownload): Removed.
  15378. (calculateUploadSpeed): New function.
  15379. (resetDeltaDownload): Removed.
  15380. (getDeltaDownload): Removed.
  15381. (calculateDownloadSpeed): New function.
  15382. (getSessionUploadLength): New function.
  15383. (getSessionDownloadLength): New function.
  15384. (activate): New function.
  15385. (deactivate): New function.
  15386. (addPeerUpload): Removed.
  15387. (setPeerUpload): Removed.
  15388. (getPeerUpload): Removed.
  15389. (addPeerDownload): Removed.
  15390. (setPeerDownload): Removed.
  15391. (getPeerDownload): Removed.
  15392. * src/Peer.cc
  15393. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15394. * src/MetalinkRequestInfo.h
  15395. (MetalinkRequestInfo): Removed const qualifier from op.
  15396. * src/RequestInfo.h
  15397. (op): Removed const qualifier.
  15398. (RequestInfo): Removed const qualifier from op.
  15399. * src/prefs.h
  15400. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15401. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15402. * src/PeerInteractionCommand.cc
  15403. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15404. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15405. * src/PeerInteraction.cc
  15406. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15407. * src/main.cc
  15408. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15409. Added the description of "--max-download-limit" option.
  15410. Removed the description of "--upload-limit" option.
  15411. Added the description of "--max-upload-limit" option.
  15412. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15413. Added "--max-download-limit" option and "--max-upload-limit" option.
  15414. Added the warning message if "--upload-limit" option is used.
  15415. * src/DownloadCommand.cc
  15416. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15417. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15418. To rewrite segment download mechanism for HTTP/FTP download.
  15419. Use BitfieldMan to manage segment download.
  15420. * src/HttpResponseCommand.h
  15421. (executeInternal): Pass the reference of segment.
  15422. * src/AbstractCommand.cc
  15423. (prepareForRetry): Call segmentMan->cancelSegment here.
  15424. (onAbort): Call segmentMan->cancelSegment here.
  15425. * src/HttpDownloadCommand.cc
  15426. (prepareForNextSegment): New function.
  15427. * src/DownloadEngineFactory.cc
  15428. (newConsoleEngine): Removed splitter.
  15429. (newTorrentConsoleEngine): Removed splitter.
  15430. * src/Request.h
  15431. (segment): Renamed from seg.
  15432. * src/FtpInitiateConnectionCommand.h
  15433. (executeInternal): Pass the reference of segment.
  15434. * src/AbstractCommand.h
  15435. (executeInternal): Pass the reference of segment.
  15436. * src/pref.h
  15437. (PREF_SEGMENT_SIZE): New definition.
  15438. * src/HttpProxyRequestCommand.h
  15439. (executeInternal): Pass the reference of segment.
  15440. * src/HttpResponseCommand.cc
  15441. (checkResponse): Allowed status 206 when a request range starts 0.
  15442. (handleDefaultEncoding): Rewritten the code related to Segment.
  15443. (handleOtherEncoding): Rewritten the code related to Segment.
  15444. * src/SegmentMan.h
  15445. (SegmentEntry): New class.
  15446. (SegmentEntries): New type definition.
  15447. (bitfield): New variable.
  15448. (usedSegmentEntries): New variable.
  15449. (onNullBitfield): New function.
  15450. (checkoutSegment): New function.
  15451. (segments): Removed.
  15452. (splitter): Removed.
  15453. (unregisterId): Removed.
  15454. (getSegment): New function(overload)
  15455. (getDownloadedSize): Removed.
  15456. (cancelSegment): New function.
  15457. (completeSegment): New function.
  15458. (initBitfield): New function.
  15459. (hasSegment): New function.
  15460. (getDownloadLength): New function.
  15461. * src/BitfieldMan.h
  15462. (getStartIndex): New function.
  15463. (getEndIndex): New function.
  15464. (getMissingUnusedIndex): New function(overload).
  15465. (getSparseMissingUnusedIndex): New function.
  15466. * src/BitfieldMan.cc
  15467. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15468. (getMissingUnusedIndex): New function(overload).
  15469. (Range): New class.
  15470. (getStartIndex): New function.
  15471. (getEndIndex): New function.
  15472. (getSparseMissingUnusedIndex): New function.
  15473. (isBitSetInternal): Return false if the given index is less than 0.
  15474. * src/HttpInitiateConnectionCommand.h
  15475. (executeInternal): Pass the reference of segment.
  15476. * src/FtpNegotiateCommand.h
  15477. (executeInternal): Pass the reference of segment.
  15478. * src/FtpNegotiateCommand.cc
  15479. (recvSize): Initialize bitfield here.
  15480. * src/FtpTunnelResponseCommand.h
  15481. (executeInternal): Pass the reference of segment.
  15482. * src/HttpConnection.cc
  15483. (createRequest): Rewritten range header processing.
  15484. * src/DownloadCommand.h
  15485. (executeInternal): Pass the reference of segment.
  15486. (prepareForRetry): Removed.
  15487. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15488. function.
  15489. * src/main.cc
  15490. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15491. * src/SegmentMan.cc
  15492. (SegmentMan): Added bitfield. Removed splitter.
  15493. (~SegmentMan): Added bitfield. Removed splitter.
  15494. (unregisterId): Removed.
  15495. (getSegment): Rewritten.
  15496. (updateSegment): Rewritten.
  15497. (save): Rewritten.
  15498. (read): Rewritten.
  15499. (finished): Rewritten.
  15500. (getDownloadedSize): Removed.
  15501. (initBitfield): New function.
  15502. (FindSegmentEntryByIndex): New function object.
  15503. (FindSegmentEntryByCuid): New function object.
  15504. (checkoutSegment): New function.
  15505. (onNullBitfield): New function.
  15506. (getSegment): New function(overload).
  15507. (CancelSegment): New function object.
  15508. (cancelSegment): New function.
  15509. (completeSegment): New function.
  15510. (hasSegment): New function.
  15511. (getDownloadLength): New function.
  15512. * src/FtpInitiateConnectionCommand.cc
  15513. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15514. * src/Segment.h: Rewritten.
  15515. * src/Segment.cc (operator<<): New function.
  15516. * src/HttpDownloadCommand.h
  15517. (prepareForNextSegment): New function.
  15518. * src/Request.cc
  15519. (resetUrl): Made segment null.
  15520. * src/DownloadEngine.cc
  15521. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15522. * src/HttpProxyRequestCommand.h
  15523. (executeInternal): Pass the reference of segment.
  15524. * src/DownloadCommand.cc
  15525. (executeInternal): Rewritten the code related to Segment.
  15526. (prepareForRetry): Removed.
  15527. (prepareForNextSegment): Rewritten.
  15528. * src/FtpTunnelResponseCommand.h
  15529. (executeInternal): Pass the reference of segment.
  15530. To add HTTP 1.1 persistent connection support(experimental)
  15531. * src/HttpRequestCommand.cc
  15532. (executeInternal): Disable keep alive if it is disabled by
  15533. configuration.
  15534. * src/Request.h
  15535. (keepAlive): New variable.
  15536. (isKeepAlive): New function.
  15537. (setKeepAlive): New function.
  15538. * src/pref.h
  15539. (PREF_HTTP_KEEP_ALIVE): New definition.
  15540. * src/HttpResponseCommand.cc
  15541. (executeInternal): Check the remote server supports keep alive.
  15542. * src/HttpConnection.cc
  15543. (createRequest): Send "Connection: close" only if keep alive is
  15544. disabled.
  15545. * src/main.cc
  15546. (main):
  15547. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15548. To add max download speed limit:
  15549. * src/pref.h
  15550. (PREF_MAX_SPEED_LIMIT): New definition.
  15551. * src/PeerInteractionCommand.cc
  15552. (executeInternal): Added max download speed limit. Not tested yet.
  15553. * src/SegmentMan.h
  15554. (PeerStats): New type definition.
  15555. (peerStats): New variable.
  15556. (registerPeerStat): New function.
  15557. (FindPeerStat): New function object.
  15558. (getPeerStat): New function.
  15559. (calculateDownloadSpeed): New function.
  15560. * src/SpeedCalc.h: New class.
  15561. * src/SpeedCalc.cc: New class.
  15562. * src/main.cc
  15563. (main):
  15564. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15565. download speed is not restricted).
  15566. * src/PeerStat.h: New class.
  15567. * src/SegmentMan.cc
  15568. (registerPeerStat): New function.
  15569. (calculateDownloadSpeed): New function.
  15570. * src/DownloadCommand.cc
  15571. (STARTUP_IDLE_TIME): New definition.
  15572. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15573. downloadStart.
  15574. (~DownloadCommand): Call peerStat->downloadStop.
  15575. (executeInternal): Added download speed limitter. Rewritten lowest
  15576. speed limitter.
  15577. * src/HttpConnection.cc
  15578. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15579. * src/AbstractCommand.cc
  15580. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15581. Added hostname to the error message.
  15582. * src/ConsoleDownloadEngine.cc
  15583. (calculateStatistics): Initialize psize with dlSize.
  15584. * src/PieceMessage.cc
  15585. (receivedAction): Do not call peerInteraction->abortPiece here.
  15586. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15587. * src/BitfieldMan.h
  15588. (clearAllUseBit): New function.
  15589. (setAllUseBit): New function.
  15590. * src/BitfieldMan.cc
  15591. (clearAllBit): Do not clear useBitfield here.
  15592. (clearAllUseBit): New function.
  15593. (setAllUseBit): New function.
  15594. * src/Piece.cc
  15595. (clearAllBlock): Call bitfield->clearAllUseBit().
  15596. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15597. To make filename URL-decoded:
  15598. * src/HttpResponseCommand.h: Updated doc.
  15599. * src/HttpResponseCommand.cc
  15600. (determinFilename): Made filename URL-decoded.
  15601. * src/FtpInitiateConnectionCommand.cc
  15602. (executeInternal): Made filename URL-decoded.
  15603. * src/Util.h (urldecode): New function.
  15604. * src/Util.cc (urldecode): New function.
  15605. To fix a bug that caused assertion failure in ares_strerror:
  15606. * src/NameResolver.cc (callback): Fixed the bug.
  15607. * Release 0.7.3
  15608. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15609. To add --seed-time and --seed-ratio command-line option:
  15610. * src/Option.h (getAsDouble): New function.
  15611. * src/Option.cc (getAsDouble): New function.
  15612. * src/SeedCheckCommand.h: New class.
  15613. * src/SeedCheckCommand.cc: New class.
  15614. * src/DownloadEngineFactory.cc
  15615. (SeedCheckCommand.h): Included.
  15616. (UnionSeedCriteria.h): Included.
  15617. (TimeSeedCriteria.h): Included.
  15618. (ShareRatioSeedCriteria.h): Included.
  15619. (newTorrentConsoleEngine): Added the processing of seed option.
  15620. * src/SeedCriteria.h: New class.
  15621. * src/ShareRatioSeedCriteria.h: New class.
  15622. * src/TimeSeedCriteria.h: New class.
  15623. * src/UnionSeedCriteria.h: New class.
  15624. * src/prefs.h
  15625. (PREF_SEED_TIME): New definition.
  15626. (PREF_SEED_RATIO): New definition.
  15627. * src/main.cc
  15628. (showUsage): Added --seed-time and --seed-ratio option.
  15629. (main): Added --seed-time and --seed-ratio option.
  15630. Made default log file name "/dev/null".
  15631. * src/SharedHandle.h
  15632. (SharedHandle): Copy constructor. Made it assignable from the
  15633. SharedHandle of the subclasses.
  15634. (operator=): Made it assignable from the SharedHandle of the
  15635. subclasses.
  15636. (getRefCount): New function.
  15637. To add notice log level and the switch to write log to stdout. This
  15638. switch is configurable per log level.
  15639. * src/Logger.h
  15640. (notice): New function.
  15641. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15642. constant.
  15643. * src/LogFactory.cc
  15644. (getInstance): The use of NullLogger was removed. A log message with
  15645. notice log level was made written to stdout along with log file.
  15646. * src/NullLogger.h
  15647. (notice): New function.
  15648. * src/SimpleLogger.h
  15649. (writeHeader): Added the 'file' argument.
  15650. (writeLog): Added the 'file' argument.
  15651. (writeFile): New function.
  15652. (stdoutField): New variable.
  15653. (SimpleLogger): Removed the default constructor.
  15654. (SimpleLogger): Made the default value of logfile 0.
  15655. (debug): Added 'virtual' keyword.
  15656. (info): Added 'virtual' keyword.
  15657. (warn): Added 'virtual' keyword.
  15658. (error): Added 'virtual' keyword.
  15659. (notice): New function.
  15660. (setStdout): New function.
  15661. * src/SimpleLogger.cc
  15662. (WRITE_LOG): Replaced writeLog with writeFile.
  15663. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15664. (SimpleLogger): Removed the default constructor.
  15665. (setStdout): New function.
  15666. (writeLog): Added the handling of NOTICE log level.
  15667. (writeFile): New function.
  15668. (notice): New function.
  15669. * src/TorrentMan.h: Updated doc.
  15670. * src/BitfieldMan.h: Updated doc.
  15671. * src/TrackerWatcherCommand.cc
  15672. (execute): Return true if error occurred in the request to the tracker
  15673. and halt is requested.
  15674. * src/TrackerUpdateCommand.cc
  15675. (execute): Return true if error occurred in the request to the tracker
  15676. and halt is requested.
  15677. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15678. DownloadEngine:
  15679. * src/TorrentConsoleDownloadEngine.h
  15680. (onSelectiveDownloadingCompletes): Removed.
  15681. * src/TorrentConsoleDownloadEngine.cc
  15682. (onSelectiveDownloadingCompletes): Removed.
  15683. * src/TorrentDownloadEngine.h
  15684. (onEndOfRun): Added 'virtual' keyword.
  15685. (afterEachIteration): Removed.
  15686. (onSelectiveDownloadingCompletes): Removed.
  15687. * src/TorrentDownloadEngine.cc
  15688. (onEndOfRun): Removed filenameFixed.
  15689. (afterEachIteration): Removed.
  15690. * src/TorrentMan.cc
  15691. (completePiece): Call onDownloadComplete here.
  15692. (onDownloadComplete): Added 2 log messages.
  15693. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15694. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15695. * src/NameResolver.h: Added the prototype declaration of callback().
  15696. To support c-ares library:
  15697. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15698. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15699. * src/FtpInitiateConnectionCommand.h:
  15700. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15701. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15702. * src/HttpInitiateConnectionCommand.h:
  15703. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15704. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15705. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15706. #1542285 by tizianomueller)
  15707. * src/HttpInitiateConnectionCommand.cc:
  15708. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15709. * src/FtpInitiateConnectionCommand.cc:
  15710. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15711. * src/DownloadEngine.h:
  15712. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15713. * src/DownloadEngine.cc:
  15714. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15715. To fix the bug that causes compilation failure with metalink-support
  15716. disabled(bug#1543587):
  15717. * src/main.cc: Fixed with the patch by tizianomueller.
  15718. * Release 0.7.2
  15719. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15720. * src/main.cc
  15721. (main): Added a message to inform users that aria2 is starting to
  15722. verify checksum.
  15723. * src/RequestInfo.cc
  15724. (printDownloadAbortMessage): Added a message to inform users that
  15725. transfer can be resumed.
  15726. * src/FeatureConfig.cc
  15727. (FEATURE_ASYNC_DNS): New definition.
  15728. (FeatureConfig): Added aysnc DNS entry.
  15729. To replace CommandUuid with Command* in SocketEntry and
  15730. NameResolverEntry:
  15731. * src/DownloadEngine.h
  15732. (CommandUuids): Removed.
  15733. (SocketEntry::commandUuid): Removed.
  15734. (SocketEntry::command): New variable.
  15735. (SocketEntry::SocketEntry): Updated.
  15736. (SocketEntry::operator==): Updated.
  15737. (NameResolverEntry::commandUuid): Removed.
  15738. (NameResolverEntry::command): New variable.
  15739. (NameResolverEntry::NameResolverEntry): Updated.
  15740. (NameResolverEntry::operator==): Updated.
  15741. (waitData): Changed the argument type.
  15742. (addSocketForReadCheck): Changed the argument type.
  15743. (deleteSocketForReadCheck): Changed the argument type.
  15744. (addSocketForWriteCheck): Changed the argument type.
  15745. (deleteSocketForWriteCheck): Changed the argument type.
  15746. (addNameResolverCheck): Changed the argument type.
  15747. (deleteNameResolverCheck): Changed the argument type.
  15748. * src/DownloadEngine.cc
  15749. (FindCommand): Removed.
  15750. (run): Removed activeUuid. Added activeCommands instead.
  15751. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15752. (AccumulateActiveCommand): New function object.
  15753. (waitData): Use AccumulateActiveCommand.
  15754. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15755. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15756. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15757. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15758. (addNameResolverCheck): Use Command instead of CommandUuid.
  15759. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15760. * src/AbstractCommand.cc
  15761. (disableReadCheckSocket): Updated according to the changes in
  15762. DownloadEngine.
  15763. (setReadCheckSocket): Updated according to the changes in
  15764. DownloadEngine.
  15765. (disableWriteCheckSocket): Updated according to the changes in
  15766. DownloadEngine.
  15767. (setWriteCheckSocket): Updated according to the changes in
  15768. DownloadEngine.
  15769. (setNameResolverCheck): Updated according to the changes in
  15770. DownloadEngine.
  15771. (disableNameResolverCheck): Updated according to the changes in
  15772. DownloadEngine.
  15773. * src/AbstractCommand.cc
  15774. (disableReadCheckSocket): Updated according to the changes in
  15775. DownloadEngine.
  15776. (setReadCheckSocket): Updated according to the changes in
  15777. DownloadEngine.
  15778. (disableWriteCheckSocket): Updated according to the changes in
  15779. DownloadEngine.
  15780. (setWriteCheckSocket): Updated according to the changes in
  15781. DownloadEngine.
  15782. * release 0.7.1
  15783. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15784. To handle the case where some BitTorrent tracker requires all letters
  15785. except for [A-Za-z0-9] is URL encoded.
  15786. * src/Util.h
  15787. (torrentUrlencode): New function.
  15788. * src/Util.cc
  15789. (ctype.h): Included.
  15790. (torrentUrlencode): New function.
  15791. * src/TrackerWatcherCommand.cc
  15792. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15793. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15794. To add asynchronous DNS support(libares):
  15795. * src/AbstractCommand.h
  15796. (setNameResolverCheck): New function.
  15797. (disableNameResolverCheck): New function
  15798. (resolveHostname): New function.
  15799. * src/AbstractCommand.cc
  15800. (setNameResolverCheck): New function.
  15801. (disableNameResolverCheck): New function
  15802. (resolveHostname): New function.
  15803. * src/FtpInitiateConnectionCommand.h
  15804. (nameResolver): New function.
  15805. * src/FtpInitiateConnectionCommand.cc
  15806. (Util.h): Included.
  15807. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15808. disableWriteCheckSocket.
  15809. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15810. (executeInternal): Added async DNS support.
  15811. * src/HttpInitiateConnectionCommand.h
  15812. (nameResolver): New function.
  15813. * src/HttpInitiateConnectionCommand.cc
  15814. (DlRetryEx.h): Included.
  15815. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15816. disableWriteCheckSocket.
  15817. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15818. (executeInternal): Added async DNS support.
  15819. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15820. by extern "C" declaration.
  15821. * src/NameResolver.cc: New class.
  15822. * src/Util.h:
  15823. (isNumberAndDotsNotation): New function
  15824. * src/Util.cc
  15825. (isNumberAndDotsNotation): New function.
  15826. * src/DownloadEngine.h
  15827. (NameResolver.h): Included.
  15828. (NameResolverEntry): New class.
  15829. (NameResolverEntries): New type definition.
  15830. (addNameResolverCheck): New function.
  15831. (deleteNameResolverCheck): New function.
  15832. * src/DownloadEngine.cc
  15833. (run): Initialize cp with 0.
  15834. (SetDescriptor::operator()): Added for NameResolverEntry.
  15835. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15836. (waitData): Check nameResolver entries.
  15837. (updateFdSet): Update fds in nameResolver entries.
  15838. (addNameResolverCheck): New function.
  15839. (deleteNameResolverCheck): new function.
  15840. * src/PeerInteractionCommand.cc
  15841. (executeInternal): Fixed wrong socket handling.
  15842. * src/main.cc
  15843. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15844. * src/Util.cc
  15845. (fileChecksum): Removed the call to ctx.digestReset().
  15846. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15847. * po/ru.po: Azamat sent me Russian translation.
  15848. * src/FtpNegotiateCommand.cc
  15849. (recvGreeting): Call disableWriteCheckSocket just after
  15850. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15851. (recvRetr): Recognized status code 125 as a acceptable response code.
  15852. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15853. case-insesitive filesystem(BUG#1531057).
  15854. * src/Time.h: Renamed as TimeA2.h.
  15855. * src/Time.cc: Renamed as TimeA2.cc.
  15856. * src/TimeA2.h: New class.
  15857. * src/TimeA2.cc: New class.
  15858. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15859. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15860. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15861. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15862. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15863. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15864. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15865. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15866. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15867. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15868. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15869. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15870. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15871. * release 0.7.0
  15872. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15873. * src/PeerChokeCommand.h
  15874. (PeerChokeCommand): Rearranged the arguments.
  15875. * src/PeerChokeCommand.cc
  15876. (PeerChokeCommand): Rearranged the arguments.
  15877. * src/MetalinkEntry.h
  15878. (Checksum.h): Included.
  15879. (md5): Removed.
  15880. (sha1): Removed.
  15881. (checksum): New variable.
  15882. (operator=): Updated.
  15883. (check): Removed.
  15884. * src/prefs.h
  15885. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15886. (PREF_FOLLOW_TORRENT): New definition.
  15887. (PREF_SELECT_FILE): New definition.
  15888. (PREF_FOLLOW_METALINK): New definition.
  15889. * src/MetalinkResource.h
  15890. (TYPE_HTTPS): Added to enum TYPE.
  15891. * src/TorrentMan.cc
  15892. (~TorrentMan): Rewritten.
  15893. * src/MultiDiskWriter.cc
  15894. (MultiDiskAdaptor): Updated according to the changes in
  15895. MessageDigestContext.
  15896. (~MultiDiskAdaptor): Updated according to the changes in
  15897. MessageDigestContext.
  15898. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15899. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15900. * src/Util.h
  15901. (fileChecksum): Updated according to the changes in
  15902. MessageDigestContext.
  15903. * src/Util.cc
  15904. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15905. (fileChecksum): Updated according to the changes in
  15906. MessageDigestContext.
  15907. * src/messageDigest.h: Rewritten.
  15908. * src/MetalinkEntry.cc
  15909. (check): Removed.
  15910. (Supported): Updated.
  15911. (dropUnsupportedResource): Fixed a memory leak.
  15912. * src/ShaVisitor.cc
  15913. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15914. (~ShaVisitor): Updated according to the changes in
  15915. MessageDigestContext.
  15916. (visit): Updated according to the changes in MessageDigestContext.
  15917. * src/main.cc
  15918. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15919. command-line option added.
  15920. * src/DownloadEngine.h
  15921. (SocketEntry): New class.
  15922. (SocketEntries): New definition.
  15923. (PairFind): Removed.
  15924. (SockCmdMap): Removed.
  15925. * src/DownloadEngine.cc
  15926. (DownloadEngine): Rewritten.
  15927. (~DownloadEngine): Rewritten.
  15928. (run): Renamed activeCommandUuids as activeUuids.
  15929. (SetDescriptor): Rewritten.
  15930. (AccumulateActiveCommandUuid): Removed.
  15931. (AccumulateActiveUuid): New function object.
  15932. (waitData): Rewritten.
  15933. (updateFdSet): Rewritten.
  15934. (addSocket): Rewritten.
  15935. (deleteSocket): Rewritten.
  15936. (addSocketForReadCheck): Rewritten.
  15937. (deleteSocketForReadCheck): Rewritten.
  15938. (addSocketForWriteCheck): Rewritten.
  15939. (deleteSocketForWriteCheck): Rewritten.
  15940. * src/Xml2MetalinkProcessor.cc
  15941. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15942. * src/DownloadCommand.cc
  15943. (executeInternal): Added the check routine for lowest speed limit.
  15944. * src/AbstractDiskWriter.cc
  15945. (AbstractDiskWriter): Updated according to the changes in
  15946. MessageDigestContext.
  15947. (~AbstractDiskWriter): Updated according to the changes in
  15948. MessageDigestContext.
  15949. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15950. * src/RequestInfo.h: New class.
  15951. * src/UrlRequestInfo.h: New class.
  15952. * src/UrlRequestInfo.cc: New class.
  15953. * src/TorrentRequestInfo.h: New class.
  15954. * src/TorrentRequestInfo.cc: New class.
  15955. * src/MetalinkRequestInfo.h: New class.
  15956. * src/MetalinkRequestInfo.cc: New class.
  15957. * src/Checksum.h: New class.
  15958. * src/DownloadEngineFactory.h: New class.
  15959. * src/DownloadEngineFactory.cc: New class.
  15960. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15961. * src/Option.h
  15962. (getAsBool): New function.
  15963. * src/Option.cc
  15964. (prefs.h): Included.
  15965. (defined): 0-length value is now recognized as undefined.
  15966. (getAsInt): Rewritten.
  15967. (getAsLLInt): Rewritten.
  15968. (getAsBool): New function.
  15969. * src/FeatureConfig.h: Rewritten.
  15970. * src/FeatureConfig.cc: Rewritten.
  15971. * src/prefs.h
  15972. (PREF_STDOUT_LOG): New definition.
  15973. (PREF_LOG): New definition.
  15974. (PREF_DIR): New definition.
  15975. (PREF_OUT): New definition.
  15976. (PREF_SPLIT): New definition.
  15977. (PREF_DAEMON): New definition.
  15978. (PREF_REFERER): New definition.
  15979. (PREF_TORRENT_FILE): New definition.
  15980. (PREF_LISTEN_PORT): New definition.
  15981. (PREF_METALINK_FILE): New definition.
  15982. (PREF_METALINK_VERSION): New definition.
  15983. (PREF_METALINK_LANGUAGE): New definition.
  15984. (PREF_METALINK_OS): New definition.
  15985. (PREF_METALINK_SERVERS): New definition.
  15986. * src/main.cc
  15987. (main): Following command-line parameters are now put into Option
  15988. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15989. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15990. metalinkLanguage, metalinkOs, metalinkServers
  15991. To fix the bug that aria2 can not handle http response header properly.
  15992. * src/HttpHeader.cc
  15993. (put): Made name lowercased.
  15994. (defined): Made name lowercased.
  15995. (getFirst): Made name lowercased.
  15996. (get): Made name lowercased.
  15997. (getFirstAsInt): Rewritten.
  15998. (getFirstAsLLInt): Rewritten.
  15999. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16000. * src/TorrentMan.h:
  16001. (advertisePiece): Updated doc.
  16002. (getAdvertisedPieceIndexes): Updated doc.
  16003. (removeAdvertisedPiece); New function.
  16004. * src/TorrentMan.cc
  16005. (FindElapsedHave): New function object.
  16006. (removeAdvertisedPiece): New function.
  16007. * src/HaveEraseCommand.h: New class.
  16008. * src/HaveEraseCommand.cc: New class.
  16009. * src/FeatureConfig.h: New class.
  16010. * src/FeatureConfig.cc: New class.
  16011. * src/Request.h
  16012. (defaultPorts): Removed.
  16013. * src/Request.cc
  16014. (FeatureConfig.h): Included.
  16015. (Request): Removed the statements related to defaultPorts.
  16016. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16017. A default port number is now retrieved from FeatureConfig.
  16018. * src/main.cc
  16019. (HaveEraseCommand.h): Included.
  16020. (showVersion): Added the output of feature list.
  16021. (main): Added HaveEraseCommand to command queue in BitTorrent
  16022. downloading.
  16023. * src/PeerInteractionCommand.h
  16024. (chokeCheckPoint): Commented out.
  16025. (periodicExecPoint): New variable.
  16026. * src/PeerInteractionCommand.cc
  16027. (executeInternal): Following methods are now called in at least every
  16028. 0.5 seconds to reduce CPU usage:
  16029. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16030. checkHave(), sendKeepAlive().
  16031. (checkLongTimePeerChoking): Commented out.
  16032. * src/BitfieldMan.h
  16033. (getNthBitIndex): Changed the method signature.
  16034. (getMissingIndexRandomly): Changed the method signature.
  16035. * src/BitfieldMan.cc
  16036. (getNthBitIndex): Rewritten
  16037. (getMissingIndexRandomly): Rewritten.
  16038. (hasMissingPiece): Rewritten.
  16039. (getMissingIndex): Refactored.
  16040. (getMissingUnusedIndex); Refactored.
  16041. (getMissingIndex): Refactored.
  16042. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16043. * src/PeerMessage.h
  16044. (Piece.h): Included.
  16045. (SharedHandle.h): Included.
  16046. (invalidate): New variable.
  16047. (uploading): New variable.
  16048. (isInvalidate): New function.
  16049. (isUploading): New function.
  16050. (onPush): New function.
  16051. (onChoked): New function.
  16052. (onCanceled): New function.
  16053. (onAbortPiece): New function.
  16054. (PeerMessageHandle): New type definition.
  16055. * src/PeerMessage.cc
  16056. (PeerMessage): Added the initialization for invalidate and uploading.
  16057. * src/CancelMessage.h
  16058. (CancelMessage): Rewritten.
  16059. * src/RejectMessage.h
  16060. (RejectMessage): Rewritten.
  16061. * src/Metalinker.h
  16062. (operator=): Defined.
  16063. * src/MetaEntry.h
  16064. (operator=): Defined.
  16065. * src/MetalinkResource.h
  16066. (operator=): Defined.
  16067. * src/AllowedFastMessage.h
  16068. (AllowedFastMessage): Rewritten.
  16069. * src/HandshakeMessage.h
  16070. (HandshakeMessage): New function(overload).
  16071. * src/HandshakeMessage.cc
  16072. (HandshakeMessage): Rewritten.
  16073. (init): New function.
  16074. * src/HaveMessage.h
  16075. (HaveMessage): Rewritten.
  16076. * src/Time.h
  16077. (operator=): Defined the function body here.
  16078. * src/Time.cc
  16079. (operator=): Removed.
  16080. * src/SocketCore.h
  16081. (operator==): Defined here.
  16082. (operator!=): Defined here.
  16083. (operator<): Defined here.
  16084. * src/SocketCore.cc
  16085. (operator==): Removed.
  16086. (operator<): Removed.
  16087. * src/BitfieldMan.h
  16088. (operator=): Defined the function body here.
  16089. * src/BitfieldMan.cc
  16090. (operator=): Removed.
  16091. * src/TorrentMan.h
  16092. (deleteErrorPeer): Removed.
  16093. (deleteUnusedPeer); New function.
  16094. * src/TorrentMan.cc
  16095. (addPeer): Call deleteUnusedPeer.
  16096. (deleteErrorPeer): Removed.
  16097. (deleteUnusedPeer): New function.
  16098. * src/PeerAbstractCommand.h
  16099. (setNoCheck): New function.
  16100. (noCheck): New variable.
  16101. * src/PeerAbstractCommand.cc
  16102. (PeerAbstractCommand): Added the initialization of noCheck.
  16103. (execute): Added a check for noCheck.
  16104. (setNoCheck): New function.
  16105. * src/Util.h
  16106. (stdio.h): Included.
  16107. * src/Util.cc
  16108. (unistd.h): Included.
  16109. * src/DefaultDiskWriter.cc
  16110. (unistd.h): Included.
  16111. * src/Peer.h
  16112. (operator==): Defined the function body here.
  16113. (operator!=): Defined the function body here.
  16114. * src/Peer.cc
  16115. (operator==): Removed.
  16116. (operator!=): Removed.
  16117. * src/Piece.h
  16118. (Piece): Defined the function body here(copy constructor).
  16119. (operator=): Defined the function body here.
  16120. (operator==): Defined the function body here.
  16121. * src/Piece.cc
  16122. (Piece): Removed(copy constructor).
  16123. (operator=): Removed.
  16124. (operator==): Removed.
  16125. * src/PeerMessageUtil.h
  16126. (ChokeMessage.h): Removed.
  16127. (UnchokeMessage.h): Removed.
  16128. (InterestedMessage.h): Removed.
  16129. (NotInterestedMessage.h): Removed.
  16130. (HaveMessage.h): Removed.
  16131. (BitfieldMessage.h): Removed.
  16132. (RequestMessage.h): Removed.
  16133. (CancelMessage.h): Removed.
  16134. (PieceMessage.h): Removed.
  16135. (HandshakeMessage.h): Removed.
  16136. (KeepAliveMessage.h): Removed.
  16137. (PortMessage.h): Removed.
  16138. (HaveAllMessage.h): Removed.
  16139. (HaveNoneMessage.h): Removed.
  16140. (PeerConnection.h): Removed.
  16141. (HandshakeMessage.h): Included.
  16142. * src/BitfieldMessage.h
  16143. (init): New function.
  16144. (BitfieldMessage): Rewritten.
  16145. (BitfieldMessage): New function(overload).
  16146. * src/RequestSlot.h
  16147. (operator=): Defined the function body here.
  16148. (operator==): Defined the function body here.
  16149. * src/RequestSlot.cc
  16150. (operator=): Removed.
  16151. (operator==): Removed.
  16152. To remove the dependency on the PeerMessage subclass from
  16153. PeerInteraction:
  16154. * src/PeerMessageFactory.h: New class.
  16155. * src/PeerMessageFactory.cc: New class.
  16156. * src/SimplePeerMessage.cc
  16157. (send): If invalidate is true then do nothing.
  16158. * src/PeerInteractionCommand.cc
  16159. (HandshakeMessage.h): Included.
  16160. (KeepAliveMessage.h): Included.
  16161. (ChokeMessage.h): Included.
  16162. (UnchokeMessage.h): Included.
  16163. (HaveMessage.h): Included.
  16164. (executeInternal): Call setNoCheck().
  16165. Removed setWriteCheckSocket(socket).
  16166. * src/PeerInteraction.h
  16167. (ChokeMessage.h): Removed.
  16168. (UnchokeMessage.h): Removed.
  16169. (InterestedMessage.h): Removed.
  16170. (NotInterestedMessage.h): Removed.
  16171. (HaveMessage.h): Removed.
  16172. (BitfieldMessage.h): Removed.
  16173. (RequestMessage.h): Removed.
  16174. (CancelMessage.h): Removed.
  16175. (PieceMessage.h): Removed.
  16176. (HandshakeMessage.h): Removed.
  16177. (KeepAliveMessage.h): Removed.
  16178. (PortMessage.h): Removed.
  16179. (HaveAllMessage.h): Removed.
  16180. (HaveNoneMessage.h): Removed.
  16181. (RejectMessage.h): Removed.
  16182. (AllowedFastMessage.h): Removed.
  16183. (SuggestPieceMessage.h): Removed.
  16184. (PeerMessageFactory.h): Included.
  16185. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16186. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16187. (PeerMessageFactory): New variable.
  16188. (createPeerMessage): Removed.
  16189. (createHandshakeMessage): Removed.
  16190. (setPeerMessageCommonProperty): Removed.
  16191. (addRequestSlot): New function.
  16192. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16193. (getPeerMessageFactory): New function.
  16194. (createRequestMessage): Removed.
  16195. (createCancelMessage): Removed.
  16196. (createPieceMessage): Removed.
  16197. (createHaveMessage): Removed.
  16198. (createChokeMessage): Removed.
  16199. (createUnchokeMessage): Removed.
  16200. (createInterestedMessage): Removed.
  16201. (createNotInterestedMessage): Removed.
  16202. (createBitfieldMessage): Removed.
  16203. (createKeepAliveMessage): Removed.
  16204. (createHaveAllMessage): Removed.
  16205. (createHaveNoneMessage): Removed.
  16206. (createRejectMessage): Removed.
  16207. (createAllowedFastMessage): Removed.
  16208. * src/PeerInteraction.cc
  16209. (PeerInteraction): Allocate PeerMessageFactory here.
  16210. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16211. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16212. PieceMessage::ID.
  16213. (addMessage): Simplified by using PeerMessage::onPush().
  16214. (addRequestSlot): New function.
  16215. (rejectAllPieceMessageInQueue): Simplified by using
  16216. PeerMessage::onChoked().
  16217. (rejectPieceMessageInQueue): Simplified by using
  16218. PeerMessage::onCanceled().
  16219. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16220. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16221. (createHandshakeMessage): Removed.
  16222. (createPeerMessage): Removed.
  16223. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16224. (setPeerMessageCommonProperty): Removed.
  16225. (createRequestMessage): Removed.
  16226. (createCancelMessage): Removed.
  16227. (createPieceMessage): Removed.
  16228. (createHaveMessage): Removed.
  16229. (createChokeMessage): Removed.
  16230. (createUnchokeMessage): Removed.
  16231. (createInterestedMessage): Removed.
  16232. (createNotInterestedMessage): Removed.
  16233. (createBitfieldMessage): Removed.
  16234. (createKeepAliveMessage): Removed.
  16235. (createHaveAllMessage): Removed.
  16236. (createHaveNoneMessage): Removed.
  16237. (createRejectMessage): Removed.
  16238. (createAllowedFastMessage): Removed.
  16239. * src/PieceMessage.h
  16240. (createRejectMessage): New function.
  16241. (PieceMessage): Rewritten.
  16242. (onChoked): New function.
  16243. (onCanceled): New function.
  16244. * src/PieceMessage.cc
  16245. (send): If invalidate is true then do nothing, just return.
  16246. (createRejectMessage): New function.
  16247. (onChoked): New function.
  16248. (onCanceled): New function.
  16249. * src/RequestMessage.h
  16250. (RequestMessage): Rewritten.
  16251. (onPush): New function.
  16252. (onAbortPiece): New function.
  16253. * src/RequestMessage.cc
  16254. (onPush): New function.
  16255. (onAbortPiece): New function.
  16256. Update fd_set when a socket is added or deleted in order to improve
  16257. performance:
  16258. * src/DownloadEngine.h
  16259. (rfdset): New variable.
  16260. (wfdset): New variable.
  16261. (updateFdSet): New function.
  16262. * src/DownloadEngine.cc
  16263. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16264. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16265. (waitData): Copy rfdset and wfdset.
  16266. (updateFdSet): New function.
  16267. (addSocket): Call updateFdSet.
  16268. (deleteSocket): Call updateFdSet.
  16269. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16270. To add the support for Metalink3.0 backward compatible links:
  16271. * src/Request.h
  16272. (SAFE_CHARS): Added '#'.
  16273. (METALINK_MARK): New definition.
  16274. * src/Request.cc
  16275. (parseUrl): Added the support for Metalink3.0 backward compatible
  16276. links.
  16277. etc
  16278. * src/PeerInteraction.cc
  16279. (MsgPushBack): Removed.
  16280. (sendMessages): Use STL copy and back_inserter.
  16281. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16282. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16283. * src/TorrentMan.h
  16284. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16285. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16286. * src/SharedHandle.h: New class.
  16287. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16288. * src/HttpResponseCommand.h
  16289. (HttpResponseCommand): Wrapped Socket.
  16290. * src/SocketCore.h
  16291. (operator==): New function.
  16292. (operator!=): New function.
  16293. (operator<): New function.
  16294. (getSockfd): New function.
  16295. (isOpen): New function.
  16296. (writeData): New function.
  16297. * src/SocketCore.cc
  16298. (operator==): New function.
  16299. (operator!=): New function.
  16300. (operator<): New function.
  16301. * src/AbstractCommand.h
  16302. (socket): Changed its type to SocketHandle.
  16303. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16304. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16305. (disableReadCheckSocket): New function.
  16306. (disableWriteCheckSocket): New function.
  16307. (readCheckTarget): Changed its type to SocketHandle.
  16308. (writeCheckTarget): Changed its type to SocketHandle.
  16309. (AbstractCommand): Replaced Socket with SocketHandle.
  16310. * src/AbstractCommand.cc
  16311. (AbstractCommand): Replaced Socket with SocketHandle.
  16312. (~AbstractCommand): Removed the deallocation for Socket object.
  16313. (disableReadCheckSocket): New function.
  16314. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16315. (disableWriteCheckSocket): New function.
  16316. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16317. * src/HttpDownloadCommand.cc
  16318. (DownloadCommand): Replaced Socket with SocketHandle.
  16319. * src/PeerAbstractCommand.h
  16320. (socket): Changed its type to SocketHandle.
  16321. (peer): Changed its type to PeerHandle.
  16322. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16323. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16324. (disableReadCheckSocket): New function.
  16325. (disableWriteCheckSocket): New function.
  16326. (readCheckTarget): Changed its type to SocketHandle.
  16327. (writeCheckTarget): Changed its type to SocketHandle.
  16328. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16329. Replaced Peer with PeerHandle.
  16330. * src/HttpRequestCommand.cc
  16331. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16332. Use disableReadCheckSocket.
  16333. * src/PeerInitiateConnectionCommand.h
  16334. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16335. * src/PeerChokeCommand.cc
  16336. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16337. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16338. (execute): Use PeerHandle.
  16339. * src/PeerConnection.h
  16340. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16341. (socket): Changed its type to SocketHandle.
  16342. (PeerConnection): Replaced Socket with SocketHandle.
  16343. * src/PeerConnection.cc
  16344. (PeerConnection): Replaced Socket with SocketHandle.
  16345. * src/PeerInteractionCommand.h
  16346. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16347. Replaced Peer with PeerHandle.
  16348. * src/PeerInteractionCommand.cc
  16349. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16350. Replaced Peer with PeerHandle.
  16351. (executeInternal): Use disableWriteCheckSocket.
  16352. Use HandshakeMessageHandle.
  16353. (receiveMessages): Use PeerMessageHandle.
  16354. (prepareForNextPeer): Use PeerHandle.
  16355. * src/HttpProxyRequestCommand.h
  16356. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16357. * src/HttpResponseCommand.cc
  16358. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16359. * src/TorrentMan.cc
  16360. (nullPeer): Added external reference.
  16361. (~TorrentMan): Removed the deallocation of the elements of peers.
  16362. (addPeer): Rewritten.
  16363. (isPeerAvailable): Use nullPeer.
  16364. (deleteOldpeers): Replaced with deleteErrorPeer.
  16365. (deleteErrorPeer): New function.
  16366. (getPeer): Use PeerHandle and nullPeer.
  16367. (hasMissingPiece): Replaced Peer with PeerHandle.
  16368. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16369. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16370. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16371. (getMissingPiece): Replaced Peer with PeerHandle.
  16372. * src/FtpNegotiateCommand.cc
  16373. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16374. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16375. (recvGreeting): Use disableWriteCheckSocket.
  16376. (recvPasv): Removed the allocation of Socket.
  16377. Use disableReadCheckSocket.
  16378. (sendRestPasv): Use disableWriteCheckSocket.
  16379. (recvRetr): Changed assertion.
  16380. * src/PeerInteraction.h
  16381. (SharedHandle.h): Included SharedHandle.h.
  16382. (PeerMessageHandle): New type definition.
  16383. (HandshakeMessageHandle): New type definition.
  16384. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16385. (peer): Changed its type to PeerHandle.
  16386. (createHandshakeMessage): Replaced HandshakeMessage with
  16387. HandshakeMessageHandle.
  16388. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16389. (PeerInteraction): Replaced Peer with PeerHandle.
  16390. Replaced Socket with SocketHandle.
  16391. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16392. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16393. (receiveHandshake): Replaced HandshakeMessage with
  16394. HandshakeMessageHandle.
  16395. * src/PeerInteraction.cc
  16396. (PeerInteraction): Replaced Peer with PeerHandle.
  16397. Replaced Socket with SocketHandle.
  16398. (~PeerInteraction): Removed the deallocation of the elements of
  16399. messageQueue.
  16400. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16401. (isSendingMessageInProgress): Replaced PeerMessage with
  16402. PeerMessageHandle.
  16403. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16404. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16405. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16406. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16407. (abortPiece): Use PeerMessageHandle.
  16408. (receiveHandshake): Replaced HandshakeMessage with
  16409. HandshakeMessageHandle. Removed try-catch block.
  16410. (createHandshakeMessage): Replaced HandshakeMessage with
  16411. HandshakeMessageHandle.
  16412. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16413. Removed try-catch block.
  16414. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16415. * src/HttpProxyResponseCommand.cc
  16416. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16417. * src/FtpTunnelResponseCommand.h
  16418. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16419. * src/HttpConnection.cc
  16420. (HttpConnection): Replaced Socket with SocketHandle.
  16421. * src/PeerAbstractCommand.cc
  16422. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16423. (~PeerAbstractCommand): Removed the deallocation of socket.
  16424. Use disableReadCheckSocket, disableWriteCheckSocket.
  16425. (disableReadCheckSocket): New function.
  16426. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16427. (disableWriteCheckSocket): New function.
  16428. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16429. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16430. * src/FtpTunnelRequestCommand.cc
  16431. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16432. (~FtpTunnelRequestCommand): Corrected indentation.
  16433. * src/DownloadCommand.h
  16434. (DownloadCommand): Replaced Socket with SocketHandle.
  16435. * src/PeerListenCommand.cc
  16436. (PeerListenCommand): Removed the initialization of socket.
  16437. (~PeerListenCommand): Removed the deallocation of socket.
  16438. (bindPort): Use SocketHandle.
  16439. (execute): Use SocketHandle and PeerHandle.
  16440. * src/FtpDowndloadCommand.cc
  16441. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16442. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16443. * src/main.cc
  16444. (main): Corrected indentation.
  16445. * src/HttpInitiateConnectionCommand.cc
  16446. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16447. (executeInternal): Removed the allocation of socket.
  16448. * src/HttpRequestCommand.h
  16449. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16450. * src/FtpNegotiationCommand.h
  16451. (dataSocket): Changed its type to SocketHandle.
  16452. (serverSocket): Changed its type to SocketHandle.
  16453. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16454. * src/TorrentMan.h
  16455. (MAX_PEER_UPDATE): Removed.
  16456. (MAX_PEERS): New definition.
  16457. (Peers): The element is now of type PeerHandle.
  16458. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16459. (getPeer): Replaced Peer with PeerHandle.
  16460. (deleteOldErrorPeers): Removed.
  16461. (deleteErrorPeer): New function.
  16462. (hasMissingPiece): Replaced Peer with PeerHandle.
  16463. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16464. (getMissingPiece): Replaced Peer with PeerHandle.
  16465. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16466. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16467. (addActivePeer): Replaced Peer with PeerHandle.
  16468. (deleteActivePeer): Replaced Peer with PeerHandle.
  16469. Added a check for the return value of find.
  16470. * src/FtpTunnelResponseCommand.cc
  16471. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16472. * src/FtpInitiateConnectionCommand.cc
  16473. (executeInternal): Removed the allocation of socket.
  16474. * src/DownloadEngine.h
  16475. (Sockets): An element is now of type SocketHandle.
  16476. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16477. (CommandUuids): New type definition.
  16478. (rsockets): Changed its type to SockCmdMap.
  16479. (wsockets): Changed its type to SockCmdMap.
  16480. (addSocket): Rewritten.
  16481. (deleteSocket): Rewritten.
  16482. (addSocketForReadCheck): Rewritten.
  16483. (deleteSocketForReadCheck): Rewritten.
  16484. (addSocketForWriteCheck): Rewritten.
  16485. (deleteSocketForWriteCheck): Rewritten.
  16486. (PairFind): New template class.
  16487. * src/HttpDownloadCommand.h
  16488. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16489. * src/FtpConnection.cc
  16490. (FtpConnection): Replaced Socket with SocketHandle.
  16491. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16492. block.
  16493. * src/InitiateConnectionCommandFactory.cc
  16494. (DlAbortEx.h): Included DlAbortEx.h.
  16495. (createInitiateConnectionCommand): Throw exception if the protocol of
  16496. requested URI is not supported.
  16497. * src/Peer.cc
  16498. (nullPeer): Changed its type to PeerHandle.
  16499. (operator==): New function.
  16500. (operator!=): New function.
  16501. * src/Peer.h
  16502. (SharedHandle.h): Included SharedHandle.h.
  16503. (operator==): New function.
  16504. (operator!=): New function.
  16505. (Peer): Added the default constructor.
  16506. Use resetStatus() to initialize member variables.
  16507. (nullPeer): Removed.
  16508. * src/TrackerUpdateCommand.cc
  16509. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16510. with MIN_PEERS.
  16511. * src/PeerListenCommand.h
  16512. (socket): Changed its type to SocketHandle.
  16513. * src/Command.h
  16514. (CommandUuid): New type definition.
  16515. (uuid): New variable.
  16516. (uuidGen): New variable.
  16517. (Command): Added the initialization of uuid.
  16518. (getUuid): New function.
  16519. * src/Socket.h
  16520. (Socket): Removed.
  16521. (SocketHandle): New type definition.
  16522. * src/DownloadEngine.h
  16523. (FindCommand): New function object.
  16524. (run): The portion of socket check was rewritten.
  16525. (SetDescriptor): New function object.
  16526. (AccumulateActiveCommandUuid): New function object.
  16527. (waitData): Rewritten.
  16528. (addSocket): Rewritten.
  16529. (deleteSocket): Rewritten.
  16530. (addSocketForReadCheck): Rewritten.
  16531. (addSocketForWriteCheck): Rewritten.
  16532. (deleteSocketForReadCheck): Rewritten.
  16533. (deleteSocketForWriteCheck): Rewritten.
  16534. * src/HttpProxyResponseCommand.h
  16535. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16536. * src/HttpConnection.h
  16537. (socket): Changed its type to SocketHandle.
  16538. (HttpConnection): Replaced Socket with SocketHandle.
  16539. * src/PeerInitiateConnectionCommand.cc
  16540. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16541. (executeInternal): Removed the allocation of socket.
  16542. (prepareForNextPeer): Use PeerHandle.
  16543. * src/PeerMessage.h
  16544. (peer): Changed its type to PeerHandle.
  16545. (getPeer): Replaced Peer with PeerHandle.
  16546. (setPeer): Replaced Peer with PeerHandle.
  16547. * src/DownloadCommand.cc
  16548. (DownloadCommand): Replaced Socket with SocketHandle.
  16549. * src/FtpConnection.h
  16550. (socket): Changed its type to SocketHandle.
  16551. (FtpConnection): Replaced Socket with SocketHandle.
  16552. (sendPort); Replaced Socket with SocketHandle.
  16553. * src/FtpDowndloadCommand.h
  16554. (ctrlSocket): Changed its type to SocketHandle.
  16555. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16556. * src/HttpProxyRequestCommand.cc
  16557. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16558. * src/FtpTunnelRequestCommand.h
  16559. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16560. etc
  16561. * src/PeerChokeCommand.h
  16562. (setAllPeerChoked): Removed.
  16563. (setAllPeerResetDelta): Removed.
  16564. * src/PeerChokeCommand.cc
  16565. (setAllPeerChoked): Removed.
  16566. (ChokePeer): New function object.
  16567. (setAllPeerResetDelta): Removed.
  16568. (ResetDelta): New function object.
  16569. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16570. (execute): Show download speed when the local node is a seeder.
  16571. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16572. using STL.
  16573. * src/TrackerWatcherCommand.h
  16574. (MIN_PEERS): Removed.
  16575. * src/TorrentMan.cc
  16576. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16577. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16578. To fix the bug that .aria2 file is not saved if downloading is stopped
  16579. by the errors:it results that aria2 can not resume downloading:
  16580. * src/main.cc
  16581. (normalDownload): Added the call to save().
  16582. (main): Added the deletion of the elements in 'reserved'.
  16583. To fix log:
  16584. * src/PeerInteraction.cc
  16585. (receiveHandshake): Fixed log.
  16586. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16587. To improve download performance in BitTorrent:
  16588. * src/TorrentMan.cc
  16589. (getPeer): Check the number of connections. Return nullPeer if
  16590. it is greater than MAX_PEER_UPDATE.
  16591. This code was originally here, but was removed in 0.5.1.
  16592. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16593. To improve the conditional compilation:
  16594. * src/MultiDiskWriter.h:
  16595. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16596. * src/MultiDiskWriter.cc:
  16597. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16598. * src/Util.h:
  16599. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16600. Added ENABLE_BITTORRENT around computeFastSet().
  16601. * src/Util.cc:
  16602. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16603. Added ENABLE_BITTORRENT around computeFastSet().
  16604. * src/messageDigest.h:
  16605. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16606. * src/ShaVisitor.h:
  16607. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16608. * src/ShaVisitor.cc:
  16609. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16610. * src/main.cc:
  16611. Added ENABLE_BITTORRENT around includes and blocks related to
  16612. BitTorrent.
  16613. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16614. digest support is not available.
  16615. * src/AbstractDiskWriter.h:
  16616. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16617. * src/AbstractDiskWriter.cc:
  16618. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16619. * src/MetalinkEntry.cc
  16620. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16621. support is not available.
  16622. To add command-line options for Metalink:
  16623. * src/main.cc:
  16624. Added metalink-version, metalink-language, metalink-os,
  16625. follow-metalink.
  16626. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16627. * src/main.cc: Use these definition.
  16628. * Release 0.6.0
  16629. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16630. To add Metalink support(http/ftp only):
  16631. * src/AbstractCommand.h
  16632. (tryReserved): New function.
  16633. * src/AbstractCommand.cc
  16634. (execute): Call tryReserved().
  16635. (tryReserved): New function.
  16636. * src/Request.h
  16637. (Requests): New type definition.
  16638. * src/SegmentMan.h
  16639. (reserved): New variable.
  16640. * src/Util.h
  16641. (fileChecksum): New function.
  16642. (toUpper): New function.
  16643. (toLower): New function.
  16644. * src/Util.cc
  16645. (messageDigest.h): Included.
  16646. (trim): Trim \r\n\t.
  16647. (fileChecksum): New function.
  16648. (toUpper): New function.
  16649. (toLower): New function.
  16650. * src/main.cc
  16651. (normalDownload): New function.
  16652. (main): Added 2 command-line options: metalink-file,
  16653. metalink-connection. Their usage has not been written yet.
  16654. * src/MetalinkProcessor.h: New class.
  16655. * src/Xml2MetalinkProcessor.h: New class.
  16656. * src/Xml2MetalinkProcessor.cc: New class.
  16657. * src/MetalinkEntry.h: New class.
  16658. * src/MetalinkEntry.cc: New class.
  16659. * src/MetalinkResource.h: New class.
  16660. * src/MetalinkResource.cc: New class.
  16661. To add md5 message digest checking:
  16662. * src/messageDigest.h: Rewritten.
  16663. * src/MultiDiskWriter.cc: Updated according to the changes in
  16664. messageDigest.h.
  16665. * src/ShaVisitor.cc: Updated according to the changes in
  16666. messageDigest.h.
  16667. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16668. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16669. messageDigest.h.
  16670. To fix a bug that causes segfault when the payload length in peer
  16671. message is less than 0:
  16672. * src/PeerConnection.cc:
  16673. (receiveMessage): Fixed the bug.
  16674. * src/PeerMessageUtil.cc
  16675. (checkLength): Throw an exception if length is less than or equals to
  16676. 0.
  16677. To add new interfaces to Base64 encoding/decoding:
  16678. * src/Base64.h
  16679. (part_encode): Changed the method signature.
  16680. (encode): New function(overload).
  16681. (decode): New function(overload).
  16682. * src/Base64.cc
  16683. (part_encode): Rewritten.
  16684. (encode): Rewritten.
  16685. (encode): New function(overload).
  16686. To prevent a peer to download same piece if there is an error in
  16687. checksum:
  16688. * src/PieceMessage.cc
  16689. (receivedAction): Call peerInteraction->abortPiece().
  16690. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16691. To fix the bug that causes same have message is sent many times to
  16692. a single peer.
  16693. * src/Time.cc
  16694. (isNewer): Use Util::difftv().
  16695. * src/Util.cc
  16696. (difftv): Added a cast to (long long int).
  16697. * src/TorrentMan.cc
  16698. (advertisePiece): Use push_front.
  16699. (getAdvertisedPieceIndexes): A performance improvement was made.
  16700. To fix the bug that sends tracker requests without a sleep interval
  16701. when the number of connections is less than 15.
  16702. * src/TrackerWatcherCommand.cc
  16703. (execute): Now the number of connections is not a factor to decide
  16704. whether or not a tracker request should be sent or not.
  16705. * src/Time.h
  16706. (setTimeInSec): New function.
  16707. * src/Time.cc
  16708. (setTimeInSec): New function.
  16709. etc.
  16710. * src/ChokeMessage.cc
  16711. (receivedAction): Removed peer->snubbing = false
  16712. * src/PeerConnection.h
  16713. (receiveHandshake): Updated doc.
  16714. * src/TorrentMan.h
  16715. (getAdvertisedPieceIndexes): Updated the method signature.
  16716. * src/TorrentMan.cc
  16717. (getAdvertisedPieceIndexes): Updated the method signature.
  16718. * src/Time.h
  16719. (getTimeInMicros): Added a cast to (long long int).
  16720. (getTimeInMillis): Added a cast to (long long int).
  16721. * Release 0.5.2
  16722. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16723. To make a listening socket non-block:
  16724. * src/SocketCore.h
  16725. (setNonBlockingMode): New function.
  16726. * src/SocketCore.cc
  16727. (setNonBlockingMode): New function.
  16728. (beginListen): Added a call to setNonBlockingMode().
  16729. (acceptConnection): Call setNonBlockingMode().
  16730. (setBlockingMode): Updated.
  16731. To handle tracker's NAT-checking:
  16732. * src/PeerConnection.cc
  16733. (receiveHandshake): 'msg' param is filled with received data and
  16734. its length is assigned to 'length' param, even if all handshake
  16735. message is not yet received.
  16736. * src/PeerInteractionCommand.cc
  16737. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16738. a new peer connects to localhost.
  16739. A call to peerInteraction->sendHandshake() was removed because
  16740. it is called from peerInteraction->receiveHandshake(true).
  16741. * src/PeerInteraction.h
  16742. (quickReplied): New variable.
  16743. (receiveHandshake): Added an argument.
  16744. * src/PeerInteraction.cc
  16745. (PeerInteraction): Added the initialization of quickReplied.
  16746. (receiveHandshake): Send handshake message as soon as the info hash
  16747. in a handshake message from a peer is correct.
  16748. To change the random part of peer id and key parameter:
  16749. * src/TorrentMan.h
  16750. (key): New variable.
  16751. * src/TorrentMan.cc
  16752. (setupInternal1): Use Util::randomAlpha() to generate random part
  16753. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16754. key is also generated by Util::randomAlpha() and it is now 8 character
  16755. long.
  16756. * src/Util.h
  16757. (randomAlpha): New function.
  16758. * src/Util.cc
  16759. (randomAlpha): New function.
  16760. * src/TrackerWatcherCommand.cc
  16761. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16762. Added no_peer_id=1.
  16763. Set snubbing flag to false when a choke message is received from a
  16764. snubbed peer.
  16765. * src/ChokeMessage.cc
  16766. (receivedAction): Set snubbing flag to false.
  16767. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16768. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16769. * src/SimpleLogger.h (writeHeader): New function.
  16770. * src/SimpleLogger.cc (writeHeader): New function.
  16771. (writeLog): Fixed the bug that causes segfaults if exception message
  16772. contains an unescaped "%" character.
  16773. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16774. when a tracker request fails.
  16775. * src/Request.cc (parseUrl): Query string is now handled properly.
  16776. * Release 0.5.1
  16777. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16778. To add Time class which represents a specific instant in time and
  16779. its precision is microseconds. Time checking procedures were rewritten
  16780. using this object.
  16781. * src/Time.h: New class.
  16782. * src/Time.cc: New class.
  16783. * src/AbstractCommand.h
  16784. (updateCheckPoint): Removed.
  16785. (isTimeoutDetected): Removed.
  16786. (checkPoint): Changed the type to Time.
  16787. (timeout): New variable.
  16788. (setTimeout): New function.
  16789. * src/AbstractCommand.cc
  16790. (AbstractCommand): Removed the initialization of checkPoint.
  16791. Added the initialization of timeout.
  16792. (updateCheckPoint): Removed.
  16793. (isTimeoutDetected): Removed.
  16794. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16795. * src/PeerChokeCommand.h
  16796. (checkPoint): Changed the type to Time.
  16797. * src/PeerChokeCommand.cc
  16798. (PeerChokeCommand): Removed the initialization of checkPoint.
  16799. (execute): Rewritten using Time object.
  16800. * src/TrackerWatcherCommand.h
  16801. (checkPoint): Changed the type to Time.
  16802. * src/TrackerWatcherCommand.cc
  16803. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16804. (execute): Rewritten.
  16805. * src/ConsoleDownloadEngine.h
  16806. (cp): Changed the type to Time.
  16807. (startup): Changed the type to Time.
  16808. * src/ConsoleDownloadEngine.cc
  16809. (initStatistics): Use cp.reset(), startup.reset().
  16810. (calculateStatistics): Rewritten using Time object.
  16811. * src/PeerAbstractCommand.h
  16812. (updateCheckPoint): Removed.
  16813. (isTimeoutDetected): Removed.
  16814. (checkPoint): Changed the type to Time.
  16815. * src/PeerAbstractCommand.cc
  16816. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16817. (updateCheckPoint): Removed.
  16818. (isTimeoutDetected): Removed.
  16819. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16820. * src/PeerInteractionCommand.cc
  16821. (PeerInteractionCommand): Removed the initializations of struct
  16822. timeval variables.
  16823. * src/PeerInteractionCommand.h
  16824. (keepAliveCheckPoint): Changed the type to Time.
  16825. (chokeCheckPoint): Changed the type to Time.
  16826. (freqCheckPoint): Changed the type to Time.
  16827. (haveCheckTime): Changed the type to Time.
  16828. * src/PeerInteractionCommand.cc
  16829. (executeInternal): Rewritten using Time object.
  16830. (detectMessageFlooding): Rewritten using Time object.
  16831. (checkLongTimePeerChoking): Rewritten using Time object.
  16832. (sendKeepAlive): Rewritten using Time object.
  16833. (checkHave): Rewritten using Time object.
  16834. * src/SleepCommand.h
  16835. (checkPoint): Changed the type to Time.
  16836. * src/SleepCommand.cc
  16837. (SleepCommand): Removed the initialization of checkPoint.
  16838. (execute): Rewritten using Time object.
  16839. * src/TorrentAutoSaveCommand.h
  16840. (checkPoint): Changed the type to Time.
  16841. * src/TorrentAutoSaveCommand.cc
  16842. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16843. (execute): Rewritten.
  16844. * src/DownloadCommand.h
  16845. (sw): Changed the type to Time.
  16846. * src/DownloadCommand.cc
  16847. (DownloadCommand): Removed the initialization of sw.
  16848. (executeInternal): Rewritten.
  16849. * src/RequestSlot.h
  16850. (dispatchedTime): Changed the type to Time.
  16851. * src/RequestSlot.cc
  16852. (RequestSlot): Removed the call to setDispatchedTime().
  16853. (setDispatchedTime): Rewirtten.
  16854. (isTimeout): Rewritten.
  16855. (getLatencyInMillis): Rewritten.
  16856. * src/TorrentDownloadEngine.h
  16857. (cp): Changed the type to Time[2].
  16858. (startup): Changed the type to Time.
  16859. * src/TorrentDownloadEngine.cc
  16860. (initStatistics): Rewritten.
  16861. (calculateStatistics): Rewritten.
  16862. * src/DownloadEngine.cc
  16863. (run): Rewritten.
  16864. To detect all attempts to connect to the tracker are failed:
  16865. * src/AbstractCommand.cc
  16866. (execute): Increment e->segmentMan->errors if a command aborted.
  16867. * src/SegmentMan.h
  16868. (errors): New variable.
  16869. * src/SegmentMan.cc
  16870. (SegmentMan): Added the initialization of errors.
  16871. (init): Added the initialization of errors.
  16872. * src/TrackerWatcherCommand.cc
  16873. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16874. request was failed.
  16875. To handle snubbed peers:
  16876. * src/PeerChokeCommand.cc
  16877. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16878. (execute): Snubbed peers don't get unchoked.
  16879. * src/PeerInteraction.h
  16880. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16881. * src/PeerInteraction.cc
  16882. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16883. back the requested 16k block in 60 seconds.
  16884. * src/PieceMessage.cc
  16885. (receivedAction): A peer's snubbed state is cleard if it sends
  16886. the requested 16k block in 60 seconds.
  16887. * src/Peer.h
  16888. (snubbing): New variable.
  16889. * src/Peer.cc
  16890. (resetStatus): Added snubbed = false.
  16891. To fix the bug that causes have message is not sent:
  16892. * src/PeerInteractionCommand.cc
  16893. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16894. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16895. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16896. * src/TorrentMan.h
  16897. (HaveEntry): New class.
  16898. (advertisePiece): Rewritten.
  16899. (getAdvertisedPieceIndexes): Rewritten.
  16900. (Haves): Changed the type.
  16901. (getAdvertisedPieceIndexes): Added an argument.
  16902. Others:
  16903. * src/TorrentMan.h
  16904. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16905. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16906. * src/TorrentMan.cc
  16907. (getPeer): Don't check the number of connections here.
  16908. (setupInternal1): Changed peerId.
  16909. * src/PeerInteractionCommand.h
  16910. (KEEP_ALIVE_INTERVAL): New definition.
  16911. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16912. * src/main.cc
  16913. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16914. * src/DownloadEngine.h: Removed unnecessary header includes.
  16915. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16916. To fix the bug that causes segfaults if a tracker returns a zero-length
  16917. list as "peers":
  16918. * src/TrackerUpdateCommand.cc
  16919. (execute): Added a check to see wether the type of peers is Data*.
  16920. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16921. * Release 0.5.0
  16922. To fix compile issue with gcc3:
  16923. * src/CancelMessage.h
  16924. (ID): Renamed as ID_t
  16925. (ID_t): New enum.
  16926. * src/RejectMessage.h
  16927. (ID): Renamed as ID_t
  16928. (ID_t): New enum.
  16929. * src/SuggestPieceMessage.h
  16930. (ID): Renamed as ID_t
  16931. (ID_t): New enum.
  16932. * src/AllowedFastMessage.h
  16933. (ID): Renamed as ID_t
  16934. (ID_t): New enum.
  16935. * src/PortMessage.h
  16936. (ID): Renamed as ID_t
  16937. (ID_t): New enum.
  16938. * src/HaveNoneMessage.h
  16939. (ID): Renamed as ID_t
  16940. (ID_t): New enum.
  16941. * src/KeepAliveMessage.h
  16942. (ID): Renamed as ID_t
  16943. (ID_t): New enum.
  16944. * src/HaveAllMessage.h
  16945. (ID): Renamed as ID_t
  16946. (ID_t): New enum.
  16947. * src/UnchokeMessage.h
  16948. (ID): Renamed as ID_t
  16949. (ID_t): New enum.
  16950. * src/BitfieldMessage.h
  16951. (ID): Renamed as ID_t
  16952. (ID_t): New enum.
  16953. * src/PieceMessage.h
  16954. (ID): Renamed as ID_t
  16955. (ID_t): New enum.
  16956. * src/RequestMessage.h
  16957. (ID): Renamed as ID_t
  16958. (ID_t): New enum.
  16959. * src/NotInterestedMessage.h
  16960. (ID): Renamed as ID_t
  16961. (ID_t): New enum.
  16962. * src/ChokeMessage.h
  16963. (ID): Renamed as ID_t
  16964. (ID_t): New enum.
  16965. * src/InterestedMessage.h
  16966. (ID): Renamed as ID_t
  16967. (ID_t): New enum.
  16968. * src/HaveMessage.h
  16969. (ID): Renamed as ID_t
  16970. (ID_t): New enum.
  16971. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16972. * src/PeerAbstractCommand.h
  16973. (beforeSocketCheck): Removed.
  16974. * src/PeerAbstractCommand.cc
  16975. Modified in order to call executeInternal() even if socket check
  16976. and upload limit check fail.
  16977. * src/PeerInteractionCommand.h
  16978. (keepAlive): Removed.
  16979. (sendKeepAlive): New function.
  16980. (checkHave): New function.
  16981. (beforeSocketCheck): Removed.
  16982. * src/PeerInteractionCommand.cc
  16983. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16984. calls to checkHave() and sendKeepAlive().
  16985. (keepAlive): Renamed to sendKeepAlive().
  16986. (sendKeepAlive): New function.
  16987. (beforeSocketCheck): Removed.
  16988. (checkHave): New function.
  16989. * src/BitfieldMan.cc
  16990. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16991. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16992. 0.
  16993. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16994. * src/TorrentMan.h
  16995. (UsedPieces): Removed.
  16996. (Pieces): New type definition.
  16997. * src/Piece.h: Updated doc.
  16998. * src/Peer.h
  16999. (totalLength): Removed.
  17000. * src/Peer.cc
  17001. (updateLatency): Fixed the latency calculation.
  17002. * src/TorrentMan.cc
  17003. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17004. than or equal to MAX_PEER_LIST_SIZE.
  17005. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17006. then return false.
  17007. (deleteOldErrorPeers): Rewritten.
  17008. (deleteUsedPiece): Fixed the miss use of STL remove.
  17009. * src/PeerInteraction.h
  17010. (Pieces): Removed.
  17011. (deleteTimeoutRequestSlot): Removed.
  17012. (deleteCompletedRequestSlot): Removed.
  17013. (checkRequestSlot): New function.
  17014. * src/PeerInteraction.cc
  17015. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17016. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17017. (checkRequestSlot): New function.
  17018. * src/DownloadEngine.cc
  17019. (run): Clear activeSockets before calling waitData().
  17020. (waitData): Removed a call to activeSockets.clear().
  17021. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17022. To attempt to handle EINTR:
  17023. * src/SocketCore.cc
  17024. (isReadable): Added EINTR handling.
  17025. (isWritable): Added EINTR handling.
  17026. To improve the performance:
  17027. * src/AbstractCommand.cc
  17028. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17029. * src/PeerInteractionCommand.h
  17030. (receiveMessage): Renamed as receiveMessages().
  17031. (receiveMessages): New function.
  17032. * src/PeerInteractionCommand.cc
  17033. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17034. () function. detectMessageFlooding() is moved here.
  17035. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17036. (). The flooding detection for have message is comment out.
  17037. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17038. Util::difftv().
  17039. (receiveMessage): Renamed as receiveMessages().
  17040. (receiveMessages): New function.
  17041. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17042. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17043. * src/SleepCommand.cc
  17044. (execute): Use Util::difftvsec() instead of Util::difftv().
  17045. * src/BitfieldMan.h
  17046. (getNthBitIndex): New function.
  17047. (hasMissingPiece): New function.
  17048. (getAllMissingIndexes): New function.
  17049. * src/BitfieldMan.cc
  17050. (countSetBit): Rewritten.
  17051. (getNthBitIndex): New function.
  17052. (getMissingIndexRandomly): Rewritten.
  17053. (hasMissingPiece): New function.
  17054. (getAllMissingIndexes): New function.
  17055. * src/TorrentMan.cc
  17056. (hasMissingPiece): New function.
  17057. (deleteUsedPiece): Rewritten using STL.
  17058. * src/PeerInteraction.cc
  17059. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17060. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17061. (addRequests): Updated the number of pending requests.
  17062. * src/PeerAbstractCommand.cc
  17063. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17064. (execute): Returns true if TorrentMan::isHalt() is true.
  17065. Corrected the condition of upload limit checking.
  17066. * src/Util.h
  17067. (countBit): New function.
  17068. * src/Util.cc
  17069. (nbits): New variable.
  17070. (countBit): New function.
  17071. * src/DownloadEngine.h
  17072. (SockCmdMap): New type definition.
  17073. (waitData): Added an argument.
  17074. (addSocket): Added an argument.
  17075. (addSocketForReadCheck): Added an argument.
  17076. (addSocketForWriteCheck): Added an argument.
  17077. * src/DownloadEngine.cc
  17078. (run): Executes only commands whose sockets are ready to read or write.
  17079. All commands are executed in every 1 second.
  17080. (waitData): Calls select() again if it returned
  17081. EINTR.
  17082. (addSocket): Saves socket and command object pair to the map.
  17083. (deleteSocket): Deletes socket and command object pair from the map.
  17084. (addSocketForReadCheck): Added an argument.
  17085. (addSocketForWriteCheck): Added an argument.
  17086. * src/DownloadCommand.cc
  17087. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17088. To send "event=stopped" to the tracker when the application finishes:
  17089. * src/PeerChokeCommand.h
  17090. (checkPoint): New variable.
  17091. * src/PeerChokeCommand.cc
  17092. (PeerChokeCommand): Added the initialization of checkPoint.
  17093. (execute): The interval check is now done by checkPoint, not
  17094. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17095. * src/TorrentMan.h
  17096. (halt): New function.
  17097. (hasMissingPiece): New function.
  17098. (isHalt): New function.
  17099. (setHalt): New function.
  17100. * src/TorrentMan.cc
  17101. (TorrentMan): Added the initialization of halt.
  17102. * src/TorrentAutoSaveCommand.h
  17103. (checkPoint): New variable.
  17104. * src/PeerListenCommand.cc
  17105. (execute): Returns true if TorrentMan::isHalt() is true.
  17106. * src/main.cc
  17107. (setSignalHander): Added flags argument.
  17108. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17109. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17110. Removed printDownloadAbortMessage() after torrent downloading loop.
  17111. * src/TorrentAutoSaveCommand.cc
  17112. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17113. (execute): Returns true if TorrentMan::isHalt() is true.
  17114. The interval check is now done by checkPoint, not SleepCommand.
  17115. * src/TrackerWatcherCommand.cc
  17116. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17117. event=stopped.
  17118. * src/TrackerUpdateCommand.cc
  17119. (prepareForRetry): Do not use SleepCommand here.
  17120. (execute): Returns true if TorrentMan::isHalt() is true.
  17121. Others:
  17122. * src/TorrentMan.cc
  17123. (getMissingPieceIndex): Updated log message.
  17124. * src/PeerInteraction.cc
  17125. (createPeerMessag): Updated log message.
  17126. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17127. To add the ability to download several pieces in mix in a command and
  17128. increase the number of request slots according to request-cancel
  17129. latency:
  17130. * src/PeerInteractionCommand.cc
  17131. (executeInternal): The number of messages to be received at a time
  17132. is increased from 10 to 50.
  17133. * src/LogFactory
  17134. (getInstance): Added NullLogger.
  17135. * src/NullLogger.h: New class.
  17136. * src/BitfieldMan.h
  17137. (getMissingIndex): New function.
  17138. * src/BitfieldMan.cc
  17139. (getMissingIndex): New function.
  17140. * src/TorrentMan.h
  17141. (checkOutPiece): New function.
  17142. (getMissingPieceIndex): New function.
  17143. (getMissingFastPieceIndex): New function.
  17144. (getMissingFastPiece): New function.
  17145. * src/TorrentMan.cc
  17146. (updatePiece): Rewritten using STL.
  17147. (syncPiece): Rewritten using STL.
  17148. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17149. checkOutPiece().
  17150. (getMissingPieceIndex): New function.
  17151. (getMissingFastPieceIndex): New function.
  17152. (getMissingFastPiece): New function.
  17153. (checkOutPiece): New function.
  17154. * src/PeerInteraction.h
  17155. (Pieces): New type definition.
  17156. (piece): Removed.
  17157. (pieces): New variable.
  17158. (getNewPieceAndSendInterest): Added the "piece" argument.
  17159. (abortPiece): Added the "piece" argument.
  17160. (abortAllPieces): New function.
  17161. (isInRequestSlot): New function.
  17162. (hasDownloadPiece): Added the "index" argument.
  17163. (setDownloadPiece): Removed.
  17164. (getDownloadPiece): Added the "index" argument.
  17165. (updatePiece): New function.
  17166. (createRequestMessage): Added the "index" argument.
  17167. * src/PeerInteraction.cc
  17168. (onChoked): Rewritten.
  17169. (abortPiece): Rewirtten.
  17170. (abortAllPieces): New function.
  17171. (deleteTimeoutRequestSlot): Rewritten.
  17172. Clarified code a little bit.
  17173. (deleteCompletedRequestSlot): Rewritten.
  17174. (isInRequestSlot): New function.
  17175. (syncPiece): Rewritten.
  17176. (updatePiece): New function.
  17177. (getNewPieceAndSendInterest): Rewritten.
  17178. (addRequests): Rewritten.
  17179. (getDownloadPiece): Rewritten.
  17180. (hasDownloadPiece): Rewritten.
  17181. (createRequestMessage): Added the "index" argument.
  17182. * src/common.h
  17183. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17184. (DIV_FLOOR): New definition.
  17185. * src/PieceMessage.cc
  17186. (receivedAction): Update request-piece latency here.
  17187. * src/RequestSlot.h
  17188. (getLatencyInMillis): New function.
  17189. * src/RequestSlot.cc
  17190. (isTimeout): Rewritten using getLatencyInMillis.
  17191. (getLatencyInMillis): New function.
  17192. * src/Piece.h
  17193. (operator==): New function.
  17194. (getMissingBlockIndex): New function.
  17195. * src/Piece.cc
  17196. (operator==): New function.
  17197. (getMissingBlockIndex): New function.
  17198. * src/Peer.h
  17199. (DEFAULT_LATENCY): New definition.
  17200. (latency): New variable.
  17201. (updateLatency): New function.
  17202. (getLatency): New function.
  17203. * src/Peer.cc
  17204. (resetStatus): Reset latecy.
  17205. (updateLatency): New function.
  17206. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17207. * src/SocketCore.cc
  17208. (isReadable): Added secure to the condition.
  17209. * src/HttpConnection.cc
  17210. (receiveResponse): Fixed a bug that causes no response header
  17211. exception.
  17212. * src/Peer.h
  17213. (getFastSet): Fixed the return value type.
  17214. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17215. To remove a wait from download loop:
  17216. * src/DownloadEngine.cc
  17217. (run): Comment out shortSleep.
  17218. To rewrite the message handling:
  17219. * src/SimplePeerMessage.h: New class.
  17220. * src/SimplePeerMessage.cc: New class.
  17221. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17222. (msg): New variable.
  17223. (create): New function.
  17224. (send): Removed.
  17225. (getMessage): New function.
  17226. (getMessageLength): New function.
  17227. * src/CancelMessage.cc
  17228. (create): New function.
  17229. (receivedAction): Replaced deleteRequestMessageInQueue with
  17230. rejectPieceMessageInQueue.
  17231. (send): Removed.
  17232. (getMessage): New function.
  17233. (getMessageLength): New function.
  17234. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17235. (msg): New variable.
  17236. (msgLength): New variable.
  17237. (~BitfieldMessage): Deleted msg.
  17238. (send): Removed.
  17239. (getMessage): New function.
  17240. (getMessageLength): New function.
  17241. * src/BitfieldMessage.cc
  17242. (create): New function.
  17243. (send): Removed.
  17244. (getMessage): New function.
  17245. (getMessageLength): New function.
  17246. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17247. (msg): New variable.
  17248. (sendPredicate): New function.
  17249. (onSendComplete): New function.
  17250. (send): Removed.
  17251. (getMessage): New function.
  17252. (getMessageLength): New function.
  17253. (create): New function.
  17254. * src/ChokeMessage.cc
  17255. (create): New function.
  17256. (send): Removed.
  17257. (sendPredicate): New function.
  17258. (getMessage): New function.
  17259. (getMessageLength): New function.
  17260. (onSendComplete): New function.
  17261. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17262. (msg): New variable.
  17263. (send): Removed.
  17264. (getMessage): New function.
  17265. (getMessageLength): New function.
  17266. * src/KeepAliveMessage.cc
  17267. (send): Removed.
  17268. (getMessage): New function.
  17269. (getMessageLength): New function.
  17270. * src/PortMessage.h
  17271. (create): New function.
  17272. (receivedAction): Updated log message.
  17273. * src/PortMessage.cc: New file.
  17274. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17275. (msg): New variable.
  17276. (sendPredicate): New function.
  17277. (onSendComplete): New function.
  17278. (create): New function.
  17279. (send): Removed.
  17280. (getMessage): New function.
  17281. (getMessageLength): New function.
  17282. * src/UnchokeMessage.cc
  17283. (create): New function.
  17284. (send): Removed.
  17285. (sendPredicate): New function.
  17286. (getMessage): New function.
  17287. (getMessageLength): New function.
  17288. (onSendComplete): New function.
  17289. * src/PieceMessage.h
  17290. (leftPieceDataLength): Removed.
  17291. (leftDataLength): New variable.
  17292. (headerSend): New variable.
  17293. (pendingCount): New variable.
  17294. (msgHeader): New variable.
  17295. (sendPieceData): New function.
  17296. (incrementPendingCount): New function.
  17297. (isPendingCountMax): New function.
  17298. (create): New function.
  17299. (getMessageHeader): New function.
  17300. (getMessageHeaderLength): New function.
  17301. * src/PieceMessage.cc
  17302. (create): New function.
  17303. (getMessageHeader): New function.
  17304. (getMessageHeaderLength): New function.
  17305. (send): Rewritten.
  17306. (sendPieceData): New function.
  17307. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17308. (msg): New variable.
  17309. (create): New function.
  17310. (getMessage): New function.
  17311. (getMessageLength): New function.
  17312. * src/HaveMessage.cc
  17313. (create): New function.
  17314. (send): Removed.
  17315. (sendPieceData): New function.
  17316. (getMessage): New function.
  17317. (getMessageLength): New function.
  17318. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17319. (msg): New variable.
  17320. (create): New function.
  17321. (send): Removed.
  17322. (getMessage): New function.
  17323. (getMessageLength): New function.
  17324. * src/RequestMessage.cc
  17325. (create): New function.
  17326. (receivedAction): Added the handling of fast extension.
  17327. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17328. (send): Removed.
  17329. (getMessage): New function.
  17330. (getMessageLength): New function.
  17331. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17332. (msg): New variable.
  17333. (sendPredicate): New function.
  17334. (onSendComplete): New function.
  17335. (create): New function.
  17336. (getMessage): New function.
  17337. (getMessageLength): New function.
  17338. * src/InterestedMessage.cc
  17339. (create): New function.
  17340. (send): Removed.
  17341. (sendPieceData): New function.
  17342. (getMessage): New function.
  17343. (getMessageLength): New function.
  17344. (onSendComplete): New function.
  17345. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17346. (msg): New variable.
  17347. (sendPieceData): New function.
  17348. (onSendComplete): New function.
  17349. (create): New function.
  17350. (send): Removed.
  17351. (getMessage): New function.
  17352. (getMessageLength): New function.
  17353. * src/NotInterestedMessage.cc
  17354. (create): New function.
  17355. (send): Removed.
  17356. (sendPredicate): New function.
  17357. (getMessage): New function.
  17358. (getMessageLength): New function.
  17359. (onSendComplete): New function.
  17360. * src/AllowedFastMessage.h: New class.
  17361. * src/AllowedFastMessage.cc: New class.
  17362. * src/RejectMessage.h: New class.
  17363. * src/RejectMessage.cc: New class.
  17364. * src/SuggestPieceMessage.h: New class.
  17365. * src/SuggestPieceMessage.cc: New class.
  17366. * src/HaveAllMessage.h: New class.
  17367. * src/HaveAllMessage.cc: New class.
  17368. * src/HaveNoneMessage.h: New class.
  17369. * src/HaveNoneMessage.cc: New class.
  17370. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17371. (msg): New variable.
  17372. (reserved): New variable.
  17373. (create): New function.
  17374. (getId): New function.
  17375. (receivedAction): New function.
  17376. (getMessage): New function.
  17377. (getMessageLength): New function.
  17378. (isFastExtensionSupported): New function.
  17379. * src/HandshakeMessage.cc
  17380. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17381. (create): New function.
  17382. (getMessage): New function.
  17383. (getMessageLength): New function.
  17384. (toString): Added the output of reserved field.
  17385. (check): Added const qualifier.
  17386. (isFastExtensionSupported): New function.
  17387. * src/PeerMessageUtil.h
  17388. (createChokeMessage): Removed.
  17389. (createUnchokeMessage): Removed.
  17390. (createInterestedMessage): Removed.
  17391. (createNotInterestedMessage): Removed.
  17392. (createHaveMessage): Removed.
  17393. (createBitfieldMessage): Removed.
  17394. (createRequestMessage): Removed.
  17395. (createCancelMessage): Removed.
  17396. (createPieceMessage): Removed.
  17397. (createPortMessage): Removed.
  17398. (createChokeMessage): Removed.
  17399. (createUnchokeMessage): Removed.
  17400. (createInterestedMessage): Removed.
  17401. (createNotInterestedMessage): Removed.
  17402. (createHaveMessage): Removed.
  17403. (createBitfieldMessage): Removed.
  17404. (createRequestMessage): Removed.
  17405. (createCancelMessage): Removed.
  17406. (createPieceMessage): Removed.
  17407. (createKeepAliveMessage): Removed.
  17408. (createHandshakeMessage): Removed.
  17409. (setIntParam): New function.
  17410. (createPeerMessageString): New function.
  17411. * src/PeerMessageUtil.cc
  17412. (createChokeMessage): Removed.
  17413. (createUnchokeMessage): Removed.
  17414. (createInterestedMessage): Removed.
  17415. (createNotInterestedMessage): Removed.
  17416. (createHaveMessage): Removed.
  17417. (createBitfieldMessage): Removed.
  17418. (createRequestMessage): Removed.
  17419. (createCancelMessage): Removed.
  17420. (createPieceMessage): Removed.
  17421. (createPortMessage): Removed.
  17422. (createRequestMessage): Removed.
  17423. (createCancelMessage): Removed.
  17424. (createPieceMessage): Removed.
  17425. (createHaveMessage): Removed.
  17426. (createChokeMessage): Removed.
  17427. (createUnchokeMessage): Removed.
  17428. (createInterestedMessage): Removed.
  17429. (createNotInterestedMessage): Removed.
  17430. (createBitfieldMessage): Removed.
  17431. (createKeepAliveMessage): Removed.
  17432. (createHandshakeMessage): Removed.
  17433. (setIntParam): New function.
  17434. (createPeerMessageString): New function.
  17435. * src/PeerConnection.h
  17436. (peer): Removed.
  17437. (torrentMan): Removed.
  17438. (createNLengthMessage): Removed.
  17439. (setIntParam): Removed.
  17440. (writeOutgoingMessageLog): Removed all overloaded functions.
  17441. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17442. (sendMessage): New function.
  17443. (sendHandshake): Removed.
  17444. (sendKeepAlive): Removed.
  17445. (sendChoke): Removed.
  17446. (sendUnchoke): Removed.
  17447. (sendInterested): Removed.
  17448. (sendNotInterested): Removed.
  17449. (sendHave): Removed.
  17450. (sendBitfield): Removed.
  17451. (sendRequest): Removed.
  17452. (sendPiece): Removed.
  17453. (sendPieceHeader): Removed.
  17454. (sendPieceData): Removed.
  17455. (sendCancel): Removed.
  17456. (getPeer): Removed.
  17457. * src/PeerConnection.cc
  17458. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17459. (sendHandshake): Removed.
  17460. (sendKeepAlive): Removed.
  17461. (createNLengthMessage): Removed.
  17462. (setIntParam): Removed.
  17463. (writeOutgoingMessageLog): Removed all overloaded functions.
  17464. (sendChoke): Removed.
  17465. (sendUnchoke): Removed.
  17466. (sendInterested): Removed.
  17467. (sendNotInterested): Removed.
  17468. (sendHave): Removed.
  17469. (sendBitfield): Removed.
  17470. (sendRequest): Removed.
  17471. (sendPiece): Removed.
  17472. (sendPieceHeader): Removed.
  17473. (sendPieceData): Removed.
  17474. (sendMessage): New function.
  17475. (sendCancel): Removed.
  17476. * src/PeerInteractionCommand.cc
  17477. (PeerInteractionCommand): Call setUploadLimit.
  17478. (executeInternal): Call setUploadLimit.
  17479. Added the handling of "inProgress" state of handshake message.
  17480. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17481. sendNow().
  17482. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17483. sendNow().
  17484. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17485. * src/TorrentMan.h
  17486. (PEER_ID_LENGTH): New definition.
  17487. (hasAllPieces): New function.
  17488. * src/TorrentMan.cc
  17489. (getMissingPiece): Added the handling of fast extension.
  17490. (cancelPiece): Call updatePiece().
  17491. (hasAllPieces): New function.
  17492. * src/PeerInteraction.h
  17493. (fastSet): New variable.
  17494. (getNewPieceAndSendInterest): Changed the return type to void.
  17495. (send): Renamed as sendMessages.
  17496. (deleteAllRequestSlot): Removed.
  17497. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17498. (cancelAllRequest): Removed all overloaded functions.
  17499. (deleteAllRequestSlot): Removed.
  17500. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17501. (rejectPieceMessageInQueue): New function.
  17502. (rejectAllPieceMessageInQueue): New function.
  17503. (onChoked): New function.
  17504. (isSendingMessageInProgress): New function.
  17505. (getCorrespondingRequestSlot): Changed its arguments.
  17506. (isInFastSet): New function.
  17507. (addFastSetIndex): New function.
  17508. (addRequests): New function.
  17509. (sendNow): Removed.
  17510. (trySendNow): Removed.
  17511. (sendBitfield): New function.
  17512. (sendAllowdFast): New function.
  17513. (createHaveAllMessage): New function.
  17514. (createHaveNoneMessage): New function.
  17515. (createRejectMessage): New function.
  17516. (createAllowedFastMessage): New function.
  17517. * src/PeerInteraction.cc
  17518. (send): Renamed as sendMessages.
  17519. (sendMessages): New function.
  17520. (MsgPushBack): New class.
  17521. (isSendingMessageInProgress): New function.
  17522. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17523. (rejectAllPieceMessageInQueue): New function.
  17524. Added the handling of fast extension.
  17525. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17526. (rejectPieceMessageInQueue): New function.
  17527. Added the handling of fast extension.
  17528. (deleteRequestSlot): Replaced for loop with std::find.
  17529. (onChoked): New function.
  17530. (deleteAllRequestSlot): Removed.
  17531. (abortPiece): Rewirtten.
  17532. (deleteTimeoutRequestSlot): Updated log messages.
  17533. (getCorrespondingRequestSlot): Changed its arguments.
  17534. (cancelAllRequest): Removed all overloaded functions.
  17535. (receiveHandshake): Added the check to see whether an incoming peer
  17536. supports fast extension.
  17537. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17538. PeerMessageUtil.
  17539. (createPeerMessage): Use create() of each message class instead of
  17540. PeerMessageUtil.
  17541. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17542. AllowedFastMessage were added.
  17543. (getNewPieceAndSendInterest): Changed its return value type to void.
  17544. Added the handling of fast extension.
  17545. (addRequests): New function.
  17546. (sendNow): Removed.
  17547. (sendHandshake): Rewritten.
  17548. (trySendNow): Removed.
  17549. (sendBitfield): New function.
  17550. (sendAllowdFast): New function.
  17551. (isInFastSet): New function.
  17552. (addFastSetIndex): New function.
  17553. (createRequestMessage): Use RequestMessage::create instead of
  17554. PeerMessageUtil.
  17555. (createCancelMessage): Use CancelMessage::create instead of
  17556. PeerMessageUtil.
  17557. (createPieceMessage): Use PieceMessage::create instead of
  17558. PeerMessageUtil.
  17559. (createHaveMessage): Use HaveMessage::create instead of
  17560. PeerMessageUtil.
  17561. (createChokeMessage): Use ChokeMessage::create instead of
  17562. PeerMessageUtil.
  17563. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17564. PeerMessageUtil.
  17565. (createInterestedMessage): Use InterestedMessage::create instead of
  17566. PeerMessageUtil.
  17567. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17568. of PeerMessageUtil.
  17569. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17570. PeerMessageUtil.
  17571. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17572. PeerMessageUtil.
  17573. (createHaveAllMessage): New function.
  17574. (createHaveNoneMessage): New function.
  17575. (createRejectMessage): New function.
  17576. (createAllowedFastMessage: New function.
  17577. * src/Util.h
  17578. (sha1Sum): New function.
  17579. (computeFastSet): New function.
  17580. * src/Util.cc
  17581. (sha1Sum): New function.
  17582. (computeFastSet): New function.
  17583. * src/Peer.h
  17584. (fastExtensionEnabled): New variable.
  17585. (fastSet): New variable.
  17586. (setAllBitfield): New function.
  17587. (setFastExtensionEnabled): New function.
  17588. (isFastExtensionEnabled): New function.
  17589. (addFastSetIndex): New function.
  17590. (getFastSet): New function.
  17591. (isInFastSet): New function.
  17592. (countFastSet): New function.
  17593. * src/Peer.cc
  17594. (isInFastSet): New function.
  17595. (addFastSetIndex): New function.
  17596. (setAllBitfield): New function.
  17597. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17598. sockets.
  17599. * src/PeerAbstractCommand.cc
  17600. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17601. and uploadLimit.
  17602. (execute): Changed the procedure of checking sockets. The upload speed
  17603. checking were added.
  17604. (setUploadLimit): New function.
  17605. (setUploadLimitCheck): New function.
  17606. * src/PeerAbstractCommand.h
  17607. (setUploadLimit): New function.
  17608. (setUploadLimitCheck): New function.
  17609. (uploadLimit): New variable.
  17610. (uploadLimitCheck): New variable.
  17611. To contact a tracker regularly:
  17612. * src/TrackerWatcherCommand.h (interval): New variable.
  17613. (checkPoint): New variable.
  17614. (TrackerWatcherCommand): Added interval argument.
  17615. * src/TrackerWatcherCommand.cc
  17616. (TrackerWatcherCommand): Initialized checkPoint.
  17617. (execute): Now a tracker is contacted in every specified period.
  17618. If peer list is not needed, send request with numwant=0.
  17619. * src/TrackerUpdateCommand.cc
  17620. (execute): Updated log messages.
  17621. * src/DownloadEngine.cc
  17622. (~DownloadEngine): Removed two asserts.
  17623. (waitData): Uncommented wfds. May be a bug fix.
  17624. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17625. * src/PeerInteractionCommand.h
  17626. (checkInactiveConnection): Removed.
  17627. * src/PeerInteractionCommand.cc
  17628. (executeInternal): Removed following function calls:
  17629. detectMessageFlooding(), checkLongTimePeerChoking and
  17630. checkInactiveConnection().
  17631. (checkInactiveConnection): Removed.
  17632. (detectMessageFlooding): Removed function call to
  17633. checkInactiveConnection().
  17634. * src/PeerMessageUtil.h
  17635. (createChokeMessage): New function. Overload.
  17636. (createUnchokeMessage): New function. Overload.
  17637. (createInterestedMessage): New function. Overload.
  17638. (createNotInterestedMessage): New function. Overload.
  17639. (createHaveMessage): New function. Overload.
  17640. (createBitfieldMessage): New function. Overload.
  17641. (createRequestMessage): New function. Overload.
  17642. (createCancelMessage): New function. Overload.
  17643. (createPieceMessage): New function. Overload.
  17644. (createKeepAliveMessage): New function. Overload.
  17645. * src/PeerMessageUtil.cc
  17646. (createChokeMessage): New function. Overload.
  17647. (createUnchokeMessage): New function. Overload.
  17648. (createInterestedMessage): New function. Overload.
  17649. (createNotInterestedMessage): New function. Overload.
  17650. (createHaveMessage): New function. Overload.
  17651. (createBitfieldMessage): New function. Overload.
  17652. (createRequestMessage): New function. Overload.
  17653. (createCancelMessage): New function. Overload.
  17654. (createPieceMessage): New function. Overload.
  17655. (createKeepAliveMessage): New function. Overload.
  17656. * src/SendMessageQueue.cc
  17657. (createRequestMessage): Use PeerMessageUtil.
  17658. (createCancelMessage): Use PeerMessageUtil.
  17659. (createPieceMessage): Use PeerMessageUtil.
  17660. (createHaveMessage): Use PeerMessageUtil.
  17661. (createChokeMessage): Use PeerMessageUtil.
  17662. (createUnchokeMessage): Use PeerMessageUtil.
  17663. (createInterestedMessage): Use PeerMessageUtil.
  17664. (createNotInterestedMessage): Use PeerMessageUtil.
  17665. (createBitfieldMessage): Use PeerMessageUtil.
  17666. (createKeepAliveMessage): Use PeerMessageUtil.
  17667. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17668. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17669. * src/PeerInteraction.h: New class.
  17670. * src/PeerInteraction.cc: New class.
  17671. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17672. Each peer message has its own class.
  17673. * src/PendingMessages.h: Removed.
  17674. * src/PendingMessages.cc: Removed. The sending process was moved to
  17675. each message class.
  17676. * src/RequestSlotMan.h: Removed.
  17677. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17678. SendMessageQueue.
  17679. * src/RequestMessage.h: New class.
  17680. * src/RequestMessage.cc: New class.
  17681. * src/CancelMessage.h: New class.
  17682. * src/CancelMessage.cc: New class.
  17683. * src/BitfieldMessage.h: New class.
  17684. * src/BitfieldMessage.cc: New class.
  17685. * src/ChokeMessage.h: New class.
  17686. * src/ChokeMessage.cc: New class.
  17687. * src/KeepAliveMessage.h: New class.
  17688. * src/KeepAliveMessage.cc: New class.
  17689. * src/PortMessage.h: New class.
  17690. * src/UnchokeMessage.h: New class.
  17691. * src/UnchokeMessage.cc: New class.
  17692. * src/PieceMessage.h: New class.
  17693. * src/PieceMessage.cc: New class.
  17694. * src/HaveMessage.h: New class.
  17695. * src/HaveMessage.cc: New class.
  17696. * src/BitfieldMessage.h: New class.
  17697. * src/BitfieldMessage.cc: New class.
  17698. * src/NotInterestedMessage.h: New class.
  17699. * src/NotInterestedMessage.cc: New class.
  17700. * src/InterestedMessage.h: New class.
  17701. * src/InterestedMessage.cc: New class.
  17702. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17703. (getSendMessageQueue): New function.
  17704. (setSendMessageQueue): New function.
  17705. * src/HandshakeMessage.cc: New class.
  17706. * src/PeerConnection.h (receiveMessage): Changed return value and
  17707. arguments.
  17708. (receiveHandshake): Changed return value and arguments.
  17709. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17710. here.
  17711. (receiveHandshake): Do not create handshake class here.
  17712. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17713. (piece): Removed.
  17714. (syncPiece): Removed.
  17715. (sendInterest): Removed.
  17716. (sendMessages): Removed.
  17717. (createRequestPendingMessage): Removed.
  17718. (checkPieceHash): Removed.
  17719. (erasePieceOnDisk): Removed.
  17720. (getNewPieceAndSendInterest): Removed.
  17721. (onGotNewPice): Removed.
  17722. (onGotWrongPiece): Removed.
  17723. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17724. Removed peerConnection, piece.
  17725. (~PeerInteractionCommand): Removed peerConnection.
  17726. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17727. (syncPiece): Moved to SendMessageQueue.
  17728. (decideChoking): Removed PendingMessage.
  17729. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17730. The action after receiving peer message was moved to each message
  17731. class.
  17732. (onGotNewPice): Moved to SendMessageQueue.
  17733. (onGotWrongPiece): Moved to SendMessageQueue.
  17734. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17735. (sendInterest): Moved to SendMessageQueue.
  17736. (createRequestPendingMessage): Removed.
  17737. (sendMessages): Moved to SendMessageQueue.
  17738. (onAbort): Use SendMessageQueue::abortPiece()
  17739. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17740. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17741. (checkPieceHash): Moved to SendMessageQueue.
  17742. (erasePieceOnDisk): Moved to SendMessageQueue.
  17743. * src/PeerMessageUtil.h
  17744. (createBitfieldMessage): Removed.
  17745. (createHaveMessage): Changed return value and arguments.
  17746. (createBitfieldMessage): Changed return value and arguments.
  17747. (createRequestCancelMessage): Removed.
  17748. (createPieceMessage): Changed return value and arguments.
  17749. (getShortIntParam): New function.
  17750. (checkIndex): Changed arguments.
  17751. (checkBegin): Changed arguments.
  17752. (checkLength): Changed arguments.
  17753. (checkPieceOffset): Removed.
  17754. (checkRange): New function.
  17755. (checkBitfield): Changed arguments.
  17756. (createPeerMessage): Removed.
  17757. (checkIntegrity): Removed.
  17758. (createHandshakeMessage): Changed arguments.
  17759. (createChokeMessage): New function.
  17760. (createUnchokeMessage): New function.
  17761. (createInterestedMessage): New function.
  17762. (createNotInterestedMessage): New function.
  17763. (createRequestMessage): New function.
  17764. (createCancelMessage): New function.
  17765. (createPortMessage): New function.
  17766. * src/PeerMessageUtil.cc
  17767. (createBitfieldMessage): Removed.
  17768. (createHaveMessage): Changed return value and arguments.
  17769. (createBitfieldMessage): Changed return value and arguments.
  17770. (createRequestCancelMessage): Removed.
  17771. (createPieceMessage): Changed return value and arguments.
  17772. (getShortIntParam): New function.
  17773. (checkIndex): Changed arguments.
  17774. (checkBegin): Changed arguments.
  17775. (checkLength): Changed arguments.
  17776. (checkPieceOffset): Removed.
  17777. (checkRange): New function.
  17778. (checkBitfield): Changed arguments.
  17779. (createPeerMessage): Removed.
  17780. (checkIntegrity): Removed.
  17781. (createHandshakeMessage): Changed arguments.
  17782. (createChokeMessage): New function.
  17783. (createUnchokeMessage): New function.
  17784. (createInterestedMessage): New function.
  17785. (createNotInterestedMessage): New function.
  17786. (createRequestMessage): New function.
  17787. (createCancelMessage): New function.
  17788. (createPortMessage): New function.
  17789. * src/PeerMessage.h
  17790. (id): Removed.
  17791. (index): Removed.
  17792. (begin): Removed.
  17793. (length): Removed.
  17794. (bitfield): Removed.
  17795. (bitfieldLength): Removed.
  17796. (block): Removed.
  17797. (blockLength): Removed.
  17798. (inProgress): New variable.
  17799. (cuid): New variable.
  17800. (peer): New variable.
  17801. (sendMessageQueue): New variable.
  17802. (logger): New variable.
  17803. (setBitfield): Removed.
  17804. (getBitfield): Removed.
  17805. (setBlock): Removed.
  17806. (getBlock): Removed.
  17807. (getBitfieldLength): Removed.
  17808. (getBlockLength): Removed.
  17809. (isInProgress): New function.
  17810. (toString): Made pure virtual.
  17811. (check): New function.
  17812. (send): New function.
  17813. (receivedAction): New function.
  17814. (getId): Made pure virtual.
  17815. (setId): Removed.
  17816. (getIndex): Removed.
  17817. (setIndex): Removed.
  17818. (getBegin): Removed.
  17819. (setBegin): Removed.
  17820. (getLength): Removed.
  17821. (setLength): Removed.
  17822. (getCuid): New function.
  17823. (setCuid): New function.
  17824. (getPeer): New function.
  17825. (setPeer): New function.
  17826. (getSendMessageQueue): New function.
  17827. (setSendMessageQueue): New function.
  17828. (ID): Removed.
  17829. * src/PeerMessage.cc
  17830. (setBitfield): Removed.
  17831. (setBlock): Removed.
  17832. (toString): Removed.
  17833. * src/TorrentMan.h
  17834. (getPieceLength): New function.
  17835. (getPieceLength): New function.
  17836. * src/SendMessageQueue.h
  17837. (REQUEST_TIME_OUT): New definition.
  17838. (RequestSlots): New definition.
  17839. (MessageQueue): New definition.
  17840. (requestSlotMan): Removed.
  17841. (pendingMessages): Removed.
  17842. (requestSlots): New variable.
  17843. (messageQueue): New variable.
  17844. (torrentMan): New variable.
  17845. (peerConnection): New variable.
  17846. (peer): New variable.
  17847. (piece): New variable.
  17848. (getNewPieceAndSendInterest): New function.
  17849. (createPeerMessage): New function.
  17850. (createHandshakeMessage): New function.
  17851. (send): Made private.
  17852. (setPeerMessageCommonProperty): New function.
  17853. (deleteAllRequestSlot): New function.
  17854. (deleteRequestMessageInQueue): New function.
  17855. (cancelAllRequest): Made private.
  17856. (cancelAllRequest): Made private.
  17857. (countRequestSlot): Made private.
  17858. (addPendingMessage): Removed.
  17859. (deletePendingPieceMessage): Removed.
  17860. (deletePendingRequestMessage): Removed.
  17861. (addMessage): New function.
  17862. (deletePieceMessageInQueue): New function.
  17863. (deleteTimeoutRequestSlot): Changed argument.
  17864. (deleteCompletedRequestSlot): Changed argument.
  17865. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17866. (getCorrespondingRequestSlot): New function.
  17867. (countPendingMessage): Removed.
  17868. (countMessageInQueue): New function.
  17869. (getTorrentMan): New function.
  17870. (getPeerConnection): New function.
  17871. (hasDownloadPiece): New function.
  17872. (getDownloadPiece): New function.
  17873. (setDownloadPiece): New function.
  17874. (syncPiece): New function.
  17875. (sendMessages): New function.
  17876. (sendNow): New function.
  17877. (trySendNow): New function.
  17878. (abortPiece): New function.
  17879. (sendHandshake): New function.
  17880. (receiveMessage): New function.
  17881. (receiveHandshake): New function.
  17882. (createRequestMessage): New function.
  17883. (createCancelMessage): New function.
  17884. (createPieceMessage): New function.
  17885. (createHaveMessage): New function.
  17886. (createChokeMessage): New function.
  17887. (createUnchokeMessage): New function.
  17888. (createInterestedMessage): New function.
  17889. (createNotInterestedMessage): New function.
  17890. (createBitfieldMessage): New function.
  17891. (createKeepAliveMessage): New function.
  17892. * src/SendMessageQueue.cc
  17893. (SendMessageQueue): Removed requestSlotMan.
  17894. Instantiated peerConnection here.
  17895. (~SendMessageQueue): Removed requestSlotMan.
  17896. Added deletion of peerConnection and the contents of messageQueue.
  17897. (send): Updated according to the change of messageQueue.
  17898. (addPendingMessage): Renamed to addMessage.
  17899. (addMessage): New function.
  17900. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17901. (deletePieceMessageInQueue): New function.
  17902. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17903. (deleteRequestMessageInQueue): New function.
  17904. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17905. here.
  17906. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17907. (...) was moved here.
  17908. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17909. moved here.
  17910. (deleteCompletedRequestSlot):
  17911. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17912. (getCorrespondingRequestSlot):
  17913. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17914. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17915. (countPendingMessage): Renamed to countMessageInQueue.
  17916. (countMessageInQueue): New function.
  17917. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17918. (receiveHandshake): New function.
  17919. (createHandshakeMessage): New function.
  17920. (receiveMessage): New function.
  17921. (createPeerMessage): New function.
  17922. (syncPiece): New function.
  17923. (getNewPieceAndSendInterest): New function.
  17924. (sendMessages): New function.
  17925. (sendNow): New function.
  17926. (trySendNow): New function.
  17927. (sendHandshake): New function.
  17928. (abortPiece): New function.
  17929. (getDownloadPiece): New function.
  17930. (getPeerMessageCommonProperty): New function.
  17931. (createRequestMessage): New function.
  17932. (createCancelMessage): New function.
  17933. (createPieceMessage): New function.
  17934. (createHaveMessage): New function.
  17935. (createChokeMessage): New function.
  17936. (createUnchokeMessage): New function.
  17937. (createInterestedMessage): New function.
  17938. (createNotInterestedMessage): New function.
  17939. (createBitfieldMessage): New function.
  17940. (createKeepAliveMessage): New function.
  17941. To add simple Content-Disposition support:
  17942. * src/HttpResponseCommand.h (determinFilename): New function.
  17943. * src/HttpResponseCommand.cc (executeInternal):
  17944. Use determinFilename(headers) instead of req->getFile() when comparing
  17945. filename.
  17946. (determinFilename): New function.
  17947. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17948. req->getFile().
  17949. (handleOtherEncoding): Use determinFilename(headers) instead of
  17950. req->getFile().
  17951. * src/Util.h (getContentDispositionFilename): New function.
  17952. * src/Util.cc (getContentDispositionFilename): New function.
  17953. * src/LogFactory.h (release): New function.
  17954. * src/LogFactory.cc (release): New function.
  17955. To fix a bug that causes out-of-bound exception when HTTP status
  17956. line is wrong:
  17957. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17958. size.
  17959. * src/common.h (Deleter): New class.
  17960. * src/SegmentMan.cc
  17961. (~SegmentMan): Added deletion of splitter and diskWriter.
  17962. * src/DownloadEngine.h
  17963. (Commands): Use deque.
  17964. (clearQueue): New function.
  17965. * src/DownloadEngine.cc
  17966. (~DownloadEngine): Added deletion of segmentMan.
  17967. (cleanQueue): New function.
  17968. * src/TorrentDownloadEngine.h
  17969. (TorrentDownloadEngine): The implementation was moved to
  17970. TorrentDownloadEngine.cc.
  17971. (~TorrentDownloadEngine): The implementation was moved to
  17972. TorrentDownloadEngine.cc.
  17973. * src/TorrentDownloadEngine.cc
  17974. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17975. * src/main.cc
  17976. (clearRequest): Removed.
  17977. (handler): Added deletion of e.
  17978. (torrentHandler): Added deletion of te.
  17979. (main): Do not share splitter.
  17980. Use Deleter instead of clearRequest.
  17981. Deletion of classes were updated.
  17982. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17983. * src/main.cc (main): Fixed typo.
  17984. * src/message.h: Fixed typo.
  17985. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17986. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17987. To add --select-file command-line option:
  17988. * src/Util.cc
  17989. (unfoldRange): New function.
  17990. (getNum): New function.
  17991. (unfoldSubRange): New function
  17992. * src/main.cc
  17993. (showUsage): Added help message.
  17994. (main): Added --select-file command-line option. Updated the layout of
  17995. file listing.
  17996. * src/common.h
  17997. (Integers): New definition.
  17998. * src/SocketCore.cc
  17999. (writeData): Removed timeout argument.
  18000. (readData): Removed timeout argument.
  18001. (peekData): Removed timeout argument.
  18002. * src/Socket.cc
  18003. (writeData): Removed timeout argument.
  18004. (readData): Removed timeout argument.
  18005. (peekData): Removed timeout argument.
  18006. * Release 0.4.1
  18007. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18008. To deploy upload rate based choking algorithm:
  18009. * src/PeerInteractionCommand.cc
  18010. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18011. peer currently used.
  18012. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18013. download completes. Simplified.
  18014. (receiveMessage): Updated.
  18015. * src/TorrentMan.h
  18016. (activePeers): New variable.
  18017. (addActivePeer): New function.
  18018. (getActivePeers): New function.
  18019. (deleteActivePeer): New function.
  18020. * src/TorrentMan.cc
  18021. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18022. * src/PeerAbstractCommand.cc
  18023. (onAbort): Use peer->resetStatus().
  18024. * src/main.cc
  18025. (PeerChokeCommand.h): Included.
  18026. (main): Added the instance of ChokingCommand to the command queue.
  18027. * src/Peer.h
  18028. (amChoking): Renamed from amChocking
  18029. (chokingRequired): New variable.
  18030. (optUnchoking): New variable.
  18031. (deltaUpload): New variable.
  18032. (deltaDownload): New variable.
  18033. (addDeltaUpload): New function.
  18034. (resetDeltaUpload): New function.
  18035. (addDeltaDownload): New function.
  18036. (resetDeltaDownload): New function.
  18037. (addPeerUpload): Added a call to addDeltaUpload.
  18038. (addPeerDownload): Added a call to addDeltaDownload.
  18039. * src/Peer.cc
  18040. (shouldBeChoking): Renamed from shouldChoke.
  18041. (resetStatus): New function.
  18042. * src/PeerChokeCommand.h: New class.
  18043. * src/PeerChokeCommand.cc: New class.
  18044. To add lazy upload speed limiter:
  18045. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18046. statistics calculation to TorrentDownloadEngine.
  18047. * src/TorrentConsoleDownloadEngine.cc
  18048. (sendStatistics): Renamed from printStatistics.
  18049. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18050. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18051. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18052. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18053. calculation.
  18054. (sendStatistics): New function as pure virtual function.
  18055. (getUploadSpeed): New function.
  18056. * src/TorrentDownloadEngine.cc
  18057. (initStatistics): New function.
  18058. (calculateSpeed): New function.
  18059. (calculateStatistics): New function.
  18060. * src/SendMessageQueue.h
  18061. (uploadLength): New variable.
  18062. (send): Added an argument.
  18063. (setUploadLimit): New function.
  18064. (getUploadLimit): New function.
  18065. * src/SendMessageQueue.cc
  18066. (send): Added upload speed limiter.
  18067. * src/prefs.h
  18068. (PREF_UPLOAD_LIMIT): New definition.
  18069. * src/PeerInteractionCommand.cc
  18070. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18071. * src/main.cc
  18072. (main): Added --upload-limit option
  18073. For bug fixes:
  18074. * src/main.cc
  18075. (showUsage): Corrected --listen-port help
  18076. Other changes:
  18077. * src/TorrentMan.cc
  18078. (getPeer): Return nullPeer if connection is grather than
  18079. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18080. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18081. To add some useful information to the exception message:
  18082. * src/SocketCore.cc : Updated messages.
  18083. * src/SegmentMan.cc :
  18084. * src/TorrentMan.cc : Updated messages.
  18085. * src/MultiDiskWriter.cc : Updated messages.
  18086. * src/Util.cc : Updated messages.
  18087. * src/AbstractDiskWriter.cc : Updated messages.
  18088. * src/PreAllocationDiskWriter.cc : Updated messages.
  18089. * src/message.cc : Added new messages. Updated some messages.
  18090. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18091. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18092. Updated threshold from 30 to 15.
  18093. * src/AbstractDiskWriter.h (filename): New variable.
  18094. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18095. (createFile): Assigned filename.
  18096. * src/main.cc: Updated the help message for http-auth-scheme.
  18097. * Release 0.4.0
  18098. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18099. To add TrackerUpdateCommand with which replaces
  18100. CompactTrackerResponseProcessor:
  18101. * src/TrackerWatcherCommand.h (req): Removed.
  18102. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18103. if the number of peer connections are less than 30.
  18104. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18105. * src/SegmentMan.h (diskWriter): New function.
  18106. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18107. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18108. (main): Use TrackerUpdateCommand.
  18109. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18110. (req): New variable.
  18111. (setTrackerResponseProcessor): Removed.
  18112. (getTrackerResponseProcessor): Removed.
  18113. (processTrackerResponse): Removed.
  18114. * src/DownloadEngine.h (diskWriter): Removed.
  18115. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18116. to torrentMan->processTrackerResponse().
  18117. To add Util::expandBuffer:
  18118. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18119. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18120. * src/Util.h (expandBuffer): New function.
  18121. To fix the bug that causes segmentation fault when "-l ." is specified
  18122. in command-line option:
  18123. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18124. (openFile): New function.
  18125. (closeFile): New function.
  18126. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18127. (~SimpleLogger): Call closeFile();
  18128. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18129. * src/main.cc (main): Added a check to see logger is configured
  18130. properly.
  18131. To enable HTTP authentication without specifying "--http-auth-scheme"
  18132. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18133. * src/HttpConnection.cc (createRequest): Send Authorization header
  18134. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18135. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18136. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18137. * src/Peer.cc (shouldChoke): Updated algorithm.
  18138. * src/message.h (EX_AUTH_FAILED): New definition.
  18139. (EX_FILE_OPEN): New definition.
  18140. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18141. if status == 401.
  18142. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18143. if req->isTorrent == true.
  18144. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18145. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18146. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18147. (createFile): Updated message.
  18148. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18149. To add a readout of estimated remaining time to normal HTTP/FTP
  18150. downloads:
  18151. * src/ConsoleDownloadEngine.h (startup): New variable.
  18152. (startupLength): New variable.
  18153. (isStartupLengthSet): New variable.
  18154. (avgSpeed): New variable.
  18155. (eta): New variable.
  18156. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18157. estimated remaining time.
  18158. (initStatistics): Initialized newly added variables.
  18159. (calculateStatistics): Calculate average speed and estimated remaining
  18160. time.
  18161. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18162. * src/TrackerDownloadCommand.h: Removed.
  18163. * src/TrackerDownloadCommand.cc: Removed.
  18164. * src/TrackerInitCommand.h: Removed.
  18165. * src/TrackerInitCommand.cc: Removed.
  18166. * src/TrackerUpdateCommand.h: Removed.
  18167. * src/TrackerUpdateCommand.cc: Removed.
  18168. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18169. url written in TrackerInitCommand was moved here. Do not create
  18170. tracker request command if torrentMan->trackers != 0.
  18171. * src/CompactTrackerResponseProcessor.h: New class.
  18172. * src/CompactTrackerResponseProcessor.cc: New class.
  18173. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18174. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18175. Decoupled TorrentDownloadEngine from this.
  18176. * src/SegmentMan.h (init): New function.
  18177. * src/SegmentMan.cc (init): New function.
  18178. * src/TorrentMan.h (responseProcessor): New variable.
  18179. (trackers): New variable.
  18180. (setTrackerResponseProcessor): New function.
  18181. (getTrackerResponseProcessor): New function.
  18182. (processTrackerResponse): New function.
  18183. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18184. (processTrackerResponse): New function.
  18185. * src/main.cc (main): Use ByteArrayDiskWriter and
  18186. CompactTrackerResponseProcessor.
  18187. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18188. processTrackerResponse().
  18189. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18190. readout.
  18191. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18192. which indicates download has completed.
  18193. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18194. (closeFile): fd >= 0, not fd > 0
  18195. * src/main.cc (main): Added short cut for show-files.
  18196. Added short cut for torrent-file.
  18197. Added new command-line option listen-port.
  18198. Updated i18n messages.
  18199. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18200. To add LogFactory which creates singleton logger:
  18201. * src/LogFactory.h: New class.
  18202. * src/LogFactory.cc: New class.
  18203. * src/Command.h (logger): New variable.
  18204. (Constructor): Use LogFactory.
  18205. * src/AbstractCommand.cc: Use Command::logger
  18206. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18207. Use LogFactory.
  18208. * src/SegmentSplitter.h : Made logger protected.
  18209. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18210. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18211. * src/DownloadEngine.h : Made logger protected.
  18212. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18213. * src/PeerInteractionCommand.cc : Use Command::logger.
  18214. * src/HttpResponseCommand.cc : Use Command::logger.
  18215. * src/SegmentMan.h : Made logger private.
  18216. * src/TorrentMan.h : Made logger private.
  18217. * src/TorrentMan.cc : Use LogFactory.
  18218. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18219. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18220. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18221. Use LogFactory.
  18222. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18223. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18224. Use LogFactory.
  18225. * src/DownloadCommand.cc : Use Command::logger.
  18226. * src/PeerAbstractCommand.cc : Use Command::logger.
  18227. * src/PeerListenCommand.cc : Use Command::logger.
  18228. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18229. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18230. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18231. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18232. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18233. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18234. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18235. Use LogFactory.
  18236. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18237. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18238. Use LogFactory.
  18239. * src/main.cc (main): Use LogFactory.
  18240. * src/DiskAdaptor.h (logger): New variable.
  18241. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18242. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18243. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18244. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18245. parameter to a tracker request.
  18246. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18247. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18248. * src/main.cc (setSignalHander): New function.
  18249. (main): Added a handler for SIGTERM.
  18250. (handler): Updated message.
  18251. (torrentHandler): Updated message.
  18252. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18253. * src/TorrentConsoleDownloadEngine.cc
  18254. (onPartialDownloadingCompletes): Renamed as
  18255. onSelectiveDownloadingCompletes.
  18256. (onSelectiveDownloadingCompletes): Updated message.
  18257. To add DiskAdaptor which abstract DiskWriter family:
  18258. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18259. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18260. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18261. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18262. MultiDiskAdaptor.h.
  18263. (readFileEntry): Changed its arguments.
  18264. (setup): setupDiskWriter is merged into this function.
  18265. (setupDiskWriter): Removed.
  18266. (setFileFilter): New function.
  18267. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18268. made in readFileEntry.
  18269. (getFilePath): Removed.
  18270. (getTempFilePath): Removed.
  18271. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18272. (fixFilename): Removed.
  18273. (copySingleFile): Removed.
  18274. (splitMultiFile): Removed.
  18275. (deleteTempFile): Removed.
  18276. (setFileEntriesToDownload): Removed.
  18277. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18278. (isSelectiveDownloadingMode): New function.
  18279. (setAllMultiFileRequestedState): Removed.
  18280. (finishPartialDownloadingMode): Renamed as
  18281. finishSelectiveDownloadingMode.
  18282. (finishSelectiveDownloadingMode): New function.
  18283. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18284. (getSelectedTotalLength): New function.
  18285. (onDownloadComplete): Use diskAdaptor.
  18286. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18287. (Range): Removed.
  18288. (setMultiFileEntries): Renamed as setFileEntries.
  18289. (setFileEntries): New function.
  18290. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18291. (pieceLength): New variable.
  18292. * src/main.cc (printDownloadCompeleteMessage): New function.
  18293. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18294. (main): Renamed torrent-show-files to show-files.
  18295. Rewritten file contents listing.
  18296. * src/TorrentMan.h (FileEntry): Removed.
  18297. (multiFileTopDir): Removed.
  18298. (multiFileEntries): Removed.
  18299. (diskWriter): Removed.
  18300. (diskAdaptor): New variable.
  18301. * src/DefaultDiskWriter.h (totalLength): New variable.
  18302. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18303. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18304. diskWriter.
  18305. * src/TorrentConsoleDownloadEngine.h
  18306. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18307. (partialTotalLength): Renamed as selectedTotalLength.
  18308. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18309. openExistingFile, otherwise call initAndOpenFile.
  18310. (closeFile): fd > 0, not fd != 0.
  18311. * src/DirectDiskAdaptor.h: New class.
  18312. * src/DirectDiskAdaptor.cc: New class.
  18313. * src/MultiDiskAdaptor.h: New class.
  18314. * src/MultiDiskAdaptor.cc: New class.
  18315. * src/CopyDiskAdaptor.h: New class.
  18316. * src/CopyDiskAdaptor.cc: New class.
  18317. * src/DiskAdaptor.h: New class.
  18318. * src/DiskAdaptor.cc: New class.
  18319. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18320. (PREF_SHOW_FILES): New definition.
  18321. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18322. To add the ability to download multi torrent into respective files
  18323. directly:
  18324. * src/DiskWriter.h (openFile): New function.
  18325. (seek): Removed.
  18326. * src/MultiDiskWriter.h: New class.
  18327. * src/MultiDiskWriter.cc: New class.
  18328. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18329. protected.
  18330. (openFile): New function.
  18331. * src/AbstractDiskWriter.cc (openFile): New function.
  18332. * src/prefs.h (V_FALSE): New definition.
  18333. (PREF_DIRECT_FILE_MAPPING): New definition.
  18334. * src/TorrentMan.h (setupDiskWriter): New function.
  18335. (setAllMultiFileRequestedState): New function.
  18336. (onDownloadComplete): New function.
  18337. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18338. (setupDiskWriter): New function.
  18339. (getFilePath): Updated.
  18340. (getTempFilePath): Updated.
  18341. (getSegmentFilePath): Updated.
  18342. (fixFilename): Updated.
  18343. (deleteTempFile): Updated.
  18344. (setAllMultiFileRequestedState): New function.
  18345. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18346. (finishPartialDownloadingMode): Reset requested flags.
  18347. (onDownloadComplete): New function.
  18348. * src/main.cc: Added --direct-file-mapping option.
  18349. Use TorrentMan::setupDiskWriter().
  18350. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18351. onDownloadComplete().
  18352. To fix ETA bug:
  18353. * src/Util.h (difftvsec): New function.
  18354. * src/Util.cc (difftvsec): New function.
  18355. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18356. type of "elapsed" instead of long long int.
  18357. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18358. The updates of statistics takes place every 1 seconds.
  18359. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18360. (calculateSpeed): Changed its argument signature.
  18361. * src/PeerMessage.cc (toString): Fixed message.
  18362. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18363. To print ETA:
  18364. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18365. completion handling when dealing with
  18366. TorrentMan::isPartialDownloadingMode() == true.
  18367. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18368. New function.
  18369. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18370. (sessionDownloadLength): New variable.
  18371. (avgSpeed): New variable.
  18372. (eta): New variable.
  18373. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18374. new variables: eta, avgSpeed, startup.
  18375. (calculateSpeed): Calculate average speed and ETA.
  18376. (printStatistics): Added ETA.
  18377. * src/Util.h (secfmt): New function.
  18378. * src/Util.cc (secfmt): New function.
  18379. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18380. To detect "keep alive" flooding:
  18381. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18382. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18383. variable: keepAliveCount.
  18384. (detectMessageFlooding): Added "keep alive" flooding detection.
  18385. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18386. received.
  18387. To add the ability to download only specified files in multi-file
  18388. torrent:
  18389. * src/BitfieldMan.h (filterBitfield): New variable.
  18390. (filterEnabled): New variable.
  18391. (setFilterBit): New function.
  18392. (enableFilter): New function.
  18393. (disableFilter): New function.
  18394. (isFilterEnabled): New function.
  18395. (getFilteredTotalLength): New function.
  18396. (getCompletedLength): New function.
  18397. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18398. filterBitfield, filterEnabled.
  18399. (CopyConstructor): Added filterBitfield and filterEnabled.
  18400. (operator==): Added filterBitfield and filterEnabled.
  18401. (Destructor): Added filterBitfield.
  18402. (getMissingIndex): Use filterBitfield.
  18403. (getMissingUnusedIndex): Use filterBitfield.
  18404. (getFirstMissingUnusedIndex): Use filterBitfield.
  18405. (getFirstMissingUnusedIndex): Use filterBitfield.
  18406. (getAllMissingIndexes): Use filterBitfield.
  18407. (countMissingBlock): Use filterBitfield.
  18408. (countBlock): Use filterBitfield.
  18409. (setBitInternal): Added new argument on.
  18410. (setUseBit): Use setBitInternal.
  18411. (unsetUseBit): Use setBitInternal.
  18412. (setBit): Use setBitInternal.
  18413. (unsetBit): Use setBitInternal.
  18414. (isAllBitSet): Use filterBitfield.
  18415. (setFilterBit): New function.
  18416. (addFilter): New function.
  18417. (enableFilter): New function.
  18418. (disableFilter): New function.
  18419. (clearFilter): New function.
  18420. (isFilterEnabled): New function.
  18421. (getFilteredTotalLength): New function.
  18422. (getCompletedLength): New function.
  18423. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18424. Initalized newly added variables.
  18425. [FileEntry](offset): New variable.
  18426. [FileEntry](extracted): New variable.
  18427. [FileEntry](requested): New variable.
  18428. (readFileEntry): New function.
  18429. (option): New variable.
  18430. (splitMultiFile): Removed const qualifier.
  18431. (fixFilename): Removed const qualifier.
  18432. (readFileEntryFromMetaInfoFile): New function.
  18433. (finishPartialDownloadingMode): New function.
  18434. (isPartialDownloadingMode): New function.
  18435. (setFileEntriesToDownload): New function.
  18436. (getCompletedLength): New function.
  18437. (getPartialTotalLength): New function.
  18438. * src/TorrentMan.cc (readFileEntry): New function.
  18439. (setup): Use readFileEntry. If no-preallocation option is specified,
  18440. use DefaultDiskWriter.
  18441. (readFileEntryFromMetaInfoFile): New function.
  18442. (fixFilename): Removed const qualifier.
  18443. (splitMultiFile): Removed const qualifier.
  18444. (setFileEntriesToDownload): New function.
  18445. (isPartialDownloadingMode): New function.
  18446. (finishPartialDownloadingMode): New function.
  18447. (getCompletedLength): New function.
  18448. (getPartialTotalLength): New function.
  18449. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18450. New variable.
  18451. (partialTotalLength): New variable.
  18452. (downloadLength): New variable.
  18453. (totalLength): New variable.
  18454. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18455. Added log.
  18456. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18457. partialTotalLength, downloadLength, totalLength.
  18458. (calculate): Calculate downloadLength and totalLength.
  18459. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18460. * src/main.cc (addCommand): Changed argument signature.
  18461. (main): Added new variable: args. Added new option "torrent-show-files"
  18462. "no-preallocation". Usage is not updated yet.
  18463. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18464. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18465. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18466. Attempt to add the ability to listing file entries in a .torrent file.
  18467. This feature is not yet complete.
  18468. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18469. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18470. (getName): New function.
  18471. * src/TorrentMan.h (getMultiFileEntries): New function.
  18472. (getName): New function.
  18473. * src/main.cc (main): Use above 2 funtion.
  18474. * Release 0.3.2
  18475. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18476. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18477. (detectMessageFlooding): Updated threshold value.
  18478. (checkLongTimePeerChoking): Updated timeout value.
  18479. (getNewPieceAndSendInterest): Added debug log.
  18480. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18481. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18482. (getPeer): Updated.
  18483. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18484. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18485. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18486. is localhost.
  18487. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18488. * src/PendingMessage.cc (processMessage): Not to send piece message
  18489. if peer is not interested in the pieces localhost has.
  18490. * src/Peer.cc (shouldChoke): Updated.
  18491. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18492. * src/Util.cc (isPowerOf): New function.
  18493. * src/Util.h (isPowerOf): New function.
  18494. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18495. whether or not it is power of 2.
  18496. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18497. Added new class SendMessageQueue that includes PendingMessages and
  18498. RequestSlotMan.
  18499. * src/SendMessageQueue.h: New class.
  18500. * src/SendMessageQueue.cc: New class.
  18501. * src/PendingMessage.h: Added new member variable blockIndex and its
  18502. accessors.
  18503. (createRequestMessage): Updated.
  18504. * src/PendingMessage.cc (createRequestMessage): Updated.
  18505. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18506. SendMessageQueue.
  18507. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18508. (receiveMessage): Updated with SendMessageQueue.
  18509. (deletePendingPieceMessage): Removed.
  18510. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18511. (sendInterest): Updated with SendMessageQueue.
  18512. (createRequestPendingMessage): Updated with SendMessageQueue.
  18513. (sendMessages): Updated with SendMessageQueue.
  18514. (onAbort): Updated with SendMessageQueue.
  18515. (keepAlive): Updated with SendMessageQueue.
  18516. (beforeSocketCheck): Updated SendMessageQueue.
  18517. * src/PeerInteractionCommand (sendMessages): Shuffle
  18518. missingBLockIndexes before using it.
  18519. Added its own timeout for peer connection.
  18520. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18521. setter.
  18522. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18523. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18524. Added setTimeout() call.
  18525. (executeInternal): Added setTimeout() call.
  18526. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18527. Added timeout.
  18528. (isTimeoutDetected): Updated.
  18529. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18530. option.
  18531. Added *simple* message flooding checker.
  18532. * src/PeerInteractionCommand.cc (executeInternal):
  18533. Added detectMessageFlooding() call.
  18534. (detectMessageFlooding): New function.
  18535. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18536. (beforeSocketCheck): Added detectMessageFlooding() call.
  18537. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18538. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18539. Removed deletePendingPieceMessage(), getRequestSlot(),
  18540. deleteRequestSlot(), deleteAllRequestSlot().
  18541. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18542. Added checkLongTimePeerChoking() call.
  18543. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18544. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18545. if duplicate == false.
  18546. The parameter "uploaded" and "downloaded" in the tracker request are
  18547. the size since the client sent the "started" event to the tracker.
  18548. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18549. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18550. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18551. getSessionDownloadedSize(), getSessionUploadedSize().
  18552. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18553. getSessionUploadedSize() instead of getDownloadedSize(),
  18554. getUploadedSize().
  18555. * src/PendingMessage.cc (processMessage): Do not send request message
  18556. if the peer is choking the client.
  18557. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18558. less than interval.
  18559. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18560. * configure.in: Added gnutls support. Added several CPP macros.
  18561. * m4/openssl.m4: Added.
  18562. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18563. readData(), peekData(). Added gnutls support.
  18564. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18565. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18566. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18567. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18568. Instead, added a check for whether setup method has executed
  18569. successfully.
  18570. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18571. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18572. * src/Makefile.am: Updated.
  18573. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18574. using whether OpenSSL or gcrypt, depending on the result of configure
  18575. script.
  18576. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18577. messageDigest.h.
  18578. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18579. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18580. Fixed memory leak.
  18581. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18582. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18583. Removed instantiation of TrackerInitCommand. Instead,
  18584. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18585. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18586. ENABLE_SSL.
  18587. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18588. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18589. If a piece is already acquired by another command, delete the request
  18590. slots for the piece.
  18591. * src/TrackerUpdateCommand.cc (execute):
  18592. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18593. Added a check whether peer list is null.
  18594. Fixed the bug that causes sending completed event to the tracker
  18595. several times.
  18596. * src/TrackerInitCommand.cc (execute):
  18597. Fixed the bug that causes sending completed event to the tracker
  18598. several times.
  18599. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18600. by using messageDigest.h.
  18601. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18602. * PeerConnection.cc: Replaced log message "keep-alive" with
  18603. "keep alive".
  18604. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18605. localhost long time.
  18606. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18607. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18608. at most 100 failure entry from the list. If with duplicate = false,
  18609. MAX_PEER_LIST is not checked.
  18610. * PeerListenCommand.cc: Fixed the argument order of log message.
  18611. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18612. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18613. Added warn().
  18614. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18615. Implemented warn().
  18616. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18617. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18618. * Request.h: Added AFTER_COMPLETED event.
  18619. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18620. instead of downloaded size and progress(%) after download completes.
  18621. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18622. message to the peer if it is interested in what localhost has
  18623. downloaded.
  18624. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18625. destination instead of just renaming it.
  18626. * TorrentMan.cc: Added deleteTempFile().
  18627. * PeerAbstractCommand.cc: do not stop execution after download
  18628. completes. This makes localhost a seeder.
  18629. * Util.{h,cc}: Added fileCopy().
  18630. * PeerListenCommand.cc: do not stop execution after download completes.
  18631. This makes localhost a seeder.
  18632. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18633. Added TorrentMan::deleteTempFile() to torrentHandler.
  18634. Initialized the variable dir as ".".
  18635. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18636. Deleted renameSingleFile().
  18637. Added copySingleFile(), deleteTempFile().
  18638. * DownloadEngine.h: Added virtual function afterEachIteration().
  18639. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18640. in onEndOfRun() to afterEachIteration().
  18641. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18642. true.
  18643. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18644. In rangedFileCopy(), added try-catch block to properly close file
  18645. descriptors.
  18646. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18647. Added afterEachIteration(), isFilenameFixed().
  18648. * Peer.cc: Changed choking strategy.
  18649. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18650. * TrackerInitCommand.cc: Send completed event only once.
  18651. * DownloadEngine.cc: Added a call to afterEachIteration().
  18652. * TrackerUpdateCommand.cc: Do not stop execution after download
  18653. completes.
  18654. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18655. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18656. received from a tracker.
  18657. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18658. Decreased the number of failure peers to delete to 0(just comment out
  18659. the line).
  18660. * Release 0.3.1
  18661. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18662. * PeerInteractionCommand.cc: added a call to
  18663. TorrentMan::unadvertisePiece in Destructor.
  18664. * PeerInteractionCommand.cc: make have message sent immediately
  18665. if the size of pending message queue is zero.
  18666. * TorrentMan.cc: set the maximum size of peer list to 250.
  18667. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18668. to deque.
  18669. * Util.cc: fixed rangedFileCopy.
  18670. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18671. to Constructor. Also, moved digest cleanup to Destructor.
  18672. * MetaFileUtil.cc: fixed memory leak
  18673. * replaced std::vector with std::deque.
  18674. * AbstractCommand.cc: casted timeout value to long long int.
  18675. * ChunkedEncoding.cc: fixed memory leak.
  18676. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18677. * SleepCommand.cc: casted timeout value to long long int.
  18678. * Data.cc: fixed memory leak.
  18679. * Data.cc: fixed toLLInt().
  18680. * BitfieldMan.cc: fixed memory leak.
  18681. * TorrentMan.cc: initialized storeDir to ".".
  18682. * TorrentMan.cc: fixed memory leak.
  18683. * TorrentMan.cc: corrected file paths of splitted files.
  18684. * PeerAbstractCommand.cc: casted timeout to long long int.
  18685. * main.cc: added delete(req) and delete(te->diskWriter).
  18686. * RequestSlot.cc: casted timeout value to long long int.
  18687. * Request.cc: fixed memory leak.
  18688. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18689. have the piece.
  18690. * Peer.{h,cc}: added hasPiece(int index).
  18691. * main.cc: corrected addCommand.
  18692. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18693. * BitTorrent protocol support added.
  18694. * Release 0.3.0
  18695. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18696. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18697. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18698. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18699. decoding did not work properly.
  18700. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18701. * DownloadEngine.h: included sys/time.h
  18702. * DownloadEngine.cc: remove sys/time.h
  18703. * Makefile.am (SUBDIRS): Add intl.
  18704. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18705. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18706. * main.cc: correct help message for --http-auth-scheme.
  18707. * main.cc: changed e-mail address for bug reports.
  18708. * ja.po: added japanese translation.
  18709. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18710. * SimpleLogger.cc: flush log file instead of stdout.
  18711. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18712. * main.cc: Fixed command-line option: max-tries
  18713. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18714. does not equal to seg.sp.
  18715. * DownloadCommand.cc: If EOF is got from the server and the total size
  18716. of file is not zero, then throw DlRetryEx.
  18717. * main.cc: Set the minium value of min-segment-size to 1024.
  18718. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18719. fails because of a regression since 0.2.0 release.
  18720. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18721. * HttpConnection.cc:
  18722. * common.h: defined the user agent name as macro
  18723. * DownloadEngine.{h, cc}:
  18724. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18725. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18726. * main.cc: Download complete/abort message is now generated by main.
  18727. * Makefile.am (SUBDIRS): Add m4.
  18728. (ACLOCAL_AMFLAGS): New variable.
  18729. (EXTRA_DIST): New variable.
  18730. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18731. * gettext: added gettext functionality
  18732. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18733. * AbstractCommand.cc:
  18734. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18735. unregister its cuid from SegmentMan.
  18736. * DownloadEngine.cc: .aria2 file was written when a downloading
  18737. failed with errors.
  18738. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18739. Added "User-Agent" header to CONNECT proxy request.
  18740. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18741. properly.
  18742. * Logger.h:
  18743. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18744. * ChunkedEncoding.cc: Added #include directive for strings.h
  18745. * Release 0.2.1
  18746. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18747. * Util.{h,cc}: added startsWith().
  18748. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18749. Util::endsWith().
  18750. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18751. * common.h: added #include directive of limit.h.
  18752. * DownloadEngine.cc: added #include directive of sys/time.h and
  18753. algorithm.
  18754. * Exception.h: added #include directive of stdio.h.
  18755. * AbstractCommand.h: added #include directive of sys/time.h.
  18756. * DownloadCommand.h: added #include directive of sys/time.h.
  18757. * *.h: added #include directive of common.h to all base classes.
  18758. subclasses' one was removed.
  18759. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18760. does not define these macros.
  18761. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18762. * Release 0.2.0
  18763. * main.cc:
  18764. * HttpInitiateConnectionCommand.{h,cc}:
  18765. * prefs.h:
  18766. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18767. We can now use GET command in http proxy.
  18768. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18769. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18770. that splits slowest segment of SegmentMan::commands vector.
  18771. This is the default split algorithm of aria2.
  18772. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18773. that splits first segment of SegmentMan::commands vector.
  18774. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18775. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18776. * Segment.h:
  18777. * SegmentMan.cc: Added speed field to Segment.h
  18778. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18779. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18780. * message.h: Change file size related %d to %lld.
  18781. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18782. * FtpInitiateConnectionCommand.{h,cc}:
  18783. * FtpNegotiationCommand.{h,cc}:
  18784. * FtpDownloadCommand.{h,cc}:
  18785. * FtpConnection.{h,cc}: Added FTP support
  18786. * SimpleLogger.cc: Log message now includes time information.
  18787. * main.cc: The value of --http-auth-scheme option is chagned from
  18788. 'BASIC' to 'basic'
  18789. * main.cc: Added --timeout command-line option.
  18790. * main.cc: Added --min-segment-size command-line option.
  18791. * main.cc: Added --max-retries command-line option.
  18792. * prefs.h: option string constants are now defined in prefs.h
  18793. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18794. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18795. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18796. with version 0.1.0's one.
  18797. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18798. * configure.in: Added --enable-ssl option to configure script.
  18799. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18800. cannot permit absoluteURI as Request-URI.
  18801. * HttpConnection.cc: Added Referer support.
  18802. * main.cc: Added referer command-line option.
  18803. * main.cc: Added rety-wait command-line option.
  18804. * Exception.h: Fixed formating bug in Exception::setMsg()
  18805. * SocketCore.{h,cc}:
  18806. * Socket.{h, cc}:
  18807. * Request.cc:
  18808. * InitiateConnectionCommandFactory.cc:
  18809. * HttpRequestCommand.cc: Added HTTPS support.
  18810. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18811. for SocketCore.
  18812. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18813. size is wrong
  18814. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18815. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18816. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18817. * Release 0.1.0