ChangeLog 746 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200
  1. 2010-05-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Removed DownloadResult's ctor because it has many args.
  3. * src/DownloadResult.h
  4. * src/RequestGroup.cc
  5. * test/XmlRpcMethodTest.cc
  6. 2010-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Code cleanup.
  8. * src/RequestGroupMan.cc
  9. * src/UTMetadataPostDownloadHandler.cc
  10. * src/XmlRpcMethodImpl.cc
  11. 2010-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  12. Store both whole checksum and piece hash in metalink file.
  13. Dispatch whole checksum verification only when piece hash is not
  14. set.
  15. * src/DownloadCommand.cc
  16. * src/Metalink2RequestGroup.cc
  17. * test/Metalink2RequestGroupTest.cc
  18. 2010-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  19. Left only IANA hash function textual name in messageDigest.cc.
  20. Assign only IANA hash function textual name to Checksum and
  21. ChunkChecksum. Fixed the value of MessageDigestContext::MD5.
  22. * src/Checksum.h
  23. * src/MetalinkParserController.cc
  24. * src/messageDigest.cc
  25. * src/messageDigest.h
  26. * test/IteratableChecksumValidatorTest.cc
  27. * test/IteratableChunkChecksumValidatorTest.cc
  28. * test/MessageDigestHelperTest.cc
  29. * test/Metalink2RequestGroupTest.cc
  30. * test/MetalinkProcessorTest.cc
  31. 2010-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Fixed typo in log message
  33. * src/AbstractCommand.cc
  34. 2010-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. Release 1.9.3
  36. 2010-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Return const reference.
  38. * src/DefaultPieceStorage.h
  39. * src/DownloadContext.h
  40. * src/FeatureConfig.cc
  41. * src/FeatureConfig.h
  42. * src/OptionParser.cc
  43. * src/OptionParser.h
  44. * src/SimpleRandomizer.cc
  45. * src/SimpleRandomizer.h
  46. 2010-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. Bump up version number to 1.9.3.
  48. * configure.ac
  49. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Return const reference.
  51. * src/LpdMessageReceiver.h
  52. * src/LpdReceiveMessageCommand.h
  53. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Removed useless pathJoin
  55. * src/MetalinkParserController.cc
  56. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  57. Fixed the bug that name attribute of file element in Metalink file
  58. is not properly sanitized.
  59. * src/Metalink2RequestGroup.cc
  60. * src/MetalinkParserController.cc
  61. * test/Makefile.am
  62. * test/Metalink2RequestGroupTest.cc
  63. * test/metalink4-dosdirtraversal.xml
  64. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Fixed the bug that if filename in Content-Disposition header
  66. includes ';', aria2 cuts filename after ';'.
  67. * src/util.cc
  68. * test/UtilTest.cc
  69. 2010-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Release 1.9.2
  71. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Fixed compiler warning on opensolaris.
  73. * src/StringFormat.h
  74. * src/XORCloser.h
  75. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Updated doc
  77. * test/array_funTest.cc
  78. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  79. Fixed segmentation fault when running unit tests on opensolaris.
  80. * src/SocketCore.cc
  81. * src/bittorrent_helper.cc
  82. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  83. Updated Russian translation. Thanks to all translators.
  84. * po/ru.po
  85. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Updated po templates.
  87. * po/aria2.pot
  88. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  89. Print warning when trying to add file descriptor >= FD_SET or < 0
  90. to fd_set for other than MinGW32 build. For MinGW32 build, print
  91. warning when trying to add file descriptor to fd_set when it
  92. already contains FD_SET file descriptors.
  93. * src/SelectEventPoll.cc
  94. * src/SocketCore.cc
  95. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Updated doc for --event-poll option.
  97. * doc/aria2c.1.txt
  98. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Bump up version number to 1.9.2
  100. * configure.ac
  101. * doc/aria2c.1.txt
  102. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. Defined FD_SETSIZE 1024 for MinGW32.
  104. * src/a2netcompat.h
  105. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Fixed compile error on the system which lacks poll()
  107. * src/DownloadEngineFactory.cc
  108. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. In SocketCore::isReadable()/isWritable(), use poll() if it is
  110. available otherwise use select(). Removed epoll/port from there
  111. because poll() does the good enough job for single socket event
  112. notification.
  113. * src/SocketCore.cc
  114. * src/SocketCore.h
  115. * src/main.cc
  116. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  117. Added kqueue support. We use poll() for
  118. SocketCore::isReadable()/isWritable() when kqueue is used.
  119. * configure.ac
  120. * src/DownloadEngineFactory.cc
  121. * src/KqueueEventPoll.cc
  122. * src/KqueueEventPoll.h
  123. * src/Makefile.am
  124. * src/Makefile.in
  125. * src/OptionHandlerFactory.cc
  126. * src/main.cc
  127. * src/prefs.cc
  128. * src/prefs.h
  129. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Added missing timespec.h to SRCS
  131. * src/Makefile.am
  132. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Fixed the bug that aria2.unpause fails with -s1.
  134. * src/FileEntry.cc
  135. * src/XmlRpcMethodImpl.cc
  136. 2010-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Added missing #ifdef HAVE_PORT_ASSOCIATE
  138. * src/DownloadEngineFactory.cc
  139. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Added opensolaris port_associate() support.
  141. * src/DownloadEngineFactory.cc
  142. * src/Makefile.am
  143. * src/OptionHandlerFactory.cc
  144. * src/PortEventPoll.cc
  145. * src/PortEventPoll.h
  146. * src/SocketCore.cc
  147. * src/SocketCore.h
  148. * src/configure.ac
  149. * src/main.cc
  150. * src/prefs.cc
  151. * src/prefs.h
  152. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. Fixed the bug that _e is passed where e should be passed.
  154. * src/HttpListenCommand.cc
  155. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Increased _epEvents size if necessary.
  157. * src/EpollEventPoll.cc
  158. * src/EpollEventPoll.h
  159. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Removed EventRType template parameter
  161. * src/EpollEventPoll.cc
  162. * src/EpollEventPoll.h
  163. * src/Event.h
  164. * src/PollEventPoll.cc
  165. * src/PollEventPoll.h
  166. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Use Event in EpollEventPoll
  168. * src/EpollEventPoll.cc
  169. * src/EpollEventPoll.h
  170. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  171. Externalized Event, CommandEvent, ADNSEvent, SocketEntry and
  172. AsyncNameResolverEntry class.
  173. * src/Event.h
  174. * src/Makefile.am
  175. * src/PollEventPoll.cc
  176. * src/PollEventPoll.h
  177. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Supported poll() for socket event notification. --event-poll can
  179. take value "poll". Fixed the bug that timeout for
  180. SocketCore::isReadable()/isWritable() is ignored when epoll is
  181. used.
  182. * src/OptionHandlerFactory.cc
  183. * src/a2io.h
  184. * src/prefs.h
  185. * src/SocketCore.h
  186. * src/Makefile.am
  187. * src/main.cc
  188. * src/PollEventPoll.h
  189. * src/SocketCore.cc
  190. * src/DownloadEngineFactory.cc
  191. * src/PollEventPoll.cc
  192. * src/prefs.cc
  193. * configure.ac
  194. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Reverted previous change to DownloadCommand.cc with additional
  196. commentary.
  197. * src/DownloadCommand.cc
  198. 2010-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Fixed compile error with openssl 1.1.0 and mingw32.
  200. * src/AsyncNameResolver.cc
  201. * src/LogFactory.cc
  202. * src/Logger.cc
  203. * src/Logger.h
  204. * src/SocketCore.cc
  205. * src/SocketCore.h
  206. * src/a2netcompat.h
  207. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Release 1.9.1
  209. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Bump up version number to 1.9.0
  211. * doc/aria2c.1.txt
  212. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Updated Ukrainian, Russian, Simplified Chinese, German and Greek
  214. translation. Thanks to all translators.
  215. * po/de.po
  216. * po/el.po
  217. * po/ru.po
  218. * po/uk.po
  219. * po/zh_CN.po
  220. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Added AC_SEARCH_LIBS for inet_aton on opensolaris. opensolaris
  222. needs -lnsl for inet_aton.
  223. * configure.ac
  224. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  225. Updated po templates.
  226. * po/aria2.pot
  227. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Added aria2.pause, aria2.forcePause, aria2.pauseAll,
  229. aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC
  230. method to aria2rpc
  231. * doc/xmlrpc/aria2rpc
  232. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  233. Use elapsed time between two mach_absolute_time() calls.
  234. Fixed compile error in Mac OS X.
  235. * src/clock_gettime_osx.cc
  236. * src/timespec.h
  237. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Implemented clock_gettime() using mach_absolute_time in Mac OS X.
  239. * configure.ac
  240. * src/Makefile.am
  241. * src/a2time.h
  242. * src/clock_gettime_osx.cc
  243. * src/clock_gettime_osx.h
  244. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Implemented clock_gettime() using timeGetTime in mingw.
  246. * configure.ac
  247. * src/Makefile.am
  248. * src/a2time.h
  249. * src/clock_gettime_mingw.cc
  250. * src/clock_gettime_mingw.h
  251. * src/timespec.h
  252. * test/Makefile.am
  253. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Ensure that std::ofstream is destroyed before renaming.
  255. * src/SessionSerializer.cc
  256. * src/util.cc
  257. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. Fixed the bug that user specified path is escaped using
  259. util::escapePath() where it should not.
  260. * src/DownloadContext.cc
  261. * src/DownloadContext.h
  262. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Hold reference to PieceStorage when paused in order to provide
  264. progress information via XML-RPC.
  265. * src/RequestGroup.cc
  266. * src/RequestGroup.h
  267. * src/RequestGroupMan.cc
  268. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Defined struct timespec if it is not available.
  270. * src/a2time.h
  271. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Added missing serialize_session.meta4 to EXTRA_DIST
  273. * test/Makefile.am
  274. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  275. Fixed compile error without BitTorrent support.
  276. * src/Metalink2RequestGroup.cc
  277. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  278. Fixed compile error on Mac OS X
  279. * src/TimerA2.h
  280. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Added warning for the system which lacks clock_gettime with
  282. CLOCK_MONOTONIC.
  283. * src/MultiUrlRequestInfo.cc
  284. * src/TimerA2.cc
  285. * src/TimerA2.h
  286. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Removed redundant method call for DownloadEngine.
  288. * src/DownloadCommand.cc
  289. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Fixed the bug that hash check hangs when aria2.pause is issued
  291. while aria2 is checking piece hashes. Fixed the bug that the
  292. download is paused after file allocation completion even if
  293. aria2.pause is issued during file allocation.
  294. * src/CheckIntegrityCommand.cc
  295. * src/FileAllocationCommand.cc
  296. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Added nsl to search-libs for getaddrinfo on opensolaris
  298. * configure.ac
  299. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Fixed compile error on opensolaris
  301. * configure.ac
  302. * src/Logger.h
  303. * src/GZipEncoder.h
  304. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Added aria2.pauseAll, aria2.forcePauseAll and aria2.unpauseAll
  306. XML-RPC method.
  307. * doc/aria2c.1.txt
  308. * src/XmlRpcMethodFactory.cc
  309. * src/XmlRpcMethodImpl.cc
  310. * src/XmlRpcMethodImpl.h
  311. * test/XmlRpcMethodTest.cc
  312. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. Added aria2.forcePause XML-RPC command.
  314. * src/XmlRpcMethodFactory.cc
  315. * src/XmlRpcMethodImpl.cc
  316. * src/XmlRpcMethodImpl.h
  317. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  318. Use global::wallclock
  319. * src/DHTBucket.cc
  320. * src/DHTMessageTrackerEntry.cc
  321. * src/DHTMessageTrackerEntry.h
  322. * src/DefaultBtInteractive.cc
  323. * src/Peer.cc
  324. * src/PeerAbstractCommand.cc
  325. * src/PeerStat.h
  326. * src/RequestSlot.h
  327. * src/TimeBasedCommand.cc
  328. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and
  330. usable to prevent from aria2 from being affected by system time
  331. change.
  332. 2010-04-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  333. Added aria2.pause and aria2.unpause XML-RPC method. aria2.pause
  334. pauses the download denoted by gid. gid is of type string. The
  335. status of paused download becomes "paused" and the download is
  336. placed on the first position of waiting queue. As long as the
  337. status is "paused", the download is not started. To change status
  338. to "waiting", use aria2.unpause method. This method returns GID of
  339. paused download. aria2.unpause changes the status of the download
  340. denoted by gid from "paused" to "waiting". This makes the download
  341. eligible to restart. gid is of type string. This method returns
  342. GID of unpaused download.
  343. * doc/aria2c.1.txt
  344. * src/DownloadContext.cc
  345. * src/FileEntry.cc
  346. * src/OptionHandlerFactory.cc
  347. * src/RequestGroup.cc
  348. * src/RequestGroup.h
  349. * src/RequestGroupMan.cc
  350. * src/XmlRpcMethodFactory.cc
  351. * src/XmlRpcMethodImpl.cc
  352. * src/XmlRpcMethodImpl.h
  353. * src/prefs.cc
  354. * src/prefs.h
  355. * src/usage_text.h
  356. 2010-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Added --save-session=FILE option. This option saves
  358. error/unfinished downloads to FILE on exit. You can pass this
  359. output file to aria2c with -i option on restart. Please note that
  360. downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC
  361. method are not saved.
  362. * src/BtPostDownloadHandler.cc
  363. * src/DownloadResult.h
  364. * src/Makefile.am
  365. * src/MetadataInfo.cc
  366. * src/MetadataInfo.h
  367. * src/Metalink2RequestGroup.cc
  368. * src/MetalinkPostDownloadHandler.cc
  369. * src/MultiUrlRequestInfo.cc
  370. * src/OptionHandlerFactory.cc
  371. * src/RequestGroup.cc
  372. * src/RequestGroup.h
  373. * src/SessionSerializer.cc
  374. * src/SessionSerializer.h
  375. * src/UTMetadataPostDownloadHandler.cc
  376. * src/download_helper.cc
  377. * src/download_helper.h
  378. * src/prefs.cc
  379. * src/prefs.h
  380. * src/usage_text.h
  381. * test/Makefile.am
  382. * test/SessionSerializerTest.cc
  383. * test/XmlRpcMethodTest.cc
  384. * test/serialize_session.meta4
  385. 2010-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  386. Fixed the bug that FTP data connection is not established via
  387. proxy when --ftp-proxy is defined and --ftp-pasv=true and
  388. --proxy-method=tunnel.
  389. * src/AbstractCommand.cc
  390. * src/AbstractCommand.h
  391. * src/FtpNegotiationCommand.cc
  392. * src/FtpNegotiationCommand.h
  393. * src/InitiateConnectionCommand.cc
  394. 2010-04-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  395. Updated po templates.
  396. * po/aria2.pot
  397. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Bump up version number to 1.9.1
  399. * configure.ac
  400. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Added shutdown and forceShutdown to aria2rpc
  402. * doc/xmlrpc/aria2rpc
  403. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Changed error message.
  405. * src/XmlRpcMethod.cc
  406. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Added bt-tracker-timeout, bt-tracker-connect-timeout,
  408. always-resume, max-resume-failure-tries and http-accept-gzip to -i
  409. list options.
  410. * doc/aria2c.1.txt
  411. * doc/xmlrpc/aria2rpc
  412. * src/download_helper.cc
  413. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. Fixed the bug that web-seed URI is not percent-encoded.
  415. * src/a2functional.h
  416. * src/bittorrent_helper.cc
  417. * test/BittorrentHelperTest.cc
  418. * test/url-list-multiFile.torrent
  419. * test/url-list-singleFileEndsWithSlash.torrent
  420. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
  422. These methods, as their name implies, shutdown aria2. These
  423. methods are useful for Windows because it lacks signal mechanism.
  424. * doc/aria2c.1.txt
  425. * src/TimedHaltCommand.cc
  426. * src/XmlRpcMethodFactory.cc
  427. * src/XmlRpcMethodImpl.cc
  428. * src/XmlRpcMethodImpl.h
  429. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. Added forceHalt argument to TimedHaltCommand.
  431. Added requestForceHalt() to DownloadEngine.
  432. * src/DownloadEngine.cc
  433. * src/DownloadEngine.h
  434. * src/TimedHaltCommand.cc
  435. * src/TimedHaltCommand.h
  436. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Possible fix for chunked encoding with Content-Length.
  438. * src/HttpResponseCommand.cc
  439. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  440. Don't send "Accept: default, gzip" by default. This is because
  441. some server responds with "Content-Encoding: gzip" for files which
  442. itself is gzipped file and aria2 inflates them. This is a problem
  443. if user don't want to inflate the file. Apparently this is server
  444. configuration error, but I cannot do anything about this. So turn
  445. this off. Added --http-accept-gzip option. If true is given to
  446. this option, aria2 sends 'Accept: deflate, gzip' request header
  447. and inflates response if remote server responds with
  448. 'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
  449. indicates we removed extension tgz hack in order not to inflate
  450. files with tgz extensions.
  451. * doc/aria2c.1.txt
  452. * src/HttpRequest.cc
  453. * src/HttpRequest.h
  454. * src/HttpRequestCommand.cc
  455. * src/HttpResponseCommand.cc
  456. * src/OptionHandlerFactory.cc
  457. * src/prefs.cc
  458. * src/prefs.h
  459. * src/usage_text.h
  460. * test/HttpRequestTest.cc
  461. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  462. Made aria2 not send
  463. "application/metalink4+xml,application/metalink+xml" in Accept
  464. header for web-seeding URIs and tracker request.
  465. * src/Metalink2RequestGroup.cc
  466. * src/TrackerWatcherCommand.cc
  467. * src/download_helper.cc
  468. * src/util.cc
  469. * src/util.h
  470. 2010-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  471. Added download_helper.{cc,h} to SRCS
  472. * src/Makefile.am
  473. * test/Makefile.am
  474. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Added --dht-message-timeout option.
  476. * doc/aria2c.1.txt
  477. * src/DHTConstants.h
  478. * src/DHTMessageDispatcherImpl.cc
  479. * src/DHTMessageDispatcherImpl.h
  480. * src/DHTMessageTracker.cc
  481. * src/DHTMessageTracker.h
  482. * src/DHTReplaceNodeTask.h
  483. * src/DHTSetup.cc
  484. * src/DHTTaskFactoryImpl.cc
  485. * src/DHTTaskFactoryImpl.h
  486. * src/OptionHandlerFactory.cc
  487. * src/prefs.cc
  488. * src/prefs.h
  489. * src/usage_text.h
  490. * test/DHTMessageTrackerTest.cc
  491. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Added --bt-tracker-connect-timeout and --bt-tracker-timeout
  493. option.
  494. * doc/aria2c.1.txt
  495. * src/OptionHandlerFactory.cc
  496. * src/TrackerWatcherCommand.cc
  497. * src/prefs.cc
  498. * src/prefs.h
  499. * src/usage_text.h
  500. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Documented that specifying --seed-time=0 disables seeding after
  502. download completed.
  503. * doc/aria2c.1.txt
  504. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Code cleanup
  506. * src/BtSetup.cc
  507. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. Drop connection if same Peer ID has been already seen.
  509. * src/DefaultBtInteractive.cc
  510. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Fixed the bug that waiting download unintentionally starts when
  512. URIs are added to it using aria2.changeUri XML-RPC method. This
  513. also fixes the bug that causes segmentation fault when adding URIs
  514. to waiting download, which is a regression introduced by the
  515. previous change made to src/XmlRpcMethodImpl.cc
  516. * src/XmlRpcMethodImpl.cc
  517. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Fixed compile error with g++-4.4 on FreeBSD.
  519. * src/util.h
  520. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  521. Fixed the bug that added URI using aria2.changeUri XML-RPC method
  522. is not used immediately if there is no URIs remaining before
  523. calling aria2.changeUri and the number of connection is less than
  524. the value in -s(or -C for Metalink downloads).
  525. * src/XmlRpcMethodImpl.cc
  526. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Documented --always-resume and --max-resume-failure-tries option
  528. and exit status 8 in man page. Fixed typo.
  529. * doc/aria2c.1.txt
  530. * src/OptionHandlerFactory.cc
  531. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  532. Added --always-resume and --max-resume-failure-tries option. If
  533. --always-resume=false is given, when all given URIs does not
  534. support resume or aria2 encounters N URIs which does not support
  535. resume
  536. (N is the value specified using --max-resume-failure-tries
  537. option), aria2 download file from scratch. The default behavior
  538. is --always-resume=true, which means if all URIs do not support
  539. resume, download fails. I think this is OK because user normally
  540. don't like to see that partially downloaded file is
  541. overwritten(this is particularly true if file size is big). This
  542. option is useful when aria2 is used as download backend and
  543. graceful falling back to overwritten behavior is preferable.
  544. Added exit status value 8, which means download failed because
  545. server did not support resume.
  546. * src/AbstractCommand.cc
  547. * src/DefaultPieceStorage.cc
  548. * src/DownloadCommand.cc
  549. * src/DownloadResultCode.h
  550. * src/FileEntry.h
  551. * src/FtpNegotiationCommand.cc
  552. * src/HttpResponse.cc
  553. * src/HttpResponseCommand.cc
  554. * src/OptionHandlerFactory.cc
  555. * src/RequestGroup.cc
  556. * src/RequestGroup.h
  557. * src/SegmentMan.cc
  558. * src/SegmentMan.h
  559. * src/prefs.cc
  560. * src/prefs.h
  561. * src/usage_text.h
  562. * test/DefaultPieceStorageTest.cc
  563. * test/SegmentManTest.cc
  564. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Added --remove-control-file option to -i list options.
  566. * doc/aria2c.1.txt
  567. * doc/xmlrpc/aria2rpc
  568. * src/download_helper.cc
  569. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Added --remove-control-file option. This option removes control
  571. file(*.aria2 file) before download. Using with
  572. --allow-overwrite=true, download always starts from scratch. This
  573. will be useful for users behind proxy server which disables
  574. resume. For such proxy user, -C1 is also recommended for Metalink
  575. downloads to avoid establishing unnecessary connections.
  576. * doc/aria2c.1.txt
  577. * src/OptionHandlerFactory.cc
  578. * src/RequestGroup.cc
  579. * src/prefs.cc
  580. * src/prefs.h
  581. * src/usage_text.h
  582. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
  584. size of array at compile time.
  585. * src/array_fun.h
  586. * test/BitfieldManTest.cc
  587. * test/BtPortMessageTest.cc
  588. * test/DHTRoutingTableDeserializerTest.cc
  589. * test/DHTRoutingTableSerializerTest.cc
  590. * test/DownloadHelperTest.cc
  591. * test/LongestSequencePieceSelectorTest.cc
  592. * test/MultiDiskAdaptorTest.cc
  593. * test/OptionParserTest.cc
  594. * test/PriorityPieceSelectorTest.cc
  595. * test/array_funTest.cc
  596. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. Added vbegin() and vend() for fixed sized array.
  598. * src/DownloadHandlerConstants.cc
  599. * src/FeatureConfig.cc
  600. * src/OptionHandlerFactory.cc
  601. * src/ServerStat.cc
  602. * src/TimeA2.cc
  603. * src/XmlRpcMethod.cc
  604. * src/array_fun.h
  605. * src/download_helper.cc
  606. * src/messageDigest.cc
  607. * src/util.cc
  608. * test/BittorrentHelperTest.cc
  609. * test/DHTRoutingTableDeserializerTest.cc
  610. * test/DHTRoutingTableSerializerTest.cc
  611. * test/DefaultBtAnnounceTest.cc
  612. * test/DefaultBtProgressInfoFileTest.cc
  613. * test/DownloadContextTest.cc
  614. * test/DownloadHelperTest.cc
  615. * test/FeatureConfigTest.cc
  616. * test/FeedbackURISelectorTest.cc
  617. * test/HttpRequestTest.cc
  618. * test/InOrderURISelectorTest.cc
  619. * test/MSEHandshakeTest.cc
  620. * test/MultiDiskAdaptorTest.cc
  621. * test/MultiFileAllocationIteratorTest.cc
  622. * test/PriorityPieceSelectorTest.cc
  623. * test/RequestGroupManTest.cc
  624. * test/UtilTest.cc
  625. * test/XmlRpcMethodTest.cc
  626. * test/a2algoTest.cc
  627. * test/array_funTest.cc
  628. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  629. Simplified code using lastByteMask
  630. * src/BitfieldMan.cc
  631. * src/PieceStatMan.cc
  632. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. Rewritten lastByteMask
  634. * src/bitfield.h
  635. 2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Redefined the maximum length of buffer used for HTTP header.
  637. * src/HttpHeaderProcessor.cc
  638. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Code cleanup
  640. * src/SleepCommand.cc
  641. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Do exact match if IP address is specified in --no-proxy.
  643. * src/AbstractCommand.cc
  644. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  645. Fixed the bug that socket is added to EventPoll object twice. This
  646. is because derived class FtpFinishDownloadCommand adds socket to
  647. EventPoll object while base class AbstractCommand does that
  648. already.
  649. * src/FtpFinishDownloadCommand.cc
  650. * src/FtpFinishDownloadCommand.h
  651. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. Defined gid_t as int64_t.
  653. * src/BtDependency.cc
  654. * src/BtStopDownloadCommand.cc
  655. * src/FtpNegotiationCommand.cc
  656. * src/HttpResponseCommand.cc
  657. * src/RequestGroup.cc
  658. * src/RequestGroup.h
  659. * src/RequestGroupMan.cc
  660. * src/TrackerWatcherCommand.cc
  661. * src/XmlRpcMethodImpl.cc
  662. * src/message.h
  663. * test/XmlRpcMethodTest.cc
  664. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  666. translatable texts because it is used in log and debugging
  667. purpose.
  668. * src/AbstractCommand.cc
  669. * src/ActivePeerConnectionCommand.cc
  670. * src/BtPieceMessage.cc
  671. * src/CUIDCounter.h
  672. * src/CheckIntegrityCommand.cc
  673. * src/CheckIntegrityDispatcherCommand.cc
  674. * src/Command.h
  675. * src/CreateRequestCommand.cc
  676. * src/DHTEntryPointNameResolveCommand.cc
  677. * src/DefaultBtInteractive.cc
  678. * src/DefaultBtMessageDispatcher.cc
  679. * src/DownloadCommand.cc
  680. * src/FileAllocationCommand.cc
  681. * src/FileAllocationDispatcherCommand.cc
  682. * src/FtpConnection.cc
  683. * src/FtpInitiateConnectionCommand.cc
  684. * src/FtpNegotiationCommand.cc
  685. * src/HttpConnection.cc
  686. * src/HttpInitiateConnectionCommand.cc
  687. * src/HttpListenCommand.cc
  688. * src/HttpResponse.cc
  689. * src/HttpServerBodyCommand.cc
  690. * src/HttpServerCommand.cc
  691. * src/HttpServerResponseCommand.cc
  692. * src/InitiateConnectionCommand.cc
  693. * src/InitiatorMSEHandshakeCommand.cc
  694. * src/MSEHandshake.cc
  695. * src/PeerAbstractCommand.cc
  696. * src/PeerConnection.cc
  697. * src/PeerInitiateConnectionCommand.cc
  698. * src/PeerInteractionCommand.cc
  699. * src/PeerListenCommand.cc
  700. * src/PeerReceiveHandshakeCommand.cc
  701. * src/SegmentMan.cc
  702. * src/SimpleBtMessage.cc
  703. * src/TrackerWatcherCommand.cc
  704. * src/message.h
  705. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. Use gid_t type for gid.
  707. * src/BtRegistry.cc
  708. * src/BtRegistry.h
  709. * src/DownloadResult.h
  710. * src/RequestGroup.cc
  711. * src/RequestGroup.h
  712. * src/RequestGroupMan.cc
  713. * src/RequestGroupMan.h
  714. * src/XmlRpcMethodImpl.cc
  715. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Use cuid_t type for cuid.
  717. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  718. Added v key in DHT message. aria2's DHT version is independent of
  719. the package version and we defined it as 1 at the moment. It is
  720. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  721. scheme is "A2"+2bytes DHT version number in network byte order.
  722. * src/DHTAbstractMessage.cc
  723. * src/DHTConstants.h
  724. * src/DHTMessage.cc
  725. * src/DHTMessage.h
  726. * src/DHTMessageFactoryImpl.cc
  727. * src/DHTQueryMessage.cc
  728. * src/DHTResponseMessage.cc
  729. * src/util.h
  730. * test/DHTAnnouncePeerMessageTest.cc
  731. * test/DHTAnnouncePeerReplyMessageTest.cc
  732. * test/DHTFindNodeMessageTest.cc
  733. * test/DHTFindNodeReplyMessageTest.cc
  734. * test/DHTGetPeersMessageTest.cc
  735. * test/DHTGetPeersReplyMessageTest.cc
  736. * test/DHTPingMessageTest.cc
  737. * test/DHTPingReplyMessageTest.cc
  738. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  739. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  740. method response is integer, while manual says it is string. When
  741. peer's port is not listening port, set '0' to port in
  742. aria2.getPeers response.
  743. * src/XmlRpcMethodImpl.cc
  744. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  745. Lines starting "#" in -i list are treated as comments.
  746. Example:
  747. # this is comment
  748. http://example.org/file
  749. http://example.org/file2
  750. dir=/tmp
  751. # another comment
  752. out=myfile
  753. * doc/aria2c.1.txt
  754. * src/UriListParser.cc
  755. * test/filelist1.txt
  756. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Accept IPv4 network address with CIDR block in --no-proxy option
  758. and no_proxy environment variable. Current implementation does
  759. not resolve hostname in URI to compare network address. So it is
  760. only effecive if URI has numeric IP addresses.
  761. * doc/aria2c.1.txt
  762. * src/AbstractCommand.cc
  763. * src/OptionHandlerFactory.cc
  764. * src/bitfield.h
  765. * src/usage_text.h
  766. * src/util.cc
  767. * src/util.h
  768. * test/UtilTest.cc
  769. * test/bitfieldTest.cc
  770. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  771. Reduced interval for metadatagetmode to quickly gather metadata.
  772. * src/BtSetup.cc
  773. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  774. Release 1.9.0
  775. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. Updated po templates.
  777. * po/aria2.pot
  778. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Updated doc.
  780. * doc/aria2c.1.txt
  781. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Documented about Metalink4 and LPD in README
  783. * RADME
  784. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  785. Few adjustment for timeouts in DHT. DHT message timeout is changed
  786. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  787. it adds another 5 seconds in each retry.
  788. * src/DHTConstants.h
  789. * src/DHTGetPeersCommand.cc
  790. * src/DHTGetPeersCommand.h
  791. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Changed log level from error to info for DHT message send error.
  793. * src/DHTMessageDispatcherImpl.cc
  794. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  795. Inspect all xt in magnet to find urn:btih.
  796. * src/bittorrent_helper.cc
  797. * test/BittorrentHelperTest.cc
  798. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Use global option for DHTSetup.
  800. * src/DHTSetup.cc
  801. * src/DHTSetup.h
  802. * src/RequestGroup.cc
  803. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Added bt-enable-lpt, reuse-uri
  805. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  806. options.
  807. * doc/aria2c.1.txt
  808. * doc/xmlrpc/aria2rpc
  809. * src/download_helper.cc
  810. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  812. * src/BtSetup.cc
  813. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Resurrected --http-proxy-user and --http-proxy-passwd option.
  815. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  816. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  817. * doc/aria2c.1.txt
  818. * src/OptionHandlerFactory.cc
  819. * src/OptionHandlerImpl.h
  820. * src/prefs.cc
  821. * src/prefs.h
  822. * src/usage_text.h
  823. * test/OptionHandlerTest.cc
  824. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Updated Russian and Simplified Chinese translation. Thanks to all
  826. translators.
  827. * po/ru.po
  828. * po/zh_CN.po
  829. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Updated po templates.
  831. * po/aria2.pot
  832. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. For LPD sockets, bind IN_ADDRANY because binding multicast address
  834. fails under Windows.
  835. * src/LpdMessageReceiver.cc
  836. * test/LpdMessageDispatcherTest.cc
  837. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Fixed the bug that error message is not propagated to Exception.
  839. * src/SocketCore.cc
  840. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Documented --bt-lpd-interface option in man page.
  842. * doc/aria2c.1.txt
  843. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Bump up version number to 1.9.0
  845. * configure.ac
  846. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Fixed the bug that FillRequestGroupCommand is not invoked when
  848. RequestGroupMan::createInitialCommand() creates no Command object.
  849. * src/FillRequestGroupCommand.cc
  850. * src/RequestGroupMan.cc
  851. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Added debug logs.
  853. * src/FileEntry.cc
  854. * src/SegmentMan.cc
  855. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Fixed unit test error with mingw32 build.
  857. * test/LpdMessageReceiverTest.cc
  858. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Updated automake-1.11.1
  860. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. Fixed compile error and unit test error without openssl and
  862. gnutls.
  863. * src/MetalinkParserController.cc
  864. * test/MetalinkProcessorTest.cc
  865. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Fixed unitest fails if openssl doesn't support sha-256.
  867. * src/MetalinkParserStateV4Impl.cc
  868. * test/MetalinkProcessorTest.cc
  869. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  870. Wait until message arrives(again)
  871. * test/LpdMessageReceiverTest.cc
  872. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  873. Added missing wallclock.h to SRCS.
  874. * src/Makefile.am
  875. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  876. Fixed compile error with --disable-bittorrent
  877. * test/Metalink2RequestGroupTest.cc
  878. * test/MetalinkParserControllerTest.cc
  879. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Added --reuse-uri option. This option has existed quite long, but
  881. been hidden.
  882. * doc/aria2c.1.txt
  883. * src/OptionHandlerFactory.cc
  884. * src/usage_text.h
  885. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Ignore filename parameter if it contains directory traversal
  887. directives.
  888. * src/util.cc
  889. * test/UtilTest.cc
  890. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. urldecode -> percentDecode
  892. * src/FtpConnection.cc
  893. * src/FtpNegotiationCommand.cc
  894. * src/HttpResponse.cc
  895. * src/Request.cc
  896. * src/magnet.cc
  897. * src/util.cc
  898. * src/util.h
  899. * test/UtilTest.cc
  900. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. urlencode -> percentEncode,
  902. torrentUrlencode -> torrentPercentEncode
  903. * src/BtHandshakeMessage.cc
  904. * src/BtHandshakeMessageValidator.h
  905. * src/DHTMessageFactoryImpl.cc
  906. * src/DefaultBtAnnounce.cc
  907. * src/HandshakeExtensionMessage.cc
  908. * src/HttpRequest.cc
  909. * src/XmlRpcMethodImpl.cc
  910. * src/bittorrent_helper.cc
  911. * src/util.cc
  912. * src/util.h
  913. * test/DHTAnnouncePeerMessageTest.cc
  914. * test/DHTGetPeersMessageTest.cc
  915. * test/DHTGetPeersReplyMessageTest.cc
  916. * test/UTPexExtensionMessageTest.cc
  917. * test/UtilTest.cc
  918. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. Fixed the bug that filename is percent encoded where it must be
  920. percent decoded in sendMdtm().
  921. * src/FtpConnection.cc
  922. * test/FtpConnectionTest.cc
  923. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. url -> uri in Request class.
  925. * src/AbstractCommand.cc
  926. * src/AdaptiveURISelector.cc
  927. * src/DefaultBtAnnounce.cc
  928. * src/FeedbackURISelector.cc
  929. * src/FileEntry.cc
  930. * src/FileEntry.h
  931. * src/HttpRequest.h
  932. * src/HttpResponse.cc
  933. * src/InitiateConnectionCommandFactory.cc
  934. * src/Metalink2RequestGroup.cc
  935. * src/OptionHandlerImpl.h
  936. * src/ProtocolDetector.cc
  937. * src/Request.cc
  938. * src/Request.h
  939. * src/XmlRpcMethodImpl.cc
  940. * test/AuthConfigFactoryTest.cc
  941. * test/FtpConnectionTest.cc
  942. * test/HttpRequestTest.cc
  943. * test/HttpResponseTest.cc
  944. * test/RequestTest.cc
  945. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  946. Added getServers XML-RPC method.
  947. * doc/aria2c.1.txt
  948. * src/FileEntry.h
  949. * src/XmlRpcMethodFactory.cc
  950. * src/XmlRpcMethodImpl.cc
  951. * src/XmlRpcMethodImpl.h
  952. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. Pool request when download finished.
  954. * src/DownloadCommand.cc
  955. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  957. 1-based.
  958. * doc/aria2c.1.txt
  959. * src/XmlRpcMethodImpl.cc
  960. * test/XmlRpcMethodTest.cc
  961. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  962. Call RequestGroupMan::requestQueueCheck() when
  963. max-concurrent-downloads option is changed or new downloads are
  964. added/inserted into reserved list.
  965. * src/RequestGroupMan.cc
  966. * src/XmlRpcMethodImpl.cc
  967. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Added aria2.forceRemove XML-RPC method.
  969. * doc/aria2c.1.txt
  970. * src/XmlRpcMethodFactory.cc
  971. * src/XmlRpcMethodImpl.cc
  972. * src/XmlRpcMethodImpl.h
  973. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  974. Added debug log.
  975. * src/AbstractCommand.cc
  976. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Create CreateRequestCommand to the number of -s/-C when URIs are
  978. added by XML-RPC.
  979. * src/RequestGroup.cc
  980. * src/RequestGroup.h
  981. * src/XmlRpcMethodImpl.cc
  982. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  983. Added 'status' key to the response of getUri XML-RPC method.
  984. * doc/aria2c.1.txt
  985. * src/XmlRpcMethodImpl.cc
  986. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Replaced Time::reset() call with assigning of global::wallclock.
  988. * src/BtLeecherStateChoke.cc
  989. * src/BtSeederStateChoke.cc
  990. * src/PeerSessionResource.cc
  991. * src/RequestSlot.cc
  992. * src/ServerStat.cc
  993. * src/SpeedCalc.cc
  994. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. Added changeUri XML-RPC method. This method removes/adds URIs
  996. dynamically.
  997. * doc/aria2c.1.txt
  998. * src/AbstractCommand.cc
  999. * src/DownloadContext.cc
  1000. * src/DownloadContext.h
  1001. * src/FileEntry.cc
  1002. * src/FileEntry.h
  1003. * src/Request.cc
  1004. * src/Request.h
  1005. * src/RequestGroup.cc
  1006. * src/RequestGroupMan.cc
  1007. * src/XmlRpcMethodFactory.cc
  1008. * src/XmlRpcMethodImpl.cc
  1009. * src/XmlRpcMethodImpl.h
  1010. * test/FileEntryTest.cc
  1011. * test/XmlRpcMethodTest.cc
  1012. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Rewritten copy ctor of RequestSlot to use initialization list.
  1014. * src/RequestSlot.h
  1015. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. Added Time global::wallclock to cache "current time" to reduce the
  1017. call gettimeofday(). Global variables are now in namespace global.
  1018. * src/AbstractCommand.cc
  1019. * src/ActivePeerConnectionCommand.cc
  1020. * src/AdaptiveURISelector.cc
  1021. * src/BtLeecherStateChoke.cc
  1022. * src/BtLeecherStateChoke.h
  1023. * src/BtSeederStateChoke.cc
  1024. * src/BtSeederStateChoke.h
  1025. * src/BtStopDownloadCommand.cc
  1026. * src/ConsoleStatCalc.cc
  1027. * src/DHTBucket.cc
  1028. * src/DHTGetPeersCommand.cc
  1029. * src/DHTMessageTrackerEntry.cc
  1030. * src/DHTNode.cc
  1031. * src/DHTPeerAnnounceEntry.cc
  1032. * src/DHTPeerAnnounceStorage.cc
  1033. * src/DHTSetup.cc
  1034. * src/DefaultBtAnnounce.cc
  1035. * src/DefaultBtInteractive.cc
  1036. * src/DefaultBtMessageDispatcher.cc
  1037. * src/DefaultPeerStorage.cc
  1038. * src/DefaultPieceStorage.cc
  1039. * src/DownloadCommand.cc
  1040. * src/DownloadEngine.cc
  1041. * src/FileEntry.cc
  1042. * src/HttpServerBodyCommand.cc
  1043. * src/HttpServerCommand.cc
  1044. * src/HttpServerResponseCommand.cc
  1045. * src/LpdMessageDispatcher.cc
  1046. * src/MultiUrlRequestInfo.cc
  1047. * src/Peer.cc
  1048. * src/Peer.h
  1049. * src/PeerAbstractCommand.cc
  1050. * src/PeerStat.h
  1051. * src/RequestSlot.cc
  1052. * src/RequestSlot.h
  1053. * src/SegmentMan.cc
  1054. * src/ServerStatMan.cc
  1055. * src/SleepCommand.cc
  1056. * src/SpeedCalc.cc
  1057. * src/SpeedCalc.h
  1058. * src/TimeA2.cc
  1059. * src/TimeA2.h
  1060. * src/TimeBasedCommand.cc
  1061. * src/TimeSeedCriteria.h
  1062. * src/UTMetadataRequestTracker.h
  1063. * src/UTPexExtensionMessage.cc
  1064. * src/wallclock.h
  1065. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1066. Fixed the bug that util::itos(INT64_MIN) fails.
  1067. * src/util.cc
  1068. * src/util.h
  1069. * test/UtilTest.cc
  1070. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Fixed memory leak in SocketBuffer when _bufq is not empty when
  1072. SocketBuffer is deleted. Added BufEntry constructor and deleted
  1073. static factory functions.
  1074. * src/SocketBuffer.cc
  1075. * src/SocketBuffer.h
  1076. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  1078. queue maintenance is requested by RequestGroup to avoid to call
  1079. the function unnecessarily.
  1080. * src/FillRequestGroupCommand.cc
  1081. * src/RequestGroup.cc
  1082. * src/RequestGroup.h
  1083. * src/RequestGroupMan.cc
  1084. * src/RequestGroupMan.h
  1085. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Don't use hash for Peer::id. Simple concatenation of ip address
  1087. and port is enough.
  1088. * src/Peer.cc
  1089. * test/PeerTest.cc
  1090. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1091. Enclosed log of DHTMessage::toString() with Logger::info().
  1092. * src/DHTMessageDispatcherImpl.cc
  1093. * src/DHTMessageReceiver.cc
  1094. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Rewritten util::toHex().
  1096. * src/util.cc
  1097. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Removed SocketBuffer::feedAndSend(). Renamed
  1099. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  1100. * src/FtpConnection.cc
  1101. * src/HttpConnection.cc
  1102. * src/HttpServer.cc
  1103. * src/MSEHandshake.cc
  1104. * src/PeerConnection.cc
  1105. * src/SocketBuffer.cc
  1106. * src/SocketBuffer.h
  1107. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Removed unused PeerConnection::sendMessage(). Updated doc.
  1109. * src/PeerConnection.cc
  1110. * src/PeerConnection.h
  1111. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Reduced copying/std::string instantiation in sending/receiving
  1113. BitTorrent messages.
  1114. * src/BtBitfieldMessage.cc
  1115. * src/BtBitfieldMessage.h
  1116. * src/BtExtendedMessage.cc
  1117. * src/BtExtendedMessage.h
  1118. * src/BtHandshakeMessage.cc
  1119. * src/BtHandshakeMessage.h
  1120. * src/BtKeepAliveMessage.cc
  1121. * src/BtKeepAliveMessage.h
  1122. * src/BtPieceMessage.cc
  1123. * src/BtPieceMessage.h
  1124. * src/BtPortMessage.cc
  1125. * src/BtPortMessage.h
  1126. * src/BtUnchokeMessage.h
  1127. * src/DefaultBtMessageReceiver.cc
  1128. * src/IndexBtMessage.cc
  1129. * src/IndexBtMessage.h
  1130. * src/PeerConnection.cc
  1131. * src/PeerConnection.h
  1132. * src/RangeBtMessage.cc
  1133. * src/RangeBtMessage.h
  1134. * src/SimpleBtMessage.cc
  1135. * src/SimpleBtMessage.h
  1136. * src/SocketBuffer.cc
  1137. * src/SocketBuffer.h
  1138. * src/ZeroBtMessage.cc
  1139. * src/ZeroBtMessage.h
  1140. * test/BtAllowedFastMessageTest.cc
  1141. * test/BtBitfieldMessageTest.cc
  1142. * test/BtCancelMessageTest.cc
  1143. * test/BtChokeMessageTest.cc
  1144. * test/BtExtendedMessageTest.cc
  1145. * test/BtHandshakeMessageTest.cc
  1146. * test/BtHaveAllMessageTest.cc
  1147. * test/BtHaveMessageTest.cc
  1148. * test/BtHaveNoneMessageTest.cc
  1149. * test/BtInterestedMessageTest.cc
  1150. * test/BtKeepAliveMessageTest.cc
  1151. * test/BtNotInterestedMessageTest.cc
  1152. * test/BtPieceMessageTest.cc
  1153. * test/BtPortMessageTest.cc
  1154. * test/BtRejectMessageTest.cc
  1155. * test/BtRequestMessageTest.cc
  1156. * test/BtSuggestPieceMessageTest.cc
  1157. * test/BtUnchokeMessageTest.cc
  1158. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Rewritten SocketBuffer. Old implementation uses single std::string
  1160. to store data and erase sent data, which is costly. New
  1161. implementation uses deque to hold each data to avoid to mutate
  1162. string.
  1163. * src/SocketBuffer.cc
  1164. * src/SocketBuffer.h
  1165. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Removed unused FileEntry::extracted
  1167. * src/FileEntry.cc
  1168. * src/FileEntry.h
  1169. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Wait until data arrives.
  1171. * test/LpdMessageReceiverTest.cc
  1172. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. In Metalink4, if size element contains invalid size, discard whole
  1174. document. Added strict hash value check for metalink3/4.
  1175. * src/MetalinkParserController.cc
  1176. * src/MetalinkParserStateMachine.cc
  1177. * src/MetalinkParserStateMachine.h
  1178. * src/MetalinkParserStateV3Impl.cc
  1179. * src/MetalinkParserStateV4Impl.cc
  1180. * src/util.cc
  1181. * src/util.h
  1182. * test/MetalinkParserControllerTest.cc
  1183. * test/MetalinkProcessorTest.cc
  1184. * test/metalink4.xml
  1185. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Added strict attribute validation for metalink4. When
  1187. specification violation is found, discard the whole document.
  1188. * src/ExpatMetalinkProcessor.cc
  1189. * src/MetalinkParserStateMachine.cc
  1190. * src/MetalinkParserStateMachine.h
  1191. * src/MetalinkParserStateV4Impl.cc
  1192. * src/XML2SAXMetalinkProcessor.cc
  1193. * test/Makefile.am
  1194. * test/MetalinkProcessorTest.cc
  1195. * test/metalink4-attrs.xml: Removed
  1196. * test/metalink4-dirtraversal.xml: Removed
  1197. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Added test for Metaurl transaction.
  1199. * src/MetalinkParserController.cc
  1200. * test/MetalinkParserControllerTest.cc
  1201. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1202. Avoid costly BtMessage::toString() if info level log is not
  1203. required.
  1204. * src/DefaultBtInteractive.cc
  1205. * src/Logger.h
  1206. * src/SimpleBtMessage.cc
  1207. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Reserved vector elements based on profiler results.
  1209. * src/DefaultBtInteractive.cc
  1210. * src/DefaultBtProgressInfoFile.cc
  1211. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. Avoid to calculate end() iterator in each loop. std::deque is
  1213. particularly slow. Make sure that recalculate end iterator if
  1214. element is erased during loop.
  1215. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Use vector instead of deque for containers which is used for
  1217. mostly read-only purpose.
  1218. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Fixed typo
  1220. * test/Makefile.am
  1221. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  1223. * test/Makefile.am
  1224. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Small optimization: In updateTransferStatFor(), don't search peer
  1226. ID twice.
  1227. * src/DefaultPeerStorage.cc
  1228. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1229. Use vector instead of deque for MetalinkEntry and MetalinkResource
  1230. objects.
  1231. * src/Metalink2RequestGroup.cc
  1232. * src/Metalink2RequestGroup.h
  1233. * src/MetalinkEntry.cc
  1234. * src/MetalinkEntry.h
  1235. * src/MetalinkHelper.cc
  1236. * src/MetalinkHelper.h
  1237. * src/Metalinker.cc
  1238. * src/Metalinker.h
  1239. * src/main.cc
  1240. * test/MetalinkEntryTest.cc
  1241. * test/MetalinkHelperTest.cc
  1242. * test/MetalinkProcessorTest.cc
  1243. * test/MetalinkerTest.cc
  1244. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Fixed the bug that grouped FileEntry objects are not used but
  1246. instead all FileEntry objects are used for each metaurl group.
  1247. * src/Metalink2RequestGroup.cc
  1248. * test/Metalink2RequestGroupTest.cc
  1249. * test/metalink4-groupbymetaurl.xml
  1250. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1251. Use vector instead of deque for ChunkChecksum.
  1252. * src/ChunkChecksum.h
  1253. * src/MetalinkParserController.cc
  1254. * src/MetalinkParserController.h
  1255. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  1257. algorithm in Metalink properly
  1258. * src/MetalinkParserController.cc
  1259. * src/MetalinkParserController.h
  1260. * src/messageDigest.cc
  1261. * src/messageDigest.h
  1262. * test/MetalinkProcessorTest.cc
  1263. * test/metalink4.xml
  1264. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Replaced null or control characters in file path with '_'. For
  1266. MinGW32 build, additional characters which is not allowed in
  1267. Windows kernel are also replaced. util::detectDirTraversal() now
  1268. returns true if given string contains null or control characters.
  1269. * src/DownloadContext.cc
  1270. * src/DownloadContext.h
  1271. * src/Metalink2RequestGroup.cc
  1272. * src/MetalinkParserController.cc
  1273. * src/bittorrent_helper.cc
  1274. * src/util.cc
  1275. * src/util.h
  1276. * test/UtilTest.cc
  1277. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Discard metalink:file if its name attribute is empty string.
  1279. Removed FileEntry instantiation in
  1280. MetalinkParserController::setFileLengthOfEntry()
  1281. * src/MetalinkParserController.cc
  1282. * src/MetalinkParserStateV3Impl.cc
  1283. * src/MetalinkParserStateV4Impl.cc
  1284. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Discard torrent file if path data in it contains directory
  1286. traversal directives. Discard metalink:file element in Metalink3
  1287. format if its name attribute contains directory traversal
  1288. directives. Ignore name attribute of metalink:signature element
  1289. in Metalink3 format if it contains directory traversal directives.
  1290. * src/MetalinkParserStateV3Impl.cc
  1291. * src/bittorrent_helper.cc
  1292. * src/message.h
  1293. * test/BittorrentHelperTest.cc
  1294. * test/Makefile.am
  1295. * test/MetalinkProcessorTest.cc
  1296. * test/metalink3-dirtraversal.xml
  1297. * test/test.xml
  1298. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1299. Removed useless comment
  1300. * src/MetalinkParserStateV4Impl.cc
  1301. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1302. Supported name attribute of metalink::metaurl element and
  1303. multi-file torrent with Metalink4. Files with same metaurl are
  1304. grouped and downloaded in one RequestGroup.
  1305. * src/BtDependency.cc
  1306. * src/FileEntry.h
  1307. * src/Metalink2RequestGroup.cc
  1308. * src/Metalink2RequestGroup.h
  1309. * src/MetalinkEntry.cc
  1310. * src/MetalinkEntry.h
  1311. * src/MetalinkHelper.cc
  1312. * src/MetalinkHelper.h
  1313. * src/MetalinkMetaurl.cc
  1314. * src/MetalinkMetaurl.h
  1315. * src/MetalinkParserController.cc
  1316. * src/RequestGroup.cc
  1317. * src/RequestGroup.h
  1318. * src/bittorrent_helper.cc
  1319. * test/BittorrentHelperTest.cc
  1320. * test/BtDependencyTest.cc
  1321. * test/MetalinkHelperTest.cc
  1322. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1323. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  1324. * src/MetalinkMetaurl.h
  1325. * src/MetalinkParserController.cc
  1326. * src/MetalinkParserController.h
  1327. * src/MetalinkParserStateMachine.cc
  1328. * src/MetalinkParserStateMachine.h
  1329. * src/MetalinkParserStateV4Impl.cc
  1330. * test/MetalinkProcessorTest.cc
  1331. * test/metalink4-dirtraversal.xml
  1332. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  1334. element.
  1335. * src/Makefile.am
  1336. * src/Metalink2RequestGroup.cc
  1337. * src/MetalinkEntry.cc
  1338. * src/MetalinkEntry.h
  1339. * src/MetalinkMetaurl.cc
  1340. * src/MetalinkMetaurl.h
  1341. * src/MetalinkParserController.cc
  1342. * src/MetalinkParserController.h
  1343. * src/MetalinkParserStateMachine.cc
  1344. * src/MetalinkParserStateMachine.h
  1345. * src/MetalinkParserStateV4Impl.cc
  1346. * src/MetalinkParserStateV4Impl.h
  1347. * test/MetalinkProcessorTest.cc
  1348. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1349. Added Metalink4 support. Currently, name attribute of
  1350. metalink::metaurl is ignored and multi-file torrent cannot be used
  1351. with Metalink4.
  1352. * doc/aria2c.1.txt
  1353. * src/DownloadHandlerConstants.cc
  1354. * src/ExpatMetalinkProcessor.cc
  1355. * src/Makefile.am
  1356. * src/Metalink2RequestGroup.cc
  1357. * src/MetalinkEntry.cc
  1358. * src/MetalinkEntry.h
  1359. * src/MetalinkParserController.cc
  1360. * src/MetalinkParserController.h
  1361. * src/MetalinkParserState.h
  1362. * src/MetalinkParserStateImpl.cc
  1363. * src/MetalinkParserStateImpl.h
  1364. * src/MetalinkParserStateMachine.cc
  1365. * src/MetalinkParserStateMachine.h
  1366. * src/MetalinkParserStateV3Impl.cc
  1367. * src/MetalinkParserStateV3Impl.h
  1368. * src/MetalinkParserStateV4Impl.cc
  1369. * src/MetalinkParserStateV4Impl.h
  1370. * src/MetalinkResource.cc
  1371. * src/MetalinkResource.h
  1372. * src/Metalinker.cc
  1373. * src/RequestGroup.cc
  1374. * src/RequestGroup.h
  1375. * src/XML2SAXMetalinkProcessor.cc
  1376. * src/messageDigest.cc
  1377. * src/util.cc
  1378. * src/util.h
  1379. * test/Makefile.am
  1380. * test/MetalinkEntryTest.cc
  1381. * test/MetalinkParserControllerTest.cc
  1382. * test/MetalinkProcessorTest.cc
  1383. * test/MetalinkerTest.cc
  1384. * test/UtilTest.cc
  1385. * test/metalink4-attrs.xml
  1386. * test/metalink4-dirtraversal.xml
  1387. * test/metalink4.xml
  1388. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Added aiFlags argument to getInterfaceAddress(). Use
  1390. AI_NUMERICHOST to find interface specified using
  1391. --bt-lpd-interface option to avoid time-consuming address lookup.
  1392. * src/BtSetup.cc
  1393. * src/SocketCore.cc
  1394. * src/SocketCore.h
  1395. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  1397. is bad in LpdMessageReceiver.
  1398. * src/LpdMessage.h
  1399. * src/LpdMessageReceiver.cc
  1400. * src/LpdMessageReceiver.h
  1401. * src/LpdReceiveMessageCommand.cc
  1402. * test/LpdMessageReceiverTest.cc
  1403. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Added --bt-lpd-interface option to specify the interface to use
  1405. for Local Peer Discovery. LpdMessageDispatcher object now has its
  1406. own socket. LpdMessageReceiver's socket is binded to multicast
  1407. address to only receive multicast packets.
  1408. * src/BtSetup.cc
  1409. * src/LpdMessageDispatcher.cc
  1410. * src/LpdMessageDispatcher.h
  1411. * src/LpdMessageReceiver.cc
  1412. * src/LpdMessageReceiver.h
  1413. * src/LpdReceiveMessageCommand.cc
  1414. * src/LpdReceiveMessageCommand.h
  1415. * src/OptionHandlerFactory.cc
  1416. * src/SocketCore.cc
  1417. * src/SocketCore.h
  1418. * src/prefs.cc
  1419. * src/prefs.h
  1420. * src/usage_text.h
  1421. * test/LpdMessageDispatcherTest.cc
  1422. * test/LpdMessageReceiverTest.cc
  1423. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Put the portion of code to get interface addresses in
  1425. SocketCore::bindAddress() into newly added getInterfaceAddress().
  1426. * src/SocketCore.cc
  1427. * src/SocketCore.h
  1428. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1429. Rewritten util::parseInt() and parseUInt()
  1430. * src/util.cc
  1431. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1432. Fixed compile error with mingw32 cross compiler. Defined
  1433. a2_sockopt_t as void* for the target systems other than mingw32.
  1434. * src/SocketCore.cc
  1435. * src/a2netcompat.h
  1436. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Removed 'always true' condition
  1438. * src/util.cc
  1439. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1440. Documented --bt-enable-lpd option in man page.
  1441. * doc/aria2c.1.txt
  1442. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Added Local Peer Discovery. It is disabled by default. Use
  1444. --bt-enable-lpd to enable the function.
  1445. * src/BtConstants.h
  1446. * src/BtSetup.cc
  1447. * src/LpdDispatchMessageCommand.cc
  1448. * src/LpdDispatchMessageCommand.h
  1449. * src/LpdMessage.h
  1450. * src/LpdMessageDispatcher.cc
  1451. * src/LpdMessageDispatcher.h
  1452. * src/LpdMessageReceiver.cc
  1453. * src/LpdMessageReceiver.h
  1454. * src/LpdReceiveMessageCommand.cc
  1455. * src/LpdReceiveMessageCommand.h
  1456. * src/Makefile.am
  1457. * src/OptionHandlerFactory.cc
  1458. * src/Peer.cc
  1459. * src/Peer.h
  1460. * src/PeerInteractionCommand.cc
  1461. * src/SocketCore.cc
  1462. * src/SocketCore.h
  1463. * src/prefs.cc
  1464. * src/prefs.h
  1465. * src/usage_text.h
  1466. * src/util.cc
  1467. * src/util.h
  1468. * test/LpdMessageDispatcherTest.cc
  1469. * test/LpdMessageReceiverTest.cc
  1470. * test/Makefile.am
  1471. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. User-defined custom request headers specified by --header option
  1473. now override builtin headers if they have same name.
  1474. * src/HttpRequest.cc
  1475. * src/HttpRequest.h
  1476. * test/HttpRequestTest.cc
  1477. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Rewirtten util::isNumber()
  1479. * src/util.cc
  1480. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  1482. because without it localized error messages are not printed
  1483. correctly.
  1484. * src/Platform.cc
  1485. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1486. Added unit tests for util::getContentDispositionFilename() from
  1487. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  1488. tests are passed.
  1489. * src/util.cc
  1490. * test/UtilTest.cc
  1491. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  1493. util.cc
  1494. * src/Platform.cc
  1495. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. Support RFC2231 "Parameter Value Character Set and Language
  1497. Information" in Content-Disposition header.
  1498. * src/HttpResponse.cc
  1499. * src/util.cc
  1500. * src/util.h
  1501. * test/UtilTest.cc
  1502. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Print CXXFLAGS
  1504. * configure.ac
  1505. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Small optimization for A2_WOULDBLOCK(e)
  1507. * src/SocketCore.cc
  1508. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1509. Removed test file
  1510. * test/CookieStorageTest.cc
  1511. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1512. Check both EAGAIN and EWOULDBLOCK
  1513. * src/SocketCore.cc
  1514. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Removed ret == 0 checking for SSL_read(), SSL_write() and
  1516. SSL_peek() because the checks are done in the caller. In
  1517. SocketBuffer::send(), throw exception if nothing could be written
  1518. and socket error was not EWOULDBLOCK
  1519. * src/SocketBuffer.cc
  1520. * src/SocketCore.cc
  1521. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Fixed error code handling so that it can handle Winsock2 error
  1523. code.
  1524. * src/SocketCore.cc
  1525. * src/SocketCore.h
  1526. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Bump up version number to 1.9.0a
  1528. * configure.ac
  1529. * doc/aria2c.1.txt
  1530. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1531. Fixed the bug that aria2 doesn't handle return value if error
  1532. occurred before download begins.
  1533. * src/MultiUrlRequestInfo.cc
  1534. * src/main.cc
  1535. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1536. Removed SegmentManFactory class.
  1537. * src/AbstractSegmentManFactory.h
  1538. * src/DefaultSegmentManFactory.cc
  1539. * src/DefaultSegmentManFactory.h
  1540. * src/Makefile.am
  1541. * src/RequestGroup.cc
  1542. * src/RequestGroup.h
  1543. * src/SegmentManFactory.h
  1544. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Destroyed digest context after getting calculated hash.
  1546. * src/Piece.cc
  1547. * src/Piece.h
  1548. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Removed BitfieldManFactory class.
  1550. * src/BitfieldManFactory.cc
  1551. * src/BitfieldManFactory.h
  1552. * src/DefaultPieceStorage.cc
  1553. * src/Makefile.am
  1554. * src/PeerSessionResource.cc
  1555. * src/Piece.cc
  1556. * src/main.cc
  1557. * test/DefaultPieceStorageTest.cc
  1558. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1559. Removed unused methods from BitfieldMan class. Moved
  1560. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  1561. class.
  1562. * src/BitfieldMan.cc
  1563. * src/BitfieldMan.h
  1564. * src/BitfieldManFactory.cc
  1565. * src/BitfieldManFactory.h
  1566. * src/bitfield.h
  1567. * src/main.cc
  1568. * test/BitfieldManTest.cc
  1569. * test/DefaultPieceStorageTest.cc
  1570. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Moved getFirstNMissingIndex to bitfield.h and made it return the
  1572. number of appended indexes.
  1573. * src/BitfieldMan.cc
  1574. * src/BitfieldMan.h
  1575. * src/Piece.cc
  1576. * src/Piece.h
  1577. * src/bitfield.h
  1578. * test/BitfieldManTest.cc
  1579. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1580. Added more tests.
  1581. * test/BitfieldManTest.cc
  1582. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1583. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  1584. unused block indexes at once instead of calling
  1585. getFirstMissingUnusedIndex() multiple times. Made use of it in
  1586. Piece class and DefaultBtRequestFactory class via Piece class.
  1587. * src/BitfieldMan.cc
  1588. * src/BitfieldMan.h
  1589. * src/DefaultBtRequestFactory.cc
  1590. * src/Piece.cc
  1591. * src/Piece.h
  1592. * test/BitfieldManTest.cc
  1593. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Use std::make_pair(...)
  1595. * src/DHTMessageTracker.cc
  1596. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1597. Use std::make_pair(...)
  1598. * src/bittorrent_helper.cc
  1599. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. urlencode(removeFragment(...)) in parseUrl(...)
  1601. * src/Request.cc
  1602. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  1604. * src/AbstractCommand.cc
  1605. * src/AdaptiveURISelector.cc
  1606. * src/BtPieceMessage.cc
  1607. * src/BtPortMessage.cc
  1608. * src/CreateRequestCommand.cc
  1609. * src/DHTAbstractNodeLookupTask.cc
  1610. * src/DHTBucket.cc
  1611. * src/DHTGetPeersCommand.cc
  1612. * src/DHTMessageDispatcherImpl.cc
  1613. * src/DHTMessageFactoryImpl.cc
  1614. * src/DHTMessageTracker.cc
  1615. * src/DHTPeerAnnounceStorage.cc
  1616. * src/DHTRoutingTable.cc
  1617. * src/DHTSetup.cc
  1618. * src/DefaultBtAnnounce.cc
  1619. * src/DefaultBtInteractive.cc
  1620. * src/DefaultBtMessageDispatcher.cc
  1621. * src/DefaultBtMessageReceiver.cc
  1622. * src/DefaultBtProgressInfoFile.cc
  1623. * src/DefaultBtRequestFactory.cc
  1624. * src/DefaultPeerStorage.cc
  1625. * src/DefaultPieceStorage.cc
  1626. * src/DownloadCommand.cc
  1627. * src/DownloadEngine.cc
  1628. * src/EpollEventPoll.cc
  1629. * src/FileAllocationCommand.cc
  1630. * src/FileEntry.cc
  1631. * src/FtpNegotiationCommand.cc
  1632. * src/HandshakeExtensionMessage.cc
  1633. * src/HttpListenCommand.cc
  1634. * src/HttpServer.cc
  1635. * src/HttpSkipResponseCommand.cc
  1636. * src/IteratableChunkChecksumValidator.cc
  1637. * src/Logger.h
  1638. * src/MSEHandshake.cc
  1639. * src/MetalinkPostDownloadHandler.cc
  1640. * src/MultiDiskAdaptor.cc
  1641. * src/PeerAbstractCommand.cc
  1642. * src/PeerConnection.cc
  1643. * src/PeerListenCommand.cc
  1644. * src/PeerReceiveHandshakeCommand.cc
  1645. * src/RequestGroup.cc
  1646. * src/RequestGroupMan.cc
  1647. * src/SegmentMan.cc
  1648. * src/SelectEventPoll.cc
  1649. * src/ServerStat.cc
  1650. * src/SimpleBtMessage.cc
  1651. * src/SocketCore.cc
  1652. * src/TrackerWatcherCommand.cc
  1653. * src/UTMetadataDataExtensionMessage.cc
  1654. * src/UTMetadataRequestFactory.cc
  1655. * src/UTMetadataRequestTracker.cc
  1656. * src/XmlRpcMethod.cc
  1657. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Changed log level from debug to info
  1659. * src/BtDependency.cc
  1660. * src/BtPostDownloadHandler.cc
  1661. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1662. Removed unused PeerSessionResource::_latency.
  1663. * src/BtConstants.h
  1664. * src/BtPieceMessage.cc
  1665. * src/Peer.cc
  1666. * src/Peer.h
  1667. * src/PeerSessionResource.cc
  1668. * src/PeerSessionResource.h
  1669. * test/PeerSessionResourceTest.cc
  1670. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1671. Fixed the bug that --file-allocation=falloc doesn't work with
  1672. single file download.
  1673. * src/AbstractSingleDiskAdaptor.cc
  1674. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1675. Release 1.8.2
  1676. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. Added Portuguese translation. Updated Ukrainian and Spanish
  1678. translation. Thanks to all translators.
  1679. * po/LINGUAS
  1680. * po/es.po
  1681. * po/pt.po
  1682. * po/uk.po
  1683. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Remove fragment from redirected URI.
  1685. * src/Request.cc
  1686. * test/RequestTest.cc
  1687. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Updated po templates.
  1689. * po/aria2.pot
  1690. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1691. Drop legacy ifdef for ares support and code cleanup.
  1692. * src/AsyncNameResolver.cc
  1693. * src/AsyncNameResolver.h
  1694. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1695. Call ares_library_init and ares_library_cleanup if they are
  1696. available. Some code cleanups.
  1697. * src/Platform.cc
  1698. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Call ares_process_fd() each time after epoll to handle timeout.
  1700. * src/EpollEventPoll.cc
  1701. * src/EpollEventPoll.h
  1702. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1703. Suppressed type-cast compiler warning
  1704. * src/CookieStorage.cc
  1705. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1706. Fixed compile error on Mac OS X.
  1707. * src/CookieStorage.h
  1708. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1709. Removed cookietest.txt from Makefile.am
  1710. * test/Makefile.am
  1711. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1712. Updated version number in man page.
  1713. * doc/aria2c.1.txt
  1714. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1715. Rewritten help message for --allow-overwrite option.
  1716. * doc/aria2c.1.txt
  1717. * src/usage_text.h
  1718. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1719. Added bittorrent key to the response of tellStatus XML-RPC method.
  1720. The associated value of the key is a struct and contains data
  1721. retrieved from .torrent file, such as name, announce-list,
  1722. comment, etc.
  1723. * doc/aria2c.1.txt
  1724. * src/XmlRpcMethodImpl.cc
  1725. * src/XmlRpcMethodImpl.h
  1726. * test/XmlRpcMethodTest.cc
  1727. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Removed parse(std::istream&) and parse(const std::string&) from
  1729. CookieParser.
  1730. * src/CookieParser.cc
  1731. * src/CookieParser.h
  1732. * test/CookieParserTest.cc
  1733. * test/cookietest.txt: Removed
  1734. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Fixed the bug that cookie for domain a.b.c is not sent to the host
  1736. a.b.c if no other cookies are stored. Fixed the bug that
  1737. Cookie::markOriginServerOnly() is not called when cookies are
  1738. loaded from file/sqlite3 database.
  1739. * src/Cookie.h
  1740. * src/CookieStorage.cc
  1741. * src/NsCookieParser.cc
  1742. * src/Sqlite3MozCookieParser.cc
  1743. * test/CookieStorageTest.cc
  1744. * test/NsCookieParserTest.cc
  1745. * test/Sqlite3MozCookieParserTest.cc
  1746. * test/cookies.sqlite
  1747. * test/nscookietest.txt
  1748. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1749. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  1750. both _pieceStorage and _segmentMan are initialized or they are
  1751. not.
  1752. * src/RequestGroup.cc
  1753. * src/RequestGroup.h
  1754. * test/BtDependencyTest.cc
  1755. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Bump up version number to 1.8.2
  1757. * configure.ac
  1758. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Replaced "." with A2STR::DOT_C
  1760. * src/AbstractCommand.cc
  1761. * src/Cookie.cc
  1762. * src/DownloadContext.cc
  1763. * src/FtpConnection.cc
  1764. * src/RequestGroup.cc
  1765. * src/util.cc
  1766. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1767. Replaced isNumberAndDotsNotation() with isNumericHost().
  1768. isNumericHost() can handle IPv6 address.
  1769. * src/Cookie.cc
  1770. * src/CookieStorage.cc
  1771. * src/util.cc
  1772. * src/util.h
  1773. * test/CookieTest.cc
  1774. * test/UtilTest.cc
  1775. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1776. Included A2STR.h
  1777. * src/CookieStorage.cc
  1778. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1779. Rewritten Cookie storage.
  1780. * src/Cookie.cc
  1781. * src/Cookie.h
  1782. * src/CookieParser.cc
  1783. * src/CookieStorage.cc
  1784. * src/CookieStorage.h
  1785. * src/a2functional.h
  1786. * test/CookieParserTest.cc
  1787. * test/CookieStorageTest.cc
  1788. * test/CookieTest.cc
  1789. * test/HttpResponseTest.cc
  1790. * test/TestUtil.h
  1791. * test/a2functionalTest.cc
  1792. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. Handle redirected URI which is not properly percent encoded.
  1794. * src/Request.cc
  1795. * test/RequestTest.cc
  1796. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1798. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1799. in a row without single '200 OK' response.
  1800. * src/RequestGroup.cc.
  1801. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1803. readout by 80 characters in mingw32 build. Catch exception in
  1804. DHTMessageReceiver::receiveMessage().
  1805. * src/AbstractDiskWriter.cc
  1806. * src/ConsoleStatCalc.cc
  1807. * src/DHTMessageReceiver.cc
  1808. * src/File.cc
  1809. * src/RequestGroupMan.cc
  1810. * src/a2io.h
  1811. * test/FileTest.cc
  1812. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1813. Fixed compile error with intel compiler
  1814. * src/XmlRpcMethodImpl.cc
  1815. * src/XmlRpcMethodImpl.h
  1816. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1817. Release 1.8.1
  1818. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1819. Updated Swedish, Russian and Italian translations. Thanks to all
  1820. translators.
  1821. * po/it.po
  1822. * po/ru.po
  1823. * po/sv.po
  1824. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Fixed broken OptionParser::findByName().
  1826. * src/OptionParser.cc
  1827. * test/OptionParserTest.cc
  1828. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1829. Fixed test error without BitTorrent support.
  1830. * test/XmlRpcMethodTest.cc
  1831. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. Fixed compile error without GNUTLS/OpenSSL.
  1833. * src/util.cc
  1834. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Changed compression level to Z_DEFAULT_COMPRESSION.
  1836. * src/GZipEncoder.cc
  1837. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Added missing command line options: --http-no-cache,
  1839. --bt-save-metadata and --bt-metadata-only.
  1840. * doc/xmlrpc/aria2rpc
  1841. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1842. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1843. client accepts gzip content encoding.
  1844. * src/A2STR.cc
  1845. * src/A2STR.h
  1846. * src/GZipEncoder.cc
  1847. * src/GZipEncoder.h
  1848. * src/HttpHeader.cc
  1849. * src/HttpHeader.h
  1850. * src/HttpServer.cc
  1851. * src/HttpServer.h
  1852. * src/HttpServerBodyCommand.cc
  1853. * src/HttpServerCommand.cc
  1854. * src/Makefile.am
  1855. * src/XmlRpcResponse.cc
  1856. * src/XmlRpcResponse.h
  1857. * test/GZipEncoderTest.cc
  1858. * test/Makefile.am
  1859. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1860. Added XML-RPC client sample code in Python.
  1861. * doc/aria2c.1.txt
  1862. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1863. Updated po templates.
  1864. * po/aria2.pot
  1865. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Bump up version number to 1.8.1
  1867. * configure.ac
  1868. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1869. Added version number to man page. Updated copyright year in man
  1870. page.
  1871. * doc/aria2c.1.txt
  1872. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1873. Rewritten toTagString
  1874. * src/NameMatchOptionHandler.cc
  1875. * test/OptionHandlerTest.cc
  1876. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Added dir and files key to the response struct of aria2.tellStatus
  1878. XML-RPC method. The value associated with files key is the list
  1879. of files. Its element is the same struct used in aria2.getFiles
  1880. XML-RPC method. Added uris key to the response struct of
  1881. aria2.getFiles XML-RPC method. The value associated with uris key
  1882. is the list of URIs. Its element is the same struct used in
  1883. aria2.getUris XML-RPC method.
  1884. * doc/aria2c.1.txt
  1885. * src/XmlRpcMethodImpl.cc
  1886. * test/XmlRpcMethodTest.cc
  1887. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1889. struct containing Session ID, which is generated each time when
  1890. aria2 is invoked.
  1891. * doc/aria2c.1.txt
  1892. * doc/xmlrpc/aria2rpc
  1893. * src/DownloadEngine.cc
  1894. * src/DownloadEngine.h
  1895. * src/XmlRpcMethodFactory.cc
  1896. * src/XmlRpcMethodImpl.cc
  1897. * src/XmlRpcMethodImpl.h
  1898. * test/XmlRpcMethodTest.cc
  1899. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1900. Moved generateRandomKey() from bittorrent_helper to util.
  1901. * src/DHTBucket.cc
  1902. * src/DHTNode.cc
  1903. * src/bittorrent_helper.cc
  1904. * src/bittorrent_helper.h
  1905. * src/util.cc
  1906. * src/util.h
  1907. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1908. Updated doc about GID.
  1909. * doc/aria2c.1.txt
  1910. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1912. accepts a negative integer. 'offset' == -1 points last download
  1913. in the waiting queue and 'offset' == -2 points the download before
  1914. the last download, and so on. The downloads in the response are in
  1915. reversed order.
  1916. * doc/aria2c.1.txt
  1917. * src/XmlRpcMethodImpl.cc
  1918. * src/XmlRpcMethodImpl.h
  1919. * test/XmlRpcMethodTest.cc
  1920. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1921. Added --human-readable option. This option, when true is given,
  1922. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1923. 3.4Mi) in the console readout. The default value is true and it
  1924. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1925. appears when false is given. In this case, sizes and speed are
  1926. printed without in bytes. No Ki, Mi units conversion is used.
  1927. This may be useful for a program to parse the output of aria2.
  1928. * doc/aria2c.1.txt
  1929. * src/ConsoleStatCalc.cc
  1930. * src/ConsoleStatCalc.h
  1931. * src/OptionHandlerFactory.cc
  1932. * src/main.cc
  1933. * src/prefs.cc
  1934. * src/prefs.h
  1935. * src/usage_text.h
  1936. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1937. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1938. option accepts empty string "". When "" is given, it erases
  1939. previously defined proxy.
  1940. * doc/aria2c.1.txt
  1941. * src/OptionHandlerImpl.h
  1942. * src/usage_text.h
  1943. * test/OptionHandlerTest.cc
  1944. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Code cleanup for proxy URI handling.
  1946. * src/AbstractCommand.cc
  1947. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Added --bt-metadata-only option. If true is given to this option,
  1949. aria2 downloads metadata only. The file(s) described in metadata
  1950. will not be downloaded. This option has effect only when
  1951. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1952. * doc/aria2c.1.txt
  1953. * src/OptionHandlerFactory.cc
  1954. * src/UTMetadataPostDownloadHandler.cc
  1955. * src/download_helper.cc
  1956. * src/prefs.cc
  1957. * src/prefs.h
  1958. * src/usage_text.h
  1959. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1960. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1961. deleted when exception is thrown. Make sure that when passing
  1962. std::deque<Command*> to function to store Commands, handle
  1963. exception and delete these Commands.
  1964. * src/AbstractCommand.cc
  1965. * src/CheckIntegrityCommand.cc
  1966. * src/FileAllocationCommand.cc
  1967. * src/RequestGroup.cc
  1968. * src/TrackerWatcherCommand.cc
  1969. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1971. * src/A2STR.cc
  1972. * src/A2STR.h
  1973. * src/FtpNegotiationCommand.cc
  1974. * src/HttpResponseCommand.cc
  1975. * src/util.cc
  1976. * src/util.h
  1977. * test/UtilTest.cc
  1978. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1979. Treat --dir="" as --dir="."
  1980. * src/FtpNegotiationCommand.cc
  1981. * src/HttpResponseCommand.cc
  1982. * src/Metalink2RequestGroup.cc
  1983. * src/UTMetadataPostDownloadHandler.cc
  1984. * src/bittorrent_helper.cc
  1985. * src/download_helper.cc
  1986. * src/util.cc
  1987. * src/util.h
  1988. * test/UtilTest.cc
  1989. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1990. Code clean up.
  1991. * src/main.cc
  1992. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1993. Reset GID to 1 when they reach maximum value. Rewritten
  1994. CUIDCounter::newID()
  1995. * src/CUIDCounter.h
  1996. * src/RequestGroup.cc
  1997. * src/RequestGroup.h
  1998. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Documented --http-no-cache option in man page.
  2000. * doc/aria2c.1.txt
  2001. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2002. Added --http-no-cache option. When true is given, aria2 sends
  2003. Cache-Control: no-cache and Pragma: no-cache header to avoid
  2004. cached content. If false is given , these headers are not sent
  2005. and you can add Cache-Control header with a directive you like
  2006. using --header option.
  2007. * src/HttpRequest.cc
  2008. * src/HttpRequest.h
  2009. * src/HttpRequestCommand.cc
  2010. * src/OptionHandlerFactory.cc
  2011. * src/download_helper.cc
  2012. * src/prefs.cc
  2013. * src/prefs.h
  2014. * src/usage_text.h
  2015. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2016. Removed Logger from OptionParser. When OptionParser is used to
  2017. parse options at bootstrap, LogFactory is not configured yet
  2018. properly. When LogFactory is used in OptionParser, it initializes
  2019. itself to return a logger which has no ability to write log to the
  2020. disk.
  2021. * src/OptionParser.cc
  2022. * src/OptionParser.h
  2023. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2024. Added following sentance to the help message of --out option:
  2025. --out option is ignored when -Z is used.
  2026. * doc/aria2c.1.txt
  2027. * src/usage_text.h
  2028. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2029. Added --bt-save-metadata option to -i list options.
  2030. * doc/aria2c.1.txt
  2031. * src/download_helper.cc
  2032. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  2034. additional libraries.
  2035. * src/MultiUrlRequestInfo.cc
  2036. * src/NameResolver.cc
  2037. * src/SelectEventPoll.cc
  2038. * src/SelectEventPoll.h
  2039. * src/SocketCore.cc
  2040. * src/SocketCore.h
  2041. * src/a2netcompat.h
  2042. * src/daemon.cc
  2043. * src/main.cc
  2044. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2045. Fixed typo.
  2046. * src/DHTMessageReceiver.cc
  2047. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. Fixed the bug that causes segmentation fault if unknown option is
  2049. put in aria2.conf file. BUG#2928303
  2050. * src/OptionParser.cc
  2051. * src/OptionParser.h
  2052. * src/option_processing.cc
  2053. * test/OptionParserTest.cc
  2054. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. Ignore port message with port=0.
  2056. * src/BtPortMessage.cc
  2057. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2058. Run autoupdate
  2059. * configure.ac
  2060. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2061. Updated autoconf/automake auxiliary files.
  2062. * INSTALL
  2063. * config.guess
  2064. * config.sub
  2065. * depcomp
  2066. * install-sh
  2067. * m4/intldir.m4
  2068. * missing
  2069. * mkinstalldirs
  2070. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2071. Removed unused function.
  2072. * src/SharedHandle.h
  2073. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Find pooled socket using all cached addresses.
  2075. * src/DNSCache.h
  2076. * src/DownloadEngine.cc
  2077. * src/DownloadEngine.h
  2078. * src/InitiateConnectionCommand.cc
  2079. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2080. Updated copyright year.
  2081. * src/version_usage.cc
  2082. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2083. Pool connection if _contentEncodingDecoder is used and server
  2084. supports persistent connection.
  2085. * src/HttpDownloadCommand.cc
  2086. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. Updated doc.
  2088. * src/DownloadCommand.cc
  2089. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2090. Untabify. Fixed one line in copyright which is longer than 80
  2091. columns.
  2092. * src
  2093. * test
  2094. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Release 1.8.0
  2096. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Updated po templates.
  2098. * po/aria2.pot
  2099. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2100. Documented --bt-save-metadata option in man page.
  2101. * doc/aria2c.1.txt
  2102. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Fixed usage of --bt-save-metadata option.
  2104. * src/usage_text.h
  2105. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2106. Updated po templates.
  2107. * po/aria2.pot
  2108. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  2110. causes name resolution error when none of network interface has
  2111. IPv4 address.
  2112. * src/main.cc
  2113. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2114. Bump up version number to 1.8.0.
  2115. * configure.ac
  2116. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Use info hash as a filename when saving BitTorrent metadata.
  2118. * src/UTMetadataPostDownloadHandler.cc
  2119. * test/UTMetadataPostDownloadHandlerTest.cc
  2120. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2121. Documented system.multicall XML-RPC method in man page.
  2122. * doc/aria2c.1.txt
  2123. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2124. Added signal handler for SIGHUP to save .aria2 file when terminal
  2125. is closed. The handler is the same one for SIGINT and SIGTERM.
  2126. * src/MultiUrlRequestInfo.cc
  2127. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Defined method name in XmlRpcMethod subclasses.
  2129. * src/XmlRpcMethodFactory.cc
  2130. * src/XmlRpcMethodImpl.cc
  2131. * src/XmlRpcMethodImpl.h
  2132. * test/XmlRpcMethodTest.cc
  2133. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Added system.multicall XML-RPC method.
  2135. * src/XmlRpcMethod.cc
  2136. * src/XmlRpcMethod.h
  2137. * src/XmlRpcMethodFactory.cc
  2138. * src/XmlRpcMethodImpl.cc
  2139. * src/XmlRpcMethodImpl.h
  2140. * test/XmlRpcMethodTest.cc
  2141. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Check structure depth when decoding.
  2143. * src/bencode.cc
  2144. * src/bencode.h
  2145. * test/BencodeTest.cc
  2146. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. Documented tellStopped XML-RPC method in man page.
  2148. * doc/aria2c.1.txt
  2149. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2150. Added tellStopped XML-RPC method to aria2rpc.
  2151. * doc/xmlrpc/aria2rpc
  2152. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2153. Added tellStopped XML-RPC method. This method returns stopped
  2154. download in the specified range. It takes same parameters with
  2155. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  2156. * src/XmlRpcMethodFactory.cc
  2157. * src/XmlRpcMethodImpl.cc
  2158. * src/XmlRpcMethodImpl.h
  2159. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  2161. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  2162. when conducting unit tests because they fail if networking
  2163. interface is not configured with IPv4 address.
  2164. * src/NameResolver.cc
  2165. * src/SocketCore.cc
  2166. * src/SocketCore.h
  2167. * src/a2netcompat.h
  2168. * test/AllTest.cc
  2169. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2170. Fixed unit test error
  2171. * test/UTMetadataPostDownloadHandlerTest.cc
  2172. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Defined static string constants for efficiency.
  2174. * src/XmlRpcMethodImpl.cc
  2175. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2176. Added --bt-save-metadata option. When true is given, it saves
  2177. metadata as .torrent file. This option has effect only when
  2178. BitTorrent Magnet URI is used. The filename is name in metadata
  2179. with suffix .torrent. The directory to be saved is the same
  2180. directory where download file is saved. If the same file already
  2181. exists, metdata is not saved.
  2182. * src/OptionHandlerFactory.cc
  2183. * src/UTMetadataPostDownloadHandler.cc
  2184. * src/UTMetadataPostDownloadHandler.h
  2185. * src/message.h
  2186. * src/prefs.cc
  2187. * src/prefs.h
  2188. * src/usage_text.h
  2189. * test/UTMetadataDataExtensionMessageTest.cc
  2190. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2191. Added util::saveAs() function. Use it in Signature::save().
  2192. * src/Signature.cc
  2193. * src/util.cc
  2194. * src/util.h
  2195. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Upcase info hash in Magnet URI.
  2197. * doc/aria2c.1.txt
  2198. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Refactored RequestGroupMan::changeReservedGroupPosition()
  2200. * src/RequestGroupMan.cc
  2201. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2202. Updated the description for aria2.addTorrent XML-RPC method.
  2203. * doc/aria2c.1.txt
  2204. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2205. Added changePosition to aria2rpc.
  2206. * doc/xmlrpc/aria2rpc
  2207. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Documented changePosition XML-RPC method in man page.
  2209. * doc/aria2c.1.txt
  2210. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  2212. pos and how. This method changes the position of download denoted
  2213. by gid. If how is POS_SET, it moves the download to a position
  2214. relative to the beginning of the queue. If how is POS_CUR, it
  2215. moves the download to a position relative to the current
  2216. position. If how is POS_END, it moves the download to a position
  2217. relative to the end of the queue. If the destination position is
  2218. less than 0 or beyond the end of the queue, it moves the download
  2219. to the beginning or the end of the queue respectively. Returns
  2220. the destination position.
  2221. * src/RequestGroupMan.cc
  2222. * src/RequestGroupMan.h
  2223. * src/XmlRpcMethodFactory.cc
  2224. * src/XmlRpcMethodImpl.cc
  2225. * src/XmlRpcMethodImpl.h
  2226. * test/RequestGroupManTest.cc
  2227. * test/XmlRpcMethodTest.cc
  2228. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Added getOption and getGlobalOption to aria2rpc.
  2230. * doc/xmlrpc/aria2rpc
  2231. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2232. Documented getOption and getGlobalOption XML-RPC method in man
  2233. page
  2234. * doc/aria2c.1.txt
  2235. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2236. Added getOption and getGlobalOption XML-RPC method. getOption
  2237. takes GID as a parameter and returns its options as struct.
  2238. getGlobalOption takes no parameter and returns global
  2239. options. Because global option is used as a template for the
  2240. option of newly added downloads, it includes options returned by
  2241. getOption.
  2242. * src/Option.h
  2243. * src/XmlRpcMethodFactory.cc
  2244. * src/XmlRpcMethodImpl.cc
  2245. * src/XmlRpcMethodImpl.h
  2246. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Sort _optionHandlers in OptionParser by name in ascending order.
  2248. Use vector instead of deque for efficiency.
  2249. * src/OptionHandler.h
  2250. * src/OptionHandlerFactory.h
  2251. * src/OptionParser.cc
  2252. * src/OptionParser.h
  2253. * src/version_usage.cc
  2254. * test/OptionParserTest.cc
  2255. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2256. Code cleanup
  2257. * src/XmlRpcMethod.cc
  2258. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Documented about followedBy and belongsTo in man page.
  2260. * doc/aria2c.1.txt
  2261. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Added following 2 keys, followedBy and belongsTo, to the response
  2263. of tellStatus.
  2264. followedBy: List of GIDs which are generated by the consequence of
  2265. this download. For example, when aria2 downloaded Metalink file,
  2266. it generates downloads described in it(see *--follow-metalink*
  2267. option). This value is useful to track these auto generated
  2268. downloads. If there is no such downloads, this key will not be
  2269. included in the response.
  2270. belongsTo: GID of a parent download. Some downloads are a part of
  2271. another download. For example, if a file in Metalink has
  2272. BitTorrent resource, the download of .torrent is a part of that
  2273. file. If this download has no parent, this key will not be
  2274. included in the response.
  2275. * src/BtPostDownloadHandler.cc
  2276. * src/DownloadResult.h
  2277. * src/Metalink2RequestGroup.cc
  2278. * src/MetalinkPostDownloadHandler.cc
  2279. * src/RequestGroup.cc
  2280. * src/RequestGroup.h
  2281. * src/UTMetadataPostDownloadHandler.cc
  2282. * src/XmlRpcMethodImpl.cc
  2283. * src/XmlRpcMethodImpl.h
  2284. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Assigned BObject in BDE() to avoid segmentation fault when calling
  2286. methods of BDE::none().
  2287. * src/BDE.cc
  2288. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Show info hash in Magnet URI in upper case letters in -S output.
  2290. * src/bittorrent_helper.cc
  2291. * test/BittorrentHelperTest.cc
  2292. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Removed old useless comment
  2294. * src/MultiUrlRequestInfo.cc
  2295. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  2297. not properly used in configure script and failed to detect gnutls.
  2298. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  2299. and the initialization of pkg-config is done in first occurrence
  2300. of PKG_CHECK_MODULES which is not executed because it is inside of
  2301. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  2302. * configure.ac
  2303. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2304. Release 1.7.2
  2305. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2306. Fixed the bug that RequestGroupMan::downloadFinished() returns
  2307. true even if all downloads haven't finished, especially when
  2308. PostDownloadHandler is involved. Changed the condition so that it
  2309. only returns true if both _requestGroups and _reservedGroups are
  2310. empty.
  2311. * src/RequestGroupMan.cc
  2312. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2313. Log listening port for BitTorrent/DHT in notice level.
  2314. * src/DHTConnectionImpl.cc
  2315. * src/PeerListenCommand.cc
  2316. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Updated po templates.
  2318. * po/aria2.pot
  2319. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Bump up version number to 1.7.2
  2321. * configure.ac
  2322. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2323. Changed default value of --enable-dht from 'false' to 'true'.
  2324. * doc/aria2c.1.txt
  2325. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2326. Enabled DHT by default because of Magnet URI support. To disable
  2327. DHT, use --enable-dht=false
  2328. * src/OptionHandlerFactory.cc
  2329. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2330. Print Magnet URI in -S output.
  2331. * src/AnnounceList.cc
  2332. * src/bittorrent_helper.cc
  2333. * src/bittorrent_helper.h
  2334. * test/BittorrentHelperTest.cc
  2335. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2336. Added --bt-prioritize-piece option to aria2rpc.
  2337. * doc/xmlrpc/aria2rpc
  2338. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2339. Refer Magnet URI in --help. Made some cosmetic changes.
  2340. * src/version_usage.cc
  2341. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Updated -T and -M option.
  2343. * doc/aria2c.1.txt
  2344. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2345. Fixed typo
  2346. * doc/aria2c.1.txt
  2347. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2348. Fixed the bug that line separator is missing in horizontal bar.
  2349. * doc/xmlrpc/aria2mon
  2350. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Updated usage text for --metalink-file option.
  2352. * src/usage_text.h
  2353. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2354. If '-' is given as an argument to --metalink-file option, aria2
  2355. reads Metalink file from stdin.
  2356. * src/OptionHandlerFactory.cc
  2357. * src/OptionHandlerImpl.h
  2358. * src/a2io.h
  2359. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2360. Fixed the bug that aria2 listens wrong port if --interface option
  2361. is used.
  2362. * src/SocketCore.cc
  2363. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2364. Fixed the bug that query parameter in magnet URI is not decoded.
  2365. * src/magnet.cc
  2366. * test/MagnetTest.cc
  2367. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. Specified defaultSize as an argument for easy testing.
  2369. * src/util.cc
  2370. * src/util.h
  2371. * test/UtilTest.cc
  2372. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2373. Release 1.7.1
  2374. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Bump up version number to 1.7.1
  2376. * configure.ac
  2377. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Fixed the bug --bt-prioritize-piece=tail is not working.
  2379. * src/util.cc
  2380. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Release 1.7.0
  2382. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2383. Updated po templates.
  2384. * po/aria2.pot
  2385. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2386. Updated help message for --bt-prioritize-piece. Some cosmetic
  2387. changes.
  2388. * doc/aria2c.1.txt
  2389. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  2391. * src/usage_text.h
  2392. * src/util.cc
  2393. * test/UtilTest.cc
  2394. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Updated Russian, Ukrainian, German and French translations.
  2396. Thanks to all translators involved.
  2397. * po/de.po
  2398. * po/fr.po
  2399. * po/ru.po
  2400. * po/uk.po
  2401. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Mentioned about pkg-config
  2403. * README
  2404. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Fixed typo. Referred --index-out option in BitTorrent notes.
  2406. * README
  2407. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Store all addresses found by getifaddrs() and getaddrinfo(). In
  2409. bind, try all addresses until success
  2410. * src/SocketCore.cc
  2411. * src/SocketCore.h
  2412. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Updated po templates.
  2414. * po/aria2.pot
  2415. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2416. Bump up version number to 1.7.0
  2417. * configure.ac
  2418. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Fixed compile error if ENABLE_BITTORRENT is undefined.
  2420. * src/DefaultPieceStorage.cc
  2421. * src/DefaultPieceStorage.h
  2422. * src/PieceStorage.h
  2423. * src/UnknownLengthPieceStorage.cc
  2424. * src/UnknownLengthPieceStorage.h
  2425. * test/MockPieceStorage.h
  2426. * test/ProtocolDetectorTest.cc
  2427. * test/XmlRpcMethodTest.cc
  2428. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2429. Documented in man page that if getifaddrs() is missing,
  2430. --interface option doesn't accept interface name.
  2431. * doc/aria2c.1.txt
  2432. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  2434. * src/DefaultBtAnnounce.cc
  2435. * src/DefaultBtAnnounce.h
  2436. * test/DefaultBtAnnounceTest.cc
  2437. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2438. Fixed the bug that connection is always dropped if handshake
  2439. message in extension protocol don't have metadata_size.
  2440. src/HandshakeExtensionMessage.cc
  2441. * src/HandshakeExtensionMessage.cc
  2442. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2443. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  2444. text saying DHT is recommended when Magnet URI is provided.
  2445. * doc/aria2c.1.txt
  2446. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2447. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  2448. URI is supplied. Notify user that they should consider enabling
  2449. DHT if they use Magnet URI.
  2450. * src/RequestGroup.cc
  2451. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Added --disable-ipv6 option to disable IPv6.
  2453. * doc/aria2c.1.txt
  2454. * src/InitiateConnectionCommand.cc
  2455. * src/NameResolver.cc
  2456. * src/NameResolver.h
  2457. * src/OptionHandlerFactory.cc
  2458. * src/main.cc
  2459. * src/prefs.cc
  2460. * src/prefs.h
  2461. * src/usage_text.h
  2462. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Updated usage text for --bt-prioritize-piece option.
  2464. * doc/aria2c.1.txt
  2465. * src/usage_text.h
  2466. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. In configure script, if --with-PACKAGE and --enable-FEATURE are
  2468. given and PACKAGE is missing in the system or FEATURE cannot be
  2469. enabled, print error message and stop the script.
  2470. * configure.ac
  2471. * m4/aria2_arg.m4
  2472. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. Halt metadata download immediately when metadata download is done.
  2474. Don't wait unresponsive tracker.
  2475. * src/ByteArrayDiskWriter.h
  2476. * src/DefaultBtInteractive.cc
  2477. * src/DefaultExtensionMessageFactory.cc
  2478. * src/DefaultExtensionMessageFactory.h
  2479. * src/PeerInteractionCommand.cc
  2480. * src/UTMetadataDataExtensionMessage.cc
  2481. * src/UTMetadataDataExtensionMessage.h
  2482. * src/UTMetadataRequestExtensionMessage.cc
  2483. * test/UTMetadataDataExtensionMessageTest.cc
  2484. * test/UTMetadataRequestExtensionMessageTest.cc
  2485. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Documented --interface option in man page.
  2487. * doc/aria2c.1.txt
  2488. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2489. Try resolved address in the order received from the resolver.
  2490. * src/DNSCache.h
  2491. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Added debug logs.
  2493. * src/SocketCore.cc
  2494. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Fixed type of tail to uint64_t
  2496. * src/util.cc
  2497. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2498. Added --interface option. This feature binds sockets to given
  2499. interface. You can specify interface name, IP address and
  2500. hostname.
  2501. * configure.ac
  2502. * src/OptionHandlerFactory.cc
  2503. * src/SocketCore.cc
  2504. * src/SocketCore.h
  2505. * src/main.cc
  2506. * src/message.h
  2507. * src/prefs.cc
  2508. * src/prefs.h
  2509. * src/usage_text.h
  2510. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2511. Updated man page for bt-prioritize-piece option in -i list.
  2512. * doc/aria2c.1.txt
  2513. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2514. Added bt-prioritize-piece option to -i list.
  2515. * src/download_helper.cc
  2516. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2517. Removed --http-auth-scheme option from man page.
  2518. * doc/aria2c.1.txt
  2519. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2520. Removed --http-auth-scheme option since it doesn't do nothing.
  2521. * src/OptionHandlerFactory.cc
  2522. * src/prefs.cc
  2523. * src/prefs.h
  2524. * src/usage_text.h
  2525. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Adjusted the number of peer info which get_peers reply message can
  2527. carry.
  2528. * src/DHTGetPeersReplyMessage.cc
  2529. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2530. Added extension_message_test_helper.h to aria2c_SOURCES.
  2531. * test/Makefile.am
  2532. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2533. Documented --bt-prioritize-piece option in man page.
  2534. * doc/aria2c.1.txt
  2535. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Added option --bt-prioritize-piece. This option instruct aria2 to
  2537. try to download first and last pieces of each file first. The
  2538. argument can contain 2 keywords:head and tail. To include both
  2539. keywords, they must be separated by comma. These keywords can take
  2540. one parameter, SIZE. For example , if head=SIZE is specified,
  2541. pieces in the range of first SIZE bytes of each file get higher
  2542. priority. tail=SIZE means the range of last SIZE bytes of each
  2543. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  2544. * src/DefaultPieceStorage.h
  2545. * src/Makefile.am
  2546. * src/OptionHandlerFactory.cc
  2547. * src/OptionHandlerImpl.h
  2548. * src/PriorityPieceSelector.cc
  2549. * src/PriorityPieceSelector.h
  2550. * src/RequestGroup.cc
  2551. * src/prefs.cc
  2552. * src/prefs.h
  2553. * src/usage_text.h
  2554. * src/util.cc
  2555. * src/util.h
  2556. * test/Makefile.am
  2557. * test/MockPieceSelector.h
  2558. * test/PriorityPieceSelectorTest.cc
  2559. * test/UtilTest.cc
  2560. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Fixed typo
  2562. * src/HttpRequest.h
  2563. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2564. In Magnet URI with tr parameter, put each announce URI in separate
  2565. tier.
  2566. * src/bittorrent_helper.cc
  2567. * test/BittorrentHelperTest.cc
  2568. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2569. Renamed ExtensionMessage::getBencodedData() as
  2570. ExtensionMessage::getPayload()
  2571. * src/BtExtendedMessage.cc
  2572. * src/ExtensionMessage.h
  2573. * src/HandshakeExtensionMessage.cc
  2574. * src/HandshakeExtensionMessage.h
  2575. * src/UTMetadataDataExtensionMessage.cc
  2576. * src/UTMetadataDataExtensionMessage.h
  2577. * src/UTMetadataRejectExtensionMessage.cc
  2578. * src/UTMetadataRejectExtensionMessage.h
  2579. * src/UTMetadataRequestExtensionMessage.cc
  2580. * src/UTMetadataRequestExtensionMessage.h
  2581. * src/UTPexExtensionMessage.cc
  2582. * src/UTPexExtensionMessage.h
  2583. * test/HandshakeExtensionMessageTest.cc
  2584. * test/MockExtensionMessage.h
  2585. * test/UTMetadataDataExtensionMessageTest.cc
  2586. * test/UTMetadataRejectExtensionMessageTest.cc
  2587. * test/UTMetadataRequestExtensionMessageTest.cc
  2588. * test/UTPexExtensionMessageTest.cc
  2589. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2590. Updated man page for BitTorrent Magnet URI.
  2591. * doc/aria2c.1.txt
  2592. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2593. Call DownloadContext::setOwnerRequestGroup() in
  2594. RequestGroup::setDownloadContext().
  2595. * src/BtDependency.cc
  2596. * src/RequestGroup.cc
  2597. * src/RequestGroup.h
  2598. * src/download_helper.cc
  2599. * test/DefaultBtMessageDispatcherTest.cc
  2600. * test/DefaultExtensionMessageFactoryTest.cc
  2601. * test/HandshakeExtensionMessageTest.cc
  2602. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  2604. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  2605. from metadata, use new metadata2Torrent() function.
  2606. * src/BtDependency.cc
  2607. * src/UTMetadataPostDownloadHandler.cc
  2608. * src/bittorrent_helper.cc
  2609. * src/bittorrent_helper.h
  2610. * test/BittorrentHelperTest.cc
  2611. * test/BtDependencyTest.cc
  2612. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. Use createRequestGroupForUri to create the download for torrent
  2614. file.
  2615. * src/Metalink2RequestGroup.cc
  2616. * test/Metalink2RequestGroupTest.cc
  2617. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Fixed typo
  2619. * src/DownloadContext.h
  2620. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Use createRequestGroupForBitTorrent()
  2622. * src/BtPostDownloadHandler.cc
  2623. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2624. Added remove().
  2625. * src/Option.cc
  2626. * src/Option.h
  2627. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Removed options which is only valid for URIs specified in
  2629. command-line. If they are left, because op is used as a template
  2630. for new RequestGroup(such as created in XML-RPC command,
  2631. BtPostDownloadHandler etc), they causes unintentional effect.
  2632. * src/main.cc
  2633. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2634. Refer to option value of PREF_OUT only in download_helper.
  2635. * src/FtpNegotiationCommand.cc
  2636. * src/HttpResponseCommand.cc
  2637. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2638. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  2639. * src/download_helper.cc
  2640. * src/download_helper.h
  2641. * src/XmlRpcMethodImpl.cc
  2642. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2643. Updated man page for changeOption XML-RPC method.
  2644. * doc/aria2c.1.txt
  2645. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Added --bt-max-peers option to changeOption XML-RPC method.
  2647. * src/XmlRpcMethod.cc
  2648. * src/XmlRpcMethodImpl.cc
  2649. * test/XmlRpcMethodTest.cc
  2650. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  2652. * test/XmlRpcMethodTest.cc
  2653. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Removed redundant DownloadContext::hasAttribute(...) calls.
  2655. * src/ConsoleStatCalc.cc
  2656. * src/RequestGroup.cc
  2657. * src/XmlRpcMethodImpl.cc
  2658. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2659. Changed the number of tracker request attempt from 5 to 2.
  2660. * src/TrackerWatcherCommand.cc
  2661. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2662. Use host and protocol in original URI, because URI selector
  2663. selects URI based on original URI, not redirected one.
  2664. * src/Request.cc
  2665. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2666. Fixed the bug which causes segmentation fault with tellWaiting
  2667. XML-RPC method when BitTorrent download is waiting. The key of
  2668. BtRegistry is changed from info hash to GID, because it is
  2669. registered per RequestGroup, not info hash.
  2670. * src/BtRegistry.cc
  2671. * src/BtRegistry.h
  2672. * src/BtSetup.cc
  2673. * src/ConsoleStatCalc.cc
  2674. * src/InitiatorMSEHandshakeCommand.cc
  2675. * src/PeerInitiateConnectionCommand.cc
  2676. * src/PeerInteractionCommand.cc
  2677. * src/PeerInteractionCommand.h
  2678. * src/PeerReceiveHandshakeCommand.cc
  2679. * src/RequestGroup.cc
  2680. * src/XmlRpcMethodImpl.cc
  2681. * test/BtRegistryTest.cc
  2682. * test/XmlRpcMethodTest.cc
  2683. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2684. Updated man page for changeOption XML-RPC method.
  2685. * doc/aria2c.1.txt
  2686. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2687. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  2688. method.
  2689. * src/XmlRpcMethod.cc
  2690. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2691. Documented about BitTorrent Magnet URI in man page.
  2692. * doc/aria2c.1.txt
  2693. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2694. Fixed the bug that trackers in BitTorrent Magnet URI are not
  2695. inherited to generated RequestGroup.
  2696. * src/UTMetadataPostDownloadHandler.cc
  2697. * test/UTMetadataPostDownloadHandlerTest.cc
  2698. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2699. Prepended "[METADATA]" before dn.
  2700. * src/bittorrent_helper.cc
  2701. * test/BittorrentHelperTest.cc
  2702. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2703. Rewritten Magnet URI parser.
  2704. * src/Makefile.am
  2705. * src/ProtocolDetector.cc
  2706. * src/bittorrent_helper.cc
  2707. * src/bittorrent_helper.h
  2708. * src/download_helper.cc
  2709. * src/magnet.cc
  2710. * src/magnet.h
  2711. * test/BittorrentHelperTest.cc
  2712. * test/MagnetTest.cc
  2713. * test/Makefile.am
  2714. * test/ProtocolDetectorTest.cc
  2715. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. Use hton64
  2717. * src/base32.cc
  2718. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2719. Added Base32 encoded BitTorrent Magnet Link support.
  2720. * src/Makefile.am
  2721. * src/base32.cc
  2722. * src/base32.h
  2723. * src/bittorrent_helper.cc
  2724. * test/Base32Test.cc
  2725. * test/BittorrentHelperTest.cc
  2726. * test/Makefile.am
  2727. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2728. Added BitTorrent Magnet Link support. Base32 encoded link is not
  2729. supported yet. Fixed typo in method name in RequestGroup. In
  2730. metadataGetMode, don't show "Your share ratio was ..." message.
  2731. * src/DefaultBtInteractive.cc
  2732. * src/DefaultBtInteractive.h
  2733. * src/DownloadHandlerFactory.cc
  2734. * src/DownloadHandlerFactory.h
  2735. * src/HandshakeExtensionMessage.cc
  2736. * src/Makefile.am
  2737. * src/Metalink2RequestGroup.cc
  2738. * src/PeerInteractionCommand.cc
  2739. * src/RequestGroup.cc
  2740. * src/RequestGroup.h
  2741. * src/UTMetadataPostDownloadHandler.cc
  2742. * src/UTMetadataPostDownloadHandler.h
  2743. * src/download_helper.cc
  2744. * test/HandshakeExtensionMessageTest.cc
  2745. * test/Makefile.am
  2746. * test/UTMetadataPostDownloadHandlerTest.cc
  2747. * test/UTMetadataRejectExtensionMessageTest.cc
  2748. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2749. In metadataGetMode, don't show SEEDING.
  2750. * src/ConsoleStatCalc.cc
  2751. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Fixed ut_metadata data handling. Implemented
  2753. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  2754. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2755. metadata_size is received.
  2756. * src/DefaultExtensionMessageFactory.cc
  2757. * src/DefaultExtensionMessageFactory.h
  2758. * src/HandshakeExtensionMessage.cc
  2759. * src/HandshakeExtensionMessage.h
  2760. * src/UTMetadataDataExtensionMessage.cc
  2761. * src/UTMetadataDataExtensionMessage.h
  2762. * src/UTMetadataRequestExtensionMessage.cc
  2763. * src/UTMetadataRequestFactory.cc
  2764. * src/UTMetadataRequestFactory.h
  2765. * src/UTMetadataRequestTracker.cc
  2766. * src/UTMetadataRequestTracker.h
  2767. * test/DefaultExtensionMessageFactoryTest.cc
  2768. * test/HandshakeExtensionMessageTest.cc
  2769. * test/MockBtMessage.h
  2770. * test/UTMetadataDataExtensionMessageTest.cc
  2771. * test/UTMetadataRequestExtensionMessageTest.cc
  2772. * test/UTMetadataRequestFactoryTest.cc
  2773. * test/UTMetadataRequestTrackerTest.cc
  2774. * test/extension_message_test_helper.h
  2775. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2776. Drop connection if ut_metadata reject message is received.
  2777. * src/UTMetadataRejectExtensionMessage.cc
  2778. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2780. get high enough in that mode.
  2781. * src/ActivePeerConnectionCommand.cc
  2782. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2783. Added BitTorrent magnet link support to ProtocolDetector.
  2784. * src/ProtocolDetector.cc
  2785. * src/ProtocolDetector.h
  2786. * test/ProtocolDetectorTest.cc
  2787. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Don't inject validator into BtMessage in metadataGetMode because
  2789. most of the checks depends on the total length of download but it
  2790. is unknown. Delegate metadataGetMode to BtMessage.
  2791. * src/DefaultBtMessageFactory.cc
  2792. * src/DefaultBtMessageFactory.h
  2793. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2795. * src/DefaultPieceStorage.h
  2796. * src/PieceStorage.h
  2797. * src/UnknownLengthPieceStorage.h
  2798. * test/MockPieceStorage.h
  2799. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2800. Added markTotalLengthIsKnown().
  2801. * src/DownloadContext.h
  2802. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2804. missing. If metadata is missing, always use DHT when it is ready.
  2805. * src/BtSetup.cc
  2806. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2807. Added parseMagnetLink(). Hex encoded info hash is supported.
  2808. Base32 encoded info hash is not supported yet.
  2809. * src/bittorrent_helper.cc
  2810. * src/bittorrent_helper.h
  2811. * test/BittorrentHelperTest.cc
  2812. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Added FromHex()
  2814. * src/util.cc
  2815. * src/util.h
  2816. * test/UtilTest.cc
  2817. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2818. Added _metadataGetMode member variable. It toggles the action when
  2819. messages are received: usually they almost do nothing if
  2820. _metadataGetMode is true.
  2821. * src/AbstractBtMessage.cc
  2822. * src/AbstractBtMessage.h
  2823. * src/BtAllowedFastMessage.cc
  2824. * src/BtBitfieldMessage.cc
  2825. * src/BtCancelMessage.cc
  2826. * src/BtChokeMessage.cc
  2827. * src/BtHaveAllMessage.cc
  2828. * src/BtHaveMessage.cc
  2829. * src/BtInterestedMessage.cc
  2830. * src/BtNotInterestedMessage.cc
  2831. * src/BtPieceMessage.cc
  2832. * src/BtRejectMessage.cc
  2833. * src/BtRequestMessage.cc
  2834. * src/BtUnchokeMessage.cc
  2835. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2836. Added bencode::decode overload functions. They have extra argument
  2837. 'end', passed by reference. 'end' points to the beyond the last
  2838. position of data used in decoding process.
  2839. * src/bencode.cc
  2840. * src/bencode.h
  2841. * test/BencodeTest.cc
  2842. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2843. Initial support of Extension for Peers to Send Metadata
  2844. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2845. metadata from swarm.
  2846. * src/BtConstants.h
  2847. * src/DefaultBtInteractive.cc
  2848. * src/DefaultExtensionMessageFactory.cc
  2849. * src/DefaultExtensionMessageFactory.h
  2850. * src/ExtensionMessage.h
  2851. * src/ExtensionMessageRegistry.h
  2852. * src/HandshakeExtensionMessage.cc
  2853. * src/HandshakeExtensionMessage.h
  2854. * src/Makefile.am
  2855. * src/PeerConnection.h
  2856. * src/PeerInteractionCommand.cc
  2857. * src/UTMetadataDataExtensionMessage.cc
  2858. * src/UTMetadataDataExtensionMessage.h
  2859. * src/UTMetadataExtensionMessage.cc
  2860. * src/UTMetadataExtensionMessage.h
  2861. * src/UTMetadataRejectExtensionMessage.cc
  2862. * src/UTMetadataRejectExtensionMessage.h
  2863. * src/UTMetadataRequestExtensionMessage.cc
  2864. * src/UTMetadataRequestExtensionMessage.h
  2865. * src/bittorrent_helper.cc
  2866. * src/bittorrent_helper.h
  2867. * test/BittorrentHelperTest.cc
  2868. * test/DefaultExtensionMessageFactoryTest.cc
  2869. * test/HandshakeExtensionMessageTest.cc
  2870. * test/Makefile.am
  2871. * test/UTMetadataDataExtensionMessageTest.cc
  2872. * test/UTMetadataRejectExtensionMessageTest.cc
  2873. * test/UTMetadataRequestExtensionMessageTest.cc
  2874. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2875. Cancel segment in prepareForRetry() because there is a chance that
  2876. the command has segments.
  2877. * src/CreateRequestCommand.cc
  2878. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2879. Fixed the bug that slow server is not knocked down in favor of
  2880. faster one.
  2881. * src/AbstractCommand.cc
  2882. * src/DefaultPieceStorage.cc
  2883. * src/DefaultPieceStorage.h
  2884. * src/PieceStorage.h
  2885. * src/UnknownLengthPieceStorage.cc
  2886. * src/UnknownLengthPieceStorage.h
  2887. * test/MockPieceStorage.h
  2888. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2889. Fixed the bug that Request object is not added to
  2890. _inFlightRequests in findFasterRequest().
  2891. * src/FileEntry.cc
  2892. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2893. Changed the strategry of how to increase the number of outstanding
  2894. requests. Now the number is doubled if there are no outstanding
  2895. requests after receiving messages.
  2896. * src/BtConstants.h
  2897. * src/DefaultBtInteractive.cc
  2898. * src/DefaultBtInteractive.h
  2899. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2900. Check socket for reading if there are outstanding requests.
  2901. * src/PeerInteractionCommand.cc
  2902. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Moved frequently called methods to header file so they get
  2904. inlined.
  2905. * src/RequestSlot.cc
  2906. * src/RequestSlot.h
  2907. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2908. Copied in_addr instead of just casting from char* which might
  2909. violate strict aliasing rules.
  2910. * src/AsyncNameResolver.cc
  2911. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2912. Use dynamic_pointer_cast
  2913. * test/BtPieceMessageTest.cc
  2914. * test/BtRequestMessageTest.cc
  2915. * test/DefaultBtRequestFactoryTest.cc
  2916. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2917. Added testSetUrl20()
  2918. * test/RequestTest.cc
  2919. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2920. Code cleanup
  2921. * src/bittorrent_helper.cc
  2922. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2923. Use C++ style cast
  2924. * src/AsyncNameResolver.cc
  2925. * src/Base64.h
  2926. * src/BtBitfieldMessage.cc
  2927. * src/BtHandshakeMessage.cc
  2928. * src/DefaultBtMessageFactory.cc
  2929. * src/DefaultBtProgressInfoFile.cc
  2930. * src/EpollEventPoll.cc
  2931. * src/ExpatMetalinkProcessor.cc
  2932. * src/IteratableChecksumValidator.cc
  2933. * src/IteratableChunkChecksumValidator.cc
  2934. * src/MessageDigestHelper.cc
  2935. * src/Platform.cc
  2936. * src/RequestGroupMan.cc
  2937. * src/SingleFileAllocationIterator.cc
  2938. * src/Sqlite3MozCookieParser.cc
  2939. * src/XML2SAXMetalinkProcessor.cc
  2940. * src/Xml2XmlRpcRequestProcessor.cc
  2941. * src/util.cc
  2942. * src/util.h
  2943. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2944. Fixed integer potential alignment problem.
  2945. * src/bitfield.h
  2946. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2947. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2948. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2949. include file ordering.
  2950. * src/PeerListProcessor.h
  2951. * src/bittorrent_helper.cc
  2952. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2953. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2954. * src/Request.cc
  2955. * src/util.cc
  2956. * src/util.h
  2957. * test/RequestTest.cc
  2958. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2959. Rewritten util::uitos()
  2960. * src/util.h
  2961. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. Code cleanup
  2963. * src/Request.cc
  2964. * src/Request.h
  2965. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2966. Rewritten Request::parseUrl()
  2967. * src/Request.cc
  2968. * test/RequestTest.cc
  2969. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2970. Removed unused macro SAFE_CHARS
  2971. * src/Request.cc
  2972. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2973. Updated doc
  2974. * src/DHTRoutingTableDeserializer.cc
  2975. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2976. Release 1.6.3
  2977. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2978. Removed unused function.
  2979. * test/DHTPeerAnnounceStorageTest.cc
  2980. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2981. Only decrement cols if cols > 0
  2982. * src/ConsoleStatCalc.cc
  2983. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2984. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2985. translations. Thanks to all translators.
  2986. * po/ca.po
  2987. * po/fr.po
  2988. * po/it.po
  2989. * po/ja.po
  2990. * po/pl.po
  2991. * po/ru.po
  2992. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2993. Updated translation template
  2994. * po
  2995. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. Fixed compile error without ssl library.
  2997. * src/util.cc
  2998. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2999. Logged received nodes in get_peers reply message.
  3000. * src/DHTAbstractNodeLookupTask.cc
  3001. * src/DHTAbstractNodeLookupTask.h
  3002. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3003. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  3004. error occurred in DHTMessageDispatcherImpl::sendMessage().
  3005. * src/DHTMessageDispatcherImpl.cc
  3006. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3007. Don't reuse URI if Request pool is not empty.
  3008. * src/CreateRequestCommand.cc
  3009. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3010. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  3011. receive get_peers request for torrent which the client is now
  3012. downloading.
  3013. * src/BtSetup.cc
  3014. * src/DHTPeerAnnounceEntry.cc
  3015. * src/DHTPeerAnnounceEntry.h
  3016. * src/DHTPeerAnnounceStorage.cc
  3017. * src/DHTPeerAnnounceStorage.h
  3018. * src/RequestGroup.cc
  3019. * test/DHTPeerAnnounceEntryTest.cc
  3020. * test/DHTPeerAnnounceStorageTest.cc
  3021. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3022. Fixed the bug that in Windows environment new blank line is
  3023. inserted when console readout is updated.
  3024. * src/ConsoleStatCalc.cc
  3025. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3026. Throw exception if binding listening port is failed. Removed
  3027. RequestGroupMan::getInitialCommand(). Use
  3028. fillRequestGroupFromReserver() instead. Delete commands for
  3029. RequestGroup which has errors when it is being added.
  3030. * src/BtSetup.cc
  3031. * src/DownloadEngine.cc
  3032. * src/DownloadEngine.h
  3033. * src/DownloadEngineFactory.cc
  3034. * src/MultiUrlRequestInfo.cc
  3035. * src/RequestGroupMan.cc
  3036. * src/RequestGroupMan.h
  3037. * test/RequestGroupManTest.cc
  3038. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3039. Fixed the bug that when downloading more than one torrent,
  3040. listening port is not reported properly to tracker for 2nd or
  3041. later torrents.
  3042. * src/BtSetup.cc
  3043. * src/PeerListenCommand.cc
  3044. * src/PeerListenCommand.h
  3045. * src/RequestGroup.cc
  3046. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3047. Bump up version number to 1.6.3
  3048. * configure.ac
  3049. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3050. Removed Util.cc from POTFILES.in
  3051. * po/POTFILES.in
  3052. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3053. Updated man page for previous change.
  3054. * doc/aria2c.1.txt
  3055. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3056. If user name is embedded but password is missing in URI, first
  3057. resolve password using .netrc. If password is found in .netrc,
  3058. then use it as password. If not, use the password specified in
  3059. --ftp-passwd.
  3060. * src/AuthConfigFactory.cc
  3061. * src/Request.cc
  3062. * src/Request.h
  3063. * test/AuthConfigFactoryTest.cc
  3064. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3065. Fixed typo
  3066. * doc/aria2c.1.txt
  3067. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3068. Fixed typo
  3069. * src/usage_text.h
  3070. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3071. Added missing bitfield.cc
  3072. * src/bitfield.cc
  3073. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3074. Renamed Util.{cc,h} as util.{cc,h}
  3075. * src/Util.cc
  3076. * src/Util.h
  3077. * src/util.cc
  3078. * src/util.h
  3079. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3080. Moved static functions in Util class to namespace util.
  3081. * src
  3082. * test
  3083. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  3085. Moved generateRandomKey to bittorrent_helper.cc.
  3086. * src/DHTBucket.cc
  3087. * src/DHTGetPeersMessage.cc
  3088. * src/DHTGetPeersReplyMessage.cc
  3089. * src/DHTMessage.cc
  3090. * src/DHTNode.cc
  3091. * src/DHTTokenTracker.cc
  3092. * src/DHTUtil.cc: Removed.
  3093. * src/DHTUtil.h: Removed.
  3094. * src/Makefile.am
  3095. * src/Util.cc
  3096. * src/Util.h
  3097. * src/bitfield.h
  3098. * src/bittorrent_helper.cc
  3099. * src/bittorrent_helper.h
  3100. * test/ARC4Test.cc
  3101. * test/BNodeTest.cc
  3102. * test/DHTAnnouncePeerMessageTest.cc
  3103. * test/DHTAnnouncePeerReplyMessageTest.cc
  3104. * test/DHTFindNodeMessageTest.cc
  3105. * test/DHTFindNodeReplyMessageTest.cc
  3106. * test/DHTGetPeersMessageTest.cc
  3107. * test/DHTGetPeersReplyMessageTest.cc
  3108. * test/DHTPingMessageTest.cc
  3109. * test/DHTPingReplyMessageTest.cc
  3110. * test/DHTTokenTrackerTest.cc
  3111. * test/DHTUtilTest.cc: Removed.
  3112. * test/Makefile.am
  3113. * test/UtilTest.cc
  3114. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3115. Removed the call to trim() because trim() is called for each
  3116. element in split().
  3117. * src/CookieParser.cc
  3118. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3119. Replaced Util::slice() with split()
  3120. * src/AbstractCommand.cc
  3121. * src/CookieParser.cc
  3122. * src/File.cc
  3123. * src/HttpHeaderProcessor.cc
  3124. * src/HttpRequest.cc
  3125. * src/Metalink2RequestGroup.cc
  3126. * src/MetalinkParserController.cc
  3127. * src/Netrc.cc
  3128. * src/NsCookieParser.cc
  3129. * src/ParameterizedStringParser.cc
  3130. * src/ServerStatMan.cc
  3131. * src/UriListParser.cc
  3132. * src/Util.cc
  3133. * src/Util.h
  3134. * src/bittorrent_helper.cc
  3135. * test/UtilTest.cc
  3136. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3137. Use request->getDir() instead of "/" for embedded user/pass in
  3138. URI.
  3139. * src/AuthConfigFactory.cc
  3140. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Fixed wrong insertion point for BasicCred.
  3142. * src/AuthConfigFactory.cc
  3143. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3144. Allowed non-regular file in LocalFilePathOptionHandler
  3145. * src/OptionHandlerImpl.h
  3146. * src/message.h
  3147. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3148. Fixed the bug that Netrc::parse() cannot recognize comment line.
  3149. * src/Netrc.cc
  3150. * src/Util.h
  3151. * test/NetrcTest.cc
  3152. * test/sample.netrc
  3153. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3154. Fixed typo
  3155. * src/BtDependency.cc
  3156. * src/BtRejectMessage.cc
  3157. * src/FtpConnection.cc
  3158. * src/HttpHeaderProcessor.h
  3159. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. Fixed lintian report in man page
  3161. * doc/aria2c.1.txt
  3162. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3163. Release 1.6.2
  3164. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3165. Updated Ukrainian translation. Thanks to all translators.
  3166. * po/uk.po
  3167. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3168. Updated translation template
  3169. * po
  3170. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3171. Bump up version number to 1.6.2
  3172. * configure.ac
  3173. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3174. Updated licence message in -v output.
  3175. * src/version_usage.cc
  3176. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3177. Replaced aria2 with aria2c in help message.
  3178. * src/version_usage.cc
  3179. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3180. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  3181. * src/version_usage.cc
  3182. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3183. Quoted localedir
  3184. * src/Makefile.am
  3185. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3186. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  3187. utime. Check header for utime.h.
  3188. * configure.ac
  3189. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3190. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  3191. * configure.ac
  3192. * src/daemon.cc
  3193. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3194. Don't set localedir manually. Leave it to autoconf.
  3195. * configure.ac
  3196. * src/Makefile.am
  3197. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3198. Added --install to ACLOCAL_AMFLAGS.
  3199. Removed m4 from SUBDIRS.
  3200. Updated automake 1.11 and autoconf 2.64.
  3201. Replaced some obsolute macros with new one.
  3202. * Makefile.am
  3203. * configure.ac
  3204. * m4/aria2_arg.m4
  3205. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3206. Removed Makefile.am in m4 directory.
  3207. * configure.ac
  3208. * m4/ChangeLog
  3209. * m4/Makefile.am
  3210. * m4/Makefile.in
  3211. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3212. Removed unused m4 macros.
  3213. * m4/intldir.m4
  3214. * m4/inttypes.m4
  3215. * m4/isc-posix.m4
  3216. * m4/libgnutls-extra.m4
  3217. * m4/ulonglong.m4
  3218. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3219. Fixed the bug that causes segmentation fault if
  3220. req->getCurrentUrl() contains printf formatting characters such as
  3221. %d. The statement that causes this bug is useless and removed.
  3222. * src/AbstractCommand.cc
  3223. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3224. * Release 1.6.1
  3225. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3226. Updated Simplified Chinese translation. Thanks to translators.
  3227. * po/zh_CN.po
  3228. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Updated translation template
  3230. * po
  3231. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Bump up version number to 1.6.1
  3233. * configure.ac
  3234. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3235. Changed interval from 120 to 60 for dropping inactive peer.
  3236. * src/DefaultBtInteractive.cc
  3237. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3238. Updated man page for --user-agent and --peer-id-prefix option.
  3239. * doc/aria2c.1.txt
  3240. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3241. Code clean up
  3242. * src/BtPostDownloadHandler.cc
  3243. * src/ContentTypeRequestGroupCriteria.cc
  3244. * src/ContentTypeRequestGroupCriteria.h
  3245. * src/DownloadHandlerConstants.cc
  3246. * src/DownloadHandlerConstants.h
  3247. * src/DownloadHandlerFactory.cc
  3248. * src/MetalinkPostDownloadHandler.cc
  3249. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3250. Don't save control file when aria2 exists while checking piece
  3251. hash(behavior of -V option). If control file doesn't exist when
  3252. aria2 launched, the completed length in saved control file will be
  3253. 0 byte and this confuses user. disableSaveControlFile() is called
  3254. in RequestGroup::processCheckIntegrityEntry().
  3255. enableSaveControlFile() will be called after hash checking is
  3256. done. See CheckIntegrityCommand.
  3257. * src/CheckIntegrityCommand.cc
  3258. * src/RequestGroup.cc
  3259. * src/RequestGroup.h
  3260. * src/RequestGroupMan.cc
  3261. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3262. Included version number in Peer ID and client version. Peer ID
  3263. now starts with "aria2/VERSION-", where VERSION is
  3264. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  3265. * src/DefaultBtInteractive.cc
  3266. * src/OptionHandlerFactory.cc
  3267. * src/bittorrent_helper.cc
  3268. * src/bittorrent_helper.h
  3269. * src/main.cc
  3270. * src/usage_text.h
  3271. * test/BittorrentHelperTest.cc
  3272. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3273. Fixed memory leak.
  3274. * src/DownloadCommand.cc
  3275. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3276. Removed server, port, user and passwd key from options before
  3277. XMLRPC::Client.call since they are not options of aria2.
  3278. * doc/xmlrpc/aria2mon
  3279. * doc/xmlrpc/aria2rpc
  3280. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3281. Included version number in user-agent string.
  3282. * src/OptionHandlerFactory.cc
  3283. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3284. Fixed the bug that the option values changed by XML-RPC
  3285. method(changeOption and changeGlobalOption) are overwritten to the
  3286. previous value by the next these request which doesn't contain
  3287. that option value. Supporse max-download-limit is initially 0. You
  3288. changed this value to 100K by changeOption. Then you issue
  3289. changeOption request to change max-upload-limit to 50K. This
  3290. second request doesn't contain xml-download-limit, so it is back
  3291. to initial value, 0. Another improvement is that exception is
  3292. thrown when changeOption and changeGlobalOption request contains
  3293. option name which doesn't allowed in each request.
  3294. * src/DownloadEngine.h
  3295. * src/XmlRpcMethod.cc
  3296. * src/XmlRpcMethod.h
  3297. * src/XmlRpcMethodImpl.cc
  3298. * src/download_helper.cc
  3299. * src/download_helper.h
  3300. * test/XmlRpcMethodTest.cc
  3301. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3302. Added missing MetalinkParserStateImpl.{cc,h}
  3303. * src/MetalinkParserStateImpl.cc
  3304. * src/MetalinkParserStateImpl.h
  3305. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3306. Put all MetalinkParserState subclasses into
  3307. MetalinkParserStateImpl.cc. Use stack to track element structure.
  3308. * src/FileMetalinkParserState.cc: Removed
  3309. * src/FileMetalinkParserState.h: Removed
  3310. * src/FilesMetalinkParserState.cc: Removed
  3311. * src/FilesMetalinkParserState.h: Removed
  3312. * src/FinMetalinkParserState.cc: Removed
  3313. * src/FinMetalinkParserState.h: Removed
  3314. * src/HashMetalinkParserState.cc: Removed
  3315. * src/HashMetalinkParserState.h: Removed
  3316. * src/InitialMetalinkParserState.cc: Removed
  3317. * src/InitialMetalinkParserState.h: Removed
  3318. * src/LanguageMetalinkParserState.cc: Removed
  3319. * src/LanguageMetalinkParserState.h: Removed
  3320. * src/Makefile.am
  3321. * src/MetalinkMetalinkParserState.cc: Removed
  3322. * src/MetalinkMetalinkParserState.h: Removed
  3323. * src/MetalinkParserState.h
  3324. * src/MetalinkParserStateMachine.cc
  3325. * src/MetalinkParserStateMachine.h
  3326. * src/OSMetalinkParserState.cc: Removed
  3327. * src/OSMetalinkParserState.h: Removed
  3328. * src/PieceHashMetalinkParserState.cc: Removed
  3329. * src/PieceHashMetalinkParserState.h: Removed
  3330. * src/PiecesMetalinkParserState.cc: Removed
  3331. * src/PiecesMetalinkParserState.h: Removed
  3332. * src/ResourcesMetalinkParserState.cc: Removed
  3333. * src/ResourcesMetalinkParserState.h: Removed
  3334. * src/SignatureMetalinkParserState.cc: Removed
  3335. * src/SignatureMetalinkParserState.h: Removed
  3336. * src/SizeMetalinkParserState.cc: Removed
  3337. * src/SizeMetalinkParserState.h: Removed
  3338. * src/SkipTagMetalinkParserState.cc: Removed
  3339. * src/SkipTagMetalinkParserState.h: Removed
  3340. * src/URLMetalinkParserState.cc: Removed
  3341. * src/URLMetalinkParserState.h: Removed
  3342. * src/VerificationMetalinkParserState.cc: Removed
  3343. * src/VerificationMetalinkParserState.h: Removed
  3344. * src/VersionMetalinkParserState.cc: Removed
  3345. * src/VersionMetalinkParserState.h: Removed
  3346. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3347. Move all functions in PeerMessageUtil to bittorrent_helper.
  3348. * src/BtBitfieldMessage.cc
  3349. * src/BtBitfieldMessageValidator.h
  3350. * src/BtExtendedMessage.cc
  3351. * src/BtHandshakeMessage.cc
  3352. * src/BtHandshakeMessageValidator.h
  3353. * src/BtPieceMessage.cc
  3354. * src/BtPieceMessageValidator.h
  3355. * src/BtPortMessage.cc
  3356. * src/DHTFindNodeReplyMessage.cc
  3357. * src/DHTGetPeersReplyMessage.cc
  3358. * src/DHTMessageFactoryImpl.cc
  3359. * src/DHTRoutingTableDeserializer.cc
  3360. * src/DHTRoutingTableSerializer.cc
  3361. * src/DHTTokenTracker.cc
  3362. * src/DefaultBtMessageFactory.cc
  3363. * src/IndexBtMessage.cc
  3364. * src/IndexBtMessage.h
  3365. * src/IndexBtMessageValidator.h
  3366. * src/Makefile.am
  3367. * src/PeerMessageUtil.cc: Removed.
  3368. * src/PeerMessageUtil.h: Removed.
  3369. * src/RangeBtMessage.cc
  3370. * src/RangeBtMessage.h
  3371. * src/RangeBtMessageValidator.h
  3372. * src/UTPexExtensionMessage.cc
  3373. * src/ZeroBtMessage.cc
  3374. * src/ZeroBtMessage.h
  3375. * src/bittorrent_helper.cc
  3376. * src/bittorrent_helper.h
  3377. * test/BittorrentHelperTest.cc
  3378. * test/BtAllowedFastMessageTest.cc
  3379. * test/BtBitfieldMessageTest.cc
  3380. * test/BtCancelMessageTest.cc
  3381. * test/BtChokeMessageTest.cc
  3382. * test/BtExtendedMessageTest.cc
  3383. * test/BtHandshakeMessageTest.cc
  3384. * test/BtHaveAllMessageTest.cc
  3385. * test/BtHaveMessageTest.cc
  3386. * test/BtHaveNoneMessageTest.cc
  3387. * test/BtInterestedMessageTest.cc
  3388. * test/BtNotInterestedMessageTest.cc
  3389. * test/BtPieceMessageTest.cc
  3390. * test/BtPortMessageTest.cc
  3391. * test/BtRejectMessageTest.cc
  3392. * test/BtRequestMessageTest.cc
  3393. * test/BtSuggestPieceMessageTest.cc
  3394. * test/BtUnchokeMessageTest.cc
  3395. * test/DHTFindNodeReplyMessageTest.cc
  3396. * test/DHTGetPeersReplyMessageTest.cc
  3397. * test/DHTMessageFactoryImplTest.cc
  3398. * test/DHTRoutingTableDeserializerTest.cc
  3399. * test/DHTRoutingTableSerializerTest.cc
  3400. * test/DefaultBtMessageFactoryTest.cc
  3401. * test/DefaultExtensionMessageFactoryTest.cc
  3402. * test/Makefile.am
  3403. * test/PeerListProcessorTest.cc
  3404. * test/PeerMessageUtilTest.cc: Removed.
  3405. * test/UTPexExtensionMessageTest.cc
  3406. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3407. Limit the size of values list when sending get_peers reply.
  3408. * src/DHTGetPeersReplyMessage.cc
  3409. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3410. Updated banner
  3411. * doc/xmlrpc/aria2rpc
  3412. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3413. Added missing help message for remove command.
  3414. * doc/xmlrpc/aria2rpc
  3415. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3416. Generated configure and config.h.in
  3417. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  3418. Add check for fork(), which is missing on MinGW
  3419. * src/daemon.cc
  3420. * configure.ac
  3421. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3422. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  3423. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  3424. Util::httpGMT().
  3425. * src/Util.cc
  3426. * src/Util.h
  3427. * test/UtilTest.cc
  3428. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3429. * Release 1.6.0
  3430. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3431. Fixed a path to xmlrpc/README.txt
  3432. * doc/Makefile.am
  3433. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3434. Added XML-RPC in -v Configuration output.
  3435. * src/FeatureConfig.cc
  3436. * src/FeatureConfig.h
  3437. * test/FeatureConfigTest.cc
  3438. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3439. Updated Bulgarian, Russian, Slovak and Japanese
  3440. translations. Thanks to all translators.
  3441. * po/bg.po
  3442. * po/ja.po
  3443. * po/ru.po
  3444. * po/sk.po
  3445. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3446. Removed --retry-wait option from aria2rpc
  3447. * doc/xmlrpc/aria2rpc
  3448. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Removed --retry-wait option from man page.
  3450. * doc/aria2c.1.txt
  3451. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3452. Removed --retry-wait option since the current architecture doesn't
  3453. allow sleep for particular URI.
  3454. * src/AbstractCommand.cc
  3455. * src/OptionHandlerFactory.cc
  3456. * src/download_helper.cc
  3457. * src/prefs.cc
  3458. * src/prefs.h
  3459. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3460. Removed Retry-After header support. Since the current architecture
  3461. doesn't allow sleep for particular URI.
  3462. * src/HttpSkipResponseCommand.cc
  3463. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3464. Updated the help message for --daemon option.
  3465. * doc/aria2c.1.txt
  3466. * src/usage_text.h
  3467. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3468. Added our own daemon() function for systems which desn't have
  3469. daemon(3).
  3470. * configure.ac
  3471. * src/Makefile.am
  3472. * src/daemon.cc
  3473. * src/daemon.h
  3474. * src/option_processing.cc
  3475. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3476. Simplified File::getCurrentDir()
  3477. * src/File.cc
  3478. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3479. Use exit() instead of _exit
  3480. * src/RequestGroupMan.cc
  3481. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3482. Replaced "CATEGORY" with "TAGS".
  3483. * src/usage_text.h
  3484. * doc/aria2c.1.txt
  3485. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3486. Updated the help message for --help option.
  3487. * src/usage_text.h
  3488. * doc/aria2c.1.txt
  3489. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3490. Updated man page for added help tags.
  3491. * doc/aria2c.1.txt
  3492. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3493. Added help category #file. Added #file tag to the options related
  3494. to downloaded file.
  3495. * src/OptionHandlerFactory.cc
  3496. * src/help_tags.h
  3497. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3498. Added help categories: #cookie and #hook. Added #https tag to
  3499. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  3500. * src/OptionHandlerFactory.cc
  3501. * src/help_tags.h
  3502. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3503. Made MSG_NOT_FILE translatable.
  3504. * src/message.h
  3505. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3506. Updated man page for --help option.
  3507. * doc/aria2c.1.txt
  3508. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3509. Updated doc.
  3510. * src/XmlRpcMethod.h
  3511. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3512. Help category now starts with "#" to distinguish a category from
  3513. keyword search. For example, "http" categroy is now "#http". You
  3514. can type "--help=#http" to get explanation of options related to
  3515. http. If '#' is omitted, then the argument is treated as a keyword
  3516. and aria2 searches options whose name includes the keyword and
  3517. print matched ones. For example, "--help=http" will show options
  3518. whose name includes "http".
  3519. * src/OptionHandlerFactory.cc
  3520. * src/help_tags.h
  3521. * src/usage_text.h
  3522. * src/version_usage.cc
  3523. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3524. Documented missing experimental tag and newly added xml-rpc tag in
  3525. man page.
  3526. * doc/aria2c.1.txt
  3527. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3528. Added xml-rpc help tag. Tagged xml-rpc related options with
  3529. xml-rpc tag.
  3530. * src/OptionHandlerFactory.cc
  3531. * src/help_tags.h
  3532. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3533. Updated message when a path is not a file. Updated common message
  3534. for wrong option.
  3535. * src/OptionHandlerException.cc
  3536. * src/message.h
  3537. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3538. Use File::isFile() instead of File::exists(). Updated message when
  3539. a path is not a file.
  3540. * src/OptionHandlerImpl.cc
  3541. * src/message.h
  3542. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3543. Fixed the bug that server performence profile is not updated when
  3544. aria2c was terminated by emergency shutdown.
  3545. * src/TrackerWatcherCommand.cc
  3546. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3547. Use LocalFilePathOptionHandler for -T and -M option.
  3548. Updated message of MSG_FILE_NOT_EXIST.
  3549. * src/OptionHandlerFactory.cc
  3550. * src/message.h
  3551. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Added LocalFilePathOptionHandler which check whether the specified
  3553. file path does exist or not.
  3554. * src/OptionHandlerImpl.cc
  3555. * src/message.h
  3556. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3557. Updated wiki page URI.
  3558. * README
  3559. * doc/aria2c.1.txt
  3560. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3561. Added README.txt for xmlrpc directory.
  3562. * doc/Makefile.am
  3563. * doc/xmlrpc/README.txt
  3564. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3565. Bump up version number to 1.6.0.
  3566. * configure.ac
  3567. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3568. Added XML-RPC client scripts written in ruby.
  3569. * doc/Makefile.am
  3570. * doc/xmlrpc/aria2mon
  3571. * doc/xmlrpc/aria2rpc
  3572. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3573. Added support for IPv6 literal address in URI. Now aria2 can
  3574. handle URI such as http://[::1]/
  3575. * src/HttpRequest.cc
  3576. * src/HttpRequest.h
  3577. * src/Request.cc
  3578. * src/Request.h
  3579. * test/HttpRequestTest.cc
  3580. * test/OptionHandlerTest.cc
  3581. * test/RequestTest.cc
  3582. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3583. Fixed the bug that HTTP request header for XML-RPC request is not
  3584. parsed properly.
  3585. * src/HttpHeader.cc
  3586. * src/HttpHeaderProcessor.cc
  3587. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3588. Fixed the bug that XML-RPC authorization might be done before HTTP
  3589. request header is fully received.
  3590. * src/HttpServerCommand.cc
  3591. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3592. Documented --xml-rpc-listen-all option in man page.
  3593. * doc/aria2c.1.txt
  3594. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3595. Added --xml-rpc-listen-all option. If true is given to this
  3596. option, aria2 listens incoming XML-RPC requests on all network
  3597. interfaces. If false is given, listens only on local loopback
  3598. interface. The default value is false.
  3599. * src/HttpListenCommand.cc
  3600. * src/OptionHandlerFactory.cc
  3601. * src/SocketCore.cc
  3602. * src/SocketCore.h
  3603. * src/prefs.cc
  3604. * src/prefs.h
  3605. * src/usage_text.h
  3606. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3607. * Release 1.5.2
  3608. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3609. Updated Ukrainian and Russian translations. Thanks to all
  3610. translators.
  3611. * po/ru.po
  3612. * po/uk.po
  3613. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3614. Bump up version number to 1.5.2
  3615. * configure.ac
  3616. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3617. Get comment, comment.utf-8, created by and creation date from
  3618. .torrent file and print them in -S output.
  3619. * src/bittorrent_helper.cc
  3620. * src/bittorrent_helper.h
  3621. * test/BittorrentHelperTest.cc
  3622. * test/test.torrent
  3623. * test/utf8.torrent
  3624. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3625. Show exact file size along in -S option output.
  3626. * src/Util.h
  3627. * src/bittorrent_helper.cc
  3628. * test/UtilTest.cc
  3629. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3630. Avoided unnecessary memory allocation in
  3631. BitfieldMan::getCompletedLength().
  3632. * src/BitfieldMan.cc
  3633. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3634. Fixed the bug that download fails if
  3635. SocketCore::establishConnection() throws exception and aria2
  3636. doesn't try another address.
  3637. * src/AbstractCommand.cc
  3638. * src/InitiateConnectionCommand.cc
  3639. * src/message.h
  3640. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3641. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  3642. detected properly.
  3643. * m4/sqlite3.m4
  3644. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3645. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  3646. because it causes compile error if PARAMS macro is defined.
  3647. * src/XmlRpcElements.cc
  3648. * src/XmlRpcElements.h
  3649. * src/XmlRpcRequestParserStateImpl.cc
  3650. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3651. * Release 1.5.1
  3652. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3653. Bump up version number to 1.5.1
  3654. * configure.ac
  3655. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3656. Fixed compile error without BitTorrent support
  3657. * src/DefaultBtProgressInfoFile.cc
  3658. * src/DownloadEngine.cc
  3659. * src/DownloadEngine.h
  3660. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. Added missing '=' in Download Results
  3662. * src/RequestGroupMan.cc
  3663. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Fixed compiler warning
  3665. * src/DefaultBtProgressInfoFile.cc
  3666. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3667. Fixed compiler warning on 32bit systems.
  3668. * src/DownloadCommand.cc
  3669. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3670. Call flush from ServerStatMan::save()
  3671. * src/ServerStatMan.cc
  3672. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3673. Check stream status after file is opened.
  3674. * src/CookieStorage.cc
  3675. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3676. Rewritten Signature::save()
  3677. * src/Signature.cc
  3678. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3679. Rewritten RequestGroupMan::saveServerStat()
  3680. * src/RequestGroupMan.cc
  3681. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3682. Rewritten stream error handling
  3683. * src/DHTAutoSaveCommand.cc
  3684. * src/DHTRoutingTableDeserializer.cc
  3685. * src/DHTRoutingTableSerializer.cc
  3686. * src/DHTSetup.cc
  3687. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3688. Check stream status after file is opened.
  3689. * src/DefaultBtProgressInfoFile.cc
  3690. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3691. Rewritten stream error handling
  3692. * src/DefaultBtProgressInfoFile.cc
  3693. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3694. Make sure that stream is closed before renaming file. Unit test
  3695. fails on mingw32 in the previous implementation.
  3696. * src/CookieStorage.cc
  3697. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. Fixed the unit test error without sqlite3
  3699. * test/CookieStorageTest.cc
  3700. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3701. Fixed the undefined reference error
  3702. * test/HttpResponseTest.cc
  3703. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3704. * Release 1.5.0
  3705. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  3707. Ukrainian translations. Thanks to all translators.
  3708. * po/ru.po
  3709. * po/it.po
  3710. * po/da.po
  3711. * po/bg.po
  3712. * po/ja.po
  3713. * po/uk.po
  3714. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3715. Added missing src/Logger.cc
  3716. * src/Logger.cc
  3717. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3718. Rewritten Logger to avoiding constly virtual call.
  3719. * src/LogFactory.cc
  3720. * src/LogFactory.h
  3721. * src/Logger.h
  3722. * src/Makefile.am
  3723. * src/Makefile.in
  3724. * src/NullLogger.h: Removed.
  3725. * src/SimpleLogger.cc
  3726. * src/SimpleLogger.h
  3727. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3728. Updated doc
  3729. * src/main.cc
  3730. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3731. Updated debug log message
  3732. * src/AbstractCommand.cc
  3733. * src/message.h
  3734. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3735. Avoid to create zombie process when commands specified in
  3736. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  3737. X and NetBSD.
  3738. * src/main.cc
  3739. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3740. Fixed typo
  3741. * src/usage_text.h
  3742. * doc/aria2c.1.txt
  3743. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Documented 'errorCode' of tellStatus in man page.
  3745. * doc/aria2c.1.txt
  3746. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  3748. This key is only available for stopped/completed downloads and its
  3749. value is the error code defined in EXIT STATUS in man page.
  3750. * src/XmlRpcMethodImpl.cc
  3751. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3752. Fixed the bug that session download length is not updated when
  3753. PeerStat is not fastest one.
  3754. * src/SegmentMan.cc
  3755. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Updated doc.
  3757. * doc/aria2c.1.txt
  3758. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3759. Updated doc.
  3760. * src/AbstractCommand.cc
  3761. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3762. Handle the case when DownloadContext has no FileEntry.
  3763. * src/XmlRpcMethodImpl.cc
  3764. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Handle the situation where struct option.name is char *.
  3766. * configure.ac
  3767. * src/OptionParser.cc
  3768. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. Code cleanup
  3770. * src/AbstractCommand.cc
  3771. * src/DownloadCommand.cc
  3772. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3773. Use option of each download to create AuthConfig instead of global
  3774. option.
  3775. * src/AuthConfigFactory.cc
  3776. * src/AuthConfigFactory.h
  3777. * src/FtpNegotiationCommand.cc
  3778. * src/HttpRequest.cc
  3779. * src/HttpRequest.h
  3780. * src/HttpRequestCommand.cc
  3781. * src/HttpSkipResponseCommand.cc
  3782. * src/MultiUrlRequestInfo.cc
  3783. * test/AuthConfigFactoryTest.cc
  3784. * test/FtpConnectionTest.cc
  3785. * test/HttpRequestTest.cc
  3786. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3787. Don't call prepareForRetry(1) if all segments are ignored in
  3788. SegmentMan.
  3789. * src/AbstractCommand.cc
  3790. * src/BitfieldMan.cc
  3791. * src/BitfieldMan.h
  3792. * src/SegmentMan.cc
  3793. * src/SegmentMan.h
  3794. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3795. Removed FileEntry::getAssociatedUris()
  3796. * src/FileEntry.h
  3797. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3798. Updated doc: TODO1.5 -> TODO
  3799. * src/FileEntry.cc
  3800. * src/HttpResponseCommand.cc
  3801. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3802. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3803. involved.
  3804. * src/RequestGroup.cc
  3805. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. Eliminated duplicated filterBitfield initialization code.
  3807. * src/BitfieldMan.cc
  3808. * src/BitfieldMan.h
  3809. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3810. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3811. relatively naive approach, though). For DownloadFailureException,
  3812. we handle the case when req is null properly.
  3813. * src/AbstractCommand.cc
  3814. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3815. Added function returning suffix of control file to
  3816. DefaultBtProgressInfoFile.
  3817. * src/DefaultBtProgressInfoFile.cc
  3818. * src/DefaultBtProgressInfoFile.h
  3819. * src/RequestGroup.cc
  3820. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3821. Documented getVersion in man page.
  3822. * doc/aria2c.1.txt
  3823. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3824. Documented type of offset and num for tellWaiting xml-rpc method.
  3825. * doc/aria2c.1.txt
  3826. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3827. Implemented getVersion xml-rpc method. This method returns struct
  3828. which has 2 key-value pairs: "version" key is associated to the
  3829. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3830. associated to the list of enabled features, such as "Async DNS",
  3831. "BitTorrent".
  3832. * src/FeatureConfig.h
  3833. * src/XmlRpcMethodFactory.cc
  3834. * src/XmlRpcMethodImpl.cc
  3835. * src/XmlRpcMethodImpl.h
  3836. * test/XmlRpcMethodTest.cc
  3837. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3838. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3839. for compatibility issue.
  3840. * src/SocketCore.cc
  3841. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3842. Fixed compile error with openSSL
  3843. * src/bittorrent_helper.cc
  3844. * src/messageDigest.h
  3845. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3846. Removed bad code: setting certificate type priority to key
  3847. exchange priority.
  3848. * src/SocketCore.cc
  3849. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3850. Disconnect seeder if client is also in seed state.
  3851. * src/BtBitfieldMessage.cc
  3852. * src/BtHaveAllMessage.cc
  3853. * src/BtHaveMessage.cc
  3854. * src/message.h
  3855. * test/BtBitfieldMessageTest.cc
  3856. * test/BtHaveAllMessageTest.cc
  3857. * test/BtHaveMessageTest.cc
  3858. * test/MockPieceStorage.h
  3859. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3860. Keep CreateRequestCommand in queue when no segment is available so
  3861. that they can pick up pieces which slow BitTorrent peers are
  3862. downloading.
  3863. * src/AbstractCommand.cc
  3864. * src/CreateRequestCommand.cc
  3865. * src/CreateRequestCommand.h
  3866. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3867. --bt-stop-timeout now only checks download speed.
  3868. * src/BtStopDownloadCommand.cc
  3869. * src/BtStopDownloadCommand.h
  3870. * src/BtSetup.cc
  3871. * src/usage_text.h
  3872. * doc/aria2c.1.txt
  3873. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3874. Fixed compile error regarding BUFSIZE.
  3875. * src/DownloadCommand.cc
  3876. * src/DownloadCommand.h
  3877. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Documented tellWaiting xml-rpc method in man page.
  3879. * doc/aria2c.1.txt
  3880. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3881. Bump up version number to 1.5.0
  3882. * configure.ac
  3883. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3884. Removed resolved TODO1.5
  3885. * src/AbstractCommand.cc
  3886. * src/DownloadCommand.cc
  3887. * src/RequestGroup.cc
  3888. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3889. Release pooled and in-flight Request objectsand URIResult objects
  3890. in FileEntry after download completed.
  3891. * src/DownloadContext.cc
  3892. * src/DownloadContext.h
  3893. * src/FileEntry.cc
  3894. * src/FileEntry.h
  3895. * src/RequestGroup.cc
  3896. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3897. Set manual and source attribute in aria2c.1.txt
  3898. * doc/aria2c.1.txt
  3899. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3900. Documented that the default value of --use-head is 'false' in man
  3901. page.
  3902. * doc/aria2c.1.txt
  3903. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Added bt-stop-timeout option to -i list.
  3905. * doc/aria2c.1.txt
  3906. * src/download_helper.cc
  3907. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3908. Fixed typo
  3909. * doc/aria2c.1.txt
  3910. * src/usage_text.h
  3911. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3912. Removed peer-id-prefix option from -i list.
  3913. * doc/aria2c.1.txt
  3914. * src/download_helper.cc
  3915. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3916. Fixed typo
  3917. * doc/aria2c.1.txt
  3918. * src/usage_text.h
  3919. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. Documented --bt-stop-timeout option in man page.
  3921. * doc/aria2c.1.txt
  3922. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. Updated README regarding multi-file torrent web-seeding.
  3924. * doc/README.txt
  3925. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3926. Updated man page regarding multi-file torrent web-seeding.
  3927. * doc/aria2c.1.txt
  3928. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3929. Updated doc
  3930. * src/version_usage.cc
  3931. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3932. Winsock select() doesn't work if no socket is in FD_SET. To
  3933. overcome this problem, a dummy socket is added to FD_SET and it is
  3934. given to select().
  3935. * src/SelectEventPoll.cc
  3936. * src/SelectEventPoll.h
  3937. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Disabled --use-head option by default because --use-head=true
  3939. causes problems on some web sites.
  3940. * src/OptionHandlerFactory.cc
  3941. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3942. Print URL List in -S option for torrent.
  3943. * src/bittorrent_helper.cc
  3944. * src/bittorrent_helper.h
  3945. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3946. Allocate buffer in ctor of DownloadCommand.
  3947. * src/DownloadCommand.cc
  3948. * src/DownloadCommand.h
  3949. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3950. Removed DiskAdaptor::onDownloadComplete()
  3951. * src/DirectDiskAdaptor.cc
  3952. * src/DirectDiskAdaptor.h
  3953. * src/DiskAdaptor.h
  3954. * src/MultiDiskAdaptor.cc
  3955. * src/MultiDiskAdaptor.h
  3956. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3957. Committed missing BtStopDownloadCommand.{cc,h}
  3958. * src/BtStopDownloadCommand.cc
  3959. * src/BtStopDownloadCommand.h
  3960. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3961. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3962. download if the download speed is 0 and the number of seeder is 0
  3963. in consecutive SEC seconds. By default, this function is disabled.
  3964. * src/BtSetup.cc
  3965. * src/Makefile.am
  3966. * src/OptionHandlerFactory.cc
  3967. * src/prefs.cc
  3968. * src/prefs.h
  3969. * src/usage_text.h
  3970. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3971. Removed the call to DiskAdaptor::onDownloadComplete() from
  3972. BtCheckIntegrityEntry and DefaultPieceStorage.
  3973. * src/BtCheckIntegrityEntry.cc
  3974. * src/DefaultPieceStorage.cc
  3975. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3976. Commented out throw statements when number of piece is 0 to
  3977. download 0 length torrent.
  3978. * src/bittorrent_helper.cc
  3979. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3980. Call RequestGroup::createNextCommandWithAdj() from
  3981. BtFileAllocationEntry if at least one FileEntry has URI. The
  3982. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3983. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3984. * src/BtFileAllocationEntry.cc
  3985. * src/FileEntry.h
  3986. * src/RequestGroup.cc
  3987. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3988. Generate peer ID after SimpleRandomizer is initialized.
  3989. * src/main.cc
  3990. * src/option_processing.cc
  3991. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3992. Removed unused method argument.
  3993. * src/CreateRequestCommand.cc
  3994. * src/RequestGroup.cc
  3995. * src/RequestGroup.h
  3996. * src/RequestGroupMan.cc
  3997. * src/TrackerWatcherCommand.cc
  3998. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3999. Made URI reusing function work.
  4000. * src/CreateRequestCommand.cc
  4001. * src/FileEntry.cc
  4002. * src/FileEntry.h
  4003. * test/FileEntryTest.cc
  4004. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4005. Add formerly fastest PeerStat's sessionDownloadLength to new
  4006. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  4007. bytes in a session.
  4008. * src/PeerStat.cc
  4009. * src/SegmentMan.cc
  4010. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4011. If pipelining is enabled, we can always pool socket.
  4012. * src/HttpDownloadCommand.cc
  4013. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4014. In a single file download, file size becomes known just after
  4015. downloading, set total length to FileEntry object when download
  4016. completed.
  4017. * src/DownloadCommand.cc
  4018. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4019. Use std::vector::reserve() for fileEntries and pieceHashes in
  4020. bittorrent_helper
  4021. * src/bittorrent_helper.cc
  4022. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4023. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  4024. Removed hidden option PREF_RESET_URI.
  4025. * src/AbstractCommand.cc
  4026. * src/OptionHandlerFactory.cc
  4027. * src/prefs.cc
  4028. * src/prefs.h
  4029. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4030. Removed unused variable/function.
  4031. * src/PeerStat.h
  4032. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4033. Show first URL in Download Results if file path is not available.
  4034. * src/FileEntry.h
  4035. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4036. Throw exception if file path doesn't exist in FTP URL.
  4037. * src/InitiateConnectionCommandFactory.cc
  4038. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4039. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  4040. * src/BitfieldMan.cc
  4041. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4042. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  4043. of PeerStat in SegmentMan. peerStats is used for calculating
  4044. download speed. Therefore all active PeerStats should be in
  4045. there. Another one is _fastestPeerStats and it only contains
  4046. fastest PeerStat for each hostname/protocol pair. They are used
  4047. for updating ServerStat.
  4048. * src/DownloadCommand.cc
  4049. * src/Request.h
  4050. * src/RequestGroupMan.cc
  4051. * src/SegmentMan.cc
  4052. * src/SegmentMan.h
  4053. * test/SegmentManTest.cc
  4054. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4055. Try all available addresses returned by DNS until it gets
  4056. connected in HTTP(S)/FTP download
  4057. * src/AbstractCommand.cc
  4058. * src/AbstractCommand.h
  4059. * src/AbstractProxyRequestCommand.cc
  4060. * src/AbstractProxyRequestCommand.h
  4061. * src/DNSCache.h
  4062. * src/DownloadEngine.cc
  4063. * src/DownloadEngine.h
  4064. * src/FtpInitiateConnectionCommand.cc
  4065. * src/FtpInitiateConnectionCommand.h
  4066. * src/FtpNegotiationCommand.cc
  4067. * src/FtpNegotiationCommand.h
  4068. * src/HttpInitiateConnectionCommand.cc
  4069. * src/HttpInitiateConnectionCommand.h
  4070. * src/HttpRequestCommand.cc
  4071. * src/HttpRequestCommand.h
  4072. * src/InitiateConnectionCommand.cc
  4073. * src/InitiateConnectionCommand.h
  4074. * test/DNSCacheTest.cc
  4075. * test/Makefile.am
  4076. * test/SimpleDNSCacheTest.cc
  4077. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4078. Updated doc
  4079. * src/download_helper.cc
  4080. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4081. Refactored fieldMan ctor.
  4082. * src/BitfieldMan.cc
  4083. * src/BitfieldMan.h
  4084. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4085. Don't print "No files to download." message if -S is given.
  4086. * src/main.cc
  4087. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4088. Set referer and method to newly created Request object.
  4089. * src/CreateRequestCommand.cc
  4090. * src/FileEntry.cc
  4091. * src/FileEntry.h
  4092. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4093. Removed ctor of AbstractCommand which doesn't take FileEntry.
  4094. * src/AbstractCommand.cc
  4095. * src/AbstractCommand.h
  4096. * src/CreateRequestCommand.cc
  4097. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4098. Get proxy download working
  4099. * src/AbstractProxyRequestCommand.cc
  4100. * src/AbstractProxyRequestCommand.h
  4101. * src/AbstractProxyResponseCommand.cc
  4102. * src/AbstractProxyResponseCommand.h
  4103. * src/FtpInitiateConnectionCommand.cc
  4104. * src/FtpTunnelRequestCommand.cc
  4105. * src/FtpTunnelRequestCommand.h
  4106. * src/FtpTunnelResponseCommand.cc
  4107. * src/FtpTunnelResponseCommand.h
  4108. * src/HttpInitiateConnectionCommand.cc
  4109. * src/HttpProxyRequestCommand.cc
  4110. * src/HttpProxyRequestCommand.h
  4111. * src/HttpProxyResponseCommand.cc
  4112. * src/HttpProxyResponseCommand.h
  4113. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4114. Use SegmentMan::getSegment(cuid) for single file download.
  4115. * src/AbstractCommand.cc
  4116. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4117. Fixed bufSize calculation
  4118. * src/DownloadCommand.cc
  4119. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4120. Don't append "/" if base URI ends with "/".
  4121. * src/bittorrent_helper.cc
  4122. * test/url-list-multiFile.torrent
  4123. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4124. HTTP pipelining is now working. Fixed Segmention fault in
  4125. BitfieldMan's copy ctor.
  4126. * src/AbstractCommand.cc
  4127. * src/BitfieldMan.cc
  4128. * src/BitfieldMan.h
  4129. * src/DownloadCommand.cc
  4130. * src/HttpDownloadCommand.cc
  4131. * src/HttpRequest.cc
  4132. * src/SegmentMan.cc
  4133. * src/SegmentMan.h
  4134. * test/BitfieldManTest.cc
  4135. * test/SegmentManTest.cc
  4136. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4137. Removed ServerHost. Same functionality is implemented using
  4138. FileEntry's in-flight Request objects.
  4139. * src/AbstractCommand.cc
  4140. * src/BtDependency.cc
  4141. * src/CreateRequestCommand.cc
  4142. * src/FileEntry.cc
  4143. * src/FileEntry.h
  4144. * src/FtpNegotiationCommand.cc
  4145. * src/HttpResponseCommand.cc
  4146. * src/Makefile.am
  4147. * src/Metalink2RequestGroup.cc
  4148. * src/RequestGroup.cc
  4149. * src/RequestGroup.h
  4150. * src/ServerHost.cc: Removed
  4151. * src/ServerHost.h: Removed
  4152. * test/BtDependencyTest.cc
  4153. * test/FileEntryTest.cc
  4154. * test/RequestGroupTest.cc
  4155. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4156. Rewritten PeerStat handling. In the previous implementation,
  4157. faster command tries to find slower command. In this new
  4158. implementation, slower command tries to find faster command.
  4159. PeerStat is now created in each HTTP/FTP request to get download
  4160. rate correctly. If the download range is small, the download rate
  4161. tends to small and this will occur at the later stage of download.
  4162. * src/AbstractCommand.cc
  4163. * src/DownloadCommand.cc
  4164. * src/FileEntry.cc
  4165. * src/FileEntry.h
  4166. * src/Request.cc
  4167. * src/Request.h
  4168. * src/RequestGroup.h
  4169. * src/RequestGroupMan.cc
  4170. * src/SegmentMan.cc
  4171. * src/SegmentMan.h
  4172. * test/SegmentManTest.cc
  4173. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4174. Removed _uris from RequestGroup. All functions that refer to _uris
  4175. were moved to FileEntry. Exit status code are now defined in
  4176. DownloadResultCode.h.
  4177. * src/AbstractCommand.cc
  4178. * src/AdaptiveURISelector.cc
  4179. * src/AdaptiveURISelector.h
  4180. * src/AutoSaveCommand.cc
  4181. * src/BtPostDownloadHandler.cc
  4182. * src/CheckIntegrityDispatcherCommand.cc
  4183. * src/CookieStorage.cc
  4184. * src/DHTAutoSaveCommand.cc
  4185. * src/DHTBucketRefreshCommand.cc
  4186. * src/DHTEntryPointNameResolveCommand.cc
  4187. * src/DHTInteractionCommand.cc
  4188. * src/DHTPeerAnnounceCommand.cc
  4189. * src/DHTTokenUpdateCommand.cc
  4190. * src/DlAbortEx.h
  4191. * src/DlRetryEx.h
  4192. * src/DownloadCommand.cc
  4193. * src/DownloadContext.h
  4194. * src/DownloadFailureException.h
  4195. * src/DownloadResult.h
  4196. * src/DownloadResultCode.h
  4197. * src/FeedbackURISelector.cc
  4198. * src/FeedbackURISelector.h
  4199. * src/FileEntry.cc
  4200. * src/FileEntry.h
  4201. * src/FtpNegotiationCommand.cc
  4202. * src/HttpListenCommand.cc
  4203. * src/HttpResponseCommand.cc
  4204. * src/HttpServerResponseCommand.cc
  4205. * src/HttpSkipResponseCommand.cc
  4206. * src/InOrderURISelector.cc
  4207. * src/InOrderURISelector.h
  4208. * src/Makefile.am
  4209. * src/Makefile.in
  4210. * src/Metalink2RequestGroup.cc
  4211. * src/MultiUrlRequestInfo.cc
  4212. * src/MultiUrlRequestInfo.h
  4213. * src/OptionHandlerFactory.cc
  4214. * src/PeerListenCommand.cc
  4215. * src/RecoverableException.h
  4216. * src/RequestGroup.cc
  4217. * src/RequestGroup.h
  4218. * src/RequestGroupMan.cc
  4219. * src/RequestGroupMan.h
  4220. * src/TimedHaltCommand.cc
  4221. * src/TrackerWatcherCommand.cc
  4222. * src/URIResult.cc
  4223. * src/URIResult.h
  4224. * src/URISelector.h
  4225. * src/XmlRpcMethodImpl.cc
  4226. * src/bittorrent_helper.cc
  4227. * src/bittorrent_helper.h
  4228. * src/download_helper.cc
  4229. * src/main.cc
  4230. * src/option_processing.cc
  4231. * test/BtDependencyTest.cc
  4232. * test/BtPostDownloadHandlerTest.cc
  4233. * test/CookieStorageTest.cc
  4234. * test/DefaultBtMessageDispatcherTest.cc
  4235. * test/DownloadHandlerFactoryTest.cc
  4236. * test/DownloadHelperTest.cc
  4237. * test/FeedbackURISelectorTest.cc
  4238. * test/FileEntryTest.cc
  4239. * test/InOrderURISelectorTest.cc
  4240. * test/Metalink2RequestGroupTest.cc
  4241. * test/MetalinkPostDownloadHandlerTest.cc
  4242. * test/RequestGroupManTest.cc
  4243. * test/RequestGroupTest.cc
  4244. * test/XmlRpcMethodTest.cc
  4245. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4246. Removed MockBtContext.h
  4247. * test/Makefile.am
  4248. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4249. Removed _currentRequest from StreamCheckIntegrityEntry and
  4250. StreamFileAllocationEntry.
  4251. * src/AbstractCommand.cc
  4252. * src/HttpResponseCommand.cc
  4253. * src/RequestGroup.cc
  4254. * src/StreamCheckIntegrityEntry.cc
  4255. * src/StreamCheckIntegrityEntry.h
  4256. * src/StreamFileAllocationEntry.cc
  4257. * src/StreamFileAllocationEntry.h
  4258. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4259. Rewritten DownloadContext and removed SingleFileDownloadContext
  4260. and BtContext and its derived classes. BitTorrent specific
  4261. attributes are now set by DownloadContext::setAttribute() with key
  4262. bittorrent::BITTORRENT.
  4263. * src/AbstractBtMessage.cc
  4264. * src/AbstractBtMessage.h
  4265. * src/AbstractCommand.cc
  4266. * src/AbstractCommand.h
  4267. * src/AbstractProxyRequestCommand.cc
  4268. * src/AbstractProxyResponseCommand.cc
  4269. * src/ActivePeerConnectionCommand.cc
  4270. * src/ActivePeerConnectionCommand.h
  4271. * src/AnnounceList.cc
  4272. * src/BtCheckIntegrityEntry.cc
  4273. * src/BtConstants.h
  4274. * src/BtContext.h: Removed
  4275. * src/BtDependency.cc
  4276. * src/BtExtendedMessage.cc
  4277. * src/BtPieceMessage.cc
  4278. * src/BtPieceMessage.h
  4279. * src/BtPostDownloadHandler.cc
  4280. * src/BtRegistry.cc
  4281. * src/BtRegistry.h
  4282. * src/BtSetup.cc
  4283. * src/CheckIntegrityCommand.cc
  4284. * src/CheckIntegrityEntry.cc
  4285. * src/ChecksumCheckIntegrityEntry.cc
  4286. * src/ConsoleStatCalc.cc
  4287. * src/ContentTypeRequestGroupCriteria.cc
  4288. * src/DHTGetPeersCommand.cc
  4289. * src/DHTGetPeersCommand.h
  4290. * src/DHTPeerLookupTask.cc
  4291. * src/DHTPeerLookupTask.h
  4292. * src/DHTTaskFactory.h
  4293. * src/DHTTaskFactoryImpl.cc
  4294. * src/DHTTaskFactoryImpl.h
  4295. * src/DefaultBtAnnounce.cc
  4296. * src/DefaultBtAnnounce.h
  4297. * src/DefaultBtContext.cc: Removed
  4298. * src/DefaultBtContext.h: Removed
  4299. * src/DefaultBtInteractive.cc
  4300. * src/DefaultBtInteractive.h
  4301. * src/DefaultBtMessageDispatcher.cc
  4302. * src/DefaultBtMessageDispatcher.h
  4303. * src/DefaultBtMessageFactory.cc
  4304. * src/DefaultBtMessageFactory.h
  4305. * src/DefaultBtMessageReceiver.cc
  4306. * src/DefaultBtMessageReceiver.h
  4307. * src/DefaultBtProgressInfoFile.cc
  4308. * src/DefaultBtRequestFactory.cc
  4309. * src/DefaultBtRequestFactory.h
  4310. * src/DefaultExtensionMessageFactory.cc
  4311. * src/DefaultExtensionMessageFactory.h
  4312. * src/DefaultPeerStorage.cc
  4313. * src/DefaultPeerStorage.h
  4314. * src/DefaultPieceStorage.cc
  4315. * src/DefaultSegmentManFactory.cc
  4316. * src/DiskAdaptor.cc
  4317. * src/DiskAdaptor.h
  4318. * src/DownloadContext.cc
  4319. * src/DownloadContext.h
  4320. * src/DownloadEngine.cc
  4321. * src/DownloadEngineFactory.cc
  4322. * src/DownloadHandler.cc
  4323. * src/DownloadResult.h
  4324. * src/FileAllocationCommand.cc
  4325. * src/FileAllocationDispatcherCommand.cc
  4326. * src/FileAllocationEntry.cc
  4327. * src/FileEntry.h
  4328. * src/FillRequestGroupCommand.cc
  4329. * src/FtpDownloadCommand.cc
  4330. * src/FtpFinishDownloadCommand.cc
  4331. * src/FtpInitiateConnectionCommand.cc
  4332. * src/FtpNegotiationCommand.cc
  4333. * src/FtpTunnelRequestCommand.cc
  4334. * src/FtpTunnelResponseCommand.cc
  4335. * src/HandshakeExtensionMessage.cc
  4336. * src/HandshakeExtensionMessage.h
  4337. * src/HaveEraseCommand.cc
  4338. * src/HttpDownloadCommand.cc
  4339. * src/HttpInitiateConnectionCommand.cc
  4340. * src/HttpProxyRequestCommand.cc
  4341. * src/HttpProxyResponseCommand.cc
  4342. * src/HttpRequest.cc
  4343. * src/HttpRequest.h
  4344. * src/HttpRequestCommand.cc
  4345. * src/HttpResponseCommand.cc
  4346. * src/HttpServerBodyCommand.cc
  4347. * src/HttpServerCommand.cc
  4348. * src/HttpSkipResponseCommand.cc
  4349. * src/InitiateConnectionCommandFactory.cc
  4350. * src/InitiatorMSEHandshakeCommand.cc
  4351. * src/InitiatorMSEHandshakeCommand.h
  4352. * src/IteratableChecksumValidator.cc
  4353. * src/IteratableChecksumValidator.h
  4354. * src/IteratableChunkChecksumValidator.cc
  4355. * src/MSEHandshake.cc
  4356. * src/MSEHandshake.h
  4357. * src/Makefile.am
  4358. * src/Makefile.in
  4359. * src/Metalink2RequestGroup.cc
  4360. * src/MetalinkPostDownloadHandler.cc
  4361. * src/MultiDiskAdaptor.cc
  4362. * src/MultiDiskAdaptor.h
  4363. * src/MultiFileAllocationIterator.cc
  4364. * src/MultiUrlRequestInfo.cc
  4365. * src/PeerChokeCommand.cc
  4366. * src/PeerChokeCommand.h
  4367. * src/PeerInitiateConnectionCommand.cc
  4368. * src/PeerInitiateConnectionCommand.h
  4369. * src/PeerInteractionCommand.cc
  4370. * src/PeerInteractionCommand.h
  4371. * src/PeerReceiveHandshakeCommand.cc
  4372. * src/PieceHashCheckIntegrityEntry.cc
  4373. * src/RealtimeCommand.cc
  4374. * src/ReceiverMSEHandshakeCommand.cc
  4375. * src/RequestGroup.cc
  4376. * src/RequestGroup.h
  4377. * src/RequestGroupEntry.cc
  4378. * src/RequestGroupMan.cc
  4379. * src/SeedCheckCommand.cc
  4380. * src/SeedCheckCommand.h
  4381. * src/SegmentMan.cc
  4382. * src/ShareRatioSeedCriteria.h
  4383. * src/SingleFileDownloadContext.cc: Removed
  4384. * src/SingleFileDownloadContext.h: Removed
  4385. * src/SleepCommand.cc
  4386. * src/StreamCheckIntegrityEntry.cc
  4387. * src/TrackerWatcherCommand.cc
  4388. * src/TrackerWatcherCommand.h
  4389. * src/UnknownLengthPieceStorage.cc
  4390. * src/Util.cc
  4391. * src/Util.h
  4392. * src/XmlRpcMethodImpl.cc
  4393. * src/bittorrent_helper.cc
  4394. * src/bittorrent_helper.h
  4395. * src/download_helper.cc
  4396. * src/main.cc
  4397. * src/option_processing.cc
  4398. * test/BitfieldManTest.cc
  4399. * test/BittorrentHelperTest.cc
  4400. * test/BtCancelMessageTest.cc
  4401. * test/BtChokeMessageTest.cc
  4402. * test/BtDependencyTest.cc
  4403. * test/BtPieceMessageTest.cc
  4404. * test/BtPostDownloadHandlerTest.cc
  4405. * test/BtRegistryTest.cc
  4406. * test/BtRejectMessageTest.cc
  4407. * test/BtRequestMessageTest.cc
  4408. * test/DHTPeerAnnounceStorageTest.cc
  4409. * test/DefaultBtAnnounceTest.cc
  4410. * test/DefaultBtContextTest.cc: Removed
  4411. * test/DefaultBtMessageDispatcherTest.cc
  4412. * test/DefaultBtMessageFactoryTest.cc
  4413. * test/DefaultBtProgressInfoFileTest.cc
  4414. * test/DefaultBtRequestFactoryTest.cc
  4415. * test/DefaultExtensionMessageFactoryTest.cc
  4416. * test/DefaultPeerStorageTest.cc
  4417. * test/DefaultPieceStorageTest.cc
  4418. * test/DirectDiskAdaptorTest.cc
  4419. * test/DownloadContextTest.cc
  4420. * test/DownloadHandlerFactoryTest.cc
  4421. * test/DownloadHelperTest.cc
  4422. * test/HandshakeExtensionMessageTest.cc
  4423. * test/HttpRequestTest.cc
  4424. * test/HttpResponseTest.cc
  4425. * test/IteratableChecksumValidatorTest.cc
  4426. * test/IteratableChunkChecksumValidatorTest.cc
  4427. * test/MSEHandshakeTest.cc
  4428. * test/Makefile.am
  4429. * test/Makefile.in
  4430. * test/Metalink2RequestGroupTest.cc
  4431. * test/MetalinkPostDownloadHandlerTest.cc
  4432. * test/MockBtContext.h: Removed
  4433. * test/MockDHTTaskFactory.h
  4434. * test/MockDownloadContext.h: Removed
  4435. * test/MockPieceStorage.h
  4436. * test/MultiDiskAdaptorTest.cc
  4437. * test/MultiFileAllocationIteratorTest.cc
  4438. * test/RequestGroupManTest.cc
  4439. * test/RequestGroupTest.cc
  4440. * test/SegmentManTest.cc
  4441. * test/ShareRatioSeedCriteriaTest.cc
  4442. * test/SingleFileDownloadContextTest.cc: Removed
  4443. * test/UtilTest.cc
  4444. * test/XmlRpcMethodTest.cc
  4445. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4446. Added experimental support of WEB-Seeding for multi-file torrent.
  4447. Due to fundamental changes in file handling in HTTP/FTP code, many
  4448. functions are not working: PeerStat, ServerHost, proxy..etc
  4449. * src/AbstractCommand.cc
  4450. * src/AbstractCommand.h
  4451. * src/BitfieldMan.cc
  4452. * src/BitfieldMan.h
  4453. * src/CreateRequestCommand.cc
  4454. * src/CreateRequestCommand.h
  4455. * src/DefaultPieceStorage.cc
  4456. * src/DefaultPieceStorage.h
  4457. * src/DownloadCommand.cc
  4458. * src/DownloadCommand.h
  4459. * src/DownloadContext.cc
  4460. * src/DownloadContext.h
  4461. * src/FileEntry.cc
  4462. * src/FileEntry.h
  4463. * src/FtpDownloadCommand.cc
  4464. * src/FtpDownloadCommand.h
  4465. * src/FtpFinishDownloadCommand.cc
  4466. * src/FtpFinishDownloadCommand.h
  4467. * src/FtpInitiateConnectionCommand.cc
  4468. * src/FtpInitiateConnectionCommand.h
  4469. * src/FtpNegotiationCommand.cc
  4470. * src/FtpNegotiationCommand.h
  4471. * src/FtpTunnelResponseCommand.cc
  4472. * src/HttpDownloadCommand.cc
  4473. * src/HttpDownloadCommand.h
  4474. * src/HttpInitiateConnectionCommand.cc
  4475. * src/HttpInitiateConnectionCommand.h
  4476. * src/HttpProxyResponseCommand.cc
  4477. * src/HttpRequest.cc
  4478. * src/HttpRequest.h
  4479. * src/HttpRequestCommand.cc
  4480. * src/HttpRequestCommand.h
  4481. * src/HttpResponseCommand.cc
  4482. * src/HttpResponseCommand.h
  4483. * src/HttpSkipResponseCommand.cc
  4484. * src/HttpSkipResponseCommand.h
  4485. * src/InitiateConnectionCommand.cc
  4486. * src/InitiateConnectionCommand.h
  4487. * src/InitiateConnectionCommandFactory.cc
  4488. * src/InitiateConnectionCommandFactory.h
  4489. * src/Makefile.am
  4490. * src/PieceStorage.h
  4491. * src/RequestGroup.cc
  4492. * src/RequestGroup.h
  4493. * src/RequestGroupMan.cc
  4494. * src/SegmentMan.cc
  4495. * src/SegmentMan.h
  4496. * src/SingleFileDownloadContext.h
  4497. * src/StreamFileAllocationEntry.cc
  4498. * src/TrackerWatcherCommand.cc
  4499. * src/UnknownLengthPieceStorage.cc
  4500. * src/UnknownLengthPieceStorage.h
  4501. * src/array_fun.h
  4502. * src/bitfield.h
  4503. * src/download_helper.cc
  4504. * test/DownloadContextTest.cc
  4505. * test/Makefile.am
  4506. * test/MockDownloadContext.h
  4507. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4508. Added tellWaiting XML-RPC method.
  4509. * src/SingleFileDownloadContext.cc
  4510. * src/XmlRpcMethodFactory.cc
  4511. * src/XmlRpcMethodImpl.cc
  4512. * src/XmlRpcMethodImpl.h
  4513. * test/XmlRpcMethodTest.cc
  4514. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Updated CookieStorageTest
  4516. * test/CookieStorageTest.cc
  4517. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4518. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  4519. handle excepion inside these functions.
  4520. * src/LibgnutlsTLSContext.cc
  4521. * src/LibgnutlsTLSContext.h
  4522. * src/LibsslTLSContext.cc
  4523. * src/LibsslTLSContext.h
  4524. * src/MultiUrlRequestInfo.cc
  4525. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4526. Added comment
  4527. * src/RequestGroup.cc
  4528. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4529. In CookieStorage::load() and saveNsFormat(), handle exception
  4530. inside the functions. When saving Cookies, first write temporary
  4531. file and after successful writes, then renames it to final
  4532. destination.
  4533. * src/CookieStorage.cc
  4534. * src/CookieStorage.h
  4535. * src/MultiUrlRequestInfo.cc
  4536. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4537. The default value of --dir option is the absolute path to the
  4538. current directory. If getcwd() is failed, then it is ".", which is
  4539. the same value with old implementation. This change is necessary
  4540. because after daemon() call, the current working directory is
  4541. changed to /.
  4542. * src/File.cc
  4543. * src/File.h
  4544. * src/OptionHandlerFactory.cc
  4545. * src/option_processing.cc
  4546. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4547. Call daemon() with arguments(0,0), which means daemon() changes
  4548. current working directory to / and redirects stdin, stdout and
  4549. stderr to /dev/null.
  4550. * src/option_processing.cc
  4551. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4552. Small performance optimizations.
  4553. * src/RequestGroupMan.cc
  4554. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4555. Added _xmlRpc member variable to RequestGroupMan to reduce the
  4556. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  4557. * src/RequestGroupMan.cc
  4558. * src/RequestGroupMan.h
  4559. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4560. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  4561. setNoWiat(true) if newly created command calls
  4562. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  4563. * src/HttpListenCommand.cc
  4564. * src/HttpServerBodyCommand.cc
  4565. * src/HttpServerCommand.cc
  4566. * src/HttpServerResponseCommand.cc
  4567. * src/InitiateConnectionCommand.cc
  4568. * src/RequestGroup.cc
  4569. * src/StreamFileAllocationEntry.cc
  4570. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4571. Removed include vector
  4572. * src/BtRegistry.h
  4573. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4574. Rewritten BtRegistry
  4575. * src/BtRegistry.cc
  4576. * src/BtRegistry.h
  4577. * src/BtSetup.cc
  4578. * src/ConsoleStatCalc.cc
  4579. * src/PeerInteractionCommand.cc
  4580. * src/PeerReceiveHandshakeCommand.cc
  4581. * src/ReceiverMSEHandshakeCommand.cc
  4582. * src/RequestGroup.cc
  4583. * src/XmlRpcMethodImpl.cc
  4584. * test/BtRegistryTest.cc
  4585. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4586. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  4587. * src/DefaultBtProgressInfoFile.cc
  4588. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4589. Throw an exception if position is less than 0.
  4590. * src/XmlRpcMethodImpl.cc
  4591. * test/XmlRpcMethodTest.cc
  4592. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4593. Use writeFilePath() in ConsoleStatCalc.cc
  4594. * src/ConsoleStatCalc.cc
  4595. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4596. Receive the return value as const reference from
  4597. DownloadContext::getFileEntries().
  4598. * src/DefaultPieceStorage.cc
  4599. * src/RequestGroupMan.cc
  4600. * src/XmlRpcMethodImpl.cc
  4601. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4602. DownloadContext now has _fileEntries so that
  4603. DownloadContext::getFileEntries() can returns its const reference.
  4604. * src/DefaultBtContext.cc
  4605. * src/DefaultBtContext.h
  4606. * src/DownloadContext.cc
  4607. * src/DownloadContext.h
  4608. * src/SingleFileDownloadContext.cc
  4609. * src/SingleFileDownloadContext.h
  4610. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4611. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  4612. writeFilePath() function template from RequestGroupMan.cc to
  4613. FileEntry.h
  4614. * src/FileEntry.h
  4615. * src/RequestGroupMan.cc
  4616. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4617. Documented 'position' parameter is starting from 0 in man page.
  4618. * doc/aria2c.1.txt
  4619. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4620. Updated doc.
  4621. * src/MSEHandshake.cc
  4622. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4623. Removed _acceptFeatures and its accessor functions from
  4624. RequestGroup since they are not used practically.
  4625. * src/HttpRequestCommand.cc
  4626. * src/RequestGroup.cc
  4627. * src/RequestGroup.h
  4628. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4629. Removed member _maxTries from RequestGroup class to avoid
  4630. duplicate option value. Those classes who refer this variable
  4631. should use option value of PREF_MAX_TRIES directly.
  4632. * src/AbstractCommand.cc
  4633. * src/RequestGroup.cc
  4634. * src/RequestGroup.h
  4635. * src/TrackerWatcherCommand.cc
  4636. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4637. * Release 1.4.1
  4638. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4639. Fixed compiler warnings on netbsd
  4640. * src/DHTConnectionImpl.cc
  4641. * src/PeerListenCommand.cc
  4642. * src/PeerSessionResource.cc
  4643. * src/SegmentMan.cc
  4644. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4645. Updated Ukrainian translation. Thanks to all translators.
  4646. * po/uk.po
  4647. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4648. Bump up version number to 1.4.1.
  4649. * configure.ac
  4650. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4651. Added unit tests for strjoin, strconcat and strappend.
  4652. * test/a2functionalTest.cc
  4653. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4654. Rewritten strconcat and strappend using operator+ instead of
  4655. append().
  4656. * src/a2functional.h
  4657. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4658. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  4659. is enabled.
  4660. * src/Makefile.am
  4661. * test/Makefile.am
  4662. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4663. Added countSeeder() function which counts seeder in the given
  4664. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  4665. * src/ConsoleStatCalc.cc
  4666. * src/Peer.h
  4667. * src/XmlRpcMethodImpl.cc
  4668. * test/PeerTest.cc
  4669. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4670. Documented missing seeder in getPeers xml-rpc method.
  4671. Documented uploadLength and numSeeders.
  4672. * doc/aria2c.1.txt
  4673. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4674. Added uploadLength and numSeeders to the response of tellStatus
  4675. xml-rpc method. Assert that PeerStorage instance is not null
  4676. instead of checking if statement. It should be non-null in this
  4677. context.
  4678. * src/XmlRpcMethodImpl.cc
  4679. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4680. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  4681. * src/XmlRpcResponse.cc
  4682. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4683. Avoid intermediate object during string concatenation.
  4684. * src/HttpRequest.cc
  4685. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4686. Added strjoin function template. Use it in pathJoin()
  4687. * src/Util.h
  4688. * src/a2functional.h
  4689. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4690. Avoid intermediate object during string concatenation. Replaced
  4691. post-increment unary operator with pre-increment one in for loop.
  4692. * src/AdaptiveURISelector.cc
  4693. * src/AnnounceList.cc
  4694. * src/AuthConfig.h
  4695. * src/BtBitfieldMessage.cc
  4696. * src/BtExtendedMessage.cc
  4697. * src/BtHandshakeMessage.cc
  4698. * src/BtPieceMessage.cc
  4699. * src/BtPortMessage.cc
  4700. * src/Cookie.cc
  4701. * src/DHTAnnouncePeerMessage.cc
  4702. * src/DHTAutoSaveCommand.cc
  4703. * src/DHTGetPeersReplyMessage.cc
  4704. * src/DHTNode.cc
  4705. * src/DHTQueryMessage.cc
  4706. * src/DHTResponseMessage.cc
  4707. * src/DHTUnknownMessage.cc
  4708. * src/DefaultBtAnnounce.cc
  4709. * src/DefaultBtContext.cc
  4710. * src/DefaultBtInteractive.cc
  4711. * src/DefaultBtProgressInfoFile.cc
  4712. * src/DefaultPeerStorage.cc
  4713. * src/DownloadEngine.cc
  4714. * src/FeatureConfig.cc
  4715. * src/File.cc
  4716. * src/FtpConnection.cc
  4717. * src/FtpNegotiationCommand.cc
  4718. * src/HandshakeExtensionMessage.cc
  4719. * src/HttpConnection.cc
  4720. * src/HttpRequest.cc
  4721. * src/HttpResponseCommand.cc
  4722. * src/HttpServer.cc
  4723. * src/IndexBtMessage.cc
  4724. * src/Metalink2RequestGroup.cc
  4725. * src/OptionHandlerImpl.h
  4726. * src/PStringBuildVisitor.cc
  4727. * src/Peer.cc
  4728. * src/PeerListenCommand.cc
  4729. * src/Piece.cc
  4730. * src/RangeBtMessage.cc
  4731. * src/Request.cc
  4732. * src/Request.h
  4733. * src/RequestGroup.cc
  4734. * src/RequestGroupMan.cc
  4735. * src/ServerStat.cc
  4736. * src/ServerStatMan.cc
  4737. * src/UTPexExtensionMessage.cc
  4738. * src/Util.cc
  4739. * src/a2functional.h
  4740. * src/download_helper.cc
  4741. * src/messageDigest.cc
  4742. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4743. Unchoke a peer randomly at first and second choke round in seed
  4744. state.
  4745. * src/BtSeederStateChoke.cc
  4746. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  4747. Added (sock_t) to quiet compiler warnings in MinGW
  4748. * src/SocketCore.cc
  4749. * src/SocketCore.h
  4750. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4751. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  4752. * src/EpollEventPoll.h
  4753. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  4754. Added fork() emulation using CreateProcess() in MinGW
  4755. * src/RequestGroupMan.cc
  4756. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4757. * Release 1.4.0
  4758. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4759. Added utf8.torrent to EXTRA_DIST
  4760. * test/Makefile.am
  4761. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4762. Fixed docs of aria2.addMetalink xml-rpc method.
  4763. * doc/aria2c.1.txt
  4764. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4765. Added Slovak translation. Updated Ukrainian and Brazilian
  4766. Portuguese translation. Thanks to all translators.
  4767. * po/sk.po
  4768. * po/uk.po
  4769. * po/pt_BR.po
  4770. * po/LINGUAS
  4771. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4772. Added test case for XmlRpcProcessor to fail to parse malformed
  4773. document.
  4774. * test/XmlRpcRequestProcessorTest.cc
  4775. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4776. Removed *.gmo files in po because they are generated on 'make
  4777. dist'
  4778. * po/*.gmo
  4779. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4780. Documented max-concurrent-downloads of changeGlobalOption method
  4781. in man page.
  4782. * doc/aria2c.1.txt
  4783. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4784. Added max-concurrent-downloads option to changeGlobalOption
  4785. xml-rpc method. Rewritten loop conditional in
  4786. RequestGroupMan::fillRequestGroupFromReserver().
  4787. * src/RequestGroupMan.cc
  4788. * src/RequestGroupMan.h
  4789. * src/XmlRpcMethod.cc
  4790. * src/XmlRpcMethodImpl.cc
  4791. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4792. Documented position parameter in man page.
  4793. * doc/aria2c.1.txt
  4794. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4795. Added 'position' parameter to addUri, addTorrent and addMetalink
  4796. xml-rpc method.
  4797. * src/RequestGroupMan.cc
  4798. * src/RequestGroupMan.h
  4799. * src/XmlRpcMethodImpl.cc
  4800. * test/XmlRpcMethodTest.cc
  4801. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4802. Removed Peer.cc from compile source list when --disable-bittorrent
  4803. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4804. takes Peer.
  4805. * src/DefaultPieceStorage.cc
  4806. * src/DefaultPieceStorage.h
  4807. * src/Makefile.am
  4808. * src/PieceStorage.h
  4809. * src/UnknownLengthPieceStorage.cc
  4810. * src/UnknownLengthPieceStorage.h
  4811. * test/MockPieceStorage.h
  4812. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4813. Implemented getter methods in header files to give them more
  4814. chance of optimization.
  4815. Return const reference for SharadHandle if possible.
  4816. * src/AbstractAuthResolver.cc
  4817. * src/AbstractAuthResolver.h
  4818. * src/AbstractBtMessage.cc
  4819. * src/AbstractBtMessage.h
  4820. * src/AbstractSingleDiskAdaptor.cc
  4821. * src/AbstractSingleDiskAdaptor.h
  4822. * src/AsyncNameResolver.cc
  4823. * src/AsyncNameResolver.h
  4824. * src/BNode.cc
  4825. * src/BNode.h
  4826. * src/BitfieldMan.cc
  4827. * src/BitfieldMan.h
  4828. * src/BtAbortOutstandingRequestEvent.h
  4829. * src/BtExtendedMessage.cc
  4830. * src/BtExtendedMessage.h
  4831. * src/BtSeederStateChoke.cc
  4832. * src/BtSeederStateChoke.h
  4833. * src/Cookie.cc
  4834. * src/Cookie.h
  4835. * src/DHTBucket.cc
  4836. * src/DHTBucket.h
  4837. * src/DHTConnectionImpl.cc
  4838. * src/DHTConnectionImpl.h
  4839. * src/DHTFindNodeReplyMessage.cc
  4840. * src/DHTFindNodeReplyMessage.h
  4841. * src/DHTGetPeersReplyMessage.cc
  4842. * src/DHTGetPeersReplyMessage.h
  4843. * src/DHTInteractionCommand.cc
  4844. * src/DHTMessage.cc
  4845. * src/DHTMessage.h
  4846. * src/DHTMessageDispatcherImpl.cc
  4847. * src/DHTMessageEntry.cc
  4848. * src/DHTMessageReceiver.cc
  4849. * src/DHTMessageReceiver.h
  4850. * src/DHTMessageTrackerEntry.cc
  4851. * src/DHTMessageTrackerEntry.h
  4852. * src/DHTPeerAnnounceEntry.cc
  4853. * src/DHTPeerAnnounceEntry.h
  4854. * src/DHTPeerLookupTask.cc
  4855. * src/DHTPeerLookupTask.h
  4856. * src/DHTRoutingTableDeserializer.cc
  4857. * src/DHTRoutingTableDeserializer.h
  4858. * src/DefaultBtAnnounce.cc
  4859. * src/DefaultBtAnnounce.h
  4860. * src/DefaultBtMessageDispatcher.cc
  4861. * src/DefaultBtMessageDispatcher.h
  4862. * src/DefaultBtRequestFactory.cc
  4863. * src/DefaultBtRequestFactory.h
  4864. * src/DiskAdaptor.cc
  4865. * src/DiskAdaptor.h
  4866. * src/DownloadContext.cc
  4867. * src/DownloadContext.h
  4868. * src/DownloadEngine.cc
  4869. * src/DownloadEngine.h
  4870. * src/EpollEventPoll.cc
  4871. * src/EpollEventPoll.h
  4872. * src/FtpConnection.cc
  4873. * src/FtpConnection.h
  4874. * src/HttpConnection.cc
  4875. * src/HttpConnection.h
  4876. * src/HttpHeader.cc
  4877. * src/HttpHeader.h
  4878. * src/HttpRequest.cc
  4879. * src/HttpRequest.h
  4880. * src/HttpResponse.cc
  4881. * src/HttpResponse.h
  4882. * src/LibsslTLSContext.cc
  4883. * src/LibsslTLSContext.h
  4884. * src/MSEHandshake.cc
  4885. * src/MSEHandshake.h
  4886. * src/MetalinkEntry.cc
  4887. * src/MetalinkEntry.h
  4888. * src/MetalinkParserController.cc
  4889. * src/MetalinkParserController.h
  4890. * src/MetalinkParserStateMachine.cc
  4891. * src/MetalinkParserStateMachine.h
  4892. * src/MultiDiskAdaptor.cc
  4893. * src/MultiDiskAdaptor.h
  4894. * src/NetrcAuthResolver.cc
  4895. * src/NetrcAuthResolver.h
  4896. * src/Peer.cc
  4897. * src/Peer.h
  4898. * src/PeerSessionResource.cc
  4899. * src/PeerSessionResource.h
  4900. * src/Piece.cc
  4901. * src/Piece.h
  4902. * src/PieceStatMan.cc
  4903. * src/PieceStatMan.h
  4904. * src/Request.cc
  4905. * src/Request.h
  4906. * src/RequestGroup.cc
  4907. * src/RequestGroup.h
  4908. * src/RequestGroupMan.cc
  4909. * src/RequestGroupMan.h
  4910. * src/RequestSlot.cc
  4911. * src/RequestSlot.h
  4912. * src/SegmentMan.cc
  4913. * src/SegmentMan.h
  4914. * src/SelectEventPoll.cc
  4915. * src/SelectEventPoll.h
  4916. * src/ServerStat.cc
  4917. * src/ServerStat.h
  4918. * src/Signature.cc
  4919. * src/Signature.h
  4920. * src/URIResult.cc
  4921. * src/URIResult.h
  4922. * src/UTPexExtensionMessage.cc
  4923. * src/UTPexExtensionMessage.h
  4924. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4925. Fixed compile error without BitTorrent and Metalink support.
  4926. * src/XmlRpcMethod.cc
  4927. * src/XmlRpcMethodFactory.cc
  4928. * src/XmlRpcMethodImpl.cc
  4929. * src/XmlRpcMethodImpl.h
  4930. * test/XmlRpcMethodTest.cc
  4931. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4932. Rewritten the help message for --allow-overwrite option.
  4933. * doc/aria2c.1.txt
  4934. * src/usage_text.h
  4935. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4936. Fixed typo
  4937. * doc/aria2c.1.txt
  4938. * src/usage_text.h
  4939. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4940. Updated README for 1.4.0 release. Use new table syntax of
  4941. asciidoc.
  4942. * README
  4943. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4944. Documented --xml-rpc-max-request-size option in man page.
  4945. * doc/aria2c.1.txt
  4946. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4947. Moved C_* constants from BtContext to DefaultBtContext.
  4948. * src/BtContext.cc: Removed.
  4949. * src/BtContext.h
  4950. * src/DefaultBtContext.cc
  4951. * src/DefaultBtContext.h
  4952. * src/Makefile.am
  4953. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4954. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4955. path key respectively when persing .torrent file.
  4956. * src/BtContext.cc
  4957. * src/BtContext.h
  4958. * src/DefaultBtContext.cc
  4959. * test/DefaultBtContextTest.cc
  4960. * test/utf8.torrent
  4961. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4962. Added --xml-rpc-max-request-size option to limit the size of
  4963. XML-RPC request.
  4964. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4965. Documented XML-RPC API in man page.
  4966. * doc/aria2c.1.txt
  4967. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4968. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4969. will break strict-aliasing rules
  4970. * src/PeerConnection.cc
  4971. * test/DHTRoutingTableSerializerTest.cc
  4972. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4973. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4974. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4975. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4976. PKG_CHECK_MODULES macro uses latter name.
  4977. * m4/sqlite3.m4
  4978. * src/Makefile.am
  4979. * test/Makefile.am
  4980. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4981. Fixed typo
  4982. * configure.ac
  4983. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4984. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4985. presence of libgnutls using pkg-config first. If it fails, fall
  4986. back to old macro libgnutls.m4.
  4987. * configure.ac
  4988. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4989. Use s itself instead of !s.bad()
  4990. * src/CookieStorage.cc
  4991. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4992. Documented --on-download-* option and --save-cookies option in man
  4993. page.
  4994. * doc/aria2c.1.txt
  4995. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4996. Set possible values for --load-cookie option to "/path/to/file".
  4997. * src/OptionHandlerFactory.cc
  4998. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4999. Added --save-cookies option.
  5000. * src/Cookie.cc
  5001. * src/Cookie.h
  5002. * src/CookieStorage.cc
  5003. * src/CookieStorage.h
  5004. * src/MultiUrlRequestInfo.cc
  5005. * src/OptionHandlerFactory.cc
  5006. * src/prefs.cc
  5007. * src/prefs.h
  5008. * src/usage_text.h
  5009. * test/CookieStorageTest.cc
  5010. * test/CookieTest.cc
  5011. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5012. Removed tellAll XML-RPC command because its reponse tends to be
  5013. big if stopped/waiting downloads pile up.
  5014. * src/XmlRpcMethodFactory.cc
  5015. * src/XmlRpcMethodImpl.cc
  5016. * src/XmlRpcMethodImpl.h
  5017. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5018. Added the ability to execute command when download starts and
  5019. stops. You can also specify command for particular cases such as
  5020. complete/error download. Added --on-download-start,
  5021. --on-download-stop, --on-download-complete and --on-download-error
  5022. option.
  5023. * src/OptionHandlerFactory.cc
  5024. * src/RequestGroupMan.cc
  5025. * src/prefs.cc
  5026. * src/prefs.h
  5027. * src/usage_text.h
  5028. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5029. Fixed test error
  5030. * test/BencodeTest.cc
  5031. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. Added unit tests.
  5033. * test/XmlRpcMethodTest.cc
  5034. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5035. Made exception message more verbose.
  5036. * src/bencode.cc
  5037. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5038. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  5039. space in console readout. Also they are now shown in MiB/s if
  5040. speed > 1024KiB/s.
  5041. * src/ConsoleStatCalc.cc
  5042. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5043. Added SEED to console output, which represents the number of
  5044. seeders currently the client is connecting to.
  5045. * src/ConsoleStatCalc.cc
  5046. * src/ConsoleStatCalc.h
  5047. * src/DownloadEngine.cc
  5048. * src/NullStatCalc.h
  5049. * src/StatCalc.h
  5050. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5051. Added source filename(__FILE__) and line number(__LINE__) to
  5052. exception message.
  5053. * src/AbstractCommand.cc
  5054. * src/AbstractDiskWriter.cc
  5055. * src/AbstractProxyResponseCommand.cc
  5056. * src/BDE.h
  5057. * src/BtAllowedFastMessage.cc
  5058. * src/BtHandshakeMessageValidator.h
  5059. * src/BtHaveAllMessage.cc
  5060. * src/BtHaveNoneMessage.cc
  5061. * src/BtPieceMessage.cc
  5062. * src/BtRejectMessage.cc
  5063. * src/ChunkedDecoder.cc
  5064. * src/CookieStorage.cc
  5065. * src/DHTAnnouncePeerMessage.cc
  5066. * src/DHTEntryPointNameResolveCommand.cc
  5067. * src/DHTMessageFactoryImpl.cc
  5068. * src/DHTMessageTracker.cc
  5069. * src/DHTRoutingTableDeserializer.cc
  5070. * src/DHTRoutingTableSerializer.cc
  5071. * src/DHTSetup.cc
  5072. * src/DHTTokenTracker.cc
  5073. * src/DefaultBtAnnounce.cc
  5074. * src/DefaultBtContext.cc
  5075. * src/DefaultBtInteractive.cc
  5076. * src/DefaultBtMessageFactory.cc
  5077. * src/DefaultBtProgressInfoFile.cc
  5078. * src/DefaultExtensionMessageFactory.cc
  5079. * src/DlAbortEx.h
  5080. * src/DlRetryEx.h
  5081. * src/DownloadCommand.cc
  5082. * src/DownloadEngineFactory.cc
  5083. * src/DownloadFailureException.h
  5084. * src/Exception.cc
  5085. * src/Exception.h
  5086. * src/ExpatMetalinkProcessor.cc
  5087. * src/ExpatXmlRpcRequestProcessor.cc
  5088. * src/FallocFileAllocationIterator.cc
  5089. * src/FatalException.h
  5090. * src/FtpConnection.cc
  5091. * src/FtpFinishDownloadCommand.cc
  5092. * src/FtpInitiateConnectionCommand.cc
  5093. * src/FtpNegotiationCommand.cc
  5094. * src/GZipDecoder.cc
  5095. * src/HandshakeExtensionMessage.cc
  5096. * src/HttpConnection.cc
  5097. * src/HttpHeaderProcessor.cc
  5098. * src/HttpInitiateConnectionCommand.cc
  5099. * src/HttpResponse.cc
  5100. * src/HttpResponseCommand.cc
  5101. * src/HttpServer.cc
  5102. * src/HttpSkipResponseCommand.cc
  5103. * src/InitiateConnectionCommandFactory.cc
  5104. * src/IteratableChunkChecksumValidator.cc
  5105. * src/LibgcryptARC4Context.h
  5106. * src/LibgcryptARC4Decryptor.h
  5107. * src/LibgcryptARC4Encryptor.h
  5108. * src/LibgcryptDHKeyExchange.h
  5109. * src/LibgnutlsTLSContext.cc
  5110. * src/LibsslARC4Context.h
  5111. * src/LibsslARC4Decryptor.h
  5112. * src/LibsslARC4Encryptor.h
  5113. * src/LibsslDHKeyExchange.h
  5114. * src/LibsslTLSContext.cc
  5115. * src/MSEHandshake.cc
  5116. * src/MessageDigestHelper.cc
  5117. * src/MetalinkHelper.cc
  5118. * src/MultiDiskAdaptor.cc
  5119. * src/NameMatchOptionHandler.h
  5120. * src/NameResolver.cc
  5121. * src/Netrc.cc
  5122. * src/NsCookieParser.cc
  5123. * src/OptionHandlerException.cc
  5124. * src/OptionHandlerException.h
  5125. * src/OptionHandlerImpl.h
  5126. * src/OptionParser.cc
  5127. * src/ParameterizedStringParser.cc
  5128. * src/PeerAbstractCommand.cc
  5129. * src/PeerConnection.cc
  5130. * src/PeerMessageUtil.cc
  5131. * src/PeerReceiveHandshakeCommand.cc
  5132. * src/Platform.cc
  5133. * src/ReceiverMSEHandshakeCommand.cc
  5134. * src/RecoverableException.h
  5135. * src/RequestGroup.cc
  5136. * src/SimpleLogger.cc
  5137. * src/SocketCore.cc
  5138. * src/Sqlite3MozCookieParser.cc
  5139. * src/UTPexExtensionMessage.cc
  5140. * src/Util.cc
  5141. * src/XML2SAXMetalinkProcessor.cc
  5142. * src/Xml2XmlRpcRequestProcessor.cc
  5143. * src/XmlRpcMethodImpl.cc
  5144. * src/bencode.cc
  5145. * src/download_helper.cc
  5146. * src/messageDigest.h
  5147. * test/ExceptionTest.cc
  5148. * test/TestUtil.cc
  5149. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5150. Bump up version number to 1.4.0
  5151. * configure.ac
  5152. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5153. Added 2files.metalink to EXTRA_DIST
  5154. * test/Makefile.am
  5155. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5156. Added missing 2files.metalink
  5157. * test/2files.metalink
  5158. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5159. Show "[MEMORY]" prefix before filename in download summary if it
  5160. is downloaded into memory.
  5161. * src/DownloadResult.h
  5162. * src/RequestGroup.cc
  5163. * src/RequestGroupMan.cc
  5164. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5165. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  5166. * src/ExpatXmlRpcRequestProcessor.cc
  5167. * src/Xml2XmlRpcRequestProcessor.cc
  5168. * src/message.h
  5169. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5170. Defined const BDEs to avoid duplicate instantiation.
  5171. Defined MSG_GID_NOT_PROVIDED.
  5172. * src/XmlRpcMethodImpl.cc
  5173. * src/message.h
  5174. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5175. Code cleanup
  5176. * src/Xml2XmlRpcRequestProcessor.cc
  5177. * src/Xml2XmlRpcRequestProcessor.h
  5178. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5179. Defined ENABLE_XML_RPC
  5180. * configure.ac
  5181. * configure
  5182. * config.h.in
  5183. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5184. Added ExpatXmlRpcRequestProcessor
  5185. * src/ExpatXmlRpcRequestProcessor.cc
  5186. * src/ExpatXmlRpcRequestProcessor.h
  5187. * src/Makefile.am
  5188. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5189. Added tests for addTorrent and addMetalink command.
  5190. * test/TestUtil.cc
  5191. * test/TestUtil.h
  5192. * test/XmlRpcMethodTest.cc
  5193. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5194. Corrected the description of --file-allocation option.
  5195. * doc/aria2c.1.txt
  5196. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5197. Added tellAll command.
  5198. * src/XmlRpcMethodFactory.cc
  5199. * src/XmlRpcMethodImpl.cc
  5200. * src/XmlRpcMethodImpl.h
  5201. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5202. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  5203. * src/XmlRpcMethodImpl.cc
  5204. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5205. Added changeGlobalOption command. Currently,
  5206. max-overall-download-limit and max-overall-upload-limit option are
  5207. available.
  5208. * src/RequestGroupMan.h
  5209. * src/XmlRpcMethod.cc
  5210. * src/XmlRpcMethod.h
  5211. * src/XmlRpcMethodFactory.cc
  5212. * src/XmlRpcMethodImpl.cc
  5213. * src/XmlRpcMethodImpl.h
  5214. * test/XmlRpcMethodTest.cc
  5215. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5216. Added changeOption command. Currently, max-download-limit,
  5217. max-upload-limit option are available in this command.
  5218. * src/RequestGroup.h
  5219. * src/XmlRpcMethod.cc
  5220. * src/XmlRpcMethod.h
  5221. * src/XmlRpcMethodFactory.cc
  5222. * src/XmlRpcMethodImpl.cc
  5223. * src/XmlRpcMethodImpl.h
  5224. * test/XmlRpcMethodTest.cc
  5225. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5226. Added purgeDownloadResult command.
  5227. * src/RequestGroupMan.cc
  5228. * src/RequestGroupMan.h
  5229. * src/XmlRpcMethodFactory.cc
  5230. * src/XmlRpcMethodImpl.cc
  5231. * src/XmlRpcMethodImpl.h
  5232. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5233. Refactored.
  5234. * src/XmlRpcMethod.cc
  5235. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5236. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  5237. XmlRpcResponse.
  5238. * src/HttpServerBodyCommand.cc
  5239. * src/Makefile.am
  5240. * src/XmlRpcMethod.cc
  5241. * src/XmlRpcMethod.h
  5242. * src/XmlRpcMethodImpl.cc
  5243. * src/XmlRpcResponse.cc
  5244. * src/XmlRpcResponse.h
  5245. * test/XmlRpcMethodTest.cc
  5246. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5247. In XML-RPC option struct, header and index-out option can take
  5248. array as value.
  5249. * src/XmlRpcMethod.cc
  5250. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5251. Removed unused option member from PeerConnection.
  5252. * src/InitiatorMSEHandshakeCommand.cc
  5253. * src/PeerConnection.cc
  5254. * src/PeerConnection.h
  5255. * src/PeerInteractionCommand.cc
  5256. * src/PeerReceiveHandshakeCommand.cc
  5257. * src/ReceiverMSEHandshakeCommand.cc
  5258. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5259. Added "seeder" key to getPeers response.
  5260. * src/XmlRpcMethodImpl.cc
  5261. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5262. Added addMetalink XML-RPC command.
  5263. * src/XmlRpcMethodFactory.cc
  5264. * src/XmlRpcMethodImpl.cc
  5265. * src/XmlRpcMethodImpl.h
  5266. * src/download_helper.cc
  5267. * src/download_helper.h
  5268. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5269. Fixed the bug that POU peers are never choked in seeding.
  5270. * src/BtSeederStateChoke.cc
  5271. * src/BtSeederStateChoke.h
  5272. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5273. Added web-seeding URI handling in addTorrent command.
  5274. * src/XmlRpcMethodImpl.cc
  5275. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5276. Added "length" key to getFiles response.
  5277. * src/XmlRpcMethodImpl.cc
  5278. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5279. Moved --no-netrc option from ftp option section to http/ftp option
  5280. section.
  5281. * doc/aria2c.1.txt
  5282. * src/OptionHandlerFactory.cc
  5283. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5284. Removed garbage "\" character before '
  5285. * doc/aria2c.1.txt
  5286. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5287. Removed garbage "\" character before http.
  5288. * doc/aria2c.1.txt
  5289. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5290. Documented additional options that can be specified in -i list.
  5291. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  5292. and --xml-rpc-passwd. Removed --enable-http-server and
  5293. --http-server-listen-port.
  5294. * doc/aria2c.1.txt
  5295. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5296. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  5297. * src/DefaultPeerStorage.cc
  5298. * src/DefaultPeerStorage.h
  5299. * src/PeerStorage.h
  5300. * src/XmlRpcMethodImpl.cc
  5301. * test/MockPeerStorage.h
  5302. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5303. Put a call to Socket::isReadable() in try block.
  5304. * src/HttpServerBodyCommand.cc
  5305. * src/HttpServerCommand.cc
  5306. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5307. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  5308. exception , so it is now in try block.
  5309. * src/HttpServerResponseCommand.cc
  5310. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5311. Added "amChoking" and "peerChoking" key in getPeers response.
  5312. * src/XmlRpcMethodImpl.cc
  5313. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5314. Added test case for zero-length filter.
  5315. * test/BitfieldManTest.cc
  5316. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5317. getFiles command now returns file data for finished/stopped
  5318. downloads.
  5319. * src/XmlRpcMethodImpl.cc
  5320. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5321. DownloadResult now has the list of FileEntry. The download
  5322. summary displays the path of first selected file and the number of
  5323. remaining files for multi-file torrent.
  5324. * src/DownloadResult.h
  5325. * src/RequestGroup.cc
  5326. * src/RequestGroupMan.cc
  5327. * test/RequestGroupTest.cc
  5328. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5329. Fixed segmentation fault error when no file is selected in
  5330. multi-file torrent.
  5331. * src/BitfieldMan.cc
  5332. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5333. Escaped <,>,& character in XML-RPC response.
  5334. * src/XmlRpcMethod.cc
  5335. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5336. Throw DlAbortEx instead of FatalException during parsing options
  5337. because we don't want for aria2 to quit when bad option is passed
  5338. via XML-RPC.
  5339. * src/OptionHandlerException.cc
  5340. * src/OptionHandlerException.h
  5341. * src/OptionHandlerImpl.h
  5342. * src/OptionParser.cc
  5343. * src/OptionParser.h
  5344. * src/PStringSegment.cc
  5345. * src/ParameterizedStringParser.cc
  5346. * src/download_helper.cc
  5347. * test/ParameterizedStringParserTest.cc
  5348. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5349. Selecting files are now done in
  5350. DefaultBtContext::setFileFileter().
  5351. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  5352. functions are removed because they are no longer used. Creating
  5353. filter in BitfieldMan is done in new funtion
  5354. PieceStorage::setupFileFilter()
  5355. * src/BtContext.cc
  5356. * src/BtContext.h
  5357. * src/DefaultBtContext.cc
  5358. * src/DefaultBtContext.h
  5359. * src/DefaultPieceStorage.cc
  5360. * src/DefaultPieceStorage.h
  5361. * src/DiskAdaptor.cc
  5362. * src/DiskAdaptor.h
  5363. * src/PieceStorage.h
  5364. * src/RequestGroup.cc
  5365. * src/UnknownLengthPieceStorage.h
  5366. * src/XmlRpcMethodImpl.cc
  5367. * test/DefaultBtContextTest.cc
  5368. * test/MockBtContext.h
  5369. * test/MockPieceStorage.h
  5370. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5371. Fixed compile error on Mac OS X
  5372. * src/HttpServer.cc
  5373. * src/XmlRpcMethod.h
  5374. * src/XmlRpcMethodImpl.cc
  5375. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5376. Use std::binary_search instead of std::find
  5377. * src/DefaultPieceStorage.cc
  5378. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5379. Removed unnecessary BDE() call; leave them to implicit conversion.
  5380. * src/XmlRpcMethodImpl.cc
  5381. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5382. Return connections and gid in string
  5383. * src/XmlRpcMethodImpl.cc
  5384. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5385. Renamed addURI as addUri
  5386. * src/XmlRpcMethodFactory.cc
  5387. * src/XmlRpcMethodImpl.cc
  5388. * src/XmlRpcMethodImpl.h
  5389. * test/XmlRpcMethodTest.cc
  5390. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5391. Renamed addTorrentFile as addTorrent
  5392. * src/XmlRpcMethodFactory.cc
  5393. * src/XmlRpcMethodImpl.cc
  5394. * src/XmlRpcMethodImpl.h
  5395. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5396. The information for files, URIs, peers are removed from the
  5397. reponse of TellaActive, TellStatus command because they tend to be
  5398. large. Instead they can be retrieved by the dedicated commands:
  5399. getFiles, getUris and getPeers respectively.
  5400. * src/XmlRpcMethodFactory.cc
  5401. * src/XmlRpcMethodImpl.cc
  5402. * src/XmlRpcMethodImpl.h
  5403. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5404. Removed --max-overall-upload-limit and
  5405. --max-overall-download-limit option from listRequestOptions.
  5406. * src/download_helper.cc
  5407. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5408. Log incoming host in HttpListenCommand.
  5409. * src/HttpListenCommand.cc
  5410. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5411. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  5412. --xml-rpc-passwd option.
  5413. * src/HttpServer.cc
  5414. * src/HttpServer.h
  5415. * src/HttpServerCommand.cc
  5416. * src/OptionHandlerFactory.cc
  5417. * src/prefs.cc
  5418. * src/prefs.h
  5419. * src/usage_text.h
  5420. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5421. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  5422. processing 0 length request.
  5423. * src/HttpServerBodyCommand.cc
  5424. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5425. Removed --enable-http-server and --http-server-listen-port
  5426. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  5427. instead. The original feature for --enable-http-server that
  5428. reports download progress in HTML was officially removed. Persist
  5429. XML-RPC connection if client supports keep-alive.
  5430. * src/DownloadEngineFactory.cc
  5431. * src/HttpServerCommand.cc
  5432. * src/HttpServerResponseCommand.cc
  5433. * src/Makefile.am
  5434. * src/Makefile.in
  5435. * src/OptionHandlerFactory.cc
  5436. * src/RequestGroupMan.cc
  5437. * src/main.cc
  5438. * src/option_processing.cc
  5439. * src/prefs.cc
  5440. * src/prefs.h
  5441. * src/usage_text.h
  5442. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5443. Added "uris" key to the response of tellStatus command. Added
  5444. "connections" key to the response of tellStatus and tellActive
  5445. command.
  5446. * src/XmlRpcMethodImpl.cc
  5447. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5448. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  5449. Added TellStatusXmlRpcMethod. Remove command can now remove
  5450. waiting RequestGroup.
  5451. * src/RequestGroupMan.cc
  5452. * src/RequestGroupMan.h
  5453. * src/XmlRpcMethodFactory.cc
  5454. * src/XmlRpcMethodImpl.cc
  5455. * src/XmlRpcMethodImpl.h
  5456. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5457. Initialized _peerId
  5458. * src/Peer.cc
  5459. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5460. Return fault structure for error. FailXmlRpcMethod is renamed as
  5461. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  5462. in non-torrent download. Return single param value.
  5463. * src/XmlRpcMethod.cc
  5464. * src/XmlRpcMethodFactory.cc
  5465. * src/XmlRpcMethodImpl.cc
  5466. * src/XmlRpcMethodImpl.h
  5467. * test/XmlRpcMethodTest.cc
  5468. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5469. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  5470. command.
  5471. * src/RequestGroup.cc
  5472. * src/RequestGroup.h
  5473. * src/RequestGroupMan.cc
  5474. * src/XmlRpcMethodImpl.cc
  5475. * test/RequestGroupTest.cc
  5476. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5477. Added more options that can be specified in -i list and xml-rpc
  5478. add* command.
  5479. * src/download_helper.h
  5480. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5481. The available options in -i list should be listed in
  5482. listRequestOptions().
  5483. * src/download_helper.cc
  5484. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5485. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  5486. command.
  5487. * src/XmlRpcMethodImpl.cc
  5488. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5489. Now RequestGroup has its own copy of Option object. This will help
  5490. to give custom option for each RequestGroup.
  5491. addTorrentFile command now takes options.
  5492. * src/AbstractCommand.cc
  5493. * src/AbstractCommand.h
  5494. * src/AbstractProxyRequestCommand.cc
  5495. * src/ActivePeerConnectionCommand.cc
  5496. * src/ActivePeerConnectionCommand.h
  5497. * src/AdaptiveURISelector.cc
  5498. * src/BtCheckIntegrityEntry.cc
  5499. * src/BtDependency.cc
  5500. * src/BtDependency.h
  5501. * src/BtFileAllocationEntry.cc
  5502. * src/BtPostDownloadHandler.cc
  5503. * src/CheckIntegrityEntry.cc
  5504. * src/DownloadCommand.cc
  5505. * src/FtpDownloadCommand.cc
  5506. * src/FtpFinishDownloadCommand.cc
  5507. * src/FtpInitiateConnectionCommand.cc
  5508. * src/FtpNegotiationCommand.cc
  5509. * src/HttpInitiateConnectionCommand.cc
  5510. * src/HttpRequestCommand.cc
  5511. * src/HttpResponseCommand.cc
  5512. * src/HttpSkipResponseCommand.cc
  5513. * src/InitiateConnectionCommand.cc
  5514. * src/InitiateConnectionCommandFactory.cc
  5515. * src/InitiatorMSEHandshakeCommand.cc
  5516. * src/InitiatorMSEHandshakeCommand.h
  5517. * src/Metalink2RequestGroup.cc
  5518. * src/Metalink2RequestGroup.h
  5519. * src/MetalinkPostDownloadHandler.cc
  5520. * src/MultiUrlRequestInfo.cc
  5521. * src/MultiUrlRequestInfo.h
  5522. * src/PeerAbstractCommand.cc
  5523. * src/PeerInteractionCommand.cc
  5524. * src/PeerInteractionCommand.h
  5525. * src/PeerReceiveHandshakeCommand.cc
  5526. * src/PeerReceiveHandshakeCommand.h
  5527. * src/RequestGroup.cc
  5528. * src/RequestGroup.h
  5529. * src/TrackerWatcherCommand.cc
  5530. * src/TrackerWatcherCommand.h
  5531. * src/XmlRpcMethod.cc
  5532. * src/XmlRpcMethod.h
  5533. * src/XmlRpcMethodImpl.cc
  5534. * src/download_helper.cc
  5535. * src/download_helper.h
  5536. * src/main.cc
  5537. * test/BtDependencyTest.cc
  5538. * test/BtPostDownloadHandlerTest.cc
  5539. * test/DefaultBtMessageDispatcherTest.cc
  5540. * test/DownloadHandlerFactoryTest.cc
  5541. * test/DownloadHelperTest.cc
  5542. * test/Metalink2RequestGroupTest.cc
  5543. * test/MetalinkPostDownloadHandlerTest.cc
  5544. * test/RequestGroupManTest.cc
  5545. * test/RequestGroupTest.cc
  5546. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5547. Added tellActiveStatus xml-rpc command which reports download
  5548. status of active downloads.
  5549. * src/XmlRpcMethodFactory.cc
  5550. * src/XmlRpcMethodImpl.cc
  5551. * src/XmlRpcMethodImpl.h
  5552. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5553. Added addTorrentFile xml-rpc command which receives uploaded
  5554. torrent file and add download for it.
  5555. * src/RequestGroupMan.cc
  5556. * src/XmlRpcMethodFactory.cc
  5557. * src/XmlRpcMethodImpl.cc
  5558. * src/XmlRpcMethodImpl.h
  5559. * src/download_helper.cc
  5560. * src/download_helper.h
  5561. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5562. Added remove xml-rpc command which removes specified download.
  5563. There is a known issue: the removed unfinished downloads are
  5564. reported ERR when aria2 exits. They should be reported as INPR.
  5565. * src/RequestGroupMan.cc
  5566. * src/RequestGroupMan.h
  5567. * src/XmlRpcMethodFactory.cc
  5568. * src/XmlRpcMethodImpl.cc
  5569. * src/XmlRpcMethodImpl.h
  5570. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5571. If --enable-http-server is enabled, don't stop aria2 when all
  5572. download finished and don't quit when no files to download at
  5573. start up.
  5574. * src/RequestGroupMan.cc
  5575. * src/main.cc
  5576. * src/option_processing.cc
  5577. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5578. Added missing AM_CONDITIONAL
  5579. * configure.ac
  5580. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5581. Added xml-rpc functionality. Currently only addURI commad is
  5582. supported. To enable xml-rpc, run aria2 with
  5583. --enable-http-server. This option name is temporal and will be
  5584. changed. The feature that reports download progress in html format
  5585. is temporarily disabled.
  5586. * src/HttpServer.cc
  5587. * src/HttpServer.h
  5588. * src/HttpServerBodyCommand.cc
  5589. * src/HttpServerBodyCommand.h
  5590. * src/HttpServerCommand.cc
  5591. * src/HttpServerResponseCommand.cc
  5592. * src/Makefile.am
  5593. * src/OptionParser.cc
  5594. * src/OptionParser.h
  5595. * src/RequestGroupMan.cc
  5596. * src/RequestGroupMan.h
  5597. * src/XmlRpcMethod.cc
  5598. * src/XmlRpcMethod.h
  5599. * src/XmlRpcMethodFactory.cc
  5600. * src/XmlRpcMethodFactory.h
  5601. * src/XmlRpcMethodImpl.cc
  5602. * src/XmlRpcMethodImpl.h
  5603. * src/download_helper.cc
  5604. * src/download_helper.h
  5605. * test/Makefile.am
  5606. * test/XmlRpcMethodTest.cc
  5607. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5608. Added xml-rpc request parser. The supported value types are:
  5609. i4/int, string, double, struct, array, base64. Currently only
  5610. libxml2 version is provided.
  5611. * src/Xml2XmlRpcRequestProcessor.cc
  5612. * src/Xml2XmlRpcRequestProcessor.h
  5613. * src/XmlRpcElements.cc
  5614. * src/XmlRpcElements.h
  5615. * src/XmlRpcRequest.h
  5616. * src/XmlRpcRequestParserController.cc
  5617. * src/XmlRpcRequestParserController.h
  5618. * src/XmlRpcRequestParserState.h
  5619. * src/XmlRpcRequestParserStateImpl.cc
  5620. * src/XmlRpcRequestParserStateImpl.h
  5621. * src/XmlRpcRequestParserStateMachine.cc
  5622. * src/XmlRpcRequestParserStateMachine.h
  5623. * src/XmlRpcRequestProcessor.h
  5624. * test/XmlRpcRequestParserControllerTest.cc
  5625. * test/XmlRpcRequestProcessorTest.cc
  5626. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5627. * Release 1.3.3
  5628. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5629. Fixed compile error since r1202.
  5630. * src/ExpatMetalinkProcessor.cc
  5631. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5632. Updated Ukrainian, Russian and Simplified Chinese
  5633. translations. Thanks to all translators.
  5634. * po/ru.po
  5635. * po/uk.po
  5636. * po/zh_CN.po
  5637. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5638. Pass reference of Option object instead of pointer.
  5639. * src/download_helper.cc
  5640. * src/download_helper.h
  5641. * src/main.cc
  5642. * test/DownloadHelperTest.cc
  5643. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5644. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  5645. from option directly. Instead, get them from RequestGroup.
  5646. * src/ActivePeerConnectionCommand.cc
  5647. * src/ActivePeerConnectionCommand.h
  5648. * src/PeerReceiveHandshakeCommand.cc
  5649. * src/RequestGroup.h
  5650. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5651. Removed unused uploadLimitCheck and uploadLimit from
  5652. PeerAbstractCommand. Removed unused maxDownloadLimit from
  5653. PeerInteractionCommand.
  5654. * src/PeerAbstractCommand.cc
  5655. * src/PeerAbstractCommand.h
  5656. * src/PeerInteractionCommand.cc
  5657. * src/PeerInteractionCommand.h
  5658. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5659. Fixed broken file renaming feature since r1202.
  5660. * src/FtpNegotiationCommand.cc
  5661. * src/FtpNegotiationCommand.h
  5662. * src/HttpResponseCommand.cc
  5663. * src/RequestGroup.cc
  5664. * src/RequestGroup.h
  5665. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. Removed unused debug log
  5667. * src/SocketCore.cc
  5668. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5669. Generated configure and Makefile.in using autoconf 2.63 and
  5670. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  5671. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  5672. * configure.ac
  5673. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5674. Moved piece statistics stuff to new PieceStatMan class.
  5675. Refactored PieceSelector interface.
  5676. * src/DefaultPieceStorage.cc
  5677. * src/DefaultPieceStorage.h
  5678. * src/LongestSequencePieceSelector.cc
  5679. * src/LongestSequencePieceSelector.h
  5680. * src/Makefile.am
  5681. * src/PieceSelector.h
  5682. * src/PieceStatMan.cc
  5683. * src/PieceStatMan.h
  5684. * src/RarestPieceSelector.cc
  5685. * src/RarestPieceSelector.h
  5686. * src/RequestGroup.cc
  5687. * test/DefaultPieceStorageTest.cc
  5688. * test/InOrderPieceSelector.h
  5689. * test/Makefile.am
  5690. * test/PieceStatManTest.cc
  5691. * test/RarestPieceSelectorTest.cc
  5692. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5693. Added static member _protocolFamily to SocketCore. By default,
  5694. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  5695. address. Sometime SocketCore::bind() and
  5696. SocketCore::establishConnection() use difference protocl family
  5697. and latter cannot connect to former. To avoid this situation, we
  5698. limit protocol family to AF_INET for unit tests.
  5699. * src/SocketCore.cc
  5700. * src/SocketCore.h
  5701. * test/AllTest.cc
  5702. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5703. Avoid std::bad_alloc for negative bencode string length.
  5704. * src/bencode.cc
  5705. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5706. Supported segmented downloading with chunked transfer encoding and
  5707. content-length.
  5708. * src/DownloadCommand.cc
  5709. * src/HttpResponseCommand.cc
  5710. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5711. Bump up version number to 1.3.3
  5712. * configure.ac
  5713. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5714. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  5715. from 4096 to 65536 (for insanely large ftp login banners)
  5716. * src/FtpConnection.h
  5717. * test/FtpConnectionTest.cc
  5718. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5719. In DefaultBtContext::getActualBasePath(), return first
  5720. FileEntry::getPath() for single file torrent.
  5721. * src/DefaultBtContext.cc
  5722. * test/DefaultBtContextTest.cc
  5723. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5724. Removed directIOAllowed() from BinaryStream, DiskWriter,
  5725. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  5726. Removed _directIOAllowed member from DiskWriter.
  5727. * src/AbstractDiskWriter.cc
  5728. * src/AbstractDiskWriter.h
  5729. * src/AbstractSingleDiskAdaptor.cc
  5730. * src/AbstractSingleDiskAdaptor.h
  5731. * src/BinaryStream.h
  5732. * src/ByteArrayDiskWriter.h
  5733. * src/DefaultPieceStorage.cc
  5734. * src/DiskWriter.h
  5735. * src/MultiDiskAdaptor.cc
  5736. * src/MultiDiskAdaptor.h
  5737. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5738. Now the constructor of AbstractDiskWriter takes filename as an
  5739. argument and filename argument is removed from openFile(),
  5740. initAndOpenFile(), openExistingFile() interface. storeDir member
  5741. and its accessor functions are removed from DiskAdaptor because it
  5742. is not used anymore. size() member function of DefaultDiskWriter,
  5743. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  5744. opening file.
  5745. * src/AbstractDiskWriter.cc
  5746. * src/AbstractDiskWriter.h
  5747. * src/AbstractSingleDiskAdaptor.cc
  5748. * src/AbstractSingleDiskAdaptor.h
  5749. * src/ByteArrayDiskWriter.cc
  5750. * src/ByteArrayDiskWriter.h
  5751. * src/ByteArrayDiskWriterFactory.cc
  5752. * src/ByteArrayDiskWriterFactory.h
  5753. * src/DefaultDiskWriter.cc
  5754. * src/DefaultDiskWriter.h
  5755. * src/DefaultDiskWriterFactory.cc
  5756. * src/DefaultDiskWriterFactory.h
  5757. * src/DefaultPieceStorage.cc
  5758. * src/DirectDiskAdaptor.cc
  5759. * src/DirectDiskAdaptor.h
  5760. * src/DiskAdaptor.h
  5761. * src/DiskWriter.h
  5762. * src/DiskWriterFactory.h
  5763. * src/MessageDigestHelper.cc
  5764. * src/MultiDiskAdaptor.cc
  5765. * src/RequestGroup.cc
  5766. * src/UnknownLengthPieceStorage.cc
  5767. * src/Util.cc
  5768. * test/DefaultDiskWriterTest.cc
  5769. * test/DirectDiskAdaptorTest.cc
  5770. * test/FallocFileAllocationIteratorTest.cc
  5771. * test/MessageDigestHelperTest.cc
  5772. * test/MetalinkProcessorTest.cc
  5773. * test/MultiDiskAdaptorTest.cc
  5774. * test/MultiFileAllocationIteratorTest.cc
  5775. * test/SingleFileAllocationIteratorTest.cc
  5776. * test/UtilTest.cc
  5777. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5778. Fixed the bug that aria2 aborts when --select-file is used. This
  5779. bug was introduced in r1199.
  5780. * src/MultiDiskAdaptor.cc
  5781. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5782. Code cleanup
  5783. * test/MockPieceStorage.cc
  5784. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5785. Fixed the bug that read-only file with wrong file size will cause
  5786. error because it cannot be truncated to the correct size. Now if
  5787. file size is different than the expected one, re-open file in
  5788. writable mode.
  5789. * src/AbstractSingleDiskAdaptor.cc
  5790. * src/AbstractSingleDiskAdaptor.h
  5791. * src/BtCheckIntegrityEntry.cc
  5792. * src/DiskAdaptor.h
  5793. * src/MultiDiskAdaptor.h
  5794. * src/RequestGroup.cc
  5795. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5796. Fixed the bug that with --check-integrity option aria2 reports
  5797. downloaded file size is 0 even if some parts of file is correctly
  5798. downloaded. This bug is reproducible for the download that a file
  5799. includes last piece is missing. This bug doesn't reveal for
  5800. single-torrent with file allocation on.
  5801. * src/IteratableChecksumValidator.cc
  5802. * test/IteratableChecksumValidatorTest.cc
  5803. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5804. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5805. * src/RequestGroupMan.cc
  5806. * src/AdaptiveURISelector.cc
  5807. * src/AdaptiveURISelector.h
  5808. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5809. * Release 1.3.2
  5810. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5811. Updated README
  5812. * README
  5813. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5814. Updated Ukrainian translations. Thanks to Alexander10.
  5815. * po/uk.po
  5816. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5817. Code cleanup
  5818. * src/MetalinkParserStateMachine.cc
  5819. * src/MetalinkParserStateMachine.h
  5820. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5821. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5822. and expat simultaneously, MetalinkProcessor is now not base class
  5823. and it is directly implemented in XML2SAXMetalinkProcessor and
  5824. ExpatMetalinkProcessor.
  5825. * src/ExpatMetalinkProcessor.cc
  5826. * src/ExpatMetalinkProcessor.h
  5827. * src/Makefile.am
  5828. * src/MetalinkHelper.cc
  5829. * src/MetalinkProcessor.h
  5830. * src/MetalinkProcessorFactory.cc: Removed.
  5831. * src/MetalinkProcessorFactory.h: Removed
  5832. * src/XML2SAXMetalinkProcessor.cc
  5833. * src/XML2SAXMetalinkProcessor.h
  5834. * test/MetalinkProcessorTest.cc
  5835. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5836. Bump up version number to 1.3.2
  5837. * configure.ac
  5838. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5839. Added missing file.
  5840. * test/Makefile.am
  5841. * test/url-list-singleFileEndsWithSlash.torrent
  5842. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5843. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5844. request.
  5845. * src/AnnounceList.cc
  5846. * src/AnnounceList.h
  5847. * src/BDE.cc: Added
  5848. * src/BDE.h: Added
  5849. * src/DHTAbstractMessage.cc
  5850. * src/DHTAbstractMessage.h
  5851. * src/DHTAnnouncePeerMessage.cc
  5852. * src/DHTAnnouncePeerMessage.h
  5853. * src/DHTAnnouncePeerReplyMessage.cc
  5854. * src/DHTAnnouncePeerReplyMessage.h
  5855. * src/DHTFindNodeMessage.cc
  5856. * src/DHTFindNodeMessage.h
  5857. * src/DHTFindNodeReplyMessage.cc
  5858. * src/DHTFindNodeReplyMessage.h
  5859. * src/DHTGetPeersMessage.cc
  5860. * src/DHTGetPeersMessage.h
  5861. * src/DHTGetPeersReplyMessage.cc
  5862. * src/DHTGetPeersReplyMessage.h
  5863. * src/DHTMessageFactory.h
  5864. * src/DHTMessageFactoryImpl.cc
  5865. * src/DHTMessageFactoryImpl.h
  5866. * src/DHTMessageReceiver.cc
  5867. * src/DHTMessageTracker.cc
  5868. * src/DHTMessageTracker.h
  5869. * src/DHTPingMessage.cc
  5870. * src/DHTPingMessage.h
  5871. * src/DHTPingReplyMessage.cc
  5872. * src/DHTPingReplyMessage.h
  5873. * src/DHTQueryMessage.cc
  5874. * src/DHTQueryMessage.h
  5875. * src/DHTResponseMessage.cc
  5876. * src/DHTResponseMessage.h
  5877. * src/DefaultBtAnnounce.cc
  5878. * src/DefaultBtContext.cc
  5879. * src/DefaultBtContext.h
  5880. * src/HandshakeExtensionMessage.cc
  5881. * src/Makefile.am
  5882. * src/PeerListProcessor.h
  5883. * src/UTPexExtensionMessage.cc
  5884. * src/bencode.cc
  5885. * src/bencode.h
  5886. * test/AnnounceListTest.cc
  5887. * test/BDETest.cc: Added
  5888. * test/BencodeTest.cc
  5889. * test/DHTAnnouncePeerMessageTest.cc
  5890. * test/DHTAnnouncePeerReplyMessageTest.cc
  5891. * test/DHTFindNodeMessageTest.cc
  5892. * test/DHTFindNodeReplyMessageTest.cc
  5893. * test/DHTGetPeersMessageTest.cc
  5894. * test/DHTGetPeersReplyMessageTest.cc
  5895. * test/DHTMessageFactoryImplTest.cc
  5896. * test/DHTMessageTrackerTest.cc
  5897. * test/DHTPingMessageTest.cc
  5898. * test/DHTPingReplyMessageTest.cc
  5899. * test/Makefile.am
  5900. * test/MockDHTMessageFactory.h
  5901. * test/PeerListProcessorTest.cc
  5902. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5903. Use url-list (web-seeding) only for single-file torrent. This is
  5904. basically the same behavior with Metalink file with torrent and
  5905. URIs.
  5906. * src/RequestGroup.cc
  5907. * src/DefaultBtContext.cc
  5908. * test/DefaultBtContextTest.cc
  5909. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5910. Rewritten expr
  5911. * src/array_fun.h
  5912. * test/array_funTest.cc
  5913. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5914. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5915. * src/DefaultBtMessageDispatcher.cc
  5916. * src/a2algo.h
  5917. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5918. Removed ExtendedMessagingAware. Instead of using inheritance,
  5919. added ExtensionMessageRegistry and it is passed to
  5920. DefaultExtensionMessageFactory.
  5921. * src/DefaultBtInteractive.cc
  5922. * src/DefaultBtInteractive.h
  5923. * src/DefaultExtensionMessageFactory.cc
  5924. * src/DefaultExtensionMessageFactory.h
  5925. * src/ExtendedMessagingAware.h: Removed.
  5926. * src/ExtensionMessageFactory.h
  5927. * src/ExtensionMessageRegistry.h: Added.
  5928. * src/Makefile.am
  5929. * src/PeerInteractionCommand.cc
  5930. * test/DefaultExtensionMessageFactoryTest.cc
  5931. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5932. Fixed typo in log messages
  5933. * src/MSEHandshake.cc
  5934. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5935. Fixed the bug that prevents torrent download from finishing. The
  5936. bug doesn't reveal for all torrents. The torrents affected this
  5937. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5938. of pieces.
  5939. * src/bitfield.h
  5940. * test/bitfieldTest.cc
  5941. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5942. Code cleanup
  5943. * src/PeerListProcessor.h
  5944. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5945. Removed RequestGroupAware
  5946. * src/AbstractCommand.cc
  5947. * src/AbstractCommand.h
  5948. * src/ActivePeerConnectionCommand.cc
  5949. * src/ActivePeerConnectionCommand.h
  5950. * src/DHTGetPeersCommand.cc
  5951. * src/DHTGetPeersCommand.h
  5952. * src/InitiatorMSEHandshakeCommand.cc
  5953. * src/InitiatorMSEHandshakeCommand.h
  5954. * src/Makefile.am
  5955. * src/PeerInitiateConnectionCommand.cc
  5956. * src/PeerInitiateConnectionCommand.h
  5957. * src/PeerInteractionCommand.cc
  5958. * src/PeerInteractionCommand.h
  5959. * src/RealtimeCommand.cc
  5960. * src/RealtimeCommand.h
  5961. * src/RequestGroupAware.cc: Removed
  5962. * src/RequestGroupAware.h: Removed
  5963. * src/SeedCheckCommand.cc
  5964. * src/SeedCheckCommand.h
  5965. * src/SleepCommand.cc
  5966. * src/TrackerWatcherCommand.cc
  5967. * src/TrackerWatcherCommand.h
  5968. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5969. Rewritten PeerListProcessor
  5970. * src/PeerListProcessor.h
  5971. * src/CompactPeerListProcessor.h: Removed
  5972. * src/CompactPeerListProcessor.cc: Removed
  5973. * src/DelegatingPeerListProcessor.cc: Removed.
  5974. * src/DefaultBtAnnounce.cc
  5975. * src/Makefile.am
  5976. * src/UTPexExtensionMessage.cc
  5977. * src/DefaultPeerListProcessor.h: Removed.
  5978. * src/DefaultPeerListProcessor.cc: Removed.
  5979. * src/DelegatingPeerListProcessor.h: Removed.
  5980. * test/Makefile.am
  5981. * test/PeerListProcessorTest.cc
  5982. * test/DefaultPeerListProcessorTest.cc: Removed.
  5983. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5984. Rewritten RequestGroupMan::calculateStat()
  5985. * src/RequestGroupMan.cc
  5986. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5987. Removed unnecessary virtual destructor for Request class.
  5988. * src/Request.cc
  5989. * src/Request.h
  5990. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5991. Avoid dynamic_pointer_cast.
  5992. * src/DHTGetPeersCommand.cc
  5993. * src/DHTGetPeersCommand.h
  5994. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5995. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5996. BtEvent.
  5997. * src/AbstractBtEventListener.h: Removed.
  5998. * src/AbstractBtMessage.cc
  5999. * src/AbstractBtMessage.h
  6000. * src/BtAbortOutstandingRequestEvent.h
  6001. * src/BtCancelSendingPieceEvent.h
  6002. * src/BtChokedEvent.h: Removed.
  6003. * src/BtChokingEvent.h
  6004. * src/BtEvent.h: Removed
  6005. * src/BtEventListener.h: Removed.
  6006. * src/BtMessage.h
  6007. * src/BtPieceMessage.cc
  6008. * src/BtPieceMessage.h
  6009. * src/BtRequestMessage.cc
  6010. * src/BtRequestMessage.h
  6011. * src/DefaultBtMessageDispatcher.cc
  6012. * src/Makefile.am
  6013. * src/a2functional.h
  6014. * test/BtPieceMessageTest.cc
  6015. * test/BtRequestMessageTest.cc
  6016. * test/DefaultBtMessageDispatcherTest.cc
  6017. * test/MockBtMessage.h
  6018. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6019. Code cleanup
  6020. * src/RequestGroupMan.cc
  6021. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6022. Code cleanup
  6023. * src/DownloadCommand.cc
  6024. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6025. Fixed segmentation fault when GZipDecoder::decode() returns 0
  6026. byte.
  6027. * src/DownloadCommand.cc
  6028. * src/bitfield.h
  6029. * test/bitfieldTest.cc
  6030. Fixed the bug that causes infinite loop if broken web server
  6031. returns chunked response without last "0" chunk-size marker and
  6032. closes connection.
  6033. * src/DownloadCommand.cc
  6034. Instantiate properly configured HttpDownloadCommand for
  6035. non-resumable downlaods.
  6036. * src/HttpResponseCommand.cc
  6037. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6038. Rewritten array operation functions.
  6039. * src/BitfieldMan.cc
  6040. * src/array_fun.h
  6041. * test/array_funTest.cc
  6042. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6043. Removed unused variable 'query'
  6044. * src/Request.cc
  6045. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6046. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  6047. accidentally set to false in r1162.
  6048. * configure.ac
  6049. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6050. Code cleanup
  6051. * src/BNode.cc
  6052. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6053. Increase prefixLength for the bucket which doesn't own local node
  6054. ID when splitting bucket.
  6055. * src/DHTBucket.cc
  6056. * test/DHTBucketTest.cc
  6057. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6058. * Release 1.3.1
  6059. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6060. Bump up version number to 1.3.1
  6061. * configure.ac
  6062. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6063. Removed unused variable checkPoint. Also removed include directive
  6064. for TimeA2.h.
  6065. * src/SeedCheckCommand.h
  6066. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6067. Fixed the bug that upload limit exceeds the value specified in
  6068. --seed-ratio option depending on the timing of the execution of
  6069. SeedCheckCommand.
  6070. * src/SeedCheckCommand.cc
  6071. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6072. Fixed the bug that removed peer's session upload/download length
  6073. are counted twice in _cachedTransferStat before it is
  6074. re-calculated. This affected the calculation of shara ratio,
  6075. resulting aria2 wrongly determines that specified share ratio is
  6076. reached. Also fixed the typo in calculateStatFor function name.
  6077. * src/BtSetup.cc
  6078. * src/DefaultPeerStorage.cc
  6079. * src/ShareRatioSeedCriteria.h
  6080. * test/ShareRatioSeedCriteriaTest.cc
  6081. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6082. * Release 1.3.0
  6083. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6084. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  6085. Nynorsk translations. Thanks to all translators.
  6086. * po/es.po
  6087. * po/ja.po
  6088. * po/nn.po
  6089. * po/ru.po
  6090. * po/uk.po
  6091. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6092. Rewritten isInRange()
  6093. * src/DHTBucket.cc
  6094. * test/DHTBucketTest.cc
  6095. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6096. Fixed typo
  6097. * doc/aria2c.1.txt
  6098. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6099. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  6100. malloc/realloc is not used.
  6101. * src/configure.ac
  6102. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6103. BitfieldMan::getMissingIndexes family functions now takes unsigned
  6104. char* bitfield instead of stl container for efficiency.
  6105. PieceSelector::select now takes this
  6106. bitfield. RarestPieceSelector::select now also performs
  6107. efficiently for this change. bitfield namespace is introduced and
  6108. it has several helper functions to handle basic bitfield
  6109. operations such as test, count set bits, etc.
  6110. * src/BitfieldMan.cc
  6111. * src/BitfieldMan.h
  6112. * src/DefaultBtRequestFactory.cc
  6113. * src/DefaultPieceStorage.cc
  6114. * src/DefaultPieceStorage.h
  6115. * src/LongestSequencePieceSelector.cc
  6116. * src/LongestSequencePieceSelector.h
  6117. * src/Makefile.am
  6118. * src/Piece.cc
  6119. * src/Piece.h
  6120. * src/PieceSelector.h
  6121. * src/RarestPieceSelector.cc
  6122. * src/RarestPieceSelector.h
  6123. * src/Util.cc
  6124. * src/Util.h
  6125. * src/bitfield.h
  6126. * test/BitfieldManTest.cc
  6127. * test/LongestSequencePieceSelectorTest.cc
  6128. * test/Makefile.am
  6129. * test/RarestPieceSelectorTest.cc
  6130. * test/UtilTest.cc
  6131. * test/bitfieldTest.cc
  6132. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6133. Made accepted socket non-block.
  6134. * src/FtpNegotiationCommand.cc
  6135. * src/HttpListenCommand.cc
  6136. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6137. Guarded #ifdef HAVE_POSIX_FALLOCATE
  6138. * src/AbstractSingleDiskAdaptor.cc
  6139. * src/DefaultPieceStorage.cc
  6140. * src/DiskAdaptor.h
  6141. * src/DiskAdaptor.h
  6142. * src/MultiFileAllocationIterator.cc
  6143. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6144. Run
  6145. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  6146. in every 1 sec. The timeout of RequestSlot is 60s by default and
  6147. it doesn't need to be called every time when
  6148. DefaultBtInteractive::doInteractionProcessing() is called.
  6149. * src/DefaultBtInteractive.cc
  6150. * src/DefaultBtInteractive.h
  6151. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6152. Documented 'falloc' in man page.
  6153. * doc/aria2c.1.txt
  6154. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6155. Updated doc
  6156. * src/usage_text.h
  6157. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6158. Added 'falloc' parameter for --file-allocation option. 'falloc'
  6159. allocation mode uses posix_fallocate() system call to allocate
  6160. file on disk. If you are using newer file systems such as ext4
  6161. (with extents support), btrfs or xfs, 'falloc' is your best
  6162. choice. It allocates large(few GiB) files almost instantly. Don't
  6163. use 'falloc' with legacy file systems such as ext3 because it
  6164. takes almost same time as 'prealloc' and it blocks aria2 entirely
  6165. until allocation finishes. 'falloc' may not be available if your
  6166. system doesn't have posix_fallocate() system call.
  6167. * configure.ac
  6168. * src/AbstractDiskWriter.cc
  6169. * src/AbstractDiskWriter.h
  6170. * src/AbstractSingleDiskAdaptor.cc
  6171. * src/BinaryStream.h
  6172. * src/BtCheckIntegrityEntry.cc
  6173. * src/ByteArrayDiskWriter.h
  6174. * src/CheckIntegrityEntry.cc
  6175. * src/CheckIntegrityEntry.h
  6176. * src/DefaultPieceStorage.cc
  6177. * src/DiskAdaptor.cc
  6178. * src/DiskAdaptor.h
  6179. * src/DiskWriter.h
  6180. * src/FallocFileAllocationIterator.cc
  6181. * src/FallocFileAllocationIterator.h
  6182. * src/FileAllocationEntry.cc
  6183. * src/FileAllocationEntry.h
  6184. * src/Makefile.am
  6185. * src/MultiFileAllocationIterator.cc
  6186. * src/MultiFileAllocationIterator.h
  6187. * src/OptionHandlerFactory.cc
  6188. * src/RequestGroup.cc
  6189. * src/StreamCheckIntegrityEntry.cc
  6190. * src/prefs.cc
  6191. * src/prefs.h
  6192. * src/usage_text.h
  6193. * test/FallocFileAllocationIteratorTest.cc
  6194. * test/Makefile.am
  6195. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6196. Removed duplicate enableDirectIO() call.
  6197. * src/MultiFileAllocationIterator.cc
  6198. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6199. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  6200. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  6201. cost of std::rotate().
  6202. * src/RarestPieceSelector.cc
  6203. * src/RarestPieceSelector.h
  6204. * test/RarestPieceSelectorTest.cc
  6205. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6206. Updated usage doc for --bt-tracker-interval option.
  6207. * src/usage_text.h
  6208. * doc/aria2c.1.txt
  6209. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6210. Documented --bt-tracker-interval option in man page.
  6211. * doc/aria2c.1.txt
  6212. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6213. Added an option to specify the interval between tracker requests.
  6214. If non-zero value is specified, aria2 uses it and ignores the
  6215. interval value in the response of tracker. If zero is specified,
  6216. aria2 determines the inteval value based on the tarcker response
  6217. and download progress.
  6218. * src/DefaultBtAnnounce.cc
  6219. * src/DefaultBtAnnounce.h
  6220. * src/OptionHandlerFactory.cc
  6221. * src/RequestGroup.cc
  6222. * src/prefs.cc
  6223. * src/prefs.h
  6224. * src/usage_text.h
  6225. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6226. Added operator+=, operator-=, operator-
  6227. * src/TransferStat.cc
  6228. * src/TransferStat.h
  6229. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6230. Refactored RarestPieceSelector to reduce CPU load, especially for
  6231. addPieceStats.
  6232. * src/RarestPieceSelector.cc
  6233. * src/RarestPieceSelector.h
  6234. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6235. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  6236. getAllMissingBlockIndexes to reduce a call to
  6237. array_function_base::operator[].
  6238. * src/BitfieldMan.cc
  6239. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6240. Cached TransferStat/download speed to avoid to sum them up in each
  6241. call.
  6242. * src/DefaultPeerStorage.cc
  6243. * src/DefaultPeerStorage.h
  6244. * src/SegmentMan.cc
  6245. * src/SegmentMan.h
  6246. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6247. Typedefed cuid_t as int32_t in Command.h
  6248. * src/CUIDCounter.h
  6249. * src/Command.cc
  6250. * src/Command.h
  6251. * src/DownloadEngine.cc
  6252. * src/DownloadEngine.h
  6253. * src/PeerStat.h
  6254. * src/SegmentMan.cc
  6255. * src/SegmentMan.h
  6256. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6257. Reduced the number of calls to PeerStorage::calculateStat() and
  6258. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  6259. transfer rate.
  6260. * src/DefaultBtInteractive.cc
  6261. * src/DefaultBtMessageDispatcher.cc
  6262. * src/DefaultPeerStorage.cc
  6263. * src/DefaultPeerStorage.h
  6264. * src/DownloadCommand.cc
  6265. * src/DownloadEngine.cc
  6266. * src/PeerStorage.h
  6267. * src/SegmentMan.cc
  6268. * src/SegmentMan.h
  6269. * test/MockPeerStorage.h
  6270. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6271. Prepended _dir+"/" after joining path elements in torrent file.
  6272. * src/DefaultBtContext.cc
  6273. * test/DefaultBtContextTest.cc
  6274. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6275. Added missing IndexBtMessageValidator.h
  6276. * src/Makefile.am
  6277. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6278. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  6279. Chinese translations. Thank you for contributing our project.
  6280. * po/id.po
  6281. * po/it.po
  6282. * po/ru.po
  6283. * po/uk.po
  6284. * po/zh_CN.po
  6285. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6286. Updated README
  6287. * README
  6288. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6289. Bump up version number to 1.3.0
  6290. * configure.ac
  6291. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6292. Updated doc
  6293. * src/DefaultBtContext.h
  6294. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6295. Slice/joinPath for name of single torrent.
  6296. * src/DefaultBtContext.cc
  6297. * test/DefaultBtContextTest.cc
  6298. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6299. Updated man page: Documented --dry-run and --index-out
  6300. options. Changed the default value of --uri-selector and
  6301. --http-auth-challenge options. Removed --direct-file-mapping
  6302. option. Added example for --index-out
  6303. * doc/aria2c.1.txt
  6304. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6305. Updated TEXT_DRY_RUN
  6306. * src/usage_text.h
  6307. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6308. Changed the default value of --uri-selector option from 'inorder'
  6309. to 'feedback'
  6310. * src/OptionHandlerFactory.cc
  6311. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6312. Included current URI in exception message.
  6313. * src/AbstractCommand.cc
  6314. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6315. Renamed ServerStatURISelector as FeedbackURISelector.
  6316. * src/FeedbackURISelector.cc
  6317. * src/FeedbackURISelector.h
  6318. * src/Makefile.am
  6319. * src/RequestGroupMan.cc
  6320. * src/ServerStatURISelector.cc
  6321. * src/ServerStatURISelector.h
  6322. * test/FeedbackURISelectorTest.cc
  6323. * test/Makefile.am
  6324. * test/ServerStatURISelectorTest.cc
  6325. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6326. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  6327. all URIs are tested and their timeout is not reached.
  6328. * src/AdaptiveURISelector.cc
  6329. * src/AdaptiveURISelector.h
  6330. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6331. Changed the default value of --http-auth-challenge option to false.
  6332. * src/OptionHandlerFactory.cc
  6333. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6334. Reuse URIs when all unused URIs run out.
  6335. * src/OptionHandlerFactory.cc
  6336. * src/RequestGroup.cc
  6337. * src/prefs.cc
  6338. * src/prefs.h
  6339. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6340. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  6341. and BtRejectMessage are derived from RangeBtMessage class.
  6342. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  6343. derived from IndexBtMessage class. BtChokeMessage,
  6344. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  6345. BtNotInterestedMessage and BtUnchokeMessage are derived from
  6346. ZeroBtMessage class.
  6347. * src/AbstractBtMessage.cc
  6348. * src/AbstractBtMessage.h
  6349. * src/BtAllowedFastMessage.cc
  6350. * src/BtAllowedFastMessage.h
  6351. * src/BtAllowedFastMessageValidator.h: Removed
  6352. * src/BtBitfieldMessage.cc
  6353. * src/BtBitfieldMessage.h
  6354. * src/BtCancelMessage.cc
  6355. * src/BtCancelMessage.h
  6356. * src/BtCancelMessageValidator.h: Removed
  6357. * src/BtChokeMessage.cc
  6358. * src/BtChokeMessage.h
  6359. * src/BtExtendedMessage.cc
  6360. * src/BtExtendedMessage.h
  6361. * src/BtHandshakeMessage.cc
  6362. * src/BtHandshakeMessage.h
  6363. * src/BtHaveAllMessage.cc
  6364. * src/BtHaveAllMessage.h
  6365. * src/BtHaveMessage.cc
  6366. * src/BtHaveMessage.h
  6367. * src/BtHaveMessageValidator.h: Removed
  6368. * src/BtHaveNoneMessage.cc
  6369. * src/BtHaveNoneMessage.h
  6370. * src/BtInterestedMessage.cc
  6371. * src/BtInterestedMessage.h
  6372. * src/BtKeepAliveMessage.cc
  6373. * src/BtKeepAliveMessage.h
  6374. * src/BtNotInterestedMessage.cc
  6375. * src/BtNotInterestedMessage.h
  6376. * src/BtPieceMessage.cc
  6377. * src/BtPieceMessage.h
  6378. * src/BtPortMessage.cc
  6379. * src/BtPortMessage.h
  6380. * src/BtRejectMessage.cc
  6381. * src/BtRejectMessage.h
  6382. * src/BtRejectMessageValidator.h: Removed
  6383. * src/BtRequestMessage.cc
  6384. * src/BtRequestMessage.h
  6385. * src/BtRequestMessageValidator.h: Removed
  6386. * src/BtSuggestPieceMessage.cc
  6387. * src/BtSuggestPieceMessage.h
  6388. * src/BtSuggestPieceMessageValidator.h: Removed
  6389. * src/BtUnchokeMessage.cc
  6390. * src/BtUnchokeMessage.h
  6391. * src/DefaultBtMessageFactory.cc
  6392. * src/IndexBtMessage.cc
  6393. * src/IndexBtMessage.h
  6394. * src/IndexBtMessageValidator.h
  6395. * src/Makefile.am
  6396. * src/PeerMessageUtil.cc
  6397. * src/PeerMessageUtil.h
  6398. * src/RangeBtMessage.cc
  6399. * src/RangeBtMessage.h
  6400. * src/RangeBtMessageValidator.h
  6401. * src/SimpleBtMessage.cc
  6402. * src/SimpleBtMessage.h
  6403. * src/ZeroBtMessage.cc
  6404. * src/ZeroBtMessage.h
  6405. * test/BtRequestMessageTest.cc
  6406. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6407. Reverted usage_text.h to r1093 to avoid to lose translated
  6408. messages.
  6409. * src/usage_text.h
  6410. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6411. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  6412. declared as non-const previously is now const and defined in class
  6413. definition.
  6414. * src/AbstractBtMessage.cc
  6415. * src/AbstractBtMessage.h
  6416. * src/BtAllowedFastMessage.cc
  6417. * src/BtAllowedFastMessage.h
  6418. * src/BtBitfieldMessage.h
  6419. * src/BtCancelMessage.cc
  6420. * src/BtCancelMessage.h
  6421. * src/BtChokeMessage.cc
  6422. * src/BtChokeMessage.h
  6423. * src/BtExtendedMessage.cc
  6424. * src/BtExtendedMessage.h
  6425. * src/BtHandshakeMessage.cc
  6426. * src/BtHandshakeMessage.h
  6427. * src/BtHaveAllMessage.cc
  6428. * src/BtHaveAllMessage.h
  6429. * src/BtHaveMessage.cc
  6430. * src/BtHaveMessage.h
  6431. * src/BtHaveNoneMessage.cc
  6432. * src/BtHaveNoneMessage.h
  6433. * src/BtInterestedMessage.cc
  6434. * src/BtInterestedMessage.h
  6435. * src/BtKeepAliveMessage.cc
  6436. * src/BtKeepAliveMessage.h
  6437. * src/BtMessage.h
  6438. * src/BtNotInterestedMessage.cc
  6439. * src/BtNotInterestedMessage.h
  6440. * src/BtPieceMessage.h
  6441. * src/BtPortMessage.cc
  6442. * src/BtPortMessage.h
  6443. * src/BtRejectMessage.cc
  6444. * src/BtRejectMessage.h
  6445. * src/BtRequestMessage.cc
  6446. * src/BtRequestMessage.h
  6447. * src/BtSuggestPieceMessage.cc
  6448. * src/BtSuggestPieceMessage.h
  6449. * src/BtUnchokeMessage.cc
  6450. * src/BtUnchokeMessage.h
  6451. * src/SimpleBtMessage.cc
  6452. * src/SimpleBtMessage.h
  6453. * test/MockBtMessage.h
  6454. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6455. Use FileEntry::exists()
  6456. * src/MultiDiskAdaptor.cc
  6457. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6458. Added exists()
  6459. * src/FileEntry.cc
  6460. * src/FileEntry.h
  6461. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6462. Added missing prefix dir.
  6463. * src/download_helper.cc
  6464. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6465. Removed --direct-file-mapping option and CopyDiskAdaptor.
  6466. * src/CopyDiskAdaptor.cc: Removed
  6467. * src/CopyDiskAdaptor.h: Removed
  6468. * src/DefaultPieceStorage.cc
  6469. * src/Makefile.am
  6470. * src/OptionHandlerFactory.cc
  6471. * src/prefs.cc
  6472. * src/prefs.h
  6473. * src/usage_text.h
  6474. * test/CopyDiskAdaptorTest.cc: Removed
  6475. * test/Makefile.am
  6476. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6477. Rewritten isSameFileBeingDownloaded()
  6478. * src/RequestGroupMan.cc
  6479. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6480. Removed getName() from DownloadContext. getName() is declared in
  6481. BtContext.
  6482. * src/BtContext.h
  6483. * src/DownloadContext.h
  6484. * src/SingleFileDownloadContext.cc
  6485. * src/SingleFileDownloadContext.h
  6486. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  6487. in AbstractSingleDiskAdaptor.
  6488. * src/AbstractSingleDiskAdaptor.h
  6489. * src/DiskAdaptor.h
  6490. * src/MultiDiskAdaptor.h
  6491. * src/RequestGroup.cc
  6492. Removed setTopDir() and getTopDir() and getTopDirPath() from
  6493. MultiDiskAdaptor.
  6494. * src/DefaultPieceStorage.cc
  6495. * src/MultiDiskAdaptor.cc
  6496. * src/MultiDiskAdaptor.h
  6497. * test/MultiDiskAdaptorTest.cc
  6498. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6499. FileEntry::getPath() contains store(top level) directory to
  6500. simplify path handling operation. In the previous implementation,
  6501. store directory is concatenated to FileEntry::getPath() in
  6502. DownloadContext.
  6503. * src/BtDependency.cc
  6504. * src/BtPostDownloadHandler.cc
  6505. * src/CopyDiskAdaptor.cc
  6506. * src/DefaultBtContext.cc
  6507. * src/DirectDiskAdaptor.cc
  6508. * src/FileEntry.cc
  6509. * src/FileEntry.h
  6510. * src/FtpNegotiationCommand.cc
  6511. * src/HttpResponse.cc
  6512. * src/HttpResponseCommand.cc
  6513. * src/Metalink2RequestGroup.cc
  6514. * src/MultiDiskAdaptor.cc
  6515. * src/MultiDiskAdaptor.h
  6516. * src/MultiFileAllocationIterator.cc
  6517. * src/RequestGroup.cc
  6518. * src/SingleFileDownloadContext.cc
  6519. * src/SingleFileDownloadContext.h
  6520. * src/download_helper.cc
  6521. * test/BtDependencyTest.cc
  6522. * test/CopyDiskAdaptorTest.cc
  6523. * test/DefaultBtContextTest.cc
  6524. * test/DefaultBtProgressInfoFileTest.cc
  6525. * test/DirectDiskAdaptorTest.cc
  6526. * test/DownloadHelperTest.cc
  6527. * test/FileEntryTest.cc
  6528. * test/MultiDiskAdaptorTest.cc
  6529. * test/MultiFileAllocationIteratorTest.cc
  6530. * test/RequestGroupTest.cc
  6531. * test/SingleFileDownloadContextTest.cc
  6532. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6533. Fixed compiler warning
  6534. * src/download_helper.cc
  6535. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6536. Throw exception if same infohash torrent is now downloading.
  6537. * src/RequestGroup.cc
  6538. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6539. Added --dry-run option. In this mode, aria2 just checks whether
  6540. the remote file is available and doesn't download data. This
  6541. option has effect on HTTP/FTP downloads and BitTorrent downloads
  6542. are canceled in this mode.
  6543. * src/FtpNegotiationCommand.cc
  6544. * src/HttpResponseCommand.cc
  6545. * src/HttpResponseCommand.h
  6546. * src/OptionHandlerFactory.cc
  6547. * src/RequestGroup.cc
  6548. * src/RequestGroupMan.cc
  6549. * src/prefs.cc
  6550. * src/prefs.h
  6551. * src/usage_text.h
  6552. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6553. Fixed compiler waring
  6554. * test/UriListParserTest.cc
  6555. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6556. Parse options in -i list using OptionParser.
  6557. * src/UriListParser.cc
  6558. * src/UriListParser.h
  6559. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6560. Don't reset URI in retry to avoid additional round trips because
  6561. of redirects.
  6562. * src/AbstractCommand.cc
  6563. * src/OptionHandlerFactory.cc
  6564. * src/prefs.cc
  6565. * src/prefs.h
  6566. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6567. Declared hide() in OptionHandler.
  6568. * src/NameMatchOptionHandler.h
  6569. * src/OptionHandler.h
  6570. * src/OptionHandlerImpl.h
  6571. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6572. Updated doc
  6573. * src/Peer.h
  6574. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6575. Added log message in setStatusInternal()
  6576. * src/ServerStat.cc
  6577. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6578. Call ServerStat::setError() in AbstractCommand::onAbort() to
  6579. effectively exclude failed server.
  6580. * src/AbstractCommand.cc
  6581. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6582. Added --index-out option to specify each file path for torrent.
  6583. Here index shown in --show-files option is used to specify which
  6584. file path should be altered. For example, to change the file path
  6585. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  6586. option multiple times: --index-out=1=aria2.tar.bz2
  6587. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  6588. available. This option can be specified in -i list.
  6589. * src/DefaultBtContext.cc
  6590. * src/DefaultBtContext.h
  6591. * src/MultiDiskAdaptor.cc
  6592. * src/MultiDiskAdaptor.h
  6593. * src/MultiFileAllocationIterator.cc
  6594. * src/OptionHandlerFactory.cc
  6595. * src/OptionHandlerImpl.h
  6596. * src/Util.cc
  6597. * src/Util.h
  6598. * src/download_helper.cc
  6599. * src/prefs.cc
  6600. * src/prefs.h
  6601. * src/usage_text.h
  6602. * test/DefaultBtContextTest.cc
  6603. * test/MultiDiskAdaptorTest.cc
  6604. * test/MultiFileAllocationIteratorTest.cc
  6605. * test/UtilTest.cc
  6606. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6607. Use Util::pathJoin()
  6608. * src/MetalinkParserController.cc
  6609. * test/test.xml
  6610. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6611. Use Util::pathJoin()
  6612. * src/DefaultBtContext.cc
  6613. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6614. Added Util::pathJoin()
  6615. * src/Util.h
  6616. * test/UtilTest.cc
  6617. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6618. Applied basename function to remove directory element in
  6619. content-disposition value.
  6620. Return empty string if content-disposition value is ".." or ".".
  6621. * src/Util.cc
  6622. * test/UtilTest.cc
  6623. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6624. Added --max-overall-download-limit in man page.
  6625. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  6626. * doc/aria2c.1.txt
  6627. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6628. Added --max-overall-download-limit option. Now --max-upload-limit
  6629. option is not ignored when --max-overall-upload-limit option has
  6630. non-zero value. aria2 checks download(upload) speed in the order:
  6631. first checks overall speed limit and if it is not exceeded, then
  6632. checks speed limit per download. Thus you can specify both
  6633. value. For example, set --max-overall-download-limit=1M and
  6634. --max-download-limit=500K to prevent from one download from eating
  6635. all overall speed limit.
  6636. * src/DefaultBtInteractive.cc
  6637. * src/DefaultBtInteractive.h
  6638. * src/DefaultBtMessageDispatcher.cc
  6639. * src/DefaultBtMessageDispatcher.h
  6640. * src/DownloadCommand.cc
  6641. * src/DownloadCommand.h
  6642. * src/FtpNegotiationCommand.cc
  6643. * src/HttpResponseCommand.cc
  6644. * src/OptionHandlerFactory.cc
  6645. * src/PeerInteractionCommand.cc
  6646. * src/RequestGroup.cc
  6647. * src/RequestGroup.h
  6648. * src/RequestGroupMan.cc
  6649. * src/RequestGroupMan.h
  6650. * src/prefs.cc
  6651. * src/prefs.h
  6652. * src/usage_text.h
  6653. * test/DefaultBtMessageDispatcherTest.cc
  6654. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6655. Documented select-file option in Input File section.
  6656. Documented --http-auth-challenge option.
  6657. * doc/aria2c.1.txt
  6658. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6659. Now select-file can be specified in the uri list(-i list).
  6660. * src/BtContext.cc
  6661. * src/BtContext.h
  6662. * src/RequestGroup.cc
  6663. * src/Sequence.h
  6664. * src/download_helper.cc
  6665. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6666. Made the upper value of --max-concurrent-downloads options unlimited.
  6667. * src/OptionHandlerFactory.cc
  6668. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6669. Fixed the bug that disk writer is not created even if it shares
  6670. same piece with the preceding file if the length of previous file
  6671. is 0.
  6672. * src/MultiDiskAdaptor.cc
  6673. * test/MultiDiskAdaptorTest.cc
  6674. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6675. In BitTorrent, Open files in read-only mode for hash check. After
  6676. that, re-open file in read/write mode only when the download is
  6677. not finished.
  6678. * src/AbstractDiskWriter.cc
  6679. * src/AbstractDiskWriter.h
  6680. * src/AbstractSingleDiskAdaptor.cc
  6681. * src/AbstractSingleDiskAdaptor.h
  6682. * src/BtCheckIntegrityEntry.cc
  6683. * src/DiskAdaptor.h
  6684. * src/DiskWriter.h
  6685. * src/MultiDiskAdaptor.cc
  6686. * src/MultiDiskAdaptor.h
  6687. * src/RequestGroup.cc
  6688. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6689. Added --http-auth-challenge option. If it is set to true(by
  6690. default), aria2 sends HTTP authorization header only when it is
  6691. requested by the server. If false is set, then authorization
  6692. header is always sent to the server. This is useful for servers
  6693. that don't respond 401 code when authentication is required.
  6694. There is an exception: if username and password are embedded in
  6695. URI, authorization header is always sent to the server regardless
  6696. of this option.
  6697. * src/AuthConfigFactory.cc
  6698. * src/HttpSkipResponseCommand.cc
  6699. * src/OptionHandlerFactory.cc
  6700. * src/prefs.cc
  6701. * src/prefs.h
  6702. * src/usage_text.h
  6703. * test/AuthConfigFactoryTest.cc
  6704. * test/HttpRequestTest.cc
  6705. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6706. * Release 1.2.0
  6707. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6708. Updated Spanish, Ukrainian, Russian and Japanese translations.
  6709. Thanks to all translators.
  6710. * po/es.po
  6711. * po/ja.po
  6712. * po/ru.po
  6713. * po/uk.po
  6714. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6715. Call deleteSocketForReadCheck() before socket is closed.
  6716. * src/HttpListenCommand.cc
  6717. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6718. Defined virtual destructor for BObject.
  6719. * src/bencode.h
  6720. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6721. Rewritten BDE to make it efficient.
  6722. * src/bencode.cc
  6723. * src/bencode.h
  6724. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6725. Removed function throw list.
  6726. * src/bencode.cc
  6727. * src/bencode.h
  6728. * test/BencodeTest.cc
  6729. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6730. Enclosed all URLs in double quotes in command-line examples.
  6731. * doc/aria2c.1.txt
  6732. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6733. Updated reference/see also section.
  6734. * README
  6735. * doc/aria2c.1.txt
  6736. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6737. Reorganized man page based on man man-pages.
  6738. * doc/aria2c.1.txt
  6739. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6740. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  6741. because same documents are available in man page. Added
  6742. References section.
  6743. * README
  6744. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6745. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  6746. PERFORMANCE PROFILE section.
  6747. * doc/aria2c.1.txt
  6748. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6749. Rewritten the section for configuration file.
  6750. * README
  6751. * doc/aria2c.1.txt
  6752. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6753. Fixed the segmentation fault during execution of choking algorithm
  6754. in leecher state because of broken compare operator
  6755. implementation.
  6756. * src/BtLeecherStateChoke.cc
  6757. * src/BtLeecherStateChoke.h
  6758. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6759. Open file in binary mode.
  6760. * src/CookieStorage.cc
  6761. * src/DHTSetup.cc
  6762. * src/DHTUtil.cc
  6763. * src/Netrc.cc
  6764. * src/NsCookieParser.cc
  6765. * src/ProtocolDetector.cc
  6766. * src/RequestGroupMan.cc
  6767. * src/Signature.cc
  6768. * src/bencode.cc
  6769. * src/download_helper.cc
  6770. * src/option_processing.cc
  6771. * test/CookieParserTest.cc
  6772. * test/DefaultBtProgressInfoFileTest.cc
  6773. * test/FileTest.cc
  6774. * test/GZipDecoderTest.cc
  6775. * test/RequestGroupManTest.cc
  6776. * test/SignatureTest.cc
  6777. * test/SingleFileAllocationIteratorTest.cc
  6778. * test/UriListParserTest.cc
  6779. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6780. Removed operator[] because it is ambiguous with built-in []
  6781. operator.
  6782. * src/array_fun.h
  6783. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6784. Fixed compile error
  6785. * src/OptionParser.cc
  6786. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6787. Added missing call to arrayWrapperConst
  6788. * test/array_funTest.cc
  6789. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6790. Use array_wrapper instead of array_ptr.
  6791. * src/DHTRoutingTableDeserializer.cc
  6792. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6793. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6794. * src/array_fun.h
  6795. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6796. Added array_wrapper template.
  6797. * src/array_fun.h
  6798. * test/array_funTest.cc
  6799. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6800. Use operator T* of array_ptr.
  6801. * src/OptionParser.cc
  6802. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6803. Use localhost instead of 127.0.0.1
  6804. * test/FtpConnectionTest.cc
  6805. * test/MSEHandshakeTest.cc
  6806. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6807. Added operator T*
  6808. * src/array_fun.h
  6809. * test/array_funTest.cc
  6810. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6811. Use dynamically allocated char array to detect memory access
  6812. violation.
  6813. * src/DHTRoutingTableDeserializer.cc
  6814. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6815. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6816. defined.
  6817. * src/PeerMessageUtil.cc
  6818. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6819. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6820. * configure.ac
  6821. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6822. Added a check to see struct sockaddr_in has sin_len member.
  6823. * configure.ac
  6824. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6825. Fixed buffer overrun.
  6826. * src/DHTRoutingTableDeserializer.cc
  6827. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6828. Added LL for long long int constant.
  6829. * test/FtpConnectionTest.cc
  6830. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6831. Casted to unsigned int to suppress compiler warning on netbsd.
  6832. * src/BtRuntime.h
  6833. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6834. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6835. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6836. type time_t.
  6837. * src/SimpleLogger.cc
  6838. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6839. Added test for FtpConnection::receiveSizeResponse().
  6840. * test/FtpConnectionTest.cc
  6841. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6842. Fix epoll error on the old kernel 2.6.8 or ealier.
  6843. * src/EpollEventPoll.cc
  6844. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6845. Use Util::parseLLInt instead of sscanf for portability. The
  6846. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6847. * src/FtpConnection.cc
  6848. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6849. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6850. block. It should not filter anything.
  6851. * src/BitfieldMan.cc
  6852. * src/ConsoleStatCalc.cc
  6853. * test/BitfieldManTest.cc
  6854. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6855. Fixed the bug that the boolean options that don't take arguments
  6856. don't work.
  6857. * src/OptionHandlerImpl.h
  6858. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6859. Fixed broken selected file BitTorrent download.
  6860. * src/MultiDiskAdaptor.cc
  6861. * test/MultiDiskAdaptorTest.cc
  6862. * test/MultiFileAllocationIteratorTest.cc
  6863. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6864. Fixed #define guard for EpollEventPoll
  6865. * src/EpollEventPoll.h
  6866. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6867. Wait 2 seconds. 1 second is sometimes not enough.
  6868. * test/TimeSeedCriteriaTest.cc
  6869. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6870. Use localhost instead of 127.0.0.1.
  6871. * test/DHTConnectionImplTest.cc
  6872. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6873. Suppressed compiler warning.
  6874. * src/AdaptiveURISelector.cc
  6875. * src/DefaultPieceStorage.cc
  6876. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6877. Defined virtual destructor.
  6878. * src/MetalinkParserState.h
  6879. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6880. Give NULL for second argument of getaddrinfo instead of "0".
  6881. * src/NameResolver.cc
  6882. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6883. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6884. included strptime doesn't parse data for this format.
  6885. * src/FtpConnection.cc
  6886. * test/FtpConnectionTest.cc
  6887. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6888. Removed tests giving -1 for unsigned argument.
  6889. * test/SingleFileDownloadContextTest.cc
  6890. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6891. Don't use sha256 in tests because it might not be supported by the
  6892. SSL library.
  6893. * test/MetalinkProcessorTest.cc
  6894. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6895. Removed tests giving -1 for unsigned argument.
  6896. * test/AlphaNumberDecoratorTest
  6897. * test/BitfieldManTest.cc
  6898. * test/DefaultBtContextTest.cc
  6899. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6900. Fixed compile error without libcares when epoll is available.
  6901. * src/EpollEventPoll.cc
  6902. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6903. Included fstream instead of iostream.
  6904. * test/SignatureTest.cc
  6905. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6906. Removed #include <algorithm>
  6907. * test/RequestGroupTest.cc
  6908. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6909. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6910. using RequestGroup::extractURIResult().
  6911. * src/AdaptiveURISelector.cc
  6912. * src/RequestGroup.cc
  6913. * src/RequestGroup.h
  6914. * test/RequestGroupTest.cc
  6915. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6916. Added tests for array_ptr.
  6917. * test/array_funTest.cc
  6918. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6919. Don't send ip parameter to a tracker if ip parameter is empty
  6920. string.
  6921. * src/DefaultBtAnnounce.cc
  6922. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6923. Adjusted line feed.
  6924. * src/version_usage.cc
  6925. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6926. Print tags, possible values when OptionHandlerException is caught.
  6927. * src/option_processing.cc
  6928. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6929. Changed the message for FatalException.
  6930. * src/OptionParser.cc
  6931. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6932. Documented --bt-external-ip option in man page. Updated man pages
  6933. for --proxy-method option.
  6934. * doc/aria2c.1.txt
  6935. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6936. Use GET method for FTP via HTTP proxy.
  6937. * src/FtpInitiateConnectionCommand.cc
  6938. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6939. Changed the default value of --proxy-method option from 'tunnel'
  6940. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6941. option.
  6942. * src/AbstractCommand.cc
  6943. * src/AbstractCommand.h
  6944. * src/FtpInitiateConnectionCommand.cc
  6945. * src/HttpDownloadCommand.cc
  6946. * src/HttpInitiateConnectionCommand.cc
  6947. * src/HttpInitiateConnectionCommand.h
  6948. * src/OptionHandlerFactory.cc
  6949. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6950. Initialized _logger
  6951. * src/SelectEventPoll.cc
  6952. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6953. Defined a copy constructor for the same type.
  6954. * src/SharedHandle.h
  6955. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6956. Added OptionParser::parseArg() which internally uses getopt_long
  6957. to parse command-line options. All command-line options are now
  6958. configured by OptionHandler. No manual editing of struct option*
  6959. is required any more.
  6960. * src/NameMatchOptionHandler.h
  6961. * src/OptionHandler.h
  6962. * src/OptionHandlerFactory.cc
  6963. * src/OptionHandlerImpl.h
  6964. * src/OptionParser.cc
  6965. * src/OptionParser.h
  6966. * src/array_fun.h
  6967. * src/main.cc
  6968. * src/option_processing.cc
  6969. * test/OptionHandlerTest.cc
  6970. * test/OptionParserTest.cc
  6971. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6972. Fixed configure error with --disable-epoll
  6973. * configure.ac
  6974. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6975. Fixed compile error when HAVE_EPOLL is not defined.
  6976. Fixed linker error on bigendian systems.
  6977. * src/SocketCore.cc
  6978. * src/SocketCore.h
  6979. * test/DefaultBtProgressInfoFileTest.cc
  6980. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6981. Added --bt-external-ip option. You can specify the external IP
  6982. address to report to a BitTorrent tracker. Although this function
  6983. is named 'external', it can accept any kind of IP addresses.
  6984. * src/DefaultBtAnnounce.cc
  6985. * src/OptionHandlerFactory.cc
  6986. * src/option_processing.cc
  6987. * src/prefs.cc
  6988. * src/prefs.h
  6989. * src/usage_text.h
  6990. * test/DefaultBtAnnounceTest.cc
  6991. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6992. Extracted the algorithm to find the longest incremental sequence
  6993. as max_sequence template.
  6994. * src/LongestSequencePieceSelector.cc
  6995. * src/a2algo.h
  6996. * test/Makefile.am
  6997. * test/a2algoTest.cc
  6998. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6999. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  7000. * src/usage_text.h
  7001. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7002. Updated doc for --uri-selector, --http-server-listen-port and
  7003. --enable-http-server option. Documented --event-poll option.
  7004. * doc/aria2c.1.txt
  7005. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7006. Updated doc for --enable-http-server.
  7007. * src/usage_text.h
  7008. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7009. Documented --http-server-listen-port and --enable-http-server in
  7010. man page.
  7011. * doc/aria2c.1.txt
  7012. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7013. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  7014. translations. Thanks to all translators.
  7015. * po/es.po
  7016. * po/id.po
  7017. * po/it.po
  7018. * po/ru.po
  7019. * po/uk.po
  7020. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7021. Bump up version number to 1.2.0
  7022. * configure.ac
  7023. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7024. BtContext::getAnnounceTiers() now returns const reference.
  7025. * src/BtContext.h
  7026. * src/DefaultBtContext.cc
  7027. * src/DefaultBtContext.h
  7028. * test/MockBtContext.h
  7029. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7030. Change the number of retries for tracker request based on the
  7031. number of available tracker in a torrent file.
  7032. * src/TrackerWatcherCommand.cc
  7033. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7034. Added _maxTries property to RequestGroup and assign the option
  7035. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  7036. RequestGroup::getMaxTries() instead of
  7037. Option::getAsInt(PREF_MAX_TRIES).
  7038. * src/AbstractCommand.cc
  7039. * src/RequestGroup.cc
  7040. * src/RequestGroup.h
  7041. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7042. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  7043. Mandriva. I modified the patch: make RequestGroup have the
  7044. timeout value and AdaptiveURISelector directly modifies that
  7045. value.
  7046. * src/AbstractCommand.cc
  7047. * src/AdaptiveURISelector.cc
  7048. * src/AdaptiveURISelector.h
  7049. * src/FtpNegotiationCommand.cc
  7050. * src/RequestGroup.cc
  7051. * src/RequestGroup.h
  7052. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7053. Fixed compiler warning
  7054. * test/IteratableChecksumValidatorTest.cc
  7055. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7056. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  7057. integrated downloads. This PieceSelector subclass finds the
  7058. longest continuous sequence in the available missing pieces and
  7059. selects the last index of such sequence. This makes HTTP/FTP
  7060. connections less interrupted by the pieces obtained by BitTorrent
  7061. peers.
  7062. * src/DefaultPieceStorage.cc
  7063. * src/DefaultPieceStorage.h
  7064. * src/LongestSequencePieceSelector.cc
  7065. * src/LongestSequencePieceSelector.h
  7066. * src/Makefile.am
  7067. * src/PieceSelector.h
  7068. * src/RarestPieceSelector.h
  7069. * src/RequestGroup.cc
  7070. * test/BtDependencyTest.cc
  7071. * test/DefaultPieceStorageTest.cc
  7072. * test/IteratableChecksumValidatorTest.cc
  7073. * test/LongestSequencePieceSelectorTest.cc
  7074. * test/Makefile.am
  7075. * test/SegmentManTest.cc
  7076. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7077. Fixed the bug that the average speed is wrong in
  7078. http/ftp/BitTorrent integrated download. Only the download bytes
  7079. in BitTorrent were considered.
  7080. * src/RequestGroup.cc
  7081. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7082. Choose port for BitTorrent/DHT randomly from the specified range.
  7083. * src/DHTConnectionImpl.cc
  7084. * src/PeerListenCommand.cc
  7085. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7086. Send HTTP Authorization header only if it is requested by the
  7087. server(response 401). There are some exceptions. The authorization
  7088. header for proxy is always sent if it is available without request
  7089. by the server. If username/password is specified in the URI, it
  7090. is immediately sent to the server without request by the server.
  7091. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  7092. SharedHandle<AuthConfig>().
  7093. NetrcAuthResolver::resolveAuthConfig() returns
  7094. SharedHandle<AuthConfig>() if no AuthConfig is available.
  7095. * src/AbstractAuthResolver.cc
  7096. * src/AbstractProxyRequestCommand.cc
  7097. * src/AuthConfigFactory.cc
  7098. * src/AuthConfigFactory.h
  7099. * src/HttpConnection.cc
  7100. * src/HttpRequest.cc
  7101. * src/HttpRequest.h
  7102. * src/HttpResponse.cc
  7103. * src/HttpResponseCommand.cc
  7104. * src/HttpSkipResponseCommand.cc
  7105. * test/AuthConfigFactoryTest.cc
  7106. * test/HttpRequestTest.cc
  7107. * test/HttpResponseTest.cc
  7108. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7109. Remove leading "--" from help keyword and a substring after "="
  7110. from help keyword, so that one can query options by '-h--max-' or
  7111. '-hmax-peers=10'.
  7112. * src/option_processing.cc
  7113. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7114. Rewritten PStringVisitor and its implementation.
  7115. * src/PStringBuildVisitor.cc
  7116. * src/PStringBuildVisitor.h
  7117. * src/PStringDatum.h
  7118. * src/PStringNumLoop.h
  7119. * src/PStringSegment.cc
  7120. * src/PStringSegment.h
  7121. * src/PStringSelect.h
  7122. * src/PStringVisitor.h
  7123. * src/download_helper.cc
  7124. * test/PStringBuildVisitorTest.cc
  7125. * test/ParameterizedStringParserTest.cc
  7126. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7127. Persist connection between the built-in HTTP server and a client
  7128. if a client supports keep-alive. Fixed the bug that aria2 exits
  7129. when the HTTP server receives EOF from a client.
  7130. * src/HttpServer.cc
  7131. * src/HttpServer.h
  7132. * src/HttpServerCommand.cc
  7133. * src/HttpServerCommand.h
  7134. * src/HttpServerResponseCommand.cc
  7135. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7136. Added experimental built-in HTTP server. Currently, when a client
  7137. accesses to the server, it responds with the current download
  7138. progress. By default, it is disabled. To enable the server, give
  7139. --enable-http-server option. To change the default port number
  7140. for the server to listen to, use --http-server-listen-port option.
  7141. The response HTML is very simple and refreshes it self each 1
  7142. second. Because of this refresh, you see flicker in normal web
  7143. browser such as Firefox. I recommend to use console-based browser
  7144. such as elinks, w3m. To connect to the server, run 'elinks
  7145. http://localhost:6800/' while running aria2. Please replace port
  7146. number '6800'(which is default) with your preference.
  7147. * src/DownloadEngineFactory.cc
  7148. * src/HttpHeader.cc
  7149. * src/HttpHeader.h
  7150. * src/HttpHeaderProcessor.cc
  7151. * src/HttpHeaderProcessor.h
  7152. * src/HttpListenCommand.cc
  7153. * src/HttpListenCommand.h
  7154. * src/HttpServer.cc
  7155. * src/HttpServer.h
  7156. * src/HttpServerCommand.cc
  7157. * src/HttpServerCommand.h
  7158. * src/HttpServerResponseCommand.cc
  7159. * src/HttpServerResponseCommand.h
  7160. * src/Makefile.am
  7161. * src/OptionHandlerFactory.cc
  7162. * src/Util.cc
  7163. * src/Util.h
  7164. * src/help_tags.h
  7165. * src/option_processing.cc
  7166. * src/prefs.cc
  7167. * src/prefs.h
  7168. * src/usage_text.h
  7169. * test/HttpHeaderProcessorTest.cc
  7170. * test/UtilTest.cc
  7171. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7172. Removed.
  7173. * src/CheckIntegrityMan.cc
  7174. * src/FileAllocationMan.cc
  7175. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7176. Made (piece) hash check sequential for each RequestGroup because
  7177. simultaneous hash check is slower than sequential execution.
  7178. * src/CheckIntegrityCommand.cc
  7179. * src/CheckIntegrityDispatcherCommand.cc
  7180. * src/CheckIntegrityDispatcherCommand.h
  7181. * src/CheckIntegrityMan.h
  7182. * src/ConsoleStatCalc.cc
  7183. * src/DownloadCommand.cc
  7184. * src/DownloadEngine.cc
  7185. * src/DownloadEngine.h
  7186. * src/DownloadEngineFactory.cc
  7187. * src/Makefile.am
  7188. * src/Makefile.in
  7189. * src/RequestGroup.cc
  7190. * src/StatCalc.h
  7191. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7192. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  7193. SequentialDispatcherCommand.
  7194. * src/FileAllocationDispatcherCommand.cc
  7195. * src/SequentialDispatcherCommand.h
  7196. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7197. Rewritten FileAllocationDispatcherCommand using brand new
  7198. SequentialDispatcherCommand.
  7199. * src/DownloadEngineFactory.cc
  7200. * src/FileAllocationCommand.cc
  7201. * src/FileAllocationDispatcherCommand.cc
  7202. * src/FileAllocationDispatcherCommand.h
  7203. * src/Makefile.am
  7204. * src/SequentialDispatcherCommand.h
  7205. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7206. Replaced FileAllocationMan with
  7207. SequentialPicker<FileAllocationEntry>.
  7208. * src/BtCheckIntegrityEntry.cc
  7209. * src/ConsoleStatCalc.cc
  7210. * src/DownloadEngine.cc
  7211. * src/DownloadEngine.h
  7212. * src/DownloadEngineFactory.cc
  7213. * src/FileAllocationCommand.cc
  7214. * src/FileAllocationDispatcherCommand.cc
  7215. * src/FileAllocationMan.h
  7216. * src/Makefile.am
  7217. * src/SequentialPicker.h
  7218. * src/StatCalc.h
  7219. * src/StreamCheckIntegrityEntry.cc
  7220. * test/Makefile.am
  7221. * test/SequentialPickerTest.cc
  7222. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7223. Added doc for adaptive URI selector.
  7224. * doc/aria2c.1.txt
  7225. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7226. Added doc for adaptive URI selector.
  7227. * src/usage_text.h
  7228. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7229. Added doc for --bt-max-peers option.
  7230. * doc/aria2c.1.txt
  7231. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7232. Added doc for --bt-hash-check-seed option.
  7233. * doc/aria2c.1.txt
  7234. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7235. Documented exit codes.
  7236. * doc/aria2c.1.txt
  7237. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7238. Added --bt-max-peers option to specify the maximum number of peers
  7239. per torrent. 0 means unlimited number of peers.
  7240. * src/ActivePeerConnectionCommand.cc
  7241. * src/BtRuntime.h
  7242. * src/DefaultPeerStorage.cc
  7243. * src/DefaultPeerStorage.h
  7244. * src/OptionHandlerFactory.cc
  7245. * src/RequestGroup.cc
  7246. * src/option_processing.cc
  7247. * src/prefs.cc
  7248. * src/prefs.h
  7249. * src/usage_text.h
  7250. * test/DefaultPeerStorageTest.cc
  7251. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7252. Added --bt-hash-check-seed option. If true is given to this
  7253. option, after hash check using --check-integrity option and file
  7254. is complete, continue to seed file. If you want to check file and
  7255. download it only when it is damaged or incomplete, set this option
  7256. to false. This option has effect only on BitTorrent download.
  7257. The default value is true(This is the same behavior with the
  7258. previous release).
  7259. * src/BtCheckIntegrityEntry.cc
  7260. * src/OptionHandlerFactory.cc
  7261. * src/option_processing.cc
  7262. * src/prefs.cc
  7263. * src/prefs.h
  7264. * src/usage_text.h
  7265. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7266. Updated copyright year.
  7267. * src/version_usage.cc
  7268. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7269. Rewritten the usage text for --bt-request-peer-speed-limit option.
  7270. * doc/aria2c.1.txt
  7271. * src/usage_text.h
  7272. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7273. Made the max value of split option unlimited.
  7274. * doc/aria2c.1.txt
  7275. * src/OptionHandlerFactory.cc
  7276. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7277. Fixed compile warning/error.
  7278. * src/DownloadResult.h
  7279. * src/HttpDownloadCommand.cc
  7280. * src/ServerStat.cc
  7281. * test/RequestGroupTest.cc
  7282. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7283. Added --event-poll option to select the method for polling events.
  7284. The available methods are "select" and "epoll". "epoll" is
  7285. available on Linux only. The earlier release has the compile
  7286. option to choose from these methods.
  7287. * configure.ac
  7288. * src/RequestGroupMan.cc
  7289. * src/OptionHandlerFactory.cc
  7290. * src/EpollEventPoll.h
  7291. * src/StreamFileAllocationEntry.cc
  7292. * src/a2io.h
  7293. * src/SelectEventPoll.h
  7294. * src/option_processing.cc
  7295. * src/prefs.h
  7296. * src/EpollEventPoll.cc
  7297. * src/EventPoll.h
  7298. * src/SocketCore.h
  7299. * src/Makefile.am
  7300. * src/main.cc
  7301. * src/DownloadEngine.h
  7302. * src/SelectEventPoll.cc
  7303. * src/DownloadEngine.cc
  7304. * src/SocketCore.cc
  7305. * src/DownloadEngineFactory.cc
  7306. * src/Makefile.in
  7307. * src/prefs.cc
  7308. * src/usage_text.h
  7309. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7310. Included RecoverableException.h from main.cc
  7311. * src/main.cc
  7312. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7313. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  7314. now returns last error encountered in the HTTP/FTP downloads as a
  7315. exit status value. If all downloads finished successfully, aria2
  7316. returns 0. The error code is defined in src/DownloadResult.h.
  7317. The error occurred in the download currently in progress is not
  7318. reported as a last error. If no error has encountered but there
  7319. are in progress or waiting downloads, aria2 returns 7.
  7320. * src/AbstractCommand.cc
  7321. * src/DlAbortEx.h
  7322. * src/DlRetryEx.h
  7323. * src/DownloadCommand.cc
  7324. * src/DownloadFailureException.h
  7325. * src/DownloadResult.h
  7326. * src/FtpNegotiationCommand.cc
  7327. * src/HttpSkipResponseCommand.cc
  7328. * src/Makefile.am
  7329. * src/MultiUrlRequestInfo.cc
  7330. * src/MultiUrlRequestInfo.h
  7331. * src/RecoverableException.h
  7332. * src/RequestGroup.cc
  7333. * src/RequestGroup.h
  7334. * src/RequestGroupMan.cc
  7335. * src/RequestGroupMan.h
  7336. * src/URIResult.cc
  7337. * src/URIResult.h
  7338. * src/main.cc
  7339. * src/option_processing.cc
  7340. * test/RequestGroupTest.cc
  7341. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7342. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  7343. patch adds AdaptiveURISelector, which selects one of the bests
  7344. mirrors for first and reserved connections. For supplementary
  7345. ones, it returns mirrors which has not been tested yet, and if
  7346. each of them already tested, returns mirrors which has to be
  7347. tested again. Otherwise, it doesn't return anymore mirrors.
  7348. * src/AdaptiveURISelector.cc
  7349. * src/AdaptiveURISelector.h
  7350. * src/FtpNegotiationCommand.cc
  7351. * src/HttpResponseCommand.cc
  7352. * src/Makefile.am
  7353. * src/Makefile.in
  7354. * src/OptionHandlerFactory.cc
  7355. * src/RequestGroup.cc
  7356. * src/RequestGroup.h
  7357. * src/RequestGroupMan.cc
  7358. * src/ServerStat.cc
  7359. * src/ServerStat.h
  7360. * src/ServerStatMan.cc
  7361. * src/SpeedCalc.cc
  7362. * src/URISelector.h
  7363. * src/prefs.cc
  7364. * src/prefs.h
  7365. * test/RequestGroupManTest.cc
  7366. * test/ServerStatManTest.cc
  7367. * test/ServerStatTest.cc
  7368. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7369. Fixed unit test error.
  7370. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  7371. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7372. * Release 1.1.2
  7373. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7374. Updated Russian translation. Thanks to the translators.
  7375. * po/ru.po
  7376. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7377. Added the description of --use-head option to man page.
  7378. * doc/aria2c.1.txt
  7379. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7380. Bump up version number to 1.1.2
  7381. * configure.ac
  7382. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7383. Added --use-head option to toggle whether HEAD method should be
  7384. used in the first HTTP request. By default aria2 uses HEAD method
  7385. as the first request. When the server doesn't recognize HEAD, then
  7386. give aria2 --use-head=false to force aria2 to use GET method
  7387. instead.
  7388. * src/OptionHandlerFactory.cc
  7389. * src/RequestGroupMan.cc
  7390. * src/option_processing.cc
  7391. * src/prefs.cc
  7392. * src/prefs.h
  7393. * src/usage_text.h
  7394. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7395. Fixed the bug that BitTorrent download doesn't finish when REJECT
  7396. message is received before CHOKE message. The old implementation
  7397. doen't clear the use-bit of the piece when recieved REJECT
  7398. message.
  7399. * src/DefaultBtMessageDispatcher.cc
  7400. * test/DefaultBtMessageDispatcherTest.cc
  7401. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7402. * Release 1.1.1
  7403. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7404. Bump up version number to 1.1.1.
  7405. * configure.ac
  7406. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7407. Fixed the bug that --summary-interval=0 doesn't work. The summary
  7408. is printed repeatedly.
  7409. * src/ConsoleStatCalc.cc
  7410. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7411. * Release 1.1.0
  7412. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7413. Added ifdef clause for conditional compilation.
  7414. * src/main.cc
  7415. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7416. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  7417. translations. Thanks to all translators.
  7418. * po/ja.po
  7419. * po/ru.po
  7420. * po/uk.po
  7421. * po/zh_CN.po
  7422. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7423. Added the preceding ">>> " before the message "Printing the
  7424. contents of file..." to make the output more readable.
  7425. * src/main.cc
  7426. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7427. Added try-catch block in the loop in showFiles() to continue the
  7428. operation even if the exception occurred in one file.
  7429. * src/main.cc (showFiles)
  7430. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7431. Made messages in showFiles() translatable.
  7432. * po/aria2.pot
  7433. * src/main.cc
  7434. * src/message.h
  7435. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7436. Print the contents of Torrent/Metalink files are printed without
  7437. -T/-M options.
  7438. * src/main.cc
  7439. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7440. Escaped '--' with '\--'
  7441. * README
  7442. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7443. Updated "How to build" section in README. Mentioned about
  7444. --with-ca-bundle compile option.
  7445. * README
  7446. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7447. Bump up version number to 1.1.0.
  7448. * configure.ac
  7449. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7450. Added a note for --dht-listen-port option.
  7451. * doc/aria2c.1.txt
  7452. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7453. Update doc for --realtime-chunk-checksum option.
  7454. * doc/aria2c.1.txt
  7455. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7456. Update doc for --realtime-chunk-checksum option.
  7457. * src/usage_text.h
  7458. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7459. Updated French, Japanese, Russian and Ukrainian translations.
  7460. Thanks to all translators.
  7461. * po/fr.po
  7462. * po/ja.po
  7463. * po/ru.po
  7464. * po/uk.po
  7465. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7466. Renamed aria2c.pot to aria2.pot
  7467. * po/aria2.pot
  7468. * po/aria2c.pot: Removed.
  7469. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7470. Removed MetaEntry.h
  7471. * src/Makefile.am
  7472. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7473. Rename file by appending digits if a local file exists and its
  7474. file size is larger than that of remote file with --continue
  7475. option. The old implementation just throws exception in such case.
  7476. * src/RequestGroup.cc
  7477. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7478. Fixed the bug that download progress summary is not printed in the
  7479. interval specified by the option.
  7480. * src/ConsoleStatCalc.cc
  7481. * src/ConsoleStatCalc.h
  7482. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7483. Fixed compiler warning
  7484. * src/Cookie.cc
  7485. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7486. Fixed the cookie implementation based on RFC2965.
  7487. Now if a value in domain field is not started with dot, then
  7488. prepend dot. That means a cookie with domain=sf.net is sent to
  7489. wiki.sf.net.
  7490. * src/Cookie.cc
  7491. * test/CookieParserTest.cc
  7492. * test/CookieStorageTest.cc
  7493. * test/CookieTest.cc
  7494. * test/NsCookieParserTest.cc
  7495. * test/Sqlite3MozCookieParserTest.cc
  7496. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7497. Fixed the bug that causes corrupted downloads if HTTP pipelining
  7498. is enabled and the server doesn't support keep-alive.
  7499. * src/AbstractCommand.cc
  7500. * src/DownloadCommand.cc
  7501. * src/HttpDownloadCommand.cc
  7502. * src/HttpDownloadCommand.h
  7503. * src/HttpResponseCommand.cc
  7504. * src/Request.cc
  7505. * src/Request.h
  7506. * test/RequestTest.cc
  7507. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7508. Removed Dictionary/List/Data and its related classes.
  7509. * src/BencodeVisitor.cc: Removed.
  7510. * src/BencodeVisitor.h: Removed.
  7511. * src/Data.cc: Removed.
  7512. * src/Data.h: Removed.
  7513. * src/Dictionary.cc: Removed.
  7514. * src/Dictionary.h: Removed.
  7515. * src/List.cc: Removed.
  7516. * src/List.h: Removed.
  7517. * src/Makefile.am
  7518. * src/MetaEntry.h: Removed.
  7519. * src/MetaEntryVisitor.h: Removed.
  7520. * src/MetaFileUtil.cc: Removed.
  7521. * src/MetaFileUtil.h: Removed.
  7522. * test/BencodeVisitorTest.cc: Removed.
  7523. * test/DataTest.cc: Removed.
  7524. * test/DictionaryTest.cc: Removed.
  7525. * test/ListTest.cc: Removed.
  7526. * test/Makefile.am
  7527. * test/MetaFileUtilTest.cc: Removed.
  7528. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7529. Removed include of MetaEntry.h
  7530. * test/DHTMessageTrackerEntryTest.cc
  7531. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7532. Use BDE instead of Dictionary/List/Data.
  7533. * src/AnnounceList.cc
  7534. * src/AnnounceList.h
  7535. * test/AnnounceListTest.cc
  7536. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7537. Use BDE instead of Dictionary/List/Data.
  7538. * src/DHTAbstractMessage.cc
  7539. * src/DHTAbstractMessage.h
  7540. * src/DHTAnnouncePeerMessage.cc
  7541. * src/DHTAnnouncePeerMessage.h
  7542. * src/DHTAnnouncePeerReplyMessage.cc
  7543. * src/DHTAnnouncePeerReplyMessage.h
  7544. * src/DHTFindNodeMessage.cc
  7545. * src/DHTFindNodeMessage.h
  7546. * src/DHTFindNodeReplyMessage.cc
  7547. * src/DHTFindNodeReplyMessage.h
  7548. * src/DHTGetPeersMessage.cc
  7549. * src/DHTGetPeersMessage.h
  7550. * src/DHTGetPeersReplyMessage.cc
  7551. * src/DHTGetPeersReplyMessage.h
  7552. * src/DHTMessageFactory.h
  7553. * src/DHTMessageFactoryImpl.cc
  7554. * src/DHTMessageFactoryImpl.h
  7555. * src/DHTMessageReceiver.cc
  7556. * src/DHTMessageTracker.cc
  7557. * src/DHTMessageTracker.h
  7558. * src/DHTPingMessage.cc
  7559. * src/DHTPingMessage.h
  7560. * src/DHTPingReplyMessage.cc
  7561. * src/DHTPingReplyMessage.h
  7562. * src/DHTQueryMessage.cc
  7563. * src/DHTQueryMessage.h
  7564. * src/DHTResponseMessage.cc
  7565. * src/DHTResponseMessage.h
  7566. * test/DHTAnnouncePeerMessageTest.cc
  7567. * test/DHTAnnouncePeerReplyMessageTest.cc
  7568. * test/DHTFindNodeMessageTest.cc
  7569. * test/DHTFindNodeReplyMessageTest.cc
  7570. * test/DHTGetPeersMessageTest.cc
  7571. * test/DHTGetPeersReplyMessageTest.cc
  7572. * test/DHTMessageFactoryImplTest.cc
  7573. * test/DHTMessageTrackerTest.cc
  7574. * test/DHTPingMessageTest.cc
  7575. * test/DHTPingReplyMessageTest.cc
  7576. * test/MockDHTMessageFactory.h
  7577. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7578. Added tests the case where length < 0 is specified.
  7579. * test/BencodeTest.cc
  7580. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7581. Fixed memory leak in decoderawstring()
  7582. * src/bencode.cc
  7583. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7584. Added missing #ifdef guard. Added uc() function for String and
  7585. removeKey() for Dict.
  7586. * src/bencode.cc
  7587. * src/bencode.h
  7588. * test/BencodeTest.cc
  7589. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7590. Use BDE instead of Dictionary/List/Data.
  7591. * src/HandshakeExtensionMessage.cc
  7592. * src/HandshakeExtensionMessage.h
  7593. * test/HandshakeExtensionMessageTest.cc
  7594. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7595. Added --max-overall-upload-limit option. This option limits the
  7596. overall upload speed. Stated in help message that the existing
  7597. --max-upload-limit option limits the upload speed per each
  7598. torrent. Man page is also updated.
  7599. * doc/aria2c.1.txt
  7600. * src/DefaultBtMessageDispatcher.cc
  7601. * src/DefaultBtMessageDispatcher.h
  7602. * src/OptionHandlerFactory.cc
  7603. * src/PeerInteractionCommand.cc
  7604. * src/option_processing.cc
  7605. * src/prefs.cc
  7606. * src/prefs.h
  7607. * src/usage_text.h
  7608. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7609. Use BDE instead of Dictionary/List/Data classes.
  7610. * src/CompactPeerListProcessor.cc
  7611. * src/CompactPeerListProcessor.h
  7612. * src/DefaultBtAnnounce.cc
  7613. * src/DefaultBtContext.cc
  7614. * src/DefaultBtContext.h
  7615. * src/DefaultPeerListProcessor.cc
  7616. * src/DefaultPeerListProcessor.h
  7617. * src/DelegatingPeerListProcessor.cc
  7618. * src/DelegatingPeerListProcessor.h
  7619. * src/PeerListProcessor.h
  7620. * src/UTPexExtensionMessage.cc
  7621. * src/Util.h
  7622. * src/message.h
  7623. * test/DefaultBtContextTest.cc
  7624. * test/DefaultPeerListProcessorTest.cc
  7625. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7626. Added bencode helper functions and BDE class.
  7627. They will replace MetaFileUtil and Dictionary/List/Data classes.
  7628. * src/Makefile.am
  7629. * src/bencode.cc
  7630. * src/bencode.h
  7631. * test/BencodeTest.cc
  7632. * test/Makefile.am
  7633. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7634. Fixed the bug that bad URI is sent to the tracker when the announe
  7635. URI in torrent file includes query.
  7636. * src/DefaultBtAnnounce.cc
  7637. * test/DefaultBtAnnounceTest.cc
  7638. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7639. Added Option::blank().
  7640. Use !Option::blank(name) instead of Option::defined(name) for
  7641. the options that take filename.
  7642. * src/MultiUrlRequestInfo.cc
  7643. * src/Option.cc
  7644. * src/Option.h
  7645. * src/main.cc
  7646. * src/option_processing.cc
  7647. * test/OptionTest.cc
  7648. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7649. Documented the default value of --check-certificate option in man
  7650. page.
  7651. * doc/aria2c.1.txt
  7652. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7653. Enabled --check-certificate by default. Added compile
  7654. time(configure) option --with-ca-bundle to specify CA bundle.
  7655. Warn if --check-certificate=true and --ca-certificate is not
  7656. specified or loading CA certificate is failed.
  7657. * configure.ac
  7658. * src/MultiUrlRequestInfo.cc
  7659. * src/OptionHandlerFactory.cc
  7660. * src/message.h
  7661. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7662. Mentioned https tag in help option.
  7663. * doc/aria2c.1.txt
  7664. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7665. Added `https' tag to help option category. Added https tag to
  7666. --ca-certificate, --certificate, --check-certificate and
  7667. --private-key option.
  7668. * src/OptionHandlerFactory.cc
  7669. * src/help_tags.h
  7670. * src/option_processing.cc
  7671. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7672. Changed the package name from `aria2c' to `aria2' in order to fix
  7673. the packaging issue in Debian and Fedora. The name of the
  7674. executable is not changed.
  7675. * configure.ac
  7676. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7677. Fixed typos
  7678. * src/usage_text.h
  7679. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7680. Fixed typos and updated doc.
  7681. * README
  7682. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7683. Fixed typos
  7684. * doc/aria2c.1.txt
  7685. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7686. Fixed typos
  7687. * src/usage_text.h
  7688. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7689. Print a message when no files to download.
  7690. * src/download_helper.cc
  7691. * src/main.cc
  7692. * src/message.h
  7693. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7694. RFC3986 complied Percent-Encoding(urlencode).
  7695. Use uppercase hexadecimal digits for encoded text instead of lowercase
  7696. ones.
  7697. * src/Request.cc
  7698. * src/Util.cc
  7699. * src/Util.h
  7700. * test/BtHandshakeMessageTest.cc
  7701. * test/DefaultBtAnnounceTest.cc
  7702. * test/DefaultBtContextTest.cc
  7703. * test/RequestTest.cc
  7704. * test/UtilTest.cc
  7705. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7706. Fixed the bug that prevents aria2 from downloading 0-length files
  7707. via HTTP/FTP.
  7708. * src/DefaultBtContext.cc
  7709. * src/DefaultBtContext.h
  7710. * src/DownloadContext.h
  7711. * src/FtpNegotiationCommand.cc
  7712. * src/HttpResponseCommand.cc
  7713. * src/HttpResponseCommand.h
  7714. * src/RequestGroup.cc
  7715. * src/SingleFileDownloadContext.cc
  7716. * src/SingleFileDownloadContext.h
  7717. * test/BtPostDownloadHandlerTest.cc
  7718. * test/MetalinkPostDownloadHandlerTest.cc
  7719. * test/MockBtContext.h
  7720. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7721. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  7722. * src/option_processing.cc
  7723. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7724. Applied aria2-1.0.1-mingw.patch.
  7725. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  7726. mingw.
  7727. Collected 4th and 5th argument types for getsockopt and setsockopt.
  7728. * src/SocketCore.cc
  7729. * src/a2netcompat.h
  7730. * test/SocketCoreTest.cc
  7731. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7732. * Release 1.0.1
  7733. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7734. Updated Ukrainian and Norwegian Nynorsk translations.
  7735. Thanks to all translators.
  7736. * po/nn.po
  7737. * po/uk.po
  7738. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7739. Don't show download result when -S option is used.
  7740. * src/main.cc
  7741. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7742. Bump up version number to 1.0.1
  7743. * configure.ac
  7744. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7745. Closed files after the test cases in MultiDiskWriterTest::
  7746. testResetDiskWriterEntries(). This will fix the unit test error
  7747. in mingw32 build.
  7748. * test/MultiDiskWriterTest.cc
  7749. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7750. Use HEAD method to get file size from HTTP server for segmented
  7751. downloading.
  7752. The request to the BitTorrent Tracker always uses GET method because
  7753. the response of the tracker is small and it doesn't need segmented
  7754. download.
  7755. * src/FtpNegotiationCommand.cc
  7756. * src/HttpRequest.cc
  7757. * src/HttpResponseCommand.cc
  7758. * src/HttpSkipResponseCommand.cc
  7759. * src/RequestGroup.cc
  7760. * src/RequestGroup.h
  7761. * src/TrackerWatcherCommand.cc
  7762. * test/HttpRequestTest.cc
  7763. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7764. Fixed the bug that causes floating exception when -T option is used and
  7765. no URIs are given.
  7766. * src/download_helper.cc
  7767. * test/DownloadHelperTest.cc
  7768. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7769. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7770. errors in MinGW:
  7771. Closed file after saving server stats (RequestGroupMan.cc)
  7772. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7773. Ignored case & handled 2-digit years (strptime.c)
  7774. Added missing suseconds_t definition (a2time.h)
  7775. Fixed socket CLOSE() define (SocketCore.cc)
  7776. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7777. Changed utime() test values from x000 to x00000 as MinGW failed on
  7778. values less than timezone offset from Unix epoch
  7779. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7780. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7781. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7782. handle negative dates (CookieParserTest.cc)
  7783. * src/a2time.h
  7784. * src/FtpConnection.cc
  7785. * src/RequestGroupMan.cc
  7786. * src/SocketCore.cc
  7787. * src/strptime.c
  7788. * test/CookieParserTest.cc
  7789. * test/CopyDiskAdaptorTest.cc
  7790. * test/FileTest.cc
  7791. * test/FtpConnectionTest.cc
  7792. * test/MultiDiskAdaptorTest.cc
  7793. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7794. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7795. * doc/aria2c.1.txt
  7796. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7797. * Release 1.0.0
  7798. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7799. Added '~' to reserved characters.
  7800. * src/Util.cc
  7801. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7802. Do not urlencode Request::url in setUrl() because we want unmodified
  7803. URL using Request::getUrl()
  7804. * src/Request.cc
  7805. * src/Request.h
  7806. * test/RequestTest.cc
  7807. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7808. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7809. Thanks to all translators.
  7810. * po/bg.po
  7811. * po/fr.po
  7812. * po/ja.po
  7813. * po/ru.po
  7814. * po/uk.po
  7815. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7816. Bump up version number to 1.0.0
  7817. * configure.ac
  7818. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7819. Added nosqlite3 build to build_test.sh.
  7820. Renamed noxml as expat.
  7821. * build_test.sh
  7822. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7823. Updated INPUT FILE section.
  7824. * doc/aria2c.1.txt
  7825. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7826. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7827. on big endian systems because test .aria2 files are made for little
  7828. endian systems.
  7829. * test/DefaultBtProgressInfoFileTest.cc
  7830. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7831. Dropped ares support.
  7832. * README
  7833. * configure.ac
  7834. * m4/libares.m4: Removed.
  7835. * src/AsyncNameResolver.cc
  7836. * src/Makefile.am
  7837. * test/Makefile.am
  7838. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7839. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7840. Removed const qualifier from DiskWriter::size().
  7841. * src/AbstractDiskWriter.cc
  7842. * src/AbstractDiskWriter.h
  7843. * src/ByteArrayDiskWriter.cc
  7844. * src/ByteArrayDiskWriter.h
  7845. * src/DiskWriter.h
  7846. * test/ByteArrayDiskWriterTest.cc
  7847. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7848. Fixed the bug that causes segmentation fault/bus error during executing
  7849. choking algorithm while seeding. This is caused by improper
  7850. implementation of compare function which returns inconsistent results
  7851. depending on the timing of last unchoke.
  7852. * src/BtSeederStateChoke.cc
  7853. * src/BtSeederStateChoke.h
  7854. * src/DefaultPeerStorage.cc
  7855. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7856. Removed TODO
  7857. * TODO
  7858. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7859. Added a section that explains how to pass argument to options that
  7860. takes optional arguments with its short form.
  7861. * doc/aria2c.1.txt
  7862. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7863. Added -u for the short form of --max-upload-limit option.
  7864. * doc/aria2c.1.txt
  7865. * src/option_processing.cc
  7866. * src/usage_text.h
  7867. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7868. Added -V for the short form of --check-integrity option.
  7869. Now the argument of --check-integrity option is optional:
  7870. if it is omitted, it is evaluated as true.
  7871. * doc/aria2c.1.txt
  7872. * src/option_processing.cc
  7873. * src/usage_text.h
  7874. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7875. Made the default value of --ftp-pasv option set to true and it can take
  7876. true/false values.
  7877. * src/OptionHandlerFactory.cc
  7878. * src/option_processing.cc
  7879. * src/usage_text.h
  7880. * doc/aria2c.1.txt
  7881. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7882. Given custom random number generator to std::random_shuffle.
  7883. * src/AnnounceList.cc
  7884. * src/BtLeecherStateChoke.cc
  7885. * src/BtSeederStateChoke.cc
  7886. * src/DefaultBtRequestFactory.cc
  7887. * src/MetalinkEntry.cc
  7888. * src/RarestPieceSelector.cc
  7889. * src/SimpleRandomizer.cc
  7890. * src/SimpleRandomizer.h
  7891. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7892. Now the default value of --enable-direct-io is true.
  7893. * src/OptionHandlerFactory.cc
  7894. * doc/aria2c.1.txt
  7895. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7896. Erase peer before executing onReturningPeer and onErasingPeer
  7897. because choking algorithm called from onReturningPeer doesn't
  7898. like erasing peer in the active peer list.
  7899. * src/DefaultPeerStorage.cc
  7900. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7901. Instead of creating special filename in createDownloadResult() if
  7902. inMemoryDownload() is true, now it is done in getFilePath().
  7903. * src/RequestGroup.cc
  7904. * test/RequestGroupTest.cc
  7905. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7906. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7907. processed in memory. This is the fix for previous comment out.
  7908. * src/MemoryBufferPreDownloadHandler.cc
  7909. * src/RequestGroup.cc
  7910. * src/RequestGroup.h
  7911. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7912. Commented out the code which sets virtual directory path "[MEMORY]"
  7913. propagate directory to store to following RequestGroup.
  7914. * src/MemoryBufferPreDownloadHandler.cc
  7915. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7916. Bump up version number to 1.0.0b
  7917. * configure.ac
  7918. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7919. Added input_uris.txt to EXTRA_DIST
  7920. * test/Makefile.am
  7921. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7922. Removed PeerObject.h from Makefile.am
  7923. * src/Makefile.am
  7924. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7925. Avoid slow seeding
  7926. * src/PeerInteractionCommand.cc
  7927. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7928. Updated usage for -i option.
  7929. * src/usage_text.h (TEXT_INPUT_FILE)
  7930. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7931. Added INPUT FILE section to man page.
  7932. Escaped fake URLs.
  7933. * doc/aria2c.1.txt
  7934. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7935. Fixed wrong note position for -o option.
  7936. * doc/aria2c.1.txt
  7937. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7938. Fixed compile error without SSL/XML library.
  7939. * src/DefaultBtProgressInfoFile.cc
  7940. * src/DefaultBtProgressInfoFile.h
  7941. * src/FileMetalinkParserState.cc
  7942. * src/RequestGroup.h
  7943. * src/SocketCore.cc
  7944. * src/SocketCore.h
  7945. * src/VerificationMetalinkParserState.cc
  7946. * src/download_helper.h
  7947. * src/main.cc
  7948. * test/DefaultBtProgressInfoFileTest.cc
  7949. * test/DownloadHelperTest.cc
  7950. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7951. Rewritten URI handling functions. They are now provided as a testable
  7952. functions.
  7953. * src/Makefile.am
  7954. * src/RequestGroup.cc
  7955. * src/RequestGroup.h
  7956. * src/download_helper.cc
  7957. * src/download_helper.h
  7958. * src/main.cc
  7959. * test/DownloadHelperTest.cc
  7960. * test/Makefile.am
  7961. * test/input_uris.txt
  7962. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7963. Quickly terminate commands when ctrl-c is pressed.
  7964. * src/DownloadEngine.cc
  7965. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7966. Quickly terminate idle commands when download finished.
  7967. * src/AbstractCommand.cc
  7968. * src/DownloadCommand.cc
  7969. * src/DownloadEngine.cc
  7970. * src/DownloadEngine.h
  7971. * src/SleepCommand.cc
  7972. * src/SleepCommand.h
  7973. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7974. Added the ability to specify output filename and directory in input
  7975. file.
  7976. Additional parameters are added in the following line of URIs
  7977. with proceeding white space(s), 1 parameter in 1 line.
  7978. The parameter names are the same with the command-line option name
  7979. without proceeding "--". Not all the options are available here:
  7980. at the moment, 'dir' and 'out' options are avialable.
  7981. Please note that out option has no effect against Metalink or BitTorrent
  7982. downloads.
  7983. Example input file:
  7984. http://host/foo-1.1.tar.bz2
  7985. out=foo.tar.bz2
  7986. dir=/tmp/downloads
  7987. http://host/thundermonkey-2.0.tar.bz2
  7988. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7989. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7990. thundermonkey-2.0.tar.bz2 is saved as
  7991. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7992. * src/BtPostDownloadHandler.cc
  7993. * src/Metalink2RequestGroup.cc
  7994. * src/Metalink2RequestGroup.h
  7995. * src/MetalinkPostDownloadHandler.cc
  7996. * src/UriListParser.cc
  7997. * src/UriListParser.h
  7998. * src/main.cc
  7999. * test/Metalink2RequestGroupTest.cc
  8000. * test/UriListParserTest.cc
  8001. * test/filelist1.txt
  8002. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8003. Fixed error when SSL library is not found.
  8004. * configure.ac
  8005. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8006. Cross referenced among -s, -C and -j options.
  8007. Updated usage of -C and -s options.
  8008. * src/usage_text.h
  8009. * doc/aria2c.1.txt
  8010. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8011. Fixed bad cast in 32bit platforms.
  8012. * test/DefaultPieceStorageTest.cc
  8013. (DefaultPieceStorageTest::testGetCompletedLength)
  8014. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8015. Fixed unit test fails on 32bit platforms.
  8016. * test/CookieParserTest.cc
  8017. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8018. Show an average download speed in Download results.
  8019. * src/BtFileAllocationEntry.cc
  8020. * src/DefaultPieceStorage.cc
  8021. * src/DownloadContext.cc
  8022. * src/DownloadContext.h
  8023. * src/DownloadResult.h
  8024. * src/RequestGroup.cc
  8025. * src/RequestGroupMan.cc
  8026. * src/StreamFileAllocationEntry.cc
  8027. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8028. Fixed the bug that metalink file is not processed if Content-Type
  8029. field has a paramter.
  8030. * src/HttpResponse.cc
  8031. * src/HttpResponse.h
  8032. * test/HttpResponseTest.cc
  8033. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8034. Removed unused code.
  8035. * src/DefaultBtAnnounce.cc
  8036. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8037. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  8038. the value larger than DefaultPieceStorage::getTotalLength() when
  8039. in flight pieces are involved.
  8040. * src/DefaultPieceStorage.cc
  8041. * test/DefaultPieceStorageTest.cc
  8042. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8043. Bump up version number to 1.0.0a.
  8044. * configure.ac
  8045. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8046. Updated configure.ac
  8047. * configure.ac
  8048. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8049. Added usege for proxy.
  8050. * doc/aria2c.1.txt
  8051. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8052. Added usage for --ca-certificate, --certificate, --private-key and
  8053. --check-certificate options.
  8054. * doc/aria2c.1.txt
  8055. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8056. Updated man page
  8057. * doc/aria2c.1.txt
  8058. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8059. Added --no-proxy option. It receives comman separated hostname or
  8060. domains to which proxy should not be used.
  8061. aria2 honors the environment variable no_proxy to override no-proxy
  8062. value in configuration file. The user can override the environment
  8063. variable no_proxy with --no-proxy command-line option.
  8064. * src/AbstractCommand.cc
  8065. * src/OptionHandlerFactory.cc
  8066. * src/option_processing.cc
  8067. * src/prefs.cc
  8068. * src/prefs.h
  8069. * src/usage_text.h
  8070. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8071. Added the ability to verify peer in SSL/TLS using given CA certificates.
  8072. The CA certificates are specified in --ca-certificate option.
  8073. By default, the verification is disabled. Use --check-certificate
  8074. option to enable it.
  8075. * src/HttpRequestCommand.cc
  8076. * src/LibgnutlsTLSContext.cc
  8077. * src/LibgnutlsTLSContext.h
  8078. * src/LibsslTLSContext.cc
  8079. * src/LibsslTLSContext.h
  8080. * src/MultiUrlRequestInfo.cc
  8081. * src/OptionHandlerFactory.cc
  8082. * src/SocketCore.cc
  8083. * src/SocketCore.h
  8084. * src/a2functional.h
  8085. * src/message.h
  8086. * src/option_processing.cc
  8087. * src/prefs.cc
  8088. * src/prefs.h
  8089. * src/usage_text.h
  8090. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8091. Added client certificate authentication for SSL/TLS.
  8092. Currently a private key must be decrypted for use with aria2.
  8093. If a user accidentally gives encrypted file to aria2 then following
  8094. thing happens:
  8095. If encrypted private key is given to aria2, it behaves differently
  8096. depending on the ssl library it uses. If aria2 built with openssl then
  8097. openssl prompts the user for password. If aria2 build with gnutls then
  8098. aria2 exists with error at start up.
  8099. * src/DownloadEngineFactory.cc
  8100. * src/MultiUrlRequestInfo.cc
  8101. * src/OptionHandlerFactory.cc
  8102. * src/option_processing.cc
  8103. * src/prefs.cc
  8104. * src/prefs.h
  8105. * src/usage_text.h
  8106. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8107. Introduced TLSContext that holds TLS related data that can be shared
  8108. with multiple SSL connections.
  8109. * src/DownloadEngineFactory.cc
  8110. * src/LibgnutlsTLSContext.cc
  8111. * src/LibgnutlsTLSContext.h
  8112. * src/LibsslTLSContext.cc
  8113. * src/LibsslTLSContext.h
  8114. * src/Makefile.am
  8115. * src/SocketCore.cc
  8116. * src/SocketCore.h
  8117. * src/TLSContext.h
  8118. * src/message.h
  8119. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8120. Fixed the bug that the DiskWriter of the first FileEntry whose
  8121. `needsFileAllocation' property is false is not created
  8122. even if it shares a piece with next FileEntry which `requested' property
  8123. is true.
  8124. Fixed the bug that zero-length file is not created if pre file
  8125. allocation is not done.
  8126. * src/MultiDiskAdaptor.cc
  8127. * src/MultiDiskAdaptor.h
  8128. * test/MultiDiskAdaptorTest.cc
  8129. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. Added the ability to pool proxy connection.
  8131. The conneciton in FTP with proxy-method=GET is not pooled.
  8132. Proxy-Connection header will not be sent when sending CONNECT method.
  8133. * src/DownloadEngine.cc
  8134. * src/DownloadEngine.h
  8135. * src/FtpFinishDownloadCommand.cc
  8136. * src/FtpInitiateConnectionCommand.cc
  8137. * src/FtpNegotiationCommand.cc
  8138. * src/HttpDownloadCommand.cc
  8139. * src/HttpInitiateConnectionCommand.cc
  8140. * src/HttpRequest.cc
  8141. * src/HttpRequest.h
  8142. * src/HttpResponse.cc
  8143. * src/HttpSkipResponseCommand.cc
  8144. * test/HttpRequestTest.cc
  8145. * test/HttpResponseTest.cc
  8146. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8147. Handle date before epoch.
  8148. To create *bad* Time object, call Time::null().
  8149. * src/CookieParser.cc
  8150. * src/FtpConnection.cc
  8151. * src/FtpConnection.h
  8152. * src/FtpNegotiationCommand.cc
  8153. * src/RequestGroup.cc
  8154. * src/TimeA2.cc
  8155. * src/TimeA2.h
  8156. * test/CookieParserTest.cc
  8157. * test/FtpConnectionTest.cc
  8158. * test/TimeTest.cc
  8159. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8160. Added support for following envrionment variables: http_proxy,
  8161. https_proxy, ftp_proxy and all_proxy.
  8162. Each variable is equivalent to the aria2 option whose name is the
  8163. variable name with '_' replaced with '-'.
  8164. They overrides options specified in aria2.conf file.
  8165. The envrionment variables can be overrode using command-line option.
  8166. * src/option_processing.cc
  8167. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Renamed --http-proxy-method as --proxy-method.
  8169. * src/AbstractCommand.cc
  8170. * src/FtpInitiateConnectionCommand.cc
  8171. * src/HttpInitiateConnectionCommand.cc
  8172. * src/OptionHandlerFactory.cc
  8173. * src/option_processing.cc
  8174. * src/prefs.cc
  8175. * src/prefs.h
  8176. * src/usage_text.h
  8177. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8178. Deprecated --http-proxy-user and --http-proxy-passwd options.
  8179. Added --https-proxy, --ftp-proxy and --all-proxy options.
  8180. Above 3 options and --http-proxy option can handle proxy in URL format
  8181. like: http://user:passwd@host:port.
  8182. If a proxy requires user/password, they must be specified in a URL.
  8183. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  8184. instead.
  8185. * src/AbstractCommand.cc
  8186. * src/AbstractCommand.h
  8187. * src/AbstractProxyRequestCommand.cc
  8188. * src/AbstractProxyRequestCommand.h
  8189. * src/AuthConfigFactory.cc
  8190. * src/AuthConfigFactory.h
  8191. * src/FtpFinishDownloadCommand.cc
  8192. * src/FtpInitiateConnectionCommand.cc
  8193. * src/FtpInitiateConnectionCommand.h
  8194. * src/FtpNegotiationCommand.cc
  8195. * src/FtpTunnelRequestCommand.cc
  8196. * src/FtpTunnelRequestCommand.h
  8197. * src/HttpDownloadCommand.cc
  8198. * src/HttpInitiateConnectionCommand.cc
  8199. * src/HttpInitiateConnectionCommand.h
  8200. * src/HttpProxyRequestCommand.cc
  8201. * src/HttpProxyRequestCommand.h
  8202. * src/HttpRequest.cc
  8203. * src/HttpRequest.h
  8204. * src/HttpRequestCommand.cc
  8205. * src/HttpRequestCommand.h
  8206. * src/HttpSkipResponseCommand.cc
  8207. * src/InitiateConnectionCommand.cc
  8208. * src/InitiateConnectionCommand.h
  8209. * src/OptionHandlerFactory.cc
  8210. * src/OptionHandlerImpl.h
  8211. * src/Request.cc
  8212. * src/option_processing.cc
  8213. * src/prefs.cc
  8214. * src/prefs.h
  8215. * src/usage_text.h
  8216. * test/AuthConfigFactoryTest.cc
  8217. * test/HttpRequestTest.cc
  8218. * test/OptionHandlerTest.cc
  8219. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8220. Execute choking algorithm when unchoked and interested peer is
  8221. disconected.
  8222. * src/DefaultPeerStorage.cc
  8223. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8224. Added testcase for BtNotInterestedMessage from unchoked peer.
  8225. * test/BtNotInterestedMessageTest.cc
  8226. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8227. Execute choking algorithm when BtInterestedMessage arrives from
  8228. unchoked peer.
  8229. * src/BtInterestedMessage.cc
  8230. * src/BtInterestedMessage.h
  8231. * src/DefaultBtMessageFactory.cc
  8232. * test/BtInterestedMessageTest.cc
  8233. * test/MockPeerStorage.h
  8234. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. AuthConfigFactory is now part of DownloadEngine.
  8236. * src/AbstractProxyRequestCommand.cc
  8237. * src/AuthConfigFactory.h
  8238. * src/DownloadEngine.cc
  8239. * src/DownloadEngine.h
  8240. * src/FtpConnection.cc
  8241. * src/FtpConnection.h
  8242. * src/FtpNegotiationCommand.cc
  8243. * src/HttpConnection.cc
  8244. * src/HttpRequest.cc
  8245. * src/HttpRequest.h
  8246. * src/HttpRequestCommand.cc
  8247. * src/HttpResponse.cc
  8248. * src/HttpResponseCommand.cc
  8249. * src/HttpSkipResponseCommand.cc
  8250. * src/MultiUrlRequestInfo.cc
  8251. * src/main.cc
  8252. * test/FtpConnectionTest.cc
  8253. * test/HttpRequestTest.cc
  8254. * test/HttpResponseTest.cc
  8255. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Corrected catched exception type.
  8257. * src/ServerStatMan.cc
  8258. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. DNSCache is now part of DownloadEngine.
  8260. * src/DNSCache.h
  8261. * src/DownloadEngine.cc
  8262. * src/DownloadEngine.h
  8263. * src/InitiateConnectionCommand.cc
  8264. * src/MultiUrlRequestInfo.cc
  8265. * test/Makefile.am
  8266. * test/Makefile.in
  8267. * test/SimpleDNSCacheTest.cc
  8268. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8269. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  8270. DownloadEngine.
  8271. * src/ActivePeerConnectionCommand.cc
  8272. * src/BtSetup.cc
  8273. * src/CUIDCounter.h
  8274. * src/DHTSetup.cc
  8275. * src/DownloadCommand.cc
  8276. * src/DownloadEngine.cc
  8277. * src/DownloadEngine.h
  8278. * src/DownloadEngineFactory.cc
  8279. * src/FileAllocationDispatcherCommand.cc
  8280. * src/InitiatorMSEHandshakeCommand.cc
  8281. * src/PeerInitiateConnectionCommand.cc
  8282. * src/PeerInteractionCommand.cc
  8283. * src/PeerListenCommand.cc
  8284. * src/RequestGroup.cc
  8285. * src/StreamFileAllocationEntry.cc
  8286. * src/TrackerWatcherCommand.cc
  8287. * src/main.cc
  8288. * test/RequestGroupManTest.cc
  8289. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8290. Implemented commented code in BtSeederStateChoke
  8291. * src/BtSeederStateChoke.cc
  8292. * src/Peer.cc
  8293. * src/Peer.h
  8294. * src/PeerInteractionCommand.cc
  8295. * src/PeerSessionResource.cc
  8296. * src/PeerSessionResource.h
  8297. * test/MockBtMessageDispatcher.h
  8298. * test/PeerSessionResourceTest.cc
  8299. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8300. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  8301. its object.
  8302. * src/AbstractBtMessage.cc
  8303. * src/ActivePeerConnectionCommand.cc
  8304. * src/ActivePeerConnectionCommand.h
  8305. * src/BtContextAwareCommand.cc
  8306. * src/BtContextAwareCommand.h
  8307. * src/BtExtendedMessage.cc
  8308. * src/BtExtendedMessage.h
  8309. * src/BtInterestedMessage.cc
  8310. * src/BtInterestedMessage.h
  8311. * src/BtNotInterestedMessage.cc
  8312. * src/BtNotInterestedMessage.h
  8313. * src/BtRegistry.cc
  8314. * src/BtRegistry.h
  8315. * src/BtSeederStateChoke.cc
  8316. * src/BtSetup.cc
  8317. * src/DHTGetPeersCommand.cc
  8318. * src/DHTGetPeersCommand.h
  8319. * src/DHTPeerAnnounceEntry.cc
  8320. * src/DHTPeerAnnounceEntry.h
  8321. * src/DHTPeerAnnounceStorage.cc
  8322. * src/DHTPeerAnnounceStorage.h
  8323. * src/DHTPeerLookupTask.cc
  8324. * src/DHTPeerLookupTask.h
  8325. * src/DHTSetup.cc
  8326. * src/DHTSetup.h
  8327. * src/DHTTaskFactory.h
  8328. * src/DHTTaskFactoryImpl.cc
  8329. * src/DHTTaskFactoryImpl.h
  8330. * src/DefaultBtAnnounce.cc
  8331. * src/DefaultBtInteractive.cc
  8332. * src/DefaultBtInteractive.h
  8333. * src/DefaultBtMessageDispatcher.cc
  8334. * src/DefaultBtMessageDispatcher.h
  8335. * src/DefaultBtMessageFactory.cc
  8336. * src/DefaultBtMessageFactory.h
  8337. * src/DefaultBtMessageReceiver.cc
  8338. * src/DefaultBtProgressInfoFile.cc
  8339. * src/DefaultBtProgressInfoFile.h
  8340. * src/DefaultBtRequestFactory.cc
  8341. * src/DefaultBtRequestFactory.h
  8342. * src/DefaultExtensionMessageFactory.cc
  8343. * src/DefaultExtensionMessageFactory.h
  8344. * src/DefaultPeerStorage.cc
  8345. * src/DefaultPeerStorage.h
  8346. * src/DownloadEngine.cc
  8347. * src/DownloadEngine.h
  8348. * src/InitiatorMSEHandshakeCommand.cc
  8349. * src/InitiatorMSEHandshakeCommand.h
  8350. * src/MSEHandshake.cc
  8351. * src/MSEHandshake.h
  8352. * src/Makefile.am
  8353. * src/Makefile.in
  8354. * src/PeerChokeCommand.cc
  8355. * src/PeerChokeCommand.h
  8356. * src/PeerInitiateConnectionCommand.cc
  8357. * src/PeerInitiateConnectionCommand.h
  8358. * src/PeerInteractionCommand.cc
  8359. * src/PeerInteractionCommand.h
  8360. * src/PeerObject.h
  8361. * src/PeerReceiveHandshakeCommand.cc
  8362. * src/PeerReceiveHandshakeCommand.h
  8363. * src/ReceiverMSEHandshakeCommand.cc
  8364. * src/RequestGroup.cc
  8365. * src/RequestGroup.h
  8366. * src/RequestGroupMan.cc
  8367. * src/RequestGroupMan.h
  8368. * src/SeedCheckCommand.cc
  8369. * src/SeedCheckCommand.h
  8370. * src/ShareRatioSeedCriteria.h
  8371. * src/SimpleBtMessage.cc
  8372. * src/TrackerWatcherCommand.cc
  8373. * src/TrackerWatcherCommand.h
  8374. * src/UTPexExtensionMessage.cc
  8375. * src/UTPexExtensionMessage.h
  8376. * test/BtCancelMessageTest.cc
  8377. * test/BtChokeMessageTest.cc
  8378. * test/BtExtendedMessageTest.cc
  8379. * test/BtInterestedMessageTest.cc
  8380. * test/BtNotInterestedMessageTest.cc
  8381. * test/BtPieceMessageTest.cc
  8382. * test/BtPortMessageTest.cc
  8383. * test/BtRegistryTest.cc
  8384. * test/BtRejectMessageTest.cc
  8385. * test/BtRequestMessageTest.cc
  8386. * test/DHTPeerAnnounceEntryTest.cc
  8387. * test/DHTPeerAnnounceStorageTest.cc
  8388. * test/DefaultBtMessageDispatcherTest.cc
  8389. * test/DefaultBtMessageFactoryTest.cc
  8390. * test/DefaultBtProgressInfoFileTest.cc
  8391. * test/DefaultBtRequestFactoryTest.cc
  8392. * test/DefaultExtensionMessageFactoryTest.cc
  8393. * test/MSEHandshakeTest.cc
  8394. * test/MockDHTTaskFactory.h
  8395. * test/ShareRatioSeedCriteriaTest.cc
  8396. * test/UTPexExtensionMessageTest.cc
  8397. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8398. Fixed compiler warning.
  8399. * test/UtilTest.cc
  8400. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8401. Treat Cookie object as session cookie if expiry = 0 is given.
  8402. With this change, you can specify session scoped cookies in an external
  8403. file setting expiry value to 0.
  8404. * src/Cookie.cc
  8405. * src/Cookie.h
  8406. * test/CookieParserTest.cc
  8407. * test/CookieStorageTest.cc
  8408. * test/CookieTest.cc
  8409. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8410. Changed signature of DHTMessageFactory::createResponseMessage().
  8411. Removed unused validateIDMatch.
  8412. * src/DHTMessageFactory.h
  8413. * src/DHTMessageFactoryImpl.cc
  8414. * src/DHTMessageFactoryImpl.h
  8415. * src/DHTMessageTracker.cc
  8416. * test/DHTMessageFactoryImplTest.cc
  8417. * test/MockDHTMessageFactory.h
  8418. Dropped DHT message coming from same ID of localhost.
  8419. * src/DHTMessageReceiver.cc
  8420. Rejected adding node whose ID is the same as localhost's.
  8421. * src/DHTRoutingTable.cc
  8422. * test/BtPortMessageTest.cc
  8423. * test/DHTRoutingTableTest.cc
  8424. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8425. Pool connection when redirection occurs with Content-Length = 0.
  8426. * src/HttpSkipResponseCommand.cc
  8427. * src/HttpSkipResponseCommand.h
  8428. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8429. Fixed the bug that causes time out when redirection occurs with
  8430. content-length 0.
  8431. * src/HttpResponseCommand.cc
  8432. * src/HttpSkipResponseCommand.cc
  8433. * src/HttpSkipResponseCommand.h
  8434. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8435. Now each status legends is shown only when it appears in Download
  8436. Result. If Download Result has no item, then status legend will not
  8437. be printed.
  8438. * src/RequestGroupMan.cc
  8439. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8440. Removed duplicate creation of OptionHandlers.
  8441. * src/option_processing.cc
  8442. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8443. Fixed the bug that causes segmentation fault when accessing files which
  8444. don't exist or are not included in --select-file option while
  8445. validating chunk checksum.
  8446. * src/MultiDiskAdaptor.cc
  8447. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8448. Fixed compiler warning.
  8449. * test/UtilTest.cc
  8450. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. Included cstdlib. This fixed the compile error with g++-4.3.2.
  8452. * src/IteratableChecksumValidator.cc
  8453. * src/IteratableChunkChecksumValidator.cc
  8454. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8455. * Release 0.16.2
  8456. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8457. Added Serbian translation. Updated Ukrainian translation.
  8458. Thanks to all translators.
  8459. * po/sr.po
  8460. * po/uk.po
  8461. * po/LINGUAS
  8462. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. Bump up version number to 0.16.2
  8464. * configure.ac
  8465. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8466. Added length equality test to operator== to drop a piece message
  8467. whose length does not match to the requested one.
  8468. * src/RequestSlot.cc
  8469. * test/DefaultBtMessageDispatcherTest.cc
  8470. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8471. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  8472. recieved.
  8473. In this fix, if a request larger than 16KiB length is received, aria2
  8474. disconnects the peer.
  8475. * src/BtConstants.h
  8476. * src/PeerMessageUtil.cc
  8477. * src/PeerMessageUtil.h
  8478. * test/BtRequestMessageTest.cc
  8479. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8480. * Release 0.16.1
  8481. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  8483. * doc/aria2c.1.txt
  8484. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  8486. Updated French, Simplified Chinese and Japanese translations.
  8487. Thanks to all translators.
  8488. en@quot and en@boldquot are also added.
  8489. * po/LINGUAS
  8490. * po/fr.po
  8491. * po/ja.po
  8492. * po/uk.po
  8493. * po/vi.po
  8494. * po/zh_CN.po
  8495. * po/zh_TW.po
  8496. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. Bump up version number to 0.16.1.
  8498. * configure.ac
  8499. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8500. Updated README.
  8501. * README
  8502. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8503. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  8504. not to replace '--' with em dash character.
  8505. * doc/aria2c.1.txt
  8506. * doc/makeman
  8507. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8508. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  8509. every SEC seconds.
  8510. * src/DownloadEngineFactory.cc
  8511. * src/OptionHandlerFactory.cc
  8512. * src/option_processing.cc
  8513. * src/usage_text.h
  8514. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Fixed compile warning on linux-amd64
  8516. * src/FtpConnection.cc
  8517. * src/IteratableChunkChecksumValidator.cc
  8518. * src/MultiDiskAdaptor.cc
  8519. Fixed the bug that unit test fails on linux-amd64
  8520. * test/UtilTest.cc
  8521. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8522. Added --dht-file-path option to change the path to dht.dat, which is a
  8523. serialized DHT routing table.
  8524. * src/OptionHandlerFactory.cc
  8525. * src/option_processing.cc
  8526. * src/usage_text.h
  8527. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8528. Fixed possible underflow.
  8529. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  8530. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8531. Fixed the bug that last character in URI is not encoded.
  8532. * src/Request.cc
  8533. * test/RequestTest.cc
  8534. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8535. Fixed the bug that referer header field contains fragment.
  8536. Now Request class removes fragment part of URI and encodes it
  8537. in Request::setUri() and setReferer().
  8538. * src/Request.h
  8539. * src/Request.cc
  8540. * test/RequestTest.cc
  8541. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Added missing m4 macros.
  8543. * m4/cppunit.m4
  8544. * m4/libgcrypt.m4
  8545. * m4/libgnutls-extra.m4
  8546. * m4/libgnutls.m4
  8547. * m4/libxml2.m4
  8548. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Fixed compile error with gcc-4.4(snapshot)
  8550. * src/File.cc
  8551. * src/FtpConnection.cc
  8552. * src/OptionHandlerImpl.h
  8553. * src/Util.cc
  8554. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8555. Removed assert()
  8556. * src/SocketBuffer.cc (SocketBuffer::send)
  8557. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. Changed the type of _numNewConnection to unsigned int.
  8559. * src/ActivePeerConnectionCommand.cc
  8560. * src/ActivePeerConnectionCommand.h
  8561. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8562. * Release 0.16.0
  8563. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8564. Updated doc
  8565. * README
  8566. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8567. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  8568. translations. Thanks to all translators.
  8569. * po/bg.po
  8570. * po/de.po
  8571. * po/fr.po
  8572. * po/ja.po
  8573. * po/zh_CN.po
  8574. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8575. Bump up version number to 0.16.0.
  8576. * configure.ac
  8577. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Casted entry->maxConnections to int32_t for std::min<T> with T =
  8579. int32_t.
  8580. Changed the type of count to int32_t.
  8581. * src/Metalink2RequestGroup.cc
  8582. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8583. Added test for Time::elapsed(time_t).
  8584. * test/TimeTest.cc
  8585. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8586. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  8587. Util::difftv() should be used instead.
  8588. * src/TimeA2.cc
  8589. * src/TimeA2.h
  8590. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Made socket for dht connections non-blocking
  8592. * src/DHTAbstractMessage.cc
  8593. * src/DHTAbstractMessage.h
  8594. * src/DHTConnection.h
  8595. * src/DHTConnectionImpl.cc
  8596. * src/DHTConnectionImpl.h
  8597. * src/DHTMessage.h
  8598. * src/DHTMessageDispatcherImpl.cc
  8599. * src/DHTMessageDispatcherImpl.h
  8600. * src/DHTUnknownMessage.cc
  8601. * src/DHTUnknownMessage.h
  8602. * src/SocketCore.cc
  8603. * src/SocketCore.h
  8604. * test/MockDHTMessage.h
  8605. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8606. Changed the type of offset to int.
  8607. * src/ParameterizedStringParser.cc
  8608. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8609. Made getAsInt() return int32_t
  8610. * src/Option.h
  8611. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8612. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  8613. build.
  8614. * configure.ac
  8615. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. Use sqlite3_open if sqlite3_open_v2 is not available.
  8617. * src/Sqlite3MozCookieParser.cc
  8618. * src/Sqlite3MozCookieParser.h
  8619. * m4/sqlite3.m4
  8620. * test/Sqlite3MozCookieParserTest.cc
  8621. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  8623. * src/BtPieceMessage.cc
  8624. * src/DHTPeerAnnounceStorage.cc
  8625. * src/DefaultPieceStorage.cc
  8626. * src/DownloadCommand.cc
  8627. * src/DownloadEngine.cc
  8628. * src/FtpConnection.cc
  8629. * src/PeerConnection.cc
  8630. * src/PeerMessageUtil.cc
  8631. * src/RequestGroup.cc
  8632. * src/RequestGroupMan.cc
  8633. * src/SimpleBtMessage.cc
  8634. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8635. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  8636. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  8637. * src/AbstractDiskWriter.cc
  8638. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8639. Don't set Request::supportsPersistentConnection() in HttpConnection
  8640. since this code is also used in AbstractProxyResponseCommand.
  8641. Moved those code to HttpResponse.
  8642. * src/HttpResponse.cc
  8643. * src/HttpResponse.h
  8644. * src/HttpConnection.cc
  8645. * src/HttpConnection.h
  8646. * src/HttpResponseCommand.cc
  8647. * test/HttpResponseTest.cc
  8648. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  8650. The configuration is minimum: no torrent, no metalink, so there may be
  8651. other compile error on their code.
  8652. * src/a2netcompat.h
  8653. * src/File.cc
  8654. * src/File.h
  8655. * src/SocketCore.cc
  8656. * src/SocketCore.h
  8657. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Made a socket of incoming peer non-blocking.
  8659. * src/PeerListenCommand.cc
  8660. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  8662. whole message data is not sent in one send() call.
  8663. * src/BtPieceMessage.cc
  8664. * src/BtPieceMessage.h
  8665. * src/PeerConnection.cc
  8666. * src/PeerConnection.h
  8667. * src/SimpleBtMessage.cc
  8668. * src/SimpleBtMessage.h
  8669. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8670. Fixed the bug that aria2 downloads faster than max-download-limit when
  8671. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  8672. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  8673. , instead of sum of them.
  8674. * src/ActivePeerConnectionCommand.cc
  8675. * src/DefaultBtInteractive.cc
  8676. * src/DownloadCommand.cc
  8677. * src/PeerInteractionCommand.cc
  8678. * src/PeerReceiveHandshakeCommand.cc
  8679. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8680. Fixed the bug that HTTPS download fails.
  8681. * src/AbstractCommand.cc
  8682. * src/AbstractCommand.h
  8683. * src/DownloadCommand.cc
  8684. * src/FtpConnection.cc
  8685. * src/HttpConnection.cc
  8686. * src/HttpRequestCommand.cc
  8687. * src/HttpResponseCommand.cc
  8688. * src/HttpSkipResponseCommand.cc
  8689. * src/MSEHandshake.cc
  8690. * src/PeerConnection.cc
  8691. * src/SocketCore.cc
  8692. * src/SocketCore.h
  8693. Fixed the bug that aria2 doesn't download whole content body and cannot
  8694. reuse connection if chunked transfer encoding and gzip content encoding
  8695. are set.
  8696. * src/DownloadCommand.cc
  8697. * src/HttpSkipResponseCommand.cc
  8698. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. Updated man page.
  8700. * doc/aria2c.1.txt
  8701. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8702. When error occurred while aria2 was parsing an .aria2.conf file, print
  8703. the usage of the option that caused error.
  8704. * src/option_processing.cc
  8705. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8706. Fixed compile error on OptionHandlerException
  8707. * src/Makefile.am
  8708. * src/OptionHandlerException.cc
  8709. * src/OptionHandlerException.h
  8710. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. Moved message of the error to OptionHandlerException.h
  8712. * src/NameMatchOptionHandler.h
  8713. * src/OptionHandlerException.h
  8714. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. When error occurs while aria2 is parsing an command-line option, print
  8716. the usage of the option.
  8717. * src/Makefile.am
  8718. * src/NameMatchOptionHandler.h
  8719. * src/OptionHandlerException.h
  8720. * src/option_processing.cc
  8721. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Reverted previous change.
  8723. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  8724. username is not in URI.
  8725. * src/HttpRequest.cc
  8726. * src/Request.cc
  8727. * test/HttpRequestTest.cc
  8728. * test/RequestTest.cc
  8729. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8730. Now colon is required for username and password in FTP URL, like:
  8731. ftp://username:password@host.
  8732. If colon is not there, aria2 don't parse it as a username. For example,
  8733. aria2 don't retrieve username from ftp://username@host.
  8734. This fix was made in order to login FTP server via non-transparent ftp
  8735. proxy.
  8736. * src/Request.cc
  8737. * test/RequestTest.cc
  8738. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8739. Use netrc for HTTP.
  8740. Now FTP user/password is sent in Authorization header when
  8741. --ftp-via-http-proxy=get is given.
  8742. * src/AuthConfigFactory.cc
  8743. * src/HttpRequest.cc
  8744. * src/HttpRequest.h
  8745. * src/NetrcAuthResolver.cc
  8746. * src/NetrcAuthResolver.h
  8747. * src/OptionHandlerFactory.cc
  8748. * src/option_processing.cc
  8749. * src/prefs.cc
  8750. * src/prefs.h
  8751. * test/AuthConfigFactoryTest.cc
  8752. * test/HttpRequestTest.cc
  8753. * test/NetrcAuthResolverTest.cc
  8754. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8755. Issue PWD command first and get working directory and use it as a prefix
  8756. for CWD command.
  8757. * src/DownloadEngine.cc
  8758. * src/DownloadEngine.h
  8759. * src/FtpConnection.cc
  8760. * src/FtpConnection.h
  8761. * src/FtpFinishDownloadCommand.cc
  8762. * src/FtpInitiateConnectionCommand.cc
  8763. * src/FtpNegotiationCommand.cc
  8764. * src/FtpNegotiationCommand.h
  8765. * test/FtpConnectionTest.cc
  8766. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8767. Removed default user/pass for FTP user/pass, since it should not have
  8768. precedence over netrc configuration by default.
  8769. * src/OptionHandlerFactory.cc
  8770. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8771. Added debug log for socket event.
  8772. * src/AbstractCommand.cc
  8773. * src/PeerAbstractCommand.cc
  8774. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8775. Log microseconds.
  8776. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8777. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8778. Replaced HelpItem.cc with OptionHandler.cc.
  8779. * po/POTFILES.in
  8780. Updated po files with 'make update-po'
  8781. * po/aria2c.pot
  8782. * po/*.po
  8783. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8784. Removed possible values from the text.
  8785. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8786. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Removed unused preferences:
  8788. PREF_NO_PREALLOCATION
  8789. PREF_STDOUT_LOG
  8790. PREF_TRACKER_MAX_TRIES
  8791. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8792. PREF_MIN_SEGMENT_SIZE
  8793. * src/option_processing.cc
  8794. * src/prefs.cc
  8795. * src/prefs.h
  8796. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. Integrated HelpItem into OptionParser to ease the workload for adding
  8798. new options. Removed default value from usage text.
  8799. * src/HelpItem.cc: Removed.
  8800. * src/HelpItem.h: Removed.
  8801. * src/HelpItemFactory.cc: Removed.
  8802. * src/HelpItemFactory.h: Removed.
  8803. * src/Makefile.am
  8804. * src/Makefile.in
  8805. * src/NameMatchOptionHandler.h
  8806. * src/OptionHandler.cc
  8807. * src/OptionHandler.h
  8808. * src/OptionHandlerFactory.cc
  8809. * src/OptionHandlerImpl.h
  8810. * src/OptionParser.cc
  8811. * src/OptionParser.h
  8812. * src/TagContainer.cc: Removed.
  8813. * src/TagContainer.h: Removed.
  8814. * src/TaggedItem.cc: Removed.
  8815. * src/TaggedItem.h: Removed.
  8816. * src/main.cc
  8817. * src/option_processing.cc
  8818. * src/usage_text.h
  8819. * src/version_usage.cc
  8820. * test/HelpItemTest.cc: Removed.
  8821. * test/Makefile.am
  8822. * test/Makefile.in
  8823. * test/OptionHandlerTest.cc
  8824. * test/OptionParserTest.cc
  8825. * test/TagContainerTest.cc: Removed.
  8826. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Moved `TransferStat stat = ...' to inside the `if' clause.
  8828. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8829. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. Fixed the bug that a block in a piece is requested when same block is
  8831. already requested to the same peer in end game mode.
  8832. * src/BtRequestFactory.h
  8833. * src/DefaultBtInteractive.cc
  8834. * src/DefaultBtRequestFactory.cc
  8835. * src/DefaultBtRequestFactory.h
  8836. * src/DefaultPieceStorage.cc
  8837. * src/DefaultPieceStorage.h
  8838. * src/PieceStorage.h
  8839. * src/UnknownLengthPieceStorage.cc
  8840. * src/UnknownLengthPieceStorage.h
  8841. * test/DefaultBtRequestFactoryTest.cc
  8842. * test/DefaultPieceStorageTest.cc
  8843. * test/MockBtRequestFactory.h
  8844. * test/MockPieceStorage.h
  8845. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8846. Removed _uploadLength and _downloadLength from PeerSessionResource
  8847. and use PeerStat::_sessionUploadLength and
  8848. PeerStat::_sessionDownloadLength.
  8849. * src/PeerSessionResource.cc
  8850. * src/PeerSessionResource.h
  8851. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8852. Fixed the bug that prefixLength of split bucket which doesn't include
  8853. local node ID is incremented.
  8854. * src/DHTBucket.cc
  8855. * src/DHTBucket.h
  8856. * test/DHTBucketTest.cc
  8857. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Added cookies.sqlite to EXTRA_DIST
  8859. * test/Makefile.am
  8860. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Added Turkish translation. Updated French, German, Russian and
  8862. Simplified Chinese translations. Thanks to all translators.
  8863. * po/LINGUAS
  8864. * po/de.po
  8865. * po/fr.po
  8866. * po/ru.po
  8867. * po/tr.po
  8868. * po/zh_CN.po
  8869. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Added deliminating text to the beginning of the log so that one can find
  8871. where the log starts easily.
  8872. * src/main.cc
  8873. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8875. to fix compile error when async DNS is not enabled by configuration.
  8876. * src/AbstractCommand.cc
  8877. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8878. If establishing conneciton to a server is failed, then mark error on
  8879. its ServerStat.
  8880. Added the cause of error to log when error event occurred.
  8881. Moved message string to message.h for translation.
  8882. * src/AbstractCommand.cc
  8883. * src/AbstractCommand.h
  8884. * src/FtpNegotiationCommand.cc
  8885. * src/HttpRequestCommand.cc
  8886. * src/PeerAbstractCommand.cc
  8887. * src/message.h
  8888. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Added the function to get error message from socket.
  8890. * src/SocketCore.cc
  8891. * src/SocketCore.h
  8892. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8893. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8894. * src/RequestGroupMan.cc
  8895. * src/RequestGroupMan.h
  8896. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. If error event is received in epoll, then abort download immediately.
  8898. * src/AbstractCommand.cc
  8899. * src/Command.cc
  8900. * src/Command.h
  8901. * src/DownloadEngine.cc
  8902. * src/PeerAbstractCommand.cc
  8903. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Added usage message for --uri-selector, --server-stat-of,
  8905. --server-stat-in, --server-stat-timeout options.
  8906. * src/HelpItemFactory.cc
  8907. * src/usage_text.h
  8908. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8909. Added upper limit of FTP response buffer. The current implementation
  8910. uses 4096bytes as a limit.
  8911. * src/FtpConnection.cc
  8912. * src/FtpConnection.h
  8913. * test/FtpConnectionTest.cc
  8914. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8915. Use non-blocking socket for TCP communication to avoid possible
  8916. blocking due to buffer full.
  8917. * src/AbstractProxyRequestCommand.cc
  8918. * src/FtpConnection.cc
  8919. * src/FtpConnection.h
  8920. * src/FtpNegotiationCommand.cc
  8921. * src/FtpNegotiationCommand.h
  8922. * src/HttpConnection.cc
  8923. * src/HttpConnection.h
  8924. * src/HttpRequestCommand.cc
  8925. * src/InitiatorMSEHandshakeCommand.cc
  8926. * src/InitiatorMSEHandshakeCommand.h
  8927. * src/MSEHandshake.cc
  8928. * src/MSEHandshake.h
  8929. * src/Makefile.am
  8930. * src/PeerConnection.cc
  8931. * src/PeerConnection.h
  8932. * src/PeerInteractionCommand.cc
  8933. * src/PeerListenCommand.cc
  8934. * src/ReceiverMSEHandshakeCommand.cc
  8935. * src/ReceiverMSEHandshakeCommand.h
  8936. * src/SocketBuffer.cc
  8937. * src/SocketBuffer.h
  8938. * src/SocketCore.cc
  8939. * src/SocketCore.h
  8940. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8941. Call setStatusRealtime() in constructor.
  8942. * src/RealtimeCommand.cc
  8943. * src/RealtimeCommand.h
  8944. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8945. Call Download::setNoWait(true) to execute newly created command without
  8946. a pause.
  8947. * src/AbstractCommand.cc
  8948. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8950. found' error from HTTP/FTP server NUM times without getting single
  8951. bytes of data, then force the download to fail.
  8952. Basically aria2 tris all URIs available. So if long list of URIs are
  8953. specified in Metalink, then aria2 will take a long time to fail
  8954. eventually if all URIs are outdated. This option eases this situation
  8955. to limit the number of servers to try.
  8956. * src/FtpNegotiationCommand.cc
  8957. * src/HelpItemFactory.cc
  8958. * src/HttpResponseCommand.cc
  8959. * src/OptionHandlerFactory.cc
  8960. * src/PeerStat.h
  8961. * src/RequestGroup.cc
  8962. * src/RequestGroup.h
  8963. * src/SegmentMan.cc
  8964. * src/SegmentMan.h
  8965. * src/option_processing.cc
  8966. * src/prefs.cc
  8967. * src/prefs.h
  8968. * src/usage_text.h
  8969. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8970. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8971. response even if more than one response is in it.
  8972. * src/FtpConnection.cc
  8973. * src/FtpConnection.h
  8974. * test/FtpConnectionTest.cc
  8975. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8976. Merged from stable-0.15
  8977. * m4/libcares.m4
  8978. Use pkg-config
  8979. * m4/sqlite3.m4
  8980. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8981. Removed unnecessary if statement.
  8982. * src/DefaultPieceStorage.cc (initPieceStorage)
  8983. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8984. Added --connect-timeout option to specify connect timeout in seconds.
  8985. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8986. connecting to BitTorrent peer is not controlled by this option.
  8987. * src/AbstractProxyRequestCommand.cc
  8988. * src/FtpNegotiationCommand.cc
  8989. * src/HelpItemFactory.cc
  8990. * src/HttpRequestCommand.cc
  8991. * src/OptionHandlerFactory.cc
  8992. * src/option_processing.cc
  8993. * src/prefs.cc
  8994. * src/prefs.h
  8995. * src/usage_text.h
  8996. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. Added help message for -R option.
  8998. * src/HelpItemFactory.cc
  8999. * src/usage_text.h
  9000. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9001. Added the message that the time is in local time zone.
  9002. * src/RequestGroup.cc
  9003. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. Implemented the ability to get timestamp from remote FTP server using
  9005. MDTM command described in RFC3659.
  9006. * src/FtpConnection.cc
  9007. * src/FtpConnection.h
  9008. * src/FtpNegotiationCommand.cc
  9009. * src/FtpNegotiationCommand.h
  9010. * test/FtpConnectionTest.cc
  9011. * test/Makefile.am
  9012. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9013. Implemented the ability to get timestamp from remote HTTP server and
  9014. apply it to local file. To enable this feature, --remote-time option
  9015. is added. No usage text has been written yet.
  9016. If several servers returns difference timestamp, then aria2 uses latest
  9017. one.
  9018. * src/CopyDiskAdaptor.cc
  9019. * src/CopyDiskAdaptor.h
  9020. * src/DirectDiskAdaptor.cc
  9021. * src/DirectDiskAdaptor.h
  9022. * src/DiskAdaptor.h
  9023. * src/File.cc
  9024. * src/File.h
  9025. * src/HttpHeader.cc
  9026. * src/HttpHeader.h
  9027. * src/HttpResponse.cc
  9028. * src/HttpResponse.h
  9029. * src/HttpResponseCommand.cc
  9030. * src/HttpResponseCommand.h
  9031. * src/MultiDiskAdaptor.cc
  9032. * src/MultiDiskAdaptor.h
  9033. * src/OptionHandlerFactory.cc
  9034. * src/RequestGroup.cc
  9035. * src/RequestGroup.h
  9036. * src/RequestGroupMan.cc
  9037. * src/option_processing.cc
  9038. * src/prefs.cc
  9039. * src/prefs.h
  9040. * test/CopyDiskAdaptorTest.cc
  9041. * test/FileTest.cc
  9042. * test/Makefile.am
  9043. * test/Makefile.in
  9044. * test/MultiDiskAdaptorTest.cc
  9045. * test/TestUtil.cc
  9046. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Fixed the bug that DiskWriterEntry is not created when its
  9048. FileEntry.isRequested() is false and it doesn't share a piece with
  9049. other FileEntries that are requested. This bug causes segmentation fault
  9050. in the end.
  9051. * src/MultiDiskAdaptor.cc
  9052. * src/MultiDiskAdaptor.h
  9053. * src/MultiFileAllocationIterator.cc
  9054. * test/MultiDiskAdaptorTest.cc
  9055. * test/MultiFileAllocationIteratorTest.cc
  9056. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9057. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  9058. called if the number of file entries are greater than max open files.
  9059. * src/AbstractSingleDiskAdaptor.cc
  9060. * src/AbstractSingleDiskAdaptor.h
  9061. * src/DiskAdaptor.h
  9062. * src/MultiDiskAdaptor.cc
  9063. * src/MultiDiskAdaptor.h
  9064. * test/MultiDiskAdaptorTest.cc
  9065. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9066. Added a constuctor that receives struct timeval.
  9067. Added operator<.
  9068. * src/TimeA2.cc
  9069. * src/TimeA2.h
  9070. * test/TimeTest.cc
  9071. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9072. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  9073. * src/CookieParser.cc
  9074. * test/CookieParserTest.cc
  9075. * test/HttpResponseTest.cc
  9076. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9077. Implmented the functions to parse date.
  9078. * src/TimeA2.cc
  9079. * src/TimeA2.h
  9080. * test/TimeTest.cc
  9081. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. Added "Firefox3 Cookie" feature to FeatureConfig
  9083. * src/FeatureConfig.cc
  9084. * src/FeatureConfig.h
  9085. * test/FeatureConfigTest.cc
  9086. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9087. Bump up version number to 0.16.0b
  9088. * configure.ac
  9089. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9090. Use pkg-config if is is available.
  9091. * m4/openssl.m4
  9092. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9093. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  9094. * src/BtAnnounce.h
  9095. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9096. If an error occurred with a URI, remove identical URI from remaining
  9097. URI list because it is likely that same error occurred in the end and it
  9098. is waste of time.
  9099. * src/AbstractCommand.cc
  9100. * src/RequestGroup.cc
  9101. * src/RequestGroup.h
  9102. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Removed wrong comment.
  9104. * src/DefaultPeerStorage.cc
  9105. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  9107. Added return value of getpid() to argument of srand() to achieve more
  9108. randomized value.
  9109. * src/SimpleRandomizer.cc
  9110. * src/SimpleRandomizer.h
  9111. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9112. Contact tracker frequently when the number of connections are 0 and
  9113. download is not finished yet.
  9114. * src/ActivePeerConnectionCommand.cc
  9115. * src/BtAnnounce.h
  9116. * src/DefaultBtAnnounce.cc
  9117. * src/DefaultBtAnnounce.h
  9118. * test/MockBtAnnounce.h
  9119. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9120. Moved threshold values to UTPexExtensionMessage.
  9121. * src/DefaultBtInteractive.cc
  9122. * src/Peer.cc
  9123. * src/Peer.h
  9124. * src/UTPexExtensionMessage.cc
  9125. * src/UTPexExtensionMessage.h
  9126. * test/UTPexExtensionMessageTest.cc
  9127. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9128. Added _incoming member to Peer class and made it true if the peer
  9129. initiated connection. Don't add those peer to UTPex message.
  9130. If extended handshake is received, assign _incoming to false.
  9131. * src/DefaultBtInteractive.cc
  9132. * src/HandshakeExtensionMessage.cc
  9133. * src/Peer.cc
  9134. * src/Peer.h
  9135. * src/PeerListenCommand.cc
  9136. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  9138. Encoding Decoder. Removed size threshold for turning off on the fly
  9139. inflation because resulting file may or may not be inflated depending
  9140. on the file size and I think it is not expected by users.
  9141. This change fixes segmentation fault when Metalink file contains gzipped
  9142. file and its filesize is provided.
  9143. * src/HttpResponseCommand.cc
  9144. * src/HttpResponseCommand.h
  9145. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Made Cookie immutable.
  9147. * src/Cookie.cc
  9148. * src/Cookie.h
  9149. * src/CookieParser.cc
  9150. * src/CookieParser.h
  9151. * src/CookieStorage.cc
  9152. * test/CookieParserTest.cc
  9153. * test/CookieStorageTest.cc
  9154. * test/NsCookieParserTest.cc
  9155. * test/Sqlite3MozCookieParserTest.cc
  9156. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Removed CookieBox, CookieBoxFactory.
  9158. * src/CookieBox.cc
  9159. * src/CookieBox.h
  9160. * src/CookieBoxFactory.cc
  9161. * src/CookieBoxFactory.h
  9162. * src/Makefile.am
  9163. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9164. Use CookieStorage class instead of CookieBox class.
  9165. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  9166. * src/AbstractProxyRequestCommand.cc
  9167. * src/CookieStorage.cc
  9168. * src/DownloadEngine.cc
  9169. * src/DownloadEngine.h
  9170. * src/HttpConnection.cc
  9171. * src/HttpConnection.h
  9172. * src/HttpRequest.cc
  9173. * src/HttpRequest.h
  9174. * src/HttpRequestCommand.cc
  9175. * src/HttpResponse.cc
  9176. * src/HttpResponseCommand.cc
  9177. * src/HttpSkipResponseCommand.cc
  9178. * src/Makefile.am
  9179. * src/MultiUrlRequestInfo.cc
  9180. * src/Request.cc
  9181. * src/Request.h
  9182. * src/main.cc
  9183. * test/AllTest.cc
  9184. * test/CookieStorageTest.cc
  9185. * test/CookieTest.cc
  9186. * test/HttpRequestTest.cc
  9187. * test/HttpResponseTest.cc
  9188. * test/Makefile.am
  9189. * test/NsCookieParserTest.cc
  9190. * test/Sqlite3MozCookieParserTest.cc
  9191. * test/nscookietest.txt
  9192. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9193. Updated
  9194. * test/Cookies.sqlite
  9195. * test/nscookietest.txt
  9196. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. Added tests for CookieStorage::load()
  9198. * test/CookieStorageTest.cc
  9199. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9200. Added CookieStorage class which is based on RFC2109 and manages cookies
  9201. more strictly than CookieBox and CookieBoxFactory class.
  9202. * src/CookieStorage.cc
  9203. * src/CookieStorage.h
  9204. * src/Cookie.cc
  9205. * src/Cookie.h
  9206. * test/CookieStorageTest.cc
  9207. * test/CookieTest.cc
  9208. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9209. Fixed the bug that commands are created more than the number of pieces.
  9210. * src/RequestGroup.cc
  9211. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9212. Fixed infinite loop bug in FTP when SIZE command failed.
  9213. * src/FtpNegotiationCommand.cc
  9214. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. Removed DirectDiskAdaptorTest.h
  9216. * test/Makefile.am
  9217. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9218. Fixed chunk checksum validation cannot detect trailing garbage data.
  9219. BUG#2074141
  9220. * src/AbstractSingleDiskAdaptor.cc
  9221. * src/AbstractSingleDiskAdaptor.h
  9222. * src/CheckIntegrityEntry.cc
  9223. * src/CheckIntegrityEntry.h
  9224. * src/DiskAdaptor.h
  9225. * src/MultiDiskAdaptor.cc
  9226. * src/MultiDiskAdaptor.h
  9227. * src/RequestGroup.cc
  9228. * test/DirectDiskAdaptorTest.cc
  9229. * test/MultiDiskAdaptorTest.cc
  9230. * test/TestUtil.cc
  9231. * test/TestUtil.h
  9232. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9233. Bump up version number of dht.dat file to 3. In version 3 format, time
  9234. is stored in 64bit, network byte order.
  9235. New build can load old format(version 2) but it saves the file in new
  9236. format. It means once you used new build, your dht.dat becomes
  9237. incompatible with older build.
  9238. * src/DHTRoutingTableDeserializer.cc
  9239. * src/DHTRoutingTableSerializer.cc
  9240. * test/DHTRoutingTableSerializerTest.cc
  9241. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9242. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  9243. * test/Makefile.am
  9244. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9245. Bump up version number of .aria2 control file to 0001.
  9246. New aria2 can still load version 0000 file but it saves the file in
  9247. version 0001 format. It means that new aria2 can resume download
  9248. started by old aria2 but the opposite is not true.
  9249. * src/DefaultBtProgressInfoFile.cc
  9250. * src/DefaultBtProgressInfoFile.h
  9251. * test/DefaultBtProgressInfoFileTest.cc
  9252. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9253. Added ntoh64 and hton64 as inline functions.
  9254. * src/Util.cc
  9255. * test/UtilTest.cc
  9256. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Added sqlite3 depenency and Firefox3 cookie support.
  9258. * README
  9259. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9260. State that firefox3 cookie is supported explicitly in the usage.
  9261. * src/usage_text.h
  9262. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9263. Externalized message.
  9264. * src/RequestGroupMan.cc
  9265. * src/message.h
  9266. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9267. Save temporary file first and rename to the destination on success.
  9268. Added test cases.
  9269. * src/RequestGroupMan.cc
  9270. * test/RequestGroupManTest.cc
  9271. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Fixed the bug that the number of connected peer is exceeding the limit
  9273. (55 by default) in seeding mode.
  9274. Multiplied 0.8 to _maxUploadSpeedLimit.
  9275. * src/ActivePeerConnectionCommand.cc
  9276. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9277. Clear table item.
  9278. * src/Dictionary.cc
  9279. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9280. Fixed error handling of lseek.
  9281. * src/AbstractDiskWriter.cc
  9282. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9283. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  9284. style cookie file.
  9285. * src/usage_text.h
  9286. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9287. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  9288. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  9289. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  9290. * src/Util.cc
  9291. * src/Util.h
  9292. * src/CookieParser.cc
  9293. * test/UtilTest.cc
  9294. * test/CookieParserTest.cc
  9295. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Separate the implementation to load old mozilla format of cookie to
  9297. NsCookieParser class.
  9298. * src/CookieBoxFactory.cc
  9299. * src/CookieBoxFactory.h
  9300. * src/NsCookieParser.cc
  9301. * src/NsCookieParser.h
  9302. * test/NsCookieParserTest.cc
  9303. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Made parse() const
  9305. * src/Sqlite3MozCookieParser.cc
  9306. * src/Sqlite3MozCookieParser.h
  9307. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9308. Added firefox3 cookie support based on the patch submitted by
  9309. tizianomueller.
  9310. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  9311. this functionality.
  9312. * configure.ac
  9313. * m4/sqlite3.m4
  9314. * src/CookieBoxFactory.cc
  9315. * src/CookieBoxFactory.h
  9316. * src/Makefile.am
  9317. * src/Makefile.in
  9318. * src/Sqlite3MozCookieParser.cc
  9319. * src/Sqlite3MozCookieParser.h
  9320. * src/main.cc
  9321. * test/CookieBoxFactoryTest.cc
  9322. * test/Makefile.am
  9323. * test/Makefile.in
  9324. * test/Sqlite3MozCookieParserTest.cc
  9325. * test/badcookies.sqlite
  9326. * test/cookies.sqlite
  9327. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. Added Danish and Greek translations.
  9329. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  9330. Great thanks to all translators.
  9331. * po/LINGUAS
  9332. * po/el.po
  9333. * po/da.po
  9334. * po/es.po
  9335. * po/ca.po
  9336. * po/nn.po
  9337. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9338. Fixed man page: --follow-bittorrent should be --follow-torrent
  9339. * doc/aria2c.1.txt
  9340. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. Fixed: numCommand is less than the value specified in -C option.
  9342. * src/RequestGroup.cc
  9343. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Fixed occasional assertion failure in PieceSegment.
  9345. Calling PieceStorage::getMissingPiece(size_t) was missing after
  9346. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  9347. creation of duplicate segments and one of the segment was finished then
  9348. assertion failure was caused.
  9349. * src/SegmentMan.cc
  9350. * test/SegmentManTest.cc
  9351. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9352. Added options to load/save the server's performance/status to a file
  9353. and the timeout to drop their data.
  9354. --server-stat-of=FILE specifies the file to which performance data
  9355. is saved.
  9356. --server-stat-if=FILE specifies the file to read previously saved
  9357. by --server-stat-of option. Might be used with --uri-selector=feedback.
  9358. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  9359. TIMEOUT is specified in seconds and the default value is 24hours.
  9360. * src/MultiUrlRequestInfo.cc
  9361. * src/OptionHandlerFactory.cc
  9362. * src/RequestGroupMan.cc
  9363. * src/RequestGroupMan.h
  9364. * src/ServerStatMan.cc
  9365. * src/ServerStatMan.h
  9366. * src/option_processing.cc
  9367. * src/prefs.cc
  9368. * src/prefs.h
  9369. * test/ServerStatManTest.cc
  9370. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9371. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  9372. * src/ServerStatMan.cc
  9373. * src/ServerStatMan.h
  9374. * test/ServerStatManTest.cc
  9375. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. Implemented ServerStatMan::load(...) function and its test case.
  9377. * src/ServerStat.cc
  9378. * src/ServerStat.h
  9379. * src/ServerStatMan.cc
  9380. * test/ServerStatManTest.cc
  9381. * test/ServerStatTest.cc
  9382. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9383. Use time_t instead of int32_t. Use int64_t where milli second is
  9384. expected.
  9385. * src/TimeA2.cc
  9386. * src/TimeA2.h
  9387. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9388. Implemented ServerStatMan::save(...) function and its test case.
  9389. * src/ServerStat.cc
  9390. * src/ServerStat.h
  9391. * src/ServerStatMan.cc
  9392. * src/ServerStatMan.h
  9393. * test/ServerStatManTest.cc
  9394. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9395. Now aria2 uses name attribute in Metalink as local filename in
  9396. BitTorrent downloads. BUG#2033999
  9397. * src/BtContext.h
  9398. * src/BtDependency.cc
  9399. * src/DefaultBtContext.cc
  9400. * src/DefaultBtContext.h
  9401. * src/SingleFileDownloadContext.cc
  9402. * src/SingleFileDownloadContext.h
  9403. * test/BtDependencyTest.cc
  9404. * test/DefaultBtContextTest.cc
  9405. * test/MockBtContext.h
  9406. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9407. Added AC_C_BIGENDIAN
  9408. * src/configure.ac
  9409. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9410. Limited numCommand less than or equal to the number of piece.
  9411. * src/RequestGroup.cc
  9412. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9413. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  9414. directive.
  9415. * test/DefaultPieceStorageTest.cc
  9416. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9417. Fixed memory leak in test code
  9418. * test/AnnounceListTest.cc
  9419. * test/DefaultPeerListProcessorTest.cc
  9420. * test/DefaultPeerStorageTest.cc
  9421. * test/MetaFileUtilTest.cc
  9422. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9423. Fixed wrong argument passing to BitfieldMan::isBitSet()
  9424. * src/DefaultPieceStorage.cc
  9425. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Initialized _directIOAllowed
  9427. * src/MultiDiskAdaptor.cc
  9428. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9429. Fixed memory leak
  9430. * src/GZipDecoder.cc
  9431. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9432. Fixed memory leak
  9433. * src/MetalinkParserStateMachine.cc
  9434. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. Fixed memory leak
  9436. * src/Dictionary.cc
  9437. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9438. Fixed memory leak
  9439. * src/IteratableChunkChecksumValidator.h
  9440. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Fixed unmatched malloc/free.
  9442. * src/IteratableChunkChecksumValidator.cc
  9443. * src/IteratableChecksumValidator.cc
  9444. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9445. Removed max chunk size check. This change fixes BUG#2040169
  9446. * src/ChunkedDecoder.cc
  9447. * src/ChunkedDecoder.h
  9448. * test/ChunkedDecoderTest.cc
  9449. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9450. Implemented download speed based URI selection algorithm.
  9451. Introduced new option --uri-selector.
  9452. If --uri-selector=feedback is given, aria2 uses download speed observed
  9453. in the previous downloads and chooses fastest server in the URI list.
  9454. Currently at most 10 URIs are considered to introduce randomeness for
  9455. finding better servers. The speed is average download speed in the
  9456. downloads.
  9457. On the other hand, if --uri-selector=inorder is given, which is default,
  9458. URI is tried in order in URI list.
  9459. The usage text for the new option has not been written yet.
  9460. * src/AbstractCommand.cc
  9461. * src/DownloadCommand.cc
  9462. * src/DownloadEngine.cc
  9463. * src/DownloadEngineFactory.cc
  9464. * src/InOrderURISelector.cc
  9465. * src/InOrderURISelector.h
  9466. * src/OptionHandlerFactory.cc
  9467. * src/PeerStat.h
  9468. * src/RequestGroup.cc
  9469. * src/RequestGroup.h
  9470. * src/RequestGroupMan.cc
  9471. * src/RequestGroupMan.h
  9472. * src/SegmentMan.cc
  9473. * src/SegmentMan.h
  9474. * src/ServerStat.cc
  9475. * src/ServerStat.h
  9476. * src/ServerStatMan.cc
  9477. * src/ServerStatMan.h
  9478. * src/ServerStatURISelector.cc
  9479. * src/ServerStatURISelector.h
  9480. * src/URISelector.h
  9481. * src/option_processing.cc
  9482. * src/prefs.cc
  9483. * src/prefs.h
  9484. * test/InOrderURISelectorTest.cc
  9485. * test/RequestGroupManTest.cc
  9486. * test/ServerStatManTest.cc
  9487. * test/ServerStatURISelectorTest.cc
  9488. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. * Release 0.15.1+2
  9490. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9491. Bump up version number to 0.15.1+2
  9492. * configure.ac
  9493. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  9495. * m4/aria2_arg.m4
  9496. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9497. * Release 0.15.1+1
  9498. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9499. Bump up version number to 0.15.1+1
  9500. * configure.ac
  9501. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9502. Fixed the bug that causes segmentaion fault when resuming download
  9503. using metalink without size tag. Reproducible only using HTTP URI.
  9504. * src/HttpResponseCommand.cc
  9505. * src/FtpNegotiationCommand.cc
  9506. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9507. * Release 0.15.1
  9508. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. Updated Bulgarian and French translations, thanks to all translators.
  9510. * po/bg.po
  9511. * po/fr.po
  9512. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9513. Bump up version number to 0.15.1
  9514. * configure.ac
  9515. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9516. Avoid repeated call of gettimeofday() when calculating speed.
  9517. * src/SpeedCalc.cc
  9518. * src/SpeedCalc.h
  9519. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. Removed writable check when socket's send buffer is full in BitTorrent
  9521. downloads to lower CPU usage.
  9522. * src/PeerInteractionCommand.cc
  9523. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. Fixed broken gzip inflation.
  9525. Turn off segmented downloading if gzip content is smaller than or equal
  9526. to 1MiB and inflate the data on the fly, because HTTP response header
  9527. doesn't contain the length of inflated file we can't determin where
  9528. the chunk of data should be written.
  9529. On the other hand, if gzip content is larger than 1MB, then turn off
  9530. on the fly inflation, because some servers returns "content-type: gzip"
  9531. for *.tgz, *.gz files.
  9532. * src/DownloadCommand.cc
  9533. * src/HttpResponseCommand.cc
  9534. * src/HttpResponseCommand.h
  9535. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9536. Applied tizianomueller's patch to fix compile error.
  9537. * test/BitfieldManTest.cc
  9538. * test/BtRequestMessageTest.cc
  9539. * test/DefaultBtContextTest.cc
  9540. * test/DefaultDiskWriterTest.cc
  9541. * test/DefaultPieceStorageTest.cc
  9542. * test/HttpHeaderProcessorTest.cc
  9543. * test/HttpResponseTest.cc
  9544. * test/Metalink2RequestGroupTest.cc
  9545. * test/MetalinkParserControllerTest.cc
  9546. * test/MetalinkProcessorTest.cc
  9547. * test/PeerSessionResourceTest.cc
  9548. * test/UtilTest.cc
  9549. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9550. * Release 0.15.0
  9551. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Reordered src files in POTFILES.in so that usage text appears first.
  9553. * po/POTFILES.in
  9554. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9555. Bump up version number to 0.15.0
  9556. * configure.ac
  9557. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9558. Added Bulgarian translation.
  9559. Updated Catalan, Spanish, French and Japanese translations.
  9560. Thanks to all translators.
  9561. * po/LINGUAS
  9562. * po/bg.po
  9563. * po/ca.po
  9564. * po/es.po
  9565. * po/fr.po
  9566. * po/ja.po
  9567. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9568. Updated feature list. Added libz for dependency section.
  9569. Added a description about unit testing using CppUnit.
  9570. * README
  9571. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9572. Added a test for libz. Quoted where it is necessary.
  9573. * build_test.sh
  9574. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9575. Added GZip to `Enabled Features' list.
  9576. * src/FeatureConfig.cc
  9577. * src/FeatureConfig.h
  9578. * test/FeatureConfigTest.cc
  9579. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9580. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  9581. the transfer has not yet started.
  9582. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  9583. * src/SegmentMan.cc
  9584. * src/SegmentMan.h
  9585. * test/SegmentManTest.cc
  9586. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9587. Cache last calculated average download/upload speed.
  9588. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  9589. cached value.
  9590. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  9591. * src/PeerStat.h
  9592. * src/SpeedCalc.cc
  9593. * src/SpeedCalc.h
  9594. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9595. Call parseUrl directly.
  9596. * src/Request.cc (resetUrl)
  9597. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9598. Supported absolute/relative path in Location header field.
  9599. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  9600. * src/HttpHeader.cc
  9601. * src/HttpHeader.h
  9602. * src/HttpResponse.cc
  9603. * src/HttpSkipResponseCommand.cc
  9604. * src/Request.cc
  9605. * test/HttpHeaderTest.cc
  9606. * test/HttpResponseTest.cc
  9607. * test/RequestTest.cc
  9608. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9609. Changed help text for --load-cookie option.
  9610. * doc/aria2c.1.txt
  9611. * src/usage_text.h
  9612. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9613. Regenerated test/Makefile.in to remove stale ChangeLog.
  9614. * test/Makefile.in
  9615. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9616. Updated po files.
  9617. * po/aria2c.pot
  9618. * po/*.po
  9619. * po/*.gmo
  9620. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9621. Bump up version number to 0.15.0b
  9622. * configure.ac
  9623. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9624. Externalize messages.
  9625. * src/RequestGroupMan.cc
  9626. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  9627. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9628. Use File::exists() instead of File::isFile() to allow non-regular file
  9629. such as block special files.
  9630. * src/AbstractDiskWriter.cc
  9631. * src/MultiDiskWriter.cc
  9632. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9633. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  9634. * src/gai_strerror.h
  9635. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Fixed compile error. Thanks gknauf for the patch.
  9637. * src/asctime_r.c
  9638. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9639. Included asctime_r.h from a2time.h.
  9640. * src/a2time.h
  9641. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9642. Added a message "aria2 doesn't verify signature" to log message when
  9643. signature file is saved.
  9644. * src/RequestGroupMan.cc
  9645. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9646. Added the ability to save signature when download is completed if
  9647. signature is available. The filename of signature file is the path to
  9648. download file followed by ".sig". If it already exists, then signature
  9649. will not be saved.
  9650. * src/RequestGroupMan.cc
  9651. * src/Signature.cc
  9652. * test/SignatureTest.cc
  9653. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Updated the descriptions for --bt-seed-unverified.
  9655. * doc/aria2c.1
  9656. * doc/aria2c.1.html
  9657. * doc/aria2c.1.txt
  9658. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9659. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  9660. that this is not going to verify files using piece hashes.
  9661. * src/HelpItemFactory.cc
  9662. * src/OptionHandlerFactory.cc
  9663. * src/RequestGroup.cc
  9664. * src/option_processing.cc
  9665. * src/prefs.cc
  9666. * src/prefs.h
  9667. * src/usage_text.h
  9668. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9669. Added the ability to retrieve signature from Metalink file.
  9670. A retrieved signature is stored in Signature class and it is held by
  9671. DownloadContext class. Note that aria2 doesn't verify signature.
  9672. * src/DownloadContext.cc
  9673. * src/DownloadContext.h
  9674. * src/Makefile.am
  9675. * src/Makefile.in
  9676. * src/Metalink2RequestGroup.cc
  9677. * src/MetalinkEntry.cc
  9678. * src/MetalinkEntry.h
  9679. * src/MetalinkParserController.cc
  9680. * src/MetalinkParserController.h
  9681. * src/MetalinkParserStateMachine.cc
  9682. * src/MetalinkParserStateMachine.h
  9683. * src/Signature.cc
  9684. * src/Signature.h
  9685. * src/SignatureMetalinkParserState.cc
  9686. * src/SignatureMetalinkParserState.h
  9687. * src/VerificationMetalinkParserState.cc
  9688. * src/VerificationMetalinkParserState.h
  9689. * test/Metalink2RequestGroupTest.cc
  9690. * test/MetalinkParserControllerTest.cc
  9691. * test/MetalinkProcessorTest.cc
  9692. * test/test.xml
  9693. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9694. Close DiskAdaptor after renaming file.
  9695. * src/RequestGroup.cc
  9696. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9697. Corrected indentation
  9698. * src/DefaultBtProgressInfoFile.cc
  9699. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9700. Moved the calls of std::ios::exceptions() inside of try-catch block
  9701. because if an error occurred in constructor of std::fstream, then
  9702. exception is thrown immediately when std::ios::exceptions() is called
  9703. which results unhandled exception and aria2c aborts.
  9704. * src/DefaultBtProgressInfoFile.cc
  9705. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9706. Added the test for the previous change in DefaultBtContext.cc
  9707. * test/DefaultBtContextTest.cc
  9708. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9709. Fixed the bug that causes infinite loop when the number of pieces are
  9710. fewer than allowed fast set size which is 10 by default.
  9711. * src/DefaultBtContext.cc
  9712. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9713. Updated the descriptions for -j, -s. Added --bt-seed.
  9714. * doc/aria2c.1
  9715. * doc/aria2c.1.html
  9716. * doc/aria2c.1.txt
  9717. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9718. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  9719. aria2 seeds previously downloaded files without validating piece hashs.
  9720. * src/HelpItemFactory.cc
  9721. * src/OptionHandlerFactory.cc
  9722. * src/RequestGroup.cc
  9723. * src/option_processing.cc
  9724. * src/prefs.cc
  9725. * src/prefs.h
  9726. * src/usage_text.h
  9727. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9728. Updated DESCRIPTION of man page.
  9729. * doc/aria2c.1
  9730. * doc/aria2c.1.html
  9731. * doc/aria2c.1.txt
  9732. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9733. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  9734. Don't define `struct addrinfo' when __sun is defined.
  9735. * src/getaddrinfo.h
  9736. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9737. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  9738. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  9739. second argument is of type `struct _stati64'. Otherwise it is defined as
  9740. `struct stat'.
  9741. * src/AbstractDiskWriter.cc
  9742. * src/File.cc
  9743. * src/File.h
  9744. * src/a2io.h
  9745. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9746. Fixed the compile error in hurd-i386
  9747. See the original bug report:
  9748. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  9749. * src/a2io.h
  9750. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9751. Code cleanup.
  9752. * src/PeerAbstractCommand.cc
  9753. * src/PeerAbstractCommand.h
  9754. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9755. Removed TransferEncoding.
  9756. * src/DownloadCommand.cc
  9757. * src/DownloadCommand.h
  9758. * src/HttpResponseCommand.cc
  9759. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. Updated po files.
  9761. * po/aria2c.pot
  9762. * po/*.po
  9763. * po/*.gmo
  9764. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9766. * src/A2STR.cc
  9767. * src/A2STR.h
  9768. * src/ChunkedDecoder.cc
  9769. * src/ChunkedDecoder.h
  9770. * src/ChunkedEncoding.cc: Removed
  9771. * src/ChunkedEncoding.h: Removed
  9772. * src/DownloadCommand.cc
  9773. * src/DownloadCommand.h
  9774. * src/HttpDownloadCommand.cc
  9775. * src/HttpResponse.cc
  9776. * src/HttpResponse.h
  9777. * src/HttpResponseCommand.cc
  9778. * src/HttpSkipResponseCommand.cc
  9779. * src/HttpSkipResponseCommand.h
  9780. * src/Makefile.am
  9781. * src/TransferEncoding.h: Removed
  9782. * test/ChunkedDecoderTest.cc
  9783. * test/ChunkedEncodingTest.cc: Removed
  9784. * test/HttpResponseTest.cc
  9785. * test/Makefile.am
  9786. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9787. Use append instead of insert.
  9788. * src/GZipDecoder.cc
  9789. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. Updated doc
  9791. * src/Decoder.h
  9792. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9793. Updated usage text for -s option.
  9794. * src/usage_text.h
  9795. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9796. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9797. * src/Request.cc
  9798. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9799. Cleaned up configure.ac.
  9800. * configure.ac
  9801. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9802. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9803. AC_ARG_ENABLE.
  9804. * configure.ac
  9805. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9806. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9807. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9808. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9809. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9810. fly and writes decoded data to a local disk.
  9811. * README
  9812. * README.html
  9813. * configure.ac
  9814. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9815. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9816. * m4/libz.m4
  9817. * src/Decoder.h
  9818. * src/DownloadCommand.cc
  9819. * src/DownloadCommand.h
  9820. * src/Exception.h
  9821. * src/GZipDecoder.cc
  9822. * src/GZipDecoder.h
  9823. * src/HttpHeader.cc
  9824. * src/HttpHeader.h
  9825. * src/HttpRequest.cc
  9826. * src/HttpRequest.h
  9827. * src/HttpResponse.cc
  9828. * src/HttpResponse.h
  9829. * src/HttpResponseCommand.cc
  9830. * src/Makefile.am
  9831. * test/GZipDecoderTest.cc
  9832. * test/HttpRequestTest.cc
  9833. * test/HttpResponseTest.cc
  9834. * test/Makefile.am
  9835. * test/Makefile.in
  9836. * test/gzip_decode_test.gz
  9837. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9838. Clarified usage of -j option.
  9839. * src/usage_text.h
  9840. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9841. Disabled getting size from the response of RETR.
  9842. If SIZE command failed, then disable resuming and segmented downloading.
  9843. * src/FtpConnection.cc
  9844. * src/FtpConnection.h
  9845. * src/FtpNegotiationCommand.cc
  9846. * src/FtpNegotiationCommand.h
  9847. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9848. Use digits to find first byte of file size, which makes the intention
  9849. of the code clearer.
  9850. * src/FtpConnection.cc
  9851. Don't call validateTotalLength() when size is 0.
  9852. * src/FtpNegotiationCommand.cc
  9853. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9854. Updated po files.
  9855. * po/aria2c.pot
  9856. * po/*.gmo
  9857. * po/*.po
  9858. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. Clarified usage text for --split option.
  9860. * src/usage_text.h
  9861. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9862. Bump up version number to 0.15.0dev. "dev" means "development"
  9863. version, which means I started the development of the next release!
  9864. * src/configure.ac
  9865. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. If FTP server returns negative response with REST raw command and
  9867. requested range is not 0, throw exception. If requested range is 0,
  9868. continue download a file from 0 byte.
  9869. * src/FtpNegotiationCommand.cc
  9870. * src/FtpNegotiationCommand.h
  9871. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9872. Supported FTP server which don't recognize SIZE raw command.
  9873. If SIZE raw command is failed, aria2 will try to get file size
  9874. from the response of RETR raw command. If both attempts are failed,
  9875. then resuming and segmented downloading are disabled.
  9876. * src/FtpConnection.cc
  9877. * src/FtpConnection.h
  9878. * src/FtpNegotiationCommand.cc
  9879. * src/FtpNegotiationCommand.h
  9880. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9881. * Release 0.14.0+1
  9882. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9883. Bump up version number to 0.14.0+1
  9884. * src/configure.ac
  9885. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9886. Fixed the code that refers static member variable from non-static
  9887. context.
  9888. * src/DefaultPeerStorage.cc
  9889. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9890. * Release 0.14.0
  9891. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. Added build test script
  9893. * build_test.sh
  9894. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. Updated ja.po
  9896. * src/ja.po
  9897. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9898. Bump up version number to 0.14.0
  9899. * src/configure.ac
  9900. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. Updated ja.po and fr.po. Great thanks for french translators and
  9902. Sebastien WILLEMIJNS.
  9903. * po/fr.po
  9904. * po/ja.po
  9905. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9906. Added configure option to enable/disable epoll support.
  9907. * configure.ac
  9908. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9909. Updated man page.
  9910. * doc/aria2c.1.txt
  9911. * doc/aria2c.1
  9912. * doc/aria2c.1.html
  9913. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9914. Added missing default value '5' to the usage of --split option.
  9915. * src/HelpItemFactory.cc
  9916. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9917. Filled up pieces based on the number of missing blocks, rather than
  9918. simplay the number of piece * block length.
  9919. * src/BtRequestFactory.h
  9920. * src/DefaultBtInteractive.cc
  9921. * src/DefaultBtInteractive.h
  9922. * src/DefaultBtRequestFactory.cc
  9923. * src/DefaultBtRequestFactory.h
  9924. * src/Piece.cc
  9925. * src/Piece.h
  9926. * test/BitfieldManTest.cc
  9927. * test/DefaultBtRequestFactoryTest.cc
  9928. * test/MockBtRequestFactory.h
  9929. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9930. Made _epEvents a member variable.
  9931. * src/DownloadEngine.cc
  9932. * src/DownloadEngine.h
  9933. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9934. Cancel download if http redirect is bounded more than 20 times.
  9935. * src/AbstractCommand.cc
  9936. * src/HttpSkipResponseCommand.cc
  9937. * src/Request.cc
  9938. * src/Request.h
  9939. * test/RequestTest.cc
  9940. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9941. Fixed unhandled exception(removed keyword `new').
  9942. * src/SocketCore.cc (initEPOLL)
  9943. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9944. Removed visit(const MetaEntry*)
  9945. * src/MetaEntryVisitor.h:
  9946. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9947. and made them virtual.
  9948. * src/BencodeVisitor.h
  9949. * src/BencodeVisitor.cc
  9950. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9951. Updated po files.
  9952. * po/aria2c.pot
  9953. * po/*.po
  9954. * po/*.gmo
  9955. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9956. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9957. the number of socket to watch out.
  9958. * src/PeerInteractionCommand.cc
  9959. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9960. When there is not enough space in disk when writing a chunk of data,
  9961. aria2 now prints the message to the console to warn user and aborts
  9962. its download. Not all downloads are canceled because some downloads
  9963. may use another disk or partition. BUG#1640332
  9964. * src/AbstractDiskWriter.cc
  9965. * src/PeerAbstractCommand.cc
  9966. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9967. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9968. setHaltRequested(true) to cancel download.
  9969. * src/PeerInteractionCommand.h
  9970. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9971. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9972. socket from int to sock_t as sockets are unsigned in Windows.
  9973. For AsyncNameResolver, DownloadEngine, I did additional modification
  9974. for the portion of the code changed according to epoll support.
  9975. I defined sock_t in a2netcompat.h to use sock_t without including
  9976. SocketCore.h.
  9977. * src/AsyncNameResolver.cc
  9978. * src/AsyncNameResolver.h
  9979. * src/DownloadEngine.cc
  9980. * src/DownloadEngine.h
  9981. * src/SocketCore.cc
  9982. * src/SocketCore.h
  9983. * src/a2netcompat.h
  9984. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9985. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9986. changes in the patch were applied.
  9987. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9988. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9989. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9990. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9991. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9992. a2io.h and common.h were modified.
  9993. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9994. MinGW.
  9995. * src/common.h: Changed off_t to 64 bit in MinGW.
  9996. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9997. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9998. only a2netcompat.h is modified.
  9999. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  10000. directives.
  10001. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10002. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  10003. only gai_strerror.h is modified.
  10004. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  10005. winsock errors in MinGW.
  10006. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10007. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  10008. follow sources are applied.
  10009. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  10010. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  10011. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  10012. I included locale.h from Platform.cc.
  10013. * src/main.cc: Moved common setup/teardown code to Platform class.
  10014. * test/AllTest.cc: Use Platform class.
  10015. Set locale to C in AllTest.cc to prevent the messages to be localized.
  10016. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10017. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  10018. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  10019. * test/HttpRequestTest.cc: Casted to off_t where it should.
  10020. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10021. Applied Ross's aria2-0.13.2+1-mingw.patch and
  10022. aria2-0.13.2+1-mingw-2.patch.
  10023. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  10024. systems which don't have termious.h. I moved the directive inside of
  10025. if(isTTY) { ... clause so that line is wiped out without termious.h.
  10026. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  10027. anyway.
  10028. * src/asctime_r.h
  10029. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  10030. I added 2nd argument to the prototype declaration.
  10031. * src/StringFormat.cc: Get rid of vasprintf.
  10032. * src/getaddrinfo.h: Fixed constants.
  10033. * configure.ac: Added the check for asctime_r function.
  10034. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  10035. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10036. Added writable test for Socket when the sending message is in progress.
  10037. Usually the sending message is piece message. Without wriable check,
  10038. upload latency is dropped to more than 1sec.
  10039. * src/PeerInteractionCommand.cc
  10040. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10041. Create only requested files and files which shares a piece with
  10042. requested file in multi-torrent downloads. Directory structures are
  10043. also created in the same rule.
  10044. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  10045. DiskWriterEntry as in the previous implementation.
  10046. * src/MultiDiskWriter.cc
  10047. * src/MultiFileAllocationIterator.cc
  10048. * src/MultiFileAllocationIterator.h
  10049. * test/MultiFileAllocationIteratorTest.cc
  10050. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10051. Commented out -lprofiler
  10052. * src/Makefile.am
  10053. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10054. Bump up version number to 0.14.0b.
  10055. * src/configure.ac
  10056. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10057. Actively establish connection to peers in seeding, when peer cache
  10058. is not full and max upload speed limit is not reached.
  10059. * src/ActivePeerConnectionCommand.cc
  10060. * src/ActivePeerConnectionCommand.h
  10061. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10062. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  10063. to make room more fleshy, recently found peers.
  10064. Peer::_badConditionStartTime is not used anymore. Consider to remove
  10065. it.
  10066. * src/DefaultPeerStorage.cc
  10067. * test/DefaultPeerStorageTest.cc
  10068. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10069. Returns cached data only when the previous receiveHandshake() is called
  10070. with peek = true.
  10071. * src/PeerConnection.cc (receiveHandshake)
  10072. * src/PeerConnection.h (receiveHandshake)
  10073. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10074. Changed default value of -s option from 1 to 5.
  10075. Also max value of -s option is changed from 5 to 16.
  10076. * src/HelpItemFactory.cc
  10077. * src/OptionHandlerFactory.cc
  10078. * src/option_processing.cc
  10079. * src/usage_text.h
  10080. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10081. Changed -s options behavior. Now it means the number of connections
  10082. made simultaneously in each http/ftp download.
  10083. If 1 URL is specified, the behavior is the same with old implementation.
  10084. If -s N is given and more than N URLs are specified, first N URLs are
  10085. used and remaining URLs are used for backup. If less than N URLs are
  10086. specified, some of URLs are used more than once so that totally N
  10087. connections are made simultaneously.
  10088. * src/main.cc
  10089. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10090. Included missing iosfwd or ostream header.
  10091. * src/RequestGroupMan.cc
  10092. * src/TaggedItem.cc
  10093. * src/TaggedItem.h
  10094. * src/Util.cc
  10095. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10096. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  10097. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  10098. * src/HttpConnection.cc: Included missing sstream.
  10099. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10100. Added --bt-max-open-files option.
  10101. * src/DefaultPieceStorage.cc
  10102. * src/HelpItemFactory.cc
  10103. * src/MultiDiskAdaptor.cc
  10104. * src/MultiDiskAdaptor.h
  10105. * src/OptionHandlerFactory.cc
  10106. * src/option_processing.cc
  10107. * src/prefs.cc
  10108. * src/prefs.h
  10109. * src/usage_text.h
  10110. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10111. Fixed the bug that aria2 aborts when a path to a directory is given
  10112. in command-line.
  10113. * src/ProtocolDetector.cc
  10114. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10115. Limited the number files opened in each BitTorrent download. The default
  10116. value is 100. The option to change this value will be added.
  10117. * src/MultiDiskAdaptor.cc
  10118. * src/MultiDiskAdaptor.h
  10119. * src/MultiFileAllocationIterator.cc
  10120. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10121. Fixed the bug that HTTP downloads don't start with old libraries.
  10122. * src/HttpHeaderProcessor.cc
  10123. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10124. Use empty() instead of size() > 0.
  10125. * src/HttpConnection.cc
  10126. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10127. Drop connection if the incoming peer ID is the same with localhost's
  10128. one. The previous implementation drops connection when incoming peer's
  10129. IP address is the same with localhost's one.
  10130. * src/PeerListenCommand.cc
  10131. * src/DefaultBtInteractive.cc
  10132. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10133. Returns cached data without checking whether socket is readable
  10134. if the cache is available.
  10135. * src/PeerConnection.cc (receiveHandshake)
  10136. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10137. Included stdint.h
  10138. * src/common.h
  10139. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10140. Removed duplicate HAVE_GETTIMEOFDAY
  10141. * src/Makefile.am
  10142. * src/Makefile.in
  10143. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10144. Use interval as a minInterval when minInterval is not supplied.
  10145. * src/DefaultBtAnnounce.cc
  10146. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10147. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  10148. attempt is failed, then 2nd attempt get kicked out more quickly.
  10149. And it is now static const member of DefaultBtAnnounce.
  10150. * src/DefaultBtAnnounce.h
  10151. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10152. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  10153. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  10154. * src/ActivePeerConnectionCommand.cc
  10155. * src/BtConstants.h
  10156. * src/BtRuntime.h
  10157. * src/DHTGetPeersCommand.cc
  10158. * src/DefaultBtAnnounce.cc
  10159. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  10160. BtRuntime::MAX_PEERS.
  10161. * src/DefaultPeerStorage.h
  10162. * src/InitiatorMSEHandshakeCommand.cc
  10163. * src/PeerInitiateConnectionCommand.cc
  10164. * src/PeerInteractionCommand.cc
  10165. * src/PeerReceiveHandshakeCommand.cc
  10166. * src/TrackerWatcherCommand.cc
  10167. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10168. Always Connect to _numNewConnection
  10169. * src/ActivePeerConnectionCommand.cc
  10170. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10171. Made `begin' unsigned int.
  10172. * src/GrowSegment.h
  10173. * src/Piece.cc
  10174. * src/Piece.h
  10175. * src/PiecedSegment.cc
  10176. * src/PiecedSegment.h
  10177. * src/Segment.h
  10178. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10179. Calculate piece hash when data is arrived if the data is arrived in
  10180. order. This removes additional read operation for hash calculation.
  10181. If the data is arrived in out of order, the hash is calucated when the
  10182. piece is completed. This is the same behavior as the old implementation.
  10183. * src/BtPieceMessage.cc
  10184. * src/DefaultBtProgressInfoFile.cc
  10185. * src/DefaultPieceStorage.cc
  10186. * src/DownloadCommand.cc
  10187. * src/DownloadCommand.h
  10188. * src/DownloadEngine.cc
  10189. * src/GrowSegment.cc
  10190. * src/GrowSegment.h
  10191. * src/Piece.cc
  10192. * src/Piece.h
  10193. * src/PiecedSegment.cc
  10194. * src/PiecedSegment.h
  10195. * src/Segment.h
  10196. * test/PieceTest.cc
  10197. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10198. Try to keep the ordering of outgoing piece message.
  10199. * src/DefaultBtMessageDispatcher.cc
  10200. (DefaultBtMessageDispatcher::sendMessages)
  10201. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10202. Fixed busy loop when error/hup epoll events occur.
  10203. * src/AbstractCommand.cc
  10204. * src/PeerAbstractCommand.cc
  10205. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10206. Added --bt-request-peer-speed-limit option, which was a constant
  10207. SLOW_SPEED_THRESHOLD.
  10208. * src/ActivePeerConnectionCommand.cc
  10209. * src/ActivePeerConnectionCommand.h
  10210. * src/BtConstants.h
  10211. * src/HelpItemFactory.cc
  10212. * src/OptionHandlerFactory.cc
  10213. * src/PeerReceiveHandshakeCommand.cc
  10214. * src/option_processing.cc
  10215. * src/prefs.cc
  10216. * src/prefs.h
  10217. * src/usage_text.h
  10218. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10219. Removed repeated call of getTopDirPath(). Instead, call it once and
  10220. cache the result.
  10221. * src/MultiDiskAdaptor.cc
  10222. * src/MultiDiskAdaptor.h
  10223. (mkdir, openFile, initAndOpenFile, openExistingFile)
  10224. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10225. Fixed compile error on debian etch.
  10226. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  10227. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  10228. it is undefined.
  10229. * src/Util.cc (ULLONG_MAX)
  10230. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10231. Added epoll support. Use epoll if it is available. If not, use select.
  10232. When async dns is enabled in compile time, epoll support is enabled
  10233. only when aria2 is built with c-ares. This condition statement is
  10234. defined in a2io.h.
  10235. Currently aria2 supports both c-ares and ares, but ares is maintained
  10236. for quite a while and debian already has c-ares package, ares support
  10237. will be dropped in the future version.
  10238. * configure.ac
  10239. * src/AbstractCommand.cc
  10240. * src/AsyncNameResolver.cc
  10241. * src/AsyncNameResolver.h
  10242. * src/Command.cc
  10243. * src/Command.h
  10244. * src/DownloadEngine.cc
  10245. * src/DownloadEngine.h
  10246. * src/PeerAbstractCommand.cc
  10247. * src/SocketCore.cc
  10248. * src/SocketCore.h
  10249. * src/a2io.h
  10250. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10251. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  10252. directive.
  10253. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10254. Do not do write operation to /dev/null file.
  10255. * src/LogFactory.cc
  10256. * src/SimpleLogger.cc
  10257. Replaced vasprintf with vsnprintf
  10258. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  10259. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10260. * src/BtRequestMessage.cc
  10261. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  10262. for segmentation fault caused by previous commit.
  10263. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10264. Reduced the usage of gettimeofday().
  10265. * src/DefaultBtMessageDispatcher.cc
  10266. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  10267. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10268. * src/RequestSlot.cc
  10269. * src/RequestSlot.h
  10270. (RequestSlot::isTimeout)
  10271. Made RequestSlot have a reference to Piece object to avoid find
  10272. Piece repeatedly.
  10273. * src/DefaultBtMessageDispatcher.cc
  10274. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10275. * src/RequestSlot.cc
  10276. * src/RequestSlot.h
  10277. (RequestSlot::getPiece)
  10278. * test/DefaultBtMessageDispatcherTest.cc
  10279. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. * src/TimeA2.cc
  10281. * src/TimeA2.h
  10282. (Time::difference): New function.
  10283. (Time::elapsed): Done optimization.
  10284. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10285. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  10286. directive.
  10287. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10288. * src/option_processing.cc: Added missing `defined' keyword to #if
  10289. directive.
  10290. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10291. Bump up version number to 0.13.2+1
  10292. * src/configure.ac
  10293. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10294. Refactored broken outstanding piece handling.
  10295. * src/DefaultPieceStorage.cc
  10296. * src/DefaultPieceStorage.h
  10297. * src/Piece.cc
  10298. * src/Piece.h
  10299. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10300. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  10301. name collision of static variable and predefined macro.
  10302. * src/BtContext.cc
  10303. * src/BtContext.h
  10304. * src/CookieBoxFactory.cc
  10305. * src/CookieBoxFactory.h
  10306. * src/CookieParser.cc
  10307. * src/CookieParser.h
  10308. * src/DefaultBtContext.cc
  10309. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10310. * src/RequestGroup.cc
  10311. (RequestGroup::createInitialCommand): Use empty() instead of size().
  10312. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10313. * Release 0.13.2
  10314. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10315. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  10316. * po/fr.po
  10317. * po/ja.po
  10318. * po/aria2c.pot
  10319. * po/*.po
  10320. * po/*.gmo
  10321. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10322. Bump up version number to 0.13.2
  10323. * src/configure.ac
  10324. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10325. Refactord.
  10326. * src/RequestGroupMan.cc
  10327. (removeStoppedGroup)
  10328. (fillRequestGroupFromReserver)
  10329. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10330. Fixed compile error on Ubuntu.
  10331. * src/BtPieceMessage.cc
  10332. * src/MessageDigestHelper.cc
  10333. * src/Util.cc
  10334. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10335. Fixed compile error when configured with --disable-bittorrent
  10336. * test/DownloadHandlerFactoryTest.cc
  10337. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10338. Done make update-po
  10339. * po/aria2c.pot
  10340. * po/*.po
  10341. * po/*.gmo
  10342. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10343. Bump up version number to 0.13.2rc.
  10344. * src/configure.ac
  10345. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10346. Made option name bold. Updated SYNOPSIS to make it more readable.
  10347. * doc/aria2c.1.txt
  10348. * doc/aria2c.1
  10349. * doc/aria2c.1.html
  10350. * src/version_usage.cc
  10351. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10352. Refactored. Use std::string instead of size and char*.
  10353. * Data.cc
  10354. * Data.h
  10355. * test/Data.cc
  10356. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10357. Added trimSelf(). Rewritten trim() to use trimSelf().
  10358. * Util.cc
  10359. * Util.h
  10360. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10361. * src/ChunkChecksum.h (getChecksum): Return const reference.
  10362. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10363. Fixed compile error when configured with --disable-metalink.
  10364. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  10365. * test/FeatureConfigTest.cc
  10366. * test/DownloadHandlerFactoryTest.cc
  10367. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10368. Fixed compile error when configured with --without-gnutls
  10369. --without-openssl
  10370. * src/main.cc
  10371. * test/DefaultBtProgressInfoFileTest.cc
  10372. * test/SegmentManTest.cc
  10373. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10374. Fixed compile error with OpenSSL.
  10375. * src/IteratableChunkChecksumValidator.cc
  10376. * src/LibsslDHKeyExchange.h
  10377. * src/MessageDigestHelper.cc
  10378. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10379. Revert the default value of --max-concurrent-downloads to 5.
  10380. Revert the default value of --metalink-servers to 5.
  10381. Man pages was also updated.
  10382. * src/option_processing.cc
  10383. * doc/aria2c.1.txt
  10384. * doc/aria2c.1.html
  10385. * doc/aria2c.1
  10386. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10387. Returns const reference:
  10388. DownloadContext::getPieceHash, DownloadContext::getName,
  10389. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  10390. BtContext::getInfoHashAsString,
  10391. * src/BtContext.h
  10392. * src/DefaultBtContext.cc
  10393. * src/DefaultBtContext.h
  10394. * src/DownloadContext.h
  10395. * src/SingleFileDownloadContext.h
  10396. * test/MockBtContext.h
  10397. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10398. * src/RequestGroup.h (getDir): Removed.
  10399. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. Returns const reference. The internal urlencode function was optimized
  10401. a little bit.
  10402. * src/Request.cc
  10403. * src/Request.h
  10404. * src/HttpRequest.cc
  10405. * src/HttpRequest.h
  10406. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10407. Defined option name and possible values as std::string to reduce
  10408. temporary string object creation in runtime.
  10409. * src/HelpItemFactory.cc
  10410. * src/LogFactory.cc
  10411. * src/Option.cc
  10412. * src/OptionHandlerFactory.cc
  10413. * src/option_processing.cc
  10414. * src/prefs.cc
  10415. * src/prefs.h
  10416. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10417. Return const reference.
  10418. * src/DownloadHandlerConstants.cc
  10419. * src/DownloadHandlerConstants.h
  10420. (getMetalinkExtensions)
  10421. (getMetalinkContentTypes)
  10422. (getBtExtensions)
  10423. (getBtContentTypes)
  10424. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10425. * src/HttpHeader.cc (get): Rewritten.
  10426. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10427. Make HttpHeader::getFirst(...) return const reference.
  10428. * src/HttpHeader.cc
  10429. * src/HttpHeader.h
  10430. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10431. Use Option::getAsBool(...) instead of Option::get(...) and compare
  10432. it with V_TRUE.
  10433. * src/DefaultPieceStorage.cc
  10434. * src/DownloadCommand.cc
  10435. * src/FtpNegotiationCommand.cc
  10436. * src/HttpRequest.cc
  10437. * src/InitiateConnectionCommand.cc
  10438. * src/RequestGroup.cc
  10439. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10440. Made Option::get(...) return const reference of std::string.
  10441. * src/Option.cc
  10442. * src/Option.h
  10443. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10444. Replaced std:copy with insert.
  10445. * src/DefaultBtMessageDispatcher.cc
  10446. * src/DefaultPieceStorage.cc
  10447. * src/DownloadEngineFactory.cc
  10448. * src/RequestGroup.cc
  10449. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10450. Included SocketCore.h to fix compiler warning.
  10451. * src/InitiateConnectionCommand.cc
  10452. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10453. Put piece selection strategy algorithm to RarestPieceSelector class,
  10454. Added a switch to choose whether randomized selection so that unit
  10455. tests emit same results in, possibly, win32.
  10456. * src/DefaultPieceStorage.cc
  10457. * src/DefaultPieceStorage.h
  10458. * src/RarestPieceSelector.cc
  10459. * src/RarestPieceSelector.h
  10460. * test/DefaultPieceStorageTest.cc
  10461. * test/RarestPieceSelectorTest.cc
  10462. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10463. Don't pool connection if HTTP proxy is enabled.
  10464. * src/FtpFinishDownloadCommand.cc
  10465. * src/FtpNegotiationCommand.cc
  10466. * src/HttpSkipResponseCommand.cc
  10467. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10468. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  10469. * src/AbstractCommand.cc
  10470. * src/AbstractCommand.h
  10471. * src/ActivePeerConnectionCommand.cc
  10472. * src/FtpInitiateConnectionCommand.cc
  10473. * src/HttpInitiateConnectionCommand.cc
  10474. * src/InitiateConnectionCommandFactory.cc
  10475. * src/PeerAbstractCommand.cc
  10476. * src/PeerAbstractCommand.h
  10477. * src/PeerInitiateConnectionCommand.cc
  10478. * src/TrackerWatcherCommand.cc
  10479. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10480. Sort RequestSlot in ascending order and manipulate them using
  10481. lower_bound.
  10482. * src/DefaultBtMessageDispatcher.cc
  10483. * src/DefaultBtMessageDispatcher.h
  10484. (getMessageQueue): Added const qualifier.
  10485. (getRequestSlots): Added const qualifier.
  10486. (sendMessages): Use empty() instead of size().
  10487. (doCancelSendingPieceAction): Use HandleEvent object.
  10488. (doAbortOutstandingRequestAction): Rewritten.
  10489. (doChokedAction): Rewritten.
  10490. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  10491. (isOutstandingRequest): Rewritten.
  10492. (getOutstandingRequest): Rewritten.
  10493. (removeOutstandingRequest): Rewritten.
  10494. (addOutstandingRequest): Rewritten.
  10495. * src/RequestSlot.cc
  10496. * src/RequestSlot.h
  10497. (operator=): Rewritten.
  10498. (operator!=): New function.
  10499. (operator<): New function.
  10500. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10501. * src/DefaultBtRequestFactory.cc
  10502. (doChokedAction): Rewritten.
  10503. (removeCompletedPiece): Rewritten.
  10504. (removeTargetPiece): Rewritten.
  10505. (createRequestMessages): Added the debug log.
  10506. (createRequestMessagesOnEndGame: Added the debug log.
  10507. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10508. Added the debug log message.
  10509. * src/BtPieceMessage.cc (doReceivedAction)
  10510. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10511. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  10512. used lower_bound to process them rather than linear search.
  10513. * src/DHTPeerAnnounceStorage.cc
  10514. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10515. Call subtractPieceStats from ~PeerInteractionCommand only when the
  10516. peer has at least one completed piece.
  10517. * src/Peer.cc
  10518. * src/Peer.h
  10519. * src/PeerInteractionCommand.cc
  10520. * src/PeerSessionResource.cc
  10521. * src/PeerSessionResource.h
  10522. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10523. Removed unnecessary sorting
  10524. * src/DefaultPieceStorage (DefaultPieceStorage)
  10525. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10526. Rewritten the portion of the code that mangaes allowed fast indexes.
  10527. * src/PeerSessionResource.cc
  10528. * src/PeerSessionResource.h
  10529. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10530. Removed the invalid string including '\r' from ru.po and
  10531. did make update-po.
  10532. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10533. Added --log-level and --summary-interval to man page.
  10534. * doc/aria2c.1.txt
  10535. * doc/aria2c.1.html
  10536. * doc/aria2c.1
  10537. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. Added --log-level option to specify log level. Log messages under
  10539. the specified level are not output. Default value is `debug'.
  10540. * src/HelpItemFactory.cc
  10541. * src/LogFactory.cc
  10542. * src/LogFactory.h
  10543. * src/Logger.h
  10544. * src/OptionHandlerFactory.cc
  10545. * src/SimpleLogger.cc
  10546. * src/SimpleLogger.h
  10547. * src/main.cc
  10548. * src/option_processing.cc
  10549. * src/prefs.h
  10550. * src/usage_text.h
  10551. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10552. Print download progress summary of all parallel downloads in specified
  10553. interval, default 60 secs. While aria2 could download several files
  10554. in parallel (see -j option), it displayed just first download progress,
  10555. and the other downloads are hidden from the users. This new feature
  10556. prints all downloads currently in-progress to the console so that you
  10557. can check the status of all downloads. The interval can be adjusted
  10558. by --summary-interval option.
  10559. The progress readout is now cut so that all fits in the one line of
  10560. console.
  10561. * src/ConsoleStatCalc.cc
  10562. * src/ConsoleStatCalc.h
  10563. * src/HelpItemFactory.cc
  10564. * src/OptionHandlerFactory.cc
  10565. * src/RequestGroupMan.cc
  10566. * src/RequestGroupMan.h
  10567. * src/main.cc
  10568. * src/option_processing.cc
  10569. * src/prefs.h
  10570. * src/usage_text.h
  10571. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10572. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  10573. * src/DownloadEngine.cc (DownloadEngine)
  10574. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10575. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  10576. defined.
  10577. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  10578. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10579. Use erase+lower_bound+insert instead of sort.
  10580. * src/DefaultPieceStorage.cc (addPieceStats)
  10581. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10582. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  10583. * src/A2STR.cc
  10584. * src/A2STR.h
  10585. * src/OptionParser.cc (parse)
  10586. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10587. Defined fake filename `[tracker.announce]' as static const std::string.
  10588. * src/TrackerWatcherCommand.cc (createRequestGroup)
  10589. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10590. Defined default filename `index.html' as static const std::string
  10591. * src/SingleFileDownloadContext.cc
  10592. * src/SingleFileDownloadContext.h
  10593. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10594. Defined "[MEMORY]" as static const std::string.
  10595. * src/MemoryBufferPreDownloadHandler.cc (execute)
  10596. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10597. Defined control file's version number as static const std::string.
  10598. * src/DefaultBtProgressInfoFile.cc
  10599. * src/DefaultBtProgressInfoFile.h
  10600. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10601. Use Request::METHOD_GET
  10602. * src/RequestGroup.cc (createNextCommandWithAdj)
  10603. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10604. Defined "OK", "ERR", "INPR" as static const std::string
  10605. * src/RequestGroupMan.cc (showDownloadResults)
  10606. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10607. Defined default client used in extended handshake as static const
  10608. std::string
  10609. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  10610. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10611. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  10612. * src/HttpConnection.cc (eraseConfidentialInfo)
  10613. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10614. Defined default ftp user and password as static const std::string
  10615. * src/AuthConfigFactory.cc
  10616. * src/AuthConfigFactory.h
  10617. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10618. Defined strings used in netrc as static const std::string
  10619. * src/Netrc.cc
  10620. * src/Netrc.h
  10621. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10622. Defined HTTP status as static const std::string
  10623. * src/AbstractProxyResponseCommand.cc
  10624. * src/HttpHeader.cc
  10625. * src/HttpHeader.h
  10626. * src/HttpResponse.cc
  10627. * src/HttpResponseCommand.cc
  10628. * src/HttpSkipResponseCommand.cc
  10629. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10630. Defined "\r\n", "A", "I" as static const std::string
  10631. * src/A2STR.cc
  10632. * src/A2STR.h
  10633. * src/FtpConnection.cc
  10634. * src/FtpConnection.h
  10635. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10636. Added COLON_C(".") and used it in Request::parseUrl()
  10637. * src/A2STR.cc
  10638. * src/A2STR.h
  10639. * src/Request.cc (parseUrl)
  10640. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10641. Changed the type of padName from `const std::string&' to `const char*'.
  10642. * src/MSEHandshake.cc (verifyPadLength)
  10643. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10644. Defined "sha1" as static const std::string.
  10645. * src/MetalinkParserController.cc
  10646. * src/MetalinkParserController.h
  10647. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10648. Defined message digest algorithm name as static const std::string
  10649. * src/DHTTokenTracker.cc
  10650. * src/DHTUtil.cc
  10651. * src/DefaultBtContext.cc
  10652. * src/MSEHandshake.cc
  10653. * src/MessageDigestHelper.cc
  10654. * src/Peer.cc
  10655. * src/messageDigest.cc
  10656. * src/messageDigest.h
  10657. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10658. Made string literals used in SAX parser static const std::string.
  10659. * src/FileMetalinkParserState.cc
  10660. * src/FileMetalinkParserState.h
  10661. * src/FilesMetalinkParserState.cc
  10662. * src/FilesMetalinkParserState.h
  10663. * src/InitialMetalinkParserState.cc
  10664. * src/InitialMetalinkParserState.h
  10665. * src/MetalinkMetalinkParserState.cc
  10666. * src/MetalinkMetalinkParserState.h
  10667. * src/PiecesMetalinkParserState.cc
  10668. * src/PiecesMetalinkParserState.h
  10669. * src/ResourcesMetalinkParserState.cc
  10670. * src/ResourcesMetalinkParserState.h
  10671. * src/VerificationMetalinkParserState.cc
  10672. * src/VerificationMetalinkParserState.h
  10673. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10674. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  10675. * src/A2STR.cc
  10676. * src/A2STR.h
  10677. * src/File.cc
  10678. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10679. Defined static const std::string IP("ip"), PORT("port") and use them
  10680. instead of string literals.
  10681. * src/DefaultPeerListProcessor.cc
  10682. * src/DefaultPeerListProcessor.h
  10683. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10684. Made string literals for torrent file processing static const
  10685. std::string.
  10686. * src/BtContext.cc
  10687. * src/BtContext.h
  10688. * src/DefaultBtContext.cc
  10689. * src/DefaultBtContext.h
  10690. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10691. Made string literal for tracker response static const std::string
  10692. * src/BtAnnounce.cc
  10693. * src/BtAnnounce.h
  10694. * src/DefaultBtAnnounce.cc
  10695. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10696. Use DHTMessage::T instead of "t".
  10697. * src/DHTMessageTracker.cc (messageArrived)
  10698. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10699. Made keyName static const. Made trimmed charset static const
  10700. std::string.
  10701. * src/Util.cc (getContentDispositionFilename)
  10702. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10703. Made USER_AGENT const. Made "/" static const std::string.
  10704. * src/A2STR.cc
  10705. * src/A2STR.h
  10706. * src/HttpRequest.cc
  10707. * src/HttpRequest.h
  10708. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10709. Made string listeral to static const std::string:
  10710. "Content-Range", "Content-Length"
  10711. * src/HttpHeader.cc
  10712. * src/HttpHeader.h
  10713. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10714. Made string listeral to static const std::string.
  10715. * src/HttpConnection.cc
  10716. * src/HttpHeader.cc
  10717. * src/HttpHeader.h
  10718. * src/HttpResponse.cc
  10719. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10720. Made string listeral to static const std::string.
  10721. * src/A2STR.cc
  10722. * src/A2STR.h
  10723. * src/SimpleLogger.cc
  10724. * src/SimpleLogger.h
  10725. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10726. Made string literal to static const std::string.
  10727. Rewritten CookieParser::setField.
  10728. * src/A2STR.cc
  10729. * src/A2STR.h
  10730. * src/CookieBoxFactory.cc
  10731. * src/CookieBoxFactory.h
  10732. * src/CookieParser.cc
  10733. * src/CookieParser.h
  10734. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10735. Made string literal to static const std::string
  10736. * src/DHTAbstractMessage.cc
  10737. * src/DHTAnnouncePeerMessage.cc
  10738. * src/DHTAnnouncePeerMessage.h
  10739. * src/DHTAnnouncePeerReplyMessage.cc
  10740. * src/DHTAnnouncePeerReplyMessage.h
  10741. * src/DHTFindNodeMessage.cc
  10742. * src/DHTFindNodeMessage.h
  10743. * src/DHTFindNodeReplyMessage.cc
  10744. * src/DHTFindNodeReplyMessage.h
  10745. * src/DHTGetPeersMessage.cc
  10746. * src/DHTGetPeersMessage.h
  10747. * src/DHTGetPeersReplyMessage.cc
  10748. * src/DHTGetPeersReplyMessage.h
  10749. * src/DHTMessage.cc
  10750. * src/DHTMessage.h
  10751. * src/DHTMessageFactoryImpl.cc
  10752. * src/DHTMessageReceiver.cc
  10753. * src/DHTPingMessage.cc
  10754. * src/DHTPingMessage.h
  10755. * src/DHTPingReplyMessage.cc
  10756. * src/DHTPingReplyMessage.h
  10757. * src/DHTQueryMessage.cc
  10758. * src/DHTQueryMessage.h
  10759. * src/DHTResponseMessage.cc
  10760. * src/DHTResponseMessage.h
  10761. * src/DHTUnknownMessage.cc
  10762. * src/DHTUnknownMessage.h
  10763. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10764. Made string literal to static const std::string
  10765. * src/BtChokeMessage.cc (toString)
  10766. * src/BtHaveAllMessage.cc (toString)
  10767. * src/BtHaveNoneMessage.cc (toString)
  10768. * src/BtInterestedMessage.cc (toString)
  10769. * src/BtNotInterestedMessage.cc (toString)
  10770. * src/BtUnchokeMessage.cc (toString)
  10771. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10772. Replaced "" with static const variable A2STR::NIL.
  10773. Replaced string comparison against "" with std::string::empty().
  10774. Added PROTO_* to Request class and use them as a protocol string
  10775. constant.
  10776. Made "started", "stopped", "completed" static const variable in
  10777. AnnounceList class.
  10778. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10779. Updated translations. Great thanks to translators.
  10780. * po/ca.po
  10781. * po/de.po
  10782. * po/fr.po
  10783. * po/it.po
  10784. * po/ja.po
  10785. * po/ru.po
  10786. * po/zh_CN.po
  10787. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10788. Updated man page; categorized options and fixed typo.
  10789. * doc/aria2c.1.txt
  10790. * doc/aria2c.1.html
  10791. * doc/aria2c.1
  10792. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10793. Removed const ref
  10794. * src/MetalinkEntry.cc (AddProtocolPreference)
  10795. * src/RequestGroup.cc (FindServerHostByHostname)
  10796. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10797. Rewritten Accept-Features handling.
  10798. * src/HttpRequestCommand.cc (createHttpRequest)
  10799. * src/a2functional.h
  10800. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10801. Changed method signature:
  10802. DHTAbstractNodeLookupTask::toEntries
  10803. * src/DHTAbstractNodeLookupTask.cc
  10804. * src/DHTAbstractNodeLookupTask.h
  10805. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10806. Changed method signature:
  10807. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10808. * src/BtContext.h
  10809. * src/DefaultBtContext.cc
  10810. * src/DefaultBtContext.h
  10811. * src/DefaultBtInteractive.cc
  10812. * test/DefaultBtContextTest.cc
  10813. * test/MockBtContext.h
  10814. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10815. Changed method signature:
  10816. MultiFileAllocationIterator::makeDiskWriterEntries
  10817. * src/MultiFileAllocationIterator.cc
  10818. * src/MultiFileAllocationIterator.h
  10819. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10820. Changed method sinature:
  10821. MetalinkEntry::toFileEntry,
  10822. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10823. Metalinker::queryEntry
  10824. * src/Metalink2RequestGroup.cc
  10825. * src/MetalinkEntry.cc
  10826. * src/MetalinkEntry.h
  10827. * src/MetalinkHelper.cc
  10828. * src/MetalinkHelper.h
  10829. * src/Metalinker.cc
  10830. * src/Metalinker.h
  10831. * src/main.cc
  10832. * test/MetalinkHelperTest.cc
  10833. * test/MetalinkerTest.cc
  10834. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10835. Changed method sinature:
  10836. RequestGroup::getURIs
  10837. * src/RequestGroup.cc
  10838. * src/RequestGroup.h
  10839. * test/Metalink2RequestGroupTest.cc
  10840. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10841. Changed method signature:
  10842. PeerListProcessor::extractPeer
  10843. * src/CompactPeerListProcessor.cc
  10844. * src/CompactPeerListProcessor.h
  10845. * src/DefaultBtAnnounce.cc
  10846. * src/DefaultPeerListProcessor.cc
  10847. * src/DefaultPeerListProcessor.h
  10848. * src/DelegatingPeerListProcessor.cc
  10849. * src/DelegatingPeerListProcessor.h
  10850. * src/PeerListProcessor.h
  10851. * src/UTPexExtensionMessage.cc
  10852. * test/DefaultPeerListProcessorTest.cc
  10853. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10854. Changed method signature:
  10855. BtRequestFactory::createRequestMessages,
  10856. BtRequestFactory::createRequestMessagesOnEndGame
  10857. * src/BtRequestFactory.h
  10858. * src/DefaultBtInteractive.cc
  10859. * src/DefaultBtRequestFactory.cc
  10860. * src/DefaultBtRequestFactory.h
  10861. * test/DefaultBtRequestFactoryTest.cc
  10862. * test/MockBtRequestFactory.h
  10863. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10864. Changed method signature:
  10865. PieceStorage::getInFlightPieces
  10866. * src/DefaultBtProgressInfoFile.cc
  10867. * src/DefaultPieceStorage.cc
  10868. * src/DefaultPieceStorage.h
  10869. * src/PieceStorage.h
  10870. * src/UnknownLengthPieceStorage.cc
  10871. * src/UnknownLengthPieceStorage.h
  10872. * test/DefaultBtProgressInfoFileTest.cc
  10873. * test/MockPieceStorage.h
  10874. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10875. Changed method signature:
  10876. PostDownloadHandler::getNextRequestGroups
  10877. Metalink2RequestGroup::generate
  10878. RequestGroup::postDownloadProcessing
  10879. * src/BtPostDownloadHandler.cc
  10880. * src/BtPostDownloadHandler.h
  10881. * src/Metalink2RequestGroup.cc
  10882. * src/Metalink2RequestGroup.h
  10883. * src/MetalinkPostDownloadHandler.cc
  10884. * src/MetalinkPostDownloadHandler.h
  10885. * src/PostDownloadHandler.h
  10886. * src/RequestGroup.cc
  10887. * src/RequestGroup.h
  10888. * src/RequestGroupMan.cc
  10889. * src/main.cc
  10890. * test/BtPostDownloadHandlerTest.cc
  10891. * test/Metalink2RequestGroupTest.cc
  10892. * test/MetalinkPostDownloadHandlerTest.cc
  10893. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. Rewritten AccRequestGroup
  10895. * src/main.cc
  10896. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10897. Rewritten.
  10898. * src/TaggedItem.cc (toTagString)
  10899. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10900. Rewritten Accept-Features handling.
  10901. * src/HttpRequestCommand.cc (createHttpRequest)
  10902. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10903. Rewritten accept types handling.
  10904. * HttpRequest.cc (createRequest)
  10905. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10906. Rewritten
  10907. * src/FeatureConfig.cc (featureSummary)
  10908. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10909. Changed method signature:
  10910. PeerStorage::getActivePeers
  10911. * src/DHTPeerAnnounceEntry.cc
  10912. * src/DefaultPeerStorage.cc
  10913. * src/DefaultPeerStorage.h
  10914. * src/PeerStorage.h
  10915. * test/DefaultPeerStorageTest.cc
  10916. * test/MockPeerStorage.h
  10917. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10918. Changed method signature:
  10919. DHTPeerAnnounceStorage::getPeers,
  10920. DHTPeerAnnounceEntry::getPeers
  10921. * src/DHTGetPeersMessage.cc
  10922. * src/DHTPeerAnnounceEntry.cc
  10923. * src/DHTPeerAnnounceEntry.h
  10924. * src/DHTPeerAnnounceStorage.cc
  10925. * src/DHTPeerAnnounceStorage.h
  10926. * test/DHTAnnouncePeerMessageTest.cc
  10927. * test/DHTPeerAnnounceEntryTest.cc
  10928. * test/DHTPeerAnnounceStorageTest.cc
  10929. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10930. Changed method signature:
  10931. NameResolver::resolve
  10932. * src/DHTEntryPointNameResolveCommand.cc
  10933. * src/InitiateConnectionCommand.cc
  10934. * src/NameResolver.cc
  10935. * src/NameResolver.h
  10936. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10937. Changed method signature:
  10938. PieceStorage::getAdvertisedPieceIndexes
  10939. * src/DefaultBtInteractive.cc
  10940. * src/DefaultPieceStorage.cc
  10941. * src/DefaultPieceStorage.h
  10942. * src/PieceStorage.h
  10943. * src/UnknownLengthPieceStorage.h
  10944. * test/MockPieceStorage.h
  10945. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10946. Changed method signature:
  10947. SegmentMan::getInFlightSegment
  10948. * src/AbstractCommand.cc
  10949. * src/SegmentMan.cc
  10950. * src/SegmentMan.h
  10951. * test/SegmentManTest.cc
  10952. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10953. Changed method signature:
  10954. DHTAbstractNodeLookupTask::getNodesFromMessage
  10955. * src/DHTAbstractNodeLookupTask.cc
  10956. * src/DHTAbstractNodeLookupTask.h
  10957. * src/DHTNodeLookupTask.cc
  10958. * src/DHTNodeLookupTask.h
  10959. * src/DHTPeerLookupTask.cc
  10960. * src/DHTPeerLookupTask.h
  10961. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10962. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10963. * src/AbstractCommand.cc
  10964. * src/BtCheckIntegrityEntry.cc
  10965. * src/BtCheckIntegrityEntry.h
  10966. * src/BtFileAllocationEntry.cc
  10967. * src/BtFileAllocationEntry.h
  10968. * src/BtSetup.cc
  10969. * src/BtSetup.h
  10970. * src/CheckIntegrityCommand.cc
  10971. * src/CheckIntegrityEntry.h
  10972. * src/ChecksumCheckIntegrityEntry.cc
  10973. * src/ChecksumCheckIntegrityEntry.h
  10974. * src/DHTSetup.cc
  10975. * src/DHTSetup.h
  10976. * src/DownloadEngine.cc
  10977. * src/FileAllocationCommand.cc
  10978. * src/FileAllocationEntry.h
  10979. * src/RequestGroup.cc
  10980. * src/RequestGroup.h
  10981. * src/RequestGroupMan.cc
  10982. * src/RequestGroupMan.h
  10983. * src/StreamCheckIntegrityEntry.cc
  10984. * src/StreamCheckIntegrityEntry.h
  10985. * src/StreamFileAllocationEntry.cc
  10986. * src/StreamFileAllocationEntry.h
  10987. * src/TrackerWatcherCommand.cc
  10988. * src/a2functional.h
  10989. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10990. Changed method signature:
  10991. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10992. DHTBucket::getGoodNodes,
  10993. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10994. * src/BNode.cc
  10995. * src/BNode.h
  10996. * src/DHTAbstractNodeLookupTask.cc
  10997. * src/DHTAutoSaveCommand.cc
  10998. * src/DHTBucket.cc
  10999. * src/DHTBucket.h
  11000. * src/DHTBucketRefreshTask.cc
  11001. * src/DHTFindNodeMessage.cc
  11002. * src/DHTGetPeersMessage.cc
  11003. * src/DHTRoutingTable.cc
  11004. * src/DHTRoutingTable.h
  11005. * test/BNodeTest.cc
  11006. * test/DHTBucketTest.cc
  11007. * test/DHTRoutingTableTest.cc
  11008. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11009. In piece selection functions, Pass std::deque<...> by reference rather
  11010. than returning it.
  11011. * src/BitfieldMan.cc
  11012. * src/BitfieldMan.h
  11013. * src/DefaultBtRequestFactory.cc
  11014. * src/DefaultPieceStorage.cc
  11015. * src/Piece.cc
  11016. * src/Piece.h
  11017. * test/BitfieldManTest.cc
  11018. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11019. Implemented rarest piece first piece selection strategy.
  11020. * src/AbstractBtMessage.cc
  11021. * src/AbstractBtMessage.h
  11022. * src/BitfieldMan.cc
  11023. * src/BitfieldMan.h
  11024. * src/BtBitfieldMessage.cc
  11025. * src/BtHaveAllMessage.cc
  11026. * src/BtHaveMessage.cc
  11027. * src/DefaultPieceStorage.cc
  11028. * src/DefaultPieceStorage.h
  11029. * src/PeerInteractionCommand.cc
  11030. * src/PieceStorage.h
  11031. * src/UnknownLengthPieceStorage.h
  11032. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11033. Rewritten readData and writeData.
  11034. * src/MultiDiskAdaptor.cc
  11035. * src/MultiDiskAdaptor.h
  11036. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11037. Move \n out of the message "Usage: ...".
  11038. * src/version_usage.cc
  11039. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11040. Bump up version number to 0.13.2b.
  11041. * configure.ac
  11042. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11043. Added const qualifier to argument Exception& e.
  11044. * src/Logger.h
  11045. * src/SimpleLogger.cc
  11046. * src/SimpleLogger.h
  11047. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11048. Pool connection when CWD, SIZE command fails.
  11049. * src/FtpNegotiationCommand.cc
  11050. * src/FtpNegotiationCommand.h
  11051. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11052. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  11053. * src/HttpResponseCommand.cc
  11054. * src/HttpSkipResponseCommand.cc
  11055. * src/HttpSkipResponseCommand.h
  11056. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11057. Pool connection when a server returns 4xx, 5xx responses.
  11058. * src/HttpNullDownloadCommand.cc
  11059. * src/HttpNullDownloadCommand.h
  11060. * src/HttpResponse.cc
  11061. * src/HttpResponse.h
  11062. * src/HttpResponseCommand.cc
  11063. * src/HttpResponseCommand.h
  11064. * test/HttpResponseTest.cc
  11065. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11066. Print usage when no URL is specifed or bad command-line option is
  11067. specified.
  11068. * src/HelpItemFactory.cc
  11069. * src/help_tags.h
  11070. * src/option_processing.cc
  11071. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11072. Removed duplicate log message.
  11073. * src/AbstractCommand.cc (asyncResolveHostname)
  11074. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11075. Updated man page: --async-dns and --ftp-reuse-connection were added.
  11076. Changed -j option's default value from 5 to 1.
  11077. Added new examples using protocol auto detection feature.
  11078. Removed -T, -M usage where it can be omitted.
  11079. * doc/aria2c.1.txt
  11080. * doc/aria2c.1.html
  11081. * doc/aria2c.1.txt
  11082. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11083. Updated command-line usage text, so that it tells users that they
  11084. can specify any number of torrent files and metalink files in
  11085. command-line.
  11086. * src/version_usage.cc
  11087. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11088. Changed the default value of -j option to 1.
  11089. * src/HelpItemFactory.cc
  11090. * src/option_processing.cc
  11091. * src/usage_text.h
  11092. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11093. Added the ability to reuse connection in FTP and it is enabled by
  11094. default. It can be disabled by --ftp-reuse-connection=false option.
  11095. * src/Command.cc
  11096. * src/DownloadCommand.cc
  11097. * src/FtpDownloadCommand.cc
  11098. * src/FtpDownloadCommand.h
  11099. * src/FtpFinishDownloadCommand.cc
  11100. * src/FtpFinishDownloadCommand.h
  11101. * src/FtpInitiateConnectionCommand.cc
  11102. * src/FtpNegotiationCommand.cc
  11103. * src/FtpNegotiationCommand.h
  11104. * src/HelpItemFactory.cc
  11105. * src/Makefile.am
  11106. * src/Makefile.in
  11107. * src/OptionHandlerFactory.cc
  11108. * src/option_processing.cc
  11109. * src/prefs.h
  11110. * src/usage_text.h
  11111. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11112. Call Command::transitStatus() before calling Command::execute(),
  11113. so that the status change made in execute() is not cleared.
  11114. * src/DownloadEngine.cc
  11115. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11116. Removed forward declaration of SocketCore class.
  11117. * src/HttpDownloadCommand.h
  11118. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11119. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  11120. in InitiateConnectionCommandFactory. They should be set only when
  11121. the protocol is HTTP or HTTPS.
  11122. * src/InitiateConnectionCommandFactory.cc
  11123. * src/RequestGroup.cc
  11124. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11125. Fixed infinite loop in checksum checking.
  11126. * src/IteratableChecksumValidator.cc
  11127. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11128. Set _supportsPersistentConnection to true by default.
  11129. * src/Request.cc
  11130. * src/RequestGroup.cc
  11131. * test/HttpRequestTest.cc
  11132. * test/RequestTest.cc
  11133. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11134. Added timeout to socket pool. The default timeout is 15 seconds,
  11135. which is the same value Apache uses.
  11136. * src/DownloadEngine.cc
  11137. * src/DownloadEngine.h
  11138. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11139. Fixed misuse of multimap::find()
  11140. * src/HttpHeader.cc
  11141. * test/HttpHeaderTest.cc
  11142. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11143. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  11144. option.
  11145. The asynchronous DNS is not capable of IPv6 yet.
  11146. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  11147. least for HTTP download.
  11148. * src/AbstractCommand.cc
  11149. * src/AbstractCommand.h
  11150. * src/AsyncNameResolver.cc
  11151. * src/AsyncNameResolver.h
  11152. * src/DHTEntryPointNameResolveCommand.cc
  11153. * src/DHTEntryPointNameResolveCommand.h
  11154. * src/DownloadEngine.cc
  11155. * src/DownloadEngine.h
  11156. * src/FtpInitiateConnectionCommand.cc
  11157. * src/FtpInitiateConnectionCommand.h
  11158. * src/HelpItemFactory.cc
  11159. * src/HttpInitiateConnectionCommand.cc
  11160. * src/HttpInitiateConnectionCommand.h
  11161. * src/InitiateConnectionCommand.cc
  11162. * src/InitiateConnectionCommand.h
  11163. * src/Makefile.am
  11164. * src/Makefile.in
  11165. * src/NameResolver.cc
  11166. * src/NameResolver.h
  11167. * src/OptionHandlerFactory.cc
  11168. * src/SocketCore.cc
  11169. * src/SocketCore.h
  11170. * src/Util.cc
  11171. * src/Util.h
  11172. * src/option_processing.cc
  11173. * src/prefs.h
  11174. * src/usage_text.h
  11175. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11176. Updated man page: --quiet, --header were added.
  11177. --metalink-servers and --enable-http-keep-alive option were updated.
  11178. * doc/aria2c.1
  11179. * doc/aria2c.1.html
  11180. * doc/aria2c.1.txt
  11181. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11182. Enable HTTP keep-alive by default.
  11183. * src/HelpItemFactory.cc
  11184. * src/option_processing.cc
  11185. * src/usage_text.h
  11186. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11187. Disable http keep-alive if the remote server is not HTTP/1.1.
  11188. * src/HttpConnection.cc
  11189. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11190. Receive content body of 302 response so that the connection can be
  11191. reused later when http keep-alive is enabled.
  11192. * src/HttpNullDownloadCommand.cc
  11193. * src/HttpNullDownloadCommand.h
  11194. * src/HttpResponseCommand.cc
  11195. * src/HttpResponseCommand.h
  11196. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11197. const SharedHandle<Request> -> const SharedHandle<Request>&
  11198. * src/FtpDowndloadCommand.cc
  11199. * src/FtpDowndloadCommand.h
  11200. * src/HttpDownloadCommand.cc
  11201. * src/HttpDownloadCommand.h
  11202. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11203. Fixed the bug that the control file(.aria2 file) is not renamed
  11204. according to tryAutoFileRenaming().
  11205. tryAutoFileRenaming() was rewritten so that if both renamed file and
  11206. its control file exist, use them and continue download.
  11207. The old implementation didn't take into account of control file's
  11208. existence, so basically you couldn't continue download of renamed file.
  11209. * src/BtProgressInfoFile.h
  11210. * src/DefaultBtProgressInfoFile.cc
  11211. * src/DefaultBtProgressInfoFile.h
  11212. * src/NullProgressInfoFile.h
  11213. * src/RequestGroup.cc
  11214. * test/DefaultBtProgressInfoFileTest.cc
  11215. * test/MockBtProgressInfoFile.h
  11216. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11217. Change the default value of --metalink-servers option from `5' to `1'.
  11218. * src/HelpItemFactory.cc
  11219. * src/option_processing.cc
  11220. * src/usage_text.h
  11221. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11222. Reimplemented transparent metalink using Accept request header.
  11223. * src/HttpRequest.cc
  11224. * src/HttpRequest.h
  11225. * src/HttpRequestCommand.cc
  11226. * src/Metalink2RequestGroup.cc
  11227. * src/RequestGroup.cc
  11228. * src/RequestGroup.h
  11229. * test/HttpRequestTest.cc
  11230. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11231. Bump up version number to 0.13.2a
  11232. * configure.ac
  11233. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11234. Updated configure.ac using the result of autoscan.
  11235. * configure.ac
  11236. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11237. Fixed compilation error without gcrypt/openssl.
  11238. * src/DownloadCommand.cc
  11239. * src/DownloadCommand.h
  11240. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11241. Reorganized version information so that it can be displayed in a
  11242. standard terminal screen without scrolling.
  11243. Removed http, ftp from Configuration section, because they are always
  11244. enabled.
  11245. * src/FeatureConfig.cc
  11246. * src/FeatureConfig.h
  11247. * src/main.cc
  11248. * src/messageDigest.cc
  11249. * src/messageDigest.h
  11250. * src/version_usage.cc
  11251. * test/FeatureConfigTest.cc
  11252. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11253. Masked user ID in log.
  11254. * src/FtpConnection.cc (sendUser)
  11255. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11256. Removed query part from filename in HTTP download. The query part means
  11257. the substring after "?" in URL. Firefox seems do the same thing.
  11258. A query part is sometimes very long and not suitable to filename,
  11259. so I think it is better to remove it from filename.
  11260. * src/HttpRequest.cc
  11261. * src/HttpRequest.h
  11262. * src/Request.cc
  11263. * src/Request.h
  11264. * test/HttpRequestTest.cc
  11265. * test/RequestTest.cc
  11266. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11267. Rewritten Exception class. Throw exception object, not its pointer and
  11268. catch by reference, so that remove problematic delete operator for
  11269. catched exception.
  11270. * src/Exception.cc
  11271. * src/Exception.h
  11272. * test/ExceptionTest.cc
  11273. * src/*: All files throwing/catching exception.
  11274. * test/*: All files throwing/catching exception.
  11275. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11276. Now auto protocol detection is enabled without -Z option.
  11277. But there is a important difference between with/without -Z optoin.
  11278. For example, if you type:
  11279. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  11280. then, aria2 interprets there are 3 request groups:
  11281. (1) http://host/file, http://mirror/file <-- multi-source download
  11282. (2) file1.torrent
  11283. (3) file2.metalink
  11284. On the other hand, if you invoke above command with -Z option, it is
  11285. interpreted as 4 request groups:
  11286. (1) http://host/file
  11287. (2) file1.torrent
  11288. (3) file2.metalink
  11289. (4) http://mirror/file
  11290. I think usually user don't mix multi-source URLs and torrent files, so
  11291. there is no big problem here.
  11292. * src/main.cc
  11293. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11294. Fixed the bug that causes segmentaion fault when reading XML containing
  11295. unescapsed character like '&'.
  11296. Also a modification was made which avoids adding unnecessary
  11297. characters stack and appending unused string.
  11298. * src/ExpatMetalinkProcessor.cc
  11299. * src/FileMetalinkParserState.h
  11300. * src/FilesMetalinkParserState.h
  11301. * src/FinMetalinkParserState.h
  11302. * src/HashMetalinkParserState.h
  11303. * src/InitialMetalinkParserState.h
  11304. * src/LanguageMetalinkParserState.h
  11305. * src/MetalinkMetalinkParserState.h
  11306. * src/MetalinkParserState.h
  11307. * src/MetalinkParserStateMachine.cc
  11308. * src/MetalinkParserStateMachine.h
  11309. * src/OSMetalinkParserState.h
  11310. * src/PieceHashMetalinkParserState.h
  11311. * src/PiecesMetalinkParserState.h
  11312. * src/ResourcesMetalinkParserState.h
  11313. * src/SizeMetalinkParserState.h
  11314. * src/SkipTagMetalinkParserState.h
  11315. * src/URLMetalinkParserState.h
  11316. * src/VerificationMetalinkParserState.h
  11317. * src/VersionMetalinkParserState.h
  11318. * src/XML2SAXMetalinkProcessor.cc
  11319. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11320. Added StringFormat class, which internally calls vasprintf.
  11321. operator<< is defined for this class, so it can be used with iostream
  11322. classes nicely. SimpleLogger and following functions are rewritten
  11323. using StringFormat class.
  11324. Besides, now Logger class's methods are non-const, many classes
  11325. that has a const Logger* as a member variable are modified to remove
  11326. const qualifier from the variable declaration.
  11327. * src/HelpItemFactory.cc
  11328. * src/Request.cc
  11329. * src/SimpleLogger.cc
  11330. * src/StringFormat.cc
  11331. * src/StringFormat.h
  11332. * src/Util.cc
  11333. * src/option_processing.cc
  11334. * src/version_usage.cc
  11335. * test/StringFormatTest.cc
  11336. * src/*.h: The classes that has const Logger* as a member variable.
  11337. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11338. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  11339. failed. Also fixed memory link when exception is thrown there.
  11340. * src/main.cc (AccRequestGroup)
  11341. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11342. Added build-in "Accept-Features" support. For now only "metalink" is
  11343. used in this header field.
  11344. This "metalink" value is removed from the list when connecting URLs
  11345. fed by metalink file to avoid loop in "transparent" metlaink.
  11346. * src/HttpRequest.cc
  11347. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  11348. header is also held in this variable. Also renamed setUserHeaders as
  11349. addHeader and it was rewritten to add header not just to clear the old
  11350. value.
  11351. * src/HttpRequestCommand.cc
  11352. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  11353. from "Accept-Features" list.
  11354. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  11355. default.
  11356. * src/RequestGroup.h
  11357. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  11358. * src/a2functional.h: Included <string> because Concat class depends on
  11359. it.
  11360. * test/HttpRequestTest.cc
  11361. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11362. Added comment
  11363. * src/RequestGroup.cc (createNextCommand)
  11364. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11365. Capitalized METHOD_GET and METHOD_HEAD
  11366. * src/Request.cc
  11367. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11368. Added getDownloadResults() method
  11369. * src/RequestGroupMan.cc
  11370. * src/RequestGroupMan.h
  11371. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11372. Fixed the bug that aria2 exits when commands is empty() but
  11373. _routineCommands are not.
  11374. * src/DownloadEngine.cc
  11375. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11376. Use the default value pulled from Option object in HelpItemFactory.
  11377. except options whose defualt value is embedded in a usage text.
  11378. * src/HelpItemFactory.cc
  11379. * src/HelpItemFactory.h
  11380. * src/option_processing.cc
  11381. * src/version_usage.cc
  11382. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11383. Added --quiet option to make aria2 quiet (no console output).
  11384. --quiet option is tagged with ADVANCED.
  11385. * src/HelpItemFactory.cc
  11386. * src/LogFactory.cc
  11387. * src/LogFactory.h
  11388. * src/MultiUrlRequestInfo.cc
  11389. * src/MultiUrlRequestInfo.h
  11390. * src/NullStatCalc.h: New class. This class prints nothing.
  11391. * src/OptionHandlerFactory.cc
  11392. * src/main.cc
  11393. * src/option_processing.cc
  11394. * src/prefs.h
  11395. * src/usage_text.h
  11396. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11397. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  11398. * src/HelpItemFactory.cc (createHelpItems):
  11399. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11400. Fixed compilation error in ExpatMetalinkProcessor.cc
  11401. * src/ExpatMetalinkProcessor.cc
  11402. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11403. Reuse socket if the origin server supports HTTP keep-alive and
  11404. --enable-http-keep-alive or --enable-http-pipelining is given.
  11405. The current implementation doesn't reuse the connections established
  11406. against proxy server.
  11407. * src/AbstractCommand.cc
  11408. * src/DownloadEngine.cc
  11409. * src/DownloadEngine.h
  11410. * src/HttpDownloadCommand.cc
  11411. * src/HttpInitiateConnectionCommand.cc
  11412. * src/HttpResponseCommand.cc
  11413. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11414. Rewritten HTTP keep-alive and pipelining routine.
  11415. * src/AbstractCommand.cc
  11416. * src/HttpConnection.cc
  11417. * src/HttpDownloadCommand.cc
  11418. * src/HttpRequest.cc
  11419. * src/HttpRequestCommand.cc
  11420. * src/HttpResponseCommand.cc
  11421. * src/Request.cc
  11422. * src/Request.h
  11423. * src/RequestGroup.cc
  11424. * test/HttpRequestTest.cc
  11425. * test/HttpResponseTest.cc
  11426. * test/RequestTest.cc
  11427. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11428. Added missing setUserHeaders call
  11429. * src/HttpRequestCommand.cc
  11430. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11431. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  11432. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  11433. waste of time because it is more likey false.
  11434. * src/FileAllocationDispatcherCommand.cc (execute)
  11435. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11436. Now HTTP status and version are a member variable of HttpHeader.
  11437. HTTP status is processed as a string, not integer.
  11438. * src/AbstractProxyResponseCommand.cc
  11439. * src/HttpConnection.cc
  11440. * src/HttpHeader.cc
  11441. * src/HttpHeader.h
  11442. * src/HttpHeaderProcessor.cc
  11443. * src/HttpHeaderProcessor.h
  11444. * src/HttpResponse.cc
  11445. * src/HttpResponse.h
  11446. * test/HttpHeaderProcessorTest.cc
  11447. * test/HttpResponseTest.cc
  11448. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11449. Added --header option. You can specify any number of additional HTTP headers
  11450. like:
  11451. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  11452. Unlike other commad-line option, you can use --header option multiple times.
  11453. * src/HelpItemFactory.cc
  11454. * src/HttpRequest.{cc, h}
  11455. * src/HttpRequestCommand.cc
  11456. * src/OptionHandlerFactory.cc
  11457. * src/OptionHandlerImpl.h
  11458. * src/option_processing.cc
  11459. * src/prefs.h
  11460. * src/usage_text.h
  11461. * test/HttpRequestTest.cc (testUserHeaders)
  11462. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11463. Eliminates the time lag between sequential downloads and commands in
  11464. the same RequestGroup.
  11465. In old implementation, aria2 occasionally waits 1 seconds before
  11466. executing next command or RequestGroup.
  11467. This is really a waste of time, and new implementation eliminates
  11468. this unnecessary time lag.
  11469. * src/AbstractCommand.cc
  11470. * src/AutoSaveCommand.cc
  11471. * src/CheckIntegrityCommand.cc
  11472. * src/Command.{cc, h}
  11473. * src/DownloadEngine.{cc, h}
  11474. * src/DownloadEngineFactory.cc
  11475. * src/FileAllocationCommand.cc
  11476. * src/FileAllocationDispatcherCommand.cc
  11477. * src/FillRequestGroupCommand.cc
  11478. * src/FtpInitiateConnectionCommand.cc
  11479. * src/HaveEraseCommand.cc
  11480. * src/HttpInitiateConnectionCommand.cc
  11481. * src/HttpResponseCommand.cc
  11482. * src/RealtimeCommand.cc
  11483. * src/RequestGroup.cc
  11484. * src/RequestGroupMan.cc
  11485. * src/StreamFileAllocationEntry.cc
  11486. * src/TimeBasedCommand.{cc, h}
  11487. * src/TimedHaltCommand.cc
  11488. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11489. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  11490. keyword explicit and SharedHandle's default constructor initializes
  11491. its internal obj to null, old implementation initializes it using
  11492. obj's default constructor.
  11493. To assign null, write SharedHandle<T> x(...); x.reset();
  11494. TODO: test/SharedHandleTest.cc needs more tests.
  11495. * src/SharedHandle.h
  11496. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11497. Fixed type in man page.
  11498. * doc/aria2c.1.txt
  11499. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11500. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  11501. * src/SimpleLogger.{cc, h}
  11502. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11503. Implemented auto protocol detection.
  11504. Now you can do:
  11505. aria2c -Z http://host/file file1.torrent file2.metalink
  11506. (Note: -Z option is required for auto protcol detection.)
  11507. Then aria2c downloads 3 files simultaneously:
  11508. 1. http://host/file
  11509. 2. file1.torrent <-- read local torrent file
  11510. 3. file2.metalink <-- read local Metalink file.
  11511. Same thing goes with -i option. Assume your uris.txt contans:
  11512. http://host/file
  11513. file1.torrent
  11514. file2.metalink
  11515. Then you can do: aria2c -i uris.txt
  11516. (Note: -Z option is not needed if -i option is given.)
  11517. * src/main.cc
  11518. * src/ProtocolDetector.{cc, h}
  11519. * test/ProtocolDetectorTest.cc
  11520. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11521. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  11522. installed
  11523. * src/ARC4Encryptor.h
  11524. * src/ARC4Decryptor.h
  11525. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11526. Renamed argument from 'errno' to 'err', since errno is confused with
  11527. errno defined in errno.h.
  11528. * src/LibgcryptARC4Decryptor.h
  11529. * src/LibgcryptARC4Context.h
  11530. * src/LibgcryptDHKeyExchange.h
  11531. * src/LibgcryptARC4Encryptor.h
  11532. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11533. Rewritten choking algorithm.
  11534. * src/PeerChokeCommand.{cc, h}
  11535. * src/BtInterestedMessage.cc
  11536. * src/PeerSessionResource.{cc, h}
  11537. * src/DefaultPeerStorage.{cc, h}
  11538. * src/BtNotInterestedMessage.cc
  11539. * src/DefaultBtMessageDispatcher.{cc, h}
  11540. * src/BtMessageDispatcher.h
  11541. * src/Peer.{cc, h}
  11542. * src/BtLeecherStateChoke.{cc, h}
  11543. * src/BtSetup.cc
  11544. * src/BtSeederStateChoke.{cc, h}
  11545. * src/PeerStorage.h
  11546. * test/MockPeerStorage.h
  11547. * test/MockBtMessageDispatcher.h
  11548. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11549. Fixed compilation error on x84-64 platform.
  11550. * src/AuthConfig.cc: Included ostream.
  11551. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11552. Rewritten getBasename() and getDirname(), without standard library
  11553. basename(), dirname().
  11554. * src/File.cc
  11555. * test/FileTest.cc
  11556. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11557. Added Simplified Chinese translation. Also updated the following
  11558. translations: Polish, Dutch, German. Great thanks to all translators.
  11559. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11560. Suppress content-range error when 'Content-Range' response header
  11561. doesn't contains bytes-unit specifier 'bytes'
  11562. * src/HttpHeader.cc (getRange)
  11563. * test/HttpHeaderTest.cc
  11564. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11565. Fixed compilation error with g++-4.3
  11566. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11567. Added missing include files for MinGW
  11568. * test/HttpHeaderProcessorTest.cc
  11569. * test/DHTRoutingTableSerializerTest.cc
  11570. * test/DHTRoutingTableDeserializerTest.cc
  11571. * test/UriListParserTest.cc
  11572. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11573. Now download line is printed nicely with no garbage at the end of
  11574. line. I use ioctl to get the columns of terminal.
  11575. If stdout is redirected to another device, instead of carriage return,
  11576. end of line '\n' character is used. This is feature request#1909659
  11577. * src/ConsoleStatCalc.cc (calculateStat)
  11578. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11579. Included a2time.h
  11580. * src/DHTMessageDispatcher.h
  11581. * src/DHTMessageEntry.h
  11582. * src/DHTReplaceNodeTask.h
  11583. * src/DHTMessageTracker.h
  11584. * src/Util.h
  11585. * src/CookieBox.h
  11586. * src/SocketCore.h
  11587. * src/DefaultBtMessageDispatcher.h
  11588. * src/SocketCore.cc
  11589. * src/Util.cc
  11590. * src/DHTPingTask.h
  11591. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11592. Fixed high memory footprint when DHT is enabled.
  11593. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  11594. queued than it is processed and the queue is getting longer. As a
  11595. consequence, momory usage is increased.
  11596. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  11597. replacement cache in DHTBucket which is described in Kademlia paper.
  11598. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  11599. DHTReplaceNodeTask.
  11600. * src/DHTBucket.{h, cc}
  11601. (cacheNode): New function.
  11602. (getCachedNodes): New function.
  11603. (dropNode): Push back cached node to _nodes.
  11604. * test/DHTBucketTest.cc
  11605. (testCacheNode): New test
  11606. (testDropNode): New test
  11607. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11608. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  11609. the unused 4KB memory when ssl is not used.
  11610. * src/SocketCore.cc
  11611. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11612. Added summary log for peer announce storage.
  11613. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  11614. Removed cast
  11615. * src/DefaultPeerStorage.cc (addPeer)
  11616. Log exception message
  11617. * src/DHTMessageTracker.cc (handleTimeout)
  11618. Fixed casting
  11619. * test/HttpRequestTest.cc
  11620. * test/MetalinkProcessorTest.cc
  11621. * test/PieceTest.cc
  11622. * test/MetalinkEntryTest.cc
  11623. * test/SequenceTest.cc
  11624. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11625. * src/ParameterizedStringParser.cc (createLoop):
  11626. Removed unused variable sstep.
  11627. * src/AlphaNumberDecorator.h (decode): Rewritten.
  11628. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11629. * src/Util.{h, cc}
  11630. (parseUInt): New function.
  11631. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  11632. The actual range is uint32_t.
  11633. * test/UtilTest.cc
  11634. * src/ParameterizedStringParser.cc:
  11635. Use Util::parseUInt() for loop variables.
  11636. * test/ParameterizedStringParserTest.cc
  11637. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  11638. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11639. Rewritten the functions for binding port.
  11640. * src/DHTConnectionImpl.{h, cc}
  11641. * src/PeerListenCommand.{h, cc}
  11642. * src/DHTSetup.cc
  11643. * src/BtSetup.cc
  11644. * test/DHTConnectionImplTest.cc
  11645. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11646. type cleanup for allmost all remaining files.
  11647. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11648. Type clarification
  11649. * src/PeerSessionResource.{h, cc}
  11650. * src/DefaultPieceStorage.{h, cc}
  11651. * src/Peer.{h, cc}
  11652. * test/PeerSessionResourceTest.cc
  11653. Use div function
  11654. * src/BtPieceMessage.cc (erasePieceOnDisk)
  11655. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11656. Type clarification
  11657. * src/DefaultPeerStorage.{h, cc}
  11658. * test/DefaultPeerStorageTest.cc
  11659. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11660. Type clarification: size_t for length or size, uint64_t for file
  11661. length, off_t for file offset.
  11662. * src/DefaultBtProgressInfoFile.cc
  11663. * src/DefaultBtContext.{h, cc}
  11664. * src/DefaultBtInteractive.cc
  11665. * src/DownloadCommand.{h, cc}
  11666. * src/IteratableChunkChecksumValidator.{h, cc}
  11667. * src/SegmentMan.{h, cc}
  11668. * src/SingleFileDownloadContext.{h, cc}
  11669. * src/IteratableChecksumValidator.{h, cc}
  11670. * src/BtContext.h
  11671. * src/IteratableValidator.h
  11672. * src/DownloadContext.h
  11673. * test/SingleFileDownloadContextTest.cc
  11674. * test/DefaultBtContextTest.cc
  11675. * test/MockBtContext.h
  11676. * test/Metalink2RequestGroupTest.cc
  11677. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11678. Type clarification: size_t for length or size, uint64_t for file
  11679. length, off_t for file offset.
  11680. * src/PiecedSegment.cc
  11681. * src/GrowSegment.h
  11682. * src/DefaultBtRequestFactory.h
  11683. * src/DefaultBtProgressInfoFile.cc
  11684. * src/UnknownLengthPieceStorage.h
  11685. * src/DefaultPieceStorage.cc
  11686. * src/UnknownLengthPieceStorage.cc
  11687. * src/DefaultBtInteractive.cc
  11688. * src/GrowSegment.cc
  11689. * src/BitfieldMan.h
  11690. * src/DownloadCommand.cc
  11691. * src/BtRequestFactory.h
  11692. * src/PiecedSegment.h
  11693. * src/DefaultPieceStorage.h
  11694. * src/Piece.cc
  11695. * src/DefaultBtRequestFactory.cc
  11696. * src/PieceStorage.h
  11697. * src/Segment.h
  11698. * src/Piece.h
  11699. * src/BitfieldMan.cc
  11700. * src/Util.cc
  11701. * test/DefaultBtProgressInfoFileTest.cc
  11702. * test/DefaultPieceStorageTest.cc
  11703. * test/MockPieceStorage.h
  11704. * test/BtRequestMessageTest.cc
  11705. * test/DefaultBtMessageDispatcherTest.cc
  11706. * test/BitfieldManTest.cc
  11707. * test/GrowSegmentTest.cc
  11708. * test/PieceTest.cc
  11709. * test/SegmentTest.cc
  11710. * test/SegmentManTest.cc
  11711. * test/DefaultBtRequestFactoryTest.cc
  11712. * test/MockBtRequestFactory.h
  11713. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11714. Fixed compilation error with --disable-nls
  11715. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  11716. in gettext.h causes the problem.
  11717. * src/common.h
  11718. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11719. Removed subPiece related functions.
  11720. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  11721. * src/DefaultPieceStorage.{h, cc}
  11722. * test/PieceTest.cc
  11723. * test/DefaultPieceStorageTest.cc
  11724. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11725. Use unsigned char for data store.
  11726. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11727. Bump up version number to 0.13.0+1
  11728. * configure.ac
  11729. * Release 0.13.0+1
  11730. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11731. Changed inactive connection timeout to 120.
  11732. To accept more mulually interested peers, disconnect peer when there
  11733. is no interest between us after certain time passed.
  11734. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  11735. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11736. Fixed the bug that aria2 only uses first dns server in resolv.conf
  11737. when compiled with async DNS support.
  11738. * src/DownloadEngine.cc
  11739. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  11740. value '10' will be a little bit short when some DNS servers are
  11741. offline and several DNS servers are tried. It should be configured
  11742. by command-line option.
  11743. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11744. Merged Ross's mingw patch.
  11745. * src/DHTRoutingTableDeserializer.cc
  11746. * src/DHTRoutingTableSerializer.cc
  11747. * src/Platform.{h, cc}
  11748. * src/timegm.h
  11749. * src/gettimeofday.h
  11750. * src/getaddrinfo.h
  11751. * src/SocketCore.h
  11752. * src/common.h
  11753. * src/inet_aton.h
  11754. * src/DownloadEngine.h
  11755. * src/gai_strerror.h
  11756. * src/a2netcompat.h
  11757. * configure.ac
  11758. * configure
  11759. * aclocal.m4
  11760. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11761. Included missing iostream.
  11762. * test/AllTest.cc
  11763. * test/BtDependencyTest.cc
  11764. * test/BtExtendedMessageTest.cc
  11765. * test/DHTConnectionImplTest.cc
  11766. * test/DHTMessageFactoryImplTest.cc
  11767. * test/DHTMessageTrackerEntryTest.cc
  11768. * test/DHTNodeTest.cc
  11769. * test/DHTRoutingTableSerializerTest.cc
  11770. * test/DefaultBtAnnounceTest.cc
  11771. * test/DefaultBtContextTest.cc
  11772. * test/DefaultBtMessageFactoryTest.cc
  11773. * test/DefaultExtensionMessageFactoryTest.cc
  11774. * test/HandshakeExtensionMessageTest.cc
  11775. * test/HttpResponseTest.cc
  11776. * test/MetalinkProcessorTest.cc
  11777. * test/MultiFileAllocationIteratorTest.cc
  11778. * test/SocketCoreTest.cc
  11779. * test/UTPexExtensionMessageTest.cc
  11780. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11781. Reorganized includes.
  11782. * src/NameResolver.cc
  11783. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11784. Fixed compilation error without ares/c-ares
  11785. * src/NameResolver.h:
  11786. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11787. Added a test for large file.
  11788. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11789. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11790. Fixed the bug that file size is ignored if size > INT32_MAX
  11791. * src/SizeMetalinkParserState.cc (endElement):
  11792. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11793. Bump up version number to 0.13.0
  11794. * configure.ac
  11795. * Release 0.13.0
  11796. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11797. Updated Makfefile.am to make 'make dist' work.
  11798. Now packaged filename is aria2c-VERSION.tar.bz2.
  11799. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11800. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11801. Large file support is now configured by configure script.
  11802. * configure.ac
  11803. Removed unsused source files
  11804. * src/
  11805. * test/
  11806. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11807. Peer.h and BtContext.h respectively.
  11808. * src/Peer.h
  11809. * src/BtContext.h
  11810. Updated translations.
  11811. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11812. translations. Great thanks to all translators!;)
  11813. * po/*.{po, gmo}
  11814. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11815. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11816. statically declared sha1 MessageDigestContext.
  11817. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11818. initialization of short-lived MessageDigestContext.
  11819. * src/MessageDigestHelper.{h, cc}
  11820. * src/main.cc
  11821. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11822. the initialization of MessageDigestContext every time in validating
  11823. chunk checksum.
  11824. * src/DownloadCommand.{h, cc}
  11825. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11826. Add a file descriptor which connected to fast peer(latency<1500) to
  11827. select(). This change reduced CPU load.
  11828. * src/PeerInteractionCommand.cc
  11829. * src/DefaultBtInteractive.{h, cc}
  11830. * src/BtInteractive.h
  11831. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11832. Fixed the previous insufficient fix for possible busy loop.
  11833. * src/MSEHandshake.cc (identifyHandshakeType)
  11834. Removed unused functions.
  11835. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11836. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11837. Fixed possible busy loop if first 20 bytes are not received for a few
  11838. minutes.
  11839. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11840. * src/ReceiverMSEHandshakeCommand.cc
  11841. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11842. Fixed compilation error
  11843. * src/ExpatMetalinkProcessor.cc
  11844. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11845. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11846. * src/DHTBucket.cc
  11847. Removed unnecessary cast.
  11848. * src/HandshakeExtensionMessage.cc
  11849. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11850. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11851. is missing.
  11852. * src/OptionHandlerFactory.cc
  11853. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11854. Fixed the bug that HAVE message is not sent for a piece they are
  11855. downloaded fom http/ftp server before any BitTorrent handshake is done
  11856. with peers.
  11857. * src/DefaultBtInteractive.cc
  11858. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11859. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11860. * src/Makefile.am
  11861. * src/Makefile.in
  11862. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11863. Updated README. Added html version of README and man page.
  11864. * README
  11865. * README.html
  11866. * readme2html: Shell script to generate README.html from README using
  11867. asciidoc.
  11868. * doc/aria2c.1.html
  11869. * doc/makeman: Added the line to generate aria2c.1.html
  11870. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11871. Fixed offset calculation.
  11872. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11873. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11874. Rewritten itos and uitos using template. llitos and ullitos are
  11875. replaced with itos and uitos respectively.
  11876. * src/Util.{h, cc}
  11877. * test/UtilTest.cc
  11878. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11879. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11880. of the number of bytes required for storing public key and shared
  11881. secret.
  11882. * src/LibgcryptDHKeyExchange.h
  11883. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11884. * src/MSEHandshake.cc
  11885. * test/DHKeyExchangeTest.cc
  11886. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11887. Removed since they are not used.
  11888. * src/Xml2MetalinkProcessor.{h, cc}
  11889. * src/Socket.cc
  11890. * src/SegmentSplitter.{h, cc}
  11891. * test/Xml2MetalinkProcessorTest.cc
  11892. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11893. Fixed the bug that prevents aria2 from stopping other than by pressing
  11894. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11895. option. aria2 doesn't stop even after --seed-time is satisfied and
  11896. continues to output blank lines in the console.
  11897. * src/ReceiverMSEHandshakeCommand.cc
  11898. * src/PeerReceiveHandshakeCommand.cc
  11899. * src/PeerListenCommand.cc
  11900. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11901. Bump up version number to 0.13.0rc
  11902. * configure.ac
  11903. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11904. Updated man page and some usage text.
  11905. * doc/aria2c.1.txt
  11906. * src/usage_text.h
  11907. * po/*.{po, gmo}
  11908. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11909. Updated translations. Added Finnish and Hebrew translations.
  11910. Great thanks to all translators!
  11911. * po/*.{po, gmo}
  11912. * po/LINGUAS
  11913. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11914. Log more detailed information about each message.
  11915. * src/DHTQueryMessage.{h, cc}
  11916. * src/DHTGetPeersMessage.{h, cc}
  11917. * src/DHTFindNodeReplyMessage.{h, cc}
  11918. * src/DHTGetPeersReplyMessage.{h, cc}
  11919. * src/DHTAnnouncePeerMessage.{h, cc}
  11920. * src/DHTResponseMessage.{h, cc}
  11921. * src/DHTFindNodeMessage.{h, cc}
  11922. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11923. Use constants defined in prefs.h
  11924. * src/option_processing.cc
  11925. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11926. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11927. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11928. Make room for future enchancements for IPv6 addresses.
  11929. Bump up version number of dht.dat file format to 2.
  11930. Not compatible with previous version.
  11931. * src/DHTRoutingTableSerializer.cc
  11932. * src/DHTRoutingTableDeserializer.cc
  11933. * test/DHTRoutingTableSerializerTest.cc
  11934. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11935. Added handling for the return values from
  11936. PeerMessageUtil::createcompact().
  11937. * src/DefaultBtContext.cc (computeFastSet):
  11938. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11939. Fixed abort when peer's ip address is IPv4-mapped address.
  11940. * src/DefaultBtContext.cc (computeFastSet)
  11941. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11942. cannot handle IPv4-mapped addresses.
  11943. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11944. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11945. Proper return value handling for OpenSSL functions.
  11946. * src/LibsslDHKeyExchange.h
  11947. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11948. Random bytes generation using libgcrypt and OpenSSL.
  11949. * src/DHTUtil.{h, cc}
  11950. * test/DHTUtilTest.cc
  11951. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11952. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11953. received.
  11954. * src/DHTMessageReceiver.cc (receiveMessage)
  11955. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11956. Fixed the bug that a return code is always 0. BUG#1897704
  11957. If error occurred during the download or there exist unfinished
  11958. downloads, aria2 returns with code 1.
  11959. * src/RequestGroupMan.{h, cc}
  11960. * src/MultiUrlRequestInfo.{h, cc}
  11961. * src/main.cc
  11962. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11963. IPv6 support for SocketCore class.
  11964. TODO: In SocketCore::establishConnection(), this is insufficient to
  11965. determin the failure of connect() here because the socket is
  11966. non-blocking state. The next addresses should be tried after select().
  11967. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11968. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11969. instead which address family independent.
  11970. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11971. information in a compact peer format which is for IPv4 only.
  11972. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11973. this is a spec of BitTorrent protocol.
  11974. * src/SocketCore.{h, cc}
  11975. * src/PeerMessageUtil.cc
  11976. * test/SocketCoreTest.cc
  11977. * test/PeerMessageUtilTest.cc
  11978. * test/DHTConnectionImplTest.cc
  11979. Handle IPv4-mapped addresses.
  11980. * src/DHTNode.cc: Now identity is determined by node id.
  11981. * src/DHTMessageTrackerEntry.cc
  11982. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11983. should handle it.
  11984. * src/DHTRoutingTableDeserializer.cc
  11985. * src/DHTMessageFactoryImpl.cc
  11986. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11987. Change the unit of --stop option from a minute to a second.
  11988. * src/usage_text.h
  11989. * src/DownloadEngineFactory.cc
  11990. * src/OptionHandlerFactory.cc
  11991. * src/message.h
  11992. * src/TimedHaltCommand.cc
  11993. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11994. Make listening socket non-block mode.
  11995. * src/FtpConnection.cc
  11996. * src/FtpNegotiationCommand.{h, cc}
  11997. * src/PeerListenCommand.cc
  11998. Fixed the bug that cause slow ftp negotiation.
  11999. * src/FtpNegotiationCommand.{h, cc}
  12000. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12001. Added basic tag to --enable-dht, --dht-listen-port option.
  12002. * src/HelpItemFactory.cc (createHelpItems)
  12003. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12004. Updated text.
  12005. * src/usage_text.h
  12006. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12007. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  12008. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12009. Determin _threadtholdSpeed in each constructor for
  12010. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  12011. * src/ActivePeerConnectionCommand.{h, cc}
  12012. * src/PeerReceiveHandshakeCommand.{h, cc}
  12013. * src/BtSetup.cc
  12014. * src/BtConstants.h
  12015. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12016. Added --bt-min-crypto-level and --bt-require-crypto options.
  12017. * src/OptionHandlerFactory.cc
  12018. * src/MSEHandshake.cc
  12019. * src/HelpItemFactory.cc
  12020. * src/option_processing.cc
  12021. * src/ReceiverMSEHandshakeCommand.cc
  12022. * src/prefs.h
  12023. * src/DefaultBtAnnounce.cc
  12024. * src/InitiatorMSEHandshakeCommand.cc
  12025. * src/usage_text.h
  12026. * test/MSEHandshakeTest.cc
  12027. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12028. Bump version number to 0.13.0b
  12029. * configure.ac
  12030. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12031. Updated doc.
  12032. * src/MessageDigestHelper.h:
  12033. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12034. Use raw message digest as a token instead of its hexadecimal
  12035. representation.
  12036. * src/DHTTokenTracker.cc (generateToken)
  12037. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12038. Added Message Stream Encryption(MSE) support.
  12039. Currently, aria2 accepts incoming connections with Obfuscation Header
  12040. and legacy BitTorrent Header and establishes connections with
  12041. Obfuscation Header first and if failed then retry with legacy
  12042. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  12043. choose ARC4. The new option to change the default behavior is planned.
  12044. For tracker extension, "supportcrypto=1" is added statically.
  12045. * src/PeerInitiateConnectionCommand.{h, cc}
  12046. * src/PeerConnection.{h, cc}
  12047. * src/HandleRegistry.h
  12048. * src/SocketCore.h
  12049. * src/PeerReceiveHandshakeCommand.{h, cc}
  12050. * src/BtRegistry.{h, cc}
  12051. * src/PeerListenCommand.cc
  12052. * src/InitiatorMSEHandshakeCommand.{h, cc}
  12053. * src/ReceiverMSEHandshakeCommand.{h, cc}
  12054. * src/MSEHandshake.{h, cc}
  12055. * src/ARC4Encryptor.h
  12056. * src/ARC4Decryptor.h
  12057. * src/LibgcryptARC4Encryptor.h
  12058. * src/LibgcryptARC4Decryptor.h
  12059. * src/LibgcryptARC4Context.h
  12060. * src/LibsslARC4Encryptor.h
  12061. * src/LibsslARC4Decryptor.h
  12062. * src/LibsslARC4Context.h
  12063. * src/DHKeyExchange.h
  12064. * src/LibgcryptDHKeyExchange.h
  12065. * src/LibsslDHKeyExchange.h
  12066. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  12067. * test/DefaultBtAnnounceTest.cc
  12068. * test/ARC4Test.cc
  12069. * test/DHKeyExchangeTest.cc
  12070. Removed prepareForRetry() because it is not used.
  12071. * src/PeerAbstractCommand.{h, cc}
  12072. * src/PeerInteractionCommand.{h, cc}
  12073. * src/PeerInitiateConnectionCommand.{h, cc}
  12074. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12075. Added the ability to load nodes from torrent file. These nodes are
  12076. added to the routing table when downloading that torrent.
  12077. * src/BtContext.h
  12078. * src/DefaultBtContext.{h, cc}
  12079. * src/DHTSetup.cc
  12080. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  12081. hostname and port pair, and resolves all of them.
  12082. * src/NameResolver.{h, cc}: Added reset().
  12083. * src/RequestGroup.cc
  12084. * test/DefaultBtContextTest.cc
  12085. * test/MockBtContext.h
  12086. Removed assert() from DefaultBtContext and throw exception instead.
  12087. * src/DefaultBtContext.cc
  12088. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12089. Fixed segmentation fault bug when exiting if dht is disabled.
  12090. * src/RequestGroup.cc
  12091. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12092. Fixed typo in log message and define the message in message.h
  12093. * src/TimedHaltCommand.cc
  12094. * src/message.h
  12095. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12096. Included RecoverableException.h to fix compilation error.
  12097. * test/DHTMessageFactoryImplTest.cc
  12098. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12099. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  12100. * test/DHTPingMessageTest.cc
  12101. * test/DHTGetPeersMessageTest.cc
  12102. * test/DHTFindNodeMessageTest.cc
  12103. * test/DHTAnnouncePeerMessageTest.cc
  12104. * test/MockDHTMessage.h
  12105. * test/MockDHTMessageFactory.h
  12106. * test/MockDHTMessageDispatcher.h: New class.
  12107. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12108. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  12109. virtual.
  12110. * src/DHTMessageDispatcher.h
  12111. * src/DHTMessageDispatcherImpl.{h, cc}
  12112. * src/DHTSetup.cc
  12113. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12114. Adding handling of DHT error message. Just log error message and
  12115. throw exception.
  12116. * src/DHTMessageFactoryImpl.cc
  12117. * test/DHTMessageFactoryImplTest.cc
  12118. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12119. Added handling of dynamic cast failure.
  12120. * src/DHTNodeLookupTask.cc
  12121. * src/DHTPeerLookupTask.cc
  12122. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12123. Added the ability to stop aria2 itself when given time has passed
  12124. from start. Use --stop option to specify time in minutes.
  12125. When 0 is given, this feature is disabled.
  12126. * src/OptionHandlerFactory.cc
  12127. * src/TimeBasedCommand.h: Make _interval protected scope.
  12128. * src/HelpItemFactory.cc
  12129. * src/option_processing.cc
  12130. * src/prefs.h
  12131. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  12132. before calling RequestGroupMan::fillRequestGroupFromReserver().
  12133. Without this modification, the result list shows "ERR" when aria2 is
  12134. stopped by --stop option. It should be "INPR".
  12135. * src/DownloadEngine.{h, cc}
  12136. * src/DownloadEngineFactory.cc
  12137. * src/usage_text.h
  12138. * src/TimedHaltCommand.{h, cc}: New class.
  12139. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12140. Bootstrap through node added by port message.
  12141. Currently bootstrap is executed if the number of buckets in routing
  12142. table is 1.
  12143. * src/BtPortMessage.{h, cc}
  12144. * src/DefaultBtMessageFactory.{h, cc}
  12145. * src/PeerInteractionCommand.cc
  12146. * test/BtPortMessageTest.cc
  12147. * test/MockDHTTask.h
  12148. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12149. Extract the Peer class's member variables, which are only needed after
  12150. PeerInteractionCommand, into PeerSessionResource class.
  12151. This class is instantiated in PeerInteractionCommand class's ctor and
  12152. released in its dtor.
  12153. This will make Peer class lightweight and uses less memory for peers
  12154. which are not connected and wait in the queue.
  12155. * src/PeerChokeCommand.cc
  12156. * src/PeerSessionResource.{h, cc}
  12157. * src/PeerInteractionCommand.cc
  12158. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  12159. * src/DefaultBtInteractive.cc
  12160. * src/BtPieceMessage.cc
  12161. * src/BtInterestedMessage.cc
  12162. * src/BtUnchokeMessage.cc
  12163. * src/DefaultPeerStorage.{h, cc}
  12164. * src/PeerInitiateConnectionCommand.cc
  12165. * src/ActivePeerConnectionCommand.cc
  12166. * src/BtNotInterestedMessage.cc
  12167. * src/DefaultBtMessageDispatcher.cc
  12168. * src/BtChokeMessage.cc
  12169. * src/BtRequestMessage.cc
  12170. * src/Peer.{h, cc}
  12171. * src/BtRegistry.h
  12172. * src/TrackerWatcherCommand.cc
  12173. * src/PeerReceiveHandshakeCommand.cc
  12174. * test/BtExtendedMessageTest.cc
  12175. * test/BtAllowedFastMessageTest.cc
  12176. * test/BtCancelMessageTest.cc
  12177. * test/DefaultPieceStorageTest.cc
  12178. * test/BtBitfieldMessageTest.cc
  12179. * test/BtHaveMessageTest.cc
  12180. * test/BtNotInterestedMessageTest.cc
  12181. * test/BtRequestMessageTest.cc
  12182. * test/PeerSessionResourceTest.cc
  12183. * test/DefaultBtMessageDispatcherTest.cc
  12184. * test/PeerTest.cc
  12185. * test/BtInterestedMessageTest.cc
  12186. * test/BtRejectMessageTest.cc
  12187. * test/BtChokeMessageTest.cc
  12188. * test/DefaultPeerStorageTest.cc
  12189. * test/BtHaveNoneMessageTest.cc
  12190. * test/BtHaveAllMessageTest.cc
  12191. * test/DefaultExtensionMessageFactoryTest.cc
  12192. * test/BtUnchokeMessageTest.cc
  12193. * test/DefaultBtMessageFactoryTest.cc
  12194. * test/HandshakeExtensionMessageTest.cc
  12195. * test/UTPexExtensionMessageTest.cc
  12196. * test/DefaultBtRequestFactoryTest.cc
  12197. * test/BtPieceMessageTest.cc
  12198. Removed typedef PeerStats.
  12199. * src/PeerStat.h
  12200. * src/SegmentMan.cc
  12201. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12202. Added std namespace to copy, remove_copy, back_inserter,
  12203. front_inserter.
  12204. * src/RequestGroupMan.cc
  12205. * src/DefaultPieceStorage.cc
  12206. * src/StreamFileAllocationEntry.cc
  12207. * src/BtFileAllocationEntry.cc
  12208. * src/RequestGroup.cc
  12209. * src/MetalinkEntry.cc
  12210. * src/DelegatingPeerListProcessor.cc
  12211. * src/DefaultBtRequestFactory.cc
  12212. * src/DefaultBtMessageDispatcher.cc
  12213. * src/version_usage.cc: Included <algorithm>
  12214. * src/main.cc
  12215. * src/MetalinkParserController.cc
  12216. * src/DefaultBtContext.cc
  12217. * src/DownloadEngineFactory.cc
  12218. * src/a2algo.h
  12219. Removed.
  12220. * test/StreamUriListParserTest.cc
  12221. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12222. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  12223. ActivePeerConnectionCommand when it is given and
  12224. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  12225. * src/ActivePeerConnectionCommand.{h, cc}
  12226. * src/BtSetup.cc
  12227. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12228. Only add socket to DownloadEngine's select routine when peer or
  12229. localhost is unchoked and interested. This lowers CPU usage a
  12230. little bit.
  12231. * src/PeerInteractionCommand.cc
  12232. * src/PeerAbstractCommand.{h, cc}
  12233. * src/BtInteractive.h
  12234. * src/DefaultBtInteractive.{h, cc}
  12235. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12236. Revert previous change because get_peers message is needed for
  12237. announce_peer anyway.
  12238. * src/DHTGetPeersCommand.cc
  12239. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12240. Request peers thought DHT only when download hasn't finished.
  12241. * src/DHTGetPeersCommand.cc
  12242. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12243. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  12244. * src/DHTBucketRefreshTask.{h, cc}
  12245. * src/DHTSetup.cc
  12246. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12247. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  12248. standard classes.
  12249. Included string.h where mem* function are used.
  12250. Added namespace aria2.
  12251. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12252. Create directory before saving DHT routing table.
  12253. Now ios::failure is now handled properly.
  12254. * src/DHTAutoSaveCommand.cc
  12255. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12256. Removed unnecessary cerr.
  12257. * src/DownloadEngine.cc
  12258. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12259. Catch exception inside DHTMessageReceiver::receiveMessage().
  12260. Log unknown message.
  12261. * src/DHTMessageReceiver.{h, cc}
  12262. * src/DHTMessageFactory.h
  12263. * src/DHTMessageFactoryImpl.{h, cc}
  12264. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  12265. * src/DHTInteractionCommand.cc
  12266. * src/DHTUnknownMessage.{h, cc}
  12267. * test/DHTUnknownMessageTest.cc
  12268. * test/MockDHTMessageFactory.h
  12269. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12270. Commented out ip address comparison because a host can have multiple
  12271. ip addresses and it is hard to predict the hostname is resolved into
  12272. which one.
  12273. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  12274. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12275. * po/Makefile.in: Removed since this is generated by configure.
  12276. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12277. Fixed compiler warning about redefinition of SIZE_MAX.
  12278. Use common.h instead of config.h directly here.
  12279. * src/Platform.{h, cc}
  12280. The check of ENABLE_NLS is made in gettext.h, so it is not required
  12281. here.
  12282. * common.h
  12283. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  12284. Updated gettext related files.
  12285. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  12286. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  12287. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12288. Added DHT functionality, compatible with mainline.
  12289. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  12290. You may need to specify entry point to DHT network using
  12291. --dht-entry-point. DHT uses UDP port to listen incoming message.
  12292. Use --dht-listen-port to specify port number. Make sure that your
  12293. firewall configuration can pass through UDP traffic to the port.
  12294. The routing table is saved in $HOME/.aria2/dht.dat.
  12295. * src/DHT*
  12296. * src/BNode.{h, cc}
  12297. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  12298. particular torrent.
  12299. * src/Data.cc: Rewritten ctor.
  12300. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  12301. --dht-entry-point.
  12302. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  12303. * src/RequestGroup.cc: Initialize DHT functionality. When download
  12304. ends, remove BtContext from DHTPeerAnnounceStorage.
  12305. * src/BtPortMessage.{h, cc}: Rewritten.
  12306. * src/message.h
  12307. * src/OptionHandlerImpl.cc
  12308. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  12309. --dht-entry-point.
  12310. * src/Dictionary.{h, cc} (remove): New function.
  12311. * src/prefs.h
  12312. * src/DefaultBtMessageFactory.h
  12313. * src/BtHandshakeMessage.cc
  12314. * src/ActivePeerConnectionCommand.cc
  12315. * src/SocketCore.{h, cc}: Added datagram socket support.
  12316. * src/DefaultBtMessageFactory.cc
  12317. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  12318. Create DHT commands.
  12319. * src/BtMessageFactory.h
  12320. * src/PeerMessageUtil.{h, cc}
  12321. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12322. Fixed the bug that log file is not written when configuration file doesn't exist.
  12323. This is caused by using Logger class before LogFactory is not configured.
  12324. BUG #1875079
  12325. * src/option_processing.cc
  12326. Warning message "configuration doesn't exist" is only printed when --conf is
  12327. given.
  12328. * src/option_processing.cc
  12329. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12330. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  12331. ShaVisitor is now deprecated and slated to be removed.
  12332. * src/DefaultBtContext.cc
  12333. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12334. Externalize message to message.h
  12335. * src/Platform.cc
  12336. * src/message.h
  12337. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12338. Set default domain and default path to cookie.
  12339. * src/HttpResponse.cc
  12340. * src/CookieBox.{h, cc}
  12341. * src/CookieParser.{h, cc}
  12342. * test/CookieParserTest.cc
  12343. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12344. Added --no-conf and --conf-path command-line option.
  12345. --no-conf option disables loading aria2.conf file.
  12346. --conf-path option changes the configuration file path. The default
  12347. file path is $HOME/.aria2/aria2.conf
  12348. Added a warning message when the configuration file is not found.
  12349. * src/HelpItemFactory.cc
  12350. * src/option_processing.cc
  12351. * src/prefs.h
  12352. * src/usage_text.h
  12353. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12354. Added the message to inform users that other help categories are
  12355. available in -h option.
  12356. * src/version_usage.cc
  12357. * src/TagContainer.{h, cc}
  12358. * test/TagContainerTest.cc
  12359. * src/TaggedItem.{h, cc}
  12360. * test/TaggedItemTest.cc
  12361. * src/HelpItem.h
  12362. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12363. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  12364. from PiecedSegment's ctor.
  12365. Previously Piece::getAllMissingBlockIndexes() is called from
  12366. PiecedSegment() but it is rather expensive since only first element is
  12367. used.
  12368. * src/PiecedSegment.cc
  12369. * src/Piece.{h, cc}
  12370. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12371. Rewritten get*Missing*Index functions. Now no need to allocate memory
  12372. each time these functions are called.
  12373. * src/BitfieldMan.{h, cc}
  12374. * test/BitfieldManTest.cc
  12375. * src/array_fun.h
  12376. * test/array_funTest.cc
  12377. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  12378. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  12379. filtered. Removed unnecessary cast to int32_t.
  12380. * src/BitfieldMan.{h, cc}
  12381. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12382. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  12383. payload length(4bytes) are received. This happens because lenbufLength
  12384. is not updated in this particular case and successive call of
  12385. receiveMessage() overwrites payload length with bytes recieved which
  12386. are payload body.
  12387. * src/PeerConnection.{h, cc}
  12388. * src/message.h
  12389. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12390. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  12391. peer if there are peers that have same ipaddr and port.
  12392. I've experiened segmentation fault and "pure virtual function was
  12393. called" error.
  12394. * src/Peer.h
  12395. * test/PeerTest.cc
  12396. * src/DefaultPeerStorage.cc
  12397. * test/DefaultPeerStorageTest.cc
  12398. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12399. Removed a call to isPowerOf() because it is no longer necessary here
  12400. and a request block is not always power of 2.
  12401. BUG#1866924
  12402. * src/PeerMessageUtil.cc (checkLength)
  12403. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12404. Fixed the bug that always first found Segment is removed from
  12405. usedSegmentEntries. Removed unused functions.
  12406. * src/SegmentMan.{h, cc}
  12407. * test/SegmentManTest.cc
  12408. Fixed the bug that ServerHost is not removed.
  12409. * src/RequestGroup.cc
  12410. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12411. Fixed the bug that SegmentMan::completeSegment() is not called
  12412. even if Segment is complete when --lowest-speed-limit is enabled.
  12413. BUG#1864525
  12414. * src/DownloadCommand.{h, cc}
  12415. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12416. Fixed: hash algorithm 'sha1' is always used.
  12417. * src/DownloadCommand.cc (validatePieceHash)
  12418. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12419. Added --enable-peer-exchange command-line option.
  12420. * src/OptionHandlerFactory.cc
  12421. * src/HelpItemFactory.cc
  12422. * src/option_processing.cc
  12423. * src/usage_text.h
  12424. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12425. Move extension from BtRuntime to ExtensionMessageFactory, because
  12426. extension can be specified per peer, not per torrent.
  12427. * src/DefaultBtInteractive.cc
  12428. * src/BtRuntime.h
  12429. * src/ExtendedMessagingAware.h
  12430. * src/ExtensionMessageFactory.h
  12431. * src/DefaultExtensionMessageFactory.cc
  12432. * test/DefaultExtensionMessageFactoryTest.cc
  12433. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12434. Added categorized option help. Specify category using --help option.
  12435. Also added the ability to search options in forward match.
  12436. * src/HelpItem.{h, cc}
  12437. * test/HelpItemTest.cc
  12438. * src/HelpItemFactory.{h, cc}
  12439. * src/TagContainer.{h, cc}
  12440. * test/TagContainerTest.cc
  12441. * src/option_processing.cc
  12442. * src/prefs.h
  12443. * src/TaggedItem.{h, cc}
  12444. * test/TaggedItemTest.cc
  12445. * src/version_usage.cc
  12446. * src/help_tags.h
  12447. * src/usage_text.h
  12448. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12449. Fixed segmentation fault when bad torrent metainfo is parsed.
  12450. Added dynamic_cast properly to detect the misconfiguration of metainfo
  12451. and then throw exception or skip it.
  12452. * src/DefaultBtContext.{h, cc}
  12453. * test/DefaultBtContextTest.cc
  12454. * src/AnnounceList.cc
  12455. * src/CompactPeerListProcessor.cc
  12456. * src/message.h
  12457. * src/DefaultBtAnnounce.{h, cc}
  12458. * test/DefaultBtAnnounceTest.cc
  12459. * src/BencodeVisitor.cc
  12460. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12461. Added missing "B"(=Byte). So now the message looks like this:
  12462. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  12463. * src/message.h (MSG_SHARE_RATIO_REPORT)
  12464. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12465. Show the seed ratio after torrent downloads.
  12466. For example, after torrent download completed and --seed-time and
  12467. --seed-ratio conditions are fulfilled, following message is printed
  12468. right after "Download complete: .....":
  12469. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  12470. * src/RequestGroupMan.cc
  12471. * src/RequestGroup.{h, cc}
  12472. * src/message.h
  12473. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12474. Remove a defunct control file. A defunct control file means that while
  12475. it exists, but the corresponding download file is missing.
  12476. After its removal, a download restarts from the beginning.
  12477. * src/RequestGroup.cc
  12478. * src/message.h
  12479. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12480. Allocate bitfield in Peer when it is really used. More specifically,
  12481. bitfield in Peer is allocated after the connection is established and
  12482. deallocated when the connection is dropped.
  12483. Since 2 parameters(piece length and total length) was removed from the
  12484. constructor of Peer class, many test classes were modified accordingly.
  12485. See svn log for more detailed information.
  12486. * src/PeerInteractionCommand.cc
  12487. * src/CompactPeerListProcessor.cc
  12488. * src/Peer.cc
  12489. * src/DefaultPeerListProcessor.cc
  12490. * src/PeerListenCommand.cc
  12491. * src/PeerReceiveHandshakeCommand.cc
  12492. Fixed memory leak
  12493. * src/Piece.cc
  12494. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12495. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  12496. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  12497. command-line options.
  12498. * src/option_processing.cc
  12499. * src/ActivePeerConnectionCommand.cc
  12500. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12501. Send have message to peer if it already has the piece.
  12502. * src/BtHaveMessage.{h, cc}
  12503. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12504. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  12505. port.
  12506. * src/DefaultPeerStorage.{h, cc}
  12507. * test/DefaultPeerStorageTest.cc
  12508. * src/HandshakeExtensionMessage.cc
  12509. * test/HandshakeExtensionMessageTest.cc
  12510. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  12511. * src/PeerStorage.h
  12512. * test/MockPeerStorage.h
  12513. * src/PeerListenCommand.cc
  12514. * src/PeerReceiveHandshakeCommand.cc
  12515. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12516. Added --metalink-enable-unique-protocol option.
  12517. * src/Metalink2RequestGroup.cc
  12518. * src/option_processing.cc
  12519. * src/prefs.h
  12520. * src/version_usage.cc
  12521. * doc/aria2c.1.txt
  12522. * doc/aria2c.1
  12523. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12524. Allow a peer in incomingPeer to be added peers.
  12525. * src/DefaultPeerStorage.cc
  12526. * test/DefaultPeerStorageTest.cc
  12527. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12528. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  12529. I could reproduce this bug in following procedure:
  12530. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  12531. 2. Restart aria2.
  12532. 3. You see the download stopped around 99%.
  12533. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12534. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  12535. If timeout is reached, then _nextCommand is unused and it may contains
  12536. segments and they won't be canceled. Actually, timeout is not needed
  12537. here because if the server dropped connection, then retry is made.
  12538. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12539. Added uTorrent compatible Peer Exchange.
  12540. * src/BencodeVisitor.{h, cc}
  12541. * test/BencodeVisitorTest.cc
  12542. * src/BtConstants.h
  12543. * src/BtContext.h: Added 'private' flag.
  12544. * src/BtExtendedMessage.{h, cc}
  12545. * test/BtExtendedMessageTest.cc
  12546. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  12547. reserved field.
  12548. * test/BtHandshakeMessageTest.cc
  12549. * src/BtMessageFactory.h
  12550. * src/BtRegistry.h
  12551. * src/BtRuntime.h: This class holds default extension message IDs for
  12552. aria2. By default, aria2 uses ID 8 for ut_pex.
  12553. * src/DefaultBtContext.cc
  12554. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  12555. When it is true, aria2 enables ut_pex. This value is set by
  12556. PeerInteractionCommand.
  12557. * src/DefaultBtMessageFactory.{h, cc}
  12558. * test/DefaultBtMessageFactoryTest.cc
  12559. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  12560. handling to DefaultBtInteractive class.
  12561. * src/DefaultExtensionMessageFactory.{h, cc}
  12562. * test/DefaultExtensionMessageFactoryTest.cc
  12563. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  12564. the container(peers and incomingPeers. The equality is determined by
  12565. Peer::id).
  12566. * test/DefaultPeerStorageTest.cc
  12567. * src/ExtensionMessage.h
  12568. * test/MockExtensionMessage.h
  12569. * src/ExtensionMessageFactory.h
  12570. * test/MockExtensionMessageFactory.h
  12571. * src/HandshakeExtensionMessage.{h, cc}
  12572. * test/HandshakeExtensionMessageTest.cc
  12573. * src/MetaEntry.h
  12574. * src/Peer.{h, cc}
  12575. * src/PeerInteractionCommand.cc
  12576. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  12577. addIncomingPeer.
  12578. * src/PeerMessageUtil.{h, cc}
  12579. * src/PeerObject.h
  12580. * src/UTPexExtensionMessage.{h, cc}
  12581. * test/UTPexExtensionMessageTest.cc
  12582. * src/message.h
  12583. * src/prefs.h
  12584. Fixed the bug that returns incomplete data when it contains null
  12585. character. A convenient constructor was also added.
  12586. * src/Data.{h, cc}
  12587. Rewritten.
  12588. * src/CompactPeerListProcessor.cc
  12589. Fixed typos.
  12590. * src/message.h
  12591. * src/MetaFileUtil.cc
  12592. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12593. Added "Status Legend" label to the explanation text of 'stat' in
  12594. download result and moved it to the last. BUG#1848214
  12595. * src/RequestGroupMan.cc
  12596. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12597. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  12598. * src/Makefie.am
  12599. * test/Makefile.am
  12600. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12601. Fixed the bug that prevents aria2 from loading cookie file when expire
  12602. value is greater than 2^31-1. BUG#1851066
  12603. * src/CookieBoxFactory.cc
  12604. * test/CookieBoxFactoryTest.cc
  12605. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12606. Fixed possible memory leak when an exception is thrown.
  12607. * src/XML2SAXMetalinkProcessor.cc
  12608. Added Expat support. If both libxml2 and Expat are installed, then
  12609. libxml2 is used by default.
  12610. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  12611. ExpatMetalinkProcessor according to the configuration.
  12612. * src/ExpatMetalinkProcessor.{h, cc}
  12613. * src/main.cc: Removed libxml2 specific header and init/free function.
  12614. * src/MetalinkProcessorFactory.{h, cc}
  12615. * src/MetalinkHelper.cc
  12616. * src/Metalinker.h: Removed unnecessary libxml2 header.
  12617. * src/MetalinkProcessor.h
  12618. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  12619. MetalinkProcessorTest is used instead.
  12620. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  12621. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  12622. MetalinkProcessorFactory::newInstance().
  12623. * m4/libexpat.m4
  12624. * configure.ac: Added configuration options for libexpat.
  12625. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12626. Disabled -s option in metalink download.
  12627. * src/Metalink2RequestGroup.cc
  12628. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12629. If several protocols are available for a mirror in metalink file,
  12630. aria2 now use one of them. --metalink-preferred-protocol option was
  12631. added to specify the preference of protocol.
  12632. * src/AbstractCommand.cc
  12633. * src/OptionHandlerFactory.cc
  12634. * src/ServerHost.{h, cc}
  12635. * src/Metalink2RequestGroup.cc
  12636. * src/RequestGroup.{h, cc}
  12637. * test/RequestGroupTest.cc
  12638. * src/option_processing.cc
  12639. * src/prefs.h
  12640. * src/HttpResponseCommand.cc
  12641. * src/MetalinkResource.{h, cc}
  12642. * src/FtpNegotiationCommand.cc
  12643. * src/MetalinkEntry.{h, cc}
  12644. * src/MetalinkEntryTest.cc
  12645. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12646. Code cleanup and added debug log.
  12647. * src/PeerConnection.cc
  12648. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12649. Compiler error fix: applied the patch by Tiziano Mueller
  12650. * src/RequestGroup.cc
  12651. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12652. Fixed the bug: only first announce URL is tried in AnnounceTier,
  12653. in stopped and completed event.
  12654. * src/AnnounceList.{h, cc}
  12655. * test/AnnounceListTest.cc
  12656. * src/DefaultBtAnnounce.cc
  12657. * test/DefaultBtAnnounceTest.cc
  12658. Sorted URLs.
  12659. * test/Metalink2RequestGroupTest.cc
  12660. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12661. Removed unnecessary string copy. Updated doc and corrected indentation.
  12662. * src/Base64.cc
  12663. Fixed compilation warnings
  12664. * test/DataTest.cc
  12665. * test/HttpRequestTest.cc
  12666. * test/MetaFileUtilTest.cc
  12667. * test/RequestTest.cc
  12668. * Release 0.12.0
  12669. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12670. Updated translations
  12671. * po/{de,fr,ja,nl,ru}.po
  12672. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  12673. translations. Many thanks to translators.
  12674. * po/{ca,es,it,pt_BR,sv}.po
  12675. * po/LINGUAS
  12676. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12677. Added a notice about URL
  12678. * src/version_usage.cc
  12679. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  12680. Fixed the bug#1845750; CTRL+C does not stop torrent.
  12681. aria2 repeatedly sends stopped request when tracker returns error code.
  12682. * src/AnnounceList.cc
  12683. * test/AnnounceListTest.cc
  12684. * src/AnnounceTier.h
  12685. Added a message when ctrl-c is hit.
  12686. Now second ctrl-c is also handled in signal handler.
  12687. * src/RequestGroupMan.{h, cc}
  12688. * src/RequestGroup.{h, cc}
  12689. * src/MultiUrlRequestInfo.cc
  12690. * src/DownloadEngine.cc
  12691. * src/TrackerWatcherCommand.cc
  12692. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12693. Code cleanup
  12694. * src/Base64.cc (encode)
  12695. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12696. Changed Direct/IO enable/disable procesure in file allocation routine.
  12697. * src/SingleFileAllocationIterator.cc
  12698. (SingleFileAllocationIterator):
  12699. Disable directIO if offset is not multiple of 512.
  12700. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  12701. * src/MultiFileAllocationIterator.cc (allocateChunk):
  12702. Enable created SingleFileAllocationIterator's directIO.
  12703. * src/FileAllocationEntry.cc
  12704. (FileAllocationEntry): Enable directIO here.
  12705. (~FileAllocationEntry): Disable directIO here.
  12706. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12707. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  12708. * src/Peer.{h, cc}
  12709. * src/DefaultPieceStorage.cc
  12710. * test/DefaultPieceStorageTest.cc
  12711. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12712. Rewritten direct I/O support routine
  12713. * src/SingleFileAllocationIterator.cc
  12714. * src/MultiDiskAdaptor.{h, cc}
  12715. * src/ByteArrayDiskWriter.h
  12716. * src/AbstractSingleDiskAdaptor.h
  12717. * src/AbstractDiskWriter.cc
  12718. * src/DefaultPieceStorage.cc
  12719. * src/DiskWriter.h
  12720. * src/BinaryStream.h
  12721. * src/IteratableChunkChecksumValidator.cc
  12722. * src/IteratableChecksumValidator.cc
  12723. * src/CheckIntegrityEntry.cc
  12724. * src/FileAllocationEntry.cc
  12725. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12726. Fixed typo
  12727. * src/version_usage.cc
  12728. Updated doc
  12729. * doc/aria2c.1.txt
  12730. * doc/aria2c.1
  12731. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12732. Fixed compile error without message digest support.
  12733. * src/FileMetalinkParserState.cc
  12734. * src/MetalinkParserController.{h, cc}
  12735. * test/XML2SAXMetalinkProcessorTest.cc
  12736. * test/MetalinkParserControllerTest.cc
  12737. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12738. Enable direct I/O support in checksum checking.
  12739. * src/IteratableChunkChecksumValidator.{h, cc}
  12740. * test/IteratableChunkChecksumValidatorTest.cc
  12741. * src/CheckIntegrityEntry.cc
  12742. * src/PieceHashCheckIntegrityEntry.cc
  12743. * src/IteratableChecksumValidator.{h, cc}
  12744. * src/BtCheckIntegrityEntry.cc: Added doc.
  12745. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12746. Added --allow-piece-length-change option.
  12747. * src/DefaultBtProgressInfoFile.cc
  12748. * test/DefaultBtProgressInfoFileTest.cc
  12749. * src/OptionHandlerFactory.cc
  12750. * src/option_processing.cc
  12751. * src/prefs.h
  12752. * src/version_usage.cc
  12753. * doc/aria2c.1.txt
  12754. * doc/aria2c.1
  12755. Fixed: duplicated result entry appears when exception is thrown in
  12756. RequestGroup::createInitiateConnectionCommand().
  12757. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12758. Add RequestGroup to _requestGroup after RequetGroup::
  12759. createInitiateConnectionCommand() succeeds.
  12760. Externalized message
  12761. * src/XML2SAXMetalinkProcessor.cc
  12762. * src/message.h
  12763. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12764. Forced download abort when received negative response from http/ftp
  12765. server.
  12766. * src/HttpResponseCommand.cc
  12767. * src/FtpNegotiationCommand.cc
  12768. * src/HttpResponse.cc
  12769. * src/FtpConnection.cc
  12770. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12771. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12772. the predecessor, Xml2MetalinkParser class.
  12773. I tested them against 94KB metalink file with 1234 chunk checksums.
  12774. The new one parsed it in 22msec, while it took 6000msec with old one.
  12775. * src/XML2SAXMetalinkProcessor.{h, cc}
  12776. * test/XML2SAXMetalinkProcessorTest.cc
  12777. * src/MetalinkParserController.{h, cc}
  12778. * test/MetalinkParserControllerTest.cc
  12779. * src/MetalinkParserState.h: Also added 16 subclasses.
  12780. * src/main.cc
  12781. * src/Metalink2RequestGroup.cc
  12782. * src/MetalinkHelper.cc
  12783. * src/MetalinkEntry.cc
  12784. * src/ChunkChecksum.h
  12785. Rewritten Base64 class for better performance.
  12786. * src/Base64.{h, cc}
  12787. * test/Base64Test.cc
  12788. * src/HttpRequest.cc
  12789. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12790. Fixed the bug#1841757: aria2 will connect to server to only get
  12791. file size.
  12792. * src/StreamFileAllocationEntry.cc
  12793. * src/option_processing.cc
  12794. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12795. downloads.
  12796. * src/FtpNegotiationCommand.cc
  12797. Suppressed wrong message when finding PreDownloadHandler
  12798. * src/RequestGroup.cc
  12799. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12800. Updated usage
  12801. * src/version_usage.cc
  12802. Updated man page
  12803. * doc/aria2c.1.txt
  12804. * doc/aria2c.1
  12805. Updated po files
  12806. * po/aria2c.pot
  12807. * po/*.po
  12808. * po/*.gmo
  12809. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12810. Eliminated g++-4.2 warning
  12811. * src/DownloadHandlerConstants.{h, cc}
  12812. * src/Util.cc
  12813. * test/MetaFileUtilTest.cc
  12814. * test/PStringBuildVisitorTest.cc
  12815. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12816. * src/RequestGroup.cc
  12817. * src/BtCheckIntegrityEntry.cc
  12818. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12819. Fixed a2io.h
  12820. * src/a2io.h
  12821. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12822. Added direct I/O support. The current implementation uses O_DIRECT,
  12823. which is not posix standard and is tested on linux 2.6.21.
  12824. Currently only file allocation uses direct I/O.
  12825. * src/SingleFileAllocationIterator.{h, cc}
  12826. * test/SingleFileAllocationIteratorTest.cc
  12827. * src/MultiFileAllocationIterator.{h, cc}
  12828. * test/MultiFileAllocationIteratorTest.cc
  12829. * src/BinaryStream.h
  12830. * src/DiskWriter.h
  12831. * src/AbstractDiskWriter.{h, cc}
  12832. * src/ByteArrayDiskWriter.h
  12833. * src/DiskAdaptor.h
  12834. * src/AbstractSingleDiskAdaptor.{h, cc}
  12835. * src/MultiDiskAdaptor.{h, cc}
  12836. * src/FileAllocationEntry.cc
  12837. * src/Util.{h, cc}
  12838. * src/OptionHandlerFactory.cc
  12839. * src/prefs.h
  12840. * src/version_usage.cc
  12841. * src/option_processing.cc
  12842. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12843. handleException.
  12844. * src/MultiFileAllocationIterator.cc
  12845. Added EINTR handling
  12846. * src/SocketCore.cc
  12847. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12848. Updated usage
  12849. * src/version_usage.cc
  12850. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12851. Applied Ross's patch for MinGW port.
  12852. * src/DownloadEngine.h
  12853. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12854. Set Content-Type to SingleFileDownloadContext when http response is
  12855. received.
  12856. * src/HttpResponseCommand.cc
  12857. * src/HttpResponse.{h, cc}
  12858. * test/HttpResponseTest.cc
  12859. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12860. Rewritten to add content-type support.
  12861. * src/DownloadHandler.{h, cc}
  12862. * src/BtPostDownloadHandler.{h, cc}
  12863. * test/BtPostDownloadHandlerTest.cc
  12864. * src/MetalinkPostDownloadHandler.{h, cc}
  12865. * test/MetalinkPostDownloadHandlerTest.cc
  12866. * src/PostDownloadHandler.{h, cc}
  12867. * src/DownloadHandlerConstants.{h, cc}
  12868. * src/RequestGroup.cc
  12869. * src/HttpResponseCommand.cc
  12870. * src/FtpNegotiationCommand.cc
  12871. * src/SingleFileDownloadContext.{h, cc}
  12872. * src/RequestGroup.h
  12873. * src/RequestGroupCriteria.h
  12874. * src/ContentTypeRequestGroupCriteria.h
  12875. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12876. If it is give, metalink/torrent file is not written to the disk, but
  12877. just is kept in memory. Parsing is occurred on memory.
  12878. * src/MetalinkHelper.{h, cc}
  12879. * src/MetalinkProcessor.h
  12880. * src/Xml2MetalinkProcessor.{h, cc}
  12881. * test/Xml2MetalinkProcessorTest.cc
  12882. * src/DownloadHandlerFactory.{h, cc}
  12883. * test/DownloadHandlerFactoryTest.cc
  12884. * src/PreDownloadHandler.{h, cc}
  12885. * src/OptionHandlerFactory.cc
  12886. * src/DefaultBtContext.{h, cc}
  12887. * test/DefaultBtContextTest.cc
  12888. * src/version_usage.cc
  12889. * src/Metalink2RequestGroup.{h, cc}
  12890. * src/RequestGroup.{h, cc}
  12891. * src/a2functional.h
  12892. * test/a2functionalTest.cc
  12893. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12894. * src/OptionHandlerImpl.h
  12895. * src/prefs.h
  12896. * src/Util.{h, cc}
  12897. * test/UtilTest.cc
  12898. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12899. memory usage.
  12900. * src/RequestGroupMan.{h, cc}
  12901. * src/DownloadEngine.cc
  12902. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12903. WeakHandle to SharedHandle because WeakHandle could be null.
  12904. * src/RequestGroup.{h, cc}
  12905. * src/DownloadEngineFactory.cc
  12906. * src/DownloadResult.h
  12907. Set totalLength after download finished
  12908. * src/UnknownLengthPieceStorage.{h, cc}
  12909. Keep torrent file specified in metalink in memory.
  12910. * src/Metalink2RequestGroup.cc
  12911. * src/BtDependency.cc
  12912. * src/TrueRequestGroupCriteria.h
  12913. Fixed the bug: seekg is used where seekp should be used.
  12914. * src/ByteArrayDiskWriter.cc
  12915. * test/ByteArraydiskWriterTest.cc
  12916. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12917. Fixed syntax error
  12918. * test/SequenceTest.cc
  12919. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12920. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12921. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12922. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12923. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12924. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12925. Added the check to see whether ares_host_callback accepts timeouts
  12926. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12927. * src/NameResolver.{h, cc}
  12928. * m4/libcares.m4
  12929. * configure.ac: Set C++ for language choice.
  12930. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12931. Fixed: compilation fails without c-ares/ares
  12932. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12933. Generate http/ftp commands only when download is incomplete.
  12934. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12935. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12936. Corrected typo. Examples are removed since they are available in man
  12937. page.
  12938. * src/version_usage.cc
  12939. Updated man page.
  12940. * doc/aria2c.1
  12941. * doc/aria2c.1.txt
  12942. * doc/makeman: Commented out sed command.
  12943. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12944. Throw DlAbortEx when a remote file is not found.
  12945. * src/HttpResponse.cc
  12946. * src/FtpNegotiationCommand.cc
  12947. * src/message.h
  12948. Overwrite an existing file if --allow-overwrite=true is given.
  12949. * src/RequestGroup.cc
  12950. Removed unused functions
  12951. * src/AbstractCommand.h
  12952. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12953. Removed 'extern' from 'extern typedef ...' in src/*.h
  12954. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12955. Updated usage
  12956. * src/version_usage.cc
  12957. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12958. Trim announce URL
  12959. * src/DefaultBtContext.cc
  12960. * test/ShaVisitorTest.cc
  12961. Trim argument s. Give trimed s to exception constructor.
  12962. * src/Util.cc (parseInt)(parseLLInt)
  12963. * test/UtilTest.cc
  12964. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12965. Set precision back to 1.
  12966. * src/ConsoleStatCalc.cc (calculateStat)
  12967. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12968. Replaced strtol with Util::parseInt
  12969. * src/ChunkedEncoding.cc
  12970. * src/HttpConnection.cc
  12971. * src/CookieBoxFactory.cc
  12972. * src/ParameterizedStringParser.cc
  12973. * src/Util.cc
  12974. * test/UtilTest.cc
  12975. * test/OptionHandlerTest.cc
  12976. * src/Request.cc
  12977. Throw exception when empty string is given. The message for exception
  12978. changed.
  12979. * src/Util.cc (parseInt)(parseLLInt)
  12980. * src/message.h
  12981. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12982. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12983. set to 1.
  12984. * src/ConsoleStatCalc.cc (calculateStat)
  12985. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12986. Preallocate non-requested file which is adjacent forward to requested
  12987. file('requested' files means the files given in --select-file option)
  12988. if they share a same piece.
  12989. This fixes long pause in the file system which doesn't support sparse
  12990. files like FAT32 while downloading.
  12991. * src/MultiFileAllocationIterator.{h, cc}
  12992. * test/MultiFileAllocationIteratorTest.cc
  12993. * src/FileEntry.{h, cc}
  12994. Removed unused _option.
  12995. * src/MultiDiskAdaptor.h
  12996. * test/MultiDiskAdaptorTest.cc
  12997. * src/DefaultPieceStorage.cc
  12998. Set the default value of --seed-ratio to 1.0.
  12999. If 0.0 is given, then seeding continues regardless of share ratio.
  13000. * src/version_usage.cc
  13001. * src/option_processing.cc
  13002. * src/BtSetup.cc
  13003. * doc/aria2c.1.txt
  13004. * doc/aria2c.1
  13005. Fixed: Selective download is not working in BitTorrent
  13006. * src/RequestGroup.cc
  13007. Introduced Sequence class. Use this instead of Util::unfoldRange()
  13008. * src/PieceStorage.h
  13009. * test/MockPieceStorage.h
  13010. * src/UnknownLengthPieceStorage.h
  13011. * src/DefaultPieceStorage.{h, cc}
  13012. * src/Metalink2RequestGroup.cc
  13013. * src/RequestGroup.cc
  13014. * src/Sequence.h
  13015. * test/SequenceTest.cc
  13016. * src/IntSequence.h
  13017. * src/message.h
  13018. * src/Util.{h, cc}
  13019. * test/UtilTest.cc
  13020. Added new function 'parse' to catch exception thrown by subclass's
  13021. parseArg
  13022. * src/OptionHandler.h
  13023. * src/OptionParser.cc
  13024. * src/NameMatchOptionHandler.h
  13025. * src/OptionHandlerImpl.h
  13026. * test/OptionHandlerTest.cc
  13027. Added IntegerRangeOptionHandler. Used for --listen-port and
  13028. --select-file. Now --listen-port accepts range of port.
  13029. * src/OptionHandlerFactory.cc
  13030. * src/version_usage.cc
  13031. * src/OptionHandlerImpl.h
  13032. * src/option_processing.cc
  13033. * src/BtSetup.cc
  13034. * src/PeerListenCommand.{h, cc}
  13035. * doc/aria2c.1.txt
  13036. * doc/aria2c.1
  13037. Implemented operator< for Exception class to provide easy way to print
  13038. exception stack trace.
  13039. * src/Exception.{h, cc}
  13040. * src/main.cc
  13041. * src/option_processing.cc
  13042. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13043. * src/version_usage.cc
  13044. (showVersion): Reworked.
  13045. (showUsage): Added examples.
  13046. Removed Hint for total length and file name.
  13047. * src/Metalink2RequestGroup.cc
  13048. * src/RequestGroup.{h, cc}
  13049. * src/HttpResponseCommand.cc
  13050. * src/FtpNegotiationCommand.cc
  13051. Now --follow-torrent and --follow-metalink option work properly.
  13052. * src/RequestGroup.cc
  13053. Updated man page
  13054. * doc/aria2c.1.txt
  13055. * doc/aria2c.1
  13056. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13057. Removed.
  13058. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  13059. Use Segment::operator==()
  13060. * src/HttpConnection.cc
  13061. * src/Segment.h
  13062. Updated usage
  13063. * src/version_usage.cc
  13064. Added EINTR treatment.
  13065. * src/SocketCore.cc
  13066. * src/AbstractDiskWriter.cc
  13067. Rewritten.
  13068. * src/Util.cc (rangedFileCopy)
  13069. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13070. Fixed typo.
  13071. * src/version_usage.cc
  13072. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13073. Implemented. Now -c option works fine.
  13074. * src/DefaultPieceStorage.cc (markPiecesDone)
  13075. * test/DefaultPieceStorageTest.cc
  13076. Removed.
  13077. * src/SegmentMan.{h, cc}
  13078. (markAllPiecesDone)
  13079. (markPieceDone)
  13080. Synchronized po files with
  13081. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  13082. * src/fr.po
  13083. * src/ru.po
  13084. * src/de.po
  13085. * src/ja.po
  13086. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13087. Added ifdef and some modifications to compile without BitTorrent,
  13088. Metalink, MessageDigest
  13089. support.
  13090. * src/PieceHashCheckIntegrityEntry.cc
  13091. * src/MetalinkEntry.h
  13092. * src/version_usage.cc
  13093. * src/main.cc
  13094. * src/DownloadEngine.{h, cc}
  13095. * src/Metalink2RequestGroup.cc
  13096. * src/Peer.cc
  13097. * src/RequestGroup.cc
  13098. * src/MetalinkHelper.cc
  13099. * test/DefaultPieceStorageTest.cc
  13100. * test/MetalinkPostDownloadHandlerTest.cc
  13101. * test/Metalink2RequestGroupTest.cc
  13102. Hide TOTAL SPD when all downloads complete.
  13103. * src/ConsoleStatCalc.cc
  13104. Log target system information.
  13105. * src/main.cc
  13106. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13107. Now --metalink-location accepts a comma-deliminated list of locations.
  13108. * src/MetalinkEntry.{h, cc}
  13109. * test/MetalinkEntryTest.cc
  13110. * src/version_usage.cc
  13111. * src/Metalink2RequestGroup.cc
  13112. * src/Xml2MetalinkProcessor.cc
  13113. * test/Xml2MetalinkProcessorTest.cc
  13114. * doc/aria2c.1.txt
  13115. * doc/aria2c.1
  13116. * src/Util.cc (toUpper)(toLower): Rewritten.
  13117. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13118. Added the ability to detect duplicate download entry which is about to
  13119. download the same file other RequestGroup is downloading.
  13120. * src/RequestGroup.cc
  13121. * src/HttpResponseCommand.cc
  13122. * src/FtpNegotiationCommand.cc
  13123. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13124. Recalculates download progress when loading a control file,
  13125. if the piece length of DownloadContext is different from the one saved
  13126. in the control file. Currently in-flight pieces are ignored.
  13127. * src/DefaultBtProgressInfoFile.cc
  13128. * test/DefaultBtProgressInfoFileTest.cc
  13129. * src/Util.{h, cc}
  13130. * test/UtilTest.cc
  13131. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13132. Do not rotate tiers in announce-list.
  13133. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  13134. AnnounceList::allTiersFailed() used instead to detect whether all
  13135. tiers are tried and failed.
  13136. * test/DefaultBtAnnounceTest.cc
  13137. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  13138. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  13139. * test/AnnounceListTest.cc
  13140. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  13141. clause. Catch RecoverableException instead of DlRetryEx instead.
  13142. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13143. Implemented checksum validation feature(1 checksum for each file)
  13144. The validation takes place after the download.
  13145. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  13146. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  13147. * src/CheckIntegrityCommand.cc: Changed log message.
  13148. * src/Metalink2RequestGroup.cc: Set checksum to
  13149. SingleFileDownloadContext.
  13150. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  13151. PieceHashCheckIntegrity class.
  13152. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  13153. PieceHashCheckIntegrity class.
  13154. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  13155. * src/IteratableValidator.h: New class.
  13156. * src/message.h
  13157. * src/CheckIntegrityEntry.{h, cc}
  13158. * src/IteratableChunkChecksumValidator.{h, cc}
  13159. * src/SingleFileDownloadContext.h
  13160. * src/DownloadCommand.cc
  13161. --allow-overwrite=true is no longer needed to check file integrity
  13162. before download in BitTorrent download.
  13163. * src/RequestGroup.cc (getInitialCommand)
  13164. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  13165. throws exception.
  13166. * src/RequestGroupMan.cc (getInitialCommands)
  13167. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13168. urlencode the given url inside Request::parseUrl(...)
  13169. * src/Request.{h, cc}
  13170. * src/Util.{h, cc}
  13171. * test/RequestTest.cc
  13172. Removed #!metalink3! notation support because it is deleted from
  13173. the metalink specification.
  13174. * src/Request.{h, cc}
  13175. * test/RequestTest.cc
  13176. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13177. Don't connect server before checking file integrity at startup, if
  13178. filesize and output file path are known.
  13179. * src/AbstractCommand.cc
  13180. * src/StreamFileAllocationEntry.cc
  13181. * src/Metalink2RequestGroup.cc
  13182. * src/RequestGroup.{h, cc}
  13183. * src/HttpResponseCommand.cc
  13184. * src/FtpNegotiationCommand.cc
  13185. Added DownloadFailureException. If it is thrown, RequestGroup should
  13186. halt.
  13187. * src/AbstractCommand.cc
  13188. * src/DownloadFailureException.h
  13189. * src/RequestGroup.cc
  13190. Catch RecoverableException, instead of DlAbortEx.
  13191. * src/RequestGroupMan.cc
  13192. * src/FillRequestGroupCommand.cc
  13193. * src/MetaFileUtil.cc
  13194. * src/IteratableChunkChecksumValidator.cc
  13195. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  13196. getGID())
  13197. * src/CheckIntegrityCommand.cc
  13198. * src/message.h
  13199. Print gid instead of idx.
  13200. * src/RequestGroupMan.cc
  13201. Removed exception throwers declaration.
  13202. * src/DirectDiskAdaptor.{h, cc}
  13203. * src/SocketCore.{h, cc}
  13204. * src/MultiDiskAdaptor.{h, cc}
  13205. * src/HttpConnection.{h, cc}
  13206. * src/HttpResponse.{h, cc}
  13207. * src/DiskAdaptor.{h, cc}
  13208. * src/CopyDiskAdaptor.{h, cc}
  13209. * src/MultiDiskAdaptor.{h, cc}
  13210. * src/HttpHeaderProcessor.{h, cc}
  13211. * src/AbstractSingleDiskAdaptor.{h, cc}
  13212. * src/Util.{h, cc}
  13213. * test/UtilTest.cc
  13214. * src/DefaultDiskWriter.{h, cc}
  13215. * src/FtpConnection.{h, cc}
  13216. * src/AbstractDiskWriter.{h, cc}
  13217. Removed duplicate code.
  13218. * src/StreamCheckIntegrityEntry.cc
  13219. Removed unnecessary include.
  13220. * src/DiskWriter.h
  13221. Included Exception.h
  13222. * src/option_processing.cc
  13223. Included 2 files and added doc
  13224. * src/TrackerWatcherCommand.cc
  13225. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  13226. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13227. Changed CheckIntegrityEntry interface so that it can define
  13228. the action when all the chunk checksums are valid.
  13229. * src/CheckIntegrityEntry.h
  13230. * src/StreamCheckIntegrityEntry.{h, cc}
  13231. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  13232. are valid, then aira2 goes to seeding mode. Sometimes it is better
  13233. to exit rather than doing seeding. So, it would be good to toggle this
  13234. behavior.
  13235. * src/CheckIntegrityCommand.cc
  13236. * src/AbstractCommand.cc
  13237. * src/RequestGroup.cc
  13238. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13239. Reflect the download length of in-flight pieces.
  13240. It makes the download length readout more precise.
  13241. * src/DefaultPieceStorage.{h, cc}
  13242. * test/DefaultPieceStorageTest.cc
  13243. * src/a2functional.h
  13244. * test/a2functionalTest.cc
  13245. Lower CPU load when --max-download-limit is used.
  13246. There is up and down in speed indicator when enabling
  13247. http-pipelining but a download goes well. I think the problem is that
  13248. because http-pipelining is enabled, DownloadCommand is created for
  13249. each segment and in its constructor, PeerStat::downloadStart() is
  13250. called. In PeerStat::downloadStart(), speed calculation object is
  13251. reseted, which makes download speed zero.
  13252. * src/DownloadCommand.cc
  13253. Rewritten using accumulate.
  13254. * src/RequestGroupMan.cc (calculateStat)
  13255. Code clearnup.
  13256. * src/FtpNegotiationCommand.cc
  13257. * src/HttpResponseCommand.cc
  13258. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13259. Fixed: Can not resume: aria2 reports download already finished.
  13260. * src/AbstractCommand.{h, cc}
  13261. * src/HttpResponseCommand.cc
  13262. * src/FtpNegotiateCommand.cc
  13263. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13264. Now a file is stored in the directory specified in .metalnk file
  13265. (file[@name]).
  13266. * src/Metalink2RequestGroup.cc
  13267. Create the directory structure when opening the file if it doesn't
  13268. exist.
  13269. * src/AbstractDiskWriter.cc
  13270. * src/Util.{h, cc}
  13271. * src/File.h
  13272. * test/UtilTest.cc
  13273. Removed file name comparison
  13274. * src/Metalink2RequestGroup.cc
  13275. * src/HttpResponseCommand.cc
  13276. Rewritten using Util::mkdirs()
  13277. * src/FileEntry.cc (setupDir)
  13278. * test/FileEntryTest.cc
  13279. Updated doc
  13280. * src/SingleFileDownloadContext.h
  13281. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13282. Now SleepCommand dispatches nextCommand when halt is requested.
  13283. It avoids a possible long wait after hitting CTRL-C.
  13284. * src/SleepCommand.{h, cc}
  13285. * src/RequestGroupAware.{h, cc}
  13286. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13287. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  13288. to open listen port, then remove the port number from the tracker
  13289. request.
  13290. * src/DefaultBtAnnounce.cc
  13291. * test/DefaultBtAnnounceTest.cc
  13292. * test/MockPieceStorage.h
  13293. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  13294. them more testable.
  13295. * src/DefaultBtAnnounce.{h, cc}
  13296. * src/DefaultBtContext.{h, cc}
  13297. * src/Util.{h, cc}
  13298. * test/DefaultBtAnnounceTest.cc
  13299. * test/DefaultBtContextTest.cc
  13300. * test/UtilTest.cc
  13301. Added 'B' to upload bytes readout.
  13302. * src/ConsoleStatCalc.cc
  13303. Now the listen port for BitTorrent download is opened when it is
  13304. needed.
  13305. * src/DownloadEngineFactory.cc
  13306. * src/BtSetup.{h, cc}
  13307. * src/PeerListenCommand.{h, cc}
  13308. Now an exception thrown while parsing tracker response is now logged.
  13309. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  13310. called, which means no retry is made in this case, assuming a tracker
  13311. has a problem.
  13312. * src/TrackerWatcherCommand.cc
  13313. Fixed: downloading a file whose length is unkown fails.
  13314. * src/DownloadCommand.cc
  13315. Simplified prepareForNextSegment()
  13316. * src/DownloadCommand.cc
  13317. Updated
  13318. * po/POTFILES.in
  13319. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13320. Re-implemented a file listing for Metalink, which was dropped while
  13321. http/ftp/torrent integration was being implemented.
  13322. * src/MetalinkHelper.{h, cc}: New class.
  13323. * test/MetalinkHelperTest.cc
  13324. * src/main.cc
  13325. * src/Metalink2RequestGroup.cc
  13326. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13327. Added the ability to display the detailed torrent file information.
  13328. Now -S option gives not only a file listing, but also total download
  13329. length, info hash, announce URI, piece length, the number of pieces,
  13330. and mode(single or multi-torrent).
  13331. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  13332. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  13333. KiB)
  13334. * test/UtilTest.cc
  13335. * src/main.cc
  13336. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13337. Added ftp://USER:PASSWD@Servername automatic parsing.
  13338. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  13339. _password. Recognize username and password in URI.
  13340. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  13341. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  13342. * src/RequestFactory.{h, cc}: Removed.
  13343. * src/AuthConfigFactory.{h, cc}: New class.
  13344. * src/FtpConnection.cc: Use AuthConfigFactory.
  13345. * src/HttpRequest.cc: Use AuthConfigFactory.
  13346. * test/HttpRequestTest.cc: Updated.
  13347. * test/RequestTest.cc: Updated.
  13348. * test/AuthConfigFactoryTest.cc: New class.
  13349. * test/RequestFactoryTest.cc: Removed.
  13350. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13351. Use RequestGroup::allDownloadFinished() to decide whether the control
  13352. file should be removed or saved.
  13353. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  13354. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  13355. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13356. Use File::renameTo()
  13357. * src/DefaultBtProgressInfoFile.cc
  13358. Added --no-file-allocation-limit command-line option.
  13359. * src/version_usage.cc
  13360. * src/option_processing.cc
  13361. * src/OptionHandlerFactory.cc
  13362. * src/RequestGroup.{h, cc}
  13363. * src/BtCheckIntegrityEntry.cc
  13364. * src/StreamCheckIntegrityEntry.cc
  13365. * src/prefs.h
  13366. * doc/aria2c.1.txt
  13367. * doc/aria2c.1
  13368. Now prealloc is the default value for --file-allocation option.
  13369. * src/version_usage.cc
  13370. * src/option_processing.cc
  13371. * doc/aria2c.1.txt
  13372. * doc/aria2c.1
  13373. Don't URL-encode user-agent.
  13374. * src/HttpRequest.cc
  13375. Updated translations
  13376. * po/LINGUAS: Added nl for Dutch translation.
  13377. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  13378. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  13379. * po/POTFILES.in: Updated.
  13380. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13381. Added the ability to recognize url-list in a torrent file.
  13382. The retrieved URLs are attached to the corresponding FileEntry.
  13383. * src/DefaultBtContext.{h, cc}
  13384. * src/FileEntry.{h, cc}
  13385. * test/DefaultBtContextTest.cc
  13386. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13387. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  13388. after the download finishes.
  13389. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13390. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  13391. the data smaller than block length.
  13392. A block length can be specified by constructor's argument.
  13393. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  13394. Get a missing piece in the range of given FileEntry. This function is
  13395. not used in the program yet.
  13396. * src/Util.h: Added some macros.
  13397. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13398. Added HTTP/1.1 keep alive and pipelining support.
  13399. See --enable-http-keep-alive and --enable-http-pipelining option.
  13400. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  13401. Segment.
  13402. * src/HttpDownloadCommand.{h, cc}
  13403. * src/OptionHandlerFactory.cc
  13404. * src/HttpConnection.{h, cc}
  13405. * src/version_usage.cc
  13406. * src/HttpInitiateConnectionCommand.cc
  13407. * src/FtpInitiateConnectionCommand.cc
  13408. * src/Segment.h
  13409. * src/HttpRequestCommand.{h, cc}
  13410. * src/option_processing.cc
  13411. * src/prefs.h
  13412. * src/HttpResponseCommand.cc
  13413. * src/SegmentMan.{h, cc}
  13414. * src/FtpNegotiateCommand.cc
  13415. * src/HttpProxyResponseCommand.cc
  13416. * src/Request.cc
  13417. * src/HttpRequest.cc
  13418. * src/DownloadCommand.cc
  13419. * test/HttpRequestTest.cc
  13420. * test/RequestTest.cc
  13421. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13422. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  13423. finished.
  13424. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13425. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  13426. catching it inside the method.
  13427. When no file entry is found in a metalink without querying user
  13428. preferences, throw the exception with the error message that suggests
  13429. metalink file is probably broken.
  13430. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  13431. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13432. Fixed the bug that prevents remote Metalink/Torrent file from begin
  13433. processed.
  13434. * src/RequestGroupMan.cc (removeStoppedGroup)
  13435. Added debug message.
  13436. * src/BtPostDownloadHandler.cc
  13437. * src/MetalinkPostDownloadHandler.cc
  13438. * src/PostDownloadHandler.{h, cc}
  13439. * src/RequestGroup.cc
  13440. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13441. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  13442. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13443. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  13444. stops and there are any unfinished or in-progress downloads.
  13445. Added the legend of "stat".
  13446. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13447. Throw exception when chunck checksum verification fails.
  13448. * src/DownloadCommand.cc (validatePieceHash): New function.
  13449. * src/PiecedSegment.{h, cc} (clear): New function.
  13450. * src/GrowSegment.{h, cc} (clear): New function.
  13451. * src/Segment.h (clear): New function.
  13452. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  13453. * test/SegmentTest.cc
  13454. * test/GrowSegmentTest.cc
  13455. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13456. Do not send referer when redirected.
  13457. * src/Request.cc (redirectUrl)
  13458. * test/RequestTest.cc
  13459. * test/HttpRequestTest.cc
  13460. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13461. Implemented BitTorrent/http/ftp integrated download.
  13462. I've rewritten lots of files and now some headers have forward
  13463. class declarations to reduce compile time.
  13464. The implementation is extremely alpha stage, I recommend to use this
  13465. for testing purpose only.
  13466. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13467. Fixed the compilation error on 64bit platform.
  13468. * test/HttpHeaderProcessorTest.cc
  13469. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13470. Merged Ross's patch that fixes compilation problem in MinGW
  13471. * test/DefaultBtProgressInfoFileTest.cc
  13472. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13473. Updated fr.po by sebone
  13474. * po/fr.po
  13475. Updated man page.
  13476. * doc/aria2c.1.txt
  13477. * Release 0.11.3
  13478. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13479. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  13480. failure in Metalink.
  13481. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13482. Automatically save *.aria2 control file of http/ftp download in every
  13483. 60 seconds.
  13484. * src/AutoSaveCommand.{h, cc}: New class.
  13485. * src/TimeBasedCommand.{h, cc}: New class.
  13486. * src/DownloadEngineFactory.cc (newConsoleEngine)
  13487. Disable parameterized URI support by default. Added -P option to
  13488. enable the feature.
  13489. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  13490. * src/OptionHandlerFactory.cc
  13491. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  13492. Updated Japanese translation.
  13493. * po/ja.po
  13494. Updated man page.
  13495. * doc/aria2c.1.txt
  13496. * Release 0.11.3-rc
  13497. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13498. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  13499. it is successful, then renamed to *.aria2.
  13500. This prevents *.aria2 file from being truncated or corrupted when
  13501. file system becomes out of space.
  13502. * src/DefaultBtProgressInfoFile.cc (save)
  13503. * src/SegmentMan.cc (save)
  13504. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  13505. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13506. Reduced the fragmentation of bitfield in http/ftp download.
  13507. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  13508. * test/BitfieldManTest.cc
  13509. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13510. Added the ability to disable segmented download in .metalink.
  13511. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  13512. 'url' tag.
  13513. * src/MetalinkEntry.{h, cc}
  13514. * src/RequestResource.{h, cc}
  13515. * src/MetalinkRequestInfo.cc
  13516. * src/Xml2MetalinkProcessor.cc
  13517. * test/Xml2MetalinkProcessorTest.cc
  13518. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13519. Added parameterized URI support.
  13520. * src/main.cc: -Z option added.
  13521. * src/OptionHandlerFactory.cc
  13522. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  13523. * src/PStringDatum.h: New class.
  13524. * src/PStringSegment.{h,cc}: New class.
  13525. * src/PStringNumLoop.h: New class.
  13526. * src/PStringSelect.h: New class.
  13527. * src/NumberDecorator.h: New class.
  13528. * src/FixedWidthNumberDecorator.h: New class.
  13529. * src/AlphaNumberDecorator.h: New class.
  13530. * src/PStringVisitor.h: New class.
  13531. * src/PStringBuildVisitor.{h,cc}: New class.
  13532. * src/ParameterizedStringParser.{h,cc}: New class.
  13533. * src/Util.{h,cc}
  13534. (isNumber): New function.
  13535. (isLowercase): New function.
  13536. (isUppercase): New function.
  13537. (alphaToNum): New function.
  13538. * test/ParameterizedStringParserTest.cc: New class.
  13539. * test/AlphaNumberDecoratorTest.cc: New class.
  13540. * test/PStringBuildVisitorTest.cc: New class.
  13541. * test/UtilTest.cc
  13542. (testIsNumber): New function.
  13543. (testIsLowercase): New function.
  13544. (testIsUppercase): New function.
  13545. (testAlphaToNum): New function.
  13546. Added '\n' after the error message
  13547. * src/RequestInfo.h (printDownloadAbortMessage)
  13548. Added auto file renaming feature in http(s)/ftp download.
  13549. * src/main.cc: Added --auto-file-renaming command-line option.
  13550. * src/OptionHandlerFactory.cc
  13551. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  13552. * src/RequestGroup.{h, cc}
  13553. (shouldCancelDownloadForSafety): Rewritten
  13554. (tryAutoFileRenaming): New function.
  13555. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  13556. * src/HttpResponseCommand.cc
  13557. (executeInternal): Removed the call to RequestGroupMan::
  13558. isSameFileBeingDownloaded()
  13559. * src/FtpNegotiateCommand.cc
  13560. (recvSize): Removed the call to RequestGroupMan::
  13561. isSameFileBeingDownloaded()
  13562. * test/RequestGroupTest.cc: New class.
  13563. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13564. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  13565. IO.
  13566. * src/DefaultBtProgressInfoFile.cc
  13567. * src/MetaFileUtil.cc
  13568. * src/SimpleLogger.cc
  13569. * src/SegmentMan.cc
  13570. * src/Util.cc
  13571. * src/Platform.cc
  13572. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13573. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  13574. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13575. Avoid sparse files if possible, because VFAT32 doesn't support it.
  13576. * src/DefaultDiskWriter.cc (initAndOpenFile)
  13577. Fixed the bug that prevents file allocation is not done when
  13578. dowloading multi-torrent file.
  13579. * src/AbstractDiskWriter.cc (openFile)
  13580. Increase the maximum number of -j option from 15 to 45.
  13581. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13582. Added fr.po, thanks to Charles Landemaine.
  13583. * po/fr.po
  13584. * po/LINGUAS
  13585. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13586. gcc 3.4.4 support:
  13587. * src/DefaultBtContext.cc: int32_t -> int
  13588. * src/main.cc: int -> int32_t, int32_t -> int
  13589. * src/messageDigest.h: uint32_t -> unsigned int
  13590. * src/NameResolver.h: int32_t -> int
  13591. * src/PeerConnection.cc: int -> int32_t
  13592. * src/SpeedCalc.cc: int32_t -> int
  13593. * src/TrackerUpdateCommand.h: int -> int32_t
  13594. * src/Util.cc: int32_t -> int
  13595. * src/Util.h: int32_t -> int
  13596. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  13597. * test/AnnounceListTest.cc: int -> int32_t
  13598. * test/ChunkedEncodingTest.cc: int -> int32_t
  13599. * test/DataTest.cc: int -> int32_t
  13600. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  13601. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  13602. * test/DefaultPieceStorageTest.cc: int -> int32_t
  13603. * test/FeatureConfigTest.cc: int -> int32_t
  13604. * test/MetalinkEntryTest.cc: int -> int32_t
  13605. * test/MockBtRequestFactory.h: int -> int32_t
  13606. * test/MockPieceStorage.h: int -> int32_t
  13607. * test/OptionTest.cc: int -> int32_t
  13608. * test/RequestTest.cc: int -> int32_t
  13609. * test/SegmentManTest.cc: int -> int32_t
  13610. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  13611. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13612. Move sleep functions to Util class:
  13613. * src/Util.cc
  13614. (sleep): New function.
  13615. (usleep): New function.
  13616. * src/DownloadCommand.cc: sleep -> Util::sleep
  13617. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  13618. MinGW build enhancements. The following files are added:
  13619. * src/timegm.{c,h}
  13620. Changes to support the above new files:
  13621. * configure.ac
  13622. * src/Makefile.am
  13623. * src/a2time.h
  13624. * src/Util.cc:
  13625. * src/strptime.c: Added support for %Z option.
  13626. Fixed MinGW non-blocking bug.
  13627. * src/SocketCore.cc
  13628. * src/HttpRequestCommand.cc
  13629. Miscellenous build fixes/enhancements.
  13630. * configure.ac: Added summary report.
  13631. * src/Platform.h: Tweaked #include's.
  13632. * src/a2netcompat.h: Tweaked #include's.
  13633. * src/strptime.h: Tweaked #include's.
  13634. * src/gai_strerror.c: Tweaked #include's.
  13635. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  13636. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  13637. * src/gettimeofday.h: Added HAVE_CONFIG_H
  13638. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13639. Increased the initial connection size in BitTorrent download to 40.
  13640. * src/BtRuntime.h
  13641. Added the usage message of --peer-id-prefix option.
  13642. * src/main.cc
  13643. * Release 0.11.2
  13644. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13645. MessageDigestHelper is introduced in order to simplify the use
  13646. of message digest. Removed repeated code.
  13647. The message digest algorithm is now specified by string, like "sha1",
  13648. "md5".
  13649. * src/messageDigest.{h, cc}
  13650. * src/MessageDigestHelper.{h, cc}: New class.
  13651. * src/DefaultPieceStorage.cc
  13652. * src/DefaultBtContext.{h, cc}
  13653. (computeFastSet): New function.
  13654. (setInfoHash): Added for unit testing.
  13655. (setNumPieces): Added for unit testing.
  13656. * src/DefaultBtInteractive.cc
  13657. * src/BtPieceMessage.cc
  13658. * src/Peer.cc
  13659. * src/Checksum.h
  13660. * src/message.h
  13661. * src/IteratableChecksumValidator.h
  13662. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  13663. inside it.
  13664. * src/SegmentMan.{h, cc}
  13665. (checkIntegrity): Removed.
  13666. * src/IteratableChunkChecksumValidator.{h, cc}
  13667. * src/Util.h
  13668. (sha1Sum): Removed.
  13669. (simpleMessageDigest): Removed.
  13670. (fileChecksum): Removed.
  13671. (computeFastSet): Removed.
  13672. * src/ShaVisitor.cc
  13673. * src/ChunkChecksum.h
  13674. * src/DownloadCommand.cc
  13675. Removed messageDigest virtual functions.
  13676. * src/MultiDiskAdaptor.{h, cc}
  13677. * src/DiskAdaptor.h
  13678. * src/ByteArrayDiskWriter.h
  13679. * src/DiskWriter.h
  13680. * src/DiskAdaptorWriter.h
  13681. * src/AbstractSingleDiskAdaptor.{h, cc}
  13682. * src/AbstractDiskWriter.{h, cc}
  13683. Fixed comilation error when message digest is disabled.
  13684. * src/MetalinkEntry.{h, cc}
  13685. * src/MetalinkRequestInfo.cc
  13686. Removed srandom and random.
  13687. * src/SimpleRandomizer.h
  13688. Added size() virtual function to DiskAdaptor
  13689. * src/MultiDiskAdaptor.h
  13690. Fixed the bug that causes that files are not opened correctly in
  13691. multi-file torrent.
  13692. * src/TorrentRequestInfo.cc
  13693. * src/MultiDiskAdaptor.cc
  13694. Added SHA256 support
  13695. * src/messageDigest.cc
  13696. * src/Xml2MetalinkProcessor.cc
  13697. Show supported message digest algorithms
  13698. * src/main.cc
  13699. Updated contact info.
  13700. * src/main.cc
  13701. Applied Ross's patch
  13702. * src/a2netcompat.h
  13703. * src/main.cc
  13704. Fixed the bug that prevents a remote metalink from not being processed
  13705. even if '-o foo.metalink' is specified.
  13706. * src/MetalinkRequestInfo.cc
  13707. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13708. Merged Dan's patch:
  13709. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  13710. Use va_copy to avoid core dump on amd64:
  13711. * src/SimpleLogger.cc
  13712. Updated contact info.
  13713. * src/main.cc
  13714. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  13715. digest is not available.
  13716. * src/MetalinkEntry.h
  13717. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13718. Make a2netcompat.h include a2io.h to fix compilation error:
  13719. * src/a2netcompat.h
  13720. * src/SocketCore.cc: Removed include of a2io.h
  13721. * src/Util.cc: Removed include of a2io.h
  13722. Gather time related functions to a2time.h:
  13723. * src/a2time.h: New file.
  13724. * src/DefaultPeerStorage.cc
  13725. * src/SimpleLogger.cc
  13726. * src/Util.{h, cc}
  13727. * src/SimpleRandomizer.h
  13728. * src/TimeA2.{h,cc}
  13729. * src/DownloadCommand.cc
  13730. * src/main.cc
  13731. Removed #ifdef __MINGW32__ since gai_strerror is included in
  13732. a2netcompat.h:
  13733. * src/NameResolver.cc
  13734. Fixed compilation error without openssl:
  13735. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  13736. Added default block to suppress compiler warnings:
  13737. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  13738. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  13739. MinGW build enhancements. The following files are added:
  13740. * src/gai_strerror.{c,h}
  13741. * src/gettimeofday.{c,h}
  13742. Changes to support the above new files:
  13743. * configure.ac
  13744. * src/Makefile.am
  13745. * src/a2netcompat.h
  13746. * src/TimeA2.cc
  13747. * src/DefaultPeerStorage.cc
  13748. * src/NameResolver.cc: removed mingw_strerror() function.
  13749. * src/SocketCore.cc: removed mingw_strerror() function.
  13750. Miscellaneous MinGW build fixes.
  13751. * src/a2io.h: Use _lseeki64() instead of lseek()
  13752. * src/common.h
  13753. * src/DefaultFileAllocator.cc
  13754. * src/GlowFileAllocator.cc
  13755. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13756. * src/NameResolver.cc
  13757. (callback): Changed int32_t to int.
  13758. (resolve): Changed int32_t to int.
  13759. * src/Platform.cc
  13760. * src/Platform.h
  13761. * test/MultiDiskWriterTest.cc
  13762. * test/PeerMessageUtilTest.cc
  13763. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13764. Other enhancements and fixes.
  13765. * src/HttpRequestCommand.cc
  13766. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13767. * src/SocketCore.cc:
  13768. (error): New function to abstract errno/WSAGetLastError().
  13769. (errorMsg): New function to abstract errno/WSAGetLastError().
  13770. (initiateSecureConnection): Added more detailed error reporting.
  13771. * src/SocketCore.h: Added private variable blocking, to allow
  13772. proper handling of OpenSSL psuedo-errors.
  13773. * src/message.h
  13774. (EX_SSL_INIT_FAILURE)
  13775. (EX_SSL_IO_ERROR)
  13776. (EX_SSL_PROTOCOL_ERROR)
  13777. (EX_SSL_UNKNOWN_ERROR)
  13778. (EX_SSL_CONNECT_ERROR)
  13779. (EX_SOCKET_BLOCKING)
  13780. (EX_SOCKET_NONBLOCKING)
  13781. (EX_SOCKET_UNKNOWN_ERROR)
  13782. * src/Util.cc
  13783. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13784. reserved name.
  13785. (httpGMT): Fixed typo.
  13786. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13787. Merged Ross's win32 patch(manually)
  13788. In the course of merging, following files are added.
  13789. * src/strptime.{h,c}
  13790. * src/libgen.{h,c}
  13791. * src/inet_aton.{h,c}
  13792. * src/Platform.{h,cc}
  13793. * src/localtime_r.{h,c}
  13794. * src/getaddrinfo.{h,c}
  13795. I've gethered network related things, and put them to following file:
  13796. * src/a2netcompat.h
  13797. Also io related things are put to following file:
  13798. * src/a2io.h
  13799. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13800. * src/message.h
  13801. (MSG_ALLOCATION_COMPLETED)
  13802. (EX_TOO_LARGE_FILE)
  13803. (EX_SIZE_MISMATCH)
  13804. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13805. (EX_INVALID_CHUNK_CHECKSUM)
  13806. (EX_INVALID_RANGE_HEADER)
  13807. * src/FileAllocationCommand.cc
  13808. * src/HttpResponse.cc
  13809. * src/RequestGroup.cc
  13810. * src/MultiDiskAdaptor.cc
  13811. * src/OptionHandlerImpl.h
  13812. * src/HttpResponseCommand.cc
  13813. * src/FtpNegotiateCommand.cc
  13814. * src/IteratableChecksumValidator.cc
  13815. * src/SegmentMan.cc
  13816. * src/ChunkChecksumValidator.cc
  13817. Added Randomizer::getRandomNumber(long int)
  13818. * src/Randomizer.h (getRandomNumber)
  13819. * src/SimpleRandomizer.h (getRandomNumber)
  13820. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13821. * src/Util.cc (randomAlpha): Use this new function.
  13822. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13823. Converted int's to in32_t. long long int's are also converted to
  13824. int64_t
  13825. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13826. Fixed the bug that prevents cookies from being sent to the server
  13827. if the domain of cookie is FQDN and starts with ".".
  13828. * src/Cookie.cc (match)
  13829. To add the ability to change peer id.
  13830. * src/DefaultBtContext.h
  13831. (_peerIdPrefix): New variable
  13832. (setPeerIdPrefix): New function.
  13833. * src/torrentRequestInfo.cc
  13834. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13835. DefaultBtContext.
  13836. * src/main.cc (main): Added peer-id-prefix command-line option.
  13837. The usage message is not added yet.
  13838. * src/DefaultBtContext.cc
  13839. (generatePeerId): Use _peerIdPrefix.
  13840. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13841. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13842. Fixed the bug that prevents filename in content-disposition from
  13843. being retrieved when filename is not quoted.
  13844. * src/Util.cc (getContentDispositionFilename)
  13845. Fixed the bug that causes infinate loop and memory leak when file open
  13846. operation failed.
  13847. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13848. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13849. Fixed the bug that causes segfault when all URIs specified are
  13850. unsupported.
  13851. * src/RequestGroupMan.cc (getInitialCommands)
  13852. Check if RequestGroup::createNextCommand() returns empty list of
  13853. commands.
  13854. * src/RequestGroup.cc (createNextCommand)
  13855. Change log level from info to error so that users can notice that
  13856. an error occurred.
  13857. Fixed the bug that causes segfault when a zero-sized file is
  13858. downloaded.
  13859. * src/BitfieldMan.cc (isAllBitSet)
  13860. Return true if bitfieldLength is 0.
  13861. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13862. * src/main.cc
  13863. (showUsage): Added 3 usage examples for metalink download.
  13864. Replace MetalinkChunkChecksum with ChunkChecksum.
  13865. * src/MetalinkChunkChecksum.h: Removed.
  13866. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13867. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13868. * src/Xml2MetalinkProcessor.cc
  13869. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13870. * src/MetalinkRequestInfo.cc (execute)
  13871. * Release 0.11.1
  13872. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13873. Reads URIs from stdin when "-i -" is specified.
  13874. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13875. * src/UriListParser.h, src/UriListParser.cc: New class.
  13876. * src/StreamUriListParser.h: New class.
  13877. * src/FileUriListParser.h: New class.
  13878. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13879. instead of UriFileListParser.
  13880. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13881. Made console readout more readable.
  13882. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13883. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13884. Fix the bug that causes -s option not to work.
  13885. * src/main.cc (main)
  13886. * src/a2algo.h: New file.
  13887. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13888. Create directory structure specified in metalink file.
  13889. * src/RequestGroup.h, src/RequestGroup.cc
  13890. (initAndOpenFile): Create a directory to store files if it does not
  13891. exist.
  13892. (getDir): New function.
  13893. Added ETA and download speed for an individual file to readout.
  13894. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13895. * src/RequestGroup.h
  13896. (calculateDownloadSpeed): New function.
  13897. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13898. Made -S option work with metalink file and provided selective download
  13899. to metalink.
  13900. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13901. (filename): Removed.
  13902. (file): New variable.
  13903. (size): Removed.
  13904. (operator=): Updated.
  13905. (getPath): New function.
  13906. (getLength): New function.
  13907. (toFileEntry): New function.
  13908. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13909. (execute): Use toStream.
  13910. (showFileEntry): Removed.
  13911. * src/MetalinkRequestInfo.h
  13912. (targetFiles): New variable.
  13913. (setTargetFiles): New variable.
  13914. * src/MetalinkRequestInfo.cc
  13915. (execute): Added the ability to print file information included in
  13916. a metalink file.
  13917. Added selective download mode to metalink.
  13918. * src/main.cc
  13919. (showUsage): Updated to denote that -S and --select-file options are
  13920. applicable to metalink.
  13921. * src/FileEntry.h
  13922. (operator=): New function.
  13923. (getBasename): New function.
  13924. (getDirname): New function.
  13925. * src/Util.h, src/Util.cc
  13926. (toStream): New function.
  13927. * src/Xml2MetalinkProcessor.cc: Updated.
  13928. Made aria2 work with metalink with directory structure.
  13929. * src/File.h, src/File.cc
  13930. (getBasename): New function.
  13931. (getDirname): New function.
  13932. * src/RequestGroup.h, src/RequestGroup.cc
  13933. (_topDir): New variable.
  13934. (setTopDir): New function.
  13935. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13936. Rewrote HTTP header parsing with stringstream.
  13937. * src/HttpConnection.h, src/HttpConnection.cc
  13938. (HttpRequestEntry): New class.
  13939. (headerBuf): Removed.
  13940. (headerBufLength): Removed.
  13941. (outstandingHttpRequests): Now its element type is
  13942. HttpRequestEntryHandle.
  13943. (findEndOfHeader): Removed.
  13944. (receiveResponse): Rewritten.
  13945. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13946. Updated doc for -j option to notice that it should be used with -i
  13947. option.
  13948. * src/main.cc (showUsage)
  13949. Removed unused classes.
  13950. * src/RequestInfo.h
  13951. (FileInfo): Removed.
  13952. (checksum): Removed.
  13953. (fileInfo): Removed.
  13954. (setChecksum): Removed.
  13955. (getChecksum): Removed.
  13956. (getFileInfo): Removed.
  13957. Use ISO units.
  13958. * src/ConsoleDownloadEngine.cc
  13959. * src/TorrentConsoleDownloadEngine.cc
  13960. * src/Util.cc (abbrevSize)
  13961. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13962. Added the default listening ports to the help message.
  13963. * src/main.cc (showUsage)
  13964. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13965. Reduce the number of calls to gettimeofday to lower CPU load.
  13966. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13967. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13968. * src/Peer.h (calculateUploadSpeed): New function.
  13969. (calculateDownloadSpeed): New function.
  13970. * src/DefaultPeerStorage.cc
  13971. (CalculateStat): Added _now variable.
  13972. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13973. and Peer::calculateUploadSpeed(const struct timeval&)
  13974. Drop connection if no request or piece message is exchanged in
  13975. a certain interval.
  13976. * src/DefaultBtInteractive.h
  13977. (btRuntime): New variable.
  13978. (inactiveCheckPoint): New variable.
  13979. (checkActiveInteraction): New function.
  13980. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13981. request or piece message is received.
  13982. (checkActiveInteraction): New function.
  13983. (doInteractionProcessing): Call checkActiveInteraction.
  13984. Fixed the bug that causes remote Metalink and Torrent files are not
  13985. processed.
  13986. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13987. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13988. Changed format of log file.
  13989. * src/SimpleLogger.cc
  13990. * Release 0.11.0
  13991. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13992. * src/AbstractCommand.cc
  13993. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13994. MSG_MAX_TRY from error to info.
  13995. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13996. * src/message.h
  13997. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13998. (MSG_DOWNLOAD_ABORTED): Added %s.
  13999. (MSG_RESTARTING_DOWNLOAD): Added %s.
  14000. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  14001. * src/PeerAbstractCommand.cc
  14002. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  14003. * src/Request.h
  14004. (cookieBox): Made ShardHandle.
  14005. * src/RequestGroup.h, src/RequestGroup.cc
  14006. (createNextCommandWithAdj): New function.
  14007. * src/FileAllocationCommand.cc
  14008. (executeInternal): Use createNextCommandWithAdj().
  14009. * src/CheckIntegrityCommand.cc
  14010. (executeInternal): Use createNextCommandWithAdj().
  14011. Added --load-cookies command-option.
  14012. * src/OptionHandlerFactory.cc
  14013. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  14014. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  14015. Now aria2 can handle cookie's expiration date.
  14016. * src/Cookie.h (expires): Changed its type to time_t.
  14017. * src/main.cc: Added --load-cookies command-line option.
  14018. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  14019. * src/Util.h, src/Util.cc (httpGMT): New function.
  14020. * src/Request.cc (Request): Initialize cookieBox using
  14021. CookieBoxFactory.
  14022. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  14023. * src/CookieParser.h, src/CookieParser.cc: New class.
  14024. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  14025. * src/HttpResponseCommand.cc
  14026. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  14027. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  14028. download.
  14029. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14030. Added -j command-line option.
  14031. * src/OptionHandlerFactory.cc (createOptionHandlers)
  14032. * src/main.cc
  14033. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  14034. Rewritten using stringstream.
  14035. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  14036. Rewritten using stringstream.
  14037. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14038. Make download size shown in MB, KB.
  14039. * src/ConsoleDownloadEngine.h (sendStatistics)
  14040. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  14041. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14042. Accept incoming connections if download rate is low.
  14043. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  14044. (_lowestSpeedLimit): New variable.
  14045. (setLowestSpeedLimit): New function.
  14046. (execute): Accept incoming connections if download rate is low.
  14047. MAX_PEERS is ignored in this case.
  14048. Disable PREF_OUT in multiple concurrent download:
  14049. * src/RequestGroup.h, src/RequestGroup.cc
  14050. (setUserDefinedFilename): New function.
  14051. * src/DownloadEngineFactory.cc
  14052. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  14053. concurrent download.
  14054. * src/DefaultSegmentManFactory.cc
  14055. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  14056. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14057. RequestGroup::getNextCommand() was renamed to createNextCommand().
  14058. Added its overloaded method.
  14059. * src/RequestGroup.h
  14060. (_numConcurrentCommand): New variable.
  14061. (setNumConcurrentCommand): New function.
  14062. * src/RequestGroup.cc
  14063. Abort download if same file is being downloaded concurrently.
  14064. * src/RequestGroup.h, src/RequestGroupMan.cc
  14065. (isSameFileBeingDownloaded): New function.
  14066. * src/HttpResponseCommand.cc (executeInternal)
  14067. * src/FtpNegotiateCommand.cc (recvSize)
  14068. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  14069. * main.cc: Added help message for -i option.
  14070. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14071. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  14072. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  14073. * src/MetalinkEntry.h
  14074. (checksum): Changed to ChecksumHandle
  14075. * src/MetalinkRequestInfo.cc
  14076. (checksum): Changed to ChecksumHandle
  14077. * src/File.cc
  14078. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  14079. * src/common.h
  14080. (DIR_OPEN_MODE): New definition
  14081. * src/RequestGroup.cc
  14082. (prepareForNextAction): Added an argument.
  14083. * src/message.h
  14084. (MSG_GOOD_CHECKSUM): New definition
  14085. (MSG_BAD_CHECKSUM): New definition
  14086. * src/HttpResponseCommand.cc
  14087. (handleDefaultEncoding): Continue download sequence in new
  14088. non-segmented download.
  14089. * src/FileAllocationEntry.h
  14090. (_nextDownloadCommand): New variable.
  14091. * src/DownloadCommand.cc
  14092. (prepareForNextSegment): Create ChecksumCommand if checksum is
  14093. available.
  14094. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  14095. * src/IteratableChecksumValidator.h,
  14096. src/IteratableChecksumValidator.cc: New class.
  14097. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  14098. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14099. Change file mode to 666:
  14100. * src/common.h (OPEN_MODE): New definition.
  14101. * src/File.cc
  14102. * src/Util.cc
  14103. * src/Directry.cc
  14104. * src/AbstractDiskWriter.cc
  14105. Change the level of log message "download aborted" to debug:
  14106. * src/PeerAbstractCommand.cc (execute)
  14107. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  14108. * src/TrackerWatcherCommand.cc
  14109. (createCommand): Sleep some seconds after request failed.
  14110. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  14111. then abort tracker request.
  14112. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14113. * Added the simultaneous download feature.
  14114. * src/main.cc: Print "Exception caught: " when exception is caught.
  14115. Use CUIDCounter instead of BtRuntime::getNewCuid():
  14116. * src/ActivePeerConnectionCommand.cc
  14117. * src/PeerInteractionCommand.cc
  14118. * src/BtRuntime.h
  14119. (cuidCounter): Removed.
  14120. (getNewCuid): Removed.
  14121. * src/DownloadEngineFactory.cc
  14122. * src/PeerListenCommand.cc
  14123. * src/TrackerUpdateCommand.cc
  14124. * src/PeerInitiateConnectionCommand.cc
  14125. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14126. * src/PeerAbstractCommand.cc
  14127. (onAbort): Call PeerStorage::returnPeer()
  14128. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  14129. (incomingPeers): New variable.
  14130. (addIncomingPeer): New function.
  14131. (returnPeer): New function.
  14132. (onErasingPeer): New function.
  14133. (addPeer): push_back -> push_front
  14134. (getActivePeers): Rewritten.
  14135. (calculateStat): Rewritten.
  14136. * src/PeerStorage.h
  14137. (TransferStat::copy): New function.
  14138. (TransferStat::TransferStat): New function.
  14139. (TransferStat::operator=): New function.
  14140. (addIncomingPeer): New function.
  14141. (returnPeer): New function.
  14142. * src/PeerListenCommand.cc
  14143. (execute): Use PeerStorage::addIncomingPeer() instead of
  14144. Peer::addPeer().
  14145. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14146. Connect to a peer actively when download speed is lower than specified
  14147. speed in torrent download:
  14148. * src/ActivePeerConnectionCommand.h: New class.
  14149. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14150. * src/HttpRequest.cc (createRequest): url-encode user-agent
  14151. * src/main.cc: Fixed the bug that prevents download if .netrc
  14152. doesn't exist.
  14153. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14154. To cache resolved hostname:
  14155. * src/AbstractCommand.h, src/AbstractCommand.cc
  14156. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  14157. Added dns cache.
  14158. * src/FtpInitiateConnectionCommand.cc
  14159. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  14160. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  14161. NameResolver working without ares.
  14162. * src/TorrentRequestInfo.cc
  14163. (execute): Don't cache dns in torrent download.
  14164. * src/HttpInitiateConnectionCommand.cc
  14165. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  14166. * src/DNSCache.h: New class.
  14167. * src/UrlRequestInfo.cc
  14168. (execute): Use dns cache.
  14169. In http request, suppress port number in http request header if port
  14170. is 80 or 443:
  14171. * src/HttpRequest.cc (getHostText): Suppress port number in http
  14172. request header if port is 80 or 443.
  14173. (createProxyRequest): Allways send port number.
  14174. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14175. To add the command-line option which disables netrc support:
  14176. * src/OptionHandlerFactory.cc
  14177. (createOptionHandlers): Added PREF_NO_NETRC.
  14178. * src/main.cc: Added -n option.
  14179. * src/prefs.h (PREF_NO_NETRC): New definition.
  14180. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  14181. V_TRUE.
  14182. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  14183. is V_FALSE. This may get configurable in the future release.
  14184. To clear peer's error status by time basis:
  14185. * src/PeerAbstractCommand.cc
  14186. (onAbort): Call Peer::startBadCondition().
  14187. * src/Peer.h, src/Peer.cc
  14188. (error): Removed.
  14189. (_badConditionStartTime): New variable.
  14190. (_badConditionInterval): New variable. Initialized to 10 seconds.
  14191. (startBadCondition): New function.
  14192. (isGood): New function.
  14193. * src/DefaultPeerStorage.cc
  14194. (addPeer): Use Peer::isGood().
  14195. (FindFinePeer): Use Peer::isGood().
  14196. Always include port number in http request header:
  14197. * src/HttpRequest.cc (getHostText): Always include port number in
  14198. http request header.
  14199. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14200. To the ability to read options from a config file:
  14201. * src/main.cc: Command-line parameter validation is delegated to
  14202. OptionHandler class.
  14203. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  14204. * src/Option.h, src/Option.cc (clear): New function.
  14205. * src/OptionParser.h, src/OptionParser.cc: New class.
  14206. * src/OptionHandler.h: New class.
  14207. * src/NameMatchOptionHandler.h: New class.
  14208. * src/OptionHandlerImpl.h: New classes.
  14209. * src/prefs.h: '_' -> '-'
  14210. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  14211. (FTP_PASV): New definition.
  14212. * src/Util.h, src/Util.cc (getRealSize): New function.
  14213. To disable netrc support if .netrc file does not have correct
  14214. permissions:
  14215. * src/File.h, src/File.cc (mode): New function.
  14216. To prevent confidential information to be logged:
  14217. * src/HttpConnection.h, src/HttpConnection.cc
  14218. (eraseConfidentialInfo): New function.
  14219. (sendRequest): Call eraseConfidentialInfo().
  14220. (sendProxyRequest): Call eraseConfidentialInfo().
  14221. * src/main.cc: Validate permissions of .netrc file.
  14222. To add --user-agent command-line option:
  14223. * src/main.cc: Added new command line option: --user-agent
  14224. * src/prefs.h (PREF_USER_AGENT): New definition.
  14225. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  14226. parameter to HttpRequest object.
  14227. * src/AbstractProxyRequestCommand.cc
  14228. (executeInternal): Set user-agent option parameter to HttpRequest
  14229. object.
  14230. Marged the patches from Dan Fandrich.
  14231. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14232. Use filename and size from Metalink file instead of sending HEAD
  14233. request:
  14234. * src/UrlRequestInfo.h
  14235. (_filename): New variable.
  14236. (_totalLength): New variable.
  14237. (setTotalLength): New variable.
  14238. (setFilename): New variable.
  14239. * src/MetalinkRequestInfo.cc
  14240. (execute): Set filename and size to UrlRequestInfo
  14241. * src/UrlRequestInfo.cc
  14242. (execute): Use filename and size from Metalink instead of seding
  14243. HEAD request to servers.
  14244. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14245. To add the ability to resume downloading a partially downloaded file
  14246. which is downloaded from the beginning:
  14247. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  14248. takes this role.
  14249. * src/main.cc: Added -c option.
  14250. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  14251. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  14252. * src/prefs.h (PREF_CONTINUE): New definition.
  14253. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  14254. * src/DefaultDiskWriter.cc
  14255. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  14256. * src/AbstractDiskWriter.h
  14257. (glowFileAllocator): New variable.
  14258. * src/AbstractDiskWriter.cc
  14259. (openExistingFile): Now preallocate file space from the end of the
  14260. existing file if totalLength argument is specified and grater than 0.
  14261. * src/UrlRequestInfo.cc: If -c option is specified and the file
  14262. to download exists in local, continue the download of the file.
  14263. --allow-overwrite=true is assumed in this context.
  14264. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  14265. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  14266. Throw exception if --check-integrity=true is specified but chunk
  14267. checksums are not provided:
  14268. * src/UrlRequestInfo.cc
  14269. Do not print URLs to stdout:
  14270. * src/UrlRequestInfo.cc
  14271. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14272. * src/Request.h: Use AuthResolver to get authentication information.
  14273. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  14274. set to RequestFactory object.
  14275. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  14276. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  14277. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  14278. create Request object.
  14279. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  14280. To integrate Netrc into exsiting classes:
  14281. * src/Request.h
  14282. (_userDefinedAuthConfig): New variable.
  14283. (findNetrcAuthenticator): New function.
  14284. (segment): Removed.
  14285. (setUserDefinedAuthConfig): New function.
  14286. (resolveHttpAuthConfigItem): New function.
  14287. (resolveFtpAuthConfigItem): New function.
  14288. (resolveHttpProxyAuthConfigItem): New function.
  14289. * src/HttpRequest.h
  14290. (authConfig): Removed.
  14291. (proxyAuthConfig): Removed.
  14292. (setAuthConfig): Removed.
  14293. (setProxyAuthConfig): Removed.
  14294. * src/UrlRequest.h
  14295. (getHeadResult): Added a parameter: authConfigHandle
  14296. * src/common.h
  14297. (SingletonHolder.h): New include.
  14298. * src/main.cc
  14299. (Netrc.h): New include.
  14300. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  14301. Added initial value of PREF_NETRC_PATH.
  14302. Added the initialization of netrc.
  14303. * src/AuthConfig.h: New class.
  14304. * src/prefs.h
  14305. (PREF_NETRC_PATH): New definition.
  14306. * src/HttpAuthConfig.h: Removed.
  14307. * src/Netrc.cc
  14308. (getRequiredNextToken): New function.
  14309. (skipMacdef): New function.
  14310. (parse): Rewritten.
  14311. * src/Netrc.h
  14312. (getRequiredNextToken): New function.
  14313. (skipMacdef): New function.
  14314. * src/Util.h, src/Util.cc
  14315. (getHomeDir): New function.
  14316. * src/TrackerWatcherComand.cc
  14317. (createRequestCommand): Use AuthConfig.
  14318. * src/FtpConnection.cc
  14319. (sendUser): Use Request::resolveFtpAuthConfigItem().
  14320. (sendPass): Use Request::resolveFtpAuthConfigItem().
  14321. * src/Request.cc
  14322. (findNetrcAuthenticator): New function.
  14323. (resolveHttpAuthConfigItem): New function.
  14324. (resolveFtpAuthConfigItem): New function.
  14325. (resolveHttpProxyAuthConfigItem): New function.
  14326. * src/UrlRequestInfo.cc: Use AuthConfig.
  14327. * src/HttpRequest.cc
  14328. (createRequest): Use authConfig.
  14329. (getProxyAuthString): Use authConfig.
  14330. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  14331. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  14332. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14333. To reduce overhead to find commands whose socket is either
  14334. readable or writable in the download engine loop:
  14335. * src/Command.h, src/Command.cc
  14336. (STATUS): New enum.
  14337. (status): New variable.
  14338. (statusMatch): New function.
  14339. (setStatusActive): New function.
  14340. (setStatusInactive): New function.
  14341. * src/DownloadEngine.h, src/DownloadEngine.cc
  14342. (executeCommand): New function.
  14343. (run): Simplified.
  14344. (waitData): Call Command::setStatusActive() when command's socket is
  14345. readable or writable.
  14346. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14347. To handle Segment as SegmentHandle:
  14348. * src/AbstractCommand.cc (execute): Rewritten.
  14349. * src/SegmentMan.h: Segment -> SegmentHandle
  14350. Introducded HttpResponse class, HttpRequest class to improve code
  14351. extensiveness and make it clear:
  14352. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  14353. HttpResponse class.
  14354. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  14355. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  14356. * src/HttpConnection.cc: Contruction of http request were moved to
  14357. HttpRequest class.
  14358. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  14359. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  14360. * src/HttpAuthConfig.h: New class.
  14361. * src/Range.h: New class.
  14362. To make FtpTunnel{Request, Response}Command and
  14363. HttpProxy{Request, Response}Command derived from
  14364. AbstractProxy{Request, Response}Command:
  14365. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  14366. Derived from AbstractProxyRequestCommand class.
  14367. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  14368. Derived from AbstractProxyResponseCommand class.
  14369. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  14370. Derived from AbstractProxyRequestCommand class.
  14371. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  14372. Derived from AbstractProxyResponseCommand class.
  14373. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  14374. : New class.
  14375. * src/AbstractProxyResponseCommand.h,
  14376. src/AbstractProxyResponseCommand.cc: New class.
  14377. To add netrc support:
  14378. * src/Netrc.h, src/Netrc.cc: New class.
  14379. * src/Util.h, src/Util.cc (split): New function.
  14380. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  14381. "Content-Range" header instead of "Range" header.
  14382. * src/HttpHeader.h
  14383. (getStatus): Removed.
  14384. (setStatus): Removed.
  14385. * src/Segment.h
  14386. (getPositionToWrite): New function.
  14387. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14388. * src/HttpHeader.h
  14389. (Range.h): New include.
  14390. (status): New variable.
  14391. (HttpHeader): Initialized status with 0.
  14392. (getStatus): New function.
  14393. (setStatus): New function.
  14394. (getRange): New function.
  14395. (HttpHeaderHandle): New function.
  14396. * src/HttpHeader.cc
  14397. (getRange): New function.
  14398. * src/Request.h
  14399. (RequestWeakHandle): New definition.
  14400. * src/HttpConnection.h
  14401. (HttpConnectionHandle): New type definition.
  14402. * src/HttpConnection.cc
  14403. (receiveResponse): Set HTTP status to headers.
  14404. * src/main.cc
  14405. (showUsage): Fixed typo.
  14406. * src/Segment.h
  14407. (SegmentHandle): New type definition.
  14408. * src/BitfieldMan.h
  14409. (getMissingUnusedLength): New function.
  14410. * src/BitfieldMan.cc
  14411. (getMissingUnusedLength): New function.
  14412. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14413. To fix static initialization order problem:
  14414. * src/BitfieldManFactory.h
  14415. (defaultRandomizer): Removed.
  14416. (factory): New variable.
  14417. (getNewFactory): Removed.
  14418. (getFactoryInstance): New function.
  14419. (setDefaultRandomizer): Rewritten.
  14420. (getDefaultRandomizer): Rewritten.
  14421. * src/BitfieldManFactory.cc
  14422. (defaultRandomizer): Removed.
  14423. (factory): Initialized to 0.
  14424. (BitfieldManFactory): Initialized randomizer to 0.
  14425. * src/DefaultPieceStorage.cc
  14426. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  14427. * src/Peer.cc
  14428. (Peer): getNewFactory() -> getFactoryInstance()
  14429. * src/SegmentMan.cc
  14430. (initBitfield): getNewFactory() -> getFactoryInstance()
  14431. * src/Piece.cc
  14432. (Piece): getNewFactory() -> getFactoryInstance()
  14433. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14434. To fix the bug that causes crash on Max OS X:
  14435. * src/SimpleRandomizer.h
  14436. (getInstance): Create new instance if the static variable is null.
  14437. * src/SimpleRandomizer.cc
  14438. (randomizer): Initialized to 0.
  14439. * src/BitfieldManFactory.h
  14440. (getNewFactory): Removed the call to setRandomizer().
  14441. To fix the miscalculation of the range of checksum:
  14442. * src/BitfieldMan.h
  14443. (isBitSetOffsetRange): New function.
  14444. * src/BitfieldMan.cc
  14445. (isBitSetOffsetRange): New function.
  14446. * src/SegmentMan.cc
  14447. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  14448. Use bitfield->getBlockLength() instead of segment.segmentLength.
  14449. * Release 0.10.1
  14450. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14451. To lower CPU usage in BitTorrent download when --max-upload-limit
  14452. command-line option specified:
  14453. * src/DefaultBtMessageDispatcher.cc
  14454. (sendMessages): Calculate uploading speed only when current message
  14455. is uploading data and is not sent yet.
  14456. * src/DefaultPeerStorage.h
  14457. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  14458. * src/HttpResponseCommand.cc
  14459. (handleDefaultEncoding): Added the cast to int32_t to itos.
  14460. This fixes compile error in Soralis 10.
  14461. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14462. To fix segfault in Metalink download:
  14463. * src/UrlRequestInfo.h
  14464. (filename): Removed.
  14465. (totalLength): Removed.
  14466. (setTotalLength): Removed.
  14467. (setFilename): Removed.
  14468. * src/MetalinkRequestInfo.cc
  14469. (execute): Do not set filename and totalLength to reqInfo.
  14470. Set chunk checksum to reqInfo if it is not null.
  14471. * src/HttpResponseCommand.cc
  14472. (executeInternal): Fixed filename in log.
  14473. (handleDefaultEncoding): Removed the call to initBitfield() and
  14474. markAllPiecesDone().
  14475. (handleOtherEncoding): Added HEAD method handling.
  14476. * src/FtpNegotiateCommand.cc
  14477. (executeInternal): Added SEQ_HEAD_OK handling.
  14478. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  14479. return false.
  14480. * src/FtpNegotiateCommand.h
  14481. (SEQ_HEAD_OK): New definition.
  14482. * src/SegmentMan.cc
  14483. (initBitfield): Delete bitfield.
  14484. (isChunkChecksumValidationReady): Fixed the condition.
  14485. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  14486. works fine.
  14487. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14488. * src/Xml2MetalinkProcessor.h
  14489. (xpathExists): New function.
  14490. * src/Xml2MetalinkProcessor.cc
  14491. (xpathExists): New function.
  14492. Not to send HEAD request if filename and size are available in Metalink
  14493. file:
  14494. * src/UrlRequestInfo.h
  14495. (filename): New variable.
  14496. (totalLength): New variable.
  14497. (setTotalLength): New function.
  14498. (setFilename): New function.
  14499. * src/MetalinkRequestInfo.cc
  14500. (execute): Set filename and size to UrlRequestInfo.
  14501. * src/MetalinkEntry.cc
  14502. (MetalinkEntry): Initialize size with 0.
  14503. * src/UrlRequestInfo.cc
  14504. (execute): Set filename and size to SegmentMan.
  14505. Not to download rest of the files after selected files are downloaded
  14506. in BitTorrent:
  14507. * src/PieceStorage.h
  14508. (allDownloadFinished): New function.
  14509. * src/DefaultBtAnnounce.cc
  14510. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  14511. downloadFinished.
  14512. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  14513. * src/DefaultPieceStorage.cc
  14514. (completePiece): Use allDownloadFinished instead of downloadFinished.
  14515. Commented out the call to finishSelectiveDownloadingMode().
  14516. (downloadFinished): Call isFilteredAllBitSet() instead of
  14517. isAllBitSet().
  14518. (allDownloadFinished): New function.
  14519. * src/DefaultBtInteractive.cc
  14520. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  14521. downloadFinished().
  14522. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  14523. * src/TorrentDownloadEngine.cc
  14524. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  14525. * src/BitfieldMan.h
  14526. (isFilteredAllBitSet): New function.
  14527. * src/ShareRatioSeedCriteria.h
  14528. (PieceStorage.h): New include.
  14529. (pieceStorage): New variable.
  14530. (evaluate):
  14531. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  14532. * src/BitfieldMan.cc
  14533. (isFilteredAllBitSet): New function.
  14534. (isAllBitSet): Filter is not took into account.
  14535. Rename --force-truncate as --allow-overwrite:
  14536. * src/TorrentRequestInfo.cc
  14537. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  14538. * src/main.cc
  14539. (showUsage): --force-truncate -> --allow-overwrite
  14540. * src/message.h
  14541. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  14542. * src/prefs.h
  14543. (PREF_FORCE_TRUNCATE): Removed.
  14544. (PREF_ALLOW_OVERWRITE): New definition.
  14545. * src/SegmentMan.cc
  14546. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  14547. * src/MetalinkRequestInfo.cc
  14548. (execute): Queueing message are now logged in info level.
  14549. * src/common.h
  14550. (LONG_LONG_MAX): Removed.
  14551. (LONG_LONG_MIN): Removed.
  14552. * src/HttpResponseCommand.cc
  14553. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  14554. * src/FtpNegotiateCommand.cc
  14555. (recvSize): LONG_LONG_MAX -> INT64_MAX
  14556. * src/main.cc
  14557. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  14558. command-line option.
  14559. (main): Added --check-integriy and --realtime-chunk-checksum
  14560. command-line option.
  14561. --force-truncate -> --allow-overwrite
  14562. Set initial value of --check-integrity option to false.
  14563. Don't show usage when error occurs while persing command-line options.
  14564. Removed deprecated --upload-limit option.
  14565. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14566. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  14567. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  14568. * src/BtAllowedFastMessage.cc:
  14569. * src/BtBitfieldMessage.cc
  14570. * src/BtCancelMessage.cc
  14571. * src/BtChokeMessage.cc
  14572. * src/BtHaveAllMessage.cc
  14573. * src/BtHaveMessage.cc
  14574. * src/BtHaveNoneMessage.cc
  14575. * src/BtInterestedMessage.cc
  14576. * src/BtNotInterestedMessage.cc
  14577. * src/BtPieceMessage.cc
  14578. * src/BtPortMessage.cc
  14579. * src/BtRejectMessage.cc
  14580. * src/BtRequestMessage.cc
  14581. * src/BtSuggestPieceMessage.cc
  14582. * src/BtUnchokeMessage.cc
  14583. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  14584. files are affected.
  14585. * src/ChunkChecksumValidator.cc
  14586. * src/SegmentMan.cc
  14587. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14588. To add chunk checksum validation:
  14589. * src/MetalinkEntry.h
  14590. (MetalinkChunkChecksum.h): New include.
  14591. (chunkChecksum): New variable.
  14592. * src/Request.h
  14593. (method): New variable.
  14594. (setMethod): New function.
  14595. (getMethod): New function.
  14596. (METHOD_GET): New static constant.
  14597. (METHOD_HEAD): New static constant.
  14598. * src/Xml2MetalinkProcessor.h
  14599. (getPieceHash): New function.
  14600. * src/PieceStorage.h
  14601. (markAllPiecesDone): New function.
  14602. (checkIntegrity): New function.
  14603. * src/FileAllocator.h
  14604. (NullFileAllocationMonitor.h): New include.
  14605. (FileAllocator): Initialize fileAllocationMonitor with new
  14606. NullFileAllocationMonitor().
  14607. * src/MultiDiskAdaptor.h
  14608. (messageDigest.h): Remove include.
  14609. (ctx): Removed.
  14610. (hashUpdate): Added ctx.
  14611. (MultiDiskAdaptor): Removed ctx.
  14612. (sha1Sum): Renamed as messageDigest.
  14613. (messageDigest): New function.
  14614. * src/UrlRequestInfo.h
  14615. (HeadResult): New class.
  14616. (digestAlgo): New variable.
  14617. (chunkChecksumLength): New variable.
  14618. (chunkChecksums): New variable.
  14619. (getHeadResult): New function.
  14620. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  14621. (setDigestAlgo): New function.
  14622. (setChunkChecksumLength): New function.
  14623. (setChunkChecksums): New function.
  14624. * src/DefaultPieceStorage.cc
  14625. (DiskAdaptorWriter.h): New include.
  14626. (ChunkChecksumValidator.h): New include.
  14627. (markAllPiecesDone): New function.
  14628. (checkIntegrity): New function.
  14629. * src/DefaultBtContext.h
  14630. (getPieceHashes): New function.
  14631. * src/TorrentRequestInfo.cc
  14632. (execute): Try to validate chunk checksum if file already exists and
  14633. .aria2 file doesn't there and user allows aria2 to overwrite it.
  14634. * src/messageDigest.h
  14635. (~MessageDigestContext): Added digestFree().
  14636. * src/MetalinkRequestInfo.cc
  14637. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  14638. * src/DiskAdaptor.h
  14639. (messageDigest.h): New include.
  14640. (sha1Sum): Renamed as messageDigest.
  14641. (messageDigest): New function.
  14642. * src/DownloadCommand.h
  14643. (PeerStat.h): New include.
  14644. (maxDownloadSpeedLimit): New variable.
  14645. (startupIdleTime): New variable.
  14646. (lowestDownloadSpeedLimit): New variable.
  14647. (peerStat): New variable.
  14648. (setMaxDownloadSpeedLimit): New function.
  14649. (setStartupIdleTime): New function.
  14650. (setLowestDownloadSPeedLimit): New function.
  14651. * src/BtContext.h
  14652. (getPieceHashes): New function.
  14653. * src/main.cc
  14654. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  14655. option to true for testing purpose.
  14656. * src/BtPieceMessage.cc
  14657. (checkPieceHash): Use messageDigest
  14658. * src/DownloadEngine.cc
  14659. (SetDescriptor): Removed.
  14660. (AccumulateActiveCommand): Removed.
  14661. (waitData): Rewritten.
  14662. (updateFdSet): Rewritten.
  14663. * src/MultiDiskAdaptor.cc
  14664. (hashUpdate): Added ctx.
  14665. (sha1Sum): Renamed as messageDigest.
  14666. (messageDigest): New function.
  14667. * src/BitfieldMan.h
  14668. (isBitRangeSet): New function.
  14669. (unsetBitRange): New function.
  14670. * src/ByteArrayDiskWriter.h
  14671. (sha1Sum): Renamed as messageDigest.
  14672. (messageDigest): New function.
  14673. * src/ConsoleDownloadEngine.cc
  14674. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  14675. * src/DiskWriter.h
  14676. (messageDigest.h): New include.
  14677. (sha1Sum): Renamed as messageDigest.
  14678. (messageDigest): New function.
  14679. * src/ChunkChecksumValidator.h: New class.
  14680. * src/DiskAdaptorWriter.h: New class.
  14681. * src/prefs.h
  14682. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  14683. (PREF_CHECK_INTEGRITY): New definition.
  14684. * src/HttpResponseCommand.cc
  14685. (handleDefaultEncoding): Added method "HEAD" handling.
  14686. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14687. (handleOtherEncoding):
  14688. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  14689. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  14690. startupIdleTime, lowestDownloadSpeedLimit to command.
  14691. * src/SegmentMan.h
  14692. (getSegmentEntryByIndex): New function.
  14693. (getSegmentEntryByCuid): New function.
  14694. (getSegmentEntryIteratorByCuid): New function.
  14695. (diskWriter): DiskWriter -> DiskWriterHandle
  14696. (pieceHashes): New variable.
  14697. (chunkHashLength): New variable.
  14698. (digestAlgo): New variable.
  14699. (FindPeerStat): Removed.
  14700. (getPeerStat): Rewritten.
  14701. (markAllPiecesDone): New function.
  14702. (checkIntegrity): New function.
  14703. (tryChunkChecksumValidation): New function.
  14704. (isChunkChecksumValidationReady): New function.
  14705. * src/BitfieldMan.cc
  14706. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  14707. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  14708. blocks to 0.
  14709. (isBitRangeSet): New function.
  14710. (unsetBitRange): New function.
  14711. * src/FtpNegotiateCommand.cc
  14712. (executeInternal): Set maxDownloadSpeedLimit,
  14713. startupIdleTime, lowestDownloadSpeedLimit to command.
  14714. (recvSize): Added method "HEAD" handling.
  14715. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14716. * src/AbstractSingleDiskAdaptor.cc
  14717. (sha1Sum): Renamed as messageDigest.
  14718. (messageDigest): New function.
  14719. * src/AbstractSingleDiskAdaptor.h
  14720. (sha1Sum): Renamed as messageDigest.
  14721. (messageDigest): New function.
  14722. * src/Util.h
  14723. (indexRange): New function.
  14724. * src/MetalinkEntry.cc
  14725. (MetalinkEntry): Initialized chunkChecksum to 0.
  14726. * src/ShaVisitor.cc
  14727. (~ShaVisitor): Removed the call to ctx.digestFree().
  14728. * src/SegmentMan.cc
  14729. (ChunkChecksumValidator.h): New include.
  14730. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  14731. to DIGEST_ALGO_SHA1.
  14732. (~SegmentMan): Removed diskWriter.
  14733. (FindSegmentEntryByIndex): Removed.
  14734. (FindSegmentEntryByCuid): Removed.
  14735. (checkoutSegment): Rewritten.
  14736. (findSlowerSegmentEntry): Rewritten.
  14737. (getSegment): Rewritten.
  14738. (updateSegment): Rewritten.
  14739. (completeSegment): Rewritten.
  14740. (markAllPiecesDone): New function.
  14741. (checkIntegrity): New function.
  14742. (isChunkChecksumValidationReady): New function.
  14743. (tryChunkChecksumValidation): New function.
  14744. * src/Xml2MetalinkProcessor.cc
  14745. (getEntry): Get size and set it to entry.
  14746. Get chunk checksum and set it to entry.
  14747. (getPieceHash): New function.
  14748. * src/Util.cc
  14749. (sha1Sum): Removed ctx.digestFree()
  14750. (fileChecksum): Removed ctx.digestFree()
  14751. (indexRange): New function.
  14752. * src/Request.cc
  14753. (METHOD_GET): New variable.
  14754. (METHOD_HEAD): New variable.
  14755. (Request): Added method.
  14756. * src/UrlRequestInfo.cc
  14757. (FatalException.h): New include.
  14758. (message.h): New include.
  14759. (operator<<): Added operator<< for class HeadResult.
  14760. (getHeadResult): New function.
  14761. (execute): Get filename and size in separate download engine.
  14762. * src/ChunkChecksumValidator.cc: New class.
  14763. * src/DownloadCommand.cc:
  14764. (DownloadCommand): Added peerStat.
  14765. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14766. the value from Option.
  14767. The buffer size is now 16KB.
  14768. Use peerStat member instead of getting it from SegmentMan.
  14769. Use startupIdleTime member instead of gettingit from Option.
  14770. Added chunk checksum validation.
  14771. * src/AbstractDiskWriter.cc
  14772. (AbstractDiskWriter): Removed ctx.
  14773. (~AbstractDiskWriter): Removed ctx.digestFree()
  14774. (writeDataInternal): Returns the return value of write.
  14775. (readDataInternal): Returns the return value of read.
  14776. (sha1Sum): Renamed as messageDigest
  14777. (messageDigest): New function.
  14778. * src/AbstractDiwkWriter.h
  14779. (messageDigest.h): Removed include.
  14780. (ctx): Removed.
  14781. (sha1Sum): Renamed as messageDigest
  14782. (messageDigest): New function.
  14783. * src/DefaultPieceStorage.h
  14784. (markAllPiecesDone): New function.
  14785. (checkIntegrity): New function.
  14786. * src/NullFileAllocationMonitor.h: New class.
  14787. * src/MetalinkChunkChecksum.h: New class.
  14788. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14789. To decrease CPU usage in bittorrent download, calculation results in
  14790. BitfieldMan were cached and realtime fetching PeerObject was removed
  14791. with WeakHandle introduced. Option values are set to the objects
  14792. by setter before download begins.
  14793. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14794. * src/DefaultBtRequestFactory.h
  14795. (dispatcher): BtMessageDispatcherHandle ->
  14796. BtMessageDispatcherWeakHandle.
  14797. (messageFactory): New variable.
  14798. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14799. BtMessageDispatcherWeakHandle.
  14800. (setBtMessageFactory): New function.
  14801. * src/DefaultBtMessageDispatcher.cc:
  14802. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14803. from Option.
  14804. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14805. feating the value from Option.
  14806. Use messageFactory member.
  14807. * src/PeerInteractionCommand.cc
  14808. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14809. Add reverse dependencies to factory object.
  14810. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14811. dispatcher.
  14812. Set messageFactory to receiver.
  14813. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14814. btInteractive.
  14815. Set receiver to peerObject.
  14816. Set maxDownloadSpeedLimit to this.
  14817. (executeInternal): Use maxDownloadSpeedLimit member.
  14818. * src/BtChokeMessage.cc
  14819. (doReceivedAction): Use dispatcher, requestFactory member.
  14820. (onSendComplete): Use dispatcher member.
  14821. * src/PeerInteractionCommand.h
  14822. (maxDownloadSpeedLimit): New variable.
  14823. * src/DefaultBtMessageReceiver.h
  14824. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14825. (dispatcher):
  14826. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14827. (messageFactory): New variable.
  14828. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14829. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14830. (setDispatcher):
  14831. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14832. (setBtMessageFactory): New function.
  14833. * src/DefaultBtInteractive.cc
  14834. (initiateHandshake): Use messageFactory member.
  14835. (addBitfieldMessageToQueue): Use messageFactory member.
  14836. (addAllowedFastMessageToQueue): Use messageFactory member.
  14837. (decideChoking): Use messageFactory member.
  14838. (checkHave): Use messageFactory member.
  14839. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14840. (receiveMessages): Use maxDownloadSpeedLimit member.
  14841. (decideInterest): Use messageFactory member.
  14842. * src/BtRequestMessage.cc
  14843. (doReceivedAction): Use messageFactory, dispatcher member.
  14844. (onQueued): Use dispatcher member.
  14845. * src/BtPieceMessage.cc
  14846. (doReceivedAction): Use dispatcher member.
  14847. (send): Use peerConnection member.
  14848. (onWrongPiece): Use requestFactory member.
  14849. (handleChokingEvent): Use messageFactory, dispatcher member.
  14850. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14851. * src/BtMessageDispatcher.h
  14852. (BtMessageDispatcherWeakHandle): New type definition.
  14853. * src/SimpleBtMessage.cc
  14854. (send): Use peerConnection member.
  14855. * src/BtRejectMessage.cc
  14856. (doReceivedAction): Use dispatcher member.
  14857. * src/DefaultBtMessageDispatcher.h
  14858. (Option.h): Removed include.
  14859. (messageFactory): New variable.
  14860. (option): Removed.
  14861. (maxUploadSpeedLimit): New variable.
  14862. (requestTimeout): New variable.
  14863. (DefaultBtMessageDispatcher): Removed option.
  14864. Added maxUploadSpeedLimit, requestTimeout.
  14865. (setOption): Removed.
  14866. (getOption): Removed.
  14867. (setMaxUploadSpeedLimit): New function.
  14868. (setRequestTimeout): New function.
  14869. (setBtMessageFactory): New function.
  14870. * src/DefaultBtInteractive.h
  14871. (btMessageReceiver):
  14872. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14873. (dispatcher):
  14874. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14875. (btRequestFactory):
  14876. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14877. (peerConnection):
  14878. PeerConnectionHandle -> PeerConnectionWeakHandle
  14879. (messageFactory): New variable.
  14880. (option): Removed.
  14881. (keepAliveInterval): New variable.
  14882. (maxDownloadSpeedLimit): New variable.
  14883. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14884. (setBtMessageReceiver):
  14885. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14886. (setDispatcher):
  14887. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14888. (setBtRequestFactory):
  14889. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14890. (setPeerConnection):
  14891. PeerConnectionHandle -> PeerConnectionWeakHandle
  14892. (setOption): Removed.
  14893. (setKeepAliveInterval): New function.
  14894. (setMaxDownloadSpeedLimit): New function.
  14895. (setBtMessageFactory): New function.
  14896. * src/BitfieldMan.h
  14897. (cachedNumMissingBlock): New variable.
  14898. (cachedNumFilteredBlock): New variable.
  14899. (cachedCompletedLength): New variable.
  14900. (cachedFilteredComletedLength): New variable.
  14901. (cachedFilteredTotalLength): New variable.
  14902. (countMissingBlockNow): New function.
  14903. (countFilteredBlockNow): New function.
  14904. (getFilteredTotalLengthNow): New function.
  14905. (getCompletedLengthNow): New function.
  14906. (getFilteredCompletedLengthNow): New function.
  14907. (updateCache): New function.
  14908. * src/AbstractBtMessage.h
  14909. (BtMessageDispatcher.h): New include.
  14910. (PeerConnection.h): New include.
  14911. (BtRequestFactory.h): New include
  14912. (BtMessageFactory.h): New include.
  14913. (dispatcher): New variable.
  14914. (messageFactory): New variable.
  14915. (peerConnection: New variable.
  14916. (setBtMessageDispatcher): New function.
  14917. (setPeerConnection): New function.
  14918. (setBtMessageFactory): New function.
  14919. (setBtRequestFactory): New function.
  14920. * src/DefaultBtMessageFactory.cc
  14921. (setCommonProperty): Set dispatcher, requestFactory, this,
  14922. peerConnection to msg.
  14923. * src/BtRegistry.h
  14924. (BT_MESSAGE_RECEIVER): New macro.
  14925. * src/PeerConnection.h
  14926. (PeerConnectionWeakHandle): New type definition.
  14927. * src/BtMessageFactory.h
  14928. (BtMessageFactoryWeakHandle): New type definition.
  14929. * src/BitfieldMan.cc
  14930. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14931. cachedCompletedLength, cachedFilteredComletedLength,
  14932. cachedFilteredTotalLength.
  14933. Call updateCache().
  14934. (countMissingBlock): Return cachedNumMissingBlock.
  14935. (countMissingBlockNow): New function.
  14936. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14937. (countFilteredBlockNow): New function.
  14938. (setBit): Call updateCache().
  14939. (unsetBit): Call updateCache().
  14940. (setBitfield): Call updateCache().
  14941. (clearAllBit): Call updateCache().
  14942. (setAllBit): Use setBitInternal instead of setBit.
  14943. Call updateCache().
  14944. (addFilter): Call updateCache().
  14945. (enableFilter): Call updateCache().
  14946. (disableFilter): Call updateCache().
  14947. (clearFilter): Call updateCache().
  14948. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14949. (getFilteredTotalLengthNow): New function.
  14950. (getCompletedLength): Return cachedCompletedLength.
  14951. (getCompletedLengthNow): New function.
  14952. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14953. (getFilteredCompletedLengthNow): New function.
  14954. (updateCache): New function.
  14955. * src/BtMessageReceiver.h
  14956. (BtMessageReceiverWeakHandle): New type definition.
  14957. * src/DefaultBtMessageReceiver.cc
  14958. (receiveHandshake): Use messageFactory member.
  14959. (sendHandshake): Use messageFactory member.
  14960. (receiveMessage): Use messageFactory member.
  14961. * src/DefaultBtMessageFactory.h
  14962. (dispatcher): New variable.
  14963. (requestFactory): New variable.
  14964. (peerConnection): New variablle.
  14965. (setBtMessageDispatcher): New function.
  14966. (setBtRequestFactory): New function.
  14967. (setPeerConnection): New function.
  14968. * src/SharedHandle.h
  14969. (RefCount): New class.
  14970. (WeakHandle): New class.
  14971. * src/PeerObject.h
  14972. (BtMessageReceiver.h): New include.
  14973. (PeerObject): Added btMessageReceiver.
  14974. (btMessageReceiver): New variable.
  14975. * src/Util.cc
  14976. (countBit): Simplified.
  14977. * src/BtCancelMessage.cc
  14978. (doReceivedAction): Use dispatcher member.
  14979. * src/BtRequestFactory.h
  14980. (BtRequestFactoryWeakHandle): New type definition.
  14981. * src/PeerStorage.h
  14982. (downloadSpeed): int -> uint32_t
  14983. (uploadSpeed): int -> uint32_t
  14984. (sessionDownloadLength): long long int -> uint64_t
  14985. (sessionUploadLength): long long int -> uint64_t
  14986. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14987. To add RecoverableException, FatalException:
  14988. * src/AbstractCommand.cc
  14989. (onAbort): Exception -> RecoverableException
  14990. * src/PeerAbstractCommand.h
  14991. (RecoverableException.h): New include.
  14992. (onAbort): Exception -> RecoverableException.
  14993. * src/PeerInteractionCommand.cc
  14994. (onAbort): Exception -> RecoverableException.
  14995. * src/PeerAbstractCommand.cc
  14996. (execute): Exception -> RecoverableException.
  14997. (onAbort): Exception -> RecoverableException.
  14998. * src/TorrentRequestInfo.cc
  14999. (execute): Exception -> RecoverableException.
  15000. * src/MetalinkRequestInfo.cc
  15001. (execute): Exception -> RecoverableException.
  15002. * src/MetaFileUtil.cc: RecoverableException.
  15003. * src/AbstractCommand.h
  15004. (onAbort): Exception -> RecoverableException.
  15005. * src/DlRetryEx.h: Exception -> RecoverableException.
  15006. * src/DlAbortEx.h: Exception -> RecoverableException.
  15007. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  15008. * src/Util.cc: Exception -> RecoverableException.
  15009. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  15010. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  15011. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  15012. To make ID static const int
  15013. * src/BtInterestedMessage.h
  15014. (ID_t): Removed.
  15015. (ID): New variable.
  15016. (getId): Made non-const.
  15017. * src/BtPieceMessage.h
  15018. (ID_t): Removed.
  15019. (ID): New variable.
  15020. (getId): Made non-const.
  15021. * src/BtChokeMessage.h
  15022. (ID_t): Removed.
  15023. (ID): New variable.
  15024. (getId): Made non-const.
  15025. * src/BtHaveAllMessage.h
  15026. (ID_t): Removed.
  15027. (ID): New variable.
  15028. (getId): Made non-const.
  15029. * src/BtKeepAliveMessage.h
  15030. (ID_t): Removed.
  15031. (ID): New variable.
  15032. (getId): Made non-const.
  15033. * src/BtHandshakeMessage.h
  15034. (ID): New variable.
  15035. (getId): Made non-const.
  15036. * src/BtSuggestPieceMessage.h
  15037. (ID_t): Removed.
  15038. (ID): New variable.
  15039. (getId): Made non-const.
  15040. * src/BtPortMessage.h
  15041. (ID_t): Removed.
  15042. (ID): New variable.
  15043. (getId): Made non-const.
  15044. * src/AbstractBtMessage.h
  15045. (id): Removed.
  15046. (AbstractBtMessage): Removed id.
  15047. (getId): Removed.
  15048. * src/BtHaveMessage.h
  15049. (ID_t): Removed.
  15050. (ID): New variable.
  15051. (getId): Made non-const.
  15052. * src/BtAllowedFastMessage.h
  15053. (ID_t): Removed.
  15054. (ID): New variable.
  15055. (getId): Made non-const.
  15056. * src/BtCancelMessage.h
  15057. (ID_t): Removed.
  15058. (ID): New variable.
  15059. (getId): Made non-const.
  15060. * src/BtNotInterestedMessage.h
  15061. (ID_t): Removed.
  15062. (ID): New variable.
  15063. (getId): Made non-const.
  15064. * src/BtChokeMessage.h
  15065. (ID_t): Removed.
  15066. (ID): New variable.
  15067. (getId): Made non-const.
  15068. * src/BtRejectMessage.h
  15069. (ID_t): Removed.
  15070. (ID): New variable.
  15071. (getId): Made non-const.
  15072. * src/BtBitfieldMessage.h
  15073. (ID_t): Removed.
  15074. (ID): New variable.
  15075. (getId): Made non-const.
  15076. * src/BtUnchokeMessage.h
  15077. (ID_t): Removed.
  15078. (ID): New variable.
  15079. (getId): Made non-const.
  15080. * src/BtRequestMessage.h
  15081. (ID_t): Removed.
  15082. (ID): New variable.
  15083. (getId): Made non-const.
  15084. * src/BtHaveMessage.h
  15085. (ID_t): Removed.
  15086. (ID): New variable.
  15087. (getId): Made non-const.
  15088. To add --force-truncate command-line option and a check whether
  15089. the file already exists:
  15090. * src/DirectDiskAdaptor.h
  15091. (getFilePath): Made virtual public.
  15092. * src/MultiDiskAdaptor.h
  15093. (File.h): New include.
  15094. (DiskWriterEntry::fileEntry): Made private.
  15095. (DiskWriterEntry::fileExists): New function.
  15096. (DiskWriterEntry::getFileEntry): New function.
  15097. (fileExists): New function.
  15098. (getFilePath): New function.
  15099. * src/TorrentRequestInfo.cc
  15100. (FatalException.h): New include.
  15101. (message.h): New include.
  15102. (RecoverableException.h): New include.
  15103. (execute): Added a check whether file is already exists or not.
  15104. * src/DiskAdaptor.h
  15105. (fileExists): New function.
  15106. (getFilePath): New function.
  15107. * src/main.cc
  15108. (showUsage): Added an explanation of --force-truncate command-line
  15109. option.
  15110. (main): Added --force-truncate command-line option.
  15111. * src/Exception.h
  15112. (setMsg): buf[256] -> buf[1024]
  15113. * src/CopyDiskWriter.h
  15114. (getFilePath): Made public virtual.
  15115. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  15116. (fileExists): New function.
  15117. * src/DownloadEngineFactory.cc
  15118. (newTorrentConsoleEngine): Don't open file here.
  15119. * src/message.h
  15120. (EX_FILE_ALREADY_EXISTS): New definition.
  15121. * src/prefs.h
  15122. (PREF_FOECE_TRUNCATE): New definition.
  15123. * src/HttpResponseCommand.cc
  15124. (handleDefaultEncoding): Added a check whether the file already exists.
  15125. * src/SegmentMan.h
  15126. (fileExists): New function.
  15127. (shouldCancelDownloadForSafety): New function.
  15128. * src/FtpNegotiateCommand.cc
  15129. (recvSize): Added a check whether the file already exists.
  15130. * src/AbstractSingleDiskAdaptor.cc
  15131. (File.h): New include.
  15132. (fileExists): New function.
  15133. * src/AbstractSingleDiskAdaptor.h
  15134. (getFilePath): Removed.
  15135. (fileExists): New function.
  15136. * src/SegmentMan.cc
  15137. (fileExists): New function.
  15138. (shouldCancelDownloadForSafety): New function.
  15139. To fix regression bug in torrent downloading:
  15140. * src/DefaultBtRequestFactory.cc
  15141. (doChokedAction): New function.
  15142. * src/DefaultBtRequestFactory.h
  15143. (doChokedAction): New function.
  15144. * src/DefaultBtMessageDispatcher.cc
  15145. (doChokedAction): Do not delete request if its target is in allowed
  15146. fast set.
  15147. * src/DefaultBtInteractive.cc
  15148. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  15149. (sendKeepAlive): Send keep alive message even if the outgoing message
  15150. queue is not empty.
  15151. (decideInterest): Simplified the code.
  15152. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  15153. it is already called when BtChokeMessage is received from a peer.
  15154. * src/BtRequestFactory.h
  15155. (doChokedAction): New function.
  15156. To clean up code:
  15157. * src/PeerInteractionCommand.h
  15158. (executeInternal): Added virtual keyword explicitly.
  15159. (prepareForRetry): Added virtual keyword explicitly.
  15160. (prepareForNextPeer): Added virtual keyword explicitly.
  15161. (onAbort): Added virtual keyword explicitly.
  15162. * src/RequestSlot.cc
  15163. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  15164. * src/BtPieceMessage.cc
  15165. (doReceivedAction): Added a debug log of piece's bitfield.
  15166. * src/Piece.h
  15167. (getBitfieldLength): New function.
  15168. * src/ByteArrayDiskWriter.cc
  15169. (clear): Added buf = 0 to avoid double free corruption.
  15170. * src/FileAllocator.cc
  15171. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  15172. Added cp.reset().
  15173. * src/BitfieldMan.h
  15174. (operator=): Rewritten.
  15175. * src/BitfieldMan.cc
  15176. (BitfieldMan): Initialized bitfield, useBitfield.
  15177. * src/PeerConnection.cc
  15178. (receiveMessage): Added a call to socket->readable() after getting
  15179. message length to avoid possible EOF.
  15180. * src/Util.cc
  15181. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  15182. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15183. To add an ability to pre-allocate file space:
  15184. * src/DirectDiskAdaptor.h: Rewritten.
  15185. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  15186. * src/MultiDiskAdaptor.h: Rewritten.
  15187. * src/DefaultPieceStorage.cc
  15188. (MultiDiskWriter.h): Removed include.
  15189. (PreAllocationDiskWriter.h): Removed include.
  15190. (FileAllocationMonitor.h): New include.
  15191. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  15192. (initStorage): Rewritten.
  15193. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15194. * src/FileAllocator.h: New class.
  15195. * src/FileAllocator.cc: New class.
  15196. * src/FileAllocationMonitor.h: New class.
  15197. * src/FileAllocationMonitor.cc: New class.
  15198. * src/ConsoleFileAllocationMonitor.h: New class.
  15199. * src/ConsoleFileAllocationMonitor.cc: New class.
  15200. * src/AbstractSingleDiskAdaptor.h: New class.
  15201. * src/AbstractSingleDiskAdaptor.cc: New class.
  15202. * src/DiskAdaptor.h
  15203. (Directory.h): Removed include.
  15204. (DiskWriter.h): Removed include.
  15205. (FileEntry.h): Removed include.
  15206. (diskWriter): Removed.
  15207. (DiskAdaptor): Removed diskWriter.
  15208. (openFile): Made pure virtual.
  15209. (closeFile): Made pure virtual.
  15210. (openExistingFile): Made pure virtual.
  15211. (initAndOpenFile): Made pure virtual.
  15212. (writeData): Made pure virtual.
  15213. (readData): Made pure virtual.
  15214. (sha1Sum): Made pure virtual.
  15215. (getStoreDir): Returns const reference of storeDir.
  15216. (DiskAdaptorHandle): New type definition.
  15217. * src/main.cc
  15218. (ConsoleFileAllocationMonitor.h): New include.
  15219. (showUsage): Added default value description of -s option.
  15220. Added the description of --file-allocation option.
  15221. (main): Set default value of --file-allocation option to 'none'.
  15222. Added --file-allocation command-line option.
  15223. Setup FileAllocationMonitorFactory.
  15224. * src/FtpInitiateConnectionCommand.cc
  15225. (executeInternal): Removed diskWriter related processing, which was
  15226. moved to FtpNegotiationCommand.cc.
  15227. * src/DirectDiskAdaptor.cc
  15228. (getFilePath): Made non-const.
  15229. * src/CopyDiskAdaptor.h
  15230. (DiskAdaptor.h): Removed include.
  15231. (DiskWriter.h): Removed include.
  15232. (AbstractSingleDiskAdaptor.h): New include.
  15233. (getFilePath): Made non-const. Added virtual keyword.
  15234. (CopyDiskAdaptor): Removed diskWriter.
  15235. (getTempFile): Returns const reference.
  15236. (CopyDiskAdaptorHandle): New type definition.
  15237. * src/ByteArrayDiskWriter.cc
  15238. (clear): Simplified.
  15239. (initAndOpenFile): Rewritten.
  15240. (openFile): Call initAndOpenFile()
  15241. * src/MultiDiskAdaptor.cc: Rewritten.
  15242. * src/DownloadEngineFactory.cc
  15243. (FileAllocator.h): New include.
  15244. (FileAllocationMonitor.h): New include.
  15245. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  15246. create DefaultDiskWriter with file allocator.
  15247. * src/DiskWriter.h
  15248. (initAndOpenFile): Added totalLength argument.
  15249. (openFile): Added totalLength argument.
  15250. * src/prefs.h
  15251. (PREF_FILE_ALLOCATION): New definition.
  15252. (V_PREALLOC): New definition.
  15253. (V_NONE): New definition.
  15254. * src/HttpResponseCommand.cc
  15255. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  15256. size.
  15257. * src/FtpNegotiateCommand.cc
  15258. (Util.h): New include.
  15259. (recvSize): Open file here.
  15260. * src/Util.h
  15261. (ullitos): New function.
  15262. * src/CopyDiskWriter.h
  15263. (getFilePath): Made non-const.
  15264. * src/DefaultDiskWriter.h
  15265. (Option.h): New include.
  15266. (totalLength): Removed.
  15267. (DefaultDiskWriter): Removed totalLength.
  15268. (initAndOpenFile): Added totalLength argument.
  15269. (DefaultDiskWriterHandle): New type definition.
  15270. (createNewDiskWriter): New function.
  15271. * src/Util.cc
  15272. (ullitos): New function.
  15273. * src/DefaultDiskWriter.cc
  15274. (message.h): New include.
  15275. (FileAllocator.h): New include.
  15276. (prefs.h): New include.
  15277. (Util.h): New include.
  15278. (DefaultDiskWriter): Removed totalLength.
  15279. (initAndOpenFile): Added file allocation.
  15280. (createNewDiskWriter): New function. Just for temporary solution.
  15281. It will be rewritten later.
  15282. * src/DiskAdaptor.cc
  15283. (DiskAdaptor): Removed diskWriter.
  15284. * src/AbstractDiskWriter.cc
  15285. (LogFactory.h): New include.
  15286. (AbstractDiskWriter): Added fileAllocator, logger.
  15287. (openFile): Added totalLength argument.
  15288. * src/AbstractDiskWriter.h
  15289. (FileAllocator.h): New include.
  15290. (Logger.h): New include.
  15291. (fileAllocator): New variable.
  15292. (logger): New variable.
  15293. (openFile): Added totalLength argument. Added virtual keyword
  15294. explicitly.
  15295. (openExistingFile): Added totalLength argument. Added virtual keyword
  15296. explicitly.
  15297. (closeFile): Added virtual keyword explicitly.
  15298. (sha1Sum): Added virtual keyword explicitly.
  15299. (writeData): Added virtual keyword explicitly.
  15300. (readData): Added virtual keyword explicitly.
  15301. (setFileAllocator): New function.
  15302. * src/DefaultPieceStorage.h
  15303. (FileAllocator.h): New include.
  15304. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15305. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15306. * src/FileProgressMonitor.h: New class.
  15307. To compile aria2 on PC-BSD:
  15308. * src/DefaultBtContext.cc
  15309. (libgen.h): New include.
  15310. To fix memory leak:
  15311. * src/Exception.h
  15312. (~Exception): Delete cause. Fixed memory leak.
  15313. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15314. Rewritten a portion of bittorrent implementation:
  15315. * src/BtMessageValidator.h: New class.
  15316. * src/BtBitfieldMessageValidator.h: New class.
  15317. * src/BtHandshakeMessageValidator.h: New class.
  15318. * src/BtRequestMessageValidator.h: New class.
  15319. * src/BtSuggestPieceMessageValidator.h: New class.
  15320. * src/BtAllowedFastMessageValidator.h: New class.
  15321. * src/BtRejectMessageValidator.h: New class.
  15322. * src/BtCancelMessageValidator.h: New class.
  15323. * src/BtPieceMessageValidator.h: New class.
  15324. * src/BtHaveMessageValidator.h: New class.
  15325. * src/BtEventListener.h: New class.
  15326. * src/AbstractBtEventListener.h: New class.
  15327. * src/BtEvent.h: New class.
  15328. * src/BtChokingEvent.h: New class.
  15329. * src/BtChokedEvent.h: New class.
  15330. * src/BtCancelSendingPieceEvent.h: New class.
  15331. * src/BtAbortOutstandingRequestEvent.h: New class.
  15332. * src/Randomizer.h: New class.
  15333. * src/SimpleRandomizer.h: New class.
  15334. * src/BtMessage.h: New class.
  15335. * src/AbstractBtMessage.h: New class.
  15336. * src/SimpleBtMessage.h: New class.
  15337. * src/BtHaveMessage.h: New class.
  15338. * src/BtInterestedMessage.h: New class.
  15339. * src/BtAllowedFastMessage.h: New class.
  15340. * src/BtUnchokeMessage.h: New class.
  15341. * src/BtCancelMessage.h: New class.
  15342. * src/BtNotInterestedMessage.h: New class.
  15343. * src/BtChokeMessage.h: New class.
  15344. * src/BtHaveNoneMessage.h: New class.
  15345. * src/BtHandshakeMessage.h: New class.
  15346. * src/BtSuggestPieceMessage.h: New class.
  15347. * src/BtHaveMessage.h: New class.
  15348. * src/BtPieceMessage.h: New class.
  15349. * src/BtHaveAllMessage.h: New class.
  15350. * src/BtKeepAliveMessage.h: New class.
  15351. * src/BtPortMessage.h: New class.
  15352. * src/BtRejectMessage.h: New class.
  15353. * src/BtBitfieldMessage.h: New class.
  15354. * src/BtRequestMessage.h: New class.
  15355. * src/DefaultBtRequestFactory.h: New class.
  15356. * src/DefaultBtMessageReceiver.h: New class.
  15357. * src/BtInteractive.h: New class.
  15358. * src/BtMessageDispatcher.h: New class.
  15359. * src/DefaultBtMessageDispatcher.h: New class.
  15360. * src/DefaultBtInteractive.h: New class.
  15361. * src/BitfieldManFactory.h: New class.
  15362. * src/HandleRegistry.h: New class.
  15363. * src/BtMessageFactory.h: New class.
  15364. * src/BtMessageReceiver.h: New class.
  15365. * src/DefaultBtMessageFactory.h: New class.
  15366. * src/PeerObject.h: New class.
  15367. * src/BtRequestFactory.h: New class.
  15368. * src/SuggestPieceMessage.h: Removed.
  15369. * src/PortMessage.h: Removed.
  15370. * src/SuggestPieceMessage.h: Removed.
  15371. * src/KeepAliveMessage.h: Removed.
  15372. * src/HandshakeMessage.h: Removed.
  15373. * src/PeerInteraction.h: Removed.
  15374. * src/UnchokeMessage.h: Removed.
  15375. * src/PieceMessage.h: Removed.
  15376. * src/RequestMessage.h: Removed.
  15377. * src/InterestedMessage.h: Removed.
  15378. * src/HaveMessage.h: Removed.
  15379. * src/CancelMessage.h: Removed.
  15380. * src/RejectMessage.h: Removed.
  15381. * src/AllowedFastMessage.h: Removed.
  15382. * src/HaveNoneMessage.h: Removed.
  15383. * src/SimplePeerMessage.h: Removed.
  15384. * src/HaveAllMessage.h: Removed.
  15385. * src/BitfieldMessage.h: Removed.
  15386. * src/PeerMessageFactory.h: Removed.
  15387. * src/NotInterestedMessage.h: Removed.
  15388. * src/ChokeMessage.h: Removed.
  15389. * src/PeerMessage.h: Removed.
  15390. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15391. To know root cause of exception:
  15392. * src/Exception.h
  15393. (cause): New variable.
  15394. (Exception): Added a parameter.
  15395. (getMsg): Return const reference to msg.
  15396. (getCause): New function.
  15397. * src/DlRetryEx.h
  15398. (DlRetryEx): Added a parameter 'cause'.
  15399. Added an overloaded constructor.
  15400. (DlAbortEx): Added a parameter 'cause'.
  15401. Added an overloaded constructor.
  15402. * src/SimpleLogger.cc
  15403. (writeLog): Log nested exception messages recursively.
  15404. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15405. * src/DefaultBtProgressInfoFile.cc
  15406. (load): Fixed memory leak when the infohash doesn't match.
  15407. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15408. * src/DefaultPeerStorage.cc
  15409. (calculateStat): Simplified the code by combining 2 loops into 1.
  15410. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15411. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  15412. for BitTorrent download:
  15413. * src/PeerAbstractCommand.cc
  15414. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  15415. * src/main.cc:
  15416. (timeoutSpecified): Removed.
  15417. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  15418. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  15419. * src/TorrentRequestInfo.cc
  15420. (timeoutSpecified): Removed.
  15421. (torrentHandler): Removed timeoutSpecified and the adjustment of
  15422. timeout value.
  15423. * src/prefs.h
  15424. (PREF_BT_TIMEOUT): New definition.
  15425. Delete unused variables:
  15426. * src/TorrentRequestInfo.cc
  15427. (requestInfo): Removed.
  15428. Move setSignalHander to Util::setGlobalSignalHandler:
  15429. * src/TorrentRequestInfo.cc:
  15430. setSignalHander -> Util::setGlobalSignalHandler
  15431. * src/main.cc
  15432. (setSignalHander): Removed.
  15433. (main): setSignalHander -> Util::setGlobalSignalHandler
  15434. * src/Util.h
  15435. (setGlobalSignalHandler): New function.
  15436. * src/Util.cc
  15437. (setGlobalSignalHandler): New function.
  15438. * src/UrlRequestInfo.cc:
  15439. setSignalHander -> Util::setGlobalSignalHandler
  15440. Reset peer status in order to exit gracefully:
  15441. * src/PeerAbstractCommand.cc
  15442. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  15443. To fix the bug that causes the number of bytes uploaded is not saved
  15444. to .aria2 file:
  15445. * src/DefaultPeerStorage.h
  15446. (removedPeerSessionDownloadLength): New variable.
  15447. (removedPeerSessionUploadLength): New variable.
  15448. * src/DefaultPeerStorage.cc
  15449. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  15450. removedPeerSessionUploadLength(0).
  15451. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  15452. through all peers, and then add removedPeerSessionDownloadLength(
  15453. removedPeerSessionUploadLength) to it.
  15454. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  15455. (to) the peer to removedPeerSessionDownloadLength
  15456. (removedPeerSessionUploadLength).
  15457. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15458. To add Metalink location option:
  15459. * src/MetalinkRequestInfo.cc
  15460. (execute): Call MetalinkEntry::setLocationPreference()
  15461. * src/main.cc
  15462. (showUsage): Added the help message for --metalink-location option.
  15463. (main): Added --metalink-location option.
  15464. * src/prefs.h
  15465. (PREF_METALINK_LOCATION): New definition.
  15466. * src/MetalinkEntry.cc
  15467. (AddLocationPreference): New function object.
  15468. (setLocationPreference): New function.
  15469. * src/Xml2MetalinkProcessor.cc
  15470. (getResource): Set location attribute to MetalinkResource
  15471. To show URLs to download
  15472. * src/UrlRequestInfo.h
  15473. (printUrls): New function.
  15474. To add multiple <file> Metalink support:
  15475. * src/MetalinkEntry.h
  15476. (MetalinkResources): Removed.
  15477. (setLocationPreference): New function.
  15478. (MetalinkEntryHandle): New type definition.
  15479. (MetalinkEntries): New type definition.
  15480. * src/Xml2MetalinkProcessor.h
  15481. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15482. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15483. (parseFile): Metalinker* -> MetalinkerHandle
  15484. * src/UrlRequestInfo.h
  15485. (execute): RequestInfo* -> RequestInfos
  15486. * src/MetalinkRequestInfo.cc
  15487. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  15488. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  15489. (execute): RequestInfo* -> RequestInfos
  15490. Added multiple <file> support. Print filename when it is queued.
  15491. * src/MetalinkRequestInfo.h
  15492. (execute): RequestInfo* -> RequestInfos
  15493. (getDownloadEngine): Removed.
  15494. * src/RequestInfo.h
  15495. (RequestInfoHandle): New type definition.
  15496. (RequestInfos): New type definition.
  15497. (execute): RequestInfo* -> RequestInfos
  15498. (getDownloadEngine): Removed.
  15499. * src/MetalinkResource.h
  15500. (MetalinkResourceHandle): New type definition.
  15501. (MetalinkResources): New type definition.
  15502. * src/MetalinkEntry.cc
  15503. (~MetalinkEntry): Removed the deletion of the elements of resources,
  15504. because the element is now of type MetalinkResourceHandle.
  15505. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  15506. (Supported): MetalinkResource* -> MetalinkResourceHandle
  15507. (dropUnsupportedResource): Removed the deletion of the elements of
  15508. resources because the element is now of type MetalinkResourceHandle.
  15509. * src/Xml2MetalinkProcessor.cc
  15510. (parseFile): Metalinker* -> MetalinkerHandle
  15511. MetalinkEntry* -> MetalinkEntryHandle
  15512. Removed try-catch block.
  15513. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15514. MetalinkResource* -> MetalinkResourceHandle
  15515. Removed try-catch block.
  15516. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15517. Free result by using xmlXPathFreeObject()
  15518. * src/Metalinker.cc
  15519. (~Metalinker): Removed the deletion of entries.
  15520. MetalinkEntry* -> MetalinkEntryHandle
  15521. (queryEntry): Add multiple <file> Metalink support.
  15522. * src/Metalinker.h
  15523. (MetalinkEntries): Removed.
  15524. (queryEntry): MetalinkEntry* -> MetalinkEntries
  15525. * src/MetalinkProcessor.h
  15526. (parseFile): Metalinker* -> MetalinkerHandle
  15527. Bug fixes:
  15528. * src/PeerChokeCommand.cc
  15529. (execute): cat01->cat02
  15530. * src/DefaultPieceStorage.cc
  15531. (DefaultPieceStorage): Added diskAdaptor(0)
  15532. * src/TrackerWatcherComand.cc:
  15533. (execute): Use btAnnounce->noMoreAnnounce()
  15534. to determin whether the function returns true or not.
  15535. * src/TrackerUpdateCommand.cc:
  15536. (execute): Use btAnnounce->noMoreAnnounce()
  15537. to determin whether the function returns true or not.
  15538. * src/FtpConnection.cc
  15539. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  15540. This is the fix of the busy loop bug.
  15541. * src/DownloadCommand.cc
  15542. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  15543. cached PeerStat.
  15544. The value of "name" entry in torrent file is now set by
  15545. *DiskAdaptor::setTopDir(...) methods.
  15546. * src/MultiDiskAdaptor.h
  15547. (topDir): New variable.
  15548. (setTopDir): New function.
  15549. (getTopDir): New function.
  15550. * src/MultiDiskAdaptor.cc
  15551. (getFilePath): Concat storDir, "/" and topDir.
  15552. (mkdir): Use getFilePath() to get the directory path for output.
  15553. * src/DefaultPieceStorage.cc
  15554. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  15555. CopyDiskAdaptor.
  15556. * src/CopyDiskAdaptor.h
  15557. (topDir): New variable.
  15558. (setTopDir): New function.
  15559. (getTopDir): New function.
  15560. * src/CopyDiskAdaptor.cc
  15561. (fixFilename): Updated.
  15562. Misc
  15563. * src/UrlRequestInfo.h
  15564. (e): Removed.
  15565. (UrlRequestInfo): Removed e.
  15566. (getDownloadEngine): Removed.
  15567. * src/UrlRequestInfo.cc
  15568. (handler): Rewritten.
  15569. (printUrls): New function.
  15570. (execute): Call printUrls().
  15571. * src/HandshakeMessage.cc
  15572. (check): peerinteraction->getBtContext() -> btContext
  15573. * src/PeerInteraction.h
  15574. (getBtContext): Removed.
  15575. * src/TorrentRequestInfo.h
  15576. (execute): RequestInfo* -> RequestInfos
  15577. (getDownloadEngine): Removed.
  15578. * src/TorrentRequestInfo.cc
  15579. (haltRequested): Removed.
  15580. (btHaltRequested): New variable.
  15581. (torrentHandler): haltRequested -> btHaltRequested
  15582. (execute): RequestInfo* -> RequestInfos
  15583. * src/TorrentConsoleDownloadEngine.cc
  15584. (afterEachIteration): haltRequested -> btHaltRequested.
  15585. * src/ConsoleDownloadEngine.h
  15586. (initStatistics): Added virtual.
  15587. (calculateStatistics): Added virtual.
  15588. (onEndOfRun): Added virtual.
  15589. (afterEachIteration): Added virtual.
  15590. * src/ConsoleDownloadEngine.cc
  15591. (haltRequested): New variable.
  15592. (afterEachIteration): New function.
  15593. * src/main.cc
  15594. (requestInfo): Removed.
  15595. * src/SegmentMan.cc
  15596. (findSlowerSegmentEntry): Refactored.
  15597. * Release 0.9.0
  15598. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15599. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  15600. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  15601. * src/TorrentMan.h: Removed.
  15602. * src/TorrentMan.cc: Removed.
  15603. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  15604. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  15605. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  15606. * src/PeerAbstractCommand.cc: Use btRuntime.
  15607. * src/BtContextAwareCommand.h: New class.
  15608. * src/FileEntry.h: Added accessor methods for following variables.
  15609. (path): Made private.
  15610. (length): Made private.
  15611. (offset): Made private.
  15612. (extracted): Made private.
  15613. (requested): Made private.
  15614. (FileEntries): New definition.
  15615. (FileEntryHandle): New definition.
  15616. * src/FileEntry.cc: New file.
  15617. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  15618. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  15619. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  15620. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  15621. * src/PieceStorage.h: New file.
  15622. * src/PeerInteractionCommand.h: Use btContext.
  15623. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  15624. btRuntime.
  15625. * src/DefaultBtProgressInfoFile.h: New file.
  15626. * src/DefaultBtProgressInfoFile.cc: New file.
  15627. * src/File.cc
  15628. (Util.h): New include.
  15629. (mkdirs): New function.
  15630. * src/MultiDiskAdaptor.h
  15631. (mkdir): New function.
  15632. * src/PeerListProcessor.h
  15633. (Peers): Removed.
  15634. * src/PeerInteraction.h
  15635. (torrentMan): Removed.
  15636. (btContext): New variable.
  15637. (peerStorage): New variable.
  15638. (pieceStorage): New variable.
  15639. (btAnnounce): New variable.
  15640. (getTorrentMan): Removed.
  15641. (getBtContext): New function.
  15642. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  15643. btAnnounce.
  15644. * src/HandshakeMessage.h
  15645. (TorrentMan.h): Removed.
  15646. * src/HandshakeMessage.cc: Use btContext.
  15647. * src/DefaultBtAnnounce.cc: New file.
  15648. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  15649. * src/DefaultPieceStorage.cc: New file.
  15650. * src/DefaultBtContext.h: New file.
  15651. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  15652. Use the accessor methods of FileEntry.
  15653. * src/CookieBox.cc: Updated to use Util::slice().
  15654. * src/PieceMessage.cc: Use btContext, pieceStorage.
  15655. * src/common.h (SharedHandle.h): New include.
  15656. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  15657. pieceStorage.
  15658. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  15659. * src/DiskAdaptor.h
  15660. (topDir): Removed.
  15661. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  15662. (setTopDir): Removed.
  15663. (getTopDir): Removed.
  15664. * src/BtContext.h: New file.
  15665. * src/DefaultPeerStorage.h: New file.
  15666. * src/PieceMessage.h (TorrentMan.h): Removed.
  15667. * src/RequestMessage.h (TorrentMan.h): Removed.
  15668. * src/TorrentDownloadEngine.h
  15669. (uploadLength): New variable.
  15670. (btContext): New variable.
  15671. (btRuntime): New variable.
  15672. (pieceStorage): New variable.
  15673. (peerStorage): New variable.
  15674. (btAnnounce): New variable.
  15675. (btProgressInfoFile): New variable.
  15676. (torrentMan): Removed.
  15677. (setBtContext): New function.
  15678. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  15679. peerStorage, btAnnounce, btProgressInfoFile.
  15680. * src/Piece.h
  15681. (toString): New function.
  15682. (Pieces): New type definition.
  15683. * src/Peer.h
  15684. (active): New variable.
  15685. (Peer): Added active.
  15686. (activate): Set active to true.
  15687. (deactivate): Set active to false.
  15688. (isActive): New function.
  15689. (Peers): New type definition.
  15690. * src/DirectDiskAdaptor.cc
  15691. (getFilePath): Use the accessor methods of FileEntry.
  15692. * src/TorrentConsoleDownloadEngine.h
  15693. (afterEachIteration): New function.
  15694. * src/TorrentConsoleDownloadEngine.cc
  15695. (haltRequested): New variable.
  15696. (sendStatistics): Use pieceStorage, btRuntime.
  15697. (afterEachIteration): New function.
  15698. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  15699. * src/Directry.h
  15700. (Directory): New function.
  15701. (DirectoryHandle): New type definition.
  15702. * src/BtProgressInfoFile.h: New file.
  15703. * src/RequestMessage.cc: Use pieceStorage.
  15704. * src/BtRuntime.h: New file.
  15705. * src/DefaultBtContext.cc: New file.
  15706. * src/BitfieldMan.h
  15707. (getCompletedLength): New function(private).
  15708. (getCompletedLength): New function.
  15709. (getFilteredCompletedLength): New function.
  15710. * src/BitfieldMan.h
  15711. (getCompletedLength): New function(private).
  15712. (getCompletedLength): New function.
  15713. (getFilteredCompletedLength): New function.
  15714. * src/MultiDiskAdaptor.cc
  15715. (mkdir): New function.
  15716. (openFile): Call mkdir().
  15717. (initAndOpenFile): Call mkdir().
  15718. * src/CancelMessage.h
  15719. (TorrentMan.h): Removed.
  15720. * src/RejectMessage.h
  15721. (TorrentMan.h): Removed.
  15722. * src/DownloadEngineFactory.cc
  15723. (DefaultPieceStorage.h): New include.
  15724. (DefaultPeerStorage.h): New include.
  15725. (DefaultBtAnnounce.h): New include.
  15726. (DefaultBtProgressInfoFile.h): New include.
  15727. (newTorrentConsoleEngine): Rewritten.
  15728. * src/ShareRatioSeedCriteria.h
  15729. (torrentMan): Removed.
  15730. (btContext): New variable.
  15731. (peerStorage): New variable.
  15732. (btRuntime): New variable.
  15733. (evaluate): Use btContext, btRuntime, peerStorage.
  15734. * src/AnnounceTier.h: New file.
  15735. * src/BtAnnounce.h: New file.
  15736. * src/BtRegistry.h: New file.
  15737. * src/PeerInitiateConnectionCommand.h: Added btContext.
  15738. * src/PeerConnection.h (TorrentMan.h): Removed.
  15739. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  15740. * src/Util.h
  15741. (slice): Added an argument.
  15742. * src/Util.cc
  15743. (slice): Added an argument to control whether trim is made or not.
  15744. * src/PeerStorage.h: New file.
  15745. * src/BtRegistry.cc: New file.
  15746. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  15747. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  15748. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  15749. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  15750. * src/TorrentRequestInfo.h
  15751. (e): Removed.
  15752. (showFileEntry): Added an argument.
  15753. (getDownloadEngine): Return 0.
  15754. * src/DefaultBtAnnounce.h: New file.
  15755. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15756. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15757. * src/PeerMessageFactory.h
  15758. (btContext): New variable.
  15759. (pieceStorage): New variable.
  15760. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15761. btAnnounce.
  15762. * src/DiskAdaptor.cc
  15763. (DiskAdaptor): Removed topDir.
  15764. (~DiskAdaptor): Removed topDir.
  15765. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15766. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15767. * src/File.h (mkdirs): New function.
  15768. * src/DefaultPeerStorage): New file.
  15769. * src/DownloadEngineFactory.h
  15770. (newTorrentConsoleEngine): Use btContext.
  15771. * src/BtContextAwareCommand.cc: New file.
  15772. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15773. * src/PeerMessage.h
  15774. (btContext): New variable.
  15775. (peerStorage): New variable.
  15776. (pieceStorage): New variable.
  15777. (setBtContext): New function.
  15778. * src/Directry.cc
  15779. (Directory): New function.
  15780. (createDir): Do nothing if name.size() == 0.
  15781. * src/AnnounceList.h
  15782. (AnnounceTier): Removed.
  15783. (AnnounceTiers): Removed.
  15784. * src/DefaultPieceStorage.h: New file.
  15785. * src/Piece.cc (toString): New function.
  15786. To fix typo:
  15787. * src/main.cc (showVersion): Fixed typo.
  15788. To fix compile warning:
  15789. * src/DelegatingPeerListProcessor.cc
  15790. (canHandle): Added "return false".
  15791. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15792. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15793. make the process of announce request testable.
  15794. * src/TrackerWatcherCommand.h
  15795. (TimeA2.h): Removed.
  15796. (interval): Removed.
  15797. (checkPoint): Removed.
  15798. (createRequestCommand): Added an argument 'url'.
  15799. (TrackerWatherCommand): Removed interval.
  15800. (createCommand): New function.
  15801. * src/DownloadEngineFactory.cc
  15802. (newTorrentConsoleEngine): Updated according to the changes in
  15803. TrackerWatherCommand.
  15804. * src/TorrentMan.cc
  15805. (DelegatingPeerListProcessor.h): New includes.
  15806. (TorrentMan): Added the initialization of announceInterval.
  15807. (isStoppedAnnounceReady): New function.
  15808. (isCompletedAnnounceReady): New function.
  15809. (isDefaultAnnounceReady): New function.
  15810. (isAnnounceReady): New function.
  15811. (getAnnounceUrl): New function.
  15812. (announceStart): New function.
  15813. (announceFailure): New function.
  15814. (announceSuccess): New function.
  15815. (isAllAnnounceFailed): New function.
  15816. (resetAnnounce): New function.
  15817. (processAnnounceResponse): New function.
  15818. (needMorePeerConnection): New function.
  15819. (noMoreAnnounce): New function.
  15820. * src/TrackerUpdateCommand.h
  15821. (getTrackerResponse): int->size_t
  15822. * src/TorrentMan.h
  15823. (isStoppedAnnounceReady): New function.
  15824. (isCompletedAnnounceReady): New function.
  15825. (isDefaultAnnounceReady): New function.
  15826. (announceInterval): New variable.
  15827. (isAnnounceReady): New function.
  15828. (getAnnounceUrl): New function.
  15829. (announceStart): New function.
  15830. (announceFailure): New function.
  15831. (announceSuccess): New function.
  15832. (isAllAnnounceFailed): New function.
  15833. (resetAnnounce): New function.
  15834. (processAnnounceResponse): New function.
  15835. (needMorePeerConnection): New function.
  15836. (noMoreAnnounce): New function.
  15837. * src/TrackerWatcherCommand.cc
  15838. (TrackerWatherCommand): Removed interval and checkPoint.
  15839. (execute): Rewritten.
  15840. (createCommand): New function.
  15841. (createRequestCommand): Rewritten.
  15842. * src/TrackerUpdateCommand.cc
  15843. (MetaFileUtil.h): Removed.
  15844. (DelegatingPeerListProcessor.h): Removed.
  15845. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15846. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15847. Request -> RequestHandle:
  15848. * src/HttpResponseCommand.h: Request->RequestHandle
  15849. * src/AbstractCommand.cc: Request->RequestHandle
  15850. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15851. * src/HttpRequestCommand.cc: Request->RequestHandle
  15852. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15853. * src/AbstractCommand.h: Request->RequestHandle
  15854. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15855. * src/HttpResponseCommand.cc: Request->RequestHandle
  15856. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15857. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15858. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15859. * src/HttpConnection.h: Request->RequestHandle
  15860. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15861. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15862. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15863. * src/DownloadCommand.h: Request->RequestHandle
  15864. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15865. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15866. * src/HttpRequestCommand.h: Request->RequestHandle
  15867. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15868. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15869. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15870. * src/HttpDownloadCommand.h: Request->RequestHandle
  15871. * src/FtpConnection.cc: Request->RequestHandle
  15872. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15873. * src/UrlRequestInfo.cc: Request->RequestHandle
  15874. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15875. * src/HttpConnection.h: Request->RequestHandle
  15876. * src/DownloadCommand.cc: Request->RequestHandle
  15877. * src/FtpConnection.h: Request->RequestHandle
  15878. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15879. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15880. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15881. * src/Request.h
  15882. (SharedHandle.h): New include.
  15883. (RequestHandle): New type definition.
  15884. (Requests): Redefined.
  15885. To add MULTITRACKER support:
  15886. * src/TrackerWatcherCommand.h
  15887. (createRequestCommand): New function.
  15888. * src/DownloadEngineFactory.cc
  15889. (newTorrentConsoleEngine): Removed req.
  15890. * src/prefs.h
  15891. (PREF_TRACKER_MAX_TRIES): New definition.
  15892. * src/TorrentMan.cc
  15893. (TorrentMan): Removed req. Added trackerNumTry.
  15894. (~TorrentMan): Removed req.
  15895. (setupInternal1): Added announceList.
  15896. * src/TorrentRequestInfo.cc
  15897. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15898. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15899. * src/main.cc
  15900. (main): Added PREF_TRACKER_MAX_TRIES.
  15901. * src/TorrentMan.h
  15902. (Request.h): Removed.
  15903. (AnnounceList.h): New include.
  15904. (trackerNumTry): New variable.
  15905. (req): Removed.
  15906. (announceList): New variable.
  15907. * src/TrackerWatcherCommand.cc
  15908. (execute): Rewritten.
  15909. (createRequestCommand): New function.
  15910. * src/TrackerUpdateCommand.cc
  15911. (execute): Updated with the use of AnnounceList.
  15912. * src/AnnounceList.cc: New class.
  15913. * src/AnnounceList.h: New class.
  15914. To fix typo:
  15915. * src/prefs.h
  15916. (PREF_MAX_TRIES): max_try->max_tries
  15917. To not to decode "+" as space in URL decode:
  15918. * src/Util.cc
  15919. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15920. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15921. To add timeout to async name resolution:
  15922. * src/AbstractCommand.h
  15923. (nameResolveFinished): New function. This is not elegant way. It needs
  15924. to be more refined.
  15925. (nameResolverCheck): New variable.
  15926. * src/AbstractCommand.cc
  15927. (AbstractCommand): Added nameResolverCheck.
  15928. (execute): Added the check whether the name resolution has finished.
  15929. (setNameResolverCheck): Set nameResolverCheck to true.
  15930. (disableNameResolverCheck): Set nameResolverCheck to false.
  15931. (nameResolverFinished): New function.
  15932. * src/FtpInitiateConnectionCommand.h
  15933. (nameResolverFinished): New function.
  15934. * src/FtpInitiateConnectionCommand.cc
  15935. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15936. * src/HttpInitiateConnectionCommand.h
  15937. (nameResolverFinished): New function.
  15938. * src/HttpInitiateConnectionCommand.cc
  15939. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15940. * src/prefs.h
  15941. (PREF_DNS_TIMEOUT): New definition.
  15942. * src/main.cc
  15943. (main): Added PREF_DNS_TIMEOUT.
  15944. To add the support for a non-compact response from a tracker:
  15945. * src/PeerListProcessor.h: New class.
  15946. * src/DefaultPeerListProcessor.h: New class.
  15947. * src/DefaultPeerListProcessor.cc: New class.
  15948. * src/CompactPeerListProcessor.h: New class.
  15949. * src/CompactPeerListProcessor.cc: New class.
  15950. * src/DelegatingPeerListProcessor.h: New class.
  15951. * src/DelegatingPeerListProcessor.cc: New class.
  15952. * src/TorrentMan.cc
  15953. (addPeer): New function(overload).
  15954. (addPeer): Delete unused peers only when new peer is added.
  15955. * src/TorrentMan.h
  15956. (PeerListProcessor.h): Included.
  15957. (Peers): Removed.
  15958. (addPeer): New function(overload).
  15959. * src/TrackerUpdateCommand.cc
  15960. (netinet/in.h): Removed.
  15961. (DelegatingPeerListProcessor.h): Included.
  15962. (execute): Updated to use DelegatingPeerListProcessor.
  15963. To fix the memory leak in TorrentMan::peers:
  15964. * src/PeerAbstractCommand.cc
  15965. (onAbort): Added peer->resetStatus().
  15966. * src/Peer.h
  15967. (resetStatus): Made public.
  15968. To improve the precision of the speed calculation:
  15969. * src/SpeedCalc.h
  15970. (nextInterval): New variable.
  15971. * src/SpeedCalc.cc
  15972. (reset): Added nextInterval.
  15973. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15974. (changeSw): Set nextInterval to 15 seconds relative to the current
  15975. instant time.
  15976. * src/main.cc
  15977. (showVersion): Updated.
  15978. (showUsage): Updated.
  15979. * Release 0.8.1
  15980. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15981. * src/main.cc
  15982. (showUsage): Commented out --min-segment-size option.
  15983. (main): Commented out --min-segment-size option.
  15984. * Release 0.8.0
  15985. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15986. * src/*.{h,cc}:
  15987. Added an exception to the license which allows linking with OpenSSL.
  15988. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15989. * src/AbstractCommand.cc
  15990. (execute): Check whether the download has finished before checking
  15991. socket status.
  15992. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15993. Do not exit even if no segment is available.
  15994. * src/prefs.h
  15995. (PREF_STARTUP_IDLE_TIME): New definition.
  15996. * src/PeerInteractionCommand.cc
  15997. (executeInternal): Removed max speed limit. Because it performs bad.
  15998. (receiveMessages): Added max speed limit. This was better than above,
  15999. but still a little bit to be desired. Sometimes the download speed
  16000. became much faster than I specified.
  16001. * src/SpeedCalc.h
  16002. (start): New variable.
  16003. (accumulatedLength): New variable.
  16004. (getAvgSpeed): New function.
  16005. * src/SpeedCalc.cc
  16006. (reset): Added start, accumulatedLength.
  16007. (update): Added calculation of an average speed.
  16008. (getAvgSpeed): New function.
  16009. * src/DownloadCommand.h
  16010. (sw): Removed.
  16011. * src/main.cc
  16012. (main): Added PREF_STARTUP_IDLE_TIME.
  16013. * src/PeerStat.h
  16014. (STATUS): Added REQUEST_IDLE.
  16015. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  16016. (getAvgDownloadSpeed): New function
  16017. (requestIdle): New function.
  16018. * src/SegmentMan.h
  16019. (SegmentEntryHandle): New type definition.
  16020. (SegmentEntries): Now holds SegmentEntryHandle.
  16021. (findSlowerSegmentEntry): New funtion.
  16022. * src/SegmentMan.cc
  16023. (save): Updated according to the changes in SegmentEntries.
  16024. (read): Updated according to the changes in SegmentEntries.
  16025. (FindSegmentEntryByIndex): Updated according to the changes in
  16026. SegmentEntries.
  16027. (FindSegmentEntryByCuid): Updated according to the changes in
  16028. SegmentEntries.
  16029. (checkoutSegment): Updated according to the changes in SegmentEntries.
  16030. (onNullBitfield): Updated according to the changes in SegmentEntries.
  16031. Renamed uitr as itr.
  16032. (findSlowerSegmentEntry): New function.
  16033. (getSegment): Updated according to the changes in SegmentEntries.
  16034. Added the feature that cancels the segment with slow server and fast
  16035. one takes it over.
  16036. (cancelSegment): Updated according to the changes in SegmentEntries.
  16037. (getDownloadLength): Updated according to the changes in
  16038. SegmentEntries.
  16039. (init): Assigned 0 to bitfield after deleting it.
  16040. * src/DownloadCommand.cc
  16041. (STARTUP_IDLE_TIME): Removed.
  16042. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  16043. * src/PeerChokeCommand.cc
  16044. (optUnchokingPeer): Updated according to the changes in Peer.
  16045. (ResetDelta): Removed.
  16046. (UploadFaster): Updated according to the changes in Peer.
  16047. (DownloadFaster): Updated according to the changes in Peer.
  16048. (execute): I clarify the meaning of "upload" and "download" here.
  16049. "upload" means the transfer from localhost to remote host.
  16050. "download" means the transfer from remote host to localhost.
  16051. Based on this rule, I swapped orderByUploadRate and
  16052. orderByDownloadRate.
  16053. * src/PeerInteractionCommand.cc
  16054. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  16055. (executeInternal): Removed the argument of
  16056. peerInteraction->sendMessages().
  16057. (receiveMessages): Rewritten download speed limit.
  16058. (sendKeepAlive): Removed peerInteraction->sendMessages().
  16059. * src/HttpResponseCommand.cc
  16060. (handleDefaultEncoding): If file size is unknown in torrent request,
  16061. do not call segmentMan->initBitfield() here.
  16062. Disabled persistent connection feature in torrent request.
  16063. * src/UrlRequestInfo.h
  16064. (UrlRequestInfo): Removed const qualifier from option.
  16065. * src/TorrentMan.h
  16066. (TransferStat): New class.
  16067. (deltaDownloadLength): Removed.
  16068. (deltaUploadLength): Removed.
  16069. (addDeltaDownloadLength): Removed.
  16070. (getDeltaDownloadLength): Removed.
  16071. (resetDeltaDownloadLength): Removed.
  16072. (addDeltaUploadLength): Removed.
  16073. (getDeltaUploadLength): Removed.
  16074. (resetDeltaUploadLength): Removed.
  16075. (addActivePeer): Added peer->activate().
  16076. (deleteActivePeer): Added peer->deactivate().
  16077. (calculateStat): New function.
  16078. * src/TorrentMan.cc
  16079. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  16080. (calculateStat): New function.
  16081. * src/PeerInteraction.h
  16082. (uploadLimit): Removed.
  16083. (option): New variable.
  16084. (setUploadLimit): Removed.
  16085. (getUploadSpeed): Removed.
  16086. (sendMessages): Removed the argument "currentUploadSpeed".
  16087. * src/PeerInteraction.cc
  16088. (prefs.h): Included.
  16089. (PeerInteraction): Removed uploadLimit. Added option.
  16090. (sendMessages): Rewritten upload speed limit.
  16091. (sendHandshake): Removed the argument from sendMessages().
  16092. (sendBitfield): Removed the argument from sendMessages().
  16093. * src/PeerAbstractCommand.cc
  16094. (execute): Commented out the portion of upload limit.
  16095. (onAbort): Removed peer->resetStatus().
  16096. * src/TorrentRequestInfo.cc
  16097. (timeoutSpecified): Declared extern.
  16098. (execute): Set timeout to 180 if timeout is not specified by.
  16099. command-line.
  16100. * src/PieceMessage.cc
  16101. (receivedAction): Added peer->updateDownloadLength().
  16102. Removed peer->addPeerUpload().
  16103. Removed torrentMan->addDeltaDownloadLength().
  16104. (send): Added peer->updateUploadLength().
  16105. Removed peer->addPeerDownload().
  16106. Removed torrentMan->addDeltaUploadLength().
  16107. * src/main.cc
  16108. (timeoutSpecified): New variable.
  16109. (main): Set timeoutSpecified to false.
  16110. If the command-line option "--upload-limit" is specified, then
  16111. timeoutSpecified is set to true. This option will remain in the next
  16112. release, but be deprecated in the future release.
  16113. * src/TorrentRequestInfo.h
  16114. (TorrentRequestInfo): Removed const qualifier from op.
  16115. * src/PeerStat.h
  16116. (uploadSpeed): New variable.
  16117. (PeerStat): Added default value to cuid.
  16118. (calculateUploadSpeed): New function.
  16119. (updateUploadLength): New function.
  16120. (getMaxUploadSpeed): New function.
  16121. (getAvgUploadSpeed): New function.
  16122. (reset): Added uploadSpeed. Set status to IDLE.
  16123. * src/TorrentDownloadEngine.h
  16124. (cp): Declared as Time.
  16125. (sessionDownloadLengthArray): Removed.
  16126. (sessionUploadLengthArray): Removed.
  16127. (currentCp): Removed.
  16128. (lastCalcStat): New variable
  16129. (lastElapsed): Removed.
  16130. (sessionDownloadLength): Removed.
  16131. (calculateStat): New function.
  16132. * src/TorrentDownloadEngine.cc
  16133. (initStatistics): Removed lastElapsed, cp[],
  16134. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  16135. currentCp, sessionDownloadLength.
  16136. Added cp.reset() and lastCalcStat.reset().
  16137. (calculateSpeed): Changed the name of the argument.
  16138. (calculateStatistics): Rewritten.
  16139. (calculateStat): New function.
  16140. * src/Peer.h
  16141. (PeerStat.h): Included.
  16142. (peerUpload): Removed.
  16143. (peerDownload): Removed.
  16144. (peerStat): New variable.
  16145. (sessionUploadLength): New variable.
  16146. (sessionDownloadLength): New variable.
  16147. (deltaUpload): Removed.
  16148. (deltaDownload): Removed.
  16149. (resetStatus): Made private.
  16150. (Peer): Added sessionUploadLength, sessionDownloadLength.
  16151. Removed peerUpload, peerDownload.
  16152. (updateUploadLength): New function.
  16153. (addDeltaUpload): Removed.
  16154. (updateDownloadLength): New function.
  16155. (resetDeltaUpload): Removed.
  16156. (getDeltaUpload): Removed.
  16157. (addDeltaDownload): Removed.
  16158. (calculateUploadSpeed): New function.
  16159. (resetDeltaDownload): Removed.
  16160. (getDeltaDownload): Removed.
  16161. (calculateDownloadSpeed): New function.
  16162. (getSessionUploadLength): New function.
  16163. (getSessionDownloadLength): New function.
  16164. (activate): New function.
  16165. (deactivate): New function.
  16166. (addPeerUpload): Removed.
  16167. (setPeerUpload): Removed.
  16168. (getPeerUpload): Removed.
  16169. (addPeerDownload): Removed.
  16170. (setPeerDownload): Removed.
  16171. (getPeerDownload): Removed.
  16172. * src/Peer.cc
  16173. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  16174. * src/MetalinkRequestInfo.h
  16175. (MetalinkRequestInfo): Removed const qualifier from op.
  16176. * src/RequestInfo.h
  16177. (op): Removed const qualifier.
  16178. (RequestInfo): Removed const qualifier from op.
  16179. * src/prefs.h
  16180. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  16181. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  16182. * src/PeerInteractionCommand.cc
  16183. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  16184. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  16185. * src/PeerInteraction.cc
  16186. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  16187. * src/main.cc
  16188. (showUsage): Updated the description of "--lowest-speed-limit" option.
  16189. Added the description of "--max-download-limit" option.
  16190. Removed the description of "--upload-limit" option.
  16191. Added the description of "--max-upload-limit" option.
  16192. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  16193. Added "--max-download-limit" option and "--max-upload-limit" option.
  16194. Added the warning message if "--upload-limit" option is used.
  16195. * src/DownloadCommand.cc
  16196. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  16197. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16198. To rewrite segment download mechanism for HTTP/FTP download.
  16199. Use BitfieldMan to manage segment download.
  16200. * src/HttpResponseCommand.h
  16201. (executeInternal): Pass the reference of segment.
  16202. * src/AbstractCommand.cc
  16203. (prepareForRetry): Call segmentMan->cancelSegment here.
  16204. (onAbort): Call segmentMan->cancelSegment here.
  16205. * src/HttpDownloadCommand.cc
  16206. (prepareForNextSegment): New function.
  16207. * src/DownloadEngineFactory.cc
  16208. (newConsoleEngine): Removed splitter.
  16209. (newTorrentConsoleEngine): Removed splitter.
  16210. * src/Request.h
  16211. (segment): Renamed from seg.
  16212. * src/FtpInitiateConnectionCommand.h
  16213. (executeInternal): Pass the reference of segment.
  16214. * src/AbstractCommand.h
  16215. (executeInternal): Pass the reference of segment.
  16216. * src/pref.h
  16217. (PREF_SEGMENT_SIZE): New definition.
  16218. * src/HttpProxyRequestCommand.h
  16219. (executeInternal): Pass the reference of segment.
  16220. * src/HttpResponseCommand.cc
  16221. (checkResponse): Allowed status 206 when a request range starts 0.
  16222. (handleDefaultEncoding): Rewritten the code related to Segment.
  16223. (handleOtherEncoding): Rewritten the code related to Segment.
  16224. * src/SegmentMan.h
  16225. (SegmentEntry): New class.
  16226. (SegmentEntries): New type definition.
  16227. (bitfield): New variable.
  16228. (usedSegmentEntries): New variable.
  16229. (onNullBitfield): New function.
  16230. (checkoutSegment): New function.
  16231. (segments): Removed.
  16232. (splitter): Removed.
  16233. (unregisterId): Removed.
  16234. (getSegment): New function(overload)
  16235. (getDownloadedSize): Removed.
  16236. (cancelSegment): New function.
  16237. (completeSegment): New function.
  16238. (initBitfield): New function.
  16239. (hasSegment): New function.
  16240. (getDownloadLength): New function.
  16241. * src/BitfieldMan.h
  16242. (getStartIndex): New function.
  16243. (getEndIndex): New function.
  16244. (getMissingUnusedIndex): New function(overload).
  16245. (getSparseMissingUnusedIndex): New function.
  16246. * src/BitfieldMan.cc
  16247. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  16248. (getMissingUnusedIndex): New function(overload).
  16249. (Range): New class.
  16250. (getStartIndex): New function.
  16251. (getEndIndex): New function.
  16252. (getSparseMissingUnusedIndex): New function.
  16253. (isBitSetInternal): Return false if the given index is less than 0.
  16254. * src/HttpInitiateConnectionCommand.h
  16255. (executeInternal): Pass the reference of segment.
  16256. * src/FtpNegotiateCommand.h
  16257. (executeInternal): Pass the reference of segment.
  16258. * src/FtpNegotiateCommand.cc
  16259. (recvSize): Initialize bitfield here.
  16260. * src/FtpTunnelResponseCommand.h
  16261. (executeInternal): Pass the reference of segment.
  16262. * src/HttpConnection.cc
  16263. (createRequest): Rewritten range header processing.
  16264. * src/DownloadCommand.h
  16265. (executeInternal): Pass the reference of segment.
  16266. (prepareForRetry): Removed.
  16267. (prepareForNextSegment): Added an argument segment. Made it a virtual
  16268. function.
  16269. * src/main.cc
  16270. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  16271. * src/SegmentMan.cc
  16272. (SegmentMan): Added bitfield. Removed splitter.
  16273. (~SegmentMan): Added bitfield. Removed splitter.
  16274. (unregisterId): Removed.
  16275. (getSegment): Rewritten.
  16276. (updateSegment): Rewritten.
  16277. (save): Rewritten.
  16278. (read): Rewritten.
  16279. (finished): Rewritten.
  16280. (getDownloadedSize): Removed.
  16281. (initBitfield): New function.
  16282. (FindSegmentEntryByIndex): New function object.
  16283. (FindSegmentEntryByCuid): New function object.
  16284. (checkoutSegment): New function.
  16285. (onNullBitfield): New function.
  16286. (getSegment): New function(overload).
  16287. (CancelSegment): New function object.
  16288. (cancelSegment): New function.
  16289. (completeSegment): New function.
  16290. (hasSegment): New function.
  16291. (getDownloadLength): New function.
  16292. * src/FtpInitiateConnectionCommand.cc
  16293. (executeInternal): Load .aria2 file after hostname resolution finishes.
  16294. * src/Segment.h: Rewritten.
  16295. * src/Segment.cc (operator<<): New function.
  16296. * src/HttpDownloadCommand.h
  16297. (prepareForNextSegment): New function.
  16298. * src/Request.cc
  16299. (resetUrl): Made segment null.
  16300. * src/DownloadEngine.cc
  16301. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  16302. * src/HttpProxyRequestCommand.h
  16303. (executeInternal): Pass the reference of segment.
  16304. * src/DownloadCommand.cc
  16305. (executeInternal): Rewritten the code related to Segment.
  16306. (prepareForRetry): Removed.
  16307. (prepareForNextSegment): Rewritten.
  16308. * src/FtpTunnelResponseCommand.h
  16309. (executeInternal): Pass the reference of segment.
  16310. To add HTTP 1.1 persistent connection support(experimental)
  16311. * src/HttpRequestCommand.cc
  16312. (executeInternal): Disable keep alive if it is disabled by
  16313. configuration.
  16314. * src/Request.h
  16315. (keepAlive): New variable.
  16316. (isKeepAlive): New function.
  16317. (setKeepAlive): New function.
  16318. * src/pref.h
  16319. (PREF_HTTP_KEEP_ALIVE): New definition.
  16320. * src/HttpResponseCommand.cc
  16321. (executeInternal): Check the remote server supports keep alive.
  16322. * src/HttpConnection.cc
  16323. (createRequest): Send "Connection: close" only if keep alive is
  16324. disabled.
  16325. * src/main.cc
  16326. (main):
  16327. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  16328. To add max download speed limit:
  16329. * src/pref.h
  16330. (PREF_MAX_SPEED_LIMIT): New definition.
  16331. * src/PeerInteractionCommand.cc
  16332. (executeInternal): Added max download speed limit. Not tested yet.
  16333. * src/SegmentMan.h
  16334. (PeerStats): New type definition.
  16335. (peerStats): New variable.
  16336. (registerPeerStat): New function.
  16337. (FindPeerStat): New function object.
  16338. (getPeerStat): New function.
  16339. (calculateDownloadSpeed): New function.
  16340. * src/SpeedCalc.h: New class.
  16341. * src/SpeedCalc.cc: New class.
  16342. * src/main.cc
  16343. (main):
  16344. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  16345. download speed is not restricted).
  16346. * src/PeerStat.h: New class.
  16347. * src/SegmentMan.cc
  16348. (registerPeerStat): New function.
  16349. (calculateDownloadSpeed): New function.
  16350. * src/DownloadCommand.cc
  16351. (STARTUP_IDLE_TIME): New definition.
  16352. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  16353. downloadStart.
  16354. (~DownloadCommand): Call peerStat->downloadStop.
  16355. (executeInternal): Added download speed limitter. Rewritten lowest
  16356. speed limitter.
  16357. * src/HttpConnection.cc
  16358. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  16359. * src/AbstractCommand.cc
  16360. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  16361. Added hostname to the error message.
  16362. * src/ConsoleDownloadEngine.cc
  16363. (calculateStatistics): Initialize psize with dlSize.
  16364. * src/PieceMessage.cc
  16365. (receivedAction): Do not call peerInteraction->abortPiece here.
  16366. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  16367. * src/BitfieldMan.h
  16368. (clearAllUseBit): New function.
  16369. (setAllUseBit): New function.
  16370. * src/BitfieldMan.cc
  16371. (clearAllBit): Do not clear useBitfield here.
  16372. (clearAllUseBit): New function.
  16373. (setAllUseBit): New function.
  16374. * src/Piece.cc
  16375. (clearAllBlock): Call bitfield->clearAllUseBit().
  16376. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16377. To make filename URL-decoded:
  16378. * src/HttpResponseCommand.h: Updated doc.
  16379. * src/HttpResponseCommand.cc
  16380. (determinFilename): Made filename URL-decoded.
  16381. * src/FtpInitiateConnectionCommand.cc
  16382. (executeInternal): Made filename URL-decoded.
  16383. * src/Util.h (urldecode): New function.
  16384. * src/Util.cc (urldecode): New function.
  16385. To fix a bug that caused assertion failure in ares_strerror:
  16386. * src/NameResolver.cc (callback): Fixed the bug.
  16387. * Release 0.7.3
  16388. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16389. To add --seed-time and --seed-ratio command-line option:
  16390. * src/Option.h (getAsDouble): New function.
  16391. * src/Option.cc (getAsDouble): New function.
  16392. * src/SeedCheckCommand.h: New class.
  16393. * src/SeedCheckCommand.cc: New class.
  16394. * src/DownloadEngineFactory.cc
  16395. (SeedCheckCommand.h): Included.
  16396. (UnionSeedCriteria.h): Included.
  16397. (TimeSeedCriteria.h): Included.
  16398. (ShareRatioSeedCriteria.h): Included.
  16399. (newTorrentConsoleEngine): Added the processing of seed option.
  16400. * src/SeedCriteria.h: New class.
  16401. * src/ShareRatioSeedCriteria.h: New class.
  16402. * src/TimeSeedCriteria.h: New class.
  16403. * src/UnionSeedCriteria.h: New class.
  16404. * src/prefs.h
  16405. (PREF_SEED_TIME): New definition.
  16406. (PREF_SEED_RATIO): New definition.
  16407. * src/main.cc
  16408. (showUsage): Added --seed-time and --seed-ratio option.
  16409. (main): Added --seed-time and --seed-ratio option.
  16410. Made default log file name "/dev/null".
  16411. * src/SharedHandle.h
  16412. (SharedHandle): Copy constructor. Made it assignable from the
  16413. SharedHandle of the subclasses.
  16414. (operator=): Made it assignable from the SharedHandle of the
  16415. subclasses.
  16416. (getRefCount): New function.
  16417. To add notice log level and the switch to write log to stdout. This
  16418. switch is configurable per log level.
  16419. * src/Logger.h
  16420. (notice): New function.
  16421. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  16422. constant.
  16423. * src/LogFactory.cc
  16424. (getInstance): The use of NullLogger was removed. A log message with
  16425. notice log level was made written to stdout along with log file.
  16426. * src/NullLogger.h
  16427. (notice): New function.
  16428. * src/SimpleLogger.h
  16429. (writeHeader): Added the 'file' argument.
  16430. (writeLog): Added the 'file' argument.
  16431. (writeFile): New function.
  16432. (stdoutField): New variable.
  16433. (SimpleLogger): Removed the default constructor.
  16434. (SimpleLogger): Made the default value of logfile 0.
  16435. (debug): Added 'virtual' keyword.
  16436. (info): Added 'virtual' keyword.
  16437. (warn): Added 'virtual' keyword.
  16438. (error): Added 'virtual' keyword.
  16439. (notice): New function.
  16440. (setStdout): New function.
  16441. * src/SimpleLogger.cc
  16442. (WRITE_LOG): Replaced writeLog with writeFile.
  16443. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  16444. (SimpleLogger): Removed the default constructor.
  16445. (setStdout): New function.
  16446. (writeLog): Added the handling of NOTICE log level.
  16447. (writeFile): New function.
  16448. (notice): New function.
  16449. * src/TorrentMan.h: Updated doc.
  16450. * src/BitfieldMan.h: Updated doc.
  16451. * src/TrackerWatcherCommand.cc
  16452. (execute): Return true if error occurred in the request to the tracker
  16453. and halt is requested.
  16454. * src/TrackerUpdateCommand.cc
  16455. (execute): Return true if error occurred in the request to the tracker
  16456. and halt is requested.
  16457. To call onDownloadComplete from TorrentMan::completePiece(), not from
  16458. DownloadEngine:
  16459. * src/TorrentConsoleDownloadEngine.h
  16460. (onSelectiveDownloadingCompletes): Removed.
  16461. * src/TorrentConsoleDownloadEngine.cc
  16462. (onSelectiveDownloadingCompletes): Removed.
  16463. * src/TorrentDownloadEngine.h
  16464. (onEndOfRun): Added 'virtual' keyword.
  16465. (afterEachIteration): Removed.
  16466. (onSelectiveDownloadingCompletes): Removed.
  16467. * src/TorrentDownloadEngine.cc
  16468. (onEndOfRun): Removed filenameFixed.
  16469. (afterEachIteration): Removed.
  16470. * src/TorrentMan.cc
  16471. (completePiece): Call onDownloadComplete here.
  16472. (onDownloadComplete): Added 2 log messages.
  16473. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16474. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  16475. * src/NameResolver.h: Added the prototype declaration of callback().
  16476. To support c-ares library:
  16477. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16478. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16479. * src/FtpInitiateConnectionCommand.h:
  16480. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16481. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16482. * src/HttpInitiateConnectionCommand.h:
  16483. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16484. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  16485. Added thes upport of c-ares's ares_strerror(the idea came from patch
  16486. #1542285 by tizianomueller)
  16487. * src/HttpInitiateConnectionCommand.cc:
  16488. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16489. * src/FtpInitiateConnectionCommand.cc:
  16490. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16491. * src/DownloadEngine.h:
  16492. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16493. * src/DownloadEngine.cc:
  16494. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16495. To fix the bug that causes compilation failure with metalink-support
  16496. disabled(bug#1543587):
  16497. * src/main.cc: Fixed with the patch by tizianomueller.
  16498. * Release 0.7.2
  16499. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16500. * src/main.cc
  16501. (main): Added a message to inform users that aria2 is starting to
  16502. verify checksum.
  16503. * src/RequestInfo.cc
  16504. (printDownloadAbortMessage): Added a message to inform users that
  16505. transfer can be resumed.
  16506. * src/FeatureConfig.cc
  16507. (FEATURE_ASYNC_DNS): New definition.
  16508. (FeatureConfig): Added aysnc DNS entry.
  16509. To replace CommandUuid with Command* in SocketEntry and
  16510. NameResolverEntry:
  16511. * src/DownloadEngine.h
  16512. (CommandUuids): Removed.
  16513. (SocketEntry::commandUuid): Removed.
  16514. (SocketEntry::command): New variable.
  16515. (SocketEntry::SocketEntry): Updated.
  16516. (SocketEntry::operator==): Updated.
  16517. (NameResolverEntry::commandUuid): Removed.
  16518. (NameResolverEntry::command): New variable.
  16519. (NameResolverEntry::NameResolverEntry): Updated.
  16520. (NameResolverEntry::operator==): Updated.
  16521. (waitData): Changed the argument type.
  16522. (addSocketForReadCheck): Changed the argument type.
  16523. (deleteSocketForReadCheck): Changed the argument type.
  16524. (addSocketForWriteCheck): Changed the argument type.
  16525. (deleteSocketForWriteCheck): Changed the argument type.
  16526. (addNameResolverCheck): Changed the argument type.
  16527. (deleteNameResolverCheck): Changed the argument type.
  16528. * src/DownloadEngine.cc
  16529. (FindCommand): Removed.
  16530. (run): Removed activeUuid. Added activeCommands instead.
  16531. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  16532. (AccumulateActiveCommand): New function object.
  16533. (waitData): Use AccumulateActiveCommand.
  16534. (addSocketForReadCheck): Use Command instead of CommandUuid.
  16535. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  16536. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  16537. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  16538. (addNameResolverCheck): Use Command instead of CommandUuid.
  16539. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  16540. * src/AbstractCommand.cc
  16541. (disableReadCheckSocket): Updated according to the changes in
  16542. DownloadEngine.
  16543. (setReadCheckSocket): Updated according to the changes in
  16544. DownloadEngine.
  16545. (disableWriteCheckSocket): Updated according to the changes in
  16546. DownloadEngine.
  16547. (setWriteCheckSocket): Updated according to the changes in
  16548. DownloadEngine.
  16549. (setNameResolverCheck): Updated according to the changes in
  16550. DownloadEngine.
  16551. (disableNameResolverCheck): Updated according to the changes in
  16552. DownloadEngine.
  16553. * src/AbstractCommand.cc
  16554. (disableReadCheckSocket): Updated according to the changes in
  16555. DownloadEngine.
  16556. (setReadCheckSocket): Updated according to the changes in
  16557. DownloadEngine.
  16558. (disableWriteCheckSocket): Updated according to the changes in
  16559. DownloadEngine.
  16560. (setWriteCheckSocket): Updated according to the changes in
  16561. DownloadEngine.
  16562. * release 0.7.1
  16563. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16564. To handle the case where some BitTorrent tracker requires all letters
  16565. except for [A-Za-z0-9] is URL encoded.
  16566. * src/Util.h
  16567. (torrentUrlencode): New function.
  16568. * src/Util.cc
  16569. (ctype.h): Included.
  16570. (torrentUrlencode): New function.
  16571. * src/TrackerWatcherCommand.cc
  16572. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  16573. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16574. To add asynchronous DNS support(libares):
  16575. * src/AbstractCommand.h
  16576. (setNameResolverCheck): New function.
  16577. (disableNameResolverCheck): New function
  16578. (resolveHostname): New function.
  16579. * src/AbstractCommand.cc
  16580. (setNameResolverCheck): New function.
  16581. (disableNameResolverCheck): New function
  16582. (resolveHostname): New function.
  16583. * src/FtpInitiateConnectionCommand.h
  16584. (nameResolver): New function.
  16585. * src/FtpInitiateConnectionCommand.cc
  16586. (Util.h): Included.
  16587. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  16588. disableWriteCheckSocket.
  16589. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  16590. (executeInternal): Added async DNS support.
  16591. * src/HttpInitiateConnectionCommand.h
  16592. (nameResolver): New function.
  16593. * src/HttpInitiateConnectionCommand.cc
  16594. (DlRetryEx.h): Included.
  16595. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  16596. disableWriteCheckSocket.
  16597. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  16598. (executeInternal): Added async DNS support.
  16599. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  16600. by extern "C" declaration.
  16601. * src/NameResolver.cc: New class.
  16602. * src/Util.h:
  16603. (isNumberAndDotsNotation): New function
  16604. * src/Util.cc
  16605. (isNumberAndDotsNotation): New function.
  16606. * src/DownloadEngine.h
  16607. (NameResolver.h): Included.
  16608. (NameResolverEntry): New class.
  16609. (NameResolverEntries): New type definition.
  16610. (addNameResolverCheck): New function.
  16611. (deleteNameResolverCheck): New function.
  16612. * src/DownloadEngine.cc
  16613. (run): Initialize cp with 0.
  16614. (SetDescriptor::operator()): Added for NameResolverEntry.
  16615. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  16616. (waitData): Check nameResolver entries.
  16617. (updateFdSet): Update fds in nameResolver entries.
  16618. (addNameResolverCheck): New function.
  16619. (deleteNameResolverCheck): new function.
  16620. * src/PeerInteractionCommand.cc
  16621. (executeInternal): Fixed wrong socket handling.
  16622. * src/main.cc
  16623. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  16624. * src/Util.cc
  16625. (fileChecksum): Removed the call to ctx.digestReset().
  16626. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16627. * po/ru.po: Azamat sent me Russian translation.
  16628. * src/FtpNegotiateCommand.cc
  16629. (recvGreeting): Call disableWriteCheckSocket just after
  16630. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  16631. (recvRetr): Recognized status code 125 as a acceptable response code.
  16632. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  16633. case-insesitive filesystem(BUG#1531057).
  16634. * src/Time.h: Renamed as TimeA2.h.
  16635. * src/Time.cc: Renamed as TimeA2.cc.
  16636. * src/TimeA2.h: New class.
  16637. * src/TimeA2.cc: New class.
  16638. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  16639. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  16640. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  16641. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  16642. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  16643. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16644. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  16645. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  16646. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  16647. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16648. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  16649. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  16650. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  16651. * release 0.7.0
  16652. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16653. * src/PeerChokeCommand.h
  16654. (PeerChokeCommand): Rearranged the arguments.
  16655. * src/PeerChokeCommand.cc
  16656. (PeerChokeCommand): Rearranged the arguments.
  16657. * src/MetalinkEntry.h
  16658. (Checksum.h): Included.
  16659. (md5): Removed.
  16660. (sha1): Removed.
  16661. (checksum): New variable.
  16662. (operator=): Updated.
  16663. (check): Removed.
  16664. * src/prefs.h
  16665. (PREF_LOWEST_SPEED_LIMIT): New definition.
  16666. (PREF_FOLLOW_TORRENT): New definition.
  16667. (PREF_SELECT_FILE): New definition.
  16668. (PREF_FOLLOW_METALINK): New definition.
  16669. * src/MetalinkResource.h
  16670. (TYPE_HTTPS): Added to enum TYPE.
  16671. * src/TorrentMan.cc
  16672. (~TorrentMan): Rewritten.
  16673. * src/MultiDiskWriter.cc
  16674. (MultiDiskAdaptor): Updated according to the changes in
  16675. MessageDigestContext.
  16676. (~MultiDiskAdaptor): Updated according to the changes in
  16677. MessageDigestContext.
  16678. (hashUpdate): Updated according to the changes in MessageDigestContext.
  16679. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16680. * src/Util.h
  16681. (fileChecksum): Updated according to the changes in
  16682. MessageDigestContext.
  16683. * src/Util.cc
  16684. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16685. (fileChecksum): Updated according to the changes in
  16686. MessageDigestContext.
  16687. * src/messageDigest.h: Rewritten.
  16688. * src/MetalinkEntry.cc
  16689. (check): Removed.
  16690. (Supported): Updated.
  16691. (dropUnsupportedResource): Fixed a memory leak.
  16692. * src/ShaVisitor.cc
  16693. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  16694. (~ShaVisitor): Updated according to the changes in
  16695. MessageDigestContext.
  16696. (visit): Updated according to the changes in MessageDigestContext.
  16697. * src/main.cc
  16698. (main): Rewritten the portion of download loop. --lowest-speed-limit
  16699. command-line option added.
  16700. * src/DownloadEngine.h
  16701. (SocketEntry): New class.
  16702. (SocketEntries): New definition.
  16703. (PairFind): Removed.
  16704. (SockCmdMap): Removed.
  16705. * src/DownloadEngine.cc
  16706. (DownloadEngine): Rewritten.
  16707. (~DownloadEngine): Rewritten.
  16708. (run): Renamed activeCommandUuids as activeUuids.
  16709. (SetDescriptor): Rewritten.
  16710. (AccumulateActiveCommandUuid): Removed.
  16711. (AccumulateActiveUuid): New function object.
  16712. (waitData): Rewritten.
  16713. (updateFdSet): Rewritten.
  16714. (addSocket): Rewritten.
  16715. (deleteSocket): Rewritten.
  16716. (addSocketForReadCheck): Rewritten.
  16717. (deleteSocketForReadCheck): Rewritten.
  16718. (addSocketForWriteCheck): Rewritten.
  16719. (deleteSocketForWriteCheck): Rewritten.
  16720. * src/Xml2MetalinkProcessor.cc
  16721. (getEntry): Rewritten the portion of MetalinkEntry creation.
  16722. * src/DownloadCommand.cc
  16723. (executeInternal): Added the check routine for lowest speed limit.
  16724. * src/AbstractDiskWriter.cc
  16725. (AbstractDiskWriter): Updated according to the changes in
  16726. MessageDigestContext.
  16727. (~AbstractDiskWriter): Updated according to the changes in
  16728. MessageDigestContext.
  16729. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16730. * src/RequestInfo.h: New class.
  16731. * src/UrlRequestInfo.h: New class.
  16732. * src/UrlRequestInfo.cc: New class.
  16733. * src/TorrentRequestInfo.h: New class.
  16734. * src/TorrentRequestInfo.cc: New class.
  16735. * src/MetalinkRequestInfo.h: New class.
  16736. * src/MetalinkRequestInfo.cc: New class.
  16737. * src/Checksum.h: New class.
  16738. * src/DownloadEngineFactory.h: New class.
  16739. * src/DownloadEngineFactory.cc: New class.
  16740. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16741. * src/Option.h
  16742. (getAsBool): New function.
  16743. * src/Option.cc
  16744. (prefs.h): Included.
  16745. (defined): 0-length value is now recognized as undefined.
  16746. (getAsInt): Rewritten.
  16747. (getAsLLInt): Rewritten.
  16748. (getAsBool): New function.
  16749. * src/FeatureConfig.h: Rewritten.
  16750. * src/FeatureConfig.cc: Rewritten.
  16751. * src/prefs.h
  16752. (PREF_STDOUT_LOG): New definition.
  16753. (PREF_LOG): New definition.
  16754. (PREF_DIR): New definition.
  16755. (PREF_OUT): New definition.
  16756. (PREF_SPLIT): New definition.
  16757. (PREF_DAEMON): New definition.
  16758. (PREF_REFERER): New definition.
  16759. (PREF_TORRENT_FILE): New definition.
  16760. (PREF_LISTEN_PORT): New definition.
  16761. (PREF_METALINK_FILE): New definition.
  16762. (PREF_METALINK_VERSION): New definition.
  16763. (PREF_METALINK_LANGUAGE): New definition.
  16764. (PREF_METALINK_OS): New definition.
  16765. (PREF_METALINK_SERVERS): New definition.
  16766. * src/main.cc
  16767. (main): Following command-line parameters are now put into Option
  16768. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16769. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16770. metalinkLanguage, metalinkOs, metalinkServers
  16771. To fix the bug that aria2 can not handle http response header properly.
  16772. * src/HttpHeader.cc
  16773. (put): Made name lowercased.
  16774. (defined): Made name lowercased.
  16775. (getFirst): Made name lowercased.
  16776. (get): Made name lowercased.
  16777. (getFirstAsInt): Rewritten.
  16778. (getFirstAsLLInt): Rewritten.
  16779. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16780. * src/TorrentMan.h:
  16781. (advertisePiece): Updated doc.
  16782. (getAdvertisedPieceIndexes): Updated doc.
  16783. (removeAdvertisedPiece); New function.
  16784. * src/TorrentMan.cc
  16785. (FindElapsedHave): New function object.
  16786. (removeAdvertisedPiece): New function.
  16787. * src/HaveEraseCommand.h: New class.
  16788. * src/HaveEraseCommand.cc: New class.
  16789. * src/FeatureConfig.h: New class.
  16790. * src/FeatureConfig.cc: New class.
  16791. * src/Request.h
  16792. (defaultPorts): Removed.
  16793. * src/Request.cc
  16794. (FeatureConfig.h): Included.
  16795. (Request): Removed the statements related to defaultPorts.
  16796. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16797. A default port number is now retrieved from FeatureConfig.
  16798. * src/main.cc
  16799. (HaveEraseCommand.h): Included.
  16800. (showVersion): Added the output of feature list.
  16801. (main): Added HaveEraseCommand to command queue in BitTorrent
  16802. downloading.
  16803. * src/PeerInteractionCommand.h
  16804. (chokeCheckPoint): Commented out.
  16805. (periodicExecPoint): New variable.
  16806. * src/PeerInteractionCommand.cc
  16807. (executeInternal): Following methods are now called in at least every
  16808. 0.5 seconds to reduce CPU usage:
  16809. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16810. checkHave(), sendKeepAlive().
  16811. (checkLongTimePeerChoking): Commented out.
  16812. * src/BitfieldMan.h
  16813. (getNthBitIndex): Changed the method signature.
  16814. (getMissingIndexRandomly): Changed the method signature.
  16815. * src/BitfieldMan.cc
  16816. (getNthBitIndex): Rewritten
  16817. (getMissingIndexRandomly): Rewritten.
  16818. (hasMissingPiece): Rewritten.
  16819. (getMissingIndex): Refactored.
  16820. (getMissingUnusedIndex); Refactored.
  16821. (getMissingIndex): Refactored.
  16822. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16823. * src/PeerMessage.h
  16824. (Piece.h): Included.
  16825. (SharedHandle.h): Included.
  16826. (invalidate): New variable.
  16827. (uploading): New variable.
  16828. (isInvalidate): New function.
  16829. (isUploading): New function.
  16830. (onPush): New function.
  16831. (onChoked): New function.
  16832. (onCanceled): New function.
  16833. (onAbortPiece): New function.
  16834. (PeerMessageHandle): New type definition.
  16835. * src/PeerMessage.cc
  16836. (PeerMessage): Added the initialization for invalidate and uploading.
  16837. * src/CancelMessage.h
  16838. (CancelMessage): Rewritten.
  16839. * src/RejectMessage.h
  16840. (RejectMessage): Rewritten.
  16841. * src/Metalinker.h
  16842. (operator=): Defined.
  16843. * src/MetaEntry.h
  16844. (operator=): Defined.
  16845. * src/MetalinkResource.h
  16846. (operator=): Defined.
  16847. * src/AllowedFastMessage.h
  16848. (AllowedFastMessage): Rewritten.
  16849. * src/HandshakeMessage.h
  16850. (HandshakeMessage): New function(overload).
  16851. * src/HandshakeMessage.cc
  16852. (HandshakeMessage): Rewritten.
  16853. (init): New function.
  16854. * src/HaveMessage.h
  16855. (HaveMessage): Rewritten.
  16856. * src/Time.h
  16857. (operator=): Defined the function body here.
  16858. * src/Time.cc
  16859. (operator=): Removed.
  16860. * src/SocketCore.h
  16861. (operator==): Defined here.
  16862. (operator!=): Defined here.
  16863. (operator<): Defined here.
  16864. * src/SocketCore.cc
  16865. (operator==): Removed.
  16866. (operator<): Removed.
  16867. * src/BitfieldMan.h
  16868. (operator=): Defined the function body here.
  16869. * src/BitfieldMan.cc
  16870. (operator=): Removed.
  16871. * src/TorrentMan.h
  16872. (deleteErrorPeer): Removed.
  16873. (deleteUnusedPeer); New function.
  16874. * src/TorrentMan.cc
  16875. (addPeer): Call deleteUnusedPeer.
  16876. (deleteErrorPeer): Removed.
  16877. (deleteUnusedPeer): New function.
  16878. * src/PeerAbstractCommand.h
  16879. (setNoCheck): New function.
  16880. (noCheck): New variable.
  16881. * src/PeerAbstractCommand.cc
  16882. (PeerAbstractCommand): Added the initialization of noCheck.
  16883. (execute): Added a check for noCheck.
  16884. (setNoCheck): New function.
  16885. * src/Util.h
  16886. (stdio.h): Included.
  16887. * src/Util.cc
  16888. (unistd.h): Included.
  16889. * src/DefaultDiskWriter.cc
  16890. (unistd.h): Included.
  16891. * src/Peer.h
  16892. (operator==): Defined the function body here.
  16893. (operator!=): Defined the function body here.
  16894. * src/Peer.cc
  16895. (operator==): Removed.
  16896. (operator!=): Removed.
  16897. * src/Piece.h
  16898. (Piece): Defined the function body here(copy constructor).
  16899. (operator=): Defined the function body here.
  16900. (operator==): Defined the function body here.
  16901. * src/Piece.cc
  16902. (Piece): Removed(copy constructor).
  16903. (operator=): Removed.
  16904. (operator==): Removed.
  16905. * src/PeerMessageUtil.h
  16906. (ChokeMessage.h): Removed.
  16907. (UnchokeMessage.h): Removed.
  16908. (InterestedMessage.h): Removed.
  16909. (NotInterestedMessage.h): Removed.
  16910. (HaveMessage.h): Removed.
  16911. (BitfieldMessage.h): Removed.
  16912. (RequestMessage.h): Removed.
  16913. (CancelMessage.h): Removed.
  16914. (PieceMessage.h): Removed.
  16915. (HandshakeMessage.h): Removed.
  16916. (KeepAliveMessage.h): Removed.
  16917. (PortMessage.h): Removed.
  16918. (HaveAllMessage.h): Removed.
  16919. (HaveNoneMessage.h): Removed.
  16920. (PeerConnection.h): Removed.
  16921. (HandshakeMessage.h): Included.
  16922. * src/BitfieldMessage.h
  16923. (init): New function.
  16924. (BitfieldMessage): Rewritten.
  16925. (BitfieldMessage): New function(overload).
  16926. * src/RequestSlot.h
  16927. (operator=): Defined the function body here.
  16928. (operator==): Defined the function body here.
  16929. * src/RequestSlot.cc
  16930. (operator=): Removed.
  16931. (operator==): Removed.
  16932. To remove the dependency on the PeerMessage subclass from
  16933. PeerInteraction:
  16934. * src/PeerMessageFactory.h: New class.
  16935. * src/PeerMessageFactory.cc: New class.
  16936. * src/SimplePeerMessage.cc
  16937. (send): If invalidate is true then do nothing.
  16938. * src/PeerInteractionCommand.cc
  16939. (HandshakeMessage.h): Included.
  16940. (KeepAliveMessage.h): Included.
  16941. (ChokeMessage.h): Included.
  16942. (UnchokeMessage.h): Included.
  16943. (HaveMessage.h): Included.
  16944. (executeInternal): Call setNoCheck().
  16945. Removed setWriteCheckSocket(socket).
  16946. * src/PeerInteraction.h
  16947. (ChokeMessage.h): Removed.
  16948. (UnchokeMessage.h): Removed.
  16949. (InterestedMessage.h): Removed.
  16950. (NotInterestedMessage.h): Removed.
  16951. (HaveMessage.h): Removed.
  16952. (BitfieldMessage.h): Removed.
  16953. (RequestMessage.h): Removed.
  16954. (CancelMessage.h): Removed.
  16955. (PieceMessage.h): Removed.
  16956. (HandshakeMessage.h): Removed.
  16957. (KeepAliveMessage.h): Removed.
  16958. (PortMessage.h): Removed.
  16959. (HaveAllMessage.h): Removed.
  16960. (HaveNoneMessage.h): Removed.
  16961. (RejectMessage.h): Removed.
  16962. (AllowedFastMessage.h): Removed.
  16963. (SuggestPieceMessage.h): Removed.
  16964. (PeerMessageFactory.h): Included.
  16965. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16966. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16967. (PeerMessageFactory): New variable.
  16968. (createPeerMessage): Removed.
  16969. (createHandshakeMessage): Removed.
  16970. (setPeerMessageCommonProperty): Removed.
  16971. (addRequestSlot): New function.
  16972. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16973. (getPeerMessageFactory): New function.
  16974. (createRequestMessage): Removed.
  16975. (createCancelMessage): Removed.
  16976. (createPieceMessage): Removed.
  16977. (createHaveMessage): Removed.
  16978. (createChokeMessage): Removed.
  16979. (createUnchokeMessage): Removed.
  16980. (createInterestedMessage): Removed.
  16981. (createNotInterestedMessage): Removed.
  16982. (createBitfieldMessage): Removed.
  16983. (createKeepAliveMessage): Removed.
  16984. (createHaveAllMessage): Removed.
  16985. (createHaveNoneMessage): Removed.
  16986. (createRejectMessage): Removed.
  16987. (createAllowedFastMessage): Removed.
  16988. * src/PeerInteraction.cc
  16989. (PeerInteraction): Allocate PeerMessageFactory here.
  16990. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16991. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16992. PieceMessage::ID.
  16993. (addMessage): Simplified by using PeerMessage::onPush().
  16994. (addRequestSlot): New function.
  16995. (rejectAllPieceMessageInQueue): Simplified by using
  16996. PeerMessage::onChoked().
  16997. (rejectPieceMessageInQueue): Simplified by using
  16998. PeerMessage::onCanceled().
  16999. (abortPiece): Simplified by using PeerMessage::abortPiece().
  17000. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  17001. (createHandshakeMessage): Removed.
  17002. (createPeerMessage): Removed.
  17003. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  17004. (setPeerMessageCommonProperty): Removed.
  17005. (createRequestMessage): Removed.
  17006. (createCancelMessage): Removed.
  17007. (createPieceMessage): Removed.
  17008. (createHaveMessage): Removed.
  17009. (createChokeMessage): Removed.
  17010. (createUnchokeMessage): Removed.
  17011. (createInterestedMessage): Removed.
  17012. (createNotInterestedMessage): Removed.
  17013. (createBitfieldMessage): Removed.
  17014. (createKeepAliveMessage): Removed.
  17015. (createHaveAllMessage): Removed.
  17016. (createHaveNoneMessage): Removed.
  17017. (createRejectMessage): Removed.
  17018. (createAllowedFastMessage): Removed.
  17019. * src/PieceMessage.h
  17020. (createRejectMessage): New function.
  17021. (PieceMessage): Rewritten.
  17022. (onChoked): New function.
  17023. (onCanceled): New function.
  17024. * src/PieceMessage.cc
  17025. (send): If invalidate is true then do nothing, just return.
  17026. (createRejectMessage): New function.
  17027. (onChoked): New function.
  17028. (onCanceled): New function.
  17029. * src/RequestMessage.h
  17030. (RequestMessage): Rewritten.
  17031. (onPush): New function.
  17032. (onAbortPiece): New function.
  17033. * src/RequestMessage.cc
  17034. (onPush): New function.
  17035. (onAbortPiece): New function.
  17036. Update fd_set when a socket is added or deleted in order to improve
  17037. performance:
  17038. * src/DownloadEngine.h
  17039. (rfdset): New variable.
  17040. (wfdset): New variable.
  17041. (updateFdSet): New function.
  17042. * src/DownloadEngine.cc
  17043. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  17044. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  17045. (waitData): Copy rfdset and wfdset.
  17046. (updateFdSet): New function.
  17047. (addSocket): Call updateFdSet.
  17048. (deleteSocket): Call updateFdSet.
  17049. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17050. To add the support for Metalink3.0 backward compatible links:
  17051. * src/Request.h
  17052. (SAFE_CHARS): Added '#'.
  17053. (METALINK_MARK): New definition.
  17054. * src/Request.cc
  17055. (parseUrl): Added the support for Metalink3.0 backward compatible
  17056. links.
  17057. etc
  17058. * src/PeerInteraction.cc
  17059. (MsgPushBack): Removed.
  17060. (sendMessages): Use STL copy and back_inserter.
  17061. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  17062. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  17063. * src/TorrentMan.h
  17064. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  17065. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17066. * src/SharedHandle.h: New class.
  17067. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  17068. * src/HttpResponseCommand.h
  17069. (HttpResponseCommand): Wrapped Socket.
  17070. * src/SocketCore.h
  17071. (operator==): New function.
  17072. (operator!=): New function.
  17073. (operator<): New function.
  17074. (getSockfd): New function.
  17075. (isOpen): New function.
  17076. (writeData): New function.
  17077. * src/SocketCore.cc
  17078. (operator==): New function.
  17079. (operator!=): New function.
  17080. (operator<): New function.
  17081. * src/AbstractCommand.h
  17082. (socket): Changed its type to SocketHandle.
  17083. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17084. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17085. (disableReadCheckSocket): New function.
  17086. (disableWriteCheckSocket): New function.
  17087. (readCheckTarget): Changed its type to SocketHandle.
  17088. (writeCheckTarget): Changed its type to SocketHandle.
  17089. (AbstractCommand): Replaced Socket with SocketHandle.
  17090. * src/AbstractCommand.cc
  17091. (AbstractCommand): Replaced Socket with SocketHandle.
  17092. (~AbstractCommand): Removed the deallocation for Socket object.
  17093. (disableReadCheckSocket): New function.
  17094. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17095. (disableWriteCheckSocket): New function.
  17096. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17097. * src/HttpDownloadCommand.cc
  17098. (DownloadCommand): Replaced Socket with SocketHandle.
  17099. * src/PeerAbstractCommand.h
  17100. (socket): Changed its type to SocketHandle.
  17101. (peer): Changed its type to PeerHandle.
  17102. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17103. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17104. (disableReadCheckSocket): New function.
  17105. (disableWriteCheckSocket): New function.
  17106. (readCheckTarget): Changed its type to SocketHandle.
  17107. (writeCheckTarget): Changed its type to SocketHandle.
  17108. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17109. Replaced Peer with PeerHandle.
  17110. * src/HttpRequestCommand.cc
  17111. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17112. Use disableReadCheckSocket.
  17113. * src/PeerInitiateConnectionCommand.h
  17114. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17115. * src/PeerChokeCommand.cc
  17116. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  17117. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  17118. (execute): Use PeerHandle.
  17119. * src/PeerConnection.h
  17120. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  17121. (socket): Changed its type to SocketHandle.
  17122. (PeerConnection): Replaced Socket with SocketHandle.
  17123. * src/PeerConnection.cc
  17124. (PeerConnection): Replaced Socket with SocketHandle.
  17125. * src/PeerInteractionCommand.h
  17126. (PeerInteractionCommand): Replaced socket with SocketHandle.
  17127. Replaced Peer with PeerHandle.
  17128. * src/PeerInteractionCommand.cc
  17129. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  17130. Replaced Peer with PeerHandle.
  17131. (executeInternal): Use disableWriteCheckSocket.
  17132. Use HandshakeMessageHandle.
  17133. (receiveMessages): Use PeerMessageHandle.
  17134. (prepareForNextPeer): Use PeerHandle.
  17135. * src/HttpProxyRequestCommand.h
  17136. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17137. * src/HttpResponseCommand.cc
  17138. (HttpResponseCommand): Replaced Socket with SocketHandle.
  17139. * src/TorrentMan.cc
  17140. (nullPeer): Added external reference.
  17141. (~TorrentMan): Removed the deallocation of the elements of peers.
  17142. (addPeer): Rewritten.
  17143. (isPeerAvailable): Use nullPeer.
  17144. (deleteOldpeers): Replaced with deleteErrorPeer.
  17145. (deleteErrorPeer): New function.
  17146. (getPeer): Use PeerHandle and nullPeer.
  17147. (hasMissingPiece): Replaced Peer with PeerHandle.
  17148. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17149. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17150. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17151. (getMissingPiece): Replaced Peer with PeerHandle.
  17152. * src/FtpNegotiateCommand.cc
  17153. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  17154. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  17155. (recvGreeting): Use disableWriteCheckSocket.
  17156. (recvPasv): Removed the allocation of Socket.
  17157. Use disableReadCheckSocket.
  17158. (sendRestPasv): Use disableWriteCheckSocket.
  17159. (recvRetr): Changed assertion.
  17160. * src/PeerInteraction.h
  17161. (SharedHandle.h): Included SharedHandle.h.
  17162. (PeerMessageHandle): New type definition.
  17163. (HandshakeMessageHandle): New type definition.
  17164. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  17165. (peer): Changed its type to PeerHandle.
  17166. (createHandshakeMessage): Replaced HandshakeMessage with
  17167. HandshakeMessageHandle.
  17168. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  17169. (PeerInteraction): Replaced Peer with PeerHandle.
  17170. Replaced Socket with SocketHandle.
  17171. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17172. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17173. (receiveHandshake): Replaced HandshakeMessage with
  17174. HandshakeMessageHandle.
  17175. * src/PeerInteraction.cc
  17176. (PeerInteraction): Replaced Peer with PeerHandle.
  17177. Replaced Socket with SocketHandle.
  17178. (~PeerInteraction): Removed the deallocation of the elements of
  17179. messageQueue.
  17180. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  17181. (isSendingMessageInProgress): Replaced PeerMessage with
  17182. PeerMessageHandle.
  17183. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  17184. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17185. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  17186. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  17187. (abortPiece): Use PeerMessageHandle.
  17188. (receiveHandshake): Replaced HandshakeMessage with
  17189. HandshakeMessageHandle. Removed try-catch block.
  17190. (createHandshakeMessage): Replaced HandshakeMessage with
  17191. HandshakeMessageHandle.
  17192. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17193. Removed try-catch block.
  17194. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  17195. * src/HttpProxyResponseCommand.cc
  17196. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17197. * src/FtpTunnelResponseCommand.h
  17198. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17199. * src/HttpConnection.cc
  17200. (HttpConnection): Replaced Socket with SocketHandle.
  17201. * src/PeerAbstractCommand.cc
  17202. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17203. (~PeerAbstractCommand): Removed the deallocation of socket.
  17204. Use disableReadCheckSocket, disableWriteCheckSocket.
  17205. (disableReadCheckSocket): New function.
  17206. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17207. (disableWriteCheckSocket): New function.
  17208. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17209. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  17210. * src/FtpTunnelRequestCommand.cc
  17211. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17212. (~FtpTunnelRequestCommand): Corrected indentation.
  17213. * src/DownloadCommand.h
  17214. (DownloadCommand): Replaced Socket with SocketHandle.
  17215. * src/PeerListenCommand.cc
  17216. (PeerListenCommand): Removed the initialization of socket.
  17217. (~PeerListenCommand): Removed the deallocation of socket.
  17218. (bindPort): Use SocketHandle.
  17219. (execute): Use SocketHandle and PeerHandle.
  17220. * src/FtpDowndloadCommand.cc
  17221. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17222. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  17223. * src/main.cc
  17224. (main): Corrected indentation.
  17225. * src/HttpInitiateConnectionCommand.cc
  17226. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  17227. (executeInternal): Removed the allocation of socket.
  17228. * src/HttpRequestCommand.h
  17229. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17230. * src/FtpNegotiationCommand.h
  17231. (dataSocket): Changed its type to SocketHandle.
  17232. (serverSocket): Changed its type to SocketHandle.
  17233. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  17234. * src/TorrentMan.h
  17235. (MAX_PEER_UPDATE): Removed.
  17236. (MAX_PEERS): New definition.
  17237. (Peers): The element is now of type PeerHandle.
  17238. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  17239. (getPeer): Replaced Peer with PeerHandle.
  17240. (deleteOldErrorPeers): Removed.
  17241. (deleteErrorPeer): New function.
  17242. (hasMissingPiece): Replaced Peer with PeerHandle.
  17243. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17244. (getMissingPiece): Replaced Peer with PeerHandle.
  17245. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17246. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17247. (addActivePeer): Replaced Peer with PeerHandle.
  17248. (deleteActivePeer): Replaced Peer with PeerHandle.
  17249. Added a check for the return value of find.
  17250. * src/FtpTunnelResponseCommand.cc
  17251. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17252. * src/FtpInitiateConnectionCommand.cc
  17253. (executeInternal): Removed the allocation of socket.
  17254. * src/DownloadEngine.h
  17255. (Sockets): An element is now of type SocketHandle.
  17256. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  17257. (CommandUuids): New type definition.
  17258. (rsockets): Changed its type to SockCmdMap.
  17259. (wsockets): Changed its type to SockCmdMap.
  17260. (addSocket): Rewritten.
  17261. (deleteSocket): Rewritten.
  17262. (addSocketForReadCheck): Rewritten.
  17263. (deleteSocketForReadCheck): Rewritten.
  17264. (addSocketForWriteCheck): Rewritten.
  17265. (deleteSocketForWriteCheck): Rewritten.
  17266. (PairFind): New template class.
  17267. * src/HttpDownloadCommand.h
  17268. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  17269. * src/FtpConnection.cc
  17270. (FtpConnection): Replaced Socket with SocketHandle.
  17271. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  17272. block.
  17273. * src/InitiateConnectionCommandFactory.cc
  17274. (DlAbortEx.h): Included DlAbortEx.h.
  17275. (createInitiateConnectionCommand): Throw exception if the protocol of
  17276. requested URI is not supported.
  17277. * src/Peer.cc
  17278. (nullPeer): Changed its type to PeerHandle.
  17279. (operator==): New function.
  17280. (operator!=): New function.
  17281. * src/Peer.h
  17282. (SharedHandle.h): Included SharedHandle.h.
  17283. (operator==): New function.
  17284. (operator!=): New function.
  17285. (Peer): Added the default constructor.
  17286. Use resetStatus() to initialize member variables.
  17287. (nullPeer): Removed.
  17288. * src/TrackerUpdateCommand.cc
  17289. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  17290. with MIN_PEERS.
  17291. * src/PeerListenCommand.h
  17292. (socket): Changed its type to SocketHandle.
  17293. * src/Command.h
  17294. (CommandUuid): New type definition.
  17295. (uuid): New variable.
  17296. (uuidGen): New variable.
  17297. (Command): Added the initialization of uuid.
  17298. (getUuid): New function.
  17299. * src/Socket.h
  17300. (Socket): Removed.
  17301. (SocketHandle): New type definition.
  17302. * src/DownloadEngine.h
  17303. (FindCommand): New function object.
  17304. (run): The portion of socket check was rewritten.
  17305. (SetDescriptor): New function object.
  17306. (AccumulateActiveCommandUuid): New function object.
  17307. (waitData): Rewritten.
  17308. (addSocket): Rewritten.
  17309. (deleteSocket): Rewritten.
  17310. (addSocketForReadCheck): Rewritten.
  17311. (addSocketForWriteCheck): Rewritten.
  17312. (deleteSocketForReadCheck): Rewritten.
  17313. (deleteSocketForWriteCheck): Rewritten.
  17314. * src/HttpProxyResponseCommand.h
  17315. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  17316. * src/HttpConnection.h
  17317. (socket): Changed its type to SocketHandle.
  17318. (HttpConnection): Replaced Socket with SocketHandle.
  17319. * src/PeerInitiateConnectionCommand.cc
  17320. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17321. (executeInternal): Removed the allocation of socket.
  17322. (prepareForNextPeer): Use PeerHandle.
  17323. * src/PeerMessage.h
  17324. (peer): Changed its type to PeerHandle.
  17325. (getPeer): Replaced Peer with PeerHandle.
  17326. (setPeer): Replaced Peer with PeerHandle.
  17327. * src/DownloadCommand.cc
  17328. (DownloadCommand): Replaced Socket with SocketHandle.
  17329. * src/FtpConnection.h
  17330. (socket): Changed its type to SocketHandle.
  17331. (FtpConnection): Replaced Socket with SocketHandle.
  17332. (sendPort); Replaced Socket with SocketHandle.
  17333. * src/FtpDowndloadCommand.h
  17334. (ctrlSocket): Changed its type to SocketHandle.
  17335. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17336. * src/HttpProxyRequestCommand.cc
  17337. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17338. * src/FtpTunnelRequestCommand.h
  17339. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17340. etc
  17341. * src/PeerChokeCommand.h
  17342. (setAllPeerChoked): Removed.
  17343. (setAllPeerResetDelta): Removed.
  17344. * src/PeerChokeCommand.cc
  17345. (setAllPeerChoked): Removed.
  17346. (ChokePeer): New function object.
  17347. (setAllPeerResetDelta): Removed.
  17348. (ResetDelta): New function object.
  17349. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  17350. (execute): Show download speed when the local node is a seeder.
  17351. setAllPeerChoked and setAllPeerResetDelta were rewritten
  17352. using STL.
  17353. * src/TrackerWatcherCommand.h
  17354. (MIN_PEERS): Removed.
  17355. * src/TorrentMan.cc
  17356. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  17357. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17358. To fix the bug that .aria2 file is not saved if downloading is stopped
  17359. by the errors:it results that aria2 can not resume downloading:
  17360. * src/main.cc
  17361. (normalDownload): Added the call to save().
  17362. (main): Added the deletion of the elements in 'reserved'.
  17363. To fix log:
  17364. * src/PeerInteraction.cc
  17365. (receiveHandshake): Fixed log.
  17366. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17367. To improve download performance in BitTorrent:
  17368. * src/TorrentMan.cc
  17369. (getPeer): Check the number of connections. Return nullPeer if
  17370. it is greater than MAX_PEER_UPDATE.
  17371. This code was originally here, but was removed in 0.5.1.
  17372. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17373. To improve the conditional compilation:
  17374. * src/MultiDiskWriter.h:
  17375. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17376. * src/MultiDiskWriter.cc:
  17377. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17378. * src/Util.h:
  17379. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17380. Added ENABLE_BITTORRENT around computeFastSet().
  17381. * src/Util.cc:
  17382. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17383. Added ENABLE_BITTORRENT around computeFastSet().
  17384. * src/messageDigest.h:
  17385. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  17386. * src/ShaVisitor.h:
  17387. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17388. * src/ShaVisitor.cc:
  17389. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17390. * src/main.cc:
  17391. Added ENABLE_BITTORRENT around includes and blocks related to
  17392. BitTorrent.
  17393. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  17394. digest support is not available.
  17395. * src/AbstractDiskWriter.h:
  17396. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17397. * src/AbstractDiskWriter.cc:
  17398. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17399. * src/MetalinkEntry.cc
  17400. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  17401. support is not available.
  17402. To add command-line options for Metalink:
  17403. * src/main.cc:
  17404. Added metalink-version, metalink-language, metalink-os,
  17405. follow-metalink.
  17406. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  17407. * src/main.cc: Use these definition.
  17408. * Release 0.6.0
  17409. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17410. To add Metalink support(http/ftp only):
  17411. * src/AbstractCommand.h
  17412. (tryReserved): New function.
  17413. * src/AbstractCommand.cc
  17414. (execute): Call tryReserved().
  17415. (tryReserved): New function.
  17416. * src/Request.h
  17417. (Requests): New type definition.
  17418. * src/SegmentMan.h
  17419. (reserved): New variable.
  17420. * src/Util.h
  17421. (fileChecksum): New function.
  17422. (toUpper): New function.
  17423. (toLower): New function.
  17424. * src/Util.cc
  17425. (messageDigest.h): Included.
  17426. (trim): Trim \r\n\t.
  17427. (fileChecksum): New function.
  17428. (toUpper): New function.
  17429. (toLower): New function.
  17430. * src/main.cc
  17431. (normalDownload): New function.
  17432. (main): Added 2 command-line options: metalink-file,
  17433. metalink-connection. Their usage has not been written yet.
  17434. * src/MetalinkProcessor.h: New class.
  17435. * src/Xml2MetalinkProcessor.h: New class.
  17436. * src/Xml2MetalinkProcessor.cc: New class.
  17437. * src/MetalinkEntry.h: New class.
  17438. * src/MetalinkEntry.cc: New class.
  17439. * src/MetalinkResource.h: New class.
  17440. * src/MetalinkResource.cc: New class.
  17441. To add md5 message digest checking:
  17442. * src/messageDigest.h: Rewritten.
  17443. * src/MultiDiskWriter.cc: Updated according to the changes in
  17444. messageDigest.h.
  17445. * src/ShaVisitor.cc: Updated according to the changes in
  17446. messageDigest.h.
  17447. * src/Util.cc: Updated according to the changes in messageDigest.h.
  17448. * src/AbstractDiskWriter.cc: Updated according to the changes in
  17449. messageDigest.h.
  17450. To fix a bug that causes segfault when the payload length in peer
  17451. message is less than 0:
  17452. * src/PeerConnection.cc:
  17453. (receiveMessage): Fixed the bug.
  17454. * src/PeerMessageUtil.cc
  17455. (checkLength): Throw an exception if length is less than or equals to
  17456. 0.
  17457. To add new interfaces to Base64 encoding/decoding:
  17458. * src/Base64.h
  17459. (part_encode): Changed the method signature.
  17460. (encode): New function(overload).
  17461. (decode): New function(overload).
  17462. * src/Base64.cc
  17463. (part_encode): Rewritten.
  17464. (encode): Rewritten.
  17465. (encode): New function(overload).
  17466. To prevent a peer to download same piece if there is an error in
  17467. checksum:
  17468. * src/PieceMessage.cc
  17469. (receivedAction): Call peerInteraction->abortPiece().
  17470. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17471. To fix the bug that causes same have message is sent many times to
  17472. a single peer.
  17473. * src/Time.cc
  17474. (isNewer): Use Util::difftv().
  17475. * src/Util.cc
  17476. (difftv): Added a cast to (long long int).
  17477. * src/TorrentMan.cc
  17478. (advertisePiece): Use push_front.
  17479. (getAdvertisedPieceIndexes): A performance improvement was made.
  17480. To fix the bug that sends tracker requests without a sleep interval
  17481. when the number of connections is less than 15.
  17482. * src/TrackerWatcherCommand.cc
  17483. (execute): Now the number of connections is not a factor to decide
  17484. whether or not a tracker request should be sent or not.
  17485. * src/Time.h
  17486. (setTimeInSec): New function.
  17487. * src/Time.cc
  17488. (setTimeInSec): New function.
  17489. etc.
  17490. * src/ChokeMessage.cc
  17491. (receivedAction): Removed peer->snubbing = false
  17492. * src/PeerConnection.h
  17493. (receiveHandshake): Updated doc.
  17494. * src/TorrentMan.h
  17495. (getAdvertisedPieceIndexes): Updated the method signature.
  17496. * src/TorrentMan.cc
  17497. (getAdvertisedPieceIndexes): Updated the method signature.
  17498. * src/Time.h
  17499. (getTimeInMicros): Added a cast to (long long int).
  17500. (getTimeInMillis): Added a cast to (long long int).
  17501. * Release 0.5.2
  17502. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17503. To make a listening socket non-block:
  17504. * src/SocketCore.h
  17505. (setNonBlockingMode): New function.
  17506. * src/SocketCore.cc
  17507. (setNonBlockingMode): New function.
  17508. (beginListen): Added a call to setNonBlockingMode().
  17509. (acceptConnection): Call setNonBlockingMode().
  17510. (setBlockingMode): Updated.
  17511. To handle tracker's NAT-checking:
  17512. * src/PeerConnection.cc
  17513. (receiveHandshake): 'msg' param is filled with received data and
  17514. its length is assigned to 'length' param, even if all handshake
  17515. message is not yet received.
  17516. * src/PeerInteractionCommand.cc
  17517. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  17518. a new peer connects to localhost.
  17519. A call to peerInteraction->sendHandshake() was removed because
  17520. it is called from peerInteraction->receiveHandshake(true).
  17521. * src/PeerInteraction.h
  17522. (quickReplied): New variable.
  17523. (receiveHandshake): Added an argument.
  17524. * src/PeerInteraction.cc
  17525. (PeerInteraction): Added the initialization of quickReplied.
  17526. (receiveHandshake): Send handshake message as soon as the info hash
  17527. in a handshake message from a peer is correct.
  17528. To change the random part of peer id and key parameter:
  17529. * src/TorrentMan.h
  17530. (key): New variable.
  17531. * src/TorrentMan.cc
  17532. (setupInternal1): Use Util::randomAlpha() to generate random part
  17533. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  17534. key is also generated by Util::randomAlpha() and it is now 8 character
  17535. long.
  17536. * src/Util.h
  17537. (randomAlpha): New function.
  17538. * src/Util.cc
  17539. (randomAlpha): New function.
  17540. * src/TrackerWatcherCommand.cc
  17541. (execute): In a tracker request: Use torrentMan->key as key parameter.
  17542. Added no_peer_id=1.
  17543. Set snubbing flag to false when a choke message is received from a
  17544. snubbed peer.
  17545. * src/ChokeMessage.cc
  17546. (receivedAction): Set snubbing flag to false.
  17547. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17548. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  17549. * src/SimpleLogger.h (writeHeader): New function.
  17550. * src/SimpleLogger.cc (writeHeader): New function.
  17551. (writeLog): Fixed the bug that causes segfaults if exception message
  17552. contains an unescaped "%" character.
  17553. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  17554. when a tracker request fails.
  17555. * src/Request.cc (parseUrl): Query string is now handled properly.
  17556. * Release 0.5.1
  17557. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17558. To add Time class which represents a specific instant in time and
  17559. its precision is microseconds. Time checking procedures were rewritten
  17560. using this object.
  17561. * src/Time.h: New class.
  17562. * src/Time.cc: New class.
  17563. * src/AbstractCommand.h
  17564. (updateCheckPoint): Removed.
  17565. (isTimeoutDetected): Removed.
  17566. (checkPoint): Changed the type to Time.
  17567. (timeout): New variable.
  17568. (setTimeout): New function.
  17569. * src/AbstractCommand.cc
  17570. (AbstractCommand): Removed the initialization of checkPoint.
  17571. Added the initialization of timeout.
  17572. (updateCheckPoint): Removed.
  17573. (isTimeoutDetected): Removed.
  17574. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17575. * src/PeerChokeCommand.h
  17576. (checkPoint): Changed the type to Time.
  17577. * src/PeerChokeCommand.cc
  17578. (PeerChokeCommand): Removed the initialization of checkPoint.
  17579. (execute): Rewritten using Time object.
  17580. * src/TrackerWatcherCommand.h
  17581. (checkPoint): Changed the type to Time.
  17582. * src/TrackerWatcherCommand.cc
  17583. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  17584. (execute): Rewritten.
  17585. * src/ConsoleDownloadEngine.h
  17586. (cp): Changed the type to Time.
  17587. (startup): Changed the type to Time.
  17588. * src/ConsoleDownloadEngine.cc
  17589. (initStatistics): Use cp.reset(), startup.reset().
  17590. (calculateStatistics): Rewritten using Time object.
  17591. * src/PeerAbstractCommand.h
  17592. (updateCheckPoint): Removed.
  17593. (isTimeoutDetected): Removed.
  17594. (checkPoint): Changed the type to Time.
  17595. * src/PeerAbstractCommand.cc
  17596. (PeerAbstractCommand): Removed the initialization of checkPoint.
  17597. (updateCheckPoint): Removed.
  17598. (isTimeoutDetected): Removed.
  17599. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17600. * src/PeerInteractionCommand.cc
  17601. (PeerInteractionCommand): Removed the initializations of struct
  17602. timeval variables.
  17603. * src/PeerInteractionCommand.h
  17604. (keepAliveCheckPoint): Changed the type to Time.
  17605. (chokeCheckPoint): Changed the type to Time.
  17606. (freqCheckPoint): Changed the type to Time.
  17607. (haveCheckTime): Changed the type to Time.
  17608. * src/PeerInteractionCommand.cc
  17609. (executeInternal): Rewritten using Time object.
  17610. (detectMessageFlooding): Rewritten using Time object.
  17611. (checkLongTimePeerChoking): Rewritten using Time object.
  17612. (sendKeepAlive): Rewritten using Time object.
  17613. (checkHave): Rewritten using Time object.
  17614. * src/SleepCommand.h
  17615. (checkPoint): Changed the type to Time.
  17616. * src/SleepCommand.cc
  17617. (SleepCommand): Removed the initialization of checkPoint.
  17618. (execute): Rewritten using Time object.
  17619. * src/TorrentAutoSaveCommand.h
  17620. (checkPoint): Changed the type to Time.
  17621. * src/TorrentAutoSaveCommand.cc
  17622. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  17623. (execute): Rewritten.
  17624. * src/DownloadCommand.h
  17625. (sw): Changed the type to Time.
  17626. * src/DownloadCommand.cc
  17627. (DownloadCommand): Removed the initialization of sw.
  17628. (executeInternal): Rewritten.
  17629. * src/RequestSlot.h
  17630. (dispatchedTime): Changed the type to Time.
  17631. * src/RequestSlot.cc
  17632. (RequestSlot): Removed the call to setDispatchedTime().
  17633. (setDispatchedTime): Rewirtten.
  17634. (isTimeout): Rewritten.
  17635. (getLatencyInMillis): Rewritten.
  17636. * src/TorrentDownloadEngine.h
  17637. (cp): Changed the type to Time[2].
  17638. (startup): Changed the type to Time.
  17639. * src/TorrentDownloadEngine.cc
  17640. (initStatistics): Rewritten.
  17641. (calculateStatistics): Rewritten.
  17642. * src/DownloadEngine.cc
  17643. (run): Rewritten.
  17644. To detect all attempts to connect to the tracker are failed:
  17645. * src/AbstractCommand.cc
  17646. (execute): Increment e->segmentMan->errors if a command aborted.
  17647. * src/SegmentMan.h
  17648. (errors): New variable.
  17649. * src/SegmentMan.cc
  17650. (SegmentMan): Added the initialization of errors.
  17651. (init): Added the initialization of errors.
  17652. * src/TrackerWatcherCommand.cc
  17653. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  17654. request was failed.
  17655. To handle snubbed peers:
  17656. * src/PeerChokeCommand.cc
  17657. (optUnchokingPeer): Snubbed peers don't get unchoked.
  17658. (execute): Snubbed peers don't get unchoked.
  17659. * src/PeerInteraction.h
  17660. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  17661. * src/PeerInteraction.cc
  17662. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  17663. back the requested 16k block in 60 seconds.
  17664. * src/PieceMessage.cc
  17665. (receivedAction): A peer's snubbed state is cleard if it sends
  17666. the requested 16k block in 60 seconds.
  17667. * src/Peer.h
  17668. (snubbing): New variable.
  17669. * src/Peer.cc
  17670. (resetStatus): Added snubbed = false.
  17671. To fix the bug that causes have message is not sent:
  17672. * src/PeerInteractionCommand.cc
  17673. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  17674. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  17675. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  17676. * src/TorrentMan.h
  17677. (HaveEntry): New class.
  17678. (advertisePiece): Rewritten.
  17679. (getAdvertisedPieceIndexes): Rewritten.
  17680. (Haves): Changed the type.
  17681. (getAdvertisedPieceIndexes): Added an argument.
  17682. Others:
  17683. * src/TorrentMan.h
  17684. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  17685. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  17686. * src/TorrentMan.cc
  17687. (getPeer): Don't check the number of connections here.
  17688. (setupInternal1): Changed peerId.
  17689. * src/PeerInteractionCommand.h
  17690. (KEEP_ALIVE_INTERVAL): New definition.
  17691. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  17692. * src/main.cc
  17693. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  17694. * src/DownloadEngine.h: Removed unnecessary header includes.
  17695. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17696. To fix the bug that causes segfaults if a tracker returns a zero-length
  17697. list as "peers":
  17698. * src/TrackerUpdateCommand.cc
  17699. (execute): Added a check to see wether the type of peers is Data*.
  17700. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17701. * Release 0.5.0
  17702. To fix compile issue with gcc3:
  17703. * src/CancelMessage.h
  17704. (ID): Renamed as ID_t
  17705. (ID_t): New enum.
  17706. * src/RejectMessage.h
  17707. (ID): Renamed as ID_t
  17708. (ID_t): New enum.
  17709. * src/SuggestPieceMessage.h
  17710. (ID): Renamed as ID_t
  17711. (ID_t): New enum.
  17712. * src/AllowedFastMessage.h
  17713. (ID): Renamed as ID_t
  17714. (ID_t): New enum.
  17715. * src/PortMessage.h
  17716. (ID): Renamed as ID_t
  17717. (ID_t): New enum.
  17718. * src/HaveNoneMessage.h
  17719. (ID): Renamed as ID_t
  17720. (ID_t): New enum.
  17721. * src/KeepAliveMessage.h
  17722. (ID): Renamed as ID_t
  17723. (ID_t): New enum.
  17724. * src/HaveAllMessage.h
  17725. (ID): Renamed as ID_t
  17726. (ID_t): New enum.
  17727. * src/UnchokeMessage.h
  17728. (ID): Renamed as ID_t
  17729. (ID_t): New enum.
  17730. * src/BitfieldMessage.h
  17731. (ID): Renamed as ID_t
  17732. (ID_t): New enum.
  17733. * src/PieceMessage.h
  17734. (ID): Renamed as ID_t
  17735. (ID_t): New enum.
  17736. * src/RequestMessage.h
  17737. (ID): Renamed as ID_t
  17738. (ID_t): New enum.
  17739. * src/NotInterestedMessage.h
  17740. (ID): Renamed as ID_t
  17741. (ID_t): New enum.
  17742. * src/ChokeMessage.h
  17743. (ID): Renamed as ID_t
  17744. (ID_t): New enum.
  17745. * src/InterestedMessage.h
  17746. (ID): Renamed as ID_t
  17747. (ID_t): New enum.
  17748. * src/HaveMessage.h
  17749. (ID): Renamed as ID_t
  17750. (ID_t): New enum.
  17751. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17752. * src/PeerAbstractCommand.h
  17753. (beforeSocketCheck): Removed.
  17754. * src/PeerAbstractCommand.cc
  17755. Modified in order to call executeInternal() even if socket check
  17756. and upload limit check fail.
  17757. * src/PeerInteractionCommand.h
  17758. (keepAlive): Removed.
  17759. (sendKeepAlive): New function.
  17760. (checkHave): New function.
  17761. (beforeSocketCheck): Removed.
  17762. * src/PeerInteractionCommand.cc
  17763. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17764. calls to checkHave() and sendKeepAlive().
  17765. (keepAlive): Renamed to sendKeepAlive().
  17766. (sendKeepAlive): New function.
  17767. (beforeSocketCheck): Removed.
  17768. (checkHave): New function.
  17769. * src/BitfieldMan.cc
  17770. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17771. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17772. 0.
  17773. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17774. * src/TorrentMan.h
  17775. (UsedPieces): Removed.
  17776. (Pieces): New type definition.
  17777. * src/Piece.h: Updated doc.
  17778. * src/Peer.h
  17779. (totalLength): Removed.
  17780. * src/Peer.cc
  17781. (updateLatency): Fixed the latency calculation.
  17782. * src/TorrentMan.cc
  17783. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17784. than or equal to MAX_PEER_LIST_SIZE.
  17785. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17786. then return false.
  17787. (deleteOldErrorPeers): Rewritten.
  17788. (deleteUsedPiece): Fixed the miss use of STL remove.
  17789. * src/PeerInteraction.h
  17790. (Pieces): Removed.
  17791. (deleteTimeoutRequestSlot): Removed.
  17792. (deleteCompletedRequestSlot): Removed.
  17793. (checkRequestSlot): New function.
  17794. * src/PeerInteraction.cc
  17795. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17796. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17797. (checkRequestSlot): New function.
  17798. * src/DownloadEngine.cc
  17799. (run): Clear activeSockets before calling waitData().
  17800. (waitData): Removed a call to activeSockets.clear().
  17801. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17802. To attempt to handle EINTR:
  17803. * src/SocketCore.cc
  17804. (isReadable): Added EINTR handling.
  17805. (isWritable): Added EINTR handling.
  17806. To improve the performance:
  17807. * src/AbstractCommand.cc
  17808. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17809. * src/PeerInteractionCommand.h
  17810. (receiveMessage): Renamed as receiveMessages().
  17811. (receiveMessages): New function.
  17812. * src/PeerInteractionCommand.cc
  17813. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17814. () function. detectMessageFlooding() is moved here.
  17815. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17816. (). The flooding detection for have message is comment out.
  17817. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17818. Util::difftv().
  17819. (receiveMessage): Renamed as receiveMessages().
  17820. (receiveMessages): New function.
  17821. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17822. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17823. * src/SleepCommand.cc
  17824. (execute): Use Util::difftvsec() instead of Util::difftv().
  17825. * src/BitfieldMan.h
  17826. (getNthBitIndex): New function.
  17827. (hasMissingPiece): New function.
  17828. (getAllMissingIndexes): New function.
  17829. * src/BitfieldMan.cc
  17830. (countSetBit): Rewritten.
  17831. (getNthBitIndex): New function.
  17832. (getMissingIndexRandomly): Rewritten.
  17833. (hasMissingPiece): New function.
  17834. (getAllMissingIndexes): New function.
  17835. * src/TorrentMan.cc
  17836. (hasMissingPiece): New function.
  17837. (deleteUsedPiece): Rewritten using STL.
  17838. * src/PeerInteraction.cc
  17839. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17840. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17841. (addRequests): Updated the number of pending requests.
  17842. * src/PeerAbstractCommand.cc
  17843. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17844. (execute): Returns true if TorrentMan::isHalt() is true.
  17845. Corrected the condition of upload limit checking.
  17846. * src/Util.h
  17847. (countBit): New function.
  17848. * src/Util.cc
  17849. (nbits): New variable.
  17850. (countBit): New function.
  17851. * src/DownloadEngine.h
  17852. (SockCmdMap): New type definition.
  17853. (waitData): Added an argument.
  17854. (addSocket): Added an argument.
  17855. (addSocketForReadCheck): Added an argument.
  17856. (addSocketForWriteCheck): Added an argument.
  17857. * src/DownloadEngine.cc
  17858. (run): Executes only commands whose sockets are ready to read or write.
  17859. All commands are executed in every 1 second.
  17860. (waitData): Calls select() again if it returned
  17861. EINTR.
  17862. (addSocket): Saves socket and command object pair to the map.
  17863. (deleteSocket): Deletes socket and command object pair from the map.
  17864. (addSocketForReadCheck): Added an argument.
  17865. (addSocketForWriteCheck): Added an argument.
  17866. * src/DownloadCommand.cc
  17867. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17868. To send "event=stopped" to the tracker when the application finishes:
  17869. * src/PeerChokeCommand.h
  17870. (checkPoint): New variable.
  17871. * src/PeerChokeCommand.cc
  17872. (PeerChokeCommand): Added the initialization of checkPoint.
  17873. (execute): The interval check is now done by checkPoint, not
  17874. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17875. * src/TorrentMan.h
  17876. (halt): New function.
  17877. (hasMissingPiece): New function.
  17878. (isHalt): New function.
  17879. (setHalt): New function.
  17880. * src/TorrentMan.cc
  17881. (TorrentMan): Added the initialization of halt.
  17882. * src/TorrentAutoSaveCommand.h
  17883. (checkPoint): New variable.
  17884. * src/PeerListenCommand.cc
  17885. (execute): Returns true if TorrentMan::isHalt() is true.
  17886. * src/main.cc
  17887. (setSignalHander): Added flags argument.
  17888. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17889. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17890. Removed printDownloadAbortMessage() after torrent downloading loop.
  17891. * src/TorrentAutoSaveCommand.cc
  17892. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17893. (execute): Returns true if TorrentMan::isHalt() is true.
  17894. The interval check is now done by checkPoint, not SleepCommand.
  17895. * src/TrackerWatcherCommand.cc
  17896. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17897. event=stopped.
  17898. * src/TrackerUpdateCommand.cc
  17899. (prepareForRetry): Do not use SleepCommand here.
  17900. (execute): Returns true if TorrentMan::isHalt() is true.
  17901. Others:
  17902. * src/TorrentMan.cc
  17903. (getMissingPieceIndex): Updated log message.
  17904. * src/PeerInteraction.cc
  17905. (createPeerMessag): Updated log message.
  17906. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17907. To add the ability to download several pieces in mix in a command and
  17908. increase the number of request slots according to request-cancel
  17909. latency:
  17910. * src/PeerInteractionCommand.cc
  17911. (executeInternal): The number of messages to be received at a time
  17912. is increased from 10 to 50.
  17913. * src/LogFactory
  17914. (getInstance): Added NullLogger.
  17915. * src/NullLogger.h: New class.
  17916. * src/BitfieldMan.h
  17917. (getMissingIndex): New function.
  17918. * src/BitfieldMan.cc
  17919. (getMissingIndex): New function.
  17920. * src/TorrentMan.h
  17921. (checkOutPiece): New function.
  17922. (getMissingPieceIndex): New function.
  17923. (getMissingFastPieceIndex): New function.
  17924. (getMissingFastPiece): New function.
  17925. * src/TorrentMan.cc
  17926. (updatePiece): Rewritten using STL.
  17927. (syncPiece): Rewritten using STL.
  17928. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17929. checkOutPiece().
  17930. (getMissingPieceIndex): New function.
  17931. (getMissingFastPieceIndex): New function.
  17932. (getMissingFastPiece): New function.
  17933. (checkOutPiece): New function.
  17934. * src/PeerInteraction.h
  17935. (Pieces): New type definition.
  17936. (piece): Removed.
  17937. (pieces): New variable.
  17938. (getNewPieceAndSendInterest): Added the "piece" argument.
  17939. (abortPiece): Added the "piece" argument.
  17940. (abortAllPieces): New function.
  17941. (isInRequestSlot): New function.
  17942. (hasDownloadPiece): Added the "index" argument.
  17943. (setDownloadPiece): Removed.
  17944. (getDownloadPiece): Added the "index" argument.
  17945. (updatePiece): New function.
  17946. (createRequestMessage): Added the "index" argument.
  17947. * src/PeerInteraction.cc
  17948. (onChoked): Rewritten.
  17949. (abortPiece): Rewirtten.
  17950. (abortAllPieces): New function.
  17951. (deleteTimeoutRequestSlot): Rewritten.
  17952. Clarified code a little bit.
  17953. (deleteCompletedRequestSlot): Rewritten.
  17954. (isInRequestSlot): New function.
  17955. (syncPiece): Rewritten.
  17956. (updatePiece): New function.
  17957. (getNewPieceAndSendInterest): Rewritten.
  17958. (addRequests): Rewritten.
  17959. (getDownloadPiece): Rewritten.
  17960. (hasDownloadPiece): Rewritten.
  17961. (createRequestMessage): Added the "index" argument.
  17962. * src/common.h
  17963. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17964. (DIV_FLOOR): New definition.
  17965. * src/PieceMessage.cc
  17966. (receivedAction): Update request-piece latency here.
  17967. * src/RequestSlot.h
  17968. (getLatencyInMillis): New function.
  17969. * src/RequestSlot.cc
  17970. (isTimeout): Rewritten using getLatencyInMillis.
  17971. (getLatencyInMillis): New function.
  17972. * src/Piece.h
  17973. (operator==): New function.
  17974. (getMissingBlockIndex): New function.
  17975. * src/Piece.cc
  17976. (operator==): New function.
  17977. (getMissingBlockIndex): New function.
  17978. * src/Peer.h
  17979. (DEFAULT_LATENCY): New definition.
  17980. (latency): New variable.
  17981. (updateLatency): New function.
  17982. (getLatency): New function.
  17983. * src/Peer.cc
  17984. (resetStatus): Reset latecy.
  17985. (updateLatency): New function.
  17986. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17987. * src/SocketCore.cc
  17988. (isReadable): Added secure to the condition.
  17989. * src/HttpConnection.cc
  17990. (receiveResponse): Fixed a bug that causes no response header
  17991. exception.
  17992. * src/Peer.h
  17993. (getFastSet): Fixed the return value type.
  17994. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17995. To remove a wait from download loop:
  17996. * src/DownloadEngine.cc
  17997. (run): Comment out shortSleep.
  17998. To rewrite the message handling:
  17999. * src/SimplePeerMessage.h: New class.
  18000. * src/SimplePeerMessage.cc: New class.
  18001. * src/CancelMessage.h: Derived from SimplePeerMessage.
  18002. (msg): New variable.
  18003. (create): New function.
  18004. (send): Removed.
  18005. (getMessage): New function.
  18006. (getMessageLength): New function.
  18007. * src/CancelMessage.cc
  18008. (create): New function.
  18009. (receivedAction): Replaced deleteRequestMessageInQueue with
  18010. rejectPieceMessageInQueue.
  18011. (send): Removed.
  18012. (getMessage): New function.
  18013. (getMessageLength): New function.
  18014. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  18015. (msg): New variable.
  18016. (msgLength): New variable.
  18017. (~BitfieldMessage): Deleted msg.
  18018. (send): Removed.
  18019. (getMessage): New function.
  18020. (getMessageLength): New function.
  18021. * src/BitfieldMessage.cc
  18022. (create): New function.
  18023. (send): Removed.
  18024. (getMessage): New function.
  18025. (getMessageLength): New function.
  18026. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  18027. (msg): New variable.
  18028. (sendPredicate): New function.
  18029. (onSendComplete): New function.
  18030. (send): Removed.
  18031. (getMessage): New function.
  18032. (getMessageLength): New function.
  18033. (create): New function.
  18034. * src/ChokeMessage.cc
  18035. (create): New function.
  18036. (send): Removed.
  18037. (sendPredicate): New function.
  18038. (getMessage): New function.
  18039. (getMessageLength): New function.
  18040. (onSendComplete): New function.
  18041. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  18042. (msg): New variable.
  18043. (send): Removed.
  18044. (getMessage): New function.
  18045. (getMessageLength): New function.
  18046. * src/KeepAliveMessage.cc
  18047. (send): Removed.
  18048. (getMessage): New function.
  18049. (getMessageLength): New function.
  18050. * src/PortMessage.h
  18051. (create): New function.
  18052. (receivedAction): Updated log message.
  18053. * src/PortMessage.cc: New file.
  18054. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  18055. (msg): New variable.
  18056. (sendPredicate): New function.
  18057. (onSendComplete): New function.
  18058. (create): New function.
  18059. (send): Removed.
  18060. (getMessage): New function.
  18061. (getMessageLength): New function.
  18062. * src/UnchokeMessage.cc
  18063. (create): New function.
  18064. (send): Removed.
  18065. (sendPredicate): New function.
  18066. (getMessage): New function.
  18067. (getMessageLength): New function.
  18068. (onSendComplete): New function.
  18069. * src/PieceMessage.h
  18070. (leftPieceDataLength): Removed.
  18071. (leftDataLength): New variable.
  18072. (headerSend): New variable.
  18073. (pendingCount): New variable.
  18074. (msgHeader): New variable.
  18075. (sendPieceData): New function.
  18076. (incrementPendingCount): New function.
  18077. (isPendingCountMax): New function.
  18078. (create): New function.
  18079. (getMessageHeader): New function.
  18080. (getMessageHeaderLength): New function.
  18081. * src/PieceMessage.cc
  18082. (create): New function.
  18083. (getMessageHeader): New function.
  18084. (getMessageHeaderLength): New function.
  18085. (send): Rewritten.
  18086. (sendPieceData): New function.
  18087. * src/HaveMessage.h: Derived from SimplePeerMessage.
  18088. (msg): New variable.
  18089. (create): New function.
  18090. (getMessage): New function.
  18091. (getMessageLength): New function.
  18092. * src/HaveMessage.cc
  18093. (create): New function.
  18094. (send): Removed.
  18095. (sendPieceData): New function.
  18096. (getMessage): New function.
  18097. (getMessageLength): New function.
  18098. * src/RequestMessage.h: Derived from SimplePeerMessage.
  18099. (msg): New variable.
  18100. (create): New function.
  18101. (send): Removed.
  18102. (getMessage): New function.
  18103. (getMessageLength): New function.
  18104. * src/RequestMessage.cc
  18105. (create): New function.
  18106. (receivedAction): Added the handling of fast extension.
  18107. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  18108. (send): Removed.
  18109. (getMessage): New function.
  18110. (getMessageLength): New function.
  18111. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  18112. (msg): New variable.
  18113. (sendPredicate): New function.
  18114. (onSendComplete): New function.
  18115. (create): New function.
  18116. (getMessage): New function.
  18117. (getMessageLength): New function.
  18118. * src/InterestedMessage.cc
  18119. (create): New function.
  18120. (send): Removed.
  18121. (sendPieceData): New function.
  18122. (getMessage): New function.
  18123. (getMessageLength): New function.
  18124. (onSendComplete): New function.
  18125. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  18126. (msg): New variable.
  18127. (sendPieceData): New function.
  18128. (onSendComplete): New function.
  18129. (create): New function.
  18130. (send): Removed.
  18131. (getMessage): New function.
  18132. (getMessageLength): New function.
  18133. * src/NotInterestedMessage.cc
  18134. (create): New function.
  18135. (send): Removed.
  18136. (sendPredicate): New function.
  18137. (getMessage): New function.
  18138. (getMessageLength): New function.
  18139. (onSendComplete): New function.
  18140. * src/AllowedFastMessage.h: New class.
  18141. * src/AllowedFastMessage.cc: New class.
  18142. * src/RejectMessage.h: New class.
  18143. * src/RejectMessage.cc: New class.
  18144. * src/SuggestPieceMessage.h: New class.
  18145. * src/SuggestPieceMessage.cc: New class.
  18146. * src/HaveAllMessage.h: New class.
  18147. * src/HaveAllMessage.cc: New class.
  18148. * src/HaveNoneMessage.h: New class.
  18149. * src/HaveNoneMessage.cc: New class.
  18150. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  18151. (msg): New variable.
  18152. (reserved): New variable.
  18153. (create): New function.
  18154. (getId): New function.
  18155. (receivedAction): New function.
  18156. (getMessage): New function.
  18157. (getMessageLength): New function.
  18158. (isFastExtensionSupported): New function.
  18159. * src/HandshakeMessage.cc
  18160. (HandshakeMessage): Moved here from HandshakeMessage.h.
  18161. (create): New function.
  18162. (getMessage): New function.
  18163. (getMessageLength): New function.
  18164. (toString): Added the output of reserved field.
  18165. (check): Added const qualifier.
  18166. (isFastExtensionSupported): New function.
  18167. * src/PeerMessageUtil.h
  18168. (createChokeMessage): Removed.
  18169. (createUnchokeMessage): Removed.
  18170. (createInterestedMessage): Removed.
  18171. (createNotInterestedMessage): Removed.
  18172. (createHaveMessage): Removed.
  18173. (createBitfieldMessage): Removed.
  18174. (createRequestMessage): Removed.
  18175. (createCancelMessage): Removed.
  18176. (createPieceMessage): Removed.
  18177. (createPortMessage): Removed.
  18178. (createChokeMessage): Removed.
  18179. (createUnchokeMessage): Removed.
  18180. (createInterestedMessage): Removed.
  18181. (createNotInterestedMessage): Removed.
  18182. (createHaveMessage): Removed.
  18183. (createBitfieldMessage): Removed.
  18184. (createRequestMessage): Removed.
  18185. (createCancelMessage): Removed.
  18186. (createPieceMessage): Removed.
  18187. (createKeepAliveMessage): Removed.
  18188. (createHandshakeMessage): Removed.
  18189. (setIntParam): New function.
  18190. (createPeerMessageString): New function.
  18191. * src/PeerMessageUtil.cc
  18192. (createChokeMessage): Removed.
  18193. (createUnchokeMessage): Removed.
  18194. (createInterestedMessage): Removed.
  18195. (createNotInterestedMessage): Removed.
  18196. (createHaveMessage): Removed.
  18197. (createBitfieldMessage): Removed.
  18198. (createRequestMessage): Removed.
  18199. (createCancelMessage): Removed.
  18200. (createPieceMessage): Removed.
  18201. (createPortMessage): Removed.
  18202. (createRequestMessage): Removed.
  18203. (createCancelMessage): Removed.
  18204. (createPieceMessage): Removed.
  18205. (createHaveMessage): Removed.
  18206. (createChokeMessage): Removed.
  18207. (createUnchokeMessage): Removed.
  18208. (createInterestedMessage): Removed.
  18209. (createNotInterestedMessage): Removed.
  18210. (createBitfieldMessage): Removed.
  18211. (createKeepAliveMessage): Removed.
  18212. (createHandshakeMessage): Removed.
  18213. (setIntParam): New function.
  18214. (createPeerMessageString): New function.
  18215. * src/PeerConnection.h
  18216. (peer): Removed.
  18217. (torrentMan): Removed.
  18218. (createNLengthMessage): Removed.
  18219. (setIntParam): Removed.
  18220. (writeOutgoingMessageLog): Removed all overloaded functions.
  18221. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18222. (sendMessage): New function.
  18223. (sendHandshake): Removed.
  18224. (sendKeepAlive): Removed.
  18225. (sendChoke): Removed.
  18226. (sendUnchoke): Removed.
  18227. (sendInterested): Removed.
  18228. (sendNotInterested): Removed.
  18229. (sendHave): Removed.
  18230. (sendBitfield): Removed.
  18231. (sendRequest): Removed.
  18232. (sendPiece): Removed.
  18233. (sendPieceHeader): Removed.
  18234. (sendPieceData): Removed.
  18235. (sendCancel): Removed.
  18236. (getPeer): Removed.
  18237. * src/PeerConnection.cc
  18238. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18239. (sendHandshake): Removed.
  18240. (sendKeepAlive): Removed.
  18241. (createNLengthMessage): Removed.
  18242. (setIntParam): Removed.
  18243. (writeOutgoingMessageLog): Removed all overloaded functions.
  18244. (sendChoke): Removed.
  18245. (sendUnchoke): Removed.
  18246. (sendInterested): Removed.
  18247. (sendNotInterested): Removed.
  18248. (sendHave): Removed.
  18249. (sendBitfield): Removed.
  18250. (sendRequest): Removed.
  18251. (sendPiece): Removed.
  18252. (sendPieceHeader): Removed.
  18253. (sendPieceData): Removed.
  18254. (sendMessage): New function.
  18255. (sendCancel): Removed.
  18256. * src/PeerInteractionCommand.cc
  18257. (PeerInteractionCommand): Call setUploadLimit.
  18258. (executeInternal): Call setUploadLimit.
  18259. Added the handling of "inProgress" state of handshake message.
  18260. Call sendBitfield() or sendAllowdFast() instead of deprecated
  18261. sendNow().
  18262. (keepAlive): Call addMessage and sendMessage instead of deprecated
  18263. sendNow().
  18264. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  18265. * src/TorrentMan.h
  18266. (PEER_ID_LENGTH): New definition.
  18267. (hasAllPieces): New function.
  18268. * src/TorrentMan.cc
  18269. (getMissingPiece): Added the handling of fast extension.
  18270. (cancelPiece): Call updatePiece().
  18271. (hasAllPieces): New function.
  18272. * src/PeerInteraction.h
  18273. (fastSet): New variable.
  18274. (getNewPieceAndSendInterest): Changed the return type to void.
  18275. (send): Renamed as sendMessages.
  18276. (deleteAllRequestSlot): Removed.
  18277. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18278. (cancelAllRequest): Removed all overloaded functions.
  18279. (deleteAllRequestSlot): Removed.
  18280. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18281. (rejectPieceMessageInQueue): New function.
  18282. (rejectAllPieceMessageInQueue): New function.
  18283. (onChoked): New function.
  18284. (isSendingMessageInProgress): New function.
  18285. (getCorrespondingRequestSlot): Changed its arguments.
  18286. (isInFastSet): New function.
  18287. (addFastSetIndex): New function.
  18288. (addRequests): New function.
  18289. (sendNow): Removed.
  18290. (trySendNow): Removed.
  18291. (sendBitfield): New function.
  18292. (sendAllowdFast): New function.
  18293. (createHaveAllMessage): New function.
  18294. (createHaveNoneMessage): New function.
  18295. (createRejectMessage): New function.
  18296. (createAllowedFastMessage): New function.
  18297. * src/PeerInteraction.cc
  18298. (send): Renamed as sendMessages.
  18299. (sendMessages): New function.
  18300. (MsgPushBack): New class.
  18301. (isSendingMessageInProgress): New function.
  18302. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18303. (rejectAllPieceMessageInQueue): New function.
  18304. Added the handling of fast extension.
  18305. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18306. (rejectPieceMessageInQueue): New function.
  18307. Added the handling of fast extension.
  18308. (deleteRequestSlot): Replaced for loop with std::find.
  18309. (onChoked): New function.
  18310. (deleteAllRequestSlot): Removed.
  18311. (abortPiece): Rewirtten.
  18312. (deleteTimeoutRequestSlot): Updated log messages.
  18313. (getCorrespondingRequestSlot): Changed its arguments.
  18314. (cancelAllRequest): Removed all overloaded functions.
  18315. (receiveHandshake): Added the check to see whether an incoming peer
  18316. supports fast extension.
  18317. (createHandshakeMessage): Use HandshakeMessage::create instead of
  18318. PeerMessageUtil.
  18319. (createPeerMessage): Use create() of each message class instead of
  18320. PeerMessageUtil.
  18321. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  18322. AllowedFastMessage were added.
  18323. (getNewPieceAndSendInterest): Changed its return value type to void.
  18324. Added the handling of fast extension.
  18325. (addRequests): New function.
  18326. (sendNow): Removed.
  18327. (sendHandshake): Rewritten.
  18328. (trySendNow): Removed.
  18329. (sendBitfield): New function.
  18330. (sendAllowdFast): New function.
  18331. (isInFastSet): New function.
  18332. (addFastSetIndex): New function.
  18333. (createRequestMessage): Use RequestMessage::create instead of
  18334. PeerMessageUtil.
  18335. (createCancelMessage): Use CancelMessage::create instead of
  18336. PeerMessageUtil.
  18337. (createPieceMessage): Use PieceMessage::create instead of
  18338. PeerMessageUtil.
  18339. (createHaveMessage): Use HaveMessage::create instead of
  18340. PeerMessageUtil.
  18341. (createChokeMessage): Use ChokeMessage::create instead of
  18342. PeerMessageUtil.
  18343. (createUnchokeMessage): Use UnchokeMessage::create instead of
  18344. PeerMessageUtil.
  18345. (createInterestedMessage): Use InterestedMessage::create instead of
  18346. PeerMessageUtil.
  18347. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  18348. of PeerMessageUtil.
  18349. (createBitfieldMessage): Use BitfieldMessage::create instead of
  18350. PeerMessageUtil.
  18351. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  18352. PeerMessageUtil.
  18353. (createHaveAllMessage): New function.
  18354. (createHaveNoneMessage): New function.
  18355. (createRejectMessage): New function.
  18356. (createAllowedFastMessage: New function.
  18357. * src/Util.h
  18358. (sha1Sum): New function.
  18359. (computeFastSet): New function.
  18360. * src/Util.cc
  18361. (sha1Sum): New function.
  18362. (computeFastSet): New function.
  18363. * src/Peer.h
  18364. (fastExtensionEnabled): New variable.
  18365. (fastSet): New variable.
  18366. (setAllBitfield): New function.
  18367. (setFastExtensionEnabled): New function.
  18368. (isFastExtensionEnabled): New function.
  18369. (addFastSetIndex): New function.
  18370. (getFastSet): New function.
  18371. (isInFastSet): New function.
  18372. (countFastSet): New function.
  18373. * src/Peer.cc
  18374. (isInFastSet): New function.
  18375. (addFastSetIndex): New function.
  18376. (setAllBitfield): New function.
  18377. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  18378. sockets.
  18379. * src/PeerAbstractCommand.cc
  18380. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  18381. and uploadLimit.
  18382. (execute): Changed the procedure of checking sockets. The upload speed
  18383. checking were added.
  18384. (setUploadLimit): New function.
  18385. (setUploadLimitCheck): New function.
  18386. * src/PeerAbstractCommand.h
  18387. (setUploadLimit): New function.
  18388. (setUploadLimitCheck): New function.
  18389. (uploadLimit): New variable.
  18390. (uploadLimitCheck): New variable.
  18391. To contact a tracker regularly:
  18392. * src/TrackerWatcherCommand.h (interval): New variable.
  18393. (checkPoint): New variable.
  18394. (TrackerWatcherCommand): Added interval argument.
  18395. * src/TrackerWatcherCommand.cc
  18396. (TrackerWatcherCommand): Initialized checkPoint.
  18397. (execute): Now a tracker is contacted in every specified period.
  18398. If peer list is not needed, send request with numwant=0.
  18399. * src/TrackerUpdateCommand.cc
  18400. (execute): Updated log messages.
  18401. * src/DownloadEngine.cc
  18402. (~DownloadEngine): Removed two asserts.
  18403. (waitData): Uncommented wfds. May be a bug fix.
  18404. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18405. * src/PeerInteractionCommand.h
  18406. (checkInactiveConnection): Removed.
  18407. * src/PeerInteractionCommand.cc
  18408. (executeInternal): Removed following function calls:
  18409. detectMessageFlooding(), checkLongTimePeerChoking and
  18410. checkInactiveConnection().
  18411. (checkInactiveConnection): Removed.
  18412. (detectMessageFlooding): Removed function call to
  18413. checkInactiveConnection().
  18414. * src/PeerMessageUtil.h
  18415. (createChokeMessage): New function. Overload.
  18416. (createUnchokeMessage): New function. Overload.
  18417. (createInterestedMessage): New function. Overload.
  18418. (createNotInterestedMessage): New function. Overload.
  18419. (createHaveMessage): New function. Overload.
  18420. (createBitfieldMessage): New function. Overload.
  18421. (createRequestMessage): New function. Overload.
  18422. (createCancelMessage): New function. Overload.
  18423. (createPieceMessage): New function. Overload.
  18424. (createKeepAliveMessage): New function. Overload.
  18425. * src/PeerMessageUtil.cc
  18426. (createChokeMessage): New function. Overload.
  18427. (createUnchokeMessage): New function. Overload.
  18428. (createInterestedMessage): New function. Overload.
  18429. (createNotInterestedMessage): New function. Overload.
  18430. (createHaveMessage): New function. Overload.
  18431. (createBitfieldMessage): New function. Overload.
  18432. (createRequestMessage): New function. Overload.
  18433. (createCancelMessage): New function. Overload.
  18434. (createPieceMessage): New function. Overload.
  18435. (createKeepAliveMessage): New function. Overload.
  18436. * src/SendMessageQueue.cc
  18437. (createRequestMessage): Use PeerMessageUtil.
  18438. (createCancelMessage): Use PeerMessageUtil.
  18439. (createPieceMessage): Use PeerMessageUtil.
  18440. (createHaveMessage): Use PeerMessageUtil.
  18441. (createChokeMessage): Use PeerMessageUtil.
  18442. (createUnchokeMessage): Use PeerMessageUtil.
  18443. (createInterestedMessage): Use PeerMessageUtil.
  18444. (createNotInterestedMessage): Use PeerMessageUtil.
  18445. (createBitfieldMessage): Use PeerMessageUtil.
  18446. (createKeepAliveMessage): Use PeerMessageUtil.
  18447. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  18448. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  18449. * src/PeerInteraction.h: New class.
  18450. * src/PeerInteraction.cc: New class.
  18451. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18452. Each peer message has its own class.
  18453. * src/PendingMessages.h: Removed.
  18454. * src/PendingMessages.cc: Removed. The sending process was moved to
  18455. each message class.
  18456. * src/RequestSlotMan.h: Removed.
  18457. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  18458. SendMessageQueue.
  18459. * src/RequestMessage.h: New class.
  18460. * src/RequestMessage.cc: New class.
  18461. * src/CancelMessage.h: New class.
  18462. * src/CancelMessage.cc: New class.
  18463. * src/BitfieldMessage.h: New class.
  18464. * src/BitfieldMessage.cc: New class.
  18465. * src/ChokeMessage.h: New class.
  18466. * src/ChokeMessage.cc: New class.
  18467. * src/KeepAliveMessage.h: New class.
  18468. * src/KeepAliveMessage.cc: New class.
  18469. * src/PortMessage.h: New class.
  18470. * src/UnchokeMessage.h: New class.
  18471. * src/UnchokeMessage.cc: New class.
  18472. * src/PieceMessage.h: New class.
  18473. * src/PieceMessage.cc: New class.
  18474. * src/HaveMessage.h: New class.
  18475. * src/HaveMessage.cc: New class.
  18476. * src/BitfieldMessage.h: New class.
  18477. * src/BitfieldMessage.cc: New class.
  18478. * src/NotInterestedMessage.h: New class.
  18479. * src/NotInterestedMessage.cc: New class.
  18480. * src/InterestedMessage.h: New class.
  18481. * src/InterestedMessage.cc: New class.
  18482. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  18483. (getSendMessageQueue): New function.
  18484. (setSendMessageQueue): New function.
  18485. * src/HandshakeMessage.cc: New class.
  18486. * src/PeerConnection.h (receiveMessage): Changed return value and
  18487. arguments.
  18488. (receiveHandshake): Changed return value and arguments.
  18489. * src/PeerConnection.cc (receiveMessage): Do not create message class
  18490. here.
  18491. (receiveHandshake): Do not create handshake class here.
  18492. * src/PeerInteractionCommand.h (peerConnection): Removed.
  18493. (piece): Removed.
  18494. (syncPiece): Removed.
  18495. (sendInterest): Removed.
  18496. (sendMessages): Removed.
  18497. (createRequestPendingMessage): Removed.
  18498. (checkPieceHash): Removed.
  18499. (erasePieceOnDisk): Removed.
  18500. (getNewPieceAndSendInterest): Removed.
  18501. (onGotNewPice): Removed.
  18502. (onGotWrongPiece): Removed.
  18503. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18504. Removed peerConnection, piece.
  18505. (~PeerInteractionCommand): Removed peerConnection.
  18506. (executeInternal): Use sendMessageQueue instead of peerConnection.
  18507. (syncPiece): Moved to SendMessageQueue.
  18508. (decideChoking): Removed PendingMessage.
  18509. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  18510. The action after receiving peer message was moved to each message
  18511. class.
  18512. (onGotNewPice): Moved to SendMessageQueue.
  18513. (onGotWrongPiece): Moved to SendMessageQueue.
  18514. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  18515. (sendInterest): Moved to SendMessageQueue.
  18516. (createRequestPendingMessage): Removed.
  18517. (sendMessages): Moved to SendMessageQueue.
  18518. (onAbort): Use SendMessageQueue::abortPiece()
  18519. (keepAlive): Use sendMessageQueue instead of peerConnection.
  18520. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  18521. (checkPieceHash): Moved to SendMessageQueue.
  18522. (erasePieceOnDisk): Moved to SendMessageQueue.
  18523. * src/PeerMessageUtil.h
  18524. (createBitfieldMessage): Removed.
  18525. (createHaveMessage): Changed return value and arguments.
  18526. (createBitfieldMessage): Changed return value and arguments.
  18527. (createRequestCancelMessage): Removed.
  18528. (createPieceMessage): Changed return value and arguments.
  18529. (getShortIntParam): New function.
  18530. (checkIndex): Changed arguments.
  18531. (checkBegin): Changed arguments.
  18532. (checkLength): Changed arguments.
  18533. (checkPieceOffset): Removed.
  18534. (checkRange): New function.
  18535. (checkBitfield): Changed arguments.
  18536. (createPeerMessage): Removed.
  18537. (checkIntegrity): Removed.
  18538. (createHandshakeMessage): Changed arguments.
  18539. (createChokeMessage): New function.
  18540. (createUnchokeMessage): New function.
  18541. (createInterestedMessage): New function.
  18542. (createNotInterestedMessage): New function.
  18543. (createRequestMessage): New function.
  18544. (createCancelMessage): New function.
  18545. (createPortMessage): New function.
  18546. * src/PeerMessageUtil.cc
  18547. (createBitfieldMessage): Removed.
  18548. (createHaveMessage): Changed return value and arguments.
  18549. (createBitfieldMessage): Changed return value and arguments.
  18550. (createRequestCancelMessage): Removed.
  18551. (createPieceMessage): Changed return value and arguments.
  18552. (getShortIntParam): New function.
  18553. (checkIndex): Changed arguments.
  18554. (checkBegin): Changed arguments.
  18555. (checkLength): Changed arguments.
  18556. (checkPieceOffset): Removed.
  18557. (checkRange): New function.
  18558. (checkBitfield): Changed arguments.
  18559. (createPeerMessage): Removed.
  18560. (checkIntegrity): Removed.
  18561. (createHandshakeMessage): Changed arguments.
  18562. (createChokeMessage): New function.
  18563. (createUnchokeMessage): New function.
  18564. (createInterestedMessage): New function.
  18565. (createNotInterestedMessage): New function.
  18566. (createRequestMessage): New function.
  18567. (createCancelMessage): New function.
  18568. (createPortMessage): New function.
  18569. * src/PeerMessage.h
  18570. (id): Removed.
  18571. (index): Removed.
  18572. (begin): Removed.
  18573. (length): Removed.
  18574. (bitfield): Removed.
  18575. (bitfieldLength): Removed.
  18576. (block): Removed.
  18577. (blockLength): Removed.
  18578. (inProgress): New variable.
  18579. (cuid): New variable.
  18580. (peer): New variable.
  18581. (sendMessageQueue): New variable.
  18582. (logger): New variable.
  18583. (setBitfield): Removed.
  18584. (getBitfield): Removed.
  18585. (setBlock): Removed.
  18586. (getBlock): Removed.
  18587. (getBitfieldLength): Removed.
  18588. (getBlockLength): Removed.
  18589. (isInProgress): New function.
  18590. (toString): Made pure virtual.
  18591. (check): New function.
  18592. (send): New function.
  18593. (receivedAction): New function.
  18594. (getId): Made pure virtual.
  18595. (setId): Removed.
  18596. (getIndex): Removed.
  18597. (setIndex): Removed.
  18598. (getBegin): Removed.
  18599. (setBegin): Removed.
  18600. (getLength): Removed.
  18601. (setLength): Removed.
  18602. (getCuid): New function.
  18603. (setCuid): New function.
  18604. (getPeer): New function.
  18605. (setPeer): New function.
  18606. (getSendMessageQueue): New function.
  18607. (setSendMessageQueue): New function.
  18608. (ID): Removed.
  18609. * src/PeerMessage.cc
  18610. (setBitfield): Removed.
  18611. (setBlock): Removed.
  18612. (toString): Removed.
  18613. * src/TorrentMan.h
  18614. (getPieceLength): New function.
  18615. (getPieceLength): New function.
  18616. * src/SendMessageQueue.h
  18617. (REQUEST_TIME_OUT): New definition.
  18618. (RequestSlots): New definition.
  18619. (MessageQueue): New definition.
  18620. (requestSlotMan): Removed.
  18621. (pendingMessages): Removed.
  18622. (requestSlots): New variable.
  18623. (messageQueue): New variable.
  18624. (torrentMan): New variable.
  18625. (peerConnection): New variable.
  18626. (peer): New variable.
  18627. (piece): New variable.
  18628. (getNewPieceAndSendInterest): New function.
  18629. (createPeerMessage): New function.
  18630. (createHandshakeMessage): New function.
  18631. (send): Made private.
  18632. (setPeerMessageCommonProperty): New function.
  18633. (deleteAllRequestSlot): New function.
  18634. (deleteRequestMessageInQueue): New function.
  18635. (cancelAllRequest): Made private.
  18636. (cancelAllRequest): Made private.
  18637. (countRequestSlot): Made private.
  18638. (addPendingMessage): Removed.
  18639. (deletePendingPieceMessage): Removed.
  18640. (deletePendingRequestMessage): Removed.
  18641. (addMessage): New function.
  18642. (deletePieceMessageInQueue): New function.
  18643. (deleteTimeoutRequestSlot): Changed argument.
  18644. (deleteCompletedRequestSlot): Changed argument.
  18645. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  18646. (getCorrespondingRequestSlot): New function.
  18647. (countPendingMessage): Removed.
  18648. (countMessageInQueue): New function.
  18649. (getTorrentMan): New function.
  18650. (getPeerConnection): New function.
  18651. (hasDownloadPiece): New function.
  18652. (getDownloadPiece): New function.
  18653. (setDownloadPiece): New function.
  18654. (syncPiece): New function.
  18655. (sendMessages): New function.
  18656. (sendNow): New function.
  18657. (trySendNow): New function.
  18658. (abortPiece): New function.
  18659. (sendHandshake): New function.
  18660. (receiveMessage): New function.
  18661. (receiveHandshake): New function.
  18662. (createRequestMessage): New function.
  18663. (createCancelMessage): New function.
  18664. (createPieceMessage): New function.
  18665. (createHaveMessage): New function.
  18666. (createChokeMessage): New function.
  18667. (createUnchokeMessage): New function.
  18668. (createInterestedMessage): New function.
  18669. (createNotInterestedMessage): New function.
  18670. (createBitfieldMessage): New function.
  18671. (createKeepAliveMessage): New function.
  18672. * src/SendMessageQueue.cc
  18673. (SendMessageQueue): Removed requestSlotMan.
  18674. Instantiated peerConnection here.
  18675. (~SendMessageQueue): Removed requestSlotMan.
  18676. Added deletion of peerConnection and the contents of messageQueue.
  18677. (send): Updated according to the change of messageQueue.
  18678. (addPendingMessage): Renamed to addMessage.
  18679. (addMessage): New function.
  18680. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  18681. (deletePieceMessageInQueue): New function.
  18682. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  18683. (deleteRequestMessageInQueue): New function.
  18684. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  18685. here.
  18686. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  18687. (...) was moved here.
  18688. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  18689. moved here.
  18690. (deleteCompletedRequestSlot):
  18691. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  18692. (getCorrespondingRequestSlot):
  18693. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  18694. And renamed to getCorrespondingRequestSlot, correcting a typo.
  18695. (countPendingMessage): Renamed to countMessageInQueue.
  18696. (countMessageInQueue): New function.
  18697. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  18698. (receiveHandshake): New function.
  18699. (createHandshakeMessage): New function.
  18700. (receiveMessage): New function.
  18701. (createPeerMessage): New function.
  18702. (syncPiece): New function.
  18703. (getNewPieceAndSendInterest): New function.
  18704. (sendMessages): New function.
  18705. (sendNow): New function.
  18706. (trySendNow): New function.
  18707. (sendHandshake): New function.
  18708. (abortPiece): New function.
  18709. (getDownloadPiece): New function.
  18710. (getPeerMessageCommonProperty): New function.
  18711. (createRequestMessage): New function.
  18712. (createCancelMessage): New function.
  18713. (createPieceMessage): New function.
  18714. (createHaveMessage): New function.
  18715. (createChokeMessage): New function.
  18716. (createUnchokeMessage): New function.
  18717. (createInterestedMessage): New function.
  18718. (createNotInterestedMessage): New function.
  18719. (createBitfieldMessage): New function.
  18720. (createKeepAliveMessage): New function.
  18721. To add simple Content-Disposition support:
  18722. * src/HttpResponseCommand.h (determinFilename): New function.
  18723. * src/HttpResponseCommand.cc (executeInternal):
  18724. Use determinFilename(headers) instead of req->getFile() when comparing
  18725. filename.
  18726. (determinFilename): New function.
  18727. (handleDefaultEncoding): Use determinFilename(headers) instead of
  18728. req->getFile().
  18729. (handleOtherEncoding): Use determinFilename(headers) instead of
  18730. req->getFile().
  18731. * src/Util.h (getContentDispositionFilename): New function.
  18732. * src/Util.cc (getContentDispositionFilename): New function.
  18733. * src/LogFactory.h (release): New function.
  18734. * src/LogFactory.cc (release): New function.
  18735. To fix a bug that causes out-of-bound exception when HTTP status
  18736. line is wrong:
  18737. * src/HttpConnection.cc (receiveResponse): Added a check for header
  18738. size.
  18739. * src/common.h (Deleter): New class.
  18740. * src/SegmentMan.cc
  18741. (~SegmentMan): Added deletion of splitter and diskWriter.
  18742. * src/DownloadEngine.h
  18743. (Commands): Use deque.
  18744. (clearQueue): New function.
  18745. * src/DownloadEngine.cc
  18746. (~DownloadEngine): Added deletion of segmentMan.
  18747. (cleanQueue): New function.
  18748. * src/TorrentDownloadEngine.h
  18749. (TorrentDownloadEngine): The implementation was moved to
  18750. TorrentDownloadEngine.cc.
  18751. (~TorrentDownloadEngine): The implementation was moved to
  18752. TorrentDownloadEngine.cc.
  18753. * src/TorrentDownloadEngine.cc
  18754. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18755. * src/main.cc
  18756. (clearRequest): Removed.
  18757. (handler): Added deletion of e.
  18758. (torrentHandler): Added deletion of te.
  18759. (main): Do not share splitter.
  18760. Use Deleter instead of clearRequest.
  18761. Deletion of classes were updated.
  18762. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18763. * src/main.cc (main): Fixed typo.
  18764. * src/message.h: Fixed typo.
  18765. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18766. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18767. To add --select-file command-line option:
  18768. * src/Util.cc
  18769. (unfoldRange): New function.
  18770. (getNum): New function.
  18771. (unfoldSubRange): New function
  18772. * src/main.cc
  18773. (showUsage): Added help message.
  18774. (main): Added --select-file command-line option. Updated the layout of
  18775. file listing.
  18776. * src/common.h
  18777. (Integers): New definition.
  18778. * src/SocketCore.cc
  18779. (writeData): Removed timeout argument.
  18780. (readData): Removed timeout argument.
  18781. (peekData): Removed timeout argument.
  18782. * src/Socket.cc
  18783. (writeData): Removed timeout argument.
  18784. (readData): Removed timeout argument.
  18785. (peekData): Removed timeout argument.
  18786. * Release 0.4.1
  18787. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18788. To deploy upload rate based choking algorithm:
  18789. * src/PeerInteractionCommand.cc
  18790. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18791. peer currently used.
  18792. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18793. download completes. Simplified.
  18794. (receiveMessage): Updated.
  18795. * src/TorrentMan.h
  18796. (activePeers): New variable.
  18797. (addActivePeer): New function.
  18798. (getActivePeers): New function.
  18799. (deleteActivePeer): New function.
  18800. * src/TorrentMan.cc
  18801. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18802. * src/PeerAbstractCommand.cc
  18803. (onAbort): Use peer->resetStatus().
  18804. * src/main.cc
  18805. (PeerChokeCommand.h): Included.
  18806. (main): Added the instance of ChokingCommand to the command queue.
  18807. * src/Peer.h
  18808. (amChoking): Renamed from amChocking
  18809. (chokingRequired): New variable.
  18810. (optUnchoking): New variable.
  18811. (deltaUpload): New variable.
  18812. (deltaDownload): New variable.
  18813. (addDeltaUpload): New function.
  18814. (resetDeltaUpload): New function.
  18815. (addDeltaDownload): New function.
  18816. (resetDeltaDownload): New function.
  18817. (addPeerUpload): Added a call to addDeltaUpload.
  18818. (addPeerDownload): Added a call to addDeltaDownload.
  18819. * src/Peer.cc
  18820. (shouldBeChoking): Renamed from shouldChoke.
  18821. (resetStatus): New function.
  18822. * src/PeerChokeCommand.h: New class.
  18823. * src/PeerChokeCommand.cc: New class.
  18824. To add lazy upload speed limiter:
  18825. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18826. statistics calculation to TorrentDownloadEngine.
  18827. * src/TorrentConsoleDownloadEngine.cc
  18828. (sendStatistics): Renamed from printStatistics.
  18829. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18830. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18831. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18832. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18833. calculation.
  18834. (sendStatistics): New function as pure virtual function.
  18835. (getUploadSpeed): New function.
  18836. * src/TorrentDownloadEngine.cc
  18837. (initStatistics): New function.
  18838. (calculateSpeed): New function.
  18839. (calculateStatistics): New function.
  18840. * src/SendMessageQueue.h
  18841. (uploadLength): New variable.
  18842. (send): Added an argument.
  18843. (setUploadLimit): New function.
  18844. (getUploadLimit): New function.
  18845. * src/SendMessageQueue.cc
  18846. (send): Added upload speed limiter.
  18847. * src/prefs.h
  18848. (PREF_UPLOAD_LIMIT): New definition.
  18849. * src/PeerInteractionCommand.cc
  18850. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18851. * src/main.cc
  18852. (main): Added --upload-limit option
  18853. For bug fixes:
  18854. * src/main.cc
  18855. (showUsage): Corrected --listen-port help
  18856. Other changes:
  18857. * src/TorrentMan.cc
  18858. (getPeer): Return nullPeer if connection is grather than
  18859. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18860. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18861. To add some useful information to the exception message:
  18862. * src/SocketCore.cc : Updated messages.
  18863. * src/SegmentMan.cc :
  18864. * src/TorrentMan.cc : Updated messages.
  18865. * src/MultiDiskWriter.cc : Updated messages.
  18866. * src/Util.cc : Updated messages.
  18867. * src/AbstractDiskWriter.cc : Updated messages.
  18868. * src/PreAllocationDiskWriter.cc : Updated messages.
  18869. * src/message.cc : Added new messages. Updated some messages.
  18870. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18871. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18872. Updated threshold from 30 to 15.
  18873. * src/AbstractDiskWriter.h (filename): New variable.
  18874. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18875. (createFile): Assigned filename.
  18876. * src/main.cc: Updated the help message for http-auth-scheme.
  18877. * Release 0.4.0
  18878. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18879. To add TrackerUpdateCommand with which replaces
  18880. CompactTrackerResponseProcessor:
  18881. * src/TrackerWatcherCommand.h (req): Removed.
  18882. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18883. if the number of peer connections are less than 30.
  18884. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18885. * src/SegmentMan.h (diskWriter): New function.
  18886. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18887. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18888. (main): Use TrackerUpdateCommand.
  18889. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18890. (req): New variable.
  18891. (setTrackerResponseProcessor): Removed.
  18892. (getTrackerResponseProcessor): Removed.
  18893. (processTrackerResponse): Removed.
  18894. * src/DownloadEngine.h (diskWriter): Removed.
  18895. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18896. to torrentMan->processTrackerResponse().
  18897. To add Util::expandBuffer:
  18898. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18899. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18900. * src/Util.h (expandBuffer): New function.
  18901. To fix the bug that causes segmentation fault when "-l ." is specified
  18902. in command-line option:
  18903. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18904. (openFile): New function.
  18905. (closeFile): New function.
  18906. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18907. (~SimpleLogger): Call closeFile();
  18908. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18909. * src/main.cc (main): Added a check to see logger is configured
  18910. properly.
  18911. To enable HTTP authentication without specifying "--http-auth-scheme"
  18912. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18913. * src/HttpConnection.cc (createRequest): Send Authorization header
  18914. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18915. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18916. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18917. * src/Peer.cc (shouldChoke): Updated algorithm.
  18918. * src/message.h (EX_AUTH_FAILED): New definition.
  18919. (EX_FILE_OPEN): New definition.
  18920. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18921. if status == 401.
  18922. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18923. if req->isTorrent == true.
  18924. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18925. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18926. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18927. (createFile): Updated message.
  18928. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18929. To add a readout of estimated remaining time to normal HTTP/FTP
  18930. downloads:
  18931. * src/ConsoleDownloadEngine.h (startup): New variable.
  18932. (startupLength): New variable.
  18933. (isStartupLengthSet): New variable.
  18934. (avgSpeed): New variable.
  18935. (eta): New variable.
  18936. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18937. estimated remaining time.
  18938. (initStatistics): Initialized newly added variables.
  18939. (calculateStatistics): Calculate average speed and estimated remaining
  18940. time.
  18941. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18942. * src/TrackerDownloadCommand.h: Removed.
  18943. * src/TrackerDownloadCommand.cc: Removed.
  18944. * src/TrackerInitCommand.h: Removed.
  18945. * src/TrackerInitCommand.cc: Removed.
  18946. * src/TrackerUpdateCommand.h: Removed.
  18947. * src/TrackerUpdateCommand.cc: Removed.
  18948. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18949. url written in TrackerInitCommand was moved here. Do not create
  18950. tracker request command if torrentMan->trackers != 0.
  18951. * src/CompactTrackerResponseProcessor.h: New class.
  18952. * src/CompactTrackerResponseProcessor.cc: New class.
  18953. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18954. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18955. Decoupled TorrentDownloadEngine from this.
  18956. * src/SegmentMan.h (init): New function.
  18957. * src/SegmentMan.cc (init): New function.
  18958. * src/TorrentMan.h (responseProcessor): New variable.
  18959. (trackers): New variable.
  18960. (setTrackerResponseProcessor): New function.
  18961. (getTrackerResponseProcessor): New function.
  18962. (processTrackerResponse): New function.
  18963. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18964. (processTrackerResponse): New function.
  18965. * src/main.cc (main): Use ByteArrayDiskWriter and
  18966. CompactTrackerResponseProcessor.
  18967. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18968. processTrackerResponse().
  18969. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18970. readout.
  18971. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18972. which indicates download has completed.
  18973. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18974. (closeFile): fd >= 0, not fd > 0
  18975. * src/main.cc (main): Added short cut for show-files.
  18976. Added short cut for torrent-file.
  18977. Added new command-line option listen-port.
  18978. Updated i18n messages.
  18979. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18980. To add LogFactory which creates singleton logger:
  18981. * src/LogFactory.h: New class.
  18982. * src/LogFactory.cc: New class.
  18983. * src/Command.h (logger): New variable.
  18984. (Constructor): Use LogFactory.
  18985. * src/AbstractCommand.cc: Use Command::logger
  18986. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18987. Use LogFactory.
  18988. * src/SegmentSplitter.h : Made logger protected.
  18989. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18990. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18991. * src/DownloadEngine.h : Made logger protected.
  18992. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18993. * src/PeerInteractionCommand.cc : Use Command::logger.
  18994. * src/HttpResponseCommand.cc : Use Command::logger.
  18995. * src/SegmentMan.h : Made logger private.
  18996. * src/TorrentMan.h : Made logger private.
  18997. * src/TorrentMan.cc : Use LogFactory.
  18998. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18999. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  19000. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  19001. Use LogFactory.
  19002. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  19003. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  19004. Use LogFactory.
  19005. * src/DownloadCommand.cc : Use Command::logger.
  19006. * src/PeerAbstractCommand.cc : Use Command::logger.
  19007. * src/PeerListenCommand.cc : Use Command::logger.
  19008. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  19009. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  19010. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  19011. * src/TrackerWatcherCommand.cc : Use Command::logger.
  19012. * src/TrackerUpdateCommand.cc : Use Command::logger.
  19013. * src/TrackerDownloadCommand.cc : Use Command::logger.
  19014. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  19015. Use LogFactory.
  19016. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  19017. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  19018. Use LogFactory.
  19019. * src/main.cc (main): Use LogFactory.
  19020. * src/DiskAdaptor.h (logger): New variable.
  19021. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  19022. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  19023. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19024. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  19025. parameter to a tracker request.
  19026. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  19027. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  19028. * src/main.cc (setSignalHander): New function.
  19029. (main): Added a handler for SIGTERM.
  19030. (handler): Updated message.
  19031. (torrentHandler): Updated message.
  19032. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19033. * src/TorrentConsoleDownloadEngine.cc
  19034. (onPartialDownloadingCompletes): Renamed as
  19035. onSelectiveDownloadingCompletes.
  19036. (onSelectiveDownloadingCompletes): Updated message.
  19037. To add DiskAdaptor which abstract DiskWriter family:
  19038. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  19039. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  19040. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  19041. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  19042. MultiDiskAdaptor.h.
  19043. (readFileEntry): Changed its arguments.
  19044. (setup): setupDiskWriter is merged into this function.
  19045. (setupDiskWriter): Removed.
  19046. (setFileFilter): New function.
  19047. (readFileEntryFromMetaInfoFile): Updated according to the changes
  19048. made in readFileEntry.
  19049. (getFilePath): Removed.
  19050. (getTempFilePath): Removed.
  19051. (getSegmentFilePath): Updated due to the removal of getFilePath.
  19052. (fixFilename): Removed.
  19053. (copySingleFile): Removed.
  19054. (splitMultiFile): Removed.
  19055. (deleteTempFile): Removed.
  19056. (setFileEntriesToDownload): Removed.
  19057. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  19058. (isSelectiveDownloadingMode): New function.
  19059. (setAllMultiFileRequestedState): Removed.
  19060. (finishPartialDownloadingMode): Renamed as
  19061. finishSelectiveDownloadingMode.
  19062. (finishSelectiveDownloadingMode): New function.
  19063. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  19064. (getSelectedTotalLength): New function.
  19065. (onDownloadComplete): Use diskAdaptor.
  19066. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  19067. (Range): Removed.
  19068. (setMultiFileEntries): Renamed as setFileEntries.
  19069. (setFileEntries): New function.
  19070. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  19071. (pieceLength): New variable.
  19072. * src/main.cc (printDownloadCompeleteMessage): New function.
  19073. (torrentHandler): Use diskAdaptor instead of diskWriter.
  19074. (main): Renamed torrent-show-files to show-files.
  19075. Rewritten file contents listing.
  19076. * src/TorrentMan.h (FileEntry): Removed.
  19077. (multiFileTopDir): Removed.
  19078. (multiFileEntries): Removed.
  19079. (diskWriter): Removed.
  19080. (diskAdaptor): New variable.
  19081. * src/DefaultDiskWriter.h (totalLength): New variable.
  19082. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  19083. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  19084. diskWriter.
  19085. * src/TorrentConsoleDownloadEngine.h
  19086. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  19087. (partialTotalLength): Renamed as selectedTotalLength.
  19088. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  19089. openExistingFile, otherwise call initAndOpenFile.
  19090. (closeFile): fd > 0, not fd != 0.
  19091. * src/DirectDiskAdaptor.h: New class.
  19092. * src/DirectDiskAdaptor.cc: New class.
  19093. * src/MultiDiskAdaptor.h: New class.
  19094. * src/MultiDiskAdaptor.cc: New class.
  19095. * src/CopyDiskAdaptor.h: New class.
  19096. * src/CopyDiskAdaptor.cc: New class.
  19097. * src/DiskAdaptor.h: New class.
  19098. * src/DiskAdaptor.cc: New class.
  19099. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  19100. (PREF_SHOW_FILES): New definition.
  19101. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19102. To add the ability to download multi torrent into respective files
  19103. directly:
  19104. * src/DiskWriter.h (openFile): New function.
  19105. (seek): Removed.
  19106. * src/MultiDiskWriter.h: New class.
  19107. * src/MultiDiskWriter.cc: New class.
  19108. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  19109. protected.
  19110. (openFile): New function.
  19111. * src/AbstractDiskWriter.cc (openFile): New function.
  19112. * src/prefs.h (V_FALSE): New definition.
  19113. (PREF_DIRECT_FILE_MAPPING): New definition.
  19114. * src/TorrentMan.h (setupDiskWriter): New function.
  19115. (setAllMultiFileRequestedState): New function.
  19116. (onDownloadComplete): New function.
  19117. * src/TorrentMan.cc : Included MultiDiskWriter.h
  19118. (setupDiskWriter): New function.
  19119. (getFilePath): Updated.
  19120. (getTempFilePath): Updated.
  19121. (getSegmentFilePath): Updated.
  19122. (fixFilename): Updated.
  19123. (deleteTempFile): Updated.
  19124. (setAllMultiFileRequestedState): New function.
  19125. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  19126. (finishPartialDownloadingMode): Reset requested flags.
  19127. (onDownloadComplete): New function.
  19128. * src/main.cc: Added --direct-file-mapping option.
  19129. Use TorrentMan::setupDiskWriter().
  19130. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  19131. onDownloadComplete().
  19132. To fix ETA bug:
  19133. * src/Util.h (difftvsec): New function.
  19134. * src/Util.cc (difftvsec): New function.
  19135. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  19136. type of "elapsed" instead of long long int.
  19137. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  19138. The updates of statistics takes place every 1 seconds.
  19139. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  19140. (calculateSpeed): Changed its argument signature.
  19141. * src/PeerMessage.cc (toString): Fixed message.
  19142. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19143. To print ETA:
  19144. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  19145. completion handling when dealing with
  19146. TorrentMan::isPartialDownloadingMode() == true.
  19147. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  19148. New function.
  19149. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  19150. (sessionDownloadLength): New variable.
  19151. (avgSpeed): New variable.
  19152. (eta): New variable.
  19153. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  19154. new variables: eta, avgSpeed, startup.
  19155. (calculateSpeed): Calculate average speed and ETA.
  19156. (printStatistics): Added ETA.
  19157. * src/Util.h (secfmt): New function.
  19158. * src/Util.cc (secfmt): New function.
  19159. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19160. To detect "keep alive" flooding:
  19161. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  19162. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  19163. variable: keepAliveCount.
  19164. (detectMessageFlooding): Added "keep alive" flooding detection.
  19165. (receiveMessage): Increase keepAliveCount when "keep alive" message
  19166. received.
  19167. To add the ability to download only specified files in multi-file
  19168. torrent:
  19169. * src/BitfieldMan.h (filterBitfield): New variable.
  19170. (filterEnabled): New variable.
  19171. (setFilterBit): New function.
  19172. (enableFilter): New function.
  19173. (disableFilter): New function.
  19174. (isFilterEnabled): New function.
  19175. (getFilteredTotalLength): New function.
  19176. (getCompletedLength): New function.
  19177. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  19178. filterBitfield, filterEnabled.
  19179. (CopyConstructor): Added filterBitfield and filterEnabled.
  19180. (operator==): Added filterBitfield and filterEnabled.
  19181. (Destructor): Added filterBitfield.
  19182. (getMissingIndex): Use filterBitfield.
  19183. (getMissingUnusedIndex): Use filterBitfield.
  19184. (getFirstMissingUnusedIndex): Use filterBitfield.
  19185. (getFirstMissingUnusedIndex): Use filterBitfield.
  19186. (getAllMissingIndexes): Use filterBitfield.
  19187. (countMissingBlock): Use filterBitfield.
  19188. (countBlock): Use filterBitfield.
  19189. (setBitInternal): Added new argument on.
  19190. (setUseBit): Use setBitInternal.
  19191. (unsetUseBit): Use setBitInternal.
  19192. (setBit): Use setBitInternal.
  19193. (unsetBit): Use setBitInternal.
  19194. (isAllBitSet): Use filterBitfield.
  19195. (setFilterBit): New function.
  19196. (addFilter): New function.
  19197. (enableFilter): New function.
  19198. (disableFilter): New function.
  19199. (clearFilter): New function.
  19200. (isFilterEnabled): New function.
  19201. (getFilteredTotalLength): New function.
  19202. (getCompletedLength): New function.
  19203. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  19204. Initalized newly added variables.
  19205. [FileEntry](offset): New variable.
  19206. [FileEntry](extracted): New variable.
  19207. [FileEntry](requested): New variable.
  19208. (readFileEntry): New function.
  19209. (option): New variable.
  19210. (splitMultiFile): Removed const qualifier.
  19211. (fixFilename): Removed const qualifier.
  19212. (readFileEntryFromMetaInfoFile): New function.
  19213. (finishPartialDownloadingMode): New function.
  19214. (isPartialDownloadingMode): New function.
  19215. (setFileEntriesToDownload): New function.
  19216. (getCompletedLength): New function.
  19217. (getPartialTotalLength): New function.
  19218. * src/TorrentMan.cc (readFileEntry): New function.
  19219. (setup): Use readFileEntry. If no-preallocation option is specified,
  19220. use DefaultDiskWriter.
  19221. (readFileEntryFromMetaInfoFile): New function.
  19222. (fixFilename): Removed const qualifier.
  19223. (splitMultiFile): Removed const qualifier.
  19224. (setFileEntriesToDownload): New function.
  19225. (isPartialDownloadingMode): New function.
  19226. (finishPartialDownloadingMode): New function.
  19227. (getCompletedLength): New function.
  19228. (getPartialTotalLength): New function.
  19229. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  19230. New variable.
  19231. (partialTotalLength): New variable.
  19232. (downloadLength): New variable.
  19233. (totalLength): New variable.
  19234. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  19235. Added log.
  19236. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  19237. partialTotalLength, downloadLength, totalLength.
  19238. (calculate): Calculate downloadLength and totalLength.
  19239. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  19240. * src/main.cc (addCommand): Changed argument signature.
  19241. (main): Added new variable: args. Added new option "torrent-show-files"
  19242. "no-preallocation". Usage is not updated yet.
  19243. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19244. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  19245. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19246. Attempt to add the ability to listing file entries in a .torrent file.
  19247. This feature is not yet complete.
  19248. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  19249. * src/TorrentMan.cc (getMultiFileEntries): New function.
  19250. (getName): New function.
  19251. * src/TorrentMan.h (getMultiFileEntries): New function.
  19252. (getName): New function.
  19253. * src/main.cc (main): Use above 2 funtion.
  19254. * Release 0.3.2
  19255. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19256. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  19257. (detectMessageFlooding): Updated threshold value.
  19258. (checkLongTimePeerChoking): Updated timeout value.
  19259. (getNewPieceAndSendInterest): Added debug log.
  19260. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  19261. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  19262. (getPeer): Updated.
  19263. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  19264. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  19265. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  19266. is localhost.
  19267. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  19268. * src/PendingMessage.cc (processMessage): Not to send piece message
  19269. if peer is not interested in the pieces localhost has.
  19270. * src/Peer.cc (shouldChoke): Updated.
  19271. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  19272. * src/Util.cc (isPowerOf): New function.
  19273. * src/Util.h (isPowerOf): New function.
  19274. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  19275. whether or not it is power of 2.
  19276. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19277. Added new class SendMessageQueue that includes PendingMessages and
  19278. RequestSlotMan.
  19279. * src/SendMessageQueue.h: New class.
  19280. * src/SendMessageQueue.cc: New class.
  19281. * src/PendingMessage.h: Added new member variable blockIndex and its
  19282. accessors.
  19283. (createRequestMessage): Updated.
  19284. * src/PendingMessage.cc (createRequestMessage): Updated.
  19285. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  19286. SendMessageQueue.
  19287. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  19288. (receiveMessage): Updated with SendMessageQueue.
  19289. (deletePendingPieceMessage): Removed.
  19290. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  19291. (sendInterest): Updated with SendMessageQueue.
  19292. (createRequestPendingMessage): Updated with SendMessageQueue.
  19293. (sendMessages): Updated with SendMessageQueue.
  19294. (onAbort): Updated with SendMessageQueue.
  19295. (keepAlive): Updated with SendMessageQueue.
  19296. (beforeSocketCheck): Updated SendMessageQueue.
  19297. * src/PeerInteractionCommand (sendMessages): Shuffle
  19298. missingBLockIndexes before using it.
  19299. Added its own timeout for peer connection.
  19300. * src/PeerAbstractCommand.h: Added member variable timeout and its
  19301. setter.
  19302. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  19303. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  19304. Added setTimeout() call.
  19305. (executeInternal): Added setTimeout() call.
  19306. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  19307. Added timeout.
  19308. (isTimeoutDetected): Updated.
  19309. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  19310. option.
  19311. Added *simple* message flooding checker.
  19312. * src/PeerInteractionCommand.cc (executeInternal):
  19313. Added detectMessageFlooding() call.
  19314. (detectMessageFlooding): New function.
  19315. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  19316. (beforeSocketCheck): Added detectMessageFlooding() call.
  19317. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  19318. chokeUnchokeCount, haveCount, detectMessageFlooding().
  19319. Removed deletePendingPieceMessage(), getRequestSlot(),
  19320. deleteRequestSlot(), deleteAllRequestSlot().
  19321. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  19322. Added checkLongTimePeerChoking() call.
  19323. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  19324. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  19325. if duplicate == false.
  19326. The parameter "uploaded" and "downloaded" in the tracker request are
  19327. the size since the client sent the "started" event to the tracker.
  19328. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  19329. uploaded size to preDownloadedSize, preUploadedSize respectively.
  19330. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  19331. getSessionDownloadedSize(), getSessionUploadedSize().
  19332. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  19333. getSessionUploadedSize() instead of getDownloadedSize(),
  19334. getUploadedSize().
  19335. * src/PendingMessage.cc (processMessage): Do not send request message
  19336. if the peer is choking the client.
  19337. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  19338. less than interval.
  19339. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19340. * configure.in: Added gnutls support. Added several CPP macros.
  19341. * m4/openssl.m4: Added.
  19342. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  19343. readData(), peekData(). Added gnutls support.
  19344. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  19345. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  19346. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  19347. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  19348. Instead, added a check for whether setup method has executed
  19349. successfully.
  19350. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  19351. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  19352. * src/Makefile.am: Updated.
  19353. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  19354. using whether OpenSSL or gcrypt, depending on the result of configure
  19355. script.
  19356. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  19357. messageDigest.h.
  19358. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  19359. * src/PeerListenCommand.cc: Added log about port binded successfully.
  19360. Fixed memory leak.
  19361. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  19362. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  19363. Removed instantiation of TrackerInitCommand. Instead,
  19364. TrackerWatcherCommand is instantiated and pushed to the command queue.
  19365. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  19366. ENABLE_SSL.
  19367. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  19368. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  19369. If a piece is already acquired by another command, delete the request
  19370. slots for the piece.
  19371. * src/TrackerUpdateCommand.cc (execute):
  19372. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  19373. Added a check whether peer list is null.
  19374. Fixed the bug that causes sending completed event to the tracker
  19375. several times.
  19376. * src/TrackerInitCommand.cc (execute):
  19377. Fixed the bug that causes sending completed event to the tracker
  19378. several times.
  19379. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  19380. by using messageDigest.h.
  19381. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19382. * PeerConnection.cc: Replaced log message "keep-alive" with
  19383. "keep alive".
  19384. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  19385. localhost long time.
  19386. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  19387. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  19388. at most 100 failure entry from the list. If with duplicate = false,
  19389. MAX_PEER_LIST is not checked.
  19390. * PeerListenCommand.cc: Fixed the argument order of log message.
  19391. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19392. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  19393. Added warn().
  19394. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  19395. Implemented warn().
  19396. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  19397. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19398. * Request.h: Added AFTER_COMPLETED event.
  19399. * TorrentDownloadEngine.cc: Prints "Download complete" message
  19400. instead of downloaded size and progress(%) after download completes.
  19401. * PeerInteractionCommand.cc: After download completes, sends unchoke
  19402. message to the peer if it is interested in what localhost has
  19403. downloaded.
  19404. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  19405. destination instead of just renaming it.
  19406. * TorrentMan.cc: Added deleteTempFile().
  19407. * PeerAbstractCommand.cc: do not stop execution after download
  19408. completes. This makes localhost a seeder.
  19409. * Util.{h,cc}: Added fileCopy().
  19410. * PeerListenCommand.cc: do not stop execution after download completes.
  19411. This makes localhost a seeder.
  19412. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  19413. Added TorrentMan::deleteTempFile() to torrentHandler.
  19414. Initialized the variable dir as ".".
  19415. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  19416. Deleted renameSingleFile().
  19417. Added copySingleFile(), deleteTempFile().
  19418. * DownloadEngine.h: Added virtual function afterEachIteration().
  19419. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  19420. in onEndOfRun() to afterEachIteration().
  19421. In onEndOfRun(), changed if condition to check whether filenameFixed is
  19422. true.
  19423. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  19424. In rangedFileCopy(), added try-catch block to properly close file
  19425. descriptors.
  19426. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  19427. Added afterEachIteration(), isFilenameFixed().
  19428. * Peer.cc: Changed choking strategy.
  19429. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  19430. * TrackerInitCommand.cc: Send completed event only once.
  19431. * DownloadEngine.cc: Added a call to afterEachIteration().
  19432. * TrackerUpdateCommand.cc: Do not stop execution after download
  19433. completes.
  19434. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  19435. connect the peers at most MAX_PEER_UPDATE when a peer list is
  19436. received from a tracker.
  19437. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  19438. Decreased the number of failure peers to delete to 0(just comment out
  19439. the line).
  19440. * Release 0.3.1
  19441. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19442. * PeerInteractionCommand.cc: added a call to
  19443. TorrentMan::unadvertisePiece in Destructor.
  19444. * PeerInteractionCommand.cc: make have message sent immediately
  19445. if the size of pending message queue is zero.
  19446. * TorrentMan.cc: set the maximum size of peer list to 250.
  19447. * TorrentMan.h: changed the container type of Peers and UsedPieces
  19448. to deque.
  19449. * Util.cc: fixed rangedFileCopy.
  19450. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  19451. to Constructor. Also, moved digest cleanup to Destructor.
  19452. * MetaFileUtil.cc: fixed memory leak
  19453. * replaced std::vector with std::deque.
  19454. * AbstractCommand.cc: casted timeout value to long long int.
  19455. * ChunkedEncoding.cc: fixed memory leak.
  19456. * PeerInteractionCommand.cc: casted timeout value to long long int.
  19457. * SleepCommand.cc: casted timeout value to long long int.
  19458. * Data.cc: fixed memory leak.
  19459. * Data.cc: fixed toLLInt().
  19460. * BitfieldMan.cc: fixed memory leak.
  19461. * TorrentMan.cc: initialized storeDir to ".".
  19462. * TorrentMan.cc: fixed memory leak.
  19463. * TorrentMan.cc: corrected file paths of splitted files.
  19464. * PeerAbstractCommand.cc: casted timeout to long long int.
  19465. * main.cc: added delete(req) and delete(te->diskWriter).
  19466. * RequestSlot.cc: casted timeout value to long long int.
  19467. * Request.cc: fixed memory leak.
  19468. * PendingMessage.cc: make HAVE messages sent only when peer does not
  19469. have the piece.
  19470. * Peer.{h,cc}: added hasPiece(int index).
  19471. * main.cc: corrected addCommand.
  19472. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19473. * BitTorrent protocol support added.
  19474. * Release 0.3.0
  19475. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19476. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  19477. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19478. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  19479. decoding did not work properly.
  19480. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19481. * DownloadEngine.h: included sys/time.h
  19482. * DownloadEngine.cc: remove sys/time.h
  19483. * Makefile.am (SUBDIRS): Add intl.
  19484. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  19485. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19486. * main.cc: correct help message for --http-auth-scheme.
  19487. * main.cc: changed e-mail address for bug reports.
  19488. * ja.po: added japanese translation.
  19489. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19490. * SimpleLogger.cc: flush log file instead of stdout.
  19491. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19492. * main.cc: Fixed command-line option: max-tries
  19493. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  19494. does not equal to seg.sp.
  19495. * DownloadCommand.cc: If EOF is got from the server and the total size
  19496. of file is not zero, then throw DlRetryEx.
  19497. * main.cc: Set the minium value of min-segment-size to 1024.
  19498. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  19499. fails because of a regression since 0.2.0 release.
  19500. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19501. * HttpConnection.cc:
  19502. * common.h: defined the user agent name as macro
  19503. * DownloadEngine.{h, cc}:
  19504. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  19505. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  19506. * main.cc: Download complete/abort message is now generated by main.
  19507. * Makefile.am (SUBDIRS): Add m4.
  19508. (ACLOCAL_AMFLAGS): New variable.
  19509. (EXTRA_DIST): New variable.
  19510. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  19511. * gettext: added gettext functionality
  19512. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19513. * AbstractCommand.cc:
  19514. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  19515. unregister its cuid from SegmentMan.
  19516. * DownloadEngine.cc: .aria2 file was written when a downloading
  19517. failed with errors.
  19518. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  19519. Added "User-Agent" header to CONNECT proxy request.
  19520. Fixed "Proxy-Authorization" header. Now proxy authorization works
  19521. properly.
  19522. * Logger.h:
  19523. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  19524. * ChunkedEncoding.cc: Added #include directive for strings.h
  19525. * Release 0.2.1
  19526. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19527. * Util.{h,cc}: added startsWith().
  19528. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  19529. Util::endsWith().
  19530. * SocketCore.cc: struct addrinfo is now zero-initialized.
  19531. * common.h: added #include directive of limit.h.
  19532. * DownloadEngine.cc: added #include directive of sys/time.h and
  19533. algorithm.
  19534. * Exception.h: added #include directive of stdio.h.
  19535. * AbstractCommand.h: added #include directive of sys/time.h.
  19536. * DownloadCommand.h: added #include directive of sys/time.h.
  19537. * *.h: added #include directive of common.h to all base classes.
  19538. subclasses' one was removed.
  19539. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  19540. does not define these macros.
  19541. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19542. * Release 0.2.0
  19543. * main.cc:
  19544. * HttpInitiateConnectionCommand.{h,cc}:
  19545. * prefs.h:
  19546. * HttpConnection.{h,cc}: added --http-proxy-method option.
  19547. We can now use GET command in http proxy.
  19548. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19549. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  19550. that splits slowest segment of SegmentMan::commands vector.
  19551. This is the default split algorithm of aria2.
  19552. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  19553. that splits first segment of SegmentMan::commands vector.
  19554. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  19555. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  19556. * Segment.h:
  19557. * SegmentMan.cc: Added speed field to Segment.h
  19558. * main.cc: -s option now affects all URLs in command-line arguemtns.
  19559. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  19560. * message.h: Change file size related %d to %lld.
  19561. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19562. * FtpInitiateConnectionCommand.{h,cc}:
  19563. * FtpNegotiationCommand.{h,cc}:
  19564. * FtpDownloadCommand.{h,cc}:
  19565. * FtpConnection.{h,cc}: Added FTP support
  19566. * SimpleLogger.cc: Log message now includes time information.
  19567. * main.cc: The value of --http-auth-scheme option is chagned from
  19568. 'BASIC' to 'basic'
  19569. * main.cc: Added --timeout command-line option.
  19570. * main.cc: Added --min-segment-size command-line option.
  19571. * main.cc: Added --max-retries command-line option.
  19572. * prefs.h: option string constants are now defined in prefs.h
  19573. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19574. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  19575. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  19576. with version 0.1.0's one.
  19577. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19578. * configure.in: Added --enable-ssl option to configure script.
  19579. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  19580. cannot permit absoluteURI as Request-URI.
  19581. * HttpConnection.cc: Added Referer support.
  19582. * main.cc: Added referer command-line option.
  19583. * main.cc: Added rety-wait command-line option.
  19584. * Exception.h: Fixed formating bug in Exception::setMsg()
  19585. * SocketCore.{h,cc}:
  19586. * Socket.{h, cc}:
  19587. * Request.cc:
  19588. * InitiateConnectionCommandFactory.cc:
  19589. * HttpRequestCommand.cc: Added HTTPS support.
  19590. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  19591. for SocketCore.
  19592. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  19593. size is wrong
  19594. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  19595. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  19596. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  19597. * Release 0.1.0